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[4825671]=new thumbnail(4825671,"275517","","IMG_3472v11SQR_thumb.jpg",125,144,18);thumbnails[5099693]=new thumbnail(5099693,"275517","","IMG_3207v11SQR_thumb.jpg",125,144,18);thumbnails[4827882]=new thumbnail(4827882,"275518","","IMG_0900v31SQR_thumb.jpg",125,144,18);thumbnails[4879395]=new thumbnail(4879395,"275514","","IMG_2794v11SQR_thumb.jpg",125,144,18);thumbnails[4879398]=new thumbnail(4879398,"275514","","IMG_2836v51SQR_thumb.jpg",125,144,18);thumbnails[4827992]=new thumbnail(4827992,"275518","","IMG_0785v42SQR1_thumb.jpg",125,144,18);thumbnails[4827993]=new thumbnail(4827993,"275518","","IMG_0877v31SQR1_thumb.jpg",125,144,18);thumbnails[4824203]=new thumbnail(4824203,"275516","","IMG_6987v51SQR_thumb.jpg",125,136,18);thumbnails[4825665]=new thumbnail(4825665,"275517","","IMG_3413v21SQR_thumb.jpg",125,144,18);thumbnails[4827542]=new thumbnail(4827542,"275518","","IMG_4893v11SQR1_thumb.jpg",125,144,18);thumbnails[4842040]=new thumbnail(4842040,"275514","","IMG_1778v32SQR_thumb.jpg",125,143,18);thumbnails[4827372]=new thumbnail(4827372,"275517","","IMG_2763v41SQR_thumb.jpg",125,144,18);thumbnails[4824196]=new thumbnail(4824196,"275516","","IMG_9036v71SQR_thumb.jpg",125,136,18);thumbnails[4827538]=new thumbnail(4827538,"275518","","IMG_4860v11SQR_thumb.jpg",125,144,18);thumbnails[4842043]=new thumbnail(4842043,"275514","","IMG_1788v31SQR_thumb.jpg",125,144,18);thumbnails[5640577]=new thumbnail(5640577,"275519","","IMG_64972v11SQR_thumb.jpg",125,144,18);thumbnails[4824200]=new thumbnail(4824200,"275516","","IMG_8738v12SQR16bit_thumb.jpg",125,136,18);thumbnails[4824192]=new thumbnail(4824192,"275516","","IMG_9150v42_thumb.jpg",125,136,18);thumbnails[4842045]=new thumbnail(4842045,"275514","","IMG_1791v41SQR_thumb.jpg",125,144,18);thumbnails[5640595]=new thumbnail(5640595,"275519","","IMG_6382v13SQR_thumb.jpg",125,144,18);thumbnails[4824191]=new thumbnail(4824191,"275516","","IMG_9200v22SQR_thumb.jpg",125,136,18);thumbnails[4842048]=new thumbnail(4842048,"275514","","IMG_2044v32SQR1_thumb.jpg",125,144,18);thumbnails[5640605]=new thumbnail(5640605,"275519","","IMG_6272v12SQR_thumb.jpg",125,144,18);thumbnails[4824193]=new thumbnail(4824193,"275516","","IMG_9144v11SQR_thumb.jpg",125,136,18);thumbnails[5640608]=new thumbnail(5640608,"275519","","IMG_6541v11SQR_thumb.jpg",125,144,18);thumbnails[4825668]=new thumbnail(4825668,"275517","","IMG_3446V31sqr_thumb.jpg",125,144,18);thumbnails[4879399]=new thumbnail(4879399,"275514","","IMG_1737v1265x451_thumb.jpg",125,101,18);thumbnails[5640610]=new thumbnail(5640610,"275519","","IMG_6277v12SQR_thumb.jpg",125,144,18);thumbnails[4824198]=new thumbnail(4824198,"275516","","IMG_8993v21SQR_thumb.jpg",125,136,18);thumbnails[4827375]=new thumbnail(4827375,"275517","","IMG_3168V41SQR_thumb.jpg",125,144,18);thumbnails[4842050]=new thumbnail(4842050,"275514","","IMG_1750v53SQR_thumb.jpg",125,144,18);thumbnails[4842451]=new thumbnail(4842451,"275514","","IMG_2121v12SQR_thumb.jpg",125,144,18);thumbnails[5640611]=new thumbnail(5640611,"275519","","IMG_6646v12SQR_thumb.jpg",125,144,18);thumbnails[4827373]=new thumbnail(4827373,"275517","","IMG_2882v32SQR_thumb.jpg",125,144,18);thumbnails[4842450]=new thumbnail(4842450,"275514","","IMG_2116v12SQR_thumb.jpg",125,144,18);thumbnails[4881056]=new thumbnail(4881056,"275518","","IMG_5261v11SQR_thumb.jpg",125,144,18);thumbnails[5640628]=new thumbnail(5640628,"275519","","IMG_6284v21SQR_thumb.jpg",125,144,18);thumbnails[4827374]=new thumbnail(4827374,"275517","","IMG_3124v31SQR_thumb.jpg",125,144,18);thumbnails[5640692]=new thumbnail(5640692,"275519","","IMG_6659v11SQR_thumb.jpg",125,144,18);thumbnails[4827377]=new thumbnail(4827377,"275517","","IMG_3237v32SQR_thumb.jpg",125,144,18);thumbnails[4824202]=new thumbnail(4824202,"275516","","IMG_7578v11SQR_thumb.jpg",125,136,18);thumbnails[4825672]=new thumbnail(4825672,"275517","","IMG_3483v21SQR_thumb.jpg",125,144,18);thumbnails[4842447]=new thumbnail(4842447,"275514","","IMG_2064v42SQR1_thumb.jpg",125,144,18);thumbnails[5640738]=new thumbnail(5640738,"275519","","IMG_6424v11SQR_thumb.jpg",125,144,18);thumbnails[4824201]=new thumbnail(4824201,"275516","","IMG_8692v71SQR_thumb.jpg",125,136,18);thumbnails[4828128]=new thumbnail(4828128,"275518","","IMG_3944v11SQR_thumb.jpg",125,144,18);thumbnails[4877229]=new thumbnail(4877229,"275516","","IMG_5136v21SQR_thumb.jpg",125,144,18);thumbnails[4991287]=new thumbnail(4991287,"275518","","IMG_5368v11SQR_thumb.jpg",125,144,18);thumbnails[5660391]=new thumbnail(5660391,"275519","","IMG_6379v11SQR_thumb.jpg",125,144,18);thumbnails[4842452]=new thumbnail(4842452,"275514","","IMG_2156v42SQR_thumb.jpg",125,144,18);thumbnails[4877230]=new thumbnail(4877230,"275518","","IMG_5259v11SQR_thumb.jpg",125,144,18);thumbnails[4878802]=new thumbnail(4878802,"275516","","IMG_5130v11SQR1_thumb.jpg",125,144,18);thumbnails[4842453]=new thumbnail(4842453,"275514","","IMG_2159v42SQR_thumb.jpg",125,144,18);thumbnails[4991289]=new thumbnail(4991289,"275518","","IMG_5395v11SQR_thumb.jpg",125,144,18);thumbnails[4991290]=new thumbnail(4991290,"275518","","IMG_5428v51SQR_thumb.jpg",125,144,18);thumbnails[4991291]=new thumbnail(4991291,"275518","","IMG_5430v11SQR_thumb.jpg",125,144,18);thumbnails[4991293]=new thumbnail(4991293,"275518","","IMG_5482v11SQR_thumb.jpg",125,144,18);thumbnails[4878798]=new thumbnail(4878798,"275517","","IMG_31722v21SQR1_thumb.jpg",125,144,18);thumbnails[4991294]=new thumbnail(4991294,"275518","","IMG_5483v12SQR_thumb.jpg",125,144,18);thumbnails[4991295]=new thumbnail(4991295,"275518","","IMG_5516v11SQR_thumb.jpg",125,144,18);thumbnails[4991297]=new thumbnail(4991297,"275518","","IMG_5607v111SQR_thumb.jpg",125,144,18);thumbnails[5054519]=new thumbnail(5054519,"275518","","IMG_5576v11SQR_thumb.jpg",125,144,18);thumbnails[5106090]=new thumbnail(5106090,"275518","","IMG_5431v81SQR_thumb.jpg",125,144,18);thumbnails[5113558]=new thumbnail(5113558,"275518","","IMG_56582v11SQR_thumb.jpg",125,144,18);thumbnails[5135422]=new thumbnail(5135422,"275518","","IMG_5655v21SQR_thumb.jpg",125,144,18);thumbnails[5268269]=new thumbnail(5268269,"293972","","IMG_5847v21SQR_thumb.jpg",125,144,18);thumbnails[5214938]=new thumbnail(5214938,"293972","","IMG_5728v11SQR_thumb.jpg",125,144,18);thumbnails[5221006]=new thumbnail(5221006,"293972","","IMG_5741v11SQR_thumb.jpg",125,144,18);thumbnails[5221895]=new thumbnail(5221895,"293972","","IMG_5805v12SQR_thumb.jpg",125,144,18);thumbnails[5221906]=new thumbnail(5221906,"293972","","IMG_5846v11SQR_thumb.jpg",125,144,18);thumbnails[5238405]=new thumbnail(5238405,"293972","","IMG_5807v11SQR_thumb.jpg",125,144,18);thumbnails[5238407]=new thumbnail(5238407,"293972","","IMG_5814v21SQR_thumb.jpg",125,144,18);thumbnails[5287481]=new thumbnail(5287481,"293972","","IMG_5701v11SQR_thumb.jpg",125,144,18);thumbnails[5268268]=new thumbnail(5268268,"293972","","IMG_5748v13SQR_thumb.jpg",125,144,18);thumbnails[5214942]=new thumbnail(5214942,"293972","","IMG_5812v12SQR_thumb.jpg",125,144,18);thumbnails[5637840]=new thumbnail(5637840,"275710","","IMG_6321v11SQR_thumb.jpg",125,144,18);thumbnails[5637844]=new thumbnail(5637844,"275710","","IMG_6335v11sqr_thumb.jpg",125,144,18);thumbnails[5637845]=new thumbnail(5637845,"275710","","IMG_6329v11SQR_thumb.jpg",125,144,18);thumbnails[5637849]=new thumbnail(5637849,"275710","","IMG_6326v32SQR_thumb.jpg",125,144,18);thumbnails[5637850]=new thumbnail(5637850,"275710","","IMG_6702v11SQR_thumb.jpg",125,144,18);thumbnails[5637851]=new thumbnail(5637851,"275710","","IMG_6701v11SQR_thumb.jpg",125,144,18);thumbnails[5637855]=new thumbnail(5637855,"275710","","IMG_6274v11SQR_thumb.jpg",125,144,18);thumbnails[5637858]=new thumbnail(5637858,"275710","","IMG_6668v11SQR_thumb.jpg",125,144,18);thumbnails[4837793]=new thumbnail(4837793,"276272","","IMG_3036v614_thumb.jpg",125,100,18);thumbnails[4837844]=new thumbnail(4837844,"276272","","IMG_3117v12SQR_thumb.jpg",125,144,18);thumbnails[4837848]=new thumbnail(4837848,"276272","","IMG_3119v11SQR_thumb.jpg",125,144,18);thumbnails[4837852]=new thumbnail(4837852,"276272","","IMG_3142v11SQR_thumb.jpg",125,144,18);thumbnails[4837859]=new thumbnail(4837859,"276272","","IMG_3297v12SQR_thumb.jpg",125,144,18);thumbnails[4837863]=new thumbnail(4837863,"276272","","IMG_3333v11SQR_thumb.jpg",125,144,18);thumbnails[4881061]=new thumbnail(4881061,"276272","","IMG_7070v11_thumb.jpg",125,144,18);thumbnails[4838285]=new thumbnail(4838285,"276272","","IMG_7812MaulbronnSQRv11_thumb.jpg",125,144,18);thumbnails[4838288]=new thumbnail(4838288,"276272","","IMG_8023Maulbronnv32_thumb.jpg",125,144,18);thumbnails[4838291]=new thumbnail(4838291,"276272","","IMG_7937MaulbronnSQRv22_thumb.jpg",125,144,18);thumbnails[4838296]=new thumbnail(4838296,"276272","","IMG_7926Maulbronnv11_thumb.jpg",125,144,18);thumbnails[5256922]=new thumbnail(5256922,"276272","","IMG_1860v4165x45_thumb.jpg",125,100,18);thumbnails[5256926]=new thumbnail(5256926,"276272","","IMG_1869v42SQR_thumb.jpg",125,144,18);thumbnails[5256929]=new thumbnail(5256929,"276272","","IMG_1899v41SQR_thumb.jpg",125,144,18);thumbnails[5256931]=new thumbnail(5256931,"276272","","IMG_1902v51SQR_thumb.jpg",125,144,18);thumbnails[5256978]=new thumbnail(5256978,"276272","","IMG_1876v11SQR_thumb.jpg",125,144,18);var galleries=new Object();galleries[275514]=new gallery(275514,"4879399,4879398,4879395,4842453,4842452,4842451,4842450,4842447,4842050,4842048","Bretagne Normandie","section331034",[4879395,4879398,4842040,4842043,4842045,4842048,4879399,4842050,4842451,4842450,4842447,4842452,4842453]);galleries[275516]=new gallery(275516,"4824203","Close to Home","section331037",[4824203,4824196,4824200,4824192,4824191,4824193,4824198,4824202,4824201,4877229,4878802]);galleries[275517]=new gallery(275517,"5099693,4878798,4827377,4827375,4827374,4827373,4827372,4825672,4825671,4825668","Cote Basque 2009","section331035",[4825671,5099693,4825665,4827372,4825668,4827375,4827373,4827374,4827377,4825672,4878798]);galleries[275519]=new gallery(275519,"5660391,5640738,5640692,5640628,5640611,5640610,5640608,5640605,5640595,5640577","Mont Saint Michel","gallery",[5640577,5640595,5640605,5640608,5640610,5640611,5640628,5640692,5640738,5660391]);galleries[275518]=new gallery(275518,"5135422,5113558,5106090,5054519,4991297,4991295,4991294,4991293,4991291,4991290","Netherlands","section331036",[4827882,4827992,4827993,4827542,4827538,4881056,4828128,4991287,4877230,4991289,4991290,4991291,4991293,4991294,4991295,4991297,5054519,5106090,5113558,5135422]);galleries[293972]=new gallery(293972,"5287481,5268269,5268268,5238407,5238405,5221906,5221895,5221006,5214942,5214938","Cotentin 2009","section351773",[5268269,5214938,5221006,5221895,5221906,5238405,5238407,5287481,5268268,5214942]);galleries[275710]=new gallery(275710,"5637858,5637855,5637851,5637850,5637849,5637845,5637844,5637840","New Work","section331314",[5637840,5637844,5637845,5637849,5637850,5637851,5637855,5637858]);galleries[276272]=new gallery(276272,"5256978,5256931,5256929,5256926,5256922,4881061,4838296,4838291,4838288,4838285","Heritage","section332020",[4837793,4837844,4837848,4837852,4837859,4837863,4881061,4838285,4838288,4838291,4838296,5256922,5256926,5256929,5256931,5256978]);var imageSets=new Object();imageSets[1]="5637855,5637840,5221906,5221006,5135422,5099693,4838291,4838288,4838285,4837863,4837859,4837852,4837848,4837844,4827993,4827882,4825671,4824196";imageSets[2]="4824203";imageSets[3]="5637855,5637840,5221906,5221006,5135422,5099693,4838291,4838288,4838285,4837863,4837859,4837852,4837848,4837844,4827993,4827882,4825671,4824196";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/eukendei/images";break}switch(a){case 1:b="http://www1.clikpic.com/eukendei/images";break}switch(a){case 2:b="http://admin.clikpic.com/eukendei/images";break}switch(a){case 24:b="http://tpc15/clikpic/eukendei/images";break}switch(a){case 4:b="http://www.clikchurch.com/eukendei/images";break}switch(a){case 5:b="http://www2.clikpic.com/eukendei/images";break}switch(a){case 22:b="http://tpc5/clikpic/eukendei/images";break}switch(a){case 23:b="http://tpc10/clikpic/eukendei/images";break}switch(a){case 25:b="http://tpc16/clikpic/eukendei/images";break}switch(a){case 15:b="http://www3.clikpic.com/eukendei/images";break}switch(a){case 18:b="http://www4.clikpic.com/eukendei/images";break}switch(a){case 19:b="http://www5.clikpic.com/eukendei/images";break}switch(a){case 31:b="http://www7.clikpic.com/eukendei/images";break}switch(a){case 32:b="http://admin2.clikpic.com/eukendei/images";break}switch(a){case 33:b="http://www8.clikpic.com/eukendei/images";break}switch(a){case 34:b="http://www9.clikpic.com/eukendei/images";break}switch(a){case 35:b="http://admin3.clikpic.com/eukendei/images";break}switch(a){case 37:b="http://admin4.clikpic.com/eukendei/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("section331314"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section331314.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("section331314"!=""){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="Monochrome Journeys: "+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> 				&euro;"+(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="laleijdekkers@home.nl">';b=b+'<input type="hidden" name="currency_code" value="EUR">';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="laleijdekkers@home.nl">';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<125){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+'")'})}}};