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[4747593]=new thumbnail(4747593,"272297","","2008-Aug-22-020-BW_thumb.jpg",130,163,15);thumbnails[4747612]=new thumbnail(4747612,"272297","","2008-Aug-22-036_thumb.jpg",130,86,15);thumbnails[4747633]=new thumbnail(4747633,"272297","","B0002408_thumb.jpg",130,166,15);thumbnails[4747637]=new thumbnail(4747637,"272297","","2008-Aug-22-099_thumb.jpg",130,195,15);thumbnails[4747644]=new thumbnail(4747644,"272297","","PICT0028-14_thumb.jpg",130,195,15);thumbnails[4747680]=new thumbnail(4747680,"272297","","PICT0075-1_thumb.jpg",130,86,15);thumbnails[4747681]=new thumbnail(4747681,"272297","","PICT0002-9_edited-4_thumb.jpg",130,190,15);thumbnails[4976503]=new thumbnail(4976503,"272297","","2008-09-19_5837_BRIDE-IN-ST_thumb.jpg",130,195,15);thumbnails[4976507]=new thumbnail(4976507,"272297","","2008-09-19_6047_BG-OUTSIDE_thumb.jpg",130,87,15);thumbnails[4976896]=new thumbnail(4976896,"272297","","The-Ceremony_thumb.jpg",130,104,15);thumbnails[4976904]=new thumbnail(4976904,"272297","","2009-09-19_6228_BRIDE-IN-DO_thumb.jpg",130,163,15);thumbnails[4977088]=new thumbnail(4977088,"272297","","GLENO-WATERFALL-MONTAGE_thumb.jpg",130,195,15);thumbnails[4977093]=new thumbnail(4977093,"272297","","2009-09-19_6248_WEDDING-PAR_thumb.jpg",130,54,15);thumbnails[4977100]=new thumbnail(4977100,"272297","","2009-10-02_6660_edited-2_thumb.jpg",130,104,15);thumbnails[4977165]=new thumbnail(4977165,"272297","","2009-10-02_6739_edited-2_thumb.jpg",130,163,15);thumbnails[4977169]=new thumbnail(4977169,"272297","","2009-10-02_6761_edited-4_thumb.jpg",130,195,15);thumbnails[6083002]=new thumbnail(6083002,"272297","Montage available at no extra cost","The-Cake_thumb.jpg",130,163,15);thumbnails[6083007]=new thumbnail(6083007,"272297","","2010-04-30_1337_First-Dance_thumb.jpg",130,104,15);thumbnails[6083013]=new thumbnail(6083013,"272297","","2010-04-30_0193_edited-1_thumb.jpg",130,104,15);thumbnails[6083019]=new thumbnail(6083019,"272297","","2010-04-30-_0149_Bride-wigh_thumb.jpg",130,104,15);thumbnails[6083026]=new thumbnail(6083026,"272297","","2010-04-30_0023_Charlies-A_thumb.jpg",130,163,15);thumbnails[6083028]=new thumbnail(6083028,"272297","","2010-04-30_0876_BG-in-arch_thumb.jpg",130,163,15);thumbnails[6083032]=new thumbnail(6083032,"272297","","2009-04-30_1218_BG-slhouet_thumb.jpg",130,52,15);thumbnails[6083042]=new thumbnail(6083042,"272297","","2009-04-30_1213_BG-becide-_thumb.jpg",130,163,15);thumbnails[6410166]=new thumbnail(6410166,"272297","","2009-04-30_1252_BG-becide-_thumb.jpg",130,104,15);thumbnails[6412035]=new thumbnail(6412035,"272297","","2009-04-30_0761_BG-walking_thumb.jpg",130,163,15);thumbnails[6412045]=new thumbnail(6412045,"272297","","2008-Oct-10-116_thumb.jpg",130,104,15);thumbnails[6412047]=new thumbnail(6412047,"272297","","2008-Oct-10-038_colourize-1_thumb.jpg",130,163,15);thumbnails[6412052]=new thumbnail(6412052,"272297","","2008-Aug-22-063_thumb.jpg",130,195,15);thumbnails[6412054]=new thumbnail(6412054,"272297","","2008-Aug-22-101-copy_thumb.jpg",130,104,15);thumbnails[3908899]=new thumbnail(3908899,"64975","","Aeryn-Montage-Pic_thumb.jpg",130,89,15);thumbnails[3908992]=new thumbnail(3908992,"64975","","2009-05-10_1621_edited-2_thumb.jpg",130,130,15);thumbnails[3909051]=new thumbnail(3909051,"64975","","Josh-BW_thumb.jpg",130,163,15);thumbnails[3909712]=new thumbnail(3909712,"64975","","2008-Dec-11-0272_thumb.jpg",130,104,15);thumbnails[3909715]=new thumbnail(3909715,"64975","","2008-Dec-11-058-5x3-edited1_thumb.jpg",130,180,15);thumbnails[3909813]=new thumbnail(3909813,"64975","","2008-Dec-02-037-21_thumb.jpg",130,163,15);thumbnails[3909819]=new thumbnail(3909819,"64975","","2009-03-29_0333_edited-21_thumb.jpg",130,163,15);thumbnails[3909824]=new thumbnail(3909824,"64975","","2009-03-29_0395_edited-22_thumb.jpg",130,163,15);thumbnails[4408505]=new thumbnail(4408505,"64975","","Axel-4-aperture-print_thumb.jpg",130,130,15);thumbnails[4408538]=new thumbnail(4408538,"64975","","2009-06-14_2620_edited-1_thumb.jpg",130,104,15);thumbnails[4702293]=new thumbnail(4702293,"64975","","2009-08-08_4627_edited-3_thumb.jpg",130,104,15);thumbnails[4702297]=new thumbnail(4702297,"64975","","2009-08-08_4690_edited-1_thumb.jpg",130,87,15);thumbnails[5240626]=new thumbnail(5240626,"64975","","2009-12-05_8400_edited-2_thumb.jpg",130,163,15);thumbnails[5240629]=new thumbnail(5240629,"64975","","2009-12-05_8413_edited-2_thumb.jpg",130,163,15);thumbnails[5240642]=new thumbnail(5240642,"64975","","2009-12-05_8418_edited-2_thumb.jpg",130,163,15);thumbnails[6082992]=new thumbnail(6082992,"64975","","Calvin-12x12_thumb.jpg",130,130,15);thumbnails[3909044]=new thumbnail(3909044,"71271","","Madi-photoshoot-2_thumb.jpg",130,163,15);thumbnails[3909048]=new thumbnail(3909048,"71271","","2009-05-10_1760_edited-1_thumb.jpg",130,104,15);thumbnails[3909088]=new thumbnail(3909088,"71271","","Madi-photoshoot_thumb.jpg",130,104,15);thumbnails[3909481]=new thumbnail(3909481,"71271","","2008-Sep-27-041_thumb.jpg",130,163,15);thumbnails[3909484]=new thumbnail(3909484,"71271","","2008-Sep-27-054-edited1_thumb.jpg",130,163,15);thumbnails[4408481]=new thumbnail(4408481,"71271","","2009-07-20-31_edited-1_thumb.jpg",130,65,15);thumbnails[4408484]=new thumbnail(4408484,"71271","","2009-07-20-83_edited-1_thumb.jpg",130,130,15);thumbnails[4408487]=new thumbnail(4408487,"71271","","2009-07-20-108_edited-1_thumb.jpg",130,163,15);thumbnails[6410144]=new thumbnail(6410144,"71271","","2008-Sep-13-0161_thumb.jpg",130,104,15);thumbnails[3818100]=new thumbnail(3818100,"64976","Michelle - L'Oreal Hair Colour Trophy Photoshoot","2008-02-24-LynseyMichelle_thumb.jpg",130,163,15);thumbnails[3833521]=new thumbnail(3833521,"64976","Krista - L'Oreal Hair Colour Trophy Photoshoot","2009-02-08-060_thumb.jpg",130,163,15);thumbnails[3833998]=new thumbnail(3833998,"64976","Debra, L'Oreal Hair Colour Trophy Photoshoot","2009-02-08-044---Deborah-jp_thumb.jpg",130,163,15);thumbnails[3909189]=new thumbnail(3909189,"64976","Debra, L'Oreal Hair Colour Competition Photoshoot","2009-02-08-048_edited-1_thumb.jpg",130,163,15);thumbnails[3993931]=new thumbnail(3993931,"354206","","2009-05-30_2026_edited-1_thumb.jpg",130,163,15);thumbnails[4042335]=new thumbnail(4042335,"354206","","2009-05-30_1944_10x8-ok-lig_thumb.jpg",130,163,15);thumbnails[4702266]=new thumbnail(4702266,"354206","","2009-08-29_5195_edited-1_thumb.jpg",130,104,15);thumbnails[6412092]=new thumbnail(6412092,"354206","","1951_thumb.jpg",130,104,15);thumbnails[3909116]=new thumbnail(3909116,"64977","Bluebells, Portglenone Forest Park, Co.Antrim","2009-05-09_1567_edited-1_thumb.jpg",130,54,15);thumbnails[3910111]=new thumbnail(3910111,"64977","Fireworks, Carrickfergus Castle, Carrickfergus, Co.Antrim","2008-Nov-21-007a1_thumb.jpg",130,195,15);thumbnails[4408493]=new thumbnail(4408493,"64977","St.Johns Point Lighthouse, Co.Down","2009-07-25_4453_edited-1_thumb.jpg",130,163,15);thumbnails[4408500]=new thumbnail(4408500,"64977","Sail Boat, waters off St.Johns Point Lighthouse, Co.Down","2009-07-25_4480_edited-1_thumb.jpg",130,104,15);thumbnails[4413507]=new thumbnail(4413507,"64977","Cala Egos Bay, Mallorca","2009-07-10_4221-248_edite_thumb.jpg",130,163,15);thumbnails[4413519]=new thumbnail(4413519,"64977","Blackhead Lighthouse","2009-07-15_4254_edited-1_thumb.jpg",130,163,15);thumbnails[5669393]=new thumbnail(5669393,"64977","Islandmagee Panoramic","Panorama-over-Islandmagee_e_thumb.jpg",130,39,15);thumbnails[5669400]=new thumbnail(5669400,"64977","Rathlin Island Boat","Rathlin-island-boat_thumb.jpg",130,87,15);thumbnails[5669413]=new thumbnail(5669413,"64977","Sa Coma Beach, Mallorca","2008-06-05-001-02_thumb.jpg",130,163,15);thumbnails[5669416]=new thumbnail(5669416,"64977","Dark Hedges, Stranocum","Dark-Hedges-Stranocum_thumb.jpg",130,163,15);thumbnails[5669420]=new thumbnail(5669420,"64977","Glenarrif Waterfalls","2010-01-17_8561_edited-BW_thumb.jpg",130,104,15);thumbnails[5669426]=new thumbnail(5669426,"64977","Gleno Waterfall","080405-0012_thumb.jpg",130,163,15);thumbnails[5669432]=new thumbnail(5669432,"64977","Waterfront at Hazelbank, Newtownabbey","2010-02-14_9035_edited-1_thumb.jpg",130,163,15);thumbnails[5669437]=new thumbnail(5669437,"64977","Portglenone Bluebells","Bluebells-Portglenone-Fore_thumb.jpg",130,86,15);thumbnails[5669443]=new thumbnail(5669443,"64977","Woodburn Dams, Carrickfergus","2010-02-20_9153_edited-1_thumb.jpg",130,163,15);thumbnails[5669447]=new thumbnail(5669447,"64977","","2010-03-06_9479_edited-1_thumb.jpg",130,163,15);thumbnails[5669458]=new thumbnail(5669458,"64977","Herron with dinner","2010-03-06_9571_edited-1_thumb.jpg",130,104,15);thumbnails[5669462]=new thumbnail(5669462,"64977","Mourne Mountains","2010-03-07_9959_edited-1_thumb.jpg",130,54,15);thumbnails[5669486]=new thumbnail(5669486,"64977","Lough Neagh, Antrim","2010-03-06_9708_edited-1_thumb.jpg",130,52,15);thumbnails[5669489]=new thumbnail(5669489,"64977","Carrickfergus Castle ","Carrickfergus-Castle-at-Nig_thumb.jpg",130,104,15);thumbnails[5669500]=new thumbnail(5669500,"64977","Antrim Castle Grounds, Antrim","2009-04-18_1062_edited-1_thumb.jpg",130,163,15);thumbnails[5669509]=new thumbnail(5669509,"64977","Portballintrae Strand ","Portballintrae_Panorama2_ed_thumb.jpg",130,52,15);thumbnails[3833806]=new thumbnail(3833806,"232665","Waterdrops","Caroline-McCracken_thumb.jpg",130,130,15);thumbnails[3909688]=new thumbnail(3909688,"232665","Veins","2008-Oct-04-0711_thumb.jpg",130,163,15);thumbnails[3910669]=new thumbnail(3910669,"232665","Smoke Trails","2008-01-10-Smoke-Trails-037_thumb.jpg",130,195,15);thumbnails[3910674]=new thumbnail(3910674,"232665","Smoke Trails","2008-01-10-Smoke-Trails-0671_thumb.jpg",130,195,15);thumbnails[4066655]=new thumbnail(4066655,"232665","Keys","2009-06-10_2253_edited-1_thumb.jpg",130,104,15);thumbnails[4066660]=new thumbnail(4066660,"232665","Water drops on CD","2009-06-10_2292_edited-1_thumb.jpg",130,104,15);thumbnails[4073970]=new thumbnail(4073970,"232665","Walk through the forest","2009-04-18_0981_edited-1_thumb.jpg",130,163,15);var galleries=new Object();galleries[272297]=new gallery(272297,"6412054,6412052,6412047,6412045,6412035,6410166,6083042,6083032,6083028,6083026","WEDDING PHOTOGRAPHY","gallery",[4747593,4747612,4747633,4747637,4747644,4747680,4747681,4976503,4976507,4976896,4976904,4977088,4977093,4977100,4977165,4977169,6083002,6083007,6083013,6083019,6083026,6083028,6083032,6083042,6410166,6412035,6412045,6412047,6412052,6412054]);galleries[64975]=new gallery(64975,"6082992,5240642,5240629,5240626,4702297,4702293,4408538,4408505,3909824,3909819","BABY & CHILDREN PORTRAITURE","gallery",[3908899,3908992,3909051,3909712,3909715,3909813,3909819,3909824,4408505,4408538,4702293,4702297,5240626,5240629,5240642,6082992]);galleries[71271]=new gallery(71271,"6410144,4408487,4408484,4408481,3909484,3909481,3909088,3909048,3909044","ANIMAL PORTRAITURE","gallery",[3909044,3909048,3909088,3909481,3909484,4408481,4408484,4408487,6410144]);galleries[64976]=new gallery(64976,"3909189,3833998,3833521,3818100","MODEL PHOTOGRAPHY","gallery",[3818100,3833521,3833998,3909189]);galleries[354206]=new gallery(354206,"6412092,4702266,4042335,3993931","EVENT PHOTOGRAPHY","gallery",[3993931,4042335,4702266,6412092]);galleries[64977]=new gallery(64977,"5669509,5669500,5669489,5669486,5669462,5669458,5669447,5669443,5669437,5669432","LANDSCAPE PHOTOGRAPHY","gallery",[3909116,3910111,4408493,4408500,4413507,4413519,5669393,5669400,5669413,5669416,5669420,5669426,5669432,5669437,5669443,5669447,5669458,5669462,5669486,5669489,5669500,5669509]);galleries[232665]=new gallery(232665,"4073970,4066660,4066655,3910674,3910669,3909688,3833806","ABSTRACT PICTURES","gallery",[3833806,3909688,3910669,3910674,4066655,4066660,4073970]);var imageSets=new Object();imageSets[1]="6412092,6412054,6412052,6412047,6412045,6412035,6410166,6410144,6083042,6083032,6083028,6083026,6083019,6083013,6083007,6083002,6082992,5669509,5669500,5669489,5669486,5669462,5669458,5669447,5669443,5669437,5669432,5669426,5669420,5669416,5669413,5669400,5669393,5240642,5240629,5240626,4977169,4977165,4977100,4977093,4977088,4976904,4976896,4976507,4976503,4747681,4747680,4747644,4747637,4747633";imageSets[3]="6412092,6412054,6412052,6412047,6412045,6412035,6410166,6410144,6083042,6083032,6083028,6083026,6083019,6083013,6083007,6083002,6082992,5669509,5669500,5669489,5669486,5669462,5669458,5669447,5669443,5669437,5669432,5669426,5669420,5669416,5669413,5669400,5669393,5240642,5240629,5240626,4977169,4977165,4977100,4977093,4977088,4976904,4976896,4976507,4976503,4747681,4747680,4747644,4747637,4747633";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/livinglensphotography/images";break}switch(a){case 1:b="http://www1.clikpic.com/livinglensphotography/images";break}switch(a){case 2:b="http://admin.clikpic.com/livinglensphotography/images";break}switch(a){case 24:b="http://tpc15/clikpic/livinglensphotography/images";break}switch(a){case 4:b="http://www.clikchurch.com/livinglensphotography/images";break}switch(a){case 5:b="http://www2.clikpic.com/livinglensphotography/images";break}switch(a){case 22:b="http://tpc5/clikpic/livinglensphotography/images";break}switch(a){case 23:b="http://tpc10/clikpic/livinglensphotography/images";break}switch(a){case 25:b="http://tpc16/clikpic/livinglensphotography/images";break}switch(a){case 15:b="http://www3.clikpic.com/livinglensphotography/images";break}switch(a){case 18:b="http://www4.clikpic.com/livinglensphotography/images";break}switch(a){case 19:b="http://www5.clikpic.com/livinglensphotography/images";break}switch(a){case 31:b="http://www7.clikpic.com/livinglensphotography/images";break}switch(a){case 32:b="http://admin2.clikpic.com/livinglensphotography/images";break}switch(a){case 33:b="http://www8.clikpic.com/livinglensphotography/images";break}switch(a){case 34:b="http://www9.clikpic.com/livinglensphotography/images";break}switch(a){case 35:b="http://admin3.clikpic.com/livinglensphotography/images";break}switch(a){case 37:b="http://admin4.clikpic.com/livinglensphotography/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="LIVING LENS 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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</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="caroline.llp@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="caroline.llp@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+'")'})}}};