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[5080629]=new thumbnail(5080629,"","","me-at-erewash09-low-res_thumb.jpg",130,98,1);thumbnails[5512287]=new thumbnail(5512287,"","","_MG_5040a_lowres_thumb.jpg",130,170,1);thumbnails[5512312]=new thumbnail(5512312,"","","Surface_Oct_09-1lowres_thumb.jpg",130,87,1);thumbnails[5542152]=new thumbnail(5542152,"239143","Run of trees next to the bonfire site.","Justine_2lowres_thumb.jpg",130,197,1);thumbnails[5867850]=new thumbnail(5867850,"331572","","_MG_6744lowres_thumb.jpg",130,177,1);thumbnails[5867851]=new thumbnail(5867851,"331572","","_MG_6747lowres_thumb.jpg",130,177,1);thumbnails[5867852]=new thumbnail(5867852,"331572","","_MG_6750lowres_thumb.jpg",130,177,1);thumbnails[5867853]=new thumbnail(5867853,"331572","","_MG_6754lowres_thumb.jpg",130,175,1);thumbnails[6001697]=new thumbnail(6001697,"320086","","_MG_7416lowres_thumb.jpg",130,176,1);thumbnails[6258547]=new thumbnail(6258547,"347981","","HMS_Drawings_May_2010_web12_thumb.jpg",130,98,1);thumbnails[6258580]=new thumbnail(6258580,"347981","","HMS_small_peices_may2010web_thumb.jpg",130,64,1);thumbnails[6258589]=new thumbnail(6258589,"347981","","IMG_7513_web_thumb.jpg",130,62,1);thumbnails[3943652]=new thumbnail(3943652,"239147","","_MG_4954web_thumb.jpg",130,163,1);thumbnails[3943650]=new thumbnail(3943650,"239147","","_MG_4951web_thumb.jpg",130,163,1);thumbnails[3943647]=new thumbnail(3943647,"239147","","_MG_4948web_thumb.jpg",130,163,1);thumbnails[3943662]=new thumbnail(3943662,"239147","","_MG_4963web_thumb.jpg",130,176,1);thumbnails[3943661]=new thumbnail(3943661,"239147","","_MG_4960web_thumb.jpg",130,175,1);thumbnails[3943665]=new thumbnail(3943665,"239147","","_MG_4969web_thumb.jpg",130,176,1);thumbnails[3943704]=new thumbnail(3943704,"239147","","_MG_4981web_thumb.jpg",130,183,1);thumbnails[4934513]=new thumbnail(4934513,"239147","","lowres5971_thumb.jpg",130,167,1);thumbnails[3943693]=new thumbnail(3943693,"239147","","_MG_4975web_thumb.jpg",130,98,1);thumbnails[3943834]=new thumbnail(3943834,"239147","","_MG_4972web_thumb.jpg",130,96,1);thumbnails[5649969]=new thumbnail(5649969,"320086","","_MG_6718_2_lowres_thumb.jpg",130,175,1);thumbnails[3943821]=new thumbnail(3943821,"239147","","IMG_4158web_thumb.jpg",130,88,1);thumbnails[5649971]=new thumbnail(5649971,"320086","","_MG_6721lowres_thumb.jpg",130,173,1);thumbnails[3943698]=new thumbnail(3943698,"239147","","_MG_4978web_thumb.jpg",130,92,1);thumbnails[5649972]=new thumbnail(5649972,"320086","","_MG_6723_lowres_thumb.jpg",130,174,1);thumbnails[5649976]=new thumbnail(5649976,"320086","","_MG_6727lowres_thumb.jpg",130,174,1);thumbnails[3943659]=new thumbnail(3943659,"239147","","_MG_4957web_thumb.jpg",130,105,1);thumbnails[5867810]=new thumbnail(5867810,"320086","","_MG_7031_2_lowres_thumb.jpg",130,168,1);thumbnails[4934526]=new thumbnail(4934526,"239147","","lowres5968_thumb.jpg",130,103,1);thumbnails[5867823]=new thumbnail(5867823,"320086","","_MG_7036_2_lowres_thumb.jpg",130,172,1);thumbnails[4934560]=new thumbnail(4934560,"239147","","lowres5965_thumb.jpg",130,101,1);thumbnails[5867826]=new thumbnail(5867826,"331572","","_MG_7038_lowres_thumb.jpg",130,173,1);thumbnails[6001673]=new thumbnail(6001673,"320086","","_MG_7426lowres_thumb.jpg",130,176,1);thumbnails[6001684]=new thumbnail(6001684,"320086","","_MG_7423lowres_thumb.jpg",130,176,1);thumbnails[6001693]=new thumbnail(6001693,"320086","","_MG_7420lowres_thumb.jpg",130,175,1);thumbnails[6001694]=new thumbnail(6001694,"320086","","_MG_7400_lowres_thumb.jpg",130,174,1);thumbnails[6001699]=new thumbnail(6001699,"320086","","_MG_7405lowres_thumb.jpg",130,176,1);thumbnails[6001702]=new thumbnail(6001702,"320086","","_MG_7407-lowres_thumb.jpg",130,176,1);thumbnails[6001704]=new thumbnail(6001704,"320086","","_MG_7414lowres_thumb.jpg",130,176,1);thumbnails[6001706]=new thumbnail(6001706,"320086","","_MG_7410lowres_thumb.jpg",130,173,1);thumbnails[5291029]=new thumbnail(5291029,"299471","Hidden Light.","Justine_1lowres_thumb.jpg",130,197,1);thumbnails[5291008]=new thumbnail(5291008,"239143","Hidden Light<br>\r\n","IMG_6230low_res_thumb.jpg",130,197,1);thumbnails[3943818]=new thumbnail(3943818,"239143","Near the canal bridge, next to the flooded top field. Sunset.","_MG_5000web_thumb.jpg",130,196,1);thumbnails[5510217]=new thumbnail(5510217,"239143","Orange low light.","Justine_4_low_res_thumb.jpg",130,197,1);thumbnails[5038897]=new thumbnail(5038897,"239143","Parkside entrance, turn right. Large puddles.","summer_2009_004low_res_thumb.jpg",130,197,1);thumbnails[5038940]=new thumbnail(5038940,"239143","Path near the shelter.","summer_2009_002for_web_thumb.jpg",130,196,1);thumbnails[5038937]=new thumbnail(5038937,"239143","Next to the tennis courts, before the small bridge.","lowres5959_thumb.jpg",130,195,1);thumbnails[3943814]=new thumbnail(3943814,"239143","Path alongside the tennis courts.","Justine_3lowres1_thumb.jpg",130,196,1);thumbnails[4934577]=new thumbnail(4934577,"239143","Parkside entrance, turn right, straight ahead.","lowres5963_thumb.jpg",130,195,1);thumbnails[4934580]=new thumbnail(4934580,"239143","Path alongside the bowling green, facing the mills.","lowres5960_thumb.jpg",130,196,1);thumbnails[4934588]=new thumbnail(4934588,"239143","Run of trees leading to Wilsthorpe Road. Now gone.","lowres5955_thumb.jpg",130,193,1);thumbnails[4934597]=new thumbnail(4934597,"239143","","lowres5951_thumb.jpg",130,176,1);thumbnails[4934604]=new thumbnail(4934604,"239143","","lowres5948_thumb.jpg",130,176,1);thumbnails[4934607]=new thumbnail(4934607,"239143","","lowres5946_thumb.jpg",130,175,1);thumbnails[4934610]=new thumbnail(4934610,"239143","","lowres5944_thumb.jpg",130,176,1);thumbnails[4934615]=new thumbnail(4934615,"239143","","lowres5_thumb.jpg",130,175,1);thumbnails[3943809]=new thumbnail(3943809,"239143","","_MG_4996web_thumb.jpg",130,179,1);thumbnails[3943807]=new thumbnail(3943807,"239143","","_MG_4993web_thumb.jpg",130,180,1);thumbnails[3943799]=new thumbnail(3943799,"239143","","_MG_4990web_thumb.jpg",130,176,1);thumbnails[3943706]=new thumbnail(3943706,"239143","","_MG_4987web_thumb.jpg",130,178,1);thumbnails[3943705]=new thumbnail(3943705,"239143","","_MG_4984web_thumb.jpg",130,178,1);thumbnails[3943663]=new thumbnail(3943663,"239143","","_MG_4966web_thumb.jpg",130,96,1);thumbnails[2950964]=new thumbnail(2950964,"182063","","justine14_thumb.jpg",130,88,1);thumbnails[2950968]=new thumbnail(2950968,"182063","","justine15_thumb.jpg",130,88,1);thumbnails[2950974]=new thumbnail(2950974,"182063","","justine16_thumb.jpg",130,89,1);thumbnails[2950978]=new thumbnail(2950978,"182063","","justine17_thumb.jpg",130,89,1);thumbnails[2950986]=new thumbnail(2950986,"182063","","justine18_thumb.jpg",130,87,1);thumbnails[2950990]=new thumbnail(2950990,"182063","","justine19_thumb.jpg",130,89,1);thumbnails[2950994]=new thumbnail(2950994,"182063","","justine20_thumb.jpg",130,88,1);thumbnails[2950999]=new thumbnail(2950999,"182063","","justine21_thumb.jpg",130,88,1);thumbnails[2951003]=new thumbnail(2951003,"182064","","justine23_thumb.jpg",130,100,1);thumbnails[2950956]=new thumbnail(2950956,"182064","","justine09a_thumb.jpg",130,97,1);thumbnails[2950959]=new thumbnail(2950959,"182064","","justine12a_thumb.jpg",130,97,1);thumbnails[2951009]=new thumbnail(2951009,"182064","","justine25_thumb.jpg",130,88,1);thumbnails[2950961]=new thumbnail(2950961,"182064","","justine13a_thumb.jpg",130,97,1);thumbnails[2950953]=new thumbnail(2950953,"182064","","justine08_thumb.jpg",130,176,1);thumbnails[2950958]=new thumbnail(2950958,"182064","","justine11a_thumb.jpg",130,174,1);thumbnails[2951022]=new thumbnail(2951022,"182200","","justine26_thumb.jpg",130,182,1);thumbnails[2951025]=new thumbnail(2951025,"182200","","justine27_thumb.jpg",130,184,1);thumbnails[2951029]=new thumbnail(2951029,"182200","","justine28a_thumb.jpg",130,178,1);thumbnails[2951033]=new thumbnail(2951033,"182200","","justine29a_thumb.jpg",130,172,1);var galleries=new Object();galleries[239145]=new gallery(239145,"2951033,2951029,2951025,2951022,2951009,2951003,2950999,2950994,2950990,2950986","2008","gallery",[]);galleries[239146]=new gallery(239146,"5542152,5510217,5291008,5038940,5038937,5038897,4934615,4934610,4934607,4934604","2009","gallery",[]);galleries[331571]=new gallery(331571,"6001706,6001704,6001702,6001699,6001697,6001694,6001693,6001684,6001673,5867853","2010","gallery",[]);galleries[331572]=new gallery(331572,"5867853,5867852,5867851,5867850,5867826","Car Park Series","gallery",[5867850,5867851,5867852,5867853,5867826]);galleries[239147]=new gallery(239147,"4934560,4934526,4934513,3943834,3943821,3943704,3943698,3943693,3943665,3943662","Day","gallery",[3943652,3943650,3943647,3943662,3943661,3943665,3943704,4934513,3943693,3943834,3943821,3943698,3943659,4934526,4934560]);galleries[320086]=new gallery(320086,"6001706,6001704,6001702,6001699,6001697,6001694,6001693,6001684,6001673,5867823","Drawings","gallery",[6001697,5649969,5649971,5649972,5649976,5867810,5867823,6001673,6001684,6001693,6001694,6001699,6001702,6001704,6001706]);galleries[347981]=new gallery(347981,"6258589,6258580,6258547","Exhibition Photos","section415367",[6258547,6258580,6258589]);galleries[299471]=new gallery(299471,"5291029","Featured","section357953",[5291029]);galleries[239143]=new gallery(239143,"5542152,5510217,5291008,5038940,5038937,5038897,4934615,4934610,4934607,4934604","Night","gallery",[5542152,5291008,3943818,5510217,5038897,5038940,5038937,3943814,4934577,4934580,4934588,4934597,4934604,4934607,4934610,4934615,3943809,3943807,3943799,3943706,3943705,3943663]);galleries[182201]=new gallery(182201,"","West Park","section241182",[]);galleries[182063]=new gallery(182063,"2950999,2950994,2950990,2950986,2950978,2950974,2950968,2950964","Paint & Pastel","gallery",[2950964,2950968,2950974,2950978,2950986,2950990,2950994,2950999]);galleries[182064]=new gallery(182064,"2951009,2951003,2950961,2950959,2950958,2950956,2950953","Paint","gallery",[2951003,2950956,2950959,2951009,2950961,2950953,2950958]);galleries[182200]=new gallery(182200,"2951033,2951029,2951025,2951022","Monochrome","gallery",[2951022,2951025,2951029,2951033]);var imageSets=new Object();imageSets[1]="5080629";imageSets[3]="6258589,6258580,6258547,6001706,6001704,6001702,6001699,6001697,6001694,6001693,6001684,6001673,5867853,5867852,5867851,5867850,5867826,5867823,5867810,5649976,5649972,5649971,5649969,5542152,5512312,5512287,5510217,5291029,5291008,5080629,5038940,5038937,5038897,4934615,4934610,4934607,4934604,4934597,4934588,4934580,4934577,4934560,4934526,4934513,3943834,3943821,3943818,3943814,3943809,3943807";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/justinenettleton/images";break}switch(a){case 1:b="http://www1.clikpic.com/justinenettleton/images";break}switch(a){case 2:b="http://admin.clikpic.com/justinenettleton/images";break}switch(a){case 24:b="http://tpc15/clikpic/justinenettleton/images";break}switch(a){case 4:b="http://www.clikchurch.com/justinenettleton/images";break}switch(a){case 5:b="http://www2.clikpic.com/justinenettleton/images";break}switch(a){case 22:b="http://tpc5/clikpic/justinenettleton/images";break}switch(a){case 23:b="http://tpc10/clikpic/justinenettleton/images";break}switch(a){case 25:b="http://tpc16/clikpic/justinenettleton/images";break}switch(a){case 15:b="http://www3.clikpic.com/justinenettleton/images";break}switch(a){case 18:b="http://www4.clikpic.com/justinenettleton/images";break}switch(a){case 19:b="http://www5.clikpic.com/justinenettleton/images";break}switch(a){case 31:b="http://www7.clikpic.com/justinenettleton/images";break}switch(a){case 32:b="http://admin2.clikpic.com/justinenettleton/images";break}switch(a){case 33:b="http://www8.clikpic.com/justinenettleton/images";break}switch(a){case 34:b="http://www9.clikpic.com/justinenettleton/images";break}switch(a){case 35:b="http://admin3.clikpic.com/justinenettleton/images";break}switch(a){case 37:b="http://admin4.clikpic.com/justinenettleton/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="Justine Nettleton : "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="JUSTINENETTLETON">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};