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[2917963]=new thumbnail(2917963,"322680","Keely","57110542_thumb.jpg",102,130,18);thumbnails[2918137]=new thumbnail(2918137,"322680","Helen","wd1_thumb.jpg",130,130,18);thumbnails[2918154]=new thumbnail(2918154,"","","32_thumb.jpg",86,130,18);thumbnails[2918180]=new thumbnail(2918180,"322680","","591_thumb.jpg",86,130,18);thumbnails[2918183]=new thumbnail(2918183,"322680","","bride1_thumb.jpg",86,130,18);thumbnails[2918194]=new thumbnail(2918194,"322680","","wall_bride1_thumb.jpg",86,130,18);thumbnails[2918203]=new thumbnail(2918203,"","Fizz","ST1_2x2_thumb.jpg",90,130,18);thumbnails[2918224]=new thumbnail(2918224,"322680","","LB3_portraits_031_thumb.jpg",90,130,18);thumbnails[2918282]=new thumbnail(2918282,"322680","","IMG_7577_thumb.jpg",86,130,18);thumbnails[2918332]=new thumbnail(2918332,"322680","","img_6873framed2_thumb.jpg",130,91,18);thumbnails[2918372]=new thumbnail(2918372,"","","dovephoto1_thumb.jpg",119,130,18);thumbnails[2921614]=new thumbnail(2921614,"322680","","IMG_7918_thumb.jpg",81,130,18);thumbnails[2921618]=new thumbnail(2921618,"","","IMG_4955_thumb.jpg",128,130,18);thumbnails[2921620]=new thumbnail(2921620,"","","IMG_5443_thumb.jpg",120,130,18);thumbnails[2921623]=new thumbnail(2921623,"","","IMG_7870_thumb.jpg",130,86,18);thumbnails[2921624]=new thumbnail(2921624,"","","IMG_7900_thumb.jpg",130,52,18);thumbnails[2921643]=new thumbnail(2921643,"","","barn4_thumb.jpg",130,96,18);thumbnails[2921672]=new thumbnail(2921672,"","","image802_thumb.jpg",110,130,18);thumbnails[2921673]=new thumbnail(2921673,"","","image108_thumb.jpg",130,110,18);thumbnails[2921674]=new thumbnail(2921674,"","","image2_thumb.jpg",110,130,18);thumbnails[2921676]=new thumbnail(2921676,"","","image6_thumb.jpg",110,130,18);thumbnails[2921677]=new thumbnail(2921677,"","","image20_thumb.jpg",110,130,18);thumbnails[2921678]=new thumbnail(2921678,"","","ZRGFRDGF1_thumb.jpg",96,130,18);thumbnails[2921758]=new thumbnail(2921758,"","","ZGFZ_thumb.jpg",97,130,18);thumbnails[2921759]=new thumbnail(2921759,"","","zdfbgzab1_thumb.jpg",130,130,18);thumbnails[2921760]=new thumbnail(2921760,"","","W3TQ1_thumb.jpg",130,130,18);thumbnails[2921761]=new thumbnail(2921761,"","","WEFTRF1_thumb.jpg",130,130,18);thumbnails[2921767]=new thumbnail(2921767,"","","MalloryFeb6_thumb.jpg",86,130,18);thumbnails[2921771]=new thumbnail(2921771,"","","si3_5_thumb.jpg",130,130,18);thumbnails[2921774]=new thumbnail(2921774,"","","22121_thumb.jpg",130,130,18);thumbnails[2921776]=new thumbnail(2921776,"","","E-3Saturday1_thumb.jpg",119,130,18);thumbnails[2921778]=new thumbnail(2921778,"","","E-3Saturday4_thumb.jpg",104,130,18);thumbnails[2921798]=new thumbnail(2921798,"","Large Bridesmaid Posie","IMG_9857_thumb.jpg",128,130,18);thumbnails[2921810]=new thumbnail(2921810,"","Flowergirl Wands","IMG_9874_thumb.jpg",107,130,18);thumbnails[2926278]=new thumbnail(2926278,"","Jen","IMG_0241soft1_thumb.jpg",98,130,18);thumbnails[2928347]=new thumbnail(2928347,"","Red Zest","Red Zest_thumb.jpg",130,109,18);thumbnails[5402607]=new thumbnail(5402607,"317825","","IMG_9012_thumb.jpg",130,93,18);thumbnails[5458538]=new thumbnail(5458538,"322680","","rose_ellen_web_thumb.jpg",126,130,18);thumbnails[5603853]=new thumbnail(5603853,"","","lights3_thumb.jpg",130,87,18);thumbnails[5603855]=new thumbnail(5603855,"317804","","lights31_thumb.jpg",130,87,18);thumbnails[5603857]=new thumbnail(5603857,"317804","","disco_lights_thumb.jpg",130,87,18);thumbnails[5603869]=new thumbnail(5603869,"317804","","discolights_thumb.jpg",130,104,18);thumbnails[5603883]=new thumbnail(5603883,"317825","","IMG_5918_thumb.jpg",69,130,18);thumbnails[5603909]=new thumbnail(5603909,"317825","","clik_thumb.jpg",130,29,18);thumbnails[5697962]=new thumbnail(5697962,"322680","","Wedding-Shoes_8394_thumb.jpg",87,130,18);thumbnails[5697972]=new thumbnail(5697972,"322680","","wedding-photography-victoria-bc_thumb.jpg",94,130,18);thumbnails[5697977]=new thumbnail(5697977,"322680","","wedding-photography-picture-05_thumb.jpg",130,89,18);thumbnails[5697983]=new thumbnail(5697983,"322680","","wedding-photography-lenses-1_thumb.jpg",130,86,18);thumbnails[5697988]=new thumbnail(5697988,"322680","","wedding-photography-cornwall-02_thumb.jpg",99,130,18);thumbnails[5697991]=new thumbnail(5697991,"322680","","wedding-photography-cornwall-01_thumb.jpg",85,130,18);thumbnails[5697996]=new thumbnail(5697996,"322680","","wedding_photography_wirral_thumb.jpg",87,130,18);thumbnails[5697998]=new thumbnail(5697998,"322680","","wedding_photography_1_thumb.jpg",130,87,18);thumbnails[5698009]=new thumbnail(5698009,"322680","","toronto_wedding_photography_3_thumb.jpg",104,130,18);thumbnails[5698011]=new thumbnail(5698011,"322680","","bride_thumb.jpg",130,95,18);thumbnails[5698012]=new thumbnail(5698012,"322680","","bride1_954C4735-1D09-001F-99F80CF5452235E0_thumb.jpg",110,130,18);thumbnails[5698013]=new thumbnail(5698013,"322680","","Bride1m_thumb.jpg",87,130,18);thumbnails[5698019]=new thumbnail(5698019,"322680","","bride2_thumb.jpg",98,130,18);thumbnails[5698021]=new thumbnail(5698021,"322680","","bride11_thumb.jpg",87,130,18);thumbnails[5698024]=new thumbnail(5698024,"322680","","Bride_of_the_Year_2006_pic1_thumb.jpg",87,130,18);thumbnails[5698026]=new thumbnail(5698026,"322680","","Brideg_thumb.jpg",104,130,18);thumbnails[5698028]=new thumbnail(5698028,"322680","","bride-hairstyles-5_thumb.jpg",90,130,18);thumbnails[5703058]=new thumbnail(5703058,"","OUR STUDIO","IMG_0133_thumb.jpg",130,56,18);thumbnails[5762943]=new thumbnail(5762943,"326482","","IMG_0284_thumb.jpg",89,130,18);thumbnails[5762944]=new thumbnail(5762944,"326482","","IMG_0375_thumb.jpg",87,130,18);thumbnails[5762948]=new thumbnail(5762948,"326482","","IMG_0377_thumb.jpg",130,87,18);thumbnails[5762949]=new thumbnail(5762949,"326482","","IMG_0379_thumb.jpg",87,130,18);thumbnails[5762951]=new thumbnail(5762951,"326482","","IMG_0395_thumb.jpg",87,130,18);thumbnails[5762952]=new thumbnail(5762952,"326482","","IMG_0473_thumb.jpg",87,130,18);thumbnails[5762960]=new thumbnail(5762960,"326482","","IMG_0515_thumb.jpg",130,118,18);thumbnails[5762961]=new thumbnail(5762961,"326482","","IMG_0570_thumb.jpg",130,104,18);thumbnails[5762962]=new thumbnail(5762962,"326482","","IMG_0575_thumb.jpg",97,130,18);thumbnails[5762963]=new thumbnail(5762963,"326482","","IMG_0580_thumb.jpg",106,130,18);thumbnails[5762966]=new thumbnail(5762966,"326482","","IMG_0582_thumb.jpg",109,130,18);thumbnails[5762967]=new thumbnail(5762967,"326482","","IMG_0594_thumb.jpg",87,130,18);thumbnails[5762969]=new thumbnail(5762969,"326482","","IMG_0606_thumb.jpg",72,130,18);thumbnails[5762972]=new thumbnail(5762972,"326482","","IMG_0608_thumb.jpg",98,130,18);thumbnails[5762976]=new thumbnail(5762976,"326482","","IMG_0616_thumb.jpg",75,130,18);thumbnails[5762978]=new thumbnail(5762978,"326482","","IMG_0624_thumb.jpg",130,106,18);thumbnails[5762981]=new thumbnail(5762981,"326482","","IMG_0627_thumb.jpg",87,130,18);thumbnails[5762983]=new thumbnail(5762983,"326482","","IMG_0642_thumb.jpg",87,130,18);thumbnails[5762986]=new thumbnail(5762986,"326482","","IMG_1043_thumb.jpg",87,130,18);thumbnails[5762988]=new thumbnail(5762988,"326482","","IMG_1055_thumb.jpg",98,130,18);thumbnails[5762990]=new thumbnail(5762990,"326482","","IMG_1059_thumb.jpg",99,130,18);thumbnails[5762991]=new thumbnail(5762991,"326482","","IMG_1060_thumb.jpg",130,87,18);thumbnails[5762995]=new thumbnail(5762995,"326482","","IMG_1066_thumb.jpg",87,130,18);thumbnails[5762997]=new thumbnail(5762997,"326482","","IMG_1134_thumb.jpg",92,130,18);thumbnails[5402566]=new thumbnail(5402566,"","","banner_thumb.jpg",130,45,18);var galleries=new Object();galleries[317804]=new gallery(317804,"5603857,5603855","disco","section381003",[5603855,5603857,5603869]);galleries[322680]=new gallery(322680,"5698028,5698026,5698024,5698021,5698019,5698013,5698012,5698011,5698009,5697998","gallery","section387172",[2917963,2918137,2918180,2918183,2918194,2918224,2918282,2918332,2921614,5458538,5697962,5697972,5697977,5697983,5697988,5697991,5697996,5697998,5698009,5698011,5698012,5698013,5698019,5698021,5698024,5698026,5698028]);galleries[326482]=new gallery(326482,"5762997,5762995,5762991,5762990,5762988,5762986,5762983,5762981,5762978,5762976","Our Wedding 2nd April 2010 photographed by Andrew ","section391444",[5762943,5762944,5762948,5762949,5762951,5762952,5762960,5762961,5762962,5762963,5762966,5762967,5762969,5762972,5762976,5762978,5762981,5762983,5762986,5762988,5762990,5762991,5762995,5762997]);galleries[317825]=new gallery(317825,"5603909,5603883,5402607","wedding and event singer","section381034",[5402607,5603883,5603909]);var imageSets=new Object();imageSets[1]="5703058";imageSets[2]="5603857,5603855,5603853";imageSets[3]="5762997,5762995,5762991,5762990,5762988,5762986,5762983,5762981,5762978,5762976,5762972,5762969,5762967,5762966,5762963,5762962,5762961,5762960,5762952,5762951,5762949,5762948,5762944,5762943,5703058,5698028,5698026,5698024,5698021,5698019,5698013,5698012,5698011,5698009,5697998,5697996,5697991,5697988,5697983,5697977,5697972,5697962,5603909,5603883,5603869,5603857,5603855,5603853,5458538,5402607";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/claytonb/images";break}switch(a){case 1:b="http://www1.clikpic.com/claytonb/images";break}switch(a){case 2:b="http://admin.clikpic.com/claytonb/images";break}switch(a){case 24:b="http://tpc15/clikpic/claytonb/images";break}switch(a){case 4:b="http://www.clikchurch.com/claytonb/images";break}switch(a){case 5:b="http://www2.clikpic.com/claytonb/images";break}switch(a){case 22:b="http://tpc5/clikpic/claytonb/images";break}switch(a){case 23:b="http://tpc10/clikpic/claytonb/images";break}switch(a){case 25:b="http://tpc16/clikpic/claytonb/images";break}switch(a){case 15:b="http://www3.clikpic.com/claytonb/images";break}switch(a){case 18:b="http://www4.clikpic.com/claytonb/images";break}switch(a){case 19:b="http://www5.clikpic.com/claytonb/images";break}switch(a){case 31:b="http://www7.clikpic.com/claytonb/images";break}switch(a){case 32:b="http://admin2.clikpic.com/claytonb/images";break}switch(a){case 33:b="http://www8.clikpic.com/claytonb/images";break}switch(a){case 34:b="http://www9.clikpic.com/claytonb/images";break}switch(a){case 35:b="http://admin3.clikpic.com/claytonb/images";break}switch(a){case 37:b="http://admin4.clikpic.com/claytonb/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("section429765"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section429765.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("section429765"!=""){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="WE PHOTOGRAPH YOUR WEDDING : "+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> 				&pound;"+(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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="roseellen84@googlemail.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="roseellen84@googlemail.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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+'")'})}}};