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[5825070]=new thumbnail(5825070,"223883","Support","MondrianShelf-1_thumb.jpg",130,130,15);thumbnails[5079523]=new thumbnail(5079523,"223883","City Steel","_DSC6849-1a_thumb.jpg",130,87,15);thumbnails[5079554]=new thumbnail(5079554,"223883","Wisdom","_DSC9317-1_thumb.jpg",130,88,15);thumbnails[5824983]=new thumbnail(5824983,"223883","The Doors","_DSC1293-1_thumb.jpg",130,130,15);thumbnails[5079561]=new thumbnail(5079561,"223883","Layer Cake","_DSC1115-1_thumb.jpg",87,130,15);thumbnails[4560679]=new thumbnail(4560679,"223883","Sailing","_DSC7940-1a_thumb.jpg",87,130,15);thumbnails[5824996]=new thumbnail(5824996,"223883","Eyes","_DSC1318-1a_thumb.jpg",130,130,15);thumbnails[5825112]=new thumbnail(5825112,"223883","A Hard Place","_DSC0170-1a_thumb.jpg",130,130,15);thumbnails[5079560]=new thumbnail(5079560,"223883","Galexies Colide","_DSC8188-1_thumb.jpg",130,87,15);thumbnails[4567987]=new thumbnail(4567987,"223883","Walk on By","_DSC6847-1_thumb.jpg",130,87,15);thumbnails[2413250]=new thumbnail(2413250,"223883","Sanguine","Sanguine600x400@72@10_thumb.jpg",130,87,15);thumbnails[2578542]=new thumbnail(2578542,"223883","Just Gas","DSC08459-2+filters+boarder-2-12x18-WEB-2@9_thumb.jpg",130,87,15);thumbnails[1727078]=new thumbnail(1727078,"223883","Abstract I","Abstract_Spain_thumb.jpg",130,87,15);thumbnails[4568047]=new thumbnail(4568047,"223883","Palm Shaddow","_DSC7557-1_thumb.jpg",130,87,15);thumbnails[1726951]=new thumbnail(1726951,"223883","Tight Lines","TightLines_thumb.jpg",130,87,15);thumbnails[5079532]=new thumbnail(5079532,"115545","Fabrication","_DSC9211-1b_thumb.jpg",130,130,15);thumbnails[5825026]=new thumbnail(5825026,"115545","Zizkov Baby I","_DSC1566-1_thumb.jpg",130,130,15);thumbnails[5825037]=new thumbnail(5825037,"115545","Zizkov Baby II","_DSC1583-1_thumb.jpg",130,130,15);thumbnails[5825042]=new thumbnail(5825042,"115545","Through the Door","_DSC1663-1b_thumb.jpg",130,130,15);thumbnails[5825080]=new thumbnail(5825080,"115545","A Stab in the Dark","Spike-1_thumb.jpg",130,130,15);thumbnails[5079556]=new thumbnail(5079556,"115545","Inner City Rain Forest","DSC07354-1a_thumb.jpg",130,87,15);thumbnails[5079495]=new thumbnail(5079495,"115545","Bike In the Light","_DSC8992-1_thumb.jpg",130,87,15);thumbnails[2413246]=new thumbnail(2413246,"115545","New York Memorial","New York Memorial 200400x600@72@10_thumb.jpg",130,87,15);thumbnails[5079527]=new thumbnail(5079527,"115545","Shaddow Land","_DSC9113-2_thumb.jpg",130,130,15);thumbnails[1723984]=new thumbnail(1723984,"115545","Forgotten","Forgotten_600x400@72_thumb.jpg",130,87,15);thumbnails[4560676]=new thumbnail(4560676,"115863","Victoria","_DSC5156-3_thumb.jpg",87,130,15);thumbnails[5825063]=new thumbnail(5825063,"115863","Fighting Back","FightingBack-1a_thumb.jpg",130,130,15);thumbnails[5825054]=new thumbnail(5825054,"115863","It's all getting on top of me","composit-1_thumb.jpg",130,130,15);thumbnails[5825075]=new thumbnail(5825075,"115863","Scaffolding","Scaffolding-1b_thumb.jpg",130,130,15);thumbnails[5825068]=new thumbnail(5825068,"115863","Industrial Power","IndustrialDecay-1_thumb.jpg",130,130,15);thumbnails[2413534]=new thumbnail(2413534,"115863","'See Agent' New York","DSC07165 18x12@300+filter@9_thumb.jpg",130,87,15);thumbnails[5825084]=new thumbnail(5825084,"115863","Cable I","TranCable-1a_thumb.jpg",130,130,15);thumbnails[2413524]=new thumbnail(2413524,"115863","Williamsburg Bridge, New York","DSC07032 Col Pen-2 18x12+filters@8_thumb.jpg",130,87,15);thumbnails[1724073]=new thumbnail(1724073,"115863","Communication Breakdown","CommBreak_600x400@72_thumb.jpg",130,87,15);thumbnails[1727360]=new thumbnail(1727360,"115863",'"Walk"',"Walk_NY_thumb.jpg",130,87,15);thumbnails[5824944]=new thumbnail(5824944,"223880","Reflex Angle","_DSC0308-1b_thumb.jpg",130,130,15);thumbnails[5825045]=new thumbnail(5825045,"223880","Shaddow Shelves","_DSC9097-1a_thumb.jpg",130,130,15);thumbnails[3673738]=new thumbnail(3673738,"223880","Robot Shop","_DSC0772-1-graffiti_thumb.jpg",130,87,15);thumbnails[3673736]=new thumbnail(3673736,"223880","Orwell","_DSC0873-1-orwell_thumb.jpg",130,88,15);thumbnails[1727054]=new thumbnail(1727054,"223880","To the Point","TothePoint_thumb.jpg",87,130,15);thumbnails[1724335]=new thumbnail(1724335,"223880","42nd St. & Vanderbilt","42ndSt_500x333@72_thumb.jpg",87,130,15);thumbnails[2413539]=new thumbnail(2413539,"223880","Ellis Island, New York","DSC07205 close crop18x12+filters@7_thumb.jpg",130,87,15);thumbnails[1727216]=new thumbnail(1727216,"223880","Escape #1","Escape1_thumb.jpg",87,130,15);thumbnails[1727220]=new thumbnail(1727220,"223880","Escape #2","Escape2_NY_thumb.jpg",130,87,15);thumbnails[1727221]=new thumbnail(1727221,"223880","Escape #3","Escape3_NY_thumb.jpg",130,87,15);thumbnails[1724289]=new thumbnail(1724289,"223880","Go For It","Goforit_600x300_thumb.jpg",130,65,15);thumbnails[1723980]=new thumbnail(1723980,"223880","Heart","Heart_600x400@72_thumb.jpg",130,87,15);thumbnails[3674031]=new thumbnail(3674031,"223880","Departure","DSC00866-1-departure-web_thumb.jpg",87,130,15);thumbnails[1726922]=new thumbnail(1726922,"223880","Fastnet Lighthouse","FastnetLighthouse_thumb.jpg",130,87,15);thumbnails[1724838]=new thumbnail(1724838,"223880","Monastery","Monastery_Croatia_thumb.jpg",87,130,15);thumbnails[5825002]=new thumbnail(5825002,"115862","Good Morning","_DSC1342-1a_thumb.jpg",130,130,15);thumbnails[5825008]=new thumbnail(5825008,"115862","Charles Bridge, Prague","_DSC1351-1a_thumb.jpg",130,130,15);thumbnails[3673742]=new thumbnail(3673742,"115862","Ipswich Dock","_DSC0770-1_2-dock_sunset_thumb.jpg",130,88,15);thumbnails[3665075]=new thumbnail(3665075,"115862","Skylight","_DSC1731bordre_thumb.jpg",130,44,15);thumbnails[3665072]=new thumbnail(3665072,"115862","Foot Bridge","_DSC1699border_thumb.jpg",88,130,15);thumbnails[4567994]=new thumbnail(4567994,"115862","Tilled","_DSC5086-1bw-sepiaborder_thumb.jpg",130,87,15);thumbnails[3665074]=new thumbnail(3665074,"115862","Reeds","_DSC1728-2border_thumb.jpg",130,88,15);thumbnails[1723809]=new thumbnail(1723809,"115862","Scallop Shell","600x400@72_thumb.jpg",130,87,15);thumbnails[1723978]=new thumbnail(1723978,"115862","Solitary Tree","SolitaryTree_600x400@72_thumb.jpg",130,87,15);thumbnails[4568050]=new thumbnail(4568050,"115862","Incoming Storm","_DSC7701-1bwborder_thumb.jpg",130,87,15);thumbnails[3673745]=new thumbnail(3673745,"115862","Morning Mist","_DSC1478-1-mist_thumb.jpg",130,88,15);thumbnails[5824964]=new thumbnail(5824964,"115864","Blue","_DSC1013-1a_thumb.jpg",130,130,15);thumbnails[3665064]=new thumbnail(3665064,"115864","It's Mine!","_DSC166472_thumb.jpg",130,130,15);thumbnails[5825049]=new thumbnail(5825049,"115864","Beauty","_DSC9979-2_thumb.jpg",130,130,15);thumbnails[3673854]=new thumbnail(3673854,"115864","Blue Iris","_DSC2073-Iris-web_thumb.jpg",130,130,15);thumbnails[1723893]=new thumbnail(1723893,"115864","Marram Grass","MarramGrass_333x500@72_thumb.jpg",87,130,15);thumbnails[1727707]=new thumbnail(1727707,"115864","Iris","Iris_thumb.jpg",87,130,15);thumbnails[1727225]=new thumbnail(1727225,"115864","Long Haul","LongHaul_thumb.jpg",130,87,15);thumbnails[1726901]=new thumbnail(1726901,"115864","Baltimore","Baltimore_CoCork_thumb.jpg",130,87,15);thumbnails[3672830]=new thumbnail(3672830,"115864","Baltimore","DSC06522-web_thumb.jpg",130,87,15);thumbnails[1724406]=new thumbnail(1724406,"115864","Barley Cove","BarleyCove_600x400@72_thumb.jpg",130,87,15);thumbnails[1726946]=new thumbnail(1726946,"115864","Slip Away","SlipAway_thumb.jpg",130,87,15);thumbnails[2413492]=new thumbnail(2413492,"115864","Rockface, Ireland","DSC06933 B&W 12x18@300+filter@10_thumb.jpg",130,87,15);thumbnails[1727138]=new thumbnail(1727138,"115864","Coastal Rock","Abstract_Ireland_thumb.jpg",87,130,15);thumbnails[1726942]=new thumbnail(1726942,"115864","Seascape I","Seascape_korcula_thumb.jpg",130,65,15);thumbnails[1724056]=new thumbnail(1724056,"115864","Evening Sky","EveningSky_600x400@72_thumb.jpg",130,87,15);thumbnails[1726944]=new thumbnail(1726944,"115864","Seascape II","SeascapeII_Croatia_thumb.jpg",130,65,15);thumbnails[1726916]=new thumbnail(1726916,"115864","Dive In","DiveIn_Croatia_thumb.jpg",130,87,15);thumbnails[1726897]=new thumbnail(1726897,"115864","Balmy Days","BalmyDays_thumb.jpg",130,87,15);thumbnails[3673739]=new thumbnail(3673739,"115864","Isolation","_DSC1317-1-devon_beach_thumb.jpg",130,88,15);thumbnails[3665059]=new thumbnail(3665059,"115865","Snow Fight","_DSC1164-1-web-BW_thumb.jpg",130,88,15);thumbnails[5825057]=new thumbnail(5825057,"115865","Claire","DSC03756-1_thumb.jpg",130,130,15);thumbnails[3665063]=new thumbnail(3665063,"115865","Spring at Last","_DSC1633-web_thumb.jpg",87,130,15);thumbnails[1724830]=new thumbnail(1724830,"115865","Marathon","Marathon_London_thumb.jpg",87,130,15);thumbnails[4567926]=new thumbnail(4567926,"115865","New Years Day Parade","_DSC0853_thumb.jpg",130,87,15);thumbnails[4567970]=new thumbnail(4567970,"115865","Warn Advisers","_DSC2566-1_thumb.jpg",130,87,15);thumbnails[1727056]=new thumbnail(1727056,"115865","Touching","Touching_London_thumb.jpg",87,130,15);thumbnails[1724832]=new thumbnail(1724832,"115865","Washdown","Washdown_thumb.jpg",130,87,15);thumbnails[1724835]=new thumbnail(1724835,"115865","Pretzels","Pretzels_thumb.jpg",130,87,15);thumbnails[1727147]=new thumbnail(1727147,"115865","Descend","Descend_thumb.jpg",87,130,15);thumbnails[3673280]=new thumbnail(3673280,"115865","Luke","_DSC2069-1-web2r_thumb.jpg",88,130,15);thumbnails[1724824]=new thumbnail(1724824,"115865","Evening Walk","EveningWalk_Camebridge_thumb.jpg",130,87,15);thumbnails[3665056]=new thumbnail(3665056,"115866","Mandela","_DSC1031-1_BW_thumb.jpg",88,130,15);thumbnails[3665057]=new thumbnail(3665057,"115866","Snow Cap","_DSC1125-2-web_thumb.jpg",130,87,15);thumbnails[3665068]=new thumbnail(3665068,"115866","Churchill","_DSC1670-BWsepiaborder-web_thumb.jpg",88,130,15);thumbnails[3673735]=new thumbnail(3673735,"115866","House of Lords","_DSC0053-2-HsofLords_thumb.jpg",130,88,15);thumbnails[4568084]=new thumbnail(4568084,"115866","Bad Hair Day","DSC07520_BW-2_12x12border_thumb.jpg",130,130,15);thumbnails[1727141]=new thumbnail(1727141,"223797","Geelong I","geelong_images_003-1_thumb.jpg",130,130,15);thumbnails[1727290]=new thumbnail(1727290,"223797","Geelong II","geelong_images_015-1_thumb.jpg",130,130,15);thumbnails[1727299]=new thumbnail(1727299,"223797","Geelong III","geelong_images_047-1a_thumb.jpg",130,130,15);var galleries=new Object();galleries[223883]=new gallery(223883,"5825070","Abstract","gallery",[5825070,5079523,5079554,5824983,5079561,4560679,5824996,5825112,5079560,4567987,2413250,2578542,1727078,4568047,1726951]);galleries[115545]=new gallery(115545,"5825026","Creative","gallery",[5079532,5825026,5825037,5825042,5825080,5079556,5079495,2413246,5079527,1723984]);galleries[115863]=new gallery(115863,"5825063","Manipulated","gallery",[4560676,5825063,5825054,5825075,5825068,2413534,5825084,2413524,1724073,1727360]);galleries[223880]=new gallery(223880,"5824944","Architecture","gallery",[5824944,5825045,3673738,3673736,1727054,1724335,2413539,1727216,1727220,1727221,1724289,1723980,3674031,1726922,1724838]);galleries[115862]=new gallery(115862,"5825008,1723978","Landscape","gallery",[5825002,5825008,3673742,3665075,3665072,4567994,3665074,1723809,1723978,4568050,3673745]);galleries[115864]=new gallery(115864,"5824964","Natural","gallery",[5824964,3665064,5825049,3673854,1723893,1727707,1727225,1726901,3672830,1724406,1726946,2413492,1727138,1726942,1724056,1726944,1726916,1726897,3673739]);galleries[115865]=new gallery(115865,"5825057","People","gallery",[3665059,5825057,3665063,1724830,4567926,4567970,1727056,1724832,1724835,1727147,3673280,1724824]);galleries[115866]=new gallery(115866,"4568084,3673735,3665068,3665057,3665056","Symbolic","gallery",[3665056,3665057,3665068,3673735,4568084]);galleries[223797]=new gallery(223797,"1727299","Artwork","gallery",[1727141,1727290,1727299]);var imageSets=new Object();imageSets[1]="5825084,5825070,5825063,5825042,5825037,5825026,5825002,5824996,5824983,5824964,5824944,5079495,4568084,3665072,3665057,2413250,1724406,1723980";imageSets[2]="5825070,5825063,5825057,5825026,5825008,5824964,5824944,1727299,1723978";imageSets[3]="5825112,5825084,5825080,5825075,5825070,5825068,5825063,5825057,5825054,5825049,5825045,5825042,5825037,5825026,5825008,5825002,5824996,5824983,5824964,5824944,5079561,5079560,5079556,5079554,5079532,5079527,5079523,5079495,4568084,4568050,4568047,4567994,4567987,4567970,4567926,4560679,4560676,3674031,3673854,3673745,3673742,3673739,3673738,3673736,3673735,3673280,3672830,3665075,3665074,3665072";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/keithwatt/images";break}switch(a){case 1:b="http://www1.clikpic.com/keithwatt/images";break}switch(a){case 2:b="http://admin.clikpic.com/keithwatt/images";break}switch(a){case 24:b="http://tpc15/clikpic/keithwatt/images";break}switch(a){case 4:b="http://www.clikchurch.com/keithwatt/images";break}switch(a){case 5:b="http://www2.clikpic.com/keithwatt/images";break}switch(a){case 22:b="http://tpc5/clikpic/keithwatt/images";break}switch(a){case 23:b="http://tpc10/clikpic/keithwatt/images";break}switch(a){case 25:b="http://tpc16/clikpic/keithwatt/images";break}switch(a){case 15:b="http://www3.clikpic.com/keithwatt/images";break}switch(a){case 18:b="http://www4.clikpic.com/keithwatt/images";break}switch(a){case 19:b="http://www5.clikpic.com/keithwatt/images";break}switch(a){case 31:b="http://www7.clikpic.com/keithwatt/images";break}switch(a){case 32:b="http://admin2.clikpic.com/keithwatt/images";break}switch(a){case 33:b="http://www8.clikpic.com/keithwatt/images";break}switch(a){case 34:b="http://www9.clikpic.com/keithwatt/images";break}switch(a){case 35:b="http://admin3.clikpic.com/keithwatt/images";break}switch(a){case 37:b="http://admin4.clikpic.com/keithwatt/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="Keith Watt 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="wattever@ntlworld.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="wattever@ntlworld.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+'")'})}}};