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[5864645]=new thumbnail(5864645,"332778","Roanna Black and white stripes","DSC_0035_web_thumb.jpg",130,195,32);thumbnails[5865030]=new thumbnail(5865030,"332778","Claire hand in hair","Focus_5_grainy_thumb.jpg",130,130,32);thumbnails[5865050]=new thumbnail(5865050,"332778","Sian meet me halfway","DSC_0069_flt_web_li_thumb.jpg",130,196,32);thumbnails[5865093]=new thumbnail(5865093,"332778","Maggie black dress","DSC_0004_web_thumb.jpg",130,195,32);thumbnails[5865242]=new thumbnail(5865242,"332778","Carly looking to camera","Carly_41_thumb.jpg",130,87,32);thumbnails[5865436]=new thumbnail(5865436,"332778","Carly red lips","Carly_20_copy1_thumb.jpg",130,87,32);thumbnails[5865550]=new thumbnail(5865550,"332778","Roanna foot on chair","DSC_0032_web_thumb.jpg",130,195,32);thumbnails[5865789]=new thumbnail(5865789,"332778","Carly  black dress smiling","Carly_1_flt_thumb.jpg",130,194,32);thumbnails[5865812]=new thumbnail(5865812,"332778","Samantha (Zenith)","sam_web_936BAD8F-24E8-5EC4-4FF4400B7FC64C00_thumb.jpg",130,87,32);thumbnails[5865816]=new thumbnail(5865816,"332778","phillipa white bikini","Border_Polaroid_Apip_2d_thumb.jpg",130,178,32);thumbnails[5866591]=new thumbnail(5866591,"332778","Sian B","DSC_0106_web_thumb.jpg",130,195,32);thumbnails[5866611]=new thumbnail(5866611,"332778","Carly black wall","Carly_8_web_thumb.jpg",130,194,32);thumbnails[5867564]=new thumbnail(5867564,"","911 vs boxter","Cnt_1_web_thumb.jpg",130,72,32);thumbnails[5871680]=new thumbnail(5871680,"","balloons","scan_4_thumb.jpg",130,88,32);thumbnails[5872718]=new thumbnail(5872718,"332778","Simon Mirror sunglasses","DSC_0038_copy_web_thumb.jpg",130,195,32);thumbnails[5875829]=new thumbnail(5875829,"","","a2_thumb.jpg",130,87,32);thumbnails[5875831]=new thumbnail(5875831,"","","d1_thumb.jpg",130,87,32);thumbnails[5875874]=new thumbnail(5875874,"","","e_thumb.jpg",130,87,32);thumbnails[5876000]=new thumbnail(5876000,"","","f_thumb.jpg",130,87,32);thumbnails[5876042]=new thumbnail(5876042,"","","g_thumb.jpg",130,87,32);thumbnails[5876620]=new thumbnail(5876620,"","","h_thumb.jpg",130,87,32);thumbnails[5877025]=new thumbnail(5877025,"","","c_thumb.jpg",130,87,32);thumbnails[5892431]=new thumbnail(5892431,"332778","Roanna colour wall","DSC_0250_thumb.jpg",130,195,32);thumbnails[5892520]=new thumbnail(5892520,"332778","Phillipa Sax","DSC_0227top_thumb.jpg",130,195,32);thumbnails[5897290]=new thumbnail(5897290,"332779","Prsche Vs Boxter, Bentley and TVR.","cars_2_thumb.jpg",130,92,32);thumbnails[5897304]=new thumbnail(5897304,"332779","Bentley Mercedes ","car_3_thumb.jpg",130,92,32);thumbnails[5897312]=new thumbnail(5897312,"332779","Trefurn Bespoke Kitchens","trefurn_thumb.jpg",130,92,32);thumbnails[5897585]=new thumbnail(5897585,"332779","Cheltenham Ladies Collage Prospectus","Chelt_Ladies_collage_thumb.jpg",130,92,32);thumbnails[5897602]=new thumbnail(5897602,"332779","Cruise Norway photography","NORWAY_thumb.jpg",130,92,32);thumbnails[5897637]=new thumbnail(5897637,"332779","Le Caprice London","PKL_Fas_3_thumb.jpg",130,80,32);thumbnails[5897643]=new thumbnail(5897643,"332779","Le Caprice resturant","PKL_Fas_1_thumb.jpg",130,73,32);thumbnails[5897765]=new thumbnail(5897765,"332779","Kawasaki Mule","K_Mule_1_thumb.jpg",130,77,32);thumbnails[5898027]=new thumbnail(5898027,"332779","Monty's resturant Cheltenham","G_H_MB3_thumb.jpg",130,65,32);thumbnails[5898070]=new thumbnail(5898070,"332779","The Car store Cheltenham","Misc_2_thumb.jpg",130,63,32);thumbnails[5898143]=new thumbnail(5898143,"332779","Charity","BACK_GROUND_thumb.jpg",130,85,32);thumbnails[5902012]=new thumbnail(5902012,"332779","Daffodli Resturant Cheltenham","DSC_0234_copy_thumb.jpg",130,87,32);thumbnails[5902032]=new thumbnail(5902032,"332779","Ajec Racing ","screen_thumb.jpg",130,81,32);thumbnails[5902131]=new thumbnail(5902131,"332779","Agiri Frames","DSC_0081_thumb.jpg",130,87,32);thumbnails[5902221]=new thumbnail(5902221,"332779","Water cooler location shoot","E-MAIL_1_thumb.jpg",130,87,32);thumbnails[5902346]=new thumbnail(5902346,"331899","Summer Wedding ","DSC_0139_copy_thumb.jpg",130,130,32);thumbnails[5904730]=new thumbnail(5904730,"331899","Summer Wedding ","DSC_0060_copy_thumb.jpg",130,87,32);thumbnails[5904772]=new thumbnail(5904772,"331899","Summer Wedding ","DSC_0015_copy1_thumb.jpg",130,133,32);thumbnails[5904796]=new thumbnail(5904796,"331899","Summer wedding ","DSC_0222_thumb.jpg",130,87,32);thumbnails[5905284]=new thumbnail(5905284,"331899","Summer Wedding","DSC_0124_copy_thumb.jpg",130,87,32);thumbnails[5905302]=new thumbnail(5905302,"331899","Summer Wedding ","DSC_0271_thumb.jpg",130,87,32);thumbnails[5905316]=new thumbnail(5905316,"331899","summer Wedding ","DSC_0054_copy_thumb.jpg",130,195,32);thumbnails[5905808]=new thumbnail(5905808,"331899","Winter wedding","DSC_6723_thumb.jpg",130,87,32);thumbnails[5905823]=new thumbnail(5905823,"331899","Winter wedding","DSC_0032_thumb.jpg",130,87,32);thumbnails[5905824]=new thumbnail(5905824,"331899","winter wedding","DSC_0218_copy_thumb.jpg",130,87,32);thumbnails[5905827]=new thumbnail(5905827,"331899","winter wedding","DSC_6442_copy_thumb.jpg",130,87,32);thumbnails[5905830]=new thumbnail(5905830,"331899","Winter wedding","DSC_6516_copy_thumb.jpg",130,195,32);thumbnails[5905833]=new thumbnail(5905833,"331899","winter wedding","DSC_6734_thumb.jpg",130,87,32);thumbnails[5905835]=new thumbnail(5905835,"331899","winter wedding","DSC_6523_copy_thumb.jpg",130,87,32);thumbnails[5905877]=new thumbnail(5905877,"331899","wedding windsor","DSC_0130_copy_thumb.jpg",130,194,32);thumbnails[5909068]=new thumbnail(5909068,"332777","Lucie R Makeover shoot","DSC_0030_copy_thumb.jpg",130,130,32);thumbnails[5909226]=new thumbnail(5909226,"332777","Lucie R makeover shoot","DSC_0207_copy_thumb.jpg",130,195,32);thumbnails[5909237]=new thumbnail(5909237,"332777","Lucie r makeover shhoot","DSC_0193_copy_thumb.jpg",130,87,32);thumbnails[5909362]=new thumbnail(5909362,"332777","Lucie R makeover shoot","DSC_0080_copy_thumb.jpg",130,130,32);thumbnails[5909380]=new thumbnail(5909380,"332777","Lucie R makeover shoot","DSC_0167_copy_thumb.jpg",130,195,32);thumbnails[5909988]=new thumbnail(5909988,"331549","Studio product shot","DSC_0012_copy_thumb.jpg",130,61,32);thumbnails[5910014]=new thumbnail(5910014,"331549","studio shot model car","DSC_0188_thumb.jpg",130,87,32);thumbnails[5910027]=new thumbnail(5910027,"331549","Apple studio still life","5x4_t121_thumb.jpg",130,85,32);thumbnails[5910033]=new thumbnail(5910033,"331549","Studio photography furniture","studio-900_thumb.jpg",130,70,32);thumbnails[5910081]=new thumbnail(5910081,"331549","Studio shot Yamaha R1","Yam032_thumb.jpg",130,87,32);thumbnails[5910111]=new thumbnail(5910111,"331549","Studio cut out","DSC_0043_thumb.jpg",130,106,32);thumbnails[5910143]=new thumbnail(5910143,"331549","Studio shot wine glass and bottles","5x4_t76_thumb.jpg",130,62,32);thumbnails[5910147]=new thumbnail(5910147,"331549","studio product shot oakley sunglasses","DSC_0093_thumb.jpg",130,87,32);thumbnails[5910163]=new thumbnail(5910163,"331549","Studio shot simply cotton","DSC_0016_web_thumb.jpg",130,87,32);thumbnails[5911707]=new thumbnail(5911707,"","","home_page_thumb.jpg",130,87,32);thumbnails[5865036]=new thumbnail(5865036,"330237","Roanna","DSC_0017_2copy_thumb.jpg",130,195,32);thumbnails[5865101]=new thumbnail(5865101,"330237","Sian leafs","sg_121_thumb.jpg",130,130,32);thumbnails[5865946]=new thumbnail(5865946,"330237","Hammassa","DSC_0240_copy_2_web_thumb.jpg",130,74,32);thumbnails[5865992]=new thumbnail(5865992,"330237","Laurence Llewelyn bowen","DSC_0023_web_thumb.jpg",130,195,32);thumbnails[5866063]=new thumbnail(5866063,"330237","Phil Vickery MBE","DSC_0008_topaz_web_thumb.jpg",130,195,32);thumbnails[5866346]=new thumbnail(5866346,"330237","Chelsy Davy","Chelsea_Davy_web1_thumb.jpg",130,134,32);thumbnails[5866580]=new thumbnail(5866580,"330237","Carly","carly_7_thumb.jpg",130,130,32);thumbnails[5867488]=new thumbnail(5867488,"330237","spiderman","DSC_0083_copy_bw_web_thumb.jpg",130,130,32);thumbnails[5871980]=new thumbnail(5871980,"330237","Rosie","DSC_0192_copy_web_thumb.jpg",130,130,32);thumbnails[5872772]=new thumbnail(5872772,"330237","Simon G-fitness","DSC_0162_copy_web_thumb.jpg",130,195,32);thumbnails[5872792]=new thumbnail(5872792,"330237","Hayley Black wall","DSC_0171_copy_web_thumb.jpg",130,195,32);thumbnails[5894751]=new thumbnail(5894751,"330237","Balloons","scan_4_5AF68075-1D09-001F-9997F62D55480C9A_thumb.jpg",130,88,32);thumbnails[5894950]=new thumbnail(5894950,"330237","Writing in the sand","DSC_0093_copy_thumb.jpg",130,82,32);thumbnails[5894965]=new thumbnail(5894965,"330237","Boy on beach","DSC_0159_copy_thumb.jpg",130,87,32);thumbnails[5894970]=new thumbnail(5894970,"330237","Carly smiling","DSC_0207__3copy_thumb.jpg",130,210,32);thumbnails[5864487]=new thumbnail(5864487,"330238","Eva Paul Smith ","DSC_0142_web_thumb.jpg",130,87,32);thumbnails[5864489]=new thumbnail(5864489,"330238","Phil Lyle and Scott","phil_fashion_copy_4_thumb.jpg",130,92,32);thumbnails[5864634]=new thumbnail(5864634,"330238","Superdry leather jacket","DSC_0004_web1_thumb.jpg",130,196,32);thumbnails[5864643]=new thumbnail(5864643,"330238","Roanna Black dress","DSC_0169_web_thumb.jpg",130,87,32);thumbnails[5864649]=new thumbnail(5864649,"330238","Catwalk","DSC_0230_test_thumb.jpg",130,195,32);thumbnails[5865556]=new thumbnail(5865556,"330238","Sian Superreal","DSC_0084_web_thumb.jpg",130,195,32);thumbnails[5865774]=new thumbnail(5865774,"330238","Phil vickery sea and surf","DSC_0015_cut_out_copy_web_thumb.jpg",130,195,32);thumbnails[5866072]=new thumbnail(5866072,"330238","Phil Vickery","DSC_0037_web_thumb.jpg",130,195,32);thumbnails[5866076]=new thumbnail(5866076,"330238","Raging Bull","DSC_0023_topaz_web_thumb.jpg",130,195,32);thumbnails[5894026]=new thumbnail(5894026,"330238","Ben White Fred Perry","DSC_0001_web_thumb.jpg",130,195,32);thumbnails[5894270]=new thumbnail(5894270,"330238","Eva Lyle and Scott","DSC_0169web_thumb.jpg",130,195,32);thumbnails[5894395]=new thumbnail(5894395,"330238","Eva White Jacket","DSC_0254_web_thumb.jpg",130,195,32);thumbnails[5894407]=new thumbnail(5894407,"330238","Phillipa Pink Dress","DSC_0048_web_thumb.jpg",130,195,32);thumbnails[5894534]=new thumbnail(5894534,"330238","Eva Lyle and Scott sat on Lambretta","DSC_0029web_thumb.jpg",130,195,32);thumbnails[5894616]=new thumbnail(5894616,"330238","Sky Diesel","sky_fashion_copy_2_thumb.jpg",130,92,32);thumbnails[6144412]=new thumbnail(6144412,"330238","Trapeze photo shoot","DSC_3146_web_2_thumb.jpg",130,195,32);var galleries=new Object();galleries[332779]=new gallery(332779,"5897765","Commercial","gallery",[5897290,5897304,5897312,5897585,5897602,5897637,5897643,5897765,5898027,5898070,5898143,5902012,5902032,5902131,5902221]);galleries[332778]=new gallery(332778,"5865242","Model shots","gallery",[5864645,5865030,5865050,5865093,5865242,5865436,5865550,5865789,5865812,5865816,5866591,5866611,5872718,5892431,5892520]);galleries[331549]=new gallery(331549,"5910014","Pack shots","gallery",[5909988,5910014,5910027,5910033,5910081,5910111,5910143,5910147,5910163]);galleries[332777]=new gallery(332777,"5909237,5909068","Professional makeover shoots","gallery",[5909068,5909226,5909237,5909362,5909380]);galleries[331899]=new gallery(331899,"5905827","Weddings","gallery",[5902346,5904730,5904772,5904796,5905284,5905302,5905316,5905808,5905823,5905824,5905827,5905830,5905833,5905835,5905877]);galleries[330237]=new gallery(330237,"5894751","Portraits","gallery",[5865036,5865101,5865946,5865992,5866063,5866346,5866580,5867488,5871980,5872772,5872792,5894751,5894950,5894965,5894970]);galleries[330238]=new gallery(330238,"5864487","Fashion","gallery",[5864487,5864489,5864634,5864643,5864649,5865556,5865774,5866072,5866076,5894026,5894270,5894395,5894407,5894534,5894616,6144412]);var imageSets=new Object();imageSets[1]="5911707,5877025,5876620,5876042,5876000,5875874,5875831,5875829";imageSets[2]="5910014,5909237,5909068,5905827,5897765,5894751,5865242,5864487";imageSets[3]="6144412,5911707,5910163,5910147,5910143,5910111,5910081,5910033,5910027,5910014,5909988,5909380,5909362,5909237,5909226,5909068,5905877,5905835,5905833,5905830,5905827,5905824,5905823,5905808,5905316,5905302,5905284,5904796,5904772,5904730,5902346,5902221,5902131,5902032,5902012,5898143,5898070,5898027,5897765,5897643,5897637,5897602,5897585,5897312,5897304,5897290,5894970,5894965,5894950,5894751";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/oldsmmokey/images";break}switch(a){case 1:b="http://www1.clikpic.com/oldsmmokey/images";break}switch(a){case 2:b="http://admin.clikpic.com/oldsmmokey/images";break}switch(a){case 24:b="http://tpc15/clikpic/oldsmmokey/images";break}switch(a){case 4:b="http://www.clikchurch.com/oldsmmokey/images";break}switch(a){case 5:b="http://www2.clikpic.com/oldsmmokey/images";break}switch(a){case 22:b="http://tpc5/clikpic/oldsmmokey/images";break}switch(a){case 23:b="http://tpc10/clikpic/oldsmmokey/images";break}switch(a){case 25:b="http://tpc16/clikpic/oldsmmokey/images";break}switch(a){case 15:b="http://www3.clikpic.com/oldsmmokey/images";break}switch(a){case 18:b="http://www4.clikpic.com/oldsmmokey/images";break}switch(a){case 19:b="http://www5.clikpic.com/oldsmmokey/images";break}switch(a){case 31:b="http://www7.clikpic.com/oldsmmokey/images";break}switch(a){case 32:b="http://admin2.clikpic.com/oldsmmokey/images";break}switch(a){case 33:b="http://www8.clikpic.com/oldsmmokey/images";break}switch(a){case 34:b="http://www9.clikpic.com/oldsmmokey/images";break}switch(a){case 35:b="http://admin3.clikpic.com/oldsmmokey/images";break}switch(a){case 37:b="http://admin4.clikpic.com/oldsmmokey/images";break}switch(a){case 38:b="http://admin5.clikpic.com/oldsmmokey/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="sean smiles 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].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+'")'})}}};
