window.thumbnails = new Object();
												thumbnails[3709180] = new thumbnail(3709180,'','Al Mennie','Al_Mennie_bw_logo_thumb.jpg',130, 87,18,'							photo_3709180.html');
												thumbnails[4204797] = new thumbnail(4204797,'128931','Greg Long & Twiggy Baker','Aileens_019_30x20_18x12_thumb.jpg',130, 87,18,'							photo_4204797.html');
												thumbnails[2112919] = new thumbnail(2112919,'128931','Al Mennie','Aileens_001_18x12_thumb.jpg',130, 87,18,'							photo_2112919.html');
												thumbnails[2115067] = new thumbnail(2115067,'128936','Sligo','Benbulben_knocknarea_001_12x5_thumb.jpg',130, 54,18,'							photo_2115067.html');
												thumbnails[2115098] = new thumbnail(2115098,'128937','The Cliffs','Cilffs_of_Moher_002_18x121_thumb.jpg',130, 87,18,'							photo_2115098.html');
												thumbnails[2115169] = new thumbnail(2115169,'128932','Irish perfection','Irish_Secret_001_12x5_thumb.jpg',130, 54,18,'							photo_2115169.html');
												thumbnails[7034466] = new thumbnail(7034466,'380866','New Irish wave discovered','prowlers001_thumb.jpg',130, 87,18,'							photo_7034466.html');
												thumbnails[7288166] = new thumbnail(7288166,'394178','Perfection II','IMG_2449_20x16_cropped_thumb.jpg',130, 87,18,'							photo_7288166.html');
												thumbnails[2113060] = new thumbnail(2113060,'128931','70ft wave','Aileens_002_18x12_thumb.jpg',130, 87,18,'							photo_2113060.html');
												thumbnails[2115080] = new thumbnail(2115080,'128936','Cliffs of Moher, Clare','Cilffs_of_Moher_001_18x12_thumb.jpg',130, 87,18,'							photo_2115080.html');
												thumbnails[2115141] = new thumbnail(2115141,'140618','Fergal Smith','Fergal_Smith_001_18x12_thumb.jpg',130, 87,18,'							photo_2115141.html');
												thumbnails[2136178] = new thumbnail(2136178,'128937','Strandhill','Sunset_001_18x12_thumb.jpg',130, 87,18,'							photo_2136178.html');
												thumbnails[7288168] = new thumbnail(7288168,'394178','Mullaghmore','IMG_3637_30x20_thumb.jpg',130, 87,18,'							photo_7288168.html');
												thumbnails[3709441] = new thumbnail(3709441,'128932','Laueren\'s before it was surfed','Laurens_010_thumb.jpg',130, 87,18,'							photo_3709441.html');
												thumbnails[3053485] = new thumbnail(3053485,'128932','Lauren\'s','Line_up_015_18x12_30x20_thumb.jpg',130, 87,18,'							photo_3053485.html');
												thumbnails[2113077] = new thumbnail(2113077,'128931','Perfect','Aileens_003_18x12_thumb.jpg',130, 87,18,'							photo_2113077.html');
												thumbnails[2115087] = new thumbnail(2115087,'128936','The Cliffs, Ireland','Cilffs_of_Moher_002_18x12_thumb.jpg',130, 87,18,'							photo_2115087.html');
												thumbnails[2115153] = new thumbnail(2115153,'140618','Fergal Smith','Fergal_Smith_002_18x12_thumb.jpg',130, 87,18,'							photo_2115153.html');
												thumbnails[2136138] = new thumbnail(2136138,'128932','Freight train','Line_up_001_12x5_thumb.jpg',130, 54,18,'							photo_2136138.html');
												thumbnails[2136179] = new thumbnail(2136179,'128937','Cummeen Strand','Sunset_002_18x12_thumb.jpg',130, 87,18,'							photo_2136179.html');
												thumbnails[7288171] = new thumbnail(7288171,'394178','Irish secret II','Irish_Secret_002_20x16_cropped_thumb.jpg',130, 87,18,'							photo_7288171.html');
												thumbnails[2113085] = new thumbnail(2113085,'128931','Andrew Cotton','Aileens_004_18x12_thumb.jpg',130, 87,18,'							photo_2113085.html');
												thumbnails[2115112] = new thumbnail(2115112,'128936','Dingle','Dingle_001_18x12_thumb.jpg',130, 87,18,'							photo_2115112.html');
												thumbnails[2115161] = new thumbnail(2115161,'140618','Hugh Galloway','Hugh_Galloway_001_12x5_thumb.jpg',130, 54,18,'							photo_2115161.html');
												thumbnails[2136141] = new thumbnail(2136141,'128932','Bumbloids','Line_up_002_18x12_thumb.jpg',130, 87,18,'							photo_2136141.html');
												thumbnails[2136180] = new thumbnail(2136180,'128937','Clouds Glowing','Sunset_003_18x12_thumb.jpg',130, 87,18,'							photo_2136180.html');
												thumbnails[7288172] = new thumbnail(7288172,'394178','Crab','Line_up_003_30x20_thumb.jpg',130, 87,18,'							photo_7288172.html');
												thumbnails[2178514] = new thumbnail(2178514,'128931','Aileens Perfection','Aileens_017_18x12_thumb.jpg',130, 87,18,'							photo_2178514.html');
												thumbnails[2113086] = new thumbnail(2113086,'128931','Tom Doidge-Harrison','Aileens_005_18x12_thumb.jpg',130, 87,18,'							photo_2113086.html');
												thumbnails[2115124] = new thumbnail(2115124,'128936','Slieve League, Donegal','Donegal_001_12x5_thumb.jpg',130, 54,18,'							photo_2115124.html');
												thumbnails[2136174] = new thumbnail(2136174,'140618','Bumbloids tube','Slab_001_18x12_thumb.jpg',130, 87,18,'							photo_2136174.html');
												thumbnails[2136186] = new thumbnail(2136186,'128937','On Fire','Sunset_004_18x12_thumb.jpg',130, 87,18,'							photo_2136186.html');
												thumbnails[7288173] = new thumbnail(7288173,'394178','Laurens','Line_up_009_30x20_thumb.jpg',130, 87,18,'							photo_7288173.html');
												thumbnails[2113089] = new thumbnail(2113089,'128931','Ireland','Aileens_006_12x5_thumb.jpg',130, 54,18,'							photo_2113089.html');
												thumbnails[2115184] = new thumbnail(2115184,'128936','Knocknarea','knocknarea_001_18x12_thumb.jpg',130, 87,18,'							photo_2115184.html');
												thumbnails[2136162] = new thumbnail(2136162,'128932','Strandhill','Line_up_010_12x5_thumb.jpg',130, 54,18,'							photo_2136162.html');
												thumbnails[2136177] = new thumbnail(2136177,'140618','Colin O\'Hare','Strandhill_001_18x12_thumb.jpg',130, 87,18,'							photo_2136177.html');
												thumbnails[2136187] = new thumbnail(2136187,'128937','The Cliffs','Sunset_005_18x12_thumb.jpg',130, 87,18,'							photo_2136187.html');
												thumbnails[7288174] = new thumbnail(7288174,'394178','Laurens II','Line_up_015_30x20_thumb.jpg',130, 87,18,'							photo_7288174.html');
												thumbnails[4057431] = new thumbnail(4057431,'128932','Strandhill at it\'s best','Line_up_010_30x20_thumb.jpg',130, 87,18,'							photo_4057431.html');
												thumbnails[2114811] = new thumbnail(2114811,'128931','Hollow','Aileens_007_18x12_thumb.jpg',130, 87,18,'							photo_2114811.html');
												thumbnails[2115275] = new thumbnail(2115275,'128936','Reflection','Knocknarea_002_18x12_thumb.jpg',130, 87,18,'							photo_2115275.html');
												thumbnails[2136188] = new thumbnail(2136188,'128937','Strandhill','Sunset_006_18x12_thumb.jpg',130, 87,18,'							photo_2136188.html');
												thumbnails[2178464] = new thumbnail(2178464,'140618','Ireland','Action_001_18x12_thumb.jpg',130, 87,18,'							photo_2178464.html');
												thumbnails[2180041] = new thumbnail(2180041,'128932','Dreamtime','Line_up_013_18x12_thumb.jpg',130, 87,18,'							photo_2180041.html');
												thumbnails[7288176] = new thumbnail(7288176,'394178','Strandhill','Strandhill-003_30x20_thumb.jpg',130, 87,18,'							photo_7288176.html');
												thumbnails[2114815] = new thumbnail(2114815,'128931','Dan \"Mole\" Joel','Aileens_008_18x12_thumb.jpg',130, 87,18,'							photo_2114815.html');
												thumbnails[2136144] = new thumbnail(2136144,'128932','Long point break','Line_up_004_12x5_thumb.jpg',130, 54,18,'							photo_2136144.html');
												thumbnails[2178469] = new thumbnail(2178469,'140618','Pampa','Action_002_18x12_30x20_thumb.jpg',130, 87,18,'							photo_2178469.html');
												thumbnails[2180054] = new thumbnail(2180054,'128937','Knocknarea','Sunset_007_12x5_thumb.jpg',130, 54,18,'							photo_2180054.html');
												thumbnails[2114820] = new thumbnail(2114820,'128931','Dan \"Mole\" Joel','Aileens_009_18x12_thumb.jpg',130, 87,18,'							photo_2114820.html');
												thumbnails[2136168] = new thumbnail(2136168,'128932','','Line_up_011_12x5_thumb.jpg',130, 54,18,'							photo_2136168.html');
												thumbnails[2178484] = new thumbnail(2178484,'140618','Hammer time','Action_003_12x5_thumb.jpg',130, 54,18,'							photo_2178484.html');
												thumbnails[2180063] = new thumbnail(2180063,'128937','Soul','Sunset_008_18x12_thumb.jpg',130, 87,18,'							photo_2180063.html');
												thumbnails[2114831] = new thumbnail(2114831,'128931','Aileens 2008','Aileens_010_18x12_thumb.jpg',130, 87,18,'							photo_2114831.html');
												thumbnails[2136147] = new thumbnail(2136147,'128932','Ireland','Line_up_005_12x5_thumb.jpg',130, 54,18,'							photo_2136147.html');
												thumbnails[2178490] = new thumbnail(2178490,'140618','Barreled','Action_004_12x5_thumb.jpg',130, 54,18,'							photo_2178490.html');
												thumbnails[2180077] = new thumbnail(2180077,'128937','Helicopter','Sunset_009_18x12_thumb.jpg',130, 87,18,'							photo_2180077.html');
												thumbnails[2114848] = new thumbnail(2114848,'128931','Paul O\'Kane','Aileens_011_18x12_thumb.jpg',130, 87,18,'							photo_2114848.html');
												thumbnails[2136152] = new thumbnail(2136152,'128932','oh soooo long','Line_up_005_18x12_thumb.jpg',130, 87,18,'							photo_2136152.html');
												thumbnails[2178494] = new thumbnail(2178494,'140618','Smoking','Action_005_18x12_thumb.jpg',130, 87,18,'							photo_2178494.html');
												thumbnails[2114997] = new thumbnail(2114997,'128931','Paul O\'kane','Aileens_012_18x12_thumb.jpg',130, 87,18,'							photo_2114997.html');
												thumbnails[2136153] = new thumbnail(2136153,'128932','Really really hollow tube','Line_up_006_12x8_thumb.jpg',130, 54,18,'							photo_2136153.html');
												thumbnails[2178496] = new thumbnail(2178496,'140618','Cain Kilcullen','Action_006_18x12_thumb.jpg',130, 87,18,'							photo_2178496.html');
												thumbnails[2178599] = new thumbnail(2178599,'128931','Big','Aileens_018_12x5_thumb.jpg',130, 54,18,'							photo_2178599.html');
												thumbnails[2136155] = new thumbnail(2136155,'128932','Hugh Galloway','Line_up_007_18x12_thumb.jpg',130, 87,18,'							photo_2136155.html');
												thumbnails[2178498] = new thumbnail(2178498,'140618','Chilled','Action_007_12x5_thumb.jpg',130, 54,18,'							photo_2178498.html');
												thumbnails[2136157] = new thumbnail(2136157,'128932','The search','Line_up_008_18x12_thumb.jpg',130, 87,18,'							photo_2136157.html');
												thumbnails[2178500] = new thumbnail(2178500,'140618','Hugh Galloway','Action_008_18x12_thumb.jpg',130, 87,18,'							photo_2178500.html');
												thumbnails[3709396] = new thumbnail(3709396,'128931','Axi Muniain','Axie_M_001_thumb.jpg',130, 87,18,'							photo_3709396.html');
												thumbnails[3709419] = new thumbnail(3709419,'128931','Benjamin \"Sancho\" Sanchis','Ben_S_001_thumb.jpg',130, 87,18,'							photo_3709419.html');
												thumbnails[3709426] = new thumbnail(3709426,'128931','Hollow','Ben_S_002_thumb.jpg',130, 87,18,'							photo_3709426.html');
												thumbnails[2115016] = new thumbnail(2115016,'128931','Hugh Galloway','Aileens_015_18x12_thumb.jpg',130, 87,18,'							photo_2115016.html');
												thumbnails[2136159] = new thumbnail(2136159,'128932','Cliffs of Moher','Line_up_009_18x12_thumb.jpg',130, 87,18,'							photo_2136159.html');
												thumbnails[2178501] = new thumbnail(2178501,'140618','Fergal Smith','Action_009_12x5_thumb.jpg',130, 54,18,'							photo_2178501.html');
												thumbnails[2115024] = new thumbnail(2115024,'128931','Perfection','Aileens_016_18x12_thumb.jpg',130, 87,18,'							photo_2115024.html');
												thumbnails[2136170] = new thumbnail(2136170,'128932','Barry\'s wave','Line_up_012_18x12_thumb.jpg',130, 87,18,'							photo_2136170.html');
												thumbnails[2178503] = new thumbnail(2178503,'140618','Gabe Davies','Action_010_12x5_thumb.jpg',130, 54,18,'							photo_2178503.html');
												thumbnails[2178507] = new thumbnail(2178507,'140618','Gabe Davies on the set of Waveriders','Action_011_18x12_thumb.jpg',130, 87,18,'							photo_2178507.html');
												thumbnails[2180044] = new thumbnail(2180044,'128932','Tube time','Line_up_014_12x5_thumb.jpg',130, 54,18,'							photo_2180044.html');
												thumbnails[3708436] = new thumbnail(3708436,'174659','Grant Twiggy Baker enjoying life Irish style','IMG_4904_thumb.jpg',130, 87,18,'							photo_3708436.html');
												thumbnails[2790925] = new thumbnail(2790925,'217529','Paul O\'Kane','paul-okane-002a_thumb.jpg',130, 87,18,'							photo_2790925.html');
												thumbnails[3560547] = new thumbnail(3560547,'217768','Dan','Dan-01a_thumb.jpg',130, 87,18,'							photo_3560547.html');
												thumbnails[4117031] = new thumbnail(4117031,'226784','A mini wipeout with an audience','wipeout_001_1_thumb.jpg',130, 87,18,'							photo_4117031.html');
												thumbnails[3560518] = new thumbnail(3560518,'217767','Adrian','Adrian_sequence_01a_thumb.jpg',130, 87,18,'							photo_3560518.html');
												thumbnails[4069230] = new thumbnail(4069230,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_001_thumb.jpg',130, 87,18,'							photo_4069230.html');
												thumbnails[3560519] = new thumbnail(3560519,'217767','Adrian','Adrian_sequence_02a_thumb.jpg',130, 87,18,'							photo_3560519.html');
												thumbnails[4069231] = new thumbnail(4069231,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_002_thumb.jpg',130, 87,18,'							photo_4069231.html');
												thumbnails[3560520] = new thumbnail(3560520,'217767','Adrian','Adrian_sequence_03a_thumb.jpg',130, 87,18,'							photo_3560520.html');
												thumbnails[4069234] = new thumbnail(4069234,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_003_thumb.jpg',130, 87,18,'							photo_4069234.html');
												thumbnails[3560522] = new thumbnail(3560522,'217767','Adrian','Adrian_sequence_04a_thumb.jpg',130, 87,18,'							photo_3560522.html');
												thumbnails[4069280] = new thumbnail(4069280,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_004_thumb.jpg',130, 87,18,'							photo_4069280.html');
												thumbnails[3548422] = new thumbnail(3548422,'217529','Paul O\'Kane','paul-okane-001a_thumb.jpg',130, 87,18,'							photo_3548422.html');
												thumbnails[3560525] = new thumbnail(3560525,'217767','Adrian','Adrian_sequence_05a_thumb.jpg',130, 87,18,'							photo_3560525.html');
												thumbnails[4069284] = new thumbnail(4069284,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_005_thumb.jpg',130, 87,18,'							photo_4069284.html');
												thumbnails[3560526] = new thumbnail(3560526,'217767','Adrian','Adrian_sequence_06a_thumb.jpg',130, 87,18,'							photo_3560526.html');
												thumbnails[4069287] = new thumbnail(4069287,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_006_thumb.jpg',130, 87,18,'							photo_4069287.html');
												thumbnails[3548420] = new thumbnail(3548420,'217529','Mikee Hamilton','mikee-003a_thumb.jpg',130, 87,18,'							photo_3548420.html');
												thumbnails[3560527] = new thumbnail(3560527,'217767','Adrian','Adrian_sequence_07a_thumb.jpg',130, 87,18,'							photo_3560527.html');
												thumbnails[4069288] = new thumbnail(4069288,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_007_thumb.jpg',130, 87,18,'							photo_4069288.html');
												thumbnails[3560529] = new thumbnail(3560529,'217767','Adrian','Adrian_sequence_08a_thumb.jpg',130, 87,18,'							photo_3560529.html');
												thumbnails[4069291] = new thumbnail(4069291,'226786','Tom Lowe','Tom_Lowe_wipeout_sequence_008_thumb.jpg',130, 87,18,'							photo_4069291.html');
												thumbnails[3560531] = new thumbnail(3560531,'217767','Adrian','Adrian_sequence_09a_thumb.jpg',130, 87,18,'							photo_3560531.html');
												thumbnails[3711533] = new thumbnail(3711533,'226786','Tom Lowe','Tom_lowe_sequence_11_thumb.jpg',130, 87,18,'							photo_3711533.html');
												thumbnails[3548045] = new thumbnail(3548045,'217529','David Blount','david-blounte-001a_thumb.jpg',130, 87,18,'							photo_3548045.html');
												thumbnails[3560533] = new thumbnail(3560533,'217767','Adrian','Adrian_sequence_10a_thumb.jpg',130, 87,18,'							photo_3560533.html');
												thumbnails[3560553] = new thumbnail(3560553,'217768','Dan','Dan-02a_thumb.jpg',130, 87,18,'							photo_3560553.html');
												thumbnails[4117033] = new thumbnail(4117033,'226784','Launching, Hueston we have a problem','wipeout_002_thumb.jpg',130, 87,18,'							photo_4117033.html');
												thumbnails[3560535] = new thumbnail(3560535,'217767','Adrian','Adrian_sequence_11a_thumb.jpg',130, 87,18,'							photo_3560535.html');
												thumbnails[3548082] = new thumbnail(3548082,'217529','David Blount','david-blounte-002a_thumb.jpg',130, 87,18,'							photo_3548082.html');
												thumbnails[3560536] = new thumbnail(3560536,'217767','Adrian','Adrian_sequence_12a_thumb.jpg',130, 87,18,'							photo_3560536.html');
												thumbnails[3560537] = new thumbnail(3560537,'217767','Adrian','Adrian_sequence_13a_thumb.jpg',130, 87,18,'							photo_3560537.html');
												thumbnails[3548092] = new thumbnail(3548092,'217529','David Blount','david-blounte-003a_thumb.jpg',130, 87,18,'							photo_3548092.html');
												thumbnails[3560538] = new thumbnail(3560538,'217767','Adrian','Adrian_sequence_14a_thumb.jpg',130, 87,18,'							photo_3560538.html');
												thumbnails[3560539] = new thumbnail(3560539,'217767','Adrian','Adrian_sequence_15a_thumb.jpg',130, 87,18,'							photo_3560539.html');
												thumbnails[3560557] = new thumbnail(3560557,'217768','Dan','Dan-03a_thumb.jpg',130, 87,18,'							photo_3560557.html');
												thumbnails[4117036] = new thumbnail(4117036,'226784','Paul O\'Kane','wipeout_003_thumb.jpg',130, 87,18,'							photo_4117036.html');
												thumbnails[3548099] = new thumbnail(3548099,'217529','Fergal Smith','ferg-001a_thumb.jpg',130, 87,18,'							photo_3548099.html');
												thumbnails[4117047] = new thumbnail(4117047,'226784','Aussie Ian','wipeout_004_thumb.jpg',130, 87,18,'							photo_4117047.html');
												thumbnails[3548103] = new thumbnail(3548103,'217529','Fergal Smith','ferg-003a_thumb.jpg',130, 87,18,'							photo_3548103.html');
												thumbnails[3548108] = new thumbnail(3548108,'217529','Fergal Smith','ferg-004a_thumb.jpg',130, 87,18,'							photo_3548108.html');
												thumbnails[3548113] = new thumbnail(3548113,'217529','Fergal Smith','ferg-005a_thumb.jpg',130, 87,18,'							photo_3548113.html');
												thumbnails[3560563] = new thumbnail(3560563,'217768','Grant','Grant-01a_thumb.jpg',130, 87,18,'							photo_3560563.html');
												thumbnails[4117052] = new thumbnail(4117052,'226784','Hugh Galloway','wipeout_005_thumb.jpg',130, 87,18,'							photo_4117052.html');
												thumbnails[3548136] = new thumbnail(3548136,'217854','Fergal Smith','ferg-seq-001a_thumb.jpg',130, 87,18,'							photo_3548136.html');
												thumbnails[3548143] = new thumbnail(3548143,'217854','Fergal Smith','ferg-seq-002a_thumb.jpg',130, 87,18,'							photo_3548143.html');
												thumbnails[3548147] = new thumbnail(3548147,'217854','Fergal Smith','ferg-seq-003a_thumb.jpg',130, 87,18,'							photo_3548147.html');
												thumbnails[3548155] = new thumbnail(3548155,'217854','Fergal Smith','ferg-seq-004a_thumb.jpg',130, 87,18,'							photo_3548155.html');
												thumbnails[3548157] = new thumbnail(3548157,'217854','Fergal Smith','ferg-seq-005a_thumb.jpg',130, 87,18,'							photo_3548157.html');
												thumbnails[3560561] = new thumbnail(3560561,'217768','Grant','grant-02a_thumb.jpg',130, 87,18,'							photo_3560561.html');
												thumbnails[3548159] = new thumbnail(3548159,'217854','Fergal Smith','ferg-seq-006a_thumb.jpg',130, 87,18,'							photo_3548159.html');
												thumbnails[3548168] = new thumbnail(3548168,'217854','Fergal Smith','ferg-seq-007a_thumb.jpg',130, 87,18,'							photo_3548168.html');
												thumbnails[3548170] = new thumbnail(3548170,'217854','Fergal Smith','ferg-seq-008a_thumb.jpg',130, 87,18,'							photo_3548170.html');
												thumbnails[3548184] = new thumbnail(3548184,'217854','Fergal Smith','ferg-seq-009a_thumb.jpg',130, 87,18,'							photo_3548184.html');
												thumbnails[3560565] = new thumbnail(3560565,'217768','Adrian','Adrian02a_thumb.jpg',130, 87,18,'							photo_3560565.html');
												thumbnails[4117063] = new thumbnail(4117063,'226784','Ferg catching a rail at Pampa','wipeout_006_thumb.jpg',130, 87,18,'							photo_4117063.html');
												thumbnails[3548340] = new thumbnail(3548340,'217529','John McCarthy','john-mac-001a_thumb.jpg',130, 87,18,'							photo_3548340.html');
												thumbnails[3548345] = new thumbnail(3548345,'217529','John McCarthy','john-mac-002a_thumb.jpg',130, 87,18,'							photo_3548345.html');
												thumbnails[3548348] = new thumbnail(3548348,'217529','John McCarthy','john-mac-004a_thumb.jpg',130, 87,18,'							photo_3548348.html');
												thumbnails[3548338] = new thumbnail(3548338,'217529','John McCarthy','john-mac-005a1_thumb.jpg',130, 87,18,'							photo_3548338.html');
												thumbnails[3548354] = new thumbnail(3548354,'217529','John and Paul','john-mac-006a_thumb.jpg',130, 87,18,'							photo_3548354.html');
												thumbnails[3548359] = new thumbnail(3548359,'217529','John McCarthy','john-mac-007a1_thumb.jpg',130, 87,18,'							photo_3548359.html');
												thumbnails[3548364] = new thumbnail(3548364,'217529','John McCarthy','john-mac-008a2_thumb.jpg',130, 87,18,'							photo_3548364.html');
												thumbnails[3548367] = new thumbnail(3548367,'217529','John McCarthy','john-mac-009a_thumb.jpg',130, 87,18,'							photo_3548367.html');
												thumbnails[3560567] = new thumbnail(3560567,'217768','Adrian','Adrian04a_thumb.jpg',130, 87,18,'							photo_3560567.html');
												thumbnails[4117065] = new thumbnail(4117065,'226784','Fergal Smith','wipeout_007_thumb.jpg',130, 87,18,'							photo_4117065.html');
												thumbnails[3560570] = new thumbnail(3560570,'217768','Adrian','Adrian05a_thumb.jpg',130, 87,18,'							photo_3560570.html');
												thumbnails[4117076] = new thumbnail(4117076,'226784','Tequila layback','wipeout_008_thumb.jpg',130, 87,18,'							photo_4117076.html');
												thumbnails[3548373] = new thumbnail(3548373,'217514','John McCarthy','john-mac-seq-001a_thumb.jpg',130, 87,18,'							photo_3548373.html');
												thumbnails[3548376] = new thumbnail(3548376,'217514','John McCarthy','john-mac-seq-002a_thumb.jpg',130, 87,18,'							photo_3548376.html');
												thumbnails[3548379] = new thumbnail(3548379,'217514','John McCarthy','john-mac-seq-003a_thumb.jpg',130, 87,18,'							photo_3548379.html');
												thumbnails[3548381] = new thumbnail(3548381,'217514','John McCarthy','john-mac-seq-004a_thumb.jpg',130, 87,18,'							photo_3548381.html');
												thumbnails[3548385] = new thumbnail(3548385,'217514','John McCarthy','john-mac-seq-005a_thumb.jpg',130, 87,18,'							photo_3548385.html');
												thumbnails[3548386] = new thumbnail(3548386,'217514','John McCarthy','john-mac-seq-006a_thumb.jpg',130, 87,18,'							photo_3548386.html');
												thumbnails[3548390] = new thumbnail(3548390,'217514','John McCarthy','john-mac-seq-007a_thumb.jpg',130, 87,18,'							photo_3548390.html');
												thumbnails[3548391] = new thumbnail(3548391,'217514','John McCarthy','john-mac-seq-008a_thumb.jpg',130, 87,18,'							photo_3548391.html');
												thumbnails[3548394] = new thumbnail(3548394,'217514','John McCarthy','john-mac-seq-009a_thumb.jpg',130, 87,18,'							photo_3548394.html');
												thumbnails[3548396] = new thumbnail(3548396,'217514','John McCarthy','john-mac-seq-010a_thumb.jpg',130, 87,18,'							photo_3548396.html');
												thumbnails[3560571] = new thumbnail(3560571,'217768','The one that got away, still looks bone crunching to me','IMG_2793a_thumb.jpg',130, 87,18,'							photo_3560571.html');
												thumbnails[4117079] = new thumbnail(4117079,'226784','','wipeout_009_thumb.jpg',130, 87,18,'							photo_4117079.html');
												thumbnails[3548400] = new thumbnail(3548400,'217529','Tom Lowe','tom-lowe-001a_thumb.jpg',130, 87,18,'							photo_3548400.html');
												thumbnails[3560560] = new thumbnail(3560560,'217768','Dan, Adrian and Grant','danadriangranta_thumb.jpg',130, 87,18,'							photo_3560560.html');
												thumbnails[3711530] = new thumbnail(3711530,'226784','That\'s going to hurt','wipeout_001_thumb.jpg',130, 87,18,'							photo_3711530.html');
												thumbnails[4117086] = new thumbnail(4117086,'226784','John Heffernan','wipeout_010_thumb.jpg',130, 87,18,'							photo_4117086.html');
												thumbnails[3548403] = new thumbnail(3548403,'217529','Tom Lowe','tom-lowe-002a_thumb.jpg',130, 87,18,'							photo_3548403.html');
												thumbnails[4117092] = new thumbnail(4117092,'226784','A mini party wave','wipeout_011_thumb.jpg',130, 87,18,'							photo_4117092.html');
												thumbnails[3548405] = new thumbnail(3548405,'217529','Tom Doidge-Harrison','tom-001a1_thumb.jpg',130, 87,18,'							photo_3548405.html');
												thumbnails[3548409] = new thumbnail(3548409,'217529','Tom Doidge-Harrison','tom-002a_thumb.jpg',130, 87,18,'							photo_3548409.html');
												thumbnails[3548412] = new thumbnail(3548412,'217529','Tom Doidge-Harrison','tom-003a_thumb.jpg',130, 87,18,'							photo_3548412.html');
												thumbnails[3548414] = new thumbnail(3548414,'217529','Tom Doidge-Harrison','tom-004a2_thumb.jpg',130, 87,18,'							photo_3548414.html');
												thumbnails[3548416] = new thumbnail(3548416,'217529','Tom Doidge-Harrison','tom-005a_thumb.jpg',130, 87,18,'							photo_3548416.html');
												thumbnails[3548585] = new thumbnail(3548585,'217518','Tom Doidge-Harrison','tom-seq-001a_thumb.jpg',130, 87,18,'							photo_3548585.html');
												thumbnails[3548591] = new thumbnail(3548591,'217518','Tom Doidge-Harrison','tom-seq-002a_thumb.jpg',130, 87,18,'							photo_3548591.html');
												thumbnails[3548593] = new thumbnail(3548593,'217518','Tom Doidge-Harrison','tom-seq-003a_thumb.jpg',130, 87,18,'							photo_3548593.html');
												thumbnails[3548608] = new thumbnail(3548608,'217518','Tom Doidge-Harrison','tom-seq-004a_thumb.jpg',130, 87,18,'							photo_3548608.html');
												thumbnails[3548612] = new thumbnail(3548612,'217518','Tom Doidge-Harrison','tom-seq-005a_thumb.jpg',130, 87,18,'							photo_3548612.html');
												thumbnails[3548616] = new thumbnail(3548616,'217518','Tom Doidge-Harrison','tom-seq-006a_thumb.jpg',130, 87,18,'							photo_3548616.html');
												thumbnails[3548620] = new thumbnail(3548620,'217518','Tom Doidge-Harrison','tom-seq-007a_thumb.jpg',130, 87,18,'							photo_3548620.html');
												thumbnails[3548626] = new thumbnail(3548626,'217518','Tom Doidge-Harrison','tom-seq-008a_thumb.jpg',130, 87,18,'							photo_3548626.html');
												thumbnails[3548633] = new thumbnail(3548633,'217518','Tom Doidge-Harrison','tom-seq-009a_thumb.jpg',130, 87,18,'							photo_3548633.html');
												thumbnails[3548637] = new thumbnail(3548637,'217518','Tom Doidge-Harrison','tom-seq-010a_thumb.jpg',130, 87,18,'							photo_3548637.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[380866] = new gallery(380866,'7034466','Prowlers','gallery',[7034466],0, 1, '', '																																																																																																							gallery_380866.html',0,0);
				  					galleries[244724] = new gallery(244724,'3711533,3711530','Wipeouts','section183832',[],0, 0, '', '																																																																																																							section183832_244724.html',0,0);
				  					galleries[217767] = new gallery(217767,'3560535','Adrian\'s sik sequence','section183832',[3560518,3560519,3560520,3560522,3560525,3560526,3560527,3560529,3560531,3560533,3560535,3560536,3560537,3560538,3560539],0, 0, '217766', '																																																																																																							section183832_217767.html',0,0);
				  					galleries[128931] = new gallery(128931,'2112919','Aileens','gallery',[4204797,2112919,2113060,2113077,2113085,2178514,2113086,2113089,2114811,2114815,2114820,2114831,2114848,2114997,2178599,3709396,3709419,3709426,2115016,2115024],0, 1, '', '																																																																																																							gallery_128931.html',0,0);
				  					galleries[217512] = new gallery(217512,'3548612,3548376,3548155','Aileens 14th-September-2008','section183832',[],0, 0, '', '																																																																																																							section183832_217512.html',0,0);
				  					galleries[217514] = new gallery(217514,'3548376','John McCarthy sequence','section183832',[3548373,3548376,3548379,3548381,3548385,3548386,3548390,3548391,3548394,3548396],0, 0, '217512', '																																																																																																							section183832_217514.html',0,0);
				  					galleries[226784] = new gallery(226784,'3711530','ouch!!','section183832',[4117031,4117033,4117036,4117047,4117052,4117063,4117065,4117076,4117079,3711530,4117086,4117092],0, 0, '244724', '																																																																																																							section183832_226784.html',0,0);
				  					galleries[217768] = new gallery(217768,'3560563','A few more shots','section183832',[3560547,3560553,3560557,3560563,3560561,3560565,3560567,3560570,3560571,3560560],0, 0, '217766', '																																																																																																							section183832_217768.html',0,0);
				  					galleries[217766] = new gallery(217766,'3560563,3560535','Bodyboarders rip Aileens apart','section183832',[],0, 0, '', '																																																																																																							section183832_217766.html',0,0);
				  					galleries[128932] = new gallery(128932,'3709441','Line ups','gallery',[2115169,3709441,3053485,2136138,2136141,2136162,4057431,2180041,2136144,2136168,2136147,2136152,2136153,2136155,2136157,2136159,2136170,2180044],0, 1, '', '																																																																																																							gallery_128932.html',0,0);
				  					galleries[217518] = new gallery(217518,'3548612','Tom Doidge-Harrison sequence','section183832',[3548585,3548591,3548593,3548608,3548612,3548616,3548620,3548626,3548633,3548637],0, 0, '217512', '																																																																																																							section183832_217518.html',0,0);
				  					galleries[226786] = new gallery(226786,'3711533','Tom Lowe\'s arm ripping wipeout','section183832',[4069230,4069231,4069234,4069280,4069284,4069287,4069288,4069291,3711533],0, 0, '244724', '																																																																																																							section183832_226786.html',0,0);
				  					galleries[140618] = new gallery(140618,'2178507,2178503,2178501,2178500,2178498,2178496,2178494,2178490,2178484,2178469','Action','gallery',[2115141,2115153,2115161,2136174,2136177,2178464,2178469,2178484,2178490,2178494,2178496,2178498,2178500,2178501,2178503,2178507],0, 1, '', '																																																																																																							gallery_140618.html',0,0);
				  					galleries[217854] = new gallery(217854,'3548155','Fergal Smith sequence','section183832',[3548136,3548143,3548147,3548155,3548157,3548159,3548168,3548170,3548184],0, 0, '217512', '																																																																																																							section183832_217854.html',0,0);
				  					galleries[174659] = new gallery(174659,'3708436','Greg Long/Twiggy Baker-Ireland','section183832',[3708436],0, 0, '', '																																																																																																							section183832_174659.html',0,0);
				  					galleries[128936] = new gallery(128936,'2115067','Landscapes','gallery',[2115067,2115080,2115087,2115112,2115124,2115184,2115275],0, 1, '', '																																																																																																							gallery_128936.html',0,0);
				  					galleries[217529] = new gallery(217529,'3548422,3548420,3548416,3548414,3548412,3548409,3548405,3548403,3548400,3548367','More from the day','section183832',[2790925,3548422,3548420,3548045,3548082,3548092,3548099,3548103,3548108,3548113,3548340,3548345,3548348,3548338,3548354,3548359,3548364,3548367,3548400,3548403,3548405,3548409,3548412,3548414,3548416],0, 0, '217512', '																																																																																																							section183832_217529.html',0,0);
				  					galleries[128937] = new gallery(128937,'2115098','Sunsets','gallery',[2115098,2136178,2136179,2136180,2136186,2136187,2136188,2180054,2180063,2180077],0, 1, '', '																																																																																																							gallery_128937.html',0,0);
				  					galleries[394178] = new gallery(394178,'7288176,7288174,7288173,7288172,7288171,7288168,7288166','Black & White','gallery',[7288166,7288168,7288171,7288172,7288173,7288174,7288176],0, 1, '', '																																																																																																							gallery_394178.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7034466';
imageSets[2] = '3711533,3711530,3709441,3708436,3560563,3560535,3548612,3548376,3548155,2115098,2115067,2112919';
imageSets[3] = '7288176,7288174,7288173,7288172,7288171,7288168,7288166,7034466,4204797,4117092,4117086,4117079,4117076,4117065,4117063,4117052,4117047,4117036,4117033,4117031,4069291,4069288,4069287,4069284,4069280,4069234,4069231,4069230,4057431,3711533,3711530,3709441,3709426,3709419,3709396,3709180,3708436,3560571,3560570,3560567,3560565,3560563,3560561,3560560,3560557,3560553,3560547,3560539,3560538,3560537';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/aaronpierce/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/aaronpierce/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'liquid storm images: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#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,array,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();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 				&euro;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp = temp + '<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)};">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = temp + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="AARONPIERCE">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = 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 = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			temp = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

