window.thumbnails = {};
															thumbnails[136356] = clik.newPhoto({"id":136356,"src":"DSCF0040 copyJPG_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[136380] = clik.newPhoto({"id":136380,"src":"DSCF5926 copyJPG_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":104});
															thumbnails[136408] = clik.newPhoto({"id":136408,"src":"DSCF5397 cJPG_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ennis Cathedral, Co Clare.","height":87});
															thumbnails[136443] = clik.newPhoto({"id":136443,"src":"4327 copyJPG1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lady Gregory Hotel, Gort, Co. Galway","height":105});
															thumbnails[138727] = clik.newPhoto({"id":138727,"src":"logos x2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":33});
															thumbnails[143341] = clik.newPhoto({"id":143341,"src":"Picture 041_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Dundrum House Hotel, Co. Tipperary.","height":87});
															thumbnails[143343] = clik.newPhoto({"id":143343,"src":"DSCF1923a copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Aerial view of Limerick City and the River Shannon.","height":87});
															thumbnails[143344] = clik.newPhoto({"id":143344,"src":"DSCF1928a_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Aerial view of Limerick City and the River Shannon.","height":87});
															thumbnails[157891] = clik.newPhoto({"id":157891,"src":"Hospital a_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Limerick Regional Hospital","height":104});
															thumbnails[159578] = clik.newPhoto({"id":159578,"src":"DSCF3203 a1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Dromoland Castle, Co. Clare.","height":130});
															thumbnails[3932007] = clik.newPhoto({"id":3932007,"src":"Harmony_album2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3931926] = clik.newPhoto({"id":3931926,"src":"Harmony_album1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Harmony album","height":130});
															thumbnails[3931927] = clik.newPhoto({"id":3931927,"src":"memory_album1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"memory album","height":130});
															thumbnails[3931928] = clik.newPhoto({"id":3931928,"src":"Symphony_album1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Symphony album","height":130});
															thumbnails[803513] = clik.newPhoto({"id":803513,"src":"P19kl07w_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"P19kl07w","height":98});
															thumbnails[3931854] = clik.newPhoto({"id":3931854,"src":"_DSF4619_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Eimear","height":182});
															thumbnails[3931855] = clik.newPhoto({"id":3931855,"src":"_DSF4627_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":182});
															thumbnails[3931856] = clik.newPhoto({"id":3931856,"src":"_DSF4633_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":182});
															thumbnails[2416105] = clik.newPhoto({"id":2416105,"src":"Untitled1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Wedding at Quin, Co. Clare","height":81});
															thumbnails[2416109] = clik.newPhoto({"id":2416109,"src":"_DSF2057_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Quin Abbey, Co Clare.","height":98});
															thumbnails[2416110] = clik.newPhoto({"id":2416110,"src":"_DSF2072_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Cloister, Quin Abbey","height":173});
															thumbnails[136449] = clik.newPhoto({"id":136449,"src":"DSCF0882JPG_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136449.html","width":130,"caption":"","height":163});
															thumbnails[136456] = clik.newPhoto({"id":136456,"src":"DSCF8369 c copy a 2JPG_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136456.html","width":130,"caption":"","height":98});
															thumbnails[136457] = clik.newPhoto({"id":136457,"src":"Moran baby copyJPG_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136457.html","width":130,"caption":"","height":195});
															thumbnails[136463] = clik.newPhoto({"id":136463,"src":"SH26a_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136463.html","width":130,"caption":"","height":182});
															thumbnails[139353] = clik.newPhoto({"id":139353,"src":"DSCF9408 copy_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_139353.html","width":130,"caption":"Graduation Photograph","height":163});
															thumbnails[139359] = clik.newPhoto({"id":139359,"src":"DSCF9409_thumb.JPG","galleries_id":12533,"server_id":1,"link":"photo_139359.html","width":130,"caption":"Engagement Portrait","height":163});
															thumbnails[1567907] = clik.newPhoto({"id":1567907,"src":"5744_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_1567907.html","width":130,"caption":"","height":173});
															thumbnails[2416295] = clik.newPhoto({"id":2416295,"src":"copy composite_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_2416295.html","width":130,"caption":"Wedding At Quilty.","height":98});
															thumbnails[3931823] = clik.newPhoto({"id":3931823,"src":"21_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_3931823.html","width":130,"caption":"","height":173});
															thumbnails[3931830] = clik.newPhoto({"id":3931830,"src":"P1z_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_3931830.html","width":130,"caption":"Adare Castle, Co. Limerick.","height":102});
															thumbnails[3931833] = clik.newPhoto({"id":3931833,"src":"P18z_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_3931833.html","width":130,"caption":"Carriage at Adare Castle","height":102});
															thumbnails[3931850] = clik.newPhoto({"id":3931850,"src":"tloK1_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_3931850.html","width":130,"caption":"Memory Album Title Page","height":173});
															thumbnails[3931852] = clik.newPhoto({"id":3931852,"src":"P20a_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_3931852.html","width":130,"caption":" Memory Album Page Design","height":173});
															thumbnails[136445] = clik.newPhoto({"id":136445,"src":"DSCF0598JPG_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136445.html","width":130,"caption":"","height":194});
															thumbnails[246612] = clik.newPhoto({"id":246612,"src":"DSCF0477_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_246612.html","width":130,"caption":"Emily","height":182});
															thumbnails[1567987] = clik.newPhoto({"id":1567987,"src":"memory_album_thumb.jpg","galleries_id":12534,"server_id":1,"link":"photo_1567987.html","width":130,"caption":"Memory Album.","height":130});
															thumbnails[2416098] = clik.newPhoto({"id":2416098,"src":"DSF39711_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416098.html","width":130,"caption":"On the Atlantic Shore at Spanish Point, Co. Clare.","height":98});
															thumbnails[2423937] = clik.newPhoto({"id":2423937,"src":"DSF9385_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_2423937.html","width":130,"caption":"","height":182});
															thumbnails[2437818] = clik.newPhoto({"id":2437818,"src":"Carrie_thumb.1.jpg","galleries_id":12533,"server_id":1,"link":"photo_2437818.html","width":130,"caption":"Carrie","height":189});
															thumbnails[2823312] = clik.newPhoto({"id":2823312,"src":"_DSF0022 sc 7x5_thumb.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823312.html","width":130,"caption":"","height":182});
															thumbnails[2823322] = clik.newPhoto({"id":2823322,"src":"_DSF0037 copy_thumb.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823322.html","width":130,"caption":"","height":182});
															thumbnails[3931874] = clik.newPhoto({"id":3931874,"src":"_DSF46191_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_3931874.html","width":130,"caption":" Eimear","height":182});
															thumbnails[3931887] = clik.newPhoto({"id":3931887,"src":"_DSF6578_copy_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_3931887.html","width":130,"caption":"Graduation Portrait","height":163});
															thumbnails[3980871] = clik.newPhoto({"id":3980871,"src":"Comt_Album_thumb.jpg","galleries_id":12534,"server_id":1,"link":"photo_3980871.html","width":130,"caption":"Contemporary Album","height":130});
															thumbnails[5935331] = clik.newPhoto({"id":5935331,"src":"_DSC2354b_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_5935331.html","width":130,"caption":"Maria colour portrait","height":163});
															thumbnails[8260374] = clik.newPhoto({"id":8260374,"src":"_DSC3949_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260374.html","width":130,"caption":"Wedding party at Bunratty Folk Park","height":104});
															thumbnails[8260436] = clik.newPhoto({"id":8260436,"src":"021_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260436.html","width":130,"caption":"Album title page","height":130});
															thumbnails[8456958] = clik.newPhoto({"id":8456958,"src":"_DSC0178_thumb.jpg","galleries_id":447495,"server_id":1,"link":"photo_8456958.html","width":130,"caption":"","height":130});
															thumbnails[3931820] = clik.newPhoto({"id":3931820,"src":"_DSF0134_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_3931820.html","width":130,"caption":"","height":87});
															thumbnails[803514] = clik.newPhoto({"id":803514,"src":"P20rc07w_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_803514.html","width":130,"caption":"","height":98});
															thumbnails[2416103] = clik.newPhoto({"id":2416103,"src":"P29_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416103.html","width":130,"caption":" Scene at The Glen of Aherlow, Co Tipperary.","height":98});
															thumbnails[136446] = clik.newPhoto({"id":136446,"src":"DSCF0525aJPG_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136446.html","width":130,"caption":"","height":182});
															thumbnails[246613] = clik.newPhoto({"id":246613,"src":"DSCF0499A_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_246613.html","width":130,"caption":"Emily","height":104});
															thumbnails[2416090] = clik.newPhoto({"id":2416090,"src":"DSF2057_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416090.html","width":130,"caption":"Wedding at Quin","height":98});
															thumbnails[2437819] = clik.newPhoto({"id":2437819,"src":"Carrie_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_2437819.html","width":130,"caption":"Carrie","height":173});
															thumbnails[2823313] = clik.newPhoto({"id":2823313,"src":"_DSF0023_thumb. 7x5.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823313.html","width":130,"caption":"","height":182});
															thumbnails[2823323] = clik.newPhoto({"id":2823323,"src":"_DSF0064 copy_thumb.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823323.html","width":130,"caption":"","height":182});
															thumbnails[3931875] = clik.newPhoto({"id":3931875,"src":"_DSF46271_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_3931875.html","width":130,"caption":"","height":182});
															thumbnails[3931888] = clik.newPhoto({"id":3931888,"src":"_DSF6618_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_3931888.html","width":130,"caption":"Graduation Picture","height":163});
															thumbnails[3980872] = clik.newPhoto({"id":3980872,"src":"Mem_album_thumb.jpg","galleries_id":12534,"server_id":1,"link":"photo_3980872.html","width":130,"caption":"Memory Album","height":130});
															thumbnails[5935332] = clik.newPhoto({"id":5935332,"src":"_DSC2411_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_5935332.html","width":130,"caption":"Maria monochrome portrait","height":163});
															thumbnails[8260375] = clik.newPhoto({"id":8260375,"src":"_DSC6191_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260375.html","width":130,"caption":"At Dromoland Castle","height":104});
															thumbnails[8260437] = clik.newPhoto({"id":8260437,"src":"022_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260437.html","width":130,"caption":"Christine and Brian","height":130});
															thumbnails[8456959] = clik.newPhoto({"id":8456959,"src":"_DSC0181_thumb.jpg","galleries_id":447495,"server_id":1,"link":"photo_8456959.html","width":130,"caption":"","height":130});
															thumbnails[2416100] = clik.newPhoto({"id":2416100,"src":"IMG4841x_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416100.html","width":130,"caption":"","height":130});
															thumbnails[2423939] = clik.newPhoto({"id":2423939,"src":"DSF9420_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_2423939.html","width":130,"caption":"","height":182});
															thumbnails[2823314] = clik.newPhoto({"id":2823314,"src":"_DSF0025sc_thumb.7x5.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823314.html","width":130,"caption":"","height":182});
															thumbnails[2823324] = clik.newPhoto({"id":2823324,"src":"_DSF0074x2_thumb.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823324.html","width":130,"caption":"","height":182});
															thumbnails[3931780] = clik.newPhoto({"id":3931780,"src":"Harmony_album_thumb.jpg","galleries_id":12534,"server_id":1,"link":"photo_3931780.html","width":130,"caption":"Harmony Album","height":130});
															thumbnails[3931876] = clik.newPhoto({"id":3931876,"src":"_DSF46331_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_3931876.html","width":130,"caption":"","height":182});
															thumbnails[8260376] = clik.newPhoto({"id":8260376,"src":"_DSC7445_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260376.html","width":130,"caption":"Wedding Party at Aherlow House Hotel, Tipperary.","height":104});
															thumbnails[8260438] = clik.newPhoto({"id":8260438,"src":"023_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260438.html","width":130,"caption":"","height":130});
															thumbnails[8456960] = clik.newPhoto({"id":8456960,"src":"_DSC0187_thumb.jpg","galleries_id":447495,"server_id":1,"link":"photo_8456960.html","width":130,"caption":"","height":130});
															thumbnails[8260378] = clik.newPhoto({"id":8260378,"src":"_DSC9277_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260378.html","width":130,"caption":"The Village Street, Bunratty Folk Park, Co Clare.","height":104});
															thumbnails[8260440] = clik.newPhoto({"id":8260440,"src":"025_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260440.html","width":130,"caption":"","height":130});
															thumbnails[136447] = clik.newPhoto({"id":136447,"src":"DSCF0569JPG_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_136447.html","width":130,"caption":"","height":173});
															thumbnails[2823315] = clik.newPhoto({"id":2823315,"src":"_DSF0032 copy2_thumb.jpg","galleries_id":175574,"server_id":1,"link":"photo_2823315.html","width":130,"caption":"","height":93});
															thumbnails[3931790] = clik.newPhoto({"id":3931790,"src":"Symphony_album_thumb.jpg","galleries_id":12534,"server_id":1,"link":"photo_3931790.html","width":130,"caption":"Symphony Album","height":130});
															thumbnails[8260377] = clik.newPhoto({"id":8260377,"src":"_DSC8651_copy_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260377.html","width":130,"caption":"At The Strand Hotel, Limerick.","height":65});
															thumbnails[8260439] = clik.newPhoto({"id":8260439,"src":"024_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260439.html","width":130,"caption":"","height":130});
															thumbnails[8260477] = clik.newPhoto({"id":8260477,"src":"09_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260477.html","width":130,"caption":"Caroline and Frank","height":163});
															thumbnails[8456961] = clik.newPhoto({"id":8456961,"src":"_DSF0720_thumb.jpg","galleries_id":447495,"server_id":1,"link":"photo_8456961.html","width":130,"caption":"","height":173});
															thumbnails[8260475] = clik.newPhoto({"id":8260475,"src":"07_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260475.html","width":130,"caption":"Ann Marie  and Dermot","height":163});
															thumbnails[8260474] = clik.newPhoto({"id":8260474,"src":"06_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260474.html","width":130,"caption":"Mags and Tom","height":163});
															thumbnails[803460] = clik.newPhoto({"id":803460,"src":"P8Bmd07w1_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_803460.html","width":130,"caption":"St John's Cathedral, Limerick City.","height":98});
															thumbnails[2423942] = clik.newPhoto({"id":2423942,"src":"DSF9468_thumb.jpg","galleries_id":12533,"server_id":1,"link":"photo_2423942.html","width":130,"caption":"","height":194});
															thumbnails[8260478] = clik.newPhoto({"id":8260478,"src":"10_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260478.html","width":130,"caption":"Rochelle and Morgan","height":163});
															thumbnails[8456962] = clik.newPhoto({"id":8456962,"src":"_DSF0722_thumb.jpg","galleries_id":447495,"server_id":1,"link":"photo_8456962.html","width":130,"caption":"","height":98});
															thumbnails[815026] = clik.newPhoto({"id":815026,"src":"P23Bmd07w_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_815026.html","width":130,"caption":"Bunratty Folk Park.Co Clare.","height":98});
															thumbnails[2416094] = clik.newPhoto({"id":2416094,"src":"DSF2463_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416094.html","width":130,"caption":"","height":130});
															thumbnails[8260442] = clik.newPhoto({"id":8260442,"src":"01_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260442.html","width":130,"caption":"Roberta and Rory","height":173});
															thumbnails[8260480] = clik.newPhoto({"id":8260480,"src":"01_A3AD28A0-1EC9-D45B-1C7E993B376AD927_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_8260480.html","width":130,"caption":"","height":102});
															thumbnails[8456965] = clik.newPhoto({"id":8456965,"src":"DSCF0186_thumb.jpg","galleries_id":447496,"server_id":1,"link":"photo_8456965.html","width":130,"caption":"Southern France","height":173});
															thumbnails[815027] = clik.newPhoto({"id":815027,"src":"P2407a07w_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_815027.html","width":130,"caption":"The Park in Adare, Co Limerick.","height":98});
															thumbnails[8260443] = clik.newPhoto({"id":8260443,"src":"02_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260443.html","width":130,"caption":"Album Title Page","height":173});
															thumbnails[8260481] = clik.newPhoto({"id":8260481,"src":"02_A3AD2AE2-1EC9-D45B-1C968B3390C25CDB_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_8260481.html","width":130,"caption":"","height":102});
															thumbnails[8456966] = clik.newPhoto({"id":8456966,"src":"DSCN1961_copy_thumb.jpg","galleries_id":447496,"server_id":1,"link":"photo_8456966.html","width":130,"caption":"Bucfast Abbey","height":98});
															thumbnails[815030] = clik.newPhoto({"id":815030,"src":"P2807a_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_815030.html","width":130,"caption":"","height":98});
															thumbnails[815031] = clik.newPhoto({"id":815031,"src":"P2907a07w_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_815031.html","width":130,"caption":"","height":98});
															thumbnails[815032] = clik.newPhoto({"id":815032,"src":"P607a07w_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_815032.html","width":130,"caption":"","height":98});
															thumbnails[8260444] = clik.newPhoto({"id":8260444,"src":"03_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260444.html","width":130,"caption":"Martha and Aidan","height":163});
															thumbnails[8260482] = clik.newPhoto({"id":8260482,"src":"03_A3AD2D25-1EC9-D45B-1C6350B75D9B73A6_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_8260482.html","width":130,"caption":"Laura and Kevin","height":102});
															thumbnails[8456967] = clik.newPhoto({"id":8456967,"src":"DSCN1979_copy_thumb.jpg","galleries_id":447496,"server_id":1,"link":"photo_8456967.html","width":130,"caption":"Devon Scene","height":98});
															thumbnails[8260445] = clik.newPhoto({"id":8260445,"src":"04_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260445.html","width":130,"caption":"Martha and Aidan","height":163});
															thumbnails[8260483] = clik.newPhoto({"id":8260483,"src":"04_A3AD2F67-1EC9-D45B-1C4EEE48B7138D47_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_8260483.html","width":130,"caption":"","height":102});
															thumbnails[8456968] = clik.newPhoto({"id":8456968,"src":"_DSC5412_copy_thumb.jpg","galleries_id":447496,"server_id":1,"link":"photo_8456968.html","width":130,"caption":"Castletroy College","height":98});
															thumbnails[138670] = clik.newPhoto({"id":138670,"src":"DSCF6641rsJPG_thumb.jpg","galleries_id":12534,"server_id":1,"link":"photo_138670.html","width":130,"caption":"Traditional Album.","height":104});
															thumbnails[8260446] = clik.newPhoto({"id":8260446,"src":"05_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260446.html","width":130,"caption":"Tom and Mags","height":163});
															thumbnails[8260484] = clik.newPhoto({"id":8260484,"src":"11_thumb.jpg","galleries_id":439841,"server_id":1,"link":"photo_8260484.html","width":130,"caption":"Amanda and Shane","height":163});
															thumbnails[8456969] = clik.newPhoto({"id":8456969,"src":"_DSF3096_copy_thumb.jpg","galleries_id":447496,"server_id":1,"link":"photo_8456969.html","width":130,"caption":" DSF309River Shannon at Bunratty","height":98});
															thumbnails[2416099] = clik.newPhoto({"id":2416099,"src":"DSF9004_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416099.html","width":130,"caption":"","height":194});
															thumbnails[8456970] = clik.newPhoto({"id":8456970,"src":"_DSF3103_copy_thumb.jpg","galleries_id":447496,"server_id":1,"link":"photo_8456970.html","width":130,"caption":"On the River near Bunratty","height":98});
															thumbnails[2416297] = clik.newPhoto({"id":2416297,"src":"Falls, Ennistymon_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416297.html","width":130,"caption":"Wedding at The Falls Hotel, Ennistymon.","height":173});
															thumbnails[2416089] = clik.newPhoto({"id":2416089,"src":"DSCF1405_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416089.html","width":130,"caption":"Wedding at Liscannor, Co Clare.","height":173});
															thumbnails[2416091] = clik.newPhoto({"id":2416091,"src":"DSF2072_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416091.html","width":130,"caption":"The Cloister at Quin","height":173});
															thumbnails[2437820] = clik.newPhoto({"id":2437820,"src":"DSF2134b_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2437820.html","width":130,"caption":"Anna and Chris at Quin, Co Clare.","height":173});
															thumbnails[2416104] = clik.newPhoto({"id":2416104,"src":"P291_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_2416104.html","width":130,"caption":"At The Glen of Aherlow, Co Tipperary.","height":98});
															thumbnails[2416106] = clik.newPhoto({"id":2416106,"src":"Untitled11_thumb.jpg","galleries_id":22259,"server_id":1,"link":"photo_2416106.html","width":130,"caption":"Wedding at Quin, Co. Clare","height":81});
															thumbnails[2416108] = clik.newPhoto({"id":2416108,"src":"Untitled1a1_thumb.jpg","galleries_id":439910,"server_id":1,"link":"photo_2416108.html","width":130,"caption":"Lesley Ann and Michael","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[439841] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Some recent weddings","link":"gallery_439841.html","maxRecords":0.0,"photoIDs":[8260374.0,8260436.0,8260375.0,8260437.0,8260376.0,8260438.0,8260378.0,8260440.0,8260377.0,8260439.0,8260477.0,8260475.0,8260474.0,8260478.0,8260442.0,8260443.0,8260444.0,8260445.0,8260446.0,8260484.0],"skipIndex":0,"section_code":"gallery","featured_images":"8260477,8260475,8260474,8260446","id":439841,"singleSection":false});				  						galleries[439910] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"More Weddings","link":"gallery_439910.html","maxRecords":0.0,"photoIDs":[1567907.0,2416098.0,3931820.0,803514.0,2416103.0,2416090.0,2416100.0,2416094.0,2416099.0,2416297.0,2416089.0,2416091.0,2437820.0,2416108.0],"skipIndex":0,"section_code":"gallery","featured_images":"2416297,2416099,2416091","id":439910,"singleSection":false});				  						galleries[12533] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Studio","link":"gallery_12533.html","maxRecords":0.0,"photoIDs":[136449.0,136456.0,136457.0,136463.0,139353.0,139359.0,136445.0,246612.0,2423937.0,2437818.0,3931874.0,3931887.0,5935331.0,136446.0,246613.0,2437819.0,3931875.0,3931888.0,5935332.0,2423939.0,3931876.0,136447.0,2423942.0],"skipIndex":0,"section_code":"gallery","featured_images":"5935332,3931876,2437818,139359,136463,136457,136445","id":12533,"singleSection":false});				  						galleries[22259] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Album page designs","link":"gallery_22259.html","maxRecords":0.0,"photoIDs":[2416295.0,3931823.0,3931830.0,3931833.0,3931850.0,3931852.0,803460.0,815026.0,8260480.0,815027.0,8260481.0,815030.0,815031.0,815032.0,8260482.0,8260483.0,2416104.0,2416106.0],"skipIndex":0,"section_code":"gallery","featured_images":"8260483,8260482,8260481,8260480,3931852,3931850,3931833,3931830,3931823,2416295","id":22259,"singleSection":false});				  						galleries[12534] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Types of Album","link":"gallery_12534.html","maxRecords":0.0,"photoIDs":[1567987.0,3980871.0,3980872.0,3931780.0,3931790.0,138670.0],"skipIndex":0,"section_code":"gallery","featured_images":3931790.0,"id":12534,"singleSection":false});				  						galleries[175574] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Maternity Portraits","link":"gallery_175574.html","maxRecords":0.0,"photoIDs":[2823312.0,2823322.0,2823313.0,2823323.0,2823314.0,2823324.0,2823315.0],"skipIndex":0,"section_code":"gallery","featured_images":2823315.0,"id":175574,"singleSection":false});				  						galleries[447495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Product Photos","link":"gallery_447495.html","maxRecords":0.0,"photoIDs":[8456958.0,8456959.0,8456960.0,8456961.0,8456962.0],"skipIndex":0,"section_code":"gallery","featured_images":"8456962,8456961,8456960,8456959,8456958","id":447495,"singleSection":false});				  						galleries[447496] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pictorial","link":"gallery_447496.html","maxRecords":0.0,"photoIDs":[8456965.0,8456966.0,8456967.0,8456968.0,8456969.0,8456970.0],"skipIndex":0,"section_code":"gallery","featured_images":"8456970,8456969,8456968,8456967,8456966,8456965","id":447496,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3931830,139359,2437818,2416098,2416090,8260378,8260480,2416094,2416297';
imageSets[2] = '139359,138727,136463,136457,2437818,136445,5935332,3931876,8260477,3931790,2823315,8260475,8260474,3931856,8260446,2416099,2416297,2416091';
imageSets[3] = '3931820';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jaobrien/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jaobrien/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 || photos || {})[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 = 'John O\'Brien 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &euro;' + (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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="obrienja27@eircom.net">';
					temp += '<input type="hidden" name="currency_code" value="EUR">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="obrienja27@eircom.net">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

