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[2926367]=new thumbnail(2926367,"180664","Portsmouth Marriott","IMG00161_thumb.jpg",130,104,1);thumbnails[2928706]=new thumbnail(2928706,"180664","Hilton Avisford Park","IMG00163_thumb.jpg",130,104,1);thumbnails[2928715]=new thumbnail(2928715,"180664","Felbridge Hotel","IMG00280_thumb.jpg",130,104,1);thumbnails[3029007]=new thumbnail(3029007,"180664","Fontwell Racecourse","IMG00364_thumb.jpg",130,104,1);thumbnails[3029010]=new thumbnail(3029010,"180664","Hilton Avisford Park","IMG00372_thumb.jpg",130,104,1);thumbnails[5508694]=new thumbnail(5508694,"180664","Portsmouth Marriott","IMG00160_thumb.jpg",130,104,1);thumbnails[5508808]=new thumbnail(5508808,"180664","Hickstead Showground","IMG00406_thumb.jpg",130,163,1);thumbnails[5508809]=new thumbnail(5508809,"180664","Hilton Avisford Park","IMG00412_thumb.jpg",130,163,1);thumbnails[5509917]=new thumbnail(5509917,"180664","Butlins conference centre","IMG_0363_copy_thumb.jpg",130,98,1);thumbnails[2907082]=new thumbnail(2907082,"179769","The White Swan, Arundel","IMG_4253_thumb.jpg",130,97,1);thumbnails[2907158]=new thumbnail(2907158,"179769","Marriott Meon Valley","IMG_4283_thumb.jpg",130,86,1);thumbnails[2919605]=new thumbnail(2919605,"179769","Marwell Hotel","IMG_4408 copy_thumb.jpg",130,97,1);thumbnails[2919624]=new thumbnail(2919624,"179769","Hilton Avisford Park","IMG_4423 copy_thumb.jpg",130,97,1);thumbnails[2919628]=new thumbnail(2919628,"179769","The Royal Norfolk","IMG_3420 copy_thumb.jpg",130,86,1);thumbnails[2919630]=new thumbnail(2919630,"179769","Willow Barn","IMG_3583 copy_thumb.JPG",130,86,1);thumbnails[2919642]=new thumbnail(2919642,"179769","Crouchers Hotel","IMG_5368 copy_thumb.jpg",130,97,1);thumbnails[2919645]=new thumbnail(2919645,"179769","Arundel Town Hall","IMG_5758 copy_thumb.jpg",130,91,1);thumbnails[2919648]=new thumbnail(2919648,"179769","The Walled Garden","IMG_24822 copy_thumb.jpg",130,86,1);thumbnails[2928693]=new thumbnail(2928693,"179769","Chichester Park Hotel<br>\r\n","023_thumb.JPG",130,97,1);thumbnails[2928695]=new thumbnail(2928695,"179769","West Stoke House","Chair cover pics 003_thumb.jpg",130,86,1);thumbnails[2928701]=new thumbnail(2928701,"179769","Arundel Town Hall","DSC00278_thumb.JPG",130,97,1);thumbnails[2928705]=new thumbnail(2928705,"179769","Chatsworth Hotel, Worthing","IMG00245_thumb.jpg",130,104,1);thumbnails[2928712]=new thumbnail(2928712,"179769","Hilton Avisford Park","IMG00141_thumb.jpg",130,104,1);thumbnails[3028979]=new thumbnail(3028979,"179769","Arundel Town Hall","IMG00370_thumb.jpg",130,104,1);thumbnails[3028981]=new thumbnail(3028981,"179769","Copthorne Hotel","IMG00359_thumb.jpg",130,104,1);thumbnails[3028983]=new thumbnail(3028983,"179769","Holiday Inn, Brighton","IMG00356_thumb.jpg",130,104,1);thumbnails[3028985]=new thumbnail(3028985,"179769","Fontwell House","IMG00355_thumb.jpg",130,163,1);thumbnails[3028990]=new thumbnail(3028990,"179769","Southsea Castle","IMG00327_thumb.jpg",130,163,1);thumbnails[3028991]=new thumbnail(3028991,"179769","Old Ship Hotel, Brighton","IMG00299_thumb.jpg",130,163,1);thumbnails[3028992]=new thumbnail(3028992,"179769","Chatsworth Hotel, Worthing","IMG00292_thumb.jpg",130,104,1);thumbnails[3028994]=new thumbnail(3028994,"179769","","IMG00288_thumb.jpg",130,104,1);thumbnails[5508806]=new thumbnail(5508806,"179769","Chilworth Manor","IMG00385_thumb.jpg",130,104,1);thumbnails[5509909]=new thumbnail(5509909,"179769","Stanmer House","CRW_7990_thumb.jpg",130,95,1);thumbnails[5509913]=new thumbnail(5509913,"179769","Fontwell marquee","IMG__000041_thumb.jpg",130,87,1);thumbnails[5509923]=new thumbnail(5509923,"179769","Goodwood Park Hotel","IMG_0552_thumb.jpg",130,87,1);thumbnails[5509967]=new thumbnail(5509967,"179769","Holiday inn, Portsmouth","IMG_3201_thumb.jpg",130,91,1);thumbnails[5509989]=new thumbnail(5509989,"179769","The Royal Norfolk<br>\r\n ","IMG_3424_Green_thumb.jpg",130,87,1);thumbnails[5509996]=new thumbnail(5509996,"179769","The Domus, Beaulieu","IMG_3635_thumb.jpg",130,104,1);thumbnails[5510003]=new thumbnail(5510003,"179769","","IMG_3678_thumb.jpg",130,87,1);thumbnails[5510014]=new thumbnail(5510014,"179769","Crouchers Hotel","IMG_5364_thumb.jpg",130,98,1);thumbnails[5510016]=new thumbnail(5510016,"179769","Hilton Avisford Park<br>\r\n<br>\r\n","IMG_5573_thumb.jpg",130,87,1);thumbnails[5510031]=new thumbnail(5510031,"179769","Crouchers Hotel","IMG_6128_thumb.jpg",130,91,1);thumbnails[5510033]=new thumbnail(5510033,"179769","Fontwell House","IMG_6705_thumb.jpg",130,87,1);thumbnails[5510088]=new thumbnail(5510088,"179769","Norfolk Arms Hotel, Arundel","IMG_8128_thumb.jpg",130,87,1);thumbnails[5510124]=new thumbnail(5510124,"179769","Lime","top_table_1_thumb.jpg",130,93,1);thumbnails[5510090]=new thumbnail(5510090,"256182","","IMG_8700_thumb.jpg",130,173,1);thumbnails[5519251]=new thumbnail(5519251,"256182","","522_thumb.jpg",130,98,1);thumbnails[5519256]=new thumbnail(5519256,"256182","","IMG_3636copy_thumb.jpg",130,87,1);thumbnails[5519260]=new thumbnail(5519260,"256182","","IMG_7400holly_thumb.jpg",130,87,1);thumbnails[5519264]=new thumbnail(5519264,"256182","","Weddinginvites1138_thumb.jpg",130,87,1);thumbnails[2900829]=new thumbnail(2900829,"179770","Botleigh Grange Hotel","BG_thumb.jpg",130,93,1);thumbnails[2901279]=new thumbnail(2901279,"179770","Wickwoods Country Club","IMG_6604_thumb.jpg",130,93,1);thumbnails[2928691]=new thumbnail(2928691,"179770","Fontwell House","007_thumb.JPG",130,173,1);thumbnails[2928692]=new thumbnail(2928692,"179770","The Coach House, Chilworth Manor","009_thumb.JPG",130,173,1);thumbnails[2928698]=new thumbnail(2928698,"179770","Arundel Town Hall","DSC00274_thumb.JPG",130,173,1);thumbnails[3028996]=new thumbnail(3028996,"179770","","IMG00290_thumb.jpg",130,163,1);thumbnails[3028998]=new thumbnail(3028998,"179770","Solent Hotel","IMG00302_thumb.jpg",130,104,1);thumbnails[3028999]=new thumbnail(3028999,"179770","Solent Hotel","IMG00303_thumb.jpg",130,163,1);thumbnails[3029000]=new thumbnail(3029000,"179770","","IMG00310_thumb.jpg",130,104,1);thumbnails[3029003]=new thumbnail(3029003,"179770","","IMG00321_thumb.jpg",130,163,1);thumbnails[3029004]=new thumbnail(3029004,"179770","","IMG00361_thumb.jpg",130,163,1);thumbnails[3029006]=new thumbnail(3029006,"179770","","IMG00357_thumb.jpg",130,163,1);thumbnails[5509895]=new thumbnail(5509895,"179770","Stanmer House","CRW_7981_thumb.jpg",130,95,1);thumbnails[5509919]=new thumbnail(5509919,"179770","Butlins Conference centre","IMG_0365_copy_thumb.jpg",130,91,1);thumbnails[5509932]=new thumbnail(5509932,"179770","Goodwood Park Hotel","IMG_0589_thumb.jpg",130,87,1);thumbnails[5509937]=new thumbnail(5509937,"179770","Fairy light curtain ","IMG_0592_thumb.jpg",130,87,1);thumbnails[5509961]=new thumbnail(5509961,"179770","Door drapes","IMG_0608_thumb.jpg",130,87,1);thumbnails[5510022]=new thumbnail(5510022,"179770","Candelabra with flowers by Manor Nursery","IMG_5580_A4_thumb.jpg",130,185,1);thumbnails[5510026]=new thumbnail(5510026,"179770","Table swag, Gatton Manor","IMG_5794_thumb.jpg",130,185,1);thumbnails[5510037]=new thumbnail(5510037,"179770","Pillars dressed with fairy lights and organza drapes","IMG_6724_thumb.jpg",130,87,1);thumbnails[5510075]=new thumbnail(5510075,"179770","Copthorne Hotel<br>\r\nFairy light backdrop","IMG_6789_thumb.jpg",130,87,1);thumbnails[5510094]=new thumbnail(5510094,"179770","Fontwell House","IMG_8702_thumb.jpg",130,98,1);thumbnails[5508685]=new thumbnail(5508685,"311898","Aisle runner with petals from £45","IMG00049_thumb.jpg",130,163,1);thumbnails[5508693]=new thumbnail(5508693,"311898","Top table swag with lights - £28","IMG00147_thumb.jpg",130,104,1);thumbnails[5508699]=new thumbnail(5508699,"311898","Top table swag with lights - £28","IMG00253_thumb.jpg",130,104,1);thumbnails[5508701]=new thumbnail(5508701,"311898","Fairy light backdrop from £95","IMG00274_thumb.jpg",130,104,1);thumbnails[5508704]=new thumbnail(5508704,"311898","Candelabras from £15","IMG00290_D196EFCF-1EC9-D45B-1C0BC336A50BA0EC_thumb.jpg",130,163,1);thumbnails[5508705]=new thumbnail(5508705,"311898","Table runners - £2.50","IMG00293_thumb.jpg",130,104,1);thumbnails[5508709]=new thumbnail(5508709,"311898","Top table swag without lights - £18","IMG00294_thumb.jpg",130,104,1);thumbnails[5508713]=new thumbnail(5508713,"311898","Floral arch with fairy lights - £75<br>\r\nFloral urns - 2 for £50","IMG00302_D198F832-1EC9-D45B-1C9E975FC307D776_thumb.jpg",130,104,1);thumbnails[5508735]=new thumbnail(5508735,"311898","Table runners - £2.50","IMG00303_D19A39DA-1EC9-D45B-1C08B8D5E42BD74A_thumb.jpg",130,163,1);thumbnails[5508741]=new thumbnail(5508741,"311898","Napkin ties - 45p each","IMG00304_thumb.jpg",130,163,1);thumbnails[5508784]=new thumbnail(5508784,"311898","Floral urns - 2 for £50","IMG00329_thumb.jpg",130,163,1);thumbnails[5508789]=new thumbnail(5508789,"311898","Centre pieces from £18","IMG00357_D19C0B9C-1EC9-D45B-1C5275670FC49482_thumb.jpg",130,163,1);thumbnails[5508797]=new thumbnail(5508797,"311898","Balcony swags with lights from £30","IMG00378_thumb.jpg",130,104,1);thumbnails[5508804]=new thumbnail(5508804,"311898","Door drapes from £35","IMG00380_thumb.jpg",130,104,1);thumbnails[5508817]=new thumbnail(5508817,"311898","Candelabra with fresh flowers from £45","beaulieu_2_thumb.jpg",130,195,1);thumbnails[5508819]=new thumbnail(5508819,"311898","From £15","candelabra_thumb.jpg",130,130,1);thumbnails[5508820]=new thumbnail(5508820,"311898","Pillar decoration from £35","IMG00149A_thumb.jpg",130,104,1);thumbnails[5509905]=new thumbnail(5509905,"311898","Fairy light backdrop from £95","CRW_7984_thumb.jpg",130,179,1);thumbnails[5509930]=new thumbnail(5509930,"311898","Bay Trees from £45 for 2","IMG_0577_thumb.jpg",130,87,1);thumbnails[5510029]=new thumbnail(5510029,"311898","Ivory and crystal candelabra from £8","IMG_5821_done_thumb.jpg",130,185,1);var galleries=new Object();galleries[180664]=new gallery(180664,"5509917,5508809,5508808,5508694,3029010,3029007,2928715,2928706,2926367","Corporate And Events","gallery",[2926367,2928706,2928715,3029007,3029010,5508694,5508808,5508809,5509917]);galleries[179769]=new gallery(179769,"5510124,5510088,5510033,5510031,5510016,5510014,5510003,5509996,5509989,5509967","Chair covers","gallery",[2907082,2907158,2919605,2919624,2919628,2919630,2919642,2919645,2919648,2928693,2928695,2928701,2928705,2928712,3028979,3028981,3028983,3028985,3028990,3028991,3028992,3028994,5508806,5509909,5509913,5509923,5509967,5509989,5509996,5510003,5510014,5510016,5510031,5510033,5510088,5510124]);galleries[256182]=new gallery(256182,"5519264,5519260,5519256,5519251,5510090","The Wedding Package","gallery",[5510090,5519251,5519256,5519260,5519264]);galleries[179770]=new gallery(179770,"2928691","Venue design","gallery",[2900829,2901279,2928691,2928692,2928698,3028996,3028998,3028999,3029000,3029003,3029004,3029006,5509895,5509919,5509932,5509937,5509961,5510022,5510026,5510037,5510075,5510094]);galleries[311898]=new gallery(311898,"5510029,5509930,5509905,5508820,5508819,5508817,5508804,5508797,5508789,5508784","Hire and decoration costs","gallery",[5508685,5508693,5508699,5508701,5508704,5508705,5508709,5508713,5508735,5508741,5508784,5508789,5508797,5508804,5508817,5508819,5508820,5509905,5509930,5510029]);var imageSets=new Object();imageSets[1]="3028979,2928693,2919648,2919645,2919642,2919628,2919624,2901279,2900829";imageSets[2]="2928691";imageSets[3]="5519264,5519260,5519256,5519251,5510124,5510094,5510090,5510088,5510075,5510037,5510033,5510031,5510029,5510026,5510022,5510016,5510014,5510003,5509996,5509989,5509967,5509961,5509937,5509932,5509930,5509923,5509919,5509917,5509913,5509909,5509905,5509895,5508820,5508819,5508817,5508809,5508808,5508806,5508804,5508797,5508789,5508784,5508741,5508735,5508713,5508709,5508705,5508704,5508701,5508699";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/clairesmith/images";break}switch(a){case 1:b="http://www1.clikpic.com/clairesmith/images";break}switch(a){case 2:b="http://admin.clikpic.com/clairesmith/images";break}switch(a){case 24:b="http://tpc15/clikpic/clairesmith/images";break}switch(a){case 4:b="http://www.clikchurch.com/clairesmith/images";break}switch(a){case 5:b="http://www2.clikpic.com/clairesmith/images";break}switch(a){case 22:b="http://tpc5/clikpic/clairesmith/images";break}switch(a){case 23:b="http://tpc10/clikpic/clairesmith/images";break}switch(a){case 25:b="http://tpc16/clikpic/clairesmith/images";break}switch(a){case 15:b="http://www3.clikpic.com/clairesmith/images";break}switch(a){case 18:b="http://www4.clikpic.com/clairesmith/images";break}switch(a){case 19:b="http://www5.clikpic.com/clairesmith/images";break}switch(a){case 31:b="http://www7.clikpic.com/clairesmith/images";break}switch(a){case 32:b="http://admin2.clikpic.com/clairesmith/images";break}switch(a){case 33:b="http://www8.clikpic.com/clairesmith/images";break}switch(a){case 34:b="http://www9.clikpic.com/clairesmith/images";break}switch(a){case 35:b="http://admin3.clikpic.com/clairesmith/images";break}switch(a){case 37:b="http://admin4.clikpic.com/clairesmith/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="VIP Venues by Kenmarche: "+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+'")'})}}};