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[1988336]=new thumbnail(1988336,"133506","Spanish Re-fit","espic_s1_thumb.jpg",130,98,32);thumbnails[1988369]=new thumbnail(1988369,"133506","Bottom Paint Corsica","espic_s (1)1_thumb.jpg",130,98,32);thumbnails[1988582]=new thumbnail(1988582,"133506","Almeria Bullfight","espic_s (2)_thumb.jpg",130,98,32);thumbnails[1988584]=new thumbnail(1988584,"133506","Sick Crew","espic_s (3)_thumb.jpg",130,98,32);thumbnails[1988585]=new thumbnail(1988585,"133506","Sick Crew 2","espic_s (4)_thumb.jpg",130,98,32);thumbnails[1988586]=new thumbnail(1988586,"133506","Sick Crew 3","espic_s (5)1_thumb.jpg",130,98,32);thumbnails[1988588]=new thumbnail(1988588,"133506","Antibes 2001.","espic_s (8)1_thumb.jpg",130,98,32);thumbnails[1988590]=new thumbnail(1988590,"133506","Cruising Corsica","espic_s (10)_thumb.jpg",98,130,32);thumbnails[1988611]=new thumbnail(1988611,"133506","Calvi Cooler","espic_s (6)1_thumb.jpg",130,98,32);thumbnails[1988628]=new thumbnail(1988628,"133506","Cooling off Aguadulce","espic_s (11)_thumb.jpg",130,98,32);thumbnails[1988719]=new thumbnail(1988719,"133506","Bullfight 2","espic_s (9)1_thumb.jpg",130,98,32);thumbnails[1988965]=new thumbnail(1988965,"133506","Margaret on Watch","espic_s (13)_thumb.jpg",98,130,32);thumbnails[1988971]=new thumbnail(1988971,"133506","Fuentes Capitania Spain","espic_s (14)_thumb.jpg",130,98,32);thumbnails[1988975]=new thumbnail(1988975,"133506","Gibraltar from the West.","espic_s (15)_thumb.jpg",98,130,32);thumbnails[1988979]=new thumbnail(1988979,"133506","Margaret Ready For The Storm","espic_s (16)_thumb.jpg",130,98,32);thumbnails[1988980]=new thumbnail(1988980,"133506","Margaret at the helm Benidorm 2002.","espic_s (18)_thumb.jpg",98,130,32);thumbnails[1988981]=new thumbnail(1988981,"133506","Massive Mateus Portimao 2004","espic_s (19)_thumb.jpg",130,98,32);thumbnails[1988987]=new thumbnail(1988987,"133506","Survey Calvi Corsica 2001","espic_s (21)_thumb.jpg",130,98,32);thumbnails[1988988]=new thumbnail(1988988,"133506","Fishing Boat off Cartegena Spain 2003","espic_s (22)_thumb.jpg",130,97,32);thumbnails[1988991]=new thumbnail(1988991,"133506","Off Malaga 2003","espic_s (23)_thumb.jpg",130,98,32);thumbnails[1988992]=new thumbnail(1988992,"133506","My Motley Crew Portimao 2004","espic_s (24)_thumb.jpg",130,98,32);thumbnails[1988995]=new thumbnail(1988995,"133506","I'd do anything to sell this boat","espic_s (25)_thumb.jpg",130,98,32);thumbnails[1989011]=new thumbnail(1989011,"133506","Check in Vilamora Portugal 2003","espic_s (26)_thumb.jpg",130,98,32);thumbnails[2008243]=new thumbnail(2008243,"133506","Vintage Sailing Ship<br>\r\nMonte Carlo 2001.","Aft LLSM1_thumb.JPG",130,98,32);thumbnails[2008248]=new thumbnail(2008248,"133506","New Outfit<br>\r\nCalvi Corsica<br>\r\n2001.","M Sarong_thumb.JPG",98,130,32);thumbnails[2008254]=new thumbnail(2008254,"133506","Calvi Harbour<br>\r\nCorsica 2007","calvi cruise ship_thumb.JPG",130,98,32);thumbnails[2008264]=new thumbnail(2008264,"133506","Calvi Citadel &Cruise ShipCorsica 2001","Citadel_thumb.JPG",130,98,32);thumbnails[2008270]=new thumbnail(2008270,"133506","Port Grimaud2007.","e m pg 3_thumb.jpg",130,98,32);thumbnails[2008285]=new thumbnail(2008285,"133506","Cassis South of France2001.","Cass Anchor_thumb.jpg",130,86,32);thumbnails[2008294]=new thumbnail(2008294,"133506","Aborted Lift OutSt Tropez 2002","Crane in ST_thumb.JPG",130,97,32);thumbnails[2008325]=new thumbnail(2008325,"133506","Almost a DisasterSt Cyprian France2002","Frayed Flag_thumb.JPG",130,98,32);thumbnails[2010809]=new thumbnail(2010809,"133506","Rambla BandBarcelona 2002","Rambla Band_thumb.JPG",130,98,32);thumbnails[2010810]=new thumbnail(2010810,"133506","BlanesCosta Brava 2002","Blanes Ent_thumb.JPG",130,98,32);thumbnails[2010811]=new thumbnail(2010811,"133506","After the stormSt Cyprian France2002","Drying Day_thumb.JPG",130,98,32);thumbnails[2010813]=new thumbnail(2010813,"133506","First Run ofNew EngineToulon 2002","Champagne Celebration1_thumb.jpg",130,98,32);thumbnails[2010814]=new thumbnail(2010814,"133506","Last of the Oily Monster.Toulon 2002","On it's way_thumb.JPG",130,98,32);thumbnails[2010815]=new thumbnail(2010815,"133506","New engine finallyarrives. Toulon2001","Ready for installation_thumb.JPG",130,98,32);thumbnails[2010816]=new thumbnail(2010816,"133506","Picador ParadeAlmeria 2003","bf4_thumb.JPG",130,98,32);thumbnails[2010817]=new thumbnail(2010817,"133506","Moment of TruthAlmeria 2003","bf30_thumb.JPG",130,98,32);thumbnails[2010819]=new thumbnail(2010819,"133506","Bulk CarrierGarrucha Spain2002","Bulk Carrier Lvg 2_thumb.JPG",130,98,32);thumbnails[2010820]=new thumbnail(2010820,"133506","Calpe Spain2002.","Calpe Close_thumb.JPG",130,98,32);thumbnails[2010821]=new thumbnail(2010821,"133506","Friends from CorsicaPortimao Portugal 2004","Down Under_thumb.JPG",130,98,32);thumbnails[2011251]=new thumbnail(2011251,"133506","Church in Portimao.Portugal 2004.","Portimao church1_thumb.JPG",98,130,32);thumbnails[2011257]=new thumbnail(2011257,"133506","New conservatoryCockpit CoverAguadulce Spain2004.","NC 2_thumb.JPG",130,98,32);thumbnails[2011266]=new thumbnail(2011266,"133506","3 men in a boat.Valencia Spain2003","Valencia 3 men in a boat_thumb.JPG",130,98,32);thumbnails[2011485]=new thumbnail(2011485,"133506","Bulk CarrierGarrucha Spain2003","Garrucha Bulk Carrier_thumb.JPG",98,130,32);thumbnails[2011487]=new thumbnail(2011487,"133506","Vilamora Sunset.Portugal 2003.","Vilamoura Sunset And Throbber_thumb.JPG",130,98,32);thumbnails[2055866]=new thumbnail(2055866,"137391","Ullswater from Kirkstone Pass","m_lakes trip0041_1_thumb.JPG",130,87,32);thumbnails[2055880]=new thumbnail(2055880,"137391","Kirkstone Mist.","m_lakes trip0050_thumb.JPG",130,87,32);thumbnails[2158470]=new thumbnail(2158470,"137391","Fountains Abbey Undercroft.","f311_thumb.jpg",130,98,32);thumbnails[5359297]=new thumbnail(5359297,"137391","Publicity Picture For the New Charity DVD","DVD_add_thumb.jpg",128,130,32);thumbnails[5135324]=new thumbnail(5135324,"137391","Shildon Railway Museum","nwp1_thumb.jpg",130,104,32);thumbnails[1989050]=new thumbnail(1989050,"133505","Ayesgarth Falls 2007","espic_d (6)_thumb.jpg",130,87,32);thumbnails[2002455]=new thumbnail(2002455,"133506","Margaret & Eric Cassis","espic_s (17)3_thumb.jpg",130,98,32);thumbnails[2055827]=new thumbnail(2055827,"137391","Maryport House","lakes trip0015_1_thumb.JPG",130,87,32);thumbnails[2158468]=new thumbnail(2158468,"137391","Abbey from the South","f35_thumb.jpg",130,98,32);thumbnails[2158488]=new thumbnail(2158488,"137391","Fountains Abbey from the East.","f65_thumb.jpg",130,98,32);thumbnails[2182130]=new thumbnail(2182130,"133505","Young Ice Cream Maker.","m_Young Icecream Maker_thumb..jpg",130,87,32);thumbnails[2182156]=new thumbnail(2182156,"133505","Brymoor Calf","m_Brymoor Calf_thumb..jpg",130,103,32);thumbnails[2325103]=new thumbnail(2325103,"133505","Thorp Perrow vista.","m_arb1_thumb.jpg",130,78,32);thumbnails[2407243]=new thumbnail(2407243,"137391","Central Arcade Newcastle U Tyne.","m_central arcade_thumb.jpg",130,94,32);thumbnails[2407249]=new thumbnail(2407249,"137391","Happy Busker Newcastle U Tyne","m_happy busker 2 copy_thumb.jpg",106,130,32);thumbnails[2407256]=new thumbnail(2407256,"137391","Old Tyne Bridge.","m_Tyne Bridge copy_thumb.jpg",130,113,32);thumbnails[5135331]=new thumbnail(5135331,"133505","Leyburn Coffee Shop","nwp2_thumb.jpg",130,98,32);thumbnails[1987075]=new thumbnail(1987075,"133505","Middleham 2007 ","espic_d (20)2_thumb.jpg",130,106,32);thumbnails[1989053]=new thumbnail(1989053,"133505","Ere the winter storms begin. Below Finghall Wensleydale 2007","espic_d (7)_thumb.jpg",130,100,32);thumbnails[2055845]=new thumbnail(2055845,"137391","Twin Gulls","m_twin gulls_thumb.jpg",130,102,32);thumbnails[2325201]=new thumbnail(2325201,"133505","Hawkeye (Thorp Perrow)","m_arb23_thumb.jpg",130,102,32);thumbnails[5135342]=new thumbnail(5135342,"133505","Tally Ho<br>\r\nLeyburn Agricultural Show","nwp3_thumb.jpg",130,87,32);thumbnails[1989069]=new thumbnail(1989069,"133505","Symbol of Wensleydale 2007","espic_d (10)_thumb.jpg",130,79,32);thumbnails[2055851]=new thumbnail(2055851,"137391","Maryport Harbour","m_lakes trip0018_1_thumb.JPG",130,87,32);thumbnails[1989117]=new thumbnail(1989117,"133505","The Gallops<br>\r\nBelow Finghall 2007","espic_d (11)_thumb.jpg",130,94,32);thumbnails[5135358]=new thumbnail(5135358,"137391","Hairy Biker Si","nwp4_thumb.jpg",130,98,32);thumbnails[1989062]=new thumbnail(1989062,"133505","Down Shep <br>\r\nButter Tubs near Hawes 2007","espic_d (8)_thumb.jpg",130,89,32);thumbnails[5135369]=new thumbnail(5135369,"133505","U.F.O.","nwp5_thumb.jpg",130,98,32);thumbnails[5135425]=new thumbnail(5135425,"137391","Hairy Biker Dave","nwp6_thumb.jpg",130,87,32);thumbnails[1989122]=new thumbnail(1989122,"133505","Hardraw Force<br>\r\nNear Hawes 2007","espic_d (13)_thumb.jpg",87,130,32);thumbnails[2055879]=new thumbnail(2055879,"137391","Maryport Puffer!","m_lakes trip0013_1_thumb.JPG",130,87,32);thumbnails[5135439]=new thumbnail(5135439,"133505","Tally Ho 2","nwp7_thumb.jpg",130,87,32);thumbnails[5135455]=new thumbnail(5135455,"137391","Young at heart","nwp8_thumb.jpg",86,130,32);thumbnails[1989310]=new thumbnail(1989310,"133505","3.15 from Constable Burton<br>\r\n2007","espic_d (39)_thumb.jpg",130,102,32);thumbnails[5135486]=new thumbnail(5135486,"133505","Shawl Photographer","nwp9_thumb.jpg",130,87,32);thumbnails[1988723]=new thumbnail(1988723,"133506","Ferry Wash Cassis","espic_s (12)_thumb.jpg",130,98,32);thumbnails[1988984]=new thumbnail(1988984,"133506","Magic Moods Portimao Marina 2004","espic_s (20)_thumb.jpg",130,98,32);thumbnails[5135500]=new thumbnail(5135500,"133505","Anguish","nwp10_thumb.jpg",117,130,32);thumbnails[2008230]=new thumbnail(2008230,"133506","Christmas Day. Marines de Cogolin. St Tropez Bay. 2001.","Xmas2001 Ready to tuck in_thumb.JPG",130,98,32);thumbnails[2011491]=new thumbnail(2011491,"133506","For Sale<br>\r\nMarina de Portima<br>\r\nPortugal 2004.","Portimao yard_thumb.jpg",130,98,32);var galleries=new Object();galleries[133505]=new gallery(133505,"2325103","Dales Pictures","section172851",[1989050,2182130,2182156,2325103,5135331,1987075,1989053,2325201,5135342,1989069,1989117,1989062,5135369,1989122,5135439,1989310,5135486,5135500]);galleries[137391]=new gallery(137391,"5359297,5135455,5135425,5135358,5135324,2407256,2407249,2407243,2158488,2158470","Miscellaneous","section177717",[2055866,2055880,2158470,5359297,5135324,2055827,2158468,2158488,2407243,2407249,2407256,2055845,2055851,5135358,5135425,2055879,5135455]);galleries[133506]=new gallery(133506,"2011491,2011487,2011485,2011266,2011257,2011251,2010821,2010820,2010819,2010817","Sailing Picture Gallery","section172990",[1988336,1988369,1988582,1988584,1988585,1988586,1988588,1988590,1988611,1988628,1988719,1988965,1988971,1988975,1988979,1988980,1988981,1988987,1988988,1988991,1988992,1988995,1989011,2008243,2008248,2008254,2008264,2008270,2008285,2008294,2008325,2010809,2010810,2010811,2010813,2010814,2010815,2010816,2010817,2010819,2010820,2010821,2011251,2011257,2011266,2011485,2011487,2002455,1988723,1988984,2008230,2011491]);var imageSets=new Object();imageSets[1]="2407243,2325201,2325103,2182156,2182130,2158468,2055845,2055827,2008270,2002455,1989310,1988723,1987075";imageSets[2]="2325103";imageSets[3]="2158470,2055880,2055866,2011487,2011485,2011266,2011257,2011251,2010821,2010820,2010819,2010817,2010816,2010815,2010814,2010813,2010811";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/yachtsman1/images";break}switch(a){case 1:b="http://www1.clikpic.com/yachtsman1/images";break}switch(a){case 2:b="http://admin.clikpic.com/yachtsman1/images";break}switch(a){case 24:b="http://tpc15/clikpic/yachtsman1/images";break}switch(a){case 4:b="http://www.clikchurch.com/yachtsman1/images";break}switch(a){case 5:b="http://www2.clikpic.com/yachtsman1/images";break}switch(a){case 22:b="http://tpc5/clikpic/yachtsman1/images";break}switch(a){case 23:b="http://tpc10/clikpic/yachtsman1/images";break}switch(a){case 25:b="http://tpc16/clikpic/yachtsman1/images";break}switch(a){case 15:b="http://www3.clikpic.com/yachtsman1/images";break}switch(a){case 18:b="http://www4.clikpic.com/yachtsman1/images";break}switch(a){case 19:b="http://www5.clikpic.com/yachtsman1/images";break}switch(a){case 31:b="http://www7.clikpic.com/yachtsman1/images";break}switch(a){case 32:b="http://admin2.clikpic.com/yachtsman1/images";break}switch(a){case 33:b="http://www8.clikpic.com/yachtsman1/images";break}switch(a){case 34:b="http://www9.clikpic.com/yachtsman1/images";break}switch(a){case 35:b="http://admin3.clikpic.com/yachtsman1/images";break}switch(a){case 37:b="http://admin4.clikpic.com/yachtsman1/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("section172990"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section172990.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("section172990"!=""){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="ESPIC DIGITAL MEDIA: "+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 these items on line.</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 these items on line.</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="YACHTSMAN1">';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(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+'")'})}}};