function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[5187874]=new thumbnail(5187874,"292948","","_DSC6263_thumb.jpg",130,87,15);thumbnails[5187877]=new thumbnail(5187877,"292948","","_DSC6270_thumb.jpg",130,93,15);thumbnails[5187878]=new thumbnail(5187878,"292948","","_DSC6392_thumb.jpg",130,113,15);thumbnails[5187879]=new thumbnail(5187879,"292948","","_DSC6453_thumb.jpg",130,87,15);thumbnails[5187881]=new thumbnail(5187881,"292948","","_DSC6446_thumb.jpg",130,163,15);thumbnails[5191784]=new thumbnail(5191784,"293172","","Totland_pier_2_thumb.jpg",130,88,15);thumbnails[5191787]=new thumbnail(5191787,"293172","","Freshwater_bay_thumb.jpg",130,63,15);thumbnails[5184786]=new thumbnail(5184786,"292761","","DSCF3664_thumb.jpg",130,195,15);thumbnails[5184787]=new thumbnail(5184787,"292761","","DSCF3666_thumb.jpg",130,195,15);thumbnails[5184791]=new thumbnail(5184791,"292761","","DSCF3668_thumb.jpg",130,195,15);thumbnails[5184793]=new thumbnail(5184793,"292761","","DSCF3675_thumb.jpg",130,195,15);thumbnails[5184795]=new thumbnail(5184795,"292761","","DSCF3683_thumb.jpg",130,195,15);thumbnails[5184799]=new thumbnail(5184799,"292761","","DSCF3695_thumb.jpg",130,195,15);thumbnails[5184802]=new thumbnail(5184802,"292761","","DSCF3700_thumb.jpg",130,195,15);thumbnails[5184806]=new thumbnail(5184806,"292761","","DSCF3708_thumb.jpg",130,195,15);thumbnails[5184808]=new thumbnail(5184808,"292761","","DSCF3711_thumb.jpg",130,195,15);thumbnails[5184813]=new thumbnail(5184813,"292761","","DSCF3714_thumb.jpg",130,195,15);thumbnails[5184818]=new thumbnail(5184818,"292761","","DSCF3718_thumb.jpg",130,195,15);thumbnails[5184822]=new thumbnail(5184822,"292761","","DSCF3726_thumb.jpg",130,195,15);thumbnails[5184825]=new thumbnail(5184825,"292761","","DSCF3731_thumb.jpg",130,195,15);thumbnails[5184829]=new thumbnail(5184829,"292761","","DSCF3761_thumb.jpg",130,195,15);thumbnails[5184831]=new thumbnail(5184831,"292761","","DSCF3763_thumb.jpg",130,195,15);thumbnails[5184832]=new thumbnail(5184832,"292761","","DSCF3771_thumb.jpg",130,195,15);thumbnails[5184678]=new thumbnail(5184678,"292755","","Lightening_Seeds_1_thumb.jpg",130,87,15);thumbnails[5184684]=new thumbnail(5184684,"292755","","Lightening_Seeds_5_thumb.jpg",130,194,15);thumbnails[5184691]=new thumbnail(5184691,"292755","","Lightening_Seeds_2_thumb.jpg",130,194,15);thumbnails[5184697]=new thumbnail(5184697,"292755","","Lightening_Seeds_4_thumb.jpg",130,194,15);thumbnails[5184699]=new thumbnail(5184699,"292755","","Lightening_Seeds_3_thumb.jpg",130,87,15);thumbnails[5184730]=new thumbnail(5184730,"292758","","Super_Furry_Animals_2_thumb.jpg",130,87,15);thumbnails[5184734]=new thumbnail(5184734,"292758","","Super_Furry_Animals_7_thumb.jpg",130,194,15);thumbnails[5184737]=new thumbnail(5184737,"292758","","Super_Furry_Animals_3_thumb.jpg",130,194,15);thumbnails[5184740]=new thumbnail(5184740,"292758","","Super_Furry_Animals_1_thumb.jpg",130,87,15);thumbnails[5184746]=new thumbnail(5184746,"292758","","Super_Furry_Animals_5_thumb.jpg",130,194,15);thumbnails[5183421]=new thumbnail(5183421,"292694","","ABC_112_thumb.jpg",130,195,15);thumbnails[5183426]=new thumbnail(5183426,"292694","","ABC_41_thumb.jpg",130,195,15);thumbnails[5183435]=new thumbnail(5183435,"292694","","ABC_21_thumb.jpg",130,195,15);thumbnails[5183441]=new thumbnail(5183441,"292694","","ABC_101_thumb.jpg",130,87,15);thumbnails[5183445]=new thumbnail(5183445,"292694","","ABC_51_thumb.jpg",130,87,15);thumbnails[5183449]=new thumbnail(5183449,"292694","","ABC_81_thumb.jpg",130,195,15);thumbnails[5184087]=new thumbnail(5184087,"292698","","Belinda_Carlisle_4_thumb.jpg",130,195,15);thumbnails[5184092]=new thumbnail(5184092,"292698","","Belinda_Carlisle_5_thumb.jpg",130,195,15);thumbnails[5184096]=new thumbnail(5184096,"292698","","Belinda_Carlisle_1_thumb.jpg",130,195,15);thumbnails[5184103]=new thumbnail(5184103,"292698","","Belinda_Carlisle_6_thumb.jpg",130,195,15);thumbnails[5184108]=new thumbnail(5184108,"292698","","Belinda_Carlisle_7_thumb.jpg",130,195,15);thumbnails[5184116]=new thumbnail(5184116,"292698","","Belinda_Carlisle_10_thumb.jpg",130,195,15);thumbnails[5184120]=new thumbnail(5184120,"292698","","Belinda_Carlisle_3_thumb.jpg",130,87,15);thumbnails[5184122]=new thumbnail(5184122,"292698","","Belinda_Carlisle_2_thumb.jpg",130,87,15);thumbnails[5184132]=new thumbnail(5184132,"292734","","Go_West_7_thumb.jpg",130,87,15);thumbnails[5184137]=new thumbnail(5184137,"292734","","Go_West_1_thumb.jpg",130,87,15);thumbnails[5184143]=new thumbnail(5184143,"292734","","Go_West_2_thumb.jpg",130,195,15);thumbnails[5184147]=new thumbnail(5184147,"292734","","Go_West_3_thumb.jpg",130,195,15);thumbnails[5184155]=new thumbnail(5184155,"292734","","Go_West_9_thumb.jpg",130,195,15);thumbnails[5184161]=new thumbnail(5184161,"292734","","Go_West_8_thumb.jpg",130,195,15);thumbnails[5184252]=new thumbnail(5184252,"292735","","Human_League_1_thumb.jpg",130,87,15);thumbnails[5184266]=new thumbnail(5184266,"292735","","Human_League_10_thumb.jpg",130,195,15);thumbnails[5184271]=new thumbnail(5184271,"292735","","Human_League_17_thumb.jpg",130,87,15);thumbnails[5184274]=new thumbnail(5184274,"292735","","Human_League_9_thumb.jpg",130,195,15);thumbnails[5184280]=new thumbnail(5184280,"292735","","Human_League_12_thumb.jpg",130,194,15);thumbnails[5184290]=new thumbnail(5184290,"292735","","Human_League_51_thumb.jpg",130,87,15);thumbnails[5184298]=new thumbnail(5184298,"292735","","Human_League_18_thumb.jpg",130,87,15);thumbnails[5184306]=new thumbnail(5184306,"292735","","Human_League_4_thumb.jpg",130,87,15);thumbnails[5184312]=new thumbnail(5184312,"292735","","Human_League_14_thumb.jpg",130,195,15);thumbnails[5184329]=new thumbnail(5184329,"292735","","Human_League_2_thumb.jpg",130,195,15);thumbnails[5184344]=new thumbnail(5184344,"292743","","TPau4_thumb.jpg",130,87,15);thumbnails[5184350]=new thumbnail(5184350,"292743","","TPau3_thumb.jpg",130,195,15);thumbnails[5184354]=new thumbnail(5184354,"292743","","TPau1_thumb.jpg",130,195,15);thumbnails[5184357]=new thumbnail(5184357,"292743","","TPau5_thumb.jpg",130,195,15);thumbnails[5184361]=new thumbnail(5184361,"292743","","TPau2_thumb.jpg",130,195,15);thumbnails[5184503]=new thumbnail(5184503,"292749","","Paul_Weller_4_thumb.jpg",130,195,15);thumbnails[5184512]=new thumbnail(5184512,"292749","","Paul_Weller_2_thumb.jpg",130,195,15);thumbnails[5184518]=new thumbnail(5184518,"292749","","Paul_Weller_5_thumb.jpg",130,87,15);thumbnails[5184595]=new thumbnail(5184595,"292749","","DSCF5972_thumb.jpg",130,195,15);thumbnails[5184604]=new thumbnail(5184604,"292749","","Paul_Weller_8_thumb.jpg",130,87,15);thumbnails[5184613]=new thumbnail(5184613,"292749","","Paul_Weller_6_thumb.jpg",130,87,15);thumbnails[5184628]=new thumbnail(5184628,"292749","","Paul_Weller_1_thumb.jpg",130,195,15);thumbnails[5184635]=new thumbnail(5184635,"292749","","Paul_Weller_7_thumb.jpg",130,195,15);thumbnails[5187984]=new thumbnail(5187984,"292954","","_DSC47051_thumb.jpg",130,87,15);thumbnails[5187985]=new thumbnail(5187985,"292954","","_DSC47161_thumb.jpg",130,87,15);thumbnails[5187987]=new thumbnail(5187987,"292954","","_DSC4730_thumb.jpg",130,87,15);thumbnails[5187991]=new thumbnail(5187991,"292954","","_DSC4719_thumb.jpg",130,194,15);thumbnails[5191288]=new thumbnail(5191288,"293153","","DSCF5507_thumb.jpg",130,87,15);thumbnails[5191290]=new thumbnail(5191290,"293153","","DSCF5520_thumb.jpg",130,87,15);thumbnails[5191293]=new thumbnail(5191293,"293153","","DSCF5524_thumb.jpg",130,87,15);thumbnails[5191294]=new thumbnail(5191294,"293153","","DSCF5525_thumb.jpg",130,87,15);thumbnails[5191307]=new thumbnail(5191307,"293153","","DSCF5539_thumb.jpg",130,87,15);thumbnails[5191313]=new thumbnail(5191313,"293153","","DSCF5528_thumb.jpg",130,195,15);thumbnails[5191315]=new thumbnail(5191315,"293153","","DSCF5529_thumb.jpg",130,195,15);thumbnails[5188045]=new thumbnail(5188045,"292958","","DSCF1315_thumb.jpg",130,195,15);thumbnails[5188046]=new thumbnail(5188046,"292958","","DSCF1281_thumb.jpg",130,195,15);thumbnails[5188051]=new thumbnail(5188051,"292958","","DSCF1327_thumb.jpg",130,87,15);thumbnails[5188053]=new thumbnail(5188053,"292958","","DSCF1291_thumb.jpg",130,195,15);thumbnails[5188658]=new thumbnail(5188658,"292958","","DSCF1387_thumb.jpg",130,87,15);thumbnails[5188677]=new thumbnail(5188677,"292958","","DSCF1305_thumb.jpg",130,195,15);thumbnails[5188684]=new thumbnail(5188684,"292958","","DSCF1352_thumb.jpg",130,195,15);thumbnails[5188693]=new thumbnail(5188693,"292958","","DSCF1356_thumb.jpg",130,195,15);thumbnails[5188741]=new thumbnail(5188741,"292948","","bluebells_thumb.jpg",130,87,15);thumbnails[5188835]=new thumbnail(5188835,"292948","","bolan_thumb.jpg",130,195,15);thumbnails[5191256]=new thumbnail(5191256,"292948","","my_mate_ollie_thumb.jpg",130,87,15);thumbnails[5191370]=new thumbnail(5191370,"292948","","DSCF0490_copy_thumb.jpg",130,163,15);thumbnails[5191373]=new thumbnail(5191373,"292948","","DSCF0494_copy_thumb.jpg",130,163,15);thumbnails[5189125]=new thumbnail(5189125,"39082","","poppy_thumb.jpg",130,87,15);thumbnails[5189032]=new thumbnail(5189032,"39093","","Oriental_Short_Clawed_Otter_11_thumb.jpg",130,87,15);thumbnails[5188992]=new thumbnail(5188992,"39093","","Bald_Eagle_8_thumb.jpg",130,194,15);thumbnails[5188996]=new thumbnail(5188996,"39093","","Penguin_5_thumb.jpg",130,198,15);thumbnails[5189018]=new thumbnail(5189018,"39093","","Camel_1_thumb.jpg",130,87,15);thumbnails[5189024]=new thumbnail(5189024,"39093","","Great_Grey_Owl_Yogi_1_thumb.jpg",130,87,15);thumbnails[5189123]=new thumbnail(5189123,"39093","","Gannet_6_thumb.jpg",130,89,15);thumbnails[5189255]=new thumbnail(5189255,"39093","","Swallowtail_2__thumb.jpg",130,87,15);thumbnails[5189026]=new thumbnail(5189026,"39093","","Chaffinch_thumb.jpg",130,105,15);thumbnails[5189056]=new thumbnail(5189056,"39093","","Dragonfly_7_thumb.jpg",130,215,15);thumbnails[5189060]=new thumbnail(5189060,"39093","","DSCF1262_thumb.jpg",130,87,15);var galleries=new Object();galleries[292694]=new gallery(292694,"5183449,5183445,5183441,5183435,5183426,5183421","ABC","gallery",[5183421,5183426,5183435,5183441,5183445,5183449]);galleries[292698]=new gallery(292698,"5184122,5184120,5184116,5184108,5184103,5184096,5184092,5184087","Belinda Carlise","gallery",[5184087,5184092,5184096,5184103,5184108,5184116,5184120,5184122]);galleries[293153]=new gallery(293153,"5191315,5191313,5191307,5191294,5191293,5191290,5191288","Clumber Park","gallery",[5191288,5191290,5191293,5191294,5191307,5191313,5191315]);galleries[292954]=new gallery(292954,"5187991,5187987,5187985,5187984","Derbyshire Peak District","gallery",[5187984,5187985,5187987,5187991]);galleries[39095]=new gallery(39095,"5184832,5184831,5184829,5184825,5184822,5184818,5184813,5184808,5184806,5184802","Fashion","gallery",[]);galleries[292734]=new gallery(292734,"5184161,5184155,5184147,5184143,5184137,5184132","Go West","gallery",[5184132,5184137,5184143,5184147,5184155,5184161]);galleries[292761]=new gallery(292761,"5184832,5184831,5184829,5184825,5184822,5184818,5184813,5184808,5184806,5184802","Hope&Glory Eco-Couture","gallery",[5184786,5184787,5184791,5184793,5184795,5184799,5184802,5184806,5184808,5184813,5184818,5184822,5184825,5184829,5184831,5184832]);galleries[292735]=new gallery(292735,"5184329,5184312,5184306,5184298,5184290,5184280,5184274,5184271,5184266,5184252","Human League","gallery",[5184252,5184266,5184271,5184274,5184280,5184290,5184298,5184306,5184312,5184329]);galleries[293172]=new gallery(293172,"5191787,5191784","Isle Of Wight","gallery",[5191784,5191787]);galleries[292948]=new gallery(292948,"5191373,5191370,5191256,5188835,5188741,5187881,5187879,5187878,5187877,5187874","Miscellaneous","gallery",[5187874,5187877,5187878,5187879,5187881,5188741,5188835,5191256,5191370,5191373]);galleries[292749]=new gallery(292749,"5184635,5184628,5184613,5184604,5184595,5184518,5184512,5184503","Paul Weller","gallery",[5184503,5184512,5184518,5184595,5184604,5184613,5184628,5184635]);galleries[293152]=new gallery(293152,"5191315,5191313,5191307,5191294,5191293,5191290,5191288","Places","gallery",[]);galleries[292758]=new gallery(292758,"5184746,5184740,5184737,5184734,5184730","Super Furry Animals","gallery",[5184730,5184734,5184737,5184740,5184746]);galleries[292743]=new gallery(292743,"5184361,5184357,5184354,5184350,5184344","T'Pau","gallery",[5184344,5184350,5184354,5184357,5184361]);galleries[292958]=new gallery(292958,"5188693,5188684,5188677,5188658,5188053,5188051,5188046,5188045","The Feeling","gallery",[5188045,5188046,5188051,5188053,5188658,5188677,5188684,5188693]);galleries[292755]=new gallery(292755,"5184699,5184697,5184691,5184684,5184678","The Lightning Seeds","gallery",[5184678,5184684,5184691,5184697,5184699]);galleries[39082]=new gallery(39082,"5189125","Floral Images","gallery",[5189125]);galleries[39094]=new gallery(39094,"5191787,5191784,5187991,5187987,5187985,5187984","Landscape","gallery",[]);galleries[39093]=new gallery(39093,"5189255,5189123,5189060,5189056,5189032,5189026,5189024,5189018,5188996,5188992","Wild Life","gallery",[5189032,5188992,5188996,5189018,5189024,5189123,5189255,5189026,5189056,5189060]);galleries[76958]=new gallery(76958,"5188693,5188684,5188677,5188658,5188053,5188051,5188046,5188045,5184746,5184740","Music Photography","gallery",[]);var imageSets=new Object();imageSets[1]="5191787,5191784,5191373,5191370,5191315,5191313,5191307,5191294,5191293,5191290,5191288,5191256,5189255,5189125,5189123,5189060,5189056,5189032,5189026,5189024,5189018,5188996,5188992,5188835,5188741,5188693,5188684,5188677,5188658,5188053,5188051,5188046,5188045,5187991,5187987,5187985,5187984,5187881,5187879,5187878,5187877,5187874,5184832,5184831,5184829,5184825,5184822,5184818,5184813,5184808";imageSets[3]="5191787,5191784,5191373,5191370,5191315,5191313,5191307,5191294,5191293,5191290,5191288,5191256,5189255,5189125,5189123,5189060,5189056,5189032,5189026,5189024,5189018,5188996,5188992,5188835,5188741,5188693,5188684,5188677,5188658,5188053,5188051,5188046,5188045,5187991,5187987,5187985,5187984,5187881,5187879,5187878,5187877,5187874,5184832,5184831,5184829,5184825,5184822,5184818,5184813,5184808";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/RachelA/images";break}switch(a){case 1:b="http://www1.clikpic.com/RachelA/images";break}switch(a){case 2:b="http://admin.clikpic.com/RachelA/images";break}switch(a){case 24:b="http://tpc15/clikpic/RachelA/images";break}switch(a){case 4:b="http://www.clikchurch.com/RachelA/images";break}switch(a){case 5:b="http://www2.clikpic.com/RachelA/images";break}switch(a){case 22:b="http://tpc5/clikpic/RachelA/images";break}switch(a){case 23:b="http://tpc10/clikpic/RachelA/images";break}switch(a){case 25:b="http://tpc16/clikpic/RachelA/images";break}switch(a){case 15:b="http://www3.clikpic.com/RachelA/images";break}switch(a){case 18:b="http://www4.clikpic.com/RachelA/images";break}switch(a){case 19:b="http://www5.clikpic.com/RachelA/images";break}switch(a){case 31:b="http://www7.clikpic.com/RachelA/images";break}switch(a){case 32:b="http://admin2.clikpic.com/RachelA/images";break}switch(a){case 33:b="http://www8.clikpic.com/RachelA/images";break}switch(a){case 34:b="http://www9.clikpic.com/RachelA/images";break}switch(a){case 35:b="http://admin3.clikpic.com/RachelA/images";break}switch(a){case 37:b="http://admin4.clikpic.com/RachelA/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Rachel Atkins Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;resizePhotoInfo();toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};