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[1910073]=new thumbnail(1910073,"","","Sikh wedding_thumb.jpg",130,85,1);thumbnails[334776]=new thumbnail(334776,"","Arabic dancing Piccadilly Theatre Beirut Lebanon","Arabic dancing Beirut_thumb.jpg",130,85,1);thumbnails[1915498]=new thumbnail(1915498,"","","children 2_thumb.jpg",130,87,1);thumbnails[1919909]=new thumbnail(1919909,"","","Health_thumb.jpg",130,194,1);thumbnails[1917428]=new thumbnail(1917428,"127433","","Me!1_thumb.jpg",130,194,1);thumbnails[334815]=new thumbnail(334815,"234252","","After School Club1_thumb.jpg",130,87,1);thumbnails[1807453]=new thumbnail(1807453,"234889","Carers UK","Carers UK mag_thumb.jpg",130,185,1);thumbnails[334789]=new thumbnail(334789,"234889","Association of London Government - London Bulletin magazine","ALG-London Bulletin_thumb.jpg",130,184,1);thumbnails[933418]=new thumbnail(933418,"234252","","Editorial 3_thumb.jpg",130,87,1);thumbnails[334792]=new thumbnail(334792,"234889","Promoting Independence - Heinemann publishing","Promoting Independence_thumb.jpg",130,176,1);thumbnails[334897]=new thumbnail(334897,"234889","NACRO - Safer Society magazine","NACRO_thumb.jpg",130,186,1);thumbnails[1910075]=new thumbnail(1910075,"234252","","Autism 1_1_thumb.jpg",130,85,1);thumbnails[334820]=new thumbnail(334820,"234252","","Elderly 6_thumb.jpg",130,85,1);thumbnails[340640]=new thumbnail(340640,"234889","Community Care magazine","Community Care mag_thumb.jpg",130,184,1);thumbnails[3858880]=new thumbnail(3858880,"234252","","People-05_thumb.jpg",130,87,1);thumbnails[335715]=new thumbnail(335715,"234252","","Police_thumb.jpg",130,84,1);thumbnails[337155]=new thumbnail(337155,"234889","Sociology Review magazine","sociology1_thumb.jpg",130,174,1);thumbnails[337518]=new thumbnail(337518,"234889","Help the Aged","Help the Aged_thumb.jpg",130,187,1);thumbnails[1946971]=new thumbnail(1946971,"234252","","School7_thumb.jpg",130,87,1);thumbnails[334877]=new thumbnail(334877,"234889","Guide Dogs for the Blind - Forward magazine","Guide Dogs for the Blind 2_thumb.jpg",130,180,1);thumbnails[1915262]=new thumbnail(1915262,"234252","","Elderly 11_thumb.jpg",130,86,1);thumbnails[334935]=new thumbnail(334935,"234889","Waverley School for Girls - Prospectus","Waverley School_thumb.jpg",130,185,1);thumbnails[1910720]=new thumbnail(1910720,"234252","","Health 03_thumb.jpg",130,87,1);thumbnails[334822]=new thumbnail(334822,"234252","","Elderly day centre_thumb.jpg",130,85,1);thumbnails[334925]=new thumbnail(334925,"234889","Prima magazine promotion for Kids' Clubs Network after school clubs","Kids' Clubs Network_thumb.jpg",130,185,1);thumbnails[1210514]=new thumbnail(1210514,"234889","Hounslow Council - Fostering Campaign","HP2_thumb.jpg",130,184,1);thumbnails[1210540]=new thumbnail(1210540,"234889","Hounslow Council - Fostering Campaign","HP 3_thumb.jpg",130,181,1);thumbnails[1910755]=new thumbnail(1910755,"234252","","Conf 01_thumb.jpg",130,86,1);thumbnails[334794]=new thumbnail(334794,"234889","Guide Dogs for the Blind","GDBA_thumb.jpg",130,183,1);thumbnails[1911163]=new thumbnail(1911163,"234252","","Disability 02_thumb.jpg",130,89,1);thumbnails[334892]=new thumbnail(334892,"234889","Working Families - Annual Report","Working Families_thumb.jpg",130,185,1);thumbnails[3851826]=new thumbnail(3851826,"234252","","People-01_thumb.jpg",130,194,1);thumbnails[334819]=new thumbnail(334819,"234252","","Nursery kids art class_thumb.jpg",130,197,1);thumbnails[337542]=new thumbnail(337542,"234889","Special Children magazine","Special Children_thumb.jpg",130,183,1);thumbnails[334795]=new thumbnail(334795,"234889","Southwark Council's residents' magazine Southwark Life","Southwark Life 2_thumb.jpg",130,184,1);thumbnails[935467]=new thumbnail(935467,"234252","","Tea dance for elderly_thumb.jpg",130,194,1);thumbnails[334875]=new thumbnail(334875,"234889","Guide Dogs for the Blind - 2004 Calendar","Guide Dogs Calendar_thumb.jpg",130,158,1);thumbnails[1919762]=new thumbnail(1919762,"234252","","7 July rally_1_thumb.jpg",130,186,1);thumbnails[1919710]=new thumbnail(1919710,"234252","","Climate Change_thumb.jpg",130,207,1);thumbnails[334903]=new thumbnail(334903,"234889","Royal College of Speech and Language Therapists - Bulletin magazine","Bulletin_thumb.jpg",130,183,1);thumbnails[334924]=new thumbnail(334924,"234889","British Mediterranean Airways - Corporate Uniform Guide","British Mediterranean Airways_thumb.jpg",130,186,1);thumbnails[1917645]=new thumbnail(1917645,"234252","","Health 06_thumb.jpg",130,192,1);thumbnails[334889]=new thumbnail(334889,"234889","My Sikh Year - Wayland publishing","My Sikh Year_thumb.jpg",130,163,1);thumbnails[1920709]=new thumbnail(1920709,"234252","","Elderly 07_thumb.jpg",130,194,1);thumbnails[1917619]=new thumbnail(1917619,"234252","","Education 081_thumb.jpg",130,194,1);thumbnails[1917509]=new thumbnail(1917509,"234252","","Education 08_thumb.jpg",130,194,1);thumbnails[1910688]=new thumbnail(1910688,"234252","","Health 01_thumb.jpg",130,193,1);thumbnails[1920634]=new thumbnail(1920634,"234252","","Elderly 08_thumb.jpg",130,201,1);thumbnails[1910881]=new thumbnail(1910881,"234252","","Conf 05_thumb.jpg",130,194,1);thumbnails[3855105]=new thumbnail(3855105,"234253","","Press__PR-01_thumb.jpg",130,87,1);thumbnails[3855107]=new thumbnail(3855107,"234253","","Press__PR-02_thumb.jpg",130,87,1);thumbnails[3855128]=new thumbnail(3855128,"234253","","Press__PR-03_thumb.jpg",130,87,1);thumbnails[3855134]=new thumbnail(3855134,"234253","","Press__PR-04_thumb.jpg",130,87,1);thumbnails[3855138]=new thumbnail(3855138,"234253","","Press__PR-05_thumb.jpg",130,86,1);thumbnails[3855154]=new thumbnail(3855154,"234253","","Press__PR-061_thumb.jpg",130,73,1);thumbnails[3855144]=new thumbnail(3855144,"234253","","Press__PR-07_thumb.jpg",130,87,1);thumbnails[3855159]=new thumbnail(3855159,"234253","","Press__PR-08_thumb.jpg",130,83,1);thumbnails[3855161]=new thumbnail(3855161,"234253","","Press__PR-09_thumb.jpg",130,90,1);thumbnails[3855164]=new thumbnail(3855164,"234253","","Press__PR-10_thumb.jpg",130,96,1);thumbnails[3855168]=new thumbnail(3855168,"234253","","Press__PR-11_thumb.jpg",130,87,1);thumbnails[3855174]=new thumbnail(3855174,"234253","","Press__PR-12_thumb.jpg",130,86,1);thumbnails[3855177]=new thumbnail(3855177,"234253","","Press__PR-13_thumb.jpg",130,174,1);thumbnails[3855180]=new thumbnail(3855180,"234253","","Press__PR-14_thumb.jpg",130,194,1);thumbnails[3855228]=new thumbnail(3855228,"234253","","Press__PR-15_thumb.jpg",130,194,1);thumbnails[3855229]=new thumbnail(3855229,"234253","","Press__PR-16_thumb.jpg",130,194,1);thumbnails[3855231]=new thumbnail(3855231,"234253","","Press__PR-17_thumb.jpg",130,212,1);thumbnails[3855233]=new thumbnail(3855233,"234253","","Press__PR-18_thumb.jpg",130,194,1);thumbnails[3855234]=new thumbnail(3855234,"234253","","Press__PR-19_thumb.jpg",130,194,1);thumbnails[3878051]=new thumbnail(3878051,"234253","","Press-20_thumb.jpg",130,194,1);thumbnails[340642]=new thumbnail(340642,"28376","Lonely Planet guide book - Lebanon","LP Guide-Lebanon_thumb.jpg",130,188,1);thumbnails[1807466]=new thumbnail(1807466,"28376","Bradt guide to Georgia","Georgia guide_thumb.jpg",130,211,1);thumbnails[3855572]=new thumbnail(3855572,"234255","The Last Confession","Performing_Arts-01_thumb.jpg",130,87,1);thumbnails[1919881]=new thumbnail(1919881,"234255","Italian film composer Ennio Morricone ","Ennio Morricone_thumb.jpg",130,87,1);thumbnails[3855595]=new thumbnail(3855595,"234255","The Government Inspector ","Performing_Arts-03_thumb.jpg",130,87,1);thumbnails[3855625]=new thumbnail(3855625,"234255","Ocean World","Performing_Arts-04_thumb.jpg",130,91,1);thumbnails[3855648]=new thumbnail(3855648,"234255","Pascal Roge","Performing_Arts-05_thumb.jpg",130,87,1);thumbnails[3855681]=new thumbnail(3855681,"234255","Waltz of the Toreadors ","Performing_Arts-06_thumb.jpg",130,87,1);thumbnails[3855692]=new thumbnail(3855692,"234255","The Scarlet Letter","Performing_Arts-07_thumb.jpg",130,87,1);thumbnails[3855701]=new thumbnail(3855701,"234255","Toyah Willcox","Performing_Arts-08_thumb.jpg",130,87,1);thumbnails[3855715]=new thumbnail(3855715,"234255","Flamenco","Performing_Arts-09_thumb.jpg",130,200,1);thumbnails[3855723]=new thumbnail(3855723,"234255","Youth theatre ","Performing_Arts-10_thumb.jpg",130,194,1);thumbnails[3855733]=new thumbnail(3855733,"234255","Funny Girl","Performing_Arts-11_thumb.jpg",130,183,1);thumbnails[3855741]=new thumbnail(3855741,"234255","Sophie Ellis Bextor","Performing_Arts-12_thumb.jpg",130,194,1);thumbnails[3855747]=new thumbnail(3855747,"234255","Six Pictures of Lee Miller","Performing_Arts-13_thumb.jpg",130,195,1);thumbnails[3855750]=new thumbnail(3855750,"234255","Billie Piper","Performing_Arts-14_thumb.jpg",130,191,1);thumbnails[3855755]=new thumbnail(3855755,"234255","Hay Fever","Performing_Arts-15_thumb.jpg",130,194,1);thumbnails[3855761]=new thumbnail(3855761,"234255","Carousel ","Performing_Arts-16_thumb.jpg",130,175,1);thumbnails[334851]=new thumbnail(334851,"28376","Dome of the Rock - TNT magazine","TNT Magazine_thumb.jpg",130,185,1);thumbnails[337526]=new thumbnail(337526,"28376","The Middle East magazine","ME Mag_thumb.jpg",130,168,1);thumbnails[337525]=new thumbnail(337525,"28376","Malev Airlines inflight magazine - Horizon ","Malev Airlines_thumb.jpg",130,174,1);thumbnails[337529]=new thumbnail(337529,"28376","The Observer newspaper - Travel section","Observer_thumb.jpg",130,170,1);thumbnails[337537]=new thumbnail(337537,"28376","Wayland Publishing - Moses and Judaism","Wayland Pub_thumb.jpg",130,181,1);thumbnails[1910283]=new thumbnail(1910283,"28376","The Middle East magazine","ME mag 2_thumb.jpg",130,171,1);thumbnails[1910682]=new thumbnail(1910682,"28376","","Peace sculpture_thumb.jpg",130,171,1);thumbnails[1910495]=new thumbnail(1910495,"128150","Copper souq, Tripoli, Libya","Tripoli [Libya] 163_thumb.jpg",130,87,1);thumbnails[336040]=new thumbnail(336040,"128150","Bukhara Uzbekistan","Bukhara 27_thumb.jpg",130,102,1);thumbnails[718288]=new thumbnail(718288,"128150","Tashkent, Uzbekistan","Tashkent 13_thumb.jpg",130,85,1);thumbnails[335907]=new thumbnail(335907,"128150","Cairo, Egypt","Cairo_thumb.jpg",130,85,1);thumbnails[334824]=new thumbnail(334824,"128150","Beirut, Lebanon","Beirut_thumb.jpg",130,86,1);thumbnails[335911]=new thumbnail(335911,"128150","Alexandria, Egypt","Alex3_thumb.jpg",130,84,1);thumbnails[335914]=new thumbnail(335914,"128150","Alexandria, Egypt","Alex4_thumb.jpg",130,85,1);thumbnails[336333]=new thumbnail(336333,"128150","Old City, Jerusalem, Israel","Israel2_thumb.jpg",130,84,1);thumbnails[334828]=new thumbnail(334828,"128150","Corniche, Beirut, Lebanon","Beirut 2_thumb.jpg",130,82,1);thumbnails[336028]=new thumbnail(336028,"128150","Tashkent, Uzbekistan","Tashkent_thumb.jpg",130,85,1);thumbnails[1910610]=new thumbnail(1910610,"128150","Gurgi Mosque, Tripoli, Libya","Tripoli [Libya]_thumb.jpg",130,93,1);thumbnails[336019]=new thumbnail(336019,"128150","Tel Aviv, Israel","Tel Aviv_thumb.jpg",130,84,1);thumbnails[722900]=new thumbnail(722900,"128150","Byblos, Lebanon","Fisherman,Byblos, Lebanon_thumb.jpg",130,85,1);thumbnails[722915]=new thumbnail(722915,"128150","Tetrapylon, Palmyra, Syria","Syria 1_thumb.jpg",130,85,1);thumbnails[1917355]=new thumbnail(1917355,"128150","Temple of Hercules, Amman, Jordan","Amman Jordan_thumb.jpg",130,86,1);thumbnails[722913]=new thumbnail(722913,"128150","Byblos, Lebanon","Harbour, Byblos, LEBANON copy_thumb.jpg",130,84,1);thumbnails[335879]=new thumbnail(335879,"128150","Street bread vendor, Beirut, Lebanon","Beirut 5_thumb.jpg",130,196,1);thumbnails[335867]=new thumbnail(335867,"128150","Beirut, Lebanon"," BEIRUT_thumb.jpg",130,200,1);thumbnails[336276]=new thumbnail(336276,"128150","Tbilisi, Georgia ","Georgia1_thumb.jpg",130,199,1);thumbnails[336278]=new thumbnail(336278,"128150","Tbilisi, Georgia ","Georgia3_thumb.jpg",130,195,1);thumbnails[1915216]=new thumbnail(1915216,"128150","Bukhara, Uzbekistan","Bukhara 14_thumb.jpg",130,199,1);thumbnails[1915241]=new thumbnail(1915241,"128150","Ghadames, Libya","Ghadames [Libya]_thumb.jpg",130,194,1);thumbnails[1919752]=new thumbnail(1919752,"128150","Damascus, Syria"," Syria_thumb.jpg",130,190,2);thumbnails[3851845]=new thumbnail(3851845,"128150","Cadiar, Alpujarra, Spain ","Cadiar_Spain_thumb.jpg",130,194,1);var galleries=new Object();galleries[127433]=new gallery(127433,"1917428","BIOGRAPHY","section166386",[1917428]);galleries[234889]=new gallery(234889,"1807453","Editorial","section47103",[1807453,334789,334792,334897,340640,337155,337518,334877,334935,334925,1210514,1210540,334794,334892,337542,334795,334875,334903,334924,334889]);galleries[234252]=new gallery(234252,"3858880","People","gallery",[334815,933418,1910075,334820,3858880,335715,1946971,1915262,1910720,334822,1910755,1911163,3851826,334819,935467,1919762,1919710,1917645,1920709,1917619,1917509,1910688,1920634,1910881]);galleries[234253]=new gallery(234253,"3855128","Press / PR","gallery",[3855105,3855107,3855128,3855134,3855138,3855154,3855144,3855159,3855161,3855164,3855168,3855174,3855177,3855180,3855228,3855229,3855231,3855233,3855234,3878051]);galleries[28376]=new gallery(28376,"1910682,1910283,1807466,340642,337537,337529,337526,337525,334851","Journeys","section47103",[340642,1807466,334851,337526,337525,337529,337537,1910283,1910682]);galleries[234255]=new gallery(234255,"1919881","Performing Arts","gallery",[3855572,1919881,3855595,3855625,3855648,3855681,3855692,3855701,3855715,3855723,3855733,3855741,3855747,3855750,3855755,3855761]);galleries[128150]=new gallery(128150,"1910495","Journeys","gallery",[1910495,336040,718288,335907,334824,335911,335914,336333,334828,336028,1910610,336019,722900,722915,1917355,722913,335879,335867,336276,336278,1915216,1915241,1919752,3851845]);var imageSets=new Object();imageSets[1]="3858880,3855231,1915498,1910075,1910073,334776";imageSets[2]="3858880,3855128,1919881,1910495,1807453";imageSets[3]="3878051,3858880,3855761,3855755,3855750,3855747,3855741,3855733,3855723,3855715,3855701,3855692,3855681,3855648,3855625,3855595,3855572,3855234,3855233,3855231,3855229,3855228,3855180,3855177,3855174,3855168,3855164,3855161,3855159,3855154,3855144,3855138,3855134,3855128,3855107,3855105,3851845,3851826,1946971,1920709,1920634,1919909,1919881,1919762,1919752,1919710,1917645,1917619,1917509,1917428";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/SocTravsite/images";break}switch(a){case 1:b="http://www1.clikpic.com/SocTravsite/images";break}switch(a){case 2:b="http://admin.clikpic.com/SocTravsite/images";break}switch(a){case 24:b="http://tpc15/clikpic/SocTravsite/images";break}switch(a){case 4:b="http://www.clikchurch.com/SocTravsite/images";break}switch(a){case 5:b="http://www2.clikpic.com/SocTravsite/images";break}switch(a){case 22:b="http://tpc5/clikpic/SocTravsite/images";break}switch(a){case 23:b="http://tpc10/clikpic/SocTravsite/images";break}switch(a){case 25:b="http://tpc16/clikpic/SocTravsite/images";break}switch(a){case 15:b="http://www3.clikpic.com/SocTravsite/images";break}switch(a){case 18:b="http://www4.clikpic.com/SocTravsite/images";break}switch(a){case 19:b="http://www5.clikpic.com/SocTravsite/images";break}switch(a){case 31:b="http://www7.clikpic.com/SocTravsite/images";break}switch(a){case 32:b="http://admin2.clikpic.com/SocTravsite/images";break}switch(a){case 33:b="http://www8.clikpic.com/SocTravsite/images";break}switch(a){case 34:b="http://www9.clikpic.com/SocTravsite/images";break}switch(a){case 35:b="http://admin3.clikpic.com/SocTravsite/images";break}switch(a){case 37:b="http://admin4.clikpic.com/SocTravsite/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("section166386"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section166386.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("section166386"!=""){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="Paul Doyle 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="info@pauldoylefoto.co.uk">';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="info@pauldoylefoto.co.uk">';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+'")'})}}};