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[2407200]=new thumbnail(2407200,"108102","","DSCF0456_thumb.JPG",130,87,1);thumbnails[2407204]=new thumbnail(2407204,"108102","","DSC_0012_4_popcol_thumb.jpg",130,195,1);thumbnails[2407207]=new thumbnail(2407207,"108102","","DSCF0497_thumb.JPG",130,194,1);thumbnails[2407208]=new thumbnail(2407208,"108102","","DSCF7054_popcol_thumb.jpg",130,195,1);thumbnails[3250121]=new thumbnail(3250121,"108102","","DSCF8219_thumb.JPG",130,194,1);thumbnails[3250127]=new thumbnail(3250127,"108102","","DSCF8763 bw_thumb.jpg",130,194,1);thumbnails[3323976]=new thumbnail(3323976,"108102","","DSC_2608 bw web_thumb.jpg",130,196,1);thumbnails[3323977]=new thumbnail(3323977,"108102","","DSC_2609 sepia web_thumb.jpg",130,196,1);thumbnails[3362743]=new thumbnail(3362743,"108102","","DSCF3400 sepiawed web_thumb.jpg",130,87,1);thumbnails[4405437]=new thumbnail(4405437,"108102","","DSCF0923_popcol_thumb.jpg",130,194,1);thumbnails[4406148]=new thumbnail(4406148,"108102","","DSC_0160_4_crop_thumb.jpg",130,163,1);thumbnails[4406156]=new thumbnail(4406156,"108102","","DSCF3403_bw_thumb.jpg",130,194,1);thumbnails[4406159]=new thumbnail(4406159,"108102","","DSC_0779_bw_crop_thumb.jpg",130,87,1);thumbnails[4406165]=new thumbnail(4406165,"108102","","DSCF4142_bw_thumb.jpg",130,194,1);thumbnails[4406167]=new thumbnail(4406167,"108102","","DSCF6196_bw_thumb.jpg",130,87,1);thumbnails[4406318]=new thumbnail(4406318,"108102","","DSCF7124_bw_thumb.jpg",130,195,1);thumbnails[4406498]=new thumbnail(4406498,"108102","","DSCF2625_bw1_thumb.jpg",130,195,1);thumbnails[4699125]=new thumbnail(4699125,"108102","","DSC_0186_thumb.JPG",130,87,1);thumbnails[5823357]=new thumbnail(5823357,"108102","","DSC_4721_bw_thumb.jpg",130,86,1);thumbnails[5823372]=new thumbnail(5823372,"108102","","DSC_4894_bw_thumb.jpg",130,87,1);thumbnails[5823375]=new thumbnail(5823375,"108102","","DSC_4926_crop_thumb.jpg",130,87,1);thumbnails[5823380]=new thumbnail(5823380,"108102","","DSC_4934_thumb.JPG",130,196,1);thumbnails[6053859]=new thumbnail(6053859,"108102","","1_58_thumb.JPG",130,86,1);thumbnails[6053861]=new thumbnail(6053861,"108102","","1_83_thumb.jpg",130,86,1);thumbnails[6053864]=new thumbnail(6053864,"108102","","DSC_0060_bw_thumb.jpg",130,86,1);thumbnails[6053930]=new thumbnail(6053930,"108102","","DSC_0152_bw_thumb.jpg",130,196,1);thumbnails[6053931]=new thumbnail(6053931,"108102","","DSC_0184_thumb.JPG",130,195,1);thumbnails[6053932]=new thumbnail(6053932,"108102","","DSC_7729_bw_thumb.jpg",130,86,1);thumbnails[6053934]=new thumbnail(6053934,"108102","","DSC_0292_bw_thumb.jpg",130,86,1);thumbnails[6053936]=new thumbnail(6053936,"108102","","DSC_8577_sepia_thumb.jpg",130,86,1);thumbnails[6053948]=new thumbnail(6053948,"108102","","1_66_thumb.JPG",130,196,1);thumbnails[6053950]=new thumbnail(6053950,"108102","","DSC_0352_bw_thumb.jpg",130,196,1);thumbnails[6053952]=new thumbnail(6053952,"108102","","DSC_0123_sepia_thumb.jpg",130,196,1);thumbnails[6053954]=new thumbnail(6053954,"108102","","DSC_0249_bw_thumb.jpg",130,196,1);thumbnails[2712775]=new thumbnail(2712775,"108099","","0 (84) email_thumb.jpg",130,195,1);thumbnails[3034794]=new thumbnail(3034794,"108099","","DSCF5071 web_thumb.jpg",130,195,1);thumbnails[3034795]=new thumbnail(3034795,"108099","","DSCF5640 web_thumb.jpg",130,195,1);thumbnails[3077206]=new thumbnail(3077206,"108099","","DSCF6999 web_thumb.jpg",130,195,1);thumbnails[3192043]=new thumbnail(3192043,"108099","","DSCF4787 web_thumb.jpg",130,194,1);thumbnails[3192044]=new thumbnail(3192044,"108099","","DSCF4796 web_thumb.jpg",130,87,1);thumbnails[3652438]=new thumbnail(3652438,"108099","","DSCF8855_hisat_thumb.jpg",130,195,1);thumbnails[4407071]=new thumbnail(4407071,"108099","","DSC_1661_7x5_thumb.JPG",130,163,1);thumbnails[4407074]=new thumbnail(4407074,"108099","","DSCF0669_bw_thumb.jpg",130,195,1);thumbnails[4407080]=new thumbnail(4407080,"108099","","DSCF1410_popcol_thumb.jpg",130,195,1);thumbnails[4407085]=new thumbnail(4407085,"108099","","DSCF4255_thumb.JPG",130,195,1);thumbnails[4409270]=new thumbnail(4409270,"108099","","DSCF0050_bw_thumb.jpg",130,195,1);thumbnails[5372847]=new thumbnail(5372847,"108099","","DSC_7854_7x5_-_Copy_thumb.JPG",130,195,1);thumbnails[5823275]=new thumbnail(5823275,"108099","","DSC_6967_bw_thumb.jpg",130,87,1);thumbnails[5823277]=new thumbnail(5823277,"108099","","DSC_7078_bw_thumb.jpg",130,195,1);thumbnails[6066709]=new thumbnail(6066709,"108099","","DSC_0292_thumb.JPG",130,87,1);thumbnails[6066712]=new thumbnail(6066712,"108099","","DSC_0302_bw_thumb.jpg",130,195,1);thumbnails[6066716]=new thumbnail(6066716,"108099","","DSC_0579_thumb.JPG",130,195,1);thumbnails[6066717]=new thumbnail(6066717,"108099","","DSC_0619_bw_thumb.jpg",130,87,1);thumbnails[6066719]=new thumbnail(6066719,"108099","","DSC_9294_thumb.JPG",130,87,1);thumbnails[6066714]=new thumbnail(6066714,"108099","","DSC_0476_thumb.JPG",130,195,1);thumbnails[3277032]=new thumbnail(3277032,"199830","","DSCF1043 web_thumb.jpg",130,195,1);thumbnails[3277033]=new thumbnail(3277033,"199830","","DSCF1045 web_thumb.jpg",130,195,1);thumbnails[3277036]=new thumbnail(3277036,"199830","","DSCF1425 web_thumb.jpg",130,195,1);thumbnails[3277038]=new thumbnail(3277038,"199830","","DSCF1543web_thumb.jpg",130,194,1);thumbnails[3277096]=new thumbnail(3277096,"199830","","DSCF1740 WEB1_thumb.jpg",130,195,1);thumbnails[4405940]=new thumbnail(4405940,"199830","","DSCF2049_sepia_thumb.jpg",130,195,1);thumbnails[4405942]=new thumbnail(4405942,"199830","","DSCF1873_thumb.JPG",130,195,1);thumbnails[4405944]=new thumbnail(4405944,"199830","","DSCF1640_bw_thumb.jpg",130,194,1);thumbnails[4405945]=new thumbnail(4405945,"199830","","DSCF1460_thumb.JPG",130,194,1);thumbnails[4410037]=new thumbnail(4410037,"199830","","DSCF1383_sepia_thumb.jpg",130,195,1);thumbnails[4695186]=new thumbnail(4695186,"199830","","DSCF8390_hisat_thumb.jpg",130,195,1);thumbnails[4695187]=new thumbnail(4695187,"199830","","DSCF8588_thumb.JPG",130,195,1);thumbnails[4695191]=new thumbnail(4695191,"199830","","DSC_7781_thumb.JPG",130,195,1);thumbnails[6066723]=new thumbnail(6066723,"199830","","DSC_0227_thumb.JPG",130,196,1);thumbnails[6066724]=new thumbnail(6066724,"199830","","DSC_0750_thumb.JPG",130,195,1);thumbnails[2407218]=new thumbnail(2407218,"108107","","DSCF2434_thumb.JPG",130,87,1);thumbnails[2407226]=new thumbnail(2407226,"108107","","DSCF2917_thumb.JPG",130,195,1);thumbnails[2407229]=new thumbnail(2407229,"108107","","DSCF2999_thumb.JPG",130,195,1);thumbnails[2407231]=new thumbnail(2407231,"108107","","DSCF3605_thumb.JPG",130,87,1);thumbnails[2407235]=new thumbnail(2407235,"108107","","DSCF6325_thumb.JPG",130,194,1);thumbnails[2407239]=new thumbnail(2407239,"108107","","DSCF7367_thumb.JPG",130,195,1);thumbnails[2407240]=new thumbnail(2407240,"108107","","DSCF9531_thumb.JPG",130,195,1);thumbnails[2407245]=new thumbnail(2407245,"108107","","ttweb_thumb.jpg",130,87,1);thumbnails[2983283]=new thumbnail(2983283,"108107","","DSCF0012 web_thumb.jpg",130,195,1);thumbnails[2983288]=new thumbnail(2983288,"108107","","DSCF0522 web_thumb.jpg",130,195,1);thumbnails[2983291]=new thumbnail(2983291,"108107","","DSCF1027 web_thumb.jpg",130,195,1);thumbnails[2983294]=new thumbnail(2983294,"108107","","DSCF3121 web_thumb.jpg",130,195,1);thumbnails[3278375]=new thumbnail(3278375,"199917","","DSCF1931 web_thumb.jpg",130,87,1);thumbnails[3278388]=new thumbnail(3278388,"199917","","DSCF1942 web_thumb.jpg",130,87,1);thumbnails[3278389]=new thumbnail(3278389,"199917","","DSCF1954 web_thumb.jpg",130,194,1);thumbnails[3278391]=new thumbnail(3278391,"199917","","DSCF1970 web_thumb.jpg",130,194,1);thumbnails[3278399]=new thumbnail(3278399,"199917","","DSCF2117 web_thumb.jpg",130,194,1);thumbnails[3278404]=new thumbnail(3278404,"199917","","DSCF2149 web_thumb.jpg",130,194,1);thumbnails[3278435]=new thumbnail(3278435,"199917","","DSCF1839 web1_thumb.jpg",130,194,1);thumbnails[3278440]=new thumbnail(3278440,"199917","","DSCF1898 bw web2_thumb.jpg",130,194,1);thumbnails[5823252]=new thumbnail(5823252,"199917","","6786-2_thumb.jpg",130,196,1);thumbnails[5823254]=new thumbnail(5823254,"199917","","DSC_0020_thumb.JPG",130,87,1);thumbnails[5823259]=new thumbnail(5823259,"199917","","DSC_0038_bw_thumb.jpg",130,87,1);thumbnails[5823261]=new thumbnail(5823261,"199917","","DSC_0122_thumb.JPG",130,87,1);thumbnails[5823265]=new thumbnail(5823265,"199917","","DSC_6705_thumb.JPG",130,86,1);thumbnails[5823269]=new thumbnail(5823269,"199917","","DSC_6756_thumb.JPG",130,86,1);thumbnails[5823274]=new thumbnail(5823274,"199917","","DSC_6803_thumb.JPG",130,195,1);thumbnails[5372841]=new thumbnail(5372841,"302925","","Fairy_Princess_2_9x6_crop_email_thumb.jpg",130,195,1);thumbnails[5372842]=new thumbnail(5372842,"302925","","Pixie_1_email_thumb.jpg",130,177,1);thumbnails[5372845]=new thumbnail(5372845,"302925","","Little_Fairy_email_thumb.jpg",130,195,1);var galleries=new Object();galleries[108102]=new gallery(108102,"2407204","Weddings ","gallery",[2407200,2407204,2407207,2407208,3250121,3250127,3323976,3323977,3362743,4405437,4406148,4406156,4406159,4406165,4406167,4406318,4406498,4699125,5823357,5823372,5823375,5823380,6053859,6053861,6053864,6053930,6053931,6053932,6053934,6053936,6053948,6053950,6053952,6053954]);galleries[108099]=new gallery(108099,"6066714"," Portraits","gallery",[2712775,3034794,3034795,3077206,3192043,3192044,3652438,4407071,4407074,4407080,4407085,4409270,5372847,5823275,5823277,6066709,6066712,6066716,6066717,6066719,6066714]);galleries[199830]=new gallery(199830,"3277033","Girls On Film","gallery",[3277032,3277033,3277036,3277038,3277096,4405940,4405942,4405944,4405945,4410037,4695186,4695187,4695191,6066723,6066724]);galleries[108107]=new gallery(108107,"2983288","Action Kids","gallery",[2407218,2407226,2407229,2407231,2407235,2407239,2407240,2407245,2983283,2983288,2983291,2983294]);galleries[199917]=new gallery(199917,"5823252","LifeStyle Shoot","gallery",[3278375,3278388,3278389,3278391,3278399,3278404,3278435,3278440,5823252,5823254,5823259,5823261,5823265,5823269,5823274]);galleries[302925]=new gallery(302925,"5372841","Fairies","gallery",[5372841,5372842,5372845]);var imageSets=new Object();imageSets[1]="6066724,6066723,6066719,6066717,6066716,6066714,6066712,6066709,6053954,6053952,6053950,6053948,6053936,6053934,6053932,6053931,6053930,6053864,6053861,6053859,5823380,5823375,5823372,5823357,5823277,5823275,5823274,5823269,5823265,5823261,5823259,5823254,5823252,5372847,5372841,3652438,3362743,3323977,3323976,3278440,3278435,3278404,3278399,3278391,3278389,3278388,3278375,3277096,3277038,3277036,3277033,3277032,3250127,3250121,3192044,3192043,3077206,3034795,3034794,2983294,2983291,2983288,2983283,2712775,2407245,2407240,2407239,2407235,2407231,2407229,2407226,2407218,2407208,2407207,2407204,2407200";imageSets[2]="6066714,5823252,5372841,3277033,2983288,2407204";imageSets[3]="6066724,6066723,6066719,6066717,6066716,6066714,6066712,6066709,6053954,6053952,6053950,6053948,6053936,6053934,6053932,6053931,6053930,6053864,6053861,6053859,5372847,3192043";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/abbeystudios/images";break}switch(a){case 1:b="http://www1.clikpic.com/abbeystudios/images";break}switch(a){case 2:b="http://admin.clikpic.com/abbeystudios/images";break}switch(a){case 24:b="http://tpc15/clikpic/abbeystudios/images";break}switch(a){case 4:b="http://www.clikchurch.com/abbeystudios/images";break}switch(a){case 5:b="http://www2.clikpic.com/abbeystudios/images";break}switch(a){case 22:b="http://tpc5/clikpic/abbeystudios/images";break}switch(a){case 23:b="http://tpc10/clikpic/abbeystudios/images";break}switch(a){case 25:b="http://tpc16/clikpic/abbeystudios/images";break}switch(a){case 15:b="http://www3.clikpic.com/abbeystudios/images";break}switch(a){case 18:b="http://www4.clikpic.com/abbeystudios/images";break}switch(a){case 19:b="http://www5.clikpic.com/abbeystudios/images";break}switch(a){case 31:b="http://www7.clikpic.com/abbeystudios/images";break}switch(a){case 32:b="http://admin2.clikpic.com/abbeystudios/images";break}switch(a){case 33:b="http://www8.clikpic.com/abbeystudios/images";break}switch(a){case 34:b="http://www9.clikpic.com/abbeystudios/images";break}switch(a){case 35:b="http://admin3.clikpic.com/abbeystudios/images";break}switch(a){case 37:b="http://admin4.clikpic.com/abbeystudios/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="ABBEY STUDIO's: "+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="kerryandjacquie@tesco.net">';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="kerryandjacquie@tesco.net">';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+'")'})}}};