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[1821721]=new thumbnail(1821721,"","","Modern-portraits-for-modern_thumb.jpg",130,86,1);thumbnails[2018653]=new thumbnail(2018653,"","","Image corporate galleries page_thumb.jpg",130,86,1);thumbnails[2093555]=new thumbnail(2093555,"","","Image for corporate wsite210px_thumb.jpg",130,86,1);thumbnails[2109225]=new thumbnail(2109225,"","","websitephoto_thumb.jpg",98,130,1);thumbnails[2130109]=new thumbnail(2130109,"","","woman-in-suit_thumb.jpg",130,92,1);thumbnails[2130112]=new thumbnail(2130112,"","","BHman-in-suit_thumb.jpg",130,92,1);thumbnails[2457507]=new thumbnail(2457507,"","","website info page_thumb.jpg",130,92,1);thumbnails[3042379]=new thumbnail(3042379,"","","professional business portrait_thumb.jpg",91,130,1);thumbnails[3042381]=new thumbnail(3042381,"","","unprofessional business portrait_thumb.jpg",87,130,1);thumbnails[3890764]=new thumbnail(3890764,"","","anna_thumb.jpg",104,130,1);thumbnails[396391]=new thumbnail(396391,"30929","","01thumbborder.jpg",130,130,1);thumbnails[396392]=new thumbnail(396392,"30929","","02thumbborder.jpg",130,130,1);thumbnails[396393]=new thumbnail(396393,"30929","","03thumbborder.jpg",130,130,1);thumbnails[396394]=new thumbnail(396394,"30929","","04thumbborder.jpg",130,130,1);thumbnails[396395]=new thumbnail(396395,"30929","","05thumbborder.jpg",130,130,1);thumbnails[396396]=new thumbnail(396396,"30929","","06thumbborder.jpg",130,130,1);thumbnails[396397]=new thumbnail(396397,"30929","","07thumbborder.jpg",130,130,1);thumbnails[396403]=new thumbnail(396403,"30929","","08thumbborder.jpg",130,130,1);thumbnails[407921]=new thumbnail(407921,"30929","","09thumbborder.jpg",130,130,1);thumbnails[3997590]=new thumbnail(3997590,"30929","","Amyas_Morse_NAO_2_thumb.jpg",130,130,1);thumbnails[396381]=new thumbnail(396381,"30932","","01thumbborder1.jpg",130,130,1);thumbnails[396382]=new thumbnail(396382,"30932","","02thumbborder1.jpg",130,130,1);thumbnails[396385]=new thumbnail(396385,"30932","","03thumbborder2.jpg",130,130,1);thumbnails[396386]=new thumbnail(396386,"30932","","04thumbborder1.jpg",130,130,1);thumbnails[396387]=new thumbnail(396387,"30932","","05thumbborder1.jpg",130,130,1);thumbnails[396388]=new thumbnail(396388,"30932","","06thumbborder1.jpg",130,130,1);thumbnails[396389]=new thumbnail(396389,"30932","","07thumbborder1.jpg",130,130,1);thumbnails[396390]=new thumbnail(396390,"30932","","08thumbborder1.jpg",130,130,1);thumbnails[405865]=new thumbnail(405865,"30932","","09thumbborder1.jpg",130,130,1);thumbnails[396412]=new thumbnail(396412,"30936","","01thumbborder2.jpg",130,130,1);thumbnails[396413]=new thumbnail(396413,"30936","","02thumbborder3.jpg",130,130,1);thumbnails[396414]=new thumbnail(396414,"30936","","03thumbborder4.jpg",130,130,1);thumbnails[396429]=new thumbnail(396429,"30936","","04thumbborder3.jpg",130,130,1);thumbnails[396430]=new thumbnail(396430,"30936","","05thumbborder3.jpg",130,130,1);thumbnails[396431]=new thumbnail(396431,"30936","","06thumbborder3.jpg",130,130,1);thumbnails[396432]=new thumbnail(396432,"30936","","07thumbborder3.jpg",130,130,1);thumbnails[396437]=new thumbnail(396437,"30936","","08thumbborder2.jpg",130,130,1);thumbnails[396439]=new thumbnail(396439,"30936","","09thumbborder2.jpg",130,130,1);thumbnails[396440]=new thumbnail(396440,"30936","","10thumbborder.jpg",130,130,1);thumbnails[396441]=new thumbnail(396441,"30936","","11thumbborder.jpg",130,130,1);thumbnails[396443]=new thumbnail(396443,"30936","","12thumbborder.jpg",130,130,1);thumbnails[2227909]=new thumbnail(2227909,"30936","","businesswoman portrait fullsize_thumb.jpg",130,130,1);thumbnails[2227917]=new thumbnail(2227917,"30936","","womanoutdoors2fullsize_thumb.jpg",130,130,1);thumbnails[2227918]=new thumbnail(2227918,"30936","","womanoutdoorsfullsize_thumb.jpg",130,130,1);thumbnails[2585408]=new thumbnail(2585408,"30936","","Location portrait 1_thumb.jpg",130,130,1);thumbnails[2585409]=new thumbnail(2585409,"30936","","Location portrait 2_thumb.jpg",130,130,1);thumbnails[2620864]=new thumbnail(2620864,"30936","","MO01full-size1_thumb.jpg",130,130,1);thumbnails[3997581]=new thumbnail(3997581,"30936","","Amyas_Morse-NAO_thumb.jpg",130,130,1);thumbnails[2227910]=new thumbnail(2227910,"30936","","maninofficefullsize_thumb.jpg",130,130,1);thumbnails[2227916]=new thumbnail(2227916,"30936","","womanonstairsfull_thumb.jpg",130,130,1);thumbnails[396506]=new thumbnail(396506,"30931","","01thumbborder4.jpg",130,130,1);thumbnails[396507]=new thumbnail(396507,"30931","","02thumbborder7.jpg",130,130,1);thumbnails[396509]=new thumbnail(396509,"30931","","03thumbborder8.jpg",130,130,1);thumbnails[396510]=new thumbnail(396510,"30931","","04thumbborder7.jpg",130,130,1);thumbnails[396511]=new thumbnail(396511,"30931","","05thumbborder6.jpg",130,130,1);thumbnails[407864]=new thumbnail(407864,"30931","","06thumbborder6.jpg",130,130,1);thumbnails[2227906]=new thumbnail(2227906,"30931","","businessmanfullsize1_thumb.jpg",130,130,1);thumbnails[2227907]=new thumbnail(2227907,"30931","","businesswoman2portraitfullsize_thumb.jpg",130,130,1);thumbnails[396454]=new thumbnail(396454,"30934","","01thumbborder3.jpg",130,130,1);thumbnails[396455]=new thumbnail(396455,"30934","","02thumbborder5.jpg",130,130,1);thumbnails[396457]=new thumbnail(396457,"30934","","03thumbborder6.jpg",130,130,1);thumbnails[396458]=new thumbnail(396458,"30934","","04thumbborder5.jpg",130,130,1);thumbnails[396462]=new thumbnail(396462,"30934","","06thumbborder5.jpg",130,130,1);thumbnails[406715]=new thumbnail(406715,"30934","","08thumbborder3.jpg",130,130,1);thumbnails[2227914]=new thumbnail(2227914,"30934","","string-mania-2-fullsize_thumb.jpg",130,130,1);thumbnails[2227915]=new thumbnail(2227915,"30934","","stringmania-fullsize_thumb.jpg",130,130,1);thumbnails[2234339]=new thumbnail(2234339,"30934","","Banqueting-house-fullsize_thumb.jpg",130,130,1);thumbnails[2511412]=new thumbnail(2511412,"30934","","Arsenal_thumb.jpg",130,130,1);thumbnails[2585357]=new thumbnail(2585357,"30934","","Chris Tarrant_thumb.jpg",130,130,1);thumbnails[2585359]=new thumbnail(2585359,"30934","","Singer_thumb.jpg",130,130,1);thumbnails[2585514]=new thumbnail(2585514,"30934","","Chartered--Accts-Hall_thumb.jpg",130,130,1);thumbnails[2585563]=new thumbnail(2585563,"30934","","Huw-Edwards_thumb.jpg",130,130,1);thumbnails[2620890]=new thumbnail(2620890,"30934","","Fight-full-size_thumb.jpg",130,130,1);thumbnails[395988]=new thumbnail(395988,"30933","","05thumbborder2.jpg",130,130,1);thumbnails[396405]=new thumbnail(396405,"30933","","02thumbborder2.jpg",130,130,1);thumbnails[396407]=new thumbnail(396407,"30933","","04thumbborder2.jpg",130,130,1);thumbnails[396410]=new thumbnail(396410,"30933","","06thumbborder2.jpg",130,130,1);thumbnails[429633]=new thumbnail(429633,"30933","","07thumbborder2.jpg",130,130,1);thumbnails[1242613]=new thumbnail(1242613,"30933","","08thumbborder5.jpg",130,130,1);thumbnails[2511414]=new thumbnail(2511414,"30933","","Conference 1_thumb.jpg",130,130,1);thumbnails[2511415]=new thumbnail(2511415,"30933","","John Armitt 2012 Olympics_thumb.jpg",130,130,1);thumbnails[2620862]=new thumbnail(2620862,"30933","","James-Lovelock-full-size_thumb.jpg",130,130,1);thumbnails[396444]=new thumbnail(396444,"30937","","02thumbborder4.jpg",130,130,1);thumbnails[396445]=new thumbnail(396445,"30937","","03thumbborder5.jpg",130,130,1);thumbnails[396446]=new thumbnail(396446,"30937","","04thumbborder4.jpg",130,130,1);thumbnails[396449]=new thumbnail(396449,"30937","","05thumbborder4.jpg",130,130,1);thumbnails[396450]=new thumbnail(396450,"30937","","06thumbborder4.jpg",130,130,1);thumbnails[396451]=new thumbnail(396451,"30937","","07thumbborder4.jpg",130,130,1);thumbnails[2585524]=new thumbnail(2585524,"30937","","UCCA05-full-size_thumb.jpg",130,130,1);thumbnails[2585543]=new thumbnail(2585543,"30937","","MO01full-size_thumb.jpg",130,130,1);thumbnails[3997550]=new thumbnail(3997550,"30937","","Group_shot_1_thumb.jpg",130,130,1);thumbnails[3997551]=new thumbnail(3997551,"30937","","Publicity_shot_1_thumb.jpg",130,130,1);thumbnails[396488]=new thumbnail(396488,"30935","","02thumbborder6.jpg",130,130,1);thumbnails[396489]=new thumbnail(396489,"30935","","03thumbborder7.jpg",130,130,1);thumbnails[396490]=new thumbnail(396490,"30935","","04thumbborder6.jpg",130,130,1);thumbnails[396491]=new thumbnail(396491,"30935","","05thumbborder5.jpg",130,130,1);thumbnails[396500]=new thumbnail(396500,"30935","","07thumbborder5.jpg",130,130,1);thumbnails[405935]=new thumbnail(405935,"30935","","08thumbborder4.jpg",130,130,1);thumbnails[1969335]=new thumbnail(1969335,"30935","","HM-The-Queen1_thumb.jpg",130,130,1);thumbnails[1969336]=new thumbnail(1969336,"30935","","HM-The-Queen2_thumb.jpg",130,130,1);thumbnails[1969337]=new thumbnail(1969337,"30935","","HM-The-Queen3_thumb.jpg",130,130,1);thumbnails[2227911]=new thumbnail(2227911,"30935","","Prince-Andrew-Duke-of-York fullsize-_thumb.jpg",130,130,1);thumbnails[2227912]=new thumbnail(2227912,"30935","","Princess-Alexandra-2-fullsi_thumb.jpg",130,130,1);thumbnails[2227913]=new thumbnail(2227913,"30935","","Princess-Alexandra-fullsize_thumb.jpg",130,130,1);thumbnails[3997510]=new thumbnail(3997510,"30935","","Miss_England_Laura_Coleman_thumb.jpg",130,130,1);thumbnails[3997527]=new thumbnail(3997527,"30935","","Miss_England_Laura_Coleman_2_thumb.jpg",130,130,1);thumbnails[3997540]=new thumbnail(3997540,"30935","","Miss_England_Laura_Coleman_3_thumb.jpg",130,130,1);thumbnails[3997574]=new thumbnail(3997574,"30935","","Flaming_hands_experiment_thumb.jpg",130,130,1);thumbnails[1588767]=new thumbnail(1588767,"108596","","Figleavesthumb.jpg",130,130,1);thumbnails[1588822]=new thumbnail(1588822,"108596","","Sandunesthumb.jpg",130,130,1);thumbnails[1588823]=new thumbnail(1588823,"108596","","Bluegrass1thumb.jpg",130,130,1);thumbnails[1588825]=new thumbnail(1588825,"108596","","Bluegrass2thumb.jpg",130,130,1);thumbnails[1588826]=new thumbnail(1588826,"108596","","Bluegrass3thumb.jpg",130,130,1);thumbnails[1588828]=new thumbnail(1588828,"108596","","doorthumb.jpg",130,130,1);thumbnails[1588829]=new thumbnail(1588829,"108596","","Sandpatterns1thumb.jpg",130,130,1);thumbnails[1588831]=new thumbnail(1588831,"108596","","Sandpatterns2thumb.jpg",130,130,1);thumbnails[1588839]=new thumbnail(1588839,"108596","","Stilllifethumb.jpg",130,130,1);var galleries=new Object();galleries[30929]=new gallery(30929,"396393","Colour reportage","gallery",[396391,396392,396393,396394,396395,396396,396397,396403,407921,3997590]);galleries[30932]=new gallery(30932,"396389","B&w reportage","gallery",[396381,396382,396385,396386,396387,396388,396389,396390,405865]);galleries[30936]=new gallery(30936,"396437","Location ","gallery",[396412,396413,396414,396429,396430,396431,396432,396437,396439,396440,396441,396443,2227909,2227917,2227918,2585408,2585409,2620864,3997581,2227910,2227916]);galleries[30931]=new gallery(30931,"396507","Formal ","gallery",[396506,396507,396509,396510,396511,407864,2227906,2227907]);galleries[30934]=new gallery(30934,"2585357","Corporate events","gallery",[396454,396455,396457,396458,396462,406715,2227914,2227915,2234339,2511412,2585357,2585359,2585514,2585563,2620890]);galleries[30933]=new gallery(30933,"1242613","Conferences/shows","gallery",[395988,396405,396407,396410,429633,1242613,2511414,2511415,2620862]);galleries[30937]=new gallery(30937,"396450","Publications","gallery",[396444,396445,396446,396449,396450,396451,2585524,2585543,3997550,3997551]);galleries[30935]=new gallery(30935,"3997574,3997510,1969335","Press/pr","gallery",[396488,396489,396490,396491,396500,405935,1969335,1969336,1969337,2227911,2227912,2227913,3997510,3997527,3997540,3997574]);galleries[108596]=new gallery(108596,"1588767","Personal  work","gallery",[1588767,1588822,1588823,1588825,1588826,1588828,1588829,1588831,1588839]);var imageSets=new Object();imageSets[1]="3997574,3997510,1969337,1242613,396455,396451,396450,396439,396437,396393";imageSets[2]="3997574,3997510,2585357,1969335,1588767,1242613,396507,396450,396437,396393,396389";imageSets[3]="3997590,3997581,3997574,3997551,3997550,3997540,3997527,3997510,3890764,3042381,3042379,2620890,2620864,2620862,2585563,2585543,2585524,2585514,2585409,2585408,2585359,2585357,2511415,2511414,2511412,2457507,2234339,2227918,2227917,2227916,2227915,2227914,2227913,2227912,2227911,2227910,2227909,2227907,2227906,2130112,2130109,2109225,2093555,2018653,1969337,1969336,1969335,1821721,1588839,1588831";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 34:b="http://www9.clikpic.com/annasaverimuttu/images";break}switch(a){case 1:b="http://www1.clikpic.com/annasaverimuttu/images";break}switch(a){case 2:b="http://admin.clikpic.com/annasaverimuttu/images";break}switch(a){case 4:b="http://www.clikchurch.com/annasaverimuttu/images";break}switch(a){case 5:b="http://www2.clikpic.com/annasaverimuttu/images";break}switch(a){case 15:b="http://www3.clikpic.com/annasaverimuttu/images";break}switch(a){case 21:b="http://www6.clikpic.com/annasaverimuttu/images";break}switch(a){case 18:b="http://www4.clikpic.com/annasaverimuttu/images";break}switch(a){case 19:b="http://www5.clikpic.com/annasaverimuttu/images";break}switch(a){case 22:b="http://tpc5/clikpic/annasaverimuttu/images";break}switch(a){case 23:b="http://tpc10/clikpic/annasaverimuttu/images";break}switch(a){case 24:b="http://tpc15/clikpic/annasaverimuttu/images";break}switch(a){case 25:b="http://tpc16/clikpic/annasaverimuttu/images";break}switch(a){case 31:b="http://www7.clikpic.com/annasaverimuttu/images";break}switch(a){case 32:b="http://admin2.clikpic.com/annasaverimuttu/images";break}switch(a){case 33:b="http://www8.clikpic.com/annasaverimuttu/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="'+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="Corporate photographer Guildford Surrey London: "+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+'")'})}}};