window.thumbnails = {};
															thumbnails[7526271] = clik.newPhoto({"id":7526271,"src":"2010ats0963_18x24_old_boat_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Old boat","height":107});
															thumbnails[7526309] = clik.newPhoto({"id":7526309,"src":"2009atsScot2048_loch_etive_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Loch Etive","height":107});
															thumbnails[7526312] = clik.newPhoto({"id":7526312,"src":"2007ats2355a_howgills_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"The Howgills, Cumbria","height":108});
															thumbnails[7526317] = clik.newPhoto({"id":7526317,"src":"2009ats1001a_ulverston_canal_lock_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Ulverston Canal Lock","height":109});
															thumbnails[7526320] = clik.newPhoto({"id":7526320,"src":"2007ats1388a_barbados_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Chillin - One Love Bar","height":107});
															thumbnails[7526327] = clik.newPhoto({"id":7526327,"src":"2010ats2465a_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Old minor's hut","height":107});
															thumbnails[8188438] = clik.newPhoto({"id":8188438,"src":"P1010611_well_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8188439] = clik.newPhoto({"id":8188439,"src":"P1010660-donkey1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8188441] = clik.newPhoto({"id":8188441,"src":"P1010670_charity_stall_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8218273] = clik.newPhoto({"id":8218273,"src":"P1010609_frogs_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8856827] = clik.newPhoto({"id":8856827,"src":"P1020606_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Christmas in the duck enclosure","height":120});
															thumbnails[9012913] = clik.newPhoto({"id":9012913,"src":"2012lg3501_anthony_t_steel_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":160});
															thumbnails[8856795] = clik.newPhoto({"id":8856795,"src":"P1020604_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Dawlish seawall in Winter","height":120});
															thumbnails[8856786] = clik.newPhoto({"id":8856786,"src":"2011_P1020598_dawlish_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Winter sunshine, Dawlish Coast","height":120});
															thumbnails[8856790] = clik.newPhoto({"id":8856790,"src":"P1020565_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Dawlish seawall in Winter","height":121});
															thumbnails[8856787] = clik.newPhoto({"id":8856787,"src":"2011ats3258_dawlish_boat_cove_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Fishing boats at Boat Cove, Dawlish","height":107});
															thumbnails[8856792] = clik.newPhoto({"id":8856792,"src":"P1020573_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"Dawlish seawall in Winter","height":120});
															thumbnails[8921487] = clik.newPhoto({"id":8921487,"src":"P1020691_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":120});
															thumbnails[8921507] = clik.newPhoto({"id":8921507,"src":"P1020693_dawlish_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":160,"caption":"","height":120});
															thumbnails[8300033] = clik.newPhoto({"id":8300033,"src":"2011_dawlish_carnival_taiko_drummers_1_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8300033.html","width":160,"caption":"Taiko Drummers","height":107});
															thumbnails[8301165] = clik.newPhoto({"id":8301165,"src":"2011_dawlish_carnival_taiko_drummers_2_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301165.html","width":160,"caption":"Taiko Drummers","height":107});
															thumbnails[8301167] = clik.newPhoto({"id":8301167,"src":"dawlish_carnival_2011_bowling_1_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301167.html","width":160,"caption":"Bowling Competition","height":107});
															thumbnails[8301169] = clik.newPhoto({"id":8301169,"src":"dawlish_carnival_2011_bowling_2_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301169.html","width":160,"caption":"Bowling Competition","height":107});
															thumbnails[8301170] = clik.newPhoto({"id":8301170,"src":"dawlish_carnival_2011_marching_band_1_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301170.html","width":160,"caption":"Cadet Marching Band","height":107});
															thumbnails[8301171] = clik.newPhoto({"id":8301171,"src":"dawlish_carnival_2011_marching_band_2_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301171.html","width":160,"caption":"Cadet Marching Band","height":240});
															thumbnails[8301172] = clik.newPhoto({"id":8301172,"src":"dawlish_carnival_2011_red_sparrows_5_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301172.html","width":160,"caption":"The badge of the Red Sparrows","height":107});
															thumbnails[8301174] = clik.newPhoto({"id":8301174,"src":"dawlish_carnival_2011_red_sparrows_1_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301174.html","width":160,"caption":"The Red Sparrows","height":107});
															thumbnails[8301176] = clik.newPhoto({"id":8301176,"src":"dawlish_carnival_2011_red_sparrows_2_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301176.html","width":160,"caption":"The Red Sparrows","height":107});
															thumbnails[8301178] = clik.newPhoto({"id":8301178,"src":"dawlish_carnival_2011_red_sparrows_4_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301178.html","width":160,"caption":"Red Sparrows in action","height":107});
															thumbnails[8301179] = clik.newPhoto({"id":8301179,"src":"dawlish_carnival_2011_red_sparrows_3_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301179.html","width":160,"caption":"Dawlish Carnival, The Red Sparrows","height":107});
															thumbnails[8301181] = clik.newPhoto({"id":8301181,"src":"dawlish_carnival_2011_rowlands_fair_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301181.html","width":160,"caption":"Rowlands Fairground Ride","height":107});
															thumbnails[8301183] = clik.newPhoto({"id":8301183,"src":"dawlish_carnival_digeridoo_player_thumb.jpg","galleries_id":441557,"server_id":5,"link":"photo_8301183.html","width":160,"caption":"Didgeridoo Dave","height":240});
															thumbnails[8888739] = clik.newPhoto({"id":8888739,"src":"MKT_0008_thumb.jpg","galleries_id":467455,"server_id":5,"link":"photo_8888739.html","width":160,"caption":"Dawlish Operatic Society Singers","height":120});
															thumbnails[8888716] = clik.newPhoto({"id":8888716,"src":"MKT_0005_thumb.jpg","galleries_id":467455,"server_id":5,"link":"photo_8888716.html","width":160,"caption":"The Little Hussar","height":120});
															thumbnails[8888694] = clik.newPhoto({"id":8888694,"src":"MKT_0004_thumb.jpg","galleries_id":467455,"server_id":5,"link":"photo_8888694.html","width":160,"caption":"The Cherry Tree","height":120});
															thumbnails[8888680] = clik.newPhoto({"id":8888680,"src":"MKT_0003_thumb.jpg","galleries_id":467455,"server_id":5,"link":"photo_8888680.html","width":160,"caption":"Christmassy wreaths ","height":120});
															thumbnails[8888720] = clik.newPhoto({"id":8888720,"src":"MKT_0007_thumb.jpg","galleries_id":467455,"server_id":5,"link":"photo_8888720.html","width":160,"caption":"Misletoe for sale","height":120});
															thumbnails[8888718] = clik.newPhoto({"id":8888718,"src":"MKT_0006_thumb.jpg","galleries_id":467455,"server_id":5,"link":"photo_8888718.html","width":160,"caption":"Colourful glass ","height":120});
															thumbnails[8321020] = clik.newPhoto({"id":8321020,"src":"2011ats3077_blades_1_800_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_8321020.html","width":160,"caption":"Blades, Dawlish Airshow 2011","height":107});
															thumbnails[8321021] = clik.newPhoto({"id":8321021,"src":"2011ats3138_airshow_1_800_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_8321021.html","width":160,"caption":"Dawlish Airshow 2011","height":107});
															thumbnails[4592483] = clik.newPhoto({"id":4592483,"src":"2009ats0298_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4592483.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[4592480] = clik.newPhoto({"id":4592480,"src":"2009ats0236_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4592480.html","width":160,"caption":"Perfection!","height":107});
															thumbnails[4584718] = clik.newPhoto({"id":4584718,"src":"2009ats0230_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4584718.html","width":160,"caption":"Red Arrows in formation over Dawlish","height":107});
															thumbnails[4584711] = clik.newPhoto({"id":4584711,"src":"2009ats0261_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4584711.html","width":160,"caption":"The Red Arrows","height":107});
															thumbnails[4578043] = clik.newPhoto({"id":4578043,"src":"2009ats0384_vulcan_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4578043.html","width":160,"caption":"Vulcan, Dawlish Airshow 2009","height":107});
															thumbnails[4555679] = clik.newPhoto({"id":4555679,"src":"2009ats0357_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4555679.html","width":160,"caption":"Avro Vulcan (G-VLCN) - Vulcan to the Sky Trust","height":107});
															thumbnails[4555674] = clik.newPhoto({"id":4555674,"src":"2009ats0352_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4555674.html","width":160,"caption":"Avro Vulcan, Dawlish Airshow, Devon 2009","height":107});
															thumbnails[4555676] = clik.newPhoto({"id":4555676,"src":"2009ats0353_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4555676.html","width":160,"caption":"Avro Vulcan (G-VLCN)","height":107});
															thumbnails[4555672] = clik.newPhoto({"id":4555672,"src":"2009ats0330_8x12_red_arrows_dawlish_thumb.jpg","galleries_id":441590,"server_id":5,"link":"photo_4555672.html","width":160,"caption":"Vulcan and Red Arrows","height":107});
															thumbnails[8231611] = clik.newPhoto({"id":8231611,"src":"2011lg2571_vsoe_dawlish_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_8231611.html","width":160,"caption":"The Orient Express","height":107});
															thumbnails[8231601] = clik.newPhoto({"id":8231601,"src":"2011lg2812_train_driver_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_8231601.html","width":160,"caption":"Duke of Gloucester","height":107});
															thumbnails[8231600] = clik.newPhoto({"id":8231600,"src":"2011lg2811-steam_engine_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_8231600.html","width":160,"caption":"Duke of Gloucester","height":232});
															thumbnails[8231599] = clik.newPhoto({"id":8231599,"src":"2011lg2810_71000_steam_loco_2DD0D7EB-1EC9-DFB6-099DBB2F7C969270_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_8231599.html","width":160,"caption":"Duke of Gloucester","height":110});
															thumbnails[8231598] = clik.newPhoto({"id":8231598,"src":"2011lg2806_71000-dawlish_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_8231598.html","width":160,"caption":"Duke of Gloucester","height":110});
															thumbnails[4512215] = clik.newPhoto({"id":4512215,"src":"2008ats4001_waves_over_dawlish_station_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4512215.html","width":160,"caption":"Stormy seas over Dawlish Station","height":107});
															thumbnails[4512213] = clik.newPhoto({"id":4512213,"src":"2008ats4661_waves_over_diesel_dawlish_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4512213.html","width":160,"caption":"Waves over the line","height":107});
															thumbnails[4467855] = clik.newPhoto({"id":4467855,"src":"2009ats0174crop_tornado_steam_engine_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4467855.html","width":160,"caption":"Tornado 60163","height":108});
															thumbnails[4436053] = clik.newPhoto({"id":4436053,"src":"2008lg7945_bw_torbay_express_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4436053.html","width":160,"caption":"6024 Christmas Express","height":107});
															thumbnails[4436051] = clik.newPhoto({"id":4436051,"src":"2008lg7403a_steam_train_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4436051.html","width":160,"caption":"Tangmere passing Marine Parade","height":107});
															thumbnails[4436045] = clik.newPhoto({"id":4436045,"src":"2008ats3474a_diesel_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4436045.html","width":160,"caption":"The Old 37 - 37038 Rounding Red Rock","height":108});
															thumbnails[4436024] = clik.newPhoto({"id":4436024,"src":"2007lg2132_torbay_expresst_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4436024.html","width":160,"caption":"6024 King Edward I Steam Engine","height":107});
															thumbnails[3701538] = clik.newPhoto({"id":3701538,"src":"2008lg7945a_steam_train_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_3701538.html","width":160,"caption":"6024 King Edward 1 ","height":107});
															thumbnails[4512220] = clik.newPhoto({"id":4512220,"src":"2008ats3939t_dawlish_stormy_seas_thumb.jpg","galleries_id":441532,"server_id":5,"link":"photo_4512220.html","width":160,"caption":"Railway line battered by waves","height":107});
															thumbnails[3078305] = clik.newPhoto({"id":3078305,"src":"2008ats4117_beach_huts_coryton_cove_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_3078305.html","width":160,"caption":"The way to Coryton's Cove","height":107});
															thumbnails[3701645] = clik.newPhoto({"id":3701645,"src":"2009ats9624_parson-and_clerkteignmouth_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_3701645.html","width":160,"caption":"The Parson and Clerk Rocks","height":107});
															thumbnails[3745873] = clik.newPhoto({"id":3745873,"src":"2008ats7410_boat_cove_dawlish_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_3745873.html","width":160,"caption":"Summertime at Boat Cove, Dawlish","height":107});
															thumbnails[4435945] = clik.newPhoto({"id":4435945,"src":"2009ats9309_coryton_cove_8x12_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4435945.html","width":160,"caption":"View from Shell Cove","height":107});
															thumbnails[4435982] = clik.newPhoto({"id":4435982,"src":"2007ats1775-dawlish_pier_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4435982.html","width":160,"caption":"Dawlish Town Pier","height":111});
															thumbnails[4435988] = clik.newPhoto({"id":4435988,"src":"2007ats3039_railway_arches_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4435988.html","width":160,"caption":"Arches under the railway platform","height":107});
															thumbnails[4436009] = clik.newPhoto({"id":4436009,"src":"2008ats4806_boat_cove_dawlish_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4436009.html","width":160,"caption":"Red Rock, Boat Cove","height":107});
															thumbnails[4436021] = clik.newPhoto({"id":4436021,"src":"2006ats174_black_swan_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4436021.html","width":160,"caption":"Elegant black swan","height":119});
															thumbnails[4436022] = clik.newPhoto({"id":4436022,"src":"2008ats5384_parson__clerk_rocks_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4436022.html","width":160,"caption":"The Parson and Clerk Rocks","height":108});
															thumbnails[4502171] = clik.newPhoto({"id":4502171,"src":"2009ats9199_teignmouth_pier_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4502171.html","width":160,"caption":"Dawn, Teignmouth Pier","height":109});
															thumbnails[4502172] = clik.newPhoto({"id":4502172,"src":"2007ats2958_back_beach_teignmouth_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4502172.html","width":160,"caption":"Back Beach","height":107});
															thumbnails[4502173] = clik.newPhoto({"id":4502173,"src":"2009ats9336_teignmouth_view_with_pier_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4502173.html","width":160,"caption":"View over Teignmouth","height":107});
															thumbnails[4512196] = clik.newPhoto({"id":4512196,"src":"2007ats2218-lobster_pots-boat_cove_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512196.html","width":160,"caption":"Creels at Boat Cove","height":107});
															thumbnails[4512198] = clik.newPhoto({"id":4512198,"src":"2008ats3476_dawlish_prom_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512198.html","width":160,"caption":"Dawlish seen from the beach to the east.  ","height":107});
															thumbnails[4512199] = clik.newPhoto({"id":4512199,"src":"2008ats4769_dawlish_beach_front_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512199.html","width":160,"caption":"Sea Lawn Terrace and Dawlish beach","height":107});
															thumbnails[4512201] = clik.newPhoto({"id":4512201,"src":"2008ats4780_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512201.html","width":160,"caption":"The Brook, Dawlish","height":107});
															thumbnails[4512204] = clik.newPhoto({"id":4512204,"src":"2009ats9315_dawlish_sea_wall_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512204.html","width":160,"caption":"Dawlish Sea Wall viewed from Lea Mount","height":107});
															thumbnails[4512210] = clik.newPhoto({"id":4512210,"src":"2009ats9672_black_swan__cygnets_8x12_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512210.html","width":160,"caption":"Cygnets on the Brook","height":108});
															thumbnails[4512214] = clik.newPhoto({"id":4512214,"src":"2007ats2934te_river_teign_at_shaldon_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512214.html","width":160,"caption":"River Teign","height":107});
															thumbnails[4512216] = clik.newPhoto({"id":4512216,"src":"2008ats3711bw_dawlish_pier_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512216.html","width":160,"caption":"Winter high tide","height":107});
															thumbnails[4512217] = clik.newPhoto({"id":4512217,"src":"2008ats3715tbw_dawlish_pier_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512217.html","width":160,"caption":"Waves wash over the Town Pier","height":107});
															thumbnails[4512218] = clik.newPhoto({"id":4512218,"src":"2008ats3897-dawlish_storm_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4512218.html","width":160,"caption":"Winter storm on Marine Parade","height":107});
															thumbnails[4512222] = clik.newPhoto({"id":4512222,"src":"2006ats004a_warren_to_exmouth_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512222.html","width":160,"caption":"Exmouth from the Warren Beach","height":109});
															thumbnails[4512229] = clik.newPhoto({"id":4512229,"src":"2007ats2689_dawlish_warren_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_4512229.html","width":160,"caption":"Dawlish Warren Beach","height":107});
															thumbnails[4512230] = clik.newPhoto({"id":4512230,"src":"2007ats2707_dawlish_warren_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_4512230.html","width":160,"caption":"Into the light","height":108});
															thumbnails[4512231] = clik.newPhoto({"id":4512231,"src":"2008ats7380_exmouth_beach_huts_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512231.html","width":160,"caption":"Beachhuts","height":107});
															thumbnails[4512235] = clik.newPhoto({"id":4512235,"src":"2008ats7565_boat__fisherman_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512235.html","width":160,"caption":"Fishing and sailing","height":107});
															thumbnails[4512236] = clik.newPhoto({"id":4512236,"src":"2008ats7583_exmouth_marina_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512236.html","width":160,"caption":"Haven ahead","height":107});
															thumbnails[4512238] = clik.newPhoto({"id":4512238,"src":"2008ats7620_boats_on_the_exe_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512238.html","width":160,"caption":"Boats on the Exe ","height":107});
															thumbnails[4512239] = clik.newPhoto({"id":4512239,"src":"2008ats3409te_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512239.html","width":160,"caption":"Starcross Pier","height":107});
															thumbnails[4512240] = clik.newPhoto({"id":4512240,"src":"2008ats7538_my_queen_starcross_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512240.html","width":160,"caption":"My Queen","height":107});
															thumbnails[4512242] = clik.newPhoto({"id":4512242,"src":"2008ats4037_cockwood_harbour_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512242.html","width":160,"caption":"Cockwood Harbour","height":109});
															thumbnails[4512243] = clik.newPhoto({"id":4512243,"src":"2010ats7328a_tired_topsham_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512243.html","width":160,"caption":"Tired","height":107});
															thumbnails[4567788] = clik.newPhoto({"id":4567788,"src":"2008ats4119_beach_huts_coryton_cove_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_4567788.html","width":160,"caption":"Colourful beach huts at Coryton's Cove","height":107});
															thumbnails[5092732] = clik.newPhoto({"id":5092732,"src":"2007ats2666_dawlish_warren_dawn_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_5092732.html","width":160,"caption":"Dawn, Dawlish Warren","height":107});
															thumbnails[5092773] = clik.newPhoto({"id":5092773,"src":"2007ats2668_dawlish_warren_dawn_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_5092773.html","width":160,"caption":"Quiet morning","height":108});
															thumbnails[5092779] = clik.newPhoto({"id":5092779,"src":"2007ats2678_old_jetty_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_5092779.html","width":160,"caption":"Remains of the old jetty","height":107});
															thumbnails[7327605] = clik.newPhoto({"id":7327605,"src":"2011lg2030_12x18_warren_beach_huts_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_7327605.html","width":160,"caption":"Glowing in the dawn light","height":107});
															thumbnails[7327689] = clik.newPhoto({"id":7327689,"src":"2011lg2039_exmouth_from_warren_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_7327689.html","width":160,"caption":"Warren path, with Exmouth in view","height":107});
															thumbnails[7327692] = clik.newPhoto({"id":7327692,"src":"2011lg2042_exmouth-from_warren_thumb.jpg","galleries_id":441541,"server_id":5,"link":"photo_7327692.html","width":160,"caption":"The sand spit","height":107});
															thumbnails[7548302] = clik.newPhoto({"id":7548302,"src":"2008ats3166_dartmoor_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_7548302.html","width":160,"caption":"Dartmooor","height":107});
															thumbnails[8143108] = clik.newPhoto({"id":8143108,"src":"2011ats2411_dawlish_from_high_up1_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_8143108.html","width":160,"caption":"Dawlish from Holcombe","height":107});
															thumbnails[8921498] = clik.newPhoto({"id":8921498,"src":"2011ats3258_dawlish_boat_cove1_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_8921498.html","width":160,"caption":"Close up on Boat Cove","height":107});
															thumbnails[9012928] = clik.newPhoto({"id":9012928,"src":"2012ats3483_boat_cove_storm_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_9012928.html","width":160,"caption":"Stormy day on Boat Cove","height":107});
															thumbnails[7327500] = clik.newPhoto({"id":7327500,"src":"2011lg2076_12x18_birds_over_exe_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_7327500.html","width":160,"caption":"Flock of Dunlin over the dredger","height":110});
															thumbnails[4512241] = clik.newPhoto({"id":4512241,"src":"2008ats7623-starcross__pump_house_thumb.jpg","galleries_id":441543,"server_id":5,"link":"photo_4512241.html","width":160,"caption":"Starcross and the Pump House","height":108});
															thumbnails[7352936] = clik.newPhoto({"id":7352936,"src":"2010ats1959a_mamhead_woods_haldon_view_thumb.jpg","galleries_id":441529,"server_id":5,"link":"photo_7352936.html","width":160,"caption":"Glorious view","height":107});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[441557] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carnival 2011","link":"section530787_441557.html","maxRecords":0.0,"photoIDs":[8300033.0,8301165.0,8301167.0,8301169.0,8301170.0,8301171.0,8301172.0,8301174.0,8301176.0,8301178.0,8301179.0,8301181.0,8301183.0],"skipIndex":0,"section_code":"section530787","featured_images":8300033.0,"id":441557,"singleSection":false});				  						galleries[467455] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Christmas Market 2011","link":"section530787_467455.html","maxRecords":0.0,"photoIDs":[8888739.0,8888716.0,8888694.0,8888680.0,8888720.0,8888718.0],"skipIndex":0,"section_code":"section530787","featured_images":8888720.0,"id":467455,"singleSection":false});				  						galleries[441529] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dawlish","link":"section530791_441529.html","maxRecords":0.0,"photoIDs":[3078305.0,3745873.0,4435945.0,4435982.0,4435988.0,4436009.0,4436021.0,4436022.0,4512196.0,4512198.0,4512199.0,4512201.0,4512204.0,4512210.0,4512216.0,4512217.0,4512218.0,4567788.0,8143108.0,8921498.0,9012928.0,7352936.0],"skipIndex":0,"section_code":"section530791","featured_images":9012928.0,"id":441529,"singleSection":false});				  						galleries[441590] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Airshow","link":"section558131.html","maxRecords":0.0,"photoIDs":[8321020.0,8321021.0,4592483.0,4592480.0,4584718.0,4584711.0,4578043.0,4555679.0,4555674.0,4555676.0,4555672.0],"skipIndex":0,"section_code":"section558131","featured_images":4584711.0,"id":441590,"singleSection":true});				  						galleries[441532] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trains","link":"section558132.html","maxRecords":0.0,"photoIDs":[8231611.0,8231601.0,8231600.0,8231599.0,8231598.0,4512215.0,4512213.0,4467855.0,4436053.0,4436051.0,4436045.0,4436024.0,3701538.0,4512220.0],"skipIndex":0,"section_code":"section558132","featured_images":"8231599,3701538","id":441532,"singleSection":true});				  						galleries[441541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dawlish Warren","link":"section530791_441541.html","maxRecords":0.0,"photoIDs":[4512229.0,4512230.0,5092732.0,5092773.0,5092779.0,7327605.0,7327689.0,7327692.0],"skipIndex":0,"section_code":"section530791","featured_images":7327692.0,"id":441541,"singleSection":false});				  						galleries[441543] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Exe and The Teign","link":"section530791_441543.html","maxRecords":0.0,"photoIDs":[3701645.0,4502171.0,4502172.0,4502173.0,4512214.0,4512222.0,4512231.0,4512235.0,4512236.0,4512238.0,4512239.0,4512240.0,4512242.0,4512243.0,7548302.0,7327500.0,4512241.0],"skipIndex":0,"section_code":"section530791","featured_images":4502171.0,"id":441543,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9012928,8856786,8856792,8921487';
imageSets[2] = '9012928,8300033,7327692,4502171,4584711,8231599,3701538,8888720';
imageSets[3] = '7327689';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dawlishblue/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dawlishblue/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 += 'section530787.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 && 'section530787' != '') {
					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 = 'Dawlish Blue: ' + 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 basket').show();}
				else{
					$('#paymentConfirm', root).text('Item added to basket').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - please 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;
	}
}

			

