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[2928932]=new thumbnail(2928932,"181118","Bathtime (008)","008jpg_thumb.jpg",130,85,1);thumbnails[2928985]=new thumbnail(2928985,"181118","Just Good Friends (0041)","004jpg_thumb.jpg",130,92,1);thumbnails[2928987]=new thumbnail(2928987,"181128","Jaguar (026)","026jagjpg_thumb.jpg",130,74,1);thumbnails[2929008]=new thumbnail(2929008,"181115","B&W Towers 2 (0314)","0314jpg_thumb.jpg",130,196,1);thumbnails[2929029]=new thumbnail(2929029,"181117","Lily (0571)","0571jpg_thumb.jpg",130,185,1);thumbnails[2929126]=new thumbnail(2929126,"181116","Huts 1 (0846)","0846jpg_thumb.jpg",130,86,1);thumbnails[2929131]=new thumbnail(2929131,"181116","Huts 2 (0990)","0990jpg_thumb.jpg",130,102,1);thumbnails[2929138]=new thumbnail(2929138,"181115","B&W Towers 1 (1471)","1471jpg_thumb.jpg",130,177,1);thumbnails[2929142]=new thumbnail(2929142,"181128","Blue Lake (1116)","1116jpg_thumb.jpg",130,95,1);thumbnails[2929145]=new thumbnail(2929145,"181116","Reculver Towers at sunset (1759)","1759jpg_thumb.jpg",130,86,1);thumbnails[2929148]=new thumbnail(2929148,"181116","Sun Rays (1764)","1764a4jpg_thumb.jpg",130,177,1);thumbnails[2929149]=new thumbnail(2929149,"181115","Footprint (0706)","1918jpg_thumb.jpg",130,196,1);thumbnails[2929156]=new thumbnail(2929156,"181116","B&W Towers (9001)","9001jpg_thumb.jpg",130,86,1);thumbnails[2929161]=new thumbnail(2929161,"181118","Who you looking at! (2212)","2212jpg_thumb.jpg",130,182,1);thumbnails[2929171]=new thumbnail(2929171,"181116","Clock Tower (0001)","IDW000printingjpg_thumb.jpg",130,162,1);thumbnails[2929173]=new thumbnail(2929173,"181115","Railway Track (0016)","IDW0016inesjpg_thumb.jpg",130,181,1);thumbnails[2929194]=new thumbnail(2929194,"181117","Clematis (028)","IDW028jpg_thumb.jpg",130,92,1);thumbnails[2929196]=new thumbnail(2929196,"181117","Cactus (8803)","IDW8803jpg_thumb.jpg",130,162,1);thumbnails[2929245]=new thumbnail(2929245,"181128","Wreck (0022)","IDW 0022jpg_thumb.jpg",130,104,1);thumbnails[2929246]=new thumbnail(2929246,"181128","West Beach (1556)","1556jpg_thumb1_thumb.jpg",130,195,1);thumbnails[2929248]=new thumbnail(2929248,"181115","B&W West Beach (1556 B+W)","walkjpg_thumb.jpg",130,198,1);thumbnails[2929284]=new thumbnail(2929284,"181115","Reculver Fence (9002s)","recjpg_thumb.jpg",130,95,1);thumbnails[2929290]=new thumbnail(2929290,"181128","Spitfire (150)","IDW150jpg_thumb.jpg",130,92,1);thumbnails[2929292]=new thumbnail(2929292,"181118","Happy Frog (LW9901)","LW9901jpg_thumb.jpg",130,104,1);thumbnails[2929293]=new thumbnail(2929293,"181118","Peacock (LW040)","LW040jpg_thumb.jpg",130,98,1);thumbnails[2954944]=new thumbnail(2954944,"181116","Bandstand Herne Bay (0013)","0013_thumb.jpg",130,193,1);thumbnails[2954957]=new thumbnail(2954957,"181128","Derek Minter (0018)","0018_thumb.jpg",130,194,1);thumbnails[2954966]=new thumbnail(2954966,"181128","Vincent (0025)","0025_thumb.jpg",130,83,1);thumbnails[2954968]=new thumbnail(2954968,"181116","Bouys (2138)","2138_thumb.jpg",130,86,1);thumbnails[2955019]=new thumbnail(2955019,"181115","Rough Sea Herne Bay Pier (10013)","10013jpg_thumb.jpg",130,82,1);thumbnails[2967891]=new thumbnail(2967891,"181118","Robin (3333)","IDW3333jpg_thumb.jpg",130,104,1);thumbnails[3104106]=new thumbnail(3104106,"181116","Reculver (1803s)","1803 s copy1_thumb.jpg",130,86,1);thumbnails[3271355]=new thumbnail(3271355,"181116","Reculver I (1744a)","1744a copy_thumb.jpg",130,88,1);thumbnails[3271380]=new thumbnail(3271380,"181116","Hampton (1176a)","1176a copy_thumb.jpg",130,86,1);thumbnails[3271385]=new thumbnail(3271385,"181117","Prickly (00002)","IDW00002 useful copy_thumb.jpg",130,182,1);thumbnails[3271391]=new thumbnail(3271391,"181116","Sunset at Hampton (0011)","IDW0011 sunset same as source vivid gamma 2_thumb.jpg",130,75,1);thumbnails[3271392]=new thumbnail(3271392,"181128","Morris (0014)","IDW0014 morris copy_thumb.jpg",130,72,1);thumbnails[3271404]=new thumbnail(3271404,"181115","Steps at Kings Hall Herne Bay (LW0062)","LW0062 copy_thumb.jpg",130,163,1);thumbnails[3271461]=new thumbnail(3271461,"181116","Reculver c (0134c)","0314c-copy_thumb.jpg",130,182,1);thumbnails[3536319]=new thumbnail(3536319,"181118","Hello (3234)","3234_Hello_thumb.jpg",130,152,1);thumbnails[3557631]=new thumbnail(3557631,"181118","Eye On You (1959)","1959_thumb.jpg",130,75,1);thumbnails[3557651]=new thumbnail(3557651,"181116","Arms View (3641)","3641_thumb.jpg",130,95,1);thumbnails[3557714]=new thumbnail(3557714,"181128","Drops (3667)","3667_thumb.jpg",130,173,1);thumbnails[3588974]=new thumbnail(3588974,"181116","Herne Bay Clocktower (3562 B+W)","3562_BW_copy_thumb.jpg",130,86,1);thumbnails[3778639]=new thumbnail(3778639,"181117","Bluebells 1 (4553)","bluebells1_thumb.jpg",130,130,1);thumbnails[3778667]=new thumbnail(3778667,"181117","Bluebells 2 (00571)","bluebells2_thumb.jpg",130,130,1);thumbnails[3778672]=new thumbnail(3778672,"181128","Jellybeans (3826)","_DSC3826_copy_thumb.jpg",130,195,1);thumbnails[3778675]=new thumbnail(3778675,"181128","Spiral (4039)","4039_copy_thumb.jpg",130,125,1);thumbnails[3778682]=new thumbnail(3778682,"181128","Treats (4096)","4096_copy_thumb.jpg",130,182,1);thumbnails[3861104]=new thumbnail(3861104,"181117","Daffodil (4099)","_DSC4099_copy_thumb.jpg",130,205,1);thumbnails[3861110]=new thumbnail(3861110,"181115","West Beach Littlehampton (1605 B+W)","1605_BW_copy_thumb.jpg",130,196,1);thumbnails[3861112]=new thumbnail(3861112,"181118","Flamingo (2774a)","2774a_6x4_copy_thumb.jpg",130,87,1);thumbnails[3861120]=new thumbnail(3861120,"181116","Herne Bay (3396)","3396_gamma1_thumb.jpg",130,86,1);thumbnails[3861125]=new thumbnail(3861125,"181116","Neptunes Arm (3603 B+W)","3603_BW_lighter_steps_copy_thumb.jpg",130,86,1);thumbnails[3861129]=new thumbnail(3861129,"181128","Mansion Faces (3915)","3915_copy_thumb.jpg",130,94,1);thumbnails[3861198]=new thumbnail(3861198,"181117","Weird Petals (4107) available in other styles.","4107_c_copy_thumb.jpg",130,205,1);thumbnails[3861201]=new thumbnail(3861201,"181116","Sunset over Hampton (4239)","4239_brightness3_copy_thumb.jpg",130,86,1);thumbnails[4285465]=new thumbnail(4285465,"181116","Herne Windmill (5214s)","5214s_Herne_Windmill_thumb.jpg",130,196,1);thumbnails[4523796]=new thumbnail(4523796,"181128","5137 (Pebbles at Reculver)","5137_Pebbles_at_Reculver_thumb.jpg",130,86,1);thumbnails[4523801]=new thumbnail(4523801,"181128","5140 (Rust)","5140__Rust_at_Reculver_thumb.jpg",130,86,1);thumbnails[5147953]=new thumbnail(5147953,"181128"," Burton Bradstock (6775)","6755_copy_thumb.jpg",130,87,1);thumbnails[5147956]=new thumbnail(5147956,"181128"," Burton Bradstock (6766)","6766_copy_thumb.jpg",130,105,1);thumbnails[5147957]=new thumbnail(5147957,"181128"," Burton Bradstock (6775)","6775_copy_thumb.jpg",130,87,1);thumbnails[5624383]=new thumbnail(5624383,"181116","Herne Bay Pier Head (7480)","7480_copy_thumb.jpg",130,86,1);thumbnails[5624403]=new thumbnail(5624403,"181116","Herne Bay Pier Head from Kings Hall (LW0052)","LW0052_copy_thumb.jpg",130,163,1);thumbnails[2929125]=new thumbnail(2929125,"180916","Kite Surfers (0736s)","0736sjpg_thumb.jpg",130,95,1);thumbnails[2929128]=new thumbnail(2929128,"180916","Hampton Ramp (0885)","0885jpg_thumb.jpg",130,99,1);thumbnails[2929129]=new thumbnail(2929129,"180916","Lifeguard Hut (0955)","0955jpg_thumb.jpg",130,198,1);thumbnails[2929133]=new thumbnail(2929133,"180916","Swan Lake (1002)","1002jpg_thumb.jpg",130,95,1);thumbnails[2929134]=new thumbnail(2929134,"180916","Low tide at Hampton (1026)","1026jpg_thumb.jpg",130,86,1);thumbnails[2929136]=new thumbnail(2929136,"180916","Sundown (1343)","1343jpg_thumb.jpg",130,86,1);thumbnails[2929304]=new thumbnail(2929304,"180916","Waves (LW0070)","LW0070jpg_thumb.jpg",130,97,1);thumbnails[2955008]=new thumbnail(2955008,"180916","Horsebridge (0020)","IDW0020runwayjpg_thumb.jpg",130,111,1);thumbnails[3271407]=new thumbnail(3271407,"180916","Austria (1115)","1115 copy_thumb.jpg",130,139,1);thumbnails[3409621]=new thumbnail(3409621,"180916","Huts 3 (2914)","2914-copy_thumb.jpg",130,92,1);thumbnails[3536397]=new thumbnail(3536397,"180916","Pagham (1698)","1698_copy_thumb.jpg",130,86,1);thumbnails[5325881]=new thumbnail(5325881,"180916","Pagham (1399)","1399_for_printing_copy_thumb.jpg",130,86,1);thumbnails[2929250]=new thumbnail(2929250,"180917","Canterbury from Westgate Towers (4061)","4061canterburyjpg_thumb.jpg",130,183,1);thumbnails[2929251]=new thumbnail(2929251,"180917","Broomfield (0021)","IDW002jpg_thumb.jpg",130,102,1);thumbnails[2954950]=new thumbnail(2954950,"180917","Harbour Street Whitstable (0023)","0023_thumb.jpg",130,102,1);thumbnails[2954959]=new thumbnail(2954959,"180917","Island Wall Whitstable (0024)","0024_thumb.jpg",130,173,1);thumbnails[2954977]=new thumbnail(2954977,"180917","Trees (8811)","8811_thumb.jpg",130,86,1);thumbnails[3062427]=new thumbnail(3062427,"180917","At Boords Farm Batcombe (2398)","2398 copy_thumb.jpg",130,86,1);thumbnails[3592931]=new thumbnail(3592931,"180917","Batcombe (2536)","2536_copy_thumb.jpg",130,86,1);thumbnails[3310979]=new thumbnail(3310979,"201532","Cross Trax Bishopstone","Cross Trax copy_thumb.jpg",130,98,1);thumbnails[3310988]=new thumbnail(3310988,"201532","MIST-ery Figures Bishopstone","MISTery Figures copy_thumb.jpg",130,98,1);thumbnails[3311011]=new thumbnail(3311011,"201532","Misty Walk<br>\r\nSt Mary's Church Reculver","Misty Walk copy_thumb.jpg",130,98,1);thumbnails[3325066]=new thumbnail(3325066,"201532","Memorial Park, Herne Bay (HW180)","HW180_copy_thumb.jpg",130,104,1);thumbnails[3305702]=new thumbnail(3305702,"201532","Memorial Park Bench (HW186 B+W)","HW 186 B+W copy1_thumb.jpg",130,98,1);thumbnails[3305720]=new thumbnail(3305720,"201532","Memorial Park, Herne Bay (HW202)","HW 202 fog copy1_thumb.jpg",130,98,1);var galleries=new Object();galleries[181117]=new gallery(181117,"3861198,3861104,3778667,3778639,3271385,2929196,2929194,2929029","Flowers","gallery",[2929029,2929194,2929196,3271385,3778639,3778667,3861104,3861198]);galleries[181116]=new gallery(181116,"2929171","Local scenes","gallery",[2929126,2929131,2929145,2929148,2929156,2929171,2954944,2954968,3104106,3271355,3271380,3271391,3271461,3557651,3588974,3861120,3861125,3861201,4285465,5624383,5624403]);galleries[181128]=new gallery(181128,"2929290","Miscellaneous","gallery",[2928987,2929142,2929245,2929246,2929290,2954957,2954966,3271392,3557714,3778672,3778675,3778682,3861129,4523796,4523801,5147953,5147956,5147957]);galleries[181115]=new gallery(181115,"2929248","Monochrome","gallery",[2929008,2929138,2929149,2929173,2929248,2929284,2955019,3271404,3861110]);galleries[181118]=new gallery(181118,"2929161,2928985","Wildlife","gallery",[2928932,2928985,2929161,2929292,2929293,2967891,3536319,3557631,3861112]);galleries[180916]=new gallery(180916,"2929125","Water","gallery",[2929125,2929128,2929129,2929133,2929134,2929136,2929304,2955008,3271407,3409621,3536397,5325881]);galleries[180917]=new gallery(180917,"2929251","Land","gallery",[2929250,2929251,2954950,2954959,2954977,3062427,3592931]);galleries[201532]=new gallery(201532,"3305702","Photography by Honor","gallery",[3310979,3310988,3311011,3325066,3305702,3305720]);var imageSets=new Object();imageSets[1]="3536319,3409621,2929134,2929133";imageSets[2]="3305702,2929290,2929251,2929248,2929171,2929161,2929125,2928985";imageSets[3]="5624403,5624383,5325881,5147957,5147956,5147953,4523801,4523796,4285465,3861201,3861198,3861129,3861125,3861120,3861112,3861110,3861104,3778682,3778675,3778672,3778667,3778639,3592931,3588974,3557714,3557651,3557631,3536397,3536319,3409621,3325066,3311011,3310988,3310979,3305720,3305702,3271461,3271407,3271404,3271392,3271391,3271385,3271380,3271355,3104106,3062427,2967891,2955019,2955008,2954977";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/olympusid/images";break}switch(a){case 1:b="http://www1.clikpic.com/olympusid/images";break}switch(a){case 2:b="http://admin.clikpic.com/olympusid/images";break}switch(a){case 24:b="http://tpc15/clikpic/olympusid/images";break}switch(a){case 4:b="http://www.clikchurch.com/olympusid/images";break}switch(a){case 5:b="http://www2.clikpic.com/olympusid/images";break}switch(a){case 22:b="http://tpc5/clikpic/olympusid/images";break}switch(a){case 23:b="http://tpc10/clikpic/olympusid/images";break}switch(a){case 25:b="http://tpc16/clikpic/olympusid/images";break}switch(a){case 15:b="http://www3.clikpic.com/olympusid/images";break}switch(a){case 18:b="http://www4.clikpic.com/olympusid/images";break}switch(a){case 19:b="http://www5.clikpic.com/olympusid/images";break}switch(a){case 31:b="http://www7.clikpic.com/olympusid/images";break}switch(a){case 32:b="http://admin2.clikpic.com/olympusid/images";break}switch(a){case 33:b="http://www8.clikpic.com/olympusid/images";break}switch(a){case 34:b="http://www9.clikpic.com/olympusid/images";break}switch(a){case 35:b="http://admin3.clikpic.com/olympusid/images";break}switch(a){case 37:b="http://admin4.clikpic.com/olympusid/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="Original Photographs by Ian Woollams: "+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].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 now using PayPal:</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 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="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="OLYMPUSID">';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+'")'})}}};