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[4619847]=new thumbnail(4619847,"267047","Whale ","whale06_thumb.jpg",130,200,15);thumbnails[5433363]=new thumbnail(5433363,"294338","","UL18_thumb.jpg",130,87,15);thumbnails[5549190]=new thumbnail(5549190,"314458","Lancaster Road ","ADSN03_thumb.jpg",130,107,15);thumbnails[5952979]=new thumbnail(5952979,"335926","Headlands 01","headland01_960E3871-1D09-001F-99394784120CEBE8_thumb.jpg",130,190,15);thumbnails[4625156]=new thumbnail(4625156,"267047","Whale","whale05_thumb.jpg",130,200,15);thumbnails[5215878]=new thumbnail(5215878,"294338","","UL08_thumb.jpg",130,104,15);thumbnails[5549195]=new thumbnail(5549195,"314458","Clarence Road","ADSN04_thumb.jpg",130,104,15);thumbnails[5952978]=new thumbnail(5952978,"335926","Blackhall 01","blackhallrocks04_thumb.jpg",130,190,15);thumbnails[4625154]=new thumbnail(4625154,"267047","Whale","whale04_thumb.jpg",130,203,15);thumbnails[5433365]=new thumbnail(5433365,"294338","","UL16_thumb.jpg",130,90,15);thumbnails[5549194]=new thumbnail(5549194,"314458","Middeton Road","ADSN07_thumb.jpg",130,105,15);thumbnails[5952980]=new thumbnail(5952980,"335926","Headlands 02","headland02_thumb.jpg",130,190,15);thumbnails[4619845]=new thumbnail(4619845,"267047","Whale ","whale02_thumb.jpg",130,83,15);thumbnails[5215879]=new thumbnail(5215879,"294338","","UL09_thumb.jpg",130,100,15);thumbnails[5549197]=new thumbnail(5549197,"314458","Wyndermere Road","ADSN08_thumb.jpg",130,108,15);thumbnails[5952976]=new thumbnail(5952976,"335926","Blackhall 02","blackhallrocks01_thumb.jpg",130,193,15);thumbnails[4619846]=new thumbnail(4619846,"267047","Whale ","whale03_thumb.jpg",130,84,15);thumbnails[5433362]=new thumbnail(5433362,"294338","","UL19_thumb.jpg",130,87,15);thumbnails[5549192]=new thumbnail(5549192,"314458","Stranton Road","ADSN11_thumb.jpg",130,106,15);thumbnails[5952981]=new thumbnail(5952981,"335926","Headlands 03","headland03_thumb.jpg",130,191,15);thumbnails[4619848]=new thumbnail(4619848,"267047","Whale ","whale09_thumb.jpg",130,84,15);thumbnails[5215880]=new thumbnail(5215880,"294338","","UL10_thumb.jpg",130,88,15);thumbnails[5549196]=new thumbnail(5549196,"314458","Raby Road","ADSN14_thumb.jpg",130,105,15);thumbnails[5952977]=new thumbnail(5952977,"335926","Blackhall 03","blackhallrocks02_thumb.jpg",130,187,15);thumbnails[4625159]=new thumbnail(4625159,"267047","Whale ","whale07_thumb.jpg",130,83,15);thumbnails[5433366]=new thumbnail(5433366,"294338","","UL15_thumb.jpg",130,88,15);thumbnails[5549198]=new thumbnail(5549198,"314458","York Road","ADSN15_thumb.jpg",130,105,15);thumbnails[5952985]=new thumbnail(5952985,"335926","Headlands 04","headland04_thumb.jpg",130,190,15);thumbnails[4625161]=new thumbnail(4625161,"267047","Whale ","whale08_thumb.jpg",130,81,15);thumbnails[5215872]=new thumbnail(5215872,"294338","","UL02_thumb.jpg",130,89,15);thumbnails[5549191]=new thumbnail(5549191,"314458","Stockton Road","ADSN17_thumb.jpg",130,105,15);thumbnails[5952975]=new thumbnail(5952975,"335926","Blackhall 04","balckhallrocks03_thumb.jpg",130,191,15);thumbnails[5433364]=new thumbnail(5433364,"294338","","UL17_thumb.jpg",130,89,15);thumbnails[5215882]=new thumbnail(5215882,"294338","","UL12_thumb.jpg",130,87,15);thumbnails[5433369]=new thumbnail(5433369,"294338","","UL14_thumb.jpg",130,88,15);thumbnails[5215875]=new thumbnail(5215875,"294338","","UL05_thumb.jpg",130,100,15);thumbnails[3965994]=new thumbnail(3965994,"239049","Dancing Faerie ","faeries01-_thumb.jpg",130,190,15);thumbnails[3965997]=new thumbnail(3965997,"239049","Faerie of Bolingbroke Castle ","faeries02_thumb.jpg",130,194,15);thumbnails[3965998]=new thumbnail(3965998,"239049","Sleeping Faerie ","faeries03_thumb.jpg",130,194,15);thumbnails[3965999]=new thumbnail(3965999,"239049","Faerie at the Bottom of my Garden ","faeries04_thumb.jpg",130,194,15);thumbnails[3966000]=new thumbnail(3966000,"239049","Laughing Faerie","faeries05_thumb.jpg",130,193,15);thumbnails[3966001]=new thumbnail(3966001,"239049","Halloween Faerie ","faeries07_thumb.jpg",130,88,15);thumbnails[3966003]=new thumbnail(3966003,"239049","Wood Elf ","faries09_thumb.jpg",130,188,15);thumbnails[3968027]=new thumbnail(3968027,"240321","Eiffel Tower ","paris02_thumb.jpg",130,205,15);thumbnails[3968029]=new thumbnail(3968029,"240321","Arc De Triomphe","paris03_thumb.jpg",130,202,15);thumbnails[3968031]=new thumbnail(3968031,"240321","Paris Graveyard ","paris04_thumb.jpg",130,198,15);thumbnails[3968033]=new thumbnail(3968033,"240321","Notre Dame ","paris08_thumb.jpg",130,87,15);thumbnails[3968035]=new thumbnail(3968035,"240321","Notre Dame ","paris09_thumb.jpg",130,193,15);thumbnails[4143788]=new thumbnail(4143788,"240321","Graveyard","graveyard011_thumb.jpg",130,107,15);thumbnails[4188980]=new thumbnail(4188980,"240321","Secret Garden At Brancepeth Castle ","banspeth-tree_thumb.jpg",130,174,15);thumbnails[4189042]=new thumbnail(4189042,"240321","Brancepeth Castle ","bancpeth02_thumb.jpg",130,98,15);thumbnails[4271011]=new thumbnail(4271011,"240321","Pumping Station 01","pumpingstation01_thumb.jpg",130,206,15);thumbnails[4271033]=new thumbnail(4271033,"240321","Pumping Station 02 ","pumpingstation02_thumb.jpg",130,203,15);thumbnails[4382275]=new thumbnail(4382275,"240321","Eiffel Tower","paris01_thumb.jpg",130,83,15);thumbnails[5215885]=new thumbnail(5215885,"240321","Tyne Bridge ","UL07_thumb.jpg",130,87,15);thumbnails[3967279]=new thumbnail(3967279,"239050","Halton Bridge ","lith01_thumb.jpg",130,192,15);thumbnails[3967281]=new thumbnail(3967281,"239050","Creepy Grave","lith03_thumb.jpg",130,188,15);thumbnails[3967283]=new thumbnail(3967283,"239050","Halton Fenside Phonebox ","lith04_thumb.jpg",130,188,15);thumbnails[3967285]=new thumbnail(3967285,"239050","Fen Road ","lith05_thumb.jpg",130,189,15);thumbnails[3967288]=new thumbnail(3967288,"239050","Cat in Window ","lith06_thumb.jpg",130,188,15);thumbnails[6097090]=new thumbnail(6097090,"239050","Standing Stone ","standingstone_thumb.jpg",130,193,15);thumbnails[6097127]=new thumbnail(6097127,"239050","View to the Sea","view-to-the-sea_thumb.jpg",130,194,15);thumbnails[3967280]=new thumbnail(3967280,"239050","Church window ","lith02_thumb.jpg",130,187,15);thumbnails[4221641]=new thumbnail(4221641,"242899","Grave Meadow","grave-meadow_thumb.jpg",130,87,15);thumbnails[4222132]=new thumbnail(4222132,"242899","Gravestone ","fancy-grave_thumb.jpg",130,203,15);thumbnails[4503212]=new thumbnail(4503212,"242899","Of Religion & War.","ofwarreligion_thumb.jpg",130,92,15);thumbnails[4631707]=new thumbnail(4631707,"242899","Ward Jackson Park","WJP-in-the-fog_thumb.jpg",130,87,15);thumbnails[5953086]=new thumbnail(5953086,"242899","Untitled Montage ","untitledmontage_thumb.jpg",130,92,15);thumbnails[3970876]=new thumbnail(3970876,"240597","Charlotte ","CHLK01_thumb.jpg",130,181,15);thumbnails[3970882]=new thumbnail(3970882,"240597","Rhiannon","RHLK01_thumb.jpg",130,180,15);thumbnails[3974750]=new thumbnail(3974750,"240597","Rhiannon","Rh-HK011_thumb.jpg",130,198,15);thumbnails[4553510]=new thumbnail(4553510,"240597","Cobweb and Kt ","ktweb02BW_thumb.jpg",130,171,15);thumbnails[3974752]=new thumbnail(3974752,"255396","Ben & Charlotte ","Ben-charlie-LK1_thumb.jpg",130,183,15);thumbnails[4547543]=new thumbnail(4547543,"255396","Kt & Web ","KTWebBW_thumb.jpg",130,99,15);thumbnails[5953073]=new thumbnail(5953073,"255396","Old Man 01","POR02_thumb.jpg",130,145,15);thumbnails[5953268]=new thumbnail(5953268,"255396","Mike","POR01_thumb.jpg",130,131,15);thumbnails[5978046]=new thumbnail(5978046,"255396","Group of Four","POR03_thumb.jpg",130,141,15);thumbnails[6109055]=new thumbnail(6109055,"255396","Ben at 20","benpor1_thumb.jpg",130,159,15);thumbnails[6109068]=new thumbnail(6109068,"255396","Isaac at 7","issac_thumb.jpg",130,107,15);thumbnails[6109091]=new thumbnail(6109091,"255396","Self Portrait ","Spor_thumb.jpg",130,105,15);thumbnails[4194847]=new thumbnail(4194847,"249401","Tree & Moors ","brandt13_thumb.jpg",130,194,15);thumbnails[4194846]=new thumbnail(4194846,"249401","Twin Trees ","brandt05_thumb.jpg",130,195,15);thumbnails[4194845]=new thumbnail(4194845,"249401","View Towards Top Whithens","Brandt01_thumb.jpg",130,191,15);thumbnails[4194850]=new thumbnail(4194850,"249401","Path to Top Whithens ","brandt27_thumb.jpg",130,195,15);thumbnails[3968734]=new thumbnail(3968734,"240360","Midwinter Blessings","winter-blessings_thumb.jpg",130,79,15);thumbnails[3968737]=new thumbnail(3968737,"240360","Yule Tide Card ","yule-r-09_thumb.jpg",130,132,15);thumbnails[3968749]=new thumbnail(3968749,"240360","Virgin Mary ","virgin-mary_thumb.jpg",130,145,15);thumbnails[3968797]=new thumbnail(3968797,"240360","Business Cards ","buisness-card1_thumb.jpg",130,74,15);thumbnails[3969005]=new thumbnail(3969005,"240360","Commissioned DVD Cover. ","jason-DVD_thumb.jpg",130,87,15);var galleries=new Object();galleries[335926]=new gallery(335926,"5952985,5952981,5952980,5952979,5952978,5952977,5952976,5952975","Coastline","gallery",[5952979,5952978,5952980,5952976,5952981,5952977,5952985,5952975]);galleries[314458]=new gallery(314458,"5549198,5549197,5549196,5549195,5549194,5549192,5549191,5549190","Monoliths of Modern Man","gallery",[5549190,5549195,5549194,5549197,5549192,5549196,5549198,5549191]);galleries[270313]=new gallery(270313,"6109091,6109068,6109055,5978046,5953268,5953073,4553510,4547543,3974752,3974750","People ","gallery",[]);galleries[270320]=new gallery(270320,"5953086,4631707,4503212,4222132,4221641,3969005,3968797,3968749,3968737,3968734","Photo Manipulation","gallery",[]);galleries[294338]=new gallery(294338,"5433369,5433366,5433365,5433364,5433363,5433362,5215882,5215880,5215879,5215878","Urban Landscape ","gallery",[5433363,5215878,5433365,5215879,5433362,5215880,5433366,5215872,5433364,5215882,5433369,5215875]);galleries[267047]=new gallery(267047,"4625161,4625159,4625156,4625154,4619848,4619847,4619846,4619845","Whale ","gallery",[4619847,4625156,4625154,4619845,4619846,4619848,4625159,4625161]);galleries[239049]=new gallery(239049,"3966003,3966001,3966000,3965999,3965998,3965997,3965994","Faeries","gallery",[3965994,3965997,3965998,3965999,3966000,3966001,3966003]);galleries[240321]=new gallery(240321,"5215885,4382275,4271033,4271011,4189042,4188980,4143788,3968035,3968033,3968031","Black & White Prints","gallery",[3968027,3968029,3968031,3968033,3968035,4143788,4188980,4189042,4271011,4271033,4382275,5215885]);galleries[239050]=new gallery(239050,"6097127,6097090,3967288,3967285,3967283,3967281,3967280,3967279","Lith Printing","gallery",[3967279,3967281,3967283,3967285,3967288,6097090,6097127,3967280]);galleries[242899]=new gallery(242899,"5953086,4631707,4503212,4222132,4221641","Photoshop Work ","gallery",[4221641,4222132,4503212,4631707,5953086]);galleries[240597]=new gallery(240597,"4553510,3974750,3970882,3970876","Fashion ","gallery",[3970876,3970882,3974750,4553510]);galleries[255396]=new gallery(255396,"6109091,6109068,6109055,5978046,5953268,5953073,4547543,3974752","Portraits ","gallery",[3974752,4547543,5953073,5953268,5978046,6109055,6109068,6109091]);galleries[241251]=new gallery(241251,"6097127,6097090,5952985,5952981,5952980,5952979,5952978,5952977,5952976,5952975","Landscape ","gallery",[]);galleries[249401]=new gallery(249401,"4194850,4194847,4194846,4194845","Wuthering Heights ","gallery",[4194847,4194846,4194845,4194850]);galleries[240360]=new gallery(240360,"3969005,3968797,3968749,3968737,3968734","Graphic","gallery",[3968734,3968737,3968749,3968797,3969005]);var imageSets=new Object();imageSets[1]="4221641,4194850,4194847,4194846,4189042,4188980,4143788,3974752,3968035,3968033,3968029,3968027,3967288,3967285,3967283,3967281,3967280,3967279,3966003,3966000,3965999,3965998,3965997,3965994";imageSets[3]="6109091,6109068,6109055,6097127,6097090,5978046,5953268,5953086,5953073,5952985,5952981,5952980,5952979,5952978,5952977,5952976,5952975,5549198,5549197,5549196,5549195,5549194,5549192,5549191,5549190,5433369,5433366,5433365,5433364,5433363,5433362,5215885,5215882,5215880,5215879,5215878,5215875,5215872,4631707,4625161,4625159,4625156,4625154,4619848,4619847,4619846,4619845,4553510,4547543,4503212";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/rachaelfallis/images";break}switch(a){case 1:b="http://www1.clikpic.com/rachaelfallis/images";break}switch(a){case 2:b="http://admin.clikpic.com/rachaelfallis/images";break}switch(a){case 24:b="http://tpc15/clikpic/rachaelfallis/images";break}switch(a){case 4:b="http://www.clikchurch.com/rachaelfallis/images";break}switch(a){case 5:b="http://www2.clikpic.com/rachaelfallis/images";break}switch(a){case 22:b="http://tpc5/clikpic/rachaelfallis/images";break}switch(a){case 23:b="http://tpc10/clikpic/rachaelfallis/images";break}switch(a){case 25:b="http://tpc16/clikpic/rachaelfallis/images";break}switch(a){case 15:b="http://www3.clikpic.com/rachaelfallis/images";break}switch(a){case 18:b="http://www4.clikpic.com/rachaelfallis/images";break}switch(a){case 19:b="http://www5.clikpic.com/rachaelfallis/images";break}switch(a){case 31:b="http://www7.clikpic.com/rachaelfallis/images";break}switch(a){case 32:b="http://admin2.clikpic.com/rachaelfallis/images";break}switch(a){case 33:b="http://www8.clikpic.com/rachaelfallis/images";break}switch(a){case 34:b="http://www9.clikpic.com/rachaelfallis/images";break}switch(a){case 35:b="http://admin3.clikpic.com/rachaelfallis/images";break}switch(a){case 37:b="http://admin4.clikpic.com/rachaelfallis/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="'+escape(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="Rachael Fallis Photography: "+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;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="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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="rachael.fallis@yahoo.co.uk">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="rachael.fallis@yahoo.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};