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[6143622]=new thumbnail(6143622,"344005","","Wreck_3_of_a_Kind005_thumb.jpg",130,92,1);thumbnails[6143630]=new thumbnail(6143630,"344005","","IMG_5128002_thumb.jpg",87,130,1);thumbnails[6143640]=new thumbnail(6143640,"344005","","IMG_5132003_thumb.jpg",87,130,1);thumbnails[6143643]=new thumbnail(6143643,"344005","","A_Wreck_thumb.jpg",87,130,1);thumbnails[6143651]=new thumbnail(6143651,"344005","","IMG_5144004_thumb.jpg",87,130,1);thumbnails[6143742]=new thumbnail(6143742,"344005","","BBB0010012_thumb.jpg",87,130,1);thumbnails[998212]=new thumbnail(998212,"","The staircase at Domaine Gayda","IMG_3722_thumb.jpg",130,87,1);thumbnails[3260488]=new thumbnail(3260488,"16473","","Paxos 229 15  by 1001_thumb.jpg",130,87,1);thumbnails[4839480]=new thumbnail(4839480,"16473","The Bench on the green","E_The_Bench01_thumb.jpg",87,130,1);thumbnails[3260489]=new thumbnail(3260489,"16473","Tess ","Solareyes plus canvas02_thumb.jpg",130,87,1);thumbnails[179191]=new thumbnail(179191,"16473","Reflection","Paxos 240001_thumb.jpg",130,87,1);thumbnails[179190]=new thumbnail(179190,"16473","Reflection","Paxos 073001_thumb.jpg",130,195,1);thumbnails[178625]=new thumbnail(178625,"16473","Life's a Beach","JT's Feet001_thumb.jpg",130,196,1);thumbnails[179192]=new thumbnail(179192,"16473","Reflection","Paxos 241001_thumb.jpg",130,87,1);thumbnails[178619]=new thumbnail(178619,"16473","It's in here somewhere","Feet in Pool001001_thumb.jpg",130,80,1);thumbnails[179185]=new thumbnail(179185,"16473","Marbles","Marbles004001_thumb.jpg",130,87,1);thumbnails[190555]=new thumbnail(190555,"16473","Pebbles on Beach ","Stones on Beach cutdown001_thumb.jpg",130,88,1);thumbnails[178623]=new thumbnail(178623,"16473","My Toes","My Foot001_thumb.jpg",130,85,1);thumbnails[178513]=new thumbnail(178513,"16473","Gull","Gull at an Angle at 72 dpi001001_thumb.jpg",130,89,1);thumbnails[179188]=new thumbnail(179188,"16473","Hammock Rope","Paxos 181001_thumb.jpg",130,195,1);thumbnails[193291]=new thumbnail(193291,"16473","zzzzzzzzzzzzzz","Paxos 113001_thumb.jpg",130,195,1);thumbnails[193293]=new thumbnail(193293,"16473","Red Sunset","Red Sunset001_thumb.jpg",130,84,1);thumbnails[193287]=new thumbnail(193287,"16473","Iron Bridge @ Ironbridge","Ironbridge metalwork001_thumb.jpg",130,72,1);thumbnails[193282]=new thumbnail(193282,"16473","Boat Skeleton","Boat Skeleton001_thumb.jpg",130,51,1);thumbnails[184908]=new thumbnail(184908,"17031","The Colour","Single soldier with the Colour001_thumb.jpg",130,312,1);thumbnails[184912]=new thumbnail(184912,"17031","Gloves & Sword","Gloved Hand on Saddle001_thumb.jpg",130,200,1);thumbnails[184917]=new thumbnail(184917,"17031","The Bowler Brigade","Bowler Hat brigade small001_thumb.jpg",130,203,1);thumbnails[184921]=new thumbnail(184921,"17031","A full gallop","Cavalry & dust001001_thumb.jpg",130,63,1);thumbnails[184930]=new thumbnail(184930,"17031","Gun carriages","Gun Carriage001_thumb.jpg",130,87,1);thumbnails[184934]=new thumbnail(184934,"17031","The Queens Men","Cavalry close up001_thumb.jpg",130,99,1);thumbnails[183432]=new thumbnail(183432,"16915","For Baksheesh","For Baksheesh small001_thumb.jpg",130,163,1);thumbnails[183457]=new thumbnail(183457,"16915","Walking away","Walk away samller001_thumb.jpg",130,196,1);thumbnails[183451]=new thumbnail(183451,"16915","Elderly Corsican Lady","Old Lady001_thumb.jpg",130,203,1);thumbnails[183455]=new thumbnail(183455,"16915","Portuguese Women of War","Portuguese Ladies001_thumb.jpg",130,101,1);thumbnails[204456]=new thumbnail(204456,"18623","Guess who","Venice March 2006 137001_thumb.jpg",130,95,1);thumbnails[204491]=new thumbnail(204491,"18623","A Traffic Jam","Venice March 2006 064001_thumb.jpg",130,87,1);thumbnails[204462]=new thumbnail(204462,"18623","Bridge over untroubled water","Venice March 2006 037001_thumb.jpg",130,87,1);thumbnails[204492]=new thumbnail(204492,"18623","Gondola Taxi Rank","Venice March 2006 1200010011_thumb.jpg",130,87,1);thumbnails[204467]=new thumbnail(204467,"18623","Now where am I?","Venice March 2006 043001_thumb.jpg",130,87,1);thumbnails[204471]=new thumbnail(204471,"18623","Doges Palace and beyond","Venice March 2006 095001_thumb.jpg",130,87,1);thumbnails[204460]=new thumbnail(204460,"18623","Sea Sick?","Venice March 2006 021001_thumb.jpg",130,195,1);thumbnails[204476]=new thumbnail(204476,"18623","Marking time in St Marks","Venice March 2006 101001_thumb.jpg",130,195,1);thumbnails[204484]=new thumbnail(204484,"18623","If looks could kill","Venice March 2006 138001_thumb.jpg",130,195,1);thumbnails[178643]=new thumbnail(178643,"16431","A fine pair","Pear & Slices001_thumb.jpg",130,189,1);thumbnails[184860]=new thumbnail(184860,"16431","Hops","Hops001_thumb.jpg",130,89,1);thumbnails[178641]=new thumbnail(178641,"16431","Apple Slices","Apple Slices001_thumb.jpg",130,85,1);thumbnails[184852]=new thumbnail(184852,"16431","Limes","Limes001_thumb.jpg",130,85,1);thumbnails[184878]=new thumbnail(184878,"16431","Melon chunks","Melon001_thumb.jpg",130,85,1);thumbnails[184879]=new thumbnail(184879,"16431","Kiwi ","Kiwi0011_thumb.jpg",130,85,1);thumbnails[184845]=new thumbnail(184845,"16431","Fruit Drop","Fruit Drop Low Quality 002_thumb.jpg",130,87,1);thumbnails[184836]=new thumbnail(184836,"16431","Carrots on Ice","Carrots 10 small002_thumb.jpg",130,87,1);thumbnails[184840]=new thumbnail(184840,"16431","Too good to eat tomatoes","Tomatoes001001_thumb.jpg",130,87,1);thumbnails[345194]=new thumbnail(345194,"16476","Gerbera","IMG_0173001_thumb.jpg",130,87,1);thumbnails[180749]=new thumbnail(180749,"16476","Dahlia","Flowers Dahlia_thumb.jpg",130,87,1);thumbnails[181097]=new thumbnail(181097,"16476","Daffodil in a spin","Daffodil Swirl cutdown001_thumb.jpg",130,107,1);thumbnails[180753]=new thumbnail(180753,"16476","The Tulip undercarriage","Flowers Tulip 11_thumb.jpg",130,87,1);thumbnails[998140]=new thumbnail(998140,"16476","Poppy Galore","IMG_3726_thumb.jpg",130,87,1);thumbnails[345258]=new thumbnail(345258,"16476","Tulip","IMG_0191001_thumb.jpg",130,87,1);thumbnails[180751]=new thumbnail(180751,"16476","Tulips brightened by the rain","Flowers Tulip 2_thumb.jpg",130,87,1);thumbnails[4834064]=new thumbnail(4834064,"276106","The Flag by Normandy Barcelo Soto","IMG_417402_thumb.jpg",130,88,1);thumbnails[4834072]=new thumbnail(4834072,"276106","The Wreck by Lorraine Saville","Wreck_Lorraine_Saville011_thumb.jpg",87,130,1);thumbnails[4834081]=new thumbnail(4834081,"276106","by Arran Miles","IMG_418801_thumb.jpg",87,130,1);thumbnails[4839259]=new thumbnail(4839259,"276106","Moonlight by Mavina Baker","Moonlight_Mavina_Baker01_thumb.jpg",129,130,1);thumbnails[270918]=new thumbnail(270918,"24101","Across the bay to Fort Corbletts","IMG_0122001_thumb.jpg",87,130,1);thumbnails[270923]=new thumbnail(270923,"24101","Almeria growing wild","IMG_01240011_thumb.jpg",130,87,1);thumbnails[270925]=new thumbnail(270925,"24101","Surfing at Corbletts Beach","IMG_0129001_thumb.jpg",130,87,1);thumbnails[270906]=new thumbnail(270906,"24101","Braye Beach","IMG_0064001_thumb.jpg",130,87,1);thumbnails[270917]=new thumbnail(270917,"24101","Arch Bay","IMG_0089001_thumb.jpg",130,87,1);thumbnails[270904]=new thumbnail(270904,"24101","Braye Jetty","IMG_0054001_thumb.jpg",87,130,1);thumbnails[270908]=new thumbnail(270908,"24101","The Breakwater in a Gale","IMG_0071001_thumb.jpg",130,87,1);thumbnails[270913]=new thumbnail(270913,"24101","Towards Chateau 'Etoc","IMG_0083001_thumb.jpg",130,87,1);thumbnails[270915]=new thumbnail(270915,"24101","A little bit of heaven","IMG_0084001_thumb.jpg",87,130,1);thumbnails[190253]=new thumbnail(190253,"16414","Missed the Boat","Paxos JT slide14001_thumb.jpg",130,195,1);thumbnails[190261]=new thumbnail(190261,"16414","Lifebelt ","Paxos Lifebelt001_thumb.jpg",130,193,1);thumbnails[190226]=new thumbnail(190226,"16414","A Greek fishing boat","Paxos 084001_thumb.jpg",130,195,1);thumbnails[190544]=new thumbnail(190544,"16414","Fenders in the evening light","Fenders001_thumb.jpg",130,195,1);thumbnails[184889]=new thumbnail(184889,"16414","Bikini & Sandals","Bikini top & Sandals001001_thumb.jpg",130,200,1);thumbnails[178516]=new thumbnail(178516,"16414","Beach walkway","Sand dunes final001_thumb.jpg",130,198,1);thumbnails[190616]=new thumbnail(190616,"16414","Boat in the Mist","Boat in the Mist001_thumb.jpg",130,163,1);thumbnails[190624]=new thumbnail(190624,"16414","Cow Parsley on Sea","Cow Parsley by Sea001_thumb.jpg",130,195,1);thumbnails[190810]=new thumbnail(190810,"16414","Sunrise through Agave in Cephalonia","Sun Rise & Agave001_thumb.jpg",130,195,1);thumbnails[183435]=new thumbnail(183435,"16414","Evening Light","Evening Light in Cuitadella small_thumb.jpg",130,87,1);thumbnails[190618]=new thumbnail(190618,"16414","In the Cart","Cart001_thumb.jpg",130,88,1);var galleries=new Object();galleries[344005]=new gallery(344005,"6143742,6143651,6143643,6143640,6143630,6143622","The Wreck","gallery",[6143622,6143630,6143640,6143643,6143651,6143742]);galleries[16473]=new gallery(16473,"4839480,3260489,3260488","Abstract","gallery",[3260488,4839480,3260489,179191,179190,178625,179192,178619,179185,190555,178623,178513,179188,193291,193293,193287,193282]);galleries[17031]=new gallery(17031,"184934,184930,184921,184917,184912,184908","Trooping the Colour","gallery",[184908,184912,184917,184921,184930,184934]);galleries[16915]=new gallery(16915,"183457","People","gallery",[183432,183457,183451,183455]);galleries[18623]=new gallery(18623,"204492,204491,204484,204476,204471,204467,204462,204460,204456","Venice","gallery",[204456,204491,204462,204492,204467,204471,204460,204476,204484]);galleries[16431]=new gallery(16431,"184879,184878,184860,184852,184845,184840,184836,178643,178641","Fruit & Veg","gallery",[178643,184860,178641,184852,184878,184879,184845,184836,184840]);galleries[16476]=new gallery(16476,"345194","Flower Power","gallery",[345194,180749,181097,180753,998140,345258,180751]);galleries[276106]=new gallery(276106,"4839259,4834081,4834072,4834064","Froxfield 4 Art","gallery",[4834064,4834072,4834081,4839259]);galleries[24101]=new gallery(24101,"270918","Alderney","gallery",[270918,270923,270925,270906,270917,270904,270908,270913,270915]);galleries[16414]=new gallery(16414,"190810,190624,190618,190616,190544,190261,190253,190226,184889,183435","Savilles Travels","gallery",[190253,190261,190226,190544,184889,178516,190616,190624,190810,183435,190618]);var imageSets=new Object();imageSets[1]="6143742,6143651,6143643,6143640,6143630,6143622,3260489,3260488,345258,345194,270923,270915,270913,204492,204491,204484,204471,204462,204456,193293,193291,193287,190810,190624,190618,190544,190253,190226,184934,184930,184921,184912,184908,184889,184879,184878,184860,184852,184845,184840,184836,183457,183432,181097,180753,180751,179192,179191,179190,179188,179185,178643,178641,178623,178619,178516,178513";imageSets[2]="6143742,6143651,6143643,6143640,6143630,6143622,4839480,4839259,4834081,4834072,4834064,3260489,3260488,345194,270918,183457";imageSets[3]="6143742,6143651,6143643,6143640,6143630,6143622,4839480,4839259,4834081,4834072,4834064,3260489,3260488,998212,998140,345258,345194,270925,270923,270918,270917,270915,270913,270908,270906,270904,204492,204491,204484,204476,204471,204467,204462,204460,204456,193293,193291,193287,193282,190810,190624,190618,190616,190555,190544,190261,190253,190226,184934,184930";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/lorrainesaville/images";break}switch(a){case 1:b="http://www1.clikpic.com/lorrainesaville/images";break}switch(a){case 2:b="http://admin.clikpic.com/lorrainesaville/images";break}switch(a){case 24:b="http://tpc15/clikpic/lorrainesaville/images";break}switch(a){case 4:b="http://www.clikchurch.com/lorrainesaville/images";break}switch(a){case 5:b="http://www2.clikpic.com/lorrainesaville/images";break}switch(a){case 22:b="http://tpc5/clikpic/lorrainesaville/images";break}switch(a){case 23:b="http://tpc10/clikpic/lorrainesaville/images";break}switch(a){case 25:b="http://tpc16/clikpic/lorrainesaville/images";break}switch(a){case 15:b="http://www3.clikpic.com/lorrainesaville/images";break}switch(a){case 18:b="http://www4.clikpic.com/lorrainesaville/images";break}switch(a){case 19:b="http://www5.clikpic.com/lorrainesaville/images";break}switch(a){case 31:b="http://www7.clikpic.com/lorrainesaville/images";break}switch(a){case 32:b="http://admin2.clikpic.com/lorrainesaville/images";break}switch(a){case 33:b="http://www8.clikpic.com/lorrainesaville/images";break}switch(a){case 34:b="http://www9.clikpic.com/lorrainesaville/images";break}switch(a){case 35:b="http://admin3.clikpic.com/lorrainesaville/images";break}switch(a){case 37:b="http://admin4.clikpic.com/lorrainesaville/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="Works by Lorraine: "+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+'")'})}}};