window.thumbnails=new Object();thumbnails[2000340]=new thumbnail(2000340,"34659","Bridges over the river Albi","susettoulouse06-13_b&w_thumb.jpg",130,165,1,"							photo_2000340.html");thumbnails[2093584]=new thumbnail(2093584,"139629","Square Rigger","_KWA0665_Working_thumb.jpg",130,195,1,"							photo_2093584.html");thumbnails[2093625]=new thumbnail(2093625,"139629","Boat Ring","american_WW1_rgb_-0690_thumb.jpg",130,86,1,"							photo_2093625.html");thumbnails[2062192]=new thumbnail(2062192,"137795","The American Cemetery","american_WW1_rgb_-03331_thumb.jpg",130,86,1,"							photo_2062192.html");thumbnails[2063170]=new thumbnail(2063170,"137795","American Cemetery","DSC_0346_thumb.jpg",130,196,1,"							photo_2063170.html");thumbnails[2054320]=new thumbnail(2054320,"137269","Plaque, Piccadilly London","london_d3_-0108_thumb.jpg",130,104,1,"							photo_2054320.html");thumbnails[2054328]=new thumbnail(2054328,"137269","Early Evening Street Scene, Theatre District London","london_d3_-0148_thumb.jpg",130,163,1,"							photo_2054328.html");thumbnails[2054333]=new thumbnail(2054333,"137269","Criterion Theatre, London","london_d3_-0165_thumb.jpg",130,163,1,"							photo_2054333.html");thumbnails[2081655]=new thumbnail(2081655,"138980","Footpath early Spring Dawn","footpath_B&W_campdensnow_thumb.jpg",130,194,1,"							photo_2081655.html");thumbnails[2081674]=new thumbnail(2081674,"138980","Lambs in the Snow","Sheep_B&W_snow_thumb.jpg",130,158,1,"							photo_2081674.html");thumbnails[2083282]=new thumbnail(2083282,"137269","Westminster Bridge","17Apr2008_1477_thumb.jpg",130,87,1,"							photo_2083282.html");thumbnails[2083338]=new thumbnail(2083338,"137269","Houses of Parliament","parliament_april_2008_thumb.jpg",130,194,1,"							photo_2083338.html");thumbnails[2083381]=new thumbnail(2083381,"137269","Big Ben, Parliament","bigben_april_thumb.jpg",130,194,1,"							photo_2083381.html");thumbnails[2034386]=new thumbnail(2034386,"134478","St. James's Churchyard early Spring morning, Chipping Campden","churchyard_thumb.jpg",130,87,1,"							photo_2034386.html");thumbnails[433713]=new thumbnail(433713,"34659","Sunflowers Near Toulouse, Sothern France","Sunflowers Southern France_thumb.jpg",130,87,1,"							photo_433713.html");thumbnails[434857]=new thumbnail(434857,"34659","Church Tower at sunset - Southern France","churchsalvinak_thumb.jpg",130,206,1,"							photo_434857.html");thumbnails[433719]=new thumbnail(433719,"34647","Fishing Boats in the Harbour, Plymouth","boatsplymouth_thumb.jpg",130,208,1,"							photo_433719.html");thumbnails[2000187]=new thumbnail(2000187,"34659","Sunset over a French Village","sunset_france_thumb.jpg",130,87,1,"							photo_2000187.html");thumbnails[2000366]=new thumbnail(2000366,"34659","River Albi, Albi France","susettoulouse06-10_b&w_thumb.jpg",130,87,1,"							photo_2000366.html");thumbnails[2062562]=new thumbnail(2062562,"137795","American WWI Cemetery","DSC_03321_thumb.jpg",130,149,1,"							photo_2062562.html");thumbnails[2063745]=new thumbnail(2063745,"134478","Chipping Campden Church","_DSC7429_thumb.jpg",130,72,1,"							photo_2063745.html");thumbnails[2065113]=new thumbnail(2065113,"134478","Chipping Campden Market","campden_market_thumb.jpg",130,87,1,"							photo_2065113.html");thumbnails[2115509]=new thumbnail(2115509,"138091","Snow on Branches","snow on the branches_thumb.jpg",130,87,1,"							photo_2115509.html");thumbnails[2121479]=new thumbnail(2121479,"134478","Sunset Over Broadway","27Apr2008_1687_thumb.jpg",130,86,1,"							photo_2121479.html");thumbnails[2138703]=new thumbnail(2138703,"141977","Even present day Knights are at risk of injury","blenheim_joust_050320080211 web_thumb.jpg",130,222,1,"							photo_2138703.html");thumbnails[2138736]=new thumbnail(2138736,"141977","Owl","blenheim_joust_050320080275 web_thumb.jpg",130,198,1,"							photo_2138736.html");thumbnails[2138754]=new thumbnail(2138754,"141977","","blenheim_joust_050320080069 web_thumb.jpg",130,195,1,"							photo_2138754.html");thumbnails[2139369]=new thumbnail(2139369,"141977","","blenheim_joust_050320080012 web2_thumb.jpg",130,86,1,"							photo_2139369.html");thumbnails[2139428]=new thumbnail(2139428,"141977","","blenheim_joust_050320080066 web2_thumb.jpg",130,209,1,"							photo_2139428.html");thumbnails[6904284]=new thumbnail(6904284,"138980","Winter by a quiet stream - Cotswolds","kwacp01_thumb.jpg",130,86,1,"							photo_6904284.html");thumbnails[2067453]=new thumbnail(2067453,"138091","St. James in the Snow","06Apr2008_0720_thumb.jpg",130,194,1,"							photo_2067453.html");thumbnails[2093611]=new thumbnail(2093611,"139629","Stockholm at Night","american_WW1_rgb_-0547_thumb.jpg",130,86,1,"							photo_2093611.html");thumbnails[2135973]=new thumbnail(2135973,"141894","Cotswold Bluebell","bluebell_wood_flower_websize_thumb.jpg",130,176,1,"							photo_2135973.html");thumbnails[2137313]=new thumbnail(2137313,"141977","duke of Marlbourough web","duke_of_Marlbourough web_thumb.jpg",130,227,1,"							photo_2137313.html");thumbnails[2238794]=new thumbnail(2238794,"147406","Pegasus Bridge","normandy_24May2008_4565 B&W web small_thumb.jpg",130,195,1,"							photo_2238794.html");thumbnails[4179838]=new thumbnail(4179838,"248862","The Royal Coat of Arms - Royal Box Ascot","ascot_09_-431-Edit1_thumb.jpg",130,75,1,"							photo_4179838.html");thumbnails[4180113]=new thumbnail(4180113,"248862","The Royal Box - Royal Ascot","ascot_09_-433-Edit1_thumb.jpg",130,76,1,"							photo_4180113.html");thumbnails[4180541]=new thumbnail(4180541,"249016","Woman Texting","ascot_2009_tuesday-8730_thumb.jpg",130,224,1,"							photo_4180541.html");thumbnails[4223224]=new thumbnail(4223224,"250471","Williams Return","_DSC7449_thumb.jpg",130,195,1,"							photo_4223224.html");thumbnails[4223248]=new thumbnail(4223248,"250471"," Williams","_DSC7571_thumb.jpg",130,82,1,"							photo_4223248.html");thumbnails[5180019]=new thumbnail(5180019,"292543","Paris November-8249","Paris_November-8249_thumb.jpg",130,181,1,"							photo_5180019.html");thumbnails[5180050]=new thumbnail(5180050,"292543","Paris November-8301","Paris_November-8301_thumb.jpg",130,195,1,"							photo_5180050.html");thumbnails[5180131]=new thumbnail(5180131,"292543","Paris November-8399","Paris_November-8399_thumb.jpg",130,195,1,"							photo_5180131.html");thumbnails[5180156]=new thumbnail(5180156,"292543","Paris November-8483","Paris_November-8483_thumb.jpg",130,86,1,"							photo_5180156.html");thumbnails[5197713]=new thumbnail(5197713,"293479","Selfridges - Oxford Street","Paris_November-8820_thumb.jpg",130,86,1,"							photo_5197713.html");thumbnails[5210421]=new thumbnail(5210421,"294070","French Countryside-7755","French_Countryside-7755_thumb.jpg",130,195,1,"							photo_5210421.html");thumbnails[2067388]=new thumbnail(2067388,"138091","Lambs in the Snow","06Apr2008_1025_thumb.jpg",130,194,1,"							photo_2067388.html");thumbnails[2067454]=new thumbnail(2067454,"138091","Early Morning Sun","06Apr2008_1032_thumb.jpg",130,194,1,"							photo_2067454.html");thumbnails[2093612]=new thumbnail(2093612,"139629","Stockholm Doorway","american_WW1_rgb_-0575_thumb.jpg",130,196,1,"							photo_2093612.html");thumbnails[2135974]=new thumbnail(2135974,"141894","Cotswold Bluebell Wood","bluebell_wood__02May2008_2040 copy_thumb.jpg",130,86,1,"							photo_2135974.html");thumbnails[2137314]=new thumbnail(2137314,"141977","sword fight web","sword_fight_web_thumb.jpg",130,91,1,"							photo_2137314.html");thumbnails[2238795]=new thumbnail(2238795,"147406","Harley's","normandy_24May2008_4571 web small_thumb.jpg",130,148,1,"							photo_2238795.html");thumbnails[4179839]=new thumbnail(4179839,"248862","The Royal Enclosure - Royal Ascot","ascot_09_-439-Edit1_thumb.jpg",130,85,1,"							photo_4179839.html");thumbnails[4180114]=new thumbnail(4180114,"248862","Lady Member - Royal Ascot","ascot_09_-448-Edit1_thumb.jpg",130,195,1,"							photo_4180114.html");thumbnails[4223225]=new thumbnail(4223225,"250471","Williams","_DSC7459_thumb.jpg",130,92,1,"							photo_4223225.html");thumbnails[4223249]=new thumbnail(4223249,"250471","Dementieva","_DSC7587_thumb.jpg",130,93,1,"							photo_4223249.html");thumbnails[5180020]=new thumbnail(5180020,"292543","Paris November-8252","Paris_November-8252_thumb.jpg",130,196,1,"							photo_5180020.html");thumbnails[5180051]=new thumbnail(5180051,"292543","Paris November-8328","Paris_November-8328_thumb.jpg",130,177,1,"							photo_5180051.html");thumbnails[5180096]=new thumbnail(5180096,"292543","Paris November-8367","Paris_November-8367_thumb.jpg",130,195,1,"							photo_5180096.html");thumbnails[5180132]=new thumbnail(5180132,"292543","Paris November-8404","Paris_November-8404_thumb.jpg",130,199,1,"							photo_5180132.html");thumbnails[5180157]=new thumbnail(5180157,"292543","Paris November-8491","Paris_November-8491_thumb.jpg",130,86,1,"							photo_5180157.html");thumbnails[5210390]=new thumbnail(5210390,"294070","French Countryside-7784","French_Countryside-7784_thumb.jpg",130,86,1,"							photo_5210390.html");thumbnails[5210422]=new thumbnail(5210422,"294070","French Countryside-7870","French_Countryside-7870_thumb.jpg",130,195,1,"							photo_5210422.html");thumbnails[2067455]=new thumbnail(2067455,"138091","Early Morning Mist","06Apr2008_1078_thumb.jpg",130,194,1,"							photo_2067455.html");thumbnails[4179840]=new thumbnail(4179840,"248862","Watching the Race - Royal Ascot","ascot_09_-4631_thumb.jpg",130,86,1,"							photo_4179840.html");thumbnails[4180115]=new thumbnail(4180115,"248862","Gentleman Member - Royal Ascot","ascot_09_-496-Edit1_thumb.jpg",130,195,1,"							photo_4180115.html");thumbnails[4223226]=new thumbnail(4223226,"250471","Dementieva","_DSC7460_thumb.jpg",130,237,1,"							photo_4223226.html");thumbnails[4223250]=new thumbnail(4223250,"250471","Dementieva","_DSC7627_thumb.jpg",130,195,1,"							photo_4223250.html");thumbnails[5180021]=new thumbnail(5180021,"292543","Paris November-8266","Paris_November-8266_thumb.jpg",130,86,1,"							photo_5180021.html");thumbnails[5180052]=new thumbnail(5180052,"292543","Paris November-8336","Paris_November-8336_thumb.jpg",130,195,1,"							photo_5180052.html");thumbnails[5180097]=new thumbnail(5180097,"292543","Paris November-8376","Paris_November-8376_thumb.jpg",130,195,1,"							photo_5180097.html");thumbnails[5180133]=new thumbnail(5180133,"292543","Paris November-8425","Paris_November-8425_thumb.jpg",130,86,1,"							photo_5180133.html");thumbnails[2067456]=new thumbnail(2067456,"138091","Across the River Cam","06Apr2008_1111_thumb.jpg",130,87,1,"							photo_2067456.html");thumbnails[4179841]=new thumbnail(4179841,"248862","Trackside - Royal Ascot","ascot_09_-539-Edit1_thumb.jpg",130,98,1,"							photo_4179841.html");thumbnails[4180116]=new thumbnail(4180116,"248862","End Of the Day - Royal Ascot","ascot_09_-572-Edit1_thumb.jpg",130,86,1,"							photo_4180116.html");thumbnails[4223227]=new thumbnail(4223227,"250471","Williams ","_DSC7506_thumb.jpg",130,221,1,"							photo_4223227.html");thumbnails[4223251]=new thumbnail(4223251,"250471","Williams Father","_DSC7629-Edit_thumb.jpg",130,169,1,"							photo_4223251.html");thumbnails[5180022]=new thumbnail(5180022,"292543","Paris November-8267","Paris_November-8267_thumb.jpg",130,83,1,"							photo_5180022.html");thumbnails[5180053]=new thumbnail(5180053,"292543","Paris November-8339","Paris_November-8339_thumb.jpg",130,86,1,"							photo_5180053.html");thumbnails[5180098]=new thumbnail(5180098,"292543","Paris November-8391","Paris_November-8391_thumb.jpg",130,195,1,"							photo_5180098.html");thumbnails[5180134]=new thumbnail(5180134,"292543","Paris November-8435","Paris_November-8435_thumb.jpg",130,97,1,"							photo_5180134.html");thumbnails[5210391]=new thumbnail(5210391,"294070","French Countryside","French_Countryside_thumb.jpg",130,86,1,"							photo_5210391.html");thumbnails[4179842]=new thumbnail(4179842,"248862","Welcome - Royal Ascot","ascot_09_-597-Edit1_thumb.jpg",130,86,1,"							photo_4179842.html");thumbnails[4223228]=new thumbnail(4223228,"250471","Williams","_DSC7560_thumb.jpg",130,180,1,"							photo_4223228.html");thumbnails[5180023]=new thumbnail(5180023,"292543","Paris November-8299","Paris_November-8299_thumb.jpg",130,183,1,"							photo_5180023.html");thumbnails[5180054]=new thumbnail(5180054,"292543","Paris November-8353","Paris_November-8353_thumb.jpg",130,86,1,"							photo_5180054.html");thumbnails[5180100]=new thumbnail(5180100,"292543","Paris November-8395","Paris_November-8395_thumb.jpg",130,195,1,"							photo_5180100.html");thumbnails[5180135]=new thumbnail(5180135,"292543","Paris November-8487","Paris_November-8487_thumb.jpg",130,86,1,"							photo_5180135.html");thumbnails[431525]=new thumbnail(431525,"34484","Bridges - River Seine Paris","ParisBridges72_thumb.jpg",130,87,1,"							photo_431525.html");thumbnails[431528]=new thumbnail(431528,"34484","Paris at night","parisstreetnight_thumb.jpg",130,93,1,"							photo_431528.html");thumbnails[431532]=new thumbnail(431532,"34484","Paris Cafe interior","busypariscafe_thumb.jpg",130,87,1,"							photo_431532.html");thumbnails[431875]=new thumbnail(431875,"34484","Oysters Being Prepared on a Paris Street","oysterman_thumb.jpg",130,194,1,"							photo_431875.html");var galleries=new Object();galleries[138091]=new gallery(138091,"2067456","April Snow Showers","gallery",[2115509,2067453,2067388,2067454,2067455,2067456],0,0,"","																																																																																																							gallery_138091.html",0,0);galleries[248862]=new gallery(248862,"4179838","Ascot Race Course","gallery",[4179838,4180113,4179839,4180114,4179840,4180115,4179841,4180116,4179842],0,0,"","																																																																																																							gallery_248862.html",0,0);galleries[141894]=new gallery(141894,"2135974,2135973","Bluebells","gallery",[2135973,2135974],0,0,"","																																																																																																							gallery_141894.html",0,0);galleries[134478]=new gallery(134478,"2121479,2065113,2063745,2034386","Chipping Campden","gallery",[2034386,2063745,2065113,2121479],0,0,"","																																																																																																							gallery_134478.html",0,0);galleries[293479]=new gallery(293479,"5197713","Christmas in London","gallery",[5197713],0,0,"","																																																																																																							gallery_293479.html",0,0);galleries[137269]=new gallery(137269,"2054333","Early London Spring","gallery",[2054320,2054328,2054333,2083282,2083338,2083381],0,0,"","																																																																																																							gallery_137269.html",0,0);galleries[138980]=new gallery(138980,"2081655","Limited Edition Gallery","gallery",[2081655,2081674,6904284],0,0,"","																																																																																																							gallery_138980.html",0,0);galleries[147406]=new gallery(147406,"2238795,2238794","Normandy","gallery",[2238794,2238795],0,0,"","																																																																																																							gallery_147406.html",0,0);galleries[249016]=new gallery(249016,"4180541","People","gallery",[4180541],0,0,"","																																																																																																							gallery_249016.html",0,0);galleries[34647]=new gallery(34647,"433719","Seaside Stills","gallery",[433719],0,0,"","																																																																																																							gallery_34647.html",0,0);galleries[137795]=new gallery(137795,"2062192","Somme France","gallery",[2062192,2063170,2062562],0,0,"","																																																																																																							gallery_137795.html",0,0);galleries[34659]=new gallery(34659,"433713","Southern France","gallery",[2000340,433713,434857,2000187,2000366],0,0,"","																																																																																																							gallery_34659.html",0,0);galleries[139629]=new gallery(139629,"2093625,2093612,2093611,2093584","Stockholm","gallery",[2093584,2093625,2093611,2093612],0,0,"","																																																																																																							gallery_139629.html",0,0);galleries[294070]=new gallery(294070,"5210390","Summer in France","gallery",[5210421,5210390,5210422,5210391],0,0,"","																																																																																																							gallery_294070.html",0,0);galleries[141977]=new gallery(141977,"2139428,2139369,2138754,2138736,2138703,2137314,2137313","The Blenheim Joust","gallery",[2138703,2138736,2138754,2139369,2139428,2137313,2137314],0,0,"","																																																																																																							gallery_141977.html",0,0);galleries[292543]=new gallery(292543,"5180135","The Louvre - November","gallery",[5180019,5180050,5180131,5180156,5180020,5180051,5180096,5180132,5180157,5180021,5180052,5180097,5180133,5180022,5180053,5180098,5180134,5180023,5180054,5180100,5180135],0,0,"","																																																																																																							gallery_292543.html",0,0);galleries[250471]=new gallery(250471,"4223250","Wimbledon 2009","gallery",[4223224,4223248,4223225,4223249,4223226,4223250,4223227,4223251,4223228],0,0,"","																																																																																																							gallery_250471.html",0,0);galleries[34484]=new gallery(34484,"431525","Paris","gallery",[431525,431528,431532,431875],0,0,"","																																																																																																							gallery_34484.html",0,0);var imageSets=new Object();imageSets[1]="5210390,5180135,5180054,4223250,4223248,4180541,4180114,4179838,2115509,2081655,2067456,2054333";imageSets[2]="5210390,5180135,4223250,4179838,2081655,2067456,2062192,2054333,433719,433713,431525";imageSets[3]="6904284,5210422,5210421,5210391,5210390,5197713,5180157,5180156,5180135,5180134,5180133,5180132,5180131,5180100,5180098,5180097,5180096,5180054,5180053,5180052,5180051,5180050,5180023,5180022,5180021,5180020,5180019,4223251,4223250,4223249,4223248,4223228,4223227,4223226,4223225,4223224,4180541,4180116,4180115,4180114,4180113,4179842,4179841,4179840,4179839,4179838,2238795,2238794,2139428,2139369";function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/simken/images";break}switch(a){case 1:b="http://www1.clikpic.com/simken/images";break}switch(a){case 2:b="http://admin.clikpic.com/simken/images";break}switch(a){case 24:b="http://tpc15/clikpic/simken/images";break}switch(a){case 4:b="http://www.clikchurch.com/simken/images";break}switch(a){case 5:b="http://www2.clikpic.com/simken/images";break}switch(a){case 22:b="http://tpc5/clikpic/simken/images";break}switch(a){case 23:b="http://tpc10/clikpic/simken/images";break}switch(a){case 25:b="http://tpc16/clikpic/simken/images";break}switch(a){case 15:b="http://www3.clikpic.com/simken/images";break}switch(a){case 18:b="http://www4.clikpic.com/simken/images";break}switch(a){case 19:b="http://www5.clikpic.com/simken/images";break}switch(a){case 31:b="http://www7.clikpic.com/simken/images";break}switch(a){case 32:b="http://admin2.clikpic.com/simken/images";break}switch(a){case 33:b="http://www8.clikpic.com/simken/images";break}switch(a){case 34:b="http://www9.clikpic.com/simken/images";break}switch(a){case 35:b="http://admin3.clikpic.com/simken/images";break}switch(a){case 37:b="http://admin4.clikpic.com/simken/images";break}switch(a){case 38:b="http://admin5.clikpic.com/simken/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;a.parentNode.title=a.alt=photos[imageID].caption}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function getHomeImageLink(c){var a="",b=backgrounds&&backgrounds[c];if(b){if(b&&b.galleries_id!=""){a=b.fnGalleryLink()}else{a+="gallery.html"}}return a}function showHomeImageInline(e,c,a){var d={},b,f=1;if(c){f=c}b=randomListVal(imageSets[f]);if(a==null&&"gallery"!=""){a=getHomeImageLink(b)}updateImage({nextPhoto:backgrounds[b],img:e.find("img")[0],$photo:e,$title:$("#homeimageTitleContainer"),$detail:$("#homeimageDetailsContainer"),speed:0,href:a,css:d,onAfter:function(){this.closest(".contentsection").doManualAlign({inner:"img",crop:"a"})}})}function updateImage(c){var g={nextPhoto:"",field:"",img:"",$photo:"",$title:"",$detail:"",updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},h=$.extend({},g,c),d="",b="",a=h.nextPhoto.id,f=h.nextPhoto.caption,e=h.nextPhoto.src;if(!basic){if(h.updateHash&&clik.getIDInUrl(location.href,"photo")!=h.nextPhoto.id){clik.changeHash("photos_id="+h.nextPhoto.id,true)}if(h.$photo.length>0){d=$("<img/>",{"class":"mainphoto photo",src:e,id:"mainPic",name:"mainPic",width:h.nextPhoto.width,height:h.nextPhoto.height,alt:f,css:h.css||{}});if(h.href){if(h.href.match(/<a/)){d=$(h.href).append(d)}else{d=$("<a/>",{href:h.href,title:f}).append(d)}}else{d=$("<a/>",{title:f}).append(d)}if(h.speed==0){h.$photo.html(d);if(h.onBefore){h.onBefore.apply(h.$photo)}if(h.onAfter){h.onAfter.apply(h.$photo)}}else{h.$photo.stop(true,true).fadeReplaceWith(d,h.speed,"",function(){if(h.onAfter){h.onAfter.apply(this)}clik.doColumnResize(false,$(this).add(h.$detail).add(h.$title))},h.onBefore)}}if(h.field){h.field.value=a}else{h.$photo.data("image_id",a)}if(h.$title.length>0){h.$title.fadeGalleryDetails(f,h.speed)}if(h.updateDocumentTitle){document.title="Ken Anderson Photography: "+f}if(h.$detail.length>0){b=h.nextPhoto.fnGetImageDetails();h.$detail.fadeGalleryDetails(b,h.speed,function(){var j={};resizePhotoInfo(j);if(typeof(backgrounds)!="undefined"&&h.nextPhoto==backgrounds[h.nextPhoto.id]){toggleAddToCartConfirm(backgrounds)}else{if(typeof(photos)!="undefined"&&h.nextPhoto==photos[h.nextPhoto.id]){toggleAddToCartConfirm(photos)}}})}if(!h.speed){clik.doColumnResize(false,h.$photo.add(h.$detail).add(h.$title))}return d}else{window.location="photo_"+nextPhoto.id+".html"}}function toggleAddToCartConfirm(a){if(typeof(a)!=="object"){a=photos}if($("#paymentConfirm").length>0){$("#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,a,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();dspOrderDetails(form.site.value)}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}photo.prototype.fnGetImageDetails=function(){var a="";if(this.description!=""){a=a+'<p id="imageDescription">'+this.description+"</p>"}if(this.photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+this.photo_ref+"</p>"}if(this.takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+this.takendate+"</p>"}if(this.location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+this.location+"</p>"}if(this.photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+this.photographer+"</p>"}a=a+this.fnGetPaymentInfo();if(a!=""){a=a+'<div class="spacer"></div>'}return a};photo.prototype.fnGetPaymentInfo=function(){var b="";if(this.item_price!==""){b=b+"<p>Buy now using Google Checkout:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+this.purchase_instruction+"</strong> 				&pound;"+(this.item_price).toFixed(2)+"</p>";var d=this.purchase_instruction;var c=(this.item_price).toFixed(2);var a=0}else{if(this.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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';b=b+getPaymentOptions(this.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[this.payment_groups_id].options[0];if(paymentOptions[a]){var d=paymentOptions[a].payment_option;var c=paymentOptions[a].price}}else{}}if(this.item_price!==""||this.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="SIMKEN">';b=b+'	<input type="hidden" name="item_number" value="'+this.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";b=b+'<div class="clearing">&nbsp;</div>'}return b};function showGalleryImage(c,b,a){if(b){if(location.hash.match("galleries_id="+c)&&(imageID=location.hash.match(".*photos_id=(.+)$"))){imageID=imageID[1]}else{imageID=randomListVal(galleries[c].featured_images)}if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;b.alt=galleries[c].title;if(a){$(b).parent().attr({href:thumbnails[imageID].fnGalleryLink(c),title:galleries[c].title})}}}}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="'+galleries[i].section_code+"_"+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}};
