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[3407310]=new thumbnail(3407310,"208145","","W070824_0381_thumb.jpg",130,195,1);thumbnails[3407335]=new thumbnail(3407335,"208145","","W070824_1191_thumb.jpg",130,87,1);thumbnails[3407354]=new thumbnail(3407354,"208145","","W070824_0461_thumb.jpg",130,195,1);thumbnails[3407399]=new thumbnail(3407399,"208145","","W070824_093_thumb.jpg",130,87,1);thumbnails[3950109]=new thumbnail(3950109,"","","Gallery_035_thumb.jpg",130,87,1);thumbnails[5928449]=new thumbnail(5928449,"208145","","W070824_074_thumb.jpg",130,195,1);thumbnails[3407273]=new thumbnail(3407273,"208145","","W070824_227_thumb.jpg",130,195,1);thumbnails[3407550]=new thumbnail(3407550,"208164","","W080830_020_thumb.jpg",130,195,1);thumbnails[3407551]=new thumbnail(3407551,"208164","","W080830_012_thumb.jpg",130,195,1);thumbnails[3488611]=new thumbnail(3488611,"208164","","W080830_024_thumb.jpg",130,214,1);thumbnails[3407278]=new thumbnail(3407278,"208145","","W070824_2281_thumb.jpg",130,195,1);thumbnails[3407611]=new thumbnail(3407611,"208164","","W080830_056_thumb.jpg",130,87,1);thumbnails[3407280]=new thumbnail(3407280,"208145","","W070824_221_thumb.jpg",130,195,1);thumbnails[3407624]=new thumbnail(3407624,"208164","","W080830_112_thumb.jpg",130,87,1);thumbnails[3407581]=new thumbnail(3407581,"208164","","W080830_143_thumb.jpg",130,195,1);thumbnails[3407648]=new thumbnail(3407648,"208161","","W080830_1481_thumb.jpg",130,195,1);thumbnails[3407582]=new thumbnail(3407582,"208164","","W080830_148_thumb.jpg",130,195,1);thumbnails[3407749]=new thumbnail(3407749,"208164","","W080830_1651_thumb.jpg",130,195,1);thumbnails[3407756]=new thumbnail(3407756,"208164","","W080830_162_thumb.jpg",130,195,1);thumbnails[3488613]=new thumbnail(3488613,"208164","","W080830_151_thumb.jpg",130,195,1);thumbnails[79286]=new thumbnail(79286,"7062","I'm always pleased to provide black and white photographs, especially when the lighting and subject are right.","W0408140019_thumb.JPG",130,195,1);thumbnails[79289]=new thumbnail(79289,"7062","There was enough time to do some relaxed shots of Rachel and her family at their hotel.","c0408140027_thumb.JPG",130,195,1);thumbnails[79297]=new thumbnail(79297,"7062","A father and daughter moment just before the wedding.","W0408140088_thumb.JPG",130,87,1);thumbnails[79287]=new thumbnail(79287,"7062","Jon couldn't quite believe this was happening and Rachel felt the same.<br>\r\n","W0408140063_thumb.JPG",130,195,1);thumbnails[79293]=new thumbnail(79293,"7062","Surprise bubbles from the gallery add to this very happy picture.","W0408140131_thumb.JPG",130,195,1);thumbnails[79296]=new thumbnail(79296,"7062","","W0408140159_thumb.JPG",130,87,1);thumbnails[79298]=new thumbnail(79298,"7062","","W04081402041_thumb.JPG",130,195,1);thumbnails[79299]=new thumbnail(79299,"7062","","W0408140162_thumb.JPG",130,195,1);thumbnails[72899]=new thumbnail(72899,"6420","Panita-as lovely as she looks.","S040710 200_thumb.jpg",130,195,1);thumbnails[72901]=new thumbnail(72901,"6420","Mark, just before the wedding in the Guildhall, London","S040710 056_thumb.jpg",130,195,1);thumbnails[72902]=new thumbnail(72902,"6420","Emily a bridesmaid just before the ceremony","S040710 085_thumb.jpg",130,195,1);thumbnails[72903]=new thumbnail(72903,"6420","Mark,rightfully proud of his bride and also of the city he works in.<br>\r\n","S040710 131_thumb.jpg",130,195,1);thumbnails[72904]=new thumbnail(72904,"6420","Panita's nephew Jonathan and niece Emily. Very lively and a delight.","S040710 182_thumb.jpg",130,195,1);thumbnails[72905]=new thumbnail(72905,"6420","Panita enjoying her day to the full in a lovely setting.","S040710 204_thumb.jpg",130,195,1);thumbnails[72906]=new thumbnail(72906,"6420","The girls outside the Guildhall, looking good-feeling great.","S040710 244_thumb.jpg",130,87,1);thumbnails[72907]=new thumbnail(72907,"6420","One of many shots inside the Guildhall, Mark and Panita particularly wanted a shot that included the City of London coat of arms.","W0407310268_thumb.JPG",130,195,1);thumbnails[72232]=new thumbnail(72232,"6798","Finishing touches","W0508270016_thumb.JPG",130,195,1);thumbnails[72236]=new thumbnail(72236,"6798","A quiet moment","W0508270019_thumb.JPG",130,195,1);thumbnails[72237]=new thumbnail(72237,"6798","Grand entrance","W0508270075_thumb.JPG",130,195,1);thumbnails[72238]=new thumbnail(72238,"6798","Proud moment","W0508270074_thumb.JPG",130,195,1);thumbnails[72235]=new thumbnail(72235,"6798","Two happy people","W0508270196_thumb.JPG",130,195,1);thumbnails[72239]=new thumbnail(72239,"6798","Looking good","W0508270168_thumb.JPG",130,195,1);thumbnails[72242]=new thumbnail(72242,"6798","Good friends","W05082702171_thumb.JPG",130,87,1);thumbnails[72240]=new thumbnail(72240,"6798","A happy day","W0508270124_thumb.JPG",130,87,1);thumbnails[80613]=new thumbnail(80613,"6799","Emily looking striking in traditional sikh red wedding dress","C050210 001_thumb.jpg",130,195,1);thumbnails[80614]=new thumbnail(80614,"6799","A colouful dilight in a classic setting","Jat and Emily 002_thumb.jpg",130,87,1);thumbnails[80615]=new thumbnail(80615,"6799","","C050210 007_thumb.jpg",130,195,1);thumbnails[80616]=new thumbnail(80616,"6799","","C050210 010_thumb.jpg",130,195,1);thumbnails[80617]=new thumbnail(80617,"6799","A shared moment","C050210 012_thumb.jpg",130,86,1);thumbnails[80618]=new thumbnail(80618,"6799","","Jat and Emily 001_thumb.jpg",130,195,1);thumbnails[80619]=new thumbnail(80619,"6799","","C050210 005_thumb.jpg",130,130,1);thumbnails[80620]=new thumbnail(80620,"6799","These guys know how to celebrate","C050210 013_thumb.jpg",130,87,1);thumbnails[72254]=new thumbnail(72254,"7010","The boys ready to go","W0506110039_thumb.JPG",130,87,1);thumbnails[72251]=new thumbnail(72251,"7010","A very happy groom","W0506110044_thumb.JPG",130,195,1);thumbnails[72255]=new thumbnail(72255,"7010","Just married","W0506110153_thumb.JPG",130,195,1);thumbnails[72257]=new thumbnail(72257,"7010","A beautiful bride in a lovely setting","W0506110171_thumb.JPG",130,195,1);thumbnails[72258]=new thumbnail(72258,"7010","Lisa and bridesmaids","W0506110155_thumb.JPG",130,87,1);thumbnails[72260]=new thumbnail(72260,"7010","Boys will be boys","W0506110175_thumb.JPG",130,87,1);thumbnails[72261]=new thumbnail(72261,"7010","The prize","W0506110180_thumb.JPG",130,87,1);thumbnails[72262]=new thumbnail(72262,"7010","Mirror image","W0506110212_thumb.JPG",130,195,1);thumbnails[2990861]=new thumbnail(2990861,"146482","St Maarten","H0702260074_thumb.jpg",130,87,1);thumbnails[2219764]=new thumbnail(2219764,"146482","Galleria Ferrari","H080405_141_thumb.jpg",130,195,1);thumbnails[2219835]=new thumbnail(2219835,"146482","Galleria Ferrari","H080405_133_thumb.jpg",130,195,1);thumbnails[2219769]=new thumbnail(2219769,"146482","Galleria Ferrari","H080405_118_thumb.jpg",130,87,1);thumbnails[2219749]=new thumbnail(2219749,"146482","Falaises de la Medeleine, Luberon","H070901_050 luberon_thumb.jpg",130,87,1);thumbnails[2219609]=new thumbnail(2219609,"146482","Sarlat in the Dordogne","H070901_176_thumb.jpg",130,195,1);thumbnails[2219743]=new thumbnail(2219743,"146482","Hotel L'Hermitage, Pernes les Fontaines","H070901_046 (1)Pernes_thumb.jpg",130,87,1);thumbnails[2220518]=new thumbnail(2220518,"146482","Tours sur Marne","H060911_045_thumb.jpg",130,98,1);thumbnails[2219760]=new thumbnail(2219760,"146482","Duomo, Firenze","firenze_thumb.jpg",130,87,1);thumbnails[2219729]=new thumbnail(2219729,"146482","Puycelci,Gorges d'Aveyron","H070901_131puycelci_thumb.jpg",130,87,1);thumbnails[2220045]=new thumbnail(2220045,"146482","a competitive package price for corporate potraiture with updates for new staff. ","OAT_thumb.jpg",130,195,1);thumbnails[2219618]=new thumbnail(2219618,"146482","Pernes les Fontaines","Pernes_thumb.jpg",130,173,1);thumbnails[2220038]=new thumbnail(2220038,"146482","Awards presenation OAA","C080224_004_thumb.jpg",130,87,1);thumbnails[3833886]=new thumbnail(3833886,"7495","Eva Rose","2007_01010011_thumb.JPG",130,195,1);thumbnails[2990944]=new thumbnail(2990944,"7495","J at Grand Bay","H0702260062b_thumb.jpg",130,195,1);thumbnails[2220341]=new thumbnail(2220341,"7495","Bruno and Sophie","H070901_164parislondres_thumb.jpg",130,195,1);thumbnails[2219306]=new thumbnail(2219306,"7495","Paris-Londres, Sarlat.<br>\r\nSophie the Londres part of the duo. One of a series of photos for their website.","H070901_161 paris londres_thumb.jpg",130,87,1);thumbnails[2219374]=new thumbnail(2219374,"7495","Bruno, the Paris part of this folk duo who perform in Sarlat, France. Just sit in the cathedral square in the evening and enjoy their music.","H070901_169 parislondres_thumb.jpg",130,87,1);thumbnails[79284]=new thumbnail(79284,"7495","Iain. This very experienced pilot enjoys an autumn morning before his first flight of the day where he will examine a student applying for a professional licence.","GCR0510 001_thumb.jpg",130,87,1);thumbnails[79285]=new thumbnail(79285,"7495","George has been a volunteer on this preserved railway from it's early days and enjoys his \"trademark cup of tea.","GCR0510 023_thumb.jpg",130,195,1);thumbnails[3950105]=new thumbnail(3950105,"237389","","Gallery_028_thumb.jpg",130,84,1);thumbnails[3950107]=new thumbnail(3950107,"237389","","Gallery_030_thumb.jpg",130,87,1);thumbnails[3950108]=new thumbnail(3950108,"237389","","Gallery_033_thumb.jpg",130,87,1);thumbnails[3950110]=new thumbnail(3950110,"237389","","Gallery_0351_thumb.jpg",130,87,1);thumbnails[3950115]=new thumbnail(3950115,"237389","","Gallery_036_thumb.jpg",130,87,1);thumbnails[3950116]=new thumbnail(3950116,"237389","","Gallery_037_thumb.jpg",130,87,1);thumbnails[3950120]=new thumbnail(3950120,"237389","","Gallery_038_thumb.jpg",130,87,1);thumbnails[3950123]=new thumbnail(3950123,"237389","","Gallery_040_thumb.jpg",130,84,1);thumbnails[3950125]=new thumbnail(3950125,"237389","","Gallery_041_thumb.jpg",130,85,1);thumbnails[3950126]=new thumbnail(3950126,"237389","","Gallery_043_thumb.jpg",130,87,1);thumbnails[3950127]=new thumbnail(3950127,"237389","","Gallery_021_thumb.jpg",130,98,1);thumbnails[3950128]=new thumbnail(3950128,"237389","","Gallery_019_thumb.jpg",130,173,1);thumbnails[3950129]=new thumbnail(3950129,"237389","","Gallery_018_thumb.jpg",130,173,1);thumbnails[3950131]=new thumbnail(3950131,"237389","","Gallery_009_thumb.jpg",130,87,1);thumbnails[3950132]=new thumbnail(3950132,"237389","","Gallery_003_thumb.jpg",130,87,1);thumbnails[3950195]=new thumbnail(3950195,"237389","","Gallery_001_thumb.jpg",130,87,1);thumbnails[3952943]=new thumbnail(3952943,"237389","","Gallery_020_thumb.jpg",130,173,1);thumbnails[3953102]=new thumbnail(3953102,"237389","","Gallery_026_thumb.jpg",130,173,1);thumbnails[3953111]=new thumbnail(3953111,"237389","","Gallery_025_thumb.jpg",130,98,1);var galleries=new Object();galleries[208164]=new gallery(208164,"3488613","Angus and Laura","gallery",[3407550,3407551,3488611,3407611,3407624,3407581,3407582,3407749,3407756,3488613]);galleries[208161]=new gallery(208161,"3407648","Jordan","gallery",[3407648]);galleries[208145]=new gallery(208145,"3407278,3407273","Steve and Helen","gallery",[3407310,3407335,3407354,3407399,5928449,3407273,3407278,3407280]);galleries[7062]=new gallery(7062,"79299,79298,79297,79296,79293,79289,79287,79286","Jon and Rachel","gallery",[79286,79289,79297,79287,79293,79296,79298,79299]);galleries[6420]=new gallery(6420,"72907","Mark and Panita","gallery",[72899,72901,72902,72903,72904,72905,72906,72907]);galleries[6798]=new gallery(6798,"72235","Paddy and Rebecca","gallery",[72232,72236,72237,72238,72235,72239,72242,72240]);galleries[6799]=new gallery(6799,"80613","Jatinder and Emily","gallery",[80613,80614,80615,80616,80617,80618,80619,80620]);galleries[7010]=new gallery(7010,"72255","Mark and Lisa","gallery",[72254,72251,72255,72257,72258,72260,72261,72262]);galleries[146482]=new gallery(146482,"2219764","Commercial","gallery",[2990861,2219764,2219835,2219769,2219749,2219609,2219743,2220518,2219760,2219729,2220045,2219618,2220038]);galleries[146518]=new gallery(146518,"3488613,3407278,3407273,80613,72907,72255,72235","Weddings","gallery",[]);galleries[7495]=new gallery(7495,"3833886","Portraiture","gallery",[3833886,2990944,2220341,2219306,2219374,79284,79285]);galleries[237389]=new gallery(237389,"3950116","Landscapes ","gallery",[3950105,3950107,3950108,3950110,3950115,3950116,3950120,3950123,3950125,3950126,3950127,3950128,3950129,3950131,3950132,3950195,3952943,3953102,3953111]);galleries[208137]=new gallery(208137,"3407648","On Line Albums","gallery",[]);var imageSets=new Object();imageSets[1]="79289";imageSets[2]="3950116,3833886,3488613,3407648,3407278,3407273,2219764,80613,72907,72255,72235";imageSets[3]="5928449,3953111,3953102,3952943,3950195,3950132,3950131,3950129,3950128,3950127,3950126,3950125,3950123,3950120,3950116,3950115,3950110,3950109,3950108,3950107,3950105,3833886,3488613,3488611,3407756,3407749,3407648,3407624,3407611,3407582,3407581,3407551,3407550,3407399,3407354,3407335,3407310,3407280,3407278,3407273,2990944,2990861,2220518,2220341,2220045,2220038,2219835,2219769,2219764,2219760";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/alansmith/images";break}switch(a){case 1:b="http://www1.clikpic.com/alansmith/images";break}switch(a){case 2:b="http://admin.clikpic.com/alansmith/images";break}switch(a){case 24:b="http://tpc15/clikpic/alansmith/images";break}switch(a){case 4:b="http://www.clikchurch.com/alansmith/images";break}switch(a){case 5:b="http://www2.clikpic.com/alansmith/images";break}switch(a){case 22:b="http://tpc5/clikpic/alansmith/images";break}switch(a){case 23:b="http://tpc10/clikpic/alansmith/images";break}switch(a){case 25:b="http://tpc16/clikpic/alansmith/images";break}switch(a){case 15:b="http://www3.clikpic.com/alansmith/images";break}switch(a){case 18:b="http://www4.clikpic.com/alansmith/images";break}switch(a){case 19:b="http://www5.clikpic.com/alansmith/images";break}switch(a){case 31:b="http://www7.clikpic.com/alansmith/images";break}switch(a){case 32:b="http://admin2.clikpic.com/alansmith/images";break}switch(a){case 33:b="http://www8.clikpic.com/alansmith/images";break}switch(a){case 34:b="http://www9.clikpic.com/alansmith/images";break}switch(a){case 35:b="http://admin3.clikpic.com/alansmith/images";break}switch(a){case 37:b="http://admin4.clikpic.com/alansmith/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="Alan Smith 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;resizePhotoInfo();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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="ALANSMITH">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};