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[5133691]=new thumbnail(5133691,"290104","","2009_09_05_1461-infra-reds_thumb.jpg",130,87,15);thumbnails[5133708]=new thumbnail(5133708,"290104","","2009_09_05_1472ds_thumb.jpg",130,87,15);thumbnails[5133718]=new thumbnail(5133718,"290104","","2009_09_05_1511s_thumb.jpg",130,195,15);thumbnails[5133720]=new thumbnail(5133720,"290104","","2009_09_05_1516bs_thumb.jpg",130,130,15);thumbnails[5133726]=new thumbnail(5133726,"290104","","2009_09_05_1534as_thumb.jpg",130,341,15);thumbnails[5133727]=new thumbnail(5133727,"290104","","2009_09_05_1554bs_thumb.jpg",130,195,15);thumbnails[5133778]=new thumbnail(5133778,"290104","","2009_09_05_1578cs_thumb.jpg",130,130,15);thumbnails[5133784]=new thumbnail(5133784,"290104","","2009_09_05_1644bs_thumb.jpg",130,130,15);thumbnails[5133790]=new thumbnail(5133790,"290104","","2009_09_05_1645bs_thumb.jpg",130,87,15);thumbnails[5133791]=new thumbnail(5133791,"290104","","2009_09_05_1623s_thumb.jpg",130,87,15);thumbnails[5133799]=new thumbnail(5133799,"290104","","2009_09_05_1627bs_thumb.jpg",130,87,15);thumbnails[5133803]=new thumbnail(5133803,"290104","","2009_09_05_1650bs_thumb.jpg",130,87,15);thumbnails[5133856]=new thumbnail(5133856,"290104","","2009_09_05_1381s_thumb.jpg",130,195,15);thumbnails[5133862]=new thumbnail(5133862,"290104","","2009_09_05_1368bws_thumb.jpg",130,195,15);thumbnails[5133873]=new thumbnail(5133873,"290104","","2009_09_05_1374s_thumb.jpg",130,130,15);thumbnails[5133877]=new thumbnail(5133877,"290104","","2009_09_05_1385cs_thumb.jpg",130,195,15);thumbnails[5133881]=new thumbnail(5133881,"290104","","2009_09_05_1231horiz-sepia-s_thumb.jpg",130,195,15);thumbnails[5135112]=new thumbnail(5135112,"290104","","2009_08_15_0476_thumb.jpg",130,130,15);thumbnails[5135116]=new thumbnail(5135116,"290104","","2009_08_15_0488a_thumb.jpg",130,195,15);thumbnails[5135120]=new thumbnail(5135120,"290104","","2009_08_15_0499b_thumb.jpg",130,195,15);thumbnails[5135123]=new thumbnail(5135123,"290104","","2009_08_15_0594_thumb.jpg",130,195,15);thumbnails[5135127]=new thumbnail(5135127,"290104","","2009_08_15_0604a_thumb.jpg",130,195,15);thumbnails[5135128]=new thumbnail(5135128,"290104","","2009_08_15_0626a_thumb.jpg",130,195,15);thumbnails[5135131]=new thumbnail(5135131,"290104","","2009_08_15_0697a_thumb.jpg",130,195,15);thumbnails[5135132]=new thumbnail(5135132,"290104","","2009_08_15_0734_thumb.jpg",130,130,15);thumbnails[5135141]=new thumbnail(5135141,"290104","","2009_08_15_0807a_thumb.jpg",130,195,15);thumbnails[5135143]=new thumbnail(5135143,"290104","","2009_08_15_0808a_thumb.jpg",130,195,15);thumbnails[5135144]=new thumbnail(5135144,"290104","","2009_08_15_0823_thumb.jpg",130,87,15);thumbnails[5135146]=new thumbnail(5135146,"290104","","2009_08_15_0858_thumb.jpg",130,70,15);thumbnails[2911053]=new thumbnail(2911053,"21707","Storm 10","20071209_7244as1_thumb.jpg",130,66,15);thumbnails[240063]=new thumbnail(240063,"21707","Evening Stroll","051004_041_thumb.jpg",130,87,15);thumbnails[1033492]=new thumbnail(1033492,"21707",'"Harbour Dawn"',"061103_22602_thumb.jpg",130,87,15);thumbnails[1517781]=new thumbnail(1517781,"21707","River Ripples","x20070911_5034as_thumb.jpg",130,87,15);thumbnails[1032978]=new thumbnail(1032978,"21707","Fantastic Beach","20070429_2225_thumb.jpg",130,87,15);thumbnails[1033510]=new thumbnail(1033510,"21707",'"Confusion"',"070101_3788_thumb.jpg",130,87,15);thumbnails[567864]=new thumbnail(567864,"21707","Sunrise Harbour","061103_2261_filtered_thumb.jpg",130,87,15);thumbnails[567860]=new thumbnail(567860,"21707","High Tide","061007_0706_thumb.jpg",130,87,15);thumbnails[567833]=new thumbnail(567833,"21707","Winning Refelction","060824_068hpf_thumb.jpg",130,87,15);thumbnails[284596]=new thumbnail(284596,"21707","Sunrise over Langstone Mill","060603LangstoneDawn_076_thumb.jpg",130,87,15);thumbnails[567865]=new thumbnail(567865,"21707","Hayling Bridge","ChurchAndBertie0002bw_thumb.jpg",130,195,15);thumbnails[249332]=new thumbnail(249332,"21707","Deloitte","060512RoundTheIsland 139a_filtered_thumb.jpg",130,195,15);thumbnails[240066]=new thumbnail(240066,"21707","Sunset Chichester Harbour","Copy of bw-Dscf0041_72dpi_thumb.jpg",130,65,15);thumbnails[4140418]=new thumbnail(4140418,"247634","St Huberts","20080615_9584_thumb.jpg",130,87,15);thumbnails[4140467]=new thumbnail(4140467,"247634","St Huberts II","20070520_2759_thumb.jpg",130,87,15);thumbnails[4140233]=new thumbnail(4140233,"247634","Halnaker Mill","20070303_0413abwxs_1_thumb.jpg",130,87,15);thumbnails[567652]=new thumbnail(567652,"247634","Afternoon Tree","061021_1582land_thumb.jpg",130,87,15);thumbnails[5124789]=new thumbnail(5124789,"21711","Hair Advice Centre I","2009_09_14_1802-600px_thumb.jpg",130,87,15);thumbnails[5124792]=new thumbnail(5124792,"21711","Hair Advice Centre II","2009_09_14_1798-600px_thumb.jpg",130,87,15);thumbnails[5124826]=new thumbnail(5124826,"21711","Hair Advice Centre III","2009_09_14_1800_filtered_thumb.jpg",130,150,15);thumbnails[1075666]=new thumbnail(1075666,"21711","Three Sisters","061226_3706bwf_thumb.jpg",130,87,15);thumbnails[2560281]=new thumbnail(2560281,"21711","Fashion ","20070918_5968a_thumb.jpg",130,75,15);thumbnails[1075653]=new thumbnail(1075653,"21711","Image for Fathers Day","20070610_2930bw_thumb.jpg",130,87,15);thumbnails[2558424]=new thumbnail(2558424,"21711","Close up","20080719_9999_383a_thumb.jpg",130,87,15);thumbnails[2558433]=new thumbnail(2558433,"21711","Subdued Lighting","20080719_9999_353a_thumb.jpg",130,195,15);thumbnails[2558491]=new thumbnail(2558491,"21711","Dressing Up","20080719_9999_316a_thumb.jpg",130,195,15);thumbnails[2556621]=new thumbnail(2556621,"21711","Maroon Hair","20080428_8726_thumb.jpg",130,195,15);thumbnails[1517663]=new thumbnail(1517663,"21711","Bob hair","1423449515_59f9a5e2a4_os_thumb.jpg",130,195,15);thumbnails[1517660]=new thumbnail(1517660,"21711","Big Hair","20070918_6065bs_thumb.jpg",130,195,15);thumbnails[2558312]=new thumbnail(2558312,"21711","Mother & Daugter","20080719_9991bw_thumb.jpg",130,195,15);thumbnails[1708696]=new thumbnail(1708696,"21711","Soft Lighting","20071210_7477bs_thumb.jpg",130,179,15);thumbnails[1517654]=new thumbnail(1517654,"21711","Dark Hair","20070918_6044cs_thumb.jpg",130,195,15);thumbnails[5136162]=new thumbnail(5136162,"21711","Extreme High Key","20080428_8726b_filtered_thumb.jpg",130,161,15);thumbnails[1517645]=new thumbnail(1517645,"21711","Soft Focus","20070519_2699bx_thumb.jpg",130,195,15);thumbnails[1053152]=new thumbnail(1053152,"21711","The Family","20070519_2677newfaceBWs_thumb.jpg",130,195,15);thumbnails[1075355]=new thumbnail(1075355,"21711",'"Moving Shadows"',"061101_2162_filtered_thumb.jpg",130,195,15);thumbnails[2597507]=new thumbnail(2597507,"21711","High Key","20080719_9999_376bw_thumb.jpg",130,195,15);thumbnails[1517779]=new thumbnail(1517779,"21713","South Bank Motion","20071012_6377bs_thumb.jpg",130,87,15);thumbnails[1034125]=new thumbnail(1034125,"21713",'"Waves of Sand"',"20070429_2214_thumb.jpg",130,87,15);thumbnails[1517819]=new thumbnail(1517819,"21713","London Bus","20071012_6543_thumb.jpg",130,87,15);thumbnails[1517668]=new thumbnail(1517668,"21713","High Contrast","20070419_1838s_thumb.jpg",130,87,15);thumbnails[1517780]=new thumbnail(1517780,"21713","St Pauls","20071012_6442bs_thumb.jpg",130,195,15);thumbnails[1033475]=new thumbnail(1033475,"21713","Just William - J109","20070412_1669untouched_filtered_thumb.jpg",130,195,15);thumbnails[1033481]=new thumbnail(1033481,"21713","Spinnaker Tower","070203_4758f_thumb.jpg",130,195,15);thumbnails[1032940]=new thumbnail(1032940,"21713",'"L.I.247"',"060905_629 Boat LI247f_thumb.jpg",130,195,15);thumbnails[1517795]=new thumbnail(1517795,"21713","Lone Tree","060929_0593a1_thumb.jpg",130,87,15);thumbnails[1517778]=new thumbnail(1517778,"21713","Mean Machine","20070719_3543abws_thumb.jpg",130,87,15);thumbnails[1520282]=new thumbnail(1520282,"21713","Angry Clouds","20070303_0413abwxs_thumb.jpg",130,87,15);thumbnails[567813]=new thumbnail(567813,"21713","Location Location Location!","050923Beach-009_thumb.jpg",130,87,15);thumbnails[567824]=new thumbnail(567824,"21713","Great Court I","061101_2125_filtered_thumb.jpg",130,195,15);thumbnails[1033628]=new thumbnail(1033628,"21713",'"Waiting for the Tide"',"20070428_2161-ns_thumb.jpg",130,195,15);thumbnails[567822]=new thumbnail(567822,"21713","Firework Tower","061027_1661_thumb.jpg",130,130,15);thumbnails[1033469]=new thumbnail(1033469,"21713",'"Man and his Dog"',"20070412_1772_filtered-ns_thumb.jpg",130,130,15);thumbnails[567527]=new thumbnail(567527,"21713","In the midst of Knowledge","061101_2127_thumb.jpg",130,87,15);thumbnails[567530]=new thumbnail(567530,"21713","Art Work Shoppe","061101_2176_thumb.jpg",130,78,15);thumbnails[568089]=new thumbnail(568089,"21713","Wet Feet","wet feet_thumb.jpg",130,87,15);thumbnails[1033467]=new thumbnail(1033467,"21749",'"Chaos IV"',"060903_392_thumb.jpg",130,98,15);thumbnails[1033476]=new thumbnail(1033476,"21749","Jersey Surfer @ St Oeuns","20070408_1475bw_thumb.jpg",130,107,15);thumbnails[567807]=new thumbnail(567807,"21749","Arrrrrgh! II","060902_212_thumb.jpg",130,108,15);thumbnails[567809]=new thumbnail(567809,"21749","Freestyle","060903_466_thumb.jpg",130,112,15);thumbnails[1517804]=new thumbnail(1517804,"21749","Aaaargh !","060902_1611_thumb.jpg",130,87,15);thumbnails[1034129]=new thumbnail(1034129,"21704",'"Meadow"',"070212_4939s copy_thumb.jpg",130,87,15);thumbnails[1517665]=new thumbnail(1517665,"21704","Zebras","x20070907_4544bw_thumb.jpg",130,87,15);thumbnails[1033484]=new thumbnail(1033484,"21704",'"Blue Carpet"',"20070421_1856_thumb.jpg",130,87,15);thumbnails[343669]=new thumbnail(343669,"21704","Male Stonechat","060708Beach_098_thumb.jpg",130,195,15);thumbnails[1032956]=new thumbnail(1032956,"21704",'"Mono Rose"',"060921_0539bwa_thumb.jpg",130,142,15);thumbnails[1032960]=new thumbnail(1032960,"21704","Tulips","20070330_1150-nsf_thumb.jpg",130,130,15);var galleries=new Object();galleries[290104]=new gallery(290104,"5133790","WEDDING","gallery",[5133691,5133708,5133718,5133720,5133726,5133727,5133778,5133784,5133790,5133791,5133799,5133803,5133856,5133862,5133873,5133877,5133881,5135112,5135116,5135120,5135123,5135127,5135128,5135131,5135132,5135141,5135143,5135144,5135146]);galleries[21707]=new gallery(21707,"567860","THE SEA","gallery",[2911053,240063,1033492,1517781,1032978,1033510,567864,567860,567833,284596,567865,249332,240066]);galleries[247634]=new gallery(247634,"4140233","THE LAND","gallery",[4140418,4140467,4140233,567652]);galleries[21711]=new gallery(21711,"2558424","PEOPLE","gallery",[5124789,5124792,5124826,1075666,2560281,1075653,2558424,2558433,2558491,2556621,1517663,1517660,2558312,1708696,1517654,5136162,1517645,1053152,1075355,2597507]);galleries[21713]=new gallery(21713,"1520282,1517795,1517668","ARTISTIC","gallery",[1517779,1034125,1517819,1517668,1517780,1033475,1033481,1032940,1517795,1517778,1520282,567813,567824,1033628,567822,1033469,567527,567530,568089]);galleries[21749]=new gallery(21749,"1033476","SPORT","gallery",[1033467,1033476,567807,567809,1517804]);galleries[21704]=new gallery(21704,"1517665","NATURE","gallery",[1034129,1517665,1033484,343669,1032956,1032960]);var imageSets=new Object();imageSets[1]="5136162,5133790,2556621,1708696,1517804,1517795,1517665,1033492,568089";imageSets[2]="5133790,4140233,2558424,1520282,1517795,1517668,1517665,1033476,567860";imageSets[3]="1033510";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/mikeowens/images";break}switch(a){case 1:b="http://www1.clikpic.com/mikeowens/images";break}switch(a){case 2:b="http://admin.clikpic.com/mikeowens/images";break}switch(a){case 4:b="http://www.clikchurch.com/mikeowens/images";break}switch(a){case 5:b="http://www2.clikpic.com/mikeowens/images";break}switch(a){case 15:b="http://www3.clikpic.com/mikeowens/images";break}switch(a){case 21:b="http://www6.clikpic.com/mikeowens/images";break}switch(a){case 18:b="http://www4.clikpic.com/mikeowens/images";break}switch(a){case 19:b="http://www5.clikpic.com/mikeowens/images";break}switch(a){case 22:b="http://tpc5/clikpic/mikeowens/images";break}switch(a){case 23:b="http://tpc10/clikpic/mikeowens/images";break}switch(a){case 24:b="http://tpc15/clikpic/mikeowens/images";break}switch(a){case 25:b="http://tpc16/clikpic/mikeowens/images";break}switch(a){case 31:b="http://www7.clikpic.com/mikeowens/images";break}switch(a){case 32:b="http://admin2.clikpic.com/mikeowens/images";break}switch(a){case 33:b="http://www8.clikpic.com/mikeowens/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=" : "+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+'<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+'")'})}}};