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[5252549]=new thumbnail(5252549,"295838","Testimonial image.","b_thumb.jpg",130,87,5);thumbnails[5252551]=new thumbnail(5252551,"295838","Another testimonial letter.","c_thumb.jpg",130,195,5);thumbnails[5252556]=new thumbnail(5252556,"295838","Testimonial","testa_thumb.jpg",130,98,5);thumbnails[5255449]=new thumbnail(5255449,"295952","Megaphone","ITLcopy_thumb.jpg",130,195,5);thumbnails[5255453]=new thumbnail(5255453,"295952","Can","ITL6A_thumb.jpg",130,159,5);thumbnails[5255458]=new thumbnail(5255458,"295952","Sands Of Time","ITL7A_thumb.jpg",130,190,5);thumbnails[5255465]=new thumbnail(5255465,"295976","Grand House.","DSCF4957_1_thumb.jpg",130,87,5);thumbnails[5255471]=new thumbnail(5255471,"295976","Home Interior Coopersknowe","DSCF3725_thumb.jpg",130,194,5);thumbnails[5255484]=new thumbnail(5255484,"295976","Kitchen","DSCF9672_thumb.jpg",130,87,5);thumbnails[5255496]=new thumbnail(5255496,"295976","Living Room","d_thumb.jpg",130,87,5);thumbnails[5255501]=new thumbnail(5255501,"295976","Garden","DSCF436_thumb.jpg",130,87,5);thumbnails[5255509]=new thumbnail(5255509,"295978","Portrait","DSCF9728copy_thumb.jpg",130,194,5);thumbnails[5255515]=new thumbnail(5255515,"295978","Graduation","DSCF9679_thumb.jpg",130,163,5);thumbnails[5255525]=new thumbnail(5255525,"295980","Engagement","engagement_thumb.jpg",130,195,5);thumbnails[5255581]=new thumbnail(5255581,"328584","Bride and Groom","ITL192_thumb.jpg",130,87,5);thumbnails[5266288]=new thumbnail(5266288,"328584","Married Couple","ITL359a_thumb.jpg",130,195,5);thumbnails[5266295]=new thumbnail(5266295,"328584","Walking","ITL802a_thumb.jpg",130,195,5);thumbnails[5266311]=new thumbnail(5266311,"296419","3 Plates","ITL02b_thumb.jpg",130,195,5);thumbnails[5266327]=new thumbnail(5266327,"296419","Fruit Salad","ITL05_thumb.jpg",130,87,5);thumbnails[5274963]=new thumbnail(5274963,"328584","On the Bridge","_DSF2788a_thumb.jpg",130,195,5);thumbnails[5274966]=new thumbnail(5274966,"328584","Fashion Bride","_DSF2800a_thumb.jpg",130,194,5);thumbnails[5280661]=new thumbnail(5280661,"295978","Model","_DSF6240_thumb.jpg",130,195,5);thumbnails[5284605]=new thumbnail(5284605,"297251","Winter","_DSF7047acopy2_thumb.jpg",130,194,5);thumbnails[5297657]=new thumbnail(5297657,"296419","Wine","Ivor25_thumb.jpg",130,173,5);thumbnails[5297666]=new thumbnail(5297666,"297251","Edinburgh covered in snow.","_DSF7039_thumb.jpg",130,76,5);thumbnails[5297675]=new thumbnail(5297675,"297942","Book album.","_DSF9437_thumb.jpg",130,91,5);thumbnails[5297683]=new thumbnail(5297683,"296419","Party","DSCF2983b_thumb.jpg",130,87,5);thumbnails[5303539]=new thumbnail(5303539,"295980","Engaged to be Married","ivortl_thumb.jpg",130,163,5);thumbnails[5303550]=new thumbnail(5303550,"295980","By a Ruin","DSCF6134-copy_thumb.jpg",130,194,5);thumbnails[5332231]=new thumbnail(5332231,"295838","Thanks","Thanks_thumb.jpg",130,87,5);thumbnails[5332238]=new thumbnail(5332238,"295838","Thank you.","Thankyou_thumb.jpg",130,87,5);thumbnails[5334309]=new thumbnail(5334309,"295980","Doorway","Engagementphoto_thumb.jpg",130,98,5);thumbnails[5334576]=new thumbnail(5334576,"295838","Testimonial letter","test2-1_thumb.jpg",130,131,5);thumbnails[5355353]=new thumbnail(5355353,"328584","Looking back","DSCF6759a_thumb.jpg",130,194,5);thumbnails[5362945]=new thumbnail(5362945,"328584","Fettes College","ITLL54_thumb.jpg",130,163,5);thumbnails[5374891]=new thumbnail(5374891,"295980","Portrait","ITL50_thumb.jpg",130,194,5);thumbnails[5422402]=new thumbnail(5422402,"328584","Running Bride","ITLL63_thumb.jpg",130,77,5);thumbnails[5424863]=new thumbnail(5424863,"328584","Happy Couple","_DSF2762b-copy-3_710EE291-1D09-001F-997914029E928C5D_thumb.jpg",130,194,5);thumbnails[5424866]=new thumbnail(5424866,"295976","Kitchen","DSCF3181b_thumb.jpg",130,87,5);thumbnails[5425320]=new thumbnail(5425320,"295980","Engagement Portrait","ITL80b_thumb.jpg",130,194,5);thumbnails[5748009]=new thumbnail(5748009,"295952","Happy Easter","Easter_Eggs_thumb.jpg",130,87,5);thumbnails[5761879]=new thumbnail(5761879,"295976","Fine Dining","DSCF0759_thumb.jpg",130,87,5);thumbnails[5761887]=new thumbnail(5761887,"295976","Shower","DSCF0779_thumb.jpg",130,194,5);thumbnails[5784156]=new thumbnail(5784156,"327550","Professional Photography","DSCF6254_thumb.jpg",130,217,5);thumbnails[5784206]=new thumbnail(5784206,"327550","Spring in Edinburgh","_DSF7660_thumb.jpg",130,195,5);thumbnails[5784208]=new thumbnail(5784208,"327550","Lettuce","_DSF7651_thumb.jpg",130,195,5);thumbnails[5784225]=new thumbnail(5784225,"327550","Shadow on a Wall","_DSF2321a_thumb.jpg",130,217,5);thumbnails[5802760]=new thumbnail(5802760,"328584","Prestonfield House","ITL254_thumb.jpg",130,163,5);thumbnails[5905207]=new thumbnail(5905207,"328584","Wedding Day at Edinburgh Castle","Edinburgh_Wedding_photo_thumb.jpg",130,195,5);thumbnails[5928779]=new thumbnail(5928779,"297251","Edinburgh Blossom","Edinburgh_Blossom_thumb.jpg",130,87,5);thumbnails[5950013]=new thumbnail(5950013,"328584","Wedding Rings","3002_thumb.jpg",130,93,5);thumbnails[5970833]=new thumbnail(5970833,"297251","Edinburgh Landscape","Edinbugh_Landscape_thumb.jpg",130,87,5);thumbnails[6021822]=new thumbnail(6021822,"295838","Wedding Photography Testimonial","DSCF1365_thumb.jpg",130,87,5);thumbnails[6234146]=new thumbnail(6234146,"328584","Designer Wedding Dress","Designer_Dress_thumb.jpg",130,87,5);thumbnails[6385563]=new thumbnail(6385563,"327550","Bride and Butterflies","Bride_Butterflies_thumb.jpg",130,87,5);thumbnails[5254962]=new thumbnail(5254962,"295952","Bubbly","001_thumb.jpg",130,163,5);thumbnails[5249648]=new thumbnail(5249648,"","A Kiss.","13_thumb.jpg",130,173,5);thumbnails[5255533]=new thumbnail(5255533,"294940","Castle Wedding","DSCF8534a_thumb.jpg",130,195,5);thumbnails[5255568]=new thumbnail(5255568,"294940","Peebles wedding","DSCF8716_thumb.jpg",130,194,5);thumbnails[5255573]=new thumbnail(5255573,"294940","First Dance","DSCF9430a_thumb.jpg",130,195,5);thumbnails[5255578]=new thumbnail(5255578,"294940","Silver award winning men in Kilts","DSCF8539_thumb.jpg",130,104,5);thumbnails[5266241]=new thumbnail(5266241,"294940","Marriage Ceremony","DSCF1122a_thumb.jpg",130,195,5);thumbnails[5266254]=new thumbnail(5266254,"294940","Marquee","DSCF8248_thumb.jpg",130,50,5);thumbnails[5266262]=new thumbnail(5266262,"294940","First Kiss","DSCF8255_thumb.jpg",130,195,5);thumbnails[5266269]=new thumbnail(5266269,"294940","Pet Greeting","DSCF8384a_thumb.jpg",130,195,5);thumbnails[5266273]=new thumbnail(5266273,"294940","Castle reception","DSCF8390a_thumb.jpg",130,195,5);thumbnails[5266276]=new thumbnail(5266276,"294940","Car","DSCF8399a_thumb.jpg",130,195,5);thumbnails[5266281]=new thumbnail(5266281,"294940","Family","DSCF8573_thumb.jpg",130,130,5);thumbnails[5360551]=new thumbnail(5360551,"294940","Veil","4019809353_211a51d8e3-1_thumb.jpg",130,92,5);thumbnails[5361095]=new thumbnail(5361095,"294940","Pillars","4005036248_64ed1c0531_thumb.jpg",130,200,5);thumbnails[5362950]=new thumbnail(5362950,"294940","Image Retouching","Retouch_thumb.jpg",130,97,5);thumbnails[5441476]=new thumbnail(5441476,"294940","Group","DSCF0285_thumb.jpg",130,95,5);thumbnails[5520154]=new thumbnail(5520154,"294940","Kathy and Lachlan ","kathy_lachlan_thumb.jpg",130,98,5);thumbnails[5815037]=new thumbnail(5815037,"294940","Romantic Wedding","Dappled_Light_thumb.jpg",130,186,5);thumbnails[5815089]=new thumbnail(5815089,"294940","Alice and David","Alice__David_thumb.jpg",130,186,5);thumbnails[5815216]=new thumbnail(5815216,"294940","The Wedding Day Kiss","ITL36_thumb.jpg",130,186,5);thumbnails[5252505]=new thumbnail(5252505,"294940","Bride","_DSF690c3_thumb.jpg",130,163,5);thumbnails[5252514]=new thumbnail(5252514,"294940","Family Group","_DSF690c4_thumb.jpg",130,104,5);thumbnails[5252525]=new thumbnail(5252525,"294940","Bride and Groom","_DSF6901s_thumb.jpg",130,104,5);thumbnails[5280149]=new thumbnail(5280149,"294941","Love Under The Tree","DSCF5608-copy-2_thumb.jpg",130,87,5);thumbnails[5280345]=new thumbnail(5280345,"294941","Shelter.","DavidandMcKenna_thumb.jpg",130,194,5);thumbnails[5303528]=new thumbnail(5303528,"294941","Flowers","DSCF5339_thumb.jpg",130,223,5);thumbnails[5449740]=new thumbnail(5449740,"294941","A Piece of Cake","DSCF9693a_thumb.jpg",130,195,5);thumbnails[5249844]=new thumbnail(5249844,"294941","Bride.","1_thumb.jpg",130,173,5);thumbnails[5249840]=new thumbnail(5249840,"294941","Wedding Cake.","2_thumb.jpg",130,173,5);thumbnails[5249829]=new thumbnail(5249829,"294941","Bride And Mother.","3_thumb.jpg",130,173,5);thumbnails[5249820]=new thumbnail(5249820,"294941","The Bride.","4_thumb.jpg",130,195,5);thumbnails[5249692]=new thumbnail(5249692,"294941","Guests.","6_thumb.jpg",130,98,5);thumbnails[5249690]=new thumbnail(5249690,"294941","Bride Arrives.","7_thumb.jpg",130,195,5);thumbnails[5249687]=new thumbnail(5249687,"294941","Just Married.","8_thumb.jpg",130,104,5);thumbnails[5249683]=new thumbnail(5249683,"294941","A quiet kiss.","9_thumb.jpg",130,98,5);thumbnails[5249673]=new thumbnail(5249673,"294941","The car.","10_thumb.jpg",130,87,5);thumbnails[5249666]=new thumbnail(5249666,"294941","Bride and Groom arrive at their reception.","11_thumb.jpg",130,173,5);thumbnails[5249657]=new thumbnail(5249657,"294941","Kissing.","12_thumb.jpg",130,163,5);thumbnails[5249624]=new thumbnail(5249624,"294941","Wedding dress detail.","14_thumb.jpg",130,173,5);thumbnails[5249433]=new thumbnail(5249433,"294941","Laughing Guests.","152_thumb.jpg",130,173,5);thumbnails[5249283]=new thumbnail(5249283,"294941","Wedding hats.","161_thumb.jpg",130,98,5);thumbnails[5249073]=new thumbnail(5249073,"294941","First Dance.","171_thumb.jpg",130,87,5);var galleries=new Object();galleries[297942]=new gallery(297942,"5297675","Albums","gallery",[5297675]);galleries[327550]=new gallery(327550,"6385563,5784225,5784208,5784206,5784156","Creative Images","gallery",[5784156,5784206,5784208,5784225,6385563]);galleries[295980]=new gallery(295980,"5425320,5374891,5334309,5303550,5303539,5255525","Engagement portraits","gallery",[5255525,5303539,5303550,5334309,5374891,5425320]);galleries[296419]=new gallery(296419,"5297683,5297657,5266327,5266311","Food and Drink","gallery",[5266311,5266327,5297657,5297683]);galleries[297251]=new gallery(297251,"5970833,5928779,5297666,5284605","Landscape","gallery",[5284605,5297666,5928779,5970833]);galleries[295978]=new gallery(295978,"5280661,5255515,5255509","Portrait","gallery",[5255509,5255515,5280661]);galleries[295952]=new gallery(295952,"5748009,5255458,5255453,5255449,5254962","Product Photography","gallery",[5255449,5255453,5255458,5748009,5254962]);galleries[295976]=new gallery(295976,"5761887,5761879,5424866,5255501,5255496,5255484,5255471,5255465","Property","gallery",[5255465,5255471,5255484,5255496,5255501,5424866,5761879,5761887]);galleries[295838]=new gallery(295838,"6021822,5334576,5332238,5332231,5252556,5252551,5252549","Testimonials","gallery",[5252549,5252551,5252556,5332231,5332238,5334576,6021822]);galleries[328584]=new gallery(328584,"6234146,5950013,5905207,5802760,5424863,5422402,5362945,5355353,5274966,5274963","Wedding Photography in Edinburgh","gallery",[5255581,5266288,5266295,5274963,5274966,5355353,5362945,5422402,5424863,5802760,5905207,5950013,6234146]);galleries[294940]=new gallery(294940,"5815216,5815089,5815037,5520154,5441476,5362950,5361095,5360551,5266281,5266276","Past Weddings","gallery",[5255533,5255568,5255573,5255578,5266241,5266254,5266262,5266269,5266273,5266276,5266281,5360551,5361095,5362950,5441476,5520154,5815037,5815089,5815216,5252505,5252514,5252525]);galleries[294941]=new gallery(294941,"5449740,5303528,5280345,5280149,5249844,5249840,5249829,5249820,5249692,5249690","Weddings","gallery",[5280149,5280345,5303528,5449740,5249844,5249840,5249829,5249820,5249692,5249690,5249687,5249683,5249673,5249666,5249657,5249624,5249433,5249283,5249073]);var imageSets=new Object();imageSets[1]="5815089";imageSets[3]="6385563,6234146,6021822,5970833,5950013,5928779,5905207,5815216,5815089,5815037,5802760,5784225,5784208,5784206,5784156,5761887,5761879,5748009,5520154,5449740,5441476,5425320,5424866,5424863,5422402,5374891,5362950,5362945,5361095,5360551,5355353,5334576,5334309,5332238,5332231,5303550,5303539,5303528,5297683,5297675,5297666,5297657,5284605,5280661,5280345,5280149,5274966,5274963,5266327,5266311";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/ivorlart/images";break}switch(a){case 1:b="http://www1.clikpic.com/ivorlart/images";break}switch(a){case 2:b="http://admin.clikpic.com/ivorlart/images";break}switch(a){case 24:b="http://tpc15/clikpic/ivorlart/images";break}switch(a){case 4:b="http://www.clikchurch.com/ivorlart/images";break}switch(a){case 5:b="http://www2.clikpic.com/ivorlart/images";break}switch(a){case 22:b="http://tpc5/clikpic/ivorlart/images";break}switch(a){case 23:b="http://tpc10/clikpic/ivorlart/images";break}switch(a){case 25:b="http://tpc16/clikpic/ivorlart/images";break}switch(a){case 15:b="http://www3.clikpic.com/ivorlart/images";break}switch(a){case 18:b="http://www4.clikpic.com/ivorlart/images";break}switch(a){case 19:b="http://www5.clikpic.com/ivorlart/images";break}switch(a){case 31:b="http://www7.clikpic.com/ivorlart/images";break}switch(a){case 32:b="http://admin2.clikpic.com/ivorlart/images";break}switch(a){case 33:b="http://www8.clikpic.com/ivorlart/images";break}switch(a){case 34:b="http://www9.clikpic.com/ivorlart/images";break}switch(a){case 35:b="http://admin3.clikpic.com/ivorlart/images";break}switch(a){case 37:b="http://admin4.clikpic.com/ivorlart/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="Ivor Tetteh-Lartey 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;resizePhotoInfo();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+'")'})}}};