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[3143556]=new thumbnail(3143556,"245324","Mater Mundi Salvatoris","Warwick1107_1440_thumb.jpg",130,87,1);thumbnails[4075406]=new thumbnail(4075406,"245034","","Spagjct310309_1806exblend1web_thumb.jpg",130,82,1);thumbnails[4075409]=new thumbnail(4075409,"245034","","Spagjct310309_1779_80_81HDR1web_thumb.jpg",130,87,1);thumbnails[4075412]=new thumbnail(4075412,"245034","","Spagjct200109_0751web_thumb.jpg",130,87,1);thumbnails[4075415]=new thumbnail(4075415,"245034","","Spagjct200109_0849web_thumb.jpg",130,87,1);thumbnails[4075418]=new thumbnail(4075418,"245034","","Spagjct200109_0866web_thumb.jpg",130,87,1);thumbnails[4075422]=new thumbnail(4075422,"245034","","Spagjct200109_0872web_thumb.jpg",130,88,1);thumbnails[4075443]=new thumbnail(4075443,"245034","","SPaghettijct301108_0263web_thumb.jpg",130,86,1);thumbnails[4075446]=new thumbnail(4075446,"245034","","SPaghettijct301108_0271web_thumb.jpg",130,195,1);thumbnails[4081156]=new thumbnail(4081156,"245036","Diagram 670","Scotland_etc_Jul_08_5870web800_thumb.jpg",130,87,1);thumbnails[4081183]=new thumbnail(4081183,"245036","Diagram 570","Ardnamurchan_3379web800_thumb.jpg",130,87,1);thumbnails[4081187]=new thumbnail(4081187,"245036","Diagram 521","Ardnamurchan_3813web800_thumb.jpg",130,195,1);thumbnails[4081209]=new thumbnail(4081209,"245036","","Ardnamurchan_3407web800_thumb.jpg",130,86,1);thumbnails[4082086]=new thumbnail(4082086,"245035","Achnaha, Ardnamurchan","Ardnamurchan_3492web800_thumb.jpg",130,86,1);thumbnails[4082120]=new thumbnail(4082120,"245035","Window, Bolsover Castle","Bolsover_270409_2175_copyweb800_thumb.jpg",130,195,1);thumbnails[4082126]=new thumbnail(4082126,"245035","The Sound of Sleat from Syke","ScotlandApr09_1965web800_thumb.jpg",130,86,1);thumbnails[4089575]=new thumbnail(4089575,"47450","Coalite offices, Shuttlewood, Derbyshire","Mar_09-2_1201web800_thumb.jpg",130,87,1);thumbnails[4089577]=new thumbnail(4089577,"47450","Coalite offices, Shuttlewood, Derbyshire","Mar_09-2_1203web800_thumb.jpg",130,86,1);thumbnails[4089592]=new thumbnail(4089592,"47450","Coalite offices, Shuttlewood, Derbyshire","Ma293009_1639web800_thumb.jpg",130,86,1);thumbnails[4089601]=new thumbnail(4089601,"47450","Coalite offices, Shuttlewood, Derbyshire","Ma293009_1653_HDRweb800_thumb.jpg",130,87,1);thumbnails[4089657]=new thumbnail(4089657,"47450","Sheffield","Architecture_0131web800_thumb.jpg",130,86,1);thumbnails[4089678]=new thumbnail(4089678,"47450","Gleeson, Arizona","USAApr08_4279web800_thumb.jpg",130,87,1);thumbnails[4089700]=new thumbnail(4089700,"47450","Bear Valley Junction, Utah","USA079web800_thumb.jpg",130,104,1);thumbnails[4089703]=new thumbnail(4089703,"47450","Near Solvang, California","USAApr08a_4614web800_thumb.jpg",130,87,1);thumbnails[4089727]=new thumbnail(4089727,"47450","Dirt road, Gran Canaria","Grancan1_2231web800_thumb.jpg",130,65,1);thumbnails[4089742]=new thumbnail(4089742,"47450","Line of the former Ashover Light Railway, Derbyshire","ALR_271207_2029web800_thumb.jpg",130,87,1);thumbnails[4091800]=new thumbnail(4091800,"245036","Diagram 674","Ardnamurchan_3382web800_thumb.jpg",130,87,1);thumbnails[658371]=new thumbnail(658371,"47450","Floating tyre, December.","tyre1_thumb.jpg",130,86,1);thumbnails[790872]=new thumbnail(790872,"245324","Ghosts","DSC_0123_thumb.NEF1web.jpg",130,79,1);thumbnails[3144235]=new thumbnail(3144235,"192794","No. 1 - Castle Street, Worcester","080213Hastings_3571web_thumb.jpg",130,86,1);thumbnails[3144744]=new thumbnail(3144744,"192829","The start","Journeytowork040408_3806web_thumb.jpg",130,86,1);thumbnails[4075308]=new thumbnail(4075308,"245030","","DSC_00163LRPSweb_thumb.jpg",130,195,1);thumbnails[4081021]=new thumbnail(4081021,"245032","","Ma293009_1727web800_thumb.jpg",130,87,1);thumbnails[3144221]=new thumbnail(3144221,"192794","No. 2 - Mortlake Avenue, Worcester","080213Hastings_3561web_thumb.jpg",130,105,1);thumbnails[3144745]=new thumbnail(3144745,"192829","The next","Journeytowork040408_3807web_thumb.jpg",130,86,1);thumbnails[4075310]=new thumbnail(4075310,"245030","","DSC_0051181209LRPSweb_thumb.jpg",130,87,1);thumbnails[4081012]=new thumbnail(4081012,"245032","","Ma293009_1681bwaweb800_thumb.jpg",130,87,1);thumbnails[3145114]=new thumbnail(3145114,"192794","No. 3 - Westwood Green, Cookham","Kingston_3649web_thumb.jpg",130,86,1);thumbnails[3143584]=new thumbnail(3143584,"53420","San Diego","USAApr08_4344_thumb.jpg",130,87,1);thumbnails[3144228]=new thumbnail(3144228,"192794","No. 7 - Livingstone Street, Worcester","080213Hastings_3563web_thumb.jpg",130,87,1);thumbnails[3144747]=new thumbnail(3144747,"192829","The spire, from Tupton","Journeytowork040408_3809web_thumb.jpg",130,87,1);thumbnails[4075312]=new thumbnail(4075312,"245030","","DSC_0084LRPSweb_thumb.jpg",130,192,1);thumbnails[4081016]=new thumbnail(4081016,"245032","","Ma293009_1698web800_thumb.jpg",130,87,1);thumbnails[3143562]=new thumbnail(3143562,"53420","Rattlesnake Ranch","RATTLESNAKE RANCH web_thumb.jpg",130,63,1);thumbnails[3144234]=new thumbnail(3144234,"192794","No. 8 - Helford Close, Worcester","080213Hastings_3570web_thumb.jpg",130,86,1);thumbnails[3144749]=new thumbnail(3144749,"192829","The Boot & Shoe, Grassmoor","Journeytowork040408_3814web_thumb.jpg",130,87,1);thumbnails[4075313]=new thumbnail(4075313,"245030","","USAApr08_4358LRPSweb_thumb.jpg",130,87,1);thumbnails[4081019]=new thumbnail(4081019,"245032","","Ma293009_1701web800_thumb.jpg",130,87,1);thumbnails[790859]=new thumbnail(790859,"245324","Gib Hill","DSCN3033web_thumb.jpg",130,97,1);thumbnails[3143578]=new thumbnail(3143578,"53420","Colorado","USAApr08_4114_thumb.jpg",130,195,1);thumbnails[3144220]=new thumbnail(3144220,"192794","No. 9 - Dinchall Road, Worcester","080213Hastings_3557web_thumb.jpg",130,87,1);thumbnails[3144751]=new thumbnail(3144751,"192829","Grassmoor country park","Journeytowork040408_3816web_thumb.jpg",130,87,1);thumbnails[4075314]=new thumbnail(4075314,"245030","","DSC_0045LRPSweb_thumb.jpg",130,193,1);thumbnails[4081047]=new thumbnail(4081047,"245032","","Potterylane_2386web800_thumb.jpg",130,86,1);thumbnails[3143576]=new thumbnail(3143576,"53420","Arizona","USAApr08_4279_thumb.jpg",130,87,1);thumbnails[3144333]=new thumbnail(3144333,"192794","Ghyllside Avenue, Hastings","080213Hastings_3437web_thumb.jpg",130,87,1);thumbnails[3144753]=new thumbnail(3144753,"192829","The A617","Journeytowork040408_3820web_thumb.jpg",130,87,1);thumbnails[4075317]=new thumbnail(4075317,"245030","","CCPSSummer08_5260LRPSweb_thumb.jpg",130,195,1);thumbnails[4081013]=new thumbnail(4081013,"245032","","Ma293009_1682web800_thumb.jpg",130,88,1);thumbnails[3143572]=new thumbnail(3143572,"53420","Ghost town, Arizona","USAApr08_4238_thumb.jpg",130,86,1);thumbnails[3144336]=new thumbnail(3144336,"192794","Perth Road, St Leonards","080213Hastings_3436web_thumb.jpg",130,195,1);thumbnails[3144754]=new thumbnail(3144754,"192829","Bridge","Journeytowork040408_3823web_thumb.jpg",130,195,1);thumbnails[4075318]=new thumbnail(4075318,"245030","","071007_Chesterfield_0362LRPSweb_thumb.jpg",130,87,1);thumbnails[4081052]=new thumbnail(4081052,"245032","","Potterylane_2425web800_thumb.jpg",130,86,1);thumbnails[1133157]=new thumbnail(1133157,"47450","Hill farm, Temple Normanton ","DSC_0140web_thumb.jpg",130,87,1);thumbnails[3143567]=new thumbnail(3143567,"53420","Red Rock country, Arizona","USAApr08_4134_thumb.jpg",130,86,1);thumbnails[3144748]=new thumbnail(3144748,"192829","Passing car No. 1","Journeytowork040408_3811web_thumb.jpg",130,86,1);thumbnails[4075324]=new thumbnail(4075324,"245030","","DSC_0221LRPSwebreverse_thumb.jpg",130,87,1);thumbnails[4081058]=new thumbnail(4081058,"245032","","Potterylane_2437web800_thumb.jpg",130,86,1);thumbnails[3143646]=new thumbnail(3143646,"53420","The four corners","USAApr08a_4886_thumb.jpg",130,87,1);thumbnails[3144756]=new thumbnail(3144756,"192829","Fox, Heath","Journeytowork040408_3827web_thumb.jpg",130,86,1);thumbnails[4075326]=new thumbnail(4075326,"245030","","USAApr08a_4593LRPSweb_thumb.jpg",130,87,1);thumbnails[4081054]=new thumbnail(4081054,"245032","","Potterylane_2427web800_thumb.jpg",130,86,1);thumbnails[3143648]=new thumbnail(3143648,"53420","Iron County, Utah","USAApr08a_4881_thumb.jpg",130,86,1);thumbnails[3144759]=new thumbnail(3144759,"192829","Morning traffic, Heath","Journeytowork040408_3833web_thumb.jpg",130,86,1);thumbnails[4075327]=new thumbnail(4075327,"245030","","Pressmanor311208_0569webLRPS_thumb.jpg",130,195,1);thumbnails[4081050]=new thumbnail(4081050,"245032","","Potterylane_2390web800_thumb.jpg",130,86,1);thumbnails[3143598]=new thumbnail(3143598,"53420","Las Vegas","USAApr08a_4785_thumb.jpg",130,195,1);thumbnails[3144760]=new thumbnail(3144760,"192829","Towards Glapwell","Journeytowork040408_3840web_thumb.jpg",130,87,1);thumbnails[4081020]=new thumbnail(4081020,"245032","","Ma293009_1709web800_thumb.jpg",130,87,1);thumbnails[3143634]=new thumbnail(3143634,"53420","Ranch country","USAApr08a_4591_thumb.jpg",130,86,1);thumbnails[3144761]=new thumbnail(3144761,"192829","Roundabout traffic","Journeytowork040408_3841web_thumb.jpg",130,86,1);thumbnails[3143587]=new thumbnail(3143587,"53420","Santa Barbara County","USAApr08a_4570_thumb.jpg",130,86,1);thumbnails[3144733]=new thumbnail(3144733,"192829","Sovereign Signs","Enter custom name hereJourneytowork050408_3909web_thumb.jpg",130,86,1);thumbnails[3143590]=new thumbnail(3143590,"53420","Lompoc beach, California","USAApr08a_4714_thumb.jpg",130,111,1);thumbnails[3144762]=new thumbnail(3144762,"192829","Glapwell, Quadrilateral Division HQ","Journeytowork040408_3868web_thumb.jpg",130,87,1);thumbnails[3143595]=new thumbnail(3143595,"53420","Santa Barbara beach","USAApr08a_4751_thumb.jpg",130,86,1);thumbnails[3144763]=new thumbnail(3144763,"192829","Pleasley","Journeytowork040408_3888web_thumb.jpg",130,87,1);thumbnails[3144769]=new thumbnail(3144769,"192829","Bus stop","Journeytowork040408_3895web1_thumb.jpg",130,87,1);thumbnails[3143642]=new thumbnail(3143642,"53420","Rodeo Drive","USAApr08_4414_thumb.jpg",130,195,1);thumbnails[3144764]=new thumbnail(3144764,"192829","Miners' cottages, Pleasley","Journeytowork040408_3889web_thumb.jpg",130,87,1);thumbnails[3144771]=new thumbnail(3144771,"192829","Corner shop, Mansfield","Journeytowork040408_3896web_thumb.jpg",130,87,1);thumbnails[3144767]=new thumbnail(3144767,"192829","The sweet shop","Journeytowork040408_3891web_thumb.jpg",130,87,1);thumbnails[3144732]=new thumbnail(3144732,"192829","Factory","Enter custom name hereJourneytowork050408_3904web_thumb.jpg",130,87,1);thumbnails[3144736]=new thumbnail(3144736,"192829","Blanket and pipes","Enter custom name hereJourneytowork050408_3910web_thumb.jpg",130,86,1);thumbnails[3144738]=new thumbnail(3144738,"192829","The butcher's shop","Enter custom name hereJourneytowork050408_3911web_thumb.jpg",130,86,1);thumbnails[3144781]=new thumbnail(3144781,"192829","Rubble","Journeytowork060408_3929bookweb_thumb.jpg",130,86,1);thumbnails[3144783]=new thumbnail(3144783,"192829","The Oak Tree","Journeytowork060408_3940bookweb_thumb.jpg",130,87,1);thumbnails[3144785]=new thumbnail(3144785,"192829","Car sales alley (Southwell Road)","Journeytowork060408_3941bookweb1_thumb.jpg",130,87,1);thumbnails[3144787]=new thumbnail(3144787,"192829","Southwell Road","Journeytowork060408_3946bookweb_thumb.jpg",130,87,1);thumbnails[3144741]=new thumbnail(3144741,"192829","Garage","Enter custom name hereJourneytowork050408_3916web_thumb.jpg",130,87,1);thumbnails[3144739]=new thumbnail(3144739,"192829","Ransom Wood","Enter custom name hereJourneytowork050408_3914bookweb_thumb.jpg",130,86,1);var galleries=new Object();galleries[47450]=new gallery(47450,"4089742,4089727,4089703,4089700,4089678,4089657,4089601,4089592,4089577,4089575","Abandonment","gallery",[4089575,4089577,4089592,4089601,4089657,4089678,4089700,4089703,4089727,4089742,658371,1133157]);galleries[245324]=new gallery(245324,"3143556,790872,790859","Absence","gallery",[3143556,790872,790859]);galleries[192794]=new gallery(192794,"3145114,3144336,3144333,3144235,3144234,3144228,3144221,3144220","All the places I've ever lived","gallery",[3144235,3144221,3145114,3144228,3144234,3144220,3144333,3144336]);galleries[245032]=new gallery(245032,"4081021","Aspects of Chesterfield","gallery",[4081021,4081012,4081016,4081019,4081047,4081013,4081052,4081058,4081054,4081050,4081020]);galleries[245035]=new gallery(245035,"4082126,4082120,4082086","Barriers","gallery",[4082086,4082120,4082126]);galleries[192829]=new gallery(192829,"3144787,3144785,3144783,3144781,3144771,3144769,3144767,3144764,3144763,3144762","Journey to Work","gallery",[3144744,3144745,3144747,3144749,3144751,3144753,3144754,3144748,3144756,3144759,3144760,3144761,3144733,3144762,3144763,3144769,3144764,3144771,3144767,3144732,3144736,3144738,3144781,3144783,3144785,3144787,3144741,3144739]);galleries[245030]=new gallery(245030,"4075327,4075326,4075324,4075318,4075317,4075314,4075313,4075312,4075310,4075308","My LRPS panel","gallery",[4075308,4075310,4075312,4075313,4075314,4075317,4075318,4075324,4075326,4075327]);galleries[245034]=new gallery(245034,"4075446,4075443,4075422,4075418,4075415,4075412,4075409,4075406","Spaghetti Junction","gallery",[4075406,4075409,4075412,4075415,4075418,4075422,4075443,4075446]);galleries[245036]=new gallery(245036,"4091800,4081209,4081187,4081183,4081156","Traffic Signs","gallery",[4081156,4081183,4081187,4081209,4091800]);galleries[53420]=new gallery(53420,"3143648,3143646,3143642,3143634,3143598,3143595,3143590,3143587,3143584,3143578","USA 2008 and 2009","gallery",[3143584,3143562,3143578,3143576,3143572,3143567,3143646,3143648,3143598,3143634,3143587,3143590,3143595,3143642]);var imageSets=new Object();imageSets[1]="4081047";imageSets[2]="4081021";imageSets[3]="4091800,4089742,4089727,4089703,4089700,4089678,4089657,4089601,4089592,4089577,4089575,4082126,4082120,4082086,4081209,4081187,4081183,4081156,4081058,4081054,4081052,4081050,4081047,4081021,4081020,4081019,4081016,4081013,4081012,4075446,4075443,4075422,4075418,4075415,4075412,4075409,4075406,4075327,4075326,4075324,4075318,4075317,4075314,4075313,4075312,4075310,4075308,3145114,3144787,3144785";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/geoffhicks/images";break}switch(a){case 1:b="http://www1.clikpic.com/geoffhicks/images";break}switch(a){case 2:b="http://admin.clikpic.com/geoffhicks/images";break}switch(a){case 24:b="http://tpc15/clikpic/geoffhicks/images";break}switch(a){case 4:b="http://www.clikchurch.com/geoffhicks/images";break}switch(a){case 5:b="http://www2.clikpic.com/geoffhicks/images";break}switch(a){case 22:b="http://tpc5/clikpic/geoffhicks/images";break}switch(a){case 23:b="http://tpc10/clikpic/geoffhicks/images";break}switch(a){case 25:b="http://tpc16/clikpic/geoffhicks/images";break}switch(a){case 15:b="http://www3.clikpic.com/geoffhicks/images";break}switch(a){case 18:b="http://www4.clikpic.com/geoffhicks/images";break}switch(a){case 19:b="http://www5.clikpic.com/geoffhicks/images";break}switch(a){case 31:b="http://www7.clikpic.com/geoffhicks/images";break}switch(a){case 32:b="http://admin2.clikpic.com/geoffhicks/images";break}switch(a){case 33:b="http://www8.clikpic.com/geoffhicks/images";break}switch(a){case 34:b="http://www9.clikpic.com/geoffhicks/images";break}switch(a){case 35:b="http://admin3.clikpic.com/geoffhicks/images";break}switch(a){case 37:b="http://admin4.clikpic.com/geoffhicks/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="geoff hicks 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;resizePhotoInfo();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].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+'")'})}}};