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[829484]=new thumbnail(829484,"","Setting Sun, Newgale","to b named 2_thumb.jpg",130,191,15);thumbnails[239189]=new thumbnail(239189,"21627","St. David's Peninsula","ST_thumb. David's Peninsula.jpg",130,86,15);thumbnails[239268]=new thumbnail(239268,"21627","Ebbing Tide Ricketts Head","EbbingtideRicket'shead_thumb.jpg",130,183,15);thumbnails[243097]=new thumbnail(243097,"21627","High Tide Abermawr","Evening Tide Abermawr (new one)JPG_thumb.jpg",130,85,15);thumbnails[243098]=new thumbnail(243098,"21627","Evening Tide, Newgale","evening tide thisoneJPG_thumb.jpg",130,86,15);thumbnails[243100]=new thumbnail(243100,"21627","Evening Tide, Whitesands","Evening Tide WhitesandsJPG_thumb.jpg",130,196,15);thumbnails[243102]=new thumbnail(243102,"21627","High Tide, Newgale","High Tide, NewgaleJPG_thumb.jpg",130,196,15);thumbnails[243105]=new thumbnail(243105,"21627","Late Fishing, Nolton Haven","nolton eve (this one)JPG_thumb.jpg",130,85,15);thumbnails[243111]=new thumbnail(243111,"21627","Ricketts Head, Sunset","Rickets head SunsetJPG_thumb.jpg",130,86,15);thumbnails[243114]=new thumbnail(243114,"21627","Sunset Reflections, Ricketts Head","Sunset Reflections, rickets headJPG_thumb.jpg",130,86,15);thumbnails[829472]=new thumbnail(829472,"21627","Pushing Tide, Barafundle","Pushing tide, Barafundle_thumb.jpg",130,195,15);thumbnails[829476]=new thumbnail(829476,"21627","Sunset Sky West Dale","snset sky west dale_thumb.jpg",130,195,15);thumbnails[829456]=new thumbnail(829456,"21627","After Glow, Newgale","after glow more contrast_thumb.jpg",130,86,15);thumbnails[829457]=new thumbnail(829457,"21627","Cool Blue, West Dale","cool blue, west dale_thumb.jpg",130,87,15);thumbnails[829465]=new thumbnail(829465,"21627","Moody sunset, Newgale","newgale to name_thumb.jpg",130,197,15);thumbnails[829466]=new thumbnail(829466,"21627","Twilight Red, Newgale","newgale to tp b named_thumb.jpg",130,195,15);thumbnails[829467]=new thumbnail(829467,"21627","Nolton Haven Stream","nolton haven stream_thumb.jpg",130,195,15);thumbnails[829468]=new thumbnail(829468,"21627","Sun Shafts Penbwchdy","PBD_thumb.jpg",130,86,15);thumbnails[829471]=new thumbnail(829471,"21627","Pointz Castle Sunset","pointz castle sunset_thumb.jpg",130,85,15);thumbnails[829474]=new thumbnail(829474,"21627","Red Sky over Ponitz Castle","Red Sky over ponita castle_thumb.jpg",130,85,15);thumbnails[829475]=new thumbnail(829475,"21627","Rickets Head, Mist","ricketts head, mist_thumb.jpg",130,87,15);thumbnails[829477]=new thumbnail(829477,"21627","Storm Front Porth Melgan","Storm Front Porth Melgan_thumb.jpg",130,193,15);thumbnails[829483]=new thumbnail(829483,"21627","Sun Shafts Newgale","Sun Shafts Newgale_thumb.jpg",130,86,15);thumbnails[829487]=new thumbnail(829487,"21627","Storm Swell, Marloes","west dale_thumb.jpg",130,195,15);thumbnails[243091]=new thumbnail(243091,"21630","Abereiddy Evening","Abereiddi EveningJPG_thumb.jpg",130,86,15);thumbnails[243093]=new thumbnail(243093,"21630","Dropping Tide, Newgale","Dropping Tide, newgale CorrectionJPG_thumb.jpg",130,85,15);thumbnails[243096]=new thumbnail(243096,"21630","Sunset Reflections, Ricket' Head","Evening reflection, Ricket's HeadJPG_thumb.jpg",130,196,15);thumbnails[243104]=new thumbnail(243104,"21630","Reflections","newgale reflections CorrectionJPG_thumb.jpg",130,86,15);thumbnails[243109]=new thumbnail(243109,"21630","Pushing Tide, Druidston","Pushing Tide, DruidstonJPG_thumb.jpg",130,86,15);thumbnails[243117]=new thumbnail(243117,"21630","Sunset, Freshwater West","Sunset, freshwater WestJPG_thumb.jpg",130,84,15);thumbnails[243122]=new thumbnail(243122,"21630","Whitesands Sunset","WHITESANDS evening CorrectionJPG_thumb.jpg",130,86,15);thumbnails[243123]=new thumbnail(243123,"21630","Whitesands Sunpath","Whitesands sunpathJPG_thumb.jpg",130,86,15);thumbnails[243174]=new thumbnail(243174,"21630","Abereiddy Flowers","ABEREIDDI FLOWERSJPG_thumb.jpg",130,86,15);thumbnails[1937005]=new thumbnail(1937005,"21630","Haroldston Chins ","aroldston chins no ships_thumb.jpg",130,195,15);thumbnails[1937024]=new thumbnail(1937024,"21630","Firey Sunset, Marloes","Firey sunset, marloes_thumb.jpg",130,87,15);thumbnails[1937104]=new thumbnail(1937104,"21630","Late Evening, Driudston ","Late Evening, Driudston Correction_thumb.jpg",130,86,15);thumbnails[2349339]=new thumbnail(2349339,"21630","Sunset Glow Broadhaven","sunset glow broadhaven_thumb.jpg",130,87,15);thumbnails[363984]=new thumbnail(363984,"21630","The Blue Lagoon","The Blue Lagoon_thumb.jpg",130,85,15);thumbnails[1937006]=new thumbnail(1937006,"21630","Amroth Beach","groin 2_thumb.jpg",130,201,15);thumbnails[1937025]=new thumbnail(1937025,"21630","Ram's Nose, Whitesands","IMG_0082-01b_thumb.jpg",130,195,15);thumbnails[1937007]=new thumbnail(1937007,"21630","Sea Groin, Amroth","groin_thumb.jpg",130,84,15);thumbnails[1937084]=new thumbnail(1937084,"21630","Marloes Twilight","effort ish_thumb.jpg",130,85,15);thumbnails[1937027]=new thumbnail(1937027,"21630","Sunset Glow, West Dale","sunset glow, west dale_thumb.jpg",130,186,15);thumbnails[1937085]=new thumbnail(1937085,"21630","Sunset Glow, Newgale","find original again_thumb.jpg",130,87,15);thumbnails[1937108]=new thumbnail(1937108,"21630","Ramsay Island Sunset","Ramsay island sunset_thumb.jpg",130,85,15);thumbnails[1937086]=new thumbnail(1937086,"21630","Storm Clouds, Porth Melgan","PM NEW ONE_thumb.jpg",130,192,15);thumbnails[2609645]=new thumbnail(2609645,"21630","After Glow, Newgale","After Glow, Newgale_thumb.jpg",130,86,15);thumbnails[455193]=new thumbnail(455193,"21630","Snowy Pebbles, Newgale","Snowy Pebbles, NewgaleJPG_thumb.jpg",130,200,15);thumbnails[455194]=new thumbnail(455194,"21630","St. Brides Sunset  ","st brides sunsetJPG_thumb.jpg",130,97,15);thumbnails[243199]=new thumbnail(243199,"21631","","Surfing Pembrokeshire (234)1_thumb.jpg",130,64,15);thumbnails[829446]=new thumbnail(829446,"21631","Broahaven South","boroahaven south_thumb.jpg",130,54,15);thumbnails[1937042]=new thumbnail(1937042,"21631","Offshore Wave","offshore wave_thumb.jpg",130,69,15);thumbnails[1937049]=new thumbnail(1937049,"21631","Pembrokeshire Skies II Skomer","something over skomer1_thumb.jpg",130,59,15);thumbnails[2349220]=new thumbnail(2349220,"21631","Storm Clouds Broadhaven","Storm Clouds Broadhaven_thumb.jpg",130,57,15);thumbnails[829447]=new thumbnail(829447,"21631","Reflections, Broadhaven South","broad south2_thumb.jpg",130,56,15);thumbnails[1936957]=new thumbnail(1936957,"21631","barafundle wave","barafundle wave_thumb.jpg",130,72,15);thumbnails[1937083]=new thumbnail(1937083,"21631","Druidston Haven Beach","druidston_thumb.jpg",130,70,15);thumbnails[1936958]=new thumbnail(1936958,"21631","something over skomer","something over skomer_thumb.jpg",130,59,15);thumbnails[829449]=new thumbnail(829449,"21631","Stormy Sunset, Newgale","pointzcastle_thumb.jpg",130,50,15);thumbnails[1936959]=new thumbnail(1936959,"21631","storm surge, marloes","storm surge, marloes_thumb.jpg",130,68,15);thumbnails[1936960]=new thumbnail(1936960,"21631","sunset halo, newgale","sunset halo, newgale_thumb.jpg",130,68,15);thumbnails[1937111]=new thumbnail(1937111,"21631","Sun Shower, Ramsey Island","sun shower, ramsey island_thumb.jpg",130,54,15);thumbnails[243113]=new thumbnail(243113,"64116","St. Govans","st _thumb.Govans re sizeJPG.jpg",130,92,15);thumbnails[249282]=new thumbnail(249282,"64116","The wedge.","Broadhaven SouthJPG_thumb.jpg",130,86,15);thumbnails[829458]=new thumbnail(829458,"64116","Crashing Wave, Pembrokeshire","crashing wave 2_thumb.jpg",130,89,15);thumbnails[1937113]=new thumbnail(1937113,"64116","Winter Storm Whitesands","winter storm white_thumb.jpg",130,85,15);thumbnails[829479]=new thumbnail(829479,"64116","Storm Swell, Broad Haven South","Storm Swell, Broad Haven South_thumb.jpg",130,82,15);thumbnails[829481]=new thumbnail(829481,"64116","Stormy Seas near St. Nons","Stormy seas_thumb. St. non's.jpg",130,87,15);thumbnails[245489]=new thumbnail(245489,"64116","Crashing Wave, Pembrokeshire","Autum SwellJPG_thumb.jpg",130,86,15);thumbnails[255974]=new thumbnail(255974,"64116","Surfing Pembrokeshire (36)JPG","Surfing Pembrokeshire (36)JPG_thumb.jpg",130,86,15);thumbnails[1936972]=new thumbnail(1936972,"21652","Cloud Shadows,Nolton Haven","cloud shadows,nolton haven_thumb.jpg",130,134,15);thumbnails[1936994]=new thumbnail(1936994,"21652","Marloes Evening","hghhg_thumb.jpg",130,125,15);thumbnails[1937082]=new thumbnail(1937082,"21652","Cloud Shadows Whitesands","cloud shadows whitesands_thumb.jpg",130,136,15);thumbnails[1936973]=new thumbnail(1936973,"21652","Sun Burst, Newgale","effortfgfgdfg_thumb.jpg",130,112,15);thumbnails[1937026]=new thumbnail(1937026,"21652","Storm Clouds Newgale","storm clouds newgale_thumb.jpg",130,125,15);thumbnails[1936998]=new thumbnail(1936998,"21652","Sunshafts over Skomer","sunshafts over skomer_thumb.jpg",130,127,15);thumbnails[907458]=new thumbnail(907458,"21651","","printed1_thumb.jpg",130,195,15);thumbnails[5805238]=new thumbnail(5805238,"21632","High tide at Porth Clais Harbour, pembrokeshire","Porthclaisharbour_thumb.jpg",130,187,15);thumbnails[436731]=new thumbnail(436731,"28297","Duidston Beach at Sunset","duidstonJPG_thumb.jpg",130,86,15);var galleries=new Object();galleries[22188]=new gallery(22188,"","New Images. Fine Art","gallery",[]);galleries[21627]=new gallery(21627,"243114,243111,243105,243098,243097","Fine Art 1","gallery",[239189,239268,243097,243098,243100,243102,243105,243111,243114,829472,829476,829456,829457,829465,829466,829467,829468,829471,829474,829475,829477,829483,829487]);galleries[21630]=new gallery(21630,"1937024,1937006,243174,243123,243122,243117,243109,243104,243093,243091","Fine Art 2","gallery",[243091,243093,243096,243104,243109,243117,243122,243123,243174,1937005,1937024,1937104,2349339,363984,1937006,1937025,1937007,1937084,1937027,1937085,1937108,1937086,2609645,455193,455194]);galleries[21631]=new gallery(21631,"1937111,243199","Panoramics","gallery",[243199,829446,1937042,1937049,2349220,829447,1936957,1937083,1936958,829449,1936959,1936960,1937111]);galleries[64116]=new gallery(64116,"249282,243113","Storm Scenes","gallery",[243113,249282,829458,1937113,829479,829481,245489,255974]);galleries[21652]=new gallery(21652,"1936998,1936994","Squares","gallery",[1936972,1936994,1937082,1936973,1937026,1936998]);galleries[21651]=new gallery(21651,"907458","Weddings","section92932",[907458]);galleries[21632]=new gallery(21632,"5805238","Black and White","gallery",[5805238]);galleries[28816]=new gallery(28816,"","Surfing Pembrokeshire","section49252",[]);galleries[25756]=new gallery(25756,"","Coasteer TYF 14.7.06","section39358",[]);galleries[29964]=new gallery(29964,"","Action and Sports","section49252",[]);galleries[28296]=new gallery(28296,"","Walking","section49252",[]);galleries[28298]=new gallery(28298,"","Dogs and Owners","section49252",[]);galleries[28297]=new gallery(28297,"436731","General Scenes Pembrokeshire","section49252",[436731]);galleries[28300]=new gallery(28300,"","Animals and Wildlife","section49252",[]);var imageSets=new Object();imageSets[1]="1937111,1937024,1937006,1936998,1936994,249282,243199,243174,243123,243122,243117,243114,243113,243111,243109,243105,243104,243098,243097,243093,243091,239189";imageSets[2]="1937111,1937024,1937006,1936998,1936994,249282,243199,243174,243123,243122,243117,243114,243113,243111,243109,243105,243104,243098,243097,243093,243091";imageSets[3]="5805238,2609645,2349339,2349220,1937113,1937111,1937108,1937104,1937086,1937085,1937084,1937083,1937082,1937049,1937042,1937027,1937026,1937025,1937024,1937007,1937006,1937005,1936998,1936994,1936973,1936972,1936960,1936959,1936958,1936957,907458,829487,829484,829483,829481,829479,829477,829476,829475,829474,829472,829471,829468,829467,829466,829465,829458,829457,829456,829449";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/adyhaw/images";break}switch(a){case 1:b="http://www1.clikpic.com/adyhaw/images";break}switch(a){case 2:b="http://admin.clikpic.com/adyhaw/images";break}switch(a){case 24:b="http://tpc15/clikpic/adyhaw/images";break}switch(a){case 4:b="http://www.clikchurch.com/adyhaw/images";break}switch(a){case 5:b="http://www2.clikpic.com/adyhaw/images";break}switch(a){case 22:b="http://tpc5/clikpic/adyhaw/images";break}switch(a){case 23:b="http://tpc10/clikpic/adyhaw/images";break}switch(a){case 25:b="http://tpc16/clikpic/adyhaw/images";break}switch(a){case 15:b="http://www3.clikpic.com/adyhaw/images";break}switch(a){case 18:b="http://www4.clikpic.com/adyhaw/images";break}switch(a){case 19:b="http://www5.clikpic.com/adyhaw/images";break}switch(a){case 31:b="http://www7.clikpic.com/adyhaw/images";break}switch(a){case 32:b="http://admin2.clikpic.com/adyhaw/images";break}switch(a){case 33:b="http://www8.clikpic.com/adyhaw/images";break}switch(a){case 34:b="http://www9.clikpic.com/adyhaw/images";break}switch(a){case 35:b="http://admin3.clikpic.com/adyhaw/images";break}switch(a){case 37:b="http://admin4.clikpic.com/adyhaw/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="Adrian Hawke Professional 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;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 using Paypal</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="Adyhawke@aol.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="Adyhawke@aol.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+'")'})}}};