window.thumbnails = {};
															thumbnails[5233150] = clik.newPhoto({"id":5233150,"src":"Georges-Outings_winner_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"George won","height":97});
															thumbnails[5233203] = clik.newPhoto({"id":5233203,"src":"The-winner_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The winner","height":98});
															thumbnails[5247622] = clik.newPhoto({"id":5247622,"src":"Urban_Princess_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. Urban princess","height":183});
															thumbnails[5558362] = clik.newPhoto({"id":5558362,"src":"End_of_the_Day_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6365533] = clik.newPhoto({"id":6365533,"src":"Tweet-Tweet1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6365534] = clik.newPhoto({"id":6365534,"src":"Fire-in-the-Sky1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6365535] = clik.newPhoto({"id":6365535,"src":"Glacier1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6845175] = clik.newPhoto({"id":6845175,"src":"Waiting_for__the_lights_Fountains_Abbey_for_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Waiting for the lights, Fountains Abbey","height":87});
															thumbnails[6857992] = clik.newPhoto({"id":6857992,"src":"Portrait_Group_250px_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":93});
															thumbnails[6858011] = clik.newPhoto({"id":6858011,"src":"The_portrat_Set_-250px_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6938630] = clik.newPhoto({"id":6938630,"src":"Underneath_the_arches_web1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":172});
															thumbnails[6975301] = clik.newPhoto({"id":6975301,"src":"Whitby_goths_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":95});
															thumbnails[7002118] = clik.newPhoto({"id":7002118,"src":"Burning_Sun_for_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Burning sun","height":98});
															thumbnails[7002153] = clik.newPhoto({"id":7002153,"src":"Back_to_the_Duke_resized_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[7002156] = clik.newPhoto({"id":7002156,"src":"Sarah_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Sarah","height":92});
															thumbnails[7002159] = clik.newPhoto({"id":7002159,"src":"Shadow_Walkers_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Shadow walkers","height":93});
															thumbnails[7002163] = clik.newPhoto({"id":7002163,"src":"Toward_the_Light_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Toward the light","height":92});
															thumbnails[7004211] = clik.newPhoto({"id":7004211,"src":"Going_home_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Going home","height":188});
															thumbnails[7013174] = clik.newPhoto({"id":7013174,"src":"reflections_golden_city_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Reflections of a golden city","height":98});
															thumbnails[7071104] = clik.newPhoto({"id":7071104,"src":"waterfalltrip_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":90});
															thumbnails[7071582] = clik.newPhoto({"id":7071582,"src":"Mike_Hardy2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":131});
															thumbnails[7107292] = clik.newPhoto({"id":7107292,"src":"Dinner11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7114571] = clik.newPhoto({"id":7114571,"src":"All_About_Light_for_news_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7114649] = clik.newPhoto({"id":7114649,"src":"Entrancing_for_news1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7160971] = clik.newPhoto({"id":7160971,"src":"icicles_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[7200717] = clik.newPhoto({"id":7200717,"src":"0729_Lesley_for_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Lesley","height":97});
															thumbnails[7200719] = clik.newPhoto({"id":7200719,"src":"0732_Joan_for_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Joan","height":106});
															thumbnails[7200720] = clik.newPhoto({"id":7200720,"src":"0734_Alan_for_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Allan","height":105});
															thumbnails[7229571] = clik.newPhoto({"id":7229571,"src":"Gerry-snack_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":168});
															thumbnails[7234244] = clik.newPhoto({"id":7234244,"src":"FlickrGCC_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":79});
															thumbnails[7312641] = clik.newPhoto({"id":7312641,"src":"Incoming_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ist. Incoming","height":98});
															thumbnails[7312646] = clik.newPhoto({"id":7312646,"src":"Eternal-Solitude_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"3rd. Eternal solitude","height":98});
															thumbnails[8832492] = clik.newPhoto({"id":8832492,"src":"Highland_cascade_web_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Highland cascade","height":130});
															thumbnails[5266215] = clik.newPhoto({"id":5266215,"src":"Rannoch_Moor2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. Rannoch Moor","height":45});
															thumbnails[5305599] = clik.newPhoto({"id":5305599,"src":"Old_Style_Glamour_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. Old style glamour","height":130});
															thumbnails[5393163] = clik.newPhoto({"id":5393163,"src":"All_About_Light_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. All about light","height":98});
															thumbnails[5529898] = clik.newPhoto({"id":5529898,"src":"Radiance_Save_for_Web_1st_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. Radiance","height":130});
															thumbnails[5562598] = clik.newPhoto({"id":5562598,"src":"Focus2_for_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. Focus","height":98});
															thumbnails[7107253] = clik.newPhoto({"id":7107253,"src":"Dinner2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"1st. Dinner","height":130});
															thumbnails[5131610] = clik.newPhoto({"id":5131610,"src":"Reflection_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"2nd. Reflection","height":80});
															thumbnails[5266218] = clik.newPhoto({"id":5266218,"src":"Whitby_09_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":92});
															thumbnails[5393164] = clik.newPhoto({"id":5393164,"src":"Enchanting_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"2nd. Enchanting","height":98});
															thumbnails[5719503] = clik.newPhoto({"id":5719503,"src":"Whitby2-092_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":103});
															thumbnails[7107257] = clik.newPhoto({"id":7107257,"src":"Winter_Sun_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"2nd. Winter sun","height":98});
															thumbnails[7312651] = clik.newPhoto({"id":7312651,"src":"Winter-Light-Seaton-Sluice_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"2nd. Winter light Seaton Sluice","height":79});
															thumbnails[7107254] = clik.newPhoto({"id":7107254,"src":"Clouds_Bamburgh_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"3rd. Clouds Bamburgh","height":98});
															thumbnails[5143638] = clik.newPhoto({"id":5143638,"src":"Alluring_JH_thumb.jpg","galleries_id":290669,"server_id":18,"link":"photo_5143638.html","width":130,"caption":"Alluring","height":194});
															thumbnails[5143642] = clik.newPhoto({"id":5143642,"src":"Beauty_at__Belsay_JH_thumb.jpg","galleries_id":290669,"server_id":18,"link":"photo_5143642.html","width":130,"caption":"Beauty at Belsay","height":194});
															thumbnails[5143649] = clik.newPhoto({"id":5143649,"src":"Graffiti_JH_thumb.jpg","galleries_id":290669,"server_id":18,"link":"photo_5143649.html","width":130,"caption":"Graffitti","height":87});
															thumbnails[5143652] = clik.newPhoto({"id":5143652,"src":"Mystery_JH_thumb.jpg","galleries_id":290669,"server_id":18,"link":"photo_5143652.html","width":130,"caption":"Mystery","height":194});
															thumbnails[5143655] = clik.newPhoto({"id":5143655,"src":"Rapture_JH_thumb.jpg","galleries_id":290669,"server_id":18,"link":"photo_5143655.html","width":130,"caption":"Rapture","height":87});
															thumbnails[5143847] = clik.newPhoto({"id":5143847,"src":"Red_Texture_JH_thumb.jpg","galleries_id":290669,"server_id":18,"link":"photo_5143847.html","width":130,"caption":"Red texture","height":194});
															thumbnails[5210373] = clik.newPhoto({"id":5210373,"src":"Black_Rock_RH_thumb.jpg","galleries_id":294071,"server_id":18,"link":"photo_5210373.html","width":130,"caption":"Black Rock","height":130});
															thumbnails[5210374] = clik.newPhoto({"id":5210374,"src":"Hawk_Eye_RH_thumb.jpg","galleries_id":294071,"server_id":18,"link":"photo_5210374.html","width":130,"caption":"Hawk eye","height":130});
															thumbnails[5210381] = clik.newPhoto({"id":5210381,"src":"Pen_and_Ink_RH_thumb.jpg","galleries_id":294071,"server_id":18,"link":"photo_5210381.html","width":130,"caption":"Pen and ink","height":130});
															thumbnails[5210383] = clik.newPhoto({"id":5210383,"src":"Strange_Affair_RH_thumb.jpg","galleries_id":294071,"server_id":18,"link":"photo_5210383.html","width":130,"caption":"Strange affair","height":130});
															thumbnails[5210386] = clik.newPhoto({"id":5210386,"src":"Lily_RH_thumb.jpg","galleries_id":294071,"server_id":18,"link":"photo_5210386.html","width":130,"caption":"Lily","height":130});
															thumbnails[5210389] = clik.newPhoto({"id":5210389,"src":"Lindisfarne2_RH_thumb.jpg","galleries_id":294071,"server_id":18,"link":"photo_5210389.html","width":130,"caption":"Lindisfarne","height":130});
															thumbnails[5406674] = clik.newPhoto({"id":5406674,"src":"Back_Street_Kids_AS_thumb.jpg","galleries_id":305385,"server_id":18,"link":"photo_5406674.html","width":130,"caption":"Back street kids","height":215});
															thumbnails[5406677] = clik.newPhoto({"id":5406677,"src":"Carefree_AS_thumb.jpg","galleries_id":305385,"server_id":18,"link":"photo_5406677.html","width":130,"caption":"Carefree","height":99});
															thumbnails[5406679] = clik.newPhoto({"id":5406679,"src":"Dreamin_AS_thumb.jpg","galleries_id":305385,"server_id":18,"link":"photo_5406679.html","width":130,"caption":"Dreamin'","height":218});
															thumbnails[5406681] = clik.newPhoto({"id":5406681,"src":"Family_Day_Out_AS_thumb.jpg","galleries_id":305385,"server_id":18,"link":"photo_5406681.html","width":130,"caption":"Family day out","height":87});
															thumbnails[5406684] = clik.newPhoto({"id":5406684,"src":"Kamakura_Buddha_AS_thumb.jpg","galleries_id":305385,"server_id":18,"link":"photo_5406684.html","width":130,"caption":"Kamakura Buddha","height":197});
															thumbnails[5406685] = clik.newPhoto({"id":5406685,"src":"Statues_of_Jiza_AS_thumb.jpg","galleries_id":305385,"server_id":18,"link":"photo_5406685.html","width":130,"caption":"","height":215});
															thumbnails[5561665] = clik.newPhoto({"id":5561665,"src":"Belsay_1_for_web_thumb.jpg","galleries_id":315464,"server_id":18,"link":"photo_5561665.html","width":130,"caption":"Belsay","height":195});
															thumbnails[7211420] = clik.newPhoto({"id":7211420,"src":"Serenity_Save_for_web_thumb.jpg","galleries_id":389711,"server_id":18,"link":"photo_7211420.html","width":130,"caption":"1st. Serenity","height":130});
															thumbnails[7211425] = clik.newPhoto({"id":7211425,"src":"Mysterious_Lady_Save_for_web_thumb.jpg","galleries_id":389712,"server_id":18,"link":"photo_7211425.html","width":130,"caption":"1st. Mysterious lady","height":87});
															thumbnails[7369254] = clik.newPhoto({"id":7369254,"src":"curlew-landingIH_thumb.jpeg","galleries_id":398892,"server_id":18,"link":"photo_7369254.html","width":130,"caption":"Curlew landing","height":98});
															thumbnails[7442333] = clik.newPhoto({"id":7442333,"src":"She-Never-Shuts_Up_thumb.jpg","galleries_id":290670,"server_id":18,"link":"photo_7442333.html","width":130,"caption":"1. She never shuts up","height":87});
															thumbnails[7446149] = clik.newPhoto({"id":7446149,"src":"making-tracks-val-disere_thumb.jpg","galleries_id":290671,"server_id":18,"link":"photo_7446149.html","width":130,"caption":"1. Making tracks Val d'Isere","height":87});
															thumbnails[7594428] = clik.newPhoto({"id":7594428,"src":"Are-you-looking-at-me_thumb.jpg","galleries_id":288104,"server_id":18,"link":"photo_7594428.html","width":130,"caption":"1st. Are you looking at me?","height":98});
															thumbnails[7694296] = clik.newPhoto({"id":7694296,"src":"Tree_Fungi_2_thumb.jpg","galleries_id":416625,"server_id":18,"link":"photo_7694296.html","width":130,"caption":"1st. Tree fungi","height":98});
															thumbnails[7694315] = clik.newPhoto({"id":7694315,"src":"Everyone_Hurts_Sometime_2__thumb.jpg","galleries_id":416626,"server_id":18,"link":"photo_7694315.html","width":130,"caption":"1st. Everyone hurts sometime","height":191});
															thumbnails[8730762] = clik.newPhoto({"id":8730762,"src":"Time_Traveller_Save_for_web_Joan_thumb.jpg","galleries_id":290672,"server_id":18,"link":"photo_8730762.html","width":130,"caption":"1st. Time traveller","height":87});
															thumbnails[8730768] = clik.newPhoto({"id":8730768,"src":"Beneath_the_Cover_of_Night_Save_for_web_Joan_thumb.jpg","galleries_id":288110,"server_id":18,"link":"photo_8730768.html","width":130,"caption":"1st. Beneath the cover of night","height":87});
															thumbnails[8906174] = clik.newPhoto({"id":8906174,"src":"Dawn_colours_thumb.jpg","galleries_id":384477,"server_id":18,"link":"photo_8906174.html","width":130,"caption":"1st. Dawn colours","height":98});
															thumbnails[9111510] = clik.newPhoto({"id":9111510,"src":"72_Tulip_Angelique_resized__1_thumb.jpg","galleries_id":304386,"server_id":18,"link":"photo_9111510.html","width":130,"caption":"1st. Tulip Angelique","height":130});
															thumbnails[5561666] = clik.newPhoto({"id":5561666,"src":"bridesmaid-for-web-csi_thumb.jpg","galleries_id":315464,"server_id":18,"link":"photo_5561666.html","width":130,"caption":"Bridesmaid","height":138});
															thumbnails[7211422] = clik.newPhoto({"id":7211422,"src":"Four_Hats_for_web_thumb.jpg","galleries_id":389711,"server_id":18,"link":"photo_7211422.html","width":130,"caption":"2nd. Four hats","height":79});
															thumbnails[7211426] = clik.newPhoto({"id":7211426,"src":"Celarium_for_web_thumb.jpg","galleries_id":389712,"server_id":18,"link":"photo_7211426.html","width":130,"caption":"2nd. Celarium","height":86});
															thumbnails[7369277] = clik.newPhoto({"id":7369277,"src":"daisies-IH1_thumb.jpeg","galleries_id":398892,"server_id":18,"link":"photo_7369277.html","width":130,"caption":"Daisies","height":89});
															thumbnails[7369334] = clik.newPhoto({"id":7369334,"src":"rowing-in-a-blizzard-IH1_thumb.jpeg","galleries_id":288110,"server_id":18,"link":"photo_7369334.html","width":130,"caption":"2nd. Rowing in a blizzard","height":86});
															thumbnails[7442316] = clik.newPhoto({"id":7442316,"src":"Casting-a-Spell_thumb.jpg","galleries_id":290671,"server_id":18,"link":"photo_7442316.html","width":130,"caption":"2. Casting a spell","height":130});
															thumbnails[7442457] = clik.newPhoto({"id":7442457,"src":"Heart-of-my-Heart2_thumb.jpg","galleries_id":290670,"server_id":18,"link":"photo_7442457.html","width":130,"caption":"2. Heart of my heart","height":196});
															thumbnails[7594432] = clik.newPhoto({"id":7594432,"src":"Stretching-to-Infinity_thumb.jpg","galleries_id":288104,"server_id":18,"link":"photo_7594432.html","width":130,"caption":"2nd. Stretching to infinity","height":98});
															thumbnails[7694320] = clik.newPhoto({"id":7694320,"src":"An-English-Rose-for-web1_thumb.jpg","galleries_id":416626,"server_id":18,"link":"photo_7694320.html","width":130,"caption":"2nd. An English rose in the desert","height":72});
															thumbnails[7780034] = clik.newPhoto({"id":7780034,"src":"Struttin-his-Stuff1_thumb.jpg","galleries_id":416625,"server_id":18,"link":"photo_7780034.html","width":130,"caption":"2nd. Struttin his stuff","height":173});
															thumbnails[8739301] = clik.newPhoto({"id":8739301,"src":"Beach_Posts_thumb.jpg","galleries_id":290672,"server_id":18,"link":"photo_8739301.html","width":130,"caption":"2nd. Beach posts","height":81});
															thumbnails[8906170] = clik.newPhoto({"id":8906170,"src":"Puffin_take_off_thumb.jpg","galleries_id":384477,"server_id":18,"link":"photo_8906170.html","width":130,"caption":"2nd. Puffin take off","height":98});
															thumbnails[9111501] = clik.newPhoto({"id":9111501,"src":"71_Yorkie_resized_3_thumb.jpg","galleries_id":304386,"server_id":18,"link":"photo_9111501.html","width":130,"caption":"2nd. Yorkie","height":173});
															thumbnails[5565755] = clik.newPhoto({"id":5565755,"src":"George_for_the_web_CS_thumb.jpg","galleries_id":315464,"server_id":18,"link":"photo_5565755.html","width":130,"caption":"George","height":172});
															thumbnails[7211423] = clik.newPhoto({"id":7211423,"src":"Flower_for_web_thumb.jpg","galleries_id":389711,"server_id":18,"link":"photo_7211423.html","width":130,"caption":"3rd. Flower","height":98});
															thumbnails[7221940] = clik.newPhoto({"id":7221940,"src":"Shouldve-gone-to-specsaver_thumb.jpg","galleries_id":389712,"server_id":18,"link":"photo_7221940.html","width":130,"caption":"3rd. Should've gone to Specsavers","height":98});
															thumbnails[7369258] = clik.newPhoto({"id":7369258,"src":"fighterjet-shadows-IH_thumb.jpeg","galleries_id":398892,"server_id":18,"link":"photo_7369258.html","width":130,"caption":"Fighter jet shadows","height":98});
															thumbnails[7442323] = clik.newPhoto({"id":7442323,"src":"In-the-Spotlight_thumb.jpg","galleries_id":290671,"server_id":18,"link":"photo_7442323.html","width":130,"caption":"3. In the spotlight","height":156});
															thumbnails[7442327] = clik.newPhoto({"id":7442327,"src":"Monk-ebusiness_thumb.jpg","galleries_id":290670,"server_id":18,"link":"photo_7442327.html","width":130,"caption":"3. Monk ebusiness","height":163});
															thumbnails[7594425] = clik.newPhoto({"id":7594425,"src":"A-long-walk_thumb.jpg","galleries_id":288104,"server_id":18,"link":"photo_7594425.html","width":130,"caption":"3rd. A long walk","height":92});
															thumbnails[7694150] = clik.newPhoto({"id":7694150,"src":"Deep_Reflection_thumb.jpg","galleries_id":416626,"server_id":18,"link":"photo_7694150.html","width":130,"caption":"3rd. Deep reflection","height":65});
															thumbnails[7694299] = clik.newPhoto({"id":7694299,"src":"Snowy_Owl_thumb.jpg","galleries_id":416625,"server_id":18,"link":"photo_7694299.html","width":130,"caption":"3rd. Snowy owl","height":98});
															thumbnails[8730757] = clik.newPhoto({"id":8730757,"src":"Harleys-Angel_thumb.gif","galleries_id":290672,"server_id":18,"link":"photo_8730757.html","width":130,"caption":"3rd. Harley's Angel","height":153});
															thumbnails[8739307] = clik.newPhoto({"id":8739307,"src":"Old_Boat_thumb.jpg","galleries_id":288110,"server_id":18,"link":"photo_8739307.html","width":130,"caption":"3rd. Old boat","height":93});
															thumbnails[8906173] = clik.newPhoto({"id":8906173,"src":"Demons_thumb.jpg","galleries_id":384477,"server_id":18,"link":"photo_8906173.html","width":130,"caption":"3rd. Demons","height":150});
															thumbnails[9111497] = clik.newPhoto({"id":9111497,"src":"70_Timeless_resized_3_thumb.jpg","galleries_id":304386,"server_id":18,"link":"photo_9111497.html","width":130,"caption":"3rd. Timeless","height":191});
															thumbnails[5561670] = clik.newPhoto({"id":5561670,"src":"NEW-SHOEScs-for-web_thumb.jpg","galleries_id":315464,"server_id":18,"link":"photo_5561670.html","width":130,"caption":"New shoes","height":126});
															thumbnails[7369293] = clik.newPhoto({"id":7369293,"src":"godwit-getaway-IH1_thumb.jpeg","galleries_id":398892,"server_id":18,"link":"photo_7369293.html","width":130,"caption":"Godwit getaway","height":187});
															thumbnails[5561674] = clik.newPhoto({"id":5561674,"src":"penshaw-cs-for-web_thumb.jpg","galleries_id":315464,"server_id":18,"link":"photo_5561674.html","width":130,"caption":"Penshaw","height":84});
															thumbnails[5561676] = clik.newPhoto({"id":5561676,"src":"Red-cs-for-web_thumb.jpg","galleries_id":315464,"server_id":18,"link":"photo_5561676.html","width":130,"caption":"Red","height":139});
															thumbnails[7369266] = clik.newPhoto({"id":7369266,"src":"wood-wasp-IH_thumb.jpeg","galleries_id":398892,"server_id":18,"link":"photo_7369266.html","width":130,"caption":"Wood wasp","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[288110] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Colour prints 1 2011-12","link":"gallery_288110.html","maxRecords":0.0,"photoIDs":[8730768.0,7369334.0,8739307.0],"skipIndex":0,"section_code":"gallery","featured_images":"8739307,8730768,7369334","id":288110,"singleSection":false});				  						galleries[389712] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Colour prints 2 2010-11","link":"gallery_389712.html","maxRecords":0.0,"photoIDs":[7211425.0,7211426.0,7221940.0],"skipIndex":0,"section_code":"gallery","featured_images":"7221940,7211425","id":389712,"singleSection":false});				  						galleries[290671] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Colour prints 3 2010-11","link":"gallery_290671.html","maxRecords":0.0,"photoIDs":[7446149.0,7442316.0,7442323.0],"skipIndex":0,"section_code":"gallery","featured_images":"7446149,7442316","id":290671,"singleSection":false});				  						galleries[290672] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Mono prints 1 2011-12","link":"gallery_290672.html","maxRecords":0.0,"photoIDs":[8730762.0,8739301.0,8730757.0],"skipIndex":0,"section_code":"gallery","featured_images":"8730762,8730757","id":290672,"singleSection":false});				  						galleries[389711] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Mono prints 2 2010-11","link":"gallery_389711.html","maxRecords":0.0,"photoIDs":[7211420.0,7211422.0,7211423.0],"skipIndex":0,"section_code":"gallery","featured_images":7211422.0,"id":389711,"singleSection":false});				  						galleries[290670] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Mono prints 3 2010-11","link":"gallery_290670.html","maxRecords":0.0,"photoIDs":[7442333.0,7442457.0,7442327.0],"skipIndex":0,"section_code":"gallery","featured_images":"7442457,7442333,7442327","id":290670,"singleSection":false});				  						galleries[416625] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Nature 2010-11","link":"gallery_416625.html","maxRecords":0.0,"photoIDs":[7694296.0,7780034.0,7694299.0],"skipIndex":0,"section_code":"gallery","featured_images":7694299.0,"id":416625,"singleSection":false});				  						galleries[384477] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Projected digital 1 2011-12","link":"gallery_384477.html","maxRecords":0.0,"photoIDs":[8906174.0,8906170.0,8906173.0],"skipIndex":0,"section_code":"gallery","featured_images":"8906174,8906170","id":384477,"singleSection":false});				  						galleries[304386] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Projected digital 2 2011-12","link":"gallery_304386.html","maxRecords":0.0,"photoIDs":[9111510.0,9111501.0,9111497.0],"skipIndex":0,"section_code":"gallery","featured_images":"9111510,9111501","id":304386,"singleSection":false});				  						galleries[288104] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Projected digital 3 2010-11","link":"gallery_288104.html","maxRecords":0.0,"photoIDs":[7594428.0,7594432.0,7594425.0],"skipIndex":0,"section_code":"gallery","featured_images":"7594432,7594428,7594425","id":288104,"singleSection":false});				  						galleries[416626] = clik.newGallery({"parentGallery":288108,"usePopups":false,"title":"Set subject 2010-11 'Solitude'","link":"gallery_416626.html","maxRecords":0.0,"photoIDs":[7694315.0,7694320.0,7694150.0],"skipIndex":0,"section_code":"gallery","featured_images":"7694320,7694315,7694150","id":416626,"singleSection":false});				  						galleries[288108] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Club competitions","link":"gallery_288108.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9111510,9111501,8906174,8906170,8730762,8730757,7694299,7594432,7594428,7594425,7446149,7442457,7442333,7442327,7442316,7221940,7211425,7211422","id":288108,"singleSection":false});				  						galleries[290669] = clik.newGallery({"parentGallery":288107,"usePopups":false,"title":"Joan Hall","link":"gallery_290669.html","maxRecords":0.0,"photoIDs":[5143638.0,5143642.0,5143649.0,5143652.0,5143655.0,5143847.0],"skipIndex":0,"section_code":"gallery","featured_images":"5143847,5143655,5143652,5143649,5143642,5143638","id":290669,"singleSection":false});				  						galleries[288107] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Members' images","link":"gallery_288107.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7369258,5561670,5406685,5406679,5406677,5210374","id":288107,"singleSection":false});				  						galleries[294071] = clik.newGallery({"parentGallery":288107,"usePopups":false,"title":"Ron Henry","link":"gallery_294071.html","maxRecords":0.0,"photoIDs":[5210373.0,5210374.0,5210381.0,5210383.0,5210386.0,5210389.0],"skipIndex":0,"section_code":"gallery","featured_images":5210374.0,"id":294071,"singleSection":false});				  						galleries[398892] = clik.newGallery({"parentGallery":288107,"usePopups":false,"title":"Idse Herrema","link":"gallery_398892.html","maxRecords":0.0,"photoIDs":[7369254.0,7369277.0,7369258.0,7369293.0,7369266.0],"skipIndex":0,"section_code":"gallery","featured_images":7369258.0,"id":398892,"singleSection":false});				  						galleries[315464] = clik.newGallery({"parentGallery":288107,"usePopups":false,"title":"Cliff Sheardown","link":"gallery_315464.html","maxRecords":0.0,"photoIDs":[5561665.0,5561666.0,5565755.0,5561670.0,5561674.0,5561676.0],"skipIndex":0,"section_code":"gallery","featured_images":5561670.0,"id":315464,"singleSection":false});				  						galleries[305385] = clik.newGallery({"parentGallery":288107,"usePopups":false,"title":"Arron Storey","link":"gallery_305385.html","maxRecords":0.0,"photoIDs":[5406674.0,5406677.0,5406679.0,5406681.0,5406684.0,5406685.0],"skipIndex":0,"section_code":"gallery","featured_images":"5406685,5406679,5406677","id":305385,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7312641,7002163,9111510,8906174,8730768,7446149,7442333,7594432,7211426,8739307,8730757,7221940';
imageSets[2] = '7312646,7312641,7013174,7002163,5406685,5406679,5406677,5210374,9111510,8906174,8730762,7594428,7446149,7442333,7211425,5529898,5393163,5305599,9111501,8906170,7594432,7442457,7442316,7211422,8730757,7694299,7594425,7442327,7369258,7221940,5561670';
imageSets[3] = '9111510,9111501,9111497,8906174,8906173,8906170,8832492,8739307,8739301,8730768,8730762,8730757,7780034,7694320,7694315,7694299,7694296,7694150,7594432,7594428,7594425,7446149,7442457,7442333,7442327,7442323,7442316,7369334,7369293,7369277,7369266,7369258,7369254,7312651,7312646,7312641,7234244,7229571,7221940,7211426,7211425,7211423,7211422,7211420,7200720,7200719,7200717,7160971,7114649,7114571';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ianwin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ianwin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ianwin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ianwin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ianwin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ianwin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ianwin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ianwin/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 = 'Gosforth Camera Club and Digital Imaging 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;
	}
}

			

