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[1208909]=new thumbnail(1208909,"86485","","SoftCity No1001_thumb.jpg",130,178,18);thumbnails[1208915]=new thumbnail(1208915,"86485","","SoftCity No4004_thumb.jpg",130,177,18);thumbnails[1208911]=new thumbnail(1208911,"86485","","SoftCity No2002_thumb.jpg",130,178,18);thumbnails[1208917]=new thumbnail(1208917,"86485","","SoftCity No5005_thumb.jpg",130,179,18);thumbnails[1208913]=new thumbnail(1208913,"86485","","SoftCity No3003_thumb.jpg",130,178,18);thumbnails[1208918]=new thumbnail(1208918,"86485","","SoftCity No6006_thumb.jpg",130,178,18);thumbnails[1208922]=new thumbnail(1208922,"86485","","SoftCity No9009_thumb.jpg",130,178,18);thumbnails[1208919]=new thumbnail(1208919,"86485","","SoftCity No7007_thumb.jpg",130,178,18);thumbnails[1209464]=new thumbnail(1209464,"86482","","A3 FI 1HSquare_thumb.jpg",130,125,18);thumbnails[1208964]=new thumbnail(1208964,"86482","","A3 FI 1H001_thumb.jpg",130,41,18);thumbnails[1209394]=new thumbnail(1209394,"86482","","A3 FI 2H002_thumb.jpg",130,41,18);thumbnails[1209401]=new thumbnail(1209401,"86482","","A3 FI 3H003_thumb.jpg",130,41,18);thumbnails[1209403]=new thumbnail(1209403,"86482","","A3 FI 4H004_thumb.jpg",130,41,18);thumbnails[1209410]=new thumbnail(1209410,"86482","","A3 FI 5H005_thumb.jpg",130,41,18);thumbnails[1209411]=new thumbnail(1209411,"86482","","A3 FI 6H006_thumb.jpg",130,41,18);thumbnails[1209414]=new thumbnail(1209414,"86482","","A3 FI 7H007_thumb.jpg",130,41,18);thumbnails[1209415]=new thumbnail(1209415,"86482","","A3 FI 8H008_thumb.jpg",130,41,18);thumbnails[3639073]=new thumbnail(3639073,"86480","","AutobioNo1F_thumb.jpg",130,91,18);thumbnails[3639074]=new thumbnail(3639074,"86480","","AutobioNo2Replacement_thumb.jpg",130,183,18);thumbnails[6420684]=new thumbnail(6420684,"354533","","DE--Bible--Map_thumb.jpg",91,130,18);thumbnails[6420687]=new thumbnail(6420687,"354533","","DE-Mary-Poppins--Egypt_thumb.jpg",90,130,18);thumbnails[6420786]=new thumbnail(6420786,"354533","","DE-Towel-Shells--Map_thumb.jpg",91,130,18);thumbnails[6420789]=new thumbnail(6420789,"354533","","DE-Mary-Poppins-Books_thumb.jpg",90,130,18);thumbnails[1209852]=new thumbnail(1209852,"86486",'"They shall grow not old"',"No1-They-Shall-Grow-Not-Old_thumb.jpg",130,130,18);thumbnails[1209840]=new thumbnail(1209840,"86486",'"Who\'s your lady friend?"',"No2-Whos-Your-Lady-Friend_thumb.jpg",130,130,18);thumbnails[1209878]=new thumbnail(1209878,"86486",'"If we return"',"No3-If-We-Return_thumb.jpg",130,130,18);thumbnails[1209853]=new thumbnail(1209853,"86486",'"Daisy Daisy"',"No4-Daisy-Daisy_thumb.jpg",130,130,18);thumbnails[1209873]=new thumbnail(1209873,"86486",'"If I should die"',"No5-If-I-Should-Die_thumb.jpg",130,130,18);thumbnails[5989825]=new thumbnail(5989825,"86486",'"In all men\'s hearts"',"No6-In-all-mens-hearts_thumb.jpg",130,130,18);thumbnails[5989842]=new thumbnail(5989842,"86486",'"If you were the only girl"',"No7-If-you-were-the-only-girl_thumb.jpg",130,130,18);thumbnails[1209875]=new thumbnail(1209875,"86486",'"None that go return again"',"No8-None-that-go-return_thumb.jpg",130,130,18);thumbnails[1209870]=new thumbnail(1209870,"86486",'"Goodbye-ee, Goodbye-ee"',"No12-Goodbye-ee-Goodbye-e_thumb.jpg",130,130,18);thumbnails[1209836]=new thumbnail(1209836,"86486",'"I dont want to be a soldier"',"No11-I-Dont-Want-to-be-a-_thumb.jpg",130,130,18);thumbnails[5989851]=new thumbnail(5989851,"86486",'"K-K-K-Katy beautiful Katy"',"No10-K-K-K-Katy-beautiful-Katy_thumb.jpg",130,130,18);thumbnails[1209872]=new thumbnail(1209872,"86486",'"Have you news of my boy Jack?"',"No9-Have-You-News-of-My-Jack_thumb.jpg",130,130,18);thumbnails[2894872]=new thumbnail(2894872,"142714","","Web1UpparkKeyHole001F_thumb.jpg",130,130,18);thumbnails[5745441]=new thumbnail(5745441,"142714","","Web2WWellsTreeFinalF_thumb.jpg",130,130,18);thumbnails[2894896]=new thumbnail(2894896,"142714","","Web3MottisfontAllum007F_thumb.jpg",130,130,18);thumbnails[2894881]=new thumbnail(2894881,"142714","","Web4MottisfontStatue4FinalF_thumb.jpg",130,130,18);thumbnails[5745443]=new thumbnail(5745443,"142714","","Web5IppingCommonFinal002F_thumb.jpg",130,130,18);thumbnails[5745448]=new thumbnail(5745448,"142714","","Web6IppingCommonBarkFinalF_thumb.jpg",130,129,18);thumbnails[5745451]=new thumbnail(5745451,"142714","","Web7QEParkBeechLeaves1F_thumb.jpg",130,129,18);thumbnails[2894891]=new thumbnail(2894891,"142714","","Web8MottisfontRiver2005F_thumb.jpg",130,130,18);thumbnails[2894884]=new thumbnail(2894884,"142714","","Web9WestDeanYewBark003F_thumb.jpg",130,130,18);thumbnails[2894889]=new thumbnail(2894889,"142714","","Web10HAmpnerStatue004F_thumb.jpg",130,130,18);thumbnails[2894898]=new thumbnail(2894898,"142714","","Web11WestDeanSpring008FF_thumb.jpg",130,130,18);thumbnails[2894901]=new thumbnail(2894901,"142714","","Web12MottisfontLamp009F_thumb.jpg",130,130,18);thumbnails[2150210]=new thumbnail(2150210,"86701","","DillonJCyclamen1FinalRetouchedPCJPG_thumb.jpg",130,93,18);thumbnails[2150212]=new thumbnail(2150212,"86701","","DillonJCyclamen2FinalRetouchedPCJPG_thumb.jpg",130,93,18);thumbnails[2150213]=new thumbnail(2150213,"86701","","DillonJCyclamen3FinalRetouchedPCJPG_thumb.jpg",130,93,18);thumbnails[2150214]=new thumbnail(2150214,"86701","","DillonJCyclamen4FinalRetouchedPCJPG_thumb.jpg",130,93,18);thumbnails[1207118]=new thumbnail(1207118,"86701","","WhiteIrish2016F1_thumb.jpg",130,98,18);thumbnails[2902924]=new thumbnail(2902924,"86701","","OrchidPinkSingleMRRFRep007_thumb.jpg",130,173,18);thumbnails[2902916]=new thumbnail(2902916,"86701","","OrchidCreamTRRFRep003_thumb.jpg",130,173,18);thumbnails[2902917]=new thumbnail(2902917,"86701","","OrchidPinkSingleMRLFRep006_thumb.jpg",130,173,18);thumbnails[6407599]=new thumbnail(6407599,"86701","","Birdshead1Final_Amended_thumb.jpg",130,97,18);thumbnails[6407601]=new thumbnail(6407601,"86701","","Birdshead2Final_thumb.jpg",130,198,18);thumbnails[6407604]=new thumbnail(6407604,"86701","","Birdshead3Final_thumb.jpg",130,198,18);thumbnails[1207103]=new thumbnail(1207103,"86701","","YellowTullipFinal019_thumb.jpg",130,98,18);thumbnails[1207129]=new thumbnail(1207129,"86479","","StocksSPeas1011F_thumb.jpg",130,177,18);thumbnails[1207154]=new thumbnail(1207154,"86479","","SweetPeasCU013F_thumb.jpg",130,129,18);thumbnails[1207130]=new thumbnail(1207130,"86479","","StocksSPeas2012F_thumb.jpg",130,176,18);thumbnails[1207152]=new thumbnail(1207152,"86479","","StocksCU010F_thumb.jpg",130,127,18);thumbnails[1208872]=new thumbnail(1208872,"86479","","Freisia1001_thumb.jpg",130,130,18);thumbnails[6419564]=new thumbnail(6419564,"86479","","GladioliPinkFinal_thumb.jpg",85,130,18);thumbnails[1208880]=new thumbnail(1208880,"86479","","Freisia2002_thumb.jpg",130,130,18);thumbnails[6419552]=new thumbnail(6419552,"86479","","GladioliGoldFinal_thumb.jpg",85,130,18);var galleries=new Object();galleries[86485]=new gallery(86485,"1208909","Soft City","gallery",[1208909,1208915,1208911,1208917,1208913,1208918,1208922,1208919]);galleries[86482]=new gallery(86482,"1209464","Empire","gallery",[1209464,1208964,1209394,1209401,1209403,1209410,1209411,1209414,1209415]);galleries[86480]=new gallery(86480,"3639074","Autobiography","gallery",[3639073,3639074]);galleries[354533]=new gallery(354533,"6420789,6420786,6420687,6420684","Looking Glass","gallery",[6420684,6420687,6420786,6420789]);galleries[86486]=new gallery(86486,"1209852","England Remembered","section228914",[1209852,1209840,1209878,1209853,1209873,5989825,5989842,1209875,1209870,1209836,5989851,1209872]);galleries[142714]=new gallery(142714,"2894884","Scars Upon My Heart","section228914",[2894872,5745441,2894896,2894881,5745443,5745448,5745451,2894891,2894884,2894889,2894898,2894901]);galleries[178110]=new gallery(178110,"","Thinking of You","section228914",[]);galleries[178111]=new gallery(178111,"","Exotica","section270516",[]);galleries[86701]=new gallery(86701,"1207118","Budding","section270516",[2150210,2150212,2150213,2150214,1207118,2902924,2902916,2902917,6407599,6407601,6407604,1207103]);galleries[86479]=new gallery(86479,"1207129","Bloom","section270516",[1207129,1207154,1207130,1207152,1208872,6419564,1208880,6419552]);var imageSets=new Object();imageSets[1]="1209878";imageSets[2]="3639074,2894884,1209852,1209464,1208909,1207129,1207118";imageSets[3]="6420789,6420786,6420687,6420684,6419564,6419552,6407604,6407601,6407599,5989851,5989842,5989825,5745451,5745448,5745443,5745441,3639074,3639073,2902924,2902917,2902916,2894901,2894898,2894896,2894891,2894889,2894884,2894881,2894872,2150214,2150213,2150212,2150210,1209878,1209875,1209873,1209872,1209870,1209853,1209852,1209840,1209836,1209464,1209415,1209414,1209411,1209410,1209403,1209401,1209394";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/jackydillon/images";break}switch(a){case 1:b="http://www1.clikpic.com/jackydillon/images";break}switch(a){case 2:b="http://admin.clikpic.com/jackydillon/images";break}switch(a){case 24:b="http://tpc15/clikpic/jackydillon/images";break}switch(a){case 4:b="http://www.clikchurch.com/jackydillon/images";break}switch(a){case 5:b="http://www2.clikpic.com/jackydillon/images";break}switch(a){case 22:b="http://tpc5/clikpic/jackydillon/images";break}switch(a){case 23:b="http://tpc10/clikpic/jackydillon/images";break}switch(a){case 25:b="http://tpc16/clikpic/jackydillon/images";break}switch(a){case 15:b="http://www3.clikpic.com/jackydillon/images";break}switch(a){case 18:b="http://www4.clikpic.com/jackydillon/images";break}switch(a){case 19:b="http://www5.clikpic.com/jackydillon/images";break}switch(a){case 31:b="http://www7.clikpic.com/jackydillon/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jackydillon/images";break}switch(a){case 33:b="http://www8.clikpic.com/jackydillon/images";break}switch(a){case 34:b="http://www9.clikpic.com/jackydillon/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jackydillon/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jackydillon/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("section228914"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section228914.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("section228914"!=""){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="Jacky Dillon Photography: "+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+'")'})}}};