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[5560450]=new thumbnail(5560450,"40017","Joby Fox ","Joby_Fox0015a_thumb.jpg",86,130,1);thumbnails[5560452]=new thumbnail(5560452,"40017","Joby Fox","Joby_Fox0011a_thumb.jpg",86,130,1);thumbnails[5560453]=new thumbnail(5560453,"40017","Joby Fox ","Joby_Fox0007b_thumb.jpg",130,86,1);thumbnails[5560455]=new thumbnail(5560455,"40017","Joby Fox ","Joby_Fox0004_thumb.JPG",130,86,1);thumbnails[5560427]=new thumbnail(5560427,"40017","Horslips in the Odyssey Belfast","0514Horslips_in_the_Odyssey_thumb.jpg",130,90,1);thumbnails[5560431]=new thumbnail(5560431,"40017","Horslips in the Odyssey Belfast","0515Horslips_in_the_Odyssey_thumb.jpg",130,130,1);thumbnails[5560433]=new thumbnail(5560433,"40017","Horslips in the Odyssey Belfast","0517Horslips_in_the_Odyssey_thumb.jpg",130,90,1);thumbnails[5560436]=new thumbnail(5560436,"40017","Horslips in the Odyssey Belfast","0524Horslips_in_the_Odyssey_thumb.jpg",90,130,1);thumbnails[5560438]=new thumbnail(5560438,"40017","Horslips in the Odyssey Belfast","0525Horslips_in_the_Odyssey_thumb.jpg",130,90,1);thumbnails[5560440]=new thumbnail(5560440,"40017","Horslips in the Odyssey Belfast","0526Horslips_in_the_Odyssey_thumb.jpg",130,90,1);thumbnails[5560444]=new thumbnail(5560444,"40017","Horslips in the Odyssey Belfast","0534Horslips_in_the_Odyssey_thumb.jpg",90,130,1);thumbnails[5560491]=new thumbnail(5560491,"40021","Donegal","Donegal-August-2009-Edits-0003web_thumb.jpg",130,86,1);thumbnails[5560489]=new thumbnail(5560489,"40021","Murlough","0015Snow_Mournes_TreesCyano_thumb.jpg",130,86,1);thumbnails[619021]=new thumbnail(619021,"40021","RAF Spitfire at Duxford 2004","Pilotweb_thumb.jpg",130,94,1);thumbnails[829593]=new thumbnail(829593,"40017","Sting","Sting_001_thumb.jpg",86,130,1);thumbnails[525489]=new thumbnail(525489,"40017","U2 in concert Croke Park Dublin June 29, 1985","Bono_The_Edge_Adam_Clayton_Larry_Mullin_U2_Croke_Park_001 _thumb.jpg",130,86,1);thumbnails[525561]=new thumbnail(525561,"40017","The Edge with Bono and Adam Clayton Croke Park Dublin 29th June 1985","The_Edge_Bono_U2_Croke Park_005_thumb.jpg",111,130,1);thumbnails[671647]=new thumbnail(671647,"40017","Rory Gallagher ","Rory_Gallaher_Croke_Park_thumb.jpg",130,86,1);thumbnails[525443]=new thumbnail(525443,"40017","Bob Dylan in concert Slane Castle Ireland JULY 8, 1984","Bob_Dylan_046_thumb.jpg",109,130,1);thumbnails[525446]=new thumbnail(525446,"40017","Bob and Van together at Slane castle Ireland July 8 1984  ","Bob_Dylan_Van_Morrisson103_thumb.jpg",130,87,1);thumbnails[5560495]=new thumbnail(5560495,"40021","Gas Mask Lady","IMG354a_thumb.jpg",86,130,1);thumbnails[829445]=new thumbnail(829445,"40017","Motorheads' Philthy Animal Taylor ","Philthy_Animal_Taylor_001_thumb.jpg",92,130,1);thumbnails[533934]=new thumbnail(533934,"40017","Charles O'Connor Horslips","Charles_O'Connor_003_thumb.jpg",96,130,1);thumbnails[525349]=new thumbnail(525349,"40017","Phil Lynott in concert at the Kings Hall Belfast","Phil_Lynott_001_thumb.jpg",85,130,1);thumbnails[525537]=new thumbnail(525537,"40017","Bob Geldoff in concert Ulster Hall Belfast","Bob_Geldoff_Boomtown_ Rats_032_thumb.jpg",93,130,1);thumbnails[525655]=new thumbnail(525655,"40017","Fast Eddie Clarke of Motorhead","Fast_Eddy_Motorhead_001_thumb.jpg",85,130,1);thumbnails[525656]=new thumbnail(525656,"40017","Fergal Sharkey Ulster Hall","Fergal_Sharkey_The_Undertones_012_thumb.jpg",86,130,1);thumbnails[525664]=new thumbnail(525664,"40017","Fergal Sharkey backstage after a gig","Fergal_Sharkey_The_Undertones_013_thumb.jpg",86,130,1);thumbnails[525682]=new thumbnail(525682,"40017","Mark Knopfler in the Whitla Hall Belfast","Mark_Knopfler_Dire_Straits_046_thumb.jpg",93,130,1);thumbnails[528903]=new thumbnail(528903,"40019",'Protestors attack a line of RUC officers at "The Tunnel" in Portadown.',"The_Tunnel_002_thumb.jpg",130,104,1);thumbnails[528905]=new thumbnail(528905,"40019","Politician Jim Wells ","Jim_Wells_001_thumb.jpg",104,130,1);thumbnails[528906]=new thumbnail(528906,"40019","An ederly man attempts to walk up the Falls Road during fierce rioting.","Old_Man_Falls_Road_002_thumb.jpg",130,104,1);thumbnails[528971]=new thumbnail(528971,"40019","Exhausted RUC officers take a break  ","The_Tunnel_003_thumb.jpg",130,104,1);thumbnails[530725]=new thumbnail(530725,"40019","A helicopter gunners view of an Armagh mountain top security base","Gunners_View_of_Bandit_Country_001_thumb.jpg",130,86,1);thumbnails[530739]=new thumbnail(530739,"40021","East Belfast ","Belfast_Redevelopment_001_thumb.jpg",130,85,1);thumbnails[530825]=new thumbnail(530825,"40019","A Brish Army soldier takes aim on the Falls Road","British_Army_Falls_Road_Belfast001_thumb.jpg",85,130,1);thumbnails[530828]=new thumbnail(530828,"40019","Children play as barricades burn","Dangerous_ playtime_001_thumb.jpg",130,85,1);thumbnails[530932]=new thumbnail(530932,"40021","Flower","FrameFlower_1-2web_thumb.jpg",95,130,1);thumbnails[533090]=new thumbnail(533090,"40017","Horslips","Horslips_005_thumb.jpg",130,72,1);thumbnails[533938]=new thumbnail(533938,"40017","Graham Parker","Graham_Parker_01_thumb.jpg",85,130,1);thumbnails[533939]=new thumbnail(533939,"40017","Lemmy Motorhead","Lemmy_001_thumb.jpg",85,130,1);thumbnails[543900]=new thumbnail(543900,"40021","Fans of Rocky Horror Picture Show","Rocky_Horror_Picture_Show_001_thumb.jpg",85,130,1);thumbnails[543903]=new thumbnail(543903,"40021","Fans of the Rocky Horror Picture Show","Rocky_Horror_Picture_Show_002_thumb.jpg",85,130,1);thumbnails[543905]=new thumbnail(543905,"40021","Fans of Rocky Horror Picture Show ","Rocky_Horror_Picture_Show_003_thumb.jpg",130,85,1);thumbnails[543907]=new thumbnail(543907,"40021","Fans of Rocky Horror Picture Show ","Rocky_Horror_Picture_Show_004_thumb.jpg",130,85,1);thumbnails[593146]=new thumbnail(593146,"40017","Henry Cluney of Stiff Little Fingers","Stiff_Little_Fingers_006_thumb.jpg",86,130,1);thumbnails[593150]=new thumbnail(593150,"40017","Jake Burns of Stiff Little Fingers onstage in the legendary Pound Club ","Stiff_Little_Fingers_010_thumb.jpg",85,130,1);thumbnails[593154]=new thumbnail(593154,"40017"," Stiff Little Fingers onstage in the legendary Pound Club ","Stiff-Little-Fingers_007_thumb.jpg",130,86,1);thumbnails[607312]=new thumbnail(607312,"40017","John O'Neill and Michael Bradley of The Undertones","John_O'Neill_Michael_Bradley_The_Undertones_thumb.jpg",86,130,1);thumbnails[607319]=new thumbnail(607319,"","","sophiedress404_thumb.jpg",85,130,1);thumbnails[621079]=new thumbnail(621079,"","Achill Island","Achill_2005_005web_thumb.jpg",130,84,1);thumbnails[621087]=new thumbnail(621087,"","Achill Island","Achill_2005_002_thumb.jpg",130,86,1);thumbnails[825040]=new thumbnail(825040,"40017","Johnny Fean of Horslips ","JohnnyFean001_thumb.jpg",96,130,1);thumbnails[825104]=new thumbnail(825104,"40017","Mark Knopfler of Dire Straits","Dire_Straits_006web_thumb.jpg",85,130,1);thumbnails[825250]=new thumbnail(825250,"40017","Mark Knopfler of Dire Straits","Mark_Knopfler_002web1_thumb.jpg",90,130,1);thumbnails[825256]=new thumbnail(825256,"40017","Phil Lynott of Thin Lizzy","Phil_Lynott_002web2_thumb.jpg",86,130,1);thumbnails[825263]=new thumbnail(825263,"40017","Phil Lynott of Thin Lizzy","Phil_Lynott_001web3_thumb.jpg",85,130,1);thumbnails[829431]=new thumbnail(829431,"","Kerry Seascape","Kerry_003_thumb.jpg",130,62,1);thumbnails[829436]=new thumbnail(829436,"40017","Motorhead backstage ","Motorhead_015_thumb.jpg",130,88,1);thumbnails[829629]=new thumbnail(829629,"40019","Ian Paisley","Ian_Paisley_002_thumb.jpg",130,85,1);thumbnails[836189]=new thumbnail(836189,"40021","Pierce Brosnan","Pierce_Brosnan_001_thumb.jpg",96,130,1);thumbnails[966819]=new thumbnail(966819,"","","Sophie_blue_thumb.jpg",130,86,1);thumbnails[966960]=new thumbnail(966960,"","Kerry Coastline","Kerry-Coast_thumb.jpg",130,86,1);thumbnails[967269]=new thumbnail(967269,"","Low Tide","Dundrum_Murlough1_thumb.jpg",130,98,1);thumbnails[995856]=new thumbnail(995856,"40017","Lemmy","Lemmy_beer_thumb.jpg",83,130,1);thumbnails[1006298]=new thumbnail(1006298,"40017","Marty Lundy of Katmandu","Katmandu_06a_thumb.jpg",82,130,1);thumbnails[1006300]=new thumbnail(1006300,"40017","Trevor Hutchinson of Katmandu","Katmandu_05a_thumb.jpg",85,130,1);thumbnails[1006303]=new thumbnail(1006303,"40017","Peter McKinney, Trevor Hutchinson and Fitzy from Katmandu","Katmandu_04a_thumb.jpg",130,85,1);thumbnails[1006309]=new thumbnail(1006309,"40017","Katmandu","Katmandu_03a_thumb.jpg",130,85,1);thumbnails[1006548]=new thumbnail(1006548,"40017","Marty Lundy","Katmandu_09a_thumb.jpg",87,130,1);thumbnails[1145123]=new thumbnail(1145123,"40017","Buster Bloodvessel","Buster-Bloodvessel002edited_thumb.jpg",86,130,1);thumbnails[1301451]=new thumbnail(1301451,"","Mourne Gate","MourneGate2_thumb.jpg",130,95,1);thumbnails[1301462]=new thumbnail(1301462,"","Tors on Dartmoor","Dartmoor_5jpg1_thumb.jpg",130,95,1);thumbnails[1301464]=new thumbnail(1301464,"","Tors on Dartmoor","Dartmoor_32_thumb.jpg",130,95,1);thumbnails[1301465]=new thumbnail(1301465,"","Tors on Dartmoor","Dartmoor_5jpg2_thumb.jpg",130,95,1);thumbnails[1301466]=new thumbnail(1301466,"","Gleno","GlenoBike_Colour11_thumb.jpg",130,95,1);thumbnails[1301472]=new thumbnail(1301472,"","Gleno Village","GlenoColour11_thumb.jpg",130,95,1);thumbnails[1301473]=new thumbnail(1301473,"","Mourne Panorama Winter","Mourne_Panorama21_thumb.jpg",130,57,1);thumbnails[1301474]=new thumbnail(1301474,"","Dundrum Quay","MournesAnchor1_thumb.jpg",130,95,1);thumbnails[1301475]=new thumbnail(1301475,"","Canoes on Dundrum inner bay","MournesCanoes1_thumb.jpg",130,95,1);thumbnails[1301478]=new thumbnail(1301478,"","Mournes from Murlough","MournesDunes!_thumb.jpg",130,95,1);thumbnails[1301484]=new thumbnail(1301484,"","Another Munroe beckons","Munroe_002border_thumb.jpg",130,95,1);thumbnails[1301485]=new thumbnail(1301485,"","Royal Palace Seville Spain","PalaceSeville_1_thumb.jpg",130,95,1);thumbnails[1301487]=new thumbnail(1301487,"","Slieve Bearnagh","SlieveBearnagh_1_thumb.jpg",130,95,1);thumbnails[1301494]=new thumbnail(1301494,"","Valentia Sunset","Valentia_1_thumb.jpg",130,95,1);thumbnails[1426895]=new thumbnail(1426895,"","Mournes from Shague Hill","Dundrum_Panorama2web_thumb.jpg",130,45,1);thumbnails[1426902]=new thumbnail(1426902,"","Swans in Murlough Inner Bay","MurloughSwans2web_thumb.jpg",130,95,1);thumbnails[1426903]=new thumbnail(1426903,"","Dundrum Panorama","Dundrum_Panorama1web_thumb.jpg",130,32,1);thumbnails[1426949]=new thumbnail(1426949,"","Slieve Donard Hotel","SlieveDonard_Panorama1web_thumb.jpg",130,40,1);thumbnails[1427055]=new thumbnail(1427055,"","Murlough Beach","MurloughPan_1web_thumb.jpg",130,37,1);thumbnails[2035441]=new thumbnail(2035441,"","","Sophie_thumb.JPG",98,130,1);thumbnails[2035443]=new thumbnail(2035443,"","","engaged2_thumb.jpg",130,86,1);thumbnails[2035909]=new thumbnail(2035909,"40021","Fingerprint Officer","fingerprintweb_700x519_thumb.jpg",130,96,1);thumbnails[2035911]=new thumbnail(2035911,"","","engaged3_thumb.jpg",130,104,1);thumbnails[2035916]=new thumbnail(2035916,"","","engaged4_thumb.jpg",130,104,1);thumbnails[2035922]=new thumbnail(2035922,"40019","George Best","George_Best_001_thumb.jpg",90,130,1);thumbnails[2036178]=new thumbnail(2036178,"40021","Thanksgiving figure<br>\r\n","PeaceFigure1_754x1079_thumb.jpg",91,130,1);thumbnails[2047362]=new thumbnail(2047362,"40017","Bono at Croke Park Dublin 29th June 1985","Bono_U2_Croke_Park_thumb.jpg",130,86,1);thumbnails[2047587]=new thumbnail(2047587,"40017","Wilko Johnston","Wilko1web_thumb.jpg",85,130,1);thumbnails[2047789]=new thumbnail(2047789,"40017","Joan Jett in the Gresham Hotel Dublin","Joan_Jett_006web_thumb.jpg",86,130,1);thumbnails[3166908]=new thumbnail(3166908,"","","Colleen1portraitWeb_thumb.jpg",130,130,1);thumbnails[3166921]=new thumbnail(3166921,"","","Phillip2portraitWeb_thumb.jpg",130,130,1);thumbnails[3166927]=new thumbnail(3166927,"","","Marie4portraitWeb_thumb.jpg",130,130,1);thumbnails[3166951]=new thumbnail(3166951,"","","Colm2portraitWeb_thumb.jpg",130,130,1);thumbnails[3933072]=new thumbnail(3933072,"40017","Jim Armstrong at the Legendary Pound Club Belfast","JimArmstrong1web_thumb.jpg",94,130,1);thumbnails[5560497]=new thumbnail(5560497,"40021","Mournes","IMG_0441_copyMournes_thumb.jpg",130,87,1);thumbnails[5560499]=new thumbnail(5560499,"40021","Murlough","Murlough0139a1_thumb.jpg",130,86,1);thumbnails[5560501]=new thumbnail(5560501,"40021","Murlough","Murlough_0SH_0054a_thumb.jpg",130,86,1);var galleries=new Object();galleries[40021]=new gallery(40021,"5560501,5560499,5560497,5560495,5560491,5560489,2036178,2035909,836189,619021","Miscellaneous","gallery",[5560491,5560489,619021,5560495,530739,530932,543900,543903,543905,543907,836189,2035909,2036178,5560497,5560499,5560501]);galleries[40017]=new gallery(40017,"5560455,5560453,5560452,5560450,5560444,5560440,5560438,5560436,5560433,5560431","Music","gallery",[5560450,5560452,5560453,5560455,5560427,5560431,5560433,5560436,5560438,5560440,5560444,829593,525489,525561,671647,525443,525446,829445,533934,525349,525537,525655,525656,525664,525682,533090,533938,533939,593146,593150,593154,607312,825040,825104,825250,825256,825263,829436,995856,1006298,1006300,1006303,1006309,1006548,1145123,2047362,2047587,2047789,3933072]);galleries[40019]=new gallery(40019,"2035922,829629,530828,530825,530725,528971,528906,528905,528903","Press","gallery",[528903,528905,528906,528971,530725,530825,530828,829629,2035922]);var imageSets=new Object();imageSets[1]="1301472";imageSets[3]="5560501,5560499,5560497,5560495,5560491,5560489,5560455,5560453,5560452,5560450,5560444,5560440,5560438,5560436,5560433,5560431,5560427,3933072,3166951,3166927,3166921,3166908,2047789,2047587,2047362,2036178,2035922,2035916,2035911,2035909,2035443,2035441,1427055,1426949,1426903,1426902,1426895,1301494,1301487,1301485,1301484,1301478,1301475,1301474,1301473,1301472,1301466,1301465,1301464,1301462";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/seanhennessy/images";break}switch(a){case 1:b="http://www1.clikpic.com/seanhennessy/images";break}switch(a){case 2:b="http://admin.clikpic.com/seanhennessy/images";break}switch(a){case 24:b="http://tpc15/clikpic/seanhennessy/images";break}switch(a){case 4:b="http://www.clikchurch.com/seanhennessy/images";break}switch(a){case 5:b="http://www2.clikpic.com/seanhennessy/images";break}switch(a){case 22:b="http://tpc5/clikpic/seanhennessy/images";break}switch(a){case 23:b="http://tpc10/clikpic/seanhennessy/images";break}switch(a){case 25:b="http://tpc16/clikpic/seanhennessy/images";break}switch(a){case 15:b="http://www3.clikpic.com/seanhennessy/images";break}switch(a){case 18:b="http://www4.clikpic.com/seanhennessy/images";break}switch(a){case 19:b="http://www5.clikpic.com/seanhennessy/images";break}switch(a){case 31:b="http://www7.clikpic.com/seanhennessy/images";break}switch(a){case 32:b="http://admin2.clikpic.com/seanhennessy/images";break}switch(a){case 33:b="http://www8.clikpic.com/seanhennessy/images";break}switch(a){case 34:b="http://www9.clikpic.com/seanhennessy/images";break}switch(a){case 35:b="http://admin3.clikpic.com/seanhennessy/images";break}switch(a){case 37:b="http://admin4.clikpic.com/seanhennessy/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="'+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="Hennessy 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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="SEANHENNESSY">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};