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[748651]=new thumbnail(748651,"","Golitha Falls","Golitha Falls1_thumb.JPG",130,98,15);thumbnails[748652]=new thumbnail(748652,"","Early robin","golitha robin_thumb.JPG",130,98,15);thumbnails[748658]=new thumbnail(748658,"","Sandy patterns","Sand patterns_thumb.jpg",130,87,15);thumbnails[749006]=new thumbnail(749006,"","Reflections","Rocky River_thumb.jpg",130,78,15);thumbnails[749010]=new thumbnail(749010,"","Hungry gull","Gull_thumb.jpg",130,98,15);thumbnails[749021]=new thumbnail(749021,"","Happy couple","Christmas portrait_thumb.jpg",130,93,15);thumbnails[751854]=new thumbnail(751854,"","","IMG00119_thumb.jpg",130,87,15);thumbnails[2229985]=new thumbnail(2229985,"","Water beads 2","_MG_0368_thumb.JPG",130,87,15);thumbnails[2230011]=new thumbnail(2230011,"","Necklace","CRW_0081_thumb.jpg",130,86,15);thumbnails[5600330]=new thumbnail(5600330,"","","LIP-Under-construction_thumb.jpg",130,130,15);thumbnails[5747686]=new thumbnail(5747686,"","Company values identity","Values-icons_thumb.jpg",130,130,15);thumbnails[5747951]=new thumbnail(5747951,"350660","Louise Wright","Lou21_thumb.jpg",130,130,15);thumbnails[5747954]=new thumbnail(5747954,"350660","David Wright","Dave2_thumb.jpg",130,130,15);thumbnails[6043937]=new thumbnail(6043937,"","Images coming soon","coming-soon_thumb.jpg",130,130,15);thumbnails[6043951]=new thumbnail(6043951,"","Art direction images coming soon","coming-soon1_thumb.jpg",130,130,15);thumbnails[6044113]=new thumbnail(6044113,"349948","","Why-us_thumb.jpg",130,130,15);thumbnails[6310832]=new thumbnail(6310832,"349948","","Why-us-1_thumb.jpg",130,130,15);thumbnails[6310833]=new thumbnail(6310833,"349948","","Why-us-2_thumb.jpg",130,130,15);thumbnails[6310834]=new thumbnail(6310834,"349948","","Why-us-3_thumb.jpg",130,130,15);thumbnails[6310835]=new thumbnail(6310835,"349948","","Why-us-4_thumb.jpg",130,130,15);thumbnails[6310836]=new thumbnail(6310836,"349948","","Why-us-5_thumb.jpg",130,130,15);thumbnails[5747554]=new thumbnail(5747554,"325545","1click2meet logo identity","1click2meet_thumb.jpg",130,130,15);thumbnails[5747591]=new thumbnail(5747591,"325545","30 Max logo identity","30-max-logo_thumb.jpg",130,130,15);thumbnails[5747617]=new thumbnail(5747617,"325545","Annual Awards logo identity","Annual-Awards-logo_thumb.jpg",130,130,15);thumbnails[5747638]=new thumbnail(5747638,"325545","BGL Group brand identity","BGL-logo_thumb.jpg",130,130,15);thumbnails[5747644]=new thumbnail(5747644,"325545","Minster Law brand identity","Minster-Law-logo_thumb.jpg",130,130,15);thumbnails[5747648]=new thumbnail(5747648,"325545","KW Auto Services logo identity","KWAS_thumb.jpg",130,130,15);thumbnails[5747660]=new thumbnail(5747660,"325545","My Path Our Journey brand identity","MPOJ_thumb.jpg",130,130,15);thumbnails[5747669]=new thumbnail(5747669,"325545","Senior Managers Conference brand identity","SMC-Logo_thumb.jpg",130,130,15);thumbnails[5747680]=new thumbnail(5747680,"325545","Wellbeing brand identity","wellbeing-logo_thumb.jpg",130,130,15);thumbnails[5747716]=new thumbnail(5747716,"325551","BGL Group Annual report","annual-report_thumb.jpg",130,130,15);thumbnails[5747718]=new thumbnail(5747718,"325551","Bennetts Bike Insurance internal magazine","Bennetts-Bike-Torque_thumb.jpg",130,130,15);thumbnails[5747803]=new thumbnail(5747803,"325551","Bennetts Brochure","Bennetts-Panel-Brochure_thumb.jpg",130,130,15);thumbnails[5747811]=new thumbnail(5747811,"325551","Douw Steyn in the community brochure","Douw-Steyn-Brochure_thumb.jpg",130,130,15);thumbnails[5747815]=new thumbnail(5747815,"325551","Creative studio booklet","How-to-grow-fresh-design-booklet_thumb.jpg",130,130,15);thumbnails[5747977]=new thumbnail(5747977,"325552","Diamonds are forever dinner invitation","Diamonds-are-forever-invite_thumb.jpg",130,130,15);thumbnails[5747982]=new thumbnail(5747982,"325552","IT's got talent evite","ITs-got-talent-Invite_thumb.jpg",130,130,15);thumbnails[5747984]=new thumbnail(5747984,"325552","Awards ball invitation ","Paint-the-town-red-invite_thumb.jpg",130,130,15);thumbnails[5747989]=new thumbnail(5747989,"325552","Winter Dinner Invitation","Winter-Dinner-Invite_thumb.jpg",130,130,15);thumbnails[6043855]=new thumbnail(6043855,"325552","Fun Day invitation","Fun-Day-Invite_thumb.jpg",130,130,15);thumbnails[6159703]=new thumbnail(6159703,"325552","Cowes week evite","Cowes-week-invite_thumb.jpg",130,130,15);thumbnails[6159760]=new thumbnail(6159760,"344505","Bennetts leaflet","Bennetts-leaflet_thumb.jpg",130,130,15);thumbnails[6159779]=new thumbnail(6159779,"344505","World Environment Day poster","World-Env-Day-Poster_thumb.jpg",130,130,15);thumbnails[6159791]=new thumbnail(6159791,"344505","Fusion ESI Poster","Fusion-ESI-Poster_thumb.jpg",130,130,15);thumbnails[6159825]=new thumbnail(6159825,"344505","1click2meet poster","1click2meet-poster_thumb.jpg",130,130,15);thumbnails[6159752]=new thumbnail(6159752,"344511","Groovy Chick Adverts","Groovy-Chick-adverts_thumb.jpg",130,130,15);thumbnails[6160206]=new thumbnail(6160206,"344511","Bennetts publication adverts","Bennetts-Adverts_thumb.jpg",130,130,15);thumbnails[6160163]=new thumbnail(6160163,"339702","Bennetts Ceiling sign","Bennetts-ceiling-sign_thumb.jpg",130,130,15);thumbnails[6160172]=new thumbnail(6160172,"339702","Fusion wall branding","Fusion-branding-wall_thumb.jpg",130,130,15);thumbnails[6310763]=new thumbnail(6310763,"339702","BGL External Sign","BGL-sign_thumb.jpg",130,130,15);thumbnails[5748003]=new thumbnail(5748003,"325573","Album Cover - Nocturnal Species","Nocturnal-Species_thumb.jpg",130,130,15);thumbnails[6159717]=new thumbnail(6159717,"325573","Sainsbury's custard packaging","Custard-Packaging_thumb.jpg",130,130,15);thumbnails[6160102]=new thumbnail(6160102,"325573","Fusion Awards","Fusion-awards_thumb.jpg",130,130,15);thumbnails[6159840]=new thumbnail(6159840,"325553","Mathmos photo competition","Mathmos-art-direction_thumb.jpg",130,130,15);thumbnails[6159901]=new thumbnail(6159901,"325553","Bennetts Xmas advert","Bennetts-xmas-ad-art-direction_thumb.jpg",130,130,15);thumbnails[749026]=new thumbnail(749026,"325578","Bridesmaid","Bridesmaid_thumb.jpg",87,130,15);thumbnails[749040]=new thumbnail(749040,"325578","Bride","Bride_thumb.jpg",130,87,15);thumbnails[5748057]=new thumbnail(5748057,"325578","David Wright - Self portrait","Dave21_thumb.jpg",130,130,15);thumbnails[5748059]=new thumbnail(5748059,"325578","Louise Wright","Lou22_thumb.jpg",130,130,15);thumbnails[2229995]=new thumbnail(2229995,"325581","Light Patterns","CRW_0021_thumb.jpg",130,86,15);thumbnails[748661]=new thumbnail(748661,"325584","The Cheesewring","the Cheesewring_thumb.jpg",130,87,15);thumbnails[748994]=new thumbnail(748994,"325584","Scottish ruins","Scottish ruins_thumb.jpg",130,98,15);thumbnails[748635]=new thumbnail(748635,"325574","Acorn barnacles","Acorn barnacles2_thumb.jpg",130,87,15);thumbnails[748637]=new thumbnail(748637,"325574","Baby blue tit","Baby blue tit1_thumb.JPG",130,122,15);thumbnails[748645]=new thumbnail(748645,"325574","Common frog","Common Frog1_thumb.jpg",130,87,15);thumbnails[748647]=new thumbnail(748647,"325574","Dandelion","Dandelion1_thumb.jpg",130,87,15);thumbnails[748654]=new thumbnail(748654,"325574","Close-up grasshopper","Grasshopper1_thumb.jpg",130,87,15);thumbnails[748657]=new thumbnail(748657,"325574","Ladybird","Ladybird1_thumb.jpg",130,87,15);thumbnails[748662]=new thumbnail(748662,"325574","Wild horse","Wild Bodmin horse_thumb.jpg",130,87,15);thumbnails[748991]=new thumbnail(748991,"325574","Wild salmon","Wild Salmon_thumb.jpg",130,87,15);thumbnails[748993]=new thumbnail(748993,"325574","Water beads","Water beads_thumb.jpg",130,87,15);thumbnails[749013]=new thumbnail(749013,"325574","Dragonfly wings","Dragonfly wings_thumb.jpg",87,130,15);thumbnails[2229997]=new thumbnail(2229997,"325574","Hot Embers","CRW_0121_thumb.jpg",86,130,15);thumbnails[2230003]=new thumbnail(2230003,"325574","Droplets","_MG_0376_thumb.JPG",130,87,15);thumbnails[2229996]=new thumbnail(2229996,"325585","Mitts the kitten","CRW_0064_thumb.jpg",130,86,15);var galleries=new Object();galleries[350660]=new gallery(350660,"5747954,5747951","Meet the Team","section390435",[5747951,5747954]);galleries[349948]=new gallery(349948,"6044113","Why us?","section390460",[6044113,6310832,6310833,6310834,6310835,6310836]);galleries[325545]=new gallery(325545,"5747680,5747669,5747660,5747648,5747644,5747638,5747617,5747591,5747554","Logos","section353670",[5747554,5747591,5747617,5747638,5747644,5747648,5747660,5747669,5747680]);galleries[325551]=new gallery(325551,"5747815,5747811,5747803,5747718,5747716","Brochures","section353670",[5747716,5747718,5747803,5747811,5747815]);galleries[325552]=new gallery(325552,"6159703,6043855,5747989,5747984,5747982,5747977","Invites","section353670",[5747977,5747982,5747984,5747989,6043855,6159703]);galleries[344505]=new gallery(344505,"6159825,6159791,6159779,6159760","Posters & Leaflets","section353670",[6159760,6159779,6159791,6159825]);galleries[344511]=new gallery(344511,"6160206,6159752","Adverts","section353670",[6159752,6160206]);galleries[339702]=new gallery(339702,"6310763,6160172,6160163","Branding","section353670",[6160163,6160172,6310763]);galleries[325573]=new gallery(325573,"6160102,6159717,5748003","Miscellaneous","section353670",[5748003,6159717,6160102]);galleries[325553]=new gallery(325553,"6159901,6159840","Art Direction","section353670",[6159840,6159901]);galleries[325578]=new gallery(325578,"5748059,5748057,749040,749026","Portraits","section353671",[749026,749040,5748057,5748059]);galleries[325583]=new gallery(325583,"","Products","section353671",[]);galleries[325581]=new gallery(325581,"2229995","Events/Reportage","section353671",[2229995]);galleries[325582]=new gallery(325582,"","Sport","section353671",[]);galleries[325584]=new gallery(325584,"748994,748661","Landscapes","section353671",[748661,748994]);galleries[325574]=new gallery(325574,"2230003,2229997,749013,748993,748991,748662,748657,748654,748647,748645","Nature/Pets","section353671",[748635,748637,748645,748647,748654,748657,748662,748991,748993,749013,2229997,2230003]);galleries[325585]=new gallery(325585,"2229996","Abstract/Patterns","section353671",[2229996]);galleries[325579]=new gallery(325579,"","Miscellaneous","section353671",[]);var imageSets=new Object();imageSets[1]="5600330";imageSets[2]="6044113,5600330";imageSets[3]="5600330";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/lifeinpictures/images";break}switch(a){case 1:b="http://www1.clikpic.com/lifeinpictures/images";break}switch(a){case 2:b="http://admin.clikpic.com/lifeinpictures/images";break}switch(a){case 24:b="http://tpc15/clikpic/lifeinpictures/images";break}switch(a){case 4:b="http://www.clikchurch.com/lifeinpictures/images";break}switch(a){case 5:b="http://www2.clikpic.com/lifeinpictures/images";break}switch(a){case 22:b="http://tpc5/clikpic/lifeinpictures/images";break}switch(a){case 23:b="http://tpc10/clikpic/lifeinpictures/images";break}switch(a){case 25:b="http://tpc16/clikpic/lifeinpictures/images";break}switch(a){case 15:b="http://www3.clikpic.com/lifeinpictures/images";break}switch(a){case 18:b="http://www4.clikpic.com/lifeinpictures/images";break}switch(a){case 19:b="http://www5.clikpic.com/lifeinpictures/images";break}switch(a){case 31:b="http://www7.clikpic.com/lifeinpictures/images";break}switch(a){case 32:b="http://admin2.clikpic.com/lifeinpictures/images";break}switch(a){case 33:b="http://www8.clikpic.com/lifeinpictures/images";break}switch(a){case 34:b="http://www9.clikpic.com/lifeinpictures/images";break}switch(a){case 35:b="http://admin3.clikpic.com/lifeinpictures/images";break}switch(a){case 37:b="http://admin4.clikpic.com/lifeinpictures/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("section390460"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section390460.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("section390460"!=""){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="Life In Pictures - Design & Photographic Services: "+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+'")'})}}};