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[1193586]=new thumbnail(1193586,"327933","January...1st Rose","001_yellow_rose_thumb.jpg",130,92,18);thumbnails[5796076]=new thumbnail(5796076,"327933","January...2nd Quenton","Quenton_2nd_1st_competition_Ann_Beeton_thumb.jpg",130,195,18);thumbnails[2673402]=new thumbnail(2673402,"327933","January...3rd Blue Fly","Blue_Fly_3rd_Jan_comp_2010-GT12_thumb.jpg",130,88,18);thumbnails[909414]=new thumbnail(909414,"327933","January...HC..Small White ","Small_White_HC_Jan2010_Jill_townsend123_thumb.jpg",130,97,18);thumbnails[3804881]=new thumbnail(3804881,"327933","January...HC.Wrabness Sunrise","_MG_9922_edited-1_thumb.jpg",130,105,18);thumbnails[5796898]=new thumbnail(5796898,"327933","March...1st Co-existence","Co-_existance_edited-1_thumb.jpg",130,184,18);thumbnails[3804849]=new thumbnail(3804849,"327933","March...2nd otter","Phew_Its_getting_OTTER_thumb.jpg",130,184,18);thumbnails[3804872]=new thumbnail(3804872,"327933","March...H/C Ah'so Grassopper","DSC_0459_thumb.jpg",130,113,18);thumbnails[909419]=new thumbnail(909419,"327933","March...HC..Woodmouse","woodmouse_HC_Mar_2010_Jill_Townsend1_thumb.jpg",130,99,18);thumbnails[3807080]=new thumbnail(3807080,"327933","March...H/C Rosey","IMG_4196_thumb.JPG",130,87,18);thumbnails[916749]=new thumbnail(916749,"327933","April...1st Summer Fruits","Summer_Fruits_thumb.jpg",130,130,18);thumbnails[3834874]=new thumbnail(3834874,"327933","April...2nd Growing another dimension","GrowingAnotherDimension_L800_thumb.jpg",130,79,18);thumbnails[3668011]=new thumbnail(3668011,"327933","April...3rd Natalie","DSC_0573_low_res_thumb.jpg",130,190,18);thumbnails[3804852]=new thumbnail(3804852,"327933","April...J/3rd pommegranates","Pomegranates_thumb.jpg",130,159,18);thumbnails[3804844]=new thumbnail(3804844,"327933","April...HC Log Pile","Log_Pile_thumb.jpg",130,87,18);thumbnails[2674039]=new thumbnail(2674039,"327933","April...HC Woodland Walk","Woodland_Walk_thumb.jpg",130,195,18);thumbnails[3834759]=new thumbnail(3834759,"327933","April...HC.Keira","Keira_thumb.jpg",130,168,18);thumbnails[5796708]=new thumbnail(5796708,"327933","May....2nd Leading Light","DSC_0171_LOWRES_LHOUSE_thumb.jpg",130,87,18);thumbnails[5860564]=new thumbnail(5860564,"327933","May...3rd...seashells","seashells_thumb.jpg",130,101,18);thumbnails[5796698]=new thumbnail(5796698,"327933","May....H/C The Beach at Night","beach_at_night_resizd_thumb.jpg",130,52,18);thumbnails[2669337]=new thumbnail(2669337,"327933","June...1st Low tide at Gas house Creek","gas_house_creek_thumb.jpg",130,87,18);thumbnails[4194928]=new thumbnail(4194928,"327933","June...2nd Sitting in the Stalls","sitting_in_the_stalls1_thumb.jpg",130,120,18);thumbnails[1760505]=new thumbnail(1760505,"327933","June...3rd..At Rest","at_rest_thumb.jpg",130,87,18);thumbnails[1760674]=new thumbnail(1760674,"327933","June...H/C Grafitti Harwich Goal","DSCN0120_edited-1_thumb.jpg",130,97,18);thumbnails[5792907]=new thumbnail(5792907,"327933","Aug...1st Frozen Boat","frozen_boat_thumb.jpg",130,144,18);thumbnails[3815498]=new thumbnail(3815498,"327933","Aug...2nd The Ale House","The_Ale_House_CC1_thumb.jpg",130,195,18);thumbnails[1193719]=new thumbnail(1193719,"327933","Aug...3r The Red Hood","_MG_0203_edited-1_thumb.jpg",130,184,18);thumbnails[3815506]=new thumbnail(3815506,"327933","Aug...H/C Our Lord","Our_Lord_CC1_thumb.jpg",130,184,18);thumbnails[928637]=new thumbnail(928637,"327933","Aug...H/C Lady in Red","Lady_in_Red_thumb.jpg",130,154,18);thumbnails[5796717]=new thumbnail(5796717,"327933","Aug...H/C Tower of Power","The_Tower_Of_Power_thumb.jpg",130,184,18);thumbnails[3804887]=new thumbnail(3804887,"328272","January...1st The Look","The-Look_thumb.jpg",130,92,18);thumbnails[5796569]=new thumbnail(5796569,"328272","January...2nd. Denice","Denicebw_thumb.jpg",130,188,18);thumbnails[916743]=new thumbnail(916743,"328272","January...3rd Here's Looking at You","Heres-looking-at-you_thumb.jpg",130,184,18);thumbnails[5795990]=new thumbnail(5795990,"328272","March...1st Been Fishing","been_fishing_1st_Ann_Beeton_Natural_History_comp_thumb.jpg",130,85,18);thumbnails[3804888]=new thumbnail(3804888,"328272","March...2nd Dahlia Days","IMG_4265_bw_1_thumb.jpg",130,87,18);thumbnails[5796911]=new thumbnail(5796911,"328272","March...3rd..Animal or Vegetable","march_Animal_or_Vegetable_3rdedited-2_thumb.jpg",130,92,18);thumbnails[5796107]=new thumbnail(5796107,"328272","March...HC Nearly Gone","nearly_gone_HC_Natural_History_Ann_Beeton_thumb.jpg",130,68,18);thumbnails[3804865]=new thumbnail(3804865,"328272","April...1st Holly","DSC_0627_bw_low_res_thumb.jpg",130,190,18);thumbnails[3807082]=new thumbnail(3807082,"328272","April...3rd Bateman Tower","DSC_0798low_res12_thumb.jpg",130,88,18);thumbnails[3804890]=new thumbnail(3804890,"328272","April...HC Country Rose","Country_Rose_thumb.jpg",130,127,18);thumbnails[5796693]=new thumbnail(5796693,"328272","May....1st Pier Defence","DSC_0053LOWRES_SPIER_thumb.jpg",130,86,18);thumbnails[4194955]=new thumbnail(4194955,"328272","May....2nd North sea battering","DSC_0747WAVES_LOWRES_thumb.jpg",130,68,18);thumbnails[1156753]=new thumbnail(1156753,"328272","May....3rd Anchored down","DSC_1698_over_normal_under_tonemappedLOW_RES_thumb.jpg",130,171,18);thumbnails[3668015]=new thumbnail(3668015,"328272","May...H/C...Stones","stones_thumb.jpg",130,92,18);thumbnails[4194926]=new thumbnail(4194926,"328272","June...2nd Simplicity","Simplicity_thumb.jpg",130,92,18);thumbnails[1212616]=new thumbnail(1212616,"328272","June...3rd Happisborough Light House","Happisburgh_lighthouse_thumb.jpg",130,52,18);thumbnails[3815494]=new thumbnail(3815494,"328272","Aug...1st 17th Century Girl","17th_century_girlCC1_thumb.jpg",130,184,18);thumbnails[3815488]=new thumbnail(3815488,"328272","Aug...2nd Jetty on the Backwaters","jettylow_res_thumb.jpg",130,181,18);thumbnails[916553]=new thumbnail(916553,"328272","Aug...3rd Marilyn","MarilynCC_thumb.jpg",130,184,18);thumbnails[3815495]=new thumbnail(3815495,"328272","Aug...H/C The Passing Storm ","_MG_0195_edited-3_thumb.jpg",130,184,18);thumbnails[916541]=new thumbnail(916541,"327946","Mel","Mel_bw_A4_thumb.jpg",130,184,18);thumbnails[909422]=new thumbnail(909422,"327946","Mel","Mel_A4_thumb.jpg",130,184,18);thumbnails[1169741]=new thumbnail(1169741,"327946","Reg","Reg_finished_A4_thumb.jpg",130,184,18);thumbnails[5792915]=new thumbnail(5792915,"327946","Connor","089_thumb.jpg",130,176,18);thumbnails[916752]=new thumbnail(916752,"327957","European Eagle Owl  ","long_eared_owl_2123_thumb.jpg",130,184,18);thumbnails[3804869]=new thumbnail(3804869,"327957","tawny owl","0011tawny_owl_thumb.jpg",130,194,18);thumbnails[3037503]=new thumbnail(3037503,"69809","Maldon  ","maldon_copy_thumb.jpg",130,92,18);thumbnails[3037510]=new thumbnail(3037510,"69809","Sepia Engine House ","sepia_engine_house_Cornwall1_thumb.jpg",130,184,18);thumbnails[3037513]=new thumbnail(3037513,"69809","The Cruel Sea ","The_Cruel_Sea_b&w__thumb.jpg",130,92,18);thumbnails[912284]=new thumbnail(912284,"69809","Bodium Castle<br>\r\n","Bodium_Castle2_thumb.jpg",130,87,18);thumbnails[3761133]=new thumbnail(3761133,"69809","Morning Glory","Morning_Glory_jane_thumb.jpg",130,92,18);thumbnails[3668010]=new thumbnail(3668010,"69809","Tin Mine","tin_mine_thumb.jpg",130,92,18);thumbnails[4194954]=new thumbnail(4194954,"69809","Mirror Image","mirrorimage_thumb.jpg",130,35,18);thumbnails[3804886]=new thumbnail(3804886,"69809","Carn Brae","carn_brae_22_thumb.jpg",130,173,18);thumbnails[1760508]=new thumbnail(1760508,"327980","Conkers","conkers_thumb.jpg",130,83,18);thumbnails[5796417]=new thumbnail(5796417,"327980","Columbian Lady","canon_winner_thumb.jpg",130,172,18);var galleries=new Object();galleries[327933]=new gallery(327933,"1193719","Colour Competition Winners 2010","gallery",[1193586,5796076,2673402,909414,3804881,5796898,3804849,3804872,909419,3807080,916749,3834874,3668011,3804852,3804844,2674039,3834759,5796708,5860564,5796698,2669337,4194928,1760505,1760674,5792907,3815498,1193719,3815506,928637,5796717]);galleries[328272]=new gallery(328272,"916743","Monochrome Competition Winners 2010","gallery",[3804887,5796569,916743,5795990,3804888,5796911,5796107,3804865,3807082,3804890,5796693,4194955,1156753,3668015,4194926,1212616,3815494,3815488,916553,3815495]);galleries[327946]=new gallery(327946,"5792915,1169741,916541,909422","Portrait Gallery ","gallery",[916541,909422,1169741,5792915]);galleries[327957]=new gallery(327957,"3804869,916752","Animals&Birds gallery","gallery",[916752,3804869]);galleries[69809]=new gallery(69809,"912284"," Land&Seascape Gallery","gallery",[3037503,3037510,3037513,912284,3761133,3668010,4194954,3804886]);galleries[327960]=new gallery(327960,"","flora Gallery","gallery",[]);galleries[327980]=new gallery(327980,"5796417,1760508","Misellaneous Gallery","gallery",[1760508,5796417]);var imageSets=new Object();imageSets[1]="3761133,3668015,3668010,3037513,3037510,3037503,2673402,1760674,1760508,1760505,1212616,1193719,1193586,1156753,928637,916752,916749,916743,916553,912284,909414";imageSets[2]="1193719,916743,912284";imageSets[3]="4194955,4194928,4194926,3834874,3834759,3815506,3815498,3815495,3815494,3815488,3807082,3807080,3804890,3804888,3804887,3804886,3804881,3804872,3804869,3804865,3804852,3804849,3804844,3761133,3668015,3668011,3668010,3037513,3037510,3037503,2674039,2673402,2669337,1760674,1760505,1212616,1193719,1193586,1169741,1156753,928637,916752,916749,916743,916541";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/dougdale/images";break}switch(a){case 1:b="http://www1.clikpic.com/dougdale/images";break}switch(a){case 2:b="http://admin.clikpic.com/dougdale/images";break}switch(a){case 24:b="http://tpc15/clikpic/dougdale/images";break}switch(a){case 4:b="http://www.clikchurch.com/dougdale/images";break}switch(a){case 5:b="http://www2.clikpic.com/dougdale/images";break}switch(a){case 22:b="http://tpc5/clikpic/dougdale/images";break}switch(a){case 23:b="http://tpc10/clikpic/dougdale/images";break}switch(a){case 25:b="http://tpc16/clikpic/dougdale/images";break}switch(a){case 15:b="http://www3.clikpic.com/dougdale/images";break}switch(a){case 18:b="http://www4.clikpic.com/dougdale/images";break}switch(a){case 19:b="http://www5.clikpic.com/dougdale/images";break}switch(a){case 31:b="http://www7.clikpic.com/dougdale/images";break}switch(a){case 32:b="http://admin2.clikpic.com/dougdale/images";break}switch(a){case 33:b="http://www8.clikpic.com/dougdale/images";break}switch(a){case 34:b="http://www9.clikpic.com/dougdale/images";break}switch(a){case 35:b="http://admin3.clikpic.com/dougdale/images";break}switch(a){case 37:b="http://admin4.clikpic.com/dougdale/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="Harwich & Dovercourt Camera Club: "+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();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+'")'})}}};