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[3471559]=new thumbnail(3471559,"182625","<strong><font color=black >THAT'S MY BOY </strong>","109-08 That's My Boy JPG_thumb.jpg",130,97,1);thumbnails[3477644]=new thumbnail(3477644,"182625","<strong><font color=black >THE OLD BOATS <font color=black ><font color=red> Sold    </strong>","14-09 The Old Boats oilJPG_thumb.jpg",130,96,1);thumbnails[3855807]=new thumbnail(3855807,"182625","<strong><font color=black >LOW TIDE, ST IVES</strong>","My_art_002JPG_thumb.jpg",130,93,1);thumbnails[4371086]=new thumbnail(4371086,"182625","<strong><font color=black >THAT PERFECT DAY </strong>","OIL_-_That_Perfect_Day_2109JPG_thumb.jpg",130,94,1);thumbnails[4371090]=new thumbnail(4371090,"182625","<strong><font color=black >COWS IN SOFT LIGHT<font color=red> Sold    </strong>","OIL_-_Cows_in_soft_light_002_2209JPG_thumb.jpg",130,98,1);thumbnails[4371096]=new thumbnail(4371096,"182625","<strong><font color=black >BOAT BUSINESS - DARTMOUTH </strong>","OIL_-_Boat_Business_Dartmouth_2009JPG_thumb.jpg",130,98,1);thumbnails[4371101]=new thumbnail(4371101,"182625","<strong><font color=black >HIGH SUMMER</strong>","OIL_-_High_Summer_2809JPG_thumb.jpg",130,96,1);thumbnails[4381894]=new thumbnail(4381894,"","Bryan Pickard ","Bryan_in_Stirling_thumb.jpg",130,111,1);thumbnails[5127672]=new thumbnail(5127672,"182625","<strong><font color=black >THE GREEN BOAT, CORNWALL </strong>","oil_The_Green_Boat_Cornwall_51-09_thumb.jpg",130,99,1);thumbnails[5127673]=new thumbnail(5127673,"182625","<strong><font color=black >BEACH LAST LIGHT </strong>","oil_Beach_Last_Light_52-09_thumb.jpg",130,98,1);thumbnails[2959171]=new thumbnail(2959171,"182625","<strong><font color=black >SHEEP ON THE ROAD <font color=red> Sold </strong>   ","98-08 Sheep on the Road [oil]JPG_thumb.jpg",130,98,1);thumbnails[2959174]=new thumbnail(2959174,"182625","<strong><font color=black >ROAD TO ST IVES</strong>","99-08 Road to St Ives [oil]JPG_thumb.jpg",130,98,1);thumbnails[2959180]=new thumbnail(2959180,"182625","<strong><font color=black >COWS UNDER TREES<font color=red> Sold </strong>   ","100-08 Cows under TreesJPG_thumb.jpg",130,98,1);thumbnails[2959183]=new thumbnail(2959183,"182625","<strong><font color=black >THAT STORMY DAY <font color=red> Sold </strong>   ","101-08 oil- That Stormy DayJPG_thumb.jpg",130,98,1);thumbnails[2664186]=new thumbnail(2664186,"121308","<strong>RED-PAINTED PUFFER </strong>","66-08 Red Painted Puffer001_thumb.jpg",130,94,1);thumbnails[2752967]=new thumbnail(2752967,"121308","<strong> BEACH FIND</strong>","91-08 Beach FindJPG_thumb.jpg",130,96,1);thumbnails[2753114]=new thumbnail(2753114,"121308","<strong> CASTING OFF <font color=red> Sold </strong>","Casting OffJPG_thumb.jpg",130,104,1);thumbnails[2753118]=new thumbnail(2753118,"121308","<strong> BRIDGE AT DINAN <font color=red> Sold </strong>","DINANJPG_thumb.jpg",130,59,1);thumbnails[2753122]=new thumbnail(2753122,"121308","<strong> HAYMAKING <font color=red> Sold </strong>","HaymakingJPG_thumb.jpg",130,91,1);thumbnails[2753126]=new thumbnail(2753126,"121308","<strong> HORSE TRADING</strong>","Horse Trading, Stow Horse FairJPG_thumb.jpg",130,94,1);thumbnails[2753133]=new thumbnail(2753133,"121308","<strong> HORSE FAIR DEALING <font color=red> Sold </strong>","Horsefair-DealingJPG_thumb.jpg",130,95,1);thumbnails[2753135]=new thumbnail(2753135,"121308","<strong> IMPORTANCE OF A KETTLE</strong>","Importance-of-a-kettleJPG_thumb.jpg",130,94,1);thumbnails[2753138]=new thumbnail(2753138,"121308","<strong> PARADE, STEAM FAIR<br>\r\n[Hung at the RI]</strong>","Parade, Great Dorset Steam FairJPG_thumb.jpg",130,94,1);thumbnails[2753141]=new thumbnail(2753141,"121308","<strong> SCULLER AT WOODBRIDGE <font color=red> Sold </strong>","Sculler at WoodbridgeJPG_thumb.jpg",130,94,1);thumbnails[2808443]=new thumbnail(2808443,"121308","<strong> COCKLING<font color=red> Sold </strong>   ","63-08  Cockling001_thumb.jpg",130,98,1);thumbnails[2959223]=new thumbnail(2959223,"121308","<strong><font color=black >PORT ISAAC HOUSES </strong>","104-08 Port Isaac HousesJPG_thumb.jpg",130,96,1);thumbnails[3324493]=new thumbnail(3324493,"121308","<strong><font color=black >JUST IN REACH </strong>","77-08 Just in Reach001_thumb.jpg",130,187,1);thumbnails[3471569]=new thumbnail(3471569,"121308","<strong><font color=black >CRAIL HARBOUR</strong>","115-08 Crail Harbour JPG_thumb.jpg",130,96,1);thumbnails[3477634]=new thumbnail(3477634,"121308","<strong><font color=black >THE QUAY AT DUSK</strong>","7-09 The Quay at DuskJPG_thumb.jpg",130,96,1);thumbnails[3840523]=new thumbnail(3840523,"121308","<strong><font color=black >WEST HIGHLAND IDYLL</font color=black ><font color=red> Sold    </strong>  ","West_Highland_Idyll_SoldJPG_thumb.jpg",130,65,1);thumbnails[3840525]=new thumbnail(3840525,"121308","<strong><font color=black >WAITING FOR THE FERRY</strong><strong><font color=black ><font color=red> Sold </strong>  ","Waiting_for_the_Ferry_SoldJPG_thumb.jpg",130,214,1);thumbnails[3840528]=new thumbnail(3840528,"121308","<strong><font color=black >TIGHTROPING</strong><strong><font color=black ><font color=red> Sold </strong>  ","Tightroping_SoldJPG_thumb.jpg",130,92,1);thumbnails[3840534]=new thumbnail(3840534,"121308","<strong><font color=black >THREE DINGHIES</strong><strong><font color=black ><font color=red> Sold </strong>  ","Three_Dinghies_-_SoldJPG_thumb.jpg",130,98,1);thumbnails[3840537]=new thumbnail(3840537,"121308","<strong><font color=black >THE OLD SHEPHERD'S HERDWICKS </strong><strong><font color=black ><font color=red> Sold </strong>  ","The_old_shepherds_Herdwicks_SoldJPG_thumb.jpg",130,98,1);thumbnails[3840543]=new thumbnail(3840543,"121308","<strong><font color=black >STURMINSTER WEIR </strong><strong><font color=black ><font color=red> Sold </strong>  ","Sturminster_Weir_SoldJPG_thumb.jpg",130,94,1);thumbnails[3840549]=new thumbnail(3840549,"121308","<strong><font color=black >SHERBORNE IN THE SUN</strong><strong><font color=black ><font color=red> Sold </strong>  ","Sherborne_in_the_sun_soldJPG_thumb.jpg",130,89,1);thumbnails[3840610]=new thumbnail(3840610,"121308","<strong><font color=black >RESTING UP THE CREEK </strong><strong><font color=black ><font color=red> Sold </strong>  ","Resting_up_the_Creek_SoldJPG_thumb.jpg",130,90,1);thumbnails[3840613]=new thumbnail(3840613,"121308","<strong><font color=black >MORNING WALK </strong><strong><font color=black ><font color=red> Sold </strong>  ","Morning_walk_SoldJPG_thumb.jpg",130,96,1);thumbnails[3840616]=new thumbnail(3840616,"121308","<strong><font color=black >LIQUID SUNSHINE </strong><strong><font color=black ><font color=red> Sold </strong>  ","Liquid_Sunshine_soldJPG_thumb.jpg",130,79,1);thumbnails[3840621]=new thumbnail(3840621,"121308","<strong><font color=black >FULL STEAM </strong><strong><font color=black ><font color=red> Sold </strong>  ","Full_Steam_SoldJPG_thumb.jpg",130,93,1);thumbnails[3840624]=new thumbnail(3840624,"121308","<strong><font color=black >CLIMBING STONEY PATH </strong><strong><font color=black ><font color=red> Sold </strong>  ","Climbing_Stoney_Path_SoldJPG_thumb.jpg",130,88,1);thumbnails[3840631]=new thumbnail(3840631,"121308","<strong><font color=black >AT STOW HORSE FAIR  </strong><strong><font color=black > [Hung at the RI]<font color=red> Sold </strong>  ","At_Stow_Horse_Fair_hung_at_the_RIJPG_thumb.jpg",130,88,1);thumbnails[3840634]=new thumbnail(3840634,"121308","<strong><font color=black >WINTER EVENING - PORLOCK  </strong><strong><font color=black > [Hung at the RWS]","06-07_Winter_Evening-_PorlockJPG_thumb.jpg",130,89,1);thumbnails[4371081]=new thumbnail(4371081,"121308","<strong><font color=black >STONEHENGE <font color=red> Sold </strong>  ","StonehengeJPG_thumb.jpg",130,90,1);thumbnails[4371085]=new thumbnail(4371085,"121308","<strong><font color=black >PATH TO STURMINSTER MILL <font color=red> Sold    </strong>","Path_to_Stur_MillJPG_thumb.jpg",130,89,1);thumbnails[4371100]=new thumbnail(4371100,"121308","<strong><font color=black >GOLD HILL LIGHT</strong>","Gold_Hill_Light_3509JPG_thumb.jpg",130,98,1);thumbnails[4597686]=new thumbnail(4597686,"121308","<strong><font color=black >DINAN BRIDGE </strong>","Dinan_Bridge_41-09JPG_thumb.jpg",130,101,1);thumbnails[4597690]=new thumbnail(4597690,"121308","<strong><font color=black >SUNLIT COW BYRE </strong>","Sunlit_Cow_Byre_42-09JPG_thumb.jpg",130,91,1);thumbnails[4597693]=new thumbnail(4597693,"121308","<strong><font color=black >ADMIRATION AT PRIDDY SHEEP FAIR </strong>","Admiration_at_Priddy_Fair_44-09002_thumb.jpg",130,91,1);thumbnails[5127663]=new thumbnail(5127663,"121308","<strong><font color=black >QUEUE FOR THE FERRY </strong>","wc_Queue_for_the_Ferry_54-09_thumb.jpg",130,94,1);thumbnails[5127664]=new thumbnail(5127664,"121308","<strong><font color=black >JUDGEMENT DAY </strong>","wc_Judgement_Day_55-09_thumb.jpg",130,97,1);thumbnails[5127667]=new thumbnail(5127667,"121308","<strong><font color=black >THE RECOVERED LAMB</strong>","wc_The_Recovered_Lamb_57-09_thumb.jpg",130,98,1);thumbnails[5127668]=new thumbnail(5127668,"121308","<strong><font color=black >MOTHER AND SON </strong>","wc_Mother__Son_48-09_thumb.jpg",130,91,1);thumbnails[5127669]=new thumbnail(5127669,"121308","<strong><font color=black >THROW THE STICK</strong>","wc_Throw_the_stick_49-09_thumb.jpg",130,96,1);thumbnails[5127676]=new thumbnail(5127676,"121308","<strong><font color=black >ACTRESS ON THE BEACH  </strong>","wc_Actress_on_the_beach_56-09_thumb.jpg",130,94,1);thumbnails[5226304]=new thumbnail(5226304,"121308","<strong><font color=black >SEEN BETTER DAYS</strong>","Better_Days_thumb.jpg",130,96,1);thumbnails[5226327]=new thumbnail(5226327,"121308","<strong><font color=black >WHITBY EVENING </strong>","Whitby_Evening_thumb.jpg",130,98,1);thumbnails[5226329]=new thumbnail(5226329,"121308","<strong><font color=black >MOUSEHOLE SUNSHINE </strong>","Mousehole_Sunlight_thumb.jpg",130,93,1);thumbnails[2172263]=new thumbnail(2172263,"121308","<strong> PONY SALE RIDE <font color=red> Sold </strong>","47-08 Pony Sale RideJPG_thumb.jpg",130,82,1);thumbnails[2172259]=new thumbnail(2172259,"121308","<strong> SCHOONER NEAR DINAN <font color=red> Sold    </strong></strong>","40-08 Schooner near DinanJPG_thumb.jpg",130,98,1);thumbnails[2032784]=new thumbnail(2032784,"121308","<strong> BOATS AT DINAN   </strong>","Boats at DinanJPG_thumb.jpg",130,97,1);thumbnails[2032786]=new thumbnail(2032786,"121308","<strong> AT THE PONY SALE <font color=red> Sold </strong>   ","At the Pony SaleJPG_thumb.jpg",130,113,1);thumbnails[2032781]=new thumbnail(2032781,"121308","<strong> <font color=black >STURMINSTER TEASELS  <font color=red> Sold    </strong></strong>","Sturminster TeaselsJPG_thumb.jpg",130,98,1);thumbnails[1928323]=new thumbnail(1928323,"121308","<strong> MAN IN CHARGE <font color=red> Sold </strong>","Man in Charge I_thumb.jpg",130,98,1);thumbnails[1816095]=new thumbnail(1816095,"121308","<strong>HEADING TO PASTURE <font color=red> Sold </strong>","59-07 Farmer Gulliford_thumb.jpg",130,115,1);thumbnails[1816085]=new thumbnail(1816085,"121308"," <strong> DUCK BREAD      <font color=red> Sold    </strong>      </strong>","8-08 Duck Bread1_thumb.jpg",130,98,1);thumbnails[1816211]=new thumbnail(1816211,"121308","<strong> A BREATH OF FRESH AIR <font color=red> Sold </strong>","83-07 A Breath of Freh Air_thumb.jpg",130,94,1);thumbnails[1816099]=new thumbnail(1816099,"121308","<strong> ESTUARY EVENING <font color=red> Sold </strong>","65-07 Estuary evening_thumb.jpg",130,127,1);thumbnails[1816102]=new thumbnail(1816102,"121308","<strong> THE YELLOW HOUSE <font color=red> Sold </strong>","80-07 The Yellow House_thumb.jpg",130,95,1);thumbnails[1816106]=new thumbnail(1816106,"121308","        </strong><strong><font color=black >BEACHCOMBING <font color=red> Sold </strong>   ","82-07 Beachcombing_thumb.jpg",130,99,1);thumbnails[1816091]=new thumbnail(1816091,"121308","<strong> THAT SUMMER NIGHT  <font color=red> Sold    </strong>         </strong>","14-08 That Summer Night_thumb.jpg",130,99,1);thumbnails[1928357]=new thumbnail(1928357,"121308","<strong> COWS AND BARNS <font color=red> Sold </strong>","Cows & Barns i_thumb.jpg",130,98,1);thumbnails[1928372]=new thumbnail(1928372,"121308","<strong>BRITTANY SCHOONER </strong>","Brittany Schooner I_thumb.jpg",130,98,1);var galleries=new Object();galleries[182625]=new gallery(182625,"5127673,5127672,4371101,4371096,4371090,4371086,3855807,3477644,3471559,2959183","Oils","section226515",[3471559,3477644,3855807,4371086,4371090,4371096,4371101,5127672,5127673,2959171,2959174,2959180,2959183]);galleries[121308]=new gallery(121308,"5226329,5226327,5226304,5127676,5127669,5127668,5127667,5127664,5127663,4597693","<STRONG>WATERCOLOURS  </STRONG>","gallery",[2664186,2752967,2753114,2753118,2753122,2753126,2753133,2753135,2753138,2753141,2808443,2959223,3324493,3471569,3477634,3840523,3840525,3840528,3840534,3840537,3840543,3840549,3840610,3840613,3840616,3840621,3840624,3840631,3840634,4371081,4371085,4371100,4597686,4597690,4597693,5127663,5127664,5127667,5127668,5127669,5127676,5226304,5226327,5226329,2172263,2172259,2032784,2032786,2032781,1928323,1816095,1816085,1816211,1816099,1816102,1816106,1816091,1928357,1928372]);var imageSets=new Object();imageSets[1]="4381894";imageSets[3]="5226329,5226327,5226304,5127676,5127673,5127672,5127669,5127668,5127667,5127664,5127663,4597693,4597690,4597686,4381894,4371101,4371100,4371096,4371090,4371086,4371085,4371081,3855807,3840634,3840631,3840624,3840621,3840616,3840613,3840610,3840549,3840543,3840537,3840534,3840528,3840525,3840523,3477644,3477634,3471569,3471559,3324493,2959223,2959183,2959180,2959174,2959171,2808443,2753141,2753138";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/bryanpickard/images";break}switch(a){case 1:b="http://www1.clikpic.com/bryanpickard/images";break}switch(a){case 2:b="http://admin.clikpic.com/bryanpickard/images";break}switch(a){case 24:b="http://tpc15/clikpic/bryanpickard/images";break}switch(a){case 4:b="http://www.clikchurch.com/bryanpickard/images";break}switch(a){case 5:b="http://www2.clikpic.com/bryanpickard/images";break}switch(a){case 22:b="http://tpc5/clikpic/bryanpickard/images";break}switch(a){case 23:b="http://tpc10/clikpic/bryanpickard/images";break}switch(a){case 25:b="http://tpc16/clikpic/bryanpickard/images";break}switch(a){case 15:b="http://www3.clikpic.com/bryanpickard/images";break}switch(a){case 18:b="http://www4.clikpic.com/bryanpickard/images";break}switch(a){case 19:b="http://www5.clikpic.com/bryanpickard/images";break}switch(a){case 31:b="http://www7.clikpic.com/bryanpickard/images";break}switch(a){case 32:b="http://admin2.clikpic.com/bryanpickard/images";break}switch(a){case 33:b="http://www8.clikpic.com/bryanpickard/images";break}switch(a){case 34:b="http://www9.clikpic.com/bryanpickard/images";break}switch(a){case 35:b="http://admin3.clikpic.com/bryanpickard/images";break}switch(a){case 37:b="http://admin4.clikpic.com/bryanpickard/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("section226515"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section226515.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("section226515"!=""){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="Bryan Pickard Paintings: "+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").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].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+'")'})}}};