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[6195063]=new thumbnail(6195063,"345243","Mel","IMG_0581_thumb.jpg",130,195,15);thumbnails[6195065]=new thumbnail(6195065,"345243","Mel","IMG_0583_thumb.jpg",130,195,15);thumbnails[6195067]=new thumbnail(6195067,"345243","Chloe","IMG_1333_thumb.jpg",130,195,15);thumbnails[6195069]=new thumbnail(6195069,"345243","Chloe","IMG_1475bw_thumb.jpg",130,195,15);thumbnails[6195073]=new thumbnail(6195073,"345243","Hair by Headquarters, Exeter","IMG_2030_thumb.jpg",130,195,15);thumbnails[6195074]=new thumbnail(6195074,"345243","Hair by Headquarters, Exeter","IMG_2151_thumb.jpg",130,87,15);thumbnails[6195076]=new thumbnail(6195076,"345243","Helen","IMG_2459_thumb.jpg",130,87,15);thumbnails[6195079]=new thumbnail(6195079,"345243","Helen","IMG_2483a_thumb.jpg",130,87,15);thumbnails[6195083]=new thumbnail(6195083,"345243","Makeup by Adele Coxon","IMG_2656_thumb.jpg",130,195,15);thumbnails[6195087]=new thumbnail(6195087,"345243","Makeup by Adele Coxon","IMG_2907_thumb.jpg",130,195,15);thumbnails[6195091]=new thumbnail(6195091,"345243","Victoria","IMG_3000b_copy_thumb.jpg",130,195,15);thumbnails[6195093]=new thumbnail(6195093,"345243","Katie","IMG_3599_thumb.jpg",130,87,15);thumbnails[6195094]=new thumbnail(6195094,"345243","Ellie","IMG_4388a_thumb.jpg",130,195,15);thumbnails[6195096]=new thumbnail(6195096,"345243","Chantelle","IMG_4753_thumb.jpg",130,87,15);thumbnails[6195097]=new thumbnail(6195097,"345243","Makeup by Justine Gillard","IMG_5416_thumb.jpg",130,195,15);thumbnails[6195098]=new thumbnail(6195098,"345243","Brooke","IMG_5549_thumb.jpg",130,87,15);thumbnails[6195099]=new thumbnail(6195099,"345243","Beata","IMG_5694_thumb.jpg",130,195,15);thumbnails[6195101]=new thumbnail(6195101,"345243","Victoria","IMG_6018_thumb.jpg",130,195,15);thumbnails[6195103]=new thumbnail(6195103,"345243","Victoria","IMG_6181_thumb.jpg",130,195,15);thumbnails[6195115]=new thumbnail(6195115,"345243","Hannah","IMG_6411aaa_thumb.jpg",130,175,15);thumbnails[6195117]=new thumbnail(6195117,"345243","Sophia","IMG_6493_thumb.jpg",130,173,15);thumbnails[6195118]=new thumbnail(6195118,"345243","Hayley","IMG_6574_thumb.jpg",130,172,15);thumbnails[6195122]=new thumbnail(6195122,"345243","Debbie","IMG_6427_thumb.jpg",130,87,15);thumbnails[6195123]=new thumbnail(6195123,"345243","Kylee","IMG_6803_thumb.jpg",130,87,15);thumbnails[6195125]=new thumbnail(6195125,"345243","Kylee","IMG_6828_thumb.jpg",130,195,15);thumbnails[6195128]=new thumbnail(6195128,"345243","Kylee","IMG_6829_thumb.jpg",130,195,15);thumbnails[6195130]=new thumbnail(6195130,"345243","Kylee","IMG_6871_thumb.jpg",130,87,15);thumbnails[6195132]=new thumbnail(6195132,"345243","Victoria","IMG_6949_thumb.jpg",130,87,15);thumbnails[6195133]=new thumbnail(6195133,"345243","Hayley","IMG_7366_thumb.jpg",130,87,15);thumbnails[6195134]=new thumbnail(6195134,"345243","Steffie","IMG_7472_thumb.jpg",130,195,15);thumbnails[6195135]=new thumbnail(6195135,"345243","Katie","IMG_7663_thumb.jpg",130,195,15);thumbnails[6195136]=new thumbnail(6195136,"345243","Helen","IMG_7744asml_thumb.jpg",130,195,15);thumbnails[6195137]=new thumbnail(6195137,"345243","Sarah","IMG_7836a_thumb.jpg",130,195,15);thumbnails[6195138]=new thumbnail(6195138,"345243","Sarah","IMG_7870_thumb.jpg",130,87,15);thumbnails[6195140]=new thumbnail(6195140,"345243","Sarah","IMG_8334a_thumb.jpg",130,195,15);thumbnails[6195143]=new thumbnail(6195143,"345243","Aalia","IMG_8956_thumb.jpg",130,87,15);thumbnails[6195144]=new thumbnail(6195144,"345243","Linda","IMG_9154_thumb.jpg",130,87,15);thumbnails[6195147]=new thumbnail(6195147,"345243","Milena","IMG_9405_thumb.jpg",130,195,15);thumbnails[6195148]=new thumbnail(6195148,"345243","Katie","montagea_thumb.jpg",130,195,15);thumbnails[6195150]=new thumbnail(6195150,"345243","Sophia","montagese1a_thumb.jpg",130,130,15);thumbnails[6529139]=new thumbnail(6529139,"345243","Ashley","IMG_8513bsml_thumb.jpg",130,104,15);thumbnails[6529140]=new thumbnail(6529140,"345243","Kylee","IMG_8847sml_thumb.jpg",130,195,15);thumbnails[6529145]=new thumbnail(6529145,"345243","Kylee","IMG_8897sml_thumb.jpg",130,87,15);thumbnails[6528927]=new thumbnail(6528927,"345244","Peyton","24177_381655803772_105528168772_3830257_2028126_n_thumb.jpg",130,195,15);thumbnails[6528930]=new thumbnail(6528930,"345244","Peyton","24177_381655813772_105528168772_3830258_810222_n_thumb.jpg",130,195,15);thumbnails[6528931]=new thumbnail(6528931,"345244","Peyton","24177_381655833772_105528168772_3830259_5939551_n_thumb.jpg",130,195,15);thumbnails[6528934]=new thumbnail(6528934,"345244","Katie","24757_376500323772_105528168772_3697063_5485940_n_thumb.jpg",130,195,15);thumbnails[6528936]=new thumbnail(6528936,"345244","Katie","24757_376500338772_105528168772_3697065_2412369_n_thumb.jpg",130,195,15);thumbnails[6528937]=new thumbnail(6528937,"345244","Katie","24757_376500353772_105528168772_3697067_8204683_n_thumb.jpg",130,195,15);thumbnails[6528938]=new thumbnail(6528938,"345244","Katie","24757_376500363772_105528168772_3697068_963443_n_thumb.jpg",130,195,15);thumbnails[6528940]=new thumbnail(6528940,"345244","Katie","24757_376500373772_105528168772_3697069_1976880_n_thumb.jpg",130,195,15);thumbnails[6528941]=new thumbnail(6528941,"345244","Susan","25547_368156288772_105528168772_3669832_4590110_n_thumb.jpg",130,87,15);thumbnails[6528943]=new thumbnail(6528943,"345244","Susan","25547_368156308772_105528168772_3669833_1977463_n_thumb.jpg",130,87,15);thumbnails[6528945]=new thumbnail(6528945,"345244","Susan","25547_368156348772_105528168772_3669834_2104109_n_thumb.jpg",130,87,15);thumbnails[6528948]=new thumbnail(6528948,"345244","Susan","25547_368156408772_105528168772_3669835_2665938_n_thumb.jpg",130,87,15);thumbnails[6528951]=new thumbnail(6528951,"345244","Susan","25547_368202493772_105528168772_3670058_1769313_n_thumb.jpg",130,87,15);thumbnails[6528958]=new thumbnail(6528958,"345244","Susan","25547_368202548772_105528168772_3670059_5727510_n_thumb.jpg",130,87,15);thumbnails[6528960]=new thumbnail(6528960,"345244","Susan","25547_368202613772_105528168772_3670060_2444430_n_thumb.jpg",130,195,15);thumbnails[6528966]=new thumbnail(6528966,"345244","Susan","25547_368202643772_105528168772_3670061_632597_n_thumb.jpg",130,195,15);thumbnails[6528968]=new thumbnail(6528968,"345244","Susan","25547_368202718772_105528168772_3670062_8169716_n_thumb.jpg",130,87,15);thumbnails[6528969]=new thumbnail(6528969,"345244","Susan","25547_368216253772_105528168772_3670092_5746222_n_thumb.jpg",130,195,15);thumbnails[6528972]=new thumbnail(6528972,"345244","Susan","27709_396557643772_105528168772_4158957_1665322_n_thumb.jpg",130,195,15);thumbnails[6528980]=new thumbnail(6528980,"345244","Susan","27709_396557678772_105528168772_4158960_2698898_n_thumb.jpg",130,195,15);thumbnails[6528981]=new thumbnail(6528981,"345244","Susan","27709_396557698772_105528168772_4158964_8298913_n_thumb.jpg",130,195,15);thumbnails[6528982]=new thumbnail(6528982,"345244","Susan","27709_396562988772_105528168772_4159078_622689_n_thumb.jpg",130,87,15);thumbnails[6528988]=new thumbnail(6528988,"345244","Susan","27709_396563023772_105528168772_4159079_6757298_n_thumb.jpg",130,87,15);thumbnails[6528991]=new thumbnail(6528991,"345244","Susan","27709_396563033772_105528168772_4159080_7144201_n_thumb.jpg",130,195,15);thumbnails[6528992]=new thumbnail(6528992,"345244","Ollie and Peyton","31499_387752768772_105528168772_3970233_1643403_n_thumb.jpg",130,195,15);thumbnails[6528994]=new thumbnail(6528994,"345244","Ollie and Peyton","31499_387752778772_105528168772_3970234_3187062_n_thumb.jpg",130,195,15);thumbnails[6528995]=new thumbnail(6528995,"345244","Ollie and Peyton","31499_387752803772_105528168772_3970236_6506915_n_thumb.jpg",130,195,15);thumbnails[6528997]=new thumbnail(6528997,"345244","Millie","IMG_8806sml_thumb.jpg",130,195,15);thumbnails[6528999]=new thumbnail(6528999,"345244","Millie","IMG_8813sml_thumb.jpg",130,195,15);thumbnails[6529001]=new thumbnail(6529001,"345244","Millie","IMG_8824sml_thumb.jpg",130,87,15);thumbnails[6529005]=new thumbnail(6529005,"345244","Millie","IMG_8841sml_thumb.jpg",130,195,15);thumbnails[6529006]=new thumbnail(6529006,"345244","Millie","IMG_9023sml_thumb.jpg",130,195,15);thumbnails[6529038]=new thumbnail(6529038,"358892","","IMG_8188sml_thumb.jpg",130,87,15);thumbnails[6529043]=new thumbnail(6529043,"358892","","IMG_8282sml_thumb.jpg",130,80,15);thumbnails[6529047]=new thumbnail(6529047,"358892","","IMG_0249_thumb.jpg",130,195,15);thumbnails[6529049]=new thumbnail(6529049,"358892","","IMG_0269_thumb.jpg",130,195,15);thumbnails[6529051]=new thumbnail(6529051,"358892","","IMG_0325_thumb.jpg",130,87,15);thumbnails[6529055]=new thumbnail(6529055,"358892","","IMG_0006_thumb.jpg",130,87,15);thumbnails[6529058]=new thumbnail(6529058,"358892","","IMG_7826_thumb.jpg",130,186,15);thumbnails[6529066]=new thumbnail(6529066,"358892","","IMG_8006_thumb.jpg",130,195,15);thumbnails[6529080]=new thumbnail(6529080,"358897","","IMG_0831sml_thumb.jpg",130,195,15);thumbnails[6529082]=new thumbnail(6529082,"358897","","IMG_0854sml_thumb.jpg",130,195,15);thumbnails[6529086]=new thumbnail(6529086,"358897","","IMG_0877sml_thumb.jpg",130,195,15);thumbnails[6529091]=new thumbnail(6529091,"358897","","IMG_0913sml_thumb.jpg",130,87,15);thumbnails[6529099]=new thumbnail(6529099,"358897","","IMG_0356sml_thumb.jpg",130,195,15);thumbnails[6529101]=new thumbnail(6529101,"358897","","IMG_0412sml_thumb.jpg",130,195,15);thumbnails[6529106]=new thumbnail(6529106,"358897","","IMG_1841sml_thumb.jpg",130,87,15);thumbnails[6529112]=new thumbnail(6529112,"358897","","IMG_1872sml_thumb.jpg",130,195,15);thumbnails[6529114]=new thumbnail(6529114,"358897","","IMG_1897sml_thumb.jpg",130,195,15);var galleries=new Object();galleries[345243]=new gallery(345243,"6529145,6529140,6529139,6195150,6195148,6195147,6195144,6195143,6195140,6195138","Ian Lancaster","gallery",[6195063,6195065,6195067,6195069,6195073,6195074,6195076,6195079,6195083,6195087,6195091,6195093,6195094,6195096,6195097,6195098,6195099,6195101,6195103,6195115,6195117,6195118,6195122,6195123,6195125,6195128,6195130,6195132,6195133,6195134,6195135,6195136,6195137,6195138,6195140,6195143,6195144,6195147,6195148,6195150,6529139,6529140,6529145]);galleries[345244]=new gallery(345244,"6529006,6529005,6529001,6528999,6528997,6528995,6528994,6528992,6528991,6528988","Bridget Wrighting","gallery",[6528927,6528930,6528931,6528934,6528936,6528937,6528938,6528940,6528941,6528943,6528945,6528948,6528951,6528958,6528960,6528966,6528968,6528969,6528972,6528980,6528981,6528982,6528988,6528991,6528992,6528994,6528995,6528997,6528999,6529001,6529005,6529006]);galleries[358892]=new gallery(358892,"6529066,6529058,6529055,6529051,6529049,6529047,6529043,6529038","Weddings","gallery",[6529038,6529043,6529047,6529049,6529051,6529055,6529058,6529066]);galleries[358897]=new gallery(358897,"6529114,6529112,6529106,6529101,6529099,6529091,6529086,6529082,6529080","Children","gallery",[6529080,6529082,6529086,6529091,6529099,6529101,6529106,6529112,6529114]);var imageSets=new Object();imageSets[1]="6195150";imageSets[3]="6195150";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/ilancphoto/images";break}switch(a){case 1:b="http://www1.clikpic.com/ilancphoto/images";break}switch(a){case 2:b="http://admin.clikpic.com/ilancphoto/images";break}switch(a){case 24:b="http://tpc15/clikpic/ilancphoto/images";break}switch(a){case 4:b="http://www.clikchurch.com/ilancphoto/images";break}switch(a){case 5:b="http://www2.clikpic.com/ilancphoto/images";break}switch(a){case 22:b="http://tpc5/clikpic/ilancphoto/images";break}switch(a){case 23:b="http://tpc10/clikpic/ilancphoto/images";break}switch(a){case 25:b="http://tpc16/clikpic/ilancphoto/images";break}switch(a){case 15:b="http://www3.clikpic.com/ilancphoto/images";break}switch(a){case 18:b="http://www4.clikpic.com/ilancphoto/images";break}switch(a){case 19:b="http://www5.clikpic.com/ilancphoto/images";break}switch(a){case 31:b="http://www7.clikpic.com/ilancphoto/images";break}switch(a){case 32:b="http://admin2.clikpic.com/ilancphoto/images";break}switch(a){case 33:b="http://www8.clikpic.com/ilancphoto/images";break}switch(a){case 34:b="http://www9.clikpic.com/ilancphoto/images";break}switch(a){case 35:b="http://admin3.clikpic.com/ilancphoto/images";break}switch(a){case 37:b="http://admin4.clikpic.com/ilancphoto/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="Shots of Inspiration: "+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+'")'})}}};