window.thumbnails = {};
															thumbnails[1288256] = clik.newPhoto({"id":1288256,"src":"Ancients Emerge_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1288256.html","width":130,"caption":"Entombed","height":65});
															thumbnails[1288278] = clik.newPhoto({"id":1288278,"src":"Rocks at Dusk_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1288278.html","width":130,"caption":"Rocks at Dusk","height":130});
															thumbnails[1288296] = clik.newPhoto({"id":1288296,"src":"Cirrus_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1288296.html","width":130,"caption":"Cirrus","height":86});
															thumbnails[1288428] = clik.newPhoto({"id":1288428,"src":"Leafburst_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1288428.html","width":87,"caption":"Leafburst","height":130});
															thumbnails[1288430] = clik.newPhoto({"id":1288430,"src":"Of Youth Lost_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_1288430.html","width":130,"caption":"Of Youth Lost","height":65});
															thumbnails[1288516] = clik.newPhoto({"id":1288516,"src":"Whispers among the Rocks_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1288516.html","width":87,"caption":"Whispers Among the Rocks","height":130});
															thumbnails[1591961] = clik.newPhoto({"id":1591961,"src":"Brock Hill_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1591961.html","width":130,"caption":"Brock Hill","height":65});
															thumbnails[1687365] = clik.newPhoto({"id":1687365,"src":"All that Remains_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_1687365.html","width":87,"caption":"All that Remains","height":130});
															thumbnails[2146478] = clik.newPhoto({"id":2146478,"src":"Of Dark History_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_2146478.html","width":130,"caption":"Of Dark History","height":65});
															thumbnails[2146494] = clik.newPhoto({"id":2146494,"src":"Troodos Snow_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_2146494.html","width":130,"caption":"Black Pines","height":130});
															thumbnails[2517404] = clik.newPhoto({"id":2517404,"src":"Fragments_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_2517404.html","width":130,"caption":"Fragments","height":65});
															thumbnails[2517407] = clik.newPhoto({"id":2517407,"src":"Backwash3_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_2517407.html","width":130,"caption":"Backwash","height":73});
															thumbnails[2940292] = clik.newPhoto({"id":2940292,"src":"Melting Rocks_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_2940292.html","width":130,"caption":"Melting rocks","height":130});
															thumbnails[3372689] = clik.newPhoto({"id":3372689,"src":"Giant's Steps_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_3372689.html","width":130,"caption":"Giant's Steps","height":65});
															thumbnails[6774478] = clik.newPhoto({"id":6774478,"src":"Sea_Fire1_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_6774478.html","width":86,"caption":"Sea Fire","height":130});
															thumbnails[7068288] = clik.newPhoto({"id":7068288,"src":"Pixie_Path_BW_Red_filter_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_7068288.html","width":130,"caption":"The Pixie Path","height":66});
															thumbnails[7068318] = clik.newPhoto({"id":7068318,"src":"Chapmans_Pool_O0C6402_Red_filter_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_7068318.html","width":93,"caption":"Bleeding","height":130});
															thumbnails[7068327] = clik.newPhoto({"id":7068327,"src":"Chapmans_Pool_O0C6379_BW_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_7068327.html","width":87,"caption":"Whispers among the Rocks","height":130});
															thumbnails[7068372] = clik.newPhoto({"id":7068372,"src":"Slepe_Copse_Gate_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_7068372.html","width":130,"caption":"The Old Gateway","height":65});
															thumbnails[7164075] = clik.newPhoto({"id":7164075,"src":"Marram_Grass_in_snow_D302265_crop_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_7164075.html","width":130,"caption":"Marram in snow","height":130});
															thumbnails[7164096] = clik.newPhoto({"id":7164096,"src":"New_Cut_Slack_D9195-96_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_7164096.html","width":130,"caption":"Dunes in Snow","height":47});
															thumbnails[7164102] = clik.newPhoto({"id":7164102,"src":"Bournemouth_at_night_from_Obs_Hut_D2328-2329_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_7164102.html","width":130,"caption":"Different worlds","height":46});
															thumbnails[7164107] = clik.newPhoto({"id":7164107,"src":"New_Cut_Slack_D302259_thumb.jpg","galleries_id":95422,"server_id":18,"link":"photo_7164107.html","width":86,"caption":"New Cut Stream","height":130});
															thumbnails[7164151] = clik.newPhoto({"id":7164151,"src":"New_Cut_BW_D9210-13_crop_2_2-1_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_7164151.html","width":130,"caption":"Snow & Sallows","height":65});
															thumbnails[7164167] = clik.newPhoto({"id":7164167,"src":"Marram_Grass_in_snow_D302265_crop_BW_thumb.jpg","galleries_id":114699,"server_id":18,"link":"photo_7164167.html","width":130,"caption":"Monochrome Marram in Snow","height":130});
															thumbnails[1345453] = clik.newPhoto({"id":1345453,"src":"Cicindela campestris_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345453.html","width":96,"caption":"Cicindela campestris<br><br>Green Tiger Beetle","height":130});
															thumbnails[1345457] = clik.newPhoto({"id":1345457,"src":"Ero aphana_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345457.html","width":87,"caption":"Ero aphana","height":130});
															thumbnails[1349819] = clik.newPhoto({"id":1349819,"src":"Megacephala euphratica_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349819.html","width":130,"caption":"Megacephala euphratica [male]","height":130});
															thumbnails[1404284] = clik.newPhoto({"id":1404284,"src":"Ichneumon wasp_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1404284.html","width":130,"caption":"Ichneumon wasp","height":65});
															thumbnails[1475565] = clik.newPhoto({"id":1475565,"src":"Amaurobius similis_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1475565.html","width":130,"caption":"Amaurobius similis<br>\r\n[male]","height":86});
															thumbnails[1668009] = clik.newPhoto({"id":1668009,"src":"Bombus pascourum male_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1668009.html","width":130,"caption":"Bombus pascourum [male]","height":130});
															thumbnails[2078823] = clik.newPhoto({"id":2078823,"src":"Face of a Harvestman_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_2078823.html","width":87,"caption":"The face of a harvestman","height":130});
															thumbnails[2158416] = clik.newPhoto({"id":2158416,"src":"Aellurillus v-insignitus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_2158416.html","width":130,"caption":"Aellurillus v-insignitus","height":130});
															thumbnails[2517410] = clik.newPhoto({"id":2517410,"src":"Field Vole2_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_2517410.html","width":130,"caption":"Field Vole","height":130});
															thumbnails[2933324] = clik.newPhoto({"id":2933324,"src":"Mediterranean-Chameleon5_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_2933324.html","width":130,"caption":"Mediterranean Chameleon","height":86});
															thumbnails[3372716] = clik.newPhoto({"id":3372716,"src":"Turnstone_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_3372716.html","width":87,"caption":"Turnstone","height":130});
															thumbnails[6834978] = clik.newPhoto({"id":6834978,"src":"Whitethroat_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_6834978.html","width":130,"caption":"Whitethroat","height":130});
															thumbnails[6835007] = clik.newPhoto({"id":6835007,"src":"Amara_communis-convexior_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835007.html","width":130,"caption":"Amara communis-convexior","height":87});
															thumbnails[6835008] = clik.newPhoto({"id":6835008,"src":"Angle-Shades_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835008.html","width":130,"caption":"Angle-Shades","height":86});
															thumbnails[6835009] = clik.newPhoto({"id":6835009,"src":"Anoplius_concinnus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835009.html","width":130,"caption":"Anoplius concinnus","height":130});
															thumbnails[6835013] = clik.newPhoto({"id":6835013,"src":"Sky_Lark_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_6835013.html","width":130,"caption":"Sky Lark","height":86});
															thumbnails[6835016] = clik.newPhoto({"id":6835016,"src":"Harlequin_Ladybird_larvae_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835016.html","width":130,"caption":"Harlequin Ladybird larvae","height":130});
															thumbnails[6835019] = clik.newPhoto({"id":6835019,"src":"Heath_Grasshopper_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835019.html","width":130,"caption":"Heath Grasshopper","height":87});
															thumbnails[6835020] = clik.newPhoto({"id":6835020,"src":"Sandwich_Tern_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_6835020.html","width":130,"caption":"Sandwich Tern","height":87});
															thumbnails[6835022] = clik.newPhoto({"id":6835022,"src":"Crabro_scutellatus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835022.html","width":130,"caption":"Crabro scutellatus","height":86});
															thumbnails[6835024] = clik.newPhoto({"id":6835024,"src":"Cormorant_69AA5AC1-1D09-001F-9960D3A95CAA19A2_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_6835024.html","width":85,"caption":"Cormorant","height":130});
															thumbnails[6835026] = clik.newPhoto({"id":6835026,"src":"Small_Elephant_Hawk-moth_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835026.html","width":130,"caption":"Small Elephant Hawk-moth","height":130});
															thumbnails[6835028] = clik.newPhoto({"id":6835028,"src":"Wall_Lizard_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835028.html","width":130,"caption":"Wall Lizard","height":87});
															thumbnails[6835055] = clik.newPhoto({"id":6835055,"src":"Seven-spot_Ladybird_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835055.html","width":94,"caption":"Seven-spot Ladybird","height":130});
															thumbnails[6835057] = clik.newPhoto({"id":6835057,"src":"Small_Elephant_Hawk-moth_1_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_6835057.html","width":87,"caption":"Small Elephant Hawk-moth","height":130});
															thumbnails[7477017] = clik.newPhoto({"id":7477017,"src":"Blue_Tit_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477017.html","width":130,"caption":"Blue Tit","height":130});
															thumbnails[7477026] = clik.newPhoto({"id":7477026,"src":"Carrion_Crow_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477026.html","width":130,"caption":"Carrion Crow","height":130});
															thumbnails[7477033] = clik.newPhoto({"id":7477033,"src":"Ring-billed_Gull_1_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477033.html","width":93,"caption":"Ring-billed Gull","height":130});
															thumbnails[7477038] = clik.newPhoto({"id":7477038,"src":"Buzzard_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477038.html","width":130,"caption":"Buzzard","height":130});
															thumbnails[7477040] = clik.newPhoto({"id":7477040,"src":"Goldfinch_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477040.html","width":130,"caption":"Goldfinch","height":86});
															thumbnails[7477042] = clik.newPhoto({"id":7477042,"src":"Long-billed_Dowitcher_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477042.html","width":130,"caption":"Long-billed Dowitcher","height":86});
															thumbnails[7477045] = clik.newPhoto({"id":7477045,"src":"Mediterranean_Gull_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477045.html","width":98,"caption":"Mediterranean Gull","height":130});
															thumbnails[7477046] = clik.newPhoto({"id":7477046,"src":"Robin_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477046.html","width":130,"caption":"Robin","height":130});
															thumbnails[7477051] = clik.newPhoto({"id":7477051,"src":"Rock_Pipit_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477051.html","width":130,"caption":"Rock Pipit","height":86});
															thumbnails[7477330] = clik.newPhoto({"id":7477330,"src":"Long-tailed_Tit_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_7477330.html","width":130,"caption":"Long-tailed Tit","height":130});
															thumbnails[2400627] = clik.newPhoto({"id":2400627,"src":"Carabus violaceus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_2400627.html","width":73,"caption":"Carabus violaceus purpurascens","height":130});
															thumbnails[1345452] = clik.newPhoto({"id":1345452,"src":"Bombus pascourum_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345452.html","width":98,"caption":"Bombus pascourum","height":130});
															thumbnails[1349804] = clik.newPhoto({"id":1349804,"src":"Green Toad_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349804.html","width":130,"caption":"Green Toad<br><br>Bufo viridis","height":130});
															thumbnails[1475566] = clik.newPhoto({"id":1475566,"src":"Araneus diadematus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1475566.html","width":130,"caption":"Araneus diadematus<br>\r\n[female]","height":87});
															thumbnails[1345454] = clik.newPhoto({"id":1345454,"src":"Cicindela littoralis_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345454.html","width":130,"caption":"Cicindela littoralis","height":91});
															thumbnails[1349782] = clik.newPhoto({"id":1349782,"src":"Cormorant_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_1349782.html","width":87,"caption":"Cormorant<br><br>Phalacrocorax carbo","height":130});
															thumbnails[1349779] = clik.newPhoto({"id":1349779,"src":"Cerceris-arenaria-male-DSC0_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349779.html","width":130,"caption":"Cerceris arenaria [male]","height":86});
															thumbnails[1349788] = clik.newPhoto({"id":1349788,"src":"Cyprus Blue_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349788.html","width":130,"caption":"Glaucopsyche paphos<br><br>Cyprus Blue","height":130});
															thumbnails[1349822] = clik.newPhoto({"id":1349822,"src":"Mottled Grasshopper_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349822.html","width":130,"caption":"Myrmeleotettix maculatus [female]<br><br>Mottled Grasshopper","height":88});
															thumbnails[1349812] = clik.newPhoto({"id":1349812,"src":"Herring Gull_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_1349812.html","width":130,"caption":"Herring Gull<br><br>Larus argentatus","height":65});
															thumbnails[1349794] = clik.newPhoto({"id":1349794,"src":"Xysticus cristatus 1_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349794.html","width":130,"caption":"Xysticus cristatus","height":130});
															thumbnails[1345469] = clik.newPhoto({"id":1345469,"src":"Starred Agama_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345469.html","width":130,"caption":"Starred Agama [juvenile]<br><br>Agama stellio","height":130});
															thumbnails[1349480] = clik.newPhoto({"id":1349480,"src":"Phyllobius pomaceus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349480.html","width":130,"caption":"Phyllobius pomaceus","height":130});
															thumbnails[1349484] = clik.newPhoto({"id":1349484,"src":"Helophilus pendulus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349484.html","width":130,"caption":"Helophilus pendulus [male]","height":130});
															thumbnails[1349482] = clik.newPhoto({"id":1349482,"src":"Machimus-cinctellus-male_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349482.html","width":130,"caption":"Machimus cingulatus [male]<br><br>Brown Heath Robberfly","height":86});
															thumbnails[1345464] = clik.newPhoto({"id":1345464,"src":"Spiny-footed Lizard_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345464.html","width":130,"caption":"Spiny-footed Lizard<br><br>Acanthodactylus erythrurus","height":84});
															thumbnails[1349481] = clik.newPhoto({"id":1349481,"src":"Minotaur Beetle_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349481.html","width":130,"caption":"Typhaeus typhoeus [male]<br><br>Minotaur Beetle","height":130});
															thumbnails[1345460] = clik.newPhoto({"id":1345460,"src":"Marpissa muscosa_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1345460.html","width":130,"caption":"Marpissa muscosa [female]","height":87});
															thumbnails[1349488] = clik.newPhoto({"id":1349488,"src":"Tabanus bromius_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349488.html","width":130,"caption":"Tabanus bromius [female]<br><br>Band-eyed Brown Horsefly","height":130});
															thumbnails[1349777] = clik.newPhoto({"id":1349777,"src":"Bog Pimpernel_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349777.html","width":130,"caption":"Bog Pimpernel<br><br>Anagallis tenella","height":85});
															thumbnails[1349489] = clik.newPhoto({"id":1349489,"src":"Common Groundhopper_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349489.html","width":130,"caption":"Tetrix undulata [female]<br><br>Common Groundhopper","height":87});
															thumbnails[1349490] = clik.newPhoto({"id":1349490,"src":"Peregrine_thumb.jpg","galleries_id":405396,"server_id":18,"link":"photo_1349490.html","width":130,"caption":"Peregrine [juvenile]<br><br>Falco peregrinus","height":87});
															thumbnails[1349492] = clik.newPhoto({"id":1349492,"src":"Sminthurus sp_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349492.html","width":130,"caption":"Sminthurus sp.","height":87});
															thumbnails[1349768] = clik.newPhoto({"id":1349768,"src":"Alopecosa barbipes female_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349768.html","width":130,"caption":"Alopecosa barbipes [female]","height":86});
															thumbnails[1349773] = clik.newPhoto({"id":1349773,"src":"Bee Orchid_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_1349773.html","width":130,"caption":"Bee Orchid<br><br>Ophrys apifera","height":130});
															thumbnails[3372701] = clik.newPhoto({"id":3372701,"src":"Kuehneromyces mutabilis_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372701.html","width":130,"caption":"Kuehneromyces mutabilis","height":85});
															thumbnails[3372702] = clik.newPhoto({"id":3372702,"src":"Meta segmentata_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372702.html","width":87,"caption":"Meta segmentata","height":130});
															thumbnails[3372707] = clik.newPhoto({"id":3372707,"src":"Xysticus cristatus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372707.html","width":130,"caption":"Xysticus cristatus","height":65});
															thumbnails[3372719] = clik.newPhoto({"id":3372719,"src":"Snake-eyed Lizard_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372719.html","width":130,"caption":"Snake-eyed Lizard","height":85});
															thumbnails[3372722] = clik.newPhoto({"id":3372722,"src":"Snail-killing Fly_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372722.html","width":87,"caption":"Snail-killing Fly","height":130});
															thumbnails[3372726] = clik.newPhoto({"id":3372726,"src":"Colletes hederae_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372726.html","width":130,"caption":"Colletes hederae","height":130});
															thumbnails[3372729] = clik.newPhoto({"id":3372729,"src":"Ectemnius continuus_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372729.html","width":130,"caption":"Ectemnius continuus","height":90});
															thumbnails[3372734] = clik.newPhoto({"id":3372734,"src":"Moss_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372734.html","width":85,"caption":"Moss Forest","height":130});
															thumbnails[3372739] = clik.newPhoto({"id":3372739,"src":"Sitticus pubescens_thumb.jpg","galleries_id":94577,"server_id":18,"link":"photo_3372739.html","width":130,"caption":"Sitticus pubescens","height":65});
															thumbnails[3372758] = clik.newPhoto({"id":3372758,"src":"Cormorant1_thumb.jpg","galleries_id":206026,"server_id":18,"link":"photo_3372758.html","width":98,"caption":"Cormorant","height":130});
															thumbnails[6854321] = clik.newPhoto({"id":6854321,"src":"Guillemots_20x11_thumb.jpg","galleries_id":206026,"server_id":18,"link":"photo_6854321.html","width":130,"caption":"Guillemots","height":72});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[405396] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds","link":"section127796_405396.html","maxRecords":0.0,"photoIDs":[3372716.0,6834978.0,6835013.0,6835020.0,6835024.0,7477017.0,7477026.0,7477033.0,7477038.0,7477040.0,7477042.0,7477045.0,7477046.0,7477051.0,7477330.0,1349782.0,1349812.0,1349490.0],"skipIndex":0,"section_code":"section127796","featured_images":"7477330,7477051,7477046,7477045,7477042,7477040,7477038,7477033,7477026,7477017","id":405396,"singleSection":false});				  						galleries[114699] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_114699.html","maxRecords":0.0,"photoIDs":[1288430.0,2146478.0,3372689.0,7068288.0,7068318.0,7068327.0,7068372.0,7164151.0,7164167.0],"skipIndex":0,"section_code":"gallery","featured_images":"7164167,7164151,7068372,7068327,7068318,7068288,3372689,2146478,1288430","id":114699,"singleSection":false});				  						galleries[95422] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Colour","link":"gallery_95422.html","maxRecords":0.0,"photoIDs":[1288256.0,1288278.0,1288296.0,1288428.0,1288516.0,1591961.0,1687365.0,2146494.0,2517404.0,2517407.0,2940292.0,6774478.0,7164075.0,7164096.0,7164102.0,7164107.0],"skipIndex":0,"section_code":"gallery","featured_images":"1591961,1288256","id":95422,"singleSection":false});				  						galleries[94577] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"General Wildlife","link":"section127796_94577.html","maxRecords":0.0,"photoIDs":[1345453.0,1345457.0,1349819.0,1404284.0,1475565.0,1668009.0,2078823.0,2158416.0,2517410.0,2933324.0,6835007.0,6835008.0,6835009.0,6835016.0,6835019.0,6835022.0,6835026.0,6835028.0,6835055.0,6835057.0,2400627.0,1345452.0,1349804.0,1475566.0,1345454.0,1349779.0,1349788.0,1349822.0,1349794.0,1345469.0,1349480.0,1349484.0,1349482.0,1345464.0,1349481.0,1345460.0,1349488.0,1349777.0,1349489.0,1349492.0,1349768.0,1349773.0,3372701.0,3372702.0,3372707.0,3372719.0,3372722.0,3372726.0,3372729.0,3372734.0,3372739.0],"skipIndex":0,"section_code":"section127796","featured_images":"6835057,6835055,6835028,6835026,6835022,6835019,6835016,6835009,6835008,6835007","id":94577,"singleSection":false});				  						galleries[206026] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Paintings","link":"section253663.html","maxRecords":0.0,"photoIDs":[3372758.0,6854321.0],"skipIndex":0,"section_code":"section253663","featured_images":"6854321,3372758","id":206026,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2517404';
imageSets[2] = '1591961,1288256';
imageSets[3] = '7477330,7477051,7477046,7477045,7477042,7477040,7477038,7477033,7477026,7477017,7164167,7164151,7164107,7164102,7164096,7164075,7068372,7068327,7068318,7068288,6854321,6835057,6835055,6835028,6835026,6835024,6835022,6835020,6835019,6835016,6835013,6835009,6835008,6835007,6834978,6774478,3372758,3372739,3372734,3372729,3372726,3372722,3372719,3372716,3372707,3372702,3372701,3372689,2940292,2933324';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stephenmorrison/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stephenmorrison/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 = 'Fine Art of Nature: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="fineartofnature@hotmail.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="fineartofnature@hotmail.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

