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[1472484]=new thumbnail(1472484,"101538","A selection of button bracelets","multiweb_thumb.jpg",130,75,15);thumbnails[2364819]=new thumbnail(2364819,"101538","Turquoise and brown button bracelet","brownturqbrac_thumb.JPG",130,50,15);thumbnails[2364821]=new thumbnail(2364821,"101538","lilac button bracelet","lilacbrac_thumb.JPG",130,45,15);thumbnails[2364822]=new thumbnail(2364822,"101538","lilac and pink bracelet","lilacpinkbrac_thumb.JPG",130,40,15);thumbnails[2364823]=new thumbnail(2364823,"101538","purple bracelet","purplebrac_thumb.JPG",130,32,15);thumbnails[2364858]=new thumbnail(2364858,"101538","blue bracelet","bluebrac_thumb.JPG",130,35,15);thumbnails[2364860]=new thumbnail(2364860,"101538","red and blue bracelet","redbluebrac_thumb.JPG",130,24,15);thumbnails[2364861]=new thumbnail(2364861,"101538","yellow and brown bracelet","yellowbrownbrac_thumb.JPG",130,35,15);thumbnails[2364912]=new thumbnail(2364912,"101538","orange bracelet","orangebrac_thumb.JPG",130,31,15);thumbnails[2364926]=new thumbnail(2364926,"101538","raspberry ripple bracelet","raspripplebrac_thumb.JPG",130,32,15);thumbnails[2364929]=new thumbnail(2364929,"101538","green bracelet","greenbrac_thumb.JPG",130,40,15);thumbnails[2364931]=new thumbnail(2364931,"101538","Green and Yellow bracelet","greenyellowbrac_thumb.JPG",130,30,15);thumbnails[2364934]=new thumbnail(2364934,"101538","Mother of Pearl Bracelet","MOPbrac_thumb.JPG",130,30,15);thumbnails[2364935]=new thumbnail(2364935,"101538","Black and white bracelet","Blackwhitebrac_thumb.JPG",130,39,15);thumbnails[6324272]=new thumbnail(6324272,"350746"," Hidden Lives Tape measure","mariawalkertapemeasure_thumb.JPG",130,219,15);thumbnails[6324283]=new thumbnail(6324283,"350746","Hidden Lives - Haircomb from Platt Hall Collection","mariawalkerhaircomb1_thumb.JPG",130,219,15);thumbnails[6324285]=new thumbnail(6324285,"350746","Hidden Lives Haircomb from the Platt Hall Collection- objects of personal use and adornment.","mariawalkerhaircomb2_thumb.JPG",130,221,15);thumbnails[6324287]=new thumbnail(6324287,"350746","Hidden Lives- 'A very small key might open a very heavy door'","moo5_thumb.JPG",130,301,15);thumbnails[6324365]=new thumbnail(6324365,"350746","Hidden Lives- corset","bookcorset_thumb.JPG",130,139,15);thumbnails[6325256]=new thumbnail(6325256,"350746","Hidden Lives Perfume spray","bookperfume_thumb.JPG",130,98,15);thumbnails[6325262]=new thumbnail(6325262,"350746","Hidden Lives Perfume Spray detail","bookperfumedetail_thumb.JPG",130,173,15);thumbnails[6325264]=new thumbnail(6325264,"350746","Hidden Lives- Scissors","bookscissors_thumb.JPG",130,132,15);thumbnails[6325270]=new thumbnail(6325270,"350746","Hidden Lives- spoon","bookspoon_thumb.JPG",130,173,15);thumbnails[6325273]=new thumbnail(6325273,"350746","Screen Print","screenprint_thumb.JPG",130,173,15);thumbnails[6325278]=new thumbnail(6325278,"350746","Screen Print","screenprint2_thumb.JPG",130,98,15);thumbnails[6325291]=new thumbnail(6325291,"350746","\"A woman's work is never done I\" Housemaid's Apron","apron1_thumb.JPG",130,131,15);thumbnails[6325300]=new thumbnail(6325300,"350746",'"A woman\'s wprk is never done II" Housemaids apron',"apron2_thumb.JPG",130,109,15);thumbnails[6684000]=new thumbnail(6684000,"350746","Dorothy Bag","Dorothy_Bag_small_thumb.JPG",130,176,15);thumbnails[6684002]=new thumbnail(6684002,"350746","Dorcas Bag","MariaWalkerDorcasBagSmall_thumb.JPG",130,166,15);thumbnails[6684006]=new thumbnail(6684006,"350746","Dorcas Bag detail","dorcas_bag_detail_small_thumb.JPG",130,173,15);thumbnails[6684011]=new thumbnail(6684011,"350746","Sectrets lie within","Secrets_Lie_Within_small_thumb.JPG",130,438,15);thumbnails[6684017]=new thumbnail(6684017,"350746","Secret's Details","MariaWalkerSecrets_detai_smalll_thumb.JPG",130,173,15);thumbnails[1309945]=new thumbnail(1309945,"92704","Evelyn Rose","evelynrose_thumb.jpg",130,175,15);thumbnails[1309947]=new thumbnail(1309947,"92704","MariaDenise","mariadenise1dress_thumb.JPG",130,124,15);thumbnails[1309958]=new thumbnail(1309958,"92704","Norah's dress","dressnorah_thumb.JPG",130,172,15);thumbnails[1309959]=new thumbnail(1309959,"92704","Corset","Corset_thumb.JPG",130,139,15);thumbnails[1309986]=new thumbnail(1309986,"92704","Corset detail","corsetdetail_thumb.JPG",130,173,15);thumbnails[1309993]=new thumbnail(1309993,"92704","Sarah's Wedding","Sarah'sWedding_thumb.JPG",130,176,15);thumbnails[1707348]=new thumbnail(1707348,"92704","Blue dress made out of postage stamps","blue stamp dressweb_thumb.jpg",130,173,15);thumbnails[2364976]=new thumbnail(2364976,"92704","Rose corset","Mariacorsetrose_thumb.JPG",130,132,15);thumbnails[2364977]=new thumbnail(2364977,"92704","Violet corset","mariacorsetviolet_thumb.JPG",130,130,15);thumbnails[2364978]=new thumbnail(2364978,"92704","Felicia corset","Mariacosetfelicia_thumb.JPG",130,131,15);thumbnails[6325314]=new thumbnail(6325314,"92704","'Marie Antoinette's Corset\"","Marieantoinettescorset_thumb.JPG",130,140,15);thumbnails[6683760]=new thumbnail(6683760,"92704","Tatiana's wedding Dress","tatiana1web_thumb.JPG",130,183,15);thumbnails[6684032]=new thumbnail(6684032,"92704","sketchbook page","sketchbookpage_thumb.JPG",130,178,15);thumbnails[3868241]=new thumbnail(3868241,"235172","Wedding Day","charlieandrose_thumb.jpg",130,194,15);thumbnails[3868442]=new thumbnail(3868442,"235172","Chase road","chaserd_thumb.JPG",130,182,15);thumbnails[3868449]=new thumbnail(3868449,"235172","Donkey rides","donkeyrides_thumb.JPG",130,189,15);thumbnails[3868454]=new thumbnail(3868454,"235172","Blackpool Beach","IMG_5489_thumb.JPG",130,179,15);thumbnails[3868484]=new thumbnail(3868484,"235172","Which one is the monkey?","monkeyweb_thumb.JPG",130,183,15);thumbnails[3868487]=new thumbnail(3868487,"235172","Happy Family","IMG_5497_thumb.JPG",130,182,15);thumbnails[3868616]=new thumbnail(3868616,"235172","Birthday Party","IMG_5491_thumb.JPG",130,174,15);thumbnails[3868629]=new thumbnail(3868629,"235172","Summer Sun","IMG_6232_thumb.JPG",130,193,15);thumbnails[4013445]=new thumbnail(4013445,"242385","Grandmother reading","booksgrandmotherflatsquare_thumb.jpg",130,130,15);thumbnails[4013452]=new thumbnail(4013452,"242385",'"Pa was mending boots all day"',"bootsinsnow_copy_thumb.jpg",130,130,15);thumbnails[4013457]=new thumbnail(4013457,"242385",'" You can bring your money and buy a coat"',"coatflatweb_thumb.jpg",130,186,15);thumbnails[4013460]=new thumbnail(4013460,"242385",'"Our Dorothy is going worse naughty"',"dorothy_thumb.jpg",130,130,15);thumbnails[4013464]=new thumbnail(4013464,"242385",'"We hardly have any plates left the way she keeps smashing them"',"plates_thumb.jpg",130,130,15);thumbnails[4013468]=new thumbnail(4013468,"242385",'"We are having a party"',"dorisparty3_thumb.jpg",130,186,15);thumbnails[4013472]=new thumbnail(4013472,"242385",'" I have got me a hug me tight"',"hugmetight_thumb.jpg",130,130,15);thumbnails[4013474]=new thumbnail(4013474,"242385",'" I would rather have a spoon"',"lettercrop_copy_thumb.jpg",130,130,15);thumbnails[4013480]=new thumbnail(4013480,"242385",'"I hope you dress is equal to the occasion"',"mona1_copyweb_thumb.jpg",130,184,15);thumbnails[4013483]=new thumbnail(4013483,"242385","","mona1square_thumb.jpg",130,130,15);thumbnails[4013488]=new thumbnail(4013488,"242385",'"The washing gets me down"',"washingtransferweb_thumb.jpg",130,186,15);thumbnails[4013492]=new thumbnail(4013492,"242385","Fabric collage of my grandmother sewing","jenniefabriccollageweb_thumb.jpg",130,123,15);thumbnails[4013555]=new thumbnail(4013555,"242385",'"she is delighted with the picture of herself with the nice frock on"',"nicefrockweb3_thumb.jpg",130,180,15);thumbnails[1309739]=new thumbnail(1309739,"83588","Painting of shoes and dresses. Acrylics,watercolour and thread.","painting shoes and fabrics_thumb.JPG",130,192,15);thumbnails[1310007]=new thumbnail(1310007,"83588","Celestial Sky","celestialsky_thumb.jpg",130,116,15);thumbnails[1310012]=new thumbnail(1310012,"83588","Chinese Symbols","ChineseSymbol_thumb.jpg",130,131,15);thumbnails[1310027]=new thumbnail(1310027,"83588","Footsteps through the Ages","Footsteps_thumb.jpg",130,134,15);thumbnails[1310038]=new thumbnail(1310038,"83588","Pedra Vista","pedrovista_thumb.jpg",130,166,15);thumbnails[1310040]=new thumbnail(1310040,"83588","Tunisian Interior","tunisianinterior_thumb.jpg",130,222,15);thumbnails[1310042]=new thumbnail(1310042,"83588","Moroccan Interior","moroccaninterior_thumb.jpg",130,180,15);thumbnails[1310144]=new thumbnail(1310144,"83588","Beachcomber","mixedmediaBeachcomber_thumb.jpg",130,351,15);thumbnails[1310145]=new thumbnail(1310145,"83588","Postcard from France","mixedmediafrance_thumb.jpg",130,331,15);thumbnails[1310147]=new thumbnail(1310147,"83588","Postcard from Italy","MixedmediaItaly_thumb.jpg",130,352,15);thumbnails[1310150]=new thumbnail(1310150,"83588","Postcard from Spain","mixedmediaspain_thumb.jpg",130,416,15);thumbnails[1333343]=new thumbnail(1333343,"83588","Norton Priory Archways","nparchways_thumb.jpg",130,186,15);thumbnails[1333361]=new thumbnail(1333361,"83588","Norton Prior Doorway","npdoorway_thumb.jpg",130,202,15);thumbnails[1333393]=new thumbnail(1333393,"83588","Norton Priory Tiles<br>\r\nThis piece was selected for exhibition at the Sale Waterside Open Art Exhibition in 2008 ","nptiles1_thumb.jpg",130,181,15);thumbnails[1338956]=new thumbnail(1338956,"83588","This is a felt piece based on fragments of willow pattern pottery","MWwillowpattern_thumb.JPG",130,190,15);thumbnails[1338978]=new thumbnail(1338978,"83588","Reverse applique based on blue and white interiors","blueandwhite_thumb.JPG",130,196,15);thumbnails[1339024]=new thumbnail(1339024,"83588","pastel study","pastelshoesandfabrics_thumb.jpg",130,179,15);thumbnails[1339026]=new thumbnail(1339026,"83588","watercolour study","Watercolourshoes_thumb.jpg",130,98,15);thumbnails[1339035]=new thumbnail(1339035,"83588","Study of corset in pen","drawingofbodice1_thumb.jpg",130,184,15);thumbnails[1727224]=new thumbnail(1727224,"83588","Shirt on washing line","shirtweb_thumb.JPG",130,165,15);var galleries=new Object();galleries[101538]=new gallery(101538,"1472484","Button Bracelets","section427197",[1472484,2364819,2364821,2364822,2364823,2364858,2364860,2364861,2364912,2364926,2364929,2364931,2364934,2364935]);galleries[350746]=new gallery(350746,"6684017,6684011,6684006,6684002,6684000,6325300,6325291,6325278,6325273,6325270","Recollections III- Objects of Remembrance","gallery",[6324272,6324283,6324285,6324287,6324365,6325256,6325262,6325264,6325270,6325273,6325278,6325291,6325300,6684000,6684002,6684006,6684011,6684017]);galleries[92704]=new gallery(92704,"6683760,1309959","Garments","gallery",[1309945,1309947,1309958,1309959,1309986,1309993,1707348,2364976,2364977,2364978,6325314,6683760,6684032]);galleries[235172]=new gallery(235172,"3868629,3868616,3868487,3868484,3868454,3868449,3868442,3868241","Recollections I - childhood","gallery",[3868241,3868442,3868449,3868454,3868484,3868487,3868616,3868629]);galleries[242385]=new gallery(242385,"4013480","Recollections II- past lives","gallery",[4013445,4013452,4013457,4013460,4013464,4013468,4013472,4013474,4013480,4013483,4013488,4013492,4013555]);galleries[83588]=new gallery(83588,"1333343,1310007","Archive","gallery",[1309739,1310007,1310012,1310027,1310038,1310040,1310042,1310144,1310145,1310147,1310150,1333343,1333361,1333393,1338956,1338978,1339024,1339026,1339035,1727224]);var imageSets=new Object();imageSets[1]="6324272,4013480";imageSets[2]="6683760,4013480,1472484,1333343,1310007,1309959";imageSets[3]="6684032,6684017,6684011,6684006,6684002,6684000,6683760,6325314,6325300,6325291,6325278,6325273,6325270,6325264,6325262,6325256,6324365,6324287,6324285,6324283,6324272,4013555,4013492,4013488,4013483,4013480,4013474,4013472,4013468,4013464,4013460,4013457,4013452,4013445,3868629,3868616,3868487,3868484,3868454,3868449,3868442,3868241,2364978,2364977,2364976,2364935,2364934,2364931,2364929,2364926";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/MariaWalker/images";break}switch(a){case 1:b="http://www1.clikpic.com/MariaWalker/images";break}switch(a){case 2:b="http://admin.clikpic.com/MariaWalker/images";break}switch(a){case 24:b="http://tpc15/clikpic/MariaWalker/images";break}switch(a){case 4:b="http://www.clikchurch.com/MariaWalker/images";break}switch(a){case 5:b="http://www2.clikpic.com/MariaWalker/images";break}switch(a){case 22:b="http://tpc5/clikpic/MariaWalker/images";break}switch(a){case 23:b="http://tpc10/clikpic/MariaWalker/images";break}switch(a){case 25:b="http://tpc16/clikpic/MariaWalker/images";break}switch(a){case 15:b="http://www3.clikpic.com/MariaWalker/images";break}switch(a){case 18:b="http://www4.clikpic.com/MariaWalker/images";break}switch(a){case 19:b="http://www5.clikpic.com/MariaWalker/images";break}switch(a){case 31:b="http://www7.clikpic.com/MariaWalker/images";break}switch(a){case 32:b="http://admin2.clikpic.com/MariaWalker/images";break}switch(a){case 33:b="http://www8.clikpic.com/MariaWalker/images";break}switch(a){case 34:b="http://www9.clikpic.com/MariaWalker/images";break}switch(a){case 35:b="http://admin3.clikpic.com/MariaWalker/images";break}switch(a){case 37:b="http://admin4.clikpic.com/MariaWalker/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="Maria Walker: "+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;resizePhotoInfo({centre:true});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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};