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[5450408]=new thumbnail(5450408,"307658","Thicket Avenue Railway Bridge","Thicket-Avenue-Railway-Brid_thumb.jpg",130,98,5);thumbnails[5458989]=new thumbnail(5458989,"307655","Into the Moon","Into-the-Moon_thumb.jpg",130,109,5);thumbnails[5557105]=new thumbnail(5557105,"307661","Village in the Sky","Village-in-the-Sky_thumb.jpg",77,100,5);thumbnails[5557183]=new thumbnail(5557183,"307661","Church on the Hill","Church-on-the-Hill_thumb.jpg",100,98,5);thumbnails[5682935]=new thumbnail(5682935,"307656","Clifton Rock","Clifton_Rock_thumb.jpg",61,100,5);thumbnails[5858549]=new thumbnail(5858549,"307658","Harbour Railway","Harbour_Railway_thumb.jpg",40,100,5);thumbnails[5858568]=new thumbnail(5858568,"307656","Clifton Tiers","Clifton_Tiers_thumb.jpg",51,100,5);thumbnails[5861291]=new thumbnail(5861291,"307661","Weeping Night Sky","Weeping_Night_Sky_thumb.jpg",43,100,5);thumbnails[5876232]=new thumbnail(5876232,"307661","The Big House","The_Big_House_thumb.jpg",100,95,5);thumbnails[5876238]=new thumbnail(5876238,"307661","Gentle Earth","Gentle_Earth_thumb.jpg",100,97,5);thumbnails[5876242]=new thumbnail(5876242,"307655","Land of Point","Land_of_Point_thumb.jpg",100,98,5);thumbnails[5876252]=new thumbnail(5876252,"307655","Bristol Lights","Bristol_Lights_thumb.jpg",51,100,5);thumbnails[5880599]=new thumbnail(5880599,"307661","Light in Barren Land","Light_in_Barren_Land_thumb.jpg",80,100,5);thumbnails[5880603]=new thumbnail(5880603,"307661","Three in a Row","Three_in_a_Row_thumb.jpg",79,100,5);thumbnails[6085061]=new thumbnail(6085061,"307656","Cluster","Cluster_thumb.jpg",100,78,5);thumbnails[6177262]=new thumbnail(6177262,"307656","Beachcombers","Beachcombers_1_thumb.jpg",100,94,5);thumbnails[5440369]=new thumbnail(5440369,"307658","Along the Tracks","alongthetracks_thumb.jpg",130,183,5);thumbnails[5440397]=new thumbnail(5440397,"307656","Avon Gorge","avongorge_thumb.jpg",130,251,5);thumbnails[5440505]=new thumbnail(5440505,"307658","City in Slumber","cityinslumber_thumb.jpg",130,216,5);thumbnails[5440526]=new thumbnail(5440526,"307658","Dusk","dusk_thumb.jpg",130,164,5);thumbnails[5446870]=new thumbnail(5446870,"307664","Arms Outstretched","Arms-Outstretched_thumb.jpg",130,186,5);thumbnails[5446883]=new thumbnail(5446883,"307664","Bending","Bending_thumb.jpg",130,222,5);thumbnails[5446908]=new thumbnail(5446908,"307664","Contemplation","Contemplation_thumb.jpg",130,181,5);thumbnails[5446915]=new thumbnail(5446915,"307664","Despair","Despair_thumb.jpg",130,261,5);thumbnails[5446942]=new thumbnail(5446942,"307664","Dreaming","Dreaming_thumb.jpg",130,213,5);thumbnails[5446951]=new thumbnail(5446951,"307664","Leaning Back","Leaning-Back_thumb.jpg",130,182,5);thumbnails[5446954]=new thumbnail(5446954,"307664","Quiet Repose","Quiet-Repose_thumb.jpg",130,165,5);thumbnails[5446959]=new thumbnail(5446959,"307664","Sorrow","Sorrow_thumb.jpg",130,164,5);thumbnails[5446966]=new thumbnail(5446966,"307664","Standing Woman","Standing-Woman_thumb.jpg",130,315,5);thumbnails[5446972]=new thumbnail(5446972,"307664","Standing Man","Standin-Man_thumb.jpg",130,339,5);thumbnails[5446976]=new thumbnail(5446976,"307664","Twisting","Twisting_thumb.jpg",130,241,5);thumbnails[5447046]=new thumbnail(5447046,"307665","Asleep","Asleep_thumb.jpg",130,165,5);thumbnails[5447058]=new thumbnail(5447058,"307665","Clutching Legs","Clutching-Leg_thumb.jpg",130,194,5);thumbnails[5447063]=new thumbnail(5447063,"307665","Crouching Man","Crouching-Man_thumb.jpg",130,183,5);thumbnails[5447066]=new thumbnail(5447066,"307665","Dancing","Dancing_thumb.jpg",130,197,5);thumbnails[5447073]=new thumbnail(5447073,"307665","Leg Stretch","Half-Kneeling-Pose_thumb.jpg",130,211,5);thumbnails[5447101]=new thumbnail(5447101,"307665","Hiding Away","Hiding-Away_thumb.jpg",130,173,5);thumbnails[5447118]=new thumbnail(5447118,"307665","Gazing","Orange-Woman_thumb.jpg",130,203,5);thumbnails[5447131]=new thumbnail(5447131,"307665","Rising","Rising_thumb.jpg",130,81,5);thumbnails[5447135]=new thumbnail(5447135,"307665","Sleeping","Sleeping_thumb.jpg",130,142,5);thumbnails[5447151]=new thumbnail(5447151,"307665","Stretching","Stretching_thumb.jpg",130,163,5);thumbnails[5447156]=new thumbnail(5447156,"307665","Thinking","Thinking_thumb.jpg",130,180,5);thumbnails[5447166]=new thumbnail(5447166,"307665","Turned Away","Turned-Away_thumb.jpg",130,195,5);thumbnails[5447170]=new thumbnail(5447170,"307665","Lounging on Blue Blanket","Woman-from-Behind_thumb.jpg",130,162,5);thumbnails[5447171]=new thumbnail(5447171,"307665","Woman Lying","Woman-Lying_thumb.jpg",130,81,5);thumbnails[5447175]=new thumbnail(5447175,"307665","Woman Sitting","Woman-Sitting_thumb.jpg",130,157,5);thumbnails[5447178]=new thumbnail(5447178,"307664","Kneeling on Stool","Kneeling-on-Stool_thumb.jpg",130,246,5);thumbnails[5447180]=new thumbnail(5447180,"307665","Red Background","Woman-Against-Red-Backgroun_thumb.jpg",130,79,5);thumbnails[5447248]=new thumbnail(5447248,"307656","Hotwells Houses","Hotwells-Houses_thumb.jpg",130,109,5);thumbnails[5447301]=new thumbnail(5447301,"307658","Winter Garden","Winter-Garden_thumb.jpg",130,178,5);thumbnails[5447320]=new thumbnail(5447320,"307661","A Dream","A-Dream_thumb.jpg",130,195,5);thumbnails[5447344]=new thumbnail(5447344,"307661","Oudegracht","Oudegracht_thumb.jpg",130,149,5);thumbnails[5447350]=new thumbnail(5447350,"307661","The End of the World","The-End-of-the-World_thumb.jpg",130,154,5);thumbnails[5447736]=new thumbnail(5447736,"307661","Clifton Wood","Clifton-Wood_thumb.jpg",130,102,5);thumbnails[5447745]=new thumbnail(5447745,"307661","Over the Avon","Over-the-Avon_thumb.jpg",130,108,5);thumbnails[5440623]=new thumbnail(5440623,"307656","","lookingthrough_thumb.jpg",130,163,5);thumbnails[5440495]=new thumbnail(5440495,"307658","Chew Magna Lake","chewmagnalake_thumb.jpg",130,180,5);thumbnails[5447730]=new thumbnail(5447730,"307658","Love Birds","Love-Birds_thumb.jpg",130,134,5);thumbnails[5440464]=new thumbnail(5440464,"307655","Beynac","Beynac_thumb.jpg",130,241,5);thumbnails[5440513]=new thumbnail(5440513,"307655","Clifton Suspension Bridge","Clifton_Suspension_Bridge_thumb.jpg",130,195,5);thumbnails[5440518]=new thumbnail(5440518,"307658","Cumberland Basin","cumberlandbasin_thumb.jpg",130,42,5);thumbnails[5447266]=new thumbnail(5447266,"307658","Suspension Bridge","Suspension-Bridge_thumb.jpg",130,41,5);thumbnails[5447279]=new thumbnail(5447279,"307658","Towards Clifton Wood","Towards-Clifton-Wood_thumb.jpg",130,183,5);thumbnails[5440632]=new thumbnail(5440632,"307655","Magic Mountain","magicmountain_thumb.jpg",130,107,5);thumbnails[5440636]=new thumbnail(5440636,"307658","Sand Bay","sandbay_thumb.jpg",130,336,5);thumbnails[5447108]=new thumbnail(5447108,"307665","Kneeling","Kneeling_thumb.jpg",130,196,5);thumbnails[5447123]=new thumbnail(5447123,"307665","Reclining Man","Reclining-Man_thumb.jpg",130,98,5);thumbnails[5447262]=new thumbnail(5447262,"307658","Mother","Mother_thumb.jpg",130,182,5);thumbnails[5447294]=new thumbnail(5447294,"307655","Utrecht","Utrecht_thumb.jpg",130,209,5);thumbnails[5447685]=new thumbnail(5447685,"307663","Ile de Raguenez","ilederaguenez_thumb.jpg",130,83,5);thumbnails[5447693]=new thumbnail(5447693,"307663","French Bridge","frenchbridge_thumb.jpg",130,176,5);thumbnails[5447189]=new thumbnail(5447189,"307665","Cradling the Unborn","Cradling-the-Unborn_thumb.jpg",130,125,5);thumbnails[5447193]=new thumbnail(5447193,"307665","Naked Torso","Naked-Torso_thumb.jpg",130,117,5);thumbnails[5440620]=new thumbnail(5440620,"307658","Hotwells","hotwells_thumb.jpg",130,95,5);thumbnails[5447254]=new thumbnail(5447254,"307655","Lake Creatures","Lake-Creatures_thumb.jpg",130,118,5);thumbnails[5440670]=new thumbnail(5440670,"307655","Tentsmuir","Tentsmuir_thumb.jpg",130,41,5);var galleries=new Object();galleries[307655]=new gallery(307655,"5876252,5876242,5458989,5447294,5447254,5440670,5440632,5440513,5440464","Etchings","gallery",[5458989,5876242,5876252,5440464,5440513,5440632,5447294,5447254,5440670]);galleries[307663]=new gallery(307663,"5447693,5447685","Landsape Paintings","gallery",[5447685,5447693]);galleries[307664]=new gallery(307664,"5447178,5446976,5446972,5446966,5446959,5446954,5446951,5446942,5446915,5446908","Life Drawings","gallery",[5446870,5446883,5446908,5446915,5446942,5446951,5446954,5446959,5446966,5446972,5446976,5447178]);galleries[307665]=new gallery(307665,"5447193,5447189,5447180,5447175,5447171,5447170,5447166,5447156,5447151,5447135","Life Paintings","gallery",[5447046,5447058,5447063,5447066,5447073,5447101,5447118,5447131,5447135,5447151,5447156,5447166,5447170,5447171,5447175,5447180,5447108,5447123,5447189,5447193]);galleries[307661]=new gallery(307661,"5880603,5880599,5876238,5876232,5861291,5557183,5557105,5447745,5447736,5447350","Mixed Media Prints","gallery",[5557105,5557183,5861291,5876232,5876238,5880599,5880603,5447320,5447344,5447350,5447736,5447745]);galleries[307662]=new gallery(307662,"5447693,5447685,5447193,5447189,5447180,5447178,5447175,5447171,5447170,5447166","Paintings & Drawings","gallery",[]);galleries[307659]=new gallery(307659,"6177262,6085061,5880603,5880599,5876252,5876242,5876238,5876232,5861291,5858568","Prints","gallery",[]);galleries[307658]=new gallery(307658,"5858549,5450408,5447730,5447301,5447279,5447266,5447262,5440636,5440620,5440526","Relief Prints","gallery",[5450408,5858549,5440369,5440505,5440526,5447301,5440495,5447730,5440518,5447266,5447279,5440636,5447262,5440620]);galleries[307656]=new gallery(307656,"6177262,6085061,5858568,5682935,5447248,5440623,5440397","Screen Prints","gallery",[5682935,5858568,6085061,6177262,5440397,5447248,5440623]);var imageSets=new Object();imageSets[1]="6177262,6085061,5880603,5880599,5876252,5876242,5876238,5876232,5861291,5858568,5858549,5682935,5557183,5557105,5458989,5450408,5447745,5447736,5447730,5447693,5447685,5447350,5447344,5447320,5447301,5447294,5447279,5447266,5447262,5447254,5447248,5447193,5447189,5447180,5447178,5447175,5447171,5447170,5447166,5447156,5447151,5447135,5447131,5447123,5447118,5447108,5447101,5447073,5447066,5447063";imageSets[3]="6177262,6085061,5880603,5880599,5876252,5876242,5876238,5876232,5861291,5858568,5858549,5682935,5557183,5557105,5458989,5450408,5447745,5447736,5447730,5447693,5447685,5447350,5447344,5447320,5447301,5447294,5447279,5447266,5447262,5447254,5447248,5447193,5447189,5447180,5447178,5447175,5447171,5447170,5447166,5447156,5447151,5447135,5447131,5447123,5447118,5447108,5447101,5447073,5447066,5447063";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/zcarterbeedie/images";break}switch(a){case 1:b="http://www1.clikpic.com/zcarterbeedie/images";break}switch(a){case 2:b="http://admin.clikpic.com/zcarterbeedie/images";break}switch(a){case 24:b="http://tpc15/clikpic/zcarterbeedie/images";break}switch(a){case 4:b="http://www.clikchurch.com/zcarterbeedie/images";break}switch(a){case 5:b="http://www2.clikpic.com/zcarterbeedie/images";break}switch(a){case 22:b="http://tpc5/clikpic/zcarterbeedie/images";break}switch(a){case 23:b="http://tpc10/clikpic/zcarterbeedie/images";break}switch(a){case 25:b="http://tpc16/clikpic/zcarterbeedie/images";break}switch(a){case 15:b="http://www3.clikpic.com/zcarterbeedie/images";break}switch(a){case 18:b="http://www4.clikpic.com/zcarterbeedie/images";break}switch(a){case 19:b="http://www5.clikpic.com/zcarterbeedie/images";break}switch(a){case 31:b="http://www7.clikpic.com/zcarterbeedie/images";break}switch(a){case 32:b="http://admin2.clikpic.com/zcarterbeedie/images";break}switch(a){case 33:b="http://www8.clikpic.com/zcarterbeedie/images";break}switch(a){case 34:b="http://www9.clikpic.com/zcarterbeedie/images";break}switch(a){case 35:b="http://admin3.clikpic.com/zcarterbeedie/images";break}switch(a){case 37:b="http://admin4.clikpic.com/zcarterbeedie/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="Zoe Carter Beedie Art: "+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="ZCARTERBEEDIE">';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<100){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+'")'})}}};