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[4405347]=new thumbnail(4405347,"","Home Gallery","Studio_thumb.jpg",130,88,1);thumbnails[6032939]=new thumbnail(6032939,"339172","","_DSC2389_thumb.jpg",130,173,1);thumbnails[6032940]=new thumbnail(6032940,"339172","","_DSC2397_thumb.jpg",130,96,1);thumbnails[6032941]=new thumbnail(6032941,"339172","","_DSC2410_thumb.jpg",130,173,1);thumbnails[6032943]=new thumbnail(6032943,"339172","","_DSC2411_thumb.jpg",130,173,1);thumbnails[6032945]=new thumbnail(6032945,"339172","","_DSC2417_thumb.jpg",130,173,1);thumbnails[6032947]=new thumbnail(6032947,"339172","","_DSC2418_thumb.jpg",130,98,1);thumbnails[6032949]=new thumbnail(6032949,"339172","","_DSC2428_thumb.jpg",130,173,1);thumbnails[6032951]=new thumbnail(6032951,"339172","","_DSC2444_thumb.jpg",130,98,1);thumbnails[1938913]=new thumbnail(1938913,"196729","Fly Flatts, Midgley Moor","Limmers-Gate-Midgely-Moor2_thumb.jpg",130,63,1);thumbnails[1939485]=new thumbnail(1939485,"196729","Hard Castle Crags","Bluebell_wood_thumb.jpg",130,88,1);thumbnails[1967199]=new thumbnail(1967199,"196729","Gibson Mill, Hardcastle Crags","Gibson-Mill1_thumb.jpg",130,93,1);thumbnails[2123853]=new thumbnail(2123853,"196729","Widdop Reservoir","Widdop2_thumb.jpg",130,101,1);thumbnails[3208808]=new thumbnail(3208808,"196729","London Road","_DSC4856_thumb.jpg",130,87,1);thumbnails[3519205]=new thumbnail(3519205,"196729","Heptonstall","Heptonstall_i1_thumb.jpg",130,98,1);thumbnails[3519207]=new thumbnail(3519207,"196729","Hollins Lane, Hebden Bridge","Hollins_Feb04081_thumb.jpg",130,93,1);thumbnails[3519211]=new thumbnail(3519211,"196729","Nab Water","Nab_Water_i1_thumb.jpg",130,72,1);thumbnails[3519213]=new thumbnail(3519213,"196729","Barns, Widdop","WIddop_Barns1_thumb.jpg",130,91,1);thumbnails[3519214]=new thumbnail(3519214,"196729","","Winter_Farm_vii_thumb.jpg",130,98,1);thumbnails[4525556]=new thumbnail(4525556,"196729","Crimsworth Dean","Dean_Clough_Image2_Crimeswo_thumb.jpg",130,67,1);thumbnails[4525557]=new thumbnail(4525557,"196729","Crimsworth Dean from Nook","Dean_Clough_Image3_Crimeswo_thumb.jpg",130,99,1);thumbnails[4526046]=new thumbnail(4526046,"196729","Within Clough","Dean_Clough_Image4_Withins_1_thumb.jpg",130,98,1);thumbnails[4525681]=new thumbnail(4525681,"196729","Wall & Fence, Ditches","Dean_Clough_Image5_Ramsden__thumb.jpg",130,67,1);thumbnails[4525683]=new thumbnail(4525683,"196729","Dimmin Dale, Luddenden","Dean_Clough_Image6_Dimmin-D_thumb.jpg",130,99,1);thumbnails[4525685]=new thumbnail(4525685,"196729","Top Withins","Dean_Clough_Image7_Top-With_thumb.jpg",130,67,1);thumbnails[4525691]=new thumbnail(4525691,"196729","Copse, High Laith","Dean_Clough_Image8__Copse_H_thumb.jpg",130,67,1);thumbnails[4525693]=new thumbnail(4525693,"196729","Cottages at Popples","Dean_Clough_Image9_Cottages_thumb.jpg",130,67,1);thumbnails[2211128]=new thumbnail(2211128,"196729","Doorway, Nook, Crimesworth Dean","Doorway_Nook_thumb.jpg",130,191,1);thumbnails[4525695]=new thumbnail(4525695,"196729","Stone Hedge, Wycollar","Dean_Clough_Image10_Wycolla1_thumb.jpg",130,99,1);thumbnails[4525702]=new thumbnail(4525702,"196729","Nab Water, Oxenhope","Dean_Clough_Image11_Stormy-_thumb.jpg",130,67,1);thumbnails[4525704]=new thumbnail(4525704,"196729","Tree Ditches","Dean_Clough_Image12_Ramsden_thumb.jpg",130,99,1);thumbnails[4526047]=new thumbnail(4526047,"196729","Able Cross","Dean_Clough_Image13_Able_Co1_thumb.jpg",130,98,1);thumbnails[4526051]=new thumbnail(4526051,"196729","Milk Churn Joan","Dean_Clough_Image14_Churn_M1_thumb.jpg",130,98,1);thumbnails[4525715]=new thumbnail(4525715,"196729","Owd Bess, Oakworth Moor","Dean_Clough_Image15_Oakwort1_thumb.jpg",130,99,1);thumbnails[4525716]=new thumbnail(4525716,"196729","Hardibut Clough","Dean_Clough_Image16_Hardbut_thumb.jpg",130,99,1);thumbnails[4525718]=new thumbnail(4525718,"196729","High Gate, Colden","Dean_Clough_Image17_High_Ga_thumb.jpg",130,67,1);thumbnails[4525719]=new thumbnail(4525719,"196729","Lower Small Shaw","Dean_Clough_Image18_Lower_S_thumb.jpg",130,67,1);thumbnails[4525720]=new thumbnail(4525720,"196729","Rag, Oxenhope","Dean_Clough_Image19_Rag_10__thumb.jpg",130,67,1);thumbnails[4525729]=new thumbnail(4525729,"196729","Sunny Bank, Crimsworth Dean","Dean_Clough_Image20_Crimesw_thumb.jpg",130,99,1);thumbnails[4525737]=new thumbnail(4525737,"196729","Nook, Crimsworth Dean","Dean_Clough_Image22_Nook_Ap_thumb.jpg",130,99,1);thumbnails[4525740]=new thumbnail(4525740,"196729","Garage, Oxenhope","Dean_Clough_Image23_Garage__thumb.jpg",130,99,1);thumbnails[4525743]=new thumbnail(4525743,"196729","Kebs, Blackshaw Head","Dean_Clough_Image24_Ruin_at_thumb.jpg",130,99,1);thumbnails[4525750]=new thumbnail(4525750,"196729","Green House, Howarth","Dean_Clough_Image25_Haworth_thumb.jpg",130,99,1);thumbnails[4525758]=new thumbnail(4525758,"196729","Greaves, Walshaw","Dean_Clough_Image26_Greaves_thumb.jpg",130,99,1);thumbnails[4525759]=new thumbnail(4525759,"196729","Wycollar Hall","Dean_Clough_Image27_Wycolla_thumb.jpg",130,99,1);thumbnails[4525766]=new thumbnail(4525766,"196729","Handibut Hill Interior, Crimsworth Dean","Dean_Clough_Image29_Handibu_thumb.jpg",130,99,1);thumbnails[4525769]=new thumbnail(4525769,"196729","Top Withins Interior","Dean_Clough_Image30_The-Bot_thumb.jpg",130,99,1);thumbnails[4525771]=new thumbnail(4525771,"196729","Nook Interior, Crimsworth Dean","Dean_Clough_Image31_Nook_Ju_thumb.jpg",130,99,1);thumbnails[4525775]=new thumbnail(4525775,"196729","Grass on Fence","Dean_Clough_Image32_Grassy__thumb.jpg",130,99,1);thumbnails[2751023]=new thumbnail(2751023,"235392","","FG_EG_July_080242_thumb.jpg",130,193,1);thumbnails[2751024]=new thumbnail(2751024,"235392","","FG_EG_July_080253_thumb.jpg",130,193,1);thumbnails[2751026]=new thumbnail(2751026,"235392","","FG_EG_July_080552_thumb.jpg",130,193,1);thumbnails[2751042]=new thumbnail(2751042,"235392","","FG_EG_July_080393_thumb.jpg",130,193,1);thumbnails[2975713]=new thumbnail(2975713,"235392","","_DSC2451_thumb.jpg",130,147,1);thumbnails[2751028]=new thumbnail(2751028,"235392","","FG_EG_July_080372_thumb.jpg",130,87,1);thumbnails[2751011]=new thumbnail(2751011,"235392","","FG_EG_July_080112_thumb.jpg",130,87,1);thumbnails[4004949]=new thumbnail(4004949,"242000","","Fevertree052_thumb.jpg",130,88,1);thumbnails[4004950]=new thumbnail(4004950,"242000","","Fevertree075_thumb.jpg",130,88,1);thumbnails[4004954]=new thumbnail(4004954,"242000","","Fevertree120_thumb.jpg",130,96,1);thumbnails[4005506]=new thumbnail(4005506,"242000","","Fevertree1671_thumb.jpg",130,139,1);thumbnails[2289577]=new thumbnail(2289577,"172738","Catherdral Cavern, Tilbertwaite","Catherdral_Cavern_thumb.jpg",130,93,1);thumbnails[2904744]=new thumbnail(2904744,"172738","Catherdral Cavern, Tilbertwaite","Catherdral-Caveni3_thumb.jpg",130,88,1);thumbnails[3873127]=new thumbnail(3873127,"172738","","Wagon_thumb.jpg",130,98,1);thumbnails[3873140]=new thumbnail(3873140,"172738","Pendragon Castle, Mallerstang","Ancient-Land_thumb.jpg",130,100,1);thumbnails[2198164]=new thumbnail(2198164,"172738","Castle Rigg, Cumbria","Castle_Rigg1_thumb.jpg",130,94,1);thumbnails[3395633]=new thumbnail(3395633,"207320","GD_66","Glasgow_Drumers_066_thumb.jpg",130,100,1);thumbnails[3395608]=new thumbnail(3395608,"207320","GD_05","Glasgow_Drumers_005_thumb.jpg",130,177,1);thumbnails[3395662]=new thumbnail(3395662,"207320","G_105","Glasgow_Drumers_105_thumb.jpg",130,192,1);thumbnails[3395642]=new thumbnail(3395642,"207320","GD_101","Glasgow_Drumers_101_thumb.jpg",130,222,1);thumbnails[3395636]=new thumbnail(3395636,"207320","GD_84","Glasgow_Drumers_084_thumb.jpg",130,236,1);thumbnails[3884237]=new thumbnail(3884237,"179967","Carrog Cennan, Carmarthenshire","Carreg_Cennen_Apr_09023_thumb.jpg",130,61,1);thumbnails[3884240]=new thumbnail(3884240,"179967","Carrog Cennan, Carmarthenshire","Carreg_Cennen_Apr_09043_thumb.jpg",130,88,1);thumbnails[3884247]=new thumbnail(3884247,"179967","Limestone","Limestone_i_thumb.jpg",130,88,1);thumbnails[3884381]=new thumbnail(3884381,"179967","Eves Wood, Hebden Bridge","Colden_11_08_0161_thumb.jpg",130,94,1);thumbnails[3884521]=new thumbnail(3884521,"179967","","Jennifer_House_thumb.jpg",130,93,1);thumbnails[3884523]=new thumbnail(3884523,"179967","","Widdop_01_04_thumb.jpg",130,81,1);thumbnails[4010243]=new thumbnail(4010243,"179967","","Colden_11_08_039_thumb.jpg",130,88,1);thumbnails[2757777]=new thumbnail(2757777,"196732","","CP_Gen_034_thumb.jpg",130,92,1);thumbnails[2757817]=new thumbnail(2757817,"196732","","CP_Heb_0082_thumb.jpg",130,88,1);thumbnails[2757819]=new thumbnail(2757819,"196732","","CP_Heb_087_thumb.jpg",130,88,1);thumbnails[2757820]=new thumbnail(2757820,"196732","","CP_Heb_095_thumb.jpg",130,92,1);thumbnails[2877161]=new thumbnail(2877161,"196732","","_DSC39132_thumb.jpg",130,88,1);thumbnails[2893831]=new thumbnail(2893831,"196732","","DSC_4362_thumb.jpg",130,92,1);thumbnails[2900581]=new thumbnail(2900581,"196732","","CP_Heb_054_thumb.jpg",130,92,1);thumbnails[2900582]=new thumbnail(2900582,"196732","","CP_MP_0223_thumb.jpg",130,107,1);thumbnails[2900583]=new thumbnail(2900583,"196732","","CP_TC_151_thumb.jpg",130,91,1);thumbnails[2900584]=new thumbnail(2900584,"196732","","CP_WG_020_thumb.jpg",130,92,1);thumbnails[2900585]=new thumbnail(2900585,"196732","","DSC_4365_thumb.jpg",129,171,1);thumbnails[2995918]=new thumbnail(2995918,"196732","","Subway_Man_thumb.jpg",130,88,1);var galleries=new Object();galleries[339172]=new gallery(339172,"6032951,6032949,6032947,6032945,6032943,6032941,6032940,6032939","Hole In The Wall","gallery",[6032939,6032940,6032941,6032943,6032945,6032947,6032949,6032951]);galleries[196729]=new gallery(196729,"1938913","South Pennines","gallery",[1938913,1939485,1967199,2123853,3208808,3519205,3519207,3519211,3519213,3519214,4525556,4525557,4526046,4525681,4525683,4525685,4525691,4525693,2211128,4525695,4525702,4525704,4526047,4526051,4525715,4525716,4525718,4525719,4525720,4525729,4525737,4525740,4525743,4525750,4525758,4525759,4525766,4525769,4525771,4525775]);galleries[235392]=new gallery(235392,"2751028,2751011","Fox Folk","gallery",[2751023,2751024,2751026,2751042,2975713,2751028,2751011]);galleries[242000]=new gallery(242000,"4005506,4004954,4004950,4004949","Fevertree","gallery",[4004949,4004950,4004954,4005506]);galleries[207320]=new gallery(207320,"3395662,3395642,3395636,3395633,3395608","Kings of Macumba","gallery",[3395633,3395608,3395662,3395642,3395636]);galleries[172738]=new gallery(172738,"2289577","Landscape","gallery",[2289577,2904744,3873127,3873140,2198164]);galleries[179967]=new gallery(179967,"4010243","New Images","gallery",[3884237,3884240,3884247,3884381,3884521,3884523,4010243]);galleries[172740]=new gallery(172740,"2751028,2751011","Performance","gallery",[]);galleries[196732]=new gallery(196732,"2995918","Civic Pride...........","gallery",[2757777,2757817,2757819,2757820,2877161,2893831,2900581,2900582,2900583,2900584,2900585,2995918]);var imageSets=new Object();imageSets[231825]="4405347";imageSets[1]="4010243,3884523,3884381,3884247";imageSets[2]="4010243,2995918,2751028,2751011,2289577,1938913";imageSets[3]="6032951,6032949,6032947,6032945,6032943,6032941,6032940,6032939,4526051,4526047,4526046,4525775,4525771,4525769,4525766,4525759,4525758,4525750,4525743,4525740,4525737,4525729,4525720,4525719,4525718,4525716,4525715,4525704,4525702,4525695,4525693,4525691,4525685,4525683,4525681,4525557,4525556,4405347,4010243,4005506,4004954,4004950,4004949,3884523,3884521,3884381,3884247,3884240,3884237,3873140";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/jhammond/images";break}switch(a){case 1:b="http://www1.clikpic.com/jhammond/images";break}switch(a){case 2:b="http://admin.clikpic.com/jhammond/images";break}switch(a){case 24:b="http://tpc15/clikpic/jhammond/images";break}switch(a){case 4:b="http://www.clikchurch.com/jhammond/images";break}switch(a){case 5:b="http://www2.clikpic.com/jhammond/images";break}switch(a){case 22:b="http://tpc5/clikpic/jhammond/images";break}switch(a){case 23:b="http://tpc10/clikpic/jhammond/images";break}switch(a){case 25:b="http://tpc16/clikpic/jhammond/images";break}switch(a){case 15:b="http://www3.clikpic.com/jhammond/images";break}switch(a){case 18:b="http://www4.clikpic.com/jhammond/images";break}switch(a){case 19:b="http://www5.clikpic.com/jhammond/images";break}switch(a){case 31:b="http://www7.clikpic.com/jhammond/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jhammond/images";break}switch(a){case 33:b="http://www8.clikpic.com/jhammond/images";break}switch(a){case 34:b="http://www9.clikpic.com/jhammond/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jhammond/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jhammond/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="Pennine Images: "+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+'")'})}}};