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[1219550]=new thumbnail(1219550,"87308","","Beecher Photo_thumb.jpg",130,110,1);thumbnails[1219220]=new thumbnail(1219220,"53856","Untitled 01-07","Splat1TP_thumb.jpg",130,134,1);thumbnails[1219216]=new thumbnail(1219216,"53856","Sam Jackson and John 03-07","18-03-07 Sam Jackson and John_thumb.jpg",130,130,1);thumbnails[919634]=new thumbnail(919634,"53853","Fraction - Digital Fusion","Fraction_I_06_thumb.jpg",130,126,1);thumbnails[1219179]=new thumbnail(1219179,"53852","Untitled 02/05/07","05-07 Sea Drip_thumb.jpg",130,130,1);thumbnails[1219219]=new thumbnail(1219219,"53856","Untitled 20-05-07","20-05-07 grey_thumb.jpg",130,128,1);thumbnails[701228]=new thumbnail(701228,"53856","Urban Habitat 2005","Urban_Habitat_10_05_thumb.jpg",130,130,1);thumbnails[701052]=new thumbnail(701052,"53856","Hypnogogic II 2006","Hypnogogic_II_2_06_thumb.jpg",130,130,1);thumbnails[701220]=new thumbnail(701220,"53856","Over the Edge I 2005","Over_the_Edge_I_07_05_thumb.jpg",130,129,1);thumbnails[701221]=new thumbnail(701221,"53856","ReGenesis 2004","ReGenesis_7_04_thumb.jpg",130,96,1);thumbnails[1219088]=new thumbnail(1219088,"53852","Untitled 01-06-07","01-06-07 Blue_thumb.jpg",130,130,1);thumbnails[1219202]=new thumbnail(1219202,"53852","Untitled 06-07","06-07 Bold_thumb.jpg",130,131,1);thumbnails[701218]=new thumbnail(701218,"53856","Night at the Opera 2002","Night_at_the_Opera_06_02_thumb.jpg",130,162,1);thumbnails[1219207]=new thumbnail(1219207,"53852","Untitled 07-07","07-07 Forensic_thumb.jpg",130,129,1);thumbnails[701227]=new thumbnail(701227,"53855","Snowdonia  ","Snowdonia_2_05_thumb.jpg",130,102,1);thumbnails[701217]=new thumbnail(701217,"53855","Lost in the Suburbs  ","Lost_in_the_Suburbs_4_05_thumb.jpg",130,157,1);thumbnails[701053]=new thumbnail(701053,"53856","Meditations - Zen V 2006","Meditations_Zen_V_10_06_thumb.jpg",130,128,1);thumbnails[701051]=new thumbnail(701051,"53856","Hyperbole V 2006","Hyperbole_V_10_06_thumb.jpg",130,131,1);thumbnails[1219173]=new thumbnail(1219173,"115065","A Man Sat Alone","04-07 Dark2_thumb.jpg",130,131,1);thumbnails[1712147]=new thumbnail(1712147,"115065","It Has Tainted Your Peace Already","Apocalypto_07-11-07_lo_res_thumb.jpg",130,130,1);thumbnails[1712272]=new thumbnail(1712272,"115065","Our Lands Were Savaged","Apocalypto_11-06-07_lo_res_thumb.jpg",130,130,1);thumbnails[1712273]=new thumbnail(1712273,"115065","To Seek A New Beginning","Apocalypto_23-06-07_lo_res_thumb.jpg",130,165,1);thumbnails[1712568]=new thumbnail(1712568,"123654","SOLD - To Rise Up Again into Life","Untitled_17-08-07_lo_res_thumb.jpg",130,103,1);thumbnails[1712571]=new thumbnail(1712571,"123654","SOLD - On the Flank of an Emerald Wave","Untitled_26-08-07_lo_res_thumb.jpg",130,129,1);thumbnails[1712567]=new thumbnail(1712567,"123654","SOLD -The Flame Mounts Again","Untitled_16-08-07_lo_res_thumb.jpg",130,104,1);thumbnails[1712572]=new thumbnail(1712572,"123654","SOLD - What Lie Must I Maintain","Untitled_30-07-07_lo_res_thumb.jpg",130,130,1);thumbnails[1712569]=new thumbnail(1712569,"123654","SOLD - Tis the Sea Made One with the Sun","Untitled_26-05-07_lo_res_thumb.jpg",130,130,1);thumbnails[701027]=new thumbnail(701027,"123654","Happiness, That None can Flee ","Capriccio_II_10_06_thumb.jpg",130,131,1);thumbnails[1712282]=new thumbnail(1712282,"123659","Harlequin","Harlequin_07_lo_res_thumb.jpg",130,130,1);thumbnails[1712284]=new thumbnail(1712284,"123659","Indian Summer of Her Beauty","Indian_Summer_of_Her_Beauty_07_lo_res_thumb.jpg",130,130,1);thumbnails[1712337]=new thumbnail(1712337,"123659","ON LOAN - Vindictive Peace","Untitled_12-05-07_lo_res_thumb.jpg",130,130,1);thumbnails[1711889]=new thumbnail(1711889,"123659","Un-named","Unamed_lo_res_thumb.jpg",130,173,1);thumbnails[1711886]=new thumbnail(1711886,"123659","Africa in the Mist","African _Mist_07_lo_res_thumb.jpg",130,173,1);thumbnails[701230]=new thumbnail(701230,"123659","Uriel","Uriel_7_04_thumb.jpg",130,173,1);thumbnails[1712279]=new thumbnail(1712279,"123655","SOLD - I Am Nature","I_AM_NATURE_07_thumb.jpg",130,130,1);thumbnails[1219182]=new thumbnail(1219182,"123655","SOLD - Vortex","05-07 Sperm_thumb.jpg",130,130,1);thumbnails[1219211]=new thumbnail(1219211,"123655","SOLD - River in TIme","10-03-07 Red Swirl_thumb.jpg",130,131,1);thumbnails[701050]=new thumbnail(701050,"123655","SOLD - Future Memories IV","Future-Memories_IV_2_06_thumb.jpg",130,130,1);thumbnails[701049]=new thumbnail(701049,"123655","SOLD - Future Memories II","Future-Memories_II_2_06_thumb.jpg",130,130,1);thumbnails[701054]=new thumbnail(701054,"123655","Meditations - Zen III","Meditation_Zen_III_10_06_thumb.jpg",130,131,1);thumbnails[701057]=new thumbnail(701057,"123655","SOLD - Meditations - Zen VII","Meditation_Zen_VII_11_06_thumb.jpg",130,130,1);thumbnails[701061]=new thumbnail(701061,"123655","SOLD - Transitions I ","Transitions_I_10_06_thumb.jpg",130,131,1);thumbnails[701062]=new thumbnail(701062,"123655","SOLD - Transitions III","Transitions_III_10_06_thumb.jpg",130,129,1);thumbnails[701060]=new thumbnail(701060,"123655","SOLD - Over the Edge III","Over_the_Edge_III_10_06_thumb.jpg",130,132,1);thumbnails[1711891]=new thumbnail(1711891,"115063","First Rail","First Rail_lo_res_thumb.jpg",130,176,1);thumbnails[1711890]=new thumbnail(1711890,"115064","Grounded","Grounded_lo_res_thumb.jpg",130,177,1);thumbnails[1711888]=new thumbnail(1711888,"115064","Morning Light","Morning_Light_lo_res_thumb.jpg",130,174,1);thumbnails[1711887]=new thumbnail(1711887,"115064","Finalé","Finale_lo_res_thumb.jpg",130,197,1);thumbnails[1219178]=new thumbnail(1219178,"124077","Impressions No 1","05-07 Lg Venice_thumb.jpg",130,132,1);thumbnails[1712338]=new thumbnail(1712338,"124077","Impressions No 2","Untitled_15-05-07_lo_res_thumb.jpg",130,130,1);thumbnails[1219172]=new thumbnail(1219172,"124077","Impressions No 3","04-07-07 Venice_thumb.jpg",130,130,1);thumbnails[1843880]=new thumbnail(1843880,"124077","Canals of Venice No 1","Untitled_08-02-07_lo_res1_thumb.jpg",130,161,1);thumbnails[1219214]=new thumbnail(1219214,"124077","SOLD - Canals of Venice No 2","11-02-07 Green_thumb.jpg",130,130,1);thumbnails[1712292]=new thumbnail(1712292,"123685","SOLD - Chained by a Futureless Defeat","Untitled_10-12-07_lo_res_thumb.jpg",130,130,1);thumbnails[701075]=new thumbnail(701075,"123685","Each In It's Turn","Each_in_Its_Turn_5_05_thumb.jpg",130,163,1);thumbnails[701166]=new thumbnail(701166,"123685","911","911_9_04_thumb.jpg",130,195,1);thumbnails[701236]=new thumbnail(701236,"123685","Weep for the Children","Weep_for_the_Children_3_05_thumb.jpg",130,128,1);thumbnails[919626]=new thumbnail(919626,"123685","Digital Fusion 17/02/07","Digital_Fusion_I_07_03_thumb.jpg",130,130,1);thumbnails[701222]=new thumbnail(701222,"123685","Sleeping Spirit","Sleeping_Spirit_1_05_thumb.jpg",130,81,1);thumbnails[700982]=new thumbnail(700982,"123685","Burned Hopes","Burned-Hopes_8_06_thumb.jpg",130,126,1);thumbnails[701048]=new thumbnail(701048,"123685","Dove of War","Dove_of_War_10_06_thumb.jpg",130,128,1);thumbnails[1712288]=new thumbnail(1712288,"127324","Time Without End","Untitled_05-07-07_lo_res_thumb.jpg",130,130,1);thumbnails[701045]=new thumbnail(701045,"127324","Diversions I  ","Diversions_I_11_06_thumb.jpg",130,128,1);thumbnails[701047]=new thumbnail(701047,"127324","Diversions III  ","Diversions_III_11_06_thumb.jpg",130,257,1);thumbnails[701082]=new thumbnail(701082,"127324","Intuitive Spark ","Intuitive_Spark_1_05_thumb.jpg",130,130,1);thumbnails[1712340]=new thumbnail(1712340,"127324","Untitled 15-07-07","Untitled_15-07-07_lo_res_thumb.jpg",130,130,1);thumbnails[1712285]=new thumbnail(1712285,"127324","Untitled 03-03-07","Untitled_03-03-07_lo_res_thumb.jpg",130,131,1);thumbnails[701080]=new thumbnail(701080,"127324","Hyperbole XXXVI ","Hyperbole_XXXVI_11_05_thumb.jpg",130,132,1);thumbnails[701079]=new thumbnail(701079,"127324","Hyperbole XXXIV","Hyperbole_XXXIV_11_05_thumb.jpg",130,130,1);thumbnails[701077]=new thumbnail(701077,"127324","Hyperbole XXXII","Hyperbole_XXXIII_11_05_thumb.jpg",130,130,1);thumbnails[701028]=new thumbnail(701028,"127324","SOLD - Cypernetics III ","Cybernetics_III_1_06_thumb.jpg",130,130,1);thumbnails[701043]=new thumbnail(701043,"127324","SOLD - Cypbernetics VII","Cybernetics_VII_10_06_thumb.jpg",130,131,1);thumbnails[701161]=new thumbnail(701161,"127324","Cypernetics V ","Cybernetics_V_10_06_thumb.jpg",130,93,1);thumbnails[701064]=new thumbnail(701064,"127324","SOLD - Dancing Donkey  ","Dancing_Donkey_3_05_thumb.jpg",130,157,1);thumbnails[701076]=new thumbnail(701076,"127324","Hyperbole I","Hyperbole_I_8_05_thumb.jpg",130,175,1);thumbnails[701213]=new thumbnail(701213,"127324","Jason and the Argonauts  ","Jason_and_the_Argonauts_5_0_thumb.jpg",130,198,1);thumbnails[919627]=new thumbnail(919627,"127324","White Matter of the Cerebrum","White_Matter_of_the_Cerebrum_06_thumb.jpg",130,130,1);var galleries=new Object();galleries[53854]=new gallery(53854,"","2005 Gallery","section161709",[]);galleries[53853]=new gallery(53853,"919634","2006 Gallery","section161709",[919634]);galleries[53852]=new gallery(53852,"1219207,1219202,1219179,1219088","2007 Gallery","section161709",[1219179,1219088,1219202,1219207]);galleries[87308]=new gallery(87308,"1219550","Artist's Statement","section119701",[1219550]);galleries[53855]=new gallery(53855,"701227,701217","Early Work","section161709",[701227,701217]);galleries[53856]=new gallery(53856,"1219220,1219219,1219216,701228,701220,701052","Sold Work ","section79150",[1219220,1219216,1219219,701228,701052,701220,701221,701218,701053,701051]);galleries[115065]=new gallery(115065,"1712273,1712272,1712147,1219173","Apocalypto","section79118",[1219173,1712147,1712272,1712273]);galleries[123654]=new gallery(123654,"1712569,1712568,1712567","What Soul Is Free of Treasons","section79118",[1712568,1712571,1712567,1712572,1712569,701027]);galleries[123659]=new gallery(123659,"1712337,1712284,1712282","What Do They Mean to Us","section79118",[1712282,1712284,1712337,1711889,1711886,701230]);galleries[123655]=new gallery(123655,"1712279,1219211,1219182,701062,701061,701060,701057,701054,701050,701049","Seeking the Tao","section79149",[1712279,1219182,1219211,701050,701049,701054,701057,701061,701062,701060]);galleries[115063]=new gallery(115063,"1711891","Horses in Action","section161709",[1711891]);galleries[115064]=new gallery(115064,"1711890","Portraits by Elizabeth Beecher","section161709",[1711890,1711888,1711887]);galleries[124077]=new gallery(124077,"1712338,1219214,1219178,1219172","Impressions","section79149",[1219178,1712338,1219172,1843880,1219214]);galleries[123685]=new gallery(123685,"1712292,919626,701236,701048","Man's Shame","section79149",[1712292,701075,701166,701236,919626,701222,700982,701048]);galleries[127324]=new gallery(127324,"1712340,1712288,919627,701082,701045,701043","If I Remember Rightly","section79149",[1712288,701045,701047,701082,1712340,1712285,701080,701079,701077,701028,701043,701161,701064,701076,701213,919627]);var imageSets=new Object();imageSets[1]="1712572,1712571,1712569,1712337,1712282,1712272,1712147";imageSets[2]="1712569,1712568,1712567,1712340,1712338,1712337,1712292,1712288,1712284,1712282,1712279,1711890,1219550,1219220,1219219,1219216,1219214,1219211,1219182,1219178,1219172,919627,919626,701236,701228,701220,701082,701062,701061,701060,701057,701054,701052,701050,701049,701048,701045,701043";imageSets[3]="1843880,1712572,1712571,1712569,1712568,1712567,1712340,1712338,1712337,1712292,1712288,1712285,1712284,1712282,1712279,1712273,1712272,1712147,1711891,1711890,1711889,1711888,1711887,1711886,1219550,1219220,1219219,1219216,1219214,1219211,1219207,1219202,1219182,1219179,1219178,1219173,1219172,1219088,919634,919627,919626,701236,701230,701228,701227,701222,701221,701220,701218,701217";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/artbybeecher/images";break}switch(a){case 1:b="http://www1.clikpic.com/artbybeecher/images";break}switch(a){case 2:b="http://admin.clikpic.com/artbybeecher/images";break}switch(a){case 24:b="http://tpc15/clikpic/artbybeecher/images";break}switch(a){case 4:b="http://www.clikchurch.com/artbybeecher/images";break}switch(a){case 5:b="http://www2.clikpic.com/artbybeecher/images";break}switch(a){case 22:b="http://tpc5/clikpic/artbybeecher/images";break}switch(a){case 23:b="http://tpc10/clikpic/artbybeecher/images";break}switch(a){case 25:b="http://tpc16/clikpic/artbybeecher/images";break}switch(a){case 15:b="http://www3.clikpic.com/artbybeecher/images";break}switch(a){case 18:b="http://www4.clikpic.com/artbybeecher/images";break}switch(a){case 19:b="http://www5.clikpic.com/artbybeecher/images";break}switch(a){case 31:b="http://www7.clikpic.com/artbybeecher/images";break}switch(a){case 32:b="http://admin2.clikpic.com/artbybeecher/images";break}switch(a){case 33:b="http://www8.clikpic.com/artbybeecher/images";break}switch(a){case 34:b="http://www9.clikpic.com/artbybeecher/images";break}switch(a){case 35:b="http://admin3.clikpic.com/artbybeecher/images";break}switch(a){case 37:b="http://admin4.clikpic.com/artbybeecher/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("section79118"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section79118.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("section79118"!=""){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="Art by Beecher: "+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+'")'})}}};