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[3508432]=new thumbnail(3508432,"214627","Best Projected Image","SoftleyWinner_thumb.jpg",130,94,32);thumbnails[3508436]=new thumbnail(3508436,"214627","4 of 4","Softley4of4_thumb.jpg",130,102,32);thumbnails[4843778]=new thumbnail(4843778,"181888","","tn_Dave_McLeavy_-_Magpie_Mine_-_Crushing_wheel_BW_thumb.jpg",130,92,32);thumbnails[4843788]=new thumbnail(4843788,"181888","","tn_Dave_McLeavy_-_Magpie_mine_-_man_up_ladder_thumb.jpg",130,173,32);thumbnails[4843794]=new thumbnail(4843794,"181888","","Tom_Walton_thumb.jpg",130,97,32);thumbnails[4925946]=new thumbnail(4925946,"181888","","3A_thumb.jpg",130,100,32);thumbnails[4925963]=new thumbnail(4925963,"181888","","FeedtheBirds_thumb.jpg",130,195,32);thumbnails[4925965]=new thumbnail(4925965,"181888","","CheeseGraterCarPark_thumb.jpg",130,87,32);thumbnails[4925970]=new thumbnail(4925970,"181888","","6734A_thumb.jpg",130,83,32);thumbnails[4926041]=new thumbnail(4926041,"181888","","6524A_thumb.jpg",130,162,32);thumbnails[5205072]=new thumbnail(5205072,"181888","Magpie Mine","FrankKent_LADDER_MAN_thumb.jpg",130,195,32);thumbnails[5226902]=new thumbnail(5226902,"181888","Portrait Session - 6 Dec 2009","Portrait4W_thumb.jpg",130,173,32);thumbnails[5676051]=new thumbnail(5676051,"321596","Helen Ensor, winner Newcomer (Harrison Camera Trophy)","1Ensor_thumb.jpg",130,197,32);thumbnails[5676055]=new thumbnail(5676055,"321596","2nd of five Helen's winning set for the Harrison Camera Necomer.","2Ensor_thumb.jpg",130,201,32);thumbnails[5676058]=new thumbnail(5676058,"321596","3rd of 5 Newcomer award","3Ensor_thumb.jpg",130,202,32);thumbnails[5676059]=new thumbnail(5676059,"321596","4 of 5 Newcomer award","4Ensor_thumb.jpg",130,184,32);thumbnails[5676060]=new thumbnail(5676060,"321596","5 of 5 winning entry for Newcomer","5Ensor_thumb.jpg",130,103,32);thumbnails[5676063]=new thumbnail(5676063,"321596","Winner of Print Photographer of the Year (Lawson Cup) Frank Kent","1Kent_thumb.jpg",130,95,32);thumbnails[5676064]=new thumbnail(5676064,"321596","2/4 Lawson Cup winning images","2Kent_thumb.jpg",130,143,32);thumbnails[5676067]=new thumbnail(5676067,"321596","3/4 Winning set for the Lawson Cup","3Kent_thumb.jpg",130,93,32);thumbnails[5676071]=new thumbnail(5676071,"321596","4 of 4 Lawson Cup winning set","4Kent_thumb.jpg",130,79,32);thumbnails[5676093]=new thumbnail(5676093,"321596","Best Colour Print - Jacobs Cup","1Lee_thumb.jpg",130,84,32);thumbnails[5676102]=new thumbnail(5676102,"321596","1 of 4 winning set of digital images (Jessops Cup)","034_thumb.jpg",130,92,32);thumbnails[5676116]=new thumbnail(5676116,"321596","2 of 4 winning digital images for ther Jessops Cup","035_thumb.jpg",130,87,32);thumbnails[5676118]=new thumbnail(5676118,"321596","3/4 digital images for the Jessops Cup","036_thumb.jpg",130,98,32);thumbnails[5676121]=new thumbnail(5676121,"321596","4/4 digital images for the Jessops Cup","038_thumb.jpg",130,173,32);thumbnails[5676122]=new thumbnail(5676122,"321596","Winner of Best Digital Image","040_thumb.jpg",130,173,32);thumbnails[3562114]=new thumbnail(3562114,"217828","4th of 4 for the best set.","4of4_thumb.jpg",130,195,32);thumbnails[2792024]=new thumbnail(2792024,"174220","","DavidSoftley2_thumb.jpg",130,179,32);thumbnails[2792034]=new thumbnail(2792034,"174220","","IanHood2_thumb.jpg",130,93,32);thumbnails[2792036]=new thumbnail(2792036,"174220","","IanHood3_thumb.jpg",130,86,32);thumbnails[2792068]=new thumbnail(2792068,"174220","","TomWalton1_thumb.jpg",130,193,32);thumbnails[2792083]=new thumbnail(2792083,"174220","","MichaelLee6_thumb.jpg",130,86,32);thumbnails[3508356]=new thumbnail(3508356,"174220","","N1600_thumb.jpg",130,87,32);thumbnails[3562157]=new thumbnail(3562157,"174220","","Amy2_thumb.jpg",130,87,32);thumbnails[3562175]=new thumbnail(3562175,"174220","Mono Print of the year 2009.","Monowinner1_thumb.jpg",130,81,32);thumbnails[4342441]=new thumbnail(4342441,"174220","","KatieMono_thumb.jpg",130,168,32);thumbnails[5290924]=new thumbnail(5290924,"174220","","8_thumb.jpg",130,194,32);thumbnails[5290930]=new thumbnail(5290930,"174220","","3_thumb.jpg",130,87,32);thumbnails[2792011]=new thumbnail(2792011,"174221","","AlexThomas1_thumb.jpg",130,202,32);thumbnails[2792012]=new thumbnail(2792012,"174221","","AlexThomas2_thumb.jpg",130,87,32);thumbnails[2792016]=new thumbnail(2792016,"174221","","DavidAdshead1_thumb.jpg",130,92,32);thumbnails[2792018]=new thumbnail(2792018,"174221","","DavidAdshead2_thumb.jpg",130,86,32);thumbnails[2792019]=new thumbnail(2792019,"174221","","DavidAdshead3_thumb.jpg",130,93,32);thumbnails[2792020]=new thumbnail(2792020,"174221","","DavidAdshead4_thumb.jpg",130,86,32);thumbnails[2792026]=new thumbnail(2792026,"174221","","DavidSoftley3_thumb.jpg",130,170,32);thumbnails[2792028]=new thumbnail(2792028,"174221","","DavidSoftley4_thumb.jpg",130,87,32);thumbnails[2792029]=new thumbnail(2792029,"174221","","FrankKent1_thumb.jpg",130,87,32);thumbnails[2792031]=new thumbnail(2792031,"174221","","FrankKent2_thumb.jpg",130,160,32);thumbnails[2792033]=new thumbnail(2792033,"174221","","IanHood1_thumb.jpg",130,203,32);thumbnails[2792040]=new thumbnail(2792040,"174221","","JimLucas3_thumb.jpg",130,73,32);thumbnails[2792041]=new thumbnail(2792041,"174221","","JimLucas_thumb.jpg",130,182,32);thumbnails[2792042]=new thumbnail(2792042,"174221","","JonCaley1_thumb.jpg",130,85,32);thumbnails[2792044]=new thumbnail(2792044,"174221","","JonCaley2_thumb.jpg",130,88,32);thumbnails[2792047]=new thumbnail(2792047,"174221","","KenHunter1_thumb.jpg",130,182,32);thumbnails[2792048]=new thumbnail(2792048,"174221","","KenHunter2_thumb.jpg",130,193,32);thumbnails[2792050]=new thumbnail(2792050,"174221","","MichaelBasford1_thumb.jpg",130,90,32);thumbnails[2792051]=new thumbnail(2792051,"174221","","MichaelBasford2_thumb.jpg",130,94,32);thumbnails[2792053]=new thumbnail(2792053,"174221","","MichaelLee1_thumb.jpg",130,87,32);thumbnails[2792054]=new thumbnail(2792054,"174221","","MichaelLee2_thumb.jpg",130,208,32);thumbnails[2792055]=new thumbnail(2792055,"174221","","MichaelLee3_thumb.jpg",130,81,32);thumbnails[2792056]=new thumbnail(2792056,"174221","","MichaelLee4_thumb.jpg",130,50,32);thumbnails[2792060]=new thumbnail(2792060,"174221","","NielNettleship3_thumb.jpg",130,83,32);thumbnails[2792064]=new thumbnail(2792064,"174221","","RussSmith3copy_thumb.jpg",130,92,32);thumbnails[2792065]=new thumbnail(2792065,"174221","","RussSmith_thumb.jpg",130,183,32);thumbnails[2792067]=new thumbnail(2792067,"174221","","SteveHarratt1_thumb.jpg",130,92,32);thumbnails[2792073]=new thumbnail(2792073,"174221","","DavidAdshead5_thumb.jpg",130,175,32);thumbnails[2792075]=new thumbnail(2792075,"174221","","DavidSoftley5_thumb.jpg",130,99,32);thumbnails[2792077]=new thumbnail(2792077,"174221","","IanHood5_thumb.jpg",130,189,32);thumbnails[2792078]=new thumbnail(2792078,"174221","","MichaelLee5_thumb.jpg",130,79,32);thumbnails[2792079]=new thumbnail(2792079,"174221","","DavidAdshead6_thumb.jpg",130,179,32);thumbnails[2792080]=new thumbnail(2792080,"174221","","DavidSoftley6_thumb.jpg",130,199,32);thumbnails[2792082]=new thumbnail(2792082,"174221","","IanHood6_thumb.jpg",130,185,32);thumbnails[3348479]=new thumbnail(3348479,"174221","","1_thumb.jpg",130,195,32);thumbnails[3348480]=new thumbnail(3348480,"174221","","2_thumb.jpg",130,87,32);thumbnails[3348489]=new thumbnail(3348489,"174221","","9_thumb.jpg",130,87,32);thumbnails[3508399]=new thumbnail(3508399,"174221","","neary7600_thumb.jpg",130,182,32);thumbnails[3508401]=new thumbnail(3508401,"174221","","neary8600_thumb.jpg",130,98,32);thumbnails[3508408]=new thumbnail(3508408,"174221","","neary12600_thumb.jpg",130,136,32);thumbnails[3562161]=new thumbnail(3562161,"174221","","BroohillMontage2_thumb.jpg",130,87,32);thumbnails[4342417]=new thumbnail(4342417,"174221","","Gypsy_thumb.jpg",130,172,32);thumbnails[4342419]=new thumbnail(4342419,"174221","","Holly1_thumb.jpg",130,196,32);thumbnails[4524907]=new thumbnail(4524907,"174221","","Insect_resized_thumb.jpg",130,133,32);thumbnails[5290917]=new thumbnail(5290917,"174221","","11_thumb.jpg",130,71,32);thumbnails[5290918]=new thumbnail(5290918,"174221","","21_thumb.jpg",130,98,32);thumbnails[5290919]=new thumbnail(5290919,"174221","","5_thumb.jpg",130,194,32);thumbnails[5290921]=new thumbnail(5290921,"174221","","91_thumb.jpg",130,85,32);thumbnails[3562291]=new thumbnail(3562291,"217841","","Hunter2CP_thumb.jpg",130,98,32);thumbnails[3562292]=new thumbnail(3562292,"217841","Newcomer of the Year","Hunter5CP_thumb.jpg",130,98,32);thumbnails[3562296]=new thumbnail(3562296,"217841","","Liddicott6CP_thumb.jpg",130,87,32);thumbnails[3562305]=new thumbnail(3562305,"217841","","Sykes4CP_thumb.jpg",130,87,32);thumbnails[3562309]=new thumbnail(3562309,"217841","","Lee2CP_thumb.jpg",130,195,32);thumbnails[3562312]=new thumbnail(3562312,"217841","","Lee1CP_thumb.jpg",130,87,32);thumbnails[3562314]=new thumbnail(3562314,"217841","","Sykes2CP_thumb.jpg",130,87,32);thumbnails[3562494]=new thumbnail(3562494,"217841","Helen was the runner-up in the Newcomer category.","Ensor1_thumb.jpg",130,137,32);thumbnails[3562498]=new thumbnail(3562498,"217841","","Ensor2_thumb.jpg",130,110,32);thumbnails[3562503]=new thumbnail(3562503,"217841","","Ensor3_thumb.jpg",130,166,32);thumbnails[3562518]=new thumbnail(3562518,"217841","This image closely resembles the winning Mono Print. It is a stunning image and helped Ken to be the Best Newcomer.","Hunter1_thumb.jpg",130,99,32);var galleries=new Object();galleries[321596]=new gallery(321596,"5676118,5676116,5676102,5676093,5676071,5676067,5676063,5676060","2010 Competition Winners","gallery",[5676051,5676055,5676058,5676059,5676060,5676063,5676064,5676067,5676071,5676093,5676102,5676116,5676118,5676121,5676122]);galleries[181888]=new gallery(181888,"4843794,4843778","Club Outings/Workshops","gallery",[4843778,4843788,4843794,4925946,4925963,4925965,4925970,4926041,5205072,5226902]);galleries[214627]=new gallery(214627,"3508432","Jessops Digital Photographer of the Year 2009","gallery",[3508432,3508436]);galleries[217828]=new gallery(217828,"3562114","The Lawson Print Photographer of the Year 2009","gallery",[3562114]);galleries[174220]=new gallery(174220,"2792034"," Monochrome (Inc Burton Shield Winner)","gallery",[2792024,2792034,2792036,2792068,2792083,3508356,3562157,3562175,4342441,5290924,5290930]);galleries[174221]=new gallery(174221,"5290921,5290918,3348480,2792016","Colour (Inc Jacob & Meadowhall Shield winners)","gallery",[2792011,2792012,2792016,2792018,2792019,2792020,2792026,2792028,2792029,2792031,2792033,2792040,2792041,2792042,2792044,2792047,2792048,2792050,2792051,2792053,2792054,2792055,2792056,2792060,2792064,2792065,2792067,2792073,2792075,2792077,2792078,2792079,2792080,2792082,3348479,3348480,3348489,3508399,3508401,3508408,3562161,4342417,4342419,4524907,5290917,5290918,5290919,5290921]);galleries[217841]=new gallery(217841,"3562292","Pot-Pourri","gallery",[3562291,3562292,3562296,3562305,3562309,3562312,3562314,3562494,3562498,3562503,3562518]);var imageSets=new Object();imageSets[1]="5676118,5676116,5676102,5676093,5676071,5676067,5676063,5676060,5290930,5290921,5290918,4843794,4843778,3562312,3562296,3562292,3562291,3562161,3508432,3348489,3348480,2792083,2792078,2792075,2792067,2792056,2792055,2792053,2792050,2792044,2792042,2792036,2792034,2792029,2792028,2792020,2792019,2792018,2792016,2792012";imageSets[2]="5676118,5676116,5676102,5676093,5676071,5676067,5676063,5676060,5290921,5290918,4843794,4843778,3562292,3508432,3348480,2792034,2792016";imageSets[3]="5676122,5676121,5676118,5676116,5676102,5676093,5676071,5676067,5676064,5676063,5676060,5676059,5676058,5676055,5676051,5290930,5290924,5290921,5290919,5290918,5290917,5226902,5205072,4926041,4925970,4925965,4925963,4925946,4843794,4843788,4843778,4524907,4342441,4342419,4342417,3562518,3562503,3562498,3562494,3562314,3562312,3562309,3562305,3562296,3562292,3562291,3562175,3562161,3562157,3562114";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/oldtom/images";break}switch(a){case 1:b="http://www1.clikpic.com/oldtom/images";break}switch(a){case 2:b="http://admin.clikpic.com/oldtom/images";break}switch(a){case 24:b="http://tpc15/clikpic/oldtom/images";break}switch(a){case 4:b="http://www.clikchurch.com/oldtom/images";break}switch(a){case 5:b="http://www2.clikpic.com/oldtom/images";break}switch(a){case 22:b="http://tpc5/clikpic/oldtom/images";break}switch(a){case 23:b="http://tpc10/clikpic/oldtom/images";break}switch(a){case 25:b="http://tpc16/clikpic/oldtom/images";break}switch(a){case 15:b="http://www3.clikpic.com/oldtom/images";break}switch(a){case 18:b="http://www4.clikpic.com/oldtom/images";break}switch(a){case 19:b="http://www5.clikpic.com/oldtom/images";break}switch(a){case 31:b="http://www7.clikpic.com/oldtom/images";break}switch(a){case 32:b="http://admin2.clikpic.com/oldtom/images";break}switch(a){case 33:b="http://www8.clikpic.com/oldtom/images";break}switch(a){case 34:b="http://www9.clikpic.com/oldtom/images";break}switch(a){case 35:b="http://admin3.clikpic.com/oldtom/images";break}switch(a){case 37:b="http://admin4.clikpic.com/oldtom/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="South Yorkshire Police Camera Club: "+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+'")'})}}};