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[5368192]=new thumbnail(5368192,"","Untitled (horses)","1470_2_thumb.jpg",130,94,5);thumbnails[5844195]=new thumbnail(5844195,"","Untitled (no.14)","March20101_2F1C366D-24E8-5EC4-4F28A79F3E9FE654_thumb.jpg",130,96,5);thumbnails[6522944]=new thumbnail(6522944,"","","home_thumb.jpg",130,98,5);thumbnails[5369146]=new thumbnail(5369146,"","Untitled (no.15) (installation shot)","_MG_6450_3C0E501A-1D09-001F-99954B0CAF260079_thumb.jpg",130,87,5);thumbnails[5970889]=new thumbnail(5970889,"","'Tour Noir' ","final_image_thumb.jpg",130,87,5);thumbnails[5368839]=new thumbnail(5368839,"","Untitled (tree) (detail)","tree1_1_thumb.jpg",130,87,5);thumbnails[5368844]=new thumbnail(5368844,"","Drawing (no.1)","Untitled_drawing_no_2_thumb.jpg",130,69,5);thumbnails[5369168]=new thumbnail(5369168,"","Drawing (no.1)","23_thumb.jpg",130,87,5);thumbnails[5948255]=new thumbnail(5948255,"335521","","adaytodraw_web_thumb.jpg",92,130,5);thumbnails[6022216]=new thumbnail(6022216,"335521","","20100417_1148_thumb.jpg",130,87,5);thumbnails[6022177]=new thumbnail(6022177,"335521","","20100417_1006_thumb.jpg",130,87,5);thumbnails[6022179]=new thumbnail(6022179,"335521","","20100417_1022_thumb.jpg",130,87,5);thumbnails[6022200]=new thumbnail(6022200,"335521","","20100417_1137_thumb.jpg",130,87,5);thumbnails[6022180]=new thumbnail(6022180,"335521","","20100417_1023_thumb.jpg",130,87,5);thumbnails[6022181]=new thumbnail(6022181,"335521","","20100417_1033_thumb.jpg",130,87,5);thumbnails[6022182]=new thumbnail(6022182,"335521","","20100417_1043_thumb.jpg",130,87,5);thumbnails[6022218]=new thumbnail(6022218,"335521","","20100417_1146_thumb.jpg",130,87,5);thumbnails[6022194]=new thumbnail(6022194,"335521","","20100417_1098_thumb.jpg",130,87,5);thumbnails[6022186]=new thumbnail(6022186,"335521","","20100417_1049_thumb.jpg",130,87,5);thumbnails[6022187]=new thumbnail(6022187,"335521","","20100417_1061_thumb.jpg",130,87,5);thumbnails[6022188]=new thumbnail(6022188,"335521","","20100417_1072_thumb.jpg",130,87,5);thumbnails[6022201]=new thumbnail(6022201,"335521","","20100417_1140_1_thumb.jpg",130,87,5);thumbnails[6022193]=new thumbnail(6022193,"335521","","20100417_1093_thumb.jpg",130,87,5);thumbnails[6022196]=new thumbnail(6022196,"335521","","20100417_1106_thumb.jpg",130,87,5);thumbnails[6022198]=new thumbnail(6022198,"335521","","20100417_1122_thumb.jpg",130,87,5);thumbnails[6022203]=new thumbnail(6022203,"335521","","20100417_1153_1_thumb.jpg",130,87,5);thumbnails[6022204]=new thumbnail(6022204,"335521","","20100417_1162_thumb.jpg",130,87,5);thumbnails[6022205]=new thumbnail(6022205,"335521","","20100417_1172_thumb.jpg",130,87,5);thumbnails[6022208]=new thumbnail(6022208,"335521","","20100417_1195_thumb.jpg",130,87,5);thumbnails[6022236]=new thumbnail(6022236,"335521","","20100417_1205_1_thumb.jpg",130,87,5);thumbnails[6022207]=new thumbnail(6022207,"335521","","20100417_1208_1_thumb.jpg",130,87,5);thumbnails[6517006]=new thumbnail(6517006,"330708","Untitled (no.17)","Untitled_no1712_thumb.jpg",130,98,5);thumbnails[6522847]=new thumbnail(6522847,"330708","Untitled (no.16)","_MG_4300_1_thumb.jpg",130,96,5);thumbnails[6522874]=new thumbnail(6522874,"330708","Church (no.1)","Church_thumb.jpg",130,98,5);thumbnails[5365477]=new thumbnail(5365477,"300211","(poster/flyer)","eflyer3_thumb.jpg",92,130,5);thumbnails[6189772]=new thumbnail(6189772,"330708","Untitled (no.15)","20100620_1448_1_thumb.jpg",130,96,5);thumbnails[5978350]=new thumbnail(5978350,"330708","'Tour Noir'","_MG_2076_thumb.jpg",130,87,5);thumbnails[5365463]=new thumbnail(5365463,"300211","(Installation shot) Bristol Diving School","Untitled_Panorama11_thumb.jpg",130,54,5);thumbnails[5960380]=new thumbnail(5960380,"330708","Chalet (no.2)","_MG_1441_thumb.jpg",130,87,5);thumbnails[5365475]=new thumbnail(5365475,"300211","Jamie Bracken Lobb","Untitled_Panorama51_thumb.jpg",130,79,5);thumbnails[5365490]=new thumbnail(5365490,"300211","Anouk Mercier","_MG_6450_thumb.jpg",130,87,5);thumbnails[5971633]=new thumbnail(5971633,"330708","Chalet (no.2) Detail","2_thumb.jpg",130,96,5);thumbnails[5365479]=new thumbnail(5365479,"300211","Sophie Kern","_MG_6497_thumb.jpg",130,87,5);thumbnails[5713263]=new thumbnail(5713263,"330708","Untitled (no.14)","March2010_thumb.jpg",130,96,5);thumbnails[5365482]=new thumbnail(5365482,"300211","Craig Dixon","_MG_6490_thumb.jpg",130,87,5);thumbnails[5569558]=new thumbnail(5569558,"330708","Study 2","1494_thumb.jpg",130,94,5);thumbnails[5369157]=new thumbnail(5369157,"330708","Study 1","1504_thumb.jpg",130,100,5);thumbnails[5365500]=new thumbnail(5365500,"300211","Håkon Holm-Olsen","232_thumb.jpg",130,87,5);thumbnails[5368269]=new thumbnail(5368269,"330708","Chalet (no.1)","Chalet_no2_thumb.jpg",87,130,5);thumbnails[5365487]=new thumbnail(5365487,"300211","Adam Highton","_MG_6454_thumb.jpg",130,87,5);thumbnails[5365484]=new thumbnail(5365484,"300211","Andreas Samuelsson","_MG_6461_thumb.jpg",87,130,5);thumbnails[5368767]=new thumbnail(5368767,"302584","(poster/flyer)","what_would_become_of_us1_thumb.jpg",130,51,5);thumbnails[5368833]=new thumbnail(5368833,"330702","Untitled (no.12)","8_AD2D21A4-24E8-5EC4-4F8AC56C25D1282D_thumb.jpg",130,85,5);thumbnails[5957590]=new thumbnail(5957590,"330702","Untitled (no.11)","Untitled_no7_thumb.jpg",130,69,5);thumbnails[5987215]=new thumbnail(5987215,"330702","Untitled (no.11) (detail)","671_thumb.jpg",130,87,5);thumbnails[5957575]=new thumbnail(5957575,"330702","Untitled (no.10)","_MG_6864_AD315BF0-24E8-5EC4-4F8291B0FE6D5E1D_thumb.jpg",130,87,5);thumbnails[5368841]=new thumbnail(5368841,"330702","Untitled (no.9)","Untitled_no9_AD31C3F1-24E8-5EC4-4F2FB39D42FF2C3E_thumb.jpg",130,50,5);thumbnails[5369171]=new thumbnail(5369171,"330702","Untitled (no.9) detail","Untitled_no9_DETAIL_thumb.jpg",130,87,5);thumbnails[5987232]=new thumbnail(5987232,"330702","Untitled (no.9) (detail)","_G7E9945_thumb.jpg",130,87,5);thumbnails[5368817]=new thumbnail(5368817,"330702","Untiltled (no.4)","Untitled_no4_thumb.jpg",91,130,5);thumbnails[5713453]=new thumbnail(5713453,"330702","Untiltled (no.3)","Untitled_no3_thumb.jpg",92,130,5);thumbnails[5962431]=new thumbnail(5962431,"330702","Untitled (no.2)<br>\r\n","Untitled_no2_thumb.jpg",92,130,5);thumbnails[5799689]=new thumbnail(5799689,"330706","Horse I","1503_thumb.jpg",130,130,5);thumbnails[5368351]=new thumbnail(5368351,"330706","Untitled (horses)","1470_thumb.jpg",130,94,5);thumbnails[5854623]=new thumbnail(5854623,"330706","","_MG_1455_thumb.jpg",130,87,5);thumbnails[5368874]=new thumbnail(5368874,"330706","Miniature (no.1)","_MG_9171_1_thumb.jpg",130,87,5);thumbnails[5987348]=new thumbnail(5987348,"330709","Untitled (no.15) (installation view)","_MG_6450_AD36C7B8-24E8-5EC4-4F05BF87D0CB33C9_thumb.jpg",130,87,5);thumbnails[5369148]=new thumbnail(5369148,"330709","Untitled (no.15)","_MG_6451_1_thumb.jpg",130,87,5);thumbnails[5369153]=new thumbnail(5369153,"330709","Untitled (no.15) (detail)","_MG_6452_1_thumb.jpg",130,87,5);thumbnails[5369154]=new thumbnail(5369154,"330709","Untitled (no.15) (detail)","_MG_6453_thumb.jpg",130,87,5);thumbnails[5365592]=new thumbnail(5365592,"300594","Robert Chevasse","Untitled_washout12_thumb.jpg",130,87,5);thumbnails[5365692]=new thumbnail(5365692,"300594","(poster/flyer)","15_thumb.jpg",130,92,5);thumbnails[5365619]=new thumbnail(5365619,"300594","Oliver Sutherland","Nasa_Never_Said12_thumb.jpg",130,87,5);thumbnails[5365624]=new thumbnail(5365624,"300594","Oliver Sutherland","Nasa_Never_Said_21234_thumb.jpg",130,98,5);thumbnails[5365586]=new thumbnail(5365586,"300594","Patrick Lowry","Escalator_1123_thumb.jpg",130,87,5);thumbnails[5365668]=new thumbnail(5365668,"300594","Patrick Lowry","Escalator_31234_thumb.jpg",130,87,5);thumbnails[5365664]=new thumbnail(5365664,"300594","Patrick Lowry","Escalator5_thumb.jpg",87,130,5);thumbnails[5365649]=new thumbnail(5365649,"300594","Patrick Lowry","Escalator_2123_thumb.jpg",130,87,5);thumbnails[5365761]=new thumbnail(5365761,"300587","(poster/flyer)","the-show-20083_thumb.jpg",97,130,5);thumbnails[5366049]=new thumbnail(5366049,"300587","(installation shot)","_MG_6837_copy_thumb.jpg",130,87,5);thumbnails[5366071]=new thumbnail(5366071,"300587","(installation shot)","_MG_6842_thumb.jpg",130,87,5);thumbnails[5365768]=new thumbnail(5365768,"300587","(installation shot)","_MG_6836_thumb.jpg",130,87,5);thumbnails[5365765]=new thumbnail(5365765,"300587","Untitled (no.6)","_MG_6864_thumb.jpg",130,87,5);thumbnails[5367632]=new thumbnail(5367632,"300587","Untiled (no.7)","71_thumb.jpg",130,69,5);thumbnails[5366091]=new thumbnail(5366091,"300587","Untitled (no.7) (detail)","_MG_6832_thumb.jpg",130,87,5);thumbnails[5365189]=new thumbnail(5365189,"300214","(poster/flyer)","image4_thumb.jpg",65,130,5);thumbnails[5365192]=new thumbnail(5365192,"300214","Installation shot","_G7E99042_thumb.jpg",87,130,5);thumbnails[5365245]=new thumbnail(5365245,"300214","Untitled (installation shot)","8_thumb.jpg",130,87,5);thumbnails[5367522]=new thumbnail(5367522,"300214","Untitled","Untitled_no9_thumb.jpg",130,50,5);thumbnails[5366078]=new thumbnail(5366078,"300214","Untitled (detail)","Untitled_no9_DETAIL_copy_thumb.jpg",130,87,5);thumbnails[5365250]=new thumbnail(5365250,"300214","Untitled (detail)","9_thumb.jpg",130,87,5);thumbnails[5365855]=new thumbnail(5365855,"300214","Untitled (detail)","_G7E9945_copy_thumb.jpg",130,87,5);thumbnails[5365003]=new thumbnail(5365003,"301048","(poster/flyer)","POSTER2_thumb.JPG",130,92,5);thumbnails[5351651]=new thumbnail(5351651,"301048","Drawing no.1 (installation view)","02_thumb.jpg",130,87,5);thumbnails[5351721]=new thumbnail(5351721,"301048","Drawing no.1","121_thumb.jpg",130,68,5);var galleries=new Object();galleries[335521]=new gallery(335521,"5948255","A Day To Draw","section359003",[5948255,6022216,6022177,6022179,6022200,6022180,6022181,6022182,6022218,6022194,6022186,6022187,6022188,6022201,6022193,6022196,6022198,6022203,6022204,6022205,6022208,6022236,6022207]);galleries[300211]=new gallery(300211,"5365477","Friday 13th","section359003",[5365477,5365463,5365475,5365490,5365479,5365482,5365500,5365487,5365484]);galleries[330708]=new gallery(330708,"5713263","SERIES 1","gallery",[6517006,6522847,6522874,6189772,5978350,5960380,5971633,5713263,5569558,5369157,5368269]);galleries[302584]=new gallery(302584,"5368767","‘What would become of us, if we...","section359003",[5368767]);galleries[330702]=new gallery(330702,"5713453","SERIES 2","gallery",[5368833,5957590,5987215,5957575,5368841,5369171,5987232,5368817,5713453,5962431]);galleries[330706]=new gallery(330706,"5799689","SERIES 3","gallery",[5799689,5368351,5854623,5368874]);galleries[330709]=new gallery(330709,"5987348,5369154,5369153,5369148","SERIES 4","gallery",[5987348,5369148,5369153,5369154]);galleries[300594]=new gallery(300594,"5365692","Can we stay over tonight?","section359003",[5365592,5365692,5365619,5365624,5365586,5365668,5365664,5365649]);galleries[300587]=new gallery(300587,"5365761","The Show 2008","section359003",[5365761,5366049,5366071,5365768,5365765,5367632,5366091]);galleries[300214]=new gallery(300214,"5365189","When we build, let us think we build forever","section359003",[5365189,5365192,5365245,5367522,5366078,5365250,5365855]);galleries[301048]=new gallery(301048,"5365003","Dumbness/ Profundity","section359003",[5365003,5351651,5351721]);var imageSets=new Object();imageSets[1]="6522944";imageSets[2]="5948255,5799689,5713453,5713263,5368844,5365761,5365692,5365477,5365189,5365003";imageSets[3]="5368874,5368844,5368192";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/AnoukM/images";break}switch(a){case 1:b="http://www1.clikpic.com/AnoukM/images";break}switch(a){case 2:b="http://admin.clikpic.com/AnoukM/images";break}switch(a){case 24:b="http://tpc15/clikpic/AnoukM/images";break}switch(a){case 4:b="http://www.clikchurch.com/AnoukM/images";break}switch(a){case 5:b="http://www2.clikpic.com/AnoukM/images";break}switch(a){case 22:b="http://tpc5/clikpic/AnoukM/images";break}switch(a){case 23:b="http://tpc10/clikpic/AnoukM/images";break}switch(a){case 25:b="http://tpc16/clikpic/AnoukM/images";break}switch(a){case 15:b="http://www3.clikpic.com/AnoukM/images";break}switch(a){case 18:b="http://www4.clikpic.com/AnoukM/images";break}switch(a){case 19:b="http://www5.clikpic.com/AnoukM/images";break}switch(a){case 31:b="http://www7.clikpic.com/AnoukM/images";break}switch(a){case 32:b="http://admin2.clikpic.com/AnoukM/images";break}switch(a){case 33:b="http://www8.clikpic.com/AnoukM/images";break}switch(a){case 34:b="http://www9.clikpic.com/AnoukM/images";break}switch(a){case 35:b="http://admin3.clikpic.com/AnoukM/images";break}switch(a){case 37:b="http://admin4.clikpic.com/AnoukM/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="ANOUK MERCIER: "+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+'")'})}}};