window.thumbnails = {};
															thumbnails[6807754] = clik.newPhoto({"id":6807754,"src":"20100109-Clickpic-7_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807754.html","width":130,"caption":"Tricolour","height":106});
															thumbnails[6808157] = clik.newPhoto({"id":6808157,"src":"20100303-Clickpic-1_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808157.html","width":130,"caption":"Journey ","height":98});
															thumbnails[6808169] = clik.newPhoto({"id":6808169,"src":"20100303-Clickpic-2_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808169.html","width":130,"caption":"Dilemma - to Practice or Relax?","height":160});
															thumbnails[6808174] = clik.newPhoto({"id":6808174,"src":"20100303-Clickpic-3_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808174.html","width":130,"caption":"Post Impression","height":93});
															thumbnails[6808200] = clik.newPhoto({"id":6808200,"src":"20100303-Clickpic-4_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808200.html","width":130,"caption":"Little & Large","height":87});
															thumbnails[6808207] = clik.newPhoto({"id":6808207,"src":"20100303-Clickpic-6_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808207.html","width":130,"caption":"The Triangle","height":174});
															thumbnails[6808210] = clik.newPhoto({"id":6808210,"src":"20100303-Clickpic-7_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808210.html","width":130,"caption":"Lobster Pots - Bude","height":89});
															thumbnails[6808212] = clik.newPhoto({"id":6808212,"src":"20100303-Clickpic-8_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808212.html","width":130,"caption":"Lovejoy & Partner","height":93});
															thumbnails[6808246] = clik.newPhoto({"id":6808246,"src":"20100303-Clickpic-9_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808246.html","width":130,"caption":"Candle Glow","height":90});
															thumbnails[6808337] = clik.newPhoto({"id":6808337,"src":"20100121-Clickpic-4_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808337.html","width":130,"caption":"Tunnel Vision","height":99});
															thumbnails[6808395] = clik.newPhoto({"id":6808395,"src":"20071118-Clickpic-1_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808395.html","width":130,"caption":"Lonely Gull","height":90});
															thumbnails[6808401] = clik.newPhoto({"id":6808401,"src":"20091009-Clickpic-2_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808401.html","width":130,"caption":"Trapped in a Glass Lift","height":99});
															thumbnails[6808457] = clik.newPhoto({"id":6808457,"src":"20091017-Clickpic-3_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808457.html","width":130,"caption":"Autumn Reflection","height":68});
															thumbnails[6808466] = clik.newPhoto({"id":6808466,"src":"20100206-Clickpic-5_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808466.html","width":130,"caption":"Night Walkers","height":99});
															thumbnails[6808507] = clik.newPhoto({"id":6808507,"src":"20100414-Clickpic-6_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808507.html","width":130,"caption":"Ochre Lines Oban","height":99});
															thumbnails[6808520] = clik.newPhoto({"id":6808520,"src":"20100414-Clickpic-7_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808520.html","width":130,"caption":"Aberglasney","height":164});
															thumbnails[6808523] = clik.newPhoto({"id":6808523,"src":"20100414-Clickpic-8_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808523.html","width":130,"caption":"Flamingos Reality & Dreams","height":142});
															thumbnails[6808525] = clik.newPhoto({"id":6808525,"src":"20100425-Clickpic-9_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6808525.html","width":130,"caption":"Chrome","height":88});
															thumbnails[7043452] = clik.newPhoto({"id":7043452,"src":"1st_Cumulus_by_Mick_Wells1_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043452.html","width":130,"caption":"Cumulus","height":63});
															thumbnails[7043455] = clik.newPhoto({"id":7043455,"src":"2nd_The_Ploughman_by_Richard_Burston1_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043455.html","width":130,"caption":"The Ploughman","height":170});
															thumbnails[7043463] = clik.newPhoto({"id":7043463,"src":"3rd_Posbury_by_Mick_Wells_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043463.html","width":130,"caption":"Posbury","height":61});
															thumbnails[7043465] = clik.newPhoto({"id":7043465,"src":"1st_Follow_Me_by_Mick_Wells1_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043465.html","width":130,"caption":"Follow Me","height":60});
															thumbnails[7043469] = clik.newPhoto({"id":7043469,"src":"2nd_Spring_Bouquet_by_Peter_Budd1_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043469.html","width":130,"caption":"Spring Bouquet","height":188});
															thumbnails[7043474] = clik.newPhoto({"id":7043474,"src":"3rd_Clearing_Mist_by_Norman_Hedge_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043474.html","width":130,"caption":"Clearing Mist","height":64});
															thumbnails[7043476] = clik.newPhoto({"id":7043476,"src":"1st_Seal_Bay_8-14pm_by_Mick_Wells_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043476.html","width":130,"caption":"Seal Bay","height":99});
															thumbnails[7043480] = clik.newPhoto({"id":7043480,"src":"2nd_Belstone_Sunset_by_Paul_McLoughlin_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043480.html","width":130,"caption":"Belstone Sunset","height":60});
															thumbnails[7043484] = clik.newPhoto({"id":7043484,"src":"3rd_Spiral_by_Cyril_Chudley_thumb.jpg","galleries_id":381328,"server_id":5,"link":"photo_7043484.html","width":130,"caption":"Spiral","height":177});
															thumbnails[7213140] = clik.newPhoto({"id":7213140,"src":"1st_CP_Stenness_Shetland_-_Mick_Wells_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213140.html","width":130,"caption":"Stenness Shetland","height":35});
															thumbnails[7213141] = clik.newPhoto({"id":7213141,"src":"2nd_CP_South_Light_Lundy_-_Marion_Pollinger_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213141.html","width":130,"caption":"South Light Lundy","height":45});
															thumbnails[7213142] = clik.newPhoto({"id":7213142,"src":"3rd_Eye_Of_The_Needle_-_Ian_Millar_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213142.html","width":130,"caption":" Eye Of The Needle","height":130});
															thumbnails[7213143] = clik.newPhoto({"id":7213143,"src":"1st_MP_Eve_in_the_Shadows_-_Norman_Hedge_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213143.html","width":130,"caption":"Eve in the Shadows","height":116});
															thumbnails[7213145] = clik.newPhoto({"id":7213145,"src":"2nd_MP_Gaudis_daylight_-_Diane_Silcock_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213145.html","width":130,"caption":"Gaudi's daylight","height":172});
															thumbnails[7213147] = clik.newPhoto({"id":7213147,"src":"3rd_MP_Windswept_-_Paul_McGloughlin_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213147.html","width":130,"caption":" Windswept","height":75});
															thumbnails[7213148] = clik.newPhoto({"id":7213148,"src":"1st_DI_Honningsvag_-_Marion_Pollinger_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213148.html","width":130,"caption":"Honningsvag","height":91});
															thumbnails[7213149] = clik.newPhoto({"id":7213149,"src":"2nd_DI_Eye_Ball_-_Paul_McGloughlin_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213149.html","width":130,"caption":"Eyeball","height":89});
															thumbnails[7213150] = clik.newPhoto({"id":7213150,"src":"3rd_DI_Calatravas_Creation_Valencia_-_Paul_McGloughlin_thumb.jpg","galleries_id":389826,"server_id":5,"link":"photo_7213150.html","width":130,"caption":"Calatrava's Creation, Valencia ","height":54});
															thumbnails[7619568] = clik.newPhoto({"id":7619568,"src":"Ice_spikes1_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619568.html","width":130,"caption":"Ice Spikes","height":162});
															thumbnails[7619570] = clik.newPhoto({"id":7619570,"src":"The_Thatchers_Bike_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619570.html","width":130,"caption":"The Thatchers Bike","height":88});
															thumbnails[7619573] = clik.newPhoto({"id":7619573,"src":"The_Forge_Morchard_Bishop_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619573.html","width":130,"caption":"The Forge, Morchard Bishop","height":105});
															thumbnails[7619577] = clik.newPhoto({"id":7619577,"src":"earsary_cove_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619577.html","width":130,"caption":"Earsary Cove","height":85});
															thumbnails[7619585] = clik.newPhoto({"id":7619585,"src":"The_Rugmaker_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619585.html","width":130,"caption":"Rugmaker","height":186});
															thumbnails[7619592] = clik.newPhoto({"id":7619592,"src":"Quarry_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619592.html","width":130,"caption":"Quarry","height":172});
															thumbnails[7619601] = clik.newPhoto({"id":7619601,"src":"213_18_Knowing_The_Ropes_Tall_Ships_Falmouth_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619601.html","width":130,"caption":"Knowing The Ropes","height":98});
															thumbnails[7619626] = clik.newPhoto({"id":7619626,"src":"238_23_-_Grungy_boat_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619626.html","width":130,"caption":"Grungy Boat","height":98});
															thumbnails[7619636] = clik.newPhoto({"id":7619636,"src":"222_23_-_Early_morning_at_Uton_thumb.jpg","galleries_id":413139,"server_id":5,"link":"photo_7619636.html","width":130,"caption":"Early Morning at Uton","height":97});
															thumbnails[8654530] = clik.newPhoto({"id":8654530,"src":"4160_800px_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8654530.html","width":130,"caption":4160.0,"height":116});
															thumbnails[8654533] = clik.newPhoto({"id":8654533,"src":"Thecontortionist_800px_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8654533.html","width":130,"caption":"The Contortionist","height":173});
															thumbnails[8654537] = clik.newPhoto({"id":8654537,"src":"TheOilyRag_800px_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8654537.html","width":130,"caption":"The Oily Rag","height":98});
															thumbnails[8654538] = clik.newPhoto({"id":8654538,"src":"theenglishmissalatposbury_800px_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8654538.html","width":130,"caption":"The English missal at Posbury","height":98});
															thumbnails[8654539] = clik.newPhoto({"id":8654539,"src":"9Maidens_800px_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8654539.html","width":130,"caption":"9 Maidens","height":93});
															thumbnails[9064529] = clik.newPhoto({"id":9064529,"src":"Hard_RainSoftly_Falls_resized_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064529.html","width":130,"caption":"Hard Rain, Softly Falls","height":274});
															thumbnails[9064531] = clik.newPhoto({"id":9064531,"src":"whippet_in_the_waves_resized_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064531.html","width":130,"caption":"Whippet in the waves ","height":98});
															thumbnails[9064536] = clik.newPhoto({"id":9064536,"src":"Wet_Wet_Wet_Resized_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064536.html","width":130,"caption":"Wet, Wet, Wet","height":57});
															thumbnails[9064537] = clik.newPhoto({"id":9064537,"src":"Hardy_Folk_at_Woolacombe__thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064537.html","width":130,"caption":"Hardy Folk At Woolacombe","height":59});
															thumbnails[9064540] = clik.newPhoto({"id":9064540,"src":"Glad_to_be_away_from_this_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064540.html","width":130,"caption":"Glad To Be Away From This","height":100});
															thumbnails[9064541] = clik.newPhoto({"id":9064541,"src":"Gugenhiem_in_rain__thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064541.html","width":130,"caption":"Guggenhiem In Rain","height":128});
															thumbnails[9064556] = clik.newPhoto({"id":9064556,"src":"3_Wet_Gazanias_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064556.html","width":130,"caption":"Three Wet Gazanias","height":100});
															thumbnails[9064559] = clik.newPhoto({"id":9064559,"src":"More_like_a_speedboat_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064559.html","width":130,"caption":"More Like A Speedboat","height":92});
															thumbnails[9064561] = clik.newPhoto({"id":9064561,"src":"Umbrellas_in_Fog_thumb.jpg","galleries_id":478002,"server_id":5,"link":"photo_9064561.html","width":130,"caption":"Umbrellas In Fog","height":34});
															thumbnails[6807549] = clik.newPhoto({"id":6807549,"src":"09_11_Club_Competitions_0008_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807549.html","width":130,"caption":"Misty Dawn - One Horse","height":46});
															thumbnails[8654528] = clik.newPhoto({"id":8654528,"src":"443am_800px_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8654528.html","width":130,"caption":"4:43am - Fishing Boat Leaves The Harbour","height":98});
															thumbnails[8845578] = clik.newPhoto({"id":8845578,"src":"maisie_35mph_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845578.html","width":130,"caption":"Usain Bolt 23 MPH, Maisie 35 MPH","height":173});
															thumbnails[6807499] = clik.newPhoto({"id":6807499,"src":"06_07_Club_Competitions_0001_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807499.html","width":130,"caption":"Geese at Shobrooke Park","height":77});
															thumbnails[8845581] = clik.newPhoto({"id":8845581,"src":"Chip_off_the_new_block_Digi_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845581.html","width":130,"caption":"Chip Off The New Block","height":173});
															thumbnails[6807550] = clik.newPhoto({"id":6807550,"src":"09_08_Club_Competitions_0006_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807550.html","width":130,"caption":"Vulcan and Arrows","height":49});
															thumbnails[8845616] = clik.newPhoto({"id":8845616,"src":"Charmouth_on_a_wet__windy_day_digi_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845616.html","width":130,"caption":"Charmouth On A Wet And Windy Day","height":71});
															thumbnails[6807505] = clik.newPhoto({"id":6807505,"src":"09_07_Club_Competitions_0003_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807505.html","width":130,"caption":"Kitchen Window","height":245});
															thumbnails[8845634] = clik.newPhoto({"id":8845634,"src":"Now_watch_carefully_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845634.html","width":130,"caption":"Now Watch Carefully","height":104});
															thumbnails[6807545] = clik.newPhoto({"id":6807545,"src":"09_11_Club_Competitions_0009_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807545.html","width":130,"caption":"Misty Sunrise","height":149});
															thumbnails[8845672] = clik.newPhoto({"id":8845672,"src":"Sheer_Concentration_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845672.html","width":130,"caption":"Sheer Concentration","height":154});
															thumbnails[6807526] = clik.newPhoto({"id":6807526,"src":"09_08_Club_Competitions_0005_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807526.html","width":130,"caption":"Plymouth Fireworks Grand Prix","height":189});
															thumbnails[8845674] = clik.newPhoto({"id":8845674,"src":"17_EveBW_resize_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845674.html","width":130,"caption":"Eve","height":173});
															thumbnails[6807534] = clik.newPhoto({"id":6807534,"src":"09_11_Club_Competitions_0007_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807534.html","width":130,"caption":"Cones","height":154});
															thumbnails[8845691] = clik.newPhoto({"id":8845691,"src":"23_-_Pine_at_Loch_Maree_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845691.html","width":130,"caption":"Pine at Loch Maree","height":98});
															thumbnails[8855023] = clik.newPhoto({"id":8855023,"src":"224_17_Godrevy_Lights_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8855023.html","width":130,"caption":"Godrevy Lights","height":106});
															thumbnails[6807500] = clik.newPhoto({"id":6807500,"src":"08_10_Club_Competitions_0002_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807500.html","width":130,"caption":"Heron Take Off","height":258});
															thumbnails[8845695] = clik.newPhoto({"id":8845695,"src":"CPC_7_Hes_behind_you_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845695.html","width":130,"caption":"He's Behind You!","height":87});
															thumbnails[8855034] = clik.newPhoto({"id":8855034,"src":"218_23_Loch_Maree_from_Poolewe_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8855034.html","width":130,"caption":"Loch Maree From Poolewe","height":98});
															thumbnails[6807540] = clik.newPhoto({"id":6807540,"src":"09_08_Club_Competitions_0004_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807540.html","width":130,"caption":"Large White","height":99});
															thumbnails[8845699] = clik.newPhoto({"id":8845699,"src":"17_St_Michaels_Mount_thumb.jpg","galleries_id":465200,"server_id":5,"link":"photo_8845699.html","width":130,"caption":"St Michael's Mount","height":98});
															thumbnails[8855043] = clik.newPhoto({"id":8855043,"src":"228_23_Combine_at_Upton_Hellions_thumb.jpg","galleries_id":457030,"server_id":5,"link":"photo_8855043.html","width":130,"caption":"Combine At Upton Hellions","height":98});
															thumbnails[6807709] = clik.newPhoto({"id":6807709,"src":"20100109-Clickpic-1_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807709.html","width":130,"caption":"Contemplating ","height":151});
															thumbnails[6807730] = clik.newPhoto({"id":6807730,"src":"20100109-Clickpic-2_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807730.html","width":130,"caption":"Resting","height":152});
															thumbnails[6807740] = clik.newPhoto({"id":6807740,"src":"20100109-Clickpic-3_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807740.html","width":130,"caption":"Fox Cub","height":169});
															thumbnails[6807742] = clik.newPhoto({"id":6807742,"src":"20100109-Clickpic-4_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807742.html","width":130,"caption":"Corn Cob","height":176});
															thumbnails[6807745] = clik.newPhoto({"id":6807745,"src":"20100109-Clickpic-5_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807745.html","width":130,"caption":"Pink!","height":113});
															thumbnails[6807750] = clik.newPhoto({"id":6807750,"src":"20100109-Clickpic-6_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807750.html","width":130,"caption":"Posbury Clump","height":99});
															thumbnails[6807759] = clik.newPhoto({"id":6807759,"src":"20100109-Clickpic-8_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807759.html","width":130,"caption":"Lake at Sunset","height":99});
															thumbnails[6807767] = clik.newPhoto({"id":6807767,"src":"20100109-Clickpic-9_thumb.jpg","galleries_id":360034,"server_id":5,"link":"photo_6807767.html","width":130,"caption":"No Survivors","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[457030] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competition 1 - 2011-12 season","link":"gallery_457030.html","maxRecords":0.0,"photoIDs":[8654530.0,8654533.0,8654537.0,8654538.0,8654539.0,8654528.0,8855023.0,8855034.0,8855043.0],"skipIndex":0,"section_code":"gallery","featured_images":"8855043,8855034,8855023,8654539,8654538,8654537,8654533,8654530,8654528","id":457030,"singleSection":false});				  						galleries[478002] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competition 3 - 2011-12 season","link":"gallery_478002.html","maxRecords":0.0,"photoIDs":[9064529.0,9064531.0,9064536.0,9064537.0,9064540.0,9064541.0,9064556.0,9064559.0,9064561.0],"skipIndex":0,"section_code":"gallery","featured_images":"9064561,9064559,9064556,9064541,9064540,9064537,9064536,9064531,9064529","id":478002,"singleSection":false});				  						galleries[465200] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competition 2 - 2011-12 season","link":"gallery_465200.html","maxRecords":0.0,"photoIDs":[8845578.0,8845581.0,8845616.0,8845634.0,8845672.0,8845674.0,8845691.0,8845695.0,8845699.0],"skipIndex":0,"section_code":"gallery","featured_images":"8845699,8845695,8845691,8845674,8845672,8845634,8845616,8845581,8845578","id":465200,"singleSection":false});				  						galleries[465205] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2010-11 Season Competitions","link":"gallery_465205.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7619636,7619626,7619601,7619592,7619585,7619577,7619573,7619570,7619568,7213150","id":465205,"singleSection":false});				  						galleries[381328] = clik.newGallery({"parentGallery":465205,"usePopups":false,"title":"Competition One 2010-11","link":"gallery_381328.html","maxRecords":0.0,"photoIDs":[7043452.0,7043455.0,7043463.0,7043465.0,7043469.0,7043474.0,7043476.0,7043480.0,7043484.0],"skipIndex":0,"section_code":"gallery","featured_images":"7043484,7043480,7043476,7043474,7043469,7043465,7043463,7043455,7043452","id":381328,"singleSection":false});				  						galleries[389826] = clik.newGallery({"parentGallery":465205,"usePopups":false,"title":"Competition Two 2010-11 ","link":"gallery_389826.html","maxRecords":0.0,"photoIDs":[7213140.0,7213141.0,7213142.0,7213143.0,7213145.0,7213147.0,7213148.0,7213149.0,7213150.0],"skipIndex":0,"section_code":"gallery","featured_images":"7213150,7213149,7213148,7213147,7213145,7213143,7213142,7213141,7213140","id":389826,"singleSection":false});				  						galleries[413139] = clik.newGallery({"parentGallery":465205,"usePopups":false,"title":"Competition Three 2011","link":"gallery_413139.html","maxRecords":0.0,"photoIDs":[7619568.0,7619570.0,7619573.0,7619577.0,7619585.0,7619592.0,7619601.0,7619626.0,7619636.0],"skipIndex":0,"section_code":"gallery","featured_images":"7619636,7619626,7619601,7619592,7619585,7619577,7619573,7619570,7619568","id":413139,"singleSection":false});				  						galleries[360034] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2009-10 Season competitions ","link":"gallery_360034.html","maxRecords":0.0,"photoIDs":[6807754.0,6808157.0,6808169.0,6808174.0,6808200.0,6808207.0,6808210.0,6808212.0,6808246.0,6808337.0,6808395.0,6808401.0,6808457.0,6808466.0,6808507.0,6808520.0,6808523.0,6808525.0,6807549.0,6807499.0,6807550.0,6807505.0,6807545.0,6807526.0,6807534.0,6807500.0,6807540.0,6807709.0,6807730.0,6807740.0,6807742.0,6807745.0,6807750.0,6807759.0,6807767.0],"skipIndex":0,"section_code":"gallery","featured_images":"6808525,6808523,6808520,6808507,6808466,6808457,6808401,6808395,6808337,6808246","id":360034,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9064561,9064559,9064556,9064541,9064540,9064537,9064536,9064531,9064529,8855043,8855034,8855023,8845699,8845695,8845691,8845674,8845672,8845634,8845616,8845581,8845578,8654539,8654538,8654537,8654533,8654530,8654528,7619636,7619626,7619601,7619592,7619585,7619577,7619573,7619570,7619568,7213150,7213149,7213148,7213147,7213145,7213143,7213142,7213141,7213140,7043484,7043480,7043476,7043474,7043469';
imageSets[247469] = '9064561,9064559,9064556,9064541,9064540,9064536,9064531,9064529';
imageSets[3] = '9064561,9064559,9064556,9064541,9064540,9064537,9064536,9064531,9064529,8855043,8855034,8855023,8845699,8845695,8845691,8845674,8845672,8845634,8845616,8845581,8845578,8654539,8654538,8654537,8654533,8654530,8654528,7619636,7619626,7619601,7619592,7619585,7619577,7619573,7619570,7619568,7213150,7213149,7213148,7213147,7213145,7213143,7213142,7213141,7213140,7043484,7043480,7043476,7043474,7043469';
imageSets[246500] = '8654539,8654538,8654537,8654533,8654530,8654528,8855023,8855034,8855043';
imageSets[246466] = '8845578,8845581,8845616,8845634,8845672,8845674,8845691,8845695,8845699';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pollyp/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pollyp/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pollyp/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pollyp/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/pollyp/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/pollyp/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pollyp/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/pollyp/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 = 'Crediton Photography Club: ' + 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;
	}
}

			

