window.thumbnails = new Object();
												thumbnails[7840079] = new thumbnail(7840079,'422632','Bluebells at Emsworthy Farm, Dartmoor','IMG_1022_Emsworthy_1_fb_thumb.jpg',130, 77,32,'photo_7840079.html');
												thumbnails[7840088] = new thumbnail(7840088,'422632','Red roofed barn at Emsworthy Farm, Dartmoor','IMG_1044_Emsworth_2_thumb.jpg',130, 195,32,'photo_7840088.html');
												thumbnails[7839763] = new thumbnail(7839763,'422632','\"The Green Man\" - moss-covered tree','IMG_0882_Man_Tree_WW_fb_thumb.jpg',130, 195,32,'photo_7839763.html');
												thumbnails[7839778] = new thumbnail(7839778,'422632','Ferns ','IMG_0923_Ferns_in_Wistmans_thumb.jpg',130, 195,32,'photo_7839778.html');
												thumbnails[7839996] = new thumbnail(7839996,'422632','Clapper Bridge over the East Dart at Postbridge','IMG_1017_Clapper_thumb.jpg',130, 77,32,'photo_7839996.html');
												thumbnails[7840011] = new thumbnail(7840011,'422632','Clapper Bridge at Postbridge','IMG_1010_Postbridge_fb_thumb.jpg',130, 81,32,'photo_7840011.html');
												thumbnails[7840036] = new thumbnail(7840036,'422632','Ruined tin mines at Whiteworks, near Princetown','IMG_0941_Whiteworks_fb_thumb.jpg',130, 82,32,'photo_7840036.html');
												thumbnails[7840046] = new thumbnail(7840046,'422632','Nun\'s Cross Farm, Dartmoor','IMG_0991_Nuns_Crpss_Farm_fb_thumb.jpg',130, 77,32,'photo_7840046.html');
												thumbnails[7840052] = new thumbnail(7840052,'422632','Siwards Cross, Dartmoor','IMG_0954_Siwards_Cross_Nuns_Farm_fb_thumb.jpg',130, 84,32,'photo_7840052.html');
												thumbnails[7840056] = new thumbnail(7840056,'422632','Bleak moorland at Whiteworks','IMG_0951_Whiteworks_bw_thumb.jpg',130, 87,32,'photo_7840056.html');
												thumbnails[7840064] = new thumbnail(7840064,'422632','Siwards Cross, Dartmoor','IMG_0961_Siwards_Cross_fb_thumb.jpg',130, 195,32,'photo_7840064.html');
												thumbnails[7830942] = new thumbnail(7830942,'422632','Old Thatch','IMG_0683_Cottage_in_Hexworthy_fb_thumb.jpg',130, 87,32,'photo_7830942.html');
												thumbnails[7830958] = new thumbnail(7830958,'422632','Huccaby Bridge','IMG_0715_Huccaby_Bridge_fb_thumb.jpg',130, 87,32,'photo_7830958.html');
												thumbnails[7830965] = new thumbnail(7830965,'422632','Reflections','IMG_0717_Huccaby_Bridge_fb_thumb.jpg',130, 89,32,'photo_7830965.html');
												thumbnails[7830977] = new thumbnail(7830977,'422632','Granite Steps','IMG_0731_steps_at_Huccaby_fb_thumb.jpg',130, 195,32,'photo_7830977.html');
												thumbnails[7839219] = new thumbnail(7839219,'422632','Bluebells at Holwell Lawn near Widecombe','IMG_0764_Holwell_Lawns_CC_thumb.jpg',130, 68,32,'photo_7839219.html');
												thumbnails[7839248] = new thumbnail(7839248,'422632','Hound Tor','IMG_0807_Hound_Tor_fb_thumb.jpg',130, 68,32,'photo_7839248.html');
												thumbnails[7839394] = new thumbnail(7839394,'422632','Hound Tor, Dartmoor','IMG_0820_Hound_Tor_fb_thumb.jpg',130, 74,32,'photo_7839394.html');
												thumbnails[7839409] = new thumbnail(7839409,'422632','Combestone Tor','IMG_0858_Combestone_thumb.jpg',130, 55,32,'photo_7839409.html');
												thumbnails[7839417] = new thumbnail(7839417,'422632','Family of Dartmoor Ponies','IMG_0854_Greeting_thumb.jpg',130, 68,32,'photo_7839417.html');
												thumbnails[7839443] = new thumbnail(7839443,'422632','Stallion coming over the brow','IMG_0847_The_Stallion_thumb.jpg',130, 64,32,'photo_7839443.html');
												thumbnails[7839462] = new thumbnail(7839462,'422632','Dartmoor Ponies','IMG_0876_Ponies_fb_thumb.jpg',130, 115,32,'photo_7839462.html');
												thumbnails[7824740] = new thumbnail(7824740,'422632','Fleeting light at Combestone Tor, Dartmoor','IMG_0662_at_Combestone_Tor_fb_thumb.jpg',130, 87,32,'photo_7824740.html');
												thumbnails[7830938] = new thumbnail(7830938,'422632','Looking into the Dart Valley','IMG_0668_Combestone_fb_thumb.jpg',130, 72,32,'photo_7830938.html');
												thumbnails[7592989] = new thumbnail(7592989,'160751','Bluebell and Raindrop','Bluebell_and_Raindrop_thumb.jpg',130, 133,32,'photo_7592989.html');
												thumbnails[7593048] = new thumbnail(7593048,'160751','Muscari lattifola','IMG_1024_Muscari_thumb.jpg',130, 183,32,'photo_7593048.html');
												thumbnails[7593053] = new thumbnail(7593053,'160751','Wood anemone','IMG_1047_Wood_anenome_thumb.jpg',130, 106,32,'photo_7593053.html');
												thumbnails[7593058] = new thumbnail(7593058,'160751','Wood sorrel','IMG_1057_white_magenta_flower_thumb.jpg',130, 133,32,'photo_7593058.html');
												thumbnails[7593063] = new thumbnail(7593063,'160751','Scilla siberica','IMG_1069_White_drop_thumb.jpg',130, 153,32,'photo_7593063.html');
												thumbnails[7593070] = new thumbnail(7593070,'160751','Helleborus niger','Hellebore_center_fb_thumb.jpg',130, 102,32,'photo_7593070.html');
												thumbnails[7593149] = new thumbnail(7593149,'385291','Seat amongst the daffodils','IMG_0845_Bench_in_daffs_thumb.jpg',130, 87,32,'photo_7593149.html');
												thumbnails[7593033] = new thumbnail(7593033,'160751','Centre of attraction','IMG_1077_Narcissus_thumb.jpg',130, 104,32,'photo_7593033.html');
												thumbnails[7593003] = new thumbnail(7593003,'160751','The daffodil and the Fly','IMG_0621_desat_thumb.jpg',130, 116,32,'photo_7593003.html');
												thumbnails[7593012] = new thumbnail(7593012,'160751','','IMG_0643_polyanthus_thumb.jpg',130, 153,32,'photo_7593012.html');
												thumbnails[7593021] = new thumbnail(7593021,'160751','A host of golden daffodils','IMG_0645_thumb.JPG',130, 87,32,'photo_7593021.html');
												thumbnails[7593025] = new thumbnail(7593025,'160751','Primroses','IMG_0644_primroses_framed_thumb.jpg',130, 107,32,'photo_7593025.html');
												thumbnails[7593027] = new thumbnail(7593027,'160751','Anemone  blanda','IMG_0651_blue_flower_thumb.jpg',130, 106,32,'photo_7593027.html');
												thumbnails[7593092] = new thumbnail(7593092,'385291','Hyacinths in the sunshine','Hyacinths_2_thumb.jpg',130, 87,32,'photo_7593092.html');
												thumbnails[7593105] = new thumbnail(7593105,'385291','','IMG_0835_daff_reflections_thumb.jpg',130, 84,32,'photo_7593105.html');
												thumbnails[7593106] = new thumbnail(7593106,'385291','','Weeping_willows_2_thumb.jpg',130, 87,32,'photo_7593106.html');
												thumbnails[7460426] = new thumbnail(7460426,'160751','','Crocus-Purple_thumb.gif',130, 96,32,'photo_7460426.html');
												thumbnails[7460459] = new thumbnail(7460459,'232181','Pergola in Winter','Pergola_in_winter_fb_thumb.jpg',130, 195,32,'photo_7460459.html');
												thumbnails[7460468] = new thumbnail(7460468,'385291','','Frog-Detail_thumb.gif',130, 87,32,'photo_7460468.html');
												thumbnails[7460472] = new thumbnail(7460472,'385291','Crocus in the orchard','Orchard_thumb.gif',130, 87,32,'photo_7460472.html');
												thumbnails[7460473] = new thumbnail(7460473,'385291','Winterbourne Weir','IMG_0265-Wier_thumb.gif',130, 65,32,'photo_7460473.html');
												thumbnails[7460422] = new thumbnail(7460422,'160754','Snowy Fields','Across-the-fields_thumb.gif',130, 62,32,'photo_7460422.html');
												thumbnails[7122650] = new thumbnail(7122650,'385291','Beech avenue from arboretum to the gardens','Track_to_Gardens_thumb.gif',130, 87,32,'photo_7122650.html');
												thumbnails[7122766] = new thumbnail(7122766,'385291','Looking towards the Downs','Parkland_thumb.gif',130, 87,32,'photo_7122766.html');
												thumbnails[7122778] = new thumbnail(7122778,'385291','Late afternoon sun through the trees','Sunlit_Trees_thumb.gif',130, 87,32,'photo_7122778.html');
												thumbnails[7094226] = new thumbnail(7094226,'160754','Carreg Cennen Castle','Carreg_Cennen_Castle_thumb.gif',130, 87,32,'photo_7094226.html');
												thumbnails[7094025] = new thumbnail(7094025,'385297','','Tywi_River_thumb.gif',130, 87,32,'photo_7094025.html');
												thumbnails[7094080] = new thumbnail(7094080,'160754','Dinas Hill','Dinas_Hill_thumb.gif',130, 87,32,'photo_7094080.html');
												thumbnails[7094276] = new thumbnail(7094276,'385297','Waterfall at Soar y Mynydd','Gushing_stream_thumb.gif',130, 195,32,'photo_7094276.html');
												thumbnails[7094358] = new thumbnail(7094358,'385297','Water cascading through the grass','Grass_and-Waterfall_thumb.gif',130, 195,32,'photo_7094358.html');
												thumbnails[7094479] = new thumbnail(7094479,'385297','\"Iguana\" lying in the river','Iguana_thumb.gif',130, 87,32,'photo_7094479.html');
												thumbnails[7122795] = new thumbnail(7122795,'161696','Light from stained glass window','WindowLight_thumb.gif',130, 87,32,'photo_7122795.html');
												thumbnails[7593212] = new thumbnail(7593212,'232184','','Striking_Light_Judi_Lion_800_thumb.jpg',130, 87,32,'photo_7593212.html');
												thumbnails[6991550] = new thumbnail(6991550,'160754','Silver Birches','SilverBirches_thumb.gif',130, 104,32,'photo_6991550.html');
												thumbnails[6991903] = new thumbnail(6991903,'160754','Sunlight catching on the birch leaves','GoldenBirch_thumb.gif',130, 181,32,'photo_6991903.html');
												thumbnails[6991816] = new thumbnail(6991816,'171552','Frisky fallow deer in Petworth Park','Feeling_Frisky_thumb.jpg',130, 87,32,'photo_6991816.html');
												thumbnails[6991824] = new thumbnail(6991824,'171552','Buck','Im-watching-you_thumb.gif',130, 125,32,'photo_6991824.html');
												thumbnails[6991770] = new thumbnail(6991770,'171553','Long tailed ducks having a water fight','Bath-Time_thumb.gif',130, 87,32,'photo_6991770.html');
												thumbnails[6991781] = new thumbnail(6991781,'171553','Berwick Swan','Berwick_thumb.gif',130, 87,32,'photo_6991781.html');
												thumbnails[6991818] = new thumbnail(6991818,'160754','Evening rainbow','Rainbow_thumb.gif',130, 87,32,'photo_6991818.html');
												thumbnails[6991826] = new thumbnail(6991826,'171553','Moorhen','Moorhen_thumb.gif',130, 87,32,'photo_6991826.html');
												thumbnails[6991889] = new thumbnail(6991889,'171553','Bottoms Up','Bottoms-Up_thumb.gif',130, 81,32,'photo_6991889.html');
												thumbnails[6991913] = new thumbnail(6991913,'161261','Rusting groin on Bembridge beach','RustyGroin_thumb.gif',130, 181,32,'photo_6991913.html');
												thumbnails[6991916] = new thumbnail(6991916,'171553','Red Breasted Merganser','Merganser_thumb.gif',130, 87,32,'photo_6991916.html');
												thumbnails[6991759] = new thumbnail(6991759,'160754','Autumn colour beginning to show','Autumn_thumb.gif',130, 87,32,'photo_6991759.html');
												thumbnails[6991926] = new thumbnail(6991926,'161263','Girl on steps ','Text-Girl_thumb.gif',130, 159,32,'photo_6991926.html');
												thumbnails[6991932] = new thumbnail(6991932,'160753','Skeeto','Skeeto_thumb.gif',130, 174,32,'photo_6991932.html');
												thumbnails[6991748] = new thumbnail(6991748,'161261','Rudder section of Arctic','Arctic_thumb.gif',130, 195,32,'photo_6991748.html');
												thumbnails[7122765] = new thumbnail(7122765,'385291','Cold frames and glasshouses','Glasshouses_thumb.gif',130, 87,32,'photo_7122765.html');
												thumbnails[7122767] = new thumbnail(7122767,'385291','Cedar of Lebanon','Summer_parkland_thumb.gif',130, 87,32,'photo_7122767.html');
												thumbnails[6991863] = new thumbnail(6991863,'161261','Golden Cap on the Jurassic Coast','Jurassic-Coast_thumb.gif',130, 106,32,'photo_6991863.html');
												thumbnails[6991791] = new thumbnail(6991791,'161261','Black skies over East Head','Blacker-Skies_thumb.gif',130, 132,32,'photo_6991791.html');
												thumbnails[5509233] = new thumbnail(5509233,'311959','Scholes Church','Scholes-Church_thumb.jpg',130, 87,32,'photo_5509233.html');
												thumbnails[5035773] = new thumbnail(5035773,'385297','Nant Gwylit Waterfall','IMG_2158_thumb.jpg',130, 195,32,'photo_5035773.html');
												thumbnails[5035777] = new thumbnail(5035777,'385297','Garreg Ddu Pump House and Reservoir','IMG_2194_thumb.jpg',130, 87,32,'photo_5035777.html');
												thumbnails[5035782] = new thumbnail(5035782,'285213','Garreg Ddu Farmhouse','IMG_2215_thumb.jpg',130, 87,32,'photo_5035782.html');
												thumbnails[5035794] = new thumbnail(5035794,'385297','Craig Goch Dam and Reservoir','IMG_2254_thumb.jpg',130, 83,32,'photo_5035794.html');
												thumbnails[5035800] = new thumbnail(5035800,'285213','Cynghordy Viaduct','Mid-Wales---Day-2-005_thumb.jpg',130, 83,32,'photo_5035800.html');
												thumbnails[5035923] = new thumbnail(5035923,'285213','\"Little Room\" behind Soar y Mynydd Chapel','Mid-Wales---Day-2-119_thumb.jpg',130, 85,32,'photo_5035923.html');
												thumbnails[5197001] = new thumbnail(5197001,'232184','Derelict house in evening sunshine','IMG_1703_thumb.jpg',130, 87,32,'photo_5197001.html');
												thumbnails[5039267] = new thumbnail(5039267,'232184','Cinnabar moth caterpillar on ragwort','IMG_0514_thumb.jpg',130, 195,32,'photo_5039267.html');
												thumbnails[5974351] = new thumbnail(5974351,'232184','You called me?','IMG_8979_A623DF0E-24E8-5EC4-4FDD2DBE24A11322_thumb.jpg',130, 195,32,'photo_5974351.html');
												thumbnails[5974348] = new thumbnail(5974348,'232184','Calves playing peek-a-boo','COW-AND-CALVES_thumb.jpg',130, 87,32,'photo_5974348.html');
												thumbnails[5974352] = new thumbnail(5974352,'232184','Where is Everybody?','WHERE-IS-EVERYBODY-2_A625BB71-24E8-5EC4-4F10CF35DA36BD2F_thumb.jpg',130, 86,32,'photo_5974352.html');
												thumbnails[3408554] = new thumbnail(3408554,'160754','Frosted Orchard','TIM-AND-CAROLINE\'S-WEDDING-_thumb.jpg',130, 87,32,'photo_3408554.html');
												thumbnails[3408557] = new thumbnail(3408557,'232184','Frosted Cart','Frosted-Cart_thumb.jpg',130, 194,32,'photo_3408557.html');
												thumbnails[3408558] = new thumbnail(3408558,'160754','Early morning frost','Frosted-Tree_thumb.jpg',130, 195,32,'photo_3408558.html');
												thumbnails[3408613] = new thumbnail(3408613,'160752','Caroline leaving her reception','Caroline-through-the-Arch_thumb.jpg',130, 183,32,'photo_3408613.html');
												thumbnails[3103209] = new thumbnail(3103209,'160754','Beech Trees at Broadway Tower','IMG_4743_thumb.gif',130, 87,32,'photo_3103209.html');
												thumbnails[3103100] = new thumbnail(3103100,'171553','All  in a Row','IMG_4257_thumb.gif',130, 188,32,'photo_3103100.html');
												thumbnails[3412426] = new thumbnail(3412426,'171552','Tess Posing','Tess2_thumb.gif',130, 195,32,'photo_3412426.html');
												thumbnails[2548220] = new thumbnail(2548220,'160753','Montana','Cowdray-Polo-28-07-08-070_thumb.gif',130, 87,32,'photo_2548220.html');
												thumbnails[2548276] = new thumbnail(2548276,'160753','Which Way?','PushMePullMe_thumb.gif',130, 97,32,'photo_2548276.html');
												thumbnails[2519726] = new thumbnail(2519726,'171552','Head study of DA Steady Vegas owned by Chrissie Mayhew of Wye Oak Quarter Horses','Vegas1_thumb.gif',130, 130,32,'photo_2519726.html');
												thumbnails[2523244] = new thumbnail(2523244,'161263','\"Jack Sparrow\"','JackSparrow_thumb.gif',130, 177,32,'photo_2523244.html');
												thumbnails[3153184] = new thumbnail(3153184,'232184','On the crest of a wave','HAYLING-SURFER_thumb.jpg',130, 173,32,'photo_3153184.html');
												thumbnails[2519738] = new thumbnail(2519738,'161261','Sand Dunes and Stormy Skies','Dunes2_thumb.gif',130, 87,32,'photo_2519738.html');
												thumbnails[2519740] = new thumbnail(2519740,'232184','It\'s Behind you','FunTime1_thumb.gif',130, 98,32,'photo_2519740.html');
												thumbnails[2519742] = new thumbnail(2519742,'232184','Clear morning on South Downs','SouthDowns1_thumb.gif',130, 87,32,'photo_2519742.html');
												thumbnails[2519783] = new thumbnail(2519783,'171552','Biggles','HeadStudy_thumb.gif',130, 98,32,'photo_2519783.html');
												thumbnails[2728694] = new thumbnail(2728694,'171553','Baker\'s Dozen','BakersDozen1_thumb.gif',130, 83,32,'photo_2728694.html');
												thumbnails[2728704] = new thumbnail(2728704,'160754','Spring morning','FairOakTrack_thumb.gif',130, 87,32,'photo_2728704.html');
												thumbnails[2731759] = new thumbnail(2731759,'232184','Snow Capped Tulips','SnowCappedTulips1_thumb.gif',130, 89,32,'photo_2731759.html');
												thumbnails[3146901] = new thumbnail(3146901,'160755','Red Boat on Selsey Beach','Beached_thumb.jpg',130, 87,32,'photo_3146901.html');
												thumbnails[3146904] = new thumbnail(3146904,'160755','Peeling Paint','BoatAndPots_thumb.jpg',130, 87,32,'photo_3146904.html');
												thumbnails[3146907] = new thumbnail(3146907,'160755','High and Dry','HighAndDry_thumb.jpg',130, 101,32,'photo_3146907.html');
												thumbnails[3146910] = new thumbnail(3146910,'160755','Old Boat','PeelingPaintjpg_thumb.jpg',130, 87,32,'photo_3146910.html');
												thumbnails[3146912] = new thumbnail(3146912,'160755','Red Sails at Dawn','RedSailsjpg_thumb.jpg',130, 195,32,'photo_3146912.html');
												thumbnails[3202468] = new thumbnail(3202468,'161696','The Spinnaker Tower','Spinaker-Detail_thumb.gif',130, 87,32,'photo_3202468.html');
												thumbnails[3202565] = new thumbnail(3202565,'232184','Low tide at Bognor','IMG_50861_thumb.gif',130, 83,32,'photo_3202565.html');
												thumbnails[3412367] = new thumbnail(3412367,'160752','Mr and Mrs Brown','HappyCouple_thumb.gif',130, 201,32,'photo_3412367.html');
												thumbnails[3412370] = new thumbnail(3412370,'160752','Sealed with a Kiss','AKiss_thumb.gif',130, 178,32,'photo_3412370.html');
												thumbnails[3412375] = new thumbnail(3412375,'160752','Butterfly and Orchid Bouquet','Bouquet_thumb.gif',130, 92,32,'photo_3412375.html');
												thumbnails[3815153] = new thumbnail(3815153,'171553','Swan in evening sunlight','IMG_5886_thumb.jpg',130, 87,32,'photo_3815153.html');
												thumbnails[3815228] = new thumbnail(3815228,'160754','Looking towards the South Downs','IMG_7606_thumb.jpg',130, 87,32,'photo_3815228.html');
												thumbnails[3815418] = new thumbnail(3815418,'232184','Window reflections','BOGNOR-FLATS_thumb.jpg',130, 94,32,'photo_3815418.html');
												thumbnails[3817027] = new thumbnail(3817027,'232181','Trotton Church','TROTTON-CHURCH_thumb.jpg',130, 195,32,'photo_3817027.html');
												thumbnails[4410940] = new thumbnail(4410940,'160752','','ANTHONY--JENNY-204_thumb.gif',130, 87,32,'photo_4410940.html');
												thumbnails[4410942] = new thumbnail(4410942,'160752','','ANTHONY--JENNY-216_thumb.gif',130, 87,32,'photo_4410942.html');
												thumbnails[4410943] = new thumbnail(4410943,'160752','','HELEN--ANDY-25-JAN-08-088_thumb.gif',130, 173,32,'photo_4410943.html');
												thumbnails[4410946] = new thumbnail(4410946,'160752','','IMG_9272_thumb.gif',130, 195,32,'photo_4410946.html');
												thumbnails[4410947] = new thumbnail(4410947,'160752','','IMG_9387_thumb.gif',130, 87,32,'photo_4410947.html');
												thumbnails[4410949] = new thumbnail(4410949,'160752','','IMG_9462_thumb.gif',130, 195,32,'photo_4410949.html');
												thumbnails[4410951] = new thumbnail(4410951,'160752','','IMG_9477_thumb.gif',130, 87,32,'photo_4410951.html');
												thumbnails[4410977] = new thumbnail(4410977,'160752','','IMG_9696_thumb.gif',130, 195,32,'photo_4410977.html');
												thumbnails[4410987] = new thumbnail(4410987,'160752','','Kristie-and-Neil-128_thumb.gif',130, 129,32,'photo_4410987.html');
												thumbnails[4411000] = new thumbnail(4411000,'160752','','P7280334_thumb.gif',130, 98,32,'photo_4411000.html');
												thumbnails[4411031] = new thumbnail(4411031,'160752','','IMG_0100_thumb.gif',130, 186,32,'photo_4411031.html');
												thumbnails[4411033] = new thumbnail(4411033,'160752','','IMG_0103_thumb.gif',130, 186,32,'photo_4411033.html');
												thumbnails[4411035] = new thumbnail(4411035,'160752','','IMG_0129_thumb.gif',130, 186,32,'photo_4411035.html');
												thumbnails[4447576] = new thumbnail(4447576,'232184','Lonely Popy','IMG_0530_thumb.gif',130, 183,32,'photo_4447576.html');
												thumbnails[4447581] = new thumbnail(4447581,'232184','Seeing Red in the Mist','IMG_6503_thumb.gif',130, 165,32,'photo_4447581.html');
												thumbnails[4447598] = new thumbnail(4447598,'232184','Through a Monastery Window','IMG_8071_thumb.gif',130, 97,32,'photo_4447598.html');
												thumbnails[4447599] = new thumbnail(4447599,'232184','Boat Propeller','IMG_8215_thumb.gif',130, 87,32,'photo_4447599.html');
												thumbnails[4447600] = new thumbnail(4447600,'232184','Lifeguard Tower on Almerida Beach','IMG_8419_thumb.gif',130, 84,32,'photo_4447600.html');
												thumbnails[4447609] = new thumbnail(4447609,'232184','Old and New','IMG_8684_thumb.gif',130, 191,32,'photo_4447609.html');
												thumbnails[4447611] = new thumbnail(4447611,'232184','Time for a new paintbrush?','IMG_8719_thumb.gif',130, 189,32,'photo_4447611.html');
												thumbnails[4447624] = new thumbnail(4447624,'232184','Rock formation on Cwm Tydu Beach','IMG_8965_thumb.gif',130, 87,32,'photo_4447624.html');
												thumbnails[4447630] = new thumbnail(4447630,'232184','Me and My Dolly','IMG_9664_thumb.gif',130, 182,32,'photo_4447630.html');
												thumbnails[4447635] = new thumbnail(4447635,'232184','Aren\'t I Cute','P6210010_thumb.gif',130, 173,32,'photo_4447635.html');
												thumbnails[5589217] = new thumbnail(5589217,'232184','Hillfoot Cottage','IMG_2215_28918DE0-1D09-001F-991E616EF4E4A2CC_thumb.jpg',130, 87,32,'photo_5589217.html');
												thumbnails[5589224] = new thumbnail(5589224,'232184','Crashing Waves','After-the-Storm_thumb.jpg',130, 92,32,'photo_5589224.html');
												thumbnails[6991746] = new thumbnail(6991746,'160753','Andalusian Stallion Languetto','Andalusian-Stallion_thumb.gif',130, 184,32,'photo_6991746.html');
												thumbnails[6991771] = new thumbnail(6991771,'161261','Low tide at Bembridge','Bembridge_thumb.gif',130, 77,32,'photo_6991771.html');
												thumbnails[6991872] = new thumbnail(6991872,'160753','Over the tyre jump','Over-the-tyres_thumb.gif',130, 148,32,'photo_6991872.html');
												thumbnails[6991882] = new thumbnail(6991882,'161696','Three men and a machine','Three-men-and-a-machine_thumb.gif',130, 83,32,'photo_6991882.html');
												thumbnails[7122761] = new thumbnail(7122761,'385291','Fallen beech leaves','Beeches_thumb.gif',130, 87,32,'photo_7122761.html');
												thumbnails[7592980] = new thumbnail(7592980,'160751','','IMG_0680_red_tulip_2_thumb.jpg',130, 92,32,'photo_7592980.html');
												thumbnails[7592983] = new thumbnail(7592983,'160751','Dandelion','Dandelion_thumb.jpg',130, 129,32,'photo_7592983.html');
												thumbnails[7592999] = new thumbnail(7592999,'160751','Daffodil trumpet','IMG_0658_thumb.JPG',130, 87,32,'photo_7592999.html');
												thumbnails[7593076] = new thumbnail(7593076,'385291','','WEST_DEAN_307_thumb.jpg',130, 87,32,'photo_7593076.html');
												thumbnails[7593082] = new thumbnail(7593082,'385291','In the Walled Garden','036_Walled_Garden_thumb.jpg',130, 87,32,'photo_7593082.html');
												thumbnails[7593155] = new thumbnail(7593155,'385291','Masses of colour','IMG_4380_Herbaceous_Border_2_thumb.jpg',130, 87,32,'photo_7593155.html');
												thumbnails[7593221] = new thumbnail(7593221,'171553','Blue tit in peanut feeder','IMG_0737_tit_in_a_ring_thumb.jpg',130, 91,32,'photo_7593221.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[285213] = new gallery(285213,'5035923','Autumn in Mid Wales - November 2009','gallery',[5035782,5035800,5035923],0, 0, '', 'gallery_285213.html',0,0);
				  					galleries[422632] = new gallery(422632,'7840088,7840079,7840064,7840056,7840052,7840036,7840011,7839996,7839778,7839462,7839417,7839409,7839394,7839248,7839219,7830965,7830958,7830942,7824740','Dartmoor May 2011','gallery',[7840079,7840088,7839763,7839778,7839996,7840011,7840036,7840046,7840052,7840056,7840064,7830942,7830958,7830965,7830977,7839219,7839248,7839394,7839409,7839417,7839443,7839462,7824740,7830938],0, 0, '', 'gallery_422632.html',0,0);
				  					galleries[311959] = new gallery(311959,'5509233','In the Cold Midwinter','gallery',[5509233],0, 0, '', 'gallery_311959.html',0,0);
				  					galleries[385297] = new gallery(385297,'7094479,7094358,7094276,7094025,5035773','Welsh Water','gallery',[7094025,7094276,7094358,7094479,5035773,5035777,5035794],0, 0, '', 'gallery_385297.html',0,0);
				  					galleries[385291] = new gallery(385291,'7593155,7593149,7593106,7593105,7460468,7122766,7122650','West Dean Gardens','gallery',[7593149,7593092,7593105,7593106,7460468,7460472,7460473,7122650,7122766,7122778,7122765,7122767,7122761,7593076,7593082,7593155],0, 0, '', 'gallery_385291.html',0,0);
				  					galleries[161261] = new gallery(161261,'6991863,6991771','Sea and Sand','gallery',[6991913,6991748,6991863,6991791,2519738,6991771],0, 0, '', 'gallery_161261.html',0,0);
				  					galleries[160754] = new gallery(160754,'7094226','Landscapes','gallery',[7460422,7094226,7094080,6991550,6991903,6991818,6991759,3408554,3408558,3103209,2728704,3815228],0, 0, '', 'gallery_160754.html',0,0);
				  					galleries[160755] = new gallery(160755,'3146907','Messing about in Boats','gallery',[3146901,3146904,3146907,3146910,3146912],0, 0, '', 'gallery_160755.html',0,0);
				  					galleries[160753] = new gallery(160753,'6991932','Equestrian','gallery',[6991932,2548220,2548276,6991746,6991872],0, 0, '', 'gallery_160753.html',0,0);
				  					galleries[160751] = new gallery(160751,'7593070,7593063,7593058,7593053,7593048,7593033,7593027,7593025,7593021,7593012,7592983,7460426','Flowers','gallery',[7592989,7593048,7593053,7593058,7593063,7593070,7593033,7593003,7593012,7593021,7593025,7593027,7460426,7592980,7592983,7592999],0, 0, '', 'gallery_160751.html',0,0);
				  					galleries[160752] = new gallery(160752,'4411035,4410977,4410949,4410947','Weddings','gallery',[3408613,3412367,3412370,3412375,4410940,4410942,4410943,4410946,4410947,4410949,4410951,4410977,4410987,4411000,4411031,4411033,4411035],0, 0, '', 'gallery_160752.html',0,0);
				  					galleries[171552] = new gallery(171552,'6991824,6991816,3412426,2519783,2519726','Animals','gallery',[6991816,6991824,3412426,2519726,2519783],0, 0, '', 'gallery_171552.html',0,0);
				  					galleries[161263] = new gallery(161263,'6991926,2523244','People','gallery',[6991926,2523244],0, 0, '', 'gallery_161263.html',0,0);
				  					galleries[171553] = new gallery(171553,'7593221,6991916,6991781','Birds','gallery',[6991770,6991781,6991826,6991889,6991916,3103100,2728694,3815153,7593221],0, 0, '', 'gallery_171553.html',0,0);
				  					galleries[232181] = new gallery(232181,'7460459','Architecture','gallery',[7460459,3817027],0, 0, '', 'gallery_232181.html',0,0);
				  					galleries[161696] = new gallery(161696,'7122795,6991882','Bits & Pieces','gallery',[7122795,3202468,6991882],0, 0, '', 'gallery_161696.html',0,0);
				  					galleries[232184] = new gallery(232184,'5974352,5974351,5589224,5589217,4447611,2519742','Competition Winners','gallery',[7593212,5197001,5039267,5974351,5974348,5974352,3408557,3153184,2519740,2519742,2731759,3202565,3815418,4447576,4447581,4447598,4447599,4447600,4447609,4447611,4447624,4447630,4447635,5589217,5589224],0, 0, '', 'gallery_232184.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7840088,7840079,7840064,7840052,7840046,7840036,7840011,7839996,7839763,7839462,7839443,7839394,7839219,7830977,7830965,7830958,7593212,7593106,7593105,7593092,7593082,7593076,7593070,7593048,7593033,7593027,7593025,7593021,7593003,7592999,7592989,7592980,7460473,7460472,7460459,7460422,7122795,7122778,7122767,7122766,7122765,7122650,7094479,7094358,7094276,7094226,7094080,7094025,6991932,6991916,6991913,6991903,6991889,6991882,6991826,6991824,6991818,6991816,6991791,6991770,6991759,6991748,6991746,5974352,5589224,5509233,5039267,5035800,5035794,5035777,5035773,4447581,4447576,4411035,4410977,4410949,4410947,3408558,3408557,3202565,3153184,3146907,3146901,3103209,2548276,2548220,2523244,2519742,2519740';
imageSets[2] = '7840088,7840079,7840064,7840056,7840052,7840036,7840011,7839996,7839778,7839462,7839417,7839409,7839394,7839248,7839219,7830965,7830958,7830942,7824740,7593221,7593155,7593149,7593106,7593105,7593070,7593063,7593058,7593053,7593048,7593033,7593027,7593025,7593021,7593012,7592983,7460468,7460459,7460426,7122795,7122766,7122650,7094479,7094358,7094276,7094226,7094025,6991932,6991926,6991916,6991882,6991863,6991781,6991771,5974352,5974351,5589224,5589217,5035923,5035773,4447611,4411035,4410977,4410949,4410947,3146907,2523244,2519742';
imageSets[3] = '7839219,7830965,7830938,7593070,7592989,6991872,4447576,4410977';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/judilion/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/judilion/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/judilion/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/judilion/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/judilion/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/judilion/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'judi lion photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#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,array,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();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<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);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

