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[2805433]=new thumbnail(2805433,"","","pp-(Pianissimo)_thumb.jpg",130,111,5);thumbnails[5819622]=new thumbnail(5819622,"",'"High Fashion"',"High_Fashion_for_web_thumb.jpg",130,173,5);thumbnails[5827659]=new thumbnail(5827659,"",'"Ginger!"',"Ginger-for-web_thumb.jpg",130,174,5);thumbnails[3000804]=new thumbnail(3000804,"286648","Artist's Book Yearbook 08/09","l_08b599ef7ac9ca19ff4e9b921f36bb51_thumb.jpg",130,181,5);thumbnails[3656915]=new thumbnail(3656915,"286648","Time Out Article 2008.","Cealtimeout1_thumb.jpg",130,174,5);thumbnails[3984561]=new thumbnail(3984561,"286648","RA Magazine Summer 09, page 47.","1243719145_thumb.jpg",130,120,5);thumbnails[4108693]=new thumbnail(4108693,"286648","Culture Show, BBC 2, 17th June 2009.","Untitled-11_thumb.jpg",130,306,5);thumbnails[5049487]=new thumbnail(5049487,"286648","Dazed Digital - 4/11/09","web_thumb.jpg",130,153,5);thumbnails[5049470]=new thumbnail(5049470,"286648","Spoonfed.co.uk - 5/11/09","Picture_7_thumb.jpg",130,120,5);thumbnails[5244244]=new thumbnail(5244244,"286648","Guardian Guide - 12/12/09","g2_thumb.jpg",130,89,5);thumbnails[4582102]=new thumbnail(4582102,"265443",'"The Postcode Gang"',"Postcode-Gang-for-web_thumb.jpg",130,79,5);thumbnails[4896854]=new thumbnail(4896854,"265443",'"The Boy Next Door" ',"The-Boy-Next-Door-for-web_thumb.jpg",130,91,5);thumbnails[5147653]=new thumbnail(5147653,"265443",'"On British Youth"',"On-British-Youth-for-web_thumb.jpg",130,172,5);thumbnails[5168783]=new thumbnail(5168783,"265443",'"Living Doll"',"Living-Doll-for-web_thumb.jpg",130,173,5);thumbnails[5168790]=new thumbnail(5168790,"265443",'"One Sick Puppy"',"One-Sick-Puppy-for-web_thumb.jpg",130,173,5);thumbnails[5168795]=new thumbnail(5168795,"265443",'"Raving Mad"',"Raving-Mad-for-web_thumb.jpg",130,87,5);thumbnails[5244176]=new thumbnail(5244176,"265443",'"Manderley" ',"IMG_4372_thumb.jpg",130,93,5);thumbnails[5244472]=new thumbnail(5244472,"265443",'"Maderley PV"',"JJ27_thumb.jpg",130,90,5);thumbnails[2805412]=new thumbnail(2805412,"170924","pp (Pianissimo)","Celia Warnants 4_thumb.jpg",130,87,5);thumbnails[2805413]=new thumbnail(2805413,"170924","pp (Pianissimo) (Detail)","Celia Warnants 3_thumb.jpg",130,87,5);thumbnails[2805415]=new thumbnail(2805415,"170924","Installation Shot of 'Show RCA'. ","Celia Warnants 2_thumb.jpg",130,87,5);thumbnails[2805416]=new thumbnail(2805416,"170924","Not Fit for Purpose","4ar200840033040ast_thumb.jpg",130,173,5);thumbnails[2805417]=new thumbnail(2805417,"170924","Not Fit for Purpose (Detail)","yt6200803033203ast_thumb.jpg",130,177,5);thumbnails[2805418]=new thumbnail(2805418,"170924","Paper Work.  2007-2008.","Celia Warnants 5_thumb.jpg",130,194,5);thumbnails[2805420]=new thumbnail(2805420,"170924","Pay-Per-View 1,2&3. 2008.","Celia Warnants 1_thumb.jpg",130,87,5);thumbnails[2805422]=new thumbnail(2805422,"170924","Pay-Per-View 1 (Detail)","txd200832034432ast_thumb.jpg",130,177,5);thumbnails[2805423]=new thumbnail(2805423,"170924","Pay-Per-View 2 (Detail)","0rnr200858034558ast-1_thumb.jpg",130,177,5);thumbnails[2805424]=new thumbnail(2805424,"170924","Pay-Per-View 3 (Detail)","elt200838034638ast_thumb.jpg",130,177,5);thumbnails[2900689]=new thumbnail(2900689,"170924","'A Fiddle'","100_3532_thumb.jpg",129,189,5);thumbnails[2900715]=new thumbnail(2900715,"170924","'A Fiddle' (detail).","100_3535_thumb.jpg",129,186,5);thumbnails[2928781]=new thumbnail(2928781,"170924","'A Fiddle' (Installation shot)","GetAttachment_thumb.jpg",130,97,5);thumbnails[3885031]=new thumbnail(3885031,"170924","'A Fiddle' (Installation shot)","violinforweb_thumb.jpg",130,196,5);thumbnails[4270438]=new thumbnail(4270438,"170924","Catalogue","Picture_9_thumb.jpg",130,89,5);thumbnails[5731151]=new thumbnail(5731151,"307585","'Shotgun Clare' Shopper.","25858_347139424450_248971934450_3341184_1232192_n_thumb.jpg",130,87,5);thumbnails[5439474]=new thumbnail(5439474,"307585","'Shotgun Clare' Shopper.  <br>\r\n","Picture_112_thumb.jpg",130,192,5);thumbnails[5439484]=new thumbnail(5439484,"307585","'Shotgun Clare' Shopper.","Picture_212_thumb.jpg",130,169,5);thumbnails[5731152]=new thumbnail(5731152,"307585","'Shotgun Clare' Shopper.","25858_347139439450_248971934450_3341185_3076426_n_thumb.jpg",130,87,5);thumbnails[5807582]=new thumbnail(5807582,"307585","Shotgun Clare Wallpaper","Picture_212_0831634C-24E8-5EC4-4FB11CD7A01BFA72_thumb.jpg",130,244,5);thumbnails[5842331]=new thumbnail(5842331,"307585","Wallpaper","Picture_1_thumb.jpg",130,97,5);thumbnails[3555617]=new thumbnail(3555617,"170925","'Shotgun Clare'","29_thumb.jpg",130,169,5);thumbnails[3555752]=new thumbnail(3555752,"170925","'Well, Really!'","37_thumb.jpg",130,170,5);thumbnails[3555755]=new thumbnail(3555755,"170925","'The Heroin(e)'","38_thumb.jpg",130,169,5);thumbnails[3000801]=new thumbnail(3000801,"170925","'After School'","after school_thumb.jpg",130,188,5);thumbnails[3000802]=new thumbnail(3000802,"170925","'Shotgun Clare'","clare_thumb.jpg",130,187,5);thumbnails[3000803]=new thumbnail(3000803,"170925","'Well, Really'","Well, Really!_thumb.jpg",130,180,5);thumbnails[3000805]=new thumbnail(3000805,"170925","'In a Bind'","l_c848cf9ca176314f2db73c931619238d_thumb.jpg",130,181,5);thumbnails[3000806]=new thumbnail(3000806,"170925","'Stories for Bedtime'","Stories For Bedtime (Covers)_thumb.jpg",130,43,5);thumbnails[3000807]=new thumbnail(3000807,"170925","'Stories for Bedtime'","Stories For Bedtime(spines)_thumb.jpg",130,236,5);thumbnails[3000809]=new thumbnail(3000809,"170925","'Stories for Bedtime' (Detail)","Stories For Bedtime (Detail)ppd_thumb.jpg",130,117,5);thumbnails[3774883]=new thumbnail(3774883,"175416","Commissioned for a Paper Wedding Anniversary.<br>\r\n<br>\r\n2008","Rose1_thumb.jpg",130,184,5);thumbnails[2805444]=new thumbnail(2805444,"175416","Rose Paper (in box).","n502595652_1113053_3520_thumb.jpg",130,149,5);var galleries=new Object();galleries[286648]=new gallery(286648,"5244244,5049487,5049470,4108693,3984561,3656915,3000804","Press and Articles","section343923",[3000804,3656915,3984561,4108693,5049487,5049470,5244244]);galleries[299342]=new gallery(299342,"","HASTE &#8800 SPEED ","gallery",[]);galleries[265443]=new gallery(265443,"5147653","On British Youth","gallery",[4582102,4896854,5147653,5168783,5168790,5168795,5244176,5244472]);galleries[170924]=new gallery(170924,"2805413","Paper Work","gallery",[2805412,2805413,2805415,2805416,2805417,2805418,2805420,2805422,2805423,2805424,2900689,2900715,2928781,3885031,4270438]);galleries[307585]=new gallery(307585,"5439474","Merchandise","section368236",[5731151,5439474,5439484,5731152,5807582,5842331]);galleries[170925]=new gallery(170925,"3000803","Stories for Bedtime","gallery",[3555617,3555752,3555755,3000801,3000802,3000803,3000805,3000806,3000807,3000809]);galleries[175416]=new gallery(175416,"2805444","Commissions","gallery",[3774883,2805444]);var imageSets=new Object();imageSets[1]="5842331,5807582,5731152,5731151,5439484,5439474,5168795,5168790,5168783,5147653,4896854,4582102";imageSets[2]="5439474,5147653,3000803,2805444,2805413";imageSets[3]="5842331,5827659,5819622,5807582,5731152,5731151,5439484,5439474,5244472,5244244,5244176,5168795,5168790,5168783,5147653,5049487,5049470,4896854,4582102,4270438,4108693,3984561,3885031,3774883,3656915,3555755,3555752,3555617,3000809,3000807,3000806,3000805,3000804,3000803,3000802,3000801,2928781,2900715,2900689,2805444,2805433,2805424,2805423,2805422,2805420,2805418,2805417,2805416,2805415,2805413";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/Kilwax/images";break}switch(a){case 1:b="http://www1.clikpic.com/Kilwax/images";break}switch(a){case 2:b="http://admin.clikpic.com/Kilwax/images";break}switch(a){case 24:b="http://tpc15/clikpic/Kilwax/images";break}switch(a){case 4:b="http://www.clikchurch.com/Kilwax/images";break}switch(a){case 5:b="http://www2.clikpic.com/Kilwax/images";break}switch(a){case 22:b="http://tpc5/clikpic/Kilwax/images";break}switch(a){case 23:b="http://tpc10/clikpic/Kilwax/images";break}switch(a){case 25:b="http://tpc16/clikpic/Kilwax/images";break}switch(a){case 15:b="http://www3.clikpic.com/Kilwax/images";break}switch(a){case 18:b="http://www4.clikpic.com/Kilwax/images";break}switch(a){case 19:b="http://www5.clikpic.com/Kilwax/images";break}switch(a){case 31:b="http://www7.clikpic.com/Kilwax/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Kilwax/images";break}switch(a){case 33:b="http://www8.clikpic.com/Kilwax/images";break}switch(a){case 34:b="http://www9.clikpic.com/Kilwax/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Kilwax/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Kilwax/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="Ceal Warnants : "+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>"}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+'")'})}}};