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[3856144]=new thumbnail(3856144,"234401","","mono1_thumb.jpg",130,95,15);thumbnails[3856145]=new thumbnail(3856145,"234401","","mono21_thumb.jpg",130,96,15);thumbnails[3856147]=new thumbnail(3856147,"234401","","mono3_thumb.jpg",130,98,15);thumbnails[3856149]=new thumbnail(3856149,"234401","","mono4_thumb.jpg",130,92,15);thumbnails[3859757]=new thumbnail(3859757,"","","3_Dark_Forest_thumb.jpg",130,88,15);thumbnails[3860532]=new thumbnail(3860532,"","","Like_men_that_dream_of_mountains_of_Gold1_thumb.jpg",130,95,15);thumbnails[3860984]=new thumbnail(3860984,"","","Calligraphy_cake_thumb.jpg",130,103,15);thumbnails[4062893]=new thumbnail(4062893,"234658","","1Title_page_copy_thumb.jpg",130,94,15);thumbnails[3856160]=new thumbnail(3856160,"234656","","title_babayaga_thumb.jpg",130,88,15);thumbnails[3857349]=new thumbnail(3857349,"234656","","1_thumb.jpg",130,89,15);thumbnails[4062926]=new thumbnail(4062926,"234658","","2Creation_HR_thumb.jpg",130,91,15);thumbnails[3857356]=new thumbnail(3857356,"234656","","21_thumb.jpg",130,86,15);thumbnails[4062931]=new thumbnail(4062931,"234658","","6ID_swallows_thumb.jpg",130,96,15);thumbnails[3857351]=new thumbnail(3857351,"234656","","3_thumb.jpg",130,88,15);thumbnails[4062932]=new thumbnail(4062932,"234658","","9Fist_Neti_thumb.jpg",130,99,15);thumbnails[3857353]=new thumbnail(3857353,"234656","","4_thumb.jpg",130,89,15);thumbnails[4062938]=new thumbnail(4062938,"234658","","13Feet_descending_thumb.jpg",130,90,15);thumbnails[3857358]=new thumbnail(3857358,"234656","","5_thumb.jpg",130,90,15);thumbnails[4062971]=new thumbnail(4062971,"234658","","12_Inanna_hand_ring_thumb.jpg",130,93,15);thumbnails[3857365]=new thumbnail(3857365,"234656","","61_thumb.jpg",130,88,15);thumbnails[4062977]=new thumbnail(4062977,"234658","","14_Deathhand_eye_thumb.jpg",130,88,15);thumbnails[3857367]=new thumbnail(3857367,"234656","","71_thumb.jpg",130,88,15);thumbnails[4062984]=new thumbnail(4062984,"234658","","16NinshuburEnki_thumb.jpg",130,89,15);thumbnails[3857359]=new thumbnail(3857359,"234656","","8_thumb.jpg",130,89,15);thumbnails[4062990]=new thumbnail(4062990,"234658","","23_Dumuzi_copy_thumb.jpg",130,96,15);thumbnails[3857362]=new thumbnail(3857362,"234656","","9_thumb.jpg",130,88,15);thumbnails[4062995]=new thumbnail(4062995,"234658","","26Mighty_wind_crown_thumb.jpg",130,92,15);thumbnails[3857363]=new thumbnail(3857363,"234656","","10_thumb.jpg",130,88,15);thumbnails[4063005]=new thumbnail(4063005,"234658","","29_Stairs_thumb.jpg",130,95,15);thumbnails[4063030]=new thumbnail(4063030,"234658","","Sun_hair_copy_thumb.jpg",130,101,15);thumbnails[3860683]=new thumbnail(3860683,"234823","","It_transforms_the_air_thumb.jpg",130,88,15);thumbnails[4063264]=new thumbnail(4063264,"234823","","Love_is_trampled_on_the_earth1_thumb.jpg",130,94,15);thumbnails[3860611]=new thumbnail(3860611,"234823","","Every_tree_brings_forth_Fruit_thumb.jpg",130,92,15);thumbnails[3860617]=new thumbnail(3860617,"234823","","His_creatures_have_infinite_cause_to_rejoice_thumb.jpg",130,89,15);thumbnails[3860625]=new thumbnail(3860625,"234823","","It_dwelleth_in_our_souls_thumb.jpg",130,98,15);thumbnails[3860627]=new thumbnail(3860627,"234823","","It_inspires_us_with_life_thumb.jpg",130,95,15);thumbnails[3860630]=new thumbnail(3860630,"234823","","It_is_constant_in_the_moon_thumb.jpg",130,87,15);thumbnails[3860647]=new thumbnail(3860647,"234823","","It_joins_hands_thumb.jpg",130,99,15);thumbnails[3860674]=new thumbnail(3860674,"234823","","It_offers_all_things_thumb.jpg",130,98,15);thumbnails[3860677]=new thumbnail(3860677,"234823","","It_reaches_out_in_every_space_thumb.jpg",130,95,15);thumbnails[3860682]=new thumbnail(3860682,"234823","","It_swims_and_plays_in_the_fishes_of_the_sea_thumb.jpg",130,96,15);thumbnails[4063250]=new thumbnail(4063250,"234823","","Like_men_that_dream_of_mountains_of_Gold_thumb.jpg",130,95,15);thumbnails[4122954]=new thumbnail(4122954,"234823","","It_transforms_the_air_1_thumb.jpg",130,88,15);thumbnails[3860686]=new thumbnail(3860686,"234823","","Wounded_Angel_thumb.jpg",130,97,15);thumbnails[3860690]=new thumbnail(3860690,"234823","","You_never_enjoy_the_world_aright_till_the_sea_itself_floweth_in_your_veins_till_you_are_clothes_with_the_heavens_and_crowned_with_the_stars_thumb.jpg",130,66,15);thumbnails[3860672]=new thumbnail(3860672,"234823","","It_knoweth_our_dreams_thumb.jpg",130,65,15);thumbnails[3859797]=new thumbnail(3859797,"234823","","It_knoweth_our_dreams_2_thumb.jpg",130,65,15);thumbnails[3856153]=new thumbnail(3856153,"234400","","paint_land1_thumb.jpg",130,98,15);thumbnails[3856155]=new thumbnail(3856155,"234400","","paint_land2_thumb.jpg",130,98,15);thumbnails[3856157]=new thumbnail(3856157,"234400","","paint_land4_thumb.jpg",130,98,15);thumbnails[3858157]=new thumbnail(3858157,"234400","","paint_land3_thumb.jpg",130,98,15);var galleries=new Object();galleries[234656]=new gallery(234656,"3856160","BABAYAGA","section286350",[3856160,3857349,3857356,3857351,3857353,3857358,3857365,3857367,3857359,3857362,3857363]);galleries[234658]=new gallery(234658,"4062893","INANNA","section286350",[4062893,4062926,4062931,4062932,4062938,4062971,4062977,4062984,4062990,4062995,4063005,4063030]);galleries[234401]=new gallery(234401,"3856149,3856147,3856145,3856144","monoprints","gallery",[3856144,3856145,3856147,3856149]);galleries[234823]=new gallery(234823,"4122954,4063250,3860690,3860686,3860682,3860677,3860674,3860672,3860647,3860630,3860627,3860625,3860617,3860611","Traherne paintings","gallery",[3860683,4063264,3860611,3860617,3860625,3860627,3860630,3860647,3860674,3860677,3860682,4063250,4122954,3860686,3860690,3860672,3859797]);galleries[234400]=new gallery(234400,"3858157,3856157,3856155,3856153","landscapes","gallery",[3856153,3856155,3856157,3858157]);var imageSets=new Object();imageSets[1]="4063264,3860532";imageSets[2]="4122954,4063250,4062893,3860690,3860686,3860682,3860677,3860674,3860672,3860647,3860630,3860627,3860625,3860617,3860611,3856160";imageSets[3]="4122954,4063264,4063250,4063030,4063005,4062995,4062990,4062984,4062977,4062971,4062938,4062932,4062931,4062926,4062893,3860984,3860690,3860686,3860683,3860682,3860677,3860674,3860672,3860647,3860630,3860627,3860625,3860617,3860611,3860532,3859797,3859757,3858157,3857367,3857365,3857363,3857362,3857359,3857358,3857356,3857353,3857351,3857349,3856160,3856157,3856155,3856153,3856149,3856147,3856145";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/EleanorA/images";break}switch(a){case 1:b="http://www1.clikpic.com/EleanorA/images";break}switch(a){case 2:b="http://admin.clikpic.com/EleanorA/images";break}switch(a){case 24:b="http://tpc15/clikpic/EleanorA/images";break}switch(a){case 4:b="http://www.clikchurch.com/EleanorA/images";break}switch(a){case 5:b="http://www2.clikpic.com/EleanorA/images";break}switch(a){case 22:b="http://tpc5/clikpic/EleanorA/images";break}switch(a){case 23:b="http://tpc10/clikpic/EleanorA/images";break}switch(a){case 25:b="http://tpc16/clikpic/EleanorA/images";break}switch(a){case 15:b="http://www3.clikpic.com/EleanorA/images";break}switch(a){case 18:b="http://www4.clikpic.com/EleanorA/images";break}switch(a){case 19:b="http://www5.clikpic.com/EleanorA/images";break}switch(a){case 31:b="http://www7.clikpic.com/EleanorA/images";break}switch(a){case 32:b="http://admin2.clikpic.com/EleanorA/images";break}switch(a){case 33:b="http://www8.clikpic.com/EleanorA/images";break}switch(a){case 34:b="http://www9.clikpic.com/EleanorA/images";break}switch(a){case 35:b="http://admin3.clikpic.com/EleanorA/images";break}switch(a){case 37:b="http://admin4.clikpic.com/EleanorA/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="Eleanor: "+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>"}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+'")'})}}};