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[3890533]=new thumbnail(3890533,"164972","","IMG_70401_thumb.jpg",130,87,5);thumbnails[3892500]=new thumbnail(3892500,"164972","","IMG_24822_thumb.jpg",130,87,5);thumbnails[3892498]=new thumbnail(3892498,"164972","","IMG_23961_thumb.jpg",130,54,5);thumbnails[3890475]=new thumbnail(3890475,"164972","","IMG_8177bw_24x201_thumb.jpg",130,108,5);thumbnails[3892489]=new thumbnail(3892489,"164972","","IMG_22711_thumb.jpg",130,87,5);thumbnails[3890455]=new thumbnail(3890455,"164972","","IMG_70651_thumb.jpg",130,87,5);thumbnails[3890433]=new thumbnail(3890433,"164972","","IMG_3075bw1_thumb.jpg",130,195,5);thumbnails[3890439]=new thumbnail(3890439,"164972","","IMG_49011_thumb.jpg",130,195,5);thumbnails[3890440]=new thumbnail(3890440,"164972","","IMG_51931_thumb.jpg",130,195,5);thumbnails[3890449]=new thumbnail(3890449,"164972","","IMG_64431_thumb.jpg",130,195,5);thumbnails[3890534]=new thumbnail(3890534,"164972","","IMG_72531_thumb.jpg",130,195,5);thumbnails[3890519]=new thumbnail(3890519,"164972","","IMG_51251_thumb.jpg",130,195,5);thumbnails[3890448]=new thumbnail(3890448,"164972","","IMG_6335_Ella_Whitewood_7x51_thumb.jpg",130,195,5);thumbnails[3890507]=new thumbnail(3890507,"164972","","IMG_2636_thumb.jpg",130,195,5);thumbnails[3890527]=new thumbnail(3890527,"164972","","IMG_58091_thumb.jpg",130,195,5);thumbnails[3890524]=new thumbnail(3890524,"164972","","IMG_5370RT1_thumb.jpg",130,87,5);thumbnails[3890458]=new thumbnail(3890458,"164972","","IMG_7328_10x81_thumb.jpg",130,104,5);thumbnails[3890462]=new thumbnail(3890462,"164972","","IMG_7443_10x8_bw1_thumb.jpg",130,87,5);thumbnails[3890473]=new thumbnail(3890473,"164972","","IMG_78481_thumb.jpg",130,87,5);thumbnails[3892559]=new thumbnail(3892559,"164972","","IMG_74001_thumb.jpg",130,87,5);thumbnails[3892483]=new thumbnail(3892483,"164972","","IMG_2580_9pt2_x_9pt212_thumb.jpg",130,130,5);thumbnails[3890529]=new thumbnail(3890529,"164972","","IMG_62571_thumb.jpg",130,87,5);thumbnails[3892486]=new thumbnail(3892486,"164972","","IMG_5443RT3_thumb.jpg",130,130,5);thumbnails[3890530]=new thumbnail(3890530,"164972","","IMG_64301_thumb.jpg",130,87,5);thumbnails[3893025]=new thumbnail(3893025,"164972","","IMG_4315_thumb.jpg",130,87,5);thumbnails[3890531]=new thumbnail(3890531,"164972","","IMG_68012_thumb.jpg",130,104,5);thumbnails[3890404]=new thumbnail(3890404,"164972","","IMG_1427bw2_thumb.jpg",130,54,5);thumbnails[3890540]=new thumbnail(3890540,"164972","","IMG_78351_thumb.jpg",130,87,5);thumbnails[3892564]=new thumbnail(3892564,"164972","","IMG_5485_thumb.jpg",130,87,5);thumbnails[3890542]=new thumbnail(3890542,"164972","","IMG_7969rt2_thumb.jpg",130,87,5);thumbnails[3890414]=new thumbnail(3890414,"178632","","IMG_2134rt1_thumb.jpg",130,182,5);thumbnails[3890447]=new thumbnail(3890447,"178632","","IMG_60341_thumb.jpg",130,195,5);thumbnails[3891913]=new thumbnail(3891913,"178632","","IMG_98382_thumb.jpg",130,195,5);thumbnails[3890386]=new thumbnail(3890386,"178632","","IMG_0155rt3_thumb.jpg",130,87,5);thumbnails[3890399]=new thumbnail(3890399,"178632","","IMG_04262_thumb.jpg",130,87,5);thumbnails[3890412]=new thumbnail(3890412,"178632","","IMG_18951_thumb.jpg",130,87,5);thumbnails[3890502]=new thumbnail(3890502,"178632","","IMG_20402_thumb.jpg",130,195,5);thumbnails[3890528]=new thumbnail(3890528,"178632","","IMG_5916rt_thumb.jpg",130,195,5);thumbnails[3891908]=new thumbnail(3891908,"178632","","IMG_97982_thumb.jpg",130,195,5);thumbnails[3890497]=new thumbnail(3890497,"178632","","IMG_04901_thumb.jpg",130,195,5);thumbnails[3890496]=new thumbnail(3890496,"178632","","IMG_03961_thumb.jpg",130,195,5);thumbnails[3890492]=new thumbnail(3890492,"178632","","IMG_01414_thumb.jpg",130,195,5);thumbnails[3890488]=new thumbnail(3890488,"178632","","IMG_99961_thumb.jpg",130,87,5);thumbnails[3890401]=new thumbnail(3890401,"178632","","IMG_0661rt2_thumb.jpg",130,87,5);thumbnails[3892557]=new thumbnail(3892557,"178632","","IMG_0238_graf12_thumb.jpg",130,87,5);thumbnails[3890446]=new thumbnail(3890446,"178632","","IMG_5906rt1_thumb.jpg",130,87,5);thumbnails[3890431]=new thumbnail(3890431,"235870","","IMG_29691_thumb.jpg",130,195,5);thumbnails[3890434]=new thumbnail(3890434,"235870","","IMG_30921_thumb.jpg",130,195,5);thumbnails[3890452]=new thumbnail(3890452,"235870","","IMG_6943_thumb.jpg",130,195,5);thumbnails[3890510]=new thumbnail(3890510,"235870","","IMG_29581_thumb.jpg",130,195,5);thumbnails[3890512]=new thumbnail(3890512,"235870","","IMG_30821_thumb.jpg",130,195,5);thumbnails[3890445]=new thumbnail(3890445,"235870","","IMG_5729rt1_thumb.jpg",130,195,5);thumbnails[3890514]=new thumbnail(3890514,"235870","","IMG_31621_thumb.jpg",130,195,5);thumbnails[3890526]=new thumbnail(3890526,"235870","","IMG_56541_thumb.jpg",130,87,5);thumbnails[3890499]=new thumbnail(3890499,"164973","","IMG_15011_thumb.jpg",130,195,5);thumbnails[3890428]=new thumbnail(3890428,"164973","","IMG_2872p1_thumb.jpg",130,195,5);thumbnails[3890537]=new thumbnail(3890537,"164973","","IMG_74431_thumb.jpg",130,195,5);thumbnails[3890547]=new thumbnail(3890547,"164973","","IMG_94752_thumb.jpg",130,87,5);thumbnails[3890426]=new thumbnail(3890426,"164973","","IMG_2603a1_thumb.jpg",130,93,5);thumbnails[3890429]=new thumbnail(3890429,"164973","","IMG_29431_thumb.jpg",130,87,5);thumbnails[3890494]=new thumbnail(3890494,"164973","","IMG_03293_thumb.jpg",130,182,5);thumbnails[3890508]=new thumbnail(3890508,"164973","","IMG_2749_bw1_thumb.jpg",130,195,5);thumbnails[3890383]=new thumbnail(3890383,"164973","","David_and_Nathalie_wedding_and_others_09612345678910111213141516_thumb.jpg",130,195,5);thumbnails[3890427]=new thumbnail(3890427,"164973","","IMG_26561_thumb.jpg",130,195,5);thumbnails[3890538]=new thumbnail(3890538,"164973","","IMG_76731_thumb.jpg",130,195,5);thumbnails[3890424]=new thumbnail(3890424,"164973","","IMG_16482_thumb.jpg",130,195,5);thumbnails[3890500]=new thumbnail(3890500,"164973","","IMG_15981_thumb.jpg",130,93,5);thumbnails[3890513]=new thumbnail(3890513,"164973","","IMG_31431_thumb.jpg",130,87,5);thumbnails[3890385]=new thumbnail(3890385,"164973","","IMG_01332_thumb.jpg",130,87,5);thumbnails[3890495]=new thumbnail(3890495,"164973","","IMG_03331_thumb.jpg",130,195,5);thumbnails[3890464]=new thumbnail(3890464,"164973","","IMG_7588bw11_thumb.jpg",130,195,5);thumbnails[3890470]=new thumbnail(3890470,"164973","","IMG_7693a_24x20_inches1_thumb.jpg",130,156,5);thumbnails[3890391]=new thumbnail(3890391,"164973","","IMG_02844_thumb.jpg",130,195,5);thumbnails[3890501]=new thumbnail(3890501,"164973","","IMG_18011_thumb.jpg",130,195,5);thumbnails[3890482]=new thumbnail(3890482,"164973","","IMG_95271_thumb.jpg",130,195,5);thumbnails[3890438]=new thumbnail(3890438,"164973","","IMG_36781_thumb.jpg",130,87,5);thumbnails[3890490]=new thumbnail(3890490,"164973","","IMG_00818_thumb.jpg",130,87,5);thumbnails[3890437]=new thumbnail(3890437,"164973","","IMG_3267_thumb.jpg",130,87,5);thumbnails[3890394]=new thumbnail(3890394,"164973","","IMG_03613_thumb.jpg",130,87,5);thumbnails[3890480]=new thumbnail(3890480,"164973","","IMG_94091_thumb.jpg",130,87,5);thumbnails[3890392]=new thumbnail(3890392,"164973","","IMG_03302_thumb.jpg",130,87,5);thumbnails[3890553]=new thumbnail(3890553,"164973","","IMG_99691_thumb.jpg",130,195,5);thumbnails[3890406]=new thumbnail(3890406,"164973","","IMG_15213_thumb.jpg",130,195,5);thumbnails[3890546]=new thumbnail(3890546,"164973","","IMG_94032_thumb.jpg",130,87,5);thumbnails[3890548]=new thumbnail(3890548,"164973","","IMG_97542_thumb.jpg",130,87,5);thumbnails[3890416]=new thumbnail(3890416,"235565","","IMG_22501_thumb.jpg",130,195,5);thumbnails[3890436]=new thumbnail(3890436,"235565","","IMG_31801_thumb.jpg",130,195,5);thumbnails[3890503]=new thumbnail(3890503,"235565","","IMG_22261_thumb.jpg",130,195,5);thumbnails[3890518]=new thumbnail(3890518,"235565","","IMG_42082_thumb.jpg",130,87,5);thumbnails[3890435]=new thumbnail(3890435,"235565","","IMG_31561_thumb.jpg",130,87,5);thumbnails[3890477]=new thumbnail(3890477,"235565","","IMG_93121_thumb.jpg",130,87,5);thumbnails[3890516]=new thumbnail(3890516,"235565","","IMG_32021_thumb.jpg",130,195,5);thumbnails[3890544]=new thumbnail(3890544,"235565","","IMG_90682_thumb.jpg",130,195,5);thumbnails[3890517]=new thumbnail(3890517,"235565","","IMG_36446_thumb.jpg",130,195,5);thumbnails[3890511]=new thumbnail(3890511,"235565","","IMG_29742_thumb.jpg",130,195,5);thumbnails[3890509]=new thumbnail(3890509,"235565","","IMG_29101_thumb.jpg",130,87,5);thumbnails[3890520]=new thumbnail(3890520,"236165","","IMG_5275_thumb.jpg",130,87,5);thumbnails[3890443]=new thumbnail(3890443,"236165","","IMG_52941_thumb.jpg",130,87,5);var galleries=new Object();galleries[164972]=new gallery(164972,"3890448","The Studio","gallery",[3890533,3892500,3892498,3890475,3892489,3890455,3890433,3890439,3890440,3890449,3890534,3890519,3890448,3890507,3890527,3890524,3890458,3890462,3890473,3892559,3892483,3890529,3892486,3890530,3893025,3890531,3890404,3890540,3892564,3890542]);galleries[178632]=new gallery(178632,"3890528","The Music Industry","gallery",[3890414,3890447,3891913,3890386,3890399,3890412,3890502,3890528,3891908,3890497,3890496,3890492,3890488,3890401,3892557,3890446]);galleries[235870]=new gallery(235870,"3890445","Projects","gallery",[3890431,3890434,3890452,3890510,3890512,3890445,3890514,3890526]);galleries[164973]=new gallery(164973,"3890429","Weddings","gallery",[3890499,3890428,3890537,3890547,3890426,3890429,3890494,3890508,3890383,3890427,3890538,3890424,3890500,3890513,3890385,3890495,3890464,3890470,3890391,3890501,3890482,3890438,3890490,3890437,3890394,3890480,3890392,3890553,3890406,3890546,3890548]);galleries[235565]=new gallery(235565,"3890509,3890477,3890435","On Location","gallery",[3890416,3890436,3890503,3890518,3890435,3890477,3890516,3890544,3890517,3890511,3890509]);galleries[236165]=new gallery(236165,"3890520,3890443","Schools and Nurseries","gallery",[3890520,3890443]);var imageSets=new Object();imageSets[1]="3893025,3892564,3892559,3892557,3892500,3892498,3892489,3892486,3892483,3891913,3891908,3890547,3890544,3890538,3890537,3890534,3890533,3890531,3890529,3890528,3890527,3890526,3890524,3890519,3890517,3890516,3890511,3890509,3890508,3890507,3890502,3890501,3890500,3890496,3890495,3890494,3890492,3890488,3890482,3890477,3890475,3890473,3890470,3890464,3890458,3890455,3890449,3890448,3890447,3890446,3890445,3890440,3890439,3890438,3890435,3890433,3890429,3890428,3890427,3890424,3890412,3890399,3890386,3890383";imageSets[2]="3890528,3890509,3890477,3890448,3890445,3890435,3890429";imageSets[3]="3893025,3892564,3892559,3892557,3892500,3892498,3892489,3892486,3892483,3891913,3891908,3890553,3890548,3890547,3890546,3890544,3890542,3890540,3890538,3890537,3890534,3890533,3890531,3890530,3890529,3890528,3890527,3890526,3890524,3890520,3890519,3890518,3890517,3890516,3890514,3890513,3890512,3890511,3890510,3890509,3890508,3890507,3890503,3890502,3890501,3890500,3890499,3890497,3890496,3890495";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/kwhitewood/images";break}switch(a){case 1:b="http://www1.clikpic.com/kwhitewood/images";break}switch(a){case 2:b="http://admin.clikpic.com/kwhitewood/images";break}switch(a){case 24:b="http://tpc15/clikpic/kwhitewood/images";break}switch(a){case 4:b="http://www.clikchurch.com/kwhitewood/images";break}switch(a){case 5:b="http://www2.clikpic.com/kwhitewood/images";break}switch(a){case 22:b="http://tpc5/clikpic/kwhitewood/images";break}switch(a){case 23:b="http://tpc10/clikpic/kwhitewood/images";break}switch(a){case 25:b="http://tpc16/clikpic/kwhitewood/images";break}switch(a){case 15:b="http://www3.clikpic.com/kwhitewood/images";break}switch(a){case 18:b="http://www4.clikpic.com/kwhitewood/images";break}switch(a){case 19:b="http://www5.clikpic.com/kwhitewood/images";break}switch(a){case 31:b="http://www7.clikpic.com/kwhitewood/images";break}switch(a){case 32:b="http://admin2.clikpic.com/kwhitewood/images";break}switch(a){case 33:b="http://www8.clikpic.com/kwhitewood/images";break}switch(a){case 34:b="http://www9.clikpic.com/kwhitewood/images";break}switch(a){case 35:b="http://admin3.clikpic.com/kwhitewood/images";break}switch(a){case 37:b="http://admin4.clikpic.com/kwhitewood/images";break}switch(a){case 38:b="http://admin5.clikpic.com/kwhitewood/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="Buttercup 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> 							"+(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+'")'})}}};
