window.thumbnails = {};
															thumbnails[4558884] = clik.newPhoto({"id":4558884,"src":"SPS_Logo_only1_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":88});
															thumbnails[4558945] = clik.newPhoto({"id":4558945,"src":"WAV_Logo_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":71});
															thumbnails[4107288] = clik.newPhoto({"id":4107288,"src":"Tower_of_Steel_FP_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_4107288.html","width":130,"caption":"Tower of Steel - Royal Armouries, Leeds","height":87});
															thumbnails[4107318] = clik.newPhoto({"id":4107318,"src":"Meadow_Pipit_on_Foxglove_JH_thumb.jpg","galleries_id":113122,"server_id":18,"link":"photo_4107318.html","width":130,"caption":"Meadow Pipet on Foxglove","height":174});
															thumbnails[4457905] = clik.newPhoto({"id":4457905,"src":"Dales_Fence_FP_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_4457905.html","width":130,"caption":"Dales Fence","height":87});
															thumbnails[4457906] = clik.newPhoto({"id":4457906,"src":"Estuary_FP_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_4457906.html","width":130,"caption":"Estuary","height":87});
															thumbnails[4458350] = clik.newPhoto({"id":4458350,"src":"Fatal_Attraction_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_4458350.html","width":130,"caption":"Fatal Attraction","height":85});
															thumbnails[4458353] = clik.newPhoto({"id":4458353,"src":"Pulpit_-_Hallgrimskirkja_Church_Rekyavik_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4458353.html","width":130,"caption":"Pulpit - Hallgrimskirkja Church Rekyavik","height":201});
															thumbnails[4458517] = clik.newPhoto({"id":4458517,"src":"York_Quayside_-_sepia_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_4458517.html","width":130,"caption":"York Quayside - sepia","height":87});
															thumbnails[4458527] = clik.newPhoto({"id":4458527,"src":"The_Old_Barn_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4458527.html","width":130,"caption":"The Old Barn","height":75});
															thumbnails[4492378] = clik.newPhoto({"id":4492378,"src":"Cheetah_on_the_run_for_web_site_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492378.html","width":130,"caption":"Cheetah on the Move","height":82});
															thumbnails[4492381] = clik.newPhoto({"id":4492381,"src":"Martial_Eagle__with_catch_of_Monitor_Lizard_for_web_site_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492381.html","width":130,"caption":"Martial Eagle with catch of Monitor Lizard","height":85});
															thumbnails[4492387] = clik.newPhoto({"id":4492387,"src":"First_Cut_for_web_site_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492387.html","width":130,"caption":"First Cut","height":87});
															thumbnails[4492405] = clik.newPhoto({"id":4492405,"src":"GREAT_GREY_OWL_for_web_site_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492405.html","width":130,"caption":"Great Grey Owl (Strix Nebulosa) in Flight","height":86});
															thumbnails[4492411] = clik.newPhoto({"id":4492411,"src":"Goliath_Heron_for_web_site_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492411.html","width":130,"caption":"Goliath Heron (Audea Goliath)","height":182});
															thumbnails[4492528] = clik.newPhoto({"id":4492528,"src":"Korean_Lady_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492528.html","width":130,"caption":"Korean Lady","height":98});
															thumbnails[4492530] = clik.newPhoto({"id":4492530,"src":"Street_Protesters_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492530.html","width":130,"caption":"Street Protesters","height":98});
															thumbnails[4492534] = clik.newPhoto({"id":4492534,"src":"White_Cliffs_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4492534.html","width":130,"caption":"White Cliffs","height":98});
															thumbnails[4502272] = clik.newPhoto({"id":4502272,"src":"Killer_Queen_small_file_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4502272.html","width":130,"caption":"Killer Queen","height":170});
															thumbnails[4502279] = clik.newPhoto({"id":4502279,"src":"Damsel_Fly_small_file_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4502279.html","width":130,"caption":"Male Large Damsel-fly","height":112});
															thumbnails[4978167] = clik.newPhoto({"id":4978167,"src":"Compositers_Bench_Sepia_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_4978167.html","width":130,"caption":"Compositers Bench (Sepia)","height":81});
															thumbnails[4978204] = clik.newPhoto({"id":4978204,"src":"Dunes_Fence_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_4978204.html","width":130,"caption":"Dunes Fence","height":185});
															thumbnails[4978358] = clik.newPhoto({"id":4978358,"src":"Times_Square_impression_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_4978358.html","width":130,"caption":"Times Square impression","height":166});
															thumbnails[5003352] = clik.newPhoto({"id":5003352,"src":"Welsh_Valley_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_5003352.html","width":130,"caption":"Welsh Valley","height":81});
															thumbnails[5043981] = clik.newPhoto({"id":5043981,"src":"Beady_eye_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_5043981.html","width":130,"caption":"Beady eye","height":86});
															thumbnails[5043988] = clik.newPhoto({"id":5043988,"src":"Evening_at__thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_5043988.html","width":130,"caption":"Evening atmosphere","height":86});
															thumbnails[5483749] = clik.newPhoto({"id":5483749,"src":"Hawk_Owl_Swooping_on_Mouse_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_5483749.html","width":130,"caption":"Hawk Owl Swooping on Mouse","height":82});
															thumbnails[5483753] = clik.newPhoto({"id":5483753,"src":"On_a_Cold_and_Frosty_Morning_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_5483753.html","width":130,"caption":"On a Cold and Frosty Morning","height":58});
															thumbnails[5483758] = clik.newPhoto({"id":5483758,"src":"Death_Toll_thumb.jpg","galleries_id":113122,"server_id":18,"link":"photo_5483758.html","width":130,"caption":"Death Toll","height":122});
															thumbnails[6811716] = clik.newPhoto({"id":6811716,"src":"BAABRA_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6811716.html","width":130,"caption":"Baabra","height":87});
															thumbnails[6811801] = clik.newPhoto({"id":6811801,"src":"Pied_Kingfisher_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6811801.html","width":130,"caption":"Pied Kingfisher","height":103});
															thumbnails[6811932] = clik.newPhoto({"id":6811932,"src":"Charlie_Waves_Goodbye_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6811932.html","width":130,"caption":"Charlie Waves Goodbye","height":98});
															thumbnails[6812109] = clik.newPhoto({"id":6812109,"src":"Eye_of_Alhambra_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6812109.html","width":130,"caption":"Eye of Alhambra","height":98});
															thumbnails[6812112] = clik.newPhoto({"id":6812112,"src":"07_-_BLACK_BEAUTY_by_Frank_Page_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6812112.html","width":130,"caption":"Black Beauty","height":98});
															thumbnails[6812913] = clik.newPhoto({"id":6812913,"src":"Charles_Darwins_Hands_in_Marble_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6812913.html","width":130,"caption":"Charles Darwin's Hands in Marble","height":87});
															thumbnails[6812978] = clik.newPhoto({"id":6812978,"src":"Courting_Avacets_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6812978.html","width":130,"caption":"Courting Avocets","height":96});
															thumbnails[6813009] = clik.newPhoto({"id":6813009,"src":"Spooky_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6813009.html","width":130,"caption":"Spooky","height":98});
															thumbnails[6817942] = clik.newPhoto({"id":6817942,"src":"Young_Male_Grass_Snake_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6817942.html","width":130,"caption":"Young Male Grass Snake","height":90});
															thumbnails[6817976] = clik.newPhoto({"id":6817976,"src":"Part_of_Mechanism_of_Swiss_Pocket_Watch_Circa_1935_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6817976.html","width":130,"caption":"Part of Mechanism of Swiss Pocket Watch Circa 1935","height":87});
															thumbnails[6818010] = clik.newPhoto({"id":6818010,"src":"Harrier_Jet_Engine_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818010.html","width":130,"caption":"Harrier Jet Engine","height":99});
															thumbnails[6818143] = clik.newPhoto({"id":6818143,"src":"Detail_of_Rose_EH_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818143.html","width":130,"caption":"Detail of Rose 'E.H. Morse'","height":98});
															thumbnails[6818229] = clik.newPhoto({"id":6818229,"src":"Seaford_Chalets_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818229.html","width":130,"caption":"Seaford Chalets","height":98});
															thumbnails[6818275] = clik.newPhoto({"id":6818275,"src":"Osprey_Fishing_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818275.html","width":130,"caption":"Osprey Fishing","height":88});
															thumbnails[6818401] = clik.newPhoto({"id":6818401,"src":"Whats__for_Dinner_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818401.html","width":130,"caption":"What's for Dinner","height":98});
															thumbnails[6818666] = clik.newPhoto({"id":6818666,"src":"Biker_Boy_thumb.jpg","galleries_id":113122,"server_id":18,"link":"photo_6818666.html","width":130,"caption":"Biker Boy","height":98});
															thumbnails[6818670] = clik.newPhoto({"id":6818670,"src":"Dont_Go_by_Rail_or_Sea_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_6818670.html","width":130,"caption":"Don't Go By Rail Or Sea","height":87});
															thumbnails[6818715] = clik.newPhoto({"id":6818715,"src":"Reed_Warbler_thumb.jpg","galleries_id":113122,"server_id":18,"link":"photo_6818715.html","width":130,"caption":"Reed Warbler","height":146});
															thumbnails[6818724] = clik.newPhoto({"id":6818724,"src":"Great_Grey_Owl_Landing_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818724.html","width":130,"caption":"Great Grey Owl Landing","height":89});
															thumbnails[6818934] = clik.newPhoto({"id":6818934,"src":"Great_Grey_Owl_in_Artic_Conditions_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818934.html","width":130,"caption":"Great Grey Owl in Artic Conditions","height":86});
															thumbnails[6818937] = clik.newPhoto({"id":6818937,"src":"Blue_Throat_on_Bull_Rush_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_6818937.html","width":130,"caption":"Blue Throat on Bull Rush","height":175});
															thumbnails[6843178] = clik.newPhoto({"id":6843178,"src":"Protective_Male_Fallow_Deer_and_Young_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6843178.html","width":130,"caption":"Protective Male Fallow Deer and Young","height":89});
															thumbnails[6843371] = clik.newPhoto({"id":6843371,"src":"Marble_portrait_of_a_lady_thumb.jpg","galleries_id":113122,"server_id":18,"link":"photo_6843371.html","width":130,"caption":"Marbled Portrait of a Lady","height":188});
															thumbnails[6843382] = clik.newPhoto({"id":6843382,"src":"The_Lovers_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_6843382.html","width":130,"caption":"The Lovers","height":113});
															thumbnails[6843385] = clik.newPhoto({"id":6843385,"src":"A_Serious_Young_Man_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6843385.html","width":130,"caption":"A Serious Young Man","height":156});
															thumbnails[6843413] = clik.newPhoto({"id":6843413,"src":"A_bleak_outlook_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_6843413.html","width":130,"caption":"A Bleak Outlook","height":92});
															thumbnails[6843623] = clik.newPhoto({"id":6843623,"src":"Rusty_Relic_thumb.jpg","galleries_id":113692,"server_id":18,"link":"photo_6843623.html","width":130,"caption":"Rusty Relic","height":88});
															thumbnails[6843679] = clik.newPhoto({"id":6843679,"src":"Ice_River_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6843679.html","width":130,"caption":"Ice River","height":98});
															thumbnails[6843699] = clik.newPhoto({"id":6843699,"src":"NY_Crossing_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6843699.html","width":130,"caption":"NY Crossing","height":74});
															thumbnails[6883298] = clik.newPhoto({"id":6883298,"src":"The_Guilded_Man_send_to_Frank_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6883298.html","width":130,"caption":"The Guilded Man","height":193});
															thumbnails[6889020] = clik.newPhoto({"id":6889020,"src":"Flying_white_silk_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6889020.html","width":130,"caption":"Flying White Silk","height":92});
															thumbnails[6889032] = clik.newPhoto({"id":6889032,"src":"Great_Grey_Owl_in_snow_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6889032.html","width":130,"caption":"Great Grey Owl in snow","height":86});
															thumbnails[6889041] = clik.newPhoto({"id":6889041,"src":"White_tailed_fish_eagle_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6889041.html","width":130,"caption":"White tailed fish eagle","height":84});
															thumbnails[6889055] = clik.newPhoto({"id":6889055,"src":"Taxiphote_thumb.jpg","galleries_id":113693,"server_id":18,"link":"photo_6889055.html","width":130,"caption":"1929 Taxiphote Stereo View Camera","height":173});
															thumbnails[8162670] = clik.newPhoto({"id":8162670,"src":"Osprey_with_Double_Catch_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_8162670.html","width":130,"caption":"Osprey with Double Catch","height":84});
															thumbnails[8162704] = clik.newPhoto({"id":8162704,"src":"Morning_meeting_of_the_Roe_Deer_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_8162704.html","width":130,"caption":"Morning Meeting of the Roe Deer","height":98});
															thumbnails[8162708] = clik.newPhoto({"id":8162708,"src":"Courting_Terns_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_8162708.html","width":130,"caption":"Courting Terns","height":122});
															thumbnails[8162783] = clik.newPhoto({"id":8162783,"src":"Hawfinch_Stand_off_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_8162783.html","width":130,"caption":"Hawfinch Stand off","height":93});
															thumbnails[8162833] = clik.newPhoto({"id":8162833,"src":"Heavenly_Light1_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_8162833.html","width":130,"caption":"Heavenly Light","height":87});
															thumbnails[8162846] = clik.newPhoto({"id":8162846,"src":"View_from_St_Peters_Rome1_thumb.jpg","galleries_id":113687,"server_id":18,"link":"photo_8162846.html","width":130,"caption":"View from St Peter's Rome","height":84});
															thumbnails[9045674] = clik.newPhoto({"id":9045674,"src":"Through_autumn_gold1_thumb.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045674.html","width":130,"caption":"Through Autumn Gold","height":86});
															thumbnails[9045732] = clik.newPhoto({"id":9045732,"src":"Smokey_exit_thumb.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045732.html","width":130,"caption":"Smokey Exit","height":85});
															thumbnails[9045762] = clik.newPhoto({"id":9045762,"src":"Colourful_crane_thumb_486395D9-24E8-5EC4-4F240C841AB761A9.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045762.html","width":130,"caption":"Colourful Crane","height":199});
															thumbnails[9045786] = clik.newPhoto({"id":9045786,"src":"A_Touch_of_Autumn_thumb.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045786.html","width":130,"caption":"A Touch of Autumn","height":170});
															thumbnails[9045790] = clik.newPhoto({"id":9045790,"src":"Farm_Gundog_thumb.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045790.html","width":130,"caption":"Farm Gundog","height":170});
															thumbnails[9045794] = clik.newPhoto({"id":9045794,"src":"Steam_in_the_Aberglasyn_Pass1_thumb.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045794.html","width":130,"caption":"Steam at Aberglasyn Pass","height":88});
															thumbnails[9045877] = clik.newPhoto({"id":9045877,"src":"Little__Large_thumb.jpg","galleries_id":282594,"server_id":18,"link":"photo_9045877.html","width":130,"caption":"Little and Large","height":86});
															thumbnails[1677100] = clik.newPhoto({"id":1677100,"src":"Dales_Morning_FP_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_1677100.html","width":130,"caption":"Dales Morning","height":61});
															thumbnails[4081289] = clik.newPhoto({"id":4081289,"src":"Bald_Eagle_CC_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_4081289.html","width":130,"caption":"Bald Eagle","height":92});
															thumbnails[4081298] = clik.newPhoto({"id":4081298,"src":"Just_Dropped_In_BW_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_4081298.html","width":130,"caption":"Just Dropped In","height":88});
															thumbnails[4081302] = clik.newPhoto({"id":4081302,"src":"Love_at_the_Lifeboat_Station_BW_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_4081302.html","width":130,"caption":"Love at the Lifeboat Station","height":29});
															thumbnails[4107158] = clik.newPhoto({"id":4107158,"src":"Steve_FP_thumb.jpg","galleries_id":113122,"server_id":18,"link":"photo_4107158.html","width":130,"caption":"Steve","height":186});
															thumbnails[4107204] = clik.newPhoto({"id":4107204,"src":"My_Best_Friend_BW_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_4107204.html","width":130,"caption":"My Best Friend","height":129});
															thumbnails[2036192] = clik.newPhoto({"id":2036192,"src":"Le_Peloton_by_Frank_Page_thumb.jpg","galleries_id":113121,"server_id":18,"link":"photo_2036192.html","width":130,"caption":"Le Peloton","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[113687] = clik.newGallery({"parentGallery":113686,"usePopups":false,"title":" \tProjected Digital Image Competitions","link":"gallery_113687.html","maxRecords":0.0,"photoIDs":[6811716.0,6811801.0,6811932.0,6812109.0,6812112.0,6812913.0,6812978.0,6813009.0,6817942.0,6817976.0,6818010.0,6818143.0,6818229.0,6818275.0,6818401.0,6818724.0,6818934.0,6818937.0,8162670.0,8162704.0,8162708.0,8162783.0,8162833.0,8162846.0],"skipIndex":0,"section_code":"gallery","featured_images":"8162846,8162833,8162783,8162708,8162704,8162670,6818937,6818934,6818724,6818401","id":113687,"singleSection":false});				  						galleries[113120] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Members Images","link":"gallery_113120.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6843413,6843371,6818715,6818670,6818666,5483758,5483753,5483749,5043988,5043981","id":113120,"singleSection":false});				  						galleries[113121] = clik.newGallery({"parentGallery":113120,"usePopups":false,"title":"Members Images 1","link":"gallery_113121.html","maxRecords":0.0,"photoIDs":[4107288.0,5043981.0,5043988.0,5483749.0,5483753.0,6818670.0,6843413.0,1677100.0,4081289.0,4081298.0,4081302.0,4107204.0,2036192.0],"skipIndex":0,"section_code":"gallery","featured_images":"6843413,6818670,5483753,5483749,5043988,5043981,4107288,4107204,4081302,4081298","id":113121,"singleSection":false});				  						galleries[113686] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"COMPETITIONS","link":"gallery_113686.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9045877,9045794,9045790,9045786,9045762,9045732,9045674,8162846,8162833,8162783","id":113686,"singleSection":false});				  						galleries[113122] = clik.newGallery({"parentGallery":113120,"usePopups":false,"title":"Members Images 2","link":"gallery_113122.html","maxRecords":0.0,"photoIDs":[4107318.0,5483758.0,6818666.0,6818715.0,6843371.0,4107158.0],"skipIndex":0,"section_code":"gallery","featured_images":"6843371,6818715,6818666,5483758,4107318,4107158","id":113122,"singleSection":false});				  						galleries[113692] = clik.newGallery({"parentGallery":113686,"usePopups":false,"title":"Monmochrome Print Competitions","link":"gallery_113692.html","maxRecords":0.0,"photoIDs":[4457905.0,4457906.0,4458350.0,4458517.0,4978167.0,4978204.0,6843382.0,6843623.0],"skipIndex":0,"section_code":"gallery","featured_images":"6843623,6843382,4978204,4978167,4458517,4458350,4457906,4457905","id":113692,"singleSection":false});				  						galleries[113693] = clik.newGallery({"parentGallery":113686,"usePopups":false,"title":"Colour Print Competitions","link":"gallery_113693.html","maxRecords":0.0,"photoIDs":[4458353.0,4458527.0,4492378.0,4492381.0,4492387.0,4492405.0,4492411.0,4492528.0,4492530.0,4492534.0,4502272.0,4502279.0,4978358.0,5003352.0,6843178.0,6843385.0,6843679.0,6843699.0,6883298.0,6889020.0,6889032.0,6889041.0,6889055.0],"skipIndex":0,"section_code":"gallery","featured_images":"6889055,6889041,6889032,6889020,6883298,6843699,6843679,6843385,6843178,5003352","id":113693,"singleSection":false});				  						galleries[282594] = clik.newGallery({"parentGallery":113686,"usePopups":false,"title":"Slide Competitions","link":"gallery_282594.html","maxRecords":0.0,"photoIDs":[9045674.0,9045732.0,9045762.0,9045786.0,9045790.0,9045794.0,9045877.0],"skipIndex":0,"section_code":"gallery","featured_images":"9045877,9045794,9045790,9045786,9045762,9045732,9045674","id":282594,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1677100';
imageSets[3] = '9045877,9045794,9045790,9045786,9045762,9045732,9045674,8162846,8162833,8162783,8162708,8162704,8162670,6889055,6889041,6889032,6889020,6883298,6843699,6843679,6843623,6843413,6843385,6843382,6843371,6843178,6818937,6818934,6818724,6818715,6818670,6818666,6818401,6818275,6818229,6818143,6818010,6817976,6817942,6813009,6812978,6812913,6812112,6812109,6811932,6811801,6811716,5483758,5483753,5483749';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/FrankSPS/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/FrankSPS/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 = 'Staplehurst Photographic Society: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

