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[4360461]=new thumbnail(4360461,"256262","gathering to beat the retreat","WEb1_thumb.jpg",130,92,15);thumbnails[4360465]=new thumbnail(4360465,"256262","The Lord Mayor of Leeds 2009 - 2010 Councillor Judith Elliot & her Husband Mr Terry Elliot  Leeds had 240 Mayors until 1897 when, in her Jubilee Year, Queen Victoria declared that the mayor - or 'First Citizen' - should be called ‘Lord Mayor of Leeds’. Leeds was given city status in 1893.","Web2_thumb.jpg",130,184,15);thumbnails[4360471]=new thumbnail(4360471,"256262","Beating the retreat","web3_thumb.jpg",130,184,15);thumbnails[4360473]=new thumbnail(4360473,"256262","Beating the retreat","wEb4_thumb.jpg",130,92,15);thumbnails[4360474]=new thumbnail(4360474,"256262","Lillia Kopylova another Star of the BBC's Strictly Come Dancing","WEB5_thumb.jpg",130,184,15);thumbnails[4360478]=new thumbnail(4360478,"256262","Darren Bennett proffessional ballroom dancer star of the BBC's Strictly Come Dancing","Web6_thumb.jpg",130,184,15);thumbnails[4360481]=new thumbnail(4360481,"256262","Darren & Lillia ","Web7_thumb.jpg",130,92,15);thumbnails[3882938]=new thumbnail(3882938,"306510","This was the 2007 best in show","IMG_0093_copy_thumb.jpg",130,73,15);thumbnails[3882947]=new thumbnail(3882947,"306510","Rebel trike","IMG_0102_copy_copy_thumb.jpg",130,179,15);thumbnails[3882953]=new thumbnail(3882953,"306510","Do$ch","IMG_0470_copy_thumb.jpg",130,92,15);thumbnails[3882964]=new thumbnail(3882964,"306510","Hellboy","IMG_6481_copy_thumb.jpg",130,183,15);thumbnails[3882975]=new thumbnail(3882975,"306510","'H'","IMG_6241_copy2_thumb.jpg",130,184,15);thumbnails[3882980]=new thumbnail(3882980,"306510","The Rakiteers","IMG_6851_copy2_thumb.jpg",130,92,15);thumbnails[3882984]=new thumbnail(3882984,"306510","Sound PA crew","IMG_5785_copy2_thumb.jpg",130,92,15);thumbnails[3891053]=new thumbnail(3891053,"306513","Chantel McGregor","_MG_0102_copy2_thumb.jpg",130,184,15);thumbnails[3891071]=new thumbnail(3891071,"306513","Chantel McGregor","_MG_0157_copy2_thumb.jpg",130,92,15);thumbnails[3891083]=new thumbnail(3891083,"306513","Riff Raff","_MG_9764_copy2_thumb.jpg",130,184,15);thumbnails[3891088]=new thumbnail(3891088,"306513","Riff Raff","_MG_9918_copy2_thumb.jpg",130,184,15);thumbnails[4101832]=new thumbnail(4101832,"256266","","IMG_0008_copy_thumb.jpg",130,92,15);thumbnails[4101834]=new thumbnail(4101834,"256266","","IMG_0028_copy_thumb.jpg",130,92,15);thumbnails[4101835]=new thumbnail(4101835,"256266","","IMG_0030_copy_thumb.jpg",130,92,15);thumbnails[4101837]=new thumbnail(4101837,"256266","","IMG_0051_copy_thumb.jpg",130,92,15);thumbnails[5286350]=new thumbnail(5286350,"297352","","Web_1_thumb.jpg",130,184,15);thumbnails[5286353]=new thumbnail(5286353,"297352","","Web_2_thumb.jpg",130,184,15);thumbnails[5286354]=new thumbnail(5286354,"297352","","Web_3_C2AA816A-1D09-001F-99C2F1056BA6AAA0_thumb.jpg",130,184,15);thumbnails[5286355]=new thumbnail(5286355,"297352","","Web_4_thumb.jpg",130,184,15);thumbnails[5286356]=new thumbnail(5286356,"297352","","Web_5_thumb.jpg",130,184,15);thumbnails[5286357]=new thumbnail(5286357,"297352","","Web_6_thumb.jpg",130,184,15);thumbnails[5423855]=new thumbnail(5423855,"306536","","_MG_1107web_thumb.jpg",130,184,15);thumbnails[5423877]=new thumbnail(5423877,"306536","","_MG_1115web2_thumb.jpg",130,184,15);thumbnails[5423878]=new thumbnail(5423878,"306536","","_MG_1126web1_thumb.jpg",130,92,15);thumbnails[5423880]=new thumbnail(5423880,"306536","","_MG_1145web_thumb.jpg",130,184,15);thumbnails[5423883]=new thumbnail(5423883,"306536","","_MG_1314web_thumb.jpg",130,184,15);thumbnails[3882729]=new thumbnail(3882729,"235861","Andy Powell","IMG_1406_copy1_thumb.jpg",130,184,15);thumbnails[3904325]=new thumbnail(3904325,"237108","Band Poster","Top_Gun_poster_3_copy_copy_thumb.jpg",130,92,15);thumbnails[3882784]=new thumbnail(3882784,"235861","Muddy Manninen","IMG_1574_copy1_thumb.jpg",130,184,15);thumbnails[3904327]=new thumbnail(3904327,"237108","Poster 2","Top_Gun_Poster_4_copy_copy_thumb.jpg",130,92,15);thumbnails[3882815]=new thumbnail(3882815,"235861","Bob Skeat","IMG_1386_copy1_thumb.jpg",130,184,15);thumbnails[3904316]=new thumbnail(3904316,"237108","Big Girlie","Big_Girlie_copy_thumb.jpg",130,184,15);thumbnails[3882843]=new thumbnail(3882843,"235861","Andy Powell","IMG_1580_copy_thumb.jpg",130,92,15);thumbnails[3882901]=new thumbnail(3882901,"235861","Muddy manninen","IMG_1387_copy_thumb.jpg",130,92,15);thumbnails[3882851]=new thumbnail(3882851,"235861","Muddy Manninen","Wishbone_Ash0004_copy_thumb.jpg",130,184,15);thumbnails[5423471]=new thumbnail(5423471,"236593","","IMG_4545_web_thumb.jpg",130,184,15);thumbnails[5423459]=new thumbnail(5423459,"236593","","IMG_4519-copy3web_thumb.jpg",130,155,15);thumbnails[5423456]=new thumbnail(5423456,"236593","","IMG_4383_web_thumb.jpg",130,184,15);thumbnails[3883438]=new thumbnail(3883438,"236593","","Untitled-1_copy2_thumb.jpg",130,92,15);thumbnails[5423453]=new thumbnail(5423453,"236593","","IMG_4327_web_thumb.jpg",130,195,15);thumbnails[3883442]=new thumbnail(3883442,"236593","","IMG_4506_copy2_thumb.jpg",130,92,15);thumbnails[3883431]=new thumbnail(3883431,"236593","","IMG_4500_copy2_thumb.jpg",130,184,15);thumbnails[4587236]=new thumbnail(4587236,"236593","","Web21_thumb.jpg",130,92,15);thumbnails[4923234]=new thumbnail(4923234,"236593","","web_3_thumb.jpg",130,92,15);thumbnails[4923236]=new thumbnail(4923236,"236593","","web41_thumb.jpg",130,92,15);thumbnails[5011785]=new thumbnail(5011785,"236593","an example of editing at the clients request the original has been left in order to compare the two shots","Web8_thumb.jpg",130,92,15);thumbnails[4587234]=new thumbnail(4587234,"236593","","Web_thumb.jpg",130,92,15);thumbnails[3904347]=new thumbnail(3904347,"236598","","IMG_2070_copy_thumb.jpg",130,180,15);thumbnails[3904351]=new thumbnail(3904351,"236598","","IMG_2081_copy_thumb.jpg",130,150,15);thumbnails[3904376]=new thumbnail(3904376,"236598","","Soft_Focus_copy2_thumb.jpg",130,92,15);thumbnails[3895860]=new thumbnail(3895860,"236598","","IMG_3241_copy_thumb.jpg",130,184,15);thumbnails[3895924]=new thumbnail(3895924,"236598","","IMG_4660_copy2_thumb.jpg",130,184,15);thumbnails[3883459]=new thumbnail(3883459,"236598","","IMG_8617_copy_thumb.jpg",130,184,15);thumbnails[3883457]=new thumbnail(3883457,"236598","","Vicky_Dave__Kira_colour_copy_copy_thumb.jpg",130,92,15);thumbnails[3883453]=new thumbnail(3883453,"236598","","IMG_0067_copy2_thumb.jpg",130,87,15);thumbnails[3895925]=new thumbnail(3895925,"236598","","IMG_4696_copy2_thumb.jpg",130,184,15);thumbnails[5137179]=new thumbnail(5137179,"236600","Xolani","web_187EEED9-1D09-001F-99486F871CF6BB48_thumb.jpg",130,184,15);thumbnails[5137182]=new thumbnail(5137182,"236600","You're in the final!","Web2_18809093-1D09-001F-99D33D709F3B82C4_thumb.jpg",130,92,15);thumbnails[3883467]=new thumbnail(3883467,"236600","Graduation Day","Graduation_Day_copy_thumb.jpg",130,87,15);thumbnails[4180676]=new thumbnail(4180676,"306507","Docklands at night","Docklands_at_Night_copy_thumb.jpg",130,87,15);thumbnails[4180684]=new thumbnail(4180684,"306507","Powell & Hyde","Powell__Hyde_copy_thumb.jpg",130,92,15);thumbnails[4180696]=new thumbnail(4180696,"306507","New York New York Casino & Hotel","New_York_New_York_Las_Vegas_copy_thumb.jpg",130,87,15);thumbnails[4180724]=new thumbnail(4180724,"306507","Carmel-by-the Sea","Room_with_a_view_copy_thumb.jpg",130,92,15);thumbnails[4180732]=new thumbnail(4180732,"306507","Monument Valley","Monument_Valley_copy_thumb.jpg",130,92,15);thumbnails[5423876]=new thumbnail(5423876,"306507","Film Noir","Film_Noir_web_thumb.jpg",130,184,15);var galleries=new Object();galleries[270700]=new gallery(270700,"5423883,5423880,5423878,5423877,5423855,5137182,5137179,4360481,4360478,4360474","Corporate & Event Photography","gallery",[]);galleries[306513]=new gallery(306513,"3891088,3891083,3891071,3891053","East Leeds Lions ","gallery",[3891053,3891071,3891083,3891088]);galleries[306536]=new gallery(306536,"5423883,5423880,5423878,5423877,5423855","Grease","gallery",[5423855,5423877,5423878,5423880,5423883]);galleries[297352]=new gallery(297352,"5286357,5286356,5286355,5286354,5286353,5286350","Invisible Idols","gallery",[5286350,5286353,5286354,5286355,5286356,5286357]);galleries[256266]=new gallery(256266,"4101837,4101835,4101834,4101832","New Inn Awards 2006","gallery",[4101832,4101834,4101835,4101837]);galleries[256262]=new gallery(256262,"4360481,4360478,4360474,4360473,4360471,4360465,4360461","The Army Benevolent Fund","gallery",[4360461,4360465,4360471,4360473,4360474,4360478,4360481]);galleries[306510]=new gallery(306510,"3882984,3882980,3882975,3882964,3882953,3882947,3882938","The Yorkshire Rock & Bike Show","gallery",[3882938,3882947,3882953,3882964,3882975,3882980,3882984]);galleries[237108]=new gallery(237108,"3904327,3904325,3904316","Top Gun Promo shoot","gallery",[3904325,3904327,3904316]);galleries[235861]=new gallery(235861,"3882901,3882851,3882843,3882815,3882784,3882729","Wishbone Ash","gallery",[3882729,3882784,3882815,3882843,3882901,3882851]);galleries[235735]=new gallery(235735,"5423471,5423459,5423456,5423453,5011785,4923236,4923234,4587236,4587234,3904376","Wedding and portraiture","gallery",[]);galleries[235736]=new gallery(235736,"5286357,5286356,5286355,5286354,5286353,5286350,3904327,3904325,3904316,3891088","Music Photography","gallery",[]);galleries[236593]=new gallery(236593,"5423471,5423459,5423456,5423453,5011785,4923236,4923234,4587236,4587234,3883442","Wedding","gallery",[5423471,5423459,5423456,3883438,5423453,3883442,3883431,4587236,4923234,4923236,5011785,4587234]);galleries[236598]=new gallery(236598,"3904376,3904351,3904347,3895925,3895924,3895860,3883459,3883457,3883453","Portraiture","gallery",[3904347,3904351,3904376,3895860,3895924,3883459,3883457,3883453,3895925]);galleries[236600]=new gallery(236600,"5137182,5137179,3883467"," Event Photography","gallery",[5137179,5137182,3883467]);galleries[306507]=new gallery(306507,"4180732,4180684,4180676","Travel","gallery",[4180676,4180684,4180696,4180724,4180732,5423876]);var imageSets=new Object();imageSets[1]="5423883,5423880,5423878,5423877,5423855,5423471,5423459,5423456,5423453,5137179,5011785,4923236,4923234,4587236,4360478,4360474,4360471,4360465,4180732,4180724,4180696,4180684,4180676,3904376,3891083,3891071,3891053,3882980,3882964,3882784,3882729";imageSets[2]="4180732,4180684,4180676";imageSets[3]="5423883,5423880,5423878,5423877,5423876,5423855,5423471,5423459,5423456,5423453,5137179,5011785,4923236,4923234,4587236,4360478,4360474,4360471,4360465,4180732,4180724,4180696,4180684,4180676,3904376,3891083,3891071,3891053,3882980,3882964,3882784,3882729";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/paulmarshall/images";break}switch(a){case 1:b="http://www1.clikpic.com/paulmarshall/images";break}switch(a){case 2:b="http://admin.clikpic.com/paulmarshall/images";break}switch(a){case 4:b="http://www.clikchurch.com/paulmarshall/images";break}switch(a){case 5:b="http://www2.clikpic.com/paulmarshall/images";break}switch(a){case 15:b="http://www3.clikpic.com/paulmarshall/images";break}switch(a){case 21:b="http://www6.clikpic.com/paulmarshall/images";break}switch(a){case 18:b="http://www4.clikpic.com/paulmarshall/images";break}switch(a){case 19:b="http://www5.clikpic.com/paulmarshall/images";break}switch(a){case 22:b="http://tpc5/clikpic/paulmarshall/images";break}switch(a){case 23:b="http://tpc10/clikpic/paulmarshall/images";break}switch(a){case 24:b="http://tpc15/clikpic/paulmarshall/images";break}switch(a){case 25:b="http://tpc16/clikpic/paulmarshall/images";break}switch(a){case 31:b="http://www7.clikpic.com/paulmarshall/images";break}switch(a){case 32:b="http://admin2.clikpic.com/paulmarshall/images";break}switch(a){case 33:b="http://www8.clikpic.com/paulmarshall/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="Marshall Paul 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> 				&pound;"+(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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};