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[1458914]=new thumbnail(1458914,"100750","Balloch Sunset from Balmaha","balmaha loch sunset11_thumb.jpg",130,87,1);thumbnails[1458925]=new thumbnail(1458925,"100750","Winter Sunset from Balmaha","balmaha pier11_thumb.jpg",130,86,1);thumbnails[1458929]=new thumbnail(1458929,"100750","Ben Lomond from Duck Bay","ben lomond_thumb.jpg",130,195,1);thumbnails[1458930]=new thumbnail(1458930,"100750","Ben Lomond from Rowardennan","ben lomond1_thumb.jpg",130,86,1);thumbnails[1458993]=new thumbnail(1458993,"100753","Disused Pier at Bowling","bowling pier11_thumb.jpg",130,194,1);thumbnails[1458997]=new thumbnail(1458997,"100754","Buchanan Castle at Sunset (L)","buchanan castle 2_thumb.jpg",130,87,1);thumbnails[1459007]=new thumbnail(1459007,"100754","Buchanan Castle at Sunset (P)","buchanan castle 11_thumb.jpg",130,195,1);thumbnails[1459013]=new thumbnail(1459013,"100750","Sunset from Cashel (L)","cashel sunset1_thumb.jpg",130,87,1);thumbnails[1459022]=new thumbnail(1459022,"100750","Sunset from Cashel (P)","cashel sunset2_thumb.jpg",130,195,1);thumbnails[1459026]=new thumbnail(1459026,"100753","Clydeside Cranes, Glasgow","clyde cranes1_thumb.jpg",130,194,1);thumbnails[1459031]=new thumbnail(1459031,"100753","Clydeport Crane, Glasgow","clydeside crane1_thumb.jpg",130,196,1);thumbnails[1459039]=new thumbnail(1459039,"100959","Devil's Pulpit Rush","devil's pulpit1_thumb.jpg",130,196,1);thumbnails[1459072]=new thumbnail(1459072,"100750","Sallochy Driftwood Tree","driftwood tree11_thumb.jpg",130,86,1);thumbnails[1459090]=new thumbnail(1459090,"100729","Fender Acoustic Head","fender guitar_thumb.jpg",130,87,1);thumbnails[1459092]=new thumbnail(1459092,"100753","Clydeside Reflections","finished clydeside_thumb.jpg",130,87,1);thumbnails[1459101]=new thumbnail(1459101,"100750","Green Boat","green boat_thumb.jpg",130,195,1);thumbnails[1459122]=new thumbnail(1459122,"100750","Milarrochy Sunbeams (L)","hhhhh_thumb.jpg",130,87,1);thumbnails[1459123]=new thumbnail(1459123,"100752","Heilan' Coo","highland cow 2_thumb.jpg",130,195,1);thumbnails[1459128]=new thumbnail(1459128,"100752","Happy Highland Cow","highland cow 8_thumb.jpg",130,195,1);thumbnails[1459132]=new thumbnail(1459132,"100752","Curious Highland Cow","highland_thumb.jpg",130,195,1);thumbnails[1459140]=new thumbnail(1459140,"100755","Fishing on Lake of Menteith","lake fishing1_thumb.jpg",130,195,1);thumbnails[1459170]=new thumbnail(1459170,"100750","Loch Sunbeams","loch sunset balmaha _thumb.jpg",130,87,1);thumbnails[1459172]=new thumbnail(1459172,"100750","Milarrochy Stones (P)","loch sunset mallarchy2 light_thumb.jpg",130,195,1);thumbnails[1459176]=new thumbnail(1459176,"100750","Tree Silhouette, Balmaha","loch tree sillouette11_thumb.jpg",130,196,1);thumbnails[1459224]=new thumbnail(1459224,"100753","Shipyard Sunset, Glasgow","shipyard sunset1_thumb.jpg",130,87,1);thumbnails[1459227]=new thumbnail(1459227,"100755","Stirling Castle","stirling castle_thumb.jpg",130,87,1);thumbnails[1459232]=new thumbnail(1459232,"100750","Disappearing Stones","stones long_thumb.jpg",130,87,1);thumbnails[1459239]=new thumbnail(1459239,"100750","Disappearing Stones 1","stones long1_thumb.jpg",130,87,1);thumbnails[1459246]=new thumbnail(1459246,"100750","Summer Sunset from Balmaha","summer sun set 2_thumb.jpg",130,87,1);thumbnails[1462086]=new thumbnail(1462086,"100755","Boat Sheds Loch Ard, Aberfoyle","boatsheds1_thumb.jpg",130,87,1);thumbnails[1462088]=new thumbnail(1462088,"100754","Mist on River Endrick","endrickmist_thumb.jpg",130,87,1);thumbnails[1462127]=new thumbnail(1462127,"100959","Looking up Devil's Pulpit","devilspulpit2_thumb.jpg",130,87,1);thumbnails[1462134]=new thumbnail(1462134,"100959","Devil's Pulpit Light Beam","devilspulpit3_thumb.jpg",130,87,1);thumbnails[1462139]=new thumbnail(1462139,"100959","Devil's Pulpit Rock and Sunbeam","devilspulpit4_thumb.jpg",130,87,1);thumbnails[1462145]=new thumbnail(1462145,"100959","Devil's Pulpit Lightbeam<br>\r\n","devilspulpit6_thumb.jpg",130,87,1);thumbnails[1462155]=new thumbnail(1462155,"100959","Devil's Pulpit Waterfall","devilspulpit51_thumb.jpg",130,87,1);thumbnails[1462186]=new thumbnail(1462186,"100750","Last of the Summer Sun (P)","summer sun set 3_thumb.jpg",130,195,1);thumbnails[1462192]=new thumbnail(1462192,"100750","Summer Sunset on Loch Lomond","summer sun set 4_thumb.jpg",130,195,1);thumbnails[1462198]=new thumbnail(1462198,"","Coldrach Tractor","tractor31_thumb.jpg",130,206,1);thumbnails[1462228]=new thumbnail(1462228,"100752","Thistle","thistle_thumb.jpg",130,195,1);thumbnails[1462234]=new thumbnail(1462234,"100754","Conic Hill, Loch Lomond","the conic_thumb.jpg",130,87,1);thumbnails[1462357]=new thumbnail(1462357,"100959","Endrick Bridge, Drymen","endrickbridge1_thumb.jpg",130,87,1);thumbnails[1462358]=new thumbnail(1462358,"100959","Endrick Bridge and Golf club","endrickbridge2_thumb.jpg",130,87,1);thumbnails[1462362]=new thumbnail(1462362,"100753","Erskine Bridge at night","erskinebridge_thumb.jpg",130,87,1);thumbnails[1462365]=new thumbnail(1462365,"100752","Cheeky Highland Cow","highlandcow4_thumb.jpg",130,195,1);thumbnails[1462374]=new thumbnail(1462374,"100750","View of Loch Lomond from Ross Priory","rosspriory2_thumb.jpg",130,87,1);thumbnails[1462376]=new thumbnail(1462376,"100750","Ross Priory Stone","rosspriorystone3_thumb.jpg",130,87,1);thumbnails[1462383]=new thumbnail(1462383,"100753","Titan Crane, Clydebank 2","titan2_thumb.jpg",130,87,1);thumbnails[1462390]=new thumbnail(1462390,"100753","Titan Crane, Clydebank ","titan6_thumb.jpg",130,87,1);thumbnails[1463891]=new thumbnail(1463891,"100729","Stacked Stones (P)","stackedstones1_thumb.jpg",130,195,1);thumbnails[1463893]=new thumbnail(1463893,"100752","Focus Flower","flower1_thumb.jpg",130,87,1);thumbnails[1463894]=new thumbnail(1463894,"100729","Stacked Stones (L)","stackedstones_thumb.jpg",130,87,1);thumbnails[1473317]=new thumbnail(1473317,"100752","Bee On Thistle","beeonthistle1_thumb.jpg",130,195,1);thumbnails[1473322]=new thumbnail(1473322,"100752","Duckling","duckling1_thumb.jpg",130,87,1);thumbnails[1473324]=new thumbnail(1473324,"100752","Angry Highland Cow","hcow1_thumb.jpg",130,195,1);thumbnails[1493560]=new thumbnail(1493560,"100754","Oak Tree Sunset","oaktreesunsetweb_thumb.jpg",130,87,1);thumbnails[1498239]=new thumbnail(1498239,"100753","New Banks Of The River Clyde, Glasgow","clydeview_thumb.jpg",130,87,1);thumbnails[1498263]=new thumbnail(1498263,"100753","New Bendy Bridge, Glasgow","sqwintybridge_thumb.jpg",130,195,1);thumbnails[1515427]=new thumbnail(1515427,"100729","Retro Nes Controller","nes-controller1web_thumb.jpg",130,87,1);thumbnails[1583365]=new thumbnail(1583365,"100959","Dumgoyne","dumgoyneweb_thumb.jpg",130,87,1);thumbnails[1677088]=new thumbnail(1677088,"100750","After Sunset over Loch Lomond","aftersunset over loch_thumb.jpg",130,87,1);thumbnails[1678265]=new thumbnail(1678265,"100959","Rowardennan Waterfall ","rowerdennan waterfallweb_thumb.jpg",130,195,1);thumbnails[1679400]=new thumbnail(1679400,"100959","Ben Lomond, Winter","benlomondwinterwebb_thumb.jpg",130,195,1);thumbnails[1679412]=new thumbnail(1679412,"100959","Dubh Loch, Winter","dhulochwinter1webb_thumb.jpg",130,87,1);thumbnails[1679421]=new thumbnail(1679421,"100959","Dubh Loch Reflections","Dhulochwinterwebb_thumb.jpg",130,87,1);thumbnails[1742202]=new thumbnail(1742202,"100750","Island of Trees, Loch Lomond","island of treesweb_thumb.jpg",130,87,1);thumbnails[1742214]=new thumbnail(1742214,"100755","Loch Ard and Ben Lomond with Snow","loch ard and ben lomond snowweb_thumb.jpg",130,87,1);thumbnails[1742234]=new thumbnail(1742234,"100750","Balmaha Boat Yard Sunset (P)","balmaha boat yard sunset (P)web_thumb.jpg",130,199,1);thumbnails[1742298]=new thumbnail(1742298,"","Balmaha Boat Yard Sunset","balmaha boat yard sunset (P)web1_thumb.jpg",130,199,1);thumbnails[1764504]=new thumbnail(1764504,"","Gift certificate <br>\r\n<br>\r\nSimply select the value of gift certificate from the menu on the left to order.<br>\r\n<br>\r\nThey are available in 4 denominations, £35, £50, £75 and £100 which correspond to print and canvas prices. ","giftcertdisplay1_thumb.jpg",130,92,1);thumbnails[1793393]=new thumbnail(1793393,"100750","Balmaha Boat Yard at Sunset","balmahaweb_thumb.jpg",130,87,1);thumbnails[1908416]=new thumbnail(1908416,"100959","Cashel Stream","cashelstreamweb_thumb.jpg",130,87,1);thumbnails[1908426]=new thumbnail(1908426,"100959","Cashel Stream 1","cashelstream1web_thumb.jpg",130,195,1);thumbnails[1987357]=new thumbnail(1987357,"100750","Tree Silhouette, Milarrochy Bay","millorochytreesillhouette_thumb.jpg",130,87,1);thumbnails[2153057]=new thumbnail(2153057,"142892","logo","TEMP LOGO_thumb.jpg",130,38,1);thumbnails[2177556]=new thumbnail(2177556,"","View From Cragiefort, Loch Lomond","craigiefortweb_thumb.jpg",130,87,1);thumbnails[2177560]=new thumbnail(2177560,"100752","Golden Eagle","goldeneagleweb_thumb.jpg",130,196,1);thumbnails[2332405]=new thumbnail(2332405,"100750","Spring Sunset, Loch Lomond","springsunsetweb_thumb.jpg",130,195,1);thumbnails[2332456]=new thumbnail(2332456,"100755","Aberfoyle waterfall","aberfoylewaterfallweb_thumb.jpg",130,195,1);thumbnails[2332475]=new thumbnail(2332475,"100750","Winter Around Loch Lomond","winteraroundlochlomondweb_thumb.jpg",130,87,1);thumbnails[2364980]=new thumbnail(2364980,"153920","your photograph on canvas","TEMP LOGO3_thumb.jpg",130,38,1);thumbnails[2385629]=new thumbnail(2385629,"100959","Cashel Waterfall","cashelwaterfallweb_thumb.jpg",130,87,1);thumbnails[2385636]=new thumbnail(2385636,"100959","Cashel Waterfall 2","cashelwaterfall2web_thumb.jpg",130,195,1);thumbnails[2385640]=new thumbnail(2385640,"100959","Cashel Waterfall","cashelwaterfall3web_thumb.jpg",130,195,1);thumbnails[2385774]=new thumbnail(2385774,"100750","Red Sunset, Loch Lomond","redsunsetweb_thumb.jpg",130,87,1);thumbnails[2405376]=new thumbnail(2405376,"100750","","rowerdennanstonesweb_thumb.jpg",130,87,1);thumbnails[2489778]=new thumbnail(2489778,"100753","Clydeside Blue","clydesideblueweb_thumb.jpg",130,87,1);thumbnails[2493453]=new thumbnail(2493453,"100750","Washed Over Stones, Loch Lomond","nonameweb_thumb.jpg",130,87,1);thumbnails[2586678]=new thumbnail(2586678,"100753","Charing Cross light streams","charingcross2web_thumb.jpg",130,87,1);thumbnails[3031951]=new thumbnail(3031951,"100959","Pots of Gartness, Drymen P","pots2web_thumb.jpg",130,195,1);thumbnails[3918653]=new thumbnail(3918653,"100729","Fender Precision Bass Head","bass_headweb_thumb.jpg",130,87,1);thumbnails[3918843]=new thumbnail(3918843,"100959","Stirling Castle","srirlingcastledayweb_thumb.jpg",130,87,1);thumbnails[3918857]=new thumbnail(3918857,"100750","InchFad, Loch Lomond","inchfadlochlomondweb_thumb.jpg",130,87,1);thumbnails[3918859]=new thumbnail(3918859,"100750","Inchfad and Ben Lomond","inchfadbenlomondweb_thumb.jpg",130,87,1);thumbnails[5375934]=new thumbnail(5375934,"100750","Frozen Boat Yard, Balmaha","frozenboatyardweb_thumb.jpg",130,87,1);thumbnails[5375935]=new thumbnail(5375935,"100729","Icicles ","icecilesweb_thumb.jpg",130,195,1);thumbnails[5375937]=new thumbnail(5375937,"100959","Frozen Mill Burn, Milton of Buchanan","frozenmillburnweb_thumb.jpg",130,87,1);thumbnails[1493730]=new thumbnail(1493730,"102751","Example canvas view 1","canvas1_thumb.jpg",130,195,1);thumbnails[1493741]=new thumbnail(1493741,"102751","Example canvas view 2","canvas2_thumb.jpg",130,87,1);thumbnails[1793315]=new thumbnail(1793315,"102751","Example Canvas 5","examplecanvas_thumb.jpg",130,87,1);var galleries=new Object();galleries[100752]=new gallery(100752,"1459128","Animals and Plants","gallery",[1459123,1459128,1459132,1462228,1462365,1463893,1473317,1473322,1473324,2177560]);galleries[100753]=new gallery(100753,"1459031","Glasgow","gallery",[1458993,1459026,1459031,1459092,1459224,1462362,1462383,1462390,1498239,1498263,2489778,2586678]);galleries[100750]=new gallery(100750,"1459176","Loch Lomond","gallery",[1458914,1458925,1458929,1458930,1459013,1459022,1459072,1459101,1459122,1459170,1459172,1459176,1459232,1459239,1459246,1462186,1462192,1462374,1462376,1677088,1742202,1742234,1793393,1987357,2332405,2332475,2385774,2405376,2493453,3918857,3918859,5375934]);galleries[100729]=new gallery(100729,"5375935,3918653,1515427,1463894,1463891,1459090","Miscellaneous","gallery",[1459090,1463891,1463894,1515427,3918653,5375935]);galleries[100959]=new gallery(100959,"1679400","Other Landscapes","gallery",[1459039,1462127,1462134,1462139,1462145,1462155,1462357,1462358,1583365,1678265,1679400,1679412,1679421,1908416,1908426,2385629,2385636,2385640,3031951,3918843,5375937]);galleries[100754]=new gallery(100754,"1459007","Scotland at sunset","gallery",[1458997,1459007,1462088,1462234,1493560]);galleries[142892]=new gallery(142892,"2153057","show","section136993",[2153057]);galleries[100755]=new gallery(100755,"1459140","Trossachs","gallery",[1459140,1459227,1462086,1742214,2332456]);galleries[153920]=new gallery(153920,"2364980","Your Photograph on Canvas","section196159",[2364980]);galleries[102751]=new gallery(102751,"1793315,1493741,1493730","Canvas Pictures","section136993",[1493730,1493741,1793315]);var imageSets=new Object();imageSets[1]="2332405,1498263,1462198,1459172,1459123";imageSets[2]="1679400,1462198,1459176,1459140,1459128,1459031,1459007";imageSets[3]="5375937,5375935,5375934,3918859,3918857,3918843,3918653,3031951,2586678,2493453,2489778,2405376,2385774,2385640,2385636,2385629,2364980,2332475,2332456,2332405,2177560,2177556,2153057,1987357,1908426,1908416,1793393,1793315,1764504,1742298,1742234,1742214,1742202,1679421,1679412,1679400,1678265,1677088,1583365,1515427,1498263,1498239,1493741,1493730,1493560,1473324,1473322,1473317,1463894,1463893";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/neilgow/images";break}switch(a){case 1:b="http://www1.clikpic.com/neilgow/images";break}switch(a){case 2:b="http://admin.clikpic.com/neilgow/images";break}switch(a){case 4:b="http://www.clikchurch.com/neilgow/images";break}switch(a){case 5:b="http://www2.clikpic.com/neilgow/images";break}switch(a){case 15:b="http://www3.clikpic.com/neilgow/images";break}switch(a){case 21:b="http://www6.clikpic.com/neilgow/images";break}switch(a){case 18:b="http://www4.clikpic.com/neilgow/images";break}switch(a){case 19:b="http://www5.clikpic.com/neilgow/images";break}switch(a){case 22:b="http://tpc5/clikpic/neilgow/images";break}switch(a){case 23:b="http://tpc10/clikpic/neilgow/images";break}switch(a){case 24:b="http://tpc15/clikpic/neilgow/images";break}switch(a){case 25:b="http://tpc16/clikpic/neilgow/images";break}switch(a){case 31:b="http://www7.clikpic.com/neilgow/images";break}switch(a){case 32:b="http://admin2.clikpic.com/neilgow/images";break}switch(a){case 33:b="http://www8.clikpic.com/neilgow/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="Neil Gow 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="info@neilgowphotography.co.uk">';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="info@neilgowphotography.co.uk">';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+'")'})}}};