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[1008652]=new thumbnail(1008652,"74874","Well taken, Keeper","WGI_3623JPG_thumb.jpg",130,99,18);thumbnails[1014028]=new thumbnail(1014028,"74874","Who wants to become a Goalkeeper?","NH0083-copyJPG_thumb.jpg",130,89,18);thumbnails[1014038]=new thumbnail(1014038,"74874","Andy Hall for Bridport","NH0084JPG_thumb.jpg",130,133,18);thumbnails[1008643]=new thumbnail(1008643,"74874","Watch out Nureyev!","NH0067_thumb.jpg",130,131,18);thumbnails[1014060]=new thumbnail(1014060,"74874","Kick-off","WGI_3107JPG_thumb.jpg",130,98,18);thumbnails[1014070]=new thumbnail(1014070,"74874","mud, glorious mud","NH0057JPG_thumb.jpg",130,102,18);thumbnails[1014087]=new thumbnail(1014087,"74874","Gooooaaalllll!!!","NH0022JPG_thumb.jpg",130,103,18);thumbnails[1014105]=new thumbnail(1014105,"74874","Bridport score four!","WGI_2176_forth_goalJPG_thumb.jpg",130,75,18);thumbnails[1014108]=new thumbnail(1014108,"74874","Ryan Hayter for Bridport","WGI_1793_Ryan_HayterJPG_thumb.jpg",130,166,18);thumbnails[999364]=new thumbnail(999364,"74871","Beaminster v Sturminster","WGI_2101JPG_thumb.jpg",130,121,18);thumbnails[999365]=new thumbnail(999365,"74871","She's behind you!","WGI_2340_BloxhamJPG_thumb.jpg",130,147,18);thumbnails[999373]=new thumbnail(999373,"74871","Claire Broom takes a bow","WGI_2352_BroomJPG_thumb.jpg",130,95,18);thumbnails[3048016]=new thumbnail(3048016,"187554","Alike Cooper live, November 08","Al_WG3_1526jpg_thumb.jpg",130,196,18);thumbnails[999359]=new thumbnail(999359,"74870","<em>Puuusshhhh!</em>","NH0056JPG_thumb.jpg",130,124,18);thumbnails[997828]=new thumbnail(997828,"74875","A stormy Charmouth Beach, looking east towards Golden Cap","WGI4506_Beach_thumb.jpg",130,196,18);thumbnails[3048022]=new thumbnail(3048022,"187554","Alike Cooper in concert in Charmouth, November 08","Al_WG3_1538jpg_thumb.jpg",130,196,18);thumbnails[1014076]=new thumbnail(1014076,"74874","jumping to avoid the mud!","WGI_3135JPG_thumb.jpg",130,197,18);thumbnails[3048024]=new thumbnail(3048024,"187554","\"She's cold, in bed, well she ought to be, 'cause Ethyls dead!\"","Al_WG3_1602jpg_thumb.jpg",130,196,18);thumbnails[1014095]=new thumbnail(1014095,"74874","Do you get views like this at Stamford Bridge?","NH0012JPG_thumb.jpg",130,186,18);thumbnails[997863]=new thumbnail(997863,"74875","One of the few frosty mornings, December 2006, on the fields above Charmouth Beach","WGI4509_signpostJPG_thumb.jpg",130,194,18);thumbnails[999345]=new thumbnail(999345,"74870","Chris Backhouse is tackled","WGI_1841_Chris_BackhouseJPG_thumb.jpg",130,159,18);thumbnails[999341]=new thumbnail(999341,"74870","A penny for your thoughts...","NH0065-copyJPG_thumb.jpg",130,86,18);thumbnails[3048026]=new thumbnail(3048026,"187554","Martin Cornish as Alice emerges through the smoke from the executioners chair","Al_WG3_1757jpg_thumb.jpg",130,196,18);thumbnails[3048027]=new thumbnail(3048027,"187554","Martin Cornish as Alice waves the flag during the show's finale","Al_WG3_1826jpg_thumb.jpg",130,196,18);thumbnails[1584242]=new thumbnail(1584242,"74870","","WGI_4793_ed_thumb.jpg",130,163,18);thumbnails[997883]=new thumbnail(997883,"74875","(Oil) Drum washed up on Charmouth Beach, along with alot of foam","WGI4503_CanJPG_thumb.jpg",130,196,18);thumbnails[1584225]=new thumbnail(1584225,"74870","Jason Kidd in action","WGI_4786_ed_thumb.jpg",130,104,18);thumbnails[1584178]=new thumbnail(1584178,"74870","Shaun where he likes to be, in the middle of things!","WGI_4761_ed_thumb.jpg",130,104,18);thumbnails[3048028]=new thumbnail(3048028,"187554","Alike Cooper come back for an encore","Al_WG3_1884jpg_thumb.jpg",130,86,18);thumbnails[1584252]=new thumbnail(1584252,"74870","","WGI_5075ed_thumb.jpg",130,163,18);thumbnails[997922]=new thumbnail(997922,"74875","Pebbles on Charmouth beach at the mouth of the River Char","WGI4511_PebbleJPG_thumb.jpg",130,87,18);thumbnails[1584262]=new thumbnail(1584262,"74870","","WGI_5077ed_thumb.jpg",130,163,18);thumbnails[1584276]=new thumbnail(1584276,"74870","","WGI_5100ed_thumb.jpg",130,104,18);thumbnails[1584285]=new thumbnail(1584285,"74870","","WGI_5108ed_thumb.jpg",130,104,18);thumbnails[1584286]=new thumbnail(1584286,"74870","","WGI_5117ed_thumb.jpg",130,104,18);thumbnails[3048032]=new thumbnail(3048032,"187554","Alike Cooper Bass player, John Buckett opens the Halloween gig in disgiuse","Bs_WG3_1520jpg_thumb.jpg",130,196,18);thumbnails[1584293]=new thumbnail(1584293,"74870","","WGI_5144ed_thumb.jpg",130,104,18);thumbnails[997897]=new thumbnail(997897,"74875","A windy morning at Charmouth Beach","WGI4501_wave-copyJPG_thumb.jpg",130,87,18);thumbnails[1584298]=new thumbnail(1584298,"74870","","WGI_5162ed_thumb.jpg",130,163,18);thumbnails[1584301]=new thumbnail(1584301,"74870","","WGI_5179ed_thumb.jpg",130,104,18);thumbnails[1584306]=new thumbnail(1584306,"74870","","WGI_5194ed_thumb.jpg",130,104,18);thumbnails[3048049]=new thumbnail(3048049,"187554","Alike Cooper Bass player, John Buckett","Bs_WG3_1769jpg_thumb.jpg",130,196,18);thumbnails[1584317]=new thumbnail(1584317,"74870","Is that Boris Becker about to eat the pitch?","WGI_5203ed_thumb.jpg",130,163,18);thumbnails[3048057]=new thumbnail(3048057,"187554","Alike Cooper guitarist Athos Kyriakides","Ld_WG3_1634jpg_thumb.jpg",130,196,18);thumbnails[3048065]=new thumbnail(3048065,"187554",'"No-one will notice if I Quickly re-tune in all this smoke..." Athos Kyriakides',"Ld_WG3_1756jpg_thumb.jpg",130,196,18);thumbnails[3048095]=new thumbnail(3048095,"187554",'Alice doesn\'t want to play pass the head with Louise, his "Nurse"',"Ns_WG3_1662jpg_thumb.jpg",130,196,18);thumbnails[3048100]=new thumbnail(3048100,"187554","It won't hurt a bit - honest...<br>\r\nLouse takes on the role of Alice's Nurse","Ns_WG3_1755jpg_thumb.jpg",130,196,18);thumbnails[36108]=new thumbnail(36108,"3826","Blue canoes","CP_canoes_thumb.jpg",130,191,18);thumbnails[36111]=new thumbnail(36111,"3826","floating leaf","CP_floatleaf_thumb.jpg",130,191,18);thumbnails[36200]=new thumbnail(36200,"3826","wind-surf sails","CP_wsurf_thumb.jpg",130,191,18);thumbnails[39303]=new thumbnail(39303,"3826","Ramp","concrete_path_thumb.jpg",130,88,18);thumbnails[40039]=new thumbnail(40039,"3826","lamp, Paris","z_paris_lamp_thumb.jpg",130,103,18);thumbnails[1013966]=new thumbnail(1013966,"3825","Natasha waits for dinner to be served","Nasha renovations_Oct06JPG_thumb.jpg",130,94,18);thumbnails[1013974]=new thumbnail(1013974,"3825","Happy 5th birthday, Vics","dress_thumb.twirlJPG.jpg",130,173,18);thumbnails[1013980]=new thumbnail(1013980,"3825","Gypsy Girl?","Vic_220706-copyJPG_thumb.jpg",130,179,18);thumbnails[1014006]=new thumbnail(1014006,"3825",'My "Pink" phase',"GVN_June05JPG_thumb.jpg",130,130,18);thumbnails[1013985]=new thumbnail(1013985,"3825",'"What are you doing?"',"Nasha_Feb06JPG_thumb.jpg",130,173,18);thumbnails[1013994]=new thumbnail(1013994,"3825","All I want for Christmas...","Georgina_Feb06JPG_thumb.jpg",130,98,18);thumbnails[122929]=new thumbnail(122929,"3825","Trying to get the girls to help out at Christmas is not always the best idea...","dec05_4171_xmasgirls_thumb.jpg",130,87,18);thumbnails[1014009]=new thumbnail(1014009,"3825","Ever feel someone has made a fool of you?","Nasha_Nov05JPG_thumb.jpg",130,130,18);thumbnails[37771]=new thumbnail(37771,"3825","My family c2002","Family_Life,2002_thumb.jpg",130,104,18);thumbnails[1013956]=new thumbnail(1013956,"3825","What the well dressed girl-about-town is wearing...","Nashas_fashion_tips-copy_thumb.jpg",130,195,18);thumbnails[42988]=new thumbnail(42988,"3825","Georgina","b&wGina_thumb.jpg",130,172,18);thumbnails[42979]=new thumbnail(42979,"3825","Georgina having fun in a ball pool","Gina_thumb.balls.jpg",130,90,18);thumbnails[40045]=new thumbnail(40045,"3825","Barbie Girl (alternative title - How to fall out with your wife and eldest Daughter....)","z_G&M_thumb.jpg",130,94,18);thumbnails[36107]=new thumbnail(36107,"3825","Victoria and Mickey Mouse watching The Tweenies","Vic & Mick_thumb.jpg",130,86,18);thumbnails[36201]=new thumbnail(36201,"3825",'"look what I made..."',"Vic & cake_thumb.jpg",130,196,18);thumbnails[37755]=new thumbnail(37755,"3825",'"...Angels, with dirty faces..." ',"Angels_thumb.jpg",130,190,18);thumbnails[37772]=new thumbnail(37772,"3825","living hand to mouth","Handtomouth2_thumb.jpg",130,186,18);thumbnails[37775]=new thumbnail(37775,"3825",'"happiness is...."',"feedtime2_thumb.jpg",130,184,18);thumbnails[38699]=new thumbnail(38699,"3823","shadows within The Louvre, Paris","Louvre,1995_thumb.jpg",130,100,18);thumbnails[37759]=new thumbnail(37759,"3823","Epsom High Street, Cookery Essentials Shop","Cake_Tin_thumb.jpg",130,97,18);thumbnails[38696]=new thumbnail(38696,"3823","Kings of Crime","Kings_of_Crime_thumb.jpg",130,93,18);thumbnails[38922]=new thumbnail(38922,"3823",'"the artist as a young man..."',"Perou_thumb.jpg",130,106,18);thumbnails[40035]=new thumbnail(40035,"3823","The Trouble With Girls...LIVE!","z_TTWG_thumb.jpg",130,86,18);thumbnails[999448]=new thumbnail(999448,"3827","Long-Tail Tit","WGI_3547_LTT05JPG_thumb.jpg",130,87,18);thumbnails[999462]=new thumbnail(999462,"3827","Long-Tail Tit","WGI_3581_LTT02JPG_thumb.jpg",130,87,18);thumbnails[999473]=new thumbnail(999473,"3827","Greenfinch","WGI_3555_Gfch01JPG_thumb.jpg",130,87,18);thumbnails[999468]=new thumbnail(999468,"3827","Great Tit","WGI_3550_GT02JPG_thumb.jpg",130,87,18);thumbnails[36110]=new thumbnail(36110,"3827","The coot that came to visit","CP_coot_thumb.jpg",130,88,18);thumbnails[38697]=new thumbnail(38697,"3827","Leaping Deer","Leaping_Deer_thumb.jpg",130,97,18);thumbnails[38918]=new thumbnail(38918,"3827","young vixen","vixen_thumb.jpg",130,98,18);thumbnails[999445]=new thumbnail(999445,"3827","Alfie and Chipmonk","DSC_0831-PheasantJPG_thumb.jpg",130,99,18);thumbnails[38913]=new thumbnail(38913,"3827","Otter eating","otter_thumb.jpg",130,198,18);thumbnails[999475]=new thumbnail(999475,"3827","Sheepy Christmas, 2006","DSC_0508_Abigail1JPG_thumb.jpg",130,188,18);thumbnails[1008558]=new thumbnail(1008558,"3810","Self portrait # 1,287","meoneJPG1_thumb.jpg",130,164,18);thumbnails[1008605]=new thumbnail(1008605,"3810","Just Jazz + Guest","DSC_1663_trumpet2JPG_thumb.jpg",130,130,18);thumbnails[1008619]=new thumbnail(1008619,"3810","Kim Johnson","Faye_July06JPG_thumb.jpg",130,177,18);thumbnails[37776]=new thumbnail(37776,"3810","","WGI_web_title03_thumb.jpg",130,99,18);thumbnails[999483]=new thumbnail(999483,"3810","James Rose in Action for Kingstonian","Behind-you_Oct04_thumb.jpg",130,219,18);thumbnails[39305]=new thumbnail(39305,"3810","window reflection #7","reflection_thumb.jpg",130,194,18);thumbnails[39307]=new thumbnail(39307,"3810","stairway to heaven...","stairway_to_heaven_thumb.jpg",130,195,18);thumbnails[40030]=new thumbnail(40030,"3810","The Producer","z_the_producer_thumb.jpg",130,192,18);thumbnails[40028]=new thumbnail(40028,"3810","Sal and Val","z_sal&val_thumb.jpg",130,84,18);thumbnails[40027]=new thumbnail(40027,"3810","waiting in the wings","in_the_wings_thumb.jpg",130,84,18);thumbnails[1008592]=new thumbnail(1008592,"3810","Just Jazz instruments","DSC_1674_instruJPG_thumb.jpg",130,66,18);thumbnails[1008576]=new thumbnail(1008576,"3810","Just Jazz","DSC_1660_bandJPG_thumb.jpg",130,68,18);thumbnails[61092]=new thumbnail(61092,"3810",'"Yes, can I help you?"',"2750_whatgoat_color_thumb.jpg",130,156,18);var galleries=new Object();galleries[187554]=new gallery(187554,"3048100,3048095,3048065,3048057,3048049,3048032,3048028,3048027,3048026,3048024","Alike Cooper","gallery",[3048016,3048022,3048024,3048026,3048027,3048028,3048032,3048049,3048057,3048065,3048095,3048100]);galleries[74875]=new gallery(74875,"997828","Charmouth, Dorset","gallery",[997828,997863,997883,997922,997897]);galleries[74874]=new gallery(74874,"1014108,1014095,1014076,1014028","Football 06-07 Season","gallery",[1008652,1014028,1014038,1008643,1014060,1014070,1014087,1014105,1014108,1014076,1014095]);galleries[74871]=new gallery(74871,"999365","Hockey","gallery",[999364,999365,999373]);galleries[74870]=new gallery(74870,"1584317,1584301,999359","Rugby Union (Bridport RFC)","gallery",[999359,999345,999341,1584242,1584225,1584178,1584252,1584262,1584276,1584285,1584286,1584293,1584298,1584301,1584306,1584317]);galleries[73476]=new gallery(73476,"1584317,1584301,1014108,1014095,1014076,1014028,999365,999359","Sport","gallery",[]);galleries[3826]=new gallery(3826,"40039,36200,36108","Abstract-ish","gallery",[36108,36111,36200,39303,40039]);galleries[3825]=new gallery(3825,"1013980","My Girls","gallery",[1013966,1013974,1013980,1014006,1013985,1013994,122929,1014009,37771,1013956,42988,42979,40045,36107,36201,37755,37772,37775]);galleries[3823]=new gallery(3823,"38699,38696,37759","Old Stuff","gallery",[38699,37759,38696,38922,40035]);galleries[3827]=new gallery(3827,"999462,36110","Wild thing","gallery",[999448,999462,999473,999468,36110,38697,38918,999445,38913,999475]);galleries[3810]=new gallery(3810,"1008605,1008558,999483,61092","Homeless","gallery",[1008558,1008605,1008619,37776,999483,39305,39307,40030,40028,40027,1008592,1008576,61092]);var imageSets=new Object();imageSets[1]="1584301,1014108,1014028,997863,61092,37776";imageSets[2]="1584317,1584301,1014108,1014095,1014076,1014028,1013980,1008605,1008558,999483,999462,999365,999359,997828,61092,40039,38699,38696,37759,36200,36110,36108";imageSets[3]="3048100,3048095,3048065,3048057,3048049,3048032,3048028,3048027,3048026,3048024,3048022,3048016,1584317,1584306,1584301,1584298,1584293,1584286,1584285,1584276,1584262,1584252,1584242,1584225,1584178,1014108,1014105,1014095,1014087,1014076,1014070,1014060,1014038,1014028,1014009,1014006,1013994,1013985,1013980,1013974,1013966,1013956,1008652,1008643,1008619,1008605,1008592,1008576,1008558,999483";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 1:b="http://www1.clikpic.com/raindog/images";break}switch(a){case 2:b="http://admin.clikpic.com/raindog/images";break}switch(a){case 4:b="http://www.clikchurch.com/raindog/images";break}switch(a){case 5:b="http://www2.clikpic.com/raindog/images";break}switch(a){case 15:b="http://www3.clikpic.com/raindog/images";break}switch(a){case 21:b="http://www6.clikpic.com/raindog/images";break}switch(a){case 18:b="http://www4.clikpic.com/raindog/images";break}switch(a){case 19:b="http://www5.clikpic.com/raindog/images";break}switch(a){case 22:b="http://tpc5/clikpic/raindog/images";break}switch(a){case 23:b="http://tpc10/clikpic/raindog/images";break}switch(a){case 24:b="http://tpc15/clikpic/raindog/images";break}switch(a){case 25:b="http://tpc16/clikpic/raindog/images";break}switch(a){case 31:b="http://www7.clikpic.com/raindog/images";break}switch(a){case 32:b="http://admin2.clikpic.com/raindog/images";break}switch(a){case 33:b="http://www8.clikpic.com/raindog/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="WhatGoat? Images: "+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").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+"</p>";var e=c.purchase_instruction;var d=c.item_price;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+'")'})}}};