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[3657318]=new thumbnail(3657318,"","","pink_diamonds_2_thumb.jpg",130,128,15);thumbnails[3665759]=new thumbnail(3665759,"","","question_pink_thumb.jpg",130,130,15);thumbnails[3816998]=new thumbnail(3816998,"","","Make_up_6_inches_wide_thumb.jpg",130,61,15);thumbnails[3842122]=new thumbnail(3842122,"","","LINKS-IMAGES-VERTICAL_thumb.jpg",130,468,15);thumbnails[3896294]=new thumbnail(3896294,"","","Thumbnail-me-black-and-whit_thumb.jpg",130,130,15);thumbnails[4326970]=new thumbnail(4326970,"","","Selection-of-photos-brides1_thumb.jpg",130,20,15);thumbnails[4327250]=new thumbnail(4327250,"","","Selection-for-special-occas6_thumb.jpg",130,104,15);thumbnails[4391027]=new thumbnail(4391027,"","","Selection-of-photos-home-sh1_thumb.jpg",130,20,15);thumbnails[3801062]=new thumbnail(3801062,"222485","1","1JPG_thumb.jpg",130,87,15);thumbnails[3801063]=new thumbnail(3801063,"222485","2","2JPG_thumb.jpg",130,87,15);thumbnails[3817413]=new thumbnail(3817413,"222485","3","3_edited-2_thumb.jpg",130,87,15);thumbnails[3801066]=new thumbnail(3801066,"222485","4","4JPG_thumb.jpg",130,87,15);thumbnails[3817321]=new thumbnail(3817321,"222485","5","5_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3801070]=new thumbnail(3801070,"222485","6","6JPG_thumb.jpg",130,87,15);thumbnails[3817322]=new thumbnail(3817322,"222485","7","7_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3801074]=new thumbnail(3801074,"222485","8","8JPG_thumb.jpg",130,173,15);thumbnails[3801076]=new thumbnail(3801076,"222485","9","9JPG_thumb.jpg",130,173,15);thumbnails[3801078]=new thumbnail(3801078,"222485","10","10JPG_thumb.jpg",130,173,15);thumbnails[4386697]=new thumbnail(4386697,"222290","","2-resized-500x600_thumb.jpg",130,156,15);thumbnails[4386700]=new thumbnail(4386700,"222290","","7-resized-500x600_thumb.jpg",130,156,15);thumbnails[4386701]=new thumbnail(4386701,"222290","","6-resized-500x600_thumb.jpg",130,156,15);thumbnails[4939178]=new thumbnail(4939178,"222290","","KATE_MITCHELL_SOLO_thumb.jpg",130,156,15);thumbnails[4939180]=new thumbnail(4939180,"222290","","KATE_MITCHELL_W_MUM_SISTER_thumb.jpg",130,156,15);thumbnails[4939182]=new thumbnail(4939182,"222290","","KATE_MITCHELL_HEAD_SHOT_thumb.jpg",130,156,15);thumbnails[5048929]=new thumbnail(5048929,"222290","","ANNA_PARRY_portrait_thumb.jpg",130,156,15);thumbnails[5048930]=new thumbnail(5048930,"222290","","ANNA_PARRY_portrait_2_thumb.jpg",130,156,15);thumbnails[5048932]=new thumbnail(5048932,"222290","","KATE_LEWIS_portrait_thumb.jpg",130,156,15);thumbnails[5048933]=new thumbnail(5048933,"222290","","RACHEL_GREEN_MAID_portrait_thumb.jpg",130,156,15);thumbnails[5048943]=new thumbnail(5048943,"222290","","SARAH_PARRY_portrait_thumb.jpg",130,156,15);thumbnails[3817619]=new thumbnail(3817619,"222290","","Website_Ellen_Bishop_500x600_px_thumb.jpg",130,156,15);thumbnails[3817621]=new thumbnail(3817621,"222290","","Website_Ellen_Bishop_BW_Face_500x600px_thumb.jpg",130,156,15);thumbnails[3817622]=new thumbnail(3817622,"222290","","Website_Ellen_Bishop_Face_500x600px_thumb.jpg",130,156,15);thumbnails[3817642]=new thumbnail(3817642,"222290","","Hannah11_thumb.jpg",130,173,15);thumbnails[3817643]=new thumbnail(3817643,"222290","","Hannah21_thumb.jpg",130,173,15);thumbnails[3817644]=new thumbnail(3817644,"222290","","Hannah31_thumb.jpg",130,173,15);thumbnails[3817676]=new thumbnail(3817676,"222290","","Helen1_500x600px_thumb.jpg",130,156,15);thumbnails[3817678]=new thumbnail(3817678,"222290","","Helen5_500x600px_thumb.jpg",130,156,15);thumbnails[3817681]=new thumbnail(3817681,"222290","","Helen3_500x600px_thumb.jpg",130,156,15);thumbnails[3817660]=new thumbnail(3817660,"222290","","LOUISA_HAYLEY_FACE_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3817701]=new thumbnail(3817701,"222290","","LOUISA_HAYLEY_edited-1JPG12_thumb.jpg",130,156,15);thumbnails[3896372]=new thumbnail(3896372,"222290","","Me_5_sized_thumb.jpg",130,156,15);thumbnails[3896370]=new thumbnail(3896370,"222290","","Me_1_thumb.jpg",130,156,15);thumbnails[3896371]=new thumbnail(3896371,"222290","","Me_3_thumb.jpg",130,156,15);thumbnails[3896409]=new thumbnail(3896409,"222290","","2-Resized_thumb.jpg",130,156,15);thumbnails[5048980]=new thumbnail(5048980,"222290","","CAROLYN_WOODROFFE_1__maids_landscape_thumb.jpg",130,87,15);thumbnails[5048985]=new thumbnail(5048985,"222290","","BETH_EDWARDS_MAIDS1__landscape_thumb.jpg",130,87,15);thumbnails[5048988]=new thumbnail(5048988,"222290","","KATE_LEWIS_MAIDS_1_landscape_thumb.jpg",130,87,15);thumbnails[5048990]=new thumbnail(5048990,"222290","","LUCY_MARSDEN_1_landscape_thumb.jpg",130,87,15);thumbnails[5048982]=new thumbnail(5048982,"222290","","SARAH_PARRY__MAIDS_1_landscape_thumb.jpg",130,87,15);thumbnails[3880252]=new thumbnail(3880252,"222486","","IMG_1545_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880256]=new thumbnail(3880256,"222486","","IMG_1518_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880259]=new thumbnail(3880259,"222486","","IMG_1515_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880267]=new thumbnail(3880267,"222486","","IMG_1145_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880269]=new thumbnail(3880269,"222486","","IMG_1135JPG1_thumb.jpg",130,87,15);thumbnails[3880270]=new thumbnail(3880270,"222486","","IMG_1468JPG1_thumb.jpg",130,87,15);thumbnails[3880273]=new thumbnail(3880273,"222486","","IMG_1020JPG1_thumb.jpg",130,87,15);thumbnails[3880274]=new thumbnail(3880274,"222486","","IMG_1028JPG_thumb.jpg",130,87,15);thumbnails[3880282]=new thumbnail(3880282,"222486","","IMG_1717_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880292]=new thumbnail(3880292,"222486","","IMG_1848_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880298]=new thumbnail(3880298,"222486","","Collage_eyes_open_closedJPG_thumb.jpg",130,92,15);thumbnails[3880308]=new thumbnail(3880308,"222486","","IMG_0474_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880310]=new thumbnail(3880310,"222486","","IMG_0708_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880319]=new thumbnail(3880319,"222486","","IMG_1222_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880323]=new thumbnail(3880323,"222486","","IMG_1229_edited-1JPG_thumb.jpg",130,87,15);thumbnails[3880327]=new thumbnail(3880327,"222486","","IMG_1442_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880330]=new thumbnail(3880330,"222486","","IMG_1567_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880335]=new thumbnail(3880335,"222486","","IMG_1142_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880336]=new thumbnail(3880336,"222486","","IMG_1492JPG1_thumb.jpg",130,156,15);thumbnails[3880345]=new thumbnail(3880345,"222486","","IMG_0513JPG1_thumb.jpg",130,156,15);thumbnails[3880350]=new thumbnail(3880350,"222486","","IMG_0507JPG1_thumb.jpg",130,156,15);thumbnails[3880353]=new thumbnail(3880353,"222486","","IMG_1030aBleachedJPG1_thumb.jpg",130,156,15);thumbnails[3880360]=new thumbnail(3880360,"222486","","IMG_1306_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880363]=new thumbnail(3880363,"222486","","IMG_1304_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880365]=new thumbnail(3880365,"222486","","IMG_1309_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880488]=new thumbnail(3880488,"222486","","IMG_1746_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880489]=new thumbnail(3880489,"222486","","IMG_1729_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880490]=new thumbnail(3880490,"222486","","IMG_1763_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880492]=new thumbnail(3880492,"222486","","IMG_1584_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880495]=new thumbnail(3880495,"222486","","IMG_1778JPG1_thumb.jpg",130,156,15);thumbnails[3880500]=new thumbnail(3880500,"222486","","HLong_edited-2JPG_thumb.jpg",130,156,15);thumbnails[3880503]=new thumbnail(3880503,"222486","","IMG_0666JPG2_thumb.jpg",130,156,15);thumbnails[3880506]=new thumbnail(3880506,"222486","","IMG_0714_2_edited-1JPG_thumb.jpg",130,156,15);thumbnails[3880508]=new thumbnail(3880508,"222486","","IMG_0825JPG2_thumb.jpg",130,156,15);thumbnails[3880510]=new thumbnail(3880510,"222486","","IMG_0876JPG_thumb.jpg",130,156,15);thumbnails[3880889]=new thumbnail(3880889,"222486","","0731_image_sharper_thumb.jpg",130,156,15);thumbnails[3880891]=new thumbnail(3880891,"222486","","0657_image_sharper_thumb.jpg",130,156,15);thumbnails[3801268]=new thumbnail(3801268,"222486","BLUE","BLUE_LIPSJPG_thumb.jpg",130,87,15);thumbnails[3800970]=new thumbnail(3800970,"222486","BLUE","HALF_FACEJPG12_thumb.jpg",130,87,15);thumbnails[3801037]=new thumbnail(3801037,"222486","BLUE","LOOKING_DOWNJPG1_thumb.jpg",130,87,15);thumbnails[3801039]=new thumbnail(3801039,"222486","BLUE","EYES_CLOSEDJPG12_thumb.jpg",130,87,15);thumbnails[3896748]=new thumbnail(3896748,"222486","BLUE","WHISTFUL-LOOK-EDITED-BLUE_thumb.jpg",130,87,15);thumbnails[3801032]=new thumbnail(3801032,"222486","BLUE","FULL_FACE_SHOULDERSJPG1_thumb.jpg",130,87,15);thumbnails[3841475]=new thumbnail(3841475,"222289","","COLLAGE_FINISHED_VERSION_NO_10JPG_thumb.jpg",130,92,15);thumbnails[3841582]=new thumbnail(3841582,"222289","","COLLAGE_BEFORE_AFTER_NO_11_edited-1JPG123_thumb.jpg",130,92,15);thumbnails[3881246]=new thumbnail(3881246,"222289","","COLLAGE-FINISHED-NO-111_thumb.jpg",130,92,15);thumbnails[4060216]=new thumbnail(4060216,"222289","","COLLAGE_FINISHED_VERSION_NO_12_thumb.jpg",130,92,15);thumbnails[4356861]=new thumbnail(4356861,"222289","","COLLAGE-FINISHED-NO131_thumb.jpg",130,92,15);thumbnails[4356869]=new thumbnail(4356869,"222289","","COLLAGE-FINISHED-VERSION-NO1_thumb.jpg",130,92,15);thumbnails[4356877]=new thumbnail(4356877,"222289","","COLLAGE-FINISHED1_thumb.jpg",130,92,15);thumbnails[4939174]=new thumbnail(4939174,"222289","","COLLAGE-FINISHED-CLARE_HUDSON_thumb.jpg",130,92,15);thumbnails[4939176]=new thumbnail(4939176,"222289","","COLLAGE-FINISHED-VERSION_thumb.jpg",130,92,15);thumbnails[4999987]=new thumbnail(4999987,"222289","","COLLAGE-FINISHED-NATALIE_CHERRETT_thumb.jpg",130,92,15);thumbnails[5141402]=new thumbnail(5141402,"222289","","COLLAGE-FINISHED-ALICE_INCE1_thumb.jpg",130,92,15);thumbnails[5205453]=new thumbnail(5205453,"222289","","COLLAGE-FINISHED-TILLY_CHUTER_thumb.jpg",130,92,15);thumbnails[3795886]=new thumbnail(3795886,"222289","","COLLAGE_BEFORE_AFTER_NO_1_thumb.jpg",130,92,15);thumbnails[3795903]=new thumbnail(3795903,"222289","","COLLAGAE_BEFORE_AFTER_NO_2_edited-1_thumb.jpg",130,92,15);thumbnails[3795908]=new thumbnail(3795908,"222289","","COLLAGE_BEFORE_AFTER_NO_3_edited-1_thumb.jpg",130,92,15);thumbnails[3795913]=new thumbnail(3795913,"222289","","COLLAGE_BEFORE_AFTER_NO_4_edited-1_thumb.jpg",130,92,15);thumbnails[3795915]=new thumbnail(3795915,"222289","","COLLAGE_FINISHED_VERSION_NO_5_edited-1_thumb.jpg",130,92,15);thumbnails[3795918]=new thumbnail(3795918,"222289","","COLLAGE_FINISHED_VERSION_NO_6_edited-1_thumb.jpg",130,92,15);thumbnails[3795920]=new thumbnail(3795920,"222289","","COLLAGE_FINISHED_VERSION_NO_7_edited-1_thumb.jpg",130,92,15);thumbnails[3795925]=new thumbnail(3795925,"222289","","COLLAGE_FINISHED_VERSION_NO_9_edited-1_thumb.jpg",130,92,15);thumbnails[3795929]=new thumbnail(3795929,"222289","","COLLAGE_FINISHED_VERSION_NO_8_edited-1_thumb.jpg",130,92,15);var galleries=new Object();galleries[222485]=new gallery(222485,"3801062","Your Experience in Photos","gallery",[3801062,3801063,3817413,3801066,3817321,3801070,3817322,3801074,3801076,3801078]);galleries[222290]=new gallery(222290,"3817619","Beautiful Brides","gallery",[4386697,4386700,4386701,4939178,4939180,4939182,5048929,5048930,5048932,5048933,5048943,3817619,3817621,3817622,3817642,3817643,3817644,3817676,3817678,3817681,3817660,3817701,3896372,3896370,3896371,3896409,5048980,5048985,5048988,5048990,5048982]);galleries[222486]=new gallery(222486,"3880256","Makeover & Photo Shoot","gallery",[3880252,3880256,3880259,3880267,3880269,3880270,3880273,3880274,3880282,3880292,3880298,3880308,3880310,3880319,3880323,3880327,3880330,3880335,3880336,3880345,3880350,3880353,3880360,3880363,3880365,3880488,3880489,3880490,3880492,3880495,3880500,3880503,3880506,3880508,3880510,3880889,3880891,3801268,3800970,3801037,3801039,3896748,3801032]);galleries[222289]=new gallery(222289,"3795908","Before & After","gallery",[3841475,3841582,3881246,4060216,4356861,4356869,4356877,4939174,4939176,4999987,5141402,5205453,3795886,3795903,3795908,3795913,3795915,3795918,3795920,3795925,3795929]);var imageSets=new Object();imageSets[1]="3816998";imageSets[2]="3880256,3817619,3801062,3795908";imageSets[3]="5205453,5141402,5048990,5048988,5048985,5048982,5048980,5048943,5048933,5048932,5048930,5048929,4999987,4939182,4939180,4939178,4939176,4939174,4391027,4386701,4386700,4386697,4356877,4356869,4356861,4327250,4326970,4060216,3896748,3896409,3896372,3896371,3896370,3896294,3881246,3880891,3880889,3880510,3880508,3880506,3880503,3880500,3880495,3880492,3880490,3880489,3880488,3880365,3880363,3880360";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/lindafrancis/images";break}switch(a){case 1:b="http://www1.clikpic.com/lindafrancis/images";break}switch(a){case 2:b="http://admin.clikpic.com/lindafrancis/images";break}switch(a){case 24:b="http://tpc15/clikpic/lindafrancis/images";break}switch(a){case 4:b="http://www.clikchurch.com/lindafrancis/images";break}switch(a){case 5:b="http://www2.clikpic.com/lindafrancis/images";break}switch(a){case 22:b="http://tpc5/clikpic/lindafrancis/images";break}switch(a){case 23:b="http://tpc10/clikpic/lindafrancis/images";break}switch(a){case 25:b="http://tpc16/clikpic/lindafrancis/images";break}switch(a){case 15:b="http://www3.clikpic.com/lindafrancis/images";break}switch(a){case 18:b="http://www4.clikpic.com/lindafrancis/images";break}switch(a){case 19:b="http://www5.clikpic.com/lindafrancis/images";break}switch(a){case 31:b="http://www7.clikpic.com/lindafrancis/images";break}switch(a){case 32:b="http://admin2.clikpic.com/lindafrancis/images";break}switch(a){case 33:b="http://www8.clikpic.com/lindafrancis/images";break}switch(a){case 34:b="http://www9.clikpic.com/lindafrancis/images";break}switch(a){case 35:b="http://admin3.clikpic.com/lindafrancis/images";break}switch(a){case 37:b="http://admin4.clikpic.com/lindafrancis/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="Make Up By Linda: "+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>"}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> 							"+(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+'<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+'")'})}}};