window.thumbnails = {};
															thumbnails[2112201] = clik.newPhoto({"id":2112201,"src":"Goldfinch-4-best_thumb.jpg","galleries_id":103820,"server_id":1,"link":"photo_2112201.html","width":130,"caption":"Goldfinch","height":180});
															thumbnails[4203469] = clik.newPhoto({"id":4203469,"src":"Cascading_water_BW_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_4203469.html","width":130,"caption":"'Cascading Water'<br>\r\n      Ballaglass","height":87});
															thumbnails[4441988] = clik.newPhoto({"id":4441988,"src":"Port_Moar_Beach_1_bW_amended_72dpi_copy_or_web_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_4441988.html","width":130,"caption":"Port Moar","height":84});
															thumbnails[5151544] = clik.newPhoto({"id":5151544,"src":"Manhattan_Bridge1_bw_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_5151544.html","width":130,"caption":"Manhattan Bridge New York","height":92});
															thumbnails[5153749] = clik.newPhoto({"id":5153749,"src":"Times_Square_BW_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_5153749.html","width":130,"caption":"Times Square New York","height":190});
															thumbnails[5153800] = clik.newPhoto({"id":5153800,"src":"Manhattan_by_sea_BW_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_5153800.html","width":130,"caption":"Manhattan Skyline","height":89});
															thumbnails[5221254] = clik.newPhoto({"id":5221254,"src":"Front_Cover__Jan_2013123_thumb.jpg","galleries_id":308151,"server_id":1,"link":"photo_5221254.html","width":160,"caption":"2 Day Course","height":113});
															thumbnails[5221628] = clik.newPhoto({"id":5221628,"src":"Ballaglass_Falls_October_2012123_thumb.jpg","galleries_id":308151,"server_id":1,"link":"photo_5221628.html","width":160,"caption":"1 Day Course","height":113});
															thumbnails[5575777] = clik.newPhoto({"id":5575777,"src":"Introduction_to_DSLR_thumb.jpg","galleries_id":308151,"server_id":1,"link":"photo_5575777.html","width":130,"caption":"Introduction To Digital SLR Photography","height":95});
															thumbnails[5621235] = clik.newPhoto({"id":5621235,"src":"Ballaglass_May_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_5621235.html","width":130,"caption":"Blue Bell Wood","height":93});
															thumbnails[5621278] = clik.newPhoto({"id":5621278,"src":"Castletown_Pier_July_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621278.html","width":130,"caption":"Castletown Pier ","height":93});
															thumbnails[5621282] = clik.newPhoto({"id":5621282,"src":"Chicken_Rock_June_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621282.html","width":130,"caption":"Chicken Rock Lighthouse","height":93});
															thumbnails[5621284] = clik.newPhoto({"id":5621284,"src":"Cornaa_sunrise_landscape_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621284.html","width":130,"caption":"Cornaa Sunrise 1","height":95});
															thumbnails[5621347] = clik.newPhoto({"id":5621347,"src":"Glen_Mona_January_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5621347.html","width":130,"caption":"A winters Day","height":93});
															thumbnails[5621383] = clik.newPhoto({"id":5621383,"src":"Laxey_Pier_at_Sunrise_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621383.html","width":130,"caption":"Laxey Pier Sunrise","height":91});
															thumbnails[5621410] = clik.newPhoto({"id":5621410,"src":"Port_cornaa_September_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621410.html","width":130,"caption":"Port Cornaa ","height":93});
															thumbnails[5621430] = clik.newPhoto({"id":5621430,"src":"Port_Erin_February_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621430.html","width":130,"caption":"Port Erin Sunset","height":93});
															thumbnails[5621489] = clik.newPhoto({"id":5621489,"src":"Queens_Pier_Ramsey_copy_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621489.html","width":130,"caption":"Queens Pier Ramsey","height":93});
															thumbnails[5621506] = clik.newPhoto({"id":5621506,"src":"Ramsey_Bay_Sunrise_looking_towards_maughold_Panorama_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621506.html","width":130,"caption":"Ramsey Bay at sunrise","height":67});
															thumbnails[5621520] = clik.newPhoto({"id":5621520,"src":"Sulby_Reservoir__Snow_Landscape_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5621520.html","width":130,"caption":"Sulby Reservoir 1","height":91});
															thumbnails[5621583] = clik.newPhoto({"id":5621583,"src":"Sunrise_Cornaa_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621583.html","width":130,"caption":"sunrise cornaa","height":186});
															thumbnails[5621762] = clik.newPhoto({"id":5621762,"src":"The_chasms_August_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5621762.html","width":130,"caption":"Spanish Head","height":93});
															thumbnails[5621820] = clik.newPhoto({"id":5621820,"src":"Tholt_y_Will_1_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5621820.html","width":130,"caption":"Tholt y Will 1","height":84});
															thumbnails[5621830] = clik.newPhoto({"id":5621830,"src":"Tholt_y_Will_2_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5621830.html","width":130,"caption":"Tholt Y Will 2","height":199});
															thumbnails[5621836] = clik.newPhoto({"id":5621836,"src":"Viking_Burial_Ground_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_5621836.html","width":130,"caption":"Viking Burial Ground","height":187});
															thumbnails[5622226] = clik.newPhoto({"id":5622226,"src":"Laxey_Wheel_snow_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5622226.html","width":130,"caption":"Laxey Wheel","height":191});
															thumbnails[5622229] = clik.newPhoto({"id":5622229,"src":"Bulgham_Bends_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5622229.html","width":130,"caption":"Dhoon Valley","height":88});
															thumbnails[5622233] = clik.newPhoto({"id":5622233,"src":"Dhoon_Christ_Church_thumb.jpg","galleries_id":308184,"server_id":1,"link":"photo_5622233.html","width":130,"caption":"Dhoon Christ Church","height":88});
															thumbnails[5793373] = clik.newPhoto({"id":5793373,"src":"Yacht_Hideaway_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5793373.html","width":130,"caption":"Yacht Hideaway","height":87});
															thumbnails[5793376] = clik.newPhoto({"id":5793376,"src":"Days_end_at_Sea_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5793376.html","width":130,"caption":"Days end at Sea","height":87});
															thumbnails[5819692] = clik.newPhoto({"id":5819692,"src":"Silhouette_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5819692.html","width":130,"caption":"Silhouette","height":92});
															thumbnails[5819816] = clik.newPhoto({"id":5819816,"src":"Yacht_Hideaway_2_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_5819816.html","width":130,"caption":"Yacht Hideaway 2","height":194});
															thumbnails[5876369] = clik.newPhoto({"id":5876369,"src":"Manx_Cottage_Ruin_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_5876369.html","width":130,"caption":"Manx Cottage ruin","height":92});
															thumbnails[5876387] = clik.newPhoto({"id":5876387,"src":"Ballaglass_falls_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_5876387.html","width":130,"caption":"Ballaglass falls","height":89});
															thumbnails[6076316] = clik.newPhoto({"id":6076316,"src":"John_McGuiness_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6076316.html","width":130,"caption":"John McGuniness 1","height":85});
															thumbnails[6076374] = clik.newPhoto({"id":6076374,"src":"Guy_Martin_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6076374.html","width":130,"caption":"Guy Martin 1","height":87});
															thumbnails[6085694] = clik.newPhoto({"id":6085694,"src":"William_Dunlop_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085694.html","width":130,"caption":"William Dunlop 1","height":90});
															thumbnails[6085699] = clik.newPhoto({"id":6085699,"src":"Bruce_Anstey_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085699.html","width":130,"caption":"Bruce Anstey 1","height":88});
															thumbnails[6085742] = clik.newPhoto({"id":6085742,"src":"Conor_Cummins_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085742.html","width":130,"caption":"Conor Cummins 1","height":87});
															thumbnails[6085753] = clik.newPhoto({"id":6085753,"src":"Dan_Kneen_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085753.html","width":130,"caption":"Dan Kneen 1","height":97});
															thumbnails[6085754] = clik.newPhoto({"id":6085754,"src":"Gary_Johnson_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085754.html","width":130,"caption":"Gary Johnson 1","height":94});
															thumbnails[6085756] = clik.newPhoto({"id":6085756,"src":"Ian_Hutchinson_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085756.html","width":130,"caption":"Ian Hutchinson 1","height":166});
															thumbnails[6085760] = clik.newPhoto({"id":6085760,"src":"John_McGuiness_2_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085760.html","width":130,"caption":"John McGuiness 2","height":87});
															thumbnails[6085873] = clik.newPhoto({"id":6085873,"src":"John_McGuiness_3_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085873.html","width":130,"caption":"John McGuiness 3","height":95});
															thumbnails[6085877] = clik.newPhoto({"id":6085877,"src":"Conor_Cummins_Portrait_1_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_6085877.html","width":130,"caption":"Conor Cummins P1","height":168});
															thumbnails[6260945] = clik.newPhoto({"id":6260945,"src":"Carraghan_View1_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6260945.html","width":130,"caption":"Carraghan View","height":96});
															thumbnails[6260952] = clik.newPhoto({"id":6260952,"src":"Three_Peaks_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6260952.html","width":130,"caption":"Three Peaks","height":92});
															thumbnails[6260958] = clik.newPhoto({"id":6260958,"src":"Wind_Swept_1_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6260958.html","width":130,"caption":"Wind Swept 1","height":89});
															thumbnails[6383491] = clik.newPhoto({"id":6383491,"src":"Evening_light_on_tree_1_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6383491.html","width":130,"caption":"Evening Light on Tree 1","height":195});
															thumbnails[6383493] = clik.newPhoto({"id":6383493,"src":"Naked_Tree_1_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6383493.html","width":130,"caption":"Naked Tree","height":194});
															thumbnails[6383501] = clik.newPhoto({"id":6383501,"src":"Sunset_Silhouette_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6383501.html","width":130,"caption":"Sunset Silhouette","height":91});
															thumbnails[6383506] = clik.newPhoto({"id":6383506,"src":"Two_stone_benches_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_6383506.html","width":130,"caption":"Two Stone Benches","height":81});
															thumbnails[6520081] = clik.newPhoto({"id":6520081,"src":"Glen_Dhoon_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_6520081.html","width":130,"caption":"Glen Dhoon ","height":216});
															thumbnails[6520083] = clik.newPhoto({"id":6520083,"src":"Rocky_Shore_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_6520083.html","width":130,"caption":"Rocky Shore","height":87});
															thumbnails[7107677] = clik.newPhoto({"id":7107677,"src":"Adolescent_Male_Lions_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7107677.html","width":130,"caption":"Adolescent Lions","height":71});
															thumbnails[7107693] = clik.newPhoto({"id":7107693,"src":"IMG_3657_Giraffe_Trio_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7107693.html","width":130,"caption":"Giraffe Trio","height":81});
															thumbnails[7107698] = clik.newPhoto({"id":7107698,"src":"King_of_the_Mara_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7107698.html","width":130,"caption":"King of the Mara","height":124});
															thumbnails[7107706] = clik.newPhoto({"id":7107706,"src":"Male_Cheetah_1_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7107706.html","width":130,"caption":"Male Cheetah","height":99});
															thumbnails[7178965] = clik.newPhoto({"id":7178965,"src":"Three_Brothers1_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7178965.html","width":130,"caption":"Three Brothers","height":88});
															thumbnails[7178974] = clik.newPhoto({"id":7178974,"src":"Lion_on_termite_mound_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7178974.html","width":130,"caption":"Lion on Termite Mound","height":88});
															thumbnails[7178987] = clik.newPhoto({"id":7178987,"src":"IMG_4758_The_great_Migration_1_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7178987.html","width":130,"caption":"The Great Migration ","height":98});
															thumbnails[7178991] = clik.newPhoto({"id":7178991,"src":"Masai_Warriors_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7178991.html","width":130,"caption":"Masai Warriors","height":79});
															thumbnails[7334067] = clik.newPhoto({"id":7334067,"src":"IMG_6917_Laxey_Storm1_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_7334067.html","width":130,"caption":"Laxey Storm 1","height":163});
															thumbnails[7334088] = clik.newPhoto({"id":7334088,"src":"IMG_0212_Tall_Trees_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_7334088.html","width":130,"caption":"Tall trees","height":188});
															thumbnails[7334097] = clik.newPhoto({"id":7334097,"src":"IMG_6782_Albert_Tower_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_7334097.html","width":130,"caption":"Albert Tower","height":182});
															thumbnails[7334163] = clik.newPhoto({"id":7334163,"src":"The_Storm_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_7334163.html","width":130,"caption":"The Storm","height":52});
															thumbnails[7381507] = clik.newPhoto({"id":7381507,"src":"The_Winkie_website_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_7381507.html","width":130,"caption":"The Winkie","height":170});
															thumbnails[7381519] = clik.newPhoto({"id":7381519,"src":"IMG_5829_Under_the_pier_website_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_7381519.html","width":130,"caption":"Reflections","height":204});
															thumbnails[7404618] = clik.newPhoto({"id":7404618,"src":"IMG_9406_Port_Moar_2_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_7404618.html","width":130,"caption":"Port Moar 2","height":188});
															thumbnails[7404624] = clik.newPhoto({"id":7404624,"src":"IMG_9409_Port_Moar_1_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_7404624.html","width":130,"caption":"Port Moar 1","height":92});
															thumbnails[7404636] = clik.newPhoto({"id":7404636,"src":"IMG_9419_Maughold_Lighthouse_4_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_7404636.html","width":130,"caption":"Maughold Lighthouse 4","height":92});
															thumbnails[7404684] = clik.newPhoto({"id":7404684,"src":"Arctic_tern_in_flight_3CA3741E-1EC9-DFB6-09C9689B87F8B389_thumb.jpg","galleries_id":103820,"server_id":1,"link":"photo_7404684.html","width":130,"caption":"Arctic Tern","height":191});
															thumbnails[7404685] = clik.newPhoto({"id":7404685,"src":"Brown_Hare_3CAC4E70-1EC9-DFB6-09879D4E8382CAF0_thumb.jpg","galleries_id":103820,"server_id":1,"link":"photo_7404685.html","width":130,"caption":"","height":96});
															thumbnails[7404689] = clik.newPhoto({"id":7404689,"src":"Childs_play_3CB9540B-1EC9-DFB6-0983A201103BDDD3_thumb.jpg","galleries_id":382409,"server_id":1,"link":"photo_7404689.html","width":130,"caption":"Child's Play","height":104});
															thumbnails[7466790] = clik.newPhoto({"id":7466790,"src":"IMG_9773_Sulby_Reservoir_5_copy_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_7466790.html","width":160,"caption":"Reflections on Sulby Reservoir","height":230});
															thumbnails[7466834] = clik.newPhoto({"id":7466834,"src":"IMG_9775_Sulby_Reservoir_6_copy_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_7466834.html","width":160,"caption":"Early Morning Light at Sulby Reservoir","height":118});
															thumbnails[7615578] = clik.newPhoto({"id":7615578,"src":"IMG_9722_Sulby_Reservoir_1_copy_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_7615578.html","width":160,"caption":"Sulby Reservoir ","height":237});
															thumbnails[7615588] = clik.newPhoto({"id":7615588,"src":"IMG_9735_Sulby_Reservoir_2_copy_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_7615588.html","width":160,"caption":"Sulby Reservoir","height":235});
															thumbnails[7615633] = clik.newPhoto({"id":7615633,"src":"IMG_9784_Sulby_Reservoir_cottage_copy_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_7615633.html","width":160,"caption":"Sulby Cottage","height":120});
															thumbnails[7930446] = clik.newPhoto({"id":7930446,"src":"IMG_2749_Guy_Martin_copy_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_7930446.html","width":160,"caption":"Guy Martin","height":120});
															thumbnails[7930478] = clik.newPhoto({"id":7930478,"src":"IMG_2669_J_McGuiness_thumb.jpg","galleries_id":341191,"server_id":1,"link":"photo_7930478.html","width":160,"caption":"John McGuiness TT 2011","height":104});
															thumbnails[8129309] = clik.newPhoto({"id":8129309,"src":"Front_cover_Example_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129309.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129374] = clik.newPhoto({"id":8129374,"src":"Douglas_Beach_December_2011_copy_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129374.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129376] = clik.newPhoto({"id":8129376,"src":"Bulgham_Tramlines_January_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129376.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129377] = clik.newPhoto({"id":8129377,"src":"Sulby_Reservoir_February_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129377.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129403] = clik.newPhoto({"id":8129403,"src":"Mooragh_Park_Ramsey_March_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129403.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129456] = clik.newPhoto({"id":8129456,"src":"Point_of_Ayre_Sunrise_April_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129456.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129487] = clik.newPhoto({"id":8129487,"src":"Bluebell_Wood_Ballaglass_May_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129487.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129504] = clik.newPhoto({"id":8129504,"src":"Niarbyl_Beach_June_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129504.html","width":160,"caption":"calendar 2012","height":113});
															thumbnails[8129506] = clik.newPhoto({"id":8129506,"src":"Sugar_loaf_rock__July_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129506.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129519] = clik.newPhoto({"id":8129519,"src":"Glen_Maye_Waterfall_Aug_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129519.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129552] = clik.newPhoto({"id":8129552,"src":"Jurby_Beach_Sunset__Sept_2012_copy_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129552.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129563] = clik.newPhoto({"id":8129563,"src":"Ballaglass_Falls_October_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129563.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129586] = clik.newPhoto({"id":8129586,"src":"Laxey_Storm_November_2012_copy_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129586.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129603] = clik.newPhoto({"id":8129603,"src":"Peel_Castle_Floodlit_December_2012_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129603.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8129605] = clik.newPhoto({"id":8129605,"src":"Front_Cover__Jan_2013_thumb.jpg","galleries_id":332043,"server_id":1,"link":"photo_8129605.html","width":160,"caption":"Calendar 2012","height":113});
															thumbnails[8173613] = clik.newPhoto({"id":8173613,"src":"Meayll_Hill_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8173613.html","width":160,"caption":"Meayll Hill","height":235});
															thumbnails[8173739] = clik.newPhoto({"id":8173739,"src":"IMG_4439_Peel_Sunset_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8173739.html","width":160,"caption":"Peel Sunset","height":108});
															thumbnails[8173810] = clik.newPhoto({"id":8173810,"src":"IMG_4422_Peel_Beach_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8173810.html","width":160,"caption":"Peel Beach","height":104});
															thumbnails[8173856] = clik.newPhoto({"id":8173856,"src":"IMG_0082_Calf_Sound_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8173856.html","width":160,"caption":"Calf Sound","height":109});
															thumbnails[8173879] = clik.newPhoto({"id":8173879,"src":"IMG_0084_Little_Kitterland_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8173879.html","width":160,"caption":"Little Kitterland","height":112});
															thumbnails[8173908] = clik.newPhoto({"id":8173908,"src":"IMG_6048_Cornaa_Beach_Sunrise_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8173908.html","width":160,"caption":"Cornaa Beach Sunrise","height":109});
															thumbnails[8173949] = clik.newPhoto({"id":8173949,"src":"IMG_9821_Cashtal_yn_Ard_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8173949.html","width":160,"caption":"Cashtal yn Ard","height":235});
															thumbnails[8174282] = clik.newPhoto({"id":8174282,"src":"IMG_9823_Standing_Stones_at_Sunrsie_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8174282.html","width":160,"caption":"Standing Stones at Sunrise","height":109});
															thumbnails[8214695] = clik.newPhoto({"id":8214695,"src":"sunset_port_Erin_Print_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8214695.html","width":160,"caption":"Sunset Port Erin","height":229});
															thumbnails[8214700] = clik.newPhoto({"id":8214700,"src":"Niarbyl_panorama_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8214700.html","width":160,"caption":"Niarbyl","height":59});
															thumbnails[8218574] = clik.newPhoto({"id":8218574,"src":"IMG_4669_Meayll_Circle_Landscape_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8218574.html","width":160,"caption":"Meayll Circle","height":105});
															thumbnails[8338531] = clik.newPhoto({"id":8338531,"src":"IMG_4924_Jurby_Views_copy_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8338531.html","width":160,"caption":"Jurby Views","height":228});
															thumbnails[8338542] = clik.newPhoto({"id":8338542,"src":"IMG_4950_Jurby_Church_2_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8338542.html","width":160,"caption":"Jurby Church 2","height":98});
															thumbnails[8338760] = clik.newPhoto({"id":8338760,"src":"Jurby_beach1_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8338760.html","width":160,"caption":"Jurby beach 1","height":60});
															thumbnails[8338812] = clik.newPhoto({"id":8338812,"src":"peel_sunset_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8338812.html","width":160,"caption":"Peel Sunset","height":58});
															thumbnails[8338882] = clik.newPhoto({"id":8338882,"src":"ruins_thumb.jpg","galleries_id":103794,"server_id":1,"link":"photo_8338882.html","width":160,"caption":"Ruins","height":63});
															thumbnails[8338911] = clik.newPhoto({"id":8338911,"src":"Ballaglass_Glen_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_8338911.html","width":160,"caption":"Ballaglass Glen","height":240});
															thumbnails[8338926] = clik.newPhoto({"id":8338926,"src":"Ballaglass_falls_2_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_8338926.html","width":160,"caption":"Ballaglass Falls 2","height":238});
															thumbnails[8338987] = clik.newPhoto({"id":8338987,"src":"Ballaglass_Glen_Falls_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_8338987.html","width":160,"caption":"Ballaglass Glen Falls","height":108});
															thumbnails[8364982] = clik.newPhoto({"id":8364982,"src":"Bradda_head1_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364982.html","width":160,"caption":"Bradda Head","height":229});
															thumbnails[8364985] = clik.newPhoto({"id":8364985,"src":"Days_end_at_Sea_0C64741B-24E8-5EC4-4FC082BA1B735A4B_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364985.html","width":160,"caption":"Days end at sea","height":107});
															thumbnails[8364988] = clik.newPhoto({"id":8364988,"src":"Downpour_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364988.html","width":160,"caption":"Downpour","height":107});
															thumbnails[8364991] = clik.newPhoto({"id":8364991,"src":"IMG_0026_The_woods_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364991.html","width":160,"caption":"The woods","height":107});
															thumbnails[8364994] = clik.newPhoto({"id":8364994,"src":"IMG_0068_Mull_Hill_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364994.html","width":160,"caption":"Mull Hill","height":233});
															thumbnails[8364997] = clik.newPhoto({"id":8364997,"src":"IMG_0189_Waterfall_square_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364997.html","width":160,"caption":"Waterfall","height":160});
															thumbnails[8364998] = clik.newPhoto({"id":8364998,"src":"IMG_0189_Waterfall_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8364998.html","width":160,"caption":"Waterfall 02","height":110});
															thumbnails[8365001] = clik.newPhoto({"id":8365001,"src":"IMG_0212_Tall_Trees_0C6D795B-24E8-5EC4-4F02BDED1EAB3841_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365001.html","width":160,"caption":"Trees","height":235});
															thumbnails[8365002] = clik.newPhoto({"id":8365002,"src":"IMG_0320_Trannquility_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365002.html","width":160,"caption":"Tranquility","height":96});
															thumbnails[8365004] = clik.newPhoto({"id":8365004,"src":"IMG_1549_St_Michaels_chapel_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365004.html","width":160,"caption":"St Michaels chapel","height":105});
															thumbnails[8365005] = clik.newPhoto({"id":8365005,"src":"IMG_2153_Loch_Roag_Isle_of_Lewis_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365005.html","width":160,"caption":"Loch Roag","height":72});
															thumbnails[8365007] = clik.newPhoto({"id":8365007,"src":"IMG_2154_Loch_Roag_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365007.html","width":160,"caption":"Loch Roag 02","height":107});
															thumbnails[8365008] = clik.newPhoto({"id":8365008,"src":"IMG_2411_Waterfall_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365008.html","width":160,"caption":"Waterfall 03","height":232});
															thumbnails[8365009] = clik.newPhoto({"id":8365009,"src":"IMG_4669_Meayll_Circle_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365009.html","width":160,"caption":"Meayll Circle","height":102});
															thumbnails[8365010] = clik.newPhoto({"id":8365010,"src":"IMG_5313_Cornaa_valley_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365010.html","width":160,"caption":"Cornaa Valley","height":236});
															thumbnails[8365011] = clik.newPhoto({"id":8365011,"src":"IMG_5323_Hay_bales_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365011.html","width":160,"caption":"Hay Bales","height":107});
															thumbnails[8365012] = clik.newPhoto({"id":8365012,"src":"IMG_5329_shoreline_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365012.html","width":160,"caption":"Shoreline","height":107});
															thumbnails[8365013] = clik.newPhoto({"id":8365013,"src":"IMG_5356_The_Beach_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365013.html","width":160,"caption":"The beach","height":88});
															thumbnails[8365015] = clik.newPhoto({"id":8365015,"src":"IMG_5815_Queens_Pier_Ramsey_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365015.html","width":160,"caption":"Queens Pier","height":96});
															thumbnails[8365016] = clik.newPhoto({"id":8365016,"src":"IMG_5983_sunset_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365016.html","width":160,"caption":"Sunset","height":221});
															thumbnails[8365018] = clik.newPhoto({"id":8365018,"src":"IMG_6005_Fenella_Beach_1_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365018.html","width":160,"caption":"Fenella beach 1","height":203});
															thumbnails[8365030] = clik.newPhoto({"id":8365030,"src":"IMG_6919_The_storm_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365030.html","width":160,"caption":"The Storm","height":82});
															thumbnails[8365031] = clik.newPhoto({"id":8365031,"src":"pebble_beach_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_8365031.html","width":160,"caption":"Pebble beach","height":56});
															thumbnails[8976974] = clik.newPhoto({"id":8976974,"src":"Maughold_Lighthouse_2_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8976974.html","width":160,"caption":"Maughold Lighthouse 2","height":112});
															thumbnails[8977029] = clik.newPhoto({"id":8977029,"src":"IMG_4511_Jurby_Beach_edited_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8977029.html","width":160,"caption":"Jurby  Beach","height":106});
															thumbnails[8977113] = clik.newPhoto({"id":8977113,"src":"IMG_7174_Rhenass_Falls_Glen_Helen_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_8977113.html","width":160,"caption":"Rhenass Falls Glen Helen","height":107});
															thumbnails[8977115] = clik.newPhoto({"id":8977115,"src":"IMG_7179_Rhenass_Fall_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_8977115.html","width":160,"caption":"Rhenass Falls 2","height":240});
															thumbnails[8977124] = clik.newPhoto({"id":8977124,"src":"Ballaglass_Falls_October_20121_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_8977124.html","width":160,"caption":"Ballaglass Falls 2","height":113});
															thumbnails[8977128] = clik.newPhoto({"id":8977128,"src":"Front_Cover__Jan_20131_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_8977128.html","width":160,"caption":"Queens Pier Ramsey","height":113});
															thumbnails[9084262] = clik.newPhoto({"id":9084262,"src":"IMG_8130_Rocky_Shore_3_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_9084262.html","width":160,"caption":"Rocky Shore 3","height":240});
															thumbnails[9084263] = clik.newPhoto({"id":9084263,"src":"IMG_8130_Rocky_Shore_3_BW_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_9084263.html","width":160,"caption":"Rocky Shore 3","height":240});
															thumbnails[9084267] = clik.newPhoto({"id":9084267,"src":"IMG_8128_Rocky_Shore_2_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_9084267.html","width":160,"caption":"Rocky Shore 2","height":240});
															thumbnails[9084269] = clik.newPhoto({"id":9084269,"src":"IMG_8126_Rocky_Shore_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_9084269.html","width":160,"caption":"Rocky Shore","height":107});
															thumbnails[9084271] = clik.newPhoto({"id":9084271,"src":"IMG_8126_Rocky_shore_BW_thumb.jpg","galleries_id":221720,"server_id":1,"link":"photo_9084271.html","width":160,"caption":"Rocky Shore","height":107});
															thumbnails[9084272] = clik.newPhoto({"id":9084272,"src":"IMG_8119_Standing_Stone_thumb.jpg","galleries_id":294536,"server_id":1,"link":"photo_9084272.html","width":160,"caption":"Standing Stone","height":180});
															thumbnails[9084333] = clik.newPhoto({"id":9084333,"src":"IMG_8139_Blue_Water_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_9084333.html","width":160,"caption":"Blue Water","height":65});
															thumbnails[9084335] = clik.newPhoto({"id":9084335,"src":"IMG_8141_Groyne_thumb.jpg","galleries_id":295203,"server_id":1,"link":"photo_9084335.html","width":160,"caption":"Groyne","height":99});
															thumbnails[7149902] = clik.newPhoto({"id":7149902,"src":"Adolescent_Male_Lions_AD80A624-24E8-5EC4-4FBF23CF776F615E_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149902.html","width":130,"caption":"Adolescent Male Lions (22)","height":71});
															thumbnails[7149948] = clik.newPhoto({"id":7149948,"src":"Arctic_tern_in_flight_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149948.html","width":130,"caption":"Arctic Tern (24)","height":191});
															thumbnails[7149951] = clik.newPhoto({"id":7149951,"src":"Brown_Hare_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149951.html","width":130,"caption":"Brown Hare (24)","height":96});
															thumbnails[7149952] = clik.newPhoto({"id":7149952,"src":"Childs_play_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149952.html","width":130,"caption":"Child's Play (23)","height":104});
															thumbnails[7149953] = clik.newPhoto({"id":7149953,"src":"Lighthouse_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149953.html","width":130,"caption":"Lighthouse (22)","height":187});
															thumbnails[7149955] = clik.newPhoto({"id":7149955,"src":"Racer_Number_2_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149955.html","width":130,"caption":"Racer No2 (23)","height":85});
															thumbnails[7149957] = clik.newPhoto({"id":7149957,"src":"Receeding_tide_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149957.html","width":130,"caption":"Receding Tide (21)","height":97});
															thumbnails[7149959] = clik.newPhoto({"id":7149959,"src":"Silhouette_cropped_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149959.html","width":130,"caption":"Silhouette (16)","height":101});
															thumbnails[7149961] = clik.newPhoto({"id":7149961,"src":"The_Lineout_Lift_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149961.html","width":130,"caption":"The Lineout Lift (25)","height":173});
															thumbnails[7149963] = clik.newPhoto({"id":7149963,"src":"Waterfall_thumb.jpg","galleries_id":386459,"server_id":1,"link":"photo_7149963.html","width":130,"caption":"Waterfall (20)","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[295203] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Coast","link":"gallery_295203.html","maxRecords":0.0,"photoIDs":[5621278.0,5621282.0,5621284.0,5621383.0,5621410.0,5621430.0,5621489.0,5621506.0,5621583.0,5621762.0,5793373.0,5793376.0,5819692.0,5819816.0,6520083.0,7334163.0,7404618.0,7404624.0,7404636.0,8173739.0,8173810.0,8173856.0,8173879.0,8173908.0,8214695.0,8214700.0,8338760.0,8338812.0,8976974.0,8977029.0,8977128.0,9084262.0,9084267.0,9084269.0,9084333.0,9084335.0],"skipIndex":0,"section_code":"gallery","featured_images":"8977128,7404618,7334163","id":295203,"singleSection":false});				  						galleries[103794] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"IOM Landscapes","link":"gallery_103794.html","maxRecords":0.0,"photoIDs":[5876369.0,6260945.0,6260952.0,6260958.0,6383491.0,6383493.0,6383501.0,6383506.0,7466790.0,7466834.0,7615578.0,7615588.0,7615633.0,8173613.0,8173949.0,8174282.0,8218574.0,8338531.0,8338542.0,8338882.0],"skipIndex":0,"section_code":"gallery","featured_images":"7466790,6383491","id":103794,"singleSection":false});				  						galleries[294536] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glens","link":"gallery_294536.html","maxRecords":0.0,"photoIDs":[5621235.0,5876387.0,6520081.0,8338911.0,8338926.0,8338987.0,8977113.0,8977115.0,8977124.0,9084272.0],"skipIndex":0,"section_code":"gallery","featured_images":6520081.0,"id":294536,"singleSection":false});				  						galleries[221720] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mono Images","link":"gallery_221720.html","maxRecords":0.0,"photoIDs":[4203469.0,4441988.0,5151544.0,5153749.0,5153800.0,5621836.0,7334067.0,7334088.0,7334097.0,7381507.0,7381519.0,8364982.0,8364985.0,8364988.0,8364991.0,8364994.0,8364997.0,8364998.0,8365001.0,8365002.0,8365004.0,8365005.0,8365007.0,8365008.0,8365009.0,8365010.0,8365011.0,8365012.0,8365013.0,8365015.0,8365016.0,8365018.0,8365030.0,8365031.0,9084263.0,9084271.0],"skipIndex":0,"section_code":"gallery","featured_images":"7334067,4441988","id":221720,"singleSection":false});				  						galleries[382409] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limited Edition Prints","link":"gallery_382409.html","maxRecords":0.0,"photoIDs":[7107677.0,7107693.0,7107698.0,7107706.0,7178965.0,7178974.0,7178987.0,7178991.0,7404689.0],"skipIndex":0,"section_code":"gallery","featured_images":"7404689,7178991,7178987,7178974,7178965,7107706,7107698,7107693,7107677","id":382409,"singleSection":false});				  						galleries[103820] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Natural History","link":"gallery_103820.html","maxRecords":0.0,"photoIDs":[2112201.0,7404684.0,7404685.0],"skipIndex":0,"section_code":"gallery","featured_images":7404684.0,"id":103820,"singleSection":false});				  						galleries[308184] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"snow Scenes","link":"gallery_308184.html","maxRecords":0.0,"photoIDs":[5621347.0,5621520.0,5621820.0,5621830.0,5622226.0,5622229.0,5622233.0],"skipIndex":0,"section_code":"gallery","featured_images":5621347.0,"id":308184,"singleSection":false});				  						galleries[332043] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Calendar","link":"gallery_332043.html","maxRecords":0.0,"photoIDs":[8129309.0,8129374.0,8129376.0,8129377.0,8129403.0,8129456.0,8129487.0,8129504.0,8129506.0,8129519.0,8129552.0,8129563.0,8129586.0,8129603.0,8129605.0],"skipIndex":0,"section_code":"gallery","featured_images":8129309.0,"id":332043,"singleSection":false});				  						galleries[341191] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TT Images","link":"gallery_341191.html","maxRecords":0.0,"photoIDs":[6076316.0,6076374.0,6085694.0,6085699.0,6085742.0,6085753.0,6085754.0,6085756.0,6085760.0,6085873.0,6085877.0,7930446.0,7930478.0],"skipIndex":0,"section_code":"gallery","featured_images":"7930478,7930446,6085877,6085873,6085760,6085756,6085754,6085753,6085742,6085699","id":341191,"singleSection":false});				  						galleries[386459] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CPAGB Entries","link":"section459616.html","maxRecords":0.0,"photoIDs":[7149902.0,7149948.0,7149951.0,7149952.0,7149953.0,7149955.0,7149957.0,7149959.0,7149961.0,7149963.0],"skipIndex":0,"section_code":"section459616","featured_images":7149948.0,"id":386459,"singleSection":true});				  						galleries[308151] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photography Courses","link":"gallery_308151.html","maxRecords":0.0,"photoIDs":[5221254.0,5221628.0,5575777.0],"skipIndex":0,"section_code":"gallery","featured_images":5221628.0,"id":308151,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8977029,8174282,8173949,8173908,8173856,8173810,8173739,7615633,7466790,7404636,7404618,7334163,7149948,6520081,6383491,5819816,5621430';
imageSets[2] = '8977128,8129309,7466790,7404684,7404618,7334163,7334067,7149948,6520081,6383491,5621347,5221628,4441988';
imageSets[3] = '9084335,9084333,9084272,9084271,9084269,9084267,9084263,9084262,8977128,8977124,8977115,8977113,8977029,8976974,8365031,8365030,8365018,8365016,8365015,8365013,8365012,8365011,8365010,8365009,8365008,8365007,8365005,8365004,8365002,8365001,8364998,8364997,8364994,8364991,8364988,8364985,8364982,8338987,8338926,8338911,8338882,8338812,8338760,8338542,8338531,8218574,8214700,8214695,8174282,8173949';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/celticmoments/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/celticmoments/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 = 'Celtic Moments Photography by Diane McCudden CPAGB: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="CELTICMOMENTS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

