window.thumbnails = {};
															thumbnails[7442382] = clik.newPhoto({"id":7442382,"src":"Frame_size_comparison_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":73,"caption":"Frame Size Comparison","height":65});
															thumbnails[7442428] = clik.newPhoto({"id":7442428,"src":"Various_Sized_prints1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":87,"caption":"various Sized prints","height":65});
															thumbnails[7442430] = clik.newPhoto({"id":7442430,"src":"Gift_Voucher_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":87,"caption":"Gift Voucher","height":65});
															thumbnails[7429042] = clik.newPhoto({"id":7429042,"src":"Dalgan_Walk_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_7429042.html","width":78,"caption":"Dalgan Walk","height":65});
															thumbnails[7604477] = clik.newPhoto({"id":7604477,"src":"Tara_Hawthorn_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_7604477.html","width":75,"caption":"Tara Hawthorn","height":65});
															thumbnails[7729578] = clik.newPhoto({"id":7729578,"src":"Carnbane_East_Summit_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_7729578.html","width":86,"caption":"Carnbane East Summit","height":65});
															thumbnails[7795947] = clik.newPhoto({"id":7795947,"src":"Winter_morning_near_Donore_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_7795947.html","width":87,"caption":"Winter morning near Donore","height":65});
															thumbnails[7866720] = clik.newPhoto({"id":7866720,"src":"Dusk_at_Cairn_V_Loughcrew_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_7866720.html","width":87,"caption":"Dusk at Cairn V Loughcrew","height":65});
															thumbnails[8104365] = clik.newPhoto({"id":8104365,"src":"Hill_of_Tara_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_8104365.html","width":90,"caption":"Hill of Tara","height":65});
															thumbnails[8169500] = clik.newPhoto({"id":8169500,"src":"Upper_Lake_Killarney_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_8169500.html","width":90,"caption":"Upper Lake, Killarney","height":65});
															thumbnails[8323815] = clik.newPhoto({"id":8323815,"src":"Winter_Gold_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_8323815.html","width":53,"caption":"Winter Gold","height":65});
															thumbnails[8364251] = clik.newPhoto({"id":8364251,"src":"Wicklow_View_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_8364251.html","width":74,"caption":"Wicklow View","height":65});
															thumbnails[8406210] = clik.newPhoto({"id":8406210,"src":"Woodland_Grazing_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_8406210.html","width":51,"caption":"Woodland Grazing","height":65});
															thumbnails[8437377] = clik.newPhoto({"id":8437377,"src":"Winter_Birch_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_8437377.html","width":50,"caption":"Winter Birch","height":65});
															thumbnails[8678172] = clik.newPhoto({"id":8678172,"src":"Alouette_3_Memories_1_thumb.jpg","galleries_id":457960,"server_id":15,"link":"photo_8678172.html","width":85,"caption":"Alouette3 Memories 1","height":65});
															thumbnails[8678173] = clik.newPhoto({"id":8678173,"src":"Dauphin_SAR_Finner_thumb.jpg","galleries_id":457960,"server_id":15,"link":"photo_8678173.html","width":87,"caption":"Dauphin SAR, Finner","height":65});
															thumbnails[8678175] = clik.newPhoto({"id":8678175,"src":"Dauphin_SAR_Shannon_thumb.jpg","galleries_id":457960,"server_id":15,"link":"photo_8678175.html","width":86,"caption":"Dauphin SAR, Shannon","height":65});
															thumbnails[8707148] = clik.newPhoto({"id":8707148,"src":"PC9M_Training_thumb.jpg","galleries_id":457960,"server_id":15,"link":"photo_8707148.html","width":86,"caption":"PC-9M Training","height":65});
															thumbnails[8742673] = clik.newPhoto({"id":8742673,"src":"Colemans_Island_thumb.jpg","galleries_id":457960,"server_id":15,"link":"photo_8742673.html","width":86,"caption":"Colemans Island","height":65});
															thumbnails[8778422] = clik.newPhoto({"id":8778422,"src":"Grand_Canal_Vicarstown_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_8778422.html","width":89,"caption":"Grand Canal, Vicarstown","height":65});
															thumbnails[8800922] = clik.newPhoto({"id":8800922,"src":"Grand_Canal_Courtwood_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_8800922.html","width":88,"caption":"Grand Canal, Courtwood","height":65});
															thumbnails[8837156] = clik.newPhoto({"id":8837156,"src":"Oughaval_Wood_Stradbally_9DD39940-1EC9-DFB6-0917F08F9F5661F0_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_8837156.html","width":89,"caption":"Oughaval Wood, Stradbally","height":65});
															thumbnails[8871481] = clik.newPhoto({"id":8871481,"src":"Lasserre_de_Prouille_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_8871481.html","width":77,"caption":"Lasserre de Prouille","height":65});
															thumbnails[8913476] = clik.newPhoto({"id":8913476,"src":"de_Havilland_Chipmunk_thumb.jpg","galleries_id":457960,"server_id":15,"link":"photo_8913476.html","width":86,"caption":"de Havilland Chipmunk","height":65});
															thumbnails[6825411] = clik.newPhoto({"id":6825411,"src":"Dunamaise_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_6825411.html","width":91,"caption":"Dunamaise","height":65});
															thumbnails[7376968] = clik.newPhoto({"id":7376968,"src":"Julianstown_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_7376968.html","width":79,"caption":"Julianstown","height":65});
															thumbnails[7651223] = clik.newPhoto({"id":7651223,"src":"Cairn_U_Loughcrew_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_7651223.html","width":85,"caption":"Cairn U, Loughcrew","height":65});
															thumbnails[7383566] = clik.newPhoto({"id":7383566,"src":"Tara_Oak_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_7383566.html","width":76,"caption":"Tara Oak","height":65});
															thumbnails[7443580] = clik.newPhoto({"id":7443580,"src":"Cairn_V_Loughcrew1_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_7443580.html","width":86,"caption":"Cairn V, Loughcrew.","height":65});
															thumbnails[7417499] = clik.newPhoto({"id":7417499,"src":"Dalgan_View_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_7417499.html","width":75,"caption":"Dalgan View","height":65});
															thumbnails[7510853] = clik.newPhoto({"id":7510853,"src":"Cairn_S_Loughcrew_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_7510853.html","width":86,"caption":"Cairn S Loughcrew","height":65});
															thumbnails[7540087] = clik.newPhoto({"id":7540087,"src":"Cairn_T_Loughcrew_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_7540087.html","width":88,"caption":"Cairn T Loughcrew","height":65});
															thumbnails[6309929] = clik.newPhoto({"id":6309929,"src":"Forest_Dawn_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_6309929.html","width":63,"caption":"Forest Dawn.","height":65});
															thumbnails[6825315] = clik.newPhoto({"id":6825315,"src":"Three_Sisters_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_6825315.html","width":91,"caption":"Three Sisters","height":65});
															thumbnails[6957793] = clik.newPhoto({"id":6957793,"src":"Skellig_View_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_6957793.html","width":89,"caption":"Skellig View.","height":65});
															thumbnails[6957800] = clik.newPhoto({"id":6957800,"src":"Fogher_Cliffs_Valencia_Island_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_6957800.html","width":88,"caption":"Fogher Cliffs, Valencia Island.","height":65});
															thumbnails[6957815] = clik.newPhoto({"id":6957815,"src":"Cromwell_Point_Lighthouse_Valencia_Island_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_6957815.html","width":89,"caption":"Cromwell Point Lighthouse, Valencia Island.","height":65});
															thumbnails[7504899] = clik.newPhoto({"id":7504899,"src":"Hook_Head_Lighthouse_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_7504899.html","width":87,"caption":"Hook Head Lighthouse","height":65});
															thumbnails[3809849] = clik.newPhoto({"id":3809849,"src":"Winter_Sunlight_Glen_of_imaal_Wicklow_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3809849.html","width":88,"caption":"Winter Sunlight, Glen of Imaal.","height":65});
															thumbnails[3809902] = clik.newPhoto({"id":3809902,"src":"Renvyle_Connemara_Co_Galway_thumb.jpg","galleries_id":232059,"server_id":15,"link":"photo_3809902.html","width":109,"caption":"Renvyle, Connemara, Co. Galway","height":65});
															thumbnails[3816999] = clik.newPhoto({"id":3816999,"src":"Early_Morning_Light_Dingle_Peninsula_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_3816999.html","width":91,"caption":"Early Morning Light, Dingle Peninsula","height":65});
															thumbnails[5733260] = clik.newPhoto({"id":5733260,"src":"Morning_Light_Dingle_Peninsula_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_5733260.html","width":87,"caption":"Morning Light, Dingle Peninsula.","height":65});
															thumbnails[5888534] = clik.newPhoto({"id":5888534,"src":"Deserted_Village_Achill_thumb.jpg","galleries_id":322474,"server_id":15,"link":"photo_5888534.html","width":64,"caption":"Deserted Village, Achill.","height":65});
															thumbnails[5888558] = clik.newPhoto({"id":5888558,"src":"Golden_Strand_Achill_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_5888558.html","width":89,"caption":"Golden Strand, Achill.","height":65});
															thumbnails[6257331] = clik.newPhoto({"id":6257331,"src":"Croagh_Patrick_Clew_Bay_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_6257331.html","width":87,"caption":"Croagh Patrick, Clew Bay","height":65});
															thumbnails[6309928] = clik.newPhoto({"id":6309928,"src":"A_bit_of_craic_yellow_thumb.jpg","galleries_id":349935,"server_id":15,"link":"photo_6309928.html","width":62,"caption":"A bit of craic - Yellow","height":65});
															thumbnails[5112122] = clik.newPhoto({"id":5112122,"src":"Passage_Tomb_B_Newgrange_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_5112122.html","width":89,"caption":"Passage Tomb 'B', Newgrange","height":65});
															thumbnails[5119274] = clik.newPhoto({"id":5119274,"src":"Winter_Scene_Ratoath_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_5119274.html","width":88,"caption":"Winter Scene, Ratoath.","height":65});
															thumbnails[5147878] = clik.newPhoto({"id":5147878,"src":"Banqueting_Hall_Tara_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_5147878.html","width":90,"caption":"Banqueting Hall, Tara.","height":65});
															thumbnails[5691918] = clik.newPhoto({"id":5691918,"src":"Frosty_Morning_Glen_of_Imaal_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_5691918.html","width":88,"caption":"Frosty Morning, Glen of Imaal","height":65});
															thumbnails[6502603] = clik.newPhoto({"id":6502603,"src":"First_Glimpse_Newgrange_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_6502603.html","width":90,"caption":"First Glimpse, Newgrange","height":65});
															thumbnails[6695304] = clik.newPhoto({"id":6695304,"src":"Knowth_Morning_Light_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_6695304.html","width":86,"caption":"Knowth Morning Light","height":65});
															thumbnails[6695370] = clik.newPhoto({"id":6695370,"src":"Morning_Shadow_at_Passage_Tomb_B_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_6695370.html","width":89,"caption":"Morning shadow at Passage Tomb 'B'.","height":65});
															thumbnails[3809865] = clik.newPhoto({"id":3809865,"src":"Evening_Light_on_Atlantic_Drive_Achill_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3809865.html","width":89,"caption":"Evening light on Atlantic Drive, Achill","height":65});
															thumbnails[3809910] = clik.newPhoto({"id":3809910,"src":"Pairc_Glas_Leithinis_Chorca_Dhuibhne_thumb.jpg","galleries_id":232059,"server_id":15,"link":"photo_3809910.html","width":111,"caption":"Pairc Glas, Chorca Dhuibhne, Co. Chiarrai","height":65});
															thumbnails[3817012] = clik.newPhoto({"id":3817012,"src":"Early_Morning_Shadows_Newgrange_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_3817012.html","width":90,"caption":"Early Morning Shadows, Newgrange","height":65});
															thumbnails[5691986] = clik.newPhoto({"id":5691986,"src":"Winter_Sunlight_Meath_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_5691986.html","width":90,"caption":"Winter Sunlight, Meath","height":65});
															thumbnails[5888536] = clik.newPhoto({"id":5888536,"src":"Meath_Laneway_thumb.jpg","galleries_id":322474,"server_id":15,"link":"photo_5888536.html","width":64,"caption":"Meath Laneway.","height":65});
															thumbnails[5888559] = clik.newPhoto({"id":5888559,"src":"Bogstream_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_5888559.html","width":89,"caption":"Bogstream.","height":65});
															thumbnails[6257338] = clik.newPhoto({"id":6257338,"src":"Fields_of_Gold_Dunamaise_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_6257338.html","width":87,"caption":"Fields of Gold, Dunamaise.","height":65});
															thumbnails[4099773] = clik.newPhoto({"id":4099773,"src":"Calm_day_at_Dooneen_Pier_Dingle_Peninsula_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_4099773.html","width":89,"caption":"Calm day at Dooneen Pier, Dingle Peninsula","height":65});
															thumbnails[4841295] = clik.newPhoto({"id":4841295,"src":"Atlantic_Drive_Achill_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_4841295.html","width":92,"caption":"Atlantic Drive, Achill.","height":65});
															thumbnails[4943951] = clik.newPhoto({"id":4943951,"src":"Dalgan_Park_view_from_Tara_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_4943951.html","width":90,"caption":"Dalgan Park view from Tara","height":65});
															thumbnails[3812267] = clik.newPhoto({"id":3812267,"src":"Evening_Calm_over_Keel_Lough_Achill_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3812267.html","width":88,"caption":"Evening Calm over Keel Lough, Achill","height":65});
															thumbnails[4841344] = clik.newPhoto({"id":4841344,"src":"Sunlight_at_Minaun_Cliffs_Achill_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_4841344.html","width":91,"caption":"Sunlight at Minaun Cliffs, Achill.","height":65});
															thumbnails[4843360] = clik.newPhoto({"id":4843360,"src":"Clogher_Beach_View_Dingle_Peninsula_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_4843360.html","width":90,"caption":"Clogher Beach View, Dingle Peninsula.","height":65});
															thumbnails[5121078] = clik.newPhoto({"id":5121078,"src":"Winter_Scene_Malahide_Castle_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_5121078.html","width":89,"caption":"Winter Scene, Malahide Castle.","height":65});
															thumbnails[6825540] = clik.newPhoto({"id":6825540,"src":"Clew_Bay_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_6825540.html","width":88,"caption":"Clew Bay","height":65});
															thumbnails[3809948] = clik.newPhoto({"id":3809948,"src":"Sunlight_on_Cathedral_Rock_Achill_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3809948.html","width":88,"caption":"Sunlight on Cathedral Rock, Achill","height":65});
															thumbnails[3817025] = clik.newPhoto({"id":3817025,"src":"Storm_Clouds_Dingle_Peninsula_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_3817025.html","width":104,"caption":"Storm Clouds, Dingle Peninsula","height":65});
															thumbnails[5199489] = clik.newPhoto({"id":5199489,"src":"Carnbane_East_Loughcrew_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_5199489.html","width":88,"caption":"Carnbane East, Loughcrew","height":65});
															thumbnails[5888539] = clik.newPhoto({"id":5888539,"src":"Slievemor_Achill_thumb.jpg","galleries_id":322474,"server_id":15,"link":"photo_5888539.html","width":65,"caption":"Slievemor, Achill.","height":65});
															thumbnails[5888562] = clik.newPhoto({"id":5888562,"src":"Evening_Sunlight_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_5888562.html","width":92,"caption":"Evening Sunlight.","height":65});
															thumbnails[6257349] = clik.newPhoto({"id":6257349,"src":"Winter_Snow_Meath_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_6257349.html","width":87,"caption":"Winter Snow, Meath.","height":65});
															thumbnails[4844744] = clik.newPhoto({"id":4844744,"src":"Robswall_Castle_Malahide_thumb.jpg","galleries_id":232059,"server_id":15,"link":"photo_4844744.html","width":110,"caption":"Robswall Castle, Malahide.","height":65});
															thumbnails[3810620] = clik.newPhoto({"id":3810620,"src":"Bogscape_near_Slievemor_Achill_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3810620.html","width":88,"caption":"Bogscape near Slievemor, Achill","height":65});
															thumbnails[3817031] = clik.newPhoto({"id":3817031,"src":"Winter_Sunlight_Newgrange_thumb.jpg","galleries_id":232065,"server_id":15,"link":"photo_3817031.html","width":90,"caption":"Winter Sunlight, Newgrange","height":65});
															thumbnails[4394145] = clik.newPhoto({"id":4394145,"src":"Dunamaise_view_Co_Laois_thumb.jpg","galleries_id":232059,"server_id":15,"link":"photo_4394145.html","width":117,"caption":"Dunamaise View, Co Laois","height":65});
															thumbnails[5242954] = clik.newPhoto({"id":5242954,"src":"Boyne_River_Walk_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_5242954.html","width":89,"caption":"Boyne River Walk","height":65});
															thumbnails[5693087] = clik.newPhoto({"id":5693087,"src":"Minaun_Cliffs_Achill_thumb.jpg","galleries_id":322474,"server_id":15,"link":"photo_5693087.html","width":64,"caption":"Minaun Cliffs, Achill","height":65});
															thumbnails[5888566] = clik.newPhoto({"id":5888566,"src":"Sunny_Laneway_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_5888566.html","width":89,"caption":"Sunny Laneway.","height":65});
															thumbnails[6624221] = clik.newPhoto({"id":6624221,"src":"Skelligs_view_from_Boat_Cove_thumb.jpg","galleries_id":347924,"server_id":15,"link":"photo_6624221.html","width":90,"caption":"Skelligs view from Boat Cove","height":65});
															thumbnails[4434956] = clik.newPhoto({"id":4434956,"src":"Three_Sisters_View_Dingle_Peninsula_thumb.jpg","galleries_id":232059,"server_id":15,"link":"photo_4434956.html","width":114,"caption":"Three Sisters View, Dingle Peninsula","height":65});
															thumbnails[5888569] = clik.newPhoto({"id":5888569,"src":"Winter_Light_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_5888569.html","width":91,"caption":"Winter Light.","height":65});
															thumbnails[5081182] = clik.newPhoto({"id":5081182,"src":"Malahide_Marina_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_5081182.html","width":89,"caption":"Malahide Marina","height":65});
															thumbnails[3812336] = clik.newPhoto({"id":3812336,"src":"Fresh_Day_on_Keel_Beach_Achill_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3812336.html","width":89,"caption":"Fresh Day on Keel Beach, Achill","height":65});
															thumbnails[3826352] = clik.newPhoto({"id":3826352,"src":"Camarahill_Glen_of_Imaal_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_3826352.html","width":89,"caption":"Camarahill, Glen of Imaal","height":65});
															thumbnails[4547818] = clik.newPhoto({"id":4547818,"src":"Clogher_Beach_Dingle_Peninsula_thumb.jpg","galleries_id":232059,"server_id":15,"link":"photo_4547818.html","width":110,"caption":"Clogher Beach, Dingle Peninsula.","height":65});
															thumbnails[6624198] = clik.newPhoto({"id":6624198,"src":"Balinskelligs_Castle_thumb.jpg","galleries_id":332574,"server_id":15,"link":"photo_6624198.html","width":90,"caption":"Ballinskelligs Castle","height":65});
															thumbnails[3812248] = clik.newPhoto({"id":3812248,"src":"Lazy_Beds_Slievemor_Achill_thumb.jpg","galleries_id":232058,"server_id":15,"link":"photo_3812248.html","width":88,"caption":"Lazy Beds, Slievemor, Achill","height":65});
															thumbnails[3826369] = clik.newPhoto({"id":3826369,"src":"Winter_Sunlight_Blessington_Lake_thumb.jpg","galleries_id":232063,"server_id":15,"link":"photo_3826369.html","width":88,"caption":"Winter Sunlight, Blessington Lake","height":65});
															thumbnails[3861768] = clik.newPhoto({"id":3861768,"src":"Screen_and_table_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3861768.html","width":81,"caption":"Screen and table","height":65});
															thumbnails[3861759] = clik.newPhoto({"id":3861759,"src":"Acetate_painting1_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3861759.html","width":81,"caption":"Acetate painting","height":65});
															thumbnails[3861762] = clik.newPhoto({"id":3861762,"src":"acetate_painting_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3861762.html","width":81,"caption":"Acetate painting continued","height":65});
															thumbnails[3861773] = clik.newPhoto({"id":3861773,"src":"Image_burning_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3861773.html","width":81,"caption":"Image burning","height":65});
															thumbnails[3816837] = clik.newPhoto({"id":3816837,"src":"Image_placement_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3816837.html","width":81,"caption":"Image placement","height":65});
															thumbnails[3816844] = clik.newPhoto({"id":3816844,"src":"Screen_flooding_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3816844.html","width":81,"caption":"Screen Flooding","height":65});
															thumbnails[3816854] = clik.newPhoto({"id":3816854,"src":"Pulling_print_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3816854.html","width":81,"caption":"Pulling the print.","height":65});
															thumbnails[3816864] = clik.newPhoto({"id":3816864,"src":"Remove_to_drying_rack_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3816864.html","width":81,"caption":"Remove to Drying Rack","height":65});
															thumbnails[3816871] = clik.newPhoto({"id":3816871,"src":"Prints_and_screens_drying_thumb.jpg","galleries_id":233496,"server_id":15,"link":"photo_3816871.html","width":81,"caption":"Print drying.","height":65});
															thumbnails[6516692] = clik.newPhoto({"id":6516692,"src":"Winter_Birch1_thumb.jpg","galleries_id":358495,"server_id":15,"link":"photo_6516692.html","width":50,"caption":"Winter Birch","height":65});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[358495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Newest Print","link":"section427232.html","maxRecords":0.0,"photoIDs":[6516692.0],"skipIndex":0,"section_code":"section427232","featured_images":6516692.0,"id":358495,"singleSection":true});				  						galleries[232058] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - A4 Size","link":"gallery_232058.html","maxRecords":0.0,"photoIDs":[7651223.0,7443580.0,7510853.0,7540087.0,6957793.0,6957800.0,6957815.0,7504899.0,3809849.0,5112122.0,5119274.0,5147878.0,5691918.0,3809865.0,4099773.0,4943951.0,3812267.0,5121078.0,3809948.0,3810620.0,5081182.0,3812336.0,3812248.0],"skipIndex":0,"section_code":"gallery","featured_images":3809865.0,"id":232058,"singleSection":false});				  						galleries[232059] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - A4 (Long) Size","link":"gallery_232059.html","maxRecords":0.0,"photoIDs":[3809902.0,3809910.0,4844744.0,4394145.0,4434956.0,4547818.0],"skipIndex":0,"section_code":"gallery","featured_images":4394145.0,"id":232059,"singleSection":false});				  						galleries[232063] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - A3 Size","link":"gallery_232063.html","maxRecords":0.0,"photoIDs":[5733260.0,6502603.0,6695304.0,6695370.0,5691986.0,5199489.0,5242954.0,3826352.0,3826369.0],"skipIndex":0,"section_code":"gallery","featured_images":5733260.0,"id":232063,"singleSection":false});				  						galleries[232065] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - A2 Size","link":"gallery_232065.html","maxRecords":0.0,"photoIDs":[8104365.0,8169500.0,3816999.0,3817012.0,4841295.0,4841344.0,4843360.0,3817025.0,3817031.0],"skipIndex":0,"section_code":"gallery","featured_images":3816999.0,"id":232065,"singleSection":false});				  						galleries[322474] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - Footprints","link":"gallery_322474.html","maxRecords":0.0,"photoIDs":[5888534.0,5888536.0,5888539.0,5693087.0],"skipIndex":0,"section_code":"gallery","featured_images":5888534.0,"id":322474,"singleSection":false});				  						galleries[347924] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - A5 Size","link":"gallery_347924.html","maxRecords":0.0,"photoIDs":[7729578.0,7795947.0,7866720.0,8778422.0,8800922.0,8837156.0,6257331.0,6257338.0,6825540.0,6257349.0,6624221.0],"skipIndex":0,"section_code":"gallery","featured_images":6257338.0,"id":347924,"singleSection":false});				  						galleries[332574] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Gallery - A6 Size","link":"gallery_332574.html","maxRecords":0.0,"photoIDs":[6825411.0,6825315.0,5888558.0,5888559.0,5888562.0,5888566.0,5888569.0,6624198.0],"skipIndex":0,"section_code":"gallery","featured_images":5888559.0,"id":332574,"singleSection":false});				  						galleries[349935] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mini Prints","link":"gallery_349935.html","maxRecords":0.0,"photoIDs":[7429042.0,7604477.0,8323815.0,8364251.0,8406210.0,8437377.0,8871481.0,7376968.0,7383566.0,7417499.0,6309929.0,6309928.0],"skipIndex":0,"section_code":"gallery","featured_images":7376968.0,"id":349935,"singleSection":false});				  						galleries[233496] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Screenprinting Process","link":"section284842.html","maxRecords":0.0,"photoIDs":[3861768.0,3861759.0,3861762.0,3861773.0,3816837.0,3816844.0,3816854.0,3816864.0,3816871.0],"skipIndex":0,"section_code":"section284842","featured_images":3816854.0,"id":233496,"singleSection":true});				  						galleries[457960] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Air Corps Memories","link":"gallery_457960.html","maxRecords":0.0,"photoIDs":[8678172.0,8678173.0,8678175.0,8707148.0,8742673.0,8913476.0],"skipIndex":0,"section_code":"gallery","featured_images":8707148.0,"id":457960,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[239871] = '7442430,7442428,7442382';
imageSets[1] = '7443580,7510853,7504899,6257331,5888534,5733260,3816999,3809849,5112122,5119274,3817012,3809865,4841295,5888566,4394145,4547818';
imageSets[2] = '8707148,7376968,5888534,5733260,3816999,6257338,5888559,3809865,4394145,3816854';
imageSets[3] = '8913476,8871481,8837156,8800922,8778422,8742673,8707148,8678175,8678173,8678172,8437377,8406210,8364251,8323815,8169500,8104365,7866720,7795947,7729578,7651223,7604477,7540087,7510853,7504899,7443580,7442430,7442428,7442382,7429042,7417499,7383566,7376968,6957815,6957800,6957793,6825540,6825411,6825315,6695370,6695304,6624221,6624198,6516692,6502603,6309929,6309928,6257349,6257338,6257331,5888569';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/aidanflanagan/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/aidanflanagan/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 = 'Aidan Flanagan Art: ' + 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> ' + (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 += '<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;
	}
}

			

