window.thumbnails = {};
															thumbnails[7688169] = clik.newPhoto({"id":7688169,"src":"tony_x200g_square_long_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":94,"caption":"","height":200});
															thumbnails[8960750] = clik.newPhoto({"id":8960750,"src":"zazzle_home_ats_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":141,"caption":"","height":57});
															thumbnails[9012823] = clik.newPhoto({"id":9012823,"src":"2012lg3501_anthony_t_steel_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"","height":160});
															thumbnails[1785051] = clik.newPhoto({"id":1785051,"src":"IMG_1775e_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_1785051.html","width":160,"caption":"Town Pier, Dawlish","height":111});
															thumbnails[1785126] = clik.newPhoto({"id":1785126,"src":"IMG_2444_thumb.JPG","galleries_id":131688,"server_id":1,"link":"photo_1785126.html","width":160,"caption":"Seatoller Fell","height":107});
															thumbnails[1785133] = clik.newPhoto({"id":1785133,"src":"2010ats2465a_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_1785133.html","width":160,"caption":"Slate Miner's Hut","height":107});
															thumbnails[1785139] = clik.newPhoto({"id":1785139,"src":"IMG_2505_thumb.JPG","galleries_id":131688,"server_id":1,"link":"photo_1785139.html","width":160,"caption":"Ennerdale Water","height":107});
															thumbnails[1785143] = clik.newPhoto({"id":1785143,"src":"IMG_2562t_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_1785143.html","width":160,"caption":"Ulverston","height":107});
															thumbnails[1785145] = clik.newPhoto({"id":1785145,"src":"IMG_1382te_evening_west_shore_barbados_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_1785145.html","width":160,"caption":"Bajan Sunset","height":107});
															thumbnails[1785147] = clik.newPhoto({"id":1785147,"src":"IMG_1438te_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_1785147.html","width":160,"caption":"Homeward Bound","height":107});
															thumbnails[1959837] = clik.newPhoto({"id":1959837,"src":"IMG_4001te_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_1959837.html","width":160,"caption":"Dawlish Storm","height":107});
															thumbnails[1959920] = clik.newPhoto({"id":1959920,"src":"IMG_2132tt_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_1959920.html","width":160,"caption":"Summer Express","height":107});
															thumbnails[1959925] = clik.newPhoto({"id":1959925,"src":"2008ats3474a_diesel_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_1959925.html","width":160,"caption":"Class 37","height":108});
															thumbnails[1959985] = clik.newPhoto({"id":1959985,"src":"IMG_3409te_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_1959985.html","width":160,"caption":"Starcross Pier","height":107});
															thumbnails[1960018] = clik.newPhoto({"id":1960018,"src":"IMG_0872te_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_1960018.html","width":160,"caption":"Iolande","height":107});
															thumbnails[2016706] = clik.newPhoto({"id":2016706,"src":"IMG_3335te_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_2016706.html","width":160,"caption":"Bark","height":240});
															thumbnails[2023811] = clik.newPhoto({"id":2023811,"src":"PRT_4195_2_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_2023811.html","width":160,"caption":"Pebbles","height":107});
															thumbnails[2125697] = clik.newPhoto({"id":2125697,"src":"2008ats4661a_train_waves_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_2125697.html","width":160,"caption":"Braving waves","height":107});
															thumbnails[2125699] = clik.newPhoto({"id":2125699,"src":"2008ats4669a_train_waves_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_2125699.html","width":160,"caption":"Virgin Voyager ","height":237});
															thumbnails[2125727] = clik.newPhoto({"id":2125727,"src":"PRT_4437_sennan_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2125727.html","width":160,"caption":"Lobster Pots ","height":107});
															thumbnails[2125744] = clik.newPhoto({"id":2125744,"src":"PRT_4473_mousehole_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2125744.html","width":160,"caption":"Mousehole","height":107});
															thumbnails[2126239] = clik.newPhoto({"id":2126239,"src":"CLIC_4569_8x10_fishing_equipment_sennan_harbour_wall_cornwall_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2126239.html","width":130,"caption":"Sennan Harbour Wall","height":104});
															thumbnails[2190710] = clik.newPhoto({"id":2190710,"src":"IMG_0870e_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2190710.html","width":160,"caption":"Brixham Harbour","height":107});
															thumbnails[2253135] = clik.newPhoto({"id":2253135,"src":"PRT_4945_dartmoor_pony_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_2253135.html","width":160,"caption":"Dartmoor pony","height":107});
															thumbnails[2630491] = clik.newPhoto({"id":2630491,"src":"PRT_6727tt_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2630491.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[2630504] = clik.newPhoto({"id":2630504,"src":"PRT_6823tt_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2630504.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[2630510] = clik.newPhoto({"id":2630510,"src":"PRT_6856_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2630510.html","width":160,"caption":"Heart formation","height":107});
															thumbnails[2630518] = clik.newPhoto({"id":2630518,"src":"PRT_6866t_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2630518.html","width":160,"caption":"Heading home","height":107});
															thumbnails[2630526] = clik.newPhoto({"id":2630526,"src":"PRT_6873t_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2630526.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[2630529] = clik.newPhoto({"id":2630529,"src":"PRT_6877t_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2630529.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[2655613] = clik.newPhoto({"id":2655613,"src":"PRT_6688tt_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_2655613.html","width":160,"caption":"The Red Arrows","height":117});
															thumbnails[2875030] = clik.newPhoto({"id":2875030,"src":"PRT_7403_t_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_2875030.html","width":160,"caption":"Tangmere ","height":107});
															thumbnails[2898260] = clik.newPhoto({"id":2898260,"src":"2010ats7328a_tired_topsham_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2898260.html","width":160,"caption":"Tired old boat","height":107});
															thumbnails[2898262] = clik.newPhoto({"id":2898262,"src":"PRT_7369_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_2898262.html","width":160,"caption":"Washday blues ","height":107});
															thumbnails[2903610] = clik.newPhoto({"id":2903610,"src":"PRT_7583_t_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2903610.html","width":160,"caption":"Exmouth Marina","height":107});
															thumbnails[2903611] = clik.newPhoto({"id":2903611,"src":"PRT_7565_t_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_2903611.html","width":160,"caption":"Fishing and Sailing","height":107});
															thumbnails[2903615] = clik.newPhoto({"id":2903615,"src":"PRT_7553_8x10_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_2903615.html","width":160,"caption":"Crane ","height":128});
															thumbnails[3180891] = clik.newPhoto({"id":3180891,"src":"PRT_7945_5x7_bw_torbay_express_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_3180891.html","width":160,"caption":"King Edward I, Loco 6024","height":114});
															thumbnails[3180892] = clik.newPhoto({"id":3180892,"src":"PRT_7945_torbay_express_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_3180892.html","width":160,"caption":"Torbay Express","height":107});
															thumbnails[3180893] = clik.newPhoto({"id":3180893,"src":"PRT_7946_torbay_express_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_3180893.html","width":160,"caption":"King Class 6024","height":107});
															thumbnails[3510694] = clik.newPhoto({"id":3510694,"src":"2009atsScot1036_the_old_forest_12x8_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3510694.html","width":160,"caption":"The old tree","height":240});
															thumbnails[3510699] = clik.newPhoto({"id":3510699,"src":"IMG_3464e_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_3510699.html","width":160,"caption":"Reeds ","height":107});
															thumbnails[3510717] = clik.newPhoto({"id":3510717,"src":"2009atsScot2048_loch_etive_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3510717.html","width":160,"caption":"Loch Etive 2","height":107});
															thumbnails[3510721] = clik.newPhoto({"id":3510721,"src":"2009atsScot6063_suilven_thumb.JPG","galleries_id":214721,"server_id":1,"link":"photo_3510721.html","width":160,"caption":"Suilven, Assynt","height":107});
															thumbnails[3513670] = clik.newPhoto({"id":3513670,"src":"2009atsScot1001_glen_coe_thumb.JPG","galleries_id":214721,"server_id":1,"link":"photo_3513670.html","width":160,"caption":"Glen Coe ","height":107});
															thumbnails[3513771] = clik.newPhoto({"id":3513771,"src":"2009atsScot5008_loch_morlich_stones_16x24_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_3513771.html","width":160,"caption":"Stones ","height":107});
															thumbnails[3513809] = clik.newPhoto({"id":3513809,"src":"2009ats1001a_ulverston_canal_lock_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_3513809.html","width":160,"caption":"Ulverston canal","height":109});
															thumbnails[3513865] = clik.newPhoto({"id":3513865,"src":"2009atsScot4026_oban_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3513865.html","width":160,"caption":"Sunset over Oban ","height":107});
															thumbnails[3534414] = clik.newPhoto({"id":3534414,"src":"2009atsScot9079_engine_to_aviemore_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3534414.html","width":160,"caption":"Winter journey","height":107});
															thumbnails[3534417] = clik.newPhoto({"id":3534417,"src":"2009atsScot9012_stream_and_snow_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3534417.html","width":160,"caption":"Snowy glen","height":107});
															thumbnails[3534422] = clik.newPhoto({"id":3534422,"src":"PRT_7945_bw_torbay_express_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_3534422.html","width":160,"caption":"King Edward 1","height":107});
															thumbnails[3534430] = clik.newPhoto({"id":3534430,"src":"2009atsScot5008_loch_morlich_stones_bw_16x24_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_3534430.html","width":160,"caption":"Stones and water","height":107});
															thumbnails[3541001] = clik.newPhoto({"id":3541001,"src":"2009atsScot2005_glen_etive_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541001.html","width":160,"caption":"Glen Etive","height":107});
															thumbnails[3541002] = clik.newPhoto({"id":3541002,"src":"2009atsScot2051_loch_etive_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541002.html","width":160,"caption":"Loch Etive 1","height":108});
															thumbnails[3541003] = clik.newPhoto({"id":3541003,"src":"2009atsScot6055_assynt_beach_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541003.html","width":160,"caption":"Garvie Bay","height":107});
															thumbnails[3541004] = clik.newPhoto({"id":3541004,"src":"2009atsScot6045_assynt_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541004.html","width":160,"caption":"Ben Mor Coigach","height":107});
															thumbnails[3541005] = clik.newPhoto({"id":3541005,"src":"2009atsScot6077_suilven_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541005.html","width":160,"caption":"Suilven ","height":107});
															thumbnails[3541006] = clik.newPhoto({"id":3541006,"src":"2009atsScot6090_achnahaird_bay_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541006.html","width":160,"caption":"Achinaird Bay","height":108});
															thumbnails[3541012] = clik.newPhoto({"id":3541012,"src":"2009atsScot8034_beach_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541012.html","width":160,"caption":"Cove near Alltan'abrahan","height":109});
															thumbnails[3541013] = clik.newPhoto({"id":3541013,"src":"2009atsScot9009_loch_achall_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3541013.html","width":160,"caption":"Loch Achall","height":107});
															thumbnails[3579022] = clik.newPhoto({"id":3579022,"src":"2009atsScot3019_ben_nevis_16x24_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3579022.html","width":160,"caption":"The Ben","height":107});
															thumbnails[3639424] = clik.newPhoto({"id":3639424,"src":"IMG_1675te_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_3639424.html","width":160,"caption":"Fireworks at the Oval","height":107});
															thumbnails[3639429] = clik.newPhoto({"id":3639429,"src":"2009atsScot1038_logs_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_3639429.html","width":160,"caption":"Logs","height":107});
															thumbnails[3643486] = clik.newPhoto({"id":3643486,"src":"PRT_6868tt_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_3643486.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[3643491] = clik.newPhoto({"id":3643491,"src":"IMG_1127_thumb.JPG","galleries_id":382084,"server_id":1,"link":"photo_3643491.html","width":160,"caption":"The Hilton Beach","height":107});
															thumbnails[3643492] = clik.newPhoto({"id":3643492,"src":"IMG_1505tee_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_3643492.html","width":160,"caption":"Wild north shore","height":107});
															thumbnails[3643502] = clik.newPhoto({"id":3643502,"src":"IMG_3106te_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_3643502.html","width":160,"caption":"Ropes","height":107});
															thumbnails[3643518] = clik.newPhoto({"id":3643518,"src":"PRT_7606_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_3643518.html","width":160,"caption":"Life Saver","height":107});
															thumbnails[3841583] = clik.newPhoto({"id":3841583,"src":"2009atsScot7003_black_highland_cow_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_3841583.html","width":160,"caption":"Black highland cow","height":107});
															thumbnails[5091204] = clik.newPhoto({"id":5091204,"src":"PRT_09_0230_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091204.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[5091239] = clik.newPhoto({"id":5091239,"src":"PRT_09_0236_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091239.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[5091241] = clik.newPhoto({"id":5091241,"src":"PRT_09_0261_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091241.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[5091245] = clik.newPhoto({"id":5091245,"src":"PRT_09_0298_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091245.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[5091298] = clik.newPhoto({"id":5091298,"src":"PRT_09_0330_8x12_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091298.html","width":160,"caption":"The Vulcan and Red Arrows","height":107});
															thumbnails[5091301] = clik.newPhoto({"id":5091301,"src":"PRT_09_0352_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091301.html","width":160,"caption":"The Vulcan and Red Arrows","height":107});
															thumbnails[5091304] = clik.newPhoto({"id":5091304,"src":"PRT_09_0353_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091304.html","width":160,"caption":"The Vulcan and Red Arrows","height":107});
															thumbnails[5091351] = clik.newPhoto({"id":5091351,"src":"PRT_09_0357_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091351.html","width":160,"caption":"The Vulcan and Red Arrows","height":107});
															thumbnails[5091354] = clik.newPhoto({"id":5091354,"src":"PRT_09_0384_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5091354.html","width":160,"caption":"Avro Vulcan","height":107});
															thumbnails[5603466] = clik.newPhoto({"id":5603466,"src":"2009atsScot2058a_bike__hut_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_5603466.html","width":160,"caption":"The old bike","height":107});
															thumbnails[5603505] = clik.newPhoto({"id":5603505,"src":"PRT_6386tt_thumb.jpg","galleries_id":199481,"server_id":1,"link":"photo_5603505.html","width":160,"caption":"Royal Jordanian Falcons","height":107});
															thumbnails[5603844] = clik.newPhoto({"id":5603844,"src":"IMG_3711bw_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_5603844.html","width":160,"caption":"Crashing wave","height":107});
															thumbnails[5603861] = clik.newPhoto({"id":5603861,"src":"IMG_3715tbw_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_5603861.html","width":160,"caption":"Dawlish Pier","height":107});
															thumbnails[5605071] = clik.newPhoto({"id":5605071,"src":"2007ats1388a_barbados_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_5605071.html","width":160,"caption":"Chillin at the One Love Bar","height":107});
															thumbnails[5605078] = clik.newPhoto({"id":5605078,"src":"2007ats1411a_barbados_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_5605078.html","width":160,"caption":"Good friends","height":111});
															thumbnails[5605815] = clik.newPhoto({"id":5605815,"src":"2009atsScot7012_stac_pollaidh_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_5605815.html","width":160,"caption":"Stac Pollaidh","height":107});
															thumbnails[5608434] = clik.newPhoto({"id":5608434,"src":"PRT_0174_thumb.jpg","galleries_id":165649,"server_id":1,"link":"photo_5608434.html","width":160,"caption":"Tornado","height":108});
															thumbnails[5644536] = clik.newPhoto({"id":5644536,"src":"2010ats0976A_exeter_marina_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_5644536.html","width":160,"caption":"Exeter Quays","height":107});
															thumbnails[5672010] = clik.newPhoto({"id":5672010,"src":"2006ats018a_brixham_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_5672010.html","width":160,"caption":"Brixham harbour","height":107});
															thumbnails[5672810] = clik.newPhoto({"id":5672810,"src":"2007ats2355a_howgills_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_5672810.html","width":160,"caption":"The Howgills","height":108});
															thumbnails[5672823] = clik.newPhoto({"id":5672823,"src":"2007ats2320a_morland_mill_race_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_5672823.html","width":160,"caption":"Old mill race","height":111});
															thumbnails[7057208] = clik.newPhoto({"id":7057208,"src":"PRT_7554_thumb.jpg","galleries_id":214907,"server_id":1,"link":"photo_7057208.html","width":160,"caption":"Crane","height":240});
															thumbnails[7057916] = clik.newPhoto({"id":7057916,"src":"2007ats1398a_barbados_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_7057916.html","width":160,"caption":"Karaoke Night","height":107});
															thumbnails[7128131] = clik.newPhoto({"id":7128131,"src":"2009atsScot9082_snowy_glen_978171EF-24E8-5EC4-4F395005DF306081_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_7128131.html","width":160,"caption":"Highland winter","height":107});
															thumbnails[7128144] = clik.newPhoto({"id":7128144,"src":"2009atsScot9004_snow_plough_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_7128144.html","width":160,"caption":"Leading the convoy","height":107});
															thumbnails[7129210] = clik.newPhoto({"id":7129210,"src":"2009ats9011_snow_on_hills_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_7129210.html","width":160,"caption":"Snow in Scotland","height":107});
															thumbnails[7147666] = clik.newPhoto({"id":7147666,"src":"2007ats1646te_red_dancers_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_7147666.html","width":160,"caption":"Celebration in red","height":107});
															thumbnails[7147669] = clik.newPhoto({"id":7147669,"src":"2007ats1696te_dancers_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_7147669.html","width":160,"caption":"Ghosts in the Moonlight","height":106});
															thumbnails[7147670] = clik.newPhoto({"id":7147670,"src":"2007ats1691_giant_puppet_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_7147670.html","width":160,"caption":"Puppet Master","height":107});
															thumbnails[7379874] = clik.newPhoto({"id":7379874,"src":"2009atsScot2_069_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_7379874.html","width":160,"caption":"Castle Stalker","height":107});
															thumbnails[7379948] = clik.newPhoto({"id":7379948,"src":"2009atsScot2_032_Red_deer_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_7379948.html","width":160,"caption":"Red deer in Glen Etive","height":107});
															thumbnails[7494856] = clik.newPhoto({"id":7494856,"src":"2010ats0963_18x24_old_boat_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_7494856.html","width":160,"caption":"Old, but in the pink!","height":107});
															thumbnails[7494860] = clik.newPhoto({"id":7494860,"src":"2010ats0962_18x24_bones_of_boat_thumb.jpg","galleries_id":141375,"server_id":1,"link":"photo_7494860.html","width":160,"caption":"Ribs","height":107});
															thumbnails[7878635] = clik.newPhoto({"id":7878635,"src":"2011ats2646_trafalgar_fountain_bw_big_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878635.html","width":160,"caption":"Fountains in Trafalgar Square","height":107});
															thumbnails[7878639] = clik.newPhoto({"id":7878639,"src":"2011ats2688_london_eye_bw_big_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878639.html","width":160,"caption":"The London Eye","height":107});
															thumbnails[7878642] = clik.newPhoto({"id":7878642,"src":"2011ats2689_big_ben_bw_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878642.html","width":160,"caption":"An angle on Big Ben","height":240});
															thumbnails[7878645] = clik.newPhoto({"id":7878645,"src":"2011ats2697_parliament_bw_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878645.html","width":160,"caption":"Westminster Palace and Big Ben","height":107});
															thumbnails[7878717] = clik.newPhoto({"id":7878717,"src":"2011ats2712_london_eye_bw_big_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878717.html","width":160,"caption":"Under the Eye","height":240});
															thumbnails[7878718] = clik.newPhoto({"id":7878718,"src":"2011ats2743_tower_bridge_bw_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878718.html","width":160,"caption":"Tower Bridge","height":107});
															thumbnails[7878719] = clik.newPhoto({"id":7878719,"src":"2011ats2750_city_hall_london_bw_thumb.jpg","galleries_id":199488,"server_id":1,"link":"photo_7878719.html","width":160,"caption":"City Hall, London","height":109});
															thumbnails[7878721] = clik.newPhoto({"id":7878721,"src":"2011ats2760_tower_bridge_thumb.jpg","galleries_id":425196,"server_id":1,"link":"photo_7878721.html","width":160,"caption":"Tower Bridge","height":240});
															thumbnails[7878723] = clik.newPhoto({"id":7878723,"src":"2011ats2770_thumb.jpg","galleries_id":425196,"server_id":1,"link":"photo_7878723.html","width":160,"caption":"The London Eye ","height":240});
															thumbnails[7878727] = clik.newPhoto({"id":7878727,"src":"2011ats2771_big_ben_night_thumb.jpg","galleries_id":425196,"server_id":1,"link":"photo_7878727.html","width":160,"caption":"Westminster and Big Ben","height":107});
															thumbnails[7878747] = clik.newPhoto({"id":7878747,"src":"2011ats2774_london_eye_thumb.jpg","galleries_id":425196,"server_id":1,"link":"photo_7878747.html","width":160,"caption":"The London Eye","height":240});
															thumbnails[7878758] = clik.newPhoto({"id":7878758,"src":"2011ats2789_london_eye_thumb.jpg","galleries_id":425196,"server_id":1,"link":"photo_7878758.html","width":160,"caption":"The London Eye at night","height":240});
															thumbnails[8076521] = clik.newPhoto({"id":8076521,"src":"2011lg2338-coniston_water_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_8076521.html","width":160,"caption":"Coniston Water","height":107});
															thumbnails[8197331] = clik.newPhoto({"id":8197331,"src":"2011lg2961_fishing_boats_thumb.jpg","galleries_id":476710,"server_id":1,"link":"photo_8197331.html","width":160,"caption":"Brighton Fishing Fleet","height":107});
															thumbnails[8417248] = clik.newPhoto({"id":8417248,"src":"2011ats2779_big_ben_thumb.jpg","galleries_id":425196,"server_id":1,"link":"photo_8417248.html","width":160,"caption":"Big Ben","height":240});
															thumbnails[8990105] = clik.newPhoto({"id":8990105,"src":"2009atsScot5011_loch_morlich_ducks_thumb.jpg","galleries_id":214721,"server_id":1,"link":"photo_8990105.html","width":160,"caption":"Ducks on Loch Morlich","height":107});
															thumbnails[9007024] = clik.newPhoto({"id":9007024,"src":"2007ats2497a_honister_1_thumb.jpg","galleries_id":131688,"server_id":1,"link":"photo_9007024.html","width":160,"caption":" Yew Crag Tramway, Honister Slate Mines","height":107});
															thumbnails[9016933] = clik.newPhoto({"id":9016933,"src":"2007ats1129a_barbados_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_9016933.html","width":160,"caption":"Cannon at Fort Charles","height":107});
															thumbnails[9016997] = clik.newPhoto({"id":9016997,"src":"2007ats1515_thumb.jpg","galleries_id":382084,"server_id":1,"link":"photo_9016997.html","width":160,"caption":"Cherry Tree Hill","height":109});
															thumbnails[9045045] = clik.newPhoto({"id":9045045,"src":"2011lg_2909_merry_go_round_thumb.jpg","galleries_id":476710,"server_id":1,"link":"photo_9045045.html","width":160,"caption":"Merry Go Round","height":108});
															thumbnails[9061813] = clik.newPhoto({"id":9061813,"src":"2012ats3383_dartmoor_ram_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9061813.html","width":160,"caption":"Portrait of a sheep","height":107});
															thumbnails[9049316] = clik.newPhoto({"id":9049316,"src":"2010ats1085a_fisherman_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9049316.html","width":160,"caption":"Just fishing","height":109});
															thumbnails[9049233] = clik.newPhoto({"id":9049233,"src":"2006ats174_black_swan_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9049233.html","width":160,"caption":"Dawlish Black Swan","height":119});
															thumbnails[9049194] = clik.newPhoto({"id":9049194,"src":"2011ats2411_dawlish_from_high_up_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9049194.html","width":160,"caption":"Dawlish from the Holcombe Road","height":107});
															thumbnails[9049119] = clik.newPhoto({"id":9049119,"src":"2011ats3010_paignton_beachhuts_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9049119.html","width":160,"caption":"Beach Huts","height":107});
															thumbnails[9014608] = clik.newPhoto({"id":9014608,"src":"2012ats3483_boat_cove_storm_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9014608.html","width":160,"caption":"High tide in Dawlish","height":107});
															thumbnails[9000813] = clik.newPhoto({"id":9000813,"src":"2006ats007_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_9000813.html","width":160,"caption":"Haytor Tor","height":107});
															thumbnails[8293111] = clik.newPhoto({"id":8293111,"src":"2007ats2934te_river_teign_at_shaldon_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_8293111.html","width":160,"caption":"The River Teign, South Devon","height":107});
															thumbnails[7494843] = clik.newPhoto({"id":7494843,"src":"2010ats1061a_beesands_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7494843.html","width":160,"caption":"Flying the flag","height":107});
															thumbnails[7303626] = clik.newPhoto({"id":7303626,"src":"2009ats9336_teignmouth_view_with_pier_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7303626.html","width":160,"caption":"Teignmouth ","height":107});
															thumbnails[7087346] = clik.newPhoto({"id":7087346,"src":"2007ats2662a_warren_dawn_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7087346.html","width":160,"caption":"Autumn dawn","height":107});
															thumbnails[7048374] = clik.newPhoto({"id":7048374,"src":"2010ats1932a_mamhead_1_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7048374.html","width":160,"caption":"A walk through the woods","height":107});
															thumbnails[7048358] = clik.newPhoto({"id":7048358,"src":"2010ats1970a_mamhead_1_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7048358.html","width":160,"caption":"Mamhead in autumn","height":107});
															thumbnails[7048344] = clik.newPhoto({"id":7048344,"src":"2010ats1959a_mamhead_1_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7048344.html","width":160,"caption":"A view to the River Exe","height":107});
															thumbnails[7048341] = clik.newPhoto({"id":7048341,"src":"2010ats1947a_mamhead_1_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7048341.html","width":160,"caption":"Autumn colour","height":107});
															thumbnails[7048320] = clik.newPhoto({"id":7048320,"src":"2010ats1937a_mamhead_1_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_7048320.html","width":160,"caption":"Mamhead walk","height":107});
															thumbnails[5672002] = clik.newPhoto({"id":5672002,"src":"2006ats001a_sidmouth_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5672002.html","width":160,"caption":"Sidmouth foreshore","height":107});
															thumbnails[5644537] = clik.newPhoto({"id":5644537,"src":"2010PRT0991A_cathedral_green_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5644537.html","width":160,"caption":"Cathedral Green, Exeter","height":107});
															thumbnails[5603830] = clik.newPhoto({"id":5603830,"src":"IMG_4117te_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5603830.html","width":160,"caption":"Beach Huts, Coryton Cove","height":107});
															thumbnails[5603554] = clik.newPhoto({"id":5603554,"src":"PRT_4544_minack_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5603554.html","width":160,"caption":"Minack Theatre","height":108});
															thumbnails[5603545] = clik.newPhoto({"id":5603545,"src":"IMG_2677te_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5603545.html","width":160,"caption":"Old jetty","height":107});
															thumbnails[5603534] = clik.newPhoto({"id":5603534,"src":"PRT_2689_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5603534.html","width":160,"caption":"Warren Beach","height":107});
															thumbnails[5603528] = clik.newPhoto({"id":5603528,"src":"2006ats004a_warren_to_exmouth_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_5603528.html","width":160,"caption":"Exmouth from the Warren","height":109});
															thumbnails[3666019] = clik.newPhoto({"id":3666019,"src":"PRT_5384_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_3666019.html","width":160,"caption":"The Parson and Clerk","height":108});
															thumbnails[3643513] = clik.newPhoto({"id":3643513,"src":"IMG_1949te_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_3643513.html","width":160,"caption":"Burgh Island","height":107});
															thumbnails[3643500] = clik.newPhoto({"id":3643500,"src":"PRT_058e_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_3643500.html","width":160,"caption":"Bayard's Cove, Dartmouth","height":107});
															thumbnails[3608177] = clik.newPhoto({"id":3608177,"src":"PRT_9309_shell_cove_dawlish_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_3608177.html","width":160,"caption":"Shell Cove","height":108});
															thumbnails[3604273] = clik.newPhoto({"id":3604273,"src":"PRT_9184_teignmouth_dawn_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_3604273.html","width":160,"caption":"Groyne Marker and Dawn","height":237});
															thumbnails[3590273] = clik.newPhoto({"id":3590273,"src":"PRT_9199_teignmouth_pier_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_3590273.html","width":160,"caption":"Teignmouth Pier","height":109});
															thumbnails[2908485] = clik.newPhoto({"id":2908485,"src":"PRT_7380_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2908485.html","width":160,"caption":"Exmouth Beach Huts","height":107});
															thumbnails[2271969] = clik.newPhoto({"id":2271969,"src":"PRT_2687_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2271969.html","width":160,"caption":"The Breakwater","height":107});
															thumbnails[2253127] = clik.newPhoto({"id":2253127,"src":"PRT_4916_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2253127.html","width":160,"caption":"Longaford Tor","height":107});
															thumbnails[2190699] = clik.newPhoto({"id":2190699,"src":"IMG_0871se_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2190699.html","width":160,"caption":"Brixham Harbour","height":237});
															thumbnails[2125750] = clik.newPhoto({"id":2125750,"src":"PRT_4501_mousehole_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2125750.html","width":160,"caption":"Dawn over the Lizard","height":108});
															thumbnails[2125740] = clik.newPhoto({"id":2125740,"src":"PRT_4444_mousehole_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2125740.html","width":160,"caption":"Mousehole, Cornwall","height":107});
															thumbnails[2125735] = clik.newPhoto({"id":2125735,"src":"PRT_4442_mousehole_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_2125735.html","width":160,"caption":"Mousehole","height":107});
															thumbnails[1959870] = clik.newPhoto({"id":1959870,"src":"IMG_3718te_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_1959870.html","width":160,"caption":"Stormy Dawlish","height":107});
															thumbnails[1785084] = clik.newPhoto({"id":1785084,"src":"IMG_3039te_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_1785084.html","width":160,"caption":"Under the platform","height":107});
															thumbnails[1785076] = clik.newPhoto({"id":1785076,"src":"IMG_2707t_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_1785076.html","width":160,"caption":"Into the light","height":108});
															thumbnails[1785067] = clik.newPhoto({"id":1785067,"src":"IMG_2678te_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_1785067.html","width":160,"caption":"Old posts","height":107});
															thumbnails[1785060] = clik.newPhoto({"id":1785060,"src":"IMG_2668t_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_1785060.html","width":160,"caption":"Dawn","height":108});
															thumbnails[9078241] = clik.newPhoto({"id":9078241,"src":"2010ats1029a_amarylis_thumb.jpg","galleries_id":478782,"server_id":1,"link":"photo_9078241.html","width":160,"caption":"Red Amaryllis","height":107});
															thumbnails[1785058] = clik.newPhoto({"id":1785058,"src":"IMG_2666t_thumb.jpg","galleries_id":199491,"server_id":1,"link":"photo_1785058.html","width":160,"caption":"Sunrise from Warren Beach","height":107});
															thumbnails[2607457] = clik.newPhoto({"id":2607457,"src":"IMG_5820_thumb.JPG","galleries_id":478782,"server_id":1,"link":"photo_2607457.html","width":160,"caption":"Cactus Dahlia","height":107});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[476710] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brighton","link":"section454015_476710.html","maxRecords":0.0,"photoIDs":[8197331.0,9045045.0],"skipIndex":0,"section_code":"section454015","featured_images":9045045.0,"id":476710,"singleSection":false});				  						galleries[478782] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"section454015_478782.html","maxRecords":0.0,"photoIDs":[9078241.0,2607457.0],"skipIndex":0,"section_code":"section454015","featured_images":9078241.0,"id":478782,"singleSection":false});				  						galleries[382084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Barbados","link":"section454015_382084.html","maxRecords":0.0,"photoIDs":[1785145.0,1785147.0,3643491.0,3643492.0,5605071.0,5605078.0,7057916.0,7147666.0,7147669.0,7147670.0,9016933.0,9016997.0],"skipIndex":0,"section_code":"section454015","featured_images":"9016997,9016933,7147670,7147669,7147666,7057916,5605078,5605071,3643492,3643491","id":382084,"singleSection":false});				  						galleries[141375] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Boats and harbours","link":"section454015_141375.html","maxRecords":0.0,"photoIDs":[1959985.0,1960018.0,2125727.0,2125744.0,2126239.0,2190710.0,2898260.0,2903610.0,2903611.0,3643518.0,5644536.0,5672010.0,7494856.0,7494860.0],"skipIndex":0,"section_code":"section454015","featured_images":5644536.0,"id":141375,"singleSection":false});				  						galleries[199488] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and white","link":"section454015_199488.html","maxRecords":0.0,"photoIDs":[1785051.0,3180891.0,3534430.0,5603844.0,5603861.0,7878635.0,7878639.0,7878642.0,7878645.0,7878717.0,7878718.0,7878719.0],"skipIndex":0,"section_code":"section454015","featured_images":"7878639,1785051","id":199488,"singleSection":false});				  						galleries[131688] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cumbria & the Lake District","link":"section454015_131688.html","maxRecords":0.0,"photoIDs":[1785126.0,1785133.0,1785139.0,1785143.0,3513809.0,5672810.0,5672823.0,8076521.0,9007024.0],"skipIndex":0,"section_code":"section454015","featured_images":1785139.0,"id":131688,"singleSection":false});				  						galleries[199481] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dawlish Airshow","link":"section454015_199481.html","maxRecords":0.0,"photoIDs":[2630491.0,2630504.0,2630510.0,2630518.0,2630526.0,2630529.0,2655613.0,3643486.0,5091204.0,5091239.0,5091241.0,5091245.0,5091298.0,5091301.0,5091304.0,5091351.0,5091354.0,5603505.0],"skipIndex":0,"section_code":"section454015","featured_images":5091241.0,"id":199481,"singleSection":false});				  						galleries[165649] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Classic Steam and Diesels","link":"section454015_165649.html","maxRecords":0.0,"photoIDs":[1959837.0,1959920.0,1959925.0,2125697.0,2125699.0,2875030.0,3180892.0,3180893.0,3534422.0,5608434.0],"skipIndex":0,"section_code":"section454015","featured_images":3180893.0,"id":165649,"singleSection":false});				  						galleries[199491] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Devon & Cornwall","link":"section454015_199491.html","maxRecords":0.0,"photoIDs":[9061813.0,9049316.0,9049233.0,9049194.0,9049119.0,9014608.0,9000813.0,8293111.0,7494843.0,7303626.0,7087346.0,7048374.0,7048358.0,7048344.0,7048341.0,7048320.0,5672002.0,5644537.0,5603830.0,5603554.0,5603545.0,5603534.0,5603528.0,3666019.0,3643513.0,3643500.0,3608177.0,3604273.0,3590273.0,2908485.0,2271969.0,2253127.0,2190699.0,2125750.0,2125740.0,2125735.0,1959870.0,1785084.0,1785076.0,1785067.0,1785060.0,1785058.0],"skipIndex":0,"section_code":"section454015","featured_images":"3590273,2125735,1785058","id":199491,"singleSection":false});				  						galleries[425196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"section454015_425196.html","maxRecords":0.0,"photoIDs":[7878721.0,7878723.0,7878727.0,7878747.0,7878758.0,8417248.0],"skipIndex":0,"section_code":"section454015","featured_images":7878727.0,"id":425196,"singleSection":false});				  						galleries[214907] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellany","link":"section454015_214907.html","maxRecords":0.0,"photoIDs":[2016706.0,2023811.0,2253135.0,2898262.0,2903615.0,3510699.0,3513771.0,3639424.0,3639429.0,3643502.0,7057208.0],"skipIndex":0,"section_code":"section454015","featured_images":3643502.0,"id":214907,"singleSection":false});				  						galleries[214721] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"section454015_214721.html","maxRecords":0.0,"photoIDs":[3510694.0,3510717.0,3510721.0,3513670.0,3513865.0,3534414.0,3534417.0,3541001.0,3541002.0,3541003.0,3541004.0,3541005.0,3541006.0,3541012.0,3541013.0,3579022.0,3841583.0,5603466.0,5605815.0,7128131.0,7128144.0,7129210.0,7379874.0,7379948.0,8990105.0],"skipIndex":0,"section_code":"section454015","featured_images":3510717.0,"id":214721,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[234854] = '3513809,1785139';
imageSets[1] = '9045045,7878727,3510717,9049316,9000813,9078241';
imageSets[2] = '9045045,7878727,7878639,5644536,5091241,3643502,3510717,3180893,1785139,1785051,3590273,2125735,9078241,1785058';
imageSets[3] = '7048341';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/tonysteel/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/tonysteel/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 += 'section454015.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 && 'section454015' != '') {
					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 = 'Anthony T Steel Landscape Photographer: ' + 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> </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> </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> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="lesleygoodhind@btinternet.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="lesleygoodhind@btinternet.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

