window.thumbnails = {};
															thumbnails[621079] = clik.newPhoto({"id":621079,"src":"Achill_2005_005web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Achill Island","height":84});
															thumbnails[621087] = clik.newPhoto({"id":621087,"src":"Achill_2005_002_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Achill Island","height":86});
															thumbnails[829431] = clik.newPhoto({"id":829431,"src":"Kerry_003_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Kerry Seascape","height":62});
															thumbnails[966819] = clik.newPhoto({"id":966819,"src":"Sophie_blue_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[1301466] = clik.newPhoto({"id":1301466,"src":"GlenoBike_Colour11_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Gleno","height":95});
															thumbnails[1301475] = clik.newPhoto({"id":1301475,"src":"MournesCanoes1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Canoes on Dundrum inner bay","height":95});
															thumbnails[1301478] = clik.newPhoto({"id":1301478,"src":"MournesDunes!_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Mournes from Murlough","height":95});
															thumbnails[1301484] = clik.newPhoto({"id":1301484,"src":"Munroe_002border_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Another Munroe beckons","height":95});
															thumbnails[1301485] = clik.newPhoto({"id":1301485,"src":"PalaceSeville_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Royal Palace Seville Spain","height":95});
															thumbnails[1301487] = clik.newPhoto({"id":1301487,"src":"SlieveBearnagh_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Slieve Bearnagh","height":95});
															thumbnails[1301494] = clik.newPhoto({"id":1301494,"src":"Valentia_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Valentia Sunset","height":95});
															thumbnails[1427055] = clik.newPhoto({"id":1427055,"src":"MurloughPan_1web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Murlough Beach","height":37});
															thumbnails[2035441] = clik.newPhoto({"id":2035441,"src":"Sophie_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":98,"caption":"","height":130});
															thumbnails[6500399] = clik.newPhoto({"id":6500399,"src":"SHE_6842a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6500399.html","width":130,"caption":"The Red Arrows Newcastle 07\/08\/2010","height":86});
															thumbnails[6500471] = clik.newPhoto({"id":6500471,"src":"SHE_6912a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6500471.html","width":86,"caption":"The Red Arrows Newcastle 07\/08\/2010","height":130});
															thumbnails[6500472] = clik.newPhoto({"id":6500472,"src":"SHE_6925a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6500472.html","width":130,"caption":"The Red Arrows Newcastle 07\/08\/2010","height":86});
															thumbnails[5560450] = clik.newPhoto({"id":5560450,"src":"Joby_Fox0015a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560450.html","width":86,"caption":"Joby Fox ","height":130});
															thumbnails[5560452] = clik.newPhoto({"id":5560452,"src":"Joby_Fox0011a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560452.html","width":86,"caption":"Joby Fox","height":130});
															thumbnails[5560453] = clik.newPhoto({"id":5560453,"src":"Joby_Fox0007b_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560453.html","width":130,"caption":"Joby Fox ","height":86});
															thumbnails[5560455] = clik.newPhoto({"id":5560455,"src":"Joby_Fox0004_thumb.JPG","galleries_id":40017,"server_id":1,"link":"photo_5560455.html","width":130,"caption":"Joby Fox ","height":86});
															thumbnails[5560427] = clik.newPhoto({"id":5560427,"src":"0514Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560427.html","width":130,"caption":"Horslips in the Odyssey Belfast","height":90});
															thumbnails[5560431] = clik.newPhoto({"id":5560431,"src":"0515Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560431.html","width":130,"caption":"Horslips in the Odyssey Belfast","height":130});
															thumbnails[5560433] = clik.newPhoto({"id":5560433,"src":"0517Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560433.html","width":130,"caption":"Horslips in the Odyssey Belfast","height":90});
															thumbnails[5560436] = clik.newPhoto({"id":5560436,"src":"0524Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560436.html","width":90,"caption":"Horslips in the Odyssey Belfast","height":130});
															thumbnails[5560438] = clik.newPhoto({"id":5560438,"src":"0525Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560438.html","width":130,"caption":"Horslips in the Odyssey Belfast","height":90});
															thumbnails[5560440] = clik.newPhoto({"id":5560440,"src":"0526Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560440.html","width":130,"caption":"Horslips in the Odyssey Belfast","height":90});
															thumbnails[5560444] = clik.newPhoto({"id":5560444,"src":"0534Horslips_in_the_Odyssey_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_5560444.html","width":90,"caption":"Horslips in the Odyssey Belfast","height":130});
															thumbnails[6509491] = clik.newPhoto({"id":6509491,"src":"MartinaCorrOdyssey1_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6509491.html","width":86,"caption":"Sharon Corr","height":130});
															thumbnails[5560491] = clik.newPhoto({"id":5560491,"src":"Donegal-August-2009-Edits-0003web_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_5560491.html","width":130,"caption":"Donegal","height":86});
															thumbnails[5560489] = clik.newPhoto({"id":5560489,"src":"0015Snow_Mournes_TreesCyano_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_5560489.html","width":130,"caption":"Murlough","height":86});
															thumbnails[619021] = clik.newPhoto({"id":619021,"src":"Pilotweb_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_619021.html","width":130,"caption":"RAF Spitfire at Duxford 2004","height":94});
															thumbnails[829593] = clik.newPhoto({"id":829593,"src":"Sting_001_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_829593.html","width":86,"caption":"Sting","height":130});
															thumbnails[525489] = clik.newPhoto({"id":525489,"src":"Bono_The_Edge_Adam_Clayton_Larry_Mullin_U2_Croke_Park_001 _thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525489.html","width":130,"caption":"U2 in concert Croke Park Dublin June 29, 1985","height":86});
															thumbnails[525561] = clik.newPhoto({"id":525561,"src":"The_Edge_Bono_U2_Croke Park_005_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525561.html","width":111,"caption":"The Edge with Bono and Adam Clayton Croke Park Dublin 29th June 1985","height":130});
															thumbnails[671647] = clik.newPhoto({"id":671647,"src":"Rory_Gallaher_Croke_Park_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_671647.html","width":130,"caption":"Rory Gallagher ","height":86});
															thumbnails[525443] = clik.newPhoto({"id":525443,"src":"Bob_Dylan_046_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525443.html","width":109,"caption":"Bob Dylan in concert Slane Castle Ireland JULY 8, 1984","height":130});
															thumbnails[525446] = clik.newPhoto({"id":525446,"src":"Bob_Dylan_Van_Morrisson103_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525446.html","width":130,"caption":"Bob and Van together at Slane castle Ireland July 8 1984  ","height":87});
															thumbnails[5560495] = clik.newPhoto({"id":5560495,"src":"IMG354a_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_5560495.html","width":86,"caption":"Gas Mask Lady","height":130});
															thumbnails[829445] = clik.newPhoto({"id":829445,"src":"Philthy_Animal_Taylor_001_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_829445.html","width":92,"caption":"Motorheads' Philthy Animal Taylor ","height":130});
															thumbnails[533934] = clik.newPhoto({"id":533934,"src":"Charles_O'Connor_003_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_533934.html","width":96,"caption":"Charles O'Connor Horslips","height":130});
															thumbnails[6520684] = clik.newPhoto({"id":6520684,"src":"Thin_Lizzy0006a1c_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6520684.html","width":88,"caption":"Phil Lynott","height":130});
															thumbnails[6520685] = clik.newPhoto({"id":6520685,"src":"Thin_Lizzy0031a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6520685.html","width":86,"caption":"Phil Lynott","height":130});
															thumbnails[6520691] = clik.newPhoto({"id":6520691,"src":"Thin_Lizzy0063a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6520691.html","width":85,"caption":"Phil Lynott","height":130});
															thumbnails[525349] = clik.newPhoto({"id":525349,"src":"Phil_Lynott_001_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525349.html","width":85,"caption":"Phil Lynott in concert at the Kings Hall Belfast","height":130});
															thumbnails[525537] = clik.newPhoto({"id":525537,"src":"Bob_Geldoff_Boomtown_ Rats_032_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525537.html","width":93,"caption":"Bob Geldoff in concert Ulster Hall Belfast","height":130});
															thumbnails[525655] = clik.newPhoto({"id":525655,"src":"Fast_Eddy_Motorhead_001_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525655.html","width":85,"caption":"Fast Eddie Clarke of Motorhead","height":130});
															thumbnails[525656] = clik.newPhoto({"id":525656,"src":"Fergal_Sharkey_The_Undertones_012_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525656.html","width":86,"caption":"Fergal Sharkey Ulster Hall","height":130});
															thumbnails[525664] = clik.newPhoto({"id":525664,"src":"Fergal_Sharkey_The_Undertones_013_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525664.html","width":86,"caption":"Fergal Sharkey backstage after a gig","height":130});
															thumbnails[525682] = clik.newPhoto({"id":525682,"src":"Mark_Knopfler_Dire_Straits_046_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_525682.html","width":93,"caption":"Mark Knopfler in the Whitla Hall Belfast","height":130});
															thumbnails[528903] = clik.newPhoto({"id":528903,"src":"The_Tunnel_002_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_528903.html","width":130,"caption":"Protestors attack a line of RUC officers at \"The Tunnel\" in Portadown.","height":104});
															thumbnails[528906] = clik.newPhoto({"id":528906,"src":"Old_Man_Falls_Road_002_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_528906.html","width":130,"caption":"An ederly man attempts to walk up the Falls Road during fierce rioting.","height":104});
															thumbnails[528971] = clik.newPhoto({"id":528971,"src":"The_Tunnel_003_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_528971.html","width":130,"caption":"Exhausted RUC officers take a break  ","height":104});
															thumbnails[530725] = clik.newPhoto({"id":530725,"src":"Gunners_View_of_Bandit_Country_001_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_530725.html","width":130,"caption":"A helicopter gunners view of an Armagh mountain top security base","height":86});
															thumbnails[530739] = clik.newPhoto({"id":530739,"src":"Belfast_Redevelopment_001_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_530739.html","width":130,"caption":"East Belfast ","height":85});
															thumbnails[530825] = clik.newPhoto({"id":530825,"src":"British_Army_Falls_Road_Belfast001_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_530825.html","width":85,"caption":"A Brish Army soldier takes aim on the Falls Road","height":130});
															thumbnails[530828] = clik.newPhoto({"id":530828,"src":"Dangerous_ playtime_001_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_530828.html","width":130,"caption":"Children play as barricades burn","height":85});
															thumbnails[530932] = clik.newPhoto({"id":530932,"src":"FrameFlower_1-2web_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_530932.html","width":95,"caption":"Flower","height":130});
															thumbnails[533090] = clik.newPhoto({"id":533090,"src":"Horslips_005_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_533090.html","width":130,"caption":"Horslips","height":72});
															thumbnails[533938] = clik.newPhoto({"id":533938,"src":"Graham_Parker_01_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_533938.html","width":85,"caption":"Graham Parker","height":130});
															thumbnails[533939] = clik.newPhoto({"id":533939,"src":"Lemmy_001_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_533939.html","width":85,"caption":"Lemmy Motorhead","height":130});
															thumbnails[543900] = clik.newPhoto({"id":543900,"src":"Rocky_Horror_Picture_Show_001_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_543900.html","width":85,"caption":"Fans of Rocky Horror Picture Show","height":130});
															thumbnails[543903] = clik.newPhoto({"id":543903,"src":"Rocky_Horror_Picture_Show_002_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_543903.html","width":85,"caption":"Fans of the Rocky Horror Picture Show","height":130});
															thumbnails[543905] = clik.newPhoto({"id":543905,"src":"Rocky_Horror_Picture_Show_003_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_543905.html","width":130,"caption":"Fans of Rocky Horror Picture Show ","height":85});
															thumbnails[543907] = clik.newPhoto({"id":543907,"src":"Rocky_Horror_Picture_Show_004_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_543907.html","width":130,"caption":"Fans of Rocky Horror Picture Show ","height":85});
															thumbnails[593146] = clik.newPhoto({"id":593146,"src":"Stiff_Little_Fingers_006_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_593146.html","width":86,"caption":"Henry Cluney of Stiff Little Fingers","height":130});
															thumbnails[593150] = clik.newPhoto({"id":593150,"src":"Stiff_Little_Fingers_010_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_593150.html","width":85,"caption":"Jake Burns of Stiff Little Fingers onstage in the legendary Pound Club ","height":130});
															thumbnails[593154] = clik.newPhoto({"id":593154,"src":"Stiff-Little-Fingers_007_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_593154.html","width":130,"caption":" Stiff Little Fingers onstage in the legendary Pound Club ","height":86});
															thumbnails[607312] = clik.newPhoto({"id":607312,"src":"John_O'Neill_Michael_Bradley_The_Undertones_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_607312.html","width":86,"caption":"John O'Neill and Michael Bradley of The Undertones","height":130});
															thumbnails[825104] = clik.newPhoto({"id":825104,"src":"Dire_Straits_006web_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_825104.html","width":85,"caption":"Mark Knopfler of Dire Straits","height":130});
															thumbnails[825256] = clik.newPhoto({"id":825256,"src":"Phil_Lynott_002web2_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_825256.html","width":86,"caption":"Phil Lynott of Thin Lizzy","height":130});
															thumbnails[829436] = clik.newPhoto({"id":829436,"src":"Motorhead_015_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_829436.html","width":130,"caption":"Motorhead backstage ","height":88});
															thumbnails[829629] = clik.newPhoto({"id":829629,"src":"Ian_Paisley_002_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_829629.html","width":130,"caption":"Ian Paisley","height":85});
															thumbnails[836189] = clik.newPhoto({"id":836189,"src":"Pierce_Brosnan_001_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_836189.html","width":96,"caption":"Pierce Brosnan","height":130});
															thumbnails[995856] = clik.newPhoto({"id":995856,"src":"Lemmy_beer_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_995856.html","width":83,"caption":"Lemmy","height":130});
															thumbnails[1006298] = clik.newPhoto({"id":1006298,"src":"Katmandu_06a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_1006298.html","width":82,"caption":"Marty Lundy of Katmandu","height":130});
															thumbnails[1006303] = clik.newPhoto({"id":1006303,"src":"Katmandu_04a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_1006303.html","width":130,"caption":"Peter McKinney, Trevor Hutchinson and Fitzy from Katmandu","height":85});
															thumbnails[1006309] = clik.newPhoto({"id":1006309,"src":"Katmandu_03a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_1006309.html","width":130,"caption":"Katmandu","height":85});
															thumbnails[1006548] = clik.newPhoto({"id":1006548,"src":"Katmandu_09a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_1006548.html","width":87,"caption":"Marty Lundy","height":130});
															thumbnails[1145123] = clik.newPhoto({"id":1145123,"src":"Buster-Bloodvessel002edited_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_1145123.html","width":86,"caption":"Buster Bloodvessel","height":130});
															thumbnails[1301474] = clik.newPhoto({"id":1301474,"src":"MournesAnchor1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_1301474.html","width":130,"caption":"Dundrum Quay","height":95});
															thumbnails[1426902] = clik.newPhoto({"id":1426902,"src":"MurloughSwans2web_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_1426902.html","width":130,"caption":"Swans in Murlough Inner Bay","height":95});
															thumbnails[1426949] = clik.newPhoto({"id":1426949,"src":"SlieveDonard_Panorama1web_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_1426949.html","width":130,"caption":"Slieve Donard Hotel","height":40});
															thumbnails[2035922] = clik.newPhoto({"id":2035922,"src":"George_Best_001_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_2035922.html","width":90,"caption":"George Best","height":130});
															thumbnails[2036178] = clik.newPhoto({"id":2036178,"src":"PeaceFigure1_754x1079_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_2036178.html","width":91,"caption":"Thanksgiving figure<br>\r\n","height":130});
															thumbnails[2047362] = clik.newPhoto({"id":2047362,"src":"Bono_U2_Croke_Park_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_2047362.html","width":130,"caption":"Bono at Croke Park Dublin 29th June 1985","height":86});
															thumbnails[2047587] = clik.newPhoto({"id":2047587,"src":"Wilko1web_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_2047587.html","width":85,"caption":"Wilko Johnston","height":130});
															thumbnails[2047789] = clik.newPhoto({"id":2047789,"src":"Joan_Jett_006web_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_2047789.html","width":86,"caption":"Joan Jett in the Gresham Hotel Dublin","height":130});
															thumbnails[3933072] = clik.newPhoto({"id":3933072,"src":"JimArmstrong1web_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_3933072.html","width":94,"caption":"Jim Armstrong at the Legendary Pound Club Belfast","height":130});
															thumbnails[5560497] = clik.newPhoto({"id":5560497,"src":"IMG_0441_copyMournes_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_5560497.html","width":130,"caption":"Mournes","height":87});
															thumbnails[5560499] = clik.newPhoto({"id":5560499,"src":"Murlough0139a1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_5560499.html","width":130,"caption":"Murlough","height":86});
															thumbnails[5560501] = clik.newPhoto({"id":5560501,"src":"Murlough_0SH_0054a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_5560501.html","width":130,"caption":"Murlough","height":86});
															thumbnails[6500720] = clik.newPhoto({"id":6500720,"src":"0SH_0028a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6500720.html","width":130,"caption":"The Mourne Mountains from Murlough Beach","height":86});
															thumbnails[6500801] = clik.newPhoto({"id":6500801,"src":"0SH_2575a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6500801.html","width":130,"caption":"The Mourne Mountains from Murlough Beach","height":86});
															thumbnails[6501060] = clik.newPhoto({"id":6501060,"src":"0003Snow_Mournes_1a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6501060.html","width":130,"caption":"The Mourne Mountains from Keel Point Dundrum ","height":86});
															thumbnails[6501064] = clik.newPhoto({"id":6501064,"src":"Dundrum_Panoramaa_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6501064.html","width":130,"caption":"Dundrum County Down","height":49});
															thumbnails[6501514] = clik.newPhoto({"id":6501514,"src":"Downpatrick_Aerial_1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6501514.html","width":130,"caption":"Downpatrick Aerial","height":86});
															thumbnails[6508924] = clik.newPhoto({"id":6508924,"src":"Garret_Fitzgerald0004a_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_6508924.html","width":104,"caption":"An Taoiseach Garret Fitzgerald ","height":130});
															thumbnails[6509457] = clik.newPhoto({"id":6509457,"src":"Hsh1-02a-142a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6509457.html","width":130,"caption":"The Mourne Mountains ","height":86});
															thumbnails[6509576] = clik.newPhoto({"id":6509576,"src":"SHE_4044aa_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6509576.html","width":130,"caption":"Belfast City Hall","height":86});
															thumbnails[6509643] = clik.newPhoto({"id":6509643,"src":"Gondolas_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6509643.html","width":86,"caption":"The Last Day of The Big Wheel","height":130});
															thumbnails[6509648] = clik.newPhoto({"id":6509648,"src":"Duke_of_York_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6509648.html","width":130,"caption":"The Duke of York Pub ","height":86});
															thumbnails[6509719] = clik.newPhoto({"id":6509719,"src":"Pigeon_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6509719.html","width":130,"caption":"Pigeon","height":130});
															thumbnails[6509729] = clik.newPhoto({"id":6509729,"src":"StAnnesSquarea_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6509729.html","width":130,"caption":"St. Anne's Square Belfast","height":85});
															thumbnails[6510138] = clik.newPhoto({"id":6510138,"src":"CQAF1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6510138.html","width":86,"caption":"Cathedral Quarter Arts Festival 2010","height":130});
															thumbnails[6510152] = clik.newPhoto({"id":6510152,"src":"SHE_4811a_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6510152.html","width":86,"caption":"An intricate brickwork detail","height":130});
															thumbnails[6510193] = clik.newPhoto({"id":6510193,"src":"Charles_Haughey0034_thumb.JPG","galleries_id":40019,"server_id":1,"link":"photo_6510193.html","width":85,"caption":"An Taoiseach Charles Haughey","height":130});
															thumbnails[6510239] = clik.newPhoto({"id":6510239,"src":"Cranny_falls_Carnlough_0002aa_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6510239.html","width":130,"caption":"The laneway to Cranny Falls Carnlough","height":86});
															thumbnails[6510378] = clik.newPhoto({"id":6510378,"src":"Slidderyford_Dolmen0017_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6510378.html","width":130,"caption":"Slidderyford Dolmen","height":86});
															thumbnails[6519687] = clik.newPhoto({"id":6519687,"src":"Dutch_Schultz0014_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519687.html","width":130,"caption":"Dutch Schultz at The Limelight 2010","height":86});
															thumbnails[6519694] = clik.newPhoto({"id":6519694,"src":"heARTS_for_HAITI_140220100017_thumb.JPG","galleries_id":40017,"server_id":1,"link":"photo_6519694.html","width":130,"caption":"Great Boots!","height":86});
															thumbnails[6519697] = clik.newPhoto({"id":6519697,"src":"Horslips0100a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519697.html","width":94,"caption":"Johnny Fean","height":130});
															thumbnails[6519733] = clik.newPhoto({"id":6519733,"src":"U2_Botanic_Gardensa_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519733.html","width":130,"caption":"U2 ","height":87});
															thumbnails[6519765] = clik.newPhoto({"id":6519765,"src":"Olympic_Lifts00041_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519765.html","width":130,"caption":"Olympic Lifts","height":86});
															thumbnails[6519781] = clik.newPhoto({"id":6519781,"src":"General_Fiasco0046a_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519781.html","width":130,"caption":"General Fiasco ","height":91});
															thumbnails[6519782] = clik.newPhoto({"id":6519782,"src":"General_Fiasco0056aa_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519782.html","width":91,"caption":"General Fiasco","height":130});
															thumbnails[6519785] = clik.newPhoto({"id":6519785,"src":"General_Fiasco0063aa_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6519785.html","width":78,"caption":"General Fiasco","height":130});
															thumbnails[6519975] = clik.newPhoto({"id":6519975,"src":"Donegal_August_2009-Edits-0007_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6519975.html","width":130,"caption":"Donegal","height":86});
															thumbnails[6519978] = clik.newPhoto({"id":6519978,"src":"Sunrise_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6519978.html","width":130,"caption":"Sunrise","height":86});
															thumbnails[6520230] = clik.newPhoto({"id":6520230,"src":"Lene_Lovich_Ulster_Hall_-0024_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6520230.html","width":85,"caption":"Lene Lovich","height":130});
															thumbnails[6520233] = clik.newPhoto({"id":6520233,"src":"RAF_Aldergrove0006a1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6520233.html","width":130,"caption":"RAF Typhoon","height":85});
															thumbnails[6520239] = clik.newPhoto({"id":6520239,"src":"RAF_Aldergrove_A0014_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6520239.html","width":130,"caption":"French Mirage 2000","height":86});
															thumbnails[6520242] = clik.newPhoto({"id":6520242,"src":"RAF_Aldergrove_A0016a1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6520242.html","width":130,"caption":"French Mirage 2000","height":86});
															thumbnails[6520245] = clik.newPhoto({"id":6520245,"src":"RAF_Aldergrove_A00151_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6520245.html","width":130,"caption":"French Mirage 2000","height":86});
															thumbnails[6520598] = clik.newPhoto({"id":6520598,"src":"LagansideCarPark2c_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_6520598.html","width":130,"caption":"Donegall Quay Car Park","height":91});
															thumbnails[6531874] = clik.newPhoto({"id":6531874,"src":"Barry_McGuigan0001a_thumb.jpg","galleries_id":40019,"server_id":1,"link":"photo_6531874.html","width":85,"caption":"Barry McGuigan","height":130});
															thumbnails[6787633] = clik.newPhoto({"id":6787633,"src":"John_Cooper_Clarke025ab_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_6787633.html","width":86,"caption":"John Cooper Clarke","height":130});
															thumbnails[7858434] = clik.newPhoto({"id":7858434,"src":"Algarve1_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_7858434.html","width":130,"caption":"","height":85});
															thumbnails[7858437] = clik.newPhoto({"id":7858437,"src":"SHE_9829-Edit_thumb.jpg","galleries_id":40021,"server_id":1,"link":"photo_7858437.html","width":130,"caption":"Cranfield Lifeguard Station","height":86});
															thumbnails[8093160] = clik.newPhoto({"id":8093160,"src":"The_Bassics-1_thumb.jpg","galleries_id":40017,"server_id":1,"link":"photo_8093160.html","width":130,"caption":"The Bassics-1","height":86});
															thumbnails[8093167] = clik.newPhoto({"id":8093167,"src":"The_Bassics-2_thumb.JPG","galleries_id":40017,"server_id":1,"link":"photo_8093167.html","width":130,"caption":"The Bassics-2","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[40021] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes & Miscellaneous","link":"gallery_40021.html","maxRecords":0.0,"photoIDs":[6500399.0,6500471.0,6500472.0,5560491.0,5560489.0,619021.0,530739.0,530932.0,1301474.0,1426902.0,1426949.0,2036178.0,5560497.0,5560499.0,5560501.0,6500720.0,6500801.0,6501060.0,6501064.0,6501514.0,6509457.0,6509576.0,6509643.0,6509648.0,6509719.0,6509729.0,6510138.0,6510152.0,6510239.0,6510378.0,6519975.0,6519978.0,6520233.0,6520239.0,6520242.0,6520245.0,6520598.0,7858434.0,7858437.0],"skipIndex":0,"section_code":"gallery","featured_images":"7858437,7858434,6520598,6520245,6520242,6520239,6520233,6519978,6519975,6510378","id":40021,"singleSection":false});				  						galleries[40017] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Music","link":"gallery_40017.html","maxRecords":0.0,"photoIDs":[5560450.0,5560452.0,5560453.0,5560455.0,5560427.0,5560431.0,5560433.0,5560436.0,5560438.0,5560440.0,5560444.0,6509491.0,829593.0,525489.0,525561.0,671647.0,525443.0,525446.0,829445.0,533934.0,6520684.0,6520685.0,6520691.0,525349.0,525537.0,525655.0,525656.0,525664.0,525682.0,533090.0,533938.0,533939.0,593146.0,593150.0,593154.0,607312.0,825104.0,825256.0,829436.0,995856.0,1006298.0,1006303.0,1006309.0,1006548.0,1145123.0,2047362.0,2047587.0,2047789.0,3933072.0,6519687.0,6519694.0,6519697.0,6519733.0,6519765.0,6519781.0,6519782.0,6519785.0,6520230.0,6787633.0,8093160.0,8093167.0],"skipIndex":0,"section_code":"gallery","featured_images":"8093167,8093160,6787633,6520691,6520685,6520684,6520230,6519785,6519782,6519781","id":40017,"singleSection":false});				  						galleries[40019] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Press","link":"gallery_40019.html","maxRecords":0.0,"photoIDs":[5560495.0,528903.0,528906.0,528971.0,530725.0,530825.0,530828.0,543900.0,543903.0,543905.0,543907.0,829629.0,836189.0,2035922.0,6508924.0,6510193.0,6531874.0],"skipIndex":0,"section_code":"gallery","featured_images":"6531874,6510193,6508924,5560495,2035922,836189,829629,543907,543905,543903","id":40019,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6500472';
imageSets[3] = '8093167,8093160,7858437,7858434,6787633,6531874,6520691,6520685,6520684,6520598,6520245,6520242,6520239,6520233,6520230,6519978,6519975,6519785,6519782,6519781,6519765,6519733,6519697,6519694,6519687,6510378,6510239,6510193,6510152,6510138,6509729,6509719,6509648,6509643,6509576,6509491,6509457,6508924,6501514,6501064,6501060,6500801,6500720,6500472,6500471,6500399,5560501,5560499,5560497,5560495';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/seanhennessy/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/seanhennessy/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Hennessy Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SEANHENNESSY">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

