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[3708074]=new thumbnail(3708074,"310819","Grey Heron in full flight ","photo_header_thumb.jpg",130,88,32);thumbnails[4077827]=new thumbnail(4077827,"310820"," Stork with her young in the nest ","DSCF5151_web_thumb.jpg",130,92,32);thumbnails[4352927]=new thumbnail(4352927,"310820","Young storks plays on nest ","CN5748_copy_thumb.jpg",130,91,32);thumbnails[4388966]=new thumbnail(4388966,"310820","Storks sleep the night in tree,s","DSCF5785_copy_thumb.jpg",130,97,32);thumbnails[4534333]=new thumbnail(4534333,"310819","Squacco Heron in flight ","squacco_heron_web_thumb.jpg",130,108,32);thumbnails[4534339]=new thumbnail(4534339,"310819","Squacco Heron fishing on reeds ","squaccon_heron_in_reeds_copy1_thumb.jpg",130,110,32);thumbnails[4671818]=new thumbnail(4671818,"310819","Squacco Heron catching fish on the Vaya Lake","squacco_heron_feeds_on_fish_thumb.jpg",130,96,32);thumbnails[5154604]=new thumbnail(5154604,"310837","Great Spotted Woodpecker","15_web_thumb.jpg",130,87,32);thumbnails[5252699]=new thumbnail(5252699,"310865","Flock of Starlings on the move.","starlings_24_web_thumb.jpg",130,79,32);thumbnails[5252701]=new thumbnail(5252701,"310865","Siskin on tree branch","_siskin_web_thumb.jpg",130,140,32);thumbnails[5252710]=new thumbnail(5252710,"310837","Green Woodpecker. ","DSCF0004web_thumb.jpg",130,153,32);thumbnails[5252718]=new thumbnail(5252718,"310865","Black Redstart in garden ","45web_thumb.jpg",130,131,32);thumbnails[5491245]=new thumbnail(5491245,"310865","Brambling on snow covered winter ground","1001290035bramblingweb_thumb.jpg",130,85,32);thumbnails[5491679]=new thumbnail(5491679,"310819","Grey Heron with a watchfull eye.","01090901_84_thumb.jpg",130,184,32);thumbnails[5491708]=new thumbnail(5491708,"310819","Grey Heron by snow covered lake.","heron_in_the_snow_thumb.jpg",130,151,32);thumbnails[5491716]=new thumbnail(5491716,"310837","Great Spotted Woodpecker","woodpecker_42_web_thumb.jpg",130,130,32);thumbnails[5519642]=new thumbnail(5519642,"254084","Insight to Bulgaria Culture","front_page_1_thumb.jpg",130,72,32);thumbnails[5829593]=new thumbnail(5829593,"310819","Purple Heron in flight","Purple_Heron_in_Flight_web24_thumb.jpg",130,93,32);thumbnails[5829595]=new thumbnail(5829595,"310819","Kingfisher on reed","king_fisher_40_web_thumb.jpg",130,86,32);thumbnails[5829604]=new thumbnail(5829604,"310819","White Pelican in flight","White_Pelecan_12_web__thumb.jpg",130,98,32);thumbnails[5829610]=new thumbnail(5829610,"310819","Glossy Ibis in flight","Three_Glossy_Ibis_in_flight_web_52_thumb.jpg",130,74,32);thumbnails[5829612]=new thumbnail(5829612,"310819","Spoonbill in flight","Spoonbill_in_flight_web_59_thumb.jpg",130,87,32);thumbnails[5864488]=new thumbnail(5864488,"269216","Kekerov Den <br>\r\nThis Old pagan ritual is performed ever year earlyBulgarian first spring. ","1002260324yambol_web_copy_thumb.jpg",130,163,32);thumbnails[5995541]=new thumbnail(5995541,"310825","Egyptain Vulture in meadow on hillside.","Vulture_web__036_thumb.jpg",130,107,32);thumbnails[5995551]=new thumbnail(5995551,"310834","Bee Eater","bee_eater_0003_web__thumb.jpg",130,87,32);thumbnails[5995555]=new thumbnail(5995555,"310834","Bee Eaters ","Bee_Eater_web_0021_thumb.jpg",130,90,32);thumbnails[5995561]=new thumbnail(5995561,"310834","Bee Eater in flight","Bee_Eater_web_0004_thumb.jpg",130,87,32);thumbnails[5995563]=new thumbnail(5995563,"310834","European Roller ","European_Roller_web_028_thumb.jpg",130,95,32);thumbnails[5995569]=new thumbnail(5995569,"310825","High in the sky","DSC_0252_thumb.JPG",130,86,32);thumbnails[5995590]=new thumbnail(5995590,"310825","Little Owl ","Little_Owl_038_web__a__thumb.jpg",130,137,32);thumbnails[5995600]=new thumbnail(5995600,"310822","Woodchat Shrike ","Woodchat_shrike_web__037_thumb.jpg",130,90,32);thumbnails[5995620]=new thumbnail(5995620,"310865","Blue TiT ","1002040021blue_tit_web__thumb.jpg",130,156,32);thumbnails[5995704]=new thumbnail(5995704,"305944","Caspian Tern inflight ","Caspian_Tern_web__0191_thumb.jpg",130,88,32);thumbnails[5995816]=new thumbnail(5995816,"269216","Booking fee and balance payments","White_Storks_head__web_0704201063_thumb.jpg",130,87,32);thumbnails[6492420]=new thumbnail(6492420,"305944","Singing Swallow ","singing_wallow_web_008_thumb.jpg",130,170,32);thumbnails[2377698]=new thumbnail(2377698,"226607"," Damselfly by the river","damsfly_blue_web1_thumb.jpg",130,94,32);thumbnails[2377705]=new thumbnail(2377705,"226607","Butterfly on flower ","DSCF4410_thumb.jpg",130,90,32);thumbnails[3707964]=new thumbnail(3707964,"226607"," Lizard in the wild ","DSCF3738_thumb.JPG",130,87,32);thumbnails[4595445]=new thumbnail(4595445,"226607","Red dragonfly on reed","0308200901_25_thumb.JPG",130,92,32);thumbnails[4672329]=new thumbnail(4672329,"226607","Portrait of a cricket","cricket_thumb.jpg",130,106,32);thumbnails[4850277]=new thumbnail(4850277,"226607","Dragonfly in flight ","dragonfly_web_1_thumb.jpg",130,118,32);thumbnails[5495495]=new thumbnail(5495495,"226607","Dragonfly on flower ","dragonfly_web_thumb.jpg",130,87,32);thumbnails[6440244]=new thumbnail(6440244,"226607","Woodlands Brown in meadow","Small_Coopers__web_0041_thumb.jpg",130,128,32);thumbnails[2372936]=new thumbnail(2372936,"154309","Young bullocks relaxing in the sunshine down by the river.","DSCF1475web_thumb.jpg",130,86,32);thumbnails[2372974]=new thumbnail(2372974,"154309","Winter Hay: local farmer loads up his donkey cart <br>\r\n","DSCF1524web_thumb.jpg",130,115,32);thumbnails[2373054]=new thumbnail(2373054,"154309","Tank on hillside ","DSCF00342_thumb.jpg",130,97,32);thumbnails[2373324]=new thumbnail(2373324,"154309","Cows in river","DSCF1479web1_thumb.jpg",130,73,32);thumbnails[2377676]=new thumbnail(2377676,"154309","Just one of the many images you will see for the taking.","DSC_0046_thumb.jpg",130,86,32);thumbnails[2377688]=new thumbnail(2377688,"154309","Cow crossing the road in the town of Elhovo on his way home.","DSC_0007_thumb.jpg",130,86,32);thumbnails[2377783]=new thumbnail(2377783,"154309","Local cart in fishing town along black sea coast ","DSCF0132_thumb.jpg",130,91,32);thumbnails[2377893]=new thumbnail(2377893,"154309","Priests on their daily chores","DSCF0544_thumb.jpg",130,177,32);thumbnails[2377909]=new thumbnail(2377909,"154309","Russian van on road side ","DSC_0054_thumb.jpg",130,145,32);thumbnails[2377910]=new thumbnail(2377910,"154309","Horse by the road side in the village ","DSCF0601_thumb.jpg",130,132,32);thumbnails[2519887]=new thumbnail(2519887,"154309","Shot of a train in Yambol Train Station ","train1_thumb.jpg",130,88,32);thumbnails[3707970]=new thumbnail(3707970,"154309","Portrail of a lady ","DSCF3745_thumb.JPG",130,194,32);thumbnails[3717653]=new thumbnail(3717653,"154309","Local man working with sheep ","DSCF3691_thumb.JPG",130,88,32);thumbnails[3719020]=new thumbnail(3719020,"154309","Cutting wood ","wood_cutting_thumb.jpg",130,87,32);thumbnails[3719066]=new thumbnail(3719066,"154309","Cleaning the yard rubish ","lifestyle_thumb.jpg",130,116,32);thumbnails[3719097]=new thumbnail(3719097,"154309","Goats wait to in at the gate ","goats_wait_by_gate__thumb.jpg",130,92,32);thumbnails[4312487]=new thumbnail(4312487,"154309","Village day musicians. ","misician_intraditional_dress_thumb.jpg",130,142,32);thumbnails[5495662]=new thumbnail(5495662,"154309","Bulgarian women dance in the street","woman_during_bulgaria_dance__web_thumb.jpg",130,87,32);thumbnails[2519880]=new thumbnail(2519880,"154534","Sunflower in a field full of flowers .","sunflower_thumb.jpg",130,87,32);thumbnails[3717607]=new thumbnail(3717607,"154534","Water on flower head","water_on_yellow_viola_thumb.jpg",130,87,32);thumbnails[3717670]=new thumbnail(3717670,"154534","Colour full  flowers ","DSCF3520_thumb.JPG",130,87,32);thumbnails[3717675]=new thumbnail(3717675,"154534","Flower head","DSCF3529_thumb.JPG",130,87,32);thumbnails[4295740]=new thumbnail(4295740,"154534","White Flowers ","white_flowers_on_the_ground_thumb.jpg",130,87,32);thumbnails[4295753]=new thumbnail(4295753,"154534","Rose early in the morning dew","red_rose_head_thumb.jpg",130,87,32);thumbnails[4311131]=new thumbnail(4311131,"154534","Rose early in the morning ","red_rose_head1_thumb.jpg",130,87,32);thumbnails[2377832]=new thumbnail(2377832,"226608","Fishing village of Pomorie","DSC_0034_thumb.jpg",130,85,32);thumbnails[2377901]=new thumbnail(2377901,"226608","Gun emplacement on the hill","DSCF0562_thumb.jpg",130,102,32);thumbnails[2377902]=new thumbnail(2377902,"226608","Memorial on the hill","DSCF0576_thumb.jpg",130,63,32);thumbnails[2390543]=new thumbnail(2390543,"226608","Local Church ","DSCF1440_thumb.jpg",130,109,32);thumbnails[2690713]=new thumbnail(2690713,"226608","Evening setting sun ","DSCF6217web2_thumb.jpg",130,139,32);thumbnails[2690850]=new thumbnail(2690850,"226608","Early morning mist ","DSCF2120web_thumb.jpg",130,87,32);thumbnails[2698538]=new thumbnail(2698538,"226608","Red sky at night ","DSCF4539_thumb.JPG",130,87,32);thumbnails[3717447]=new thumbnail(3717447,"226608","Old and new buidlings stand side by side in the old town of Nessabar","DSCF3659_thumb.JPG",130,87,32);thumbnails[3717589]=new thumbnail(3717589,"226608","Reflections in the lake ","DSCF3651_thumb.JPG",130,87,32);thumbnails[3718041]=new thumbnail(3718041,"226608","Old farm house ","DSCF3762_thumb.JPG",130,87,32);thumbnails[3718863]=new thumbnail(3718863,"226608","Tree sunset ","DSCF3772_thumb.JPG",130,87,32);thumbnails[3719217]=new thumbnail(3719217,"226608","Old building agaist blue sky","building_against_blue_sky_thumb.jpg",130,87,32);thumbnails[5252735]=new thumbnail(5252735,"226608","Evening sun set","sunset_17_web_thumb.jpg",130,87,32);thumbnails[5434906]=new thumbnail(5434906,"226608","Afternoon light on a snowy day.","2010_0125tree_in_snowweb60013_thumb.jpg",130,164,32);thumbnails[5439388]=new thumbnail(5439388,"226608","Village snow ","2010_0125snow60002_web_thumb.jpg",130,90,32);thumbnails[5495910]=new thumbnail(5495910,"154386","Bulgarian Cottage ","our_house__thumb.jpg",130,104,32);var galleries=new Object();galleries[260834]=new gallery(260834,""," Signature Prints","section313915",[]);galleries[310834]=new gallery(310834,"5995551","Bee-eater and European Roller","section372535",[5995551,5995555,5995561,5995563]);galleries[310825]=new gallery(310825,"5995541","Birds Of Prey","section372535",[5995541,5995569,5995590]);galleries[314845]=new gallery(314845,"","Cliff,s Images","section377364",[]);galleries[269216]=new gallery(269216,"5995816,5864488","Holiday Payments.","section323916",[5864488,5995816]);galleries[310865]=new gallery(310865,"5491245,5252701","Mixed Birds","section372535",[5252699,5252701,5252718,5491245,5995620]);galleries[310822]=new gallery(310822,"5995600","Shrikes ","section372535",[5995600]);galleries[254084]=new gallery(254084,"5519642","Stock Library ","section307013",[5519642]);galleries[310820]=new gallery(310820,"4388966,4352927","Storks ","section372535",[4077827,4352927,4388966]);galleries[305944]=new gallery(305944,"5995704","Top Image","section366127",[5995704,6492420]);galleries[310819]=new gallery(310819,"5829593,4671818,4534333","Wetlands Birds","section372535",[3708074,4534333,4534339,4671818,5491679,5491708,5829593,5829595,5829604,5829610,5829612]);galleries[310837]=new gallery(310837,"5154604","Woodpeckers","section372535",[5154604,5252710,5491716]);galleries[226607]=new gallery(226607,"6440244,3707964","Insects","gallery",[2377698,2377705,3707964,4595445,4672329,4850277,5495495,6440244]);galleries[154309]=new gallery(154309,"3719066","Bulgaria Life","gallery",[2372936,2372974,2373054,2373324,2377676,2377688,2377783,2377893,2377909,2377910,2519887,3707970,3717653,3719020,3719066,3719097,4312487,5495662]);galleries[154534]=new gallery(154534,"4295753","Flowers ","gallery",[2519880,3717607,3717670,3717675,4295740,4295753,4311131]);galleries[226608]=new gallery(226608,"5439388","Landscapes ","gallery",[2377832,2377901,2377902,2390543,2690713,2690850,2698538,3717447,3717589,3718041,3718863,3719217,5252735,5434906,5439388]);galleries[154386]=new gallery(154386,"5495910","ACCOMMODATION","section197404",[5495910]);var imageSets=new Object();imageSets[1]="6440244,5519642";imageSets[2]="6440244,5995704,5995600,5995551,5995541,5829593,5491245,5439388,5252701,5154604,4671818,4534333,4388966,4352927,4295753,3719066,3707964";imageSets[3]="6492420,6440244,5995816,5995704,5995620,5995600,5995590,5995569,5995563,5995561,5995555,5995551,5995541,5864488,5829612,5829610,5829604,5829595,5829593,5519642,5495910,5495662,5495495,5491716,5491708,5491679,5491245,5439388,5434906,5252735,5252718,5252710,5252701,5252699,5154604,4850277,4672329,4671818,4595445,4534339,4534333,4388966,4352927,4312487,4311131,4295753,4295740,4077827,3719217,3719097";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/cliff/images";break}switch(a){case 1:b="http://www1.clikpic.com/cliff/images";break}switch(a){case 2:b="http://admin.clikpic.com/cliff/images";break}switch(a){case 24:b="http://tpc15/clikpic/cliff/images";break}switch(a){case 4:b="http://www.clikchurch.com/cliff/images";break}switch(a){case 5:b="http://www2.clikpic.com/cliff/images";break}switch(a){case 22:b="http://tpc5/clikpic/cliff/images";break}switch(a){case 23:b="http://tpc10/clikpic/cliff/images";break}switch(a){case 25:b="http://tpc16/clikpic/cliff/images";break}switch(a){case 15:b="http://www3.clikpic.com/cliff/images";break}switch(a){case 18:b="http://www4.clikpic.com/cliff/images";break}switch(a){case 19:b="http://www5.clikpic.com/cliff/images";break}switch(a){case 31:b="http://www7.clikpic.com/cliff/images";break}switch(a){case 32:b="http://admin2.clikpic.com/cliff/images";break}switch(a){case 33:b="http://www8.clikpic.com/cliff/images";break}switch(a){case 34:b="http://www9.clikpic.com/cliff/images";break}switch(a){case 35:b="http://admin3.clikpic.com/cliff/images";break}switch(a){case 37:b="http://admin4.clikpic.com/cliff/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("section372535"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section372535.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("section372535"!=""){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="Wildlife, Nature, Culture Landscape Photography";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 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="CLIFF">';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+'")'})}}};