window.thumbnails = {};
															thumbnails[4240655] = clik.newPhoto({"id":4240655,"src":"RWCS__Cowfold_Fete_4th_July-3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Steam Train Rides","height":87});
															thumbnails[5728090] = clik.newPhoto({"id":5728090,"src":"uIr_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":41});
															thumbnails[5728246] = clik.newPhoto({"id":5728246,"src":"ContentServer_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":152});
															thumbnails[5728366] = clik.newPhoto({"id":5728366,"src":"RWCS_Portfolio-1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":104});
															thumbnails[5728367] = clik.newPhoto({"id":5728367,"src":"RWCS_Portfolio-11_B4645D42-24E8-5EC4-4FA8E2D5E026655B_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":104});
															thumbnails[5728370] = clik.newPhoto({"id":5728370,"src":"RWCS_Portfolio-1-2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":104});
															thumbnails[5728803] = clik.newPhoto({"id":5728803,"src":"RWCS_Portfolio-1-4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5732154] = clik.newPhoto({"id":5732154,"src":"RWCS_Portfolio-1-8_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":112});
															thumbnails[5732167] = clik.newPhoto({"id":5732167,"src":"RWCS_Portfolio-1-7_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5732170] = clik.newPhoto({"id":5732170,"src":"RWCS_Portfolio-1-71_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8022587] = clik.newPhoto({"id":8022587,"src":"header_bluebell_railway_small_1100__8001_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"BLUEBELL","height":98});
															thumbnails[8022591] = clik.newPhoto({"id":8022591,"src":"header_brighton_graffiti_small_1100__800_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"HEADER IMAGE GRAFFITI ","height":98});
															thumbnails[8023208] = clik.newPhoto({"id":8023208,"src":"header_radical_spa_small_1100__800123_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RAdical Racing Series ","height":98});
															thumbnails[8023421] = clik.newPhoto({"id":8023421,"src":"header_historic_square_template_small_1100__1100_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Historic Collection Header ","height":130});
															thumbnails[8027446] = clik.newPhoto({"id":8027446,"src":"yosemite_valley_DSC3249_final_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"YOSEMITE HEADER ","height":161});
															thumbnails[8039024] = clik.newPhoto({"id":8039024,"src":"header_square_3_bridges__small_1100__800_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"winter sussex landscapes ","height":130});
															thumbnails[8039110] = clik.newPhoto({"id":8039110,"src":"header_square_flower_and_landscape_small_1100__800_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"landscape nature header","height":130});
															thumbnails[8039248] = clik.newPhoto({"id":8039248,"src":"header_LANDSCAPE_COLLECTION_small_1100__800_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"LANDSCAPE  GALLERY HEADER","height":98});
															thumbnails[8039384] = clik.newPhoto({"id":8039384,"src":"header_pano_ARCHITECTURE_small_1100__800_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"ARCHITECTURAL COLLECTIONS ","height":56});
															thumbnails[4249318] = clik.newPhoto({"id":4249318,"src":"dewstow2_small_news_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"dewstow2 small news","height":104});
															thumbnails[4249319] = clik.newPhoto({"id":4249319,"src":"Helifly_7206431-Edit-Edit_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Helifly & RWCS Robinson R44 at Shoreham","height":102});
															thumbnails[5008462] = clik.newPhoto({"id":5008462,"src":"RWCS_graffiti_block_collection-1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":1.0,"height":67});
															thumbnails[5008467] = clik.newPhoto({"id":5008467,"src":"RWCS_graffiti_block_collection-10_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-10","height":61});
															thumbnails[5008468] = clik.newPhoto({"id":5008468,"src":"RWCS_graffiti_block_collection-11_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-11","height":40});
															thumbnails[5008469] = clik.newPhoto({"id":5008469,"src":"RWCS_graffiti_block_collection-12_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-12","height":36});
															thumbnails[5008470] = clik.newPhoto({"id":5008470,"src":"RWCS_graffiti_block_collection-13_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-13","height":32});
															thumbnails[5008471] = clik.newPhoto({"id":5008471,"src":"RWCS_graffiti_block_collection-14_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-14","height":46});
															thumbnails[5008472] = clik.newPhoto({"id":5008472,"src":"RWCS_graffiti_block_collection-15_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-15","height":47});
															thumbnails[5008473] = clik.newPhoto({"id":5008473,"src":"RWCS_graffiti_block_collection-16_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-16","height":40});
															thumbnails[5008474] = clik.newPhoto({"id":5008474,"src":"RWCS_graffiti_block_collection-17_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-17","height":48});
															thumbnails[5008475] = clik.newPhoto({"id":5008475,"src":"RWCS_graffiti_block_collection-18_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-18","height":44});
															thumbnails[5008476] = clik.newPhoto({"id":5008476,"src":"RWCS_graffiti_block_collection-19_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-19","height":41});
															thumbnails[5008477] = clik.newPhoto({"id":5008477,"src":"RWCS_graffiti_block_collection-2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-2","height":46});
															thumbnails[5008478] = clik.newPhoto({"id":5008478,"src":"RWCS_graffiti_block_collection-20_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-20","height":52});
															thumbnails[5008479] = clik.newPhoto({"id":5008479,"src":"RWCS_graffiti_block_collection-21_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-21","height":59});
															thumbnails[5008480] = clik.newPhoto({"id":5008480,"src":"RWCS_graffiti_block_collection-22_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-22","height":53});
															thumbnails[5008481] = clik.newPhoto({"id":5008481,"src":"RWCS_graffiti_block_collection-23_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-23","height":42});
															thumbnails[5008482] = clik.newPhoto({"id":5008482,"src":"RWCS_graffiti_block_collection-24_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-24","height":40});
															thumbnails[5008483] = clik.newPhoto({"id":5008483,"src":"RWCS_graffiti_block_collection-25_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-25","height":52});
															thumbnails[5008484] = clik.newPhoto({"id":5008484,"src":"RWCS_graffiti_block_collection-3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-3","height":41});
															thumbnails[5008485] = clik.newPhoto({"id":5008485,"src":"RWCS_graffiti_block_collection-4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-4","height":41});
															thumbnails[5008486] = clik.newPhoto({"id":5008486,"src":"RWCS_graffiti_block_collection-5_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-5","height":44});
															thumbnails[5008487] = clik.newPhoto({"id":5008487,"src":"RWCS_graffiti_block_collection-6_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-6","height":41});
															thumbnails[5008488] = clik.newPhoto({"id":5008488,"src":"RWCS_graffiti_block_collection-7_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-7","height":43});
															thumbnails[5008489] = clik.newPhoto({"id":5008489,"src":"RWCS_graffiti_block_collection-8_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-8","height":41});
															thumbnails[5008490] = clik.newPhoto({"id":5008490,"src":"RWCS_graffiti_block_collection-9_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"RWCS graffiti block collection-9","height":31});
															thumbnails[3929364] = clik.newPhoto({"id":3929364,"src":"Coastal_frame_orfordness_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_3929364.html","width":130,"caption":"Coastal Scene Orfordness","height":92});
															thumbnails[3934542] = clik.newPhoto({"id":3934542,"src":"Aerialgallery_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_3934542.html","width":130,"caption":"Brighton pier","height":96});
															thumbnails[3929343] = clik.newPhoto({"id":3929343,"src":"Events_Frame_p4_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_3929343.html","width":130,"caption":"Goodwood Ferrari P4","height":106});
															thumbnails[3994026] = clik.newPhoto({"id":3994026,"src":"20080415-P4153233-Edit-bw-240_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_3994026.html","width":130,"caption":"Black house","height":81});
															thumbnails[3994033] = clik.newPhoto({"id":3994033,"src":"20080415-P4153224-Edit-Edit-232_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_3994033.html","width":130,"caption":"Old rail tracks","height":86});
															thumbnails[3994075] = clik.newPhoto({"id":3994075,"src":"20080415-P4153242-Edit-Edit_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_3994075.html","width":130,"caption":"Old Fishing hut","height":95});
															thumbnails[3994597] = clik.newPhoto({"id":3994597,"src":"Suffolk_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_3994597.html","width":130,"caption":"","height":61});
															thumbnails[3994659] = clik.newPhoto({"id":3994659,"src":"Suffolk-21_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_3994659.html","width":130,"caption":"Old Boats at Orfordness Harbour ","height":85});
															thumbnails[4061283] = clik.newPhoto({"id":4061283,"src":"events-2_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061283.html","width":130,"caption":"","height":83});
															thumbnails[4061284] = clik.newPhoto({"id":4061284,"src":"events-3_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061284.html","width":130,"caption":"","height":98});
															thumbnails[4061488] = clik.newPhoto({"id":4061488,"src":"events-4_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061488.html","width":130,"caption":"","height":98});
															thumbnails[4061489] = clik.newPhoto({"id":4061489,"src":"events-51_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061489.html","width":130,"caption":"","height":98});
															thumbnails[4061522] = clik.newPhoto({"id":4061522,"src":"events-8_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061522.html","width":130,"caption":"","height":98});
															thumbnails[4061523] = clik.newPhoto({"id":4061523,"src":"events-10a_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061523.html","width":130,"caption":"","height":98});
															thumbnails[4061525] = clik.newPhoto({"id":4061525,"src":"events-11_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061525.html","width":130,"caption":"","height":84});
															thumbnails[4061526] = clik.newPhoto({"id":4061526,"src":"events-12_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061526.html","width":130,"caption":"","height":172});
															thumbnails[4061528] = clik.newPhoto({"id":4061528,"src":"events-16_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061528.html","width":130,"caption":"","height":85});
															thumbnails[4061529] = clik.newPhoto({"id":4061529,"src":"events-15_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061529.html","width":130,"caption":"","height":143});
															thumbnails[4061553] = clik.newPhoto({"id":4061553,"src":"events-17_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061553.html","width":130,"caption":"","height":91});
															thumbnails[4061556] = clik.newPhoto({"id":4061556,"src":"events-20_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061556.html","width":130,"caption":"","height":98});
															thumbnails[4061558] = clik.newPhoto({"id":4061558,"src":"events-21_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061558.html","width":130,"caption":"","height":98});
															thumbnails[4061559] = clik.newPhoto({"id":4061559,"src":"events-22_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061559.html","width":130,"caption":"Hot air balloon","height":86});
															thumbnails[4061560] = clik.newPhoto({"id":4061560,"src":"events-23_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061560.html","width":130,"caption":"Hot air balloon","height":86});
															thumbnails[4061561] = clik.newPhoto({"id":4061561,"src":"events-24_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061561.html","width":130,"caption":"Hot air balloon","height":195});
															thumbnails[4061562] = clik.newPhoto({"id":4061562,"src":"events-25_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061562.html","width":130,"caption":"Inside hot air balloon","height":86});
															thumbnails[4061564] = clik.newPhoto({"id":4061564,"src":"events-26_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061564.html","width":130,"caption":"Inside hot air balloon","height":86});
															thumbnails[4061565] = clik.newPhoto({"id":4061565,"src":"events-27_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061565.html","width":130,"caption":"","height":241});
															thumbnails[4061567] = clik.newPhoto({"id":4061567,"src":"events-28_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061567.html","width":130,"caption":"","height":195});
															thumbnails[4061568] = clik.newPhoto({"id":4061568,"src":"events-29_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061568.html","width":130,"caption":"","height":86});
															thumbnails[4061570] = clik.newPhoto({"id":4061570,"src":"events-30_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061570.html","width":130,"caption":"","height":101});
															thumbnails[4061573] = clik.newPhoto({"id":4061573,"src":"events-32_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061573.html","width":130,"caption":"","height":86});
															thumbnails[4061574] = clik.newPhoto({"id":4061574,"src":"events-33_thumb.jpg","galleries_id":368252,"server_id":15,"link":"photo_4061574.html","width":130,"caption":"","height":86});
															thumbnails[4061576] = clik.newPhoto({"id":4061576,"src":"events-34_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061576.html","width":130,"caption":"The photographers","height":195});
															thumbnails[4061579] = clik.newPhoto({"id":4061579,"src":"events-35_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061579.html","width":130,"caption":"","height":86});
															thumbnails[4094834] = clik.newPhoto({"id":4094834,"src":"RWCS_Seascape-6_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094834.html","width":130,"caption":"Dungeness Beach","height":98});
															thumbnails[4094836] = clik.newPhoto({"id":4094836,"src":"RWCS_Seascape-7_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094836.html","width":130,"caption":"Brighton pier & starlings","height":63});
															thumbnails[4094840] = clik.newPhoto({"id":4094840,"src":"RWCS_Seascape-11_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094840.html","width":130,"caption":"Seven Sisters","height":98});
															thumbnails[4094844] = clik.newPhoto({"id":4094844,"src":"RWCS_Seascape-21_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094844.html","width":130,"caption":"Old strakes on Winchelsea beach","height":91});
															thumbnails[4094845] = clik.newPhoto({"id":4094845,"src":"RWCS_Seascape-22_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094845.html","width":130,"caption":"Old strakes on Winchelsea beach","height":89});
															thumbnails[4109126] = clik.newPhoto({"id":4109126,"src":"RWCS_portfolio-8_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109126.html","width":130,"caption":"Window","height":98});
															thumbnails[4109127] = clik.newPhoto({"id":4109127,"src":"RWCS_portfolio-9_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109127.html","width":130,"caption":"Bluebells","height":98});
															thumbnails[4109129] = clik.newPhoto({"id":4109129,"src":"RWCS_portfolio-10_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109129.html","width":130,"caption":"","height":173});
															thumbnails[4109133] = clik.newPhoto({"id":4109133,"src":"RWCS_portfolio-13_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109133.html","width":130,"caption":"","height":98});
															thumbnails[4109135] = clik.newPhoto({"id":4109135,"src":"RWCS_portfolio-17_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109135.html","width":130,"caption":"Sculpture at Goodwood","height":158});
															thumbnails[4109136] = clik.newPhoto({"id":4109136,"src":"RWCS_portfolio-18_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109136.html","width":130,"caption":"Sculpture at Goodwood","height":98});
															thumbnails[4109137] = clik.newPhoto({"id":4109137,"src":"RWCS_portfolio-24_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109137.html","width":130,"caption":"Frozen flowers","height":98});
															thumbnails[4109174] = clik.newPhoto({"id":4109174,"src":"RWCS_portfolio-23_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109174.html","width":130,"caption":"","height":98});
															thumbnails[4141130] = clik.newPhoto({"id":4141130,"src":"Collage_gallery_thumb.jpg","galleries_id":247669,"server_id":15,"link":"photo_4141130.html","width":130,"caption":"Collages","height":113});
															thumbnails[4239875] = clik.newPhoto({"id":4239875,"src":"Village_fete_2009_GF_thumb.jpg","galleries_id":251192,"server_id":15,"link":"photo_4239875.html","width":130,"caption":"Events","height":113});
															thumbnails[4707472] = clik.newPhoto({"id":4707472,"src":"RWCS__Brighton_ST_2009-30-2_thumb.jpg","galleries_id":270685,"server_id":15,"link":"photo_4707472.html","width":130,"caption":"AC Cobra Smokes the Tyres ","height":86});
															thumbnails[5740168] = clik.newPhoto({"id":5740168,"src":"RWCS_Ferrari-1_border_thumb.jpg","galleries_id":325115,"server_id":15,"link":"photo_5740168.html","width":130,"caption":"","height":95});
															thumbnails[6109238] = clik.newPhoto({"id":6109238,"src":"rwcs_p_leonardslee_logo_very_small_thumb.jpg","galleries_id":342444,"server_id":15,"link":"photo_6109238.html","width":130,"caption":"","height":44});
															thumbnails[7021550] = clik.newPhoto({"id":7021550,"src":"LBVCR056_small_thumb.jpg","galleries_id":380175,"server_id":15,"link":"photo_7021550.html","width":130,"caption":"","height":173});
															thumbnails[7275776] = clik.newPhoto({"id":7275776,"src":"Cowfold__Henfield_Dec_3rd_frame_thumb.jpg","galleries_id":393474,"server_id":15,"link":"photo_7275776.html","width":130,"caption":"","height":92});
															thumbnails[8022747] = clik.newPhoto({"id":8022747,"src":"goodwood_2009_header_bwt_small_thumb.jpg","galleries_id":272700,"server_id":15,"link":"photo_8022747.html","width":130,"caption":"GOODWOOD 2009 HEADER","height":98});
															thumbnails[8022868] = clik.newPhoto({"id":8022868,"src":"bst_2010_header_bwt_small_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_8022868.html","width":130,"caption":"BRIGHTON SPEED TRIAL HEADER","height":98});
															thumbnails[8022964] = clik.newPhoto({"id":8022964,"src":"header_cowfold_small_1100__800_thumb.jpg","galleries_id":349119,"server_id":15,"link":"photo_8022964.html","width":130,"caption":"COWFOLD AERIAL HEADER ","height":98});
															thumbnails[8023045] = clik.newPhoto({"id":8023045,"src":"header_CLASSIC_CAR__small_1100__800_thumb.jpg","galleries_id":345598,"server_id":15,"link":"photo_8023045.html","width":130,"caption":"header classic cars","height":98});
															thumbnails[8023763] = clik.newPhoto({"id":8023763,"src":"header_square_breitling_ww_small_1100__800_thumb.jpg","galleries_id":430919,"server_id":15,"link":"photo_8023763.html","width":130,"caption":"Header Breitling Wing Walkers","height":130});
															thumbnails[8023798] = clik.newPhoto({"id":8023798,"src":"header_3_bridges_square_template_small_1100__1100_thumb.jpg","galleries_id":416870,"server_id":15,"link":"photo_8023798.html","width":130,"caption":" 3 Bridges header image ","height":130});
															thumbnails[8027901] = clik.newPhoto({"id":8027901,"src":"header_pano_alburgh_beach__small_1100__800_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_8027901.html","width":130,"caption":"alburgh beach header ","height":56});
															thumbnails[8039190] = clik.newPhoto({"id":8039190,"src":"header_historic_motorpsport_small_1100__800_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_8039190.html","width":130,"caption":"MOTORSPORT HISTORICS","height":98});
															thumbnails[8039249] = clik.newPhoto({"id":8039249,"src":"header_LANDSCAPE_COLLECTION_small_1100__8001_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_8039249.html","width":130,"caption":"LANDSCAPE  GALLERY HEADER","height":98});
															thumbnails[8039259] = clik.newPhoto({"id":8039259,"src":"header_DUNGENESS_LANDSCAPE_COLLECTION_small_1100__800_thumb.jpg","galleries_id":422690,"server_id":15,"link":"photo_8039259.html","width":130,"caption":"DUNGENESS LANDSCAPE COLLECTION","height":98});
															thumbnails[8039535] = clik.newPhoto({"id":8039535,"src":"header_MACKINTOSH__small_1100__800_thumb.jpg","galleries_id":424053,"server_id":15,"link":"photo_8039535.html","width":130,"caption":"CR MACKINTOSH HILL HOUSE","height":98});
															thumbnails[8170896] = clik.newPhoto({"id":8170896,"src":"Knepp_Castle_Concert_Elkie_Brooks-1_thumb.jpg","galleries_id":436413,"server_id":15,"link":"photo_8170896.html","width":130,"caption":"Elkie Brooks","height":80});
															thumbnails[8673689] = clik.newPhoto({"id":8673689,"src":"Autumn__Winter-1_thumb.jpg","galleries_id":457770,"server_id":15,"link":"photo_8673689.html","width":130,"caption":"shermanbury dawn mists","height":49});
															thumbnails[6189491] = clik.newPhoto({"id":6189491,"src":"VSCC_Meet_June-3428-Edit12_thumb.jpg","galleries_id":345598,"server_id":15,"link":"photo_6189491.html","width":130,"caption":"Bentley 3 litre","height":125});
															thumbnails[4707206] = clik.newPhoto({"id":4707206,"src":"RWCS__Brighton_Gallery_Page_Sprint_jpg_thumb.jpg","galleries_id":270685,"server_id":15,"link":"photo_4707206.html","width":130,"caption":"Brighton Speed Trial Gallery Picture","height":88});
															thumbnails[4710321] = clik.newPhoto({"id":4710321,"src":"AC_Cobra_September_2009_Brighton_ST_bw_small_thumb.jpg","galleries_id":270685,"server_id":15,"link":"photo_4710321.html","width":130,"caption":"Speed Trial 2009 Gallery<br>\r\n","height":113});
															thumbnails[7703160] = clik.newPhoto({"id":7703160,"src":"wineham_thumb.jpg","galleries_id":416870,"server_id":15,"link":"photo_7703160.html","width":130,"caption":"Wineham","height":55});
															thumbnails[7703164] = clik.newPhoto({"id":7703164,"src":"MOCKBRIDGE_thumb.jpg","galleries_id":416870,"server_id":15,"link":"photo_7703164.html","width":130,"caption":"Mockbridge ","height":60});
															thumbnails[7703168] = clik.newPhoto({"id":7703168,"src":"lock_bridge_thumb.jpg","galleries_id":416870,"server_id":15,"link":"photo_7703168.html","width":130,"caption":"Lock Bridge West Adur ","height":61});
															thumbnails[4043271] = clik.newPhoto({"id":4043271,"src":"RWCS__1_of_4812_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043271.html","width":130,"caption":"Helifly Robinson R44","height":102});
															thumbnails[4218309] = clik.newPhoto({"id":4218309,"src":"RWCS_Aerial__portfolio_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218309.html","width":130,"caption":"Brighton and Hove ","height":67});
															thumbnails[4218331] = clik.newPhoto({"id":4218331,"src":"RWCS_Aerial__portfolio-3_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218331.html","width":130,"caption":"Brighton Pier","height":83});
															thumbnails[4325980] = clik.newPhoto({"id":4325980,"src":"20081206-_DSC1432_print-Edit_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4325980.html","width":130,"caption":"Balcombe Viaduct Sussex","height":53});
															thumbnails[4707122] = clik.newPhoto({"id":4707122,"src":"_DSC0801-2_thumb.jpg","galleries_id":270685,"server_id":15,"link":"photo_4707122.html","width":130,"caption":"Ac Cobra # 150","height":86});
															thumbnails[4109176] = clik.newPhoto({"id":4109176,"src":"RWCS_portfolio-62_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109176.html","width":130,"caption":"Garden Scene: Sussex ","height":98});
															thumbnails[4109150] = clik.newPhoto({"id":4109150,"src":"RWCS_portfolio-25_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109150.html","width":130,"caption":"Jack and Jill Windmill in Snow ","height":176});
															thumbnails[3993968] = clik.newPhoto({"id":3993968,"src":"20080415bw243_small_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_3993968.html","width":130,"caption":"Fishing Hut ","height":98});
															thumbnails[4061486] = clik.newPhoto({"id":4061486,"src":"events-5_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061486.html","width":130,"caption":5.0,"height":98});
															thumbnails[4061527] = clik.newPhoto({"id":4061527,"src":"events-14_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4061527.html","width":130,"caption":"Jacky Oliver's GT40 ","height":98});
															thumbnails[4094477] = clik.newPhoto({"id":4094477,"src":"events-10_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4094477.html","width":130,"caption":"Ferrari P4","height":98});
															thumbnails[4094839] = clik.newPhoto({"id":4094839,"src":"RWCS_Seascape-8_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094839.html","width":130,"caption":"Sunset Brighton Pier & Starlings ","height":72});
															thumbnails[4094842] = clik.newPhoto({"id":4094842,"src":"RWCS_Seascape-12_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094842.html","width":130,"caption":"Cuckmere Haven & Seven Sisters ","height":98});
															thumbnails[4109113] = clik.newPhoto({"id":4109113,"src":"RWCS_Seascape-1_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4109113.html","width":130,"caption":"Fishing Boat Dungeness Beach","height":98});
															thumbnails[4109138] = clik.newPhoto({"id":4109138,"src":"RWCS_portfolio-121_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109138.html","width":130,"caption":"South down poppies","height":87});
															thumbnails[4109182] = clik.newPhoto({"id":4109182,"src":"RWCS_portfolio-41_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109182.html","width":130,"caption":"Old Lifeboat Station ","height":96});
															thumbnails[4109187] = clik.newPhoto({"id":4109187,"src":"RWCS_portfolio-93_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4109187.html","width":130,"caption":"The beach","height":98});
															thumbnails[4141200] = clik.newPhoto({"id":4141200,"src":"montage_classic_1960_bw_thumb.jpg","galleries_id":247669,"server_id":15,"link":"photo_4141200.html","width":130,"caption":"Classic Cars from the 60s & 70s","height":104});
															thumbnails[4141335] = clik.newPhoto({"id":4141335,"src":"montage_aston_martin_thumb.jpg","galleries_id":247669,"server_id":15,"link":"photo_4141335.html","width":130,"caption":"Vintage Aston Martin","height":104});
															thumbnails[4218307] = clik.newPhoto({"id":4218307,"src":"RWCS_Aerial__portfolio-2-2_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218307.html","width":130,"caption":"Shoreham Harbour Entrance","height":84});
															thumbnails[4218347] = clik.newPhoto({"id":4218347,"src":"RWCS_Aerial__portfolio-6_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218347.html","width":130,"caption":"Brighton and Hove looking East","height":67});
															thumbnails[4218351] = clik.newPhoto({"id":4218351,"src":"RWCS_Aerial__portfolio-2_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218351.html","width":130,"caption":"Shoreham","height":88});
															thumbnails[4218378] = clik.newPhoto({"id":4218378,"src":"RWCS_Aerial__portfolio-5_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218378.html","width":130,"caption":"Brighton Pier from above high","height":67});
															thumbnails[4218448] = clik.newPhoto({"id":4218448,"src":"RWCS_Aerial__portfolio-7_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218448.html","width":130,"caption":"Brighton from on high","height":85});
															thumbnails[4218458] = clik.newPhoto({"id":4218458,"src":"RWCS_Aerial__portfolio-7206630_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218458.html","width":130,"caption":"Jack and Jill Windmill on the Sussex Downs ","height":79});
															thumbnails[4042822] = clik.newPhoto({"id":4042822,"src":"RWCS__2_of_4812_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4042822.html","width":130,"caption":"Sussex Downs ","height":98});
															thumbnails[4094478] = clik.newPhoto({"id":4094478,"src":"events-7_thumb.jpg","galleries_id":237514,"server_id":15,"link":"photo_4094478.html","width":130,"caption":"events-7","height":68});
															thumbnails[4109120] = clik.newPhoto({"id":4109120,"src":"RWCS_portfolio-2_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109120.html","width":130,"caption":"Spring burst","height":98});
															thumbnails[4109151] = clik.newPhoto({"id":4109151,"src":"RWCS_portfolio-4_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109151.html","width":130,"caption":"Woodlands","height":173});
															thumbnails[4141348] = clik.newPhoto({"id":4141348,"src":"portfolio_thumb.jpg","galleries_id":247669,"server_id":15,"link":"photo_4141348.html","width":130,"caption":"Garden Scenes","height":104});
															thumbnails[5008429] = clik.newPhoto({"id":5008429,"src":"20081206-_DSC1432_print-Edit_A0D4A4AD-1D09-001F-99749F0BD95835AA_thumb.jpg","galleries_id":403620,"server_id":15,"link":"photo_5008429.html","width":130,"caption":"Balcombe Viaduct Early Morning","height":53});
															thumbnails[4218453] = clik.newPhoto({"id":4218453,"src":"RWCS_Aerial__portfolio-8_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218453.html","width":130,"caption":"Beachy Head","height":65});
															thumbnails[4218465] = clik.newPhoto({"id":4218465,"src":"RWCS_Aerial__portfolio-7206948_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218465.html","width":130,"caption":"Brighton Harbour","height":63});
															thumbnails[4218468] = clik.newPhoto({"id":4218468,"src":"RWCS_Aerial__portfolio-7206829_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4218468.html","width":130,"caption":"Cuckmere and Seaford","height":173});
															thumbnails[4043345] = clik.newPhoto({"id":4043345,"src":"RWCS__7_of_48_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043345.html","width":130,"caption":"Seven sisters","height":86});
															thumbnails[4109131] = clik.newPhoto({"id":4109131,"src":"RWCS_portfolio-11_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109131.html","width":130,"caption":"Face sculpture","height":98});
															thumbnails[4109152] = clik.newPhoto({"id":4109152,"src":"RWCS_portfolio-5_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109152.html","width":130,"caption":"Dungeness","height":98});
															thumbnails[4043268] = clik.newPhoto({"id":4043268,"src":"RWCS__5_of_48123_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043268.html","width":130,"caption":"Beachy Head ","height":65});
															thumbnails[4043346] = clik.newPhoto({"id":4043346,"src":"RWCS__8_of_48_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043346.html","width":130,"caption":"Cuckmere Haven Sussex","height":98});
															thumbnails[4094479] = clik.newPhoto({"id":4094479,"src":"RWCS_Seascape-2_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094479.html","width":130,"caption":"Old railway tracks","height":98});
															thumbnails[4109132] = clik.newPhoto({"id":4109132,"src":"RWCS_portfolio-12_thumb.jpg","galleries_id":237379,"server_id":15,"link":"photo_4109132.html","width":130,"caption":"Dragonfly sculptures","height":98});
															thumbnails[4109153] = clik.newPhoto({"id":4109153,"src":"RWCS_Seascape-111_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4109153.html","width":130,"caption":"Boat","height":98});
															thumbnails[4141315] = clik.newPhoto({"id":4141315,"src":"old_incorrig_montage_thumb.jpg","galleries_id":247669,"server_id":15,"link":"photo_4141315.html","width":130,"caption":"Southampton football day","height":109});
															thumbnails[4043343] = clik.newPhoto({"id":4043343,"src":"RWCS__10_of_48_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043343.html","width":130,"caption":"Newhaven Sussex ","height":98});
															thumbnails[4043347] = clik.newPhoto({"id":4043347,"src":"RWCS__9_of_48_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043347.html","width":130,"caption":"RWCS  (9 of 48)","height":98});
															thumbnails[4094480] = clik.newPhoto({"id":4094480,"src":"RWCS_Seascape-3_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094480.html","width":130,"caption":"Birling Gap","height":101});
															thumbnails[4109154] = clik.newPhoto({"id":4109154,"src":"RWCS_Seascape-212_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4109154.html","width":130,"caption":"Old railway tracks","height":98});
															thumbnails[4043269] = clik.newPhoto({"id":4043269,"src":"RWCS__6_of_48_thumb.jpg","galleries_id":238643,"server_id":15,"link":"photo_4043269.html","width":130,"caption":"Cuckmere Haven Sussex","height":212});
															thumbnails[4094481] = clik.newPhoto({"id":4094481,"src":"RWCS_Seascape-5_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4094481.html","width":130,"caption":"Lighthouse","height":173});
															thumbnails[4109158] = clik.newPhoto({"id":4109158,"src":"RWCS_Seascape-4_thumb.jpg","galleries_id":237380,"server_id":15,"link":"photo_4109158.html","width":130,"caption":"Seven Sisters","height":98});
															thumbnails[5196335] = clik.newPhoto({"id":5196335,"src":"header_baja_1000_small_1100__800_thumb.jpg","galleries_id":293348,"server_id":15,"link":"photo_5196335.html","width":130,"caption":"RWCS Baja 1000 2009","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[457770] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Autumn  & Winter Collection 2011","link":"gallery_457770.html","maxRecords":0.0,"photoIDs":[8673689.0],"skipIndex":0,"section_code":"gallery","featured_images":8673689.0,"id":457770,"singleSection":false});				  						galleries[447116] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Brighton Speed Trials ","link":"gallery_447116.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":447116,"singleSection":false});				  						galleries[449697] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Goodwood Revival 2011","link":"gallery_449697.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":449697,"singleSection":false});				  						galleries[416870] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"On the Bridge 2011","link":"gallery_416870.html","maxRecords":0.0,"photoIDs":[8023798.0,7703160.0,7703164.0,7703168.0],"skipIndex":0,"section_code":"gallery","featured_images":"8023798,7703168,7703164,7703160","id":416870,"singleSection":false});				  						galleries[403620] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Balcombe Viaduct Sussex","link":"gallery_403620.html","maxRecords":0.0,"photoIDs":[5008429.0],"skipIndex":0,"section_code":"gallery","featured_images":5008429.0,"id":403620,"singleSection":false});				  						galleries[422690] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"DUNGENESS","link":"gallery_422690.html","maxRecords":0.0,"photoIDs":[8039259.0],"skipIndex":0,"section_code":"gallery","featured_images":8039259.0,"id":422690,"singleSection":false});				  						galleries[436413] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Elkie Brooks Knepp Castle July 2011","link":"gallery_436413.html","maxRecords":0.0,"photoIDs":[8170896.0],"skipIndex":0,"section_code":"gallery","featured_images":8170896.0,"id":436413,"singleSection":false});				  						galleries[447122] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Gurston Down Hill Climb 2011","link":"gallery_447122.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":447122,"singleSection":false});				  						galleries[293348] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"BAJA  1000 2009","link":"gallery_293348.html","maxRecords":0.0,"photoIDs":[5196335.0],"skipIndex":0,"section_code":"gallery","featured_images":5196335.0,"id":293348,"singleSection":false});				  						galleries[345598] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Classic sports & Vintage cars","link":"gallery_345598.html","maxRecords":0.0,"photoIDs":[8023045.0,6189491.0],"skipIndex":0,"section_code":"gallery","featured_images":"8023045,6189491","id":345598,"singleSection":false});				  						galleries[436788] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Cowfold Fete 2011","link":"gallery_436788.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":436788,"singleSection":false});				  						galleries[368252] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Goodwood Revival 2010","link":"gallery_368252.html","maxRecords":0.0,"photoIDs":[4061574.0],"skipIndex":0,"section_code":"gallery","featured_images":4061574.0,"id":368252,"singleSection":false});				  						galleries[424053] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Mackintosh Architecture : Hill House","link":"gallery_424053.html","maxRecords":0.0,"photoIDs":[8039535.0],"skipIndex":0,"section_code":"gallery","featured_images":8039535.0,"id":424053,"singleSection":false});				  						galleries[237514] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"Motorsport","link":"gallery_237514.html","maxRecords":0.0,"photoIDs":[3929343.0,4061283.0,4061284.0,4061488.0,4061489.0,4061522.0,4061523.0,4061525.0,4061526.0,4061528.0,4061529.0,4061553.0,4061556.0,4061558.0,4061559.0,4061560.0,4061561.0,4061562.0,4061564.0,4061565.0,4061567.0,4061568.0,4061570.0,4061573.0,4061576.0,4061579.0,8022868.0,8039190.0,4061486.0,4061527.0,4094477.0,4094478.0],"skipIndex":0,"section_code":"gallery","featured_images":"8039190,3929343","id":237514,"singleSection":false});				  						galleries[325115] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"Pasta Italia Horsham : Ferrari","link":"gallery_325115.html","maxRecords":0.0,"photoIDs":[5740168.0],"skipIndex":0,"section_code":"gallery","featured_images":5740168.0,"id":325115,"singleSection":false});				  						galleries[342444] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"RWCS @ Leonardslee 2010","link":"gallery_342444.html","maxRecords":0.0,"photoIDs":[6109238.0],"skipIndex":0,"section_code":"gallery","featured_images":6109238.0,"id":342444,"singleSection":false});				  						galleries[393474] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"RWCS winter landscapes 2010","link":"gallery_393474.html","maxRecords":0.0,"photoIDs":[7275776.0],"skipIndex":0,"section_code":"gallery","featured_images":7275776.0,"id":393474,"singleSection":false});				  						galleries[430919] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"Breitling Wing Walkers ","link":"gallery_430919.html","maxRecords":0.0,"photoIDs":[8023763.0],"skipIndex":0,"section_code":"gallery","featured_images":8023763.0,"id":430919,"singleSection":false});				  						galleries[349119] = clik.newGallery({"parentGallery":241530,"usePopups":true,"title":"Cowfold Aerial ","link":"gallery_349119.html","maxRecords":0.0,"photoIDs":[8022964.0],"skipIndex":0,"section_code":"gallery","featured_images":8022964.0,"id":349119,"singleSection":false});				  						galleries[380175] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Veteran Car Event :  LBVCR 2010","link":"gallery_380175.html","maxRecords":0.0,"photoIDs":[7021550.0],"skipIndex":0,"section_code":"gallery","featured_images":7021550.0,"id":380175,"singleSection":false});				  						galleries[251192] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"Cowfold Village Fete 2010","link":"gallery_251192.html","maxRecords":0.0,"photoIDs":[4239875.0],"skipIndex":0,"section_code":"gallery","featured_images":4239875.0,"id":251192,"singleSection":false});				  						galleries[270685] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"Brighton Speed Trials 2009","link":"gallery_270685.html","maxRecords":0.0,"photoIDs":[4707472.0,4707206.0,4710321.0,4707122.0],"skipIndex":0,"section_code":"gallery","featured_images":"4710321,4707206","id":270685,"singleSection":false});				  						galleries[272700] = clik.newGallery({"parentGallery":251200,"usePopups":true,"title":"Goodwood Revival 2009","link":"gallery_272700.html","maxRecords":0.0,"photoIDs":[8022747.0],"skipIndex":0,"section_code":"gallery","featured_images":8022747.0,"id":272700,"singleSection":false});				  						galleries[241523] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Landscapes","link":"gallery_241523.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":8039249.0,"id":241523,"singleSection":false});				  						galleries[237379] = clik.newGallery({"parentGallery":241523,"usePopups":true,"title":"Sussex","link":"gallery_237379.html","maxRecords":0.0,"photoIDs":[3994026.0,3994033.0,3994075.0,4109126.0,4109127.0,4109129.0,4109133.0,4109135.0,4109136.0,4109137.0,4109174.0,8039249.0,4325980.0,4109176.0,4109150.0,3993968.0,4109138.0,4109182.0,4109120.0,4109151.0,4109131.0,4109152.0,4109132.0],"skipIndex":0,"section_code":"gallery","featured_images":8039249.0,"id":237379,"singleSection":false});				  						galleries[237380] = clik.newGallery({"parentGallery":241526,"usePopups":true,"title":"Coastal","link":"gallery_237380.html","maxRecords":0.0,"photoIDs":[3929364.0,3994597.0,3994659.0,4094834.0,4094836.0,4094840.0,4094844.0,4094845.0,8027901.0,4094839.0,4094842.0,4109113.0,4109187.0,4094479.0,4109153.0,4094480.0,4109154.0,4094481.0,4109158.0],"skipIndex":0,"section_code":"gallery","featured_images":"8027901,3929364","id":237380,"singleSection":false});				  						galleries[241526] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Seascapes","link":"gallery_241526.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8027901,3929364","id":241526,"singleSection":false});				  						galleries[238643] = clik.newGallery({"parentGallery":241530,"usePopups":true,"title":"Sussex Coast - Aerial","link":"gallery_238643.html","maxRecords":0.0,"photoIDs":[3934542.0,4043271.0,4218309.0,4218331.0,4218307.0,4218347.0,4218351.0,4218378.0,4218448.0,4218458.0,4042822.0,4218453.0,4218465.0,4218468.0,4043345.0,4043268.0,4043346.0,4043343.0,4043347.0,4043269.0],"skipIndex":0,"section_code":"gallery","featured_images":"4218331,4043271,3934542","id":238643,"singleSection":false});				  						galleries[241530] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Aerial","link":"gallery_241530.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8022964,4218331,4043271,3934542","id":241530,"singleSection":false});				  						galleries[251200] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Events","link":"gallery_251200.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8039190,8023763,8022747,5740168,5196335,4710321,4707206,4239875,3929343","id":251200,"singleSection":false});				  						galleries[247669] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Photograph Montages","link":"gallery_247669.html","maxRecords":0.0,"photoIDs":[4141130.0,4141200.0,4141335.0,4141348.0,4141315.0],"skipIndex":0,"section_code":"gallery","featured_images":4141130.0,"id":247669,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8039535,8039384,8039259,8039249,8039190,8039110,8039024,8027901,8027446,8023798,8023763,8023421,8023208,8023045,8022964,8022868,8022747,8022591,8022587,5196335';
imageSets[2] = '8170896,8039535,8039259,8039249,8039190,8027901,8023798,8023763,8023045,8022964,8022747,7275776,7021550,6109238,5740168,4239875,4141130,4061574,3934542,3929364,3929343,8673689,7703160,6189491,4710321,4707206,7703164,7703168,4218331,4043271,5196335';
imageSets[3] = '8039535,8039384,8039259,8039249,8039190,8039110,8039024,8027901,8023763,8023421,8023208,8023045,8022964,8022868,8022747,8022591,8022587,7703160,4218331';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/RWCS/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/RWCS/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/RWCS/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/RWCS/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/RWCS/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/RWCS/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/RWCS/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/RWCS/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 = ': ' + 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>Robin Wilson </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="RWCS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

