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[198774]=new thumbnail(198774,"18139","Adriana","adriana3_thumb.jpg",130,190,1);thumbnails[4137597]=new thumbnail(4137597,"18139","Jennife.","Jennife_web_thumb.jpg",130,192,1);thumbnails[4141095]=new thumbnail(4141095,"18139","Jennife.","Jennifer_thumb.jpg",130,192,1);thumbnails[197900]=new thumbnail(197900,"18139","Clair.","Bum_Leather1_thumb.jpg",130,187,1);thumbnails[4137605]=new thumbnail(4137605,"18139","Jane.","Wendy_thumb.jpg",130,193,1);thumbnails[4140400]=new thumbnail(4140400,"18139","Brittany.","adriana2_thumb.jpg",130,190,1);thumbnails[4137642]=new thumbnail(4137642,"18139","Carmen.","Carmen_web1234_thumb.jpg",130,137,1);thumbnails[198779]=new thumbnail(198779,"18139","Stephanie","Victoria_thumb.jpg",130,163,1);thumbnails[4138133]=new thumbnail(4138133,"18139","Sue.","sue_web_thumb.jpg",130,145,1);thumbnails[198776]=new thumbnail(198776,"18031","Brittany.","Brittany2_thumb.jpg",130,88,1);thumbnails[197897]=new thumbnail(197897,"18031","Laura.","Laura_23_thumb.jpg",130,87,1);thumbnails[198775]=new thumbnail(198775,"18031","Ann","Anne1 copy_thumb.jpg",130,85,1);thumbnails[4137795]=new thumbnail(4137795,"18031","G-String.","Tatiane1_thumb.jpg",130,91,1);thumbnails[197889]=new thumbnail(197889,"18031","Zhanna.","Zhanna1_thumb.jpg",130,75,1);thumbnails[198781]=new thumbnail(198781,"18031","Karen.","Karen_thumb.jpg",130,86,1);thumbnails[197954]=new thumbnail(197954,"18031","Morgan.","Morgan_thumb.jpg",130,88,1);thumbnails[197956]=new thumbnail(197956,"18031","Jenni.","jen_thumb.jpg",130,86,1);thumbnails[197950]=new thumbnail(197950,"18031","Pennelope 2","Pennelope21_thumb.jpg",130,99,1);thumbnails[198125]=new thumbnail(198125,"18031","Rebecca.","Rebecca1_thumb.jpg",130,93,1);thumbnails[198778]=new thumbnail(198778,"18031","Rebecca","Rebecca_web_copy1_thumb.jpg",130,127,1);thumbnails[199773]=new thumbnail(199773,"18031","Jacqueline","Jacqueline copy_thumb.jpg",130,100,1);thumbnails[975704]=new thumbnail(975704,"73259"," The Beach Lighthouse Fleetwood.","LightHouse_night12_thumb.JPG",130,98,1);thumbnails[976133]=new thumbnail(976133,"73259","Stena Pioneer Morecambe Bay Fleetwood.","Stena Pioneer0001_thumb.JPG",130,98,1);thumbnails[976162]=new thumbnail(976162,"73259"," Slot-Machine Arcade Fleetwood.","Arcade0001_thumb.JPG",130,98,1);thumbnails[976378]=new thumbnail(976378,"73259","Two Seagulls Morecambe Bay  Fleetwood.","2seagulls_thumb.JPG",130,98,1);thumbnails[992497]=new thumbnail(992497,"73259","Breakwater Morecame Bay Fleetwood.","Breakwater0001_thumb.JPG",130,98,1);thumbnails[645973]=new thumbnail(645973,"48114","The Temple Pillers  Heaton Park.<br>\r\n","templeview7w_thumb.jpg",130,174,1);thumbnails[975375]=new thumbnail(975375,"73259","The Beach Lighthouse   Fleetwood.","Low_Light0001_1_thumb.JPG",130,98,1);thumbnails[629606]=new thumbnail(629606,"48114","The Lioness   Heaton Hall.","LionJPG_thumb.jpg",130,173,1);thumbnails[975389]=new thumbnail(975389,"73259","  Winter SunSet Morecambe Bay Fleetwood.","SunSet 10001_thumb.JPG",130,173,1);thumbnails[645979]=new thumbnail(645979,"48114","The Temple<br>\r\n<br>\r\nHeaton Park.","templeview6w_thumb.jpg",130,174,1);thumbnails[976277]=new thumbnail(976277,"73259","The Beach Lighthouse Fleetwood.","Low Light Lighthouse 30001_thumb.JPG",130,173,1);thumbnails[976152]=new thumbnail(976152,"73259","Pharos Lighthouse at SunSet","Pharos Light0001_thumb.JPG",130,173,1);thumbnails[629792]=new thumbnail(629792,"48114","Autumn Trees  Heaton Park.","parktrees_thumb.JPG",130,98,1);thumbnails[629631]=new thumbnail(629631,"48114","The Lion South Side  Heaton Hall.","Lion_2_South_Side_thumb.JPG",130,86,1);thumbnails[629618]=new thumbnail(629618,"48114","Park View Heaton Park.","Trees_thumb.JPG",130,98,1);thumbnails[629629]=new thumbnail(629629,"48114","Clock Tower Heaton Park.","Clock_Tower_thumb.JPG",130,86,1);thumbnails[630694]=new thumbnail(630694,"48114"," Original Print of Heaton Hall 1830<br>\r\n","originalprintw_thumb.jpg",130,91,1);thumbnails[629767]=new thumbnail(629767,"48114","Chimney Stacks Heaton Hall.","Heaton_Hall_Roof_North_Side_thumb.JPG",130,86,1);thumbnails[638945]=new thumbnail(638945,"48114","19th Century Engraving Heaton Hall","heatonparkhallw_thumb.jpg",130,96,1);thumbnails[645956]=new thumbnail(645956,"48114","The Temple Dome  Heaton Park.","templeview8w_thumb.jpg",130,98,1);thumbnails[4227632]=new thumbnail(4227632,"73259","Low Tide Morecambe Bay Fleetwood.","low_tide_thumb.JPG",130,98,1);thumbnails[4226255]=new thumbnail(4226255,"48114","South Side Heaton Hall.","Heaton_Hall_South_Side_3_thumb.JPG",130,86,1);thumbnails[976171]=new thumbnail(976171,"73259","The Beach Lighthouse Fleetwood.","Low Light0001_thumb.JPG",130,173,1);thumbnails[4257933]=new thumbnail(4257933,"73259","Pharos lighthouse Fleetwood.","Phaross_day_thumb.JPG",130,173,1);thumbnails[2934394]=new thumbnail(2934394,"181345","Ribblehead Viaduct<br>\r\nChapel-le-Dale. ","Houghton Web_thumb.jpg",130,89,1);thumbnails[4025689]=new thumbnail(4025689,"181345","Clapham Village.","Clapham_Village1_thumb.jpg",130,98,1);thumbnails[4011642]=new thumbnail(4011642,"181345"," St James Church.<br>\r\nClapham ","Clapham_Church_mod_webjpg_thumb.jpg",130,98,1);thumbnails[4012318]=new thumbnail(4012318,"181345","St James Church Yard.<br>\r\nClapham","Clapham_church_yard_web_thumb.jpg",130,98,1);thumbnails[4028823]=new thumbnail(4028823,"181345","Clapham Beck.","Clapham_Bridge_web_thumb.jpg",130,98,1);thumbnails[4111303]=new thumbnail(4111303,"181345","Ingleton Village.","Ingleton_village12_thumb.jpg",130,98,1);thumbnails[4116926]=new thumbnail(4116926,"181345","St Mary's Church<br>\r\nIngleton.","Ingleton_church_tower_web__thumb.jpg",130,98,1);thumbnails[3580210]=new thumbnail(3580210,"181345","St Mary's Church Ingleton.","Church_thumb.jpg",130,98,1);thumbnails[4116179]=new thumbnail(4116179,"181345","Ingleton Viaduct.","Ingleton_Viaduct_web_thumb.jpg",130,98,1);thumbnails[4116272]=new thumbnail(4116272,"181345","Ingleton Viaduct.","Ingleton_Viaduct_web2_thumb.jpg",130,98,1);thumbnails[4116831]=new thumbnail(4116831,"181345","Ingleton Viaduct.","Ingleton_viaduct_web3_thumb.jpg",130,98,1);thumbnails[4123158]=new thumbnail(4123158,"181345","Ingleton Viaduct.","Ingleton_Viaduct_4_thumb.jpg",130,87,1);thumbnails[4799242]=new thumbnail(4799242,"181345","Ingleton Viaduct","1_thumb.jpg",130,98,1);thumbnails[4211201]=new thumbnail(4211201,"181345","St Oswald Church,<br>\r\nHorton in Ribblesdale.","Hort_in_Ribb_church_thumb.jpg",130,94,1);thumbnails[4211366]=new thumbnail(4211366,"181345","Pen-y-ghent From<br>\r\nHorton in Ribblesdale.","Pen-y-ghent_thumb.jpg",130,98,1);thumbnails[4707190]=new thumbnail(4707190,"181345","St Leonards Chapel Chapel Le Dale","chaple-le-dale-web_thumb.jpg",130,98,1);thumbnails[4707274]=new thumbnail(4707274,"181345","Ingleborough Mountain From Chapel Le Dale","Ingleborough_web_thumb.jpg",130,98,1);thumbnails[4750573]=new thumbnail(4750573,"181345","Chapel Le Dale","chapel-le-dale12-web_thumb.jpg",130,98,1);thumbnails[4794864]=new thumbnail(4794864,"181345","Whernside","wirneside-web_thumb.jpg",130,98,1);thumbnails[4796242]=new thumbnail(4796242,"181345","Inglebourgh","ingleborough_thumb.jpg",130,98,1);thumbnails[4212335]=new thumbnail(4212335,"181345","Pen-Y-Ghent  ","Pen-Y_Ghent_thumb.jpg",130,98,1);thumbnails[4873154]=new thumbnail(4873154,"74635","CrowTrees Inn","Pub-web_thumb.jpg",130,104,1);thumbnails[4881682]=new thumbnail(4881682,"74635","Crowtrees Sunset","sunset-web_thumb.jpg",130,98,1);thumbnails[2934392]=new thumbnail(2934392,"74635","Settle Sunday","Settle Sunday web_thumb.jpg",130,99,1);thumbnails[4749356]=new thumbnail(4749356,"74635","The Folly-Settle","The-Folly-web_thumb.jpg",130,98,1);thumbnails[4750091]=new thumbnail(4750091,"74635","Town Centre Settle ","stown8-web_thumb.jpg",130,98,1);thumbnails[2934393]=new thumbnail(2934393,"74635","Ingleborough In Snow","Ingbrough snow web_thumb.jpg",130,97,1);thumbnails[4295483]=new thumbnail(4295483,"74635","Pen Y Ghent Mountain From Rathmell.","pen_y_ghent_thumb.JPG",130,79,1);thumbnails[2979837]=new thumbnail(2979837,"74635","Tosside Village Yorks/Lancs<br>\r\n","Tosside_villace_thumb.jpg",130,98,1);thumbnails[3649940]=new thumbnail(3649940,"222771","Nikon D40","D40_thumb.jpg",130,107,1);thumbnails[3644281]=new thumbnail(3644281,"222771","Nikon D60","D60_thumb.jpg",130,121,1);thumbnails[3644291]=new thumbnail(3644291,"222771","Nikon D80","D80_thumb.jpg",130,105,1);thumbnails[3644315]=new thumbnail(3644315,"222771","Nikon D200","d200_thumb.jpg",130,95,1);thumbnails[4373075]=new thumbnail(4373075,"222771","Nikon P5000 Pro Compact.","353_25565_P5000_34l_thumb.jpg",130,111,1);thumbnails[4373187]=new thumbnail(4373187,"222771","Nikon P6000 Pro Compact.","353_26135_P6000_34l_thumb.jpg",130,111,1);thumbnails[3648206]=new thumbnail(3648206,"222771","Nikon 55-200mm VR","55-200mm__thumb.jpg",130,106,1);thumbnails[3645294]=new thumbnail(3645294,"222771","Nikon 18-55mm VR","18_55mmvr_thumb.jpg",130,107,1);var galleries=new Object();galleries[18139]=new gallery(18139,"4137642","Photoshop Digital  Glamour One.","gallery",[198774,4137597,4141095,197900,4137605,4140400,4137642,198779,4138133]);galleries[18031]=new gallery(18031,"198778"," Photoshop Digital Glamour   Two.","gallery",[198776,197897,198775,4137795,197889,198781,197954,197956,197950,198125,198778,199773]);galleries[73259]=new gallery(73259,"4227632,992497,976378,976133,975704,975375","Fleetwood Lancashire","gallery",[975704,976133,976162,976378,992497,975375,975389,976277,976152,4227632,976171,4257933]);galleries[48114]=new gallery(48114,"645956,629792,629767,629631,629629","Heaton Park Manchester","gallery",[645973,629606,645979,629792,629631,629618,629629,630694,629767,638945,645956,4226255]);galleries[181345]=new gallery(181345,"4796242,4794864,4707190,4211366,4211201,4116926,4116831,4116179,4028823,4025689,4012318,4011642,3580210,2934394"," Yorkshire Dales One.   ","gallery",[2934394,4025689,4011642,4012318,4028823,4111303,4116926,3580210,4116179,4116272,4116831,4123158,4799242,4211201,4211366,4707190,4707274,4750573,4794864,4796242,4212335]);galleries[74635]=new gallery(74635,"4881682,4873154,4750091,4749356"," Yorkshire Dales Two.","gallery",[4873154,4881682,2934392,4749356,4750091,2934393,4295483,2979837]);galleries[222771]=new gallery(222771,"4373187,4373075,3644281","Nikon equipment.","gallery",[3649940,3644281,3644291,3644315,4373075,4373187,3648206,3645294]);var imageSets=new Object();imageSets[1]="4796242,4749356,4212335,4211366,4211201,4137795,4116926,4111303,4028823,4012318,4011642,2934394,2934392,975375,197954,197950";imageSets[2]="4881682,4873154,4796242,4794864,4750091,4749356,4707190,4373187,4373075,4227632,4211366,4211201,4137642,4116926,4116831,4116179,4028823,4025689,4012318,4011642,3644281,3580210,2934394,992497,976378,976133,975704,975375,645956,629792,629767,629631,629629,198778";imageSets[3]="4881682,4873154,4799242,4796242,4794864,4750573,4750091,4749356,4707274,4707190,4373187,4373075,4295483,4257933,4227632,4226255,4212335,4211366,4211201,4141095,4140400,4138133,4137795,4137642,4137605,4137597,4123158,4116926,4116831,4116272,4116179,4111303,4028823,4025689,4012318,4011642,3649940,3648206,3645294,3644315,3644291,3644281,3580210,2979837,2934394,2934393,2934392,992497,976378,976277";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/dbflynn/images";break}switch(a){case 1:b="http://www1.clikpic.com/dbflynn/images";break}switch(a){case 2:b="http://admin.clikpic.com/dbflynn/images";break}switch(a){case 24:b="http://tpc15/clikpic/dbflynn/images";break}switch(a){case 4:b="http://www.clikchurch.com/dbflynn/images";break}switch(a){case 5:b="http://www2.clikpic.com/dbflynn/images";break}switch(a){case 22:b="http://tpc5/clikpic/dbflynn/images";break}switch(a){case 23:b="http://tpc10/clikpic/dbflynn/images";break}switch(a){case 25:b="http://tpc16/clikpic/dbflynn/images";break}switch(a){case 15:b="http://www3.clikpic.com/dbflynn/images";break}switch(a){case 18:b="http://www4.clikpic.com/dbflynn/images";break}switch(a){case 19:b="http://www5.clikpic.com/dbflynn/images";break}switch(a){case 31:b="http://www7.clikpic.com/dbflynn/images";break}switch(a){case 32:b="http://admin2.clikpic.com/dbflynn/images";break}switch(a){case 33:b="http://www8.clikpic.com/dbflynn/images";break}switch(a){case 34:b="http://www9.clikpic.com/dbflynn/images";break}switch(a){case 35:b="http://admin3.clikpic.com/dbflynn/images";break}switch(a){case 37:b="http://admin4.clikpic.com/dbflynn/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="The  Digital  Image: "+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="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="dbflynn@hotmail.com">';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="dbflynn@hotmail.com">';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(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+'")'})}}};