window.thumbnails = {};
															thumbnails[4393865] = clik.newPhoto({"id":4393865,"src":"SouthernMarsh_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":87,"caption":"Southern Marsh Orchid","height":130});
															thumbnails[2262119] = clik.newPhoto({"id":2262119,"src":"common_spotted_orchids_greg_hitchcock_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Common Spotted Orchids","height":87});
															thumbnails[2264469] = clik.newPhoto({"id":2264469,"src":"bee_orchid_greg_hitchcock_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":87,"caption":"Bee Orchid","height":130});
															thumbnails[3034765] = clik.newPhoto({"id":3034765,"src":"grhphotography_crab_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Hairy Crab","height":87});
															thumbnails[2264472] = clik.newPhoto({"id":2264472,"src":"common_spotted_orchid_b_greg_hitchcock_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":87,"caption":"Common Spotted Orchid","height":130});
															thumbnails[2264475] = clik.newPhoto({"id":2264475,"src":"cowslips_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":87,"caption":"Cowslip","height":130});
															thumbnails[2261798] = clik.newPhoto({"id":2261798,"src":"Dingy_skipper_greg_hitchcock_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Dingy Skipper","height":87});
															thumbnails[2264482] = clik.newPhoto({"id":2264482,"src":"lady_orchid_greg_hitchcock_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":88,"caption":"Lady Orchid","height":130});
															thumbnails[2264485] = clik.newPhoto({"id":2264485,"src":"man_orchid_4_greg_hitchcock_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":78,"caption":"Man Orchid","height":130});
															thumbnails[4393661] = clik.newPhoto({"id":4393661,"src":"barkdetail_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_4393661.html","width":87,"caption":"Bark","height":130});
															thumbnails[4393667] = clik.newPhoto({"id":4393667,"src":"BBCf_thumb.JPG","galleries_id":385757,"server_id":1,"link":"photo_4393667.html","width":130,"caption":"Broad-bodied Chaser","height":87});
															thumbnails[4393670] = clik.newPhoto({"id":4393670,"src":"BBCf2_thumb.JPG","galleries_id":385757,"server_id":1,"link":"photo_4393670.html","width":87,"caption":"Broad-bodied Chaser","height":130});
															thumbnails[4393675] = clik.newPhoto({"id":4393675,"src":"BBCm_thumb.JPG","galleries_id":385757,"server_id":1,"link":"photo_4393675.html","width":130,"caption":"Broad-bodied Chaser","height":87});
															thumbnails[4393677] = clik.newPhoto({"id":4393677,"src":"beeorchids_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393677.html","width":66,"caption":"Bee Orchids","height":130});
															thumbnails[4393682] = clik.newPhoto({"id":4393682,"src":"bluetit_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393682.html","width":130,"caption":"Blue Tit","height":87});
															thumbnails[4393684] = clik.newPhoto({"id":4393684,"src":"bored_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393684.html","width":87,"caption":"Untitled","height":130});
															thumbnails[4393687] = clik.newPhoto({"id":4393687,"src":"busybee_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_4393687.html","width":87,"caption":"Bumblebee","height":130});
															thumbnails[4393688] = clik.newPhoto({"id":4393688,"src":"CommonFrog_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393688.html","width":130,"caption":"Common Frog","height":87});
															thumbnails[4393689] = clik.newPhoto({"id":4393689,"src":"CommonFrog2_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393689.html","width":87,"caption":"Ribbit","height":130});
															thumbnails[4393690] = clik.newPhoto({"id":4393690,"src":"cowslip_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393690.html","width":87,"caption":"Cowslips","height":130});
															thumbnails[4393691] = clik.newPhoto({"id":4393691,"src":"Cuckooflower_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393691.html","width":87,"caption":"Cuckooflower","height":130});
															thumbnails[4393698] = clik.newPhoto({"id":4393698,"src":"Earlypurple_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393698.html","width":87,"caption":"Early Purple Orchid","height":130});
															thumbnails[4393699] = clik.newPhoto({"id":4393699,"src":"Eleanor_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393699.html","width":130,"caption":"Ellie","height":87});
															thumbnails[4393716] = clik.newPhoto({"id":4393716,"src":"familyaffair_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393716.html","width":130,"caption":"Tandem superman","height":87});
															thumbnails[4393748] = clik.newPhoto({"id":4393748,"src":"floodedfort_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_4393748.html","width":130,"caption":"Cliffe Fort","height":87});
															thumbnails[4393751] = clik.newPhoto({"id":4393751,"src":"frog1_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393751.html","width":87,"caption":"Frog","height":130});
															thumbnails[4393758] = clik.newPhoto({"id":4393758,"src":"gerris_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_4393758.html","width":130,"caption":"Pond Skater","height":75});
															thumbnails[4393761] = clik.newPhoto({"id":4393761,"src":"greatit_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393761.html","width":87,"caption":"Great Tit","height":130});
															thumbnails[4393765] = clik.newPhoto({"id":4393765,"src":"kingofthecastle_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_4393765.html","width":87,"caption":"King of the (dung) castle","height":130});
															thumbnails[4393776] = clik.newPhoto({"id":4393776,"src":"Lady2_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393776.html","width":87,"caption":"Lady Orchid","height":130});
															thumbnails[4393783] = clik.newPhoto({"id":4393783,"src":"lepthyphyes_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_4393783.html","width":87,"caption":"Spekled Bush Cricket","height":130});
															thumbnails[4393786] = clik.newPhoto({"id":4393786,"src":"lou_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393786.html","width":130,"caption":"Louise","height":103});
															thumbnails[4393788] = clik.newPhoto({"id":4393788,"src":"MaidenPink_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393788.html","width":87,"caption":"Maiden Pink","height":130});
															thumbnails[4393791] = clik.newPhoto({"id":4393791,"src":"Man_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393791.html","width":87,"caption":"Man Orchids","height":130});
															thumbnails[4393793] = clik.newPhoto({"id":4393793,"src":"men_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393793.html","width":75,"caption":"Man Orchids","height":130});
															thumbnails[4393796] = clik.newPhoto({"id":4393796,"src":"monkey_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393796.html","width":87,"caption":"Monkey Orchid","height":130});
															thumbnails[4393799] = clik.newPhoto({"id":4393799,"src":"monkeycl_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393799.html","width":87,"caption":"Monkey Orchid","height":130});
															thumbnails[4393801] = clik.newPhoto({"id":4393801,"src":"mudbikes_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_4393801.html","width":87,"caption":"Mudbikes","height":130});
															thumbnails[4393806] = clik.newPhoto({"id":4393806,"src":"oare_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_4393806.html","width":130,"caption":"Creek view","height":87});
															thumbnails[4393810] = clik.newPhoto({"id":4393810,"src":"Oare1_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_4393810.html","width":130,"caption":"Oare Creek","height":87});
															thumbnails[4393813] = clik.newPhoto({"id":4393813,"src":"Pirata_thumb.JPG","galleries_id":385753,"server_id":1,"link":"photo_4393813.html","width":130,"caption":"<i>Pirata piraticus<\/i>","height":87});
															thumbnails[4393824] = clik.newPhoto({"id":4393824,"src":"portrait_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393824.html","width":130,"caption":"Portrait\/Landscape","height":87});
															thumbnails[4393838] = clik.newPhoto({"id":4393838,"src":"power_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_4393838.html","width":87,"caption":"Powerplant","height":130});
															thumbnails[4393840] = clik.newPhoto({"id":4393840,"src":"Rhagio_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_4393840.html","width":87,"caption":"Snipe fly","height":130});
															thumbnails[4393842] = clik.newPhoto({"id":4393842,"src":"schloer_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393842.html","width":130,"caption":"Conversation","height":87});
															thumbnails[4393866] = clik.newPhoto({"id":4393866,"src":"spiderweb_thumb.JPG","galleries_id":385753,"server_id":1,"link":"photo_4393866.html","width":83,"caption":"Scaffolder","height":130});
															thumbnails[4393868] = clik.newPhoto({"id":4393868,"src":"teaselfrost_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393868.html","width":87,"caption":"Frosted Teasel","height":130});
															thumbnails[4393872] = clik.newPhoto({"id":4393872,"src":"wannabes_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393872.html","width":87,"caption":"Bluebells","height":130});
															thumbnails[4393874] = clik.newPhoto({"id":4393874,"src":"WaterVole_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393874.html","width":130,"caption":"Water Vole","height":87});
															thumbnails[4393875] = clik.newPhoto({"id":4393875,"src":"WaterVole2_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393875.html","width":87,"caption":"Water Vole","height":130});
															thumbnails[4393876] = clik.newPhoto({"id":4393876,"src":"WaterVole3_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393876.html","width":130,"caption":"Water Vole","height":87});
															thumbnails[4393878] = clik.newPhoto({"id":4393878,"src":"WaterVole4_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_4393878.html","width":87,"caption":"Water Vole","height":130});
															thumbnails[4393879] = clik.newPhoto({"id":4393879,"src":"wedding2_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4393879.html","width":130,"caption":"Wedding","height":87});
															thumbnails[4393881] = clik.newPhoto({"id":4393881,"src":"WhiteHelleborine_thumb.JPG","galleries_id":68401,"server_id":1,"link":"photo_4393881.html","width":81,"caption":"White Helleborine","height":130});
															thumbnails[4393883] = clik.newPhoto({"id":4393883,"src":"wintermorn_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_4393883.html","width":130,"caption":"Winter morning","height":102});
															thumbnails[4677866] = clik.newPhoto({"id":4677866,"src":"batgirl_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_4677866.html","width":87,"caption":"Batgirl","height":130});
															thumbnails[4677869] = clik.newPhoto({"id":4677869,"src":"CHASER600_thumb.JPG","galleries_id":385757,"server_id":1,"link":"photo_4677869.html","width":87,"caption":"Broad-bodied Chaser","height":130});
															thumbnails[4677940] = clik.newPhoto({"id":4677940,"src":"window600_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_4677940.html","width":130,"caption":"See-through windows","height":87});
															thumbnails[4677943] = clik.newPhoto({"id":4677943,"src":"shacks600_thumb.JPG","galleries_id":274211,"server_id":1,"link":"photo_4677943.html","width":130,"caption":"Shacks","height":87});
															thumbnails[4677946] = clik.newPhoto({"id":4677946,"src":"winches600_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_4677946.html","width":87,"caption":"Winches (focus stack)","height":130});
															thumbnails[4678176] = clik.newPhoto({"id":4678176,"src":"storm600_thumb.JPG","galleries_id":274211,"server_id":1,"link":"photo_4678176.html","width":87,"caption":"after the rain","height":130});
															thumbnails[4727369] = clik.newPhoto({"id":4727369,"src":"elmley1600_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_4727369.html","width":87,"caption":"Elmley School, Study 1","height":130});
															thumbnails[4727371] = clik.newPhoto({"id":4727371,"src":"elmley2600_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_4727371.html","width":130,"caption":"Elmley School, Study 2","height":87});
															thumbnails[4747815] = clik.newPhoto({"id":4747815,"src":"1GTB_thumb.jpg","galleries_id":378667,"server_id":1,"link":"photo_4747815.html","width":84,"caption":"Grain Tower Battery","height":130});
															thumbnails[4747817] = clik.newPhoto({"id":4747817,"src":"2fishermanshack_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_4747817.html","width":85,"caption":"Fisherman's hut","height":130});
															thumbnails[4747820] = clik.newPhoto({"id":4747820,"src":"6boats_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_4747820.html","width":130,"caption":"Boats","height":85});
															thumbnails[5450020] = clik.newPhoto({"id":5450020,"src":"01_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_5450020.html","width":130,"caption":"Two minutes","height":87});
															thumbnails[5450022] = clik.newPhoto({"id":5450022,"src":"11_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_5450022.html","width":130,"caption":"Fifty seconds","height":87});
															thumbnails[5450042] = clik.newPhoto({"id":5450042,"src":"08_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_5450042.html","width":130,"caption":"Station: Tag","height":73});
															thumbnails[5450050] = clik.newPhoto({"id":5450050,"src":"13_thumb.JPG","galleries_id":186533,"server_id":1,"link":"photo_5450050.html","width":130,"caption":"Station: Feet","height":130});
															thumbnails[5450054] = clik.newPhoto({"id":5450054,"src":"16B_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450054.html","width":130,"caption":"Return to Elmley School (Two exposures blended)","height":86});
															thumbnails[5450056] = clik.newPhoto({"id":5450056,"src":"17_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450056.html","width":87,"caption":"Warning, unheeded.","height":130});
															thumbnails[5450058] = clik.newPhoto({"id":5450058,"src":"18_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450058.html","width":87,"caption":"Window, unglazed.","height":130});
															thumbnails[5450059] = clik.newPhoto({"id":5450059,"src":"19_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450059.html","width":87,"caption":"Window, open.","height":130});
															thumbnails[5450062] = clik.newPhoto({"id":5450062,"src":"20_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450062.html","width":87,"caption":"Portal","height":130});
															thumbnails[5450065] = clik.newPhoto({"id":5450065,"src":"22_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450065.html","width":87,"caption":"The other side","height":130});
															thumbnails[5450067] = clik.newPhoto({"id":5450067,"src":"24_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450067.html","width":87,"caption":"Pipes and window","height":130});
															thumbnails[5450070] = clik.newPhoto({"id":5450070,"src":"25_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450070.html","width":87,"caption":"Untitled","height":130});
															thumbnails[5450073] = clik.newPhoto({"id":5450073,"src":"26_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450073.html","width":130,"caption":"View of a window","height":87});
															thumbnails[5450077] = clik.newPhoto({"id":5450077,"src":"27_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_5450077.html","width":130,"caption":"Untitled","height":87});
															thumbnails[7102720] = clik.newPhoto({"id":7102720,"src":"05_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7102720.html","width":130,"caption":"","height":87});
															thumbnails[7102724] = clik.newPhoto({"id":7102724,"src":"06_thumb.jpg","galleries_id":378675,"server_id":1,"link":"photo_7102724.html","width":86,"caption":"","height":130});
															thumbnails[7102727] = clik.newPhoto({"id":7102727,"src":"17_7AA6D048-24E8-5EC4-4F917D0B0BC61E5D_thumb.jpg","galleries_id":378675,"server_id":1,"link":"photo_7102727.html","width":86,"caption":"Amethyst Deceiver","height":130});
															thumbnails[7102730] = clik.newPhoto({"id":7102730,"src":"18_7AA745D6-24E8-5EC4-4F98B7678C5E0F36_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7102730.html","width":87,"caption":"","height":130});
															thumbnails[7102760] = clik.newPhoto({"id":7102760,"src":"061_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7102760.html","width":87,"caption":"Friendly Fly Agarics","height":130});
															thumbnails[7102826] = clik.newPhoto({"id":7102826,"src":"08_7AA8662C-24E8-5EC4-4FDE22ABB1B99ED7_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7102826.html","width":87,"caption":"Fungi family (single-parent)","height":130});
															thumbnails[7102841] = clik.newPhoto({"id":7102841,"src":"13_7AAA145B-24E8-5EC4-4F5BEBC89C2D7A2D_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7102841.html","width":87,"caption":"Bluetack Fungi!","height":130});
															thumbnails[7102848] = clik.newPhoto({"id":7102848,"src":"18_7AAA81FA-24E8-5EC4-4F863641DA59D341_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7102848.html","width":87,"caption":"Turkeytail","height":130});
															thumbnails[7131562] = clik.newPhoto({"id":7131562,"src":"_MG_3146_thumb.JPG","galleries_id":378675,"server_id":1,"link":"photo_7131562.html","width":130,"caption":"","height":87});
															thumbnails[7131854] = clik.newPhoto({"id":7131854,"src":"_MG_0273_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_7131854.html","width":87,"caption":"Knole Veteran","height":130});
															thumbnails[7131856] = clik.newPhoto({"id":7131856,"src":"_MG_0344_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_7131856.html","width":87,"caption":"Knole Veteran","height":130});
															thumbnails[7131858] = clik.newPhoto({"id":7131858,"src":"_MG_9080_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_7131858.html","width":87,"caption":"Hellthorn","height":130});
															thumbnails[7131861] = clik.newPhoto({"id":7131861,"src":"Araneus_diadematus_17-08-10_001_thumb.JPG","galleries_id":385753,"server_id":1,"link":"photo_7131861.html","width":87,"caption":"Indoor Araneus","height":130});
															thumbnails[7131862] = clik.newPhoto({"id":7131862,"src":"Pholcus_01-07-10_005_thumb.JPG","galleries_id":385753,"server_id":1,"link":"photo_7131862.html","width":87,"caption":"Pholcus","height":130});
															thumbnails[7139123] = clik.newPhoto({"id":7139123,"src":"_MG_1329_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_7139123.html","width":130,"caption":"NHM","height":87});
															thumbnails[7139131] = clik.newPhoto({"id":7139131,"src":"Ashdown_31-10-09_001_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_7139131.html","width":130,"caption":"Ashdown Forest","height":87});
															thumbnails[7139137] = clik.newPhoto({"id":7139137,"src":"Ashdown_31-10-09_004_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_7139137.html","width":87,"caption":"Beech","height":130});
															thumbnails[7139138] = clik.newPhoto({"id":7139138,"src":"Combermere_07-12-08_002_thumb.JPG","galleries_id":378685,"server_id":1,"link":"photo_7139138.html","width":130,"caption":"Parkland Veteran","height":87});
															thumbnails[7139145] = clik.newPhoto({"id":7139145,"src":"Heron_Quays_17-03-10_001_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7139145.html","width":130,"caption":"Heron Quays","height":80});
															thumbnails[7139150] = clik.newPhoto({"id":7139150,"src":"NHM_17-03-10_002_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_7139150.html","width":87,"caption":"NHM","height":130});
															thumbnails[7139153] = clik.newPhoto({"id":7139153,"src":"NHM_17-03-10_013_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_7139153.html","width":130,"caption":"The Loneliness of a Glyptodon","height":87});
															thumbnails[7139156] = clik.newPhoto({"id":7139156,"src":"NHM_17-03-10_016_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_7139156.html","width":130,"caption":"Dead as a Dodo","height":87});
															thumbnails[7139159] = clik.newPhoto({"id":7139159,"src":"NHM_17-03-10_020_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_7139159.html","width":130,"caption":"Extinct Giant","height":87});
															thumbnails[7164021] = clik.newPhoto({"id":7164021,"src":"02_thumb.JPG","galleries_id":461017,"server_id":1,"link":"photo_7164021.html","width":130,"caption":"Winter Canvas 1","height":87});
															thumbnails[7164022] = clik.newPhoto({"id":7164022,"src":"07_thumb.JPG","galleries_id":461017,"server_id":1,"link":"photo_7164022.html","width":87,"caption":"Winter Canvas 2","height":130});
															thumbnails[7164025] = clik.newPhoto({"id":7164025,"src":"06_BD4022B9-24E8-5EC4-4FA1E49B590686FD_thumb.JPG","galleries_id":461017,"server_id":1,"link":"photo_7164025.html","width":130,"caption":"Winter Canvas 3","height":87});
															thumbnails[7164028] = clik.newPhoto({"id":7164028,"src":"10_thumb.JPG","galleries_id":461017,"server_id":1,"link":"photo_7164028.html","width":87,"caption":"Winter Canvas 4","height":130});
															thumbnails[7164036] = clik.newPhoto({"id":7164036,"src":"09_thumb.JPG","galleries_id":461017,"server_id":1,"link":"photo_7164036.html","width":130,"caption":"Winter Canvas 5","height":87});
															thumbnails[7290372] = clik.newPhoto({"id":7290372,"src":"ES01_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290372.html","width":130,"caption":"Elmley School","height":87});
															thumbnails[7290375] = clik.newPhoto({"id":7290375,"src":"ES02_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290375.html","width":87,"caption":"Elmley School","height":130});
															thumbnails[7290377] = clik.newPhoto({"id":7290377,"src":"ES03_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290377.html","width":130,"caption":"Elmley School","height":87});
															thumbnails[7290378] = clik.newPhoto({"id":7290378,"src":"ES04_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290378.html","width":87,"caption":"Elmley School","height":130});
															thumbnails[7290381] = clik.newPhoto({"id":7290381,"src":"ES05_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290381.html","width":130,"caption":"Elmley School","height":87});
															thumbnails[7290383] = clik.newPhoto({"id":7290383,"src":"ES06_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290383.html","width":87,"caption":"Elmley School","height":130});
															thumbnails[7290385] = clik.newPhoto({"id":7290385,"src":"ES07_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290385.html","width":130,"caption":"Elmley School","height":87});
															thumbnails[7290387] = clik.newPhoto({"id":7290387,"src":"ES08_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_7290387.html","width":87,"caption":"Elmley School","height":130});
															thumbnails[8074736] = clik.newPhoto({"id":8074736,"src":"SBBBB_55_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8074736.html","width":130,"caption":"Beech","height":130});
															thumbnails[8751207] = clik.newPhoto({"id":8751207,"src":"006_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_8751207.html","width":87,"caption":"Riverside wrecks","height":130});
															thumbnails[8751211] = clik.newPhoto({"id":8751211,"src":"010_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_8751211.html","width":87,"caption":"Saltmarsh","height":130});
															thumbnails[8751214] = clik.newPhoto({"id":8751214,"src":"004_thumb.JPG","galleries_id":378667,"server_id":1,"link":"photo_8751214.html","width":87,"caption":"Abandoned","height":130});
															thumbnails[8752235] = clik.newPhoto({"id":8752235,"src":"P1040756_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752235.html","width":130,"caption":"submerged","height":130});
															thumbnails[8752237] = clik.newPhoto({"id":8752237,"src":"P1050060_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752237.html","width":130,"caption":"Geese, leaving","height":130});
															thumbnails[8752238] = clik.newPhoto({"id":8752238,"src":"P1050083_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752238.html","width":130,"caption":"Streetlight","height":130});
															thumbnails[8752239] = clik.newPhoto({"id":8752239,"src":"P1060349_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752239.html","width":130,"caption":"Duxford","height":130});
															thumbnails[8752240] = clik.newPhoto({"id":8752240,"src":"P1070040_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752240.html","width":130,"caption":"Fern silhouette","height":130});
															thumbnails[8752241] = clik.newPhoto({"id":8752241,"src":"P1070259_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752241.html","width":130,"caption":"Headless teasel","height":130});
															thumbnails[8752243] = clik.newPhoto({"id":8752243,"src":"P1070315_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752243.html","width":130,"caption":"Silver birches, evening light","height":130});
															thumbnails[8752245] = clik.newPhoto({"id":8752245,"src":"P1070333_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752245.html","width":130,"caption":"Three trees","height":130});
															thumbnails[8752301] = clik.newPhoto({"id":8752301,"src":"P1040236_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752301.html","width":130,"caption":"Stairway","height":130});
															thumbnails[8752302] = clik.newPhoto({"id":8752302,"src":"P1060077_thumb.JPG","galleries_id":461053,"server_id":1,"link":"photo_8752302.html","width":130,"caption":"Tree","height":130});
															thumbnails[8773041] = clik.newPhoto({"id":8773041,"src":"001_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773041.html","width":130,"caption":"Smile","height":130});
															thumbnails[8773042] = clik.newPhoto({"id":8773042,"src":"008_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773042.html","width":130,"caption":"Ammonite","height":130});
															thumbnails[8773044] = clik.newPhoto({"id":8773044,"src":"011_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773044.html","width":130,"caption":"Grrrrrr!","height":130});
															thumbnails[8773045] = clik.newPhoto({"id":8773045,"src":"012_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773045.html","width":130,"caption":"Egg","height":87});
															thumbnails[8773046] = clik.newPhoto({"id":8773046,"src":"019_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773046.html","width":130,"caption":"Coral","height":73});
															thumbnails[8773047] = clik.newPhoto({"id":8773047,"src":"010_D0C8F3F5-24E8-5EC4-4FC00E7E455CC5D3_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773047.html","width":130,"caption":"Glare","height":130});
															thumbnails[8773049] = clik.newPhoto({"id":8773049,"src":"005_thumb.JPG","galleries_id":461893,"server_id":1,"link":"photo_8773049.html","width":130,"caption":"Arsinotherium","height":130});
															thumbnails[3036026] = clik.newPhoto({"id":3036026,"src":"grhphotography_soldier_thumb.jpg","galleries_id":186536,"server_id":1,"link":"photo_3036026.html","width":130,"caption":"Soldier Beetle","height":87});
															thumbnails[4587657] = clik.newPhoto({"id":4587657,"src":"rockpool600_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_4587657.html","width":87,"caption":"Rockpool","height":130});
															thumbnails[4587669] = clik.newPhoto({"id":4587669,"src":"school600l_thumb.JPG","galleries_id":308191,"server_id":1,"link":"photo_4587669.html","width":130,"caption":"Elmley School, Study 3","height":87});
															thumbnails[7073445] = clik.newPhoto({"id":7073445,"src":"CanterburyCathedral_18-03-10_007_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073445.html","width":130,"caption":"Canterbury Cathedral One","height":87});
															thumbnails[7073448] = clik.newPhoto({"id":7073448,"src":"CanterburyCathedral_18-03-10_034_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073448.html","width":130,"caption":"Canterbury Cathedral Two","height":87});
															thumbnails[7073449] = clik.newPhoto({"id":7073449,"src":"CanterburyCathedral_18-03-10_038_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073449.html","width":87,"caption":"Canterbury Cathedral Three","height":130});
															thumbnails[3035522] = clik.newPhoto({"id":3035522,"src":"grhphotography_dragon_thumb.jpg","galleries_id":385757,"server_id":1,"link":"photo_3035522.html","width":130,"caption":"Migrant Hawker","height":86});
															thumbnails[7073451] = clik.newPhoto({"id":7073451,"src":"CanterburyCathedral_18-03-10_044_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073451.html","width":87,"caption":"Canterbury Cathedral Four","height":130});
															thumbnails[2261813] = clik.newPhoto({"id":2261813,"src":"grass_snake_1_greg_hitchcock_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_2261813.html","width":130,"caption":"Grass Snake","height":87});
															thumbnails[7073453] = clik.newPhoto({"id":7073453,"src":"CanterburyCathedral_18-03-10_045_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073453.html","width":87,"caption":"Canterbury Cathedral Five","height":130});
															thumbnails[3034774] = clik.newPhoto({"id":3034774,"src":"grhphotography_dog_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_3034774.html","width":87,"caption":"Let sleeping dogs lie","height":130});
															thumbnails[3035494] = clik.newPhoto({"id":3035494,"src":"grhphotography_lunch_thumb.jpg","galleries_id":186533,"server_id":1,"link":"photo_3035494.html","width":130,"caption":"Lunch in the barn","height":87});
															thumbnails[7073455] = clik.newPhoto({"id":7073455,"src":"CanterburyCathedral_18-03-10_046_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073455.html","width":87,"caption":"Canterbury Cathedral Six","height":130});
															thumbnails[2264394] = clik.newPhoto({"id":2264394,"src":"azure_damselflies_2_greg_hitchcock_thumb.jpg","galleries_id":385757,"server_id":1,"link":"photo_2264394.html","width":88,"caption":"Azure Damselflies","height":130});
															thumbnails[2264425] = clik.newPhoto({"id":2264425,"src":"barnack_thumb.jpg","galleries_id":378685,"server_id":1,"link":"photo_2264425.html","width":87,"caption":"Path and tree","height":130});
															thumbnails[7073457] = clik.newPhoto({"id":7073457,"src":"CanterburyCathedral_18-03-10_049_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073457.html","width":130,"caption":"Canterbury Cathedral Seven","height":87});
															thumbnails[7073459] = clik.newPhoto({"id":7073459,"src":"CanterburyCathedral_18-03-10_052_thumb.JPG","galleries_id":118292,"server_id":1,"link":"photo_7073459.html","width":130,"caption":"Canterbury Cathedral Eight","height":87});
															thumbnails[2262147] = clik.newPhoto({"id":2262147,"src":"frog_1_greg_hitchcock_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_2262147.html","width":130,"caption":"Common Frog","height":83});
															thumbnails[3281065] = clik.newPhoto({"id":3281065,"src":"BBB4web_thumb.jpg","galleries_id":378675,"server_id":1,"link":"photo_3281065.html","width":87,"caption":"Brown Birch Bolete","height":130});
															thumbnails[2264421] = clik.newPhoto({"id":2264421,"src":"grass_snake_2_greg_hitchcock3_thumb.JPG","galleries_id":254474,"server_id":1,"link":"photo_2264421.html","width":87,"caption":"Grass Snake","height":130});
															thumbnails[2262152] = clik.newPhoto({"id":2262152,"src":"frog_3_greg_hitchcock_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_2262152.html","width":130,"caption":"Common Frog","height":87});
															thumbnails[2264427] = clik.newPhoto({"id":2264427,"src":"Dungeness_3_Greg_hitchcock_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_2264427.html","width":87,"caption":"Derelict boat","height":130});
															thumbnails[3034732] = clik.newPhoto({"id":3034732,"src":"grhphotography_blueface_thumb.jpg","galleries_id":385757,"server_id":1,"link":"photo_3034732.html","width":92,"caption":"Common Blue Damselfly","height":130});
															thumbnails[3035927] = clik.newPhoto({"id":3035927,"src":"grhphotography_konic_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_3035927.html","width":75,"caption":"Konic","height":130});
															thumbnails[2262247] = clik.newPhoto({"id":2262247,"src":"wasp_spider_1_Greg_hitchcock_thumb.jpg","galleries_id":385753,"server_id":1,"link":"photo_2262247.html","width":130,"caption":"Wasp Spider","height":87});
															thumbnails[2264405] = clik.newPhoto({"id":2264405,"src":"conehead_greg_hitchcock_thumb.jpg","galleries_id":186536,"server_id":1,"link":"photo_2264405.html","width":83,"caption":"Conehead","height":130});
															thumbnails[2264429] = clik.newPhoto({"id":2264429,"src":"Dungeness_4_Greg_hitchcock_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_2264429.html","width":87,"caption":"Fisherman's hut","height":130});
															thumbnails[2264477] = clik.newPhoto({"id":2264477,"src":"early_marsh_orchid_greg_hitchcock_thumb.jpg","galleries_id":68401,"server_id":1,"link":"photo_2264477.html","width":88,"caption":"Early Marsh Orchid","height":130});
															thumbnails[2261796] = clik.newPhoto({"id":2261796,"src":"common_blue_damselfly_greg_hitchcock1_thumb.JPG","galleries_id":385757,"server_id":1,"link":"photo_2261796.html","width":130,"caption":"Common Blue Damselfly","height":87});
															thumbnails[2262231] = clik.newPhoto({"id":2262231,"src":"trees_thumb.jpg","galleries_id":378685,"server_id":1,"link":"photo_2262231.html","width":130,"caption":"Trees in Fog","height":87});
															thumbnails[3034752] = clik.newPhoto({"id":3034752,"src":"grhphotography_agarictroop_thumb.jpg","galleries_id":378675,"server_id":1,"link":"photo_3034752.html","width":130,"caption":"Trooping the colour","height":60});
															thumbnails[2264411] = clik.newPhoto({"id":2264411,"src":"fly_greg_hitchcock_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_2264411.html","width":87,"caption":"Snipe fly","height":130});
															thumbnails[2264431] = clik.newPhoto({"id":2264431,"src":"Knole2_thumb.jpg","galleries_id":378685,"server_id":1,"link":"photo_2264431.html","width":109,"caption":"Tree","height":130});
															thumbnails[3035523] = clik.newPhoto({"id":3035523,"src":"grhphotography_hylaeus_thumb.jpg","galleries_id":186536,"server_id":1,"link":"photo_3035523.html","width":130,"caption":"Yellow-faced bee","height":87});
															thumbnails[3035874] = clik.newPhoto({"id":3035874,"src":"grhphotography_donkey_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_3035874.html","width":87,"caption":"Donkeys","height":130});
															thumbnails[2261799] = clik.newPhoto({"id":2261799,"src":"early_mining_bee_greg_hitchcock_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_2261799.html","width":130,"caption":"<i>Andrena haemorrhoa<\/i>","height":87});
															thumbnails[2264414] = clik.newPhoto({"id":2264414,"src":"Larinioides_greg_hitchcock_thumb.jpg","galleries_id":385753,"server_id":1,"link":"photo_2264414.html","width":87,"caption":"Supper!","height":130});
															thumbnails[2264479] = clik.newPhoto({"id":2264479,"src":"Greater_butterfly_orchid_greg_hitchcock_thumb.jpg","galleries_id":68401,"server_id":1,"link":"photo_2264479.html","width":87,"caption":"Greater Butterfly Orchid","height":130});
															thumbnails[2264416] = clik.newPhoto({"id":2264416,"src":"long-jawed_orb-weaver_greg_hitchcock_thumb.JPG","galleries_id":385753,"server_id":1,"link":"photo_2264416.html","width":59,"caption":"Long-jawed Orb-weaver","height":130});
															thumbnails[2264437] = clik.newPhoto({"id":2264437,"src":"watermint_dawn_greg_hitchcock_thumb.jpg","galleries_id":118292,"server_id":1,"link":"photo_2264437.html","width":86,"caption":"Watermint Dawn","height":130});
															thumbnails[2264480] = clik.newPhoto({"id":2264480,"src":"green_winged_greg_hitchcock_thumb.jpg","galleries_id":68401,"server_id":1,"link":"photo_2264480.html","width":87,"caption":"Green Winged Orchid","height":130});
															thumbnails[3034755] = clik.newPhoto({"id":3034755,"src":"grhphotography_bracket_thumb.jpg","galleries_id":378675,"server_id":1,"link":"photo_3034755.html","width":87,"caption":"Bracket fungi","height":130});
															thumbnails[3035899] = clik.newPhoto({"id":3035899,"src":"grhphotography_highlands_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_3035899.html","width":130,"caption":"Highland Cattle","height":87});
															thumbnails[2343565] = clik.newPhoto({"id":2343565,"src":"Peterborough_cathedral_1_greg_hitchcock_thumb.jpg","galleries_id":118292,"server_id":1,"link":"photo_2343565.html","width":87,"caption":"The North Transept","height":130});
															thumbnails[2264444] = clik.newPhoto({"id":2264444,"src":"wasp_spider_2_Greg_hitchcock_thumb.jpg","galleries_id":385753,"server_id":1,"link":"photo_2264444.html","width":87,"caption":"Wasp Spider","height":130});
															thumbnails[2343572] = clik.newPhoto({"id":2343572,"src":"Peterborough_cathedral_2_greg_hitchcock_thumb.jpg","galleries_id":118292,"server_id":1,"link":"photo_2343572.html","width":87,"caption":"Peterborough Cathedral","height":130});
															thumbnails[3034771] = clik.newPhoto({"id":3034771,"src":"grhphotography_depressa_thumb.jpg","galleries_id":385757,"server_id":1,"link":"photo_3034771.html","width":130,"caption":"Broad-bodied Chaser","height":87});
															thumbnails[2261846] = clik.newPhoto({"id":2261846,"src":"snipe_fly_2_greg_hitchcock_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_2261846.html","width":130,"caption":"Snipe Fly","height":87});
															thumbnails[3035932] = clik.newPhoto({"id":3035932,"src":"grhphotography_hornets_thumb.jpg","galleries_id":186536,"server_id":1,"link":"photo_3035932.html","width":130,"caption":"Hornet composit","height":97});
															thumbnails[3259684] = clik.newPhoto({"id":3259684,"src":"Dungeness1 web_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_3259684.html","width":87,"caption":"Derelict Boat","height":130});
															thumbnails[2261872] = clik.newPhoto({"id":2261872,"src":"tiger_beetle_2_greg_hitchcock_thumb.JPG","galleries_id":186536,"server_id":1,"link":"photo_2261872.html","width":130,"caption":"Green Tiger Beetle","height":87});
															thumbnails[3034748] = clik.newPhoto({"id":3034748,"src":"grhphotograpgy_agaric_thumb.jpg","galleries_id":378675,"server_id":1,"link":"photo_3034748.html","width":130,"caption":"Fly Agaric trio","height":87});
															thumbnails[2262137] = clik.newPhoto({"id":2262137,"src":"Dingy_skipper_Greg_Hitchcock1_thumb.jpg","galleries_id":186536,"server_id":1,"link":"photo_2262137.html","width":130,"caption":"Dingy Skipper","height":83});
															thumbnails[2262174] = clik.newPhoto({"id":2262174,"src":"grasshopper_greg_hitchcock_thumb.jpg","galleries_id":186536,"server_id":1,"link":"photo_2262174.html","width":130,"caption":"Grasshopper","height":87});
															thumbnails[3035982] = clik.newPhoto({"id":3035982,"src":"grhphotography_highlands2_thumb.jpg","galleries_id":254474,"server_id":1,"link":"photo_3035982.html","width":130,"caption":"Highland Cattle","height":74});
															thumbnails[3259748] = clik.newPhoto({"id":3259748,"src":"Dungeness8 web_thumb.jpg","galleries_id":274211,"server_id":1,"link":"photo_3259748.html","width":87,"caption":"VIE","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[461893] = clik.newGallery({"parentGallery":378661,"usePopups":true,"title":"Natural History Museum","link":"gallery_461893.html","maxRecords":0.0,"photoIDs":[7139123.0,7139150.0,7139153.0,7139156.0,7139159.0,8773041.0,8773042.0,8773044.0,8773045.0,8773046.0,8773047.0,8773049.0],"skipIndex":0,"section_code":"gallery","featured_images":7139150.0,"id":461893,"singleSection":false});				  						galleries[461017] = clik.newGallery({"parentGallery":378661,"usePopups":true,"title":"Winter Canvas","link":"gallery_461017.html","maxRecords":0.0,"photoIDs":[7164021.0,7164022.0,7164025.0,7164028.0,7164036.0],"skipIndex":0,"section_code":"gallery","featured_images":7164022.0,"id":461017,"singleSection":false});				  						galleries[378685] = clik.newGallery({"parentGallery":378661,"usePopups":true,"title":"Trees","link":"gallery_378685.html","maxRecords":0.0,"photoIDs":[4393661.0,7131854.0,7131856.0,7131858.0,7139131.0,7139137.0,7139138.0,2264425.0,2262231.0,2264431.0],"skipIndex":0,"section_code":"gallery","featured_images":"7139137,7131858,7131854,2264425","id":378685,"singleSection":false});				  						galleries[308191] = clik.newGallery({"parentGallery":378661,"usePopups":true,"title":"Elmley School","link":"gallery_308191.html","maxRecords":0.0,"photoIDs":[4727369.0,4727371.0,5450054.0,5450056.0,5450058.0,5450059.0,5450062.0,5450065.0,5450067.0,5450070.0,5450073.0,5450077.0,7290372.0,7290375.0,7290377.0,7290378.0,7290381.0,7290383.0,7290385.0,7290387.0,4587669.0],"skipIndex":0,"section_code":"gallery","featured_images":5450070.0,"id":308191,"singleSection":false});				  						galleries[378661] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Projects","link":"gallery_378661.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8751214,8751211,7164022,7139150,7139137,7131858,7131854,5450070,4677946,4393801,2264425","id":378661,"singleSection":false});				  						galleries[68401] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Autotrophs","link":"gallery_68401.html","maxRecords":0.0,"photoIDs":[4393677.0,4393690.0,4393691.0,4393698.0,4393776.0,4393788.0,4393791.0,4393793.0,4393796.0,4393799.0,4393868.0,4393872.0,4393881.0,2264477.0,2264479.0,2264480.0],"skipIndex":0,"section_code":"gallery","featured_images":"4393881,4393872,4393868,4393799,4393788,4393776,4393691,4393690,2264480,2264479,2264477","id":68401,"singleSection":false});				  						galleries[378667] = clik.newGallery({"parentGallery":378661,"usePopups":true,"title":"North Kent Coast","link":"gallery_378667.html","maxRecords":0.0,"photoIDs":[4393748.0,4393801.0,4393806.0,4393810.0,4393838.0,4747815.0,5450020.0,5450022.0,8751207.0,8751211.0,8751214.0],"skipIndex":0,"section_code":"gallery","featured_images":"8751214,8751211,4393801","id":378667,"singleSection":false});				  						galleries[274211] = clik.newGallery({"parentGallery":378661,"usePopups":true,"title":"Dungeness","link":"gallery_274211.html","maxRecords":0.0,"photoIDs":[4677940.0,4677943.0,4677946.0,4678176.0,4747817.0,4747820.0,2264427.0,2264429.0,3259684.0,3259748.0],"skipIndex":0,"section_code":"gallery","featured_images":4677946.0,"id":274211,"singleSection":false});				  						galleries[378675] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Saprotrophs","link":"gallery_378675.html","maxRecords":0.0,"photoIDs":[7102720.0,7102724.0,7102727.0,7102730.0,7102760.0,7102826.0,7102841.0,7102848.0,7131562.0,3281065.0,3034752.0,3034755.0,3034748.0],"skipIndex":0,"section_code":"gallery","featured_images":"7102848,7102826,7102760,7102724,3281065","id":378675,"singleSection":false});				  						galleries[186533] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Homo sapiens","link":"gallery_186533.html","maxRecords":0.0,"photoIDs":[4393684.0,4393699.0,4393716.0,4393786.0,4393824.0,4393842.0,4393879.0,4677866.0,5450042.0,5450050.0,3035494.0],"skipIndex":0,"section_code":"gallery","featured_images":4393684.0,"id":186533,"singleSection":false});				  						galleries[118292] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"In\/Out","link":"gallery_118292.html","maxRecords":0.0,"photoIDs":[4393883.0,7139145.0,4587657.0,7073445.0,7073448.0,7073449.0,7073451.0,7073453.0,7073455.0,7073457.0,7073459.0,2264437.0,2343565.0,2343572.0],"skipIndex":0,"section_code":"gallery","featured_images":"7073455,7073453,7073451,7073449,4587657,2343572,2343565,2264437","id":118292,"singleSection":false});				  						galleries[254474] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Tooth & Claw","link":"gallery_254474.html","maxRecords":0.0,"photoIDs":[4393682.0,4393688.0,4393689.0,4393751.0,4393761.0,4393874.0,4393875.0,4393876.0,4393878.0,2261813.0,3034774.0,2262147.0,2264421.0,2262152.0,3035927.0,3035874.0,3035899.0,3035982.0],"skipIndex":0,"section_code":"gallery","featured_images":"4393751,4393689,3035927,2264421","id":254474,"singleSection":false});				  						galleries[385792] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Other 99%","link":"gallery_385792.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7131862,4677869,4393670,3034732,2264444,2264405,2264394","id":385792,"singleSection":false});				  						galleries[186536] = clik.newGallery({"parentGallery":385792,"usePopups":true,"title":"The little things that run the world","link":"gallery_186536.html","maxRecords":0.0,"photoIDs":[4393687.0,4393758.0,4393765.0,4393783.0,4393840.0,3036026.0,2264405.0,2264411.0,3035523.0,2261799.0,2261846.0,3035932.0,2261872.0,2262137.0,2262174.0],"skipIndex":0,"section_code":"gallery","featured_images":2264405.0,"id":186536,"singleSection":false});				  						galleries[385753] = clik.newGallery({"parentGallery":385792,"usePopups":true,"title":"Eight-Legged Friends","link":"gallery_385753.html","maxRecords":0.0,"photoIDs":[4393813.0,4393866.0,7131861.0,7131862.0,2262247.0,2264414.0,2264416.0,2264444.0],"skipIndex":0,"section_code":"gallery","featured_images":"7131862,2264444","id":385753,"singleSection":false});				  						galleries[385757] = clik.newGallery({"parentGallery":385792,"usePopups":true,"title":"Shooting Dragons","link":"gallery_385757.html","maxRecords":0.0,"photoIDs":[4393667.0,4393670.0,4393675.0,4677869.0,3035522.0,2264394.0,3034732.0,2261796.0,3034771.0],"skipIndex":0,"section_code":"gallery","featured_images":"4677869,4393670,3034732,2264394","id":385757,"singleSection":false});				  						galleries[461053] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"All Square","link":"gallery_461053.html","maxRecords":0.0,"photoIDs":[8074736.0,8752235.0,8752237.0,8752238.0,8752239.0,8752240.0,8752241.0,8752243.0,8752245.0,8752301.0,8752302.0],"skipIndex":0,"section_code":"gallery","featured_images":"8752302,8752301,8752245,8752243,8752241,8752240,8752239,8752238,8752237,8752235","id":461053,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7290385,7164021,7139123,5450020,4677940,4393806,7073457,7073459';
imageSets[2] = '8752302,8752301,8752245,8752243,8752241,8752240,8752239,8752238,8752237,8752235,8751214,8751211,7164022,7139150,7139137,7131862,7131858,7131854,7102848,7102826,7102760,7102724,5450070,4677946,4677869,4393881,4393872,4393868,4393801,4393799,4393788,4393776,4393751,4393691,4393690,4393689,4393684,4393670,4587657,7073449,7073451,7073453,7073455,2264469,2264425,2264394,3281065,2264472,2264421,3035927,3034732,2264475,2264477,2264405,2264479,2264480,2264437,2343565,2343572,2264444';
imageSets[3] = '4393840,4393758';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/greghitchcock/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/greghitchcock/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 && backgrounds[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 = 'GRH Photography: ' + 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.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 !== '' || this.payment_groups_id !== '') {
			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;
	}
}

			

