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[4698391]=new thumbnail(4698391,"270199","Click to enlarge","Acrylic_frame_thumb.jpg",130,104,1);thumbnails[2224533]=new thumbnail(2224533,"127012","","aboutuphotography-maidstone_thumb.jpg",130,184,1);thumbnails[2224461]=new thumbnail(2224461,"127012","Maternity & family portraiture","maternity-portrait-maidstone_thumb.jpg",130,85,1);thumbnails[5762608]=new thumbnail(5762608,"127012","","Baby_bump_portraits-Kent_thumb.jpg",130,173,1);thumbnails[5762643]=new thumbnail(5762643,"127012","","Maternity_portrait_kent_thumb.jpg",130,98,1);thumbnails[5762680]=new thumbnail(5762680,"127012","","Pregnant_photos_kent_thumb.jpg",130,98,1);thumbnails[5762713]=new thumbnail(5762713,"127012","","Pregnancy_portraits_thumb.jpg",130,98,1);thumbnails[5762902]=new thumbnail(5762902,"127012","","Pregnancy_portraits_Maidstone_thumb.jpg",130,173,1);thumbnails[2224646]=new thumbnail(2224646,"127012","","about-u_-photography_thumb.jpg",130,194,1);thumbnails[5762937]=new thumbnail(5762937,"127012","","Maternity_photography-maidstone_thumb.jpg",130,173,1);thumbnails[6082880]=new thumbnail(6082880,"341479","Click to enlarge","Photoblock_thumb.jpg",130,98,1);thumbnails[2432504]=new thumbnail(2432504,"126998","Baby pictures in Maidstone","Connor_0041_thumb.jpg",130,173,1);thumbnails[2346187]=new thumbnail(2346187,"126998","","Hanging_baby_thumb.jpg",130,184,1);thumbnails[2405629]=new thumbnail(2405629,"126998","Baby photography for Kent","Rose_thumb.jpg",130,173,1);thumbnails[3569068]=new thumbnail(3569068,"126998","","Stokes1_thumb.jpg",130,98,1);thumbnails[2535861]=new thumbnail(2535861,"126998","","Colour_pop_ball_thumb.jpg",130,98,1);thumbnails[1894224]=new thumbnail(1894224,"126998","","baby_bundle_thumb.jpg",130,98,1);thumbnails[3569179]=new thumbnail(3569179,"126998","","baby_eyes1_thumb.jpg",130,173,1);thumbnails[3843119]=new thumbnail(3843119,"126998","Photographic artwork","Finley_thumb.jpg",130,184,1);thumbnails[3577727]=new thumbnail(3577727,"126998","","Baby_montage_Kent_thumb.jpg",130,173,1);thumbnails[3843151]=new thumbnail(3843151,"126998","","Sophia_thumb.jpg",130,104,1);thumbnails[3569089]=new thumbnail(3569089,"126998","","About_u_photography-baby_portraits_thumb.jpg",130,98,1);thumbnails[3843128]=new thumbnail(3843128,"126998","","baby_portraits_kent_thumb.jpg",130,87,1);thumbnails[5234655]=new thumbnail(5234655,"126998","","Baby-Pop_thumb.jpg",130,98,1);thumbnails[5234647]=new thumbnail(5234647,"126998","","holding_hands_thumb.jpg",130,173,1);thumbnails[5234661]=new thumbnail(5234661,"126998","","twins-photography-kent_thumb.jpg",130,104,1);thumbnails[2019951]=new thumbnail(2019951,"218167","About U Photography-Kids","about_u_photography-kids-photographer-kent_thumb.jpg",130,163,1);thumbnails[2018604]=new thumbnail(2018604,"218167","","commercial-photography-maidstone_thumb.jpg",130,182,1);thumbnails[2405108]=new thumbnail(2405108,"218167","About U Photography","Kent-Toddler-Photography_thumb.jpg",130,173,1);thumbnails[1894204]=new thumbnail(1894204,"218167","","DSC_0021_thumb.jpg",130,182,1);thumbnails[2074181]=new thumbnail(2074181,"218167","","Family_photgraphy_Kent_thumb.jpg",130,163,1);thumbnails[2182916]=new thumbnail(2182916,"218167","","Popping_colour_thumb.jpg",130,195,1);thumbnails[4317225]=new thumbnail(4317225,"218167","","Matt_pointing_thumb.jpg",130,163,1);thumbnails[3569213]=new thumbnail(3569213,"218167","Kids portraits Kent","Sharpe_0072_thumb.jpg",130,183,1);thumbnails[2074455]=new thumbnail(2074455,"218167","","Sisters_thumb.jpg",130,163,1);thumbnails[3569136]=new thumbnail(3569136,"218167","","Tilbury1_thumb.jpg",130,98,1);thumbnails[3569357]=new thumbnail(3569357,"218167","","Brothers-photography-kent_thumb.jpg",130,104,1);thumbnails[3053902]=new thumbnail(3053902,"218167","","DSC_0046b_thumb.jpg",130,104,1);thumbnails[2613139]=new thumbnail(2613139,"127168","","Family-photography-kent-aylesford_thumb.jpg",130,81,1);thumbnails[3523420]=new thumbnail(3523420,"127168","Family portraits Kent","Jump_montage_thumb.jpg",130,66,1);thumbnails[1994711]=new thumbnail(1994711,"127168","","DSC_0002b_thumb.jpg",130,104,1);thumbnails[3053783]=new thumbnail(3053783,"127168","","fun-photography-maidstone_thumb.jpg",130,93,1);thumbnails[3054774]=new thumbnail(3054774,"127168","","Lyons_thumb.jpg",130,98,1);thumbnails[3523554]=new thumbnail(3523554,"127168","","DSC_0048a1_thumb.jpg",130,104,1);thumbnails[3569440]=new thumbnail(3569440,"127168","","Rachel055a_thumb.jpg",130,98,1);thumbnails[3569413]=new thumbnail(3569413,"127168","","King_004410x5_thumb.jpg",130,68,1);thumbnails[3286078]=new thumbnail(3286078,"127168","","family-photography-kent_thumb.jpg",130,104,1);thumbnails[2613176]=new thumbnail(2613176,"127168","","Newborn_family_thumb.jpg",130,173,1);thumbnails[3677553]=new thumbnail(3677553,"127168","","Craigh_0012A_thumb.jpg",130,183,1);thumbnails[2613239]=new thumbnail(2613239,"127168","","couples_portraiture_photography1_thumb.jpg",130,163,1);thumbnails[3843240]=new thumbnail(3843240,"127168","","celebrations-portrait-photography_thumb.jpg",130,104,1);thumbnails[1894231]=new thumbnail(1894231,"127168","","portrait-photography-kent_thumb.jpg",130,98,1);thumbnails[3843212]=new thumbnail(3843212,"127168","","familyportrait-maidstone_thumb.jpg",130,104,1);thumbnails[1897130]=new thumbnail(1897130,"127147","","Leeds_Castle-Wedding_1_thumb.jpg",130,195,1);thumbnails[2022752]=new thumbnail(2022752,"127147","","Simon&Eli_thumb.jpg",130,173,1);thumbnails[1897218]=new thumbnail(1897218,"127147","","Wedding_thumb.jpg",130,188,1);thumbnails[2022745]=new thumbnail(2022745,"127147","","Cake_thumb.jpg",130,195,1);thumbnails[2183040]=new thumbnail(2183040,"127147","","Wedding_guests_thumb.jpg",130,163,1);thumbnails[2022736]=new thumbnail(2022736,"127147","","Leeds_Castle_Wedding__thumb.jpg",130,195,1);thumbnails[4245840]=new thumbnail(4245840,"127147","","wedding_photography_kent_thumb.jpg",130,194,1);thumbnails[4245825]=new thumbnail(4245825,"127147","","Two_rings_thumb.jpg",130,130,1);thumbnails[4245870]=new thumbnail(4245870,"127147","","wedding_reportage_photography_kent_thumb.jpg",130,194,1);thumbnails[2224254]=new thumbnail(2224254,"127147","","maidstone-wedding-photography_thumb.jpg",130,87,1);thumbnails[2186340]=new thumbnail(2186340,"127147","","Wedding_rings_thumb.jpg",130,104,1);thumbnails[1897160]=new thumbnail(1897160,"127147","","BOUQUET_thumb.jpg",130,87,1);thumbnails[6325422]=new thumbnail(6325422,"127018","<br>\r\n<br>\r\n<br>\r\n","Pre_school_thumb.jpg",130,184,1);thumbnails[6586501]=new thumbnail(6586501,"127018","","Pre_school_photography_thumb.jpg",130,183,1);thumbnails[6586507]=new thumbnail(6586507,"127018","","Kent_school_photography_thumb.jpg",130,183,1);thumbnails[3710550]=new thumbnail(3710550,"226737","Click to enlarge","about_u_photography-canvas_wrap_thumb.jpg",130,84,1);thumbnails[3710564]=new thumbnail(3710564,"226737","Click to enlarge","Canvas_wrap_thumb.jpg",130,98,1);thumbnails[4698525]=new thumbnail(4698525,"270207","Click to enlarge","Art_boxes_side_view_thumb.jpg",130,144,1);thumbnails[4698547]=new thumbnail(4698547,"270207","Click to enlarge","Wooden_wrap_rear_thumb.jpg",130,124,1);thumbnails[5234640]=new thumbnail(5234640,"295094","Solid Oak","Aboutuphotography-Oak-photo_frames_thumb.jpg",130,98,1);thumbnails[5234641]=new thumbnail(5234641,"295094","Contemporary black glass","Black_glass_photo_frame_thumb.jpg",130,144,1);thumbnails[5234643]=new thumbnail(5234643,"295094","Dark Walnut Finish","Solid_wood-photo_frames-kent_thumb.jpg",130,97,1);thumbnails[3155499]=new thumbnail(3155499,"193372","Click to enlarge","23Novmontage_thumb.jpg",130,104,1);thumbnails[3626480]=new thumbnail(3626480,"193372","","montage_1_thumb.jpg",130,87,1);thumbnails[3186948]=new thumbnail(3186948,"193372","","Guymontage_thumb.jpg",130,81,1);thumbnails[3155525]=new thumbnail(3155525,"193372","Click to enlarge","Family_Montage-photography-kent1_thumb.jpg",130,163,1);thumbnails[3626440]=new thumbnail(3626440,"193372","","montage-photography-kent_thumb.jpg",130,130,1);thumbnails[3710587]=new thumbnail(3710587,"226103","","wedding-memory_book-maidstone_thumb.jpg",130,86,1);thumbnails[3710630]=new thumbnail(3710630,"226103","","memory_book-design-maidstone-kent_thumb.jpg",130,87,1);thumbnails[3710639]=new thumbnail(3710639,"226103","","about_u_photography-coffee_table_book_thumb.jpg",130,87,1);thumbnails[3155373]=new thumbnail(3155373,"193328","","cuddles_thumb.jpg",130,104,1);thumbnails[5879681]=new thumbnail(5879681,"332186","Sample page layout","AUP_Gill__Luke_lo_res__thumb.jpeg",130,47,1);var galleries=new Object();galleries[270199]=new gallery(270199,"4698391","Acrylic panel prints","section238646",[4698391]);galleries[127012]=new gallery(127012,"2224533","Maternity","gallery",[2224533,2224461,5762608,5762643,5762680,5762713,5762902,2224646,5762937]);galleries[341479]=new gallery(341479,"6082880","Photo Blocks","section238646",[6082880]);galleries[126998]=new gallery(126998,"2346187","Tiny toes","gallery",[2432504,2346187,2405629,3569068,2535861,1894224,3569179,3843119,3577727,3843151,3569089,3843128,5234655,5234647,5234661]);galleries[218167]=new gallery(218167,"2182916","Toddlers to Teens","gallery",[2019951,2018604,2405108,1894204,2074181,2182916,4317225,3569213,2074455,3569136,3569357,3053902]);galleries[127168]=new gallery(127168,"3677553","Family","gallery",[2613139,3523420,1994711,3053783,3054774,3523554,3569440,3569413,3286078,2613176,3677553,2613239,3843240,1894231,3843212]);galleries[127147]=new gallery(127147,"4245840","Weddings & Civil Ceremonies","gallery",[1897130,2022752,1897218,2022745,2183040,2022736,4245840,4245825,4245870,2224254,2186340,1897160]);galleries[127018]=new gallery(127018,"6325422","School Photography","gallery",[6325422,6586501,6586507]);galleries[226737]=new gallery(226737,"3710564,3710550","Quality Canvas wraps","section238646",[3710550,3710564]);galleries[270207]=new gallery(270207,"4698547,4698525","Wooden wraps","section238646",[4698525,4698547]);galleries[295094]=new gallery(295094,"5234641","Quality Photo Frames","section238646",[5234640,5234641,5234643]);galleries[193372]=new gallery(193372,"3155499","Montage images","section238646",[3155499,3626480,3186948,3155525,3626440]);galleries[226103]=new gallery(226103,"3710587","Memory book design and supply","section238646",[3710587,3710630,3710639]);galleries[193328]=new gallery(193328,"3155373","Tips for the perfect shoot","gallery",[3155373]);galleries[332186]=new gallery(332186,"5879681","Wedding Album design and supply","section238646",[5879681]);var imageSets=new Object();imageSets[1]="5762643,3569068,3054774";imageSets[2]="6325422,5234641,4245840,3710587,3677553,3155499,2346187,2224533,2182916";imageSets[3]="6586507,6586501,6325422,6082880,5879681,5762937,5762902,5762713,5762680,5762643,5762608,5234661,5234655,5234647,5234643,5234641,5234640,4698547,4698525,4698391,4317225,4245870,4245840,4245825,3843240,3843212,3843151,3843128,3843119,3710639,3710630,3710587,3710564,3710550,3677553,3626480,3626440,3577727,3569440,3569413,3569357,3569213,3569179,3569136,3569089,3569068,3523554,3523420,3286078,3186948";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/aboutu/images";break}switch(a){case 1:b="http://www1.clikpic.com/aboutu/images";break}switch(a){case 2:b="http://admin.clikpic.com/aboutu/images";break}switch(a){case 24:b="http://tpc15/clikpic/aboutu/images";break}switch(a){case 4:b="http://www.clikchurch.com/aboutu/images";break}switch(a){case 5:b="http://www2.clikpic.com/aboutu/images";break}switch(a){case 22:b="http://tpc5/clikpic/aboutu/images";break}switch(a){case 23:b="http://tpc10/clikpic/aboutu/images";break}switch(a){case 25:b="http://tpc16/clikpic/aboutu/images";break}switch(a){case 15:b="http://www3.clikpic.com/aboutu/images";break}switch(a){case 18:b="http://www4.clikpic.com/aboutu/images";break}switch(a){case 19:b="http://www5.clikpic.com/aboutu/images";break}switch(a){case 31:b="http://www7.clikpic.com/aboutu/images";break}switch(a){case 32:b="http://admin2.clikpic.com/aboutu/images";break}switch(a){case 33:b="http://www8.clikpic.com/aboutu/images";break}switch(a){case 34:b="http://www9.clikpic.com/aboutu/images";break}switch(a){case 35:b="http://admin3.clikpic.com/aboutu/images";break}switch(a){case 37:b="http://admin4.clikpic.com/aboutu/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="About U 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+'")'})}}};