window.thumbnails = {};
															thumbnails[554317] = clik.newPhoto({"id":554317,"src":"MapofWestWickham-3_copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":147});
															thumbnails[6198596] = clik.newPhoto({"id":6198596,"src":"hosta_june_thumb.jpg","galleries_id":345999,"server_id":1,"link":"photo_6198596.html","width":130,"caption":"Hosta - June","height":151});
															thumbnails[6198712] = clik.newPhoto({"id":6198712,"src":"mazda_furai_concept_car_thumb.jpg","galleries_id":345999,"server_id":1,"link":"photo_6198712.html","width":130,"caption":"Mazda Furai Concept Car","height":86});
															thumbnails[6198715] = clik.newPhoto({"id":6198715,"src":"snowbound_thumb.jpg","galleries_id":345999,"server_id":1,"link":"photo_6198715.html","width":130,"caption":"Snowbound","height":155});
															thumbnails[6198731] = clik.newPhoto({"id":6198731,"src":"the_blues_thumb.jpg","galleries_id":345999,"server_id":1,"link":"photo_6198731.html","width":130,"caption":"The Blues","height":148});
															thumbnails[6198773] = clik.newPhoto({"id":6198773,"src":"yawning_cheetah_thumb.jpg","galleries_id":345999,"server_id":1,"link":"photo_6198773.html","width":130,"caption":"Yawning Cheetah","height":183});
															thumbnails[556116] = clik.newPhoto({"id":556116,"src":"queens_water_gate_royal_naval_college_greenwich_1_thumb.jpg","galleries_id":42932,"server_id":1,"link":"photo_556116.html","width":130,"caption":"Queen's Water Gate, Royal Naval College, Greenwich","height":97});
															thumbnails[556164] = clik.newPhoto({"id":556164,"src":"quiet_water_1_thumb.jpg","galleries_id":42932,"server_id":1,"link":"photo_556164.html","width":130,"caption":"Quiet Water","height":60});
															thumbnails[556165] = clik.newPhoto({"id":556165,"src":"ss_great_britain_engine_crank_and_frame_1_thumb.jpg","galleries_id":42932,"server_id":1,"link":"photo_556165.html","width":130,"caption":"SS Great Britain, Engine Crank and Frame","height":87});
															thumbnails[556181] = clik.newPhoto({"id":556181,"src":"010_the_ouse_at_lewes_thumb.jpg","galleries_id":42934,"server_id":1,"link":"photo_556181.html","width":130,"caption":"The Ouse at Lewes","height":101});
															thumbnails[556212] = clik.newPhoto({"id":556212,"src":"025_a_horse_at_the_gate_thumb.jpg","galleries_id":42934,"server_id":1,"link":"photo_556212.html","width":130,"caption":"A Horse at the Gate","height":90});
															thumbnails[556213] = clik.newPhoto({"id":556213,"src":"031_porcelain_figure_thumb.jpg","galleries_id":42934,"server_id":1,"link":"photo_556213.html","width":130,"caption":"Porcelain Figure","height":195});
															thumbnails[556214] = clik.newPhoto({"id":556214,"src":"034_wobbly_bridge_thumb.jpg","galleries_id":42934,"server_id":1,"link":"photo_556214.html","width":130,"caption":"Wobbly Bridge","height":80});
															thumbnails[556239] = clik.newPhoto({"id":556239,"src":"high_elms_woods_thumb.jpg","galleries_id":63097,"server_id":1,"link":"photo_556239.html","width":130,"caption":"High Elms Wood","height":195});
															thumbnails[556367] = clik.newPhoto({"id":556367,"src":"three_swimmers_thumb.jpg","galleries_id":42938,"server_id":1,"link":"photo_556367.html","width":130,"caption":"Three Swimmers","height":80});
															thumbnails[556368] = clik.newPhoto({"id":556368,"src":"trees_in_autumn_thumb.jpg","galleries_id":42938,"server_id":1,"link":"photo_556368.html","width":130,"caption":"Trees in Autumn","height":211});
															thumbnails[556371] = clik.newPhoto({"id":556371,"src":"urban_transport_thumb.jpg","galleries_id":42938,"server_id":1,"link":"photo_556371.html","width":130,"caption":"Urban Transport","height":101});
															thumbnails[563959] = clik.newPhoto({"id":563959,"src":"jersey_1_thumb.jpg","galleries_id":43445,"server_id":1,"link":"photo_563959.html","width":130,"caption":"Jersey","height":62});
															thumbnails[563960] = clik.newPhoto({"id":563960,"src":"la_casa_amabilla_1_thumb.jpg","galleries_id":43445,"server_id":1,"link":"photo_563960.html","width":130,"caption":"La Casa Amrilla","height":112});
															thumbnails[563961] = clik.newPhoto({"id":563961,"src":"little_weed_1_thumb.jpg","galleries_id":43445,"server_id":1,"link":"photo_563961.html","width":130,"caption":"Little Weed","height":171});
															thumbnails[582162] = clik.newPhoto({"id":582162,"src":"kodak_no3a_autographic_camera_1_thumb.jpg","galleries_id":114443,"server_id":1,"link":"photo_582162.html","width":130,"caption":"Kodak No3A Autograph Camera","height":90});
															thumbnails[582165] = clik.newPhoto({"id":582165,"src":"sunset_at_tate_modern_1_thumb.jpg","galleries_id":42932,"server_id":1,"link":"photo_582165.html","width":130,"caption":"Sunset at Tate Britain","height":105});
															thumbnails[594732] = clik.newPhoto({"id":594732,"src":"barn_owl_thumb.jpg","galleries_id":109865,"server_id":1,"link":"photo_594732.html","width":130,"caption":"Barn Owl","height":86});
															thumbnails[594734] = clik.newPhoto({"id":594734,"src":"fox_thumb.jpg","galleries_id":109865,"server_id":1,"link":"photo_594734.html","width":130,"caption":"Fox","height":97});
															thumbnails[594754] = clik.newPhoto({"id":594754,"src":"a_dusting_of_frost_thumb.jpg","galleries_id":63097,"server_id":1,"link":"photo_594754.html","width":130,"caption":"A Dusting of Frost","height":88});
															thumbnails[609326] = clik.newPhoto({"id":609326,"src":"classic_cadillac_thumb.jpg","galleries_id":63097,"server_id":1,"link":"photo_609326.html","width":130,"caption":"Clasic Cadillac","height":195});
															thumbnails[620968] = clik.newPhoto({"id":620968,"src":"learning_the_skills_1_thumb.jpg","galleries_id":114443,"server_id":1,"link":"photo_620968.html","width":130,"caption":"Learning the Skills","height":173});
															thumbnails[620978] = clik.newPhoto({"id":620978,"src":"05_beam_and_connecting_rod_crossness_pumping_station_thumb.jpg","galleries_id":49060,"server_id":1,"link":"photo_620978.html","width":130,"caption":"Beam and Connecting Rod, Crossness Pumping Engine","height":87});
															thumbnails[629490] = clik.newPhoto({"id":629490,"src":"gerbera_thumb.jpg","galleries_id":109865,"server_id":1,"link":"photo_629490.html","width":130,"caption":"Gerbera","height":160});
															thumbnails[643205] = clik.newPhoto({"id":643205,"src":"03_kentish_oast_houses_thumb.jpg","galleries_id":49060,"server_id":1,"link":"photo_643205.html","width":130,"caption":"Kentish Oast House","height":95});
															thumbnails[643206] = clik.newPhoto({"id":643206,"src":"04_a_stroll_in_the_snow_thumb.jpg","galleries_id":49060,"server_id":1,"link":"photo_643206.html","width":130,"caption":"A Stroll in the Snow","height":157});
															thumbnails[643209] = clik.newPhoto({"id":643209,"src":"a_winter_walk_thumb.jpg","galleries_id":49061,"server_id":1,"link":"photo_643209.html","width":130,"caption":"A Winter's Walk","height":87});
															thumbnails[643211] = clik.newPhoto({"id":643211,"src":"jackdaw_thumb.jpg","galleries_id":49061,"server_id":1,"link":"photo_643211.html","width":130,"caption":"Jackdaw","height":131});
															thumbnails[643212] = clik.newPhoto({"id":643212,"src":"narcissus_serena_beach_1_thumb.jpg","galleries_id":114443,"server_id":1,"link":"photo_643212.html","width":130,"caption":"Narcissus, Serena Beach","height":139});
															thumbnails[643214] = clik.newPhoto({"id":643214,"src":"Silver_Back_Gorilla._thumb.jpg","galleries_id":49061,"server_id":1,"link":"photo_643214.html","width":130,"caption":"Silver Back Gorrilla","height":190});
															thumbnails[3358963] = clik.newPhoto({"id":3358963,"src":"blue_morpho_thumb.jpg","galleries_id":49061,"server_id":1,"link":"photo_3358963.html","width":130,"caption":"Blue Morpho with wings closed","height":195});
															thumbnails[3359003] = clik.newPhoto({"id":3359003,"src":"hurstmonceaux_castle_thumb.jpg","galleries_id":49061,"server_id":1,"link":"photo_3359003.html","width":130,"caption":"Hurstmonceaux Castle","height":195});
															thumbnails[3359006] = clik.newPhoto({"id":3359006,"src":"01_normanton_church_rutland_thumb.jpg","galleries_id":49060,"server_id":1,"link":"photo_3359006.html","width":130,"caption":"Normanton Church, Rutland","height":95});
															thumbnails[3370133] = clik.newPhoto({"id":3370133,"src":"02_well_heeled_thumb.jpg","galleries_id":49060,"server_id":1,"link":"photo_3370133.html","width":130,"caption":"Well Heeled","height":93});
															thumbnails[3498640] = clik.newPhoto({"id":3498640,"src":"roadside_haircut_thumb.jpg","galleries_id":42938,"server_id":1,"link":"photo_3498640.html","width":130,"caption":"Roadside Haircut","height":149});
															thumbnails[3498644] = clik.newPhoto({"id":3498644,"src":"sunflowers_thumb.jpg","galleries_id":42938,"server_id":1,"link":"photo_3498644.html","width":130,"caption":"Sunflowers","height":183});
															thumbnails[3958801] = clik.newPhoto({"id":3958801,"src":"morning_tracks_on_the_beach_1_thumb.jpg","galleries_id":43445,"server_id":1,"link":"photo_3958801.html","width":130,"caption":"Morning Tracks on the Beach","height":150});
															thumbnails[4021925] = clik.newPhoto({"id":4021925,"src":"the_bridge_thumb.jpg","galleries_id":109865,"server_id":1,"link":"photo_4021925.html","width":130,"caption":"The Bridge","height":86});
															thumbnails[4857604] = clik.newPhoto({"id":4857604,"src":"yellow_crocus_1_thumb.jpg","galleries_id":42932,"server_id":1,"link":"photo_4857604.html","width":130,"caption":"Yellow Crocus","height":103});
															thumbnails[4874922] = clik.newPhoto({"id":4874922,"src":"the_guardian_thumb.jpg","galleries_id":109865,"server_id":1,"link":"photo_4874922.html","width":130,"caption":"The Guardian","height":154});
															thumbnails[5458068] = clik.newPhoto({"id":5458068,"src":"bikes_thumb.jpg","galleries_id":63097,"server_id":1,"link":"photo_5458068.html","width":130,"caption":"Bikes","height":106});
															thumbnails[5458070] = clik.newPhoto({"id":5458070,"src":"red_and_green_thumb.jpg","galleries_id":63097,"server_id":1,"link":"photo_5458070.html","width":130,"caption":"Red and Green","height":94});
															thumbnails[5806828] = clik.newPhoto({"id":5806828,"src":"autumn_joydenswood_thumb.jpg","galleries_id":328782,"server_id":1,"link":"photo_5806828.html","width":130,"caption":"Autumn, Joydens Wood","height":173});
															thumbnails[5806832] = clik.newPhoto({"id":5806832,"src":"camden_character_thumb.jpg","galleries_id":328782,"server_id":1,"link":"photo_5806832.html","width":130,"caption":"Camden Character","height":143});
															thumbnails[5806834] = clik.newPhoto({"id":5806834,"src":"church_of_assumption_lake_bled_slovinia_thumb.jpg","galleries_id":328782,"server_id":1,"link":"photo_5806834.html","width":130,"caption":"Church of the Assumption, Lkae Bled, Slovenia","height":82});
															thumbnails[5806836] = clik.newPhoto({"id":5806836,"src":"somersult_thumb.jpg","galleries_id":328782,"server_id":1,"link":"photo_5806836.html","width":130,"caption":"Somersault","height":136});
															thumbnails[5806839] = clik.newPhoto({"id":5806839,"src":"sundown_southbank_thumb.jpg","galleries_id":328782,"server_id":1,"link":"photo_5806839.html","width":130,"caption":"Sundown, South Bank","height":74});
															thumbnails[5838810] = clik.newPhoto({"id":5838810,"src":"sheltering_1_thumb.jpg","galleries_id":114443,"server_id":1,"link":"photo_5838810.html","width":130,"caption":"Sheltering","height":74});
															thumbnails[5838861] = clik.newPhoto({"id":5838861,"src":"south_bank_view_1_thumb.jpg","galleries_id":114443,"server_id":1,"link":"photo_5838861.html","width":130,"caption":"South Bank View","height":173});
															thumbnails[5838893] = clik.newPhoto({"id":5838893,"src":"tunbridge_wells_alleyway_1_thumb.jpg","galleries_id":114443,"server_id":1,"link":"photo_5838893.html","width":130,"caption":"Tunbridge Wells Alley","height":173});
															thumbnails[7917509] = clik.newPhoto({"id":7917509,"src":"old_town_bergan_1_thumb.jpg","galleries_id":43445,"server_id":1,"link":"photo_7917509.html","width":130,"caption":"Old Town, Bergan","height":86});
															thumbnails[7917514] = clik.newPhoto({"id":7917514,"src":"phone_boxes_1_thumb.jpg","galleries_id":43445,"server_id":1,"link":"photo_7917514.html","width":130,"caption":"Phone Boxes","height":139});
															thumbnails[7923456] = clik.newPhoto({"id":7923456,"src":"a_snack_in_the_park_1_thumb.jpg","galleries_id":427043,"server_id":1,"link":"photo_7923456.html","width":130,"caption":"A Snack in the Park","height":96});
															thumbnails[7923465] = clik.newPhoto({"id":7923465,"src":"give_me_a_kiss_1_thumb.jpg","galleries_id":427043,"server_id":1,"link":"photo_7923465.html","width":130,"caption":"Give me a Kiss","height":156});
															thumbnails[7923468] = clik.newPhoto({"id":7923468,"src":"monks_relaxing_1_thumb.jpg","galleries_id":427043,"server_id":1,"link":"photo_7923468.html","width":130,"caption":"Monks Relaxing","height":106});
															thumbnails[7923470] = clik.newPhoto({"id":7923470,"src":"the_girl_in_dark_glasses_1_thumb.jpg","galleries_id":427043,"server_id":1,"link":"photo_7923470.html","width":130,"caption":"","height":186});
															thumbnails[4830999] = clik.newPhoto({"id":4830999,"src":"11_09_17_thames_hampton_court_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_4830999.html","width":130,"caption":"Thames Barrier September 2011","height":81});
															thumbnails[8540936] = clik.newPhoto({"id":8540936,"src":"11_09_13_Tuesday-Mtg-Intro-to-Studio-Lighting_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_8540936.html","width":130,"caption":"Studio Lighting September 2011","height":108});
															thumbnails[5006281] = clik.newPhoto({"id":5006281,"src":"11_10_15_city_walk_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_5006281.html","width":130,"caption":"City Walk, October 2011","height":84});
															thumbnails[8679045] = clik.newPhoto({"id":8679045,"src":"11_10_15_city_walk_jennifer_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_8679045.html","width":130,"caption":"","height":41});
															thumbnails[7147699] = clik.newPhoto({"id":7147699,"src":"10_12_02_Age_Concern_West_Wickham_under_snow_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_7147699.html","width":130,"caption":"Society Meeting Hall 30\/11\/10","height":102});
															thumbnails[7137405] = clik.newPhoto({"id":7137405,"src":"10_11_09_bobs-teach-in_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_7137405.html","width":130,"caption":"Members' Evening, November 2010","height":91});
															thumbnails[7137391] = clik.newPhoto({"id":7137391,"src":"10_11_07_old_crocks_run_to_brighton_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_7137391.html","width":130,"caption":"Old Crocks Race to Brighton November 2010","height":34});
															thumbnails[5261227] = clik.newPhoto({"id":5261227,"src":"11_12_13_xmas_social_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_5261227.html","width":130,"caption":"Christmas Social 2011","height":88});
															thumbnails[7353184] = clik.newPhoto({"id":7353184,"src":"12_01_14_Greenwich_1_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_7353184.html","width":130,"caption":"Greenwich, January 2102","height":83});
															thumbnails[3370317] = clik.newPhoto({"id":3370317,"src":"11_02_19_british_library_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_3370317.html","width":130,"caption":"British Library Feb 2011","height":83});
															thumbnails[3665986] = clik.newPhoto({"id":3665986,"src":"11_03_19_kew_bridge_museum_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_3665986.html","width":130,"caption":"Kew Bridge Steam Museum March 2011","height":88});
															thumbnails[6037739] = clik.newPhoto({"id":6037739,"src":"11_04_09_london_museum_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_6037739.html","width":130,"caption":"London Museum April 2011","height":97});
															thumbnails[7890501] = clik.newPhoto({"id":7890501,"src":"11_05_21_ightham_mote_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_7890501.html","width":130,"caption":"Ightham Mote May 2011","height":77});
															thumbnails[4160923] = clik.newPhoto({"id":4160923,"src":"10_06_19_little_venice_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_4160923.html","width":130,"caption":"Little Venice July 2010","height":87});
															thumbnails[4591787] = clik.newPhoto({"id":4591787,"src":"11_07_26_evening_in_dulwich_park_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_4591787.html","width":130,"caption":"An evening in Dulwich Park","height":111});
															thumbnails[8053089] = clik.newPhoto({"id":8053089,"src":"Tunbridge_Wells_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_8053089.html","width":130,"caption":"Tunbridge Wells in the WET","height":92});
															thumbnails[8409565] = clik.newPhoto({"id":8409565,"src":"11_08_20_hannah_peschar_sculpture_garden_thumb.jpg","galleries_id":429046,"server_id":1,"link":"photo_8409565.html","width":130,"caption":"Hannah Peschar Sculpture Garden","height":107});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[429046] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" All Pan and Tilt Photos","link":"section65436_429046.html","maxRecords":0.0,"photoIDs":[4830999.0,8540936.0,5006281.0,8679045.0,7147699.0,7137405.0,7137391.0,5261227.0,7353184.0,3370317.0,3665986.0,6037739.0,7890501.0,4160923.0,4591787.0,8053089.0,8409565.0],"skipIndex":0,"section_code":"section65436","featured_images":"8679045,8540936,8409565,8053089,7890501,7353184,7147699,7137405,7137391,6037739","id":429046,"singleSection":false});				  						galleries[49061] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Joyce Bernard's Photos","link":"gallery_49061.html","maxRecords":0.0,"photoIDs":[643209.0,643211.0,643214.0,3358963.0,3359003.0],"skipIndex":0,"section_code":"gallery","featured_images":"3359003,3358963,643214,643211,643209","id":49061,"singleSection":false});				  						galleries[49060] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norman Bernard's Photos","link":"gallery_49060.html","maxRecords":0.0,"photoIDs":[620978.0,643205.0,643206.0,3359006.0,3370133.0],"skipIndex":0,"section_code":"gallery","featured_images":"3370133,3359006,643206,643205,620978","id":49060,"singleSection":false});				  						galleries[109865] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Robert Cook's Photos","link":"gallery_109865.html","maxRecords":0.0,"photoIDs":[594732.0,594734.0,629490.0,4021925.0,4874922.0],"skipIndex":0,"section_code":"gallery","featured_images":4874922.0,"id":109865,"singleSection":false});				  						galleries[42932] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tony Deller's Photos","link":"gallery_42932.html","maxRecords":0.0,"photoIDs":[556116.0,556164.0,556165.0,582165.0,4857604.0],"skipIndex":0,"section_code":"gallery","featured_images":"4857604,582165,556165,556164,556116","id":42932,"singleSection":false});				  						galleries[114443] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andrew Herbert's Photos","link":"gallery_114443.html","maxRecords":0.0,"photoIDs":[582162.0,620968.0,643212.0,5838810.0,5838861.0,5838893.0],"skipIndex":0,"section_code":"gallery","featured_images":"5838893,5838861,5838810,643212,620968,582162","id":114443,"singleSection":false});				  						galleries[42934] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"John Hill's Photos","link":"gallery_42934.html","maxRecords":0.0,"photoIDs":[556181.0,556212.0,556213.0,556214.0],"skipIndex":0,"section_code":"gallery","featured_images":"556214,556213,556212,556181","id":42934,"singleSection":false});				  						galleries[427043] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Derek Miah's Photos","link":"gallery_427043.html","maxRecords":0.0,"photoIDs":[7923456.0,7923465.0,7923468.0,7923470.0],"skipIndex":0,"section_code":"gallery","featured_images":"7923470,7923468,7923465,7923456","id":427043,"singleSection":false});				  						galleries[63097] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bob Richards Photos","link":"gallery_63097.html","maxRecords":0.0,"photoIDs":[556239.0,594754.0,609326.0,5458068.0,5458070.0],"skipIndex":0,"section_code":"gallery","featured_images":"5458070,5458068,609326,594754,556239","id":63097,"singleSection":false});				  						galleries[345999] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Martin Ridout","link":"gallery_345999.html","maxRecords":0.0,"photoIDs":[6198596.0,6198712.0,6198715.0,6198731.0,6198773.0],"skipIndex":0,"section_code":"gallery","featured_images":"6198773,6198731,6198715,6198712,6198596","id":345999,"singleSection":false});				  						galleries[42938] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Derek White's Photos","link":"gallery_42938.html","maxRecords":0.0,"photoIDs":[556367.0,556368.0,556371.0,3498640.0,3498644.0],"skipIndex":0,"section_code":"gallery","featured_images":"3498644,3498640,556371,556368,556367","id":42938,"singleSection":false});				  						galleries[328782] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Barbara Warnes's Photos","link":"gallery_328782.html","maxRecords":0.0,"photoIDs":[5806828.0,5806832.0,5806834.0,5806836.0,5806839.0],"skipIndex":0,"section_code":"gallery","featured_images":"5806839,5806836,5806834,5806832,5806828","id":328782,"singleSection":false});				  						galleries[43445] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bob Zwolinsky's Photos","link":"gallery_43445.html","maxRecords":0.0,"photoIDs":[563959.0,563960.0,563961.0,3958801.0,7917509.0,7917514.0],"skipIndex":0,"section_code":"gallery","featured_images":"7917514,7917509,3958801,563961,563960,563959","id":43445,"singleSection":false});				  						galleries[42225] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"section65436_42225.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section65436","featured_images":"","id":42225,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7923470,7923468,7923465,7923456,6198773,6198731,6198715,6198712,6198596,5838893,5838861,5838810,5806839,5806836,5806832,5806828,5458070,5458068,4874922,4857604,4021925,3958801,3498644,3498640,3370133,3359006,3359003,3358963,643214,643212,643211,643209,643206,643205,629490,620978,620968,609326,594754,594734,594732,582165,582162,563961,563960,563959,556371,556368,556367,556239,556214,556213,556212,556181,556165,556164,556116';
imageSets[2] = '4874922';
imageSets[3] = '8679045,8540936,8409565,8053089,7923470,7923468,7923465,7923456,7917514,7917509,7890501,7353184,7147699,7137405,7137391,6198773,6198731,6198715,6198712,6198596,6037739,5838893,5838861,5838810,5806839,5806836,5806834,5806832,5806828,5458070,5458068,5261227,5006281,4874922,4857604,4830999,4591787,4160923,4021925,3958801,3665986,3498644,3498640,3370317,3370133,3359006,3359003,3358963,643214,643212';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/tonydeller/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/tonydeller/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 = 'West Wickham 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;
	}
}

			

