window.thumbnails = {};
															thumbnails[814613] = clik.newPhoto({"id":814613,"src":"edwards_first_pres_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Dr. Edwards, First President of the SLPS","height":169});
															thumbnails[814614] = clik.newPhoto({"id":814614,"src":"club_group_abroad_1906_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Club Outing up the Rhine 1906","height":94});
															thumbnails[814616] = clik.newPhoto({"id":814616,"src":"club_group_circa_1900_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Club Outing 1900","height":75});
															thumbnails[814617] = clik.newPhoto({"id":814617,"src":"club_outing_1891_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Club Outing 1891","height":94});
															thumbnails[852918] = clik.newPhoto({"id":852918,"src":"stpauls11_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Bomb Damage Inside Cathedral","height":102});
															thumbnails[852919] = clik.newPhoto({"id":852919,"src":"stpauls21_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":104,"caption":"V1 'Doodle Bug' Rocket Over St.Paul's Cathedral","height":130});
															thumbnails[850751] = clik.newPhoto({"id":850751,"src":"Rush hour in Paris_thumb.jpg","galleries_id":65583,"server_id":1,"link":"photo_850751.html","width":130,"caption":"Rush Hour in Paris","height":84});
															thumbnails[850766] = clik.newPhoto({"id":850766,"src":"Fosill1_thumb.jpg","galleries_id":65583,"server_id":1,"link":"photo_850766.html","width":130,"caption":"Fossil","height":113});
															thumbnails[850814] = clik.newPhoto({"id":850814,"src":"Road to nowhere_thumb.jpg","galleries_id":65585,"server_id":1,"link":"photo_850814.html","width":130,"caption":"Road to Nowhere","height":95});
															thumbnails[3084521] = clik.newPhoto({"id":3084521,"src":"1_Happy Sunday_thumb.jpg","galleries_id":65581,"server_id":1,"link":"photo_3084521.html","width":130,"caption":"Happy Sunday","height":87});
															thumbnails[3084531] = clik.newPhoto({"id":3084531,"src":"2_The Guv'nr_thumb.jpg","galleries_id":65581,"server_id":1,"link":"photo_3084531.html","width":87,"caption":"The Guv'nr","height":130});
															thumbnails[3084534] = clik.newPhoto({"id":3084534,"src":"3_Relaxing_thumb.jpg","galleries_id":65581,"server_id":1,"link":"photo_3084534.html","width":130,"caption":"Relaxing","height":98});
															thumbnails[3084535] = clik.newPhoto({"id":3084535,"src":"4_Spiral Staircase_thumb.jpg","galleries_id":65581,"server_id":1,"link":"photo_3084535.html","width":130,"caption":"Spiral Staircase","height":98});
															thumbnails[3084537] = clik.newPhoto({"id":3084537,"src":"5_Bridges of the Tyne_thumb.jpg","galleries_id":65581,"server_id":1,"link":"photo_3084537.html","width":98,"caption":"Bridges of the Tyne","height":130});
															thumbnails[3084555] = clik.newPhoto({"id":3084555,"src":"1_Another airline in trouble_thumb.jpg","galleries_id":65583,"server_id":1,"link":"photo_3084555.html","width":130,"caption":"Another Airline in Trouble","height":75});
															thumbnails[3084556] = clik.newPhoto({"id":3084556,"src":"2_Enjoying a splash_thumb.jpg","galleries_id":65583,"server_id":1,"link":"photo_3084556.html","width":130,"caption":"Enjoying a Splash","height":89});
															thumbnails[3084557] = clik.newPhoto({"id":3084557,"src":"3_Window scene_thumb.jpg","galleries_id":65583,"server_id":1,"link":"photo_3084557.html","width":130,"caption":"Window Scene","height":126});
															thumbnails[3084564] = clik.newPhoto({"id":3084564,"src":"KW-1_thumb.jpg","galleries_id":189421,"server_id":1,"link":"photo_3084564.html","width":130,"caption":"Urban Landscape - 1","height":87});
															thumbnails[3084565] = clik.newPhoto({"id":3084565,"src":"KW-2_thumb.jpg","galleries_id":189421,"server_id":1,"link":"photo_3084565.html","width":130,"caption":"Urban Landscape - 2","height":85});
															thumbnails[3084566] = clik.newPhoto({"id":3084566,"src":"KW-3_thumb.jpg","galleries_id":189421,"server_id":1,"link":"photo_3084566.html","width":130,"caption":"Urban Landscape - 3","height":86});
															thumbnails[3084572] = clik.newPhoto({"id":3084572,"src":"KW-4_thumb.jpg","galleries_id":189421,"server_id":1,"link":"photo_3084572.html","width":130,"caption":"Urban Landscape - 4","height":85});
															thumbnails[3084574] = clik.newPhoto({"id":3084574,"src":"KW-5_thumb.jpg","galleries_id":189421,"server_id":1,"link":"photo_3084574.html","width":130,"caption":"Urban Landscape - 5","height":87});
															thumbnails[3084576] = clik.newPhoto({"id":3084576,"src":"1_LION YAWNING_thumb.jpg","galleries_id":65584,"server_id":1,"link":"photo_3084576.html","width":130,"caption":"Lion Yawning","height":104});
															thumbnails[3084578] = clik.newPhoto({"id":3084578,"src":"2_TIGER_thumb.jpg","galleries_id":65584,"server_id":1,"link":"photo_3084578.html","width":130,"caption":"Tiger","height":83});
															thumbnails[3084579] = clik.newPhoto({"id":3084579,"src":"3_PARROT_thumb.jpg","galleries_id":65584,"server_id":1,"link":"photo_3084579.html","width":130,"caption":"Parrot","height":104});
															thumbnails[3084580] = clik.newPhoto({"id":3084580,"src":"4_CLOUDED LEOPARD_thumb.jpg","galleries_id":65584,"server_id":1,"link":"photo_3084580.html","width":130,"caption":"Clouded Leopard","height":87});
															thumbnails[3084583] = clik.newPhoto({"id":3084583,"src":"5_ELVIS_thumb.jpg","galleries_id":65584,"server_id":1,"link":"photo_3084583.html","width":130,"caption":"Elvis","height":87});
															thumbnails[3084585] = clik.newPhoto({"id":3084585,"src":"compjpg_thumb.jpg","galleries_id":65585,"server_id":1,"link":"photo_3084585.html","width":130,"caption":"Untitled","height":98});
															thumbnails[3084589] = clik.newPhoto({"id":3084589,"src":"nice weather for ducks_thumb.jpg","galleries_id":65585,"server_id":1,"link":"photo_3084589.html","width":130,"caption":"Nice Weather for Ducks","height":72});
															thumbnails[3084590] = clik.newPhoto({"id":3084590,"src":"sadness_thumb.jpg","galleries_id":65585,"server_id":1,"link":"photo_3084590.html","width":107,"caption":"Sadness","height":130});
															thumbnails[3084591] = clik.newPhoto({"id":3084591,"src":"sunswirl_thumb.jpg","galleries_id":65585,"server_id":1,"link":"photo_3084591.html","width":130,"caption":"Sunswirl","height":98});
															thumbnails[3084599] = clik.newPhoto({"id":3084599,"src":"1_Soar like a seagull_thumb.JPG","galleries_id":65586,"server_id":1,"link":"photo_3084599.html","width":130,"caption":"Soar Like a Seagull","height":86});
															thumbnails[3084601] = clik.newPhoto({"id":3084601,"src":"2_Echinacea flowers_thumb.JPG","galleries_id":65586,"server_id":1,"link":"photo_3084601.html","width":101,"caption":"Echinacea Flowers","height":130});
															thumbnails[3084604] = clik.newPhoto({"id":3084604,"src":"3_Bedraggled peacock_thumb.JPG","galleries_id":65586,"server_id":1,"link":"photo_3084604.html","width":130,"caption":"Bedraggled Peacock","height":85});
															thumbnails[3084606] = clik.newPhoto({"id":3084606,"src":"4_Punting on the Cam_thumb.JPG","galleries_id":65586,"server_id":1,"link":"photo_3084606.html","width":130,"caption":"Punting on the Cam","height":91});
															thumbnails[3084607] = clik.newPhoto({"id":3084607,"src":"5_Open wide_thumb.JPG","galleries_id":65586,"server_id":1,"link":"photo_3084607.html","width":130,"caption":"Open Wide","height":90});
															thumbnails[3084632] = clik.newPhoto({"id":3084632,"src":"1_PUMA_thumb.jpg","galleries_id":65588,"server_id":1,"link":"photo_3084632.html","width":130,"caption":"Puma","height":87});
															thumbnails[3084635] = clik.newPhoto({"id":3084635,"src":"2_HUNTING DOG_thumb.jpg","galleries_id":65588,"server_id":1,"link":"photo_3084635.html","width":130,"caption":"Hunting Dog","height":87});
															thumbnails[3084638] = clik.newPhoto({"id":3084638,"src":"3_PANTHER_thumb.jpg","galleries_id":65588,"server_id":1,"link":"photo_3084638.html","width":130,"caption":"Panther","height":124});
															thumbnails[3084640] = clik.newPhoto({"id":3084640,"src":"4_LION_thumb.jpg","galleries_id":65588,"server_id":1,"link":"photo_3084640.html","width":130,"caption":"Lion","height":87});
															thumbnails[3084642] = clik.newPhoto({"id":3084642,"src":"5_BEAR_thumb.jpg","galleries_id":65588,"server_id":1,"link":"photo_3084642.html","width":130,"caption":"Bear","height":104});
															thumbnails[3084645] = clik.newPhoto({"id":3084645,"src":"SG-1_thumb.jpg","galleries_id":189423,"server_id":1,"link":"photo_3084645.html","width":88,"caption":"Untitled - 1","height":130});
															thumbnails[3084647] = clik.newPhoto({"id":3084647,"src":"SG-2_thumb.jpg","galleries_id":189423,"server_id":1,"link":"photo_3084647.html","width":130,"caption":"Untitled - 2","height":86});
															thumbnails[3084650] = clik.newPhoto({"id":3084650,"src":"SG-3_thumb.jpg","galleries_id":189423,"server_id":1,"link":"photo_3084650.html","width":130,"caption":"Untitled - 3","height":85});
															thumbnails[3084652] = clik.newPhoto({"id":3084652,"src":"SG-4_thumb.jpg","galleries_id":189423,"server_id":1,"link":"photo_3084652.html","width":130,"caption":"Untitled - 4","height":97});
															thumbnails[3084654] = clik.newPhoto({"id":3084654,"src":"SG-5_thumb.jpg","galleries_id":189423,"server_id":1,"link":"photo_3084654.html","width":88,"caption":"Untitled - 5","height":130});
															thumbnails[3084657] = clik.newPhoto({"id":3084657,"src":"1_Ceiling_thumb.JPG","galleries_id":189424,"server_id":1,"link":"photo_3084657.html","width":98,"caption":"Ceiling","height":130});
															thumbnails[3084662] = clik.newPhoto({"id":3084662,"src":"2_Living on the Edge_thumb.JPG","galleries_id":189424,"server_id":1,"link":"photo_3084662.html","width":130,"caption":"Living on the Edge","height":95});
															thumbnails[3084663] = clik.newPhoto({"id":3084663,"src":"3_Log_thumb.JPG","galleries_id":189424,"server_id":1,"link":"photo_3084663.html","width":130,"caption":"Log","height":98});
															thumbnails[3084665] = clik.newPhoto({"id":3084665,"src":"4_Photo Break_thumb.JPG","galleries_id":189424,"server_id":1,"link":"photo_3084665.html","width":116,"caption":"Photo Break","height":130});
															thumbnails[3084668] = clik.newPhoto({"id":3084668,"src":"5_Spiral_thumb.JPG","galleries_id":189424,"server_id":1,"link":"photo_3084668.html","width":130,"caption":"Spiral","height":111});
															thumbnails[3878498] = clik.newPhoto({"id":3878498,"src":"1_Vulture_thumb.jpg","galleries_id":235628,"server_id":1,"link":"photo_3878498.html","width":130,"caption":"Vulture","height":108});
															thumbnails[3878500] = clik.newPhoto({"id":3878500,"src":"3_Gerkin_thumb.jpg","galleries_id":235628,"server_id":1,"link":"photo_3878500.html","width":130,"caption":"Gerkin","height":87});
															thumbnails[3878536] = clik.newPhoto({"id":3878536,"src":"1_-Pollination_thumb.jpg","galleries_id":235630,"server_id":1,"link":"photo_3878536.html","width":122,"caption":"Pollination","height":130});
															thumbnails[3878540] = clik.newPhoto({"id":3878540,"src":"2_Zen_thumb.jpg","galleries_id":235630,"server_id":1,"link":"photo_3878540.html","width":130,"caption":"Zen","height":98});
															thumbnails[3878543] = clik.newPhoto({"id":3878543,"src":"4_Greenwich-desert_thumb.jpg","galleries_id":235630,"server_id":1,"link":"photo_3878543.html","width":130,"caption":"Greenwich desert","height":79});
															thumbnails[4877135] = clik.newPhoto({"id":4877135,"src":"Discarded_thumb.jpg","galleries_id":150745,"server_id":1,"link":"photo_4877135.html","width":87,"caption":"Discarded","height":130});
															thumbnails[4877139] = clik.newPhoto({"id":4877139,"src":"Im_A_Ninja_Grrr_thumb.jpg","galleries_id":150745,"server_id":1,"link":"photo_4877139.html","width":92,"caption":"I'm a Ninja Grrr","height":130});
															thumbnails[4877140] = clik.newPhoto({"id":4877140,"src":"Im_Spent_Finnished_No_More_Sun_Bathing_thumb.jpg","galleries_id":150745,"server_id":1,"link":"photo_4877140.html","width":130,"caption":"I'm Spent, Finished, No More Sun Bathing","height":92});
															thumbnails[4877142] = clik.newPhoto({"id":4877142,"src":"River_Loir_Suevres_France_thumb.jpg","galleries_id":150745,"server_id":1,"link":"photo_4877142.html","width":130,"caption":"River Loir, Suevres, France","height":87});
															thumbnails[4877143] = clik.newPhoto({"id":4877143,"src":"Tea_Micky_Mouse_thumb.jpg","galleries_id":150745,"server_id":1,"link":"photo_4877143.html","width":92,"caption":"Tea, Micky Mouse","height":130});
															thumbnails[6754006] = clik.newPhoto({"id":6754006,"src":"British_Museum_thumb.jpg","galleries_id":367876,"server_id":1,"link":"photo_6754006.html","width":130,"caption":"British Museum","height":82});
															thumbnails[6754010] = clik.newPhoto({"id":6754010,"src":"Compressed_City_thumb.jpg","galleries_id":367876,"server_id":1,"link":"photo_6754010.html","width":90,"caption":"Compressed City","height":130});
															thumbnails[6754012] = clik.newPhoto({"id":6754012,"src":"Pat_Couder_-_A_Splash_of_Pink_thumb.jpg","galleries_id":367876,"server_id":1,"link":"photo_6754012.html","width":130,"caption":"A Splash of Pink","height":93});
															thumbnails[6754013] = clik.newPhoto({"id":6754013,"src":"Tick_Tock_thumb.jpg","galleries_id":367876,"server_id":1,"link":"photo_6754013.html","width":130,"caption":"Tick Tock","height":85});
															thumbnails[6995164] = clik.newPhoto({"id":6995164,"src":"1_Phone_Box_thumb.jpg","galleries_id":379047,"server_id":1,"link":"photo_6995164.html","width":85,"caption":"Phone box","height":130});
															thumbnails[6995167] = clik.newPhoto({"id":6995167,"src":"2_London_Underground_Sign_in_Westminster_2_thumb.jpg","galleries_id":379047,"server_id":1,"link":"photo_6995167.html","width":93,"caption":"London Underground sign in Westminster","height":130});
															thumbnails[6995274] = clik.newPhoto({"id":6995274,"src":"1_Skaters_thumb.JPG","galleries_id":379049,"server_id":1,"link":"photo_6995274.html","width":98,"caption":"Skaters","height":130});
															thumbnails[6995277] = clik.newPhoto({"id":6995277,"src":"4_Evolution_thumb.JPG","galleries_id":379049,"server_id":1,"link":"photo_6995277.html","width":115,"caption":"Evolution","height":130});
															thumbnails[6995433] = clik.newPhoto({"id":6995433,"src":"2_Closeness_thumb.jpg","galleries_id":379051,"server_id":1,"link":"photo_6995433.html","width":93,"caption":"Closeness","height":130});
															thumbnails[6995434] = clik.newPhoto({"id":6995434,"src":"3_Sunrise_thumb.jpg","galleries_id":379051,"server_id":1,"link":"photo_6995434.html","width":130,"caption":"Sunrise","height":69});
															thumbnails[6995435] = clik.newPhoto({"id":6995435,"src":"1_Golden_Girl_thumb.jpg","galleries_id":367876,"server_id":1,"link":"photo_6995435.html","width":96,"caption":"Golden girl","height":130});
															thumbnails[6995458] = clik.newPhoto({"id":6995458,"src":"2_Natures_blue_palette_thumb.jpg","galleries_id":379056,"server_id":1,"link":"photo_6995458.html","width":130,"caption":"Nature's blue palette","height":70});
															thumbnails[6995463] = clik.newPhoto({"id":6995463,"src":"4_Frozen_leaves_thumb.jpg","galleries_id":379056,"server_id":1,"link":"photo_6995463.html","width":130,"caption":"Frozen leaves","height":86});
															thumbnails[6995479] = clik.newPhoto({"id":6995479,"src":"1_Puerto_de_la_Cruz_Tenerife_thumb.jpg","galleries_id":379057,"server_id":1,"link":"photo_6995479.html","width":130,"caption":"Puerto de la Cruz,Tenerife","height":64});
															thumbnails[6995481] = clik.newPhoto({"id":6995481,"src":"1_Bluebell_wood_thumb.jpg","galleries_id":379057,"server_id":1,"link":"photo_6995481.html","width":127,"caption":"Bluebell wood","height":130});
															thumbnails[6995483] = clik.newPhoto({"id":6995483,"src":"1_A_memory_of_her_thumb.jpg","galleries_id":379056,"server_id":1,"link":"photo_6995483.html","width":130,"caption":"A memory of her","height":81});
															thumbnails[7000482] = clik.newPhoto({"id":7000482,"src":"2_Honey_bee_on_artichoke_flower_thumb.jpg","galleries_id":235628,"server_id":1,"link":"photo_7000482.html","width":130,"caption":"Honey bee on artichoke flower","height":100});
															thumbnails[7000486] = clik.newPhoto({"id":7000486,"src":"1_Look_I_am_a_Tree_thumb.jpg","galleries_id":379325,"server_id":1,"link":"photo_7000486.html","width":82,"caption":"Look I am a tree","height":130});
															thumbnails[7000487] = clik.newPhoto({"id":7000487,"src":"1_Moving_Train_thumb.jpg","galleries_id":379047,"server_id":1,"link":"photo_7000487.html","width":86,"caption":"Moving Train","height":130});
															thumbnails[7000489] = clik.newPhoto({"id":7000489,"src":"2_father_and_daughter_thumb.jpg","galleries_id":379051,"server_id":1,"link":"photo_7000489.html","width":130,"caption":"Father and daughter","height":94});
															thumbnails[7000496] = clik.newPhoto({"id":7000496,"src":"1_Lost_thumb.jpg","galleries_id":235630,"server_id":1,"link":"photo_7000496.html","width":71,"caption":"Lost","height":130});
															thumbnails[7338744] = clik.newPhoto({"id":7338744,"src":"Below-The-Bridge_thumb.jpg","galleries_id":299246,"server_id":1,"link":"photo_7338744.html","width":130,"caption":"Below the Bridge","height":109});
															thumbnails[7338746] = clik.newPhoto({"id":7338746,"src":"EarlyOne-Morning_thumb.jpg","galleries_id":299246,"server_id":1,"link":"photo_7338746.html","width":87,"caption":"Early one Morning","height":130});
															thumbnails[7338747] = clik.newPhoto({"id":7338747,"src":"In_the_Dark_thumb.jpg","galleries_id":299246,"server_id":1,"link":"photo_7338747.html","width":87,"caption":"In the Dark","height":130});
															thumbnails[7338748] = clik.newPhoto({"id":7338748,"src":"Liba_in_a_Purple_Scarf_thumb.jpg","galleries_id":299246,"server_id":1,"link":"photo_7338748.html","width":91,"caption":"Liba in a Purple Scarf","height":130});
															thumbnails[7341797] = clik.newPhoto({"id":7341797,"src":"The_Quiet_Path_thumb.jpg","galleries_id":299246,"server_id":1,"link":"photo_7341797.html","width":93,"caption":"The Quiet Path","height":130});
															thumbnails[7566048] = clik.newPhoto({"id":7566048,"src":"2_Urban_London_thumb.JPG","galleries_id":65578,"server_id":1,"link":"photo_7566048.html","width":87,"caption":"2011-12 DPI 1 ADVANCED WINNER - URBAN LONDON","height":130});
															thumbnails[7566051] = clik.newPhoto({"id":7566051,"src":"3_Guardsman_on_black_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_7566051.html","width":130,"caption":"2011-12 DPI 1 ADVANCED WINNER - GUARDSMAN ON BLACK","height":126});
															thumbnails[7566059] = clik.newPhoto({"id":7566059,"src":"3_The_journey_ahead_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_7566059.html","width":130,"caption":"2011-12 DPI 1 IMPROVERS WINNER - THE JOURNEY AHEAD","height":87});
															thumbnails[7566063] = clik.newPhoto({"id":7566063,"src":"4_Colours_under_the_sun_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_7566063.html","width":130,"caption":"","height":130});
															thumbnails[7566065] = clik.newPhoto({"id":7566065,"src":"4_Delicious_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_7566065.html","width":130,"caption":"2011-12 DPI 1 IMPROVERS WINNER - DELICIOUS","height":87});
															thumbnails[7566070] = clik.newPhoto({"id":7566070,"src":"4_Komodo_thumb.JPG","galleries_id":65578,"server_id":1,"link":"photo_7566070.html","width":130,"caption":"2011-12 DPI 1 IMPROVERS WINNER - KOMODO","height":109});
															thumbnails[7566074] = clik.newPhoto({"id":7566074,"src":"4_Moving_Train_2_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_7566074.html","width":86,"caption":"2011-12 DPI 1 IMPROVERS WINNER - MOVING TRAIN 2","height":130});
															thumbnails[7566082] = clik.newPhoto({"id":7566082,"src":"41._Anchor_Chains_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_7566082.html","width":130,"caption":"2011-12 DPI 1 ADVANCED WINNER - ANCHOR CHAINS","height":94});
															thumbnails[7605767] = clik.newPhoto({"id":7605767,"src":"2_Flame_Orange_thumb.JPG","galleries_id":412477,"server_id":1,"link":"photo_7605767.html","width":130,"caption":"Flame orange","height":87});
															thumbnails[7605768] = clik.newPhoto({"id":7605768,"src":"1_White_Smoke_thumb.jpg","galleries_id":412477,"server_id":1,"link":"photo_7605768.html","width":130,"caption":"White Smoke","height":76});
															thumbnails[7605774] = clik.newPhoto({"id":7605774,"src":"2_Memory_of_Summer_thumb.JPG","galleries_id":412479,"server_id":1,"link":"photo_7605774.html","width":130,"caption":"","height":118});
															thumbnails[7606147] = clik.newPhoto({"id":7606147,"src":"3_The_journey_ahead_1B1E817D-1EC9-D45B-1C6D4D847B363A56_thumb.jpg","galleries_id":379051,"server_id":1,"link":"photo_7606147.html","width":130,"caption":"The journey ahead","height":87});
															thumbnails[6038877] = clik.newPhoto({"id":6038877,"src":"A_memory_of_her_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6038877.html","width":130,"caption":"2010-11 DPI 2 INTERMEDIATE WINNER - A MEMORY OF HER","height":81});
															thumbnails[6038882] = clik.newPhoto({"id":6038882,"src":"Eagle_Owl_thumb.JPG","galleries_id":65578,"server_id":1,"link":"photo_6038882.html","width":130,"caption":"2010-11 DPI 2 INTERMEDIATE WINNER - EAGLE OWL","height":130});
															thumbnails[6038886] = clik.newPhoto({"id":6038886,"src":"Evolution_thumb.JPG","galleries_id":65578,"server_id":1,"link":"photo_6038886.html","width":115,"caption":"2010-11 DPI 2 INTERMEDIATE WINNER - EVOLUTION","height":130});
															thumbnails[6038889] = clik.newPhoto({"id":6038889,"src":"Padlock_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6038889.html","width":130,"caption":"2010-11 DPI 2 INTERMEDIATE WINNER - PADLOCK","height":94});
															thumbnails[6038892] = clik.newPhoto({"id":6038892,"src":"Fast_to_the_Lighthouse_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6038892.html","width":130,"caption":"2010-11 DPI 2 ADVANCED WINNER - FAST TO THE LIGHTHOUSE","height":101});
															thumbnails[6038894] = clik.newPhoto({"id":6038894,"src":"Sea_Level_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6038894.html","width":130,"caption":"2010-11 DPI 2 ADVANCED WINNER - SEA LEVEL","height":130});
															thumbnails[6038897] = clik.newPhoto({"id":6038897,"src":"The_Lady_Sings_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6038897.html","width":130,"caption":"2010-11 DPI 2 ADVANCED WINNER - THE LADY SINGS","height":130});
															thumbnails[6038900] = clik.newPhoto({"id":6038900,"src":"Trapped_in_a_Priory_Arch_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6038900.html","width":87,"caption":"2010-11 DPI 2 ADVANCED WINNER - TRAPPED IN A PRIORY ARCH","height":130});
															thumbnails[6060772] = clik.newPhoto({"id":6060772,"src":"Closeness_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060772.html","width":93,"caption":"2010-11 DPI 1 INTERMEDIATE WINNER - CLOSENESS","height":130});
															thumbnails[6060829] = clik.newPhoto({"id":6060829,"src":"Veranda_Pattern_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060829.html","width":99,"caption":"2010-11 DPI 1 INTERMEDIATE WINNER - VERANDA PATTERN","height":130});
															thumbnails[6060834] = clik.newPhoto({"id":6060834,"src":"Natures_blue_palette_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060834.html","width":130,"caption":"2010-11 DPI 1 INTERMEDIATE WINNER - NATURE'S BLUE PALETTE","height":70});
															thumbnails[6060838] = clik.newPhoto({"id":6060838,"src":"Old_Timer_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060838.html","width":130,"caption":"2010-11 DPI 1 INTERMEDIATE WINNER - OLD TIMER","height":85});
															thumbnails[6060842] = clik.newPhoto({"id":6060842,"src":"Millenium_Bridge_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060842.html","width":130,"caption":"2010-11 DPI 1 ADVANCED WINNER - MILLENNIUM BRIDGE","height":87});
															thumbnails[6060845] = clik.newPhoto({"id":6060845,"src":"Honey_bee_on_artichoke_flower_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060845.html","width":130,"caption":"2010-11 DPI 1 ADVANCED WINNER - HONEY BEE ON ARTICHOKE FLOWER","height":100});
															thumbnails[6060847] = clik.newPhoto({"id":6060847,"src":"Lonely_Walk_At_St_Pauls_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060847.html","width":87,"caption":"2010-11 DPI 1 ADVANCED WINNER - LONELY WALK AT ST PAUL'S","height":130});
															thumbnails[2101437] = clik.newPhoto({"id":2101437,"src":"Edwardian gentleman_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2101437.html","width":88,"caption":"Edwardian Gentleman - 2008\/9 Monochrome Competition Number 1 Winner","height":130});
															thumbnails[2101439] = clik.newPhoto({"id":2101439,"src":"GRAF SANDRA SUI_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2101439.html","width":86,"caption":"Graf Sandra Sui (winner of the 2008 London Marathon) - 2008\/9 Colour Print Competition Number 1 Winner","height":130});
															thumbnails[2101444] = clik.newPhoto({"id":2101444,"src":"Three Blind Mice_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2101444.html","width":130,"caption":"Three Blind Mice - 2008\/9 Winner of the themed competition on 'Nursery Rhymes'","height":92});
															thumbnails[2101478] = clik.newPhoto({"id":2101478,"src":"Light-on-Purbeck_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2101478.html","width":87,"caption":"Light on Purbeck - 2008\/9 Monochrome Competition Number 1 Winner","height":130});
															thumbnails[2101479] = clik.newPhoto({"id":2101479,"src":"N_thumb.Y.P.D.jpg","galleries_id":65578,"server_id":1,"link":"photo_2101479.html","width":87,"caption":"N.Y.P.D. - 2008\/9 Monochrome Competition Number 1 Winner","height":130});
															thumbnails[2101480] = clik.newPhoto({"id":2101480,"src":"Spiral-Staircase_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2101480.html","width":87,"caption":"Spiral Staircase - 2008\/9 Monochrome Competition Number 1 Winner","height":130});
															thumbnails[2216866] = clik.newPhoto({"id":2216866,"src":"1 Blooming Swans_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2216866.html","width":130,"caption":"Blooming Swans - Winner of 2008-9 Digital Print Competition Round 2","height":98});
															thumbnails[2216867] = clik.newPhoto({"id":2216867,"src":"2 Defeated_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2216867.html","width":130,"caption":"Defeated - Winner of 2008-9 Digital Print Competition Round 2","height":98});
															thumbnails[2216870] = clik.newPhoto({"id":2216870,"src":"2 Flower A Bee_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2216870.html","width":130,"caption":"Flower and Bee - Winner of 2008-9 Digital Print Competition Round 2","height":98});
															thumbnails[2216872] = clik.newPhoto({"id":2216872,"src":"2 Morning Mist_thumb.jpg.jpg","galleries_id":65578,"server_id":1,"link":"photo_2216872.html","width":130,"caption":"Morning Mist - Winner of 2008-9 Digital Print Competition Round 2","height":91});
															thumbnails[2216874] = clik.newPhoto({"id":2216874,"src":"3 Almost Legless_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_2216874.html","width":130,"caption":"Almost Legless - Winner of 2008-9 Digital Print Competition Round 2","height":118});
															thumbnails[3676765] = clik.newPhoto({"id":3676765,"src":"ludovic_Lemaignen_Greenwich_desert_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3676765.html","width":130,"caption":"GREENWICH DESERT - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 1","height":79});
															thumbnails[3676768] = clik.newPhoto({"id":3676768,"src":"Peter_Oak_Falcated_Teal_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3676768.html","width":130,"caption":"FALCATED TEAL - RUNNER-UP IN 2009-10 DIGITAL IMAGE COMPETITION 1","height":88});
															thumbnails[3676775] = clik.newPhoto({"id":3676775,"src":"4_Senanque_Abbey_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3676775.html","width":130,"caption":"SENANQUE ABBEY - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 1","height":98});
															thumbnails[3676783] = clik.newPhoto({"id":3676783,"src":"Dave_Harris_Patterned_Carpet_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3676783.html","width":130,"caption":"PATTERNED CARPET - HON. MENTION IN 2009-10 DIGITAL IMAGE COMPETION 1","height":98});
															thumbnails[3676784] = clik.newPhoto({"id":3676784,"src":"Dave_Harris_Winter_Evening_Reflections_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3676784.html","width":130,"caption":"WINTER EVENING REFLECTIONS - HON. MENTION IN 2009-10 DIGITAL IMAGE COMPETION 1","height":130});
															thumbnails[3982848] = clik.newPhoto({"id":3982848,"src":"1_Contemplation_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3982848.html","width":130,"caption":"CONTEMPLATION - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 2","height":92});
															thumbnails[3982853] = clik.newPhoto({"id":3982853,"src":"3Downward_Spiral_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3982853.html","width":130,"caption":"DOWNWARD SPIRAL - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 2","height":94});
															thumbnails[3982855] = clik.newPhoto({"id":3982855,"src":"3_Balloon_flight_thumb.JPG","galleries_id":65578,"server_id":1,"link":"photo_3982855.html","width":130,"caption":"BALLOON FLIGHT - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 2","height":87});
															thumbnails[3982858] = clik.newPhoto({"id":3982858,"src":"3_Im_shy_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3982858.html","width":83,"caption":"I'M SHY - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 2","height":130});
															thumbnails[3982860] = clik.newPhoto({"id":3982860,"src":"3_Pause_for_Reflection_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_3982860.html","width":130,"caption":"PAUSE FOR REFLECTION - WINNER OF 2009-10 DIGITAL IMAGE COMPETITION 2","height":80});
															thumbnails[4220476] = clik.newPhoto({"id":4220476,"src":"2_London_bus_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_4220476.html","width":130,"caption":"LONDON BUS - RUNNER-UP IN THE 2009-10 EVERSHED SHIELD","height":86});
															thumbnails[4220478] = clik.newPhoto({"id":4220478,"src":"3_London_Out_of_the_world_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_4220478.html","width":130,"caption":"LONDON OUT OF THE WORLD - WINNER OF THE 2009-10 EVERSHED SHIELD","height":86});
															thumbnails[5550377] = clik.newPhoto({"id":5550377,"src":"Electric_Post_Ludovic_Lemaignen_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_5550377.html","width":130,"caption":"ELECTRIC POST - WINNER OF THE 200910 WILSON CUP (SET SUBJECT: AGAINST THE LIGHT)","height":86});
															thumbnails[5550404] = clik.newPhoto({"id":5550404,"src":"Falcated_Teal_Peter_Simpson_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_5550404.html","width":130,"caption":"FALCATED TEAL - WINNER OF THE 2009-10 PDI OF THE YEAR","height":88});
															thumbnails[6060850] = clik.newPhoto({"id":6060850,"src":"Im_Cheeky_thumb.jpg","galleries_id":65578,"server_id":1,"link":"photo_6060850.html","width":130,"caption":"2010-11 DPI 1 ADVANCED WINNER - I'M CHEEKY! ","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[379047] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andy Bell","link":"gallery_379047.html","maxRecords":0.0,"photoIDs":[6995164.0,6995167.0,7000487.0],"skipIndex":0,"section_code":"gallery","featured_images":"7000487,6995167,6995164","id":379047,"singleSection":false});				  						galleries[65578] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Award_Winners","link":"gallery_65578.html","maxRecords":0.0,"photoIDs":[7566048.0,7566051.0,7566059.0,7566063.0,7566065.0,7566070.0,7566074.0,7566082.0,6038877.0,6038882.0,6038886.0,6038889.0,6038892.0,6038894.0,6038897.0,6038900.0,6060772.0,6060829.0,6060834.0,6060838.0,6060842.0,6060845.0,6060847.0,2101437.0,2101439.0,2101444.0,2101478.0,2101479.0,2101480.0,2216866.0,2216867.0,2216870.0,2216872.0,2216874.0,3676765.0,3676768.0,3676775.0,3676783.0,3676784.0,3982848.0,3982853.0,3982855.0,3982858.0,3982860.0,4220476.0,4220478.0,5550377.0,5550404.0,6060850.0],"skipIndex":0,"section_code":"gallery","featured_images":"7566082,7566074,7566070,7566065,7566063,7566059,7566051,7566048,6060850,6060847","id":65578,"singleSection":false});				  						galleries[65581] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dave_Harris","link":"gallery_65581.html","maxRecords":0.0,"photoIDs":[3084521.0,3084531.0,3084534.0,3084535.0,3084537.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084537,3084535,3084534,3084531,3084521","id":65581,"singleSection":false});				  						galleries[379325] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Geoff Watts","link":"gallery_379325.html","maxRecords":0.0,"photoIDs":[7000486.0],"skipIndex":0,"section_code":"gallery","featured_images":7000486.0,"id":379325,"singleSection":false});				  						galleries[379049] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ian Turnbull","link":"gallery_379049.html","maxRecords":0.0,"photoIDs":[6995274.0,6995277.0],"skipIndex":0,"section_code":"gallery","featured_images":"6995277,6995274","id":379049,"singleSection":false});				  						galleries[65583] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jeff_Royce","link":"gallery_65583.html","maxRecords":0.0,"photoIDs":[850751.0,850766.0,3084555.0,3084556.0,3084557.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084557,3084556,3084555,850766,850751","id":65583,"singleSection":false});				  						galleries[189421] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ken_White","link":"gallery_189421.html","maxRecords":0.0,"photoIDs":[3084564.0,3084565.0,3084566.0,3084572.0,3084574.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084574,3084572,3084566,3084565,3084564","id":189421,"singleSection":false});				  						galleries[65584] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kim_Hood","link":"gallery_65584.html","maxRecords":0.0,"photoIDs":[3084576.0,3084578.0,3084579.0,3084580.0,3084583.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084583,3084580,3084579,3084578,3084576","id":65584,"singleSection":false});				  						galleries[299246] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Laurence_Bainbridge","link":"gallery_299246.html","maxRecords":0.0,"photoIDs":[7338744.0,7338746.0,7338747.0,7338748.0,7341797.0],"skipIndex":0,"section_code":"gallery","featured_images":"7341797,7338748,7338747,7338746,7338744","id":299246,"singleSection":false});				  						galleries[65585] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Laurie_Smith","link":"gallery_65585.html","maxRecords":0.0,"photoIDs":[850814.0,3084585.0,3084589.0,3084590.0,3084591.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084591,3084590,3084589,3084585,850814","id":65585,"singleSection":false});				  						galleries[235630] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ludovic_Lemaignen","link":"gallery_235630.html","maxRecords":0.0,"photoIDs":[3878536.0,3878540.0,3878543.0,7000496.0],"skipIndex":0,"section_code":"gallery","featured_images":"7000496,3878543,3878540,3878536","id":235630,"singleSection":false});				  						galleries[65586] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Luise_Wigmore","link":"gallery_65586.html","maxRecords":0.0,"photoIDs":[3084599.0,3084601.0,3084604.0,3084606.0,3084607.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084607,3084606,3084604,3084601,3084599","id":65586,"singleSection":false});				  						galleries[379051] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Maria Ramil","link":"gallery_379051.html","maxRecords":0.0,"photoIDs":[6995433.0,6995434.0,7000489.0,7606147.0],"skipIndex":0,"section_code":"gallery","featured_images":"7606147,7000489,6995434,6995433","id":379051,"singleSection":false});				  						galleries[150745] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Michael_Turner","link":"gallery_150745.html","maxRecords":0.0,"photoIDs":[4877135.0,4877139.0,4877140.0,4877142.0,4877143.0],"skipIndex":0,"section_code":"gallery","featured_images":"4877143,4877142,4877140,4877139,4877135","id":150745,"singleSection":false});				  						galleries[412477] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norman Norris","link":"gallery_412477.html","maxRecords":0.0,"photoIDs":[7605767.0,7605768.0],"skipIndex":0,"section_code":"gallery","featured_images":"7605768,7605767","id":412477,"singleSection":false});				  						galleries[412478] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ossie Osbourne","link":"gallery_412478.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":412478,"singleSection":false});				  						galleries[367876] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pat Couder","link":"gallery_367876.html","maxRecords":0.0,"photoIDs":[6754006.0,6754010.0,6754012.0,6754013.0,6995435.0],"skipIndex":0,"section_code":"gallery","featured_images":"6995435,6754013,6754012,6754010,6754006","id":367876,"singleSection":false});				  						galleries[412479] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Peggy Curtis","link":"gallery_412479.html","maxRecords":0.0,"photoIDs":[7605774.0],"skipIndex":0,"section_code":"gallery","featured_images":7605774.0,"id":412479,"singleSection":false});				  						galleries[235628] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Philip_Pound","link":"gallery_235628.html","maxRecords":0.0,"photoIDs":[3878498.0,3878500.0,7000482.0],"skipIndex":0,"section_code":"gallery","featured_images":"7000482,3878500,3878498","id":235628,"singleSection":false});				  						galleries[379056] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Polly Jedrzejak","link":"gallery_379056.html","maxRecords":0.0,"photoIDs":[6995458.0,6995463.0,6995483.0],"skipIndex":0,"section_code":"gallery","featured_images":"6995483,6995463,6995458","id":379056,"singleSection":false});				  						galleries[65588] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Reg_Hood","link":"gallery_65588.html","maxRecords":0.0,"photoIDs":[3084632.0,3084635.0,3084638.0,3084640.0,3084642.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084642,3084640,3084638,3084635,3084632","id":65588,"singleSection":false});				  						galleries[189423] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stephen_Gates","link":"gallery_189423.html","maxRecords":0.0,"photoIDs":[3084645.0,3084647.0,3084650.0,3084652.0,3084654.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084654,3084652,3084650,3084647,3084645","id":189423,"singleSection":false});				  						galleries[379057] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Steve Brown","link":"gallery_379057.html","maxRecords":0.0,"photoIDs":[6995479.0,6995481.0],"skipIndex":0,"section_code":"gallery","featured_images":"6995481,6995479","id":379057,"singleSection":false});				  						galleries[189424] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Steve_Gilhooley","link":"gallery_189424.html","maxRecords":0.0,"photoIDs":[3084657.0,3084662.0,3084663.0,3084665.0,3084668.0],"skipIndex":0,"section_code":"gallery","featured_images":"3084668,3084665,3084663,3084662,3084657","id":189424,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7000496,7000489,7000487,7000486,7000482,6995483,6995481,6995479,6995463,6995458,6995435,6995434,6995433,6995277,6995274,6995167,6995164,6754013,6754012,6754010,6754006,4877143,4877142,4877140,4877135,3878543,3878540,3878536,3878500,3878498,3084668,3084665,3084663,3084662,3084657,3084654,3084652,3084650,3084647,3084645,3084642,3084640,3084638,3084635,3084632,3084607,3084604,3084601,3084599,3084591,3084590,3084589,3084585,3084583,3084580,3084579,3084578,3084576,3084574,3084572,3084566,3084565,3084564,3084557,3084556,3084555,3084537,3084535,3084534,3084531,3084521,2216874,2216872,2216870,2216867,2216866,2101480,2101479,2101478,2101444,2101439,2101437';
imageSets[3] = '4877139';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/southlondonps/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/southlondonps/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'SOUTH LONDON PHOTOGRAPHIC SOCIETY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

