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[2087606]=new thumbnail(2087606,"236341","Starry Tree Line","starrytree line_thumb.jpg.jpg",130,57,1);thumbnails[2231281]=new thumbnail(2231281,"236341","farndale blue tree line","farndale blue tree copy_thumb.jpg",130,51,1);thumbnails[2232361]=new thumbnail(2232361,"236341","farndale green tree line","farndale TREES IN MIST green copy_thumb.jpg",130,51,1);thumbnails[3891723]=new thumbnail(3891723,"236341","CELTIC CLOUD - Harland Moor","CELTIC_CLOUD_harland_moor_A3_copy_thumb.jpg",130,179,1);thumbnails[3891729]=new thumbnail(3891729,"236341","CELTIC SOIL - Levisham","CELTIC_SOIL_newton_dale_A1_84x17_thumb.jpg",130,27,1);thumbnails[3891731]=new thumbnail(3891731,"236341","FARNDALE MIST","FARNDALE_MIST_29cm_x_copy_thumb.jpg",130,40,1);thumbnails[3891735]=new thumbnail(3891735,"236341","GHOSTS OF CELTS - Lastingham","GHOSTS_OF_CELTS_A1_84X17_cm_copy_thumb.jpg",130,27,1);thumbnails[3891738]=new thumbnail(3891738,"236341","MAY HEDGELINE","MAY_HEDGE_LINE_A3_saturation_copy_thumb.jpg",130,90,1);thumbnails[3891744]=new thumbnail(3891744,"236341","STONES - Lastingham","STONES_Lastingham__A1_34x17_thumb.jpg",130,27,1);thumbnails[6006702]=new thumbnail(6006702,"147029","After Dark","After_Dark_Avebury_thumb.jpg",130,179,1);thumbnails[6006705]=new thumbnail(6006705,"147029","Together in Time","Avebury_mump__spirals_thumb.jpg",130,151,1);thumbnails[6006708]=new thumbnail(6006708,"147029","Tree Portal III - Avebury","doorway_2_CROP_SIDE_1_thumb.jpg",130,55,1);thumbnails[6007016]=new thumbnail(6007016,"147029","Family","family_thumb.jpg",130,55,1);thumbnails[6007125]=new thumbnail(6007125,"147029","Old Man Midnight Sun - Avebury","OLD_MAN_MIDNIGHT_SUN__thumb.jpg",130,313,1);thumbnails[6007179]=new thumbnail(6007179,"147029","Solar Midnight - Avebury","SOLAR_MIDNIGHT___thumb.jpg",130,174,1);thumbnails[6007258]=new thumbnail(6007258,"147029","Tree Portal II - Avebury","Tree_Portal______Avebury_thumb.jpg",130,126,1);thumbnails[6007262]=new thumbnail(6007262,"147029","Tree Portal I - Avebury","Tree_Portal____-__Avebury_thumb.jpg",130,159,1);thumbnails[6007264]=new thumbnail(6007264,"147029","Tree Portal V - Avebury","Tree_Portal___Avebury_thumb.jpg",130,47,1);thumbnails[6007266]=new thumbnail(6007266,"147029","Tree Portal IV - Avebury","Tree_Portal__-______Avebury_thumb.jpg",130,77,1);thumbnails[6007267]=new thumbnail(6007267,"147029","Tree Portal VII - Avebury","Tree_Portal_-_Avebury_thumb.jpg",130,61,1);thumbnails[6007269]=new thumbnail(6007269,"147029","Tree Portal IV - Avebury","Tree_Portal_Avebury_thumb.jpg",130,137,1);thumbnails[6007272]=new thumbnail(6007272,"147029","Tree Portal VIII - Avebury","Tree_Portal_Avebury1_thumb.jpg",130,67,1);thumbnails[6007284]=new thumbnail(6007284,"147029","Beyond - Avebury","Beyond1_thumb.jpg",130,54,1);thumbnails[2087650]=new thumbnail(2087650,"147029","Twisted Rowan","twistedrowan_thumb.jpg.jpg",130,103,1);thumbnails[2232163]=new thumbnail(2232163,"147029","new farndale doorway","new farndale doorway4 copy_thumb.jpg",130,94,1);thumbnails[2232308]=new thumbnail(2232308,"147029","starseed tree temple","starseed tree temple blue sky copy_thumb.jpg",130,130,1);thumbnails[2233289]=new thumbnail(2233289,"147029","farndale stone temple","stone-temple-doorway-Farnda_thumb.gif",130,179,1);thumbnails[4746263]=new thumbnail(4746263,"147029","Star Carr to Rudland Rig","clikpic_sized__watermarked_STAR_CARR_to_RUDLAND_RIG_-_Cammon_Stone_Summer_Camp_200_RES_thumb.jpg",130,86,1);thumbnails[4816888]=new thumbnail(4816888,"147029","Stone Temple Doorway - Farndale","STONE_TEMPLE_DOORWAY_for_CLIKPIC_thumb.jpg",130,53,1);thumbnails[5165138]=new thumbnail(5165138,"147029","Magnificent Rowan","magnificent_rowanfor_clikpic_thumb.jpg",130,87,1);thumbnails[5231900]=new thumbnail(5231900,"147029","as above so below","as_above_so_below_for_CLIKPIC_thumb.jpg",130,196,1);thumbnails[2087676]=new thumbnail(2087676,"139325","Big Pink Dog Rose","bigpinkdogrose_thumb.jpg",130,104,1);thumbnails[2087681]=new thumbnail(2087681,"139325","Black Lily","blacklilyincloseup_thumb.jpg.jpg",130,139,1);thumbnails[2087687]=new thumbnail(2087687,"139325","Daisy","daisy_thumb.jpg.jpg",130,98,1);thumbnails[2087700]=new thumbnail(2087700,"139325","Dark Lily","darklilyinsquare_thumb.jpg.jpg",130,130,1);thumbnails[2087703]=new thumbnail(2087703,"139325","Horsetail","horsetail_thumb.jpg.jpg",130,174,1);thumbnails[2087705]=new thumbnail(2087705,"139325","Lily & Roses","lily&roses_thumb.jpg.jpg",130,86,1);thumbnails[2087711]=new thumbnail(2087711,"139325","White Lily","whitelily_thumb.jpg.jpg",130,139,1);thumbnails[2231329]=new thumbnail(2231329,"139325","farndale daffodil - trumpet","DAFF TRUMPET copy_thumb.jpg",130,196,1);thumbnails[2231338]=new thumbnail(2231338,"139325","farndale daffodils - 2 daffodils","2 DAFFS copy_thumb.jpg",130,86,1);thumbnails[2232907]=new thumbnail(2232907,"139325","farndale daffodil group","farndale daffodil group_thumb.jpg",130,94,1);thumbnails[2233242]=new thumbnail(2233242,"139325","starry moss","star moss section1_thumb.jpg",130,135,1);thumbnails[2346389]=new thumbnail(2346389,"139325","field rose","dalby dog rose_thumb.jpg",130,196,1);thumbnails[2346408]=new thumbnail(2346408,"139325","red poppies","red poppies_thumb.jpg",130,86,1);thumbnails[2516242]=new thumbnail(2516242,"139325","snake's head (fritillaria meleagris)","fratillary_thumb.jpg",130,86,1);thumbnails[2665578]=new thumbnail(2665578,"139325","harebells","HAREBELLS copy_thumb.jpg",130,196,1);thumbnails[2665599]=new thumbnail(2665599,"139325","moor heather","heather 4 copy_thumb.jpg",130,331,1);thumbnails[5164978]=new thumbnail(5164978,"139325","Alpine Cornflower","Alpine_Cornflower_for_Clikpic1_thumb.jpg",130,196,1);thumbnails[5231904]=new thumbnail(5231904,"139325","Reichenau Flowers","REICHENAU_FLOWERS_for_clikpic_thumb.jpg",130,174,1);thumbnails[5332903]=new thumbnail(5332903,"139325","field bindweed (convolvulis avensis)","field_bindweed_convolvulis_avensis_for_clikpik_thumb.jpg",130,86,1);thumbnails[2087354]=new thumbnail(2087354,"133469","Beech Shadows","beechshadows_thumb.jpg.jpg",130,173,1);thumbnails[2087448]=new thumbnail(2087448,"133469","Low Sycamore Tree Line","lowsycamoretreeline_thumb.jpg.jpg",130,86,1);thumbnails[2087597]=new thumbnail(2087597,"133469","Pink Horizon","pinkhorizon_thumb.jpg.jpg",130,196,1);thumbnails[2087670]=new thumbnail(2087670,"133469","Winter Treeline","wintertreelin_thumb.jpg.jpg",130,182,1);thumbnails[2087719]=new thumbnail(2087719,"133469","Moon Tree Line","moontreeline_thumb.jpg.jpg",130,91,1);thumbnails[2346410]=new thumbnail(2346410,"133469","twisted oak, Farndale","twisted tree_thumb.jpg",130,196,1);thumbnails[2516247]=new thumbnail(2516247,"133469","frosted trees 1","frosted trees 3 enhanced_thumb.jpg",130,74,1);thumbnails[2516248]=new thumbnail(2516248,"133469","frosted trees","frosted 2-trees copy_thumb.jpg",130,89,1);thumbnails[3891741]=new thumbnail(3891741,"133469","SPOOK FAIRY TREE","sppok_tree_TO_GO_-_Copy_copy_thumb.jpg",130,196,1);thumbnails[5164992]=new thumbnail(5164992,"133469","Chalice Well Holy Thorn, Winter Solstice","chalice_thorn_for_clikpic_thumb.jpg",130,94,1);thumbnails[2087461]=new thumbnail(2087461,"236357","oak leaves","oakleaves_thumb.jpg.jpg",130,98,1);thumbnails[2231057]=new thumbnail(2231057,"236357","","HOLLY copy_thumb.jpg",130,130,1);thumbnails[2231289]=new thumbnail(2231289,"236357","holly & red berries","holly 5_thumb.4x8.jpg",130,83,1);thumbnails[2231290]=new thumbnail(2231290,"236357","dark holly","holly6 10 x 9 copy_thumb.jpg",130,117,1);thumbnails[2231353]=new thumbnail(2231353,"236357","new sycamore leaves","new leaf 3contrast accented edges copy1_thumb.jpg",130,196,1);thumbnails[2232896]=new thumbnail(2232896,"236357","dark pine tip","dark pine tip_thumb.jpg",130,196,1);thumbnails[2232904]=new thumbnail(2232904,"236357","green pine tip","pine tip green_thumb.jpg",130,196,1);thumbnails[2232917]=new thumbnail(2232917,"236357","new sycamore leaf 2","new sycamore leaf 2_thumb.jpg",130,86,1);thumbnails[5231902]=new thumbnail(5231902,"236357","holly spirit","holly_SPIRIT__for_clikpic_thumb.jpg",130,195,1);thumbnails[5231903]=new thumbnail(5231903,"236357","Into Earth","INTO_EARTH_for_clkpic_thumb.jpg",130,97,1);thumbnails[2231052]=new thumbnail(2231052,"236357","dalby beech leaves","new single leaf against sun contrast copy_thumb.jpg",130,130,1);thumbnails[2231147]=new thumbnail(2231147,"147028","chakras","chakras 2 copy_thumb.jpg",130,205,1);thumbnails[2231149]=new thumbnail(2231149,"147028","air","AIR copy_thumb.jpg",130,120,1);thumbnails[2231150]=new thumbnail(2231150,"147028","gaia","gaia watercolour iwith edges copy_thumb.jpg",130,205,1);thumbnails[2231151]=new thumbnail(2231151,"147028","all life is sacred","alllifeissacred WATERCOLOUR copy_thumb.jpg",130,189,1);thumbnails[2231211]=new thumbnail(2231211,"147028","beltaine / may day","beltaine watercolour copy_thumb.jpg",130,189,1);thumbnails[2231214]=new thumbnail(2231214,"147028","contentment","contentment copy_thumb.jpg",130,163,1);thumbnails[2233248]=new thumbnail(2233248,"147028","the_sun.jpg","THE SUN 150res cleaned up copy_thumb.jpg",130,130,1);thumbnails[2542284]=new thumbnail(2542284,"147028","Moon Goddess","moongodess 450 + watermark_thumb.jpg",130,180,1);thumbnails[2556072]=new thumbnail(2556072,"147028","Boudica","boudica_thumb.jpg",130,306,1);thumbnails[2087168]=new thumbnail(2087168,"130467","FIRE","fire_thumb.jpg.jpg",130,130,1);thumbnails[2087255]=new thumbnail(2087255,"130467","AIR ","air_thumb.jpg",130,130,1);thumbnails[2087272]=new thumbnail(2087272,"130467","EARTH ","earth_thumb.jpg.jpg",130,141,1);thumbnails[2087343]=new thumbnail(2087343,"130467","WATER ","water_thumb.jpg.jpg",130,130,1);thumbnails[5231901]=new thumbnail(5231901,"130467","candle glow","candle_glow_for_clikpic_thumb.jpg",130,195,1);thumbnails[2516240]=new thumbnail(2516240,"152913","breakthrough","breakthrough sized copy_thumb.jpg",130,126,1);var galleries=new Object();galleries[236341]=new gallery(236341,"3891744,3891738,3891735,3891731,3891729,3891723,2232361,2231281,2087606","TREE LINES","gallery",[2087606,2231281,2232361,3891723,3891729,3891731,3891735,3891738,3891744]);galleries[147029]=new gallery(147029,"6007284,6007272,6007269,6007267,6007266,6007264,6007262,6007258,6007179,6007125","Stones & Earth Temples","gallery",[6006702,6006705,6006708,6007016,6007125,6007179,6007258,6007262,6007264,6007266,6007267,6007269,6007272,6007284,2087650,2232163,2232308,2233289,4746263,4816888,5165138,5231900]);galleries[139325]=new gallery(139325,"5332903,5231904,5164978,2665599,2665578,2516242,2346408,2346389,2233242,2232907","Flowers","gallery",[2087676,2087681,2087687,2087700,2087703,2087705,2087711,2231329,2231338,2232907,2233242,2346389,2346408,2516242,2665578,2665599,5164978,5231904,5332903]);galleries[133469]=new gallery(133469,"5164992,3891741,2516248,2516247,2346410,2087719,2087670,2087597,2087448,2087354","Trees","gallery",[2087354,2087448,2087597,2087670,2087719,2346410,2516247,2516248,3891741,5164992]);galleries[236357]=new gallery(236357,"5231903,5231902,2232917,2232904,2232896,2231353,2231290,2231289,2231057,2231052","LEAVES","gallery",[2087461,2231057,2231289,2231290,2231353,2232896,2232904,2232917,5231902,5231903,2231052]);galleries[147028]=new gallery(147028,"2556072,2542284,2233248,2231214,2231211,2231151,2231150,2231149,2231147","starseed divination","gallery",[2231147,2231149,2231150,2231151,2231211,2231214,2233248,2542284,2556072]);galleries[130467]=new gallery(130467,"5231901,2087343,2087272,2087255,2087168","Elements","gallery",[2087168,2087255,2087272,2087343,5231901]);galleries[152913]=new gallery(152913,"2516240","Painting","gallery",[2516240]);var imageSets=new Object();imageSets[1]="6007284,6007272,6007269,6007267,6007266,6007264,6007262,6007258,6007179,6007125,6007016,6006708,6006705,6006702,3891741";imageSets[3]="6007284,6007272,6007269,6007267,6007266,6007264,6007262,6007258,6007179,6007125,6007016,6006708,6006705,6006702,5332903,5231904,5231903,5231902,5231901,5231900,5165138,5164992,5164978,4816888,4746263,3891744,3891741,3891738,3891735,3891731,3891729,3891723,2665599,2665578,2556072,2542284,2516248,2516247,2516242,2516240,2346410,2346408,2346389,2233289,2233248,2233242,2232917,2232907,2232904,2232896";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/mariasilmon/images";break}switch(a){case 1:b="http://www1.clikpic.com/mariasilmon/images";break}switch(a){case 2:b="http://admin.clikpic.com/mariasilmon/images";break}switch(a){case 24:b="http://tpc15/clikpic/mariasilmon/images";break}switch(a){case 4:b="http://www.clikchurch.com/mariasilmon/images";break}switch(a){case 5:b="http://www2.clikpic.com/mariasilmon/images";break}switch(a){case 22:b="http://tpc5/clikpic/mariasilmon/images";break}switch(a){case 23:b="http://tpc10/clikpic/mariasilmon/images";break}switch(a){case 25:b="http://tpc16/clikpic/mariasilmon/images";break}switch(a){case 15:b="http://www3.clikpic.com/mariasilmon/images";break}switch(a){case 18:b="http://www4.clikpic.com/mariasilmon/images";break}switch(a){case 19:b="http://www5.clikpic.com/mariasilmon/images";break}switch(a){case 31:b="http://www7.clikpic.com/mariasilmon/images";break}switch(a){case 32:b="http://admin2.clikpic.com/mariasilmon/images";break}switch(a){case 33:b="http://www8.clikpic.com/mariasilmon/images";break}switch(a){case 34:b="http://www9.clikpic.com/mariasilmon/images";break}switch(a){case 35:b="http://admin3.clikpic.com/mariasilmon/images";break}switch(a){case 37:b="http://admin4.clikpic.com/mariasilmon/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="Maria Silmon: "+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>"}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="MARIASILMON">';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+'")'})}}};