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[2002533]=new thumbnail(2002533,"133520","","IMG_0155_thumb.jpg",130,195,32);thumbnails[2002530]=new thumbnail(2002530,"133520","","_MG_5952_thumb.jpg",130,194,32);thumbnails[2002534]=new thumbnail(2002534,"133520","","IMG_0158_thumb.jpg",130,194,32);thumbnails[2002536]=new thumbnail(2002536,"133524","Hire this Fab car for your Bay of Islands Wedding<br>\r\ncontact Jock Kerr-Bell 09 405 5793","IMG_0478a_thumb.jpg",130,87,32);thumbnails[2017230]=new thumbnail(2017230,"133520","","_MG_49853_thumb.jpg",130,195,32);thumbnails[2017243]=new thumbnail(2017243,"133520","","IMG_60311_thumb.jpg",130,195,32);thumbnails[2017244]=new thumbnail(2017244,"133520","","IMG_0646_thumb.jpg",130,194,32);thumbnails[2070638]=new thumbnail(2070638,"133520","Beautiful Bridesmaids","DSC_0150a1_thumb.jpg",130,87,32);thumbnails[2108673]=new thumbnail(2108673,"133520","School Ball Makeover","_MG_15311_thumb.jpg",130,194,32);thumbnails[2111379]=new thumbnail(2111379,"133520","","_MG_sheree1_thumb.jpg",130,194,32);thumbnails[2111380]=new thumbnail(2111380,"133520","","_MG_steffi_thumb.jpg",130,194,32);thumbnails[2111381]=new thumbnail(2111381,"133520","","_MG_uwana_thumb.jpg",130,194,32);thumbnails[2111382]=new thumbnail(2111382,"133524","Arrive in Style!<br>\r\nwith Northland Limousines,<br>\r\nTreat yourself to Luxury<br>\r\nwww.limo4me.co.nz<br>\r\n0800 546 6463","_MG_limo_thumb.jpg",130,87,32);thumbnails[2002531]=new thumbnail(2002531,"133520","Myself, snapped readying another gorgeous Bride.","_MG_5947_thumb.jpg",130,87,32);thumbnails[5501806]=new thumbnail(5501806,"133280","","Sammi__Chris_Mathieson-54web_thumb.jpg",130,195,32);thumbnails[5501807]=new thumbnail(5501807,"133280","","Sammi__Chris_Mathieson-71web_thumb.jpg",130,87,32);thumbnails[5501808]=new thumbnail(5501808,"133280","","Sammi__Chris_Mathieson-162web_thumb.jpg",130,195,32);thumbnails[5501809]=new thumbnail(5501809,"133280","","Sammi__Chris_Mathieson-382web_thumb.jpg",130,195,32);thumbnails[5501810]=new thumbnail(5501810,"133280","","Sammi__Chris_Mathieson-514web_thumb.jpg",130,195,32);thumbnails[5501811]=new thumbnail(5501811,"133280","","Sammi__Chris_Mathieson-548web_thumb.jpg",130,195,32);thumbnails[5501812]=new thumbnail(5501812,"133280","","Sammi__Chris_Mathieson-553web_thumb.jpg",130,87,32);thumbnails[5501814]=new thumbnail(5501814,"133280","","Sammi__Chris_Mathieson-592wweb_thumb.jpg",130,87,32);thumbnails[5501817]=new thumbnail(5501817,"133280","","Sammi__Chris_Mathieson-680web_thumb.jpg",130,195,32);thumbnails[5501820]=new thumbnail(5501820,"133280","","Sammi__Chris_Mathieson-698web_thumb.jpg",130,195,32);thumbnails[5501821]=new thumbnail(5501821,"133280","","Sammi__Chris_Mathieson-737web_thumb.jpg",130,87,32);thumbnails[5501822]=new thumbnail(5501822,"133280","","Sammi__Chris_Mathieson-755web_thumb.jpg",130,87,32);thumbnails[5501823]=new thumbnail(5501823,"133280","","Sammi__Chris_Mathieson-784web_thumb.jpg",130,87,32);thumbnails[5501824]=new thumbnail(5501824,"133280","","Sammi__Chris_Mathieson-817web_thumb.jpg",130,195,32);thumbnails[5501825]=new thumbnail(5501825,"133280","","Sammi__Chris_Mathieson-835web_thumb.jpg",130,195,32);thumbnails[5501826]=new thumbnail(5501826,"133280","","Sammi__Chris_Mathieson-848web_thumb.jpg",130,195,32);thumbnails[5501827]=new thumbnail(5501827,"133280","","Sammi__Chris_Mathieson-_876web_thumb.jpg",130,195,32);thumbnails[5600783]=new thumbnail(5600783,"133280","","_MG_0046blurweb_size_thumb.jpg",130,87,32);thumbnails[3517741]=new thumbnail(3517741,"311572","","Michelle & Stew G-67web_thumb.jpg",130,193,32);thumbnails[3818559]=new thumbnail(3818559,"311572","","Michelle__Stew_B-26websize_thumb.jpg",130,193,32);thumbnails[3818951]=new thumbnail(3818951,"311572","","Michelle__Stew_B-46web_thumb.jpg",130,194,32);thumbnails[3818953]=new thumbnail(3818953,"311572","","Michelle__Stew_B-27web_thumb.jpg",130,195,32);thumbnails[3818964]=new thumbnail(3818964,"311572","","Michelle__Stew_A-73web_thumb.jpg",130,195,32);thumbnails[3818969]=new thumbnail(3818969,"311572","","Michelle__Stew_A-122web_thumb.jpg",130,87,32);thumbnails[3836908]=new thumbnail(3836908,"311572","","Michelle__Stew_G-94web_thumb.jpg",130,195,32);thumbnails[3818563]=new thumbnail(3818563,"232698","","Ryan__Michelle_Frear-616websize_thumb.jpg",130,195,32);thumbnails[3818601]=new thumbnail(3818601,"232698","","Ryan__Michelle_Frear-539websize1_thumb.jpg",130,87,32);thumbnails[3818603]=new thumbnail(3818603,"232698","","Ryan__Michelle_Frear-610web_thumb.jpg",130,195,32);thumbnails[3818605]=new thumbnail(3818605,"232698","","Ryan__Michelle_Frear-606websize_thumb.jpg",130,195,32);thumbnails[3818621]=new thumbnail(3818621,"232698","","Ryan__Michelle_Frear-581web_thumb.jpg",130,87,32);thumbnails[3819163]=new thumbnail(3819163,"232698","","Ryan__Michelle_Frear-6web_thumb.jpg",130,87,32);thumbnails[3819167]=new thumbnail(3819167,"232698","","Ryan__Michelle_Frear-252web_thumb.jpg",130,87,32);thumbnails[3819171]=new thumbnail(3819171,"232698","","Ryan__Michelle_Frear-450web_thumb.jpg",130,195,32);thumbnails[3819203]=new thumbnail(3819203,"232698","","Ryan__Michelle_Frear-681web_thumb.jpg",130,87,32);thumbnails[3818580]=new thumbnail(3818580,"232699","","_MG_6132web_thumb.jpg",130,87,32);thumbnails[3818624]=new thumbnail(3818624,"232699","","IMG_0390bweb_thumb.jpg",130,87,32);thumbnails[3818625]=new thumbnail(3818625,"232699","","IMG_0389web_thumb.jpg",130,87,32);thumbnails[3818980]=new thumbnail(3818980,"232699","","_MG_0431web_thumb.jpg",130,195,32);thumbnails[3818982]=new thumbnail(3818982,"232699","","_MG_0482bweb_thumb.jpg",130,87,32);thumbnails[3818985]=new thumbnail(3818985,"232699","","_MG_0538webjpg_thumb.jpg",130,87,32);thumbnails[3818987]=new thumbnail(3818987,"232699","","_MG_49321_thumb.jpg",130,195,32);thumbnails[3818990]=new thumbnail(3818990,"232699","","_MG_4982web_thumb.jpg",130,195,32);thumbnails[3818993]=new thumbnail(3818993,"232699","","_MG_4985web_thumb.jpg",130,195,32);thumbnails[3818994]=new thumbnail(3818994,"232699","","_MG_4986aweb_thumb.jpg",130,195,32);thumbnails[3818995]=new thumbnail(3818995,"232699","","_MG_5026web_thumb.jpg",130,195,32);thumbnails[3819004]=new thumbnail(3819004,"232699","","_MG_5219web_thumb.jpg",130,194,32);thumbnails[3819154]=new thumbnail(3819154,"232699","","_MG_6135ajpgweb_thumb.jpg",130,194,32);thumbnails[3858792]=new thumbnail(3858792,"232699","Stunning Bride in Waiting, prince charming is coming............","IMG_0440webjpg1_thumb.jpg",130,195,32);thumbnails[3858793]=new thumbnail(3858793,"232699","","IMG_6102aweb_thumb.jpg",130,194,32);thumbnails[3858796]=new thumbnail(3858796,"232699","Gorgeous! Bridesmaid.","IMG_6026a1_thumb.jpg",130,195,32);thumbnails[3858834]=new thumbnail(3858834,"232699","","IMG_0478aweb_thumb.jpg",130,87,32);thumbnails[3858860]=new thumbnail(3858860,"232699","","IMG_0452web_thumb.jpg",130,195,32);thumbnails[3863284]=new thumbnail(3863284,"232699","Before picture","_MG_6005beforewebpic_thumb.jpg",130,195,32);thumbnails[3863285]=new thumbnail(3863285,"232699"," After -Post production enhancement","Bajour_bw_portraitafter12_thumb.jpg",130,194,32);thumbnails[3863287]=new thumbnail(3863287,"232699","","IMG_6034aweb_thumb.jpg",130,195,32);thumbnails[3858799]=new thumbnail(3858799,"232699","","IMG_6031web_thumb.jpg",130,195,32);thumbnails[3818582]=new thumbnail(3818582,"232700","","_MG_6831ajpgweb_thumb.jpg",130,194,32);thumbnails[3818610]=new thumbnail(3818610,"232700","","IMG_6583web_thumb.jpg",130,87,32);thumbnails[3818612]=new thumbnail(3818612,"232700","","_MG_6524web_thumb.jpg",130,87,32);thumbnails[3818613]=new thumbnail(3818613,"232700","","_MG_6506web_thumb.jpg",130,195,32);thumbnails[3818614]=new thumbnail(3818614,"232700","","_MG_6660web_thumb.jpg",130,194,32);thumbnails[3818622]=new thumbnail(3818622,"232700","","IMG_6422web_thumb.jpg",130,87,32);thumbnails[3818626]=new thumbnail(3818626,"232700","","_MG_6817web_thumb.jpg",130,87,32);thumbnails[3819160]=new thumbnail(3819160,"232700","","IMG_6586web_thumb.jpg",130,87,32);thumbnails[3819208]=new thumbnail(3819208,"232700","","_MG_6819a_thumb.jpg",130,87,32);thumbnails[3819212]=new thumbnail(3819212,"232700","","_MG_6618web_thumb.jpg",130,195,32);thumbnails[3818576]=new thumbnail(3818576,"133518","","_MG_0020aweb_thumb.jpg",130,87,32);thumbnails[3818578]=new thumbnail(3818578,"133518","","_MG_0068web_thumb.jpg",130,195,32);thumbnails[3818583]=new thumbnail(3818583,"133518","","_MG_6891web_thumb.jpg",130,87,32);thumbnails[3818584]=new thumbnail(3818584,"133518","","_MG_6662web_thumb.jpg",130,195,32);thumbnails[3818585]=new thumbnail(3818585,"133518","","_MG_6674aweb_thumb.jpg",130,194,32);thumbnails[3818586]=new thumbnail(3818586,"133518","","_MG_6688jpgweb_thumb.jpg",130,87,32);thumbnails[3818588]=new thumbnail(3818588,"133518","","_MG_6919abwweb_thumb.jpg",130,194,32);thumbnails[3818591]=new thumbnail(3818591,"133518","","IMG_0032web_thumb.jpg",130,195,32);thumbnails[3818599]=new thumbnail(3818599,"133518","","_MG_6940web_thumb.jpg",130,195,32);thumbnails[3818600]=new thumbnail(3818600,"133518","","_MG_6950web_thumb.jpg",130,87,32);thumbnails[3818598]=new thumbnail(3818598,"133518","","_MG_6936web_thumb.jpg",130,195,32);thumbnails[5092823]=new thumbnail(5092823,"287951","Before","Erin_image_untouched_thumb.jpg",130,196,32);thumbnails[5093180]=new thumbnail(5093180,"287951","After, with unwanted background retouched.","Erin_retouched_thumb.jpg",130,193,32);thumbnails[5098748]=new thumbnail(5098748,"287951","Before...","IMG_2053_thumb.jpg",130,173,32);thumbnails[5098749]=new thumbnail(5098749,"287951","After,with distracting background removed","IMG_2053a_thumb.jpg",130,173,32);thumbnails[5098850]=new thumbnail(5098850,"287951","Image before retouching....","Jansen_restoration_untouched_thumb.jpg",130,167,32);thumbnails[5098852]=new thumbnail(5098852,"287951","...after restoration","Restoraton_Jansen_thumb.jpg",130,174,32);thumbnails[5099014]=new thumbnail(5099014,"287951","Historic photo, badly damaged....","_IMG_roger_original1_thumb.jpg",130,191,32);thumbnails[5099038]=new thumbnail(5099038,"287951","After restoration, returned to its former state.","Roger_picfinishedjpg1_thumb.jpg",130,193,32);var galleries=new Object();galleries[133520]=new gallery(133520,"2111381,2111380,2111379,2108673,2070638,2017244,2017243,2017230,2002534,2002533","Make Up","section173016",[2002533,2002530,2002534,2017230,2017243,2017244,2070638,2108673,2111379,2111380,2111381,2002531]);galleries[133524]=new gallery(133524,"2111382,2002536","Recommended Services","section173017",[2002536,2111382]);galleries[133280]=new gallery(133280,"5600783,5501827,5501826,5501825,5501824,5501823,5501822,5501821,5501820,5501817","Gallery 1","section373449",[5501806,5501807,5501808,5501809,5501810,5501811,5501812,5501814,5501817,5501820,5501821,5501822,5501823,5501824,5501825,5501826,5501827,5600783]);galleries[311572]=new gallery(311572,"3836908,3818969,3818964,3818953,3818951,3818559,3517741","Gallery 2","section173006",[3517741,3818559,3818951,3818953,3818964,3818969,3836908]);galleries[232698]=new gallery(232698,"3819203,3819171,3819167,3819163,3818621,3818605,3818603,3818601,3818563","Gallery 3","gallery",[3818563,3818601,3818603,3818605,3818621,3819163,3819167,3819171,3819203]);galleries[232699]=new gallery(232699,"3863287,3863285,3863284,3858860,3858834,3858799,3858796,3858793,3858792,3819154","gallery 4","section284101",[3818580,3818624,3818625,3818980,3818982,3818985,3818987,3818990,3818993,3818994,3818995,3819004,3819154,3858792,3858793,3858796,3858834,3858860,3863284,3863285,3863287,3858799]);galleries[232700]=new gallery(232700,"3819212,3819208,3819160,3818626,3818622,3818614,3818613,3818612,3818610,3818582","gallery 5","section284103",[3818582,3818610,3818612,3818613,3818614,3818622,3818626,3819160,3819208,3819212]);galleries[133518]=new gallery(133518,"3818600,3818599,3818598,3818591,3818588,3818586,3818585,3818584,3818583,3818578","Gallery 6","section284104",[3818576,3818578,3818583,3818584,3818585,3818586,3818588,3818591,3818599,3818600,3818598]);galleries[287951]=new gallery(287951,"5099038,5099014,5098852,5098850,5098749,5098748,5093180,5092823","Restorations","section345456",[5092823,5093180,5098748,5098749,5098850,5098852,5099014,5099038]);var imageSets=new Object();imageSets[1]="5600783";imageSets[3]="5600783,5501827,5501826,5501825,5501824,5501823,5501822,5501821,5501820,5501817,5501814,5501812,5501811,5501810,5501809,5501808,5501807,5501806,5099038,5099014,5098852,5098850,5098749,5098748,5093180,5092823,3863287,3863285,3863284,3858860,3858834,3858799,3858796,3858793,3858792,3836908,3819212,3819208,3819203,3819171,3819167,3819163,3819160,3819154,3819004,3818995,3818994,3818993,3818990,3818987";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/fotoworx/images";break}switch(a){case 1:b="http://www1.clikpic.com/fotoworx/images";break}switch(a){case 2:b="http://admin.clikpic.com/fotoworx/images";break}switch(a){case 24:b="http://tpc15/clikpic/fotoworx/images";break}switch(a){case 4:b="http://www.clikchurch.com/fotoworx/images";break}switch(a){case 5:b="http://www2.clikpic.com/fotoworx/images";break}switch(a){case 22:b="http://tpc5/clikpic/fotoworx/images";break}switch(a){case 23:b="http://tpc10/clikpic/fotoworx/images";break}switch(a){case 25:b="http://tpc16/clikpic/fotoworx/images";break}switch(a){case 15:b="http://www3.clikpic.com/fotoworx/images";break}switch(a){case 18:b="http://www4.clikpic.com/fotoworx/images";break}switch(a){case 19:b="http://www5.clikpic.com/fotoworx/images";break}switch(a){case 31:b="http://www7.clikpic.com/fotoworx/images";break}switch(a){case 32:b="http://admin2.clikpic.com/fotoworx/images";break}switch(a){case 33:b="http://www8.clikpic.com/fotoworx/images";break}switch(a){case 34:b="http://www9.clikpic.com/fotoworx/images";break}switch(a){case 35:b="http://admin3.clikpic.com/fotoworx/images";break}switch(a){case 37:b="http://admin4.clikpic.com/fotoworx/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("section373449"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section373449.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("section373449"!=""){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="FOTOWORXX: "+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+'")'})}}};