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[1589709]=new thumbnail(1589709,"","","PhotoArt_logo_small_thumb.jpg",130,37,15);thumbnails[6267065]=new thumbnail(6267065,"348359","The Memorial at Chickenden Farm Staplehurst","The_Memorial_thumb.jpg",130,88,15);thumbnails[6267123]=new thumbnail(6267123,"348359","The Wreaths laid at the Staplehurst ALG Memorial","The_Wreaths_thumb.jpg",130,79,15);thumbnails[6267071]=new thumbnail(6267071,"348359","The Inscription on the ALG Memorial Staplehurst.","Memorial_inscription_thumb.jpg",130,162,15);thumbnails[6286498]=new thumbnail(6286498,"348359","Guard of Honour","Guard_of_Honour_thumb.jpg",130,92,15);thumbnails[6286625]=new thumbnail(6286625,"348359","Waiting for the Guests","Waiting_for_the_Guests_-_2_A2E4D371-24E8-5EC4-4F06F7FCB727253F_thumb.jpg",130,84,15);thumbnails[6286219]=new thumbnail(6286219,"348359","'General Patton' receives his instructions","General_Patton_receives_his_instructions_thumb.jpg",130,82,15);thumbnails[6286594]=new thumbnail(6286594,"348359","'General ' Patton talks tactics with the Mayor","Patton_talks_tactics_with_the_Mayor_A2DAC49C-24E8-5EC4-4F6BCE6ED5FF6353_thumb.jpg",130,198,15);thumbnails[6286607]=new thumbnail(6286607,"348359","Colonel John R Ulricson arrives for the Service in  in USAAF Jeep","Colonel_John_R_Ulricson_arrives_thumb.jpg",130,93,15);thumbnails[6286605]=new thumbnail(6286605,"348359","Lt Colonel Bill Bullard arrives for the Service in USAAF Jeep","Lt_Colonel_Bill_Bullard_arrives_thumb.jpg",130,85,15);thumbnails[6267100]=new thumbnail(6267100,"348359","Lighting the Candle at the Memorial Service","Lighting_the_Candle_thumb.jpg",130,184,15);thumbnails[6289460]=new thumbnail(6289460,"348359","Leaving Church","Lt_Colonel_Bill_Bullard_leaves_the_chuch_with_his_wife_and_daughter_thumb.jpg",130,168,15);thumbnails[6286193]=new thumbnail(6286193,"348359","Deep in conversation","Deep_in_conversation_thumb.jpg",130,94,15);thumbnails[6289470]=new thumbnail(6289470,"348359","Colonel John R Ulricson leaving the Church with his son.","Colonel_John_R_Ulricson_leaving_the_Church_thumb.jpg",130,105,15);thumbnails[6289480]=new thumbnail(6289480,"348359","Sharing a Joke","Sharing_a_Joke_thumb.jpg",130,93,15);thumbnails[6289507]=new thumbnail(6289507,"348359","Lt Colonel Bill Bullard","Lt_Colonel_Bill_Bullard_thumb.jpg",130,182,15);thumbnails[6289524]=new thumbnail(6289524,"348359","Colonel John R Ulricson and Family arrive at ALG Memorial site","Colonel_John_R_Ulricson_and_Family_thumb.jpg",130,80,15);thumbnails[6289537]=new thumbnail(6289537,"348359","Colonel John R Ulricson and Lt Colonel Bill Bullard ","Colonel_John_R_Ulricson_and_Lt_Colonel_Bill_Bullard__thumb.jpg",130,105,15);thumbnails[6289565]=new thumbnail(6289565,"348359","The Unveiling","The_Unveiling_thumb.jpg",130,92,15);thumbnails[6289574]=new thumbnail(6289574,"348359","Studying the Inscription on the ALG Memorial","Studying_the_Inscription_thumb.jpg",130,92,15);thumbnails[6289585]=new thumbnail(6289585,"348359","The Silence","The_Silence_thumb.jpg",130,93,15);thumbnails[6289598]=new thumbnail(6289598,"348359","Saluting the fallen","Wreath_laying_-_2_thumb.jpg",130,101,15);thumbnails[6289612]=new thumbnail(6289612,"348359","Flypast over Chickenden farmhouse Staplehurst","Flypast_over_Chickenden_farmhouse_thumb.jpg",130,90,15);thumbnails[6267504]=new thumbnail(6267504,"348359","Mustang Flypast","Mustang_Flypast_thumb.jpg",130,92,15);thumbnails[6289659]=new thumbnail(6289659,"348359","The Bullard Family","Bullard_Family_thumb.jpg",130,170,15);thumbnails[6289670]=new thumbnail(6289670,"348359","Colonel John R Ulricson and Ted Sergison","Colonel_John_R_Ulricson_and_Ted_Sergison_thumb.jpg",130,111,15);thumbnails[6289684]=new thumbnail(6289684,"348359","Outside the Oasthouse at Chickenden","Outside_the_Oasthouse_at_Chickenden_thumb.jpg",130,165,15);thumbnails[6289698]=new thumbnail(6289698,"348359","Outside the Oasthouse at Chickenden - close-up","Outside_the_Oasthouse_at_Chickenden_-_close-up_thumb.jpg",130,79,15);thumbnails[6268380]=new thumbnail(6268380,"348359","Veterans at Chickenden Farm 2010","Veterans_at_Chickenden_2010_thumb.jpg",130,92,15);thumbnails[6311722]=new thumbnail(6311722,"348359","Subsequent wreath laying on behalf of the Bullard family","Bullard_wreath_laying_-_2_thumb.jpg",130,87,15);thumbnails[6268349]=new thumbnail(6268349,"348359","Memorial Construction","Memorial_Construction_thumb.jpg",130,84,15);thumbnails[1632683]=new thumbnail(1632683,"98704","Copied from a Glass Lantern Slide","Glass_Slide1_thumb.jpg",130,130,15);thumbnails[1632698]=new thumbnail(1632698,"98704","Copied from a Glass Lantern Slide","Glass_Slide2_thumb.jpg",130,130,15);thumbnails[1632702]=new thumbnail(1632702,"97828","An example of our photo restoration work","Restoration_Sample1_thumb.jpg",130,122,15);thumbnails[1632704]=new thumbnail(1632704,"97828","An example of our photo restoration work work","Restoration_Sample2_thumb.jpg",130,134,15);thumbnails[1424408]=new thumbnail(1424408,"98704","Heraldic Artwork by Michael Perry","Victulars_Bicentenery_thumb.jpg",130,173,15);thumbnails[1424418]=new thumbnail(1424418,"98704","Heraldic Artwork by Michael Perry","Kingsclere_Service_ Award_thumb.jpg",130,193,15);thumbnails[1610808]=new thumbnail(1610808,"97817","Pastel Orchid","Pastel Orchid_thumb.jpg",130,93,15);thumbnails[1611363]=new thumbnail(1611363,"97817","Viaduct Track","Viaduct Track_thumb.jpg",130,79,15);thumbnails[1611402]=new thumbnail(1611402,"97817","Wet & Windy","Wet and Windy_thumb.jpg",130,73,15);thumbnails[1611415]=new thumbnail(1611415,"97817","Memorial to Women of World War 2","Women's War Memorial_thumb.jpg",130,87,15);thumbnails[1407820]=new thumbnail(1407820,"97817","'A walk on the Wild Side'","A_Walk_on_the_Wildside_temp_thumb.jpg",130,57,15);thumbnails[1407838]=new thumbnail(1407838,"97817","'Storm on the Horizon'","Storm_on_the_horizon_thumb.jpg",130,85,15);thumbnails[1407824]=new thumbnail(1407824,"97817","'Dales Morning'","Dales_Morning_thumb.jpg",130,87,15);thumbnails[1424279]=new thumbnail(1424279,"97817","Limestone Pavement","Limestone_Pavement_thumb.jpg",130,76,15);thumbnails[1424336]=new thumbnail(1424336,"97817","Lover's Stroll","Lovers_Stroll_thumb.jpg",130,93,15);thumbnails[1610753]=new thumbnail(1610753,"97837","Boardwalk","Boardwalk_thumb.jpg",130,191,15);thumbnails[1611341]=new thumbnail(1611341,"97837","Kernal","Kernal_thumb.jpg",130,180,15);thumbnails[1407981]=new thumbnail(1407981,"97837","'Red Roof'","Red_Roof_thumb.jpg",130,197,15);thumbnails[1407991]=new thumbnail(1407991,"97837","'Blue Desolation'","Blue_Desolation_thumb.jpg",130,189,15);thumbnails[1610778]=new thumbnail(1610778,"97821","Lady Hill Silhouette","Lady Hill Silhouette_thumb.jpg",130,92,15);thumbnails[1610754]=new thumbnail(1610754,"97821","Boardwalk Reflection","Boardwalk Reflections_thumb.jpg",130,87,15);thumbnails[1610790]=new thumbnail(1610790,"97821","Lilies in the Sun","Lilies in the Sun_thumb.jpg",130,95,15);thumbnails[1610762]=new thumbnail(1610762,"97821","Huts and Footprints","Huts & Footprints_thumb.jpg",130,182,15);thumbnails[1428100]=new thumbnail(1428100,"97821","The White House at Lunns","The_White_house_thumb.jpg",130,157,15);thumbnails[1610799]=new thumbnail(1610799,"97821","Narrowboat","Narrowboat_thumb.jpg",130,182,15);thumbnails[1428120]=new thumbnail(1428120,"97821","Evening Sentinals","Evening_Sentinals_thumb.jpg",130,92,15);thumbnails[1428114]=new thumbnail(1428114,"97821","Cuckmere Blue","Cuckmere_Blue_thumb.jpg",130,76,15);thumbnails[1428091]=new thumbnail(1428091,"97821","Bow Kalidescope","Bow_Kalidescope_thumb.jpg",130,238,15);thumbnails[1410283]=new thumbnail(1410283,"97840","Renovated Boiler House","E_&_ B_9_thumb.jpg",130,87,15);thumbnails[1410361]=new thumbnail(1410361,"97840","","E_&_B_10_thumb.jpg",130,87,15);thumbnails[1410373]=new thumbnail(1410373,"97840","School Kitchen","E_&_B_111_thumb.jpg",130,87,15);thumbnails[1410374]=new thumbnail(1410374,"97840","","E_&_B_12_thumb.jpg",130,87,15);thumbnails[1410375]=new thumbnail(1410375,"97840","","E_&_B_13_thumb.jpg",130,87,15);thumbnails[1410380]=new thumbnail(1410380,"97840","","E_&_B_14_thumb.jpg",130,87,15);thumbnails[1589989]=new thumbnail(1589989,"97840","School Classroom - 2","E_&_ B_4_thumb.jpg",130,87,15);thumbnails[1608217]=new thumbnail(1608217,"97840","School Refrectory","15315C_thumb.jpg",130,87,15);thumbnails[1608257]=new thumbnail(1608257,"97840","","18862C_thumb.jpg",130,87,15);thumbnails[1608260]=new thumbnail(1608260,"97840","Little Silver Country Hotel.","LS Front_thumb.jpg",130,87,15);thumbnails[1608296]=new thumbnail(1608296,"97840","Room 14, Little Silver Hotel","Room 14_thumb.jpg",130,87,15);thumbnails[1408167]=new thumbnail(1408167,"97840","","E_&_ B_2_thumb.jpg",130,87,15);thumbnails[1408184]=new thumbnail(1408184,"97840","School Classroom - 1","E_&_ B_5_thumb.jpg",130,87,15);thumbnails[1408187]=new thumbnail(1408187,"97840","Flower Shop","Barry_Jones_1_thumb.jpg",130,87,15);thumbnails[1408190]=new thumbnail(1408190,"97840","Platinum Suite - 1","LS_2_thumb.jpg",130,87,15);thumbnails[1408193]=new thumbnail(1408193,"97840","","E_&_ B_1_thumb.jpg",130,87,15);thumbnails[1408195]=new thumbnail(1408195,"97840","","E_&_ B_3_thumb.jpg",130,87,15);thumbnails[1610285]=new thumbnail(1610285,"98007","Kitchen Showrooms","C19189_thumb.jpg",130,184,15);thumbnails[1408197]=new thumbnail(1408197,"98007","School Corridor.","E_&_ B_6_thumb.jpg",130,195,15);thumbnails[1408199]=new thumbnail(1408199,"98007","Platinum Suite - 2","LS_3_thumb.jpg",130,195,15);thumbnails[1408198]=new thumbnail(1408198,"98007","Cleaning High Windows","Heathcroft_1_thumb.jpg",130,196,15);thumbnails[1410276]=new thumbnail(1410276,"97839","Boiler House before","E_&_ B_7_thumb.jpg",130,87,15);thumbnails[1410279]=new thumbnail(1410279,"97839","Boiler House After","E_&_ B_8_thumb.jpg",130,87,15);thumbnails[1608251]=new thumbnail(1608251,"97844","Coffee table - puzzle","21687C_thumb.jpg",130,87,15);thumbnails[1424444]=new thumbnail(1424444,"97844","Trophy","Elsmore_Trophy_thumb.jpg",130,182,15);thumbnails[1428803]=new thumbnail(1428803,"97844","","HCP_1_thumb.jpg",130,84,15);thumbnails[1428811]=new thumbnail(1428811,"97844","","HCP_2_thumb.jpg",130,86,15);thumbnails[1428807]=new thumbnail(1428807,"97844","","Ice_1_thumb.jpg",130,87,15);var galleries=new Object();galleries[348359]=new gallery(348359,"6311722,6289698,6289684,6289670,6289659,6289612,6289598,6289585,6289574,6289565","STAPLEHURST ALG MEMORIAL","gallery",[6267065,6267123,6267071,6286498,6286625,6286219,6286594,6286607,6286605,6267100,6289460,6286193,6289470,6289480,6289507,6289524,6289537,6289565,6289574,6289585,6289598,6289612,6267504,6289659,6289670,6289684,6289698,6268380,6311722,6268349]);galleries[98704]=new gallery(98704,"1424408","Copy Work","gallery",[1632683,1632698,1424408,1424418]);galleries[97828]=new gallery(97828,"1632702","Photo Restoration","gallery",[1632702,1632704]);galleries[97822]=new gallery(97822,"1428091,1407981,1407824","PhotoArt","gallery",[]);galleries[97817]=new gallery(97817,"1407824","PhotoArt - Mono","gallery",[1610808,1611363,1611402,1611415,1407820,1407838,1407824,1424279,1424336]);galleries[97837]=new gallery(97837,"1407981","PhotoArt - Mono","gallery",[1610753,1611341,1407981,1407991]);galleries[97821]=new gallery(97821,"1428091","PhotoArt - Colour","gallery",[1610778,1610754,1610790,1610762,1428100,1610799,1428120,1428114,1428091]);galleries[97826]=new gallery(97826,"1424444,1410276,1408197,1408167","Commercial & Industrial","gallery",[]);galleries[97840]=new gallery(97840,"1408167","C & I - General-1","gallery",[1410283,1410361,1410373,1410374,1410375,1410380,1589989,1608217,1608257,1608260,1608296,1408167,1408184,1408187,1408190,1408193,1408195]);galleries[98007]=new gallery(98007,"1408197","C & I - General-2","gallery",[1610285,1408197,1408199,1408198]);galleries[97839]=new gallery(97839,"1410276","Site Progress Work","gallery",[1410276,1410279]);galleries[97844]=new gallery(97844,"1424444","Studio Photography","gallery",[1608251,1424444,1428803,1428811,1428807]);galleries[97827]=new gallery(97827,"1632702,1424408","Restoration and Copy Work","gallery",[]);var imageSets=new Object();imageSets[1]="1611415,1610808,1610778,1610754,1424279,1407838,1407824,1407820";imageSets[2]="1632702,1428091,1424444,1424408,1410276,1408197,1408167,1407981,1407824";imageSets[3]="6311722,6289698,6289684,6289670,6289659,6289612,6289598,6289585,6289574,6289565,6289537,6289524,6289507,6289480,6289470,6289460,6286625,6286607,6286605,6286594,6286498,6286219,6286193,6268380,6268349,6267504,6267123,6267100,6267071,6267065,1632704,1632702,1632698,1632683,1611415,1611402,1611363,1611341,1610808,1610799,1610790,1610778,1610762,1610754,1610753,1610285,1608296,1608260,1608257,1608251";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/FrankPhoto/images";break}switch(a){case 1:b="http://www1.clikpic.com/FrankPhoto/images";break}switch(a){case 2:b="http://admin.clikpic.com/FrankPhoto/images";break}switch(a){case 24:b="http://tpc15/clikpic/FrankPhoto/images";break}switch(a){case 4:b="http://www.clikchurch.com/FrankPhoto/images";break}switch(a){case 5:b="http://www2.clikpic.com/FrankPhoto/images";break}switch(a){case 22:b="http://tpc5/clikpic/FrankPhoto/images";break}switch(a){case 23:b="http://tpc10/clikpic/FrankPhoto/images";break}switch(a){case 25:b="http://tpc16/clikpic/FrankPhoto/images";break}switch(a){case 15:b="http://www3.clikpic.com/FrankPhoto/images";break}switch(a){case 18:b="http://www4.clikpic.com/FrankPhoto/images";break}switch(a){case 19:b="http://www5.clikpic.com/FrankPhoto/images";break}switch(a){case 31:b="http://www7.clikpic.com/FrankPhoto/images";break}switch(a){case 32:b="http://admin2.clikpic.com/FrankPhoto/images";break}switch(a){case 33:b="http://www8.clikpic.com/FrankPhoto/images";break}switch(a){case 34:b="http://www9.clikpic.com/FrankPhoto/images";break}switch(a){case 35:b="http://admin3.clikpic.com/FrankPhoto/images";break}switch(a){case 37:b="http://admin4.clikpic.com/FrankPhoto/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="Frank Page Photographer: "+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+'")'})}}};