function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[3252041]=new thumbnail(3252041,"198230","Grey Seals - Shetland","rich13greyseals_thumb.jpg",130,91,15);thumbnails[3252045]=new thumbnail(3252045,"198230","Red Squirrel - dark phase- Germany","rich60RedSquirrel_thumb.jpg",130,101,15);thumbnails[3252147]=new thumbnail(3252147,"198230","Brown Hare - Norfolk","hare1_thumb.jpg",130,108,15);thumbnails[4337615]=new thumbnail(4337615,"198230","Common Seal","common-seal_thumb.jpg",130,92,15);thumbnails[4751669]=new thumbnail(4751669,"198230","","raw_jpeg_1_of_1-139_thumb.jpg",130,87,15);thumbnails[3251989]=new thumbnail(3251989,"198226","In let at Spiggie - Shetland","Rich2spiggie_thumb.jpg",130,83,15);thumbnails[3251990]=new thumbnail(3251990,"198226","Mousa Brock - Shetland","rich23Mousa_thumb.jpg",130,81,15);thumbnails[3251993]=new thumbnail(3251993,"198226","Looking towards Fitfull Head - Shetland","rich38Shetland_thumb.jpg",130,83,15);thumbnails[3251999]=new thumbnail(3251999,"198226","Wyming Brook in Autumn - Sheffield","rich49wymingbrook_thumb.jpg",130,87,15);thumbnails[3264750]=new thumbnail(3264750,"198226","Old mill at Bad Libenzell Germany","mill-bad-libenzell-copy_thumb.jpg",130,87,15);thumbnails[4231712]=new thumbnail(4231712,"198226","Loch of Benston Shetland","raw_jpeg_1_of_1-13_thumb.jpg",130,86,15);thumbnails[4231735]=new thumbnail(4231735,"198226","Wyming Brook Sheffield","autum-rush-wyming-brook-cop_thumb.jpg",130,87,15);thumbnails[4231737]=new thumbnail(4231737,"198226","Loch of Benston Shetland","benston_thumb.jpg",130,86,15);thumbnails[4231739]=new thumbnail(4231739,"198226","Nesting -Shetland","nesting-shack_thumb.jpg",130,86,15);thumbnails[4383981]=new thumbnail(4383981,"198226","","boats_thumb.jpg",130,92,15);thumbnails[4969977]=new thumbnail(4969977,"198226","","sunrise63_thumb.jpg",130,88,15);thumbnails[4970036]=new thumbnail(4970036,"198226","","eaves1_thumb.jpg",130,88,15);thumbnails[3252021]=new thumbnail(3252021,"198231","Scorpion fly - Germany","rich35scorpionfly_thumb.jpg",130,104,15);thumbnails[3252023]=new thumbnail(3252023,"198231","Seed head","rich37seedheady_thumb.jpg",130,99,15);thumbnails[3252025]=new thumbnail(3252025,"198231","Spider and Prey - France","rich39spider_thumb.jpg",130,78,15);thumbnails[3252029]=new thumbnail(3252029,"198231","Spider in wait","rich40spider_thumb.jpg",130,84,15);thumbnails[3252034]=new thumbnail(3252034,"198231","Damselfly","rich45tri-coloureddamselfly_edited-1_thumb.jpg",130,111,15);thumbnails[3252035]=new thumbnail(3252035,"198231","Gatekeeper","rich50gatekeeper_thumb.jpg",130,105,15);thumbnails[3252036]=new thumbnail(3252036,"198231","","rich54meadowbrown_thumb.jpg",130,82,15);thumbnails[3252040]=new thumbnail(3252040,"198231","Bush Cricket","rich55bushcricket_thumb.jpg",130,79,15);thumbnails[3252155]=new thumbnail(3252155,"198231","Purple Emperor butterfly<br>\r\nGermany","purpleemprore_thumb.jpg",130,83,15);thumbnails[3751263]=new thumbnail(3751263,"198231","Rosechaffer - Germany","rosechaffer-copy_thumb.jpg",130,83,15);thumbnails[3751304]=new thumbnail(3751304,"198231","close up of a dragonfly head","dragon-eye-copy_thumb.jpg",130,83,15);thumbnails[3866389]=new thumbnail(3866389,"198231","Spring fern","fern_thumb.jpg",130,94,15);thumbnails[3869148]=new thumbnail(3869148,"198231","Wood ant","raw_jpeg_1_of_1-71_thumb.jpg",130,85,15);thumbnails[4383969]=new thumbnail(4383969,"198231","","beetles_thumb.jpg",130,184,15);thumbnails[4383975]=new thumbnail(4383975,"198231","","blue-damselfly-copy_thumb.jpg",130,80,15);thumbnails[4421595]=new thumbnail(4421595,"198231","","blue-fly_thumb.jpg",130,184,15);thumbnails[4421783]=new thumbnail(4421783,"198231","Small Skipper","skipper_thumb.jpg",130,191,15);thumbnails[5379927]=new thumbnail(5379927,"198231","","raw_jpeg_1_of_1-291_thumb.jpg",130,87,15);thumbnails[5379933]=new thumbnail(5379933,"198231","","raw_jpeg_1_of_1-290_thumb.jpg",130,87,15);thumbnails[5379940]=new thumbnail(5379940,"198231","","nif_thumb.jpg",130,77,15);thumbnails[5379947]=new thumbnail(5379947,"198231","","comma1_thumb.jpg",130,80,15);thumbnails[5379955]=new thumbnail(5379955,"198231","","raw_jpeg_1_of_1-2921_thumb.jpg",130,87,15);thumbnails[3249464]=new thumbnail(3249464,"198225","Male Bullfinch","rich6bullfinch_edited-1_thumb.jpg",130,89,15);thumbnails[3249526]=new thumbnail(3249526,"198225","Red Grouse- common on moorland","rich13grouse_edited-1_thumb.jpg",130,79,15);thumbnails[3251916]=new thumbnail(3251916,"198225","Nightingale in song - Rutland","rich24Nightingale_thumb.jpg",130,105,15);thumbnails[3251954]=new thumbnail(3251954,"198225","Sedge Warbler - France","rich36sedgewarbler_thumb.jpg",130,110,15);thumbnails[3251976]=new thumbnail(3251976,"198225","Tree Sparrow","rich44treesparrow_thumb.jpg",130,98,15);thumbnails[3251987]=new thumbnail(3251987,"198225","Whitethroat - a spring arrival","rich59whitethroat_thumb.jpg",130,111,15);thumbnails[3252160]=new thumbnail(3252160,"198225","Grey Wagtail","greywag_thumb.jpg",130,101,15);thumbnails[3751701]=new thumbnail(3751701,"198225","A christmas card Robin","Rich1_edited-1_thumb.jpg",130,165,15);thumbnails[3751758]=new thumbnail(3751758,"198225","Waxwing-early morning in Sheffield","waxwing-asda-copy_thumb.jpg",130,83,15);thumbnails[3751761]=new thumbnail(3751761,"198225","A pair of Waxwings - early morning in Sheffield<br>\r\n","waxwings-copy_thumb.jpg",130,83,15);thumbnails[4184534]=new thumbnail(4184534,"198225","Spotted Flycatcher - Derbyshire","spotted-flycatcher_thumb.jpg",130,85,15);thumbnails[4184542]=new thumbnail(4184542,"198225","Tree Pipit - Derbyshire","tree-pipit_thumb.jpg",130,83,15);thumbnails[4231745]=new thumbnail(4231745,"198225","Shetland wren","raw_jpeg_1_of_1-34_thumb.jpg",130,86,15);thumbnails[4337651]=new thumbnail(4337651,"198225","Robin","robin-copy_thumb.jpg",130,83,15);thumbnails[4337784]=new thumbnail(4337784,"198225","Subalpine warbler ","sub-alpine_thumb.jpg",130,88,15);thumbnails[4421604]=new thumbnail(4421604,"198225","Meadow Pipit","mpipit_thumb.jpg",130,83,15);thumbnails[4513835]=new thumbnail(4513835,"198225","Starling","starling-shetland_thumb.jpg",130,83,15);thumbnails[4562474]=new thumbnail(4562474,"198225","Twite","raw_jpeg_1_of_1-901_thumb.jpg",130,83,15);thumbnails[5646806]=new thumbnail(5646806,"198225","Gt Spotted Woodpecker","raw_jpeg_1_of_1-5_61754F1A-24E8-5EC4-4F08E9B7477E8EC1_thumb.jpg",130,90,15);thumbnails[3249499]=new thumbnail(3249499,"199119","Golden Plover calling during breeding season","rich11goldenplover_edited-1_thumb.jpg",130,87,15);thumbnails[3251928]=new thumbnail(3251928,"199119","Oystercatcher - Shetland","rich27oystercatcher_thumb.jpg",130,87,15);thumbnails[3251948]=new thumbnail(3251948,"199119","Redshank - Shetland","rich33Redshank_thumb.jpg",130,82,15);thumbnails[3251952]=new thumbnail(3251952,"199119","Red necked phalarope - Fetlar,Shetland","rich34rn-phalarope_thumb.jpg",130,98,15);thumbnails[3251973]=new thumbnail(3251973,"199119","Spotted Redshank - on passage September","rich43spottedredshank_edited-1_thumb.jpg",130,98,15);thumbnails[3251977]=new thumbnail(3251977,"199119","Turnstone in winter plumage","rich46turnstone_thumb.jpg",130,87,15);thumbnails[3252152]=new thumbnail(3252152,"199119","Lapwing Male","lapwing_thumb.jpg",130,102,15);thumbnails[3751676]=new thumbnail(3751676,"199119","Curlew","DSC_0093_thumb.jpg",130,83,15);thumbnails[3751678]=new thumbnail(3751678,"199119","Grey Plover in winter","DSC_0137_thumb.jpg",130,83,15);thumbnails[3751700]=new thumbnail(3751700,"199119","Oystercatcher - in winter plumage (note white collar on neck)","oyster-titchwell-copy_thumb.jpg",130,84,15);thumbnails[3908250]=new thumbnail(3908250,"199119","Sanderling - May","raw_jpeg_1_of_1-14_thumb.jpg",130,89,15);thumbnails[4184483]=new thumbnail(4184483,"199119","Avocet defending nest","raw_jpeg_1_of_1-3_thumb.jpg",130,85,15);thumbnails[4231658]=new thumbnail(4231658,"199119","Curlew calling","curlew-standing_thumb.jpg",130,88,15);thumbnails[3249471]=new thumbnail(3249471,"228928","Buzzard","rich7buzzard1_edited-1_thumb.jpg",130,95,15);thumbnails[3249481]=new thumbnail(3249481,"228928","Buzzard","rich8buzzard_edited-1_thumb.jpg",130,106,15);thumbnails[3249539]=new thumbnail(3249539,"228928","Kestrel male","rich19kestrel_edited-1_thumb.jpg",130,100,15);thumbnails[3251920]=new thumbnail(3251920,"228928","Osprey - Rutland Water","rich25osprey_thumb.jpg",130,102,15);thumbnails[3251925]=new thumbnail(3251925,"228928","Osprey at nest - Rutland water","rich26ospreynest_thumb.jpg",130,106,15);thumbnails[3251942]=new thumbnail(3251942,"228928","Red Kite - Gigrin Farm Wales","rich32Red-Kite_thumb.jpg",130,102,15);thumbnails[3251986]=new thumbnail(3251986,"228928","Marsh Harrier","rich58marshharrier_thumb.jpg",130,100,15);thumbnails[3943898]=new thumbnail(3943898,"228928","Male marsh harrier","edited-marsh-harier_thumb.jpg",130,80,15);thumbnails[4184515]=new thumbnail(4184515,"228928","White tailed Sea eagle - Shetland","raw_jpeg_1_of_1-6_thumb.jpg",130,85,15);thumbnails[4337625]=new thumbnail(4337625,"228928","Hobby","hobby_thumb.jpg",130,92,15);thumbnails[3251997]=new thumbnail(3251997,"228927","Wyming Brook Sheffield","rich48waterfall_thumb.jpg",130,87,15);thumbnails[3252003]=new thumbnail(3252003,"228927","Water droplets","rich30raindrops_edited-1_thumb.jpg",130,83,15);thumbnails[3751671]=new thumbnail(3751671,"228927","Close up of ice- a rare sight now a days","close-up-ice-copy_thumb.jpg",130,83,15);thumbnails[3751673]=new thumbnail(3751673,"228927","Autumn leaves caught in river","colours-of-autum-water-wymi_thumb.jpg",130,83,15);thumbnails[3751692]=new thumbnail(3751692,"228927","Ice","ice-2-copy_thumb.jpg",130,83,15);thumbnails[3751694]=new thumbnail(3751694,"228927","Ice - a rare sight ","ie-3-copy_thumb.jpg",130,83,15);thumbnails[3751754]=new thumbnail(3751754,"228927","Water droplet","water-drops-copy_thumb.jpg",130,83,15);thumbnails[3751757]=new thumbnail(3751757,"228927","Water droplet - impact course","water-top-2-copy_thumb.jpg",130,177,15);thumbnails[3787621]=new thumbnail(3787621,"228927","Kingfisher caught in water droplet","water_droplets_hanging-Edit_thumb.jpg",130,83,15);thumbnails[3908258]=new thumbnail(3908258,"228927","Drop on high","raw_jpeg_1_of_1-10_thumb.jpg",130,184,15);thumbnails[3943863]=new thumbnail(3943863,"228927","Drop in the ocean","raw_jpeg_1_of_1_thumb.jpg",130,88,15);thumbnails[3943866]=new thumbnail(3943866,"228927","Splash 1","raw_jpeg_1_of_1-151_thumb.jpg",130,88,15);thumbnails[4130808]=new thumbnail(4130808,"228927","Splash 2","raw_jpeg_1_of_1-17_thumb.jpg",130,191,15);thumbnails[4130809]=new thumbnail(4130809,"228927","Diamond rising","diamond-water_thumb.jpg",130,191,15);thumbnails[5646809]=new thumbnail(5646809,"228927","","raw_jpeg_1_of_1-13_61767535-24E8-5EC4-4F34F0F925F6D528_thumb.jpg",130,187,15);thumbnails[3249491]=new thumbnail(3249491,"228934","Coot feeding young","rich9cootyoung_edited-1_thumb.jpg",130,87,15);thumbnails[3249535]=new thumbnail(3249535,"228934","Great Crested Grebe ","rich17GtCrestedGrebe_edited-1_thumb.jpg",130,87,15);thumbnails[3251908]=new thumbnail(3251908,"228934","Little Egret - Norfolk","rich20littleegret_thumb.jpg",130,95,15);thumbnails[3251910]=new thumbnail(3251910,"228934","Little Grebe - Derbyshire","rich21Littlegrebe_thumb.jpg",130,87,15);thumbnails[3251969]=new thumbnail(3251969,"228934","Spoonbill feeding young -  France","rich42spoonbillfeeding_edited-1_thumb.jpg",130,77,15);thumbnails[3251979]=new thumbnail(3251979,"228934","White Stork- Vendee, France","rich52whitestork_thumb.jpg",130,86,15);thumbnails[3251980]=new thumbnail(3251980,"228934","Wigeon a common winter visitor to our region ","rich53wigeon_thumb.jpg",130,85,15);thumbnails[3751307]=new thumbnail(3751307,"228934","Black Necked Grebe<br>\r\nGermany","Black-necked-Grebe-waghause_thumb.jpg",130,99,15);thumbnails[3751696]=new thumbnail(3751696,"228934","Kingfisher","kingfisher-copy_thumb.jpg",130,86,15);thumbnails[3751703]=new thumbnail(3751703,"228934","Red Necked Grebe - a rare winter visitor","RN-grebe-Foremark-res-copy_thumb.jpg",130,79,15);thumbnails[3751704]=new thumbnail(3751704,"228934","Male Shoveler in breeding plumage","shovler-copy_thumb.jpg",130,86,15);thumbnails[3787606]=new thumbnail(3787606,"228934","Canada Goose","barbrook_2-46-Edit_thumb.jpg",130,87,15);thumbnails[3860489]=new thumbnail(3860489,"228934","Gt Crested Grebes displaying","gt-crested1_thumb.jpg",130,94,15);thumbnails[4231799]=new thumbnail(4231799,"228934","Gt Northern Diver - Scatness Shetland","Gt-Northern-diver_thumb.jpg",130,86,15);thumbnails[4337660]=new thumbnail(4337660,"228934","Red throated Diver on sea","RT-Diver_thumb.jpg",130,92,15);thumbnails[5646804]=new thumbnail(5646804,"228934","","raw_jpeg_1_of_1-9_thumb.jpg",130,90,15);thumbnails[3249446]=new thumbnail(3249446,"228935","Artic skua","Richarticskua_thumb.jpg",130,87,15);thumbnails[3251935]=new thumbnail(3251935,"228935","Puffin - Shetland","rich28puffin_thumb.jpg",130,107,15);thumbnails[3251982]=new thumbnail(3251982,"228935","Black Guillemot - Shetland","rich56blackguillemot_thumb.jpg",130,87,15);thumbnails[3751680]=new thumbnail(3751680,"228935","Guillemot in winter","DSC_0213-copy_thumb.jpg",130,86,15);thumbnails[4184518]=new thumbnail(4184518,"228935","Gannet - Noss Shetland","raw_jpeg_1_of_1-8_thumb.jpg",130,85,15);thumbnails[4184706]=new thumbnail(4184706,"228935","Guillemot - Noss, shetland","guillemot_thumb.jpg",130,85,15);thumbnails[4184710]=new thumbnail(4184710,"228935","Guillemot- bridled Noss, shetland","guillemot---bridled_thumb.jpg",130,85,15);thumbnails[4184716]=new thumbnail(4184716,"228935","Puffin - Sumburgh , Shetland","puffin-open_thumb.jpg",130,85,15);thumbnails[4337620]=new thumbnail(4337620,"228935","Gt Skua - Hermaness Shetland","gt-skua-wing-raised_thumb.jpg",130,92,15);thumbnails[4383993]=new thumbnail(4383993,"228935","Eider and young","eider-young_thumb.jpg",130,88,15);thumbnails[4421611]=new thumbnail(4421611,"228935","Razorbill","razorbill_thumb.jpg",130,88,15);thumbnails[4421778]=new thumbnail(4421778,"228935","Shag","shag-nest_thumb.jpg",130,83,15);thumbnails[4562464]=new thumbnail(4562464,"228935","Gt Skua","raw_jpeg_1_of_1-92_thumb.jpg",130,83,15);thumbnails[4562467]=new thumbnail(4562467,"228935","Puffin","raw_jpeg_1_of_1-89_thumb.jpg",130,83,15);thumbnails[4562477]=new thumbnail(4562477,"228935","Gannet landing","raw_jpeg_1_of_1-91_thumb.jpg",130,83,15);thumbnails[3252001]=new thumbnail(3252001,"198232","The original cat eye","rich10eyecat_thumb.jpg",130,87,15);thumbnails[3252002]=new thumbnail(3252002,"198232","Moon - Digiscoped","rich22moon_edited-1_thumb.jpg",130,94,15);thumbnails[3751262]=new thumbnail(3751262,"198232","Male adder 2","barbrook-92_thumb.jpg",130,86,15);thumbnails[3751302]=new thumbnail(3751302,"198232","Male Adder","barbrook-35-Edit_thumb.jpg",130,76,15);thumbnails[3751685]=new thumbnail(3751685,"198232","Autumn flowers caught in wind","flower-colours_edited-1_thumb.jpg",130,87,15);thumbnails[3787609]=new thumbnail(3787609,"198232","The edge of a rainbow","blacktoft-12-Edit_thumb.jpg",130,87,15);thumbnails[3826763]=new thumbnail(3826763,"233065","Bee-eater","beeeater_thumb.jpg",130,83,15);thumbnails[3826770]=new thumbnail(3826770,"233065","Blackwinged stilt","Blackwinged-stilt_thumb.jpg",130,83,15);thumbnails[3826782]=new thumbnail(3826782,"233065","Crested lark","crested-lark_thumb.jpg",130,83,15);thumbnails[4735059]=new thumbnail(4735059,"233065","Roller","raw_jpeg_1_of_1-122_thumb.jpg",130,88,15);thumbnails[3249457]=new thumbnail(3249457,"249178","Brent Geese","richbrentgeese_thumb.jpg",130,81,15);thumbnails[3251937]=new thumbnail(3251937,"249178","Purple Heron - Germany","rich29PurpleHeron_thumb.jpg",130,98,15);thumbnails[3251958]=new thumbnail(3251958,"249178","Spoonbill - France","rich41spoonbill_thumb.jpg",130,72,15);thumbnails[3251984]=new thumbnail(3251984,"249178","Grey Heron under attack while on bombing raid","rich57heron_thumb.jpg",130,87,15);thumbnails[3751303]=new thumbnail(3751303,"249178","Bar tailed godwit in flight - winter plumage","bar-tailed-godwit-copy_thumb.jpg",130,88,15);thumbnails[3860501]=new thumbnail(3860501,"249178","Sand martin in the rain","sandmartin_thumb.jpg",130,94,15);thumbnails[4184463]=new thumbnail(4184463,"249178","Gt Black Back Gull - defending territory ","gt-bb_thumb.jpg",130,85,15);thumbnails[4184494]=new thumbnail(4184494,"249178","Mallards - male","raw_jpeg_1_of_1-4_thumb.jpg",130,85,15);thumbnails[4184501]=new thumbnail(4184501,"249178","Fulmar","raw_jpeg_1_of_1-5_thumb.jpg",130,85,15);thumbnails[4184699]=new thumbnail(4184699,"249178","Gt Skua - Hermaness Shetland","gt-Skua_thumb.jpg",130,85,15);thumbnails[4231744]=new thumbnail(4231744,"249178","Lapwing","lapwing-flying_thumb.jpg",130,86,15);thumbnails[4231798]=new thumbnail(4231798,"249178","Curlew","curlew-flight_thumb.jpg",130,86,15);thumbnails[4337525]=new thumbnail(4337525,"249178","Artic skuas ","artic-pair_thumb.jpg",130,92,15);thumbnails[4337530]=new thumbnail(4337530,"249178","light phase artic skua","artic-skua-flight_thumb.jpg",130,92,15);thumbnails[4337602]=new thumbnail(4337602,"249178","Artic tern with sandeel","artic-tern-flight_thumb.jpg",130,88,15);thumbnails[4337610]=new thumbnail(4337610,"249178","Common tern","common-tern_thumb.jpg",130,92,15);thumbnails[4337637]=new thumbnail(4337637,"249178","Redshank","redshank_thumb.jpg",130,92,15);thumbnails[5646803]=new thumbnail(5646803,"249178","Bittern at Potteric Carr","flying-bit_thumb.jpg",130,90,15);thumbnails[4383939]=new thumbnail(4383939,"253030","Northern Marsh Orchid","nth-marsh-orchid_thumb.jpg",130,184,15);thumbnails[4383955]=new thumbnail(4383955,"253030","Bee Orchid","bee-orchid_thumb.jpg",130,184,15);thumbnails[4383989]=new thumbnail(4383989,"253030","Fragrant Orchid","fragrant-orchid_thumb.jpg",130,184,15);thumbnails[4421592]=new thumbnail(4421592,"253030","Bee orchid (2)","bee-orchid-large_thumb.jpg",130,184,15);thumbnails[4421597]=new thumbnail(4421597,"253030","Common spotted orchid","common-sp_thumb.jpg",130,184,15);thumbnails[4513817]=new thumbnail(4513817,"253030","","avon_thumb.jpg",130,203,15);thumbnails[5379922]=new thumbnail(5379922,"253030","","raw_jpeg_1_of_1-294_thumb.jpg",130,194,15);var galleries=new Object();galleries[198230]=new gallery(198230,"4751669,4337615,3252147,3252045,3252041","Mammals","gallery",[3252041,3252045,3252147,4337615,4751669]);galleries[198226]=new gallery(198226,"4970036,4969977,4383981,4231739,4231737,4231735,4231712,3264750,3251999,3251993","Landscapes","gallery",[3251989,3251990,3251993,3251999,3264750,4231712,4231735,4231737,4231739,4383981,4969977,4970036]);galleries[198231]=new gallery(198231,"5379955,5379947,5379940,5379933,5379927,4421783,4421595,4383975,4383969,3869148","Macro","gallery",[3252021,3252023,3252025,3252029,3252034,3252035,3252036,3252040,3252155,3751263,3751304,3866389,3869148,4383969,4383975,4421595,4421783,5379927,5379933,5379940,5379947,5379955]);galleries[198225]=new gallery(198225,"5646806,4562474,4513835,4421604,4337784,4337651,4231745,4184542,4184534,3751761","small birds","gallery",[3249464,3249526,3251916,3251954,3251976,3251987,3252160,3751701,3751758,3751761,4184534,4184542,4231745,4337651,4337784,4421604,4513835,4562474,5646806]);galleries[199119]=new gallery(199119,"4231658,4184483,3908250,3751700,3751678,3751676,3252152,3251977,3251973,3251952","Waders","gallery",[3249499,3251928,3251948,3251952,3251973,3251977,3252152,3751676,3751678,3751700,3908250,4184483,4231658]);galleries[228928]=new gallery(228928,"4337625,4184515,3943898,3251986,3251942,3251925,3251920,3249539,3249481,3249471","Birds of Prey","gallery",[3249471,3249481,3249539,3251920,3251925,3251942,3251986,3943898,4184515,4337625]);galleries[228927]=new gallery(228927,"5646809,4130809,4130808,3943866,3943863,3908258,3787621,3751757,3751754,3751694","Water","gallery",[3251997,3252003,3751671,3751673,3751692,3751694,3751754,3751757,3787621,3908258,3943863,3943866,4130808,4130809,5646809]);galleries[228934]=new gallery(228934,"5646804,4337660,4231799,3860489,3787606,3751704,3751703,3751696,3751307,3251980","water birds","gallery",[3249491,3249535,3251908,3251910,3251969,3251979,3251980,3751307,3751696,3751703,3751704,3787606,3860489,4231799,4337660,5646804]);galleries[228935]=new gallery(228935,"4562477,4562467,4562464,4421778,4421611,4383993,4337620,4184716,4184710,4184706","seabirds","gallery",[3249446,3251935,3251982,3751680,4184518,4184706,4184710,4184716,4337620,4383993,4421611,4421778,4562464,4562467,4562477]);galleries[198232]=new gallery(198232,"3787609,3751685,3751302,3751262,3252002,3252001","Others","gallery",[3252001,3252002,3751262,3751302,3751685,3787609]);galleries[233065]=new gallery(233065,"4735059,3826782,3826770,3826763","Camargue","gallery",[3826763,3826770,3826782,4735059]);galleries[249178]=new gallery(249178,"5646803,4337637,4337610,4337602,4337530,4337525,4231798,4231744,4184699,4184501","Flight","gallery",[3249457,3251937,3251958,3251984,3751303,3860501,4184463,4184494,4184501,4184699,4231744,4231798,4337525,4337530,4337602,4337610,4337637,5646803]);galleries[253030]=new gallery(253030,"5379922,4513817,4421597,4421592,4383989,4383955,4383939","Flowers","gallery",[4383939,4383955,4383989,4421592,4421597,4513817,5379922]);var imageSets=new Object();imageSets[1]="4383975,4231744,4231739,4231735,4184699,3943863,3751692";imageSets[3]="5646809,5646806,5646804,5646803,5379955,5379947,5379940,5379933,5379927,5379922,4970036,4969977,4751669,4735059,4562477,4562474,4562467,4562464,4513835,4513817,4421783,4421778,4421611,4421604,4421597,4421595,4421592,4383993,4383989,4383981,4383975,4383969,4383955,4383939,4337784,4337660,4337651,4337637,4337625,4337620,4337615,4337610,4337602,4337530,4337525,4231799,4231798,4231745,4231744,4231739";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/waleswood/images";break}switch(a){case 1:b="http://www1.clikpic.com/waleswood/images";break}switch(a){case 2:b="http://admin.clikpic.com/waleswood/images";break}switch(a){case 24:b="http://tpc15/clikpic/waleswood/images";break}switch(a){case 4:b="http://www.clikchurch.com/waleswood/images";break}switch(a){case 5:b="http://www2.clikpic.com/waleswood/images";break}switch(a){case 22:b="http://tpc5/clikpic/waleswood/images";break}switch(a){case 23:b="http://tpc10/clikpic/waleswood/images";break}switch(a){case 25:b="http://tpc16/clikpic/waleswood/images";break}switch(a){case 15:b="http://www3.clikpic.com/waleswood/images";break}switch(a){case 18:b="http://www4.clikpic.com/waleswood/images";break}switch(a){case 19:b="http://www5.clikpic.com/waleswood/images";break}switch(a){case 31:b="http://www7.clikpic.com/waleswood/images";break}switch(a){case 32:b="http://admin2.clikpic.com/waleswood/images";break}switch(a){case 33:b="http://www8.clikpic.com/waleswood/images";break}switch(a){case 34:b="http://www9.clikpic.com/waleswood/images";break}switch(a){case 35:b="http://admin3.clikpic.com/waleswood/images";break}switch(a){case 37:b="http://admin4.clikpic.com/waleswood/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="NATURE IN FOCUS: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;resizePhotoInfo();toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Richard Ashbee </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};