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[6463929]=new thumbnail(6463929,"337902","Flowered Up","2010-07-27-0230-low_thumb.jpg",130,178,18);thumbnails[6464083]=new thumbnail(6464083,"337902","Shock 'N' Awe","2010-07-25-7257421-low_thumb.jpg",130,98,18);thumbnails[5998016]=new thumbnail(5998016,"337902","Endagered Species","2010-04-17-4175602-low_thumb.jpg",130,96,18);thumbnails[5998005]=new thumbnail(5998005,"337902","Modern Stress","2010-04-17-4175382-low_thumb.jpg",130,174,18);thumbnails[6002644]=new thumbnail(6002644,"337902","Snow Queen","2008-04-06-snow_queen_-_low1_thumb.jpg",130,98,18);thumbnails[6003113]=new thumbnail(6003113,"337902","Happy Meal Families","2008-03-24-happy_meal_families-low_thumb.jpg",130,98,18);thumbnails[5998061]=new thumbnail(5998061,"337902","Work Hard","2007-10-14-no_rest_for_the_wicked-_low1_thumb.jpg",130,98,18);thumbnails[6002410]=new thumbnail(6002410,"337902","The Fun Cooldown","2007-06-10-In_The_Moment-low1_thumb.jpg",130,98,18);thumbnails[6584903]=new thumbnail(6584903,"338107","Comforting ","2010-08-21-0407-low_thumb.jpg",130,98,18);thumbnails[6584924]=new thumbnail(6584924,"338107","Walk The Line","2010-06-06-6067038-low_thumb.jpg",130,104,18);thumbnails[6145662]=new thumbnail(6145662,"338107","Wimbledon Dogs","2010-06-07-6077293-low_thumb.jpg",130,104,18);thumbnails[5998028]=new thumbnail(5998028,"338107","Constant Craving","2010-04-08-4085136-low1_thumb.jpg",130,104,18);thumbnails[5998030]=new thumbnail(5998030,"338107","It's A Long Way From Hogwarts","2010-04-03-4034964-low_thumb.jpg",130,195,18);thumbnails[6002632]=new thumbnail(6002632,"338107","Smoking Kills","2008-04-12-smoking_kills-low1_thumb.jpg",130,104,18);thumbnails[6002708]=new thumbnail(6002708,"338107","Inclement","2008-04-06-london_bridge_snow_2-low1_thumb.jpg",130,173,18);thumbnails[5998062]=new thumbnail(5998062,"338107","Walk This Way","2007-06-30-Walk_This_Way-low_thumb.jpg",130,108,18);thumbnails[5998070]=new thumbnail(5998070,"338107","Drenched","2007-06-30-soaked_through-low1_thumb.jpg",130,98,18);thumbnails[5998075]=new thumbnail(5998075,"338107","Contemplation & Reflection","2007-06-24-reflecting_in_trafalgar_square-low1_thumb.jpg",130,98,18);thumbnails[6464107]=new thumbnail(6464107,"337903","Ode to Boy","2010-06-06-6067122-low_thumb.jpg",130,98,18);thumbnails[6002710]=new thumbnail(6002710,"337903","The Things She Never Said","2008-03-24-the_things_she_never_said_too_mono-low_thumb.jpg",130,98,18);thumbnails[6002780]=new thumbnail(6002780,"337903","Drama!","2008-03-24-street_drama-low_thumb.jpg",130,108,18);thumbnails[6002962]=new thumbnail(6002962,"337903","Mr Dragon","2008-03-24-mr_dragon-low1_thumb.jpg",130,98,18);thumbnails[6003118]=new thumbnail(6003118,"337903","Chuck","2008-03-24-beret_mono-low_thumb.jpg",130,98,18);thumbnails[6002415]=new thumbnail(6002415,"337903","The Man on Platform 4","2007-06-24-echoes_of_a_man_on_platform_4-low_thumb.jpg",130,174,18);thumbnails[6003132]=new thumbnail(6003132,"337903","Don't Mess With Mr Knuckles","2007-02-27-dont_mess_with_mr_knuckles_jpgmag-low_thumb.jpg",130,98,18);thumbnails[5875174]=new thumbnail(5875174,"337904","The Wrong Hill","2007-03-07-almeria_3044_2007-low_thumb.jpg",130,98,18);thumbnails[6002414]=new thumbnail(6002414,"337904","Postcard from the Cliche","2007-10-21-postcards_from_the_cliche_-_low1_thumb.jpg",130,98,18);thumbnails[5868741]=new thumbnail(5868741,"337904","City of Dreams","2006-04-11-millennium_nite_bridge_2-low_thumb.jpg",130,98,18);thumbnails[5869025]=new thumbnail(5869025,"337904","All That Glitters","2006-10-20-all_that_glitters_-_canary_wharf_-_LOW_thumb.jpg",130,98,18);thumbnails[5869072]=new thumbnail(5869072,"337904","The Twilight City","2006-10-20-the_twilight_city_-_parliament_hill_nw3-low_thumb.jpg",130,97,18);thumbnails[6002330]=new thumbnail(6002330,"337904","The City Sleeps Still","2006-04-11-millennium_nite_bridge_1-low_thumb.jpg",130,85,18);thumbnails[5868721]=new thumbnail(5868721,"337904","Armegeddon Days Are Here (Again)","2005-11-26-burn_democracy_burn-low_thumb.jpg",130,94,18);thumbnails[5868714]=new thumbnail(5868714,"337904","The Long Good Friday","2004-01-20-The_Long_Good_Friday-low_thumb.jpg",130,98,18);thumbnails[5850364]=new thumbnail(5850364,"337905","The Power & the Glory","2008-03-26-every_end_has_a_beginning-low_thumb.jpg",130,98,18);thumbnails[5838308]=new thumbnail(5838308,"337905","In-Between Floors","2007-06-10-in_between_floors_bw-low12_thumb.jpg",130,98,18);thumbnails[5844610]=new thumbnail(5844610,"337905","Unnatural Evolution","2007-05-26-unnatural_evolution-low_thumb.jpg",130,98,18);thumbnails[5844627]=new thumbnail(5844627,"337905","Reflecting Upon Blind Light","2007-06-17-reflecting_upon_blind_light-low_thumb.jpg",130,176,18);thumbnails[5844703]=new thumbnail(5844703,"337905","Glint","2007-09-30-architecture_673-low_thumb.jpg",130,101,18);thumbnails[5845136]=new thumbnail(5845136,"337905","We The Insignificant","2007-11-25-We_The_Insignificant-low_thumb.jpg",130,98,18);thumbnails[5875164]=new thumbnail(5875164,"337905","Restive","2007-03-06-Restive_In_This_Place_With_You-low_thumb.jpg",130,98,18);thumbnails[5875182]=new thumbnail(5875182,"337905","Looking for Eugene's Ghost","2007-03-07-atgetist-low_thumb.jpg",130,175,18);thumbnails[6463934]=new thumbnail(6463934,"337906","Sea Flock","2010-07-25-7257544-low_thumb.jpg",130,97,18);thumbnails[6463936]=new thumbnail(6463936,"337906","Sail Away","2010-07-25-7257510-low_thumb.jpg",130,173,18);thumbnails[5997986]=new thumbnail(5997986,"337906","Deep Forest","2010-05-02-5025483-low_thumb.jpg",130,173,18);thumbnails[5844546]=new thumbnail(5844546,"337906","Births, Deaths & Broken Homes","2007-03-08-births-low_thumb.jpg",130,173,18);thumbnails[5870380]=new thumbnail(5870380,"337906","Wintergardens","2007-02-07-wintergardens-low_thumb.jpg",130,97,18);thumbnails[5870383]=new thumbnail(5870383,"337906","Snow Stopped Play","2007-02-08-snow_stopped_play_thumb.jpg",130,98,18);thumbnails[5875184]=new thumbnail(5875184,"337906","The Resurrection","2007-03-07-pumpmix-89-low_thumb.jpg",130,178,18);thumbnails[5868915]=new thumbnail(5868915,"337906","Floating The Light Fantastic","2006-10-15-floating_lanterns_-_trafalger_sq_wc1-low_thumb.jpg",130,98,18);thumbnails[5868973]=new thumbnail(5868973,"337906","Shades of Diwali","2006-10-15-shades_of_dawali_-_trafalger_sq_wc1-low_thumb.jpg",130,98,18);thumbnails[5849040]=new thumbnail(5849040,"337908","I Always Leave My Heart In The Wrong Places","2008-04-07-i_always_leave_my_heart_in_the_wrong_places_-_low_thumb.jpg",130,185,18);thumbnails[5849075]=new thumbnail(5849075,"337908","Modern Art for the Partially Sighted","2008-03-21-modern_art_for_the_partially_sighted-low_thumb.jpg",130,98,18);thumbnails[5849102]=new thumbnail(5849102,"337908","33BA","2008-03-21-33BA_-_low_thumb.jpg",130,99,18);thumbnails[5838304]=new thumbnail(5838304,"337908","Shake Ralph After","2007-01-21-low4_thumb.jpg",130,98,18);thumbnails[5838310]=new thumbnail(5838310,"337908","PointTwoSixSeven","2007-04-07-twosixseven-low123_thumb.jpg",130,98,18);thumbnails[5838313]=new thumbnail(5838313,"337908","Luke 24","2007-06-24-Luke_24-low123_thumb.jpg",130,96,18);thumbnails[5844531]=new thumbnail(5844531,"337908","About As Exciting As It Gets (Round Here)","2007-01-21-ambientograpgy_1-low_thumb.jpg",130,98,18);thumbnails[5844693]=new thumbnail(5844693,"337908","Hide & Seek","2007-09-09-childhood__the_damage_done-low_thumb.jpg",130,97,18);thumbnails[5844716]=new thumbnail(5844716,"337908","Surface Direction","2007-10-04-croydon_859_2007_low_thumb.jpg",130,98,18);thumbnails[5844727]=new thumbnail(5844727,"337908","An Urban Fabric","2007-10-06-on_arking_57_-_low_thumb.jpg",130,97,18);thumbnails[5844776]=new thumbnail(5844776,"337908","London Brough of Abstract","2007-11-03-London_Borough_of_Abstract-low_thumb.jpg",130,98,18);thumbnails[5844779]=new thumbnail(5844779,"337908","Siskind on E","2007-11-18-Siskind_on_E-low_thumb.jpg",130,98,18);thumbnails[5844783]=new thumbnail(5844783,"337908","The Loss of Identity","2007-11-25-Loss_of_Identity-low_thumb.jpg",130,98,18);thumbnails[5870372]=new thumbnail(5870372,"337908","Kline In Snow","2007-01-24-kline_in_snow-low_thumb.jpg",130,97,18);thumbnails[5868833]=new thumbnail(5868833,"337908","1710zerothree","2006-08-27-yellow_orange_patterns_1_-_bankside_se1-low_thumb.jpg",130,188,18);thumbnails[5869142]=new thumbnail(5869142,"337908","In the Bush of Ghosts","2006-11-19-in_the_bush_of_ghosts-low_thumb.jpg",130,98,18);thumbnails[6464086]=new thumbnail(6464086,"337914","Bite Sized Super Sized","2010-07-12-0095-low_thumb.jpg",130,98,18);thumbnails[5998018]=new thumbnail(5998018,"337914","Bared","2010-04-11-4115069-low_thumb.jpg",130,173,18);thumbnails[5844773]=new thumbnail(5844773,"337914","An Ode to Keld Helmer-Petersen","2007-11-03-homage_to_keld_helmer-petersen_-_low_thumb.jpg",130,98,18);thumbnails[5870376]=new thumbnail(5870376,"337914","Aaron's Tree","2007-01-27-the_tree_3_2007-low_thumb.jpg",130,98,18);thumbnails[5870387]=new thumbnail(5870387,"337914","Lung","2007-02-25-lung-low_thumb.jpg",130,178,18);thumbnails[5870391]=new thumbnail(5870391,"337914","A Harbour Still Life","2007-03-06-another_harbour_still_life_2-low_thumb.jpg",130,173,18);thumbnails[5870398]=new thumbnail(5870398,"337914","When I'm Gone Still Remember Me","2007-03-06-e-zartialife-low_thumb.jpg",130,97,18);thumbnails[5875151]=new thumbnail(5875151,"337914","It's So Long Gone","2007-03-06-intermezzo_sprungtek-low_thumb.jpg",130,97,18);thumbnails[5998141]=new thumbnail(5998141,"337914","The Secret Life of the Urban Garden","2007-03-13-the_secret_life_of_the_urban_garden-low_thumb.jpg",130,108,18);thumbnails[6002420]=new thumbnail(6002420,"337927","Bankrupt(ion)","2008-08-25-4244-low1_thumb.jpg",130,97,18);thumbnails[6002598]=new thumbnail(6002598,"337927","We're Closing Down The Economy","2008-08-17-3043-low_thumb.jpg",130,98,18);thumbnails[6002599]=new thumbnail(6002599,"337927","Credit Crunch Hits The Apple Crunch","2008-08-17-3036-low_thumb.jpg",130,98,18);thumbnails[5998037]=new thumbnail(5998037,"337927","Discount People","2007-11-03-discount_people-low_thumb.jpg",130,97,18);thumbnails[5998042]=new thumbnail(5998042,"337927","Everything Must Go","2007-11-03-A_Design_For_Life_-_low1_thumb.jpg",130,98,18);thumbnails[6463932]=new thumbnail(6463932,"338100","Besides The Seaside","2010-07-25-7257592-low_thumb.jpg",130,98,18);thumbnails[6002638]=new thumbnail(6002638,"338100","Rusty","2008-04-07-rusty_the_cat_too-low1_thumb.jpg",130,98,18);thumbnails[6002328]=new thumbnail(6002328,"338100","Bird In Water","2006-10-08-bird_silhouette_1_-_fulham_sw6-low_thumb.jpg",130,175,18);thumbnails[6002335]=new thumbnail(6002335,"338100","Carrion","2007-04-29-carrion-low1_thumb.jpg",130,171,18);var galleries=new Object();galleries[337895]=new gallery(337895,"6584924,6584903,6464107,6464083,6463929,6145662,6003132,6003118,6003113,6002962","People","section88460",[]);galleries[337902]=new gallery(337902,"6464083,6463929,6003113,6002644,6002410,5998061,5998016,5998005","Street Colour","section88460",[6463929,6464083,5998016,5998005,6002644,6003113,5998061,6002410]);galleries[338107]=new gallery(338107,"6584924,6584903,6145662,6002708,6002632,5998075,5998070,5998062,5998030,5998028","Street B&W","section88460",[6584903,6584924,6145662,5998028,5998030,6002632,6002708,5998062,5998070,5998075]);galleries[337903]=new gallery(337903,"6464107,6003132,6003118,6002962,6002780,6002710,6002415","Portraits","section88460",[6464107,6002710,6002780,6002962,6003118,6002415,6003132]);galleries[337896]=new gallery(337896,"6463936,6463934,6002414,6002330,5997986,5875184,5875182,5875174,5875164,5870383","Places","section88460",[]);galleries[337904]=new gallery(337904,"6002414,6002330,5875174,5869072,5869025,5868741,5868721,5868714","Vistas","section88460",[5875174,6002414,5868741,5869025,5869072,6002330,5868721,5868714]);galleries[337905]=new gallery(337905,"5875182,5875164,5850364,5845136,5844703,5844627,5844610,5838308","Structural","section88460",[5850364,5838308,5844610,5844627,5844703,5845136,5875164,5875182]);galleries[337906]=new gallery(337906,"6463936,6463934,5997986,5875184,5870383,5870380,5868973,5868915,5844546","Scenics","section88460",[6463934,6463936,5997986,5844546,5870380,5870383,5875184,5868915,5868973]);galleries[337897]=new gallery(337897,"6464086,5998141,5998018,5875151,5870398,5870391,5870387,5870376,5870372,5869142","Things","section88460",[]);galleries[337908]=new gallery(337908,"5870372,5869142,5868833,5849102,5849075,5849040,5844783,5844779,5844776,5844727","Details","section88460",[5849040,5849075,5849102,5838304,5838310,5838313,5844531,5844693,5844716,5844727,5844776,5844779,5844783,5870372,5868833,5869142]);galleries[337914]=new gallery(337914,"6464086,5998141,5998018,5875151,5870398,5870391,5870387,5870376,5844773","Objects","section88460",[6464086,5998018,5844773,5870376,5870387,5870391,5870398,5875151,5998141]);galleries[337898]=new gallery(337898,"6002599,6002598,6002420,5998042,5998037","Editorial","section88460",[]);galleries[337927]=new gallery(337927,"6002599,6002598,6002420,5998042,5998037","Credit Crunch","section88460",[6002420,6002598,6002599,5998037,5998042]);galleries[337900]=new gallery(337900,"6463932,6002638,6002335,6002328","Other","section88460",[]);galleries[338100]=new gallery(338100,"6463932,6002638,6002335,6002328","Wildlife","section88460",[6463932,6002638,6002328,6002335]);var imageSets=new Object();imageSets[1]="5875184,5875182,5875174,5875164,5875151,5870398,5870391,5870387,5870383,5870380,5870372,5869142,5869072,5869025,5868973,5868915,5868833,5868741,5868721,5868714,5850364,5849102,5849075,5849040,5845136,5844783,5844779,5844776,5844773,5844727,5844716,5844703,5844693,5844627,5844610,5844546,5844531,5838313";imageSets[3]="5875184,5875182,5875174,5875164,5875151,5870398,5870391,5870387,5870383,5870380,5870372,5869142,5869072,5869025,5868973,5868915,5868833,5868741,5868721,5868714,5850364,5849102,5849075,5849040,5845136,5844783,5844779,5844776,5844773,5844727,5844716,5844703,5844693,5844627,5844610,5844546,5844531,5838313";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/windscreenfly/images";break}switch(a){case 1:b="http://www1.clikpic.com/windscreenfly/images";break}switch(a){case 2:b="http://admin.clikpic.com/windscreenfly/images";break}switch(a){case 24:b="http://tpc15/clikpic/windscreenfly/images";break}switch(a){case 4:b="http://www.clikchurch.com/windscreenfly/images";break}switch(a){case 5:b="http://www2.clikpic.com/windscreenfly/images";break}switch(a){case 22:b="http://tpc5/clikpic/windscreenfly/images";break}switch(a){case 23:b="http://tpc10/clikpic/windscreenfly/images";break}switch(a){case 25:b="http://tpc16/clikpic/windscreenfly/images";break}switch(a){case 15:b="http://www3.clikpic.com/windscreenfly/images";break}switch(a){case 18:b="http://www4.clikpic.com/windscreenfly/images";break}switch(a){case 19:b="http://www5.clikpic.com/windscreenfly/images";break}switch(a){case 31:b="http://www7.clikpic.com/windscreenfly/images";break}switch(a){case 32:b="http://admin2.clikpic.com/windscreenfly/images";break}switch(a){case 33:b="http://www8.clikpic.com/windscreenfly/images";break}switch(a){case 34:b="http://www9.clikpic.com/windscreenfly/images";break}switch(a){case 35:b="http://admin3.clikpic.com/windscreenfly/images";break}switch(a){case 37:b="http://admin4.clikpic.com/windscreenfly/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("section88460"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section88460.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("section88460"!=""){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="Darren Lehane 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>"}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).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+'<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+'")'})}}};