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[1920710]=new thumbnail(1920710,"","","online voucher2_thumb.jpg",130,96,18);thumbnails[2018802]=new thumbnail(2018802,"304274","","P1010024 copy_thumb.jpg",130,93,18);thumbnails[2038147]=new thumbnail(2038147,"","","product_fotoslot4X2_thumb.gif",130,99,18);thumbnails[2038190]=new thumbnail(2038190,"","","product_fotoslot4X4_thumb.gif",130,101,18);thumbnails[2520002]=new thumbnail(2520002,"161495","","Pub5_thumb.jpg",130,93,18);thumbnails[2520005]=new thumbnail(2520005,"161495","","Pub2_thumb.JPG",130,93,18);thumbnails[2520009]=new thumbnail(2520009,"161495","","Brewery3_thumb.jpg",130,74,18);thumbnails[2520040]=new thumbnail(2520040,"161495","","00201138_thumb.JPG",130,182,18);thumbnails[2587750]=new thumbnail(2587750,"304274","","00201033_thumb.jpg",130,93,18);thumbnails[2587753]=new thumbnail(2587753,"304274","","00201091_thumb.jpg",130,93,18);thumbnails[2587756]=new thumbnail(2587756,"304274","","00201076_thumb.jpg",130,93,18);thumbnails[2587760]=new thumbnail(2587760,"","","00201105_thumb.jpg",130,182,18);thumbnails[2587762]=new thumbnail(2587762,"","","00201114_thumb.jpg",130,182,18);thumbnails[2587766]=new thumbnail(2587766,"","","00201057copy_thumb.jpg",130,93,18);thumbnails[2587768]=new thumbnail(2587768,"","","00201097_thumb.jpg",130,93,18);thumbnails[2587772]=new thumbnail(2587772,"","","00201103_thumb.jpg",130,93,18);thumbnails[2587778]=new thumbnail(2587778,"304274","","00201049_thumb.jpg",130,182,18);thumbnails[3400482]=new thumbnail(3400482,"207621","'Manchester Expanse'","Manchester_Expanse_1_thumb.jpg",130,65,18);thumbnails[3400528]=new thumbnail(3400528,"207621","'Lowry Expanse'","Lowry_Expanse_1_thumb.jpg",130,64,18);thumbnails[3400530]=new thumbnail(3400530,"207621","'Castlefield Expanse'","Castlefield_Expanse_1_thumb.jpg",130,98,18);thumbnails[3400547]=new thumbnail(3400547,"207621","'Chrysler Red'","Chrysler_Red_thumb.jpg",130,197,18);thumbnails[3400578]=new thumbnail(3400578,"207621","'Love Just Lying Here Next To Me'<br>\r\n","Love_just_lying_here_next_to_me__thumb.jpg",130,129,18);thumbnails[3400742]=new thumbnail(3400742,"304274","","DSC_0209-1_thumb.jpg",130,195,18);thumbnails[3400784]=new thumbnail(3400784,"","","DSC_0072_thumb.jpg",130,87,18);thumbnails[3400789]=new thumbnail(3400789,"","","DSC_0183_thumb.jpg",130,87,18);thumbnails[3400792]=new thumbnail(3400792,"","","DSC_0126_thumb.jpg",130,87,18);thumbnails[3400796]=new thumbnail(3400796,"","","DSC_0196_thumb.jpg",130,87,18);thumbnails[3400799]=new thumbnail(3400799,"","","DSC_0215_thumb.jpg",130,91,18);thumbnails[3400801]=new thumbnail(3400801,"","","DSC_0252_thumb.jpg",130,87,18);thumbnails[5391964]=new thumbnail(5391964,"304274","","DSC_0889_thumb.jpg",130,193,18);thumbnails[5391970]=new thumbnail(5391970,"304274","","Landscape1_thumb.jpg",130,100,18);thumbnails[5391973]=new thumbnail(5391973,"304274","","Wright1_1_thumb.jpg",130,93,18);thumbnails[5391980]=new thumbnail(5391980,"304274","","Wright1_45_thumb.jpg",130,93,18);thumbnails[5391981]=new thumbnail(5391981,"304274","","Wright1_202_thumb.JPG",130,182,18);thumbnails[5391983]=new thumbnail(5391983,"304274","","Wright1_231_thumb.jpg",130,93,18);thumbnails[1485415]=new thumbnail(1485415,"118566","","Girls12_thumb.JPG",130,87,18);thumbnails[1485425]=new thumbnail(1485425,"118566","","Lads7_thumb.JPG",130,87,18);thumbnails[1510187]=new thumbnail(1510187,"118566","","Lin&Karl71_thumb.JPG",130,87,18);thumbnails[1510247]=new thumbnail(1510247,"118566","","Lads11_thumb.JPG",130,195,18);thumbnails[1485435]=new thumbnail(1485435,"118566","","Lin&Katie7_thumb.JPG",130,87,18);thumbnails[1510202]=new thumbnail(1510202,"118566","","Lads17_thumb.JPG",130,195,18);thumbnails[1485431]=new thumbnail(1485431,"118566","","Lin3_thumb.JPG",130,87,18);thumbnails[1506734]=new thumbnail(1506734,"118566","","Lin&Katie9_thumb.JPG",130,87,18);thumbnails[1485428]=new thumbnail(1485428,"118566","","Lads15_thumb.JPG",130,87,18);thumbnails[1485430]=new thumbnail(1485430,"118566","","Lin2_thumb.JPG",130,195,18);thumbnails[1485424]=new thumbnail(1485424,"118566","","Lads2_thumb.JPG",130,87,18);thumbnails[1510194]=new thumbnail(1510194,"118566","","Lin&Karl4_thumb.JPG",130,195,18);thumbnails[1510234]=new thumbnail(1510234,"118566","","Katie2_thumb.JPG",130,195,18);thumbnails[1510239]=new thumbnail(1510239,"118566","","Jess5_thumb.JPG",130,87,18);thumbnails[1360418]=new thumbnail(1360418,"94142","","Alex5_thumb.jpg",130,87,18);thumbnails[1362509]=new thumbnail(1362509,"94142","","Kids1_thumb.JPG",130,184,18);thumbnails[2063178]=new thumbnail(2063178,"94142","","website multi-photo_thumb.jpg",130,118,18);thumbnails[1339372]=new thumbnail(1339372,"94142","","George111_thumb.jpg",130,130,18);thumbnails[1485243]=new thumbnail(1485243,"117702","","Danny5_thumb.jpg",130,195,18);thumbnails[1356421]=new thumbnail(1356421,"117702","","Danny40_thumb.jpg",130,87,18);thumbnails[1356474]=new thumbnail(1356474,"94142","","George3-b&w_thumb.jpg",130,130,18);thumbnails[1485235]=new thumbnail(1485235,"117702","","Danny8_thumb.jpg",130,195,18);thumbnails[1485240]=new thumbnail(1485240,"117702","","Danny1_thumb.jpg",130,195,18);thumbnails[1339394]=new thumbnail(1339394,"117702","","Danny71_thumb.jpg",130,87,18);thumbnails[1356638]=new thumbnail(1356638,"94142","","George4_thumb.jpg",130,102,18);thumbnails[1356632]=new thumbnail(1356632,"94142","","George26-b&w_thumb.jpg",130,130,18);thumbnails[1485231]=new thumbnail(1485231,"117702","","Danny2a_thumb.jpg",130,87,18);thumbnails[1775761]=new thumbnail(1775761,"117702","","Danny14_thumb.JPG",130,195,18);thumbnails[1775762]=new thumbnail(1775762,"117702","","Danny15a_thumb.jpg",130,87,18);thumbnails[1775763]=new thumbnail(1775763,"117702","","Danny19_thumb.jpg",130,87,18);thumbnails[1356633]=new thumbnail(1356633,"94142","","George19_thumb.jpg",130,130,18);thumbnails[1775765]=new thumbnail(1775765,"117702","","Danny30_thumb.JPG",130,195,18);thumbnails[1356636]=new thumbnail(1356636,"94142","","George9_thumb.jpg",130,87,18);thumbnails[1356635]=new thumbnail(1356635,"94142","","George18-b&w_thumb.jpg",130,130,18);thumbnails[1489196]=new thumbnail(1489196,"94142","","George17_thumb.jpg",130,130,18);thumbnails[1489209]=new thumbnail(1489209,"94142","","George10_thumb.jpg",130,130,18);thumbnails[1356577]=new thumbnail(1356577,"94142","","George16_thumb.jpg",130,130,18);thumbnails[1775787]=new thumbnail(1775787,"117703","","Amber12_thumb.jpg",130,116,18);thumbnails[1775788]=new thumbnail(1775788,"117703","","Amber22_thumb.jpg",130,87,18);thumbnails[1775789]=new thumbnail(1775789,"117703","","Amber24_thumb.jpg",130,105,18);thumbnails[1775790]=new thumbnail(1775790,"117703","","Amber34_thumb.jpg",130,195,18);thumbnails[1356571]=new thumbnail(1356571,"117703","","Amber23_thumb.jpg",130,87,18);thumbnails[1339324]=new thumbnail(1339324,"117703","","Amber21_thumb.jpg",130,87,18);thumbnails[1775782]=new thumbnail(1775782,"117703","","Amber9_thumb.jpg",130,87,18);thumbnails[1775783]=new thumbnail(1775783,"117703","","Amber13_thumb.jpg",130,87,18);thumbnails[1775784]=new thumbnail(1775784,"117703","","Amber31_thumb.jpg",130,87,18);thumbnails[1775785]=new thumbnail(1775785,"117703","","Amber33_thumb.jpg",130,87,18);thumbnails[1360425]=new thumbnail(1360425,"94936","","Di,dan&ben_thumb.jpg",130,87,18);thumbnails[3400361]=new thumbnail(3400361,"94936","","Claire& Simon2a 14x11 copy_thumb.jpg",130,102,18);thumbnails[3400593]=new thumbnail(3400593,"94936","","Group2a 20x16_thumb.jpg",130,104,18);thumbnails[3400599]=new thumbnail(3400599,"94936","","Group3 30_thumb.5x14 copy.jpg",130,60,18);thumbnails[3400817]=new thumbnail(3400817,"94936","","John&Bev final_thumb.jpg",130,99,18);thumbnails[3665533]=new thumbnail(3665533,"94936","","framepreview_thumb.jpg",130,114,18);thumbnails[2063272]=new thumbnail(2063272,"94938","","00100017_thumb.jpg",130,54,18);thumbnails[3400364]=new thumbnail(3400364,"94938","","Clo&Jez2 30_thumb.5x14.jpg",130,60,18);thumbnails[1775800]=new thumbnail(1775800,"94938","","Em&Dave2a_thumb.jpg",130,87,18);thumbnails[2018833]=new thumbnail(2018833,"94938","","00100004_thumb.jpg",130,93,18);thumbnails[1775802]=new thumbnail(1775802,"94938","","DSC_0307_thumb.jpg",130,87,18);thumbnails[1362511]=new thumbnail(1362511,"94938","","Dave&Di1_thumb.jpg",130,195,18);thumbnails[2018831]=new thumbnail(2018831,"94938","","00100024_thumb.jpg",130,182,18);thumbnails[1360426]=new thumbnail(1360426,"94938","","Dave&Di2_thumb.jpg",130,95,18);thumbnails[1775798]=new thumbnail(1775798,"94939","","si2-b&w-7x5_thumb.jpg",130,93,18);thumbnails[1775797]=new thumbnail(1775797,"94939","","jonny4-b&w-7x51_thumb.jpg",130,93,18);thumbnails[1775796]=new thumbnail(1775796,"94939","","jonny4-b&w-7x5_thumb.jpg",130,93,18);thumbnails[1775794]=new thumbnail(1775794,"94939","","jonny1_thumb.jpg",130,87,18);thumbnails[1360422]=new thumbnail(1360422,"94939","","Dave2_thumb.jpg",130,86,18);thumbnails[1356420]=new thumbnail(1356420,"94940","","lin_thumb.jpg",130,87,18);thumbnails[1356628]=new thumbnail(1356628,"94940","","Beci34_thumb.jpg",130,87,18);thumbnails[1356696]=new thumbnail(1356696,"94940","","Nina19_thumb.jpg",130,87,18);thumbnails[1356679]=new thumbnail(1356679,"94940","","Mum2_thumb.jpg",130,87,18);thumbnails[1356697]=new thumbnail(1356697,"94940","","Rach8_thumb.jpg",130,87,18);thumbnails[1356623]=new thumbnail(1356623,"94940","","Beci1_thumb.jpg",130,87,18);thumbnails[1339337]=new thumbnail(1339337,"94940","","00100033_thumb.jpg",130,93,18);thumbnails[1356626]=new thumbnail(1356626,"94940","","Beci22_thumb.jpg",130,195,18);thumbnails[1339388]=new thumbnail(1339388,"94937","","Girls15_thumb.jpg",130,167,18);thumbnails[1356677]=new thumbnail(1356677,"94937","","Girls4_thumb.jpg",130,87,18);thumbnails[1356678]=new thumbnail(1356678,"94937","","Girls1_thumb.jpg",130,87,18);var galleries=new Object();galleries[161495]=new gallery(161495,"2520040,2520009,2520005,2520002","Black Horse Pub","section203861",[2520002,2520005,2520009,2520040]);galleries[118566]=new gallery(118566,"1510187","Proms","section155065",[1485415,1485425,1510187,1510247,1485435,1510202,1485431,1506734,1485428,1485430,1485424,1510194,1510234,1510239]);galleries[207621]=new gallery(207621,"3400578,3400547,3400530,3400528,3400482","Sophia B Divine / Revolve Gallery","section203861",[3400482,3400528,3400530,3400547,3400578]);galleries[304274]=new gallery(304274,"2018802","Weddings","section155065",[2018802,2587750,2587753,2587756,2587778,3400742,5391964,5391970,5391973,5391980,5391981,5391983]);galleries[94142]=new gallery(94142,"1356638","BABY & KIDS","gallery",[1360418,1362509,2063178,1339372,1356474,1356638,1356632,1356633,1356636,1356635,1489196,1489209,1356577]);galleries[117702]=new gallery(117702,"1339394","Danny's Portfolio Experience","section153900",[1485243,1356421,1485235,1485240,1339394,1485231,1775761,1775762,1775763,1775765]);galleries[117703]=new gallery(117703,"1775790,1775789,1775788,1775787,1775785,1775784,1775783,1775782,1356571,1339324","Amber's Portfolio Experience","section153900",[1775787,1775788,1775789,1775790,1356571,1339324,1775782,1775783,1775784,1775785]);galleries[94936]=new gallery(94936,"1360425","FAMILY","gallery",[1360425,3400361,3400593,3400599,3400817,3665533]);galleries[94938]=new gallery(94938,"3400364,2063272,2018833,2018831,1775802,1775800,1362511,1360426","COUPLES","gallery",[2063272,3400364,1775800,2018833,1775802,1362511,2018831,1360426]);galleries[94939]=new gallery(94939,"1775798,1775797,1775796,1775794,1360422","MEN","gallery",[1775798,1775797,1775796,1775794,1360422]);galleries[94940]=new gallery(94940,"1356697","WOMEN","gallery",[1356420,1356628,1356696,1356679,1356697,1356623,1339337,1356626]);galleries[94937]=new gallery(94937,"1356678","FRIENDS","gallery",[1339388,1356677,1356678]);var imageSets=new Object();imageSets[1]="1775802,1775800,1775798,1775797,1775796,1775794,1775790,1775789,1775788,1775787,1775785,1775784,1775783,1775782,1775765,1775763,1775762,1775761,1485243,1485240,1485235,1485231,1362511,1360426,1360425,1360422,1356697,1356678,1356638,1356571,1356421,1339394,1339324";imageSets[2]="2018802,1510187,1360425,1356697,1356678,1356638,1339394";imageSets[3]="5391983,5391981,5391980,5391973,5391970,5391964,3665533,3400817,3400801,3400799,3400796,3400792,3400789,3400784,3400742,3400599,3400593,3400578,3400547,3400530,3400528,3400482,3400364,3400361,2587778,2587772,2587768,2587766,2587762,2587760,2587756,2587753,2587750,2520040,2520009,2520005,2520002,2063272,2063178,2038190,2038147,2018833,2018831,2018802,1920710,1775802,1775800,1775798,1775797,1775796";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 34:b="http://www9.clikpic.com/suzannejslater/images";break}switch(a){case 1:b="http://www1.clikpic.com/suzannejslater/images";break}switch(a){case 2:b="http://admin.clikpic.com/suzannejslater/images";break}switch(a){case 4:b="http://www.clikchurch.com/suzannejslater/images";break}switch(a){case 5:b="http://www2.clikpic.com/suzannejslater/images";break}switch(a){case 15:b="http://www3.clikpic.com/suzannejslater/images";break}switch(a){case 21:b="http://www6.clikpic.com/suzannejslater/images";break}switch(a){case 18:b="http://www4.clikpic.com/suzannejslater/images";break}switch(a){case 19:b="http://www5.clikpic.com/suzannejslater/images";break}switch(a){case 22:b="http://tpc5/clikpic/suzannejslater/images";break}switch(a){case 23:b="http://tpc10/clikpic/suzannejslater/images";break}switch(a){case 24:b="http://tpc15/clikpic/suzannejslater/images";break}switch(a){case 25:b="http://tpc16/clikpic/suzannejslater/images";break}switch(a){case 31:b="http://www7.clikpic.com/suzannejslater/images";break}switch(a){case 32:b="http://admin2.clikpic.com/suzannejslater/images";break}switch(a){case 33:b="http://www8.clikpic.com/suzannejslater/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="Imaginative Photography by Suzanne: "+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="suzannejslater@hotmail.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="suzannejslater@hotmail.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+'")'})}}};