window.thumbnails = {};
															thumbnails[6669591] = clik.newPhoto({"id":6669591,"src":"Drinking_Partners_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669591.html","width":130,"caption":"\"Drinking Partners\" taken by Charles Bennett","height":98});
															thumbnails[6669595] = clik.newPhoto({"id":6669595,"src":"Flamingo_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669595.html","width":130,"caption":"\"Flamingo\" taken by Charles Bennett","height":175});
															thumbnails[6669600] = clik.newPhoto({"id":6669600,"src":"Stork_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669600.html","width":130,"caption":"\"Crane in a Flap\" taken by Charles Bennett","height":98});
															thumbnails[6669605] = clik.newPhoto({"id":6669605,"src":"Coot_chick_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669605.html","width":130,"caption":"\"Coot Chick\" taken by Evelyn Grounsell","height":98});
															thumbnails[6669618] = clik.newPhoto({"id":6669618,"src":"PCC_members_at_Slimbridge_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669618.html","width":130,"caption":"\"PCC Members at Slimbridge\" taken by Evelyn Grounsell","height":98});
															thumbnails[6669621] = clik.newPhoto({"id":6669621,"src":"Otter_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669621.html","width":130,"caption":"\"Otter\" taken by Evelyn Grounsell","height":104});
															thumbnails[6669625] = clik.newPhoto({"id":6669625,"src":"Goose_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669625.html","width":130,"caption":"\"Goose\" taken by Linda Gregory","height":98});
															thumbnails[6669627] = clik.newPhoto({"id":6669627,"src":"One_Legged_Seagull_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669627.html","width":130,"caption":"\"I swear I had another leg somewhere\" taken by David Hockin","height":196});
															thumbnails[6669629] = clik.newPhoto({"id":6669629,"src":"Ready_for_take_off_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669629.html","width":130,"caption":"\"Ready for take off\" taken by Nigel Power","height":92});
															thumbnails[6669632] = clik.newPhoto({"id":6669632,"src":"The_Evil_Eye_lr_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6669632.html","width":130,"caption":"\"The Evil Eye\" taken by Nigel Power","height":87});
															thumbnails[6674262] = clik.newPhoto({"id":6674262,"src":"Flamingos_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6674262.html","width":130,"caption":"\"Flamingo's\" taken by Linda Evans","height":98});
															thumbnails[6674266] = clik.newPhoto({"id":6674266,"src":"Black_Swan__Signets_thumb.jpg","galleries_id":364515,"server_id":5,"link":"photo_6674266.html","width":130,"caption":"\"Black Swan & Signets\" taken by Linda Evans","height":104});
															thumbnails[6741254] = clik.newPhoto({"id":6741254,"src":"Brian-Fish---A-miners-house-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6741254.html","width":130,"caption":"\"A Miners House\"","height":87});
															thumbnails[6741257] = clik.newPhoto({"id":6741257,"src":"Colin-Johnson---Walkway-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6741257.html","width":130,"caption":"\"Walkway\"","height":98});
															thumbnails[6741261] = clik.newPhoto({"id":6741261,"src":"Eunice-Myers---Inside-Tysilio-Church-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6741261.html","width":130,"caption":"\"Inside Tysilio Church\"","height":91});
															thumbnails[6741267] = clik.newPhoto({"id":6741267,"src":"Evelyn-Grounsell---The-Yard-Kennixton-Farmhouse-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6741267.html","width":130,"caption":"\"The Yard - Kennixton Farmhouse\"","height":130});
															thumbnails[6741270] = clik.newPhoto({"id":6741270,"src":"Linda-Evans---Tysilios-Church-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6741270.html","width":130,"caption":"\"Tysilio's Church\"","height":98});
															thumbnails[6741328] = clik.newPhoto({"id":6741328,"src":"Martin-Walters---The-Woolen-Mill-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6741328.html","width":130,"caption":"\"The Woollen Mill\"","height":86});
															thumbnails[6787664] = clik.newPhoto({"id":6787664,"src":"Andrea-Pomroy---Having-a-good-day-out-lr_thumb.jpg","galleries_id":367509,"server_id":5,"link":"photo_6787664.html","width":130,"caption":"\"Having a good day out\"","height":109});
															thumbnails[7619410] = clik.newPhoto({"id":7619410,"src":"1_IPI_Barn_owl_Hunting_Peter_Evans_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619410.html","width":130,"caption":"Barn Owl","height":98});
															thumbnails[7619420] = clik.newPhoto({"id":7619420,"src":"3_IPI_Kids_play_Peter_Evans_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619420.html","width":130,"caption":"Kids Play","height":195});
															thumbnails[7619421] = clik.newPhoto({"id":7619421,"src":"1_OPI_The_Magic_Forest_John_Bjergfelt_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619421.html","width":130,"caption":"The Magic Forest","height":87});
															thumbnails[7619424] = clik.newPhoto({"id":7619424,"src":"2_OPI_A_moment_in_time_Paul_Burton_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619424.html","width":130,"caption":"A Moment in Time","height":98});
															thumbnails[7619431] = clik.newPhoto({"id":7619431,"src":"3_OPI_First_Bath_Jill_Taylor_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619431.html","width":130,"caption":"First Bath","height":195});
															thumbnails[7619434] = clik.newPhoto({"id":7619434,"src":"1_IP_Leveret_Peter_Evans_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619434.html","width":130,"caption":"Leverat","height":153});
															thumbnails[7619445] = clik.newPhoto({"id":7619445,"src":"2_IP_Sunrise_at_Chitwan_Daisy_Bickley_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619445.html","width":130,"caption":"Sunrise at Chitwan","height":95});
															thumbnails[7619449] = clik.newPhoto({"id":7619449,"src":"3_IP_Rock_Solid_Linda_Evans_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619449.html","width":130,"caption":"Rock Solid","height":98});
															thumbnails[7619454] = clik.newPhoto({"id":7619454,"src":"1_OP_Venice_by_Night_Nigel_Power_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619454.html","width":130,"caption":"Venice by Night","height":188});
															thumbnails[7619463] = clik.newPhoto({"id":7619463,"src":"2_OP_Frightend_by_Lions_John_Bjergfelt1_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619463.html","width":130,"caption":"Frightened by Lions","height":191});
															thumbnails[7619468] = clik.newPhoto({"id":7619468,"src":"3_OP_Great_Blue_in_the_Reeds_Roy_Jacobson_thumb.jpg","galleries_id":413134,"server_id":5,"link":"photo_7619468.html","width":130,"caption":"Great Blue in the Reeds","height":183});
															thumbnails[7688173] = clik.newPhoto({"id":7688173,"src":"Martin__Paul_-_EM1_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688173.html","width":130,"caption":"Martin & Paul","height":76});
															thumbnails[7688187] = clik.newPhoto({"id":7688187,"src":"The_Protected_Rock_Pool_-_EM2_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688187.html","width":130,"caption":"The Protected Rock Pool","height":191});
															thumbnails[7688189] = clik.newPhoto({"id":7688189,"src":"Rivelet_at_Dusk_-_EG1_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688189.html","width":130,"caption":"Riverlet at Dusk","height":184});
															thumbnails[7688190] = clik.newPhoto({"id":7688190,"src":"Nash_Point_Headland_-_LJ1_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688190.html","width":130,"caption":"Nash Point Headland","height":87});
															thumbnails[7688191] = clik.newPhoto({"id":7688191,"src":"Setting_Sun_-_LJ2_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688191.html","width":130,"caption":"Setting Sun","height":87});
															thumbnails[7688195] = clik.newPhoto({"id":7688195,"src":"Layered_Rock_-_LM1_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688195.html","width":130,"caption":"Layered Rock","height":79});
															thumbnails[7688196] = clik.newPhoto({"id":7688196,"src":"Lynda_Massey_-_The_Lighthouse_thumb.JPG","galleries_id":416392,"server_id":5,"link":"photo_7688196.html","width":130,"caption":"The Lighthouse","height":157});
															thumbnails[7688198] = clik.newPhoto({"id":7688198,"src":"Nash_Point_Coastal_View_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688198.html","width":130,"caption":"Nash Point - Coastal View","height":58});
															thumbnails[7688200] = clik.newPhoto({"id":7688200,"src":"Something_Interesting_Lynda_Paul_Evelyn_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688200.html","width":130,"caption":"Something Interesting (Lynda, Paul, Evelyn)","height":28});
															thumbnails[7688203] = clik.newPhoto({"id":7688203,"src":"Nash_Point_Waves_-_NP_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688203.html","width":130,"caption":"Nash Point Waves","height":195});
															thumbnails[7688208] = clik.newPhoto({"id":7688208,"src":"Do_Not_Jump_-_PB1_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688208.html","width":130,"caption":"Don't Jump","height":173});
															thumbnails[7688214] = clik.newPhoto({"id":7688214,"src":"Nash_Point_Rugged_Foreground_-_PB2_thumb.jpg","galleries_id":416392,"server_id":5,"link":"photo_7688214.html","width":130,"caption":"Nash Point - Rugged Foreground","height":98});
															thumbnails[8735257] = clik.newPhoto({"id":8735257,"src":"Roy_J.Herring_gull.1st_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735257.html","width":130,"caption":"Herring Gull","height":88});
															thumbnails[8735264] = clik.newPhoto({"id":8735264,"src":"Martin_Walter.H_is_for_Homeless._Open_2nd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735264.html","width":130,"caption":"Homeless","height":89});
															thumbnails[8735270] = clik.newPhoto({"id":8735270,"src":"Highland_casuality._Bryan_Eveleigh.Open_2nd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735270.html","width":130,"caption":"Highland Casuality","height":98});
															thumbnails[8735273] = clik.newPhoto({"id":8735273,"src":"Roy_J.Heron_On_Golden_Pond._Open_3rd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735273.html","width":130,"caption":"Heron \"On Golden Pond\"","height":92});
															thumbnails[8735276] = clik.newPhoto({"id":8735276,"src":"Harboured._Bryan_Eveleigh._Open_HC_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735276.html","width":130,"caption":"Harboured","height":98});
															thumbnails[8735286] = clik.newPhoto({"id":8735286,"src":"Paul_Burton._Headlights._Open_HC_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735286.html","width":130,"caption":"Headlights","height":73});
															thumbnails[8735296] = clik.newPhoto({"id":8735296,"src":"Eunice_M.H_is_for_homework.Open_Com._thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735296.html","width":130,"caption":"Homework","height":192});
															thumbnails[8735305] = clik.newPhoto({"id":8735305,"src":"H_is_for_Half._Martin_Walters._Open_C_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735305.html","width":130,"caption":"Half","height":213});
															thumbnails[8735311] = clik.newPhoto({"id":8735311,"src":"Linda_Evans.HolyHolyHoly._Inter.1st_thumb.JPG","galleries_id":308063,"server_id":5,"link":"photo_8735311.html","width":130,"caption":"Holy, Holy, Holy","height":173});
															thumbnails[8735375] = clik.newPhoto({"id":8735375,"src":"Linda_Evans._Highest._Inter.2nd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735375.html","width":130,"caption":"Highest","height":168});
															thumbnails[8735389] = clik.newPhoto({"id":8735389,"src":"Hands._Linda_Evans._Inter_Prints_2nd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735389.html","width":130,"caption":"Hands","height":170});
															thumbnails[8735395] = clik.newPhoto({"id":8735395,"src":"High_Surveillance._Jean_Chick._Inter._3rd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735395.html","width":130,"caption":"High Surveillance","height":92});
															thumbnails[8735401] = clik.newPhoto({"id":8735401,"src":"Linda_Gregory.Honeysuckle_Berries.Inter.3rd_thumb.jpg","galleries_id":308063,"server_id":5,"link":"photo_8735401.html","width":130,"caption":"Honeysuckle Berries","height":97});
															thumbnails[8868366] = clik.newPhoto({"id":8868366,"src":"1NorthAmericanRiverOtterRJ_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8868366.html","width":130,"caption":"North American River Otter","height":97});
															thumbnails[8868261] = clik.newPhoto({"id":8868261,"src":"2ShowgirlBE_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8868261.html","width":130,"caption":"Show Girl","height":98});
															thumbnails[8868342] = clik.newPhoto({"id":8868342,"src":"3AnhingaRJ_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8868342.html","width":130,"caption":"Anhinga","height":92});
															thumbnails[8868359] = clik.newPhoto({"id":8868359,"src":"4EarlyMorningDew_PR_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8868359.html","width":130,"caption":"Early Morning Dew","height":130});
															thumbnails[8870825] = clik.newPhoto({"id":8870825,"src":"5TheDropRJ_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870825.html","width":130,"caption":"The Drop","height":213});
															thumbnails[8870829] = clik.newPhoto({"id":8870829,"src":"6TheGoldenHourEM_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870829.html","width":130,"caption":"The Golden Hour","height":89});
															thumbnails[8870832] = clik.newPhoto({"id":8870832,"src":"7EarlyMorningSteamNP_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870832.html","width":130,"caption":"Early Morning Steam","height":96});
															thumbnails[8870837] = clik.newPhoto({"id":8870837,"src":"8PerfectReflectionsMW_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870837.html","width":130,"caption":"Perfect Reflection","height":86});
															thumbnails[8870842] = clik.newPhoto({"id":8870842,"src":"9PsychedelicSubwayNP_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870842.html","width":130,"caption":"Psychodelic Subway","height":230});
															thumbnails[8870849] = clik.newPhoto({"id":8870849,"src":"10PursuitwithintentRJ_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870849.html","width":130,"caption":"Pursuit with Intent","height":75});
															thumbnails[8870857] = clik.newPhoto({"id":8870857,"src":"11GardenSpiderwithPreyGT_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870857.html","width":130,"caption":"Garden Spider with Prey","height":184});
															thumbnails[8870868] = clik.newPhoto({"id":8870868,"src":"12AbandonedPR_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870868.html","width":130,"caption":"Abandoned","height":87});
															thumbnails[8870878] = clik.newPhoto({"id":8870878,"src":"13BrokenBoardJM_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870878.html","width":130,"caption":"Broken Board","height":86});
															thumbnails[8870883] = clik.newPhoto({"id":8870883,"src":"14MerlinJC_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870883.html","width":130,"caption":"Merlin","height":197});
															thumbnails[8870887] = clik.newPhoto({"id":8870887,"src":"15RocksinseaPP_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870887.html","width":130,"caption":"Rocks in Sea","height":98});
															thumbnails[8870890] = clik.newPhoto({"id":8870890,"src":"16FishingKenyanStyleBH_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870890.html","width":130,"caption":"Fishing Kenyan Style","height":98});
															thumbnails[8870892] = clik.newPhoto({"id":8870892,"src":"17PortmeirionLE_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870892.html","width":130,"caption":"Portmeirion","height":173});
															thumbnails[8870894] = clik.newPhoto({"id":8870894,"src":"18OwlbutterflyPR_thumb.jpg","galleries_id":466530,"server_id":5,"link":"photo_8870894.html","width":130,"caption":"Owl Butterfly","height":99});
															thumbnails[9093476] = clik.newPhoto({"id":9093476,"src":"Inter-1st-Harbour-Bridge-by_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093476.html","width":130,"caption":"Harbour Bridge","height":86});
															thumbnails[9093527] = clik.newPhoto({"id":9093527,"src":"Inter-2nd-Artist-at-work-by_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093527.html","width":130,"caption":"Artist at Work","height":98});
															thumbnails[9093534] = clik.newPhoto({"id":9093534,"src":"Inter-3rd-Booby-by-John-Mye_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093534.html","width":130,"caption":"Booby","height":81});
															thumbnails[9093544] = clik.newPhoto({"id":9093544,"src":"Inter-HC-Bright-Eyes-by-Joh_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093544.html","width":130,"caption":"Bright Eyes","height":86});
															thumbnails[9093551] = clik.newPhoto({"id":9093551,"src":"Inter-Com.Kittiwake-and-chi_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093551.html","width":130,"caption":"Kittiwake & Chick","height":98});
															thumbnails[9093557] = clik.newPhoto({"id":9093557,"src":"Open_1st-Carnival-Dancer-by_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093557.html","width":130,"caption":"Carnival Dancer","height":98});
															thumbnails[9093566] = clik.newPhoto({"id":9093566,"src":"Open-2nd-Javan-pond-heron-b_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093566.html","width":130,"caption":"Heron - Javan Pond","height":150});
															thumbnails[9093583] = clik.newPhoto({"id":9093583,"src":"Open-3rd-Black-Headed-Vultu_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093583.html","width":130,"caption":"Black Headed Vulture","height":92});
															thumbnails[9093596] = clik.newPhoto({"id":9093596,"src":"Open-HC-Steaming-to-Stogumb_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093596.html","width":130,"caption":"Steaming to Stogumber","height":95});
															thumbnails[9093602] = clik.newPhoto({"id":9093602,"src":"Open-Com-Heavy-landing-Roy-_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9093602.html","width":130,"caption":"Heavy Landing","height":85});
															thumbnails[9105389] = clik.newPhoto({"id":9105389,"src":"Open-Print-1st-Subway-in-Ye_1_thumb.jpg","galleries_id":479891,"server_id":5,"link":"photo_9105389.html","width":130,"caption":"Subway in Yellow","height":191});
															thumbnails[6336144] = clik.newPhoto({"id":6336144,"src":"01_Brian_Fish_-_Kilve_Beach_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336144.html","width":130,"caption":"Kilve Beach by Brian Fish","height":98});
															thumbnails[6336194] = clik.newPhoto({"id":6336194,"src":"02_Daisy_Bickley_-_Kilve_Rocks_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336194.html","width":130,"caption":"Kilve Rocks by Daisy Bickley","height":104});
															thumbnails[6336214] = clik.newPhoto({"id":6336214,"src":"03_Evelyn_Grounsell_-_Kilve_Beach_and_Martin_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336214.html","width":130,"caption":"Kilve Beach and Martin taken by Evelyn Grounsell","height":89});
															thumbnails[6336251] = clik.newPhoto({"id":6336251,"src":"04_Martin_Walters_-_Kilve_Beach_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336251.html","width":130,"caption":"Kilve Beach by Martin Walters","height":196});
															thumbnails[6336266] = clik.newPhoto({"id":6336266,"src":"05_Linda_Evans_-_Kilve_Beach_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336266.html","width":130,"caption":"Kilve Beach taken by Linda Evans","height":98});
															thumbnails[6336289] = clik.newPhoto({"id":6336289,"src":"06_Eunice_Myers_-_Kilve_Beach_nearing_sunset_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336289.html","width":130,"caption":"Kilve Beach nearing Sunset taken by Eunice Myers","height":195});
															thumbnails[6336322] = clik.newPhoto({"id":6336322,"src":"07_Nigel_Power_-_Kilve_Beach_last_light_lr_thumb.jpg","galleries_id":351230,"server_id":5,"link":"photo_6336322.html","width":130,"caption":"Kilve Beach at Last Light taken by Nigel Power","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[308063] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PCC Competition No.1 - Season 2011 - 2012","link":"gallery_308063.html","maxRecords":0.0,"photoIDs":[8735257.0,8735264.0,8735270.0,8735273.0,8735276.0,8735286.0,8735296.0,8735305.0,8735311.0,8735375.0,8735389.0,8735395.0,8735401.0],"skipIndex":0,"section_code":"gallery","featured_images":"8735401,8735395,8735389,8735375,8735311,8735305,8735296,8735286,8735276,8735273","id":308063,"singleSection":false});				  						galleries[466530] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PCC Competition No.2 - Season 2011 - 2012","link":"gallery_466530.html","maxRecords":0.0,"photoIDs":[8868366.0,8868261.0,8868342.0,8868359.0,8870825.0,8870829.0,8870832.0,8870837.0,8870842.0,8870849.0,8870857.0,8870868.0,8870878.0,8870883.0,8870887.0,8870890.0,8870892.0,8870894.0],"skipIndex":0,"section_code":"gallery","featured_images":8868261,"id":466530,"singleSection":false});				  						galleries[479891] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PCC Competition No.3 - Season 2011 - 2012","link":"gallery_479891.html","maxRecords":0.0,"photoIDs":[9093476.0,9093527.0,9093534.0,9093544.0,9093551.0,9093557.0,9093566.0,9093583.0,9093596.0,9093602.0,9105389.0],"skipIndex":0,"section_code":"gallery","featured_images":"9105389,9093602,9093596,9093583,9093566,9093557,9093551,9093544,9093534,9093527","id":479891,"singleSection":false});				  						galleries[413134] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competition No.4 - 2010\/11 - Winners","link":"gallery_413134.html","maxRecords":0.0,"photoIDs":[7619410.0,7619420.0,7619421.0,7619424.0,7619431.0,7619434.0,7619445.0,7619449.0,7619454.0,7619463.0,7619468.0],"skipIndex":0,"section_code":"gallery","featured_images":"7619468,7619463,7619454,7619449,7619445,7619434,7619431,7619424,7619421,7619420","id":413134,"singleSection":false});				  						galleries[351230] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Trip to Kilve Beach","link":"gallery_351230.html","maxRecords":0.0,"photoIDs":[6336144.0,6336194.0,6336214.0,6336251.0,6336266.0,6336289.0,6336322.0],"skipIndex":0,"section_code":"gallery","featured_images":"6336322,6336289,6336266,6336251,6336214,6336194,6336144","id":351230,"singleSection":false});				  						galleries[364515] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Trip to Slimbridge Wildfowl & Wetlands Trust","link":"gallery_364515.html","maxRecords":0.0,"photoIDs":[6669591.0,6669595.0,6669600.0,6669605.0,6669618.0,6669621.0,6669625.0,6669627.0,6669629.0,6669632.0,6674262.0,6674266.0],"skipIndex":0,"section_code":"gallery","featured_images":"6674266,6674262,6669632,6669629,6669627,6669625,6669621,6669618,6669605,6669600","id":364515,"singleSection":false});				  						galleries[367509] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Trip to St. Fagan's Museum","link":"gallery_367509.html","maxRecords":0.0,"photoIDs":[6741254.0,6741257.0,6741261.0,6741267.0,6741270.0,6741328.0,6787664.0],"skipIndex":0,"section_code":"gallery","featured_images":"6787664,6741328,6741270,6741267,6741261,6741257,6741254","id":367509,"singleSection":false});				  						galleries[416392] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Trip to Nash Point, South Wales","link":"gallery_416392.html","maxRecords":0.0,"photoIDs":[7688173.0,7688187.0,7688189.0,7688190.0,7688191.0,7688195.0,7688196.0,7688198.0,7688200.0,7688203.0,7688208.0,7688214.0],"skipIndex":0,"section_code":"gallery","featured_images":"7688214,7688208,7688203,7688200,7688198,7688196,7688195,7688191,7688190,7688189","id":416392,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9105389,9093602,9093596,9093583,9093566,9093557,9093551,9093544,9093534,9093527,9093476,8870894,8870892,8870890,8870887,8870883,8870878,8870868,8870857,8870849,8870842,8870837,8870832,8870829,8870825,8868366,8868359,8868342,8868261,8735401,8735395,8735389,8735375,8735311,8735305,8735296,8735286,8735276,8735273,8735270,8735264,8735257,7688214,7688208,7688203,7688200,7688198,7688196,7688195,7688191';
imageSets[3] = '9105389,9093602,9093596,9093583,9093566,9093557,9093551,9093544,9093534,9093527,9093476,8870894,8870892,8870890,8870887,8870883,8870878,8870868,8870857,8870849,8870842,8870837,8870832,8870829,8870825,8868366,8868359,8868342,8868261,8735401,8735395,8735389,8735375,8735311,8735305,8735296,8735286,8735276,8735273,8735270,8735264,8735257,7688214,7688208,7688203,7688200,7688198,7688196,7688195,7688191';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/cebennett/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/cebennett/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/cebennett/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/cebennett/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/cebennett/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/cebennett/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/cebennett/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/cebennett/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 = 'Portishead Camera 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;
	}
}

			

