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[1562917]=new thumbnail(1562917,"","","ClikpicBoats1_thumb.jpg",130,87,1);thumbnails[1624361]=new thumbnail(1624361,"110128","Loch Linnhe","loch-linnhe_thumb.jpg",130,87,1);thumbnails[1624362]=new thumbnail(1624362,"110128","Loch Moy","loch-moy_thumb.jpg",130,179,1);thumbnails[1624364]=new thumbnail(1624364,"110128","Loch Pityoulish","loch-pity-alternative_thumb.jpg",130,173,1);thumbnails[1624365]=new thumbnail(1624365,"110128","Loch Ruthven","Loch-Ruthven_thumb.jpg",130,87,1);thumbnails[1624555]=new thumbnail(1624555,"110128","Loch Ruthven","ruthven-2_thumb.jpg",130,87,1);thumbnails[1624614]=new thumbnail(1624614,"110145","Emma","emma_thumb.jpg",130,190,1);thumbnails[1624615]=new thumbnail(1624615,"110145","Julia","julia_thumb.jpg",130,194,1);thumbnails[1624622]=new thumbnail(1624622,"110145","Simon","simon_thumb.jpg",130,191,1);thumbnails[1624633]=new thumbnail(1624633,"110145","Tony","tony_thumb.jpg",130,194,1);thumbnails[1624638]=new thumbnail(1624638,"110128","Cement Works Sunrise","cement-wks-2-adjusted-not-sharp_thumb.jpg",130,87,1);thumbnails[1624642]=new thumbnail(1624642,"110128","Full Moon Over Emley","full-moon-over-emley_thumb.jpg",130,194,1);thumbnails[1624657]=new thumbnail(1624657,"110128","Sunrise Juxtaposition","sunrise-over-emley_thumb.jpg",130,63,1);thumbnails[1624736]=new thumbnail(1624736,"110158","Eggsactly One Soldier","eggs-fettled_thumb.jpg",130,55,1);thumbnails[1624738]=new thumbnail(1624738,"189901","Lipstick","lipstick_thumb.jpg",130,87,1);thumbnails[1624740]=new thumbnail(1624740,"110158","Mascara","mascara_thumb.jpg",130,98,1);thumbnails[1624742]=new thumbnail(1624742,"110158","Nail Varnish","nail-varnish_thumb.jpg",130,91,1);thumbnails[1624745]=new thumbnail(1624745,"110158","Primary Colours & Shadow","primary-colours-and-shadow_thumb.jpg",130,88,1);thumbnails[1624749]=new thumbnail(1624749,"110158","Seats","scot-parl-seats-2-sharp_thumb.jpg",130,86,1);thumbnails[1625797]=new thumbnail(1625797,"110194","Rochelle","Rochelle_thumb.jpg",130,155,1);thumbnails[1625799]=new thumbnail(1625799,"110196","Sculptors Window","Sculptorsind7_thumb.jpg",130,200,1);thumbnails[1625802]=new thumbnail(1625802,"110195","Seal Sands","seal_sands_thumb.jpg",130,82,1);thumbnails[1625807]=new thumbnail(1625807,"189902","Stark Brookes2","Stk-Brksteam_thumb.jpg",130,87,1);thumbnails[1625810]=new thumbnail(1625810,"189898","TV Studio","studio1_thumb.jpg",130,87,1);thumbnails[1625812]=new thumbnail(1625812,"110196","","teatime1430_thumb.jpg",130,87,1);thumbnails[1625814]=new thumbnail(1625814,"110194","The Conductor","The-Conductor_thumb.jpg",130,155,1);thumbnails[1625821]=new thumbnail(1625821,"110195","Warkwoth Castle","warkworth+light3_thumb.jpg",130,87,1);thumbnails[1625837]=new thumbnail(1625837,"189902","Stark Brookes","Group_Stk_Brooks1_thumb.jpg",130,99,1);thumbnails[1625839]=new thumbnail(1625839,"189898","Brookes Mill","mill11_thumb.jpg",130,83,1);thumbnails[1625842]=new thumbnail(1625842,"189898","Brookes Mill 2","mill_floor21_thumb.jpg",130,87,1);thumbnails[1625847]=new thumbnail(1625847,"110196","Pholiota","Pholiota1_thumb.jpg",130,87,1);thumbnails[1625929]=new thumbnail(1625929,"110194","The Lacemaker","lacemaker_thumb.jpg",130,150,1);thumbnails[1625934]=new thumbnail(1625934,"110196","Entranced","Entranced_thumb.jpg",130,96,1);thumbnails[1625935]=new thumbnail(1625935,"189898","Cirencester Roof","Ciren_roof_thumb.jpg",130,83,1);thumbnails[1625938]=new thumbnail(1625938,"110195","Buttermere","buttermere_thumb.jpg",130,180,1);thumbnails[1625943]=new thumbnail(1625943,"110196","Poppies","Pink_poppies_thumb.jpg",130,87,1);thumbnails[1625946]=new thumbnail(1625946,"110194","Rhea","Rhea2_prt_thumb.jpg",130,144,1);thumbnails[1625949]=new thumbnail(1625949,"110195","Rosthwaite","rosrhwaite+mist2_thumb.jpg",130,84,1);thumbnails[1625952]=new thumbnail(1625952,"189901","Tea set","Tset_landscape_thumb.jpg",130,92,1);thumbnails[1625968]=new thumbnail(1625968,"110195","Wensleydale","swaledale_thumb.jpg",130,57,1);thumbnails[1625973]=new thumbnail(1625973,"110196","The Window","The-Windowsepia_thumb.jpg",130,194,1);thumbnails[1625986]=new thumbnail(1625986,"110195","Tuscan Dawn","Tuscan-Dawn_thumb.jpg",130,67,1);thumbnails[1626002]=new thumbnail(1626002,"110196","","snowboarder_thumb.jpg",130,76,1);thumbnails[1632062]=new thumbnail(1632062,"110158","The Word - Pure & Simple","bible-perspective-2-sharp_thumb.jpg",130,194,1);thumbnails[1632064]=new thumbnail(1632064,"189898","Clock Tower Brookes Mill","clock-tower-modified-web_thumb.jpg",130,178,1);thumbnails[1632065]=new thumbnail(1632065,"189898","Attic - Brookes Mill","attic-modified_thumb.jpg",130,87,1);thumbnails[1632071]=new thumbnail(1632071,"189901","Champagne Flutes","flute-1-remove-reflect_thumb.jpg",130,87,1);thumbnails[1632073]=new thumbnail(1632073,"189898","Brookes Mill","old-mill_thumb.jpg",130,93,1);thumbnails[1634419]=new thumbnail(1634419,"189901","Tuscan Wines","Wine-advert2_thumb.jpg",130,212,1);thumbnails[1663231]=new thumbnail(1663231,"110195","Trees3 - Dovestone","trees3_thumb.jpg",130,87,1);thumbnails[1737926]=new thumbnail(1737926,"110158","Eggsactly Reflected","eegsactly-reflected-use_thumb.jpg",130,183,1);thumbnails[1737949]=new thumbnail(1737949,"110158","Eggsactly Timed","eggsactly-timed-use_thumb.jpg",130,93,1);thumbnails[2392165]=new thumbnail(2392165,"110128","Moraine Lake","moraine-lake-finished_thumb.jpg",130,194,1);thumbnails[2392167]=new thumbnail(2392167,"110128","Morant's Curve","morantz-curve-2_thumb.jpg",130,87,1);thumbnails[2392169]=new thumbnail(2392169,"110128","Vancouver Skyline","waterfront-vancouver_thumb.jpg",130,73,1);thumbnails[2974262]=new thumbnail(2974262,"","","seal_sands_mono2_thumb.jpg",130,82,1);thumbnails[2985130]=new thumbnail(2985130,"","","Photto_front2_thumb.jpg",130,82,1);thumbnails[3095212]=new thumbnail(3095212,"189899","","Nosh_0010_thumb.jpg",130,87,1);thumbnails[3095237]=new thumbnail(3095237,"189899","","Nosh_0028_thumb.jpg",130,186,1);thumbnails[3095269]=new thumbnail(3095269,"189899","","upstairs-4_0078_thumb.jpg",130,87,1);thumbnails[3095273]=new thumbnail(3095273,"189899","","upstairs-8_0083_thumb.jpg",130,194,1);thumbnails[3095276]=new thumbnail(3095276,"189899","","Nosh_0031_thumb.jpg",130,87,1);thumbnails[3095277]=new thumbnail(3095277,"189899","","Nosh_0062_thumb.jpg",130,87,1);thumbnails[3095280]=new thumbnail(3095280,"189899","","Nosh_0056_thumb.jpg",130,184,1);thumbnails[3135536]=new thumbnail(3135536,"189898","","_DSC0897_thumb.jpg",130,194,1);thumbnails[3135537]=new thumbnail(3135537,"189898","","_DSC0898_thumb.jpg",130,87,1);thumbnails[3135539]=new thumbnail(3135539,"189898","","_DSC0931_thumb.jpg",130,98,1);thumbnails[3135540]=new thumbnail(3135540,"189898","","_DSC0967_thumb.jpg",130,87,1);thumbnails[3135542]=new thumbnail(3135542,"189898","","_DSC3709_thumb.jpg",130,87,1);thumbnails[3135543]=new thumbnail(3135543,"189898","","car-park-sheffield_thumb.jpg",130,186,1);thumbnails[3135545]=new thumbnail(3135545,"189898","","wall-detail-sheffield-car-park-2_thumb.jpg",130,194,1);thumbnails[3135546]=new thumbnail(3135546,"189898","","winter-gardens_thumb.jpg",130,179,1);thumbnails[3135548]=new thumbnail(3135548,"189898","","conf_centre_thumb.jpg",130,194,1);thumbnails[3135549]=new thumbnail(3135549,"189898","","seaside_hotel2_thumb.jpg",130,186,1);thumbnails[3135551]=new thumbnail(3135551,"189898","","seaside_hotel_thumb.jpg",130,98,1);thumbnails[3135555]=new thumbnail(3135555,"110196","","_DSC0951_thumb.jpg",130,87,1);thumbnails[3135556]=new thumbnail(3135556,"110196","","bracelets_thumb.jpg",130,193,1);thumbnails[3135557]=new thumbnail(3135557,"110196","","flamingos_thumb.jpg",130,45,1);thumbnails[3135558]=new thumbnail(3135558,"110196","","shop_thumb.jpg",130,184,1);thumbnails[3135560]=new thumbnail(3135560,"110196","","Window-bottles_thumb.jpg",130,87,1);thumbnails[3135627]=new thumbnail(3135627,"189899","","bar1_thumb.jpg",130,230,1);thumbnails[3135628]=new thumbnail(3135628,"189899","","bar2_thumb.jpg",130,87,1);thumbnails[3135629]=new thumbnail(3135629,"110194","","clown_thumb.jpg",130,194,1);thumbnails[3135631]=new thumbnail(3135631,"110194","","dancer_thumb.jpg",130,194,1);thumbnails[3135635]=new thumbnail(3135635,"110196","","kingsgate_thumb.jpg",130,220,1);thumbnails[3140279]=new thumbnail(3140279,"110195","","dales1_thumb.jpg",130,201,1);thumbnails[3140280]=new thumbnail(3140280,"110195","","dales2_thumb.jpg",130,196,1);thumbnails[3140283]=new thumbnail(3140283,"110196","","fountains1_thumb.jpg",130,193,1);thumbnails[3140284]=new thumbnail(3140284,"110196","","roofscape_tryptich_prnt_thumb.jpg",130,72,1);thumbnails[3147980]=new thumbnail(3147980,"189901","","toblerone 2_thumb.jpg",130,98,1);thumbnails[3147983]=new thumbnail(3147983,"189901","","tomotes and stalks cropped_thumb.jpg",130,107,1);thumbnails[3147985]=new thumbnail(3147985,"189901","","specs1_thumb.jpg",130,88,1);thumbnails[3147988]=new thumbnail(3147988,"189901","","specs2_thumb.jpg",130,88,1);thumbnails[3147990]=new thumbnail(3147990,"189901","","ferr1_thumb.jpg",130,87,1);thumbnails[3147991]=new thumbnail(3147991,"189901","","ferr2_thumb.jpg",130,87,1);thumbnails[3147992]=new thumbnail(3147992,"189902","","chris_thumb.jpg",130,185,1);thumbnails[3147997]=new thumbnail(3147997,"189901","","balls-4-resized_thumb.jpg",130,194,1);thumbnails[4554909]=new thumbnail(4554909,"264163","Beach People","beachpeople_thumb.jpg",130,70,2);thumbnails[4554911]=new thumbnail(4554911,"264163","Blackpool Beach","blackpoolbeach_thumb.jpg",130,63,2);thumbnails[4554917]=new thumbnail(4554917,"264163","Forgotten People","ForgottenPeople-f_thumb.jpg",130,103,2);thumbnails[4555040]=new thumbnail(4555040,"264163","Cheetah","cheetah_thumb.jpg",130,87,2);thumbnails[4555044]=new thumbnail(4555044,"264163","Country Scene","countryscene_thumb.jpg",130,53,2);thumbnails[4555049]=new thumbnail(4555049,"264163","Doctors Gate","DoctorsLane_thumb.jpg",130,59,2);thumbnails[4555057]=new thumbnail(4555057,"264163","Looking Out","LookingOut_thumb.jpg",130,89,2);thumbnails[4555101]=new thumbnail(4555101,"264163","Mermaid","mermaid_thumb.jpg",130,202,2);thumbnails[4555103]=new thumbnail(4555103,"264163","Namibian Sunrise","NamibianSunrise_thumb.jpg",130,68,2);thumbnails[4555111]=new thumbnail(4555111,"264163","Newcastle Bridges","NewcastleBridges_thumb.jpg",130,77,2);thumbnails[4555113]=new thumbnail(4555113,"264163","Pelicans","pelicans-_thumb.jpg",130,78,2);thumbnails[4555114]=new thumbnail(4555114,"264163","Railway Boy","RailwayBoy_thumb.jpg",130,130,2);thumbnails[4555115]=new thumbnail(4555115,"264163","Reflections","reflections_thumb.jpg",130,220,2);thumbnails[4555158]=new thumbnail(4555158,"264163","Sense of Space","senseofspace_thumb.jpg",130,49,2);thumbnails[4555161]=new thumbnail(4555161,"264163","Street of Gold","streetofgoldcopy_thumb.jpg",130,72,2);thumbnails[4555164]=new thumbnail(4555164,"264163","Studio Blue","studioblue_thumb.jpg",130,90,2);thumbnails[4555165]=new thumbnail(4555165,"264163","Surfers","surfers_thumb.jpg",130,54,2);thumbnails[4555166]=new thumbnail(4555166,"264163","Swan in Waiting","swaninwaiting_thumb.jpg",130,87,2);thumbnails[4555168]=new thumbnail(4555168,"264163","The Boatman","Theboatman_thumb.jpg",130,69,2);thumbnails[4555170]=new thumbnail(4555170,"264163","The Cart","TheCart_thumb.jpg",130,79,2);thumbnails[4555171]=new thumbnail(4555171,"264163","Vase of Poppies","vaseofpoppies_thumb.jpg",130,118,2);thumbnails[4555172]=new thumbnail(4555172,"264163","Whitby Boats","whitbyboats_thumb.jpg",130,75,2);thumbnails[4555174]=new thumbnail(4555174,"264163","Wintry Tale","wintrytale_thumb.jpg",130,50,2);thumbnails[4555188]=new thumbnail(4555188,"264163","Himba People","HIMBAPEOPLE_thumb.jpg",130,180,2);thumbnails[4555199]=new thumbnail(4555199,"264163","A Himba Group","AHimbagroup2_thumb.jpg",130,301,2);thumbnails[1624621]=new thumbnail(1624621,"189902","Sally","sally_thumb.jpg",130,191,1);thumbnails[1626001]=new thumbnail(1626001,"110196","Tuscan Wine","Tuscan-Wine_thumb.jpg",130,208,1);thumbnails[1631159]=new thumbnail(1631159,"189902","","kay1_thumb.jpg",130,157,1);var galleries=new Object();galleries[189898]=new gallery(189898,"3135551,3135549,3135548,3135546,3135545,3135543,3135542,3135540,3135539,3135537","Architecture","gallery",[1625810,1625839,1625842,1625935,1632064,1632065,1632073,3135536,3135537,3135539,3135540,3135542,3135543,3135545,3135546,3135548,3135549,3135551]);galleries[110158]=new gallery(110158,"1737949,1737926,1632062,1624749,1624745,1624742,1624740,1624736","Attitude","gallery",[1624736,1624740,1624742,1624745,1624749,1632062,1737926,1737949]);galleries[189899]=new gallery(189899,"3135628,3135627,3095280,3095277,3095276,3095273,3095269,3095237,3095212","Bar/Restaurants","gallery",[3095212,3095237,3095269,3095273,3095276,3095277,3095280,3135627,3135628]);galleries[110198]=new gallery(110198,"1624621","Commercial","gallery",[]);galleries[110125]=new gallery(110125,"2392169,2392167,2392165,1737949,1737926,1632062,1624749,1624745,1624742,1624740","Geoff France","gallery",[]);galleries[264163]=new gallery(264163,"4555101","Gill Sharp LRPS","gallery",[4554909,4554911,4554917,4555040,4555044,4555049,4555057,4555101,4555103,4555111,4555113,4555114,4555115,4555158,4555161,4555164,4555165,4555166,4555168,4555170,4555171,4555172,4555174,4555188,4555199]);galleries[110195]=new gallery(110195,"3140280,3140279,1663231,1625986,1625968,1625949,1625938,1625821,1625802","Landscape_PH","gallery",[1625802,1625821,1625938,1625949,1625968,1625986,1663231,3140279,3140280]);galleries[110128]=new gallery(110128,"2392169,2392167,2392165,1624657,1624642,1624638,1624555,1624365,1624364,1624362","Landscapes","gallery",[1624361,1624362,1624364,1624365,1624555,1624638,1624642,1624657,2392165,2392167,2392169]);galleries[110196]=new gallery(110196,"3135558","Misc Gallery","gallery",[1625799,1625812,1625847,1625934,1625943,1625973,1626002,3135555,3135556,3135557,3135558,3135560,3135635,3140283,3140284,1626001]);galleries[189902]=new gallery(189902,"1624621","People","gallery",[1625807,1625837,3147992,1624621,1631159]);galleries[110193]=new gallery(110193,"3135631,3135629,3135558","Phil Hack LRPS LBPPA CPAGB","gallery",[]);galleries[110194]=new gallery(110194,"3135631,3135629","Portrait_PH","gallery",[1625797,1625814,1625929,1625946,3135629,3135631]);galleries[110145]=new gallery(110145,"1624633,1624622,1624615,1624614","Portraits","gallery",[1624614,1624615,1624622,1624633]);galleries[189901]=new gallery(189901,"3147997,3147991,3147990,3147988,3147985,3147983,3147980,1634419,1632071,1625952","Product","gallery",[1624738,1625952,1632071,1634419,3147980,3147983,3147985,3147988,3147990,3147991,3147997]);var imageSets=new Object();imageSets[1]="2985130";imageSets[2]="4555101,3135631,3135629,3135558,1624621";imageSets[3]="4555199,4555188,4555174,4555172,4555171,4555170,4555168,4555166,4555165,4555164,4555161,4555158,4555115,4555114,4555113,4555111,4555103,4555101,4555057,4555049,4555044,4555040,4554917,4554911,4554909,3147997,3147992,3147991,3147990,3147988,3147985,3147983,3147980,3140284,3140283,3140280,3140279,3135635,3135631,3135629,3135628,3135627,3135560,3135558,3135557,3135556,3135555,3135551,3135549,3135548";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 34:b="http://www9.clikpic.com/photto/images";break}switch(a){case 1:b="http://www1.clikpic.com/photto/images";break}switch(a){case 2:b="http://admin.clikpic.com/photto/images";break}switch(a){case 4:b="http://www.clikchurch.com/photto/images";break}switch(a){case 5:b="http://www2.clikpic.com/photto/images";break}switch(a){case 15:b="http://www3.clikpic.com/photto/images";break}switch(a){case 21:b="http://www6.clikpic.com/photto/images";break}switch(a){case 18:b="http://www4.clikpic.com/photto/images";break}switch(a){case 19:b="http://www5.clikpic.com/photto/images";break}switch(a){case 22:b="http://tpc5/clikpic/photto/images";break}switch(a){case 23:b="http://tpc10/clikpic/photto/images";break}switch(a){case 24:b="http://tpc15/clikpic/photto/images";break}switch(a){case 25:b="http://tpc16/clikpic/photto/images";break}switch(a){case 31:b="http://www7.clikpic.com/photto/images";break}switch(a){case 32:b="http://admin2.clikpic.com/photto/images";break}switch(a){case 33:b="http://www8.clikpic.com/photto/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="Photto.co.uk: "+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>"}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+"</p>";var e=c.purchase_instruction;var d=c.item_price;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+'")'})}}};
