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[886662]=new thumbnail(886662,"","","IMG_0162c_thumb.jpg",130,173,18);thumbnails[1300837]=new thumbnail(1300837,"","","mpa_logo_thumb.jpg",130,99,18);thumbnails[1300838]=new thumbnail(1300838,"","","swpp_thumb.jpg",130,55,18);thumbnails[4523883]=new thumbnail(4523883,"","","Hitchedlogo_white_295x55_thumb.jpg",130,24,18);thumbnails[655093]=new thumbnail(655093,"207065","","149w_thumb.jpg",130,260,18);thumbnails[4374756]=new thumbnail(4374756,"207065","","PAGE-1_thumb.jpg",130,130,18);thumbnails[4551710]=new thumbnail(4551710,"207065","","004_thumb.jpg",130,87,18);thumbnails[4551711]=new thumbnail(4551711,"207065","","059_thumb.jpg",130,195,18);thumbnails[4551713]=new thumbnail(4551713,"207065","","106_thumb.jpg",130,87,18);thumbnails[4551714]=new thumbnail(4551714,"207065","","108_thumb.jpg",130,195,18);thumbnails[4683665]=new thumbnail(4683665,"207065","","43_thumb.jpg",130,87,18);thumbnails[1564402]=new thumbnail(1564402,"207065","","43_F93A8799-2219-B5B5-4CA1745EE27E0DAD_thumb.jpg",130,87,18);thumbnails[2000205]=new thumbnail(2000205,"207065","","0023_thumb.jpg",130,93,18);thumbnails[2000208]=new thumbnail(2000208,"207065","","0944_thumb.jpg",130,87,18);thumbnails[454704]=new thumbnail(454704,"207065","","3381_thumb.jpg",130,98,18);thumbnails[324865]=new thumbnail(324865,"207065","","0948_thumb.jpg",130,98,18);thumbnails[294545]=new thumbnail(294545,"207065","","NL4_thumb.jpg",130,98,18);thumbnails[156443]=new thumbnail(156443,"207065","","018a_thumb.jpg",130,86,18);thumbnails[295854]=new thumbnail(295854,"207065","","066_thumb.jpg",130,98,18);thumbnails[353594]=new thumbnail(353594,"207065","","01710_thumb.jpg",130,86,18);thumbnails[474779]=new thumbnail(474779,"207065","","1224_thumb.jpg",130,98,18);thumbnails[605400]=new thumbnail(605400,"207065","","07713_thumb.jpg",130,98,18);thumbnails[873425]=new thumbnail(873425,"207065","","09813_thumb.jpg",130,87,18);thumbnails[2000210]=new thumbnail(2000210,"207065","","1064_thumb.jpg",130,87,18);thumbnails[2000212]=new thumbnail(2000212,"207065","","1672_thumb.jpg",130,87,18);thumbnails[1460318]=new thumbnail(1460318,"207065","","00131_thumb.jpg",130,195,18);thumbnails[454723]=new thumbnail(454723,"207065","","0968_thumb.jpg",130,173,18);thumbnails[474053]=new thumbnail(474053,"207065","","1036_thumb.jpg",130,173,18);thumbnails[385142]=new thumbnail(385142,"207065","","0608_thumb.jpg",130,173,18);thumbnails[324784]=new thumbnail(324784,"207065","","0127_thumb.jpg",130,173,18);thumbnails[295851]=new thumbnail(295851,"207065","","068_thumb.jpg",130,182,18);thumbnails[268307]=new thumbnail(268307,"207065","","0842_thumb.jpg",130,173,18);thumbnails[69289]=new thumbnail(69289,"207065","","088_thumb.jpg",130,195,18);thumbnails[324832]=new thumbnail(324832,"207065","","0598_thumb.jpg",130,173,18);thumbnails[372272]=new thumbnail(372272,"207065","","101B1_thumb.jpg",130,173,18);thumbnails[474777]=new thumbnail(474777,"207065","","1206_thumb.jpg",130,173,18);thumbnails[605403]=new thumbnail(605403,"207065","","08013_thumb.jpg",130,173,18);thumbnails[984403]=new thumbnail(984403,"207065","","05215_thumb.jpg",130,163,18);thumbnails[1270890]=new thumbnail(1270890,"207065","","08819_thumb.jpg",130,173,18);thumbnails[1695304]=new thumbnail(1695304,"207065","","0091_thumb.jpg",130,173,18);thumbnails[1695315]=new thumbnail(1695315,"207065","","0771_thumb.jpg",130,163,18);thumbnails[415314]=new thumbnail(415314,"207065","","087_thumb.jpg",130,195,18);thumbnails[4374757]=new thumbnail(4374757,"164110","","Picture-010_F93C6A7D-2219-B5B5-4CB7F803F620A177_thumb.jpg",130,87,18);thumbnails[5322136]=new thumbnail(5322136,"164110","","IMG_0228-BLACK-BOX-FRAME-16_thumb.jpg",130,130,18);thumbnails[5322189]=new thumbnail(5322189,"164110","","Picture-123_thumb.jpg",130,195,18);thumbnails[3393512]=new thumbnail(3393512,"164110","","20A_thumb.jpg",130,182,18);thumbnails[53187]=new thumbnail(53187,"164110","","038_thumb.jpg",130,104,18);thumbnails[118877]=new thumbnail(118877,"164110","","34c_thumb.jpg",130,98,18);thumbnails[231384]=new thumbnail(231384,"164110","","19B_thumb.jpg",130,87,18);thumbnails[1083543]=new thumbnail(1083543,"164110","","IMG_0131_thumb.jpg",130,87,18);thumbnails[2014427]=new thumbnail(2014427,"164110","","IMG_0783_thumb.jpg",130,87,18);thumbnails[2548083]=new thumbnail(2548083,"164110","","2311_thumb.jpg",130,87,18);thumbnails[3393510]=new thumbnail(3393510,"164110","","07A_thumb.jpg",130,93,18);thumbnails[102750]=new thumbnail(102750,"164110","","02_thumb.jpg",130,173,18);thumbnails[937598]=new thumbnail(937598,"164110","","IMG_0044a_thumb.jpg",130,163,18);thumbnails[1089045]=new thumbnail(1089045,"164110","","IMG_01181_thumb.jpg",130,195,18);thumbnails[1743649]=new thumbnail(1743649,"164110","","164_thumb.jpg",130,163,18);thumbnails[2548078]=new thumbnail(2548078,"164110","","1511_1_thumb.jpg",130,195,18);thumbnails[2548086]=new thumbnail(2548086,"164110","","061_thumb.jpg",130,195,18);thumbnails[3396820]=new thumbnail(3396820,"164110","","Picture-026_thumb.jpg",130,195,18);thumbnails[3393631]=new thumbnail(3393631,"164110","","611_thumb.jpg",130,104,18);thumbnails[3393516]=new thumbnail(3393516,"164110","","82BA_thumb.jpg",130,163,18);thumbnails[4374758]=new thumbnail(4374758,"162350","","IMG_0005_thumb.jpg",130,87,18);thumbnails[4374760]=new thumbnail(4374760,"162350","","IMG_0023_thumb.jpg",130,195,18);thumbnails[4374761]=new thumbnail(4374761,"162350","","IMG_0130_thumb.jpg",130,195,18);thumbnails[4374762]=new thumbnail(4374762,"162350","","IMG_0180_thumb.jpg",130,195,18);thumbnails[2079979]=new thumbnail(2079979,"162350","","1414_thumb.jpg",130,93,18);thumbnails[2080007]=new thumbnail(2080007,"162350","","421_thumb.jpg",130,87,18);thumbnails[493354]=new thumbnail(493354,"162350","","0840_thumb.jpg",130,98,18);thumbnails[2080022]=new thumbnail(2080022,"162350","","57_thumb.jpg",130,195,18);thumbnails[459944]=new thumbnail(459944,"162350","","725_thumb.jpg",130,173,18);thumbnails[929669]=new thumbnail(929669,"4985","","IMG_0044_thumb.jpg",130,104,18);thumbnails[1743347]=new thumbnail(1743347,"4985","","221_thumb.jpg",130,87,18);thumbnails[84819]=new thumbnail(84819,"4985","","076 copy_thumb.jpg",130,195,18);thumbnails[53373]=new thumbnail(53373,"4985","","014_thumb.jpg",130,195,18);thumbnails[1743345]=new thumbnail(1743345,"4985","","133_thumb.jpg",130,195,18);thumbnails[1743348]=new thumbnail(1743348,"4985","","55_thumb.jpg",130,195,18);thumbnails[239611]=new thumbnail(239611,"163853","","IMG_7975_thumb.jpg",130,195,18);thumbnails[865601]=new thumbnail(865601,"163853","","01215_thumb.jpg",130,156,18);thumbnails[3399846]=new thumbnail(3399846,"163853","","_MG_0040_thumb.jpg",130,195,18);thumbnails[3399851]=new thumbnail(3399851,"163853","","IMG_0116_thumb.jpg",130,163,18);thumbnails[5322135]=new thumbnail(5322135,"163853","","IMG_0045_thumb.jpg",130,87,18);thumbnails[5322137]=new thumbnail(5322137,"163853","","IMG_0240_thumb.jpg",130,195,18);thumbnails[5322139]=new thumbnail(5322139,"163853","","IMG_0300_thumb.jpg",130,195,18);thumbnails[937600]=new thumbnail(937600,"163853","","81_thumb.jpg",130,104,18);thumbnails[1837380]=new thumbnail(1837380,"163853","","IMG_01761_thumb.jpg",130,195,18);thumbnails[3400295]=new thumbnail(3400295,"163853","","IMG_0245_thumb.jpg",130,87,18);thumbnails[3399904]=new thumbnail(3399904,"163853","","line-up-and-flowers_thumb.jpg",130,43,18);thumbnails[119001]=new thumbnail(119001,"163853","","Picture-007a_thumb.jpg",130,87,18);thumbnails[5322144]=new thumbnail(5322144,"117148","","IMG_0106_F9328E5E-2219-B5B5-4C5854C72D08A8D9_thumb.jpg",130,182,18);thumbnails[3393621]=new thumbnail(3393621,"117148","","10B_thumb.jpg",130,87,18);thumbnails[3393626]=new thumbnail(3393626,"117148","","30_thumb.jpg",130,87,18);thumbnails[3393628]=new thumbnail(3393628,"117148","","31_thumb.jpg",130,195,18);thumbnails[3393624]=new thumbnail(3393624,"117148","","25_thumb.jpg",130,195,18);thumbnails[612942]=new thumbnail(612942,"24648","WGC Golf Club - Commemoration Jug 2006","02w_thumb.jpg",130,173,18);thumbnails[232384]=new thumbnail(232384,"24648","","860_thumb.jpg",130,87,18);thumbnails[1046996]=new thumbnail(1046996,"24648","","2281_thumb.jpg",130,87,18);thumbnails[1046999]=new thumbnail(1046999,"24648","","3681_thumb.jpg",130,104,18);thumbnails[1047947]=new thumbnail(1047947,"24648","","IMG_0928_thumb.jpg",130,87,18);thumbnails[202532]=new thumbnail(202532,"24648","","Picture-035_thumb.jpg",130,173,18);var galleries=new Object();galleries[207065]=new gallery(207065,"295851,268307","Wedding","gallery",[655093,4374756,4551710,4551711,4551713,4551714,4683665,1564402,2000205,2000208,454704,324865,294545,156443,295854,353594,474779,605400,873425,2000210,2000212,1460318,454723,474053,385142,324784,295851,268307,69289,324832,372272,474777,605403,984403,1270890,1695304,1695315,415314]);galleries[164110]=new gallery(164110,"3393512","Portraits","gallery",[4374757,5322136,5322189,3393512,53187,118877,231384,1083543,2014427,2548083,3393510,102750,937598,1089045,1743649,2548078,2548086,3396820,3393631,3393516]);galleries[162350]=new gallery(162350,"2080022","Civil Partnerships & Special Occasions","gallery",[4374758,4374760,4374761,4374762,2079979,2080007,493354,2080022,459944]);galleries[4985]=new gallery(4985,"1743348,1743347,1743345,929669,84819,53373","Model Portfolios","gallery",[929669,1743347,84819,53373,1743345,1743348]);galleries[163853]=new gallery(163853,"119001","Commercial","gallery",[239611,865601,3399846,3399851,5322135,5322137,5322139,937600,1837380,3400295,3399904,119001]);galleries[117148]=new gallery(117148,"5322144,3393628,3393626,3393624,3393621","Playgroups","gallery",[5322144,3393621,3393626,3393628,3393624]);galleries[24648]=new gallery(24648,"202532","Other work","gallery",[612942,232384,1046996,1046999,1047947,202532]);var imageSets=new Object();imageSets[1]="3393512,3393510,2548083,2014427,2000212,2000210,2000208,2000205,1743348,1695304,873425,454704,294545,232384,231384,118877";imageSets[2]="3393512,2080022,295851,268307,202532,119001";imageSets[3]="5322189,5322144,5322139,5322137,5322136,5322135,4683665,4551714,4551713,4551711,4551710,4523883,4374762,4374761,4374760,4374758,4374757,4374756,3400295,3399904,3399851,3399846,3396820,3393631,3393628,3393626,3393624,3393621,3393516,3393512,3393510,2548086,2548083,2548078,2080022,2080007,2079979,2014427,2000212,2000210,2000208,2000205,1837380,1743649,1743348,1743347,1743345,1695315,1695304,1564402";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/photographybytina/images";break}switch(a){case 1:b="http://www1.clikpic.com/photographybytina/images";break}switch(a){case 2:b="http://admin.clikpic.com/photographybytina/images";break}switch(a){case 24:b="http://tpc15/clikpic/photographybytina/images";break}switch(a){case 4:b="http://www.clikchurch.com/photographybytina/images";break}switch(a){case 5:b="http://www2.clikpic.com/photographybytina/images";break}switch(a){case 22:b="http://tpc5/clikpic/photographybytina/images";break}switch(a){case 23:b="http://tpc10/clikpic/photographybytina/images";break}switch(a){case 25:b="http://tpc16/clikpic/photographybytina/images";break}switch(a){case 15:b="http://www3.clikpic.com/photographybytina/images";break}switch(a){case 18:b="http://www4.clikpic.com/photographybytina/images";break}switch(a){case 19:b="http://www5.clikpic.com/photographybytina/images";break}switch(a){case 31:b="http://www7.clikpic.com/photographybytina/images";break}switch(a){case 32:b="http://admin2.clikpic.com/photographybytina/images";break}switch(a){case 33:b="http://www8.clikpic.com/photographybytina/images";break}switch(a){case 34:b="http://www9.clikpic.com/photographybytina/images";break}switch(a){case 35:b="http://admin3.clikpic.com/photographybytina/images";break}switch(a){case 37:b="http://admin4.clikpic.com/photographybytina/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="Photography by Tina: "+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].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="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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="info@photographybytina.co.uk">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="info@photographybytina.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="Basket" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};