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[3504828]=new thumbnail(3504828,"","PACO","Paco 01D_thumb.jpg",130,88,15);thumbnails[5889397]=new thumbnail(5889397,"214194","Gymnast 1","IMG__6059B_WEB_thumb.jpg",130,195,15);thumbnails[5915869]=new thumbnail(5915869,"214194","Gymnast 2","IMG_5898BW_WEB_thumb.jpg",130,195,15);thumbnails[5889369]=new thumbnail(5889369,"214194","Gymnast 3","IMG_5310A_WEB_thumb.jpg",130,195,15);thumbnails[5889380]=new thumbnail(5889380,"214194","Gymnast 4","IMG__5962_WEB_thumb.jpg",130,195,15);thumbnails[5889385]=new thumbnail(5889385,"214194","Gymnast 5","IMG__6126A_WEB_thumb.jpg",130,87,15);thumbnails[5889491]=new thumbnail(5889491,"214194","Gymnast 6","Gymnast_003__web_thumb.jpg",130,90,15);thumbnails[5889276]=new thumbnail(5889276,"214194","Gymnast 7","IMG__6177_WEB_thumb.jpg",130,87,15);thumbnails[3655897]=new thumbnail(3655897,"214194","Gymnast 8","Gymnast_015_web_thumb.jpg",130,90,15);thumbnails[5889393]=new thumbnail(5889393,"214194","Gymnast 9","IMG__6145A_WEB_thumb.jpg",130,195,15);thumbnails[5891477]=new thumbnail(5891477,"214194","Gymnast 037","Gymnast_028_web_thumb.jpg",130,211,15);thumbnails[3655926]=new thumbnail(3655926,"214194","Gymnast 038","Gymnast_038__web11_thumb.jpg",130,206,15);thumbnails[3655904]=new thumbnail(3655904,"214194","Gymnast 035","Gymnast_035_web_thumb.jpg",130,207,15);thumbnails[3510031]=new thumbnail(3510031,"214194","Soccer 2","IMG_0557 (web)_thumb.jpg",130,87,15);thumbnails[4931889]=new thumbnail(4931889,"214194","Soccer 7","IMG_1989B_WEB_thumb.jpg",130,87,15);thumbnails[4762073]=new thumbnail(4762073,"214194","Soccer 8","IMG_2271_WEB_thumb.jpg",130,87,15);thumbnails[4931738]=new thumbnail(4931738,"214194","Soccer 9","IMG_2780_WEB_thumb.jpg",130,87,15);thumbnails[5890153]=new thumbnail(5890153,"214194","Soccer 10","IMG_9991_WEB_thumb.jpg",130,87,15);thumbnails[3509499]=new thumbnail(3509499,"214194","American Football 022","American Football_001 (web)_thumb.jpg",130,87,15);thumbnails[3509621]=new thumbnail(3509621,"214194","American Football 013","American Football_013 (web)_thumb.jpg",130,88,15);thumbnails[5889484]=new thumbnail(5889484,"214194","American Football 011","The_Chase_web_thumb.jpg",130,37,15);thumbnails[3655970]=new thumbnail(3655970,"214194","Judo 1","Judo_038_web_thumb.jpg",130,87,15);thumbnails[3644031]=new thumbnail(3644031,"214194","Karate 013","Karate_013_web1_thumb.jpg",130,87,15);thumbnails[3509052]=new thumbnail(3509052,"214194","Athletics Multi-Image","Athletics_000 Combo (web)_thumb.jpg",130,72,15);thumbnails[3509689]=new thumbnail(3509689,"214194","Track 1","IMG_5703 (web)_thumb.jpg",130,87,15);thumbnails[3510196]=new thumbnail(3510196,"214194","Track 3","IMG_5781B (web)_thumb.jpg",130,93,15);thumbnails[3510001]=new thumbnail(3510001,"214194","Track 2","IMG_5772B (web)1_thumb.jpg",130,200,15);thumbnails[3540452]=new thumbnail(3540452,"214194","Pole Vault 1","Athletics_007_web1_thumb.jpg",130,224,15);thumbnails[3509661]=new thumbnail(3509661,"214194","Pole Vault 2","IMG_5728 (web)_thumb.jpg",130,92,15);thumbnails[6182087]=new thumbnail(6182087,"214698","Gemma & Adam","IMG_1406D_WEB_thumb.jpg",130,87,15);thumbnails[6061244]=new thumbnail(6061244,"214698","Gemma & Adam","IMG_1464A_WEB_thumb.jpg",130,87,15);thumbnails[6182075]=new thumbnail(6182075,"214698","Gemma & Adam","IMG_1166A_WEB_thumb.jpg",130,87,15);thumbnails[6182080]=new thumbnail(6182080,"214698","Gemma & Adam","IMG_1119A_WEB_thumb.jpg",130,87,15);thumbnails[6208235]=new thumbnail(6208235,"214698","Gemma & Adam","IMG_6345A_WEB_thumb.jpg",130,87,15);thumbnails[6263248]=new thumbnail(6263248,"214698","Gemma & Adam","IMG_1480B_WEB_thumb.jpg",130,87,15);thumbnails[6208326]=new thumbnail(6208326,"214698","Gemma & Adam","IMG_6624A_WEB_thumb.jpg",130,195,15);thumbnails[6263252]=new thumbnail(6263252,"214698","Gemma & Adam","IMG_6599C_WEB_thumb.jpg",130,87,15);thumbnails[6263282]=new thumbnail(6263282,"214698","Gemma & Adam","IMG_1438C_WEB_thumb.jpg",130,87,15);thumbnails[6263253]=new thumbnail(6263253,"214698","Gemma & Adam","IMG_1423C_WEB_thumb.jpg",130,87,15);thumbnails[6208331]=new thumbnail(6208331,"214698","Gemma & Adam","IMG_1269A_WEB_thumb.jpg",130,87,15);thumbnails[6208337]=new thumbnail(6208337,"214698","Gemma & Adam","IMG_1416A_WEB_thumb.jpg",130,87,15);thumbnails[6494244]=new thumbnail(6494244,"214698","Danielle & Chris ","IMG_0721A_WEB_thumb.jpg",130,195,15);thumbnails[6492114]=new thumbnail(6492114,"214698","Danielle & Chris ","IMG_0885A_WEB_thumb.jpg",130,87,15);thumbnails[6494191]=new thumbnail(6494191,"214698","Danielle & Chris ","IMG_0777A_WEB_thumb.jpg",130,87,15);thumbnails[6494236]=new thumbnail(6494236,"214698","Danielle & Chris ","IMG_0828A_WEB1_thumb.jpg",130,87,15);thumbnails[6492117]=new thumbnail(6492117,"214698","Danielle & Chris ","IMG_1285A_WEB_thumb.jpg",130,87,15);thumbnails[6492116]=new thumbnail(6492116,"214698","Danielle & Chris ","IMG_1003_WEB_thumb.jpg",130,87,15);thumbnails[6492115]=new thumbnail(6492115,"214698","Danielle & Chris ","IMG_0923A_WEB_thumb.jpg",130,87,15);thumbnails[3512425]=new thumbnail(3512425,"214477","B&Q Glass","Wine Glass 1 (web)_thumb.jpg",130,195,15);thumbnails[3506636]=new thumbnail(3506636,"214477","Sainsbury's spring water ","Strawberry 7486A (web)_thumb.jpg",130,195,15);thumbnails[3512451]=new thumbnail(3512451,"214477","Tina 1","Tina 02 (web)_thumb.jpg",130,205,15);thumbnails[3534057]=new thumbnail(3534057,"214477","Chaka 1","Chaka_Khan_001_web1_thumb.jpg",130,82,15);thumbnails[3506713]=new thumbnail(3506713,"214477","Paco","Paco 01D1_thumb.jpg",130,88,15);thumbnails[3512370]=new thumbnail(3512370,"214477","Canary Wharf","Canary Wharf 002 (web)2_thumb.jpg",130,83,15);thumbnails[3512374]=new thumbnail(3512374,"214477","Jesuit Church","Jesuit Church (web)_thumb.jpg",130,87,15);thumbnails[3644182]=new thumbnail(3644182,"214477","Offices","Walkabout_012_Master_web1_thumb.jpg",130,195,15);thumbnails[4498008]=new thumbnail(4498008,"214477","Howden","Howden_0361C_WEB_thumb.jpg",130,87,15);thumbnails[4498016]=new thumbnail(4498016,"214477","Yellow Fields","Yellow_Field_web_thumb.jpg",130,87,15);thumbnails[4498024]=new thumbnail(4498024,"214477","Town","Zurich_4266_WEB_thumb.jpg",130,87,15);thumbnails[3506868]=new thumbnail(3506868,"214477","Blue Tit","Blue Tit_03 (web)2_thumb.jpg",130,81,15);thumbnails[3506879]=new thumbnail(3506879,"214477","Robin","Robin_004 (web)_thumb.jpg",130,83,15);thumbnails[3506889]=new thumbnail(3506889,"214477","Tufted Duck","Tufted Duck (web)_thumb.jpg",130,83,15);thumbnails[3506807]=new thumbnail(3506807,"214477","Grey Squirrel","Grey Squirrel (web)_thumb.jpg",130,87,15);thumbnails[3559498]=new thumbnail(3559498,"214477","Green Woodpecker ","Green_Woodpecker_web_thumb.jpg",130,87,15);thumbnails[3559510]=new thumbnail(3559510,"214477","Magpie ","IMG_6000B_Magpie_web_thumb.jpg",130,87,15);thumbnails[3512438]=new thumbnail(3512438,"214477","Waitresses","Posh 06B (web)_thumb.jpg",130,87,15);thumbnails[3512440]=new thumbnail(3512440,"214477","Party Piece","Posh 02 (web)_thumb.jpg",130,85,15);thumbnails[3512442]=new thumbnail(3512442,"214477","Social Event","Posh 05B (web)_thumb.jpg",130,87,15);thumbnails[3512428]=new thumbnail(3512428,"214477","Flower 2","IMG_6561 (web)_thumb.jpg",130,87,15);thumbnails[3512432]=new thumbnail(3512432,"214477","Flower 3","Flower_6521A (web)_thumb.jpg",130,87,15);thumbnails[5734347]=new thumbnail(5734347,"214195","Emma 1","IMG_9520B_WEB_thumb.jpg",130,87,15);thumbnails[5733792]=new thumbnail(5733792,"214195","Emma 2","IMG_0299D_WEB_BA5D278D-1D09-001F-99049E45E44ACE80_thumb.jpg",130,195,15);thumbnails[4762827]=new thumbnail(4762827,"214195","Kate 4","IMG_0225B_WEB_thumb.jpg",130,195,15);thumbnails[5733862]=new thumbnail(5733862,"214195","Sherrelle 2","IMG_0919B_WEB_thumb.jpg",130,195,15);thumbnails[5733806]=new thumbnail(5733806,"214195","Sherrelle 3","IMG_0687C_WEB_thumb.jpg",130,87,15);thumbnails[4381106]=new thumbnail(4381106,"214195","Kate 1","IMG_0121D_WEB_thumb.jpg",130,87,15);thumbnails[3506966]=new thumbnail(3506966,"214195","Tra 2","Tra04 B+W 2 (web)1_thumb.jpg",130,87,15);thumbnails[3591595]=new thumbnail(3591595,"214195","Sarah 1","IMG_8837C_web_thumb.jpg",130,87,15);thumbnails[5733843]=new thumbnail(5733843,"214195","Emma 3","IMG_9329C_WEB_thumb.jpg",130,195,15);thumbnails[5733804]=new thumbnail(5733804,"214195","Emma 4","IMG_0600B_WEB_thumb.jpg",130,195,15);thumbnails[4080633]=new thumbnail(4080633,"214195","Emma 5","IMG_9819A_web_thumb.jpg",130,87,15);thumbnails[4559295]=new thumbnail(4559295,"214195","Laura 1","IMG_8617E_WEB_thumb.jpg",130,87,15);thumbnails[5733846]=new thumbnail(5733846,"214195","Emma 6","IMG_0430C_WEB_thumb.jpg",130,87,15);thumbnails[5757430]=new thumbnail(5757430,"214195","Emma 7","IMG_9936D_WEB_thumb.jpg",130,87,15);thumbnails[3506964]=new thumbnail(3506964,"214195","Laura 3","IMG_8710_WEB_thumb.jpg",130,195,15);thumbnails[5733851]=new thumbnail(5733851,"214195","Sherrelle 1","IMG_0832C_WEB_thumb.jpg",130,195,15);thumbnails[5735733]=new thumbnail(5735733,"214195","Emma 8","IMG_9525XC_WEB_thumb.jpg",130,87,15);thumbnails[5735468]=new thumbnail(5735468,"214195","Emma 9","IMG_9542XB_reduced1_thumb.jpg",130,87,15);thumbnails[5735420]=new thumbnail(5735420,"214195","Emma 10","IMG_9374B_WEB_thumb.jpg",130,195,15);thumbnails[5733867]=new thumbnail(5733867,"214195","Kate 2","IMG_0129B3_WEB_thumb.jpg",130,195,15);thumbnails[4451141]=new thumbnail(4451141,"214195","Kate 3","IMG_0048D_WEB_thumb.jpg",130,195,15);thumbnails[5736888]=new thumbnail(5736888,"214195","Emma 11","IMG_0332B_WEB_thumb.jpg",130,195,15);thumbnails[5629153]=new thumbnail(5629153,"214195","Sarah 2","IMG_8991D_WEB_thumb.jpg",130,87,15);thumbnails[6478186]=new thumbnail(6478186,"214195","Emma 12","IMG_9796A_WEB_thumb.jpg",130,87,15);thumbnails[3506965]=new thumbnail(3506965,"214195","Tra 1","Tra01_WEB_thumb.jpg",130,191,15);thumbnails[3692543]=new thumbnail(3692543,"214195","Simone 3","IMG_8029D_web1_thumb.jpg",130,195,15);var galleries=new Object();galleries[214194]=new gallery(214194,"3655897","Sports","gallery",[5889397,5915869,5889369,5889380,5889385,5889491,5889276,3655897,5889393,5891477,3655926,3655904,3510031,4931889,4762073,4931738,5890153,3509499,3509621,5889484,3655970,3644031,3509052,3509689,3510196,3510001,3540452,3509661]);galleries[214698]=new gallery(214698,"6061244","Weddings","gallery",[6182087,6061244,6182075,6182080,6208235,6263248,6208326,6263252,6263282,6263253,6208331,6208337,6494244,6492114,6494191,6494236,6492117,6492116,6492115]);galleries[214477]=new gallery(214477,"3512370","Various","gallery",[3512425,3506636,3512451,3534057,3506713,3512370,3512374,3644182,4498008,4498016,4498024,3506868,3506879,3506889,3506807,3559498,3559510,3512438,3512440,3512442,3512428,3512432]);galleries[214195]=new gallery(214195,"5733806","Portraiture","gallery",[5734347,5733792,4762827,5733862,5733806,4381106,3506966,3591595,5733843,5733804,4080633,4559295,5733846,5757430,3506964,5733851,5735733,5735468,5735420,5733867,4451141,5736888,5629153,6478186,3506965,3692543]);var imageSets=new Object();imageSets[1]="3504828";imageSets[2]="6061244,5733806,3655897,3512370";imageSets[3]="6494244,6494236,6494191,6492117,6492116,6492115,6492114,6478186,6263282,6263253,6263252,6263248,6208337,6208331,6208326,6208235,6182087,6182080,6182075,6061244,5915869,5891477,5890153,5889491,5889484,5889397,5889393,5889385,5889380,5889369,5889276,5757430,5736888,5735733,5735468,5735420,5734347,5733867,5733862,5733851,5733846,5733843,5733806,5733804,5733792,5629153,4931889,4931738,4762827,4762073";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/supremekey/images";break}switch(a){case 1:b="http://www1.clikpic.com/supremekey/images";break}switch(a){case 2:b="http://admin.clikpic.com/supremekey/images";break}switch(a){case 24:b="http://tpc15/clikpic/supremekey/images";break}switch(a){case 4:b="http://www.clikchurch.com/supremekey/images";break}switch(a){case 5:b="http://www2.clikpic.com/supremekey/images";break}switch(a){case 22:b="http://tpc5/clikpic/supremekey/images";break}switch(a){case 23:b="http://tpc10/clikpic/supremekey/images";break}switch(a){case 25:b="http://tpc16/clikpic/supremekey/images";break}switch(a){case 15:b="http://www3.clikpic.com/supremekey/images";break}switch(a){case 18:b="http://www4.clikpic.com/supremekey/images";break}switch(a){case 19:b="http://www5.clikpic.com/supremekey/images";break}switch(a){case 31:b="http://www7.clikpic.com/supremekey/images";break}switch(a){case 32:b="http://admin2.clikpic.com/supremekey/images";break}switch(a){case 33:b="http://www8.clikpic.com/supremekey/images";break}switch(a){case 34:b="http://www9.clikpic.com/supremekey/images";break}switch(a){case 35:b="http://admin3.clikpic.com/supremekey/images";break}switch(a){case 37:b="http://admin4.clikpic.com/supremekey/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="David Lawrence 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;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+'")'})}}};