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[1070705]=new thumbnail(1070705,"239657","","PHOTO4R_thumb.jpg",130,173,1);thumbnails[1070746]=new thumbnail(1070746,"239771","","STEVENS1_thumb.jpg",130,194,1);thumbnails[1070886]=new thumbnail(1070886,"239771","","LAURCHEL_thumb.jpg",130,87,1);thumbnails[1088960]=new thumbnail(1088960,"239659","","JASON0144_thumb.jpg",130,196,1);thumbnails[1088974]=new thumbnail(1088974,"239658","","wedding6_thumb.jpg",130,194,1);thumbnails[1088975]=new thumbnail(1088975,"239658","","wedding8_thumb.jpg",130,92,1);thumbnails[1088976]=new thumbnail(1088976,"239658","","wedding20_thumb.jpg",130,87,1);thumbnails[1105538]=new thumbnail(1105538,"239771","","DSC_0004_thumb.jpg",130,98,1);thumbnails[1105541]=new thumbnail(1105541,"239771","","jamesbwface_thumb.jpg",130,163,1);thumbnails[1105544]=new thumbnail(1105544,"239771","","mia4_thumb.jpg",130,102,1);thumbnails[1105547]=new thumbnail(1105547,"239657","","PHOTO3_thumb.jpg",130,98,1);thumbnails[1105552]=new thumbnail(1105552,"239657","","PHOTO4G_thumb.jpg",130,98,1);thumbnails[1105557]=new thumbnail(1105557,"239771","","IMG_9712_thumb.jpg",130,87,1);thumbnails[1105644]=new thumbnail(1105644,"239771","","CHLOEFEATHERED5BY42_thumb.jpg",130,173,1);thumbnails[1105655]=new thumbnail(1105655,"","","holly21by15_thumb.jpg",130,87,1);thumbnails[1105656]=new thumbnail(1105656,"239771","","hollyonswing_thumb.jpg",130,86,1);thumbnails[1105658]=new thumbnail(1105658,"239657","","PHOTO1C_thumb.jpg",130,173,1);thumbnails[1105659]=new thumbnail(1105659,"239657","","PHOTO2F_thumb.jpg",130,98,1);thumbnails[1105661]=new thumbnail(1105661,"239657","","PHOTO2L_thumb.jpg",130,173,1);thumbnails[1250924]=new thumbnail(1250924,"239772","","EVIEO_thumb.jpg",130,87,1);thumbnails[1250927]=new thumbnail(1250927,"239772","","EVIEU_thumb.jpg",130,87,1);thumbnails[1319127]=new thumbnail(1319127,"239771","","hikey1_thumb.jpg",130,104,1);thumbnails[1319130]=new thumbnail(1319130,"","","hi key2_thumb.jpg",130,104,1);thumbnails[1319138]=new thumbnail(1319138,"239771","","BRUCE520X16_thumb.jpg",130,163,1);thumbnails[1319143]=new thumbnail(1319143,"","","bruce415x7_thumb.jpg",130,182,1);thumbnails[1319147]=new thumbnail(1319147,"239771","","PHOTO2520X16_thumb.jpg",130,104,1);thumbnails[1469774]=new thumbnail(1469774,"239653","Photos taken at Le Talbooth Hotel,Dedham","clareanddavepress_thumb.jpg",130,182,1);thumbnails[1469777]=new thumbnail(1469777,"239653","Le Talbooth Hotel, Dedham","davandclarepress2 _thumb.jpg",130,87,1);thumbnails[1469778]=new thumbnail(1469778,"239653","","daveandclarepress3_thumb.jpg",130,194,1);thumbnails[1631697]=new thumbnail(1631697,"239656","vehicle by BEAU-BRIDES.CO.UK","BRIDE57_thumb.jpg",130,98,1);thumbnails[1631706]=new thumbnail(1631706,"239656","vehicle by BEAU-BRIDES.CO.UK","CAR1_thumb.jpg",130,173,1);thumbnails[1631709]=new thumbnail(1631709,"239656","vehicle by BEAU-BRIDES.CO.UK","CONFETTI_thumb.jpg",130,173,1);thumbnails[1666795]=new thumbnail(1666795,"239656","","CABLE0100_thumb.jpg",130,98,1);thumbnails[1666819]=new thumbnail(1666819,"239771","","BABY3110x8_thumb.jpg",130,163,1);thumbnails[1666823]=new thumbnail(1666823,"239771","","DADANDBOYS1610x8_thumb.jpg",130,163,1);thumbnails[1755577]=new thumbnail(1755577,"239771","","robinson_thumb.jpg",130,104,1);thumbnails[2074093]=new thumbnail(2074093,"239453","","paulemmawood_thumb.jpg",130,196,1);thumbnails[2078243]=new thumbnail(2078243,"239453","","emmaandpaulblackandwhite131_thumb.jpg",130,98,1);thumbnails[2078244]=new thumbnail(2078244,"239453","","emmaandpaul140_thumb.jpg",130,86,1);thumbnails[2234732]=new thumbnail(2234732,"239454","","GARETHANDROZHIGHCONTRASTKISS_thumb.jpg",130,86,1);thumbnails[2234739]=new thumbnail(2234739,"239454","lympne Castle in Kent ","GARETHANDROZ173_thumb.jpg",130,196,1);thumbnails[2234744]=new thumbnail(2234744,"239454","Lympne Castle, Kent ","lympne_thumb.jpg",130,86,1);thumbnails[2404430]=new thumbnail(2404430,"239660","","clarkewedding2_thumb.jpg",130,196,1);thumbnails[2404441]=new thumbnail(2404441,"239660","","websitephotoclarke1_thumb.jpg",130,196,1);thumbnails[2609279]=new thumbnail(2609279,"239771","","280410X8web_thumb.jpg",130,104,1);thumbnails[2732908]=new thumbnail(2732908,"239663","","DSC_3089_thumb.jpg",130,196,1);thumbnails[2901693]=new thumbnail(2901693,"239661","","JULES_thumb.jpg",129,195,1);thumbnails[2901755]=new thumbnail(2901755,"239451","","coe107_thumb.jpg",129,195,1);thumbnails[2901778]=new thumbnail(2901778,"239452","","MARKKEVAN073_thumb.jpg",129,195,1);thumbnails[3202769]=new thumbnail(3202769,"239771","","WOODFAMILY026_thumb.jpg",130,87,1);thumbnails[3264447]=new thumbnail(3264447,"239450","","callydale_thumb.jpg",130,196,1);thumbnails[3264476]=new thumbnail(3264476,"239450","","callydale2_thumb.jpg",130,87,1);thumbnails[3264478]=new thumbnail(3264478,"239450","","callydale3_thumb.jpg",130,172,1);thumbnails[3829987]=new thumbnail(3829987,"239448","THESE PHOTOS CAN BE VIEWED AND ORDERED VIA  http://www.photoboxgallery.com/3001510","WEDDING0104MM_thumb.jpg",130,86,1);thumbnails[3829988]=new thumbnail(3829988,"239448","THESE PHOTOS CAN BE VIEWED AND ORDERED VIA  http://www.photoboxgallery.com/3001510","WEDDING0213MM_thumb.jpg",130,195,1);thumbnails[3952057]=new thumbnail(3952057,"239447","","wedding0001_297_thumb.jpg",130,87,1);thumbnails[3952059]=new thumbnail(3952059,"239447","","wedding0001_316_thumb.jpg",130,87,1);thumbnails[4471050]=new thumbnail(4471050,"260934","","mike01_thumb.jpg",130,98,1);thumbnails[4471055]=new thumbnail(4471055,"260934","","mike02_thumb.jpg",130,98,1);thumbnails[4471060]=new thumbnail(4471060,"260934","","mike03_thumb.jpg",130,98,1);thumbnails[4471063]=new thumbnail(4471063,"260934","","mike04_thumb.jpg",130,173,1);thumbnails[4900799]=new thumbnail(4900799,"279319","","kayleighwedding01_thumb.jpg",130,195,1);thumbnails[4900806]=new thumbnail(4900806,"279319","","kayleighwedding02_thumb.jpg",130,195,1);thumbnails[4982924]=new thumbnail(4982924,"239451","","tiltshift_photo_thumb.jpg",130,86,1);thumbnails[4983854]=new thumbnail(4983854,"239447","","tiltshift_thumb.jpg",130,87,1);thumbnails[4984850]=new thumbnail(4984850,"260934","","tiltshift1_thumb.jpg",130,87,1);thumbnails[4985442]=new thumbnail(4985442,"239448","","tiltshift2_thumb.jpg",130,195,1);thumbnails[4985483]=new thumbnail(4985483,"239448","","DSC_1935_thumb.jpg",130,87,1);thumbnails[4985523]=new thumbnail(4985523,"239450","","CALLYANDDALE148_thumb.jpg",130,104,1);thumbnails[4985596]=new thumbnail(4985596,"239661","","JULES105_thumb.jpg",130,104,1);thumbnails[4985608]=new thumbnail(4985608,"239661","","JULES061_thumb.jpg",130,104,1);thumbnails[4985621]=new thumbnail(4985621,"239660","","royandmark2_thumb.jpg",130,196,1);thumbnails[4985644]=new thumbnail(4985644,"239663","","RAMPTON178_thumb.jpg",130,196,1);thumbnails[4985651]=new thumbnail(4985651,"239663","","RAMPTON103_thumb.jpg",130,86,1);thumbnails[4985954]=new thumbnail(4985954,"239454","","GARETHANDROZ132_thumb.jpg",130,86,1);thumbnails[5490077]=new thumbnail(5490077,"310515","","NICKYDAVE3899PRESS_thumb.jpg",130,104,1);thumbnails[5490078]=new thumbnail(5490078,"310515","","WRIGHTTILTLOWRES_thumb.jpg",130,87,1);thumbnails[5762108]=new thumbnail(5762108,"326410","","0084_thumb.jpg",130,195,1);thumbnails[5762109]=new thumbnail(5762109,"326410","","0077_thumb.jpg",130,163,1);thumbnails[5873419]=new thumbnail(5873419,"239659","","JASON0123_thumb.jpg",130,195,1);thumbnails[5968399]=new thumbnail(5968399,"239773","*PLEASE NOTE ALL PHOTOS FROM THIS LADIES NIGHT EVENT CAN BE VIEWED ON OUR FLICKR PAGE WHICH IS ACCESSIBLE FROM THE LINKS PAGE ON THIS WEB SITE. PLEASE CLICK ON THE HYPERLINK ON THE LINKS PAGE  ","dsc_4817_thumb.jpg",130,87,1);thumbnails[5968509]=new thumbnail(5968509,"239773","*PHOTOS FROM THIS EVENT CAN BE ORDERED FOR £10 FOR AN 8 x 6 PRINT IN PRESENTATION FOLDER. IF YOU BUY 2 PHOTOS FOR £20 A THIRD PHOTO CAN BE CHOSEN FREE OF CHAR GE.  PLEASE SEE ALL PHOTOS ON FLIKR AND EMAIL US WITH YOUR REQUESTS. PLEASE INCLUDE CONTACT DETAILS AND THE FILE NUMBERS FOR THE PHOTOS YOU WOULD LIKE","dsc_2993_thumb.jpg",130,196,1);thumbnails[5968532]=new thumbnail(5968532,"239773","","dsc_4927_thumb.jpg",130,87,1);thumbnails[5968567]=new thumbnail(5968567,"239773","","dsc_4937_thumb.jpg",130,87,1);thumbnails[5968573]=new thumbnail(5968573,"239773","","dsc_3052_thumb.jpg",130,86,1);thumbnails[6131097]=new thumbnail(6131097,"343489","","0024_thumb.jpg",130,196,1);thumbnails[6131098]=new thumbnail(6131098,"343489","","0173_thumb.jpg",130,86,1);thumbnails[6170923]=new thumbnail(6170923,"344904","","juliamichael0123_thumb.jpg",130,195,1);thumbnails[6170924]=new thumbnail(6170924,"344904","","juliamichael0116_thumb.jpg",130,87,1);thumbnails[6536833]=new thumbnail(6536833,"239773","","DSC_5704DSC_5704DSC_5704DSC_5704_thumb.jpg",130,98,1);thumbnails[6536837]=new thumbnail(6536837,"239773","All the images from this day can be viewed via the Flickr link on our links page. Please note childrens photos will only be shown on request ","DSC_5762DSC_5762DSC_5762DSC_5762_thumb.jpg",130,173,1);thumbnails[6564196]=new thumbnail(6564196,"360288","","abrahams0001_thumb.jpg",130,195,1);thumbnails[6630405]=new thumbnail(6630405,"363173","","0027_thumb.jpg",130,173,1);thumbnails[6630410]=new thumbnail(6630410,"363173","","0118_thumb.jpg",130,173,1);thumbnails[6677575]=new thumbnail(6677575,"364891","","CLAIRELEE0221_thumb.jpg",130,195,1);thumbnails[6677576]=new thumbnail(6677576,"364891","","CLAIRELEE0165_thumb.jpg",130,195,1);var galleries=new Object();galleries[239663]=new gallery(239663,"2732908","AIMEE AND STAFFORD ","section291672",[2732908,4985644,4985651]);galleries[239450]=new gallery(239450,"3264447","CALLY AND DALE JANUARY 2009","section291672",[3264447,3264476,3264478,4985523]);galleries[239772]=new gallery(239772,"1250927,1250924","CHRiSTENINGS","section291717",[1250924,1250927]);galleries[364891]=new gallery(364891,"6677576,6677575","CLAIRE AND LEE AUGUST 2010","section291672",[6677575,6677576]);galleries[239451]=new gallery(239451,"2901755","CLAIRE AND TIM  2008","section291672",[2901755,4982924]);galleries[239660]=new gallery(239660,"2404441","CLARK WEDDING","section291672",[2404430,2404441,4985621]);galleries[239661]=new gallery(239661,"2901693","COLE WEDDING","section291672",[2901693,4985596,4985608]);galleries[239653]=new gallery(239653,"1469774","DAVE AND CLARE  2007","section291672",[1469774,1469777,1469778]);galleries[239656]=new gallery(239656,"1666795","DEBBIE AND GARY","section291672",[1631697,1631706,1631709,1666795]);galleries[239453]=new gallery(239453,"2074093","EMMA AND PAUL  2008","section291672",[2074093,2078243,2078244]);galleries[239773]=new gallery(239773,"6536837,6536833,5968573,5968567,5968532,5968509,5968399","FORMAL","section291718",[5968399,5968509,5968532,5968567,5968573,6536833,6536837]);galleries[260934]=new gallery(260934,"4984850,4471063,4471060,4471055,4471050","Jen and Mike Florey July 2009","section291672",[4471050,4471055,4471060,4471063,4984850]);galleries[239447]=new gallery(239447,"3952059","JO AND PAUL MAY 2009","section291672",[3952057,3952059,4983854]);galleries[344904]=new gallery(344904,"6170924,6170923","Julia and Michael May 2010","section291672",[6170923,6170924]);galleries[360288]=new gallery(360288,"6564196","KAREN AND TREVOR 6TH AUG 2010","section291672",[6564196]);galleries[343489]=new gallery(343489,"6131098,6131097","Katherine and Laurence May 2010","section291672",[6131097,6131098]);galleries[239659]=new gallery(239659,"5873419,1088960","KATHRYN AND JASON APRIL 2010","section291672",[1088960,5873419]);galleries[279319]=new gallery(279319,"4900806,4900799","Kayleigh and Karl Oct 2009 ","section291672",[4900799,4900806]);galleries[326410]=new gallery(326410,"5762109,5762108","KIMBERLEY AND STEVE (MARCH 2010)","section291672",[5762108,5762109]);galleries[239658]=new gallery(239658,"1088974","LOUISE AND LIZ","section291672",[1088974,1088975,1088976]);galleries[363173]=new gallery(363173,"6630410,6630405","LYNN AND CHRIS AUG 2010","section291672",[6630405,6630410]);galleries[239657]=new gallery(239657,"1105552","MADELINE AND SHAUN","section291672",[1070705,1105547,1105552,1105658,1105659,1105661]);galleries[239452]=new gallery(239452,"2901778","MARK AND KEVAN  2008","section291672",[2901778]);galleries[239448]=new gallery(239448,"3829988","NICKY AND IAN MAY 2009","section291672",[3829987,3829988,4985442,4985483]);galleries[310515]=new gallery(310515,"5490078,5490077","NICS AND DAVE  JANUARY 2010 ","section291672",[5490077,5490078]);galleries[239771]=new gallery(239771,"3202769,2609279,1755577,1666823,1666819,1319147,1319138,1319127,1105656,1105644","PORTRAITS","section291716",[1070746,1070886,1105538,1105541,1105544,1105557,1105644,1105656,1319127,1319138,1319147,1666819,1666823,1755577,2609279,3202769]);galleries[239454]=new gallery(239454,"4985954,2234744,2234739,2234732","ROZ AND GARETH   2008","section291672",[2234732,2234739,2234744,4985954]);var imageSets=new Object();imageSets[1]="6677576,6677575,6630410,6630405,6564196,6170924,6170923,6131097,5968532,5968509,5968399,5873419,5762109,5762108,5490077,4985954,4985644,4985442,4984850,4983854,4982924,4900806,4900799,4471063,4471055,3829988,3829987,3264447,2901778,2901755,2901693,2732908,2404441,2234732,2074093,1666795,1469774,1088974,1088960,1070705";imageSets[2]="3952059,3829988,3264447,2901778,2901755,2901693,2732908,2404441,2074093,1666795,1469774,1105552,1088974";imageSets[3]="6677576,6677575,6630410,6630405,6564196,6536837,6536833,6170924,6170923,6131098,6131097,5968573,5968567,5968532,5968509,5968399,5873419,5762109,5762108,5490078,5490077,4985954,4985651,4985644,4985621,4985608,4985596,4985523,4985483,4985442,4984850,4983854,4982924,4900806,4900799,4471063,4471060,4471055,4471050,3952059,3952057,3829988,3829987,3264478,3264476,3264447,3202769,2901778,2901755,2901693";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/matthewmallett/images";break}switch(a){case 1:b="http://www1.clikpic.com/matthewmallett/images";break}switch(a){case 2:b="http://admin.clikpic.com/matthewmallett/images";break}switch(a){case 24:b="http://tpc15/clikpic/matthewmallett/images";break}switch(a){case 4:b="http://www.clikchurch.com/matthewmallett/images";break}switch(a){case 5:b="http://www2.clikpic.com/matthewmallett/images";break}switch(a){case 22:b="http://tpc5/clikpic/matthewmallett/images";break}switch(a){case 23:b="http://tpc10/clikpic/matthewmallett/images";break}switch(a){case 25:b="http://tpc16/clikpic/matthewmallett/images";break}switch(a){case 15:b="http://www3.clikpic.com/matthewmallett/images";break}switch(a){case 18:b="http://www4.clikpic.com/matthewmallett/images";break}switch(a){case 19:b="http://www5.clikpic.com/matthewmallett/images";break}switch(a){case 31:b="http://www7.clikpic.com/matthewmallett/images";break}switch(a){case 32:b="http://admin2.clikpic.com/matthewmallett/images";break}switch(a){case 33:b="http://www8.clikpic.com/matthewmallett/images";break}switch(a){case 34:b="http://www9.clikpic.com/matthewmallett/images";break}switch(a){case 35:b="http://admin3.clikpic.com/matthewmallett/images";break}switch(a){case 37:b="http://admin4.clikpic.com/matthewmallett/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("section291672"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section291672.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("section291672"!=""){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="JRM 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+'")'})}}};