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[878764]=new thumbnail(878764,"","","Red Drip_thumb.jpg",130,113,18);thumbnails[943855]=new thumbnail(943855,"","","From manly poolmodified copyforweb_thumb.jpg",130,43,18);thumbnails[977701]=new thumbnail(977701,"","Bridge and Opera house at night time","Bridge and house at night pano April 07forweb_thumb.jpg",130,36,18);thumbnails[3831594]=new thumbnail(3831594,"","","Lilli_canvas_800_thumb.jpg",130,98,18);thumbnails[3810161]=new thumbnail(3810161,"232089","","1862cropped600_thumb.jpg",130,97,18);thumbnails[3877821]=new thumbnail(3877821,"232089","","IMG_1896bW80012_thumb.JPG",130,165,18);thumbnails[3912996]=new thumbnail(3912996,"232089","","Collage_for_weddingsforclikpic1_thumb.jpg",130,145,18);thumbnails[3913005]=new thumbnail(3913005,"232089","","IMG_4938edit1forclikpic_thumb.JPG",130,195,18);thumbnails[3913011]=new thumbnail(3913011,"232089","","IMG_4977forclikpic_thumb.jpg",130,195,18);thumbnails[3913027]=new thumbnail(3913027,"232089","","IMG_5007forclikpic_thumb.jpg",130,195,18);thumbnails[3933324]=new thumbnail(3933324,"232089","","1891modifiededit800c_thumb.jpg",130,195,18);thumbnails[3933336]=new thumbnail(3933336,"232089","","IMG_4814pix800_thumb.JPG",130,195,18);thumbnails[3933358]=new thumbnail(3933358,"232089","","IMG_4838bWpix800_thumb.JPG",130,195,18);thumbnails[3933362]=new thumbnail(3933362,"232089","","IMG_5054bWPIX800_thumb.jpg",130,195,18);thumbnails[3933370]=new thumbnail(3933370,"232089","","IMG_5069PIX800_thumb.JPG",130,195,18);thumbnails[6026266]=new thumbnail(6026266,"232089","","20100409_0040-1edit800_thumb.JPG",130,87,18);thumbnails[6026347]=new thumbnail(6026347,"232089","","20100409_0489-1MOD800_thumb.JPG",130,87,18);thumbnails[6026548]=new thumbnail(6026548,"232089","","20100409_0328-1mod800_thumb.JPG",130,80,18);thumbnails[6032744]=new thumbnail(6032744,"232089","","20100417_2926mod800_thumb.JPG",130,87,18);thumbnails[6033269]=new thumbnail(6033269,"232089","","20100417_1862MODB800_thumb.JPG",130,204,18);thumbnails[6033325]=new thumbnail(6033325,"232089","","20100417_2694modsquare800_thumb.JPG",130,130,18);thumbnails[6033356]=new thumbnail(6033356,"232089","","20100417_2794modtilt800_thumb.JPG",130,87,18);thumbnails[3829800]=new thumbnail(3829800,"105914","","IMG_9319modified800_thumb.jpg",130,87,18);thumbnails[6026205]=new thumbnail(6026205,"105914","","Hayley_and_Lilli800_thumb.JPG",130,87,18);thumbnails[3814487]=new thumbnail(3814487,"105914","","IMG_9822modifiedforweb_thumb.jpg",130,87,18);thumbnails[3814550]=new thumbnail(3814550,"105914","","IMG_9919modifiedforweb_thumb.jpg",130,87,18);thumbnails[3624706]=new thumbnail(3624706,"105914","","Boston_thumb.jpg",130,195,18);thumbnails[3624707]=new thumbnail(3624707,"105914","","Boston2_thumb.jpg",130,195,18);thumbnails[1730826]=new thumbnail(1730826,"105914","","1272 with eye brightened1200_thumb.jpg",130,87,18);thumbnails[1734221]=new thumbnail(1734221,"105914","","IMG_2950modifieditffforeweb2_thumb.jpg",130,195,18);thumbnails[1734232]=new thumbnail(1734232,"105914","","2881 monochromecroppedforweb_thumb.jpg",130,141,18);thumbnails[1740519]=new thumbnail(1740519,"105914","","IMG_3152ammendedcroppedforweb_thumb.jpg",130,82,18);thumbnails[1857986]=new thumbnail(1857986,"105914","","Alexforweb_thumb.jpg",130,86,18);thumbnails[2254740]=new thumbnail(2254740,"105914","","IMG_5441b+wforweb1_thumb.jpg",130,87,18);thumbnails[3829794]=new thumbnail(3829794,"105914","","IMG_8201modifiedbw400_thumb.jpg",130,195,18);thumbnails[2532678]=new thumbnail(2532678,"105914","","IMG_6357modified_thumb.jpg",130,195,18);thumbnails[2532680]=new thumbnail(2532680,"105914","","IMG_6392modified_thumb.jpg",130,195,18);thumbnails[2532756]=new thumbnail(2532756,"105914","","6433modified_thumb.jpg",130,80,18);thumbnails[2532777]=new thumbnail(2532777,"105914","","IMG_6406_thumb.jpg",130,195,18);thumbnails[2566025]=new thumbnail(2566025,"105914","","IMG_5606modified_thumb.jpg",130,96,18);thumbnails[2566026]=new thumbnail(2566026,"105914","","IMG_5365b+w_thumb.jpg",130,195,18);thumbnails[2566023]=new thumbnail(2566023,"105914","","IMG_6445modified2_thumb.jpg",130,195,18);thumbnails[2970577]=new thumbnail(2970577,"105914","","IMG_7343modified_thumb.jpg",130,87,18);thumbnails[2278953]=new thumbnail(2278953,"105914","","IMG_5583b_thumb.jpg",130,87,18);thumbnails[3156257]=new thumbnail(3156257,"105914","","IMG_8078_thumb.jpg",130,201,18);thumbnails[3281122]=new thumbnail(3281122,"105914","","IMG_8348modifiedb+wcurves_thumb.jpg",130,87,18);thumbnails[2970409]=new thumbnail(2970409,"105914","","IMG_7392modified_thumb.jpg",130,87,18);thumbnails[3393855]=new thumbnail(3393855,"105914","","Lilli December 08_thumb.jpg",130,195,18);thumbnails[3394352]=new thumbnail(3394352,"105914","","IMG_8511_thumb.jpg",130,87,18);thumbnails[3393879]=new thumbnail(3393879,"105914","","IMG_8596fornet_thumb.jpg",130,195,18);thumbnails[1266495]=new thumbnail(1266495,"90138","Mona Vale swimming pool","216modifiedforweb2_thumb.jpg",130,85,18);thumbnails[1266508]=new thumbnail(1266508,"90138","Mona Vale sunset","167modifiedforweb_thumb.jpg",130,86,18);thumbnails[1504503]=new thumbnail(1504503,"90138","Freshwater beach at sunset","Freshwater sunset for web_thumb.jpg",130,88,18);thumbnails[1508406]=new thumbnail(1508406,"90138","Manly at dusk with waves crashing","602croppedfromrawforweb_thumb.jpg",130,92,18);thumbnails[1745930]=new thumbnail(1745930,"90138","Great Barrier Reef","People on sand bar great barrier reefforweb_thumb.jpg",130,80,18);thumbnails[1745954]=new thumbnail(1745954,"90138","Sunset at the Barrier Reef","Great Barrier Reef chairs for web_thumb.jpg",130,93,18);thumbnails[4183345]=new thumbnail(4183345,"90138","Manly Beach","Manly_beach_HDR_thumb.jpg",130,89,18);thumbnails[878695]=new thumbnail(878695,"67232","Sydney Sunset from HMAS","HMASforweb_thumb.jpg",130,51,18);thumbnails[882192]=new thumbnail(882192,"67232","Sydney Opera House and Bridge at Night","Opera house front on panoforweb_thumb.jpg",130,35,18);thumbnails[889223]=new thumbnail(889223,"67232","Sydney Bridge and Opera House Black and White","IMG_1642B+W_1forweb1_thumb.jpg",130,87,18);thumbnails[904925]=new thumbnail(904925,"67232","Sydney Opera house and bridge sunset","Harbour sunset1 to 2_thumb.8forweb.jpg",130,46,18);thumbnails[925332]=new thumbnail(925332,"67232","Sydney Opera House, Bridge and city at night, panoramic black and white","Bridge at night largeturnedB+Wforweb_thumb.jpg",130,44,18);thumbnails[925417]=new thumbnail(925417,"67232","Sydney Bridge and Opera House sunrise","Bridge in morningforweb_thumb.jpg",130,85,18);thumbnails[977739]=new thumbnail(977739,"67232","Sydney Bridge and Opera House Black and White","Bridge facing west pano B+Wforweb_thumb.jpg",130,51,18);thumbnails[1053941]=new thumbnail(1053941,"67232","Sydney opera house and bridge at dusk","panoofcity11marchforandywithpaintbrushforweb_thumb.jpg",130,25,18);thumbnails[4083164]=new thumbnail(4083164,"67232","Dark skies above the bridge and opera house","IMG_6063_1_2100strength-5lum-5smoothing-gamma81curvehighlightsupshadowsdownforweb_thumb.jpg",130,87,18);thumbnails[1658493]=new thumbnail(1658493,"67232","Sydney Harbour at sunset","437panocroppedblueskypanobridgeandhouse_thumb.jpg",130,44,18);thumbnails[882191]=new thumbnail(882191,"68204","Panoramic photo of Manly beach at sunrise","Manly-sunrise-panomodifiedf_thumb.jpg",130,36,18);thumbnails[907544]=new thumbnail(907544,"68204","Panoramic photo of Freshwater beach and pool","Freshwater pool panocropped_1forweb_thumb.jpg",130,44,18);thumbnails[907576]=new thumbnail(907576,"68204","Panoramic photo of Freshwater beach and pool at sunset","Freshwater pool sunset pano_1forweb_thumb.jpg",130,48,18);thumbnails[907605]=new thumbnail(907605,"68204","Large panoramic view of Freshwater Beach with Manly ","All of freshie pano, high res_1forweb_thumb.jpg",130,26,18);thumbnails[907629]=new thumbnail(907629,"68204","Panoramic photo of Manly Beach from South Steyne","Manly from south steyne pano_1forweb_thumb.jpg",130,33,18);thumbnails[925365]=new thumbnail(925365,"68204","Panoramic photo of Narrabeen and lagoon","Narrabeen lagoon panoforweb_thumb.jpg",130,33,18);thumbnails[2786848]=new thumbnail(2786848,"68204","Panoramic Manly stormy sunset","Manly thunderstorm panobrightened20_thumb.jpg",130,29,18);thumbnails[1745940]=new thumbnail(1745940,"109678","","Roseforweb_thumb.jpg",130,115,18);thumbnails[1886331]=new thumbnail(1886331,"109678","","IMG_7070 blue,green whiteforclikpic_thumb.jpg",130,87,18);thumbnails[1612585]=new thumbnail(1612585,"109678","","893flowermodified_1_thumb.jpg",130,106,18);thumbnails[1628440]=new thumbnail(1628440,"109678","","Tulips black background_thumb.jpg",130,163,18);thumbnails[1612600]=new thumbnail(1612600,"109678","","white flower for web_thumb.jpg",130,87,18);thumbnails[1631707]=new thumbnail(1631707,"109678","","Red flower cropped_thumb.jpg",130,107,18);thumbnails[3912994]=new thumbnail(3912994,"233535","","Collage_for_weddingsforclikpic_thumb.jpg",130,145,18);thumbnails[3836583]=new thumbnail(3836583,"233535","","Lilli_canvas_8001_thumb.jpg",130,98,18);thumbnails[2216844]=new thumbnail(2216844,"146321","","IMG_5056small_thumb.jpg",130,87,18);thumbnails[2216845]=new thumbnail(2216845,"146321","","IMG_5036_1_thumb.jpg",130,195,18);thumbnails[2216849]=new thumbnail(2216849,"146321","","IMG_5242_thumb.JPG",130,87,18);thumbnails[2254739]=new thumbnail(2254739,"146321","","IMG_5445b+wsmallforweb_thumb.jpg",130,87,18);thumbnails[2254748]=new thumbnail(2254748,"146321","","IMG_5343small_thumb.jpg",130,195,18);thumbnails[2317819]=new thumbnail(2317819,"146321","","5647_thumb.jpg",130,195,18);thumbnails[2317918]=new thumbnail(2317918,"146321","","IMG_5556b+w_thumb.jpg",130,195,18);thumbnails[2396112]=new thumbnail(2396112,"146321","","IMG_5753900_thumb.jpg",130,163,18);thumbnails[2396975]=new thumbnail(2396975,"146321","","5656_thumb.jpg",130,195,18);thumbnails[2437671]=new thumbnail(2437671,"146321","","IMG_5836modified_thumb.jpg",130,195,18);thumbnails[2464185]=new thumbnail(2464185,"146321","","IMG_6003modified_thumb.jpg",130,106,18);thumbnails[2464188]=new thumbnail(2464188,"146321","","6086modified_thumb.jpg",130,173,18);thumbnails[2532742]=new thumbnail(2532742,"146321","","6467modified_thumb.jpg",130,142,18);thumbnails[3411472]=new thumbnail(3411472,"146321","","IMG_8560_thumb.jpg",130,195,18);thumbnails[2709442]=new thumbnail(2709442,"170749","","IMG_7209mod_thumb.jpg",130,101,18);thumbnails[2709452]=new thumbnail(2709452,"170749","","IMG_7018modifiedsquare+20brightened_thumb.jpg",130,119,18);thumbnails[2786844]=new thumbnail(2786844,"170749","","IMG_7044inverted copy_thumb.jpg",130,54,18);thumbnails[2937693]=new thumbnail(2937693,"170749","","IMG_7039blue20brightened_thumb.jpg",130,141,18);thumbnails[2937837]=new thumbnail(2937837,"170749","","IMG_7037 copy_thumb.jpg",130,88,18);var galleries=new Object();galleries[232089]=new gallery(232089,"3810161","Weddings","section283476",[3810161,3877821,3912996,3913005,3913011,3913027,3933324,3933336,3933358,3933362,3933370,6026266,6026347,6026548,6032744,6033269,6033325,6033356]);galleries[105914]=new gallery(105914,"1730826","Kids photos ","section140800",[3829800,6026205,3814487,3814550,3624706,3624707,1730826,1734221,1734232,1740519,1857986,2254740,3829794,2532678,2532680,2532756,2532777,2566025,2566026,2566023,2970577,2278953,3156257,3281122,2970409,3393855,3394352,3393879]);galleries[90138]=new gallery(90138,"1266495","Seascapes","gallery",[1266495,1266508,1504503,1508406,1745930,1745954,4183345]);galleries[67232]=new gallery(67232,"4083164,1658493","Sydney Harbour ","gallery",[878695,882192,889223,904925,925332,925417,977739,1053941,4083164,1658493]);galleries[68204]=new gallery(68204,"2786848","Panoramics - Beaches","gallery",[882191,907544,907576,907605,907629,925365,2786848]);galleries[109678]=new gallery(109678,"1612585","Flowers","gallery",[1745940,1886331,1612585,1628440,1612600,1631707]);galleries[233535]=new gallery(233535,"3912994,3836583","Collages","section284610",[3912994,3836583]);galleries[146321]=new gallery(146321,"2254739","Lilli","section140800",[2216844,2216845,2216849,2254739,2254748,2317819,2317918,2396112,2396975,2437671,2464185,2464188,2532742,3411472]);galleries[170749]=new gallery(170749,"2937837,2937693,2786844,2709452,2709442","Studio","gallery",[2709442,2709452,2786844,2937693,2937837]);var imageSets=new Object();imageSets[1]="3829794";imageSets[2]="4083164,3810161,2786848,2254739,1730826,1658493,1612585,1266495";imageSets[3]="6033356,6033325,6033269,6032744,6026548,6026347,6026266,6026205,4183345,4083164,3933370,3933362,3933358,3933336,3933324,3913027,3913011,3913005,3912996,3912994,3877821,3836583,3831594,3829800,3829794,3814550,3814487,3810161,3624707,3624706,3411472,3394352,3393879,3393855,3281122,3156257,2970577,2970409,2937837,2937693,2786848,2786844,2709452,2709442,2566026,2566025,2566023,2532777,2532756,2532742";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/greatjd/images";break}switch(a){case 1:b="http://www1.clikpic.com/greatjd/images";break}switch(a){case 2:b="http://admin.clikpic.com/greatjd/images";break}switch(a){case 24:b="http://tpc15/clikpic/greatjd/images";break}switch(a){case 4:b="http://www.clikchurch.com/greatjd/images";break}switch(a){case 5:b="http://www2.clikpic.com/greatjd/images";break}switch(a){case 22:b="http://tpc5/clikpic/greatjd/images";break}switch(a){case 23:b="http://tpc10/clikpic/greatjd/images";break}switch(a){case 25:b="http://tpc16/clikpic/greatjd/images";break}switch(a){case 15:b="http://www3.clikpic.com/greatjd/images";break}switch(a){case 18:b="http://www4.clikpic.com/greatjd/images";break}switch(a){case 19:b="http://www5.clikpic.com/greatjd/images";break}switch(a){case 31:b="http://www7.clikpic.com/greatjd/images";break}switch(a){case 32:b="http://admin2.clikpic.com/greatjd/images";break}switch(a){case 33:b="http://www8.clikpic.com/greatjd/images";break}switch(a){case 34:b="http://www9.clikpic.com/greatjd/images";break}switch(a){case 35:b="http://admin3.clikpic.com/greatjd/images";break}switch(a){case 37:b="http://admin4.clikpic.com/greatjd/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("section283476"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section283476.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("section283476"!=""){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="John Dawson 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].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> 				AU$"+(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="GREATJD">';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(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+'")'})}}};