window.thumbnails = {};
															thumbnails[8308900] = clik.newPhoto({"id":8308900,"src":"BeardedManDF2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[6993116] = clik.newPhoto({"id":6993116,"src":"Portrait_Poses112_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Portrait Poses","height":94});
															thumbnails[9063082] = clik.newPhoto({"id":9063082,"src":"Graffitiweb_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_9063082.html","width":130,"caption":"Derelict Building","height":87});
															thumbnails[9004871] = clik.newPhoto({"id":9004871,"src":"York_Minster_By_Moon_Light_thumb.jpg","galleries_id":474327,"server_id":5,"link":"photo_9004871.html","width":130,"caption":"York Minster by Moon Light","height":86});
															thumbnails[9004896] = clik.newPhoto({"id":9004896,"src":"York_Museum_Statue_thumb.jpg","galleries_id":474327,"server_id":5,"link":"photo_9004896.html","width":130,"caption":"York Museum Statue","height":88});
															thumbnails[9004918] = clik.newPhoto({"id":9004918,"src":"Golden_Eagel_thumb.jpg","galleries_id":351572,"server_id":5,"link":"photo_9004918.html","width":130,"caption":"Golden Eagle","height":182});
															thumbnails[9004922] = clik.newPhoto({"id":9004922,"src":"Kirkstall_Abbey_thumb.jpg","galleries_id":351572,"server_id":5,"link":"photo_9004922.html","width":130,"caption":"Kirkstall Abbey","height":80});
															thumbnails[8776237] = clik.newPhoto({"id":8776237,"src":"Yellow_thumb.jpg","galleries_id":330322,"server_id":5,"link":"photo_8776237.html","width":130,"caption":"Yellow","height":84});
															thumbnails[9101557] = clik.newPhoto({"id":9101557,"src":"LightsOnTheLakeRN_1_thumb.jpg","galleries_id":474327,"server_id":5,"link":"photo_9101557.html","width":130,"caption":"Lights On The Lake","height":195});
															thumbnails[8737511] = clik.newPhoto({"id":8737511,"src":"DSC_1313_copy_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_8737511.html","width":130,"caption":"","height":196});
															thumbnails[8737534] = clik.newPhoto({"id":8737534,"src":"DSC_2616_copy1_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_8737534.html","width":130,"caption":"","height":139});
															thumbnails[8737545] = clik.newPhoto({"id":8737545,"src":"DSC_8605_copya_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_8737545.html","width":130,"caption":"","height":46});
															thumbnails[8737580] = clik.newPhoto({"id":8737580,"src":"DSC_8791-copya_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_8737580.html","width":130,"caption":"","height":82});
															thumbnails[8637600] = clik.newPhoto({"id":8637600,"src":"3Splash_AGC_copy_thumb.jpg","galleries_id":456210,"server_id":5,"link":"photo_8637600.html","width":130,"caption":"Splash of Yellow","height":114});
															thumbnails[8637655] = clik.newPhoto({"id":8637655,"src":"1Motorbike_AGC_copy1_thumb.jpg","galleries_id":456210,"server_id":5,"link":"photo_8637655.html","width":130,"caption":"Yellow Motorbike","height":189});
															thumbnails[8637675] = clik.newPhoto({"id":8637675,"src":"3Flower_Pot_AE_copy_thumb.jpg","galleries_id":456210,"server_id":5,"link":"photo_8637675.html","width":130,"caption":"Yellow Pot","height":98});
															thumbnails[8005049] = clik.newPhoto({"id":8005049,"src":"GuitaristJHG_thumb.jpg","galleries_id":367126,"server_id":5,"link":"photo_8005049.html","width":130,"caption":"Guitarist","height":195});
															thumbnails[7630562] = clik.newPhoto({"id":7630562,"src":"Clocktower-Temple-newsom-at_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7630562.html","width":130,"caption":"Clock Tower at Temple Newsam","height":195});
															thumbnails[7630577] = clik.newPhoto({"id":7630577,"src":"Tiger2CBweb400_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7630577.html","width":130,"caption":"","height":156});
															thumbnails[7619005] = clik.newPhoto({"id":7619005,"src":"WaterDropACWeb500_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7619005.html","width":130,"caption":"","height":95});
															thumbnails[7619008] = clik.newPhoto({"id":7619008,"src":"WaterDropACWeb500b_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7619008.html","width":130,"caption":"","height":174});
															thumbnails[7619019] = clik.newPhoto({"id":7619019,"src":"WaterDropACWeb500c_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7619019.html","width":130,"caption":"","height":102});
															thumbnails[7584967] = clik.newPhoto({"id":7584967,"src":"DSC-211web_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7584967.html","width":130,"caption":"","height":167});
															thumbnails[7585019] = clik.newPhoto({"id":7585019,"src":"DSC_0308web_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7585019.html","width":130,"caption":"","height":187});
															thumbnails[7585021] = clik.newPhoto({"id":7585021,"src":"DSC_0093web_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7585021.html","width":130,"caption":"","height":187});
															thumbnails[7534034] = clik.newPhoto({"id":7534034,"src":"Hole-in-the-wallMCweb_thumb.jpg","galleries_id":408436,"server_id":5,"link":"photo_7534034.html","width":130,"caption":"Hole In The Wall","height":87});
															thumbnails[7534037] = clik.newPhoto({"id":7534037,"src":"Greater-GraterTRweb_thumb.jpg","galleries_id":408436,"server_id":5,"link":"photo_7534037.html","width":130,"caption":"Greater Grater","height":205});
															thumbnails[7534041] = clik.newPhoto({"id":7534041,"src":"ReflectionCLBWeb_thumb.jpg","galleries_id":408436,"server_id":5,"link":"photo_7534041.html","width":130,"caption":"Reflections","height":98});
															thumbnails[7534052] = clik.newPhoto({"id":7534052,"src":"SwimmingTB495wm_thumb.jpg","galleries_id":408436,"server_id":5,"link":"photo_7534052.html","width":130,"caption":"Swimming","height":85});
															thumbnails[7534080] = clik.newPhoto({"id":7534080,"src":"Stunt-bikeCB_WEB_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7534080.html","width":130,"caption":"Stunt Bike","height":109});
															thumbnails[7497864] = clik.newPhoto({"id":7497864,"src":"SwanAC-WEb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497864.html","width":130,"caption":"Reflecting SWan","height":195});
															thumbnails[7497866] = clik.newPhoto({"id":7497866,"src":"4am-In-The-Morning_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497866.html","width":130,"caption":"4am In the Morning","height":173});
															thumbnails[7497877] = clik.newPhoto({"id":7497877,"src":"GothPortraitACweb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497877.html","width":130,"caption":"Steam Punk","height":195});
															thumbnails[7497918] = clik.newPhoto({"id":7497918,"src":"GothsACweb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497918.html","width":130,"caption":"Goths in Whitby","height":195});
															thumbnails[7497921] = clik.newPhoto({"id":7497921,"src":"MusicACweb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497921.html","width":130,"caption":"Sheet Music","height":103});
															thumbnails[7497923] = clik.newPhoto({"id":7497923,"src":"SeagullACweb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497923.html","width":130,"caption":"Perching Gull","height":195});
															thumbnails[7497925] = clik.newPhoto({"id":7497925,"src":"SquirrelACweb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7497925.html","width":130,"caption":"Acrobat","height":195});
															thumbnails[7457363] = clik.newPhoto({"id":7457363,"src":"Whitby-PierDM640wm_thumb.jpg","galleries_id":330634,"server_id":5,"link":"photo_7457363.html","width":130,"caption":"Whitby Pier","height":98});
															thumbnails[7457376] = clik.newPhoto({"id":7457376,"src":"ArchersDM640wm_thumb.jpg","galleries_id":330634,"server_id":5,"link":"photo_7457376.html","width":130,"caption":"Archers","height":98});
															thumbnails[7457383] = clik.newPhoto({"id":7457383,"src":"CourtyardDM640wm_thumb.jpg","galleries_id":330634,"server_id":5,"link":"photo_7457383.html","width":130,"caption":"Courtyard","height":98});
															thumbnails[7457468] = clik.newPhoto({"id":7457468,"src":"Mystic_thumb.JPG","galleries_id":330634,"server_id":5,"link":"photo_7457468.html","width":130,"caption":"Mystic","height":98});
															thumbnails[7457474] = clik.newPhoto({"id":7457474,"src":"York-MinsterDM640wm_thumb.jpg","galleries_id":330634,"server_id":5,"link":"photo_7457474.html","width":130,"caption":"York Minster","height":98});
															thumbnails[7450968] = clik.newPhoto({"id":7450968,"src":"White-Tailed-Sea-EagleTB495_thumb.jpg","galleries_id":402070,"server_id":5,"link":"photo_7450968.html","width":130,"caption":"White Tailed Sea Eagle","height":84});
															thumbnails[7451092] = clik.newPhoto({"id":7451092,"src":"HoverflyTB495wm_thumb.jpg","galleries_id":402070,"server_id":5,"link":"photo_7451092.html","width":130,"caption":"Hoverfly","height":96});
															thumbnails[7451227] = clik.newPhoto({"id":7451227,"src":"Howden-MinsterTB600WM_thumb.jpg","galleries_id":402070,"server_id":5,"link":"photo_7451227.html","width":130,"caption":"Howden Minster","height":86});
															thumbnails[7451243] = clik.newPhoto({"id":7451243,"src":"FlyTB600wm_thumb.jpg","galleries_id":402070,"server_id":5,"link":"photo_7451243.html","width":130,"caption":"Fly","height":79});
															thumbnails[7451253] = clik.newPhoto({"id":7451253,"src":"Barl-OwlTB400_thumb.JPG","galleries_id":402070,"server_id":5,"link":"photo_7451253.html","width":130,"caption":"Barn Owl","height":139});
															thumbnails[7433988] = clik.newPhoto({"id":7433988,"src":"Jaguar-Chester-Zoo450wm_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7433988.html","width":130,"caption":"","height":98});
															thumbnails[7434002] = clik.newPhoto({"id":7434002,"src":"Elephant-Chester-Zoo-395wm_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7434002.html","width":130,"caption":"Elephant Chester Zoo","height":173});
															thumbnails[7434030] = clik.newPhoto({"id":7434030,"src":"Snowy-Owl-Lotherton-Hall-CB_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7434030.html","width":130,"caption":"Snowy Ow -l Lotherton Hall","height":105});
															thumbnails[7434043] = clik.newPhoto({"id":7434043,"src":"White-Rhino-Chetser-Zoo-CB3_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_7434043.html","width":130,"caption":"White Rhino Chester Zoo","height":97});
															thumbnails[7158605] = clik.newPhoto({"id":7158605,"src":"DSC01165a201012051_thumb.jpg","galleries_id":367126,"server_id":5,"link":"photo_7158605.html","width":130,"caption":"","height":98});
															thumbnails[7158613] = clik.newPhoto({"id":7158613,"src":"DSC01206a20101205_thumb.jpg","galleries_id":367126,"server_id":5,"link":"photo_7158613.html","width":130,"caption":"","height":98});
															thumbnails[7158616] = clik.newPhoto({"id":7158616,"src":"DSC01227a20101205_thumb.jpg","galleries_id":367126,"server_id":5,"link":"photo_7158616.html","width":130,"caption":"","height":98});
															thumbnails[6951622] = clik.newPhoto({"id":6951622,"src":"TwilightTemplNewsamWeb_thumb.jpg","galleries_id":332523,"server_id":5,"link":"photo_6951622.html","width":130,"caption":"Temple Newsam - Twilight","height":92});
															thumbnails[6248766] = clik.newPhoto({"id":6248766,"src":"EmilyHigginsWeb1_thumb.jpg","galleries_id":347640,"server_id":5,"link":"photo_6248766.html","width":130,"caption":"Emily Higgins","height":195});
															thumbnails[6248784] = clik.newPhoto({"id":6248784,"src":"AmyBirdsallWeb_thumb.jpg","galleries_id":347640,"server_id":5,"link":"photo_6248784.html","width":130,"caption":"Amy Birdsall","height":195});
															thumbnails[6133910] = clik.newPhoto({"id":6133910,"src":"SelbyAbbeywm500_thumb.jpg","galleries_id":330322,"server_id":5,"link":"photo_6133910.html","width":130,"caption":"Selby Abbey","height":87});
															thumbnails[5907881] = clik.newPhoto({"id":5907881,"src":"120420103427Beachcomberver2_thumb.jpg","galleries_id":330322,"server_id":5,"link":"photo_5907881.html","width":130,"caption":"Beachcomber","height":71});
															thumbnails[6202086] = clik.newPhoto({"id":6202086,"src":"Bloomimng-Beautifulweb_thumb.jpg","galleries_id":332523,"server_id":5,"link":"photo_6202086.html","width":130,"caption":"Blooming Beautiful","height":102});
															thumbnails[5846501] = clik.newPhoto({"id":5846501,"src":"StratfordSwans400_thumb.jpg","galleries_id":330322,"server_id":5,"link":"photo_5846501.html","width":130,"caption":"Stratford Swans","height":131});
															thumbnails[5887685] = clik.newPhoto({"id":5887685,"src":"woodlesfordlock450wm1_thumb.jpg","galleries_id":330630,"server_id":5,"link":"photo_5887685.html","width":130,"caption":"Woodlesford Lock","height":98});
															thumbnails[5902458] = clik.newPhoto({"id":5902458,"src":"2MellowYellowDM450_thumb.jpg","galleries_id":339612,"server_id":5,"link":"photo_5902458.html","width":130,"caption":"Mellow Yellow","height":97});
															thumbnails[5902547] = clik.newPhoto({"id":5902547,"src":"3RudbeckiaDM450_thumb.jpg","galleries_id":339612,"server_id":5,"link":"photo_5902547.html","width":130,"caption":"Rudbeckia","height":98});
															thumbnails[5908217] = clik.newPhoto({"id":5908217,"src":"BuildingSite450_thumb.jpg","galleries_id":330634,"server_id":5,"link":"photo_5908217.html","width":130,"caption":"Building Site","height":196});
															thumbnails[5908218] = clik.newPhoto({"id":5908218,"src":"Hello450_thumb.jpg","galleries_id":330634,"server_id":5,"link":"photo_5908218.html","width":130,"caption":"Hello","height":173});
															thumbnails[5933370] = clik.newPhoto({"id":5933370,"src":"Steam-Engine080209450wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_5933370.html","width":130,"caption":"","height":87});
															thumbnails[5933378] = clik.newPhoto({"id":5933378,"src":"Reflections450_wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_5933378.html","width":130,"caption":"Reflections","height":88});
															thumbnails[5939885] = clik.newPhoto({"id":5939885,"src":"BigEars390wm_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_5939885.html","width":130,"caption":"Big Ears","height":197});
															thumbnails[5939888] = clik.newPhoto({"id":5939888,"src":"Hotseat390wm_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_5939888.html","width":130,"caption":"Hot Seat","height":173});
															thumbnails[5939894] = clik.newPhoto({"id":5939894,"src":"Robinsvisist390wm_thumb.jpg","galleries_id":330437,"server_id":5,"link":"photo_5939894.html","width":130,"caption":"Robin's Visit","height":151});
															thumbnails[5939972] = clik.newPhoto({"id":5939972,"src":"Sunset390wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_5939972.html","width":130,"caption":"Sunset","height":196});
															thumbnails[5940046] = clik.newPhoto({"id":5940046,"src":"SpinacreTowe390wm_thumb.jpg","galleries_id":330630,"server_id":5,"link":"photo_5940046.html","width":130,"caption":"Spinnacre Tower","height":157});
															thumbnails[5940084] = clik.newPhoto({"id":5940084,"src":"Portrait390wm_thumb.jpg","galleries_id":330630,"server_id":5,"link":"photo_5940084.html","width":130,"caption":"Portrait","height":139});
															thumbnails[6002712] = clik.newPhoto({"id":6002712,"src":"1_BIKER_RVSwm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_6002712.html","width":130,"caption":"Biker","height":161});
															thumbnails[6029860] = clik.newPhoto({"id":6029860,"src":"monkeys-ebdon-bridgewm_thumb.jpg","galleries_id":339073,"server_id":5,"link":"photo_6029860.html","width":130,"caption":"Monkeys ","height":87});
															thumbnails[6040469] = clik.newPhoto({"id":6040469,"src":"06_1_SHEEP-IN-FIELD_AGC450w_thumb.jpg","galleries_id":330437,"server_id":5,"link":"photo_6040469.html","width":130,"caption":"Sheep in Field","height":102});
															thumbnails[6040619] = clik.newPhoto({"id":6040619,"src":"BeaconVer3450wm_thumb.jpg","galleries_id":330322,"server_id":5,"link":"photo_6040619.html","width":130,"caption":"Sun Beacon","height":197});
															thumbnails[6040748] = clik.newPhoto({"id":6040748,"src":"3Thin-_Ice500wm_thumb.jpg","galleries_id":330437,"server_id":5,"link":"photo_6040748.html","width":130,"caption":"Thin Ice","height":87});
															thumbnails[6336788] = clik.newPhoto({"id":6336788,"src":"Bluebell-CBull395_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_6336788.html","width":130,"caption":"Bluebell","height":195});
															thumbnails[6336796] = clik.newPhoto({"id":6336796,"src":"Chris-Chris-and-Chris_CBu50_thumb.jpg","galleries_id":351281,"server_id":5,"link":"photo_6336796.html","width":130,"caption":"Chris Chris and Chris","height":87});
															thumbnails[6344238] = clik.newPhoto({"id":6344238,"src":"RW-Ducky-Blue-Eyes450_thumb.jpg","galleries_id":351572,"server_id":5,"link":"photo_6344238.html","width":130,"caption":"Ducky Blue Eyes","height":99});
															thumbnails[6344242] = clik.newPhoto({"id":6344242,"src":"RW-Garden-Flowers450_thumb.jpg","galleries_id":351572,"server_id":5,"link":"photo_6344242.html","width":130,"caption":"Garden Flowers","height":98});
															thumbnails[6344351] = clik.newPhoto({"id":6344351,"src":"RW-i-see-you400_thumb.jpg","galleries_id":351572,"server_id":5,"link":"photo_6344351.html","width":130,"caption":"I See You","height":135});
															thumbnails[6385489] = clik.newPhoto({"id":6385489,"src":"Bill-Eaton-MotorwayStorm500_thumb.jpg","galleries_id":330630,"server_id":5,"link":"photo_6385489.html","width":130,"caption":"Motorway Storm","height":98});
															thumbnails[6385503] = clik.newPhoto({"id":6385503,"src":"Ann-EatonSwan_Lake500wm_thumb.jpg","galleries_id":332523,"server_id":5,"link":"photo_6385503.html","width":130,"caption":"Swan Lake","height":95});
															thumbnails[6399229] = clik.newPhoto({"id":6399229,"src":"Bill-EatonFisheries-Patrol-_thumb.jpg","galleries_id":330630,"server_id":5,"link":"photo_6399229.html","width":130,"caption":"Fisheries Patrol","height":98});
															thumbnails[6468682] = clik.newPhoto({"id":6468682,"src":"KS_GO495wm1_thumb.jpg","galleries_id":356551,"server_id":5,"link":"photo_6468682.html","width":130,"caption":"GO","height":105});
															thumbnails[6617667] = clik.newPhoto({"id":6617667,"src":"CBAmy-Portrait_thumb.jpg","galleries_id":347640,"server_id":5,"link":"photo_6617667.html","width":130,"caption":"Amy","height":194});
															thumbnails[6732793] = clik.newPhoto({"id":6732793,"src":"House1_thumb.jpg","galleries_id":367126,"server_id":5,"link":"photo_6732793.html","width":130,"caption":"Temple Newsam ","height":84});
															thumbnails[7406298] = clik.newPhoto({"id":7406298,"src":"Monument500wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_7406298.html","width":130,"caption":"Monument","height":86});
															thumbnails[7406412] = clik.newPhoto({"id":7406412,"src":"Luxor500wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_7406412.html","width":130,"caption":"Luxor","height":86});
															thumbnails[7406462] = clik.newPhoto({"id":7406462,"src":"Crown-Point500wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_7406462.html","width":130,"caption":"Crown Point ","height":86});
															thumbnails[7406513] = clik.newPhoto({"id":7406513,"src":"JET-SKI500wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_7406513.html","width":130,"caption":"Jet Ski","height":86});
															thumbnails[7406693] = clik.newPhoto({"id":7406693,"src":"Chin-Wag500wm_thumb.jpg","galleries_id":330633,"server_id":5,"link":"photo_7406693.html","width":130,"caption":"Chin Wag","height":83});
															thumbnails[7585018] = clik.newPhoto({"id":7585018,"src":"DSC_2142Sweb_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_7585018.html","width":130,"caption":"","height":186});
															thumbnails[8737542] = clik.newPhoto({"id":8737542,"src":"DSC_8777_copy_thumb.jpg","galleries_id":333147,"server_id":5,"link":"photo_8737542.html","width":130,"caption":"","height":100});
															thumbnails[9004598] = clik.newPhoto({"id":9004598,"src":"Signs_at_night_thumb.jpg","galleries_id":474321,"server_id":5,"link":"photo_9004598.html","width":130,"caption":"Winning Image of the Night Photography Competition","height":96});
															thumbnails[7851936] = clik.newPhoto({"id":7851936,"src":"1Cotton-Mill_RVSWeb1_thumb.jpg","galleries_id":423663,"server_id":5,"link":"photo_7851936.html","width":130,"caption":"Cotton Mill","height":93});
															thumbnails[7851924] = clik.newPhoto({"id":7851924,"src":"2Transport_CLBweb2_thumb.jpg","galleries_id":423663,"server_id":5,"link":"photo_7851924.html","width":130,"caption":"Transport 2","height":74});
															thumbnails[7859696] = clik.newPhoto({"id":7859696,"src":"1Transport_CLBweb_thumb.jpg","galleries_id":423663,"server_id":5,"link":"photo_7859696.html","width":130,"caption":"Red Ford","height":70});
															thumbnails[5887328] = clik.newPhoto({"id":5887328,"src":"Flower450wm_copy_thumb.jpg","galleries_id":332523,"server_id":5,"link":"photo_5887328.html","width":130,"caption":"Flower","height":98});
															thumbnails[5887330] = clik.newPhoto({"id":5887330,"src":"HeavenlyLight450wm_copy_thumb.jpg","galleries_id":332523,"server_id":5,"link":"photo_5887330.html","width":130,"caption":"Heavenly Light","height":159});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[474321] = clik.newGallery({"parentGallery":330323,"usePopups":false,"title":"Competition - Night","link":"gallery_474321.html","maxRecords":0.0,"photoIDs":[9004598.0],"skipIndex":0,"section_code":"gallery","featured_images":9004598.0,"id":474321,"singleSection":false});				  						galleries[423663] = clik.newGallery({"parentGallery":330323,"usePopups":false,"title":"Competition - Transport","link":"gallery_423663.html","maxRecords":0.0,"photoIDs":[7851936.0,7851924.0,7859696.0],"skipIndex":0,"section_code":"gallery","featured_images":7851936.0,"id":423663,"singleSection":false});				  						galleries[339612] = clik.newGallery({"parentGallery":330323,"usePopups":false,"title":"Competition -Shapes","link":"gallery_339612.html","maxRecords":0.0,"photoIDs":[5902458.0,5902547.0],"skipIndex":0,"section_code":"gallery","featured_images":5902458.0,"id":339612,"singleSection":false});				  						galleries[330437] = clik.newGallery({"parentGallery":330323,"usePopups":false,"title":"Competition 3 - Winter","link":"gallery_330437.html","maxRecords":0.0,"photoIDs":[5939894.0,6040469.0,6040748.0],"skipIndex":0,"section_code":"gallery","featured_images":"6040469,5939894","id":330437,"singleSection":false});				  						galleries[330323] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competitions","link":"gallery_330323.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7851936,7534037,6040469,5939894,5902458","id":330323,"singleSection":false});				  						galleries[456210] = clik.newGallery({"parentGallery":330323,"usePopups":false,"title":"Competiton - Yellow","link":"gallery_456210.html","maxRecords":0.0,"photoIDs":[8637600.0,8637655.0,8637675.0],"skipIndex":0,"section_code":"gallery","featured_images":"8637675,8637655,8637600","id":456210,"singleSection":false});				  						galleries[338589] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Members Galleries","link":"gallery_338589.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9101557,9063082,9004871,7534080,7457363,6951622,6336788,6202086,5939972,5939888,5907881,5887685,5887328","id":338589,"singleSection":false});				  						galleries[338593] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Shoots","link":"gallery_338593.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":6617667.0,"id":338593,"singleSection":false});				  						galleries[347640] = clik.newGallery({"parentGallery":338593,"usePopups":false,"title":"Portrait","link":"gallery_347640.html","maxRecords":0.0,"photoIDs":[6248766.0,6248784.0,6617667.0],"skipIndex":0,"section_code":"gallery","featured_images":6617667.0,"id":347640,"singleSection":false});				  						galleries[474327] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Richard Nolan","link":"gallery_474327.html","maxRecords":0.0,"photoIDs":[9004871.0,9004896.0,9101557.0],"skipIndex":0,"section_code":"gallery","featured_images":"9101557,9004871","id":474327,"singleSection":false});				  						galleries[408436] = clik.newGallery({"parentGallery":330323,"usePopups":false,"title":"Competition - Reflections","link":"gallery_408436.html","maxRecords":0.0,"photoIDs":[7534034.0,7534037.0,7534041.0,7534052.0],"skipIndex":0,"section_code":"gallery","featured_images":7534037.0,"id":408436,"singleSection":false});				  						galleries[333147] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Andrew Currie","link":"gallery_333147.html","maxRecords":0.0,"photoIDs":[8737511.0,8737534.0,8737545.0,8737580.0,7619005.0,7619008.0,7619019.0,7584967.0,7585019.0,7585021.0,7497864.0,7497866.0,7497877.0,7497918.0,7497921.0,7497923.0,7497925.0,5939885.0,5939888.0,7585018.0,8737542.0],"skipIndex":0,"section_code":"gallery","featured_images":5939888.0,"id":333147,"singleSection":false});				  						galleries[332523] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Ann Eaton","link":"gallery_332523.html","maxRecords":0.0,"photoIDs":[6951622.0,6202086.0,6385503.0,5887328.0,5887330.0],"skipIndex":0,"section_code":"gallery","featured_images":"6951622,6202086,5887328","id":332523,"singleSection":false});				  						galleries[330630] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Bill Eaton","link":"gallery_330630.html","maxRecords":0.0,"photoIDs":[5887685.0,5940046.0,5940084.0,6385489.0,6399229.0],"skipIndex":0,"section_code":"gallery","featured_images":5887685.0,"id":330630,"singleSection":false});				  						galleries[339073] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Bob Dodd","link":"gallery_339073.html","maxRecords":0.0,"photoIDs":[6029860.0],"skipIndex":0,"section_code":"gallery","featured_images":6029860.0,"id":339073,"singleSection":false});				  						galleries[351281] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Chris Bull","link":"gallery_351281.html","maxRecords":0.0,"photoIDs":[9063082.0,7630562.0,7630577.0,7534080.0,7433988.0,7434002.0,7434030.0,7434043.0,6336788.0,6336796.0],"skipIndex":0,"section_code":"gallery","featured_images":"9063082,7534080,6336788","id":351281,"singleSection":false});				  						galleries[330634] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Dave Morrison","link":"gallery_330634.html","maxRecords":0.0,"photoIDs":[7457363.0,7457376.0,7457383.0,7457468.0,7457474.0,5908217.0,5908218.0],"skipIndex":0,"section_code":"gallery","featured_images":7457363.0,"id":330634,"singleSection":false});				  						galleries[356551] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Keith Schofield","link":"gallery_356551.html","maxRecords":0.0,"photoIDs":[6468682.0],"skipIndex":0,"section_code":"gallery","featured_images":6468682.0,"id":356551,"singleSection":false});				  						galleries[367126] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"John Heywood-Guy","link":"gallery_367126.html","maxRecords":0.0,"photoIDs":[8005049.0,7158605.0,7158613.0,7158616.0,6732793.0],"skipIndex":0,"section_code":"gallery","featured_images":"8005049,7158616,7158613,7158605,6732793","id":367126,"singleSection":false});				  						galleries[351572] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Richard Wallace","link":"gallery_351572.html","maxRecords":0.0,"photoIDs":[9004918.0,9004922.0,6344238.0,6344242.0,6344351.0],"skipIndex":0,"section_code":"gallery","featured_images":"9004922,9004918,6344351,6344242,6344238","id":351572,"singleSection":false});				  						galleries[330633] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Robin Smith","link":"gallery_330633.html","maxRecords":0.0,"photoIDs":[5933370.0,5933378.0,5939972.0,6002712.0,7406298.0,7406412.0,7406462.0,7406513.0,7406693.0],"skipIndex":0,"section_code":"gallery","featured_images":5939972.0,"id":330633,"singleSection":false});				  						galleries[402070] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Tony Baldwinson","link":"gallery_402070.html","maxRecords":0.0,"photoIDs":[7450968.0,7451092.0,7451227.0,7451243.0,7451253.0],"skipIndex":0,"section_code":"gallery","featured_images":"7451253,7451243,7451227,7451092,7450968","id":402070,"singleSection":false});				  						galleries[330322] = clik.newGallery({"parentGallery":338589,"usePopups":false,"title":"Tony Robinson","link":"gallery_330322.html","maxRecords":0.0,"photoIDs":[8776237.0,6133910.0,5907881.0,5846501.0,6040619.0],"skipIndex":0,"section_code":"gallery","featured_images":5907881.0,"id":330322,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9063082,9004896,9004598,8737542,8737511,8637675,8637600,8308900,7585019,7534080,7534037,7457363';
imageSets[2] = '9101557,9063082,9004871,7534080,7534037,7457363,6951622,6617667,6336788,6202086,6040469,5939972,5939894,5939888,5907881,5902458,5887685,7851936,5887328';
imageSets[3] = '9101557,9063082,9004922,9004918,9004896,9004871,9004598,8776237,8737580,8737545,8737542,8737534,8737511,8637675,8637655,8637600,8308900,8005049,7859696,7851936,7851924,7630577,7630562,7619019,7619008,7619005,7585021,7585019,7585018,7584967,7534080,7534052,7534041,7534037,7534034,7497925,7497923,7497921,7497918,7497877,7497866,7497864,7457474,7457468,7457383,7457376,7457363,7451253,7451243,7451227';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/shutters/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/shutters/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/shutters/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/shutters/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/shutters/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/shutters/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/shutters/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/shutters/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 = 'Garforth 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;
	}
}

			

