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[67384]=new thumbnail(67384,"6539","Teasels at White Sheet Plantation","Teasle at White Sheet Plantation_thumb.jpg",130,87,18);thumbnails[67389]=new thumbnail(67389,"6540","Moor Crichel","Moor Crichel_thumb.jpg",130,87,18);thumbnails[68022]=new thumbnail(68022,"6539","A Bluebell in Garston Wood","Bluebell GW 180405_thumb.jpg",130,195,18);thumbnails[77182]=new thumbnail(77182,"6540","Looking north from Golden Cap.","North from Golden Cap 02 250604_thumb.jpg",130,87,18);thumbnails[627821]=new thumbnail(627821,"6540","Portland from White Hill near Abbotsbury","Portland from Abbotsbury 100406_thumb.jpg",130,87,18);thumbnails[848147]=new thumbnail(848147,"6540","Looking west along Dancing Ledge","Dancing Ledge looking west 06 260207_thumb.jpg",130,199,18);thumbnails[848149]=new thumbnail(848149,"6540","Cranborne Close","Cranborne Close 150404_thumb.jpg",130,57,18);thumbnails[1157202]=new thumbnail(1157202,"6541","Bee Orchid","Bee Orchid 02 400_thumb.jpg",130,188,18);thumbnails[1157203]=new thumbnail(1157203,"6541","Bee Orchid","Bee Orchid 400_thumb.jpg",130,89,18);thumbnails[1157225]=new thumbnail(1157225,"6541","Common Spotted Orchid","Common Spotted Orchid 01 400_thumb.jpg",130,89,18);thumbnails[1157227]=new thumbnail(1157227,"6541","Common Spotted Orchid","Common Spotted Orchid 400_thumb.jpg",130,190,18);thumbnails[1157228]=new thumbnail(1157228,"6541","Common Spotted Orchids","Common Spotted Orchids 01 400_thumb.jpg",130,89,18);thumbnails[1157230]=new thumbnail(1157230,"6541","Common Spotted Orchids","Common Spotted Orchids 400_thumb.jpg",130,89,18);thumbnails[1157232]=new thumbnail(1157232,"6541","Common Twayblade","Common Twayblade 400_thumb.jpg",130,190,18);thumbnails[1157252]=new thumbnail(1157252,"6541","Early Marsh Orchid","Early Marsh Orchid 400_thumb.jpg",130,189,18);thumbnails[1157253]=new thumbnail(1157253,"6541","Early Purple Orchid","Early Purple Orchid 01 400_thumb.jpg",130,188,18);thumbnails[1157254]=new thumbnail(1157254,"6541","Early Purple Orchid","Early Purple Orchid 400_thumb.jpg",130,189,18);thumbnails[1157255]=new thumbnail(1157255,"6541","Early Spider Orchid","Early Spider Orchid 400_thumb.jpg",130,188,18);thumbnails[1157257]=new thumbnail(1157257,"6541","Fragrant Orchid","Fragrant Orchid 01 400_thumb.jpg",130,89,18);thumbnails[1157260]=new thumbnail(1157260,"6541","Fragrant Orchid","Fragrant Orchid 02 400_thumb.jpg",130,89,18);thumbnails[1157262]=new thumbnail(1157262,"6541","Fragrant Orchid","Fragrant Orchid 400_thumb.jpg",130,189,18);thumbnails[1157263]=new thumbnail(1157263,"6541","Frog Orchid","Frog Orchid 01 400_thumb.jpg",130,89,18);thumbnails[1157265]=new thumbnail(1157265,"6541","Frog Orchid","Frog Orchid 400_thumb.jpg",130,190,18);thumbnails[1157266]=new thumbnail(1157266,"6541","Greater Butterfly Orchid","Greater Butterfly Orchid 01 400_thumb.jpg",130,89,18);thumbnails[1157267]=new thumbnail(1157267,"6541","Greater Butterfly Orchid","Greater Butterfly Orchid 400_thumb.jpg",130,189,18);thumbnails[1157274]=new thumbnail(1157274,"6541","Green Winged Orchid","Green Winged Orchid 01 400_thumb.jpg",130,89,18);thumbnails[1157275]=new thumbnail(1157275,"6541","Green Winged Orchids","Green Winged Orchid 02 400_thumb.jpg",130,89,18);thumbnails[1157276]=new thumbnail(1157276,"6541","Green Winged Orchids ","Green Winged Orchid 400_thumb.jpg",130,89,18);thumbnails[1157278]=new thumbnail(1157278,"6541","Heath Spotted Orchid","Heath Spotted Orchid 400_thumb.jpg",130,188,18);thumbnails[1157279]=new thumbnail(1157279,"6541","Pyramidal Orchids","Pyramidal Orchid 01 400_thumb.jpg",130,190,18);thumbnails[1157280]=new thumbnail(1157280,"6541","Pyramidal Orchid","Pyramidal Orchid 400_thumb.jpg",130,89,18);thumbnails[1157281]=new thumbnail(1157281,"6541","Southern Marsh Orchid","Southern Marsh Orchid 400_thumb.jpg",130,190,18);thumbnails[1987265]=new thumbnail(1987265,"6542","A Comma at Garston. ","Comma GW 03 280706_thumb.jpg",130,188,18);thumbnails[1987277]=new thumbnail(1987277,"6542","An Emperor Dragonfly.","Emperor Dragon fly HH 03 200606 A_thumb.jpg",130,90,18);thumbnails[1987281]=new thumbnail(1987281,"6542","A Grass Snake at Sovell Down.","Grass snake Sovell 190308_thumb.jpg",130,195,18);thumbnails[1987301]=new thumbnail(1987301,"6542","Green Veined White butterflies.","Green veined whites nr Harley Gap 03 150806_thumb.jpg",130,87,18);thumbnails[1987327]=new thumbnail(1987327,"6542","Female Sand Lizard","Sand Lizard HH 02B 070807_thumb.jpg",130,193,18);thumbnails[1987336]=new thumbnail(1987336,"6542","Sika Stag","Sika stag Arne 04 231106 A_thumb.jpg",130,195,18);thumbnails[1987348]=new thumbnail(1987348,"6542","Silver Washed Fritillary","Silver washed fritillary GW 280604_thumb.jpg",130,97,18);thumbnails[1987369]=new thumbnail(1987369,"6539","Wood Anemones","Wood Anemones Woodlands 150404_thumb.jpg",130,195,18);thumbnails[1987377]=new thumbnail(1987377,"6539","Cowslips","Cowslips Gussage 06 040506_thumb.jpg",130,87,18);thumbnails[1987379]=new thumbnail(1987379,"6540","Durdle Door","Durdle Door west 02 110706_thumb.jpg",130,85,18);thumbnails[1987397]=new thumbnail(1987397,"6540","Poplars by the River Allen.","Poplar trees by the River Allen at Wimborne St_thumb. Giles 01 301007.jpg",130,195,18);thumbnails[1987409]=new thumbnail(1987409,"6540","White Mill Bridge and mill.","White Mill and Bridge 120308_thumb.jpg",130,85,18);thumbnails[1987417]=new thumbnail(1987417,"6540","Holt Heath","Holt Heath 150107_thumb.jpg",130,87,18);thumbnails[1987438]=new thumbnail(1987438,"6540","Win Green Hill","Win Green 05 270208_thumb.jpg",130,87,18);thumbnails[1987458]=new thumbnail(1987458,"6540","Weymouth","Weymouth 06 060306_thumb.jpg",130,87,18);thumbnails[1987469]=new thumbnail(1987469,"6540","The Spinnaker Tower","Spinnaker Tower Portsmouth 01 171007_thumb.jpg",130,195,18);thumbnails[3029865]=new thumbnail(3029865,"6541","Birds Nest Orchid","BN GW 020608 WS_thumb.jpg",130,87,18);thumbnails[3029871]=new thumbnail(3029871,"202918","Clavell Tower","Kimmeridge Clavel Tower 04 120105 WS_thumb.jpg",130,87,18);thumbnails[3029878]=new thumbnail(3029878,"202918","Knowlton church","Knowlton 031106 panorama WS_thumb.jpg",130,57,18);thumbnails[3029882]=new thumbnail(3029882,"6540","Lyme Regis","Lyme Regis 15 221008 WS_thumb.jpg",130,85,18);thumbnails[3029888]=new thumbnail(3029888,"6540","Cranborne","NE from church tower 120508 WS_thumb.jpg",130,84,18);thumbnails[3070615]=new thumbnail(3070615,"6541","Bee Orchid","BR BO 03 160608a_thumb.jpg",130,194,18);thumbnails[3070618]=new thumbnail(3070618,"6541","Early Marsh orchid","Early Marsh Orchid ssp_thumb.jpg",130,84,18);thumbnails[3328339]=new thumbnail(3328339,"6539","Agrimony","Agrimony Sovell 230708a_thumb.jpg",130,195,18);thumbnails[3328353]=new thumbnail(3328353,"6539","Bluebells","Bluebells GW 280408a_thumb.jpg",130,87,18);thumbnails[3328357]=new thumbnail(3328357,"6539","Bog Asphodel","Bog Asphodel 02 HH 010708Aa_thumb.jpg",130,92,18);thumbnails[3328379]=new thumbnail(3328379,"6539","Knapweed Broomrape","Broomrape Sovell 110608a_thumb.jpg",130,195,18);thumbnails[3328393]=new thumbnail(3328393,"6539","Cuckoo Flower","Cuckoo flower Horton 120408a_thumb.jpg",130,87,18);thumbnails[3328397]=new thumbnail(3328397,"6539","Autumn Gentian","Gentian Autumn Sovell 03 150808a_thumb.jpg",130,87,18);thumbnails[3328400]=new thumbnail(3328400,"6539","Marsh Marigold","Marsh Marigold 3X 300308 Aa_thumb.jpg",130,182,18);thumbnails[3328437]=new thumbnail(3328437,"6539","Teasel","Teasel 01 Sovell 230708a_thumb.jpg",130,195,18);thumbnails[3328443]=new thumbnail(3328443,"6539","Water-crowfoot","Water Crow foot W St G 070508a_thumb.jpg",130,195,18);thumbnails[3328446]=new thumbnail(3328446,"6539","Wood Anemone","Wood Anemone GW 01 290308a_thumb.jpg",130,195,18);thumbnails[3328483]=new thumbnail(3328483,"6541","Autumn Ladies' Tresses","Avon Heath 03 120908 AAa_thumb.jpg",130,183,18);thumbnails[3328485]=new thumbnail(3328485,"6541","Early Purple Orchid","GW 08 070508a_thumb.jpg",130,86,18);thumbnails[3328497]=new thumbnail(3328497,"202918","Horton Tower","030105 05 Aa_thumb.jpg",130,196,18);thumbnails[3328524]=new thumbnail(3328524,"202918","Sherborne Abbey","Abbey 03 220507a_thumb.jpg",130,87,18);thumbnails[3328537]=new thumbnail(3328537,"202918","Cranborne Manor","Cranborne Manor south face 01 130607 Aa_thumb.jpg",130,86,18);thumbnails[3328548]=new thumbnail(3328548,"202918","Kingston Lacey ","Kingston Lacy 270906a_thumb.jpg",130,87,18);thumbnails[3328558]=new thumbnail(3328558,"202918","Forde Abbey","Forde Abbey 01 120505_thumb.jpg",130,87,18);thumbnails[3328561]=new thumbnail(3328561,"202918","Sherborne Castle","New castle 01 220507a_thumb.jpg",130,87,18);thumbnails[3328566]=new thumbnail(3328566,"202918","Sandford Orcas Manor","Sandford Orcas Manor 03 190904a_thumb.jpg",130,87,18);thumbnails[3328570]=new thumbnail(3328570,"202918","White Mill","White Mill 02 120308a_thumb.jpg",130,87,18);thumbnails[3328574]=new thumbnail(3328574,"202918","Wimborne Minster","Wimborne Minster 01 070207a_thumb.jpg",130,86,18);thumbnails[3328575]=new thumbnail(3328575,"202918","Wolfeton House","Wolfeton House south side 03 200904a_thumb.jpg",130,80,18);thumbnails[3393605]=new thumbnail(3393605,"207231","Poppies","Poppies Knowlton 03 090606 PR Aa_thumb.jpg",130,92,18);thumbnails[3393606]=new thumbnail(3393606,"207231","Pyramidal orchid","Pyramidal MD 04 270606 Aa_thumb.jpg",130,92,18);thumbnails[3393614]=new thumbnail(3393614,"207231","Snowdrops","Snowdrops Remedy Oak 09 B 070205 P edgesAAa_thumb.jpg",130,87,18);thumbnails[3393620]=new thumbnail(3393620,"207231","Water Lillies","Water lillies Semley 090804 PR Aa_thumb.jpg",130,92,18);thumbnails[3393627]=new thumbnail(3393627,"207231","Wood Anemones","Wood Anemones Woodlands 150404 Aa_thumb.jpg",130,92,18);thumbnails[3587825]=new thumbnail(3587825,"6540","Larch trees","Larch_view_QC_thumb.jpg",130,195,18);thumbnails[3587832]=new thumbnail(3587832,"6540","SE from Portland Bill.","SE_from_Portland_Bill_190304_P_thumb.jpg",130,195,18);thumbnails[4247414]=new thumbnail(4247414,"6542","A Four Spotted Chaser","Four_Spotted_Chaser_HH_14_020609_thumb.jpg",130,195,18);thumbnails[4861879]=new thumbnail(4861879,"6539","Mallow","Mallow_Monmouth_Beach_Lyme_100609_thumb.jpg",130,195,18);thumbnails[4861881]=new thumbnail(4861881,"6539","Poppies","Poppies_Cranborne_02_240609_thumb.jpg",130,87,18);thumbnails[4861883]=new thumbnail(4861883,"6539","Primroses","Primrose_GW_01_030409A_thumb.jpg",130,87,18);thumbnails[6266551]=new thumbnail(6266551,"6542","Common Blue","Common_Blue_Corfe_Mullen_04_180510a_thumb.jpg",130,87,18);thumbnails[6266601]=new thumbnail(6266601,"348337","Goldfinch","Goldfinch_3X_01_040409a_thumb.jpg",130,87,18);thumbnails[6266616]=new thumbnail(6266616,"348337","Goosander","Gooseander_Eyeworth_170210a_thumb.jpg",130,195,18);thumbnails[6266627]=new thumbnail(6266627,"348337","Great Spotted Woodpecker","Great_Spotted_Woodpecker_3X_181209a_thumb.jpg",130,185,18);thumbnails[6266634]=new thumbnail(6266634,"348337","Red Kite","Red_Kite_Martin_Down_220509a_thumb.jpg",130,86,18);thumbnails[6266644]=new thumbnail(6266644,"348337","Red-legged Partridge","Red_Legged_Partridge_Remedy_Oak_05_050610a_thumb.jpg",130,87,18);thumbnails[6266654]=new thumbnail(6266654,"348337","Siskin","Siskin_04_Ringwood_270210a_thumb.jpg",130,194,18);thumbnails[6266659]=new thumbnail(6266659,"348337","Yellow Hammer","Yellow_Hammer_MD_230610a_thumb.jpg",130,86,18);thumbnails[6266671]=new thumbnail(6266671,"202918","Lacock Abbey","Lacock_Abbey_040510a_thumb.jpg",130,86,18);thumbnails[6266678]=new thumbnail(6266678,"6540","Lulworth Cove","Lulworth_Cove_03_041007a_thumb.jpg",130,87,18);thumbnails[6266690]=new thumbnail(6266690,"6539","Snowdrops","Snowdrop_Ringwood_01_100310a_thumb.jpg",130,195,18);thumbnails[6527448]=new thumbnail(6527448,"6542","Wasp Spider","Wasp_Spider_QC_01_110810a_thumb.jpg",130,86,18);var galleries=new Object();galleries[207231]=new gallery(207231,"3393627,3393620,3393614,3393606,3393605","Altered images","gallery",[3393605,3393606,3393614,3393620,3393627]);galleries[6542]=new gallery(6542,"6527448,6266551,4247414,1987348,1987336,1987327,1987301,1987281,1987277,1987265","Animals and insects","gallery",[1987265,1987277,1987281,1987301,1987327,1987336,1987348,4247414,6266551,6527448]);galleries[348337]=new gallery(348337,"6266659,6266654,6266644,6266634,6266627,6266616,6266601","Birds","gallery",[6266601,6266616,6266627,6266634,6266644,6266654,6266659]);galleries[202918]=new gallery(202918,"6266671,3328575,3328574,3328570,3328566,3328561,3328558,3328548,3328537,3328524","Buildings","gallery",[3029871,3029878,3328497,3328524,3328537,3328548,3328558,3328561,3328566,3328570,3328574,3328575,6266671]);galleries[6540]=new gallery(6540,"6266678,3587832,3587825,3029888,3029882,1987469,1987458,1987438,1987417,1987409","Landscapes and seascapes","gallery",[67389,77182,627821,848147,848149,1987379,1987397,1987409,1987417,1987438,1987458,1987469,3029882,3029888,3587825,3587832,6266678]);galleries[6541]=new gallery(6541,"3328485,3328483,3070618,3070615,3029865,1157281,1157280,1157279,1157278,1157276","Some English Orchids","gallery",[1157202,1157203,1157225,1157227,1157228,1157230,1157232,1157252,1157253,1157254,1157255,1157257,1157260,1157262,1157263,1157265,1157266,1157267,1157274,1157275,1157276,1157278,1157279,1157280,1157281,3029865,3070615,3070618,3328483,3328485]);galleries[6539]=new gallery(6539,"6266690,4861883,4861881,4861879,3328446,3328443,3328437,3328400,3328397,3328393","Wild flowers","gallery",[67384,68022,1987369,1987377,3328339,3328353,3328357,3328379,3328393,3328397,3328400,3328437,3328443,3328446,4861879,4861881,4861883,6266690]);var imageSets=new Object();imageSets[1]="6527448,6266690,6266678,6266671,6266659,6266654,6266644,6266634,6266627,6266616,6266601,6266551,4861883,4861881,4861879,4247414,3587832,3587825,3393627,3393620,3393614,3393606,3393605,3328575,3328574,3328570,3328566,3328561,3328558,3328548,3328537,3328524,3328497,3328485,3328483,3328446,3328443,3328437,3328400,3328397,3328393,3328379,3328357,3328353,3328339,3070618,3070615,3029888,3029882,3029878";imageSets[3]="6527448,6266690,6266678,6266671,6266659,6266654,6266644,6266634,6266627,6266616,6266601,6266551,4861883,4861881,4861879,4247414,3587832,3587825,3393627,3393620,3393614,3393606,3393605,3328575,3328574,3328570,3328566,3328561,3328558,3328548,3328537,3328524,3328497,3328485,3328483,3328446,3328443,3328437,3328400,3328397,3328393,3328379,3328357,3328353,3328339,3070618,3070615,3029888,3029882,3029878";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/Samturtle/images";break}switch(a){case 1:b="http://www1.clikpic.com/Samturtle/images";break}switch(a){case 2:b="http://admin.clikpic.com/Samturtle/images";break}switch(a){case 24:b="http://tpc15/clikpic/Samturtle/images";break}switch(a){case 4:b="http://www.clikchurch.com/Samturtle/images";break}switch(a){case 5:b="http://www2.clikpic.com/Samturtle/images";break}switch(a){case 22:b="http://tpc5/clikpic/Samturtle/images";break}switch(a){case 23:b="http://tpc10/clikpic/Samturtle/images";break}switch(a){case 25:b="http://tpc16/clikpic/Samturtle/images";break}switch(a){case 15:b="http://www3.clikpic.com/Samturtle/images";break}switch(a){case 18:b="http://www4.clikpic.com/Samturtle/images";break}switch(a){case 19:b="http://www5.clikpic.com/Samturtle/images";break}switch(a){case 31:b="http://www7.clikpic.com/Samturtle/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Samturtle/images";break}switch(a){case 33:b="http://www8.clikpic.com/Samturtle/images";break}switch(a){case 34:b="http://www9.clikpic.com/Samturtle/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Samturtle/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Samturtle/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="Sam Turtle 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> 				&pound;"+(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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};