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[1500494]=new thumbnail(1500494,"","","IMG_1103_WRAY_thumb.jpg",130,195,18);thumbnails[1500495]=new thumbnail(1500495,"","","IMG_1074_WRAY_thumb.jpg",130,195,18);thumbnails[1500497]=new thumbnail(1500497,"","","IMG_1017_WRAY_thumb.jpg",130,195,18);thumbnails[1500498]=new thumbnail(1500498,"","","IMG_0982_WRAY_thumb.jpg",130,195,18);thumbnails[1500499]=new thumbnail(1500499,"","","IMG_1047_WRAY_thumb.jpg",130,195,18);thumbnails[1500501]=new thumbnail(1500501,"","","IMG_0972_WRAY_thumb.jpg",130,87,18);thumbnails[1500503]=new thumbnail(1500503,"","","IMG_1066_WRAY_thumb.jpg",130,87,18);thumbnails[1500504]=new thumbnail(1500504,"","","IMG_1076_WRAY_thumb.jpg",130,87,18);thumbnails[1500505]=new thumbnail(1500505,"","","IMG_1108_WRAY_thumb.jpg",130,87,18);thumbnails[1500506]=new thumbnail(1500506,"","","IMG_1160_WRAY_thumb.jpg",130,87,18);thumbnails[4741228]=new thumbnail(4741228,"271967","","Peckitt_180709_0286BW_thumb.jpg",130,87,18);thumbnails[4741220]=new thumbnail(4741220,"271967","","Peckitt_180709_0110_thumb.jpg",130,195,18);thumbnails[4741221]=new thumbnail(4741221,"271967","","Peckitt_180709_0143_thumb.jpg",130,87,18);thumbnails[4741222]=new thumbnail(4741222,"271967","","Peckitt_180709_0244B_thumb.jpg",130,195,18);thumbnails[4741223]=new thumbnail(4741223,"271967","","Peckitt_180709_0301_thumb.jpg",130,195,18);thumbnails[4741226]=new thumbnail(4741226,"271967","","Peckitt_180709_0245R_thumb.jpg",130,195,18);thumbnails[4741235]=new thumbnail(4741235,"271967","","Peckitt_180709_0264_thumb.jpg",130,87,18);thumbnails[4741230]=new thumbnail(4741230,"271967","","Peckitt_180709_0306_thumb.jpg",130,195,18);thumbnails[4741232]=new thumbnail(4741232,"271967","","Peckitt_180709_0258_thumb.jpg",130,87,18);thumbnails[4182052]=new thumbnail(4182052,"94320","","A_00582_thumb.jpg",130,195,18);thumbnails[2476643]=new thumbnail(2476643,"94320","","B_0035_thumb.jpg",130,87,18);thumbnails[2476645]=new thumbnail(2476645,"94320","","B_0037B_thumb.jpg",130,87,18);thumbnails[4182048]=new thumbnail(4182048,"94320","","C_00232_thumb.jpg",130,195,18);thumbnails[4182050]=new thumbnail(4182050,"94320","","C_00261_thumb.jpg",130,195,18);thumbnails[2476656]=new thumbnail(2476656,"94320","","C_0061_thumb.jpg",130,87,18);thumbnails[2476659]=new thumbnail(2476659,"94320","","C_0084_thumb.jpg",130,87,18);thumbnails[4182051]=new thumbnail(4182051,"94320","","A_00971_thumb.jpg",130,195,18);thumbnails[2476706]=new thumbnail(2476706,"94320","","A_0003_thumb.jpg",130,87,18);thumbnails[2476710]=new thumbnail(2476710,"94320","","A_0058AC_thumb.jpg",130,87,18);thumbnails[2476713]=new thumbnail(2476713,"94320","","A_0063_thumb.jpg",130,87,18);thumbnails[4181998]=new thumbnail(4181998,"127468","","C_0020_thumb.jpg",130,195,18);thumbnails[4181995]=new thumbnail(4181995,"127468","","B_0025_thumb.jpg",130,195,18);thumbnails[4181962]=new thumbnail(4181962,"127468","","A_0048_thumb.jpg",130,87,18);thumbnails[4181994]=new thumbnail(4181994,"127468","","B_00151_thumb.jpg",130,195,18);thumbnails[4181997]=new thumbnail(4181997,"127468","","C_0015BW_thumb.jpg",130,195,18);thumbnails[4182222]=new thumbnail(4182222,"127468","","C_0013_thumb.jpg",130,87,18);thumbnails[4182000]=new thumbnail(4182000,"127468","","C_0026_thumb.jpg",130,195,18);thumbnails[4182058]=new thumbnail(4182058,"96350","","IMG_0786_thumb.jpg",130,195,18);thumbnails[4182060]=new thumbnail(4182060,"96350","","IMG_0795_thumb.jpg",130,195,18);thumbnails[4182062]=new thumbnail(4182062,"96350","","IMG_0984_thumb.jpg",130,195,18);thumbnails[4182065]=new thumbnail(4182065,"96350","","IMG_1068_thumb.jpg",130,195,18);thumbnails[4182066]=new thumbnail(4182066,"96350","","IMG_1102_thumb.jpg",130,195,18);thumbnails[4182067]=new thumbnail(4182067,"96350","","IMG_1103_thumb.jpg",130,195,18);thumbnails[1500544]=new thumbnail(1500544,"96350","","IMG_1066_WRAY1_thumb.jpg",130,87,18);thumbnails[1500546]=new thumbnail(1500546,"96350","","IMG_1108_WRAY1_thumb.jpg",130,87,18);thumbnails[4741278]=new thumbnail(4741278,"271975","","Foglietta_06491_thumb.jpg",130,87,18);thumbnails[4741279]=new thumbnail(4741279,"271975","","Foglietta_06631_thumb.jpg",130,87,18);thumbnails[4741280]=new thumbnail(4741280,"271975","","Foglietta_06911_thumb.jpg",130,87,18);thumbnails[4741282]=new thumbnail(4741282,"271975","","Foglietta_06961_thumb.jpg",130,87,18);thumbnails[4834165]=new thumbnail(4834165,"264400","","A_0048_1_thumb.jpg",130,87,18);thumbnails[4755193]=new thumbnail(4755193,"264415","","Q_0016DONE_thumb.jpg",130,87,18);thumbnails[4755199]=new thumbnail(4755199,"264415","","Q_0053DONE_thumb.jpg",130,195,18);thumbnails[6230178]=new thumbnail(6230178,"347014","","NDJB_230610_0155_thumb.jpg",130,195,18);thumbnails[6187899]=new thumbnail(6187899,"345561","","GWDM_190610_0243P_thumb.jpg",130,195,18);thumbnails[5887146]=new thumbnail(5887146,"332471","","LDW_010510_0319_thumb.jpg",130,195,18);thumbnails[5781106]=new thumbnail(5781106,"327402","","Turner_100410_0402_thumb.jpg",130,195,18);thumbnails[4755822]=new thumbnail(4755822,"272668","","Peckitt_180709_0244_thumb.jpg",130,195,18);thumbnails[4755831]=new thumbnail(4755831,"272670","","Foglietta_0181_thumb.jpg",130,195,18);thumbnails[4755834]=new thumbnail(4755834,"272672","","Copy_of_E-JOHNSON_0043BW_thumb.jpg",130,195,18);thumbnails[4755842]=new thumbnail(4755842,"272664","","SCJH_120909_0159BW_thumb.jpg",130,195,18);thumbnails[5814736]=new thumbnail(5814736,"329149","","ELD_170410_0116_thumb.jpg",130,195,18);thumbnails[2319910]=new thumbnail(2319910,"118319","","B_0037_thumb.jpg",130,87,18);thumbnails[5889252]=new thumbnail(5889252,"118319","","LDW_010510_0048_thumb.jpg",130,87,18);thumbnails[4828960]=new thumbnail(4828960,"118319","","Foglietta_0102_thumb.jpg",130,195,18);thumbnails[5890156]=new thumbnail(5890156,"118319","","Turner_100410_0283_thumb.jpg",130,87,18);thumbnails[1760961]=new thumbnail(1760961,"118319","","Deposit 21_thumb.jpg",130,195,18);thumbnails[1406789]=new thumbnail(1406789,"118319","","B0801_thumb.jpg",130,223,18);thumbnails[5887151]=new thumbnail(5887151,"118319","","LDW_010510_0347_thumb.jpg",130,87,18);thumbnails[5890170]=new thumbnail(5890170,"118319","","LDW_010510_0280_thumb.jpg",130,195,18);thumbnails[4755562]=new thumbnail(4755562,"272656","","C_0023_thumb.jpg",130,195,18);thumbnails[2491618]=new thumbnail(2491618,"159953","","Q_0044_thumb.jpg",130,195,18);thumbnails[2491620]=new thumbnail(2491620,"159953","","Q_0040_thumb.jpg",130,195,18);thumbnails[2491621]=new thumbnail(2491621,"159953","","Q_0039_thumb.jpg",130,195,18);thumbnails[2491622]=new thumbnail(2491622,"159953","","Q_0026_thumb.jpg",130,195,18);thumbnails[2491625]=new thumbnail(2491625,"159953","","Q_0015_thumb.jpg",130,87,18);thumbnails[2491626]=new thumbnail(2491626,"159953","","Q_0026FILTER_thumb.jpg",130,87,18);thumbnails[2491632]=new thumbnail(2491632,"159953","","Q_00091_thumb.jpg",130,87,18);thumbnails[2491628]=new thumbnail(2491628,"159953","","Q_0009C_thumb.jpg",130,87,18);thumbnails[4755925]=new thumbnail(4755925,"272680","","B_0015_thumb.jpg",130,195,18);thumbnails[4755930]=new thumbnail(4755930,"272683","","Simpson_060209__0129_thumb.jpg",130,195,18);thumbnails[4755934]=new thumbnail(4755934,"272685","","09_03_21_Avison_0111_thumb.jpg",130,195,18);thumbnails[4766334]=new thumbnail(4766334,"273025","","09_04_24_Dacey_A328_thumb.jpg",130,195,18);thumbnails[4766344]=new thumbnail(4766344,"273027","","A093_thumb.jpg",130,195,18);thumbnails[4766348]=new thumbnail(4766348,"273029","","IMG_4299_thumb.jpg",130,195,18);thumbnails[5467762]=new thumbnail(5467762,"309332","","A_JOHNSON_0001_thumb.jpg",130,195,18);thumbnails[5467765]=new thumbnail(5467765,"309332","","A_JOHNSON_0008_thumb.jpg",130,195,18);thumbnails[5467767]=new thumbnail(5467767,"309332","","A_JOHNSON_0026_thumb.jpg",130,195,18);thumbnails[5467607]=new thumbnail(5467607,"309336","","Jacqui_0055_thumb.jpg",130,195,18);thumbnails[2491617]=new thumbnail(2491617,"309337","","Q_0053SOFT_thumb.jpg",130,195,18);thumbnails[2491623]=new thumbnail(2491623,"309337","","Q_0016_thumb.jpg",130,87,18);thumbnails[4766353]=new thumbnail(4766353,"273031","","B_0095A_thumb.jpg",130,195,18);thumbnails[4858679]=new thumbnail(4858679,"274613","","black_contact_thumb.jpg",130,87,18);var galleries=new Object();galleries[271967]=new gallery(271967,"4741223","Sample Gallery 1","gallery",[4741228,4741220,4741221,4741222,4741223,4741226,4741235,4741230,4741232]);galleries[94320]=new gallery(94320,"4182052","Sample Gallery 2","gallery",[4182052,2476643,2476645,4182048,4182050,2476656,2476659,4182051,2476706,2476710,2476713]);galleries[127468]=new gallery(127468,"4181997","Sample Gallery 3","gallery",[4181998,4181995,4181962,4181994,4181997,4182222,4182000]);galleries[96350]=new gallery(96350,"4182065","Sample Gallery 4","gallery",[4182058,4182060,4182062,4182065,4182066,4182067,1500544,1500546]);galleries[271975]=new gallery(271975,"4741282,4741280,4741279,4741278","Rainy Day Retake ","section326966",[4741278,4741279,4741280,4741282]);galleries[264400]=new gallery(264400,"4834165","Pricing","section318720",[4834165]);galleries[264415]=new gallery(264415,"4755199,4755193","Wear it Where?","section318735",[4755193,4755199]);galleries[347014]=new gallery(347014,"6230178","James & Nicola","gallery",[6230178]);galleries[347013]=new gallery(347013,"6230178","Password Required - 50","gallery",[]);galleries[345561]=new gallery(345561,"6187899","Gemma & David","gallery",[6187899]);galleries[345559]=new gallery(345559,"6187899","Password Required - 37","gallery",[]);galleries[332471]=new gallery(332471,"5887146","Lynda & Dave","gallery",[5887146]);galleries[332618]=new gallery(332618,"5887146","Password Required - 38","gallery",[]);galleries[327401]=new gallery(327401,"5781106","Password Required - 39","gallery",[]);galleries[327402]=new gallery(327402,"5781106","Rachael & Steve","gallery",[5781106]);galleries[272664]=new gallery(272664,"4755842","1","gallery",[4755842]);galleries[272668]=new gallery(272668,"4755822","2","gallery",[4755822]);galleries[272670]=new gallery(272670,"4755831","3","gallery",[4755831]);galleries[272672]=new gallery(272672,"4755834","4","gallery",[4755834]);galleries[118319]=new gallery(118319,"5890170,5890156,5889252,5887151,4828960,2319910,1760961,1406789","Deposit/Home Page","section154689",[2319910,5889252,4828960,5890156,1760961,1406789,5887151,5890170]);galleries[329149]=new gallery(329149,"5814736","Lee ","gallery",[5814736]);galleries[329148]=new gallery(329148,"5814736","Password Required - 40","gallery",[]);galleries[272663]=new gallery(272663,"4755842","Password Required - 41","gallery",[]);galleries[272665]=new gallery(272665,"4755822","Password Required - 42","gallery",[]);galleries[272669]=new gallery(272669,"4755831","Password Required - 43","gallery",[]);galleries[272671]=new gallery(272671,"4755834","Password Required - 44","gallery",[]);galleries[272656]=new gallery(272656,"4755562","5","gallery",[4755562]);galleries[272655]=new gallery(272655,"4755562","Password Required - 5","gallery",[]);galleries[159953]=new gallery(159953,"2491632,2491628,2491626,2491625,2491622,2491621,2491620,2491618","Wear it Where","section154689",[2491618,2491620,2491621,2491622,2491625,2491626,2491632,2491628]);galleries[272680]=new gallery(272680,"4755925","6","gallery",[4755925]);galleries[272678]=new gallery(272678,"4755925","Password Required - 6","gallery",[]);galleries[272683]=new gallery(272683,"4755930","7","gallery",[4755930]);galleries[272681]=new gallery(272681,"4755930","Password Required - 7","gallery",[]);galleries[272685]=new gallery(272685,"4755934","8","gallery",[4755934]);galleries[272684]=new gallery(272684,"4755934","Password Required - 8","gallery",[]);galleries[273025]=new gallery(273025,"4766334","9","gallery",[4766334]);galleries[273024]=new gallery(273024,"4766334","Password Required - 9","gallery",[]);galleries[273027]=new gallery(273027,"4766344","10","gallery",[4766344]);galleries[273026]=new gallery(273026,"4766344","Password Required - 10","gallery",[]);galleries[273029]=new gallery(273029,"4766348","11","gallery",[4766348]);galleries[309332]=new gallery(309332,"5467765","Bridal Preparations","section370653",[5467762,5467765,5467767]);galleries[273028]=new gallery(273028,"4766348","Password Required - 11","gallery",[]);galleries[309336]=new gallery(309336,"5467607","For His Eyes Only","section370653",[5467607]);galleries[309337]=new gallery(309337,"2491617","Wear it Where? ","section370653",[2491617,2491623]);galleries[309342]=new gallery(309342,"","Just the Two of You","section370653",[]);galleries[273031]=new gallery(273031,"4766353","12","gallery",[4766353]);galleries[273030]=new gallery(273030,"4766353","Password Required - 12","gallery",[]);galleries[274613]=new gallery(274613,"4858679","Contact","section329973",[4858679]);var imageSets=new Object();imageSets[1]="5890170,5890156,5889252,5887151,4828960,4741228,4182052,4181998,4181995,4181994,4181962,2491617,2319910";imageSets[2]="5467765,4858679,4741223,4182065,4182052,4181997,2491617";imageSets[3]="4181962";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/moments/images";break}switch(a){case 1:b="http://www1.clikpic.com/moments/images";break}switch(a){case 2:b="http://admin.clikpic.com/moments/images";break}switch(a){case 24:b="http://tpc15/clikpic/moments/images";break}switch(a){case 4:b="http://www.clikchurch.com/moments/images";break}switch(a){case 5:b="http://www2.clikpic.com/moments/images";break}switch(a){case 22:b="http://tpc5/clikpic/moments/images";break}switch(a){case 23:b="http://tpc10/clikpic/moments/images";break}switch(a){case 25:b="http://tpc16/clikpic/moments/images";break}switch(a){case 15:b="http://www3.clikpic.com/moments/images";break}switch(a){case 18:b="http://www4.clikpic.com/moments/images";break}switch(a){case 19:b="http://www5.clikpic.com/moments/images";break}switch(a){case 31:b="http://www7.clikpic.com/moments/images";break}switch(a){case 32:b="http://admin2.clikpic.com/moments/images";break}switch(a){case 33:b="http://www8.clikpic.com/moments/images";break}switch(a){case 34:b="http://www9.clikpic.com/moments/images";break}switch(a){case 35:b="http://admin3.clikpic.com/moments/images";break}switch(a){case 37:b="http://admin4.clikpic.com/moments/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="Scarborough Wedding Photographer: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="jacquishipman@btinternet.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="jacquishipman@btinternet.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};