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[5434690]=new thumbnail(5434690,"307141","Nairn Beach","Nairn-East-Beach-flotsam_thumb.jpg",86,130,32);thumbnails[5434739]=new thumbnail(5434739,"307141","Sweeping Bay","Sweeping_Bay_thumb.JPG",130,86,32);thumbnails[5434745]=new thumbnail(5434745,"307141","Diagonal pinnacle","Diagonal-Pinnacle_thumb.jpg",86,130,32);thumbnails[5434766]=new thumbnail(5434766,"307145","Angkor Wat","Angkor-Wat-sunrise_thumb.jpg",130,87,32);thumbnails[5434800]=new thumbnail(5434800,"307139","Twilight at Worbarrow Bay","Worbarrow-sunset1_thumb.jpg",130,87,32);thumbnails[5434806]=new thumbnail(5434806,"307139","Worbarrow Tout","Worbarrow-tout_thumb.jpg",87,130,32);thumbnails[5434832]=new thumbnail(5434832,"307139","Embedded","Embedded_thumb.jpg",130,87,32);thumbnails[5434836]=new thumbnail(5434836,"307145","Sisterhood","Village-siblings-Kampot_thumb.jpg",130,87,32);thumbnails[5434837]=new thumbnail(5434837,"307145","Aspara dancer","Aspara-dancer-2_thumb.jpg",87,130,32);thumbnails[5434838]=new thumbnail(5434838,"307145","Woman and rice paddy","Woman-in-rice-paddy_thumb.jpg",130,87,32);thumbnails[5448658]=new thumbnail(5448658,"307145","Bayon Faces","Bayon-Faces-1_thumb.jpg",87,130,32);thumbnails[5448660]=new thumbnail(5448660,"307145","Buddhas at Wat Phnom","Buddhas-at-Wat-Phnom_thumb.jpg",87,130,32);thumbnails[5448662]=new thumbnail(5448662,"307145","One more breathe","Fishy-tail_thumb.jpg",87,130,32);thumbnails[5448665]=new thumbnail(5448665,"307145","Girl, Kampot","Pyjama-girl-Kampot_thumb.jpg",87,130,32);thumbnails[5448668]=new thumbnail(5448668,"307145","Southern Klang, Angkor Thom","Southern-Klang-Angkor-Thom_thumb.jpg",87,130,32);thumbnails[5448673]=new thumbnail(5448673,"307145","The swimmer","Swimmer_thumb.jpg",87,130,32);thumbnails[5448678]=new thumbnail(5448678,"307145","Water seller","Water-carrier-Kampot_thumb.jpg",87,130,32);thumbnails[5456833]=new thumbnail(5456833,"307139","Seagrass","Hunstanton-seagrass_thumb.jpg",86,130,32);thumbnails[5771791]=new thumbnail(5771791,"307139","All at peace","Peace_Sandymouth-bay_thumb.jpg",87,130,32);thumbnails[2556620]=new thumbnail(2556620,"307139","Seaweed","Snettisham_Seaweed_thumb.JPG1.jpg",86,130,32);thumbnails[2556659]=new thumbnail(2556659,"307141","Study in Blue","Burghead_twilight_thumb.JPG",84,130,32);thumbnails[2556715]=new thumbnail(2556715,"307139","Limpets","Saltwick-Limpets_thumb.jpg",86,130,32);thumbnails[2556714]=new thumbnail(2556714,"307139","Think Again","Saltwick-Bay-thought-bubble_thumb.jpg",130,86,32);thumbnails[2556653]=new thumbnail(2556653,"307141","The Pinnacle","Pinnacle_at_Hopeman_thumb.JPG",86,130,32);thumbnails[2167448]=new thumbnail(2167448,"307139","Hunstanton Seascape","Hunstanton_Seascape_thumb.JPG.jpg",130,86,32);thumbnails[2556718]=new thumbnail(2556718,"307141","Cummingston rocks","Seaweed-stones-2_thumb.jpg",86,130,32);thumbnails[2556607]=new thumbnail(2556607,"307139","Hunstanton Cliffs","Hunstanton_Cliffs_thumb.JPG.jpg",86,130,32);thumbnails[2556649]=new thumbnail(2556649,"307141","Into the Blue","Into_the_blue_thumb.JPG",86,130,32);thumbnails[2529090]=new thumbnail(2529090,"307139","Green Dream","Green_Dream_thumb.JPG.jpg",130,86,32);thumbnails[2556618]=new thumbnail(2556618,"307139","Beach on Fire","Beach_on _Fire_thumb.JPG2.jpg",86,130,32);thumbnails[2556651]=new thumbnail(2556651,"307141","The Steps","Hopeman_Steps_thumb.JPG",86,130,32);thumbnails[2529153]=new thumbnail(2529153,"307141","Splash!","Splash!_thumb.JPG",130,87,32);thumbnails[2556624]=new thumbnail(2556624,"307139","Snettisham sunset","Snettisham_Sunset_thumb.JPG1.jpg",87,130,32);thumbnails[2688160]=new thumbnail(2688160,"307143","Lotus Candles Seller","Candles_thumb.jpg",86,130,32);thumbnails[2688195]=new thumbnail(2688195,"307143","Contrast","Contrasts_thumb.jpg",87,130,32);thumbnails[2688198]=new thumbnail(2688198,"307143","In the spotlight","In_the_Spotlight_thumb.jpg",86,130,32);thumbnails[5434724]=new thumbnail(5434724,"307142","Beinn Aliigin","Beinn_Alligin_thumb.jpg",87,130,32);thumbnails[5434728]=new thumbnail(5434728,"307142","Beinn Eighe from Loch Clair","Beinn_Eighe_from_Loch_Coulin_thumb.jpg",130,87,32);thumbnails[5434730]=new thumbnail(5434730,"307142","The Valley","Coire_Mhic_Nobuil_valley_thumb.jpg",130,87,32);thumbnails[5434732]=new thumbnail(5434732,"307142","Flowerdale Glen waterfall","Flowerdale_Glen_waterfall_thumb.jpg",87,130,32);thumbnails[5434734]=new thumbnail(5434734,"307142","Horns of Alligin","Horns_of_Alligin_thumb.jpg",87,130,32);thumbnails[5434736]=new thumbnail(5434736,"307142","Liathach reflection","Liathach_reflection_thumb.jpg",130,87,32);thumbnails[5434743]=new thumbnail(5434743,"307142","Rock patterns","Rock_detail_thumb.jpg",130,87,32);thumbnails[5434747]=new thumbnail(5434747,"307142","Slioch","Slioch_thumb.jpg",87,130,32);thumbnails[5434761]=new thumbnail(5434761,"307142","Mirrored leafs","Double-leaf-rock_thumb.jpg",130,87,32);thumbnails[5434763]=new thumbnail(5434763,"307142","Quartz and Moss","Quartz_and_moss_thumb.jpg",87,130,32);thumbnails[5434813]=new thumbnail(5434813,"307140","Waterfall at Middle Black Clough","Black-Clough-waterfall_thumb.jpg",86,130,32);thumbnails[5434818]=new thumbnail(5434818,"307140","Foxgloves in the Valley","Langendale-purple2_thumb.jpg",87,130,32);thumbnails[5434821]=new thumbnail(5434821,"307140","View into the valley","Langendale_thumb.jpg",86,130,32);thumbnails[5434827]=new thumbnail(5434827,"307140","Waters meet","Padley-Gorge-leafs_thumb.jpg",87,130,32);thumbnails[5434831]=new thumbnail(5434831,"307140","Twilight tease","Peaks-sunset-2_thumb.jpg",87,130,32);thumbnails[5434834]=new thumbnail(5434834,"307140","Old and new","Re-birth_thumb.jpg",87,130,32);thumbnails[5434835]=new thumbnail(5434835,"307142","Peaking through","Grass_and_hailstones_thumb.jpg",130,87,32);thumbnails[5456820]=new thumbnail(5456820,"307140","Long and lonely path","Tree-path_thumb.jpg",87,130,32);thumbnails[5513055]=new thumbnail(5513055,"307143","It's only a game","national-obsession_thumb.jpg",86,130,32);thumbnails[5513068]=new thumbnail(5513068,"307143","Sadhu","Saddhu-Orrcha_thumb.jpg",87,130,32);thumbnails[5569529]=new thumbnail(5569529,"307143","Putting out the washing","Washing_thumb.jpg",130,86,32);thumbnails[5569539]=new thumbnail(5569539,"307143","Collecting firewood","Firewood_thumb.jpg",130,86,32);thumbnails[5569541]=new thumbnail(5569541,"307143","Curves in the palace","Palace_thumb.jpg",86,130,32);thumbnails[5862894]=new thumbnail(5862894,"307142","Ben A'an Stream","Ben-Aan-stream_thumb.jpg",87,130,32);thumbnails[5862950]=new thumbnail(5862950,"307142","View from Ben Ledi","Ben-Ledi-view_thumb.jpg",87,130,32);thumbnails[5863011]=new thumbnail(5863011,"307142","Leaf and moss","Leaf-and-moss_thumb.jpg",87,130,32);thumbnails[5863022]=new thumbnail(5863022,"307142","Morning light on Loch Venachar","Morning-light-Loch-Venachar_thumb.jpg",87,130,32);thumbnails[5863044]=new thumbnail(5863044,"307142","Stob Choire an Lochain","Stob-Coire-an-Lochain2_thumb.jpg",87,130,32);thumbnails[5863063]=new thumbnail(5863063,"307142","Nestled","Nestled_thumb.jpg",87,130,32);thumbnails[2167424]=new thumbnail(2167424,"307140","Misty River Cam","Fogbound_River_Cam_thumb.JPG.jpg",130,86,32);thumbnails[5771798]=new thumbnail(5771798,"307140","Snow and Tree","Snowfield_Linton_thumb.jpg",87,130,32);thumbnails[2556637]=new thumbnail(2556637,"307140","Curve in the Swale","Curve_in_the_Swale_thumb.JPG1.jpg",86,130,32);thumbnails[2167536]=new thumbnail(2167536,"307140","Lonesome Tree","Swaledale_Lone_Tree_thumb.JPG.jpg",130,86,32);thumbnails[2167532]=new thumbnail(2167532,"307142","Stob na Broige","Stob_na_Broige_from_Glen_Etive_thumb.JPG.jpg",130,86,32);thumbnails[2556608]=new thumbnail(2556608,"307140","Poppy field","Norfolk_Poppies_thumb.JPG.jpg",86,130,32);thumbnails[2167452]=new thumbnail(2167452,"307140","Razor Sharp ","Razor_Sharp _Field_thumb.JPG.jpg",130,87,32);thumbnails[2167453]=new thumbnail(2167453,"307140","River Cam","River_Cam_at_Little_Thetford_thumb.JPG.jpg",130,87,32);thumbnails[2167451]=new thumbnail(2167451,"307140","New Bedford River","New_Bedford_River_at_Sutton_Gault_thumb.JPG.jpg",130,86,32);thumbnails[2556639]=new thumbnail(2556639,"307140","Swale Questions","Questions_thumb.JPG1.jpg",86,130,32);thumbnails[2556641]=new thumbnail(2556641,"307142","Sron na Creise","Sron_na_Creise_from_River_Etive_thumb.JPG1.jpg",86,130,32);thumbnails[2556667]=new thumbnail(2556667,"307140","Excluded","Not_in_the_Gang_thumb.JPG",86,130,32);thumbnails[2167457]=new thumbnail(2167457,"307140","River Lark","River_Lark_at_Prickwillow_thumb.JPG.jpg",130,86,32);thumbnails[2556609]=new thumbnail(2556609,"307140","Twilight tree","Twilight_Tree_thumb.JPGt.jpg",86,130,32);thumbnails[2167446]=new thumbnail(2167446,"307140","Field of Hay Bales","Hay_Balesk_thumb.JPG.jpg",130,86,32);thumbnails[2167422]=new thumbnail(2167422,"307140","Fertile Land","Fertile_Land_thumb.JPG.jpg",130,86,32);thumbnails[2556710]=new thumbnail(2556710,"307140","Moss and leaf","Peak-detail_thumb.jpg",130,86,32);thumbnails[2556636]=new thumbnail(2556636,"307142","Am Bodach","Am_Bodach_ Glencoe_thumb.JPG1.jpg",86,130,32);thumbnails[2167442]=new thumbnail(2167442,"307140","Hay Bales at sunset","Hay_Bales_at Sunset_thumb.JPG.jpg",130,86,32);thumbnails[2167461]=new thumbnail(2167461,"307140","Tree at Twilight","Tree_at_twilight_thumb.JPG.jpg",130,87,32);thumbnails[5434765]=new thumbnail(5434765,"307144","Mount Siguniang and the three sisters","Mt-Siguniangshan-and-three-_thumb.jpg",130,87,32);thumbnails[5448685]=new thumbnail(5448685,"307144","Alpenglow, Rilong","Alpenglow-Rilong_thumb.jpg",87,130,32);thumbnails[5448690]=new thumbnail(5448690,"307144","Chillis","Chillis-Jiaju-Danba_thumb.jpg",130,87,32);thumbnails[5448694]=new thumbnail(5448694,"307144","Chenresig Mountain","Chenresig-Mountain-South-Fa_thumb.jpg",87,130,32);thumbnails[5448703]=new thumbnail(5448703,"307144","Mount Siguniang and birches","Mt-Siguniangshan-and-birche_thumb.jpg",87,130,32);thumbnails[5448722]=new thumbnail(5448722,"307144","Woman, Tagong","Old-woman-II-Tagong_thumb.jpg",87,130,32);thumbnails[5485310]=new thumbnail(5485310,"307144","Lamasery and mountains","Lamasery-and-mountains-Tag_thumb.jpg",130,87,32);thumbnails[5485319]=new thumbnail(5485319,"307144","Prayerwheels","Prayer-wheels-Tagong_thumb.jpg",87,130,32);thumbnails[5485323]=new thumbnail(5485323,"307144","Girl","Girl-Litang_thumb.jpg",87,130,32);thumbnails[5485332]=new thumbnail(5485332,"307144","Towers","Towers-Jiaju-Danba_thumb.jpg",87,130,32);thumbnails[5485339]=new thumbnail(5485339,"307144","Woman with prayerwheel","Woman-and-prayerwheel-II-T_thumb.jpg",87,130,32);thumbnails[5464148]=new thumbnail(5464148,"307135","Cisco","Cisco_thumb.jpg",86,130,32);thumbnails[5464151]=new thumbnail(5464151,"307135","Dead and Alive","Dead-and-alive-Arches-NP_thumb.jpg",130,86,32);thumbnails[5464152]=new thumbnail(5464152,"307135","Sunrise at Dead Horse Point State Park","Dead-Horse-Point-State-Park_thumb.jpg",130,86,32);thumbnails[5464154]=new thumbnail(5464154,"307135","Gnarled tree","Gnarled-tree-Arches-nation_thumb.jpg",86,130,32);thumbnails[5464157]=new thumbnail(5464157,"307135","Green River from the Overlook","Green-River-from-Overlook-_thumb.jpg",130,86,32);thumbnails[5464158]=new thumbnail(5464158,"307135","The Way to Aztec Butte","The-Way-to-Aztec-Butte-Can_thumb.jpg",130,87,32);thumbnails[5464161]=new thumbnail(5464161,"307135","Survivors","Tree-Dead-Horse-Point-stat_thumb.jpg",130,86,32);thumbnails[5464162]=new thumbnail(5464162,"307135","Turret Arch seen through the Window","Turret-through-Windows-Arch_thumb.jpg",130,87,32);thumbnails[5512730]=new thumbnail(5512730,"307135","Vastness","Vastness-Canyonlands-NP_thumb.jpg",130,87,32);var galleries=new Object();galleries[307145]=new gallery(307145,"5448678,5448673,5448668,5448665,5448662,5448660,5448658,5434838,5434837,5434836","Cambodia","gallery",[5434766,5434836,5434837,5434838,5448658,5448660,5448662,5448665,5448668,5448673,5448678]);galleries[307137]=new gallery(307137,"5771798,5771791,5456833,5456820,5434834,5434832,5434831,5434827,5434821,5434818","England","gallery",[]);galleries[307139]=new gallery(307139,"5771791,5456833,5434832,5434806,5434800,2556715,2556714,2556624,2556620,2556618","The coast","gallery",[5434800,5434806,5434832,5456833,5771791,2556620,2556715,2556714,2167448,2556607,2529090,2556618,2556624]);galleries[307141]=new gallery(307141,"2529153","The coast","gallery",[5434690,5434739,5434745,2556659,2556653,2556718,2556649,2556651,2529153]);galleries[307143]=new gallery(307143,"5569541,5569539,5569529,5513068,5513055,2688198,2688195,2688160","India","gallery",[2688160,2688195,2688198,5513055,5513068,5569529,5569539,5569541]);galleries[307138]=new gallery(307138,"2529153,2167532","Scotland","gallery",[]);galleries[307140]=new gallery(307140,"5771798,5456820,5434834,5434831,5434827,5434821,5434818,5434813,2556710,2556667","The countryside","gallery",[5434813,5434818,5434821,5434827,5434831,5434834,5456820,2167424,5771798,2556637,2167536,2556608,2167452,2167453,2167451,2556639,2556667,2167457,2556609,2167446,2167422,2556710,2167442,2167461]);galleries[307142]=new gallery(307142,"2167532","The countryside","gallery",[5434724,5434728,5434730,5434732,5434734,5434736,5434743,5434747,5434761,5434763,5434835,5862894,5862950,5863011,5863022,5863044,5863063,2167532,2556641,2556636]);galleries[307144]=new gallery(307144,"5485339,5485332,5485323,5485319,5485310,5448722,5448703,5448694,5448690,5448685","China","gallery",[5434765,5448685,5448690,5448694,5448703,5448722,5485310,5485319,5485323,5485332,5485339]);galleries[308721]=new gallery(308721,"5569541,5569539,5569529,5513068,5513055,5512730,5485339,5485332,5485323,5485319","Rest of the World","gallery",[]);galleries[307135]=new gallery(307135,"5512730,5464162,5464161,5464158,5464157,5464154,5464152,5464151,5464148","USA","gallery",[5464148,5464151,5464152,5464154,5464157,5464158,5464161,5464162,5512730]);var imageSets=new Object();imageSets[1]="2167452,2167442,2167424";imageSets[2]="2529153,2167532";imageSets[3]="5434690,2688198,2688195,2688160,2556715,2556714,2556659,2556653,2556651,2556649,2556624,2556620,2556618,2556607,2529153,2529090,2167448";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/MeekymanPhotography/images";break}switch(a){case 1:b="http://www1.clikpic.com/MeekymanPhotography/images";break}switch(a){case 2:b="http://admin.clikpic.com/MeekymanPhotography/images";break}switch(a){case 24:b="http://tpc15/clikpic/MeekymanPhotography/images";break}switch(a){case 4:b="http://www.clikchurch.com/MeekymanPhotography/images";break}switch(a){case 5:b="http://www2.clikpic.com/MeekymanPhotography/images";break}switch(a){case 22:b="http://tpc5/clikpic/MeekymanPhotography/images";break}switch(a){case 23:b="http://tpc10/clikpic/MeekymanPhotography/images";break}switch(a){case 25:b="http://tpc16/clikpic/MeekymanPhotography/images";break}switch(a){case 15:b="http://www3.clikpic.com/MeekymanPhotography/images";break}switch(a){case 18:b="http://www4.clikpic.com/MeekymanPhotography/images";break}switch(a){case 19:b="http://www5.clikpic.com/MeekymanPhotography/images";break}switch(a){case 31:b="http://www7.clikpic.com/MeekymanPhotography/images";break}switch(a){case 32:b="http://admin2.clikpic.com/MeekymanPhotography/images";break}switch(a){case 33:b="http://www8.clikpic.com/MeekymanPhotography/images";break}switch(a){case 34:b="http://www9.clikpic.com/MeekymanPhotography/images";break}switch(a){case 35:b="http://admin3.clikpic.com/MeekymanPhotography/images";break}switch(a){case 37:b="http://admin4.clikpic.com/MeekymanPhotography/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="'+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="Meekyman 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;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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</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="meekgraham@hotmail.com">';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="meekgraham@hotmail.com">';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+'")'})}}};