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[5775387]=new thumbnail(5775387,"327132","Me at the RSA with my award","meee_thumb.gif",130,195,15);thumbnails[5775390]=new thumbnail(5775390,"327132","The RSA show","RSA_thumb.gif",130,87,15);thumbnails[5775396]=new thumbnail(5775396,"327132","RSA New Contemporaries 2010","rsa2_thumb.gif",130,87,15);thumbnails[3726903]=new thumbnail(3726903,"226013","Jessops take 2","jessopsREPLYTOWRONGEMAIL1_thumb.jpg",130,184,15);thumbnails[3701852]=new thumbnail(3701852,"226175","Palmers Cocoa Butter Formula","IMG_0001_thumb.jpg",130,184,15);thumbnails[3709315]=new thumbnail(3709315,"226175","Jessops","JessopsWRONG_thumb.jpg",130,184,15);thumbnails[3727802]=new thumbnail(3727802,"226175","Cauldron ","Cauldron_thumb.jpg",130,184,15);thumbnails[3701988]=new thumbnail(3701988,"226013","Jessops","jessops_thumb.jpg",130,184,15);thumbnails[3709299]=new thumbnail(3709299,"226013","Blue Tack","bluetack1_thumb.jpg",130,184,15);thumbnails[3727566]=new thumbnail(3727566,"226013","Aroma Home","aromahome_thumb.jpg",130,184,15);thumbnails[3701803]=new thumbnail(3701803,"226175","Clarins","Clarins_thumb.jpg",130,184,15);thumbnails[3726946]=new thumbnail(3726946,"226013","Australian Coasters","australiancoasters_thumb.jpg",130,184,15);thumbnails[3728114]=new thumbnail(3728114,"226013","Stencil books","stencilbooks_thumb.jpg",130,184,15);thumbnails[3733618]=new thumbnail(3733618,"226013","Crayola","crayola_thumb.jpg",130,184,15);thumbnails[3701882]=new thumbnail(3701882,"226013","Citroen","Citroen_thumb.jpg",130,184,15);thumbnails[3701380]=new thumbnail(3701380,"226013","Glasgow City Council - Refuse Collection","Binmen_thumb.jpg",130,184,15);thumbnails[3733602]=new thumbnail(3733602,"226013","Thorntons","_thorntons2_thumb.jpg",130,184,15);thumbnails[3701828]=new thumbnail(3701828,"226175","Staedtler","Staedler_thumb.jpg",130,184,15);thumbnails[3640394]=new thumbnail(3640394,"226175","Cadbury's","CAdbury_thumb.jpg",130,184,15);thumbnails[3640391]=new thumbnail(3640391,"226175","PZ Cussons (Carex)","Carex_thumb.jpg",130,184,15);thumbnails[3709322]=new thumbnail(3709322,"226013","Cadbury's","cadburys_thumb.jpg",130,184,15);thumbnails[3726940]=new thumbnail(3726940,"226013","Bic Pens","bicpens_thumb.jpg",130,184,15);thumbnails[3701766]=new thumbnail(3701766,"226013","Strathclyde Partnership for Transport","SPT_thumb.jpg",130,184,15);thumbnails[3701771]=new thumbnail(3701771,"226013","Maped","paperpaperclips_thumb.jpg",130,180,15);thumbnails[3701774]=new thumbnail(3701774,"226013","Carex","Carex1_thumb.jpg",130,184,15);thumbnails[3726758]=new thumbnail(3726758,"226013","Dry Shampoo","batistedryshampoo1_thumb.jpg",130,184,15);thumbnails[3701799]=new thumbnail(3701799,"226175","Pilot","Pilot_thumb.jpg",130,184,15);thumbnails[3701374]=new thumbnail(3701374,"226013","Beechams","Beechamsveno_thumb.jpg",130,184,15);thumbnails[3701763]=new thumbnail(3701763,"226013","Marlboro Lights","marlboro_thumb.jpg",130,184,15);thumbnails[3701391]=new thumbnail(3701391,"226013","The Body Shop","BodyShop_thumb.jpg",130,184,15);thumbnails[3727950]=new thumbnail(3727950,"226013","WH Smith","whsmith1_thumb.jpg",130,184,15);thumbnails[3702136]=new thumbnail(3702136,"226211","Silver Spoon Sugar","biggranulatededitedssf_thumb.gif",130,87,15);thumbnails[3642461]=new thumbnail(3642461,"222519","","Burtons_50p_thumb.jpg",130,70,15);thumbnails[3642468]=new thumbnail(3642468,"222519","","Glaxosmithkline_thumb.jpg",130,85,15);thumbnails[3642506]=new thumbnail(3642506,"222519","","Kelloggs_thumb.jpg",130,74,15);thumbnails[3701790]=new thumbnail(3701790,"226175","Strathclyde Partnership for Transport","SPT1_thumb.jpg",130,184,15);thumbnails[3701833]=new thumbnail(3701833,"226175","Bostik","BOstik_thumb.jpg",130,184,15);thumbnails[3701905]=new thumbnail(3701905,"222519","","danone_thumb.jpg",130,97,15);thumbnails[3701909]=new thumbnail(3701909,"226189","Staedtler","test3_thumb.gif",130,73,15);thumbnails[3727578]=new thumbnail(3727578,"226175","WH Smith","WHSMITH_thumb.jpg",130,184,15);thumbnails[3727960]=new thumbnail(3727960,"226189","AQA","AQApicture_thumb.gif",130,73,15);thumbnails[3727966]=new thumbnail(3727966,"226189","Options","productspic_thumb.gif",130,73,15);thumbnails[3728123]=new thumbnail(3728123,"226175","McDonalds","McDonalds_thumb.jpg",130,184,15);thumbnails[3728131]=new thumbnail(3728131,"226175","Tolberone","TOlberone_thumb.jpg",130,184,15);thumbnails[4029202]=new thumbnail(4029202,"226211","Seven Seas Cod Liver Oil","take2_thumb.gif",130,83,15);thumbnails[4029430]=new thumbnail(4029430,"226211","Strathclyde Partnership for Transport Badge","subwaybadge_thumb.gif",130,87,15);thumbnails[4029439]=new thumbnail(4029439,"226211","Staedtler pencils ","staedlerpackewgitet_thumb.gif",130,87,15);thumbnails[4029914]=new thumbnail(4029914,"243057","Envelopes envelopes everywhere!","envelopes_thumb.gif",130,184,15);thumbnails[4030826]=new thumbnail(4030826,"243057","","moose_thumb.gif",130,83,15);thumbnails[4034761]=new thumbnail(4034761,"243057","All of the envelope windows from the project","smaller_thumb.gif",130,184,15);thumbnails[4034766]=new thumbnail(4034766,"226211","Bostik Badge ","Businesscard_thumb.gif",130,86,15);thumbnails[4035650]=new thumbnail(4035650,"226211","DKNY Umbrella","umbrellanocase_thumb.gif",130,70,15);thumbnails[4155325]=new thumbnail(4155325,"248090","","DSC_0923_thumb.gif",130,86,15);thumbnails[4155327]=new thumbnail(4155327,"248090","","DSC_0920_thumb.gif",130,86,15);thumbnails[4155407]=new thumbnail(4155407,"248090","","DSC_0919a_thumb.gif",130,86,15);thumbnails[4155409]=new thumbnail(4155409,"248090","","DSC_0914a_thumb.gif",130,86,15);thumbnails[4155411]=new thumbnail(4155411,"248090","","DSC_0909_thumb.gif",130,86,15);thumbnails[4155439]=new thumbnail(4155439,"243057","Installing the exhibition was a challenge...","P1040812b_thumb.gif",130,195,15);thumbnails[4155443]=new thumbnail(4155443,"243057","The string...","P1040825_thumb.gif",130,87,15);thumbnails[4155444]=new thumbnail(4155444,"243057","8 calories","8-calories_thumb.gif",130,130,15);thumbnails[4155445]=new thumbnail(4155445,"243057","","fact_thumb.gif",130,59,15);thumbnails[4155450]=new thumbnail(4155450,"243057","","tally_thumb.gif",130,139,15);thumbnails[4155452]=new thumbnail(4155452,"243057","Postman stalking","postman-stalking2_thumb.gif",130,80,15);thumbnails[4222926]=new thumbnail(4222926,"248090","","P1050266_thumb.gif",130,87,15);thumbnails[4222928]=new thumbnail(4222928,"248090","","P1050267_thumb.gif",130,87,15);thumbnails[5408235]=new thumbnail(5408235,"248090","Section from comment book","IMG_0020_thumb.gif",130,101,15);thumbnails[5408244]=new thumbnail(5408244,"248090","Comments ","IMG_0003_thumb.gif",130,101,15);thumbnails[5408257]=new thumbnail(5408257,"226175","Letter received from the Queen","queen_thumb.gif",130,184,15);thumbnails[3702116]=new thumbnail(3702116,"222265","","2peepds_thumb.gif",130,132,15);thumbnails[3636575]=new thumbnail(3636575,"222265","Gus","GUS1_thumb.gif",130,79,15);thumbnails[3636534]=new thumbnail(3636534,"222265","Gratuity Appreciated","webtest1_thumb.jpg",130,95,15);thumbnails[3774530]=new thumbnail(3774530,"222265","","Photo08_5_thumb.gif",130,87,15);thumbnails[4028951]=new thumbnail(4028951,"222265","Val","valsmaller_thumb.gif",130,97,15);thumbnails[4028966]=new thumbnail(4028966,"222265","Trifles","trifle_thumb.gif",130,87,15);thumbnails[4028976]=new thumbnail(4028976,"222265","","sheep_thumb.gif",130,93,15);thumbnails[4028986]=new thumbnail(4028986,"222265","","Photo13_10_thumb.gif",130,87,15);thumbnails[4028997]=new thumbnail(4028997,"222265","","Photo18_15_thumb.gif",130,87,15);thumbnails[4029006]=new thumbnail(4029006,"222265","","toilets_thumb.gif",130,87,15);thumbnails[4029053]=new thumbnail(4029053,"222265","Rosie","rosie_thumb.gif",130,61,15);thumbnails[4029113]=new thumbnail(4029113,"222265","Philip","philip_thumb.gif",130,87,15);thumbnails[4029170]=new thumbnail(4029170,"222265","Ellie","ellielong_thumb.gif",130,58,15);thumbnails[4030741]=new thumbnail(4030741,"222265","Des","destake2_thumb.gif",130,86,15);thumbnails[4030749]=new thumbnail(4030749,"222265","Dry Paint","DRYPAINTPOSTCARD3_thumb.gif",130,92,15);thumbnails[6256734]=new thumbnail(6256734,"222265","","knees_thumb.gif",130,98,15);thumbnails[6256787]=new thumbnail(6256787,"222265","","santa-van_thumb.gif",130,87,15);thumbnails[6256789]=new thumbnail(6256789,"222265","","elliestitch_thumb.gif",130,98,15);thumbnails[6256813]=new thumbnail(6256813,"222265","","Dog_thumb.gif",130,87,15);thumbnails[6256861]=new thumbnail(6256861,"222265","","camel_thumb.gif",130,87,15);thumbnails[6256913]=new thumbnail(6256913,"222265","","BRUISEA3_thumb.gif",130,92,15);thumbnails[4029513]=new thumbnail(4029513,"222266","Rigor Mortis Horse","rigormortisaaa_thumb.gif",130,92,15);thumbnails[4029783]=new thumbnail(4029783,"222266","Disappointed chicken","chickebnn_thumb.gif",130,92,15);thumbnails[4030733]=new thumbnail(4030733,"222266","Considerate Goat","considerategoat_thumb.gif",130,89,15);thumbnails[4030735]=new thumbnail(4030735,"222266","Perturbed cow","perturbed-cow_thumb.gif",130,92,15);thumbnails[4030737]=new thumbnail(4030737,"222266","Pensive Duck","pensveducksingle_thumb.gif",130,92,15);var galleries=new Object();galleries[243057]=new gallery(243057,"4155444,4029914","All the things in between","gallery",[4029914,4030826,4034761,4155439,4155443,4155444,4155445,4155450,4155452]);galleries[248090]=new gallery(248090,"4222928,4222926,4155411,4155409,4155407,4155327,4155325","Exhibition images","gallery",[4155325,4155327,4155407,4155409,4155411,4222926,4222928,5408235,5408244]);galleries[226175]=new gallery(226175,"5408257,3728131,3728123,3727802,3727578,3709315,3701852,3701833,3701828,3701803","Letters Received","gallery",[3701852,3709315,3727802,3701803,3701828,3640394,3640391,3701799,3701790,3701833,3727578,3728123,3728131,5408257]);galleries[226013]=new gallery(226013,"3733618,3733602,3728114,3727950,3727566,3726946,3726940,3726903,3726758,3709322","Letters sent","gallery",[3726903,3701988,3709299,3727566,3726946,3728114,3733618,3701882,3701380,3733602,3709322,3726940,3701766,3701771,3701774,3726758,3701374,3701763,3701391,3727950]);galleries[226211]=new gallery(226211,"4035650,3702136","Products Received","gallery",[3702136,4029202,4029430,4029439,4034766,4035650]);galleries[226189]=new gallery(226189,"3727966,3727960,3701909","Responses to products sent","gallery",[3701909,3727960,3727966]);galleries[226182]=new gallery(226182,"5775396,5775390,5775387,4222928,4222926,4155444,4155411,4155409,4155407,4155327,4155325,4035650,4029914,3702136","The 'Big Thank You' Project","gallery",[]);galleries[327132]=new gallery(327132,"5775396,5775390,5775387","The Royal Scottish Academy New Contemporaries","gallery",[5775387,5775390,5775396]);galleries[222519]=new gallery(222519,"3701905,3642506,3642468,3642461","The Vouchers","gallery",[3642461,3642468,3642506,3701905]);galleries[222265]=new gallery(222265,"6256913,6256813,6256789,6256787,6256734,4030749,4030741","A selection of Photographs","gallery",[3702116,3636575,3636534,3774530,4028951,4028966,4028976,4028986,4028997,4029006,4029053,4029113,4029170,4030741,4030749,6256734,6256787,6256789,6256813,6256861,6256913]);galleries[222266]=new gallery(222266,"4030737,4030735,4030733","Drawings","gallery",[4029513,4029783,4030733,4030735,4030737]);var imageSets=new Object();imageSets[1]="6256913,6256813,6256789,6256787,6256734,4155411,4155409,4155407,4155327,4155325,4030749,4030741,4029113,4029053,4028997,4028986,4028976,4028966,4028951,3702136,3702116,3636575,3636534";imageSets[2]="6256913,6256813,6256789,6256787,6256734,5775396,5775390,5775387,4222928,4222926,4155444,4155411,4155409,4155407,4155327,4155325,4035650,4030749,4030741,4030737,4030735,4030733,4029914,3702136";imageSets[3]="6256913,6256861,6256813,6256789,6256787,6256734,5775396,5775390,5775387,5408257,5408244,5408235,4222928,4222926,4155452,4155450,4155445,4155444,4155443,4155439,4155411,4155409,4155407,4155327,4155325,4035650,4034766,4034761,4030826,4030749,4030741,4030737,4030735,4030733,4029914,4029783,4029513,4029439,4029430,4029202,4029170,4029113,4029053,4029006,4028997,4028986,4028976,4028966,4028951,3774530";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/HarrietLowther/images";break}switch(a){case 1:b="http://www1.clikpic.com/HarrietLowther/images";break}switch(a){case 2:b="http://admin.clikpic.com/HarrietLowther/images";break}switch(a){case 24:b="http://tpc15/clikpic/HarrietLowther/images";break}switch(a){case 4:b="http://www.clikchurch.com/HarrietLowther/images";break}switch(a){case 5:b="http://www2.clikpic.com/HarrietLowther/images";break}switch(a){case 22:b="http://tpc5/clikpic/HarrietLowther/images";break}switch(a){case 23:b="http://tpc10/clikpic/HarrietLowther/images";break}switch(a){case 25:b="http://tpc16/clikpic/HarrietLowther/images";break}switch(a){case 15:b="http://www3.clikpic.com/HarrietLowther/images";break}switch(a){case 18:b="http://www4.clikpic.com/HarrietLowther/images";break}switch(a){case 19:b="http://www5.clikpic.com/HarrietLowther/images";break}switch(a){case 31:b="http://www7.clikpic.com/HarrietLowther/images";break}switch(a){case 32:b="http://admin2.clikpic.com/HarrietLowther/images";break}switch(a){case 33:b="http://www8.clikpic.com/HarrietLowther/images";break}switch(a){case 34:b="http://www9.clikpic.com/HarrietLowther/images";break}switch(a){case 35:b="http://admin3.clikpic.com/HarrietLowther/images";break}switch(a){case 37:b="http://admin4.clikpic.com/HarrietLowther/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="HarrietLowther: "+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+'")'})}}};