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[1505152]=new thumbnail(1505152,"103414","Compactor","compactor_thumb.jpg",130,155,1);thumbnails[1505159]=new thumbnail(1505159,"103414","Windscreen","windscreen_thumb.jpg",130,107,1);thumbnails[1505161]=new thumbnail(1505161,"103414","Cabs","cabs_thumb.jpg",130,129,1);thumbnails[1505166]=new thumbnail(1505166,"103414","Scraper","planer_thumb.jpg",130,159,1);thumbnails[1505173]=new thumbnail(1505173,"103424","The wicked generation","croick_thumb.jpg",130,186,1);thumbnails[1505245]=new thumbnail(1505245,"103414","Runway","runway_thumb.jpg",130,258,1);thumbnails[1505246]=new thumbnail(1505246,"103414","Crane and cow parsley","crane_thumb.jpg",130,179,1);thumbnails[1505247]=new thumbnail(1505247,"103414","Caterpillars","caterpillars_thumb.jpg",130,73,1);thumbnails[1505420]=new thumbnail(1505420,"103424","Construction","construction_thumb.jpg",130,84,1);thumbnails[1505422]=new thumbnail(1505422,"103424","Croick Church","construction2_thumb.jpg",130,92,1);thumbnails[1505423]=new thumbnail(1505423,"103414","Crane","crane2_thumb.jpg",130,100,1);thumbnails[1505424]=new thumbnail(1505424,"103424","Snowdomes","snowdomes_thumb.jpg",130,47,1);thumbnails[1527229]=new thumbnail(1527229,"103424","Path to Croick church","path_thumb.jpg",130,131,1);thumbnails[1972561]=new thumbnail(1972561,"149785","March hare","bella-in-the-snow_thumb.jpg",130,97,1);thumbnails[1973060]=new thumbnail(1973060,"132599","Altered book","eye_in_a_book_thumb.jpg",130,107,1);thumbnails[1973064]=new thumbnail(1973064,"132599","Glass book","glass_book_thumb.jpg",130,68,1);thumbnails[1973066]=new thumbnail(1973066,"132599","Haiku","haiku_thumb.jpg",130,87,1);thumbnails[1973070]=new thumbnail(1973070,"132599","Organ of beholding","organ-of-beholding_thumb.jpg",130,92,1);thumbnails[1973073]=new thumbnail(1973073,"132599","Unreadable book","unreadable_thumb.jpg",130,75,1);thumbnails[1973074]=new thumbnail(1973074,"132599","Wooden book","wooden_book_thumb.jpg",130,131,1);thumbnails[1973479]=new thumbnail(1973479,"149785","Bella drawings","bella_drawings_thumb.jpg",130,135,1);thumbnails[2024059]=new thumbnail(2024059,"135669","Rooks with sturdy walk","rook-drawing_thumb.jpg",130,130,1);thumbnails[2024260]=new thumbnail(2024260,"135669","Hares came to the door in the evening","moonlighthare_thumb.jpg",130,130,1);thumbnails[2024400]=new thumbnail(2024400,"135669","Rooks now make desperate attacks","rooks_thumb.jpg",130,130,1);thumbnails[2120287]=new thumbnail(2120287,"135669","With full grass, the flock will thrive apace.","lambs_thumb.jpg",130,130,1);thumbnails[2152044]=new thumbnail(2152044,"132589","Stag skull","stag-skull-symmetrical-with_thumb.jpg",130,130,1);thumbnails[2274434]=new thumbnail(2274434,"149785","Bella drawing 2","bella-drawing-2_thumb.jpg",130,90,1);thumbnails[2279402]=new thumbnail(2279402,"135669","The repose of nature","layered-symmetrical-sunset_thumb.jpg",130,184,1);thumbnails[2623836]=new thumbnail(2623836,"149785","Bella dreaming","bella-dreaming_thumb.jpg",130,120,1);thumbnails[2841648]=new thumbnail(2841648,"135669","Hares came to the door in the evening 2.","hares-came-to-the-door-in-t_thumb.jpg",130,130,1);thumbnails[3080413]=new thumbnail(3080413,"149785","Bella and Mig","bella-and-mig-001_thumb.jpg",130,129,1);thumbnails[3192526]=new thumbnail(3192526,"132599","The Helmsdale Kelpie","kelpie-book_thumb.jpg",130,130,1);thumbnails[3293580]=new thumbnail(3293580,"132599","Conceptual book","conceptual-book_thumb.jpg",130,130,1);thumbnails[3572557]=new thumbnail(3572557,"132599","Fingerprints","fingerprints_thumb.jpg",130,184,1);thumbnails[3655243]=new thumbnail(3655243,"132589","The Clootie Well","clootie-well_thumb.jpg",130,181,1);thumbnails[3844085]=new thumbnail(3844085,"149785","Bella 3","bella-3_thumb.jpg",130,130,1);thumbnails[4435876]=new thumbnail(4435876,"259495","The phone box","phone-box_thumb.jpg",130,179,1);thumbnails[4435883]=new thumbnail(4435883,"259495","Stack bothy","stack-bothy_thumb.jpg",130,92,1);thumbnails[4435886]=new thumbnail(4435886,"259495","The stables","stables_thumb.jpg",130,92,1);thumbnails[4435891]=new thumbnail(4435891,"259495","The school","school_thumb.jpg",130,92,1);thumbnails[5773128]=new thumbnail(5773128,"149785","Bella belissima","bella-belissima_thumb.gif",130,167,1);thumbnails[5773130]=new thumbnail(5773130,"149785","Bella among the daffodils","bella-in-the-daffodils_thumb.gif",130,171,1);thumbnails[5773133]=new thumbnail(5773133,"326971","In the wake of the plough","corvids-in-the-wake-of-the-_thumb.gif",130,130,1);thumbnails[5773135]=new thumbnail(5773135,"326971","Thought and Memory","corvids-thought-and-memory_thumb.gif",130,97,1);thumbnails[5773140]=new thumbnail(5773140,"326971","Thrice the life of a stag","corvids-thrice-the-life_thumb.gif",130,111,1);thumbnails[4416391]=new thumbnail(4416391,"258706","Oak","oak_thumb.jpg",130,93,1);thumbnails[4416126]=new thumbnail(4416126,"258706","Clear felling, West Shinness","clear-felling_thumb.jpg",130,259,1);thumbnails[1505147]=new thumbnail(1505147,"258706","Dog kennel, Culgower Wood","dog-kennel_thumb.jpg",130,196,1);thumbnails[4416390]=new thumbnail(4416390,"258706","Major Oak and three birches","major-oak_thumb.jpg",130,103,1);thumbnails[3027782]=new thumbnail(3027782,"258706","Dark energy","dark-energy_2_thumb.jpg",130,225,1);thumbnails[4416150]=new thumbnail(4416150,"258706","Inverewe pines","inverewe-pines_thumb.jpg",130,204,1);thumbnails[4435583]=new thumbnail(4435583,"258706","Beech:book","beech-book_thumb.jpg",130,91,1);thumbnails[4415963]=new thumbnail(4415963,"258706","Tapestried about with rags","clootie-well-munlochy_thumb.jpg",130,259,1);thumbnails[1972585]=new thumbnail(1972585,"258706","Coll","hazel_thumb.jpg",130,130,1);thumbnails[4435585]=new thumbnail(4435585,"258706","Bowthorpe oak","bowthorpe-oak_thumb.jpg",130,65,1);thumbnails[4435589]=new thumbnail(4435589,"258706","Stag in the spinney","stag-in-the-spinney_thumb.jpg",130,130,1);thumbnails[4435594]=new thumbnail(4435594,"258706","Clipsham Yew Avenue","clipsham_thumb.jpg",130,130,1);thumbnails[4435598]=new thumbnail(4435598,"258706","The chancel<br>\r\nTree cathedral, Whipsnade","tree-cathedral_thumb.jpg",130,130,1);thumbnails[4435601]=new thumbnail(4435601,"258706","The Hermitage","hermitage_thumb.jpg",130,130,1);thumbnails[4435604]=new thumbnail(4435604,"258706","Rhododendron<br>\r\nInverewe Gardens, Wester Ross","rhododendron_thumb.jpg",130,130,1);thumbnails[4416136]=new thumbnail(4416136,"258706","Gaelic tree alphabet<br>\r\na: ailm: elm","elm_thumb.jpg",130,130,1);thumbnails[4416141]=new thumbnail(4416141,"258706","Gaelic tree alphabet<br>\r\nh: uath: hawthorn","hawthorn_thumb.jpg",130,130,1);thumbnails[5773116]=new thumbnail(5773116,"258706","Gaelic tree alphabet d: dair: oak","tree-alphabet-oak_thumb.gif",130,130,1);thumbnails[4416154]=new thumbnail(4416154,"258706","Gaelic tree alphabet<br>\r\ng: gort: ivy","ivy_thumb.jpg",130,130,1);thumbnails[4416438]=new thumbnail(4416438,"258706","Gaelic tree alphabet<br>\r\nl: luis: rowan","rowan1_thumb.jpg",130,130,1);thumbnails[4416142]=new thumbnail(4416142,"258706","Gaelic tree alphabet<br>\r\nu: urr: heather","heather_thumb.jpg",130,130,1);thumbnails[4416441]=new thumbnail(4416441,"258706","Gaelic tree alphabet<br>\r\no: onn: whin","whin_thumb.jpg",130,130,1);thumbnails[4416443]=new thumbnail(4416443,"258706","Winter trees, Big Burn","winter-trees-big-burn_thumb.jpg",130,202,1);thumbnails[4416096]=new thumbnail(4416096,"258706","Autumn beech, Big Burn, Golspie","autumn-beech_thumb.jpg",130,130,1);thumbnails[4416104]=new thumbnail(4416104,"258706","Caledonian pine, Glen Affric","caledonian-pine_thumb.jpg",130,260,1);thumbnails[4416128]=new thumbnail(4416128,"258706","Collocation","collocation_thumb.jpg",130,236,1);thumbnails[4416130]=new thumbnail(4416130,"258706","Covert oaks","covert-oaks_thumb.jpg",130,195,1);thumbnails[4416156]=new thumbnail(4416156,"258706","January sunrise","january-sunrise_thumb.jpg",130,195,1);thumbnails[4416388]=new thumbnail(4416388,"258706","Jim's whin bush","jims-whin-bush_thumb.jpg",130,179,1);thumbnails[4416392]=new thumbnail(4416392,"258706","Resurgam","resurgam_thumb.jpg",130,195,1);thumbnails[4416138]=new thumbnail(4416138,"258706","Full circle","full-circle_thumb.jpg",130,93,1);thumbnails[1505419]=new thumbnail(1505419,"132599","Addie's","book_thumb.jpg",130,87,1);thumbnails[3655239]=new thumbnail(3655239,"101540","The Foreshadowing: sgarbh an sgumain","foreshadowing_thumb.jpg",130,182,1);thumbnails[3655253]=new thumbnail(3655253,"101540","Pal'imp-sest","palimp-sest_thumb.jpg",130,130,1);thumbnails[1502105]=new thumbnail(1502105,"101540","Stove at Addie's","stove_thumb.jpg",130,130,1);thumbnails[1505244]=new thumbnail(1505244,"101540","Window at Addie's","window_thumb.jpg",130,182,1);thumbnails[1505171]=new thumbnail(1505171,"101540","Broken window","broken_thumb.jpg",130,184,1);thumbnails[1505206]=new thumbnail(1505206,"101540","Installation at Addie's","installation_thumb.jpg",130,167,1);thumbnails[1505241]=new thumbnail(1505241,"101540","Prizes","prizes_thumb.jpg",130,90,1);thumbnails[1505170]=new thumbnail(1505170,"101540","Steading","steading_thumb.jpg",130,101,1);thumbnails[1505172]=new thumbnail(1505172,"101540","Cheese press","cheesepress_thumb.jpg",130,91,1);thumbnails[1505148]=new thumbnail(1505148,"101540","Black river","blackriver_thumb.jpg",130,130,1);thumbnails[1505168]=new thumbnail(1505168,"101540","Clach Mhic Mhios","clach_thumb.jpg",130,262,1);thumbnails[1512695]=new thumbnail(1512695,"101540","Glen Loth triptych","triptych_thumb.jpg",130,80,1);thumbnails[1508320]=new thumbnail(1508320,"101540","January sunrise 2","sunrise21_thumb.jpg",130,173,1);thumbnails[1508309]=new thumbnail(1508309,"101540","Helmsdale harbour","harbour_thumb.jpg",130,91,1);thumbnails[1527226]=new thumbnail(1527226,"101540","Kildonan church","kildonan_thumb.jpg",130,134,1);thumbnails[1527223]=new thumbnail(1527223,"101540","Post office","postoffice_thumb.jpg",130,130,1);var galleries=new Object();galleries[259495]=new gallery(259495,"4435891,4435886,4435883,4435876","Achfary","gallery",[4435876,4435883,4435886,4435891]);galleries[103414]=new gallery(103414,"1505246,1505245,1505166,1505161,1505159,1505152","Airfield","gallery",[1505152,1505159,1505161,1505166,1505245,1505246,1505247,1505423]);galleries[258706]=new gallery(258706,"5773116,4435604,4435601,4435598,4435594,4435589,4435585,4435583,4416443,4416441,4416438,4416392,4416391,4416390,4416388,4416156,4416154,4416150,4416142,4416141,4416138,4416136,4416128,4416126,4416104,4416096,4415963,3027782,1972585,1505147","Arboreal","gallery",[4416391,4416126,1505147,4416390,3027782,4416150,4435583,4415963,1972585,4435585,4435589,4435594,4435598,4435601,4435604,4416136,4416141,5773116,4416154,4416438,4416142,4416441,4416443,4416096,4416104,4416128,4416130,4416156,4416388,4416392,4416138]);galleries[132599]=new gallery(132599,"3572557,3293580,3192526,1973074,1973073,1973066,1973064,1973060,1505419","Artist's books","gallery",[1973060,1973064,1973066,1973070,1973073,1973074,3192526,3293580,3572557,1505419]);galleries[149785]=new gallery(149785,"5773128,3844085,3080413,2623836,2274434,1973479,1972561","Bella","gallery",[1972561,1973479,2274434,2623836,3080413,3844085,5773128,5773130]);galleries[135669]=new gallery(135669,"2841648,2279402,2120287,2024400,2024260,2024059","Book of the Farm","gallery",[2024059,2024260,2024400,2120287,2279402,2841648]);galleries[326971]=new gallery(326971,"5773140,5773135","Corvids","gallery",[5773133,5773135,5773140]);galleries[103424]=new gallery(103424,"1527229,1505424,1505420,1505173","Croick Church","gallery",[1505173,1505420,1505422,1505424,1527229]);galleries[132589]=new gallery(132589,"3655243,2152044","Miscellaneous","gallery",[2152044,3655243]);galleries[103423]=new gallery(103423,"4435891,4435886,4435883,4435876,3655253,3655239,1527229,1527223,1505424,1505420,1505244,1505241,1505206,1505173,1505172,1505171,1505170,1505168,1505148,1502105","Northern Highlands","gallery",[]);galleries[101540]=new gallery(101540,"3655253,3655239,1527223,1505244,1505241,1505206,1505172,1505171,1505170,1505168,1505148,1502105","Loth and Helmsdale","gallery",[3655239,3655253,1502105,1505244,1505171,1505206,1505241,1505170,1505172,1505148,1505168,1512695,1508320,1508309,1527226,1527223]);var imageSets=new Object();imageSets[1]="5773128,4435604,4435601,4435594,4416443,4416438,4416391,4416390,4416388,4416154,4416141,4416138,4416136,4416128,4416126,4416104,4415963,3027782,1972585,1505147";imageSets[2]="5773140,5773135,5773128,5773116,4435891,4435886,4435883,4435876,4435604,4435601,4435598,4435594,4435589,4435585,4435583,4416443,4416441,4416438,4416392,4416391,4416390,4416388,4416156,4416154,4416150,4416142,4416141,4416138,4416136,4416128,4416126,4416104,4416096,4415963,3844085,3655253,3655243,3655239,3572557,3293580,3192526,3080413,3027782,2841648,2623836,2279402,2274434,2152044,2120287,2024400,2024260,2024059,1973479,1973074,1973073,1973066,1973064,1973060,1972585,1972561,1527229,1527223,1505424,1505420,1505419,1505246,1505245,1505244,1505241,1505206,1505173,1505172,1505171,1505170,1505168,1505166,1505161,1505159,1505152,1505148,1505147,1502105";imageSets[3]="5773140,4435604,4435601,4435598,4435594,4435589,4435585,4416443,4416438,4416391,4416390,4416388,4416156,4416154,4416141,4416138,4416136,4416128,4416126,4416104,4416096,4415963,3027782,1972585,1505147";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/suziemack/images";break}switch(a){case 1:b="http://www1.clikpic.com/suziemack/images";break}switch(a){case 2:b="http://admin.clikpic.com/suziemack/images";break}switch(a){case 24:b="http://tpc15/clikpic/suziemack/images";break}switch(a){case 4:b="http://www.clikchurch.com/suziemack/images";break}switch(a){case 5:b="http://www2.clikpic.com/suziemack/images";break}switch(a){case 22:b="http://tpc5/clikpic/suziemack/images";break}switch(a){case 23:b="http://tpc10/clikpic/suziemack/images";break}switch(a){case 25:b="http://tpc16/clikpic/suziemack/images";break}switch(a){case 15:b="http://www3.clikpic.com/suziemack/images";break}switch(a){case 18:b="http://www4.clikpic.com/suziemack/images";break}switch(a){case 19:b="http://www5.clikpic.com/suziemack/images";break}switch(a){case 31:b="http://www7.clikpic.com/suziemack/images";break}switch(a){case 32:b="http://admin2.clikpic.com/suziemack/images";break}switch(a){case 33:b="http://www8.clikpic.com/suziemack/images";break}switch(a){case 34:b="http://www9.clikpic.com/suziemack/images";break}switch(a){case 35:b="http://admin3.clikpic.com/suziemack/images";break}switch(a){case 37:b="http://admin4.clikpic.com/suziemack/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="Suzie MacKenzie Fine Art: "+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>"}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+'")'})}}};