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[3830963]=new thumbnail(3830963,"233243",'"Boxer Peacock\'s Place" Swaledale',"web072_thumb.jpg",130,87,15);thumbnails[3830988]=new thumbnail(3830988,"233243","Scots Pine","web080_thumb.jpg",130,87,15);thumbnails[3830995]=new thumbnail(3830995,"233243","cottage","web082_thumb.jpg",130,85,15);thumbnails[3830998]=new thumbnail(3830998,"233243","fern","web083_thumb.jpg",130,86,15);thumbnails[3831003]=new thumbnail(3831003,"233243","Pine forest","web085_thumb.jpg",130,86,15);thumbnails[3831042]=new thumbnail(3831042,"233243","North Yorkshire Moors Railway","web098_thumb.jpg",130,114,15);thumbnails[5491612]=new thumbnail(5491612,"108339","Borrowdale from Manesty Park","10413_DSC7797-lakes4-b_thumb.jpg",130,79,15);thumbnails[5491703]=new thumbnail(5491703,"108339","Boat house at Brandlehow Bay, Derwentwater.","10449_DSC7535-lakes1a_thumb.jpg",130,83,15);thumbnails[5491710]=new thumbnail(5491710,"108339","Skiddaw and Bassenthwaite ","10351_Panorama1-lakes2_thumb.jpg",130,59,15);thumbnails[5491713]=new thumbnail(5491713,"108339","Storm clouds over Derwentwater","10524_DSC8448-lakes9_filtered-b_thumb.jpg",130,72,15);thumbnails[5491717]=new thumbnail(5491717,"108339","Autumn morning, Derwentwater","10369_DSC7421-lakes2-c_thumb.jpg",130,87,15);thumbnails[5491721]=new thumbnail(5491721,"108339","Tree reflections in the River Derwent","10415_DSC7811-lakes4_thumb.jpg",130,87,15);thumbnails[5491723]=new thumbnail(5491723,"108339","Derwentwater from Friar's Crag.","10480raw_DSC8350-lakes7_thumb.jpg",130,80,15);thumbnails[1588847]=new thumbnail(1588847,"108338","Barn and flower meadows near Muker, Swaledale","9063_DSC05654-temp100_thumb.jpg",130,82,15);thumbnails[1588922]=new thumbnail(1588922,"108340","Red Deer Hinds","10318_DSC07192-temp117-crop-Edit_thumb.jpg",130,87,15);thumbnails[1589049]=new thumbnail(1589049,"108338","Cauldron Force","web62_thumb.jpg",130,98,15);thumbnails[3831000]=new thumbnail(3831000,"233243","fungi","web084_thumb.jpg",130,123,15);thumbnails[1588859]=new thumbnail(1588859,"108341","Smelt mill and peat house, Grinton","10176_DSC06563-temp110_thumb.jpg",130,87,15);thumbnails[1588894]=new thumbnail(1588894,"108341","Windegg Mine, Arkengarthdale.","web12_thumb.jpg",130,196,15);thumbnails[1588898]=new thumbnail(1588898,"108341","Cob Scar Chimney, Wensleydale.","web15_thumb.jpg",130,84,15);thumbnails[1588901]=new thumbnail(1588901,"108341","Grinton Smelt Mill flue","web17_thumb.jpg",130,86,15);thumbnails[2052881]=new thumbnail(2052881,"108340","Daffodils","35 (2)_thumb.jpg",130,87,15);thumbnails[3830934]=new thumbnail(3830934,"108338","Maize crop near Middleham","web062_thumb.jpg",130,87,15);thumbnails[1588907]=new thumbnail(1588907,"108341","Grinton Smelt Mill, Swaledale.","web19_thumb.jpg",130,86,15);thumbnails[1795138]=new thumbnail(1795138,"108341","Surrender Mill, Swaledale","1780_thumb.jpg",130,84,15);thumbnails[1795291]=new thumbnail(1795291,"108341","Surrender Mill","1778_thumb.jpg",130,87,15);thumbnails[2052867]=new thumbnail(2052867,"108341","Old Peat House, Surrender Mill. ","4 (2)_thumb.jpg",130,87,15);thumbnails[1589052]=new thumbnail(1589052,"108338","Jervaulx Abbey","web66_thumb.jpg",130,86,15);thumbnails[1795637]=new thumbnail(1795637,"120679","Brimham Rocks, near Ripon","10609_DSC06661_thumb.jpg",130,190,15);thumbnails[2053102]=new thumbnail(2053102,"108341","Powder Store, Langthwaite","5 (2)_thumb.jpg",130,85,15);thumbnails[3831044]=new thumbnail(3831044,"108340","Horse Chestnut","web099_thumb.jpg",130,102,15);thumbnails[3830950]=new thumbnail(3830950,"108338","Hay-time near Aysgarth<br>\r\nWensleydale","web069_thumb.jpg",130,82,15);thumbnails[3830935]=new thumbnail(3830935,"108338","Bridge at Middleham","web063_thumb.jpg",130,87,15);thumbnails[1588960]=new thumbnail(1588960,"108340","Common spotted orchid","web41_thumb.jpg",130,86,15);thumbnails[3830900]=new thumbnail(3830900,"120679","Texel ewe","web060_thumb.jpg",130,87,15);thumbnails[3831035]=new thumbnail(3831035,"108338","East Witton<br>\r\nWensleydale","web096_thumb.jpg",130,87,15);thumbnails[1589053]=new thumbnail(1589053,"108338","Jervaulx Abbey","web67_thumb.jpg",130,86,15);thumbnails[3830940]=new thumbnail(3830940,"108338","Bolton Castle, Wensleydale","web066_thumb.jpg",130,56,15);thumbnails[3830944]=new thumbnail(3830944,"108338",'"That tree" Grinton Moor, Swaledale',"web067_thumb.jpg",130,42,15);thumbnails[1588941]=new thumbnail(1588941,"108340","Velvet shank fungi, Mirfield Nature Reserve.","10629_DSC8612_thumb.jpg",130,91,15);thumbnails[3830947]=new thumbnail(3830947,"108338","Lady Hill<br>\r\nWensleydale","web068_thumb.jpg",130,87,15);thumbnails[3830965]=new thumbnail(3830965,"120679","Loch Tay","web073_thumb.jpg",130,65,15);thumbnails[1589056]=new thumbnail(1589056,"108338","Wensleydale","web70_thumb.jpg",130,86,15);thumbnails[3830951]=new thumbnail(3830951,"120679","Decaying tree","web070_thumb.jpg",130,87,15);thumbnails[3831024]=new thumbnail(3831024,"108340","Tulip","web093_thumb.jpg",130,195,15);thumbnails[3830936]=new thumbnail(3830936,"108338","Masham Steam Fair","web064_thumb.jpg",130,87,15);thumbnails[3830938]=new thumbnail(3830938,"108340","Hover Fly on Hoary Plantain","web065_thumb.jpg",130,178,15);thumbnails[1588943]=new thumbnail(1588943,"108340","Honey Fungus","web32_thumb.jpg",130,163,15);thumbnails[1588946]=new thumbnail(1588946,"108340","Shaggy pholiota","web34_thumb.jpg",130,184,15);thumbnails[1795036]=new thumbnail(1795036,"108338","Abandoned Farm, Arkengarthdale","1797_thumb.jpg",130,87,15);thumbnails[1588925]=new thumbnail(1588925,"108340","Yew berry","web26_thumb.jpg",130,183,15);thumbnails[1795084]=new thumbnail(1795084,"108338","Swaledale from Whitaside","10156raw_DSC06526-temp109_thumb.jpg",130,87,15);thumbnails[1795623]=new thumbnail(1795623,"120679","Shadows","000200hpf_thumb.jpg",130,128,15);thumbnails[1588911]=new thumbnail(1588911,"108340","Robin","10386_DSC7652-lakes3_thumb.jpg",130,106,15);thumbnails[2053050]=new thumbnail(2053050,"108338","Burtersett","17 (2)_thumb.jpg",130,87,15);thumbnails[1794910]=new thumbnail(1794910,"108340","Larch in flower","web40_thumb.jpg",130,105,15);thumbnails[1795457]=new thumbnail(1795457,"120679","Loch Pityoulish","4_thumb.jpg",130,68,15);thumbnails[2052896]=new thumbnail(2052896,"108338","Bellerby","22 (2)_thumb.jpg",130,87,15);thumbnails[3830981]=new thumbnail(3830981,"120679","Loch Tay","web077_thumb.jpg",130,86,15);thumbnails[2053139]=new thumbnail(2053139,"108340","Early morning mist, Derwentwater","10342_DSC8015-lakes6_thumb.jpg",130,109,15);thumbnails[3831011]=new thumbnail(3831011,"108338","Tan Hill Inn<br>\r\nSwaledale","web088_thumb.jpg",130,86,15);thumbnails[1795627]=new thumbnail(1795627,"120679","Surrender Mill","1780 B&W_thumb.jpg",130,84,15);thumbnails[3831017]=new thumbnail(3831017,"108338","Near Hardraw<br>\r\nWensleydale","web090_thumb.jpg",130,51,15);thumbnails[3831028]=new thumbnail(3831028,"108340","Reflections","10276raw_DSC07097-temp116-b-b_thumb.jpg",130,103,15);thumbnails[1588953]=new thumbnail(1588953,"108340","Meadow Cranesbill","10058-s_DSC05867-temp102_thumb.jpg",130,130,15);thumbnails[3830975]=new thumbnail(3830975,"108338","Winter morning near Bellerby","web075_thumb.jpg",130,87,15);thumbnails[1795630]=new thumbnail(1795630,"120679","Redmire Chimney","Redmire Chimney again s_thumb.jpg",130,87,15);thumbnails[3830906]=new thumbnail(3830906,"108340","Foxglove","web061_thumb.jpg",130,108,15);thumbnails[1588967]=new thumbnail(1588967,"108340","Thisle","web44_thumb.jpg",130,94,15);thumbnails[3831013]=new thumbnail(3831013,"108338","Lady Hill<br>\r\nWensleydale","web089_thumb.jpg",130,87,15);thumbnails[1588949]=new thumbnail(1588949,"108340","Mute Swan","10283raw_DSC07112-temp117-Edit_thumb.jpg",130,87,15);thumbnails[3831022]=new thumbnail(3831022,"108338","Flower meadows at Muker, Swaledale","9067_DSC05664-temp100_thumb.jpg",130,87,15);thumbnails[1588956]=new thumbnail(1588956,"108340","Reindeer","web39_thumb.jpg",130,95,15);thumbnails[2053080]=new thumbnail(2053080,"108338","Gunnerside","42 (2)_thumb.jpg",130,87,15);thumbnails[2053070]=new thumbnail(2053070,"108338","Winter farming in Swaledale","51 (2)_thumb.jpg",130,85,15);thumbnails[3831031]=new thumbnail(3831031,"108340","Hazel bough in spring","7057_DSC5090-temp93_thumb.jpg",130,93,15);thumbnails[3831008]=new thumbnail(3831008,"108338","Sleddale, a side-dale off Wensleydale.","10140_DSC06468-temp109_thumb.jpg",130,87,15);thumbnails[1795311]=new thumbnail(1795311,"108341","Peat Store, Old Gang Mines.","1772_thumb.jpg",130,87,15);thumbnails[3831019]=new thumbnail(3831019,"108338","Grinton Smelt Mill<br>\r\nSwaledale","web091_thumb.jpg",130,195,15);thumbnails[3831038]=new thumbnail(3831038,"108338","Helmsley","web097_thumb.jpg",130,195,15);thumbnails[3831047]=new thumbnail(3831047,"108338","Footpath sign near Nunnington","web100_thumb.jpg",130,195,15);thumbnails[1588972]=new thumbnail(1588972,"108088","Loch an Eilein","web45_thumb.jpg",130,183,15);thumbnails[1588979]=new thumbnail(1588979,"108088","Loch Morlich","web46_thumb.jpg",130,71,15);thumbnails[1589006]=new thumbnail(1589006,"108088","Loch Insh","web54_thumb.jpg",130,77,15);thumbnails[1588981]=new thumbnail(1588981,"108088","Loch Morlich","web48_thumb.jpg",130,67,15);thumbnails[1588995]=new thumbnail(1588995,"108088","Loch Mallachie","web51_thumb.jpg",130,188,15);thumbnails[1588990]=new thumbnail(1588990,"108088","Loch Garten","web50_thumb.jpg",130,86,15);thumbnails[1588986]=new thumbnail(1588986,"108088","Loch Morlich","web49_thumb.jpg",130,46,15);thumbnails[1589004]=new thumbnail(1589004,"108088","Loch Morlich","web52_thumb.jpg",130,54,15);thumbnails[1589015]=new thumbnail(1589015,"108088","Pine Forest","web56_thumb.jpg",130,64,15);thumbnails[1589012]=new thumbnail(1589012,"108088","Loch an Eilein","web55_thumb.jpg",130,85,15);thumbnails[1589033]=new thumbnail(1589033,"108088","Loch Pityoulish.","web58_thumb.jpg",130,69,15);thumbnails[1794906]=new thumbnail(1794906,"108088","Castle, Loch an Eilein","web57_thumb.jpg",130,65,15);thumbnails[3830991]=new thumbnail(3830991,"108088","Sunrise at Loch Morlich","web081_thumb.jpg",130,50,15);thumbnails[3830978]=new thumbnail(3830978,"108088","Loch Tay","web076_thumb.jpg",130,86,15);thumbnails[3830983]=new thumbnail(3830983,"108088","Morning paddle at Kenmore","web078_thumb.jpg",130,88,15);thumbnails[3830986]=new thumbnail(3830986,"108088","Kenmore from Drummond Hill","web079_thumb.jpg",130,87,15);thumbnails[3830969]=new thumbnail(3830969,"108088","Highland stream above Glen Lyon","web074_thumb.jpg",130,87,15);thumbnails[3830960]=new thumbnail(3830960,"108088","The Bridge at Aberfeldy<br>\r\nTayside","web071_thumb.jpg",130,87,15);thumbnails[3831006]=new thumbnail(3831006,"108088","Scots Pine","web086_thumb.jpg",130,125,15);var galleries=new Object();galleries[233243]=new gallery(233243,"3831042,3831003,3831000,3830998,3830995,3830988,3830963","Impressions","gallery",[3830963,3830988,3830995,3830998,3831003,3831042,3831000]);galleries[108339]=new gallery(108339,"5491723,5491721,5491717,5491713,5491710,5491703,5491612","Lake District","gallery",[5491612,5491703,5491710,5491713,5491717,5491721,5491723]);galleries[108341]=new gallery(108341,"1588859","Lead Mining","gallery",[1588859,1588894,1588898,1588901,1588907,1795138,1795291,2052867,2053102,1795311]);galleries[120679]=new gallery(120679,"1795623","Mono","gallery",[1795637,3830900,3830965,3830951,1795623,1795457,3830981,1795627,1795630]);galleries[108340]=new gallery(108340,"1794910","Nature","gallery",[1588922,2052881,3831044,1588960,1588941,3831024,3830938,1588943,1588946,1588925,1588911,1794910,2053139,3831028,1588953,3830906,1588967,1588949,1588956,3831031]);galleries[108338]=new gallery(108338,"1589056","Yorkshire","gallery",[1588847,1589049,3830934,1589052,3830950,3830935,3831035,1589053,3830940,3830944,3830947,1589056,3830936,1795036,1795084,2053050,2052896,3831011,3831017,3830975,3831013,3831022,2053080,2053070,3831008,3831019,3831038,3831047]);galleries[108088]=new gallery(108088,"1589033","Scotland","gallery",[1588972,1588979,1589006,1588981,1588995,1588990,1588986,1589004,1589015,1589012,1589033,1794906,3830991,3830978,3830983,3830986,3830969,3830960,3831006]);var imageSets=new Object();imageSets[1]="2053139,2052896,2052881,1795138,1794906,1589052";imageSets[2]="1795623,1794910,1589056,1589033,1588859";imageSets[3]="5491723,5491721,5491717,5491713,5491710,5491703,5491612,3831047,3831044,3831042,3831038,3831035,3831031,3831028,3831024,3831022,3831019,3831017,3831013,3831011,3831008,3831006,3831003,3831000,3830998,3830995,3830991,3830988,3830986,3830983,3830981,3830978,3830975,3830969,3830965,3830963,3830960,3830951,3830950,3830947,3830944,3830940,3830938,3830936,3830935,3830934,3830906,3830900,2053139,2053102";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/christinemwhitehead/images";break}switch(a){case 1:b="http://www1.clikpic.com/christinemwhitehead/images";break}switch(a){case 2:b="http://admin.clikpic.com/christinemwhitehead/images";break}switch(a){case 24:b="http://tpc15/clikpic/christinemwhitehead/images";break}switch(a){case 4:b="http://www.clikchurch.com/christinemwhitehead/images";break}switch(a){case 5:b="http://www2.clikpic.com/christinemwhitehead/images";break}switch(a){case 22:b="http://tpc5/clikpic/christinemwhitehead/images";break}switch(a){case 23:b="http://tpc10/clikpic/christinemwhitehead/images";break}switch(a){case 25:b="http://tpc16/clikpic/christinemwhitehead/images";break}switch(a){case 15:b="http://www3.clikpic.com/christinemwhitehead/images";break}switch(a){case 18:b="http://www4.clikpic.com/christinemwhitehead/images";break}switch(a){case 19:b="http://www5.clikpic.com/christinemwhitehead/images";break}switch(a){case 31:b="http://www7.clikpic.com/christinemwhitehead/images";break}switch(a){case 32:b="http://admin2.clikpic.com/christinemwhitehead/images";break}switch(a){case 33:b="http://www8.clikpic.com/christinemwhitehead/images";break}switch(a){case 34:b="http://www9.clikpic.com/christinemwhitehead/images";break}switch(a){case 35:b="http://admin3.clikpic.com/christinemwhitehead/images";break}switch(a){case 37:b="http://admin4.clikpic.com/christinemwhitehead/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="'+escape(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="Christine Whitehead Photography: "+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(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+'")'})}}};