window.thumbnails = new Object();
												thumbnails[3047264] = new thumbnail(3047264,'','Dorset seahells','042_dorset_23_thumb.jpg',130, 130,32,'#');
												thumbnails[3047265] = new thumbnail(3047265,'','Castlerigg detail','IMG_49553_thumb.jpg',130, 130,32,'#');
												thumbnails[3047266] = new thumbnail(3047266,'','Lacock Abbey stone detail','Lacock009_stonedetailright_sRGB2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047267] = new thumbnail(3047267,'','Rydal cave','LakeDistrict0001_rydalcave2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047275] = new thumbnail(3047275,'','New Forest sunset','004_newforest2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047276] = new thumbnail(3047276,'','Elgol cliffs','009_skye2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047277] = new thumbnail(3047277,'','Elgol pebble detail','010_skye2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047278] = new thumbnail(3047278,'','Glenbrittle beach','023_skye2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047285] = new thumbnail(3047285,'','Ravenscar','007_miniature2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047286] = new thumbnail(3047286,'','Solitary shell','4_wales2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047287] = new thumbnail(3047287,'','Contrasts','5_wales2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047288] = new thumbnail(3047288,'','Three Cliffs Bay','6_wales2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047291] = new thumbnail(3047291,'','Yosemite','003_miniature2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047292] = new thumbnail(3047292,'','Aysgarth falls','011_miniature2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047293] = new thumbnail(3047293,'','Filey','015_miniature2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047294] = new thumbnail(3047294,'','Filey','016_miniature2_thumb.jpg',130, 130,32,'#');
												thumbnails[3047295] = new thumbnail(3047295,'','Fern spring','002_miniature2_thumb.jpg',130, 130,32,'#');
												thumbnails[3483275] = new thumbnail(3483275,'','Abstract colour','15bluesunset_sRGB2_thumb.jpg',130, 130,32,'#');
												thumbnails[4724715] = new thumbnail(4724715,'','Scarves 1','030small1_thumb.jpg',130, 130,32,'#');
												thumbnails[4724719] = new thumbnail(4724719,'','Abstract blues','_MG_11151_thumb.jpg',130, 130,32,'#');
												thumbnails[4724716] = new thumbnail(4724716,'','Scarves 2','031small1_thumb.jpg',130, 130,32,'#');
												thumbnails[4724717] = new thumbnail(4724717,'','Scarves 3','032small1_thumb.jpg',130, 130,32,'#');
												thumbnails[4724718] = new thumbnail(4724718,'','Lichens','184small1_thumb.jpg',130, 130,32,'#');
												thumbnails[2373051] = new thumbnail(2373051,'186668','Yosemite meadow 1','001_flora_bluepurple_yosemite_thumb.jpg',130, 130,32,'photo_2373051.html');
												thumbnails[2373053] = new thumbnail(2373053,'186668','Clematis ','003_flora_bluepurple_clematis_thumb.jpg',130, 130,32,'photo_2373053.html');
												thumbnails[2373062] = new thumbnail(2373062,'186668','Wildflower meadows, Yosemite','001_flora_enmasse_yosemite_softfocus_thumb.jpg',130, 130,32,'photo_2373062.html');
												thumbnails[2373114] = new thumbnail(2373114,'186668','Wild vs cultivated poppies','013_flora_enmasse_oxfordshirepoppies_Papaver somniferum&Papaver rhoeas_softfocus_thumb.jpg',130, 127,32,'photo_2373114.html');
												thumbnails[2373116] = new thumbnail(2373116,'186668','Meadows, Yosemite','002_flora_enmasse_yosemite_softfocus_thumb.jpg',130, 130,32,'photo_2373116.html');
												thumbnails[2373118] = new thumbnail(2373118,'186668','Wildflowers, Yosemite','003_flora_enmasse_yosemite_softfocus_thumb.jpg',130, 130,32,'photo_2373118.html');
												thumbnails[2373124] = new thumbnail(2373124,'186668','Yosemite wildflowers','004_flora_enmasse_yosemite_softfocus_thumb.jpg',130, 130,32,'photo_2373124.html');
												thumbnails[2373131] = new thumbnail(2373131,'186668','Yosemite meadows','005_flora_enmasse_yosemite_thumb.jpg',130, 130,32,'photo_2373131.html');
												thumbnails[2373133] = new thumbnail(2373133,'186668','Yosemite meadows','006_flora_enmasse_yosemite_softfocus_thumb.jpg',130, 130,32,'photo_2373133.html');
												thumbnails[2373184] = new thumbnail(2373184,'186667','Poppy fields','008_flora_enmasse_oxfordshirepoppies_Papaver somniferum_thumb.jpg',130, 130,32,'photo_2373184.html');
												thumbnails[2373187] = new thumbnail(2373187,'186667','Poppy fields ','009_flora_enmasse_oxfordshirepoppies_Papaver somniferum_thumb.jpg',130, 130,32,'photo_2373187.html');
												thumbnails[2373189] = new thumbnail(2373189,'186667','Poppy fields ','012_flora_enmasse_oxfordshirepoppies_Papaver somniferum_thumb.jpg',130, 130,32,'photo_2373189.html');
												thumbnails[2373321] = new thumbnail(2373321,'186667','Grasses','001_flora_green_monolake_thumb.jpg',130, 130,32,'photo_2373321.html');
												thumbnails[2373322] = new thumbnail(2373322,'186667','Grasses','002_flora_green_monolake_thumb.jpg',130, 130,32,'photo_2373322.html');
												thumbnails[2373325] = new thumbnail(2373325,'186667','Celebration of pink','001_flora_pink_thumb.jpg',130, 130,32,'photo_2373325.html');
												thumbnails[2373326] = new thumbnail(2373326,'186667','Petals','006_flora_pink_thumb.jpg',130, 130,32,'photo_2373326.html');
												thumbnails[2373328] = new thumbnail(2373328,'186668','Abstract of petals','009_flora_pink_thumb.jpg',130, 130,32,'photo_2373328.html');
												thumbnails[2373329] = new thumbnail(2373329,'186668','Raindrops, rose petals','011_flora_pink_rosepetal_thumb.jpg',130, 130,32,'photo_2373329.html');
												thumbnails[2373330] = new thumbnail(2373330,'186667','Lychnis','012_flora_pink_thumb.jpg',130, 130,32,'photo_2373330.html');
												thumbnails[2373377] = new thumbnail(2373377,'186667','Tulips','001_flora_red_tulip_thumb.jpg',130, 130,32,'photo_2373377.html');
												thumbnails[2373378] = new thumbnail(2373378,'186667','Arum lily','002_flora_red_arumlily_thumb.jpg',130, 130,32,'photo_2373378.html');
												thumbnails[2373379] = new thumbnail(2373379,'186667','Arum lily petals','003_flora_red_arumlily_detail_thumb.jpg',130, 130,32,'photo_2373379.html');
												thumbnails[2373381] = new thumbnail(2373381,'186667','Arum lily','004_flora_red_arumlily_thumb.jpg',130, 130,32,'photo_2373381.html');
												thumbnails[2373383] = new thumbnail(2373383,'186667','Arum lily','005_flora_red_arumlily_thumb.jpg',130, 130,32,'photo_2373383.html');
												thumbnails[2373385] = new thumbnail(2373385,'186667','Abstract, arum lily','006_flora_red_arumlily_detail_thumb.jpg',130, 130,32,'photo_2373385.html');
												thumbnails[2373386] = new thumbnail(2373386,'186667','Celosia','007_flora_red_celosia_thumb.jpg',130, 130,32,'photo_2373386.html');
												thumbnails[2373387] = new thumbnail(2373387,'186667','Celosia','008_flora_red_celosia_thumb.jpg',130, 130,32,'photo_2373387.html');
												thumbnails[2373632] = new thumbnail(2373632,'186667','Summer daisies','001_flora_yellow&orange_daisy_thumb.jpg',130, 130,32,'photo_2373632.html');
												thumbnails[2373637] = new thumbnail(2373637,'186667','Summer daisies','002_flora_yellow&orange_daisy_thumb.jpg',130, 130,32,'photo_2373637.html');
												thumbnails[2373641] = new thumbnail(2373641,'186667','Potentilla','005_flora_yellow&orange_thumb.jpg',130, 130,32,'photo_2373641.html');
												thumbnails[2374300] = new thumbnail(2374300,'186667','Geranium, Johnson\'s Blue','004_flora_bluepurple_geraniumJohnsonsBlue_thumb.jpg',130, 130,32,'photo_2374300.html');
												thumbnails[2374301] = new thumbnail(2374301,'186667','Geranium, Johnson\'s Blue','005_flora_bluepurple_geraniumJohnsonsBlue_thumb.jpg',130, 130,32,'photo_2374301.html');
												thumbnails[2374588] = new thumbnail(2374588,'186667','Ramsons, Hackfall Wood','022_yorkshire_thumb.jpg',130, 130,32,'photo_2374588.html');
												thumbnails[2374591] = new thumbnail(2374591,'186667','Ramsons, Hackfall Wood','024_yorkshire_thumb.jpg',130, 130,32,'photo_2374591.html');
												thumbnails[2410219] = new thumbnail(2410219,'186668','Sunflower','006_flora_yellow&orange_sunflower_thumb.jpg',130, 130,32,'photo_2410219.html');
												thumbnails[2410220] = new thumbnail(2410220,'186668','Sunflower','007_flora_yellow&orange_sunflower_thumb.jpg',130, 130,32,'photo_2410220.html');
												thumbnails[2414201] = new thumbnail(2414201,'186668','Summer daisy','002_flora_white_daisy_thumb.jpg',130, 130,32,'photo_2414201.html');
												thumbnails[2414202] = new thumbnail(2414202,'186667','Flower palette','007_flora_bluepurple_thumb.jpg',130, 130,32,'photo_2414202.html');
												thumbnails[2414203] = new thumbnail(2414203,'186667','Birdsfoot tree foil','009_flora_yellow&orange_birdsfoottreefoil_thumb.jpg',130, 130,32,'photo_2414203.html');
												thumbnails[2414204] = new thumbnail(2414204,'186667','Birdsfoot tree foil','011_flora_yellow&orange_birdsfoottreefoil_thumb.jpg',130, 130,32,'photo_2414204.html');
												thumbnails[2414205] = new thumbnail(2414205,'186667','Summer abstract','015_flora_yellow&orange_thumb.jpg',130, 135,32,'photo_2414205.html');
												thumbnails[2414263] = new thumbnail(2414263,'186667','Daisy','003_flora_white_daisy_thumb.jpg',130, 130,32,'photo_2414263.html');
												thumbnails[2414264] = new thumbnail(2414264,'186667','Daisies','004_flora_white_daisy_thumb.jpg',130, 130,32,'photo_2414264.html');
												thumbnails[2414265] = new thumbnail(2414265,'186667','Birdsfoot tree foil','012_flora_yellow&orange_birdsfoottreefoil_thumb.jpg',130, 130,32,'photo_2414265.html');
												thumbnails[2414267] = new thumbnail(2414267,'186667','Birdsfoot tree foil','013_flora_yellow&orange_birdsfoottreefoil_thumb.jpg',130, 130,32,'photo_2414267.html');
												thumbnails[2414289] = new thumbnail(2414289,'186667','Birdsfoot tree foil','014_flora_yellow&orange_birdsfoottreefoil_thumb.jpg',130, 130,32,'photo_2414289.html');
												thumbnails[2590720] = new thumbnail(2590720,'186667','Carnation','016_flora_pink_carnation_thumb.jpg',130, 130,32,'photo_2590720.html');
												thumbnails[2590721] = new thumbnail(2590721,'186667','Carnation','018_flora_pink_carnation_thumb.jpg',130, 130,32,'photo_2590721.html');
												thumbnails[2592838] = new thumbnail(2592838,'186667','Carnation','019_flora_pink_carnation_thumb.jpg',130, 130,32,'photo_2592838.html');
												thumbnails[2592847] = new thumbnail(2592847,'186667','Carnation','022_flora_pink_carnation_thumb.jpg',130, 130,32,'photo_2592847.html');
												thumbnails[2657068] = new thumbnail(2657068,'186667','Agapanthus','009_flora_bluepurple_agapanthus_thumb.jpg',130, 130,32,'photo_2657068.html');
												thumbnails[2657069] = new thumbnail(2657069,'186667','Alstroemeria','024_flora_pink_alstroemeria_thumb.jpg',130, 130,32,'photo_2657069.html');
												thumbnails[2657398] = new thumbnail(2657398,'186667','Hortensia','016_flora_yellow&orange_hortensia_thumb.jpg',130, 130,32,'photo_2657398.html');
												thumbnails[2657399] = new thumbnail(2657399,'186667','Hortensia','017_flora_yellow&orange_hortensia_thumb.jpg',130, 130,32,'photo_2657399.html');
												thumbnails[2374354] = new thumbnail(2374354,'186632','Afterglow, Hengistbury Head','001_dorset_thumb.jpg',130, 130,32,'photo_2374354.html');
												thumbnails[2374485] = new thumbnail(2374485,'186637','New Forest','002_newforest_thumb.jpg',130, 130,32,'photo_2374485.html');
												thumbnails[2374610] = new thumbnail(2374610,'186639','Afterglow, Whitestone Cliff','033_yorkshire copy_thumb.jpg',130, 130,32,'photo_2374610.html');
												thumbnails[2374622] = new thumbnail(2374622,'186638','Olmsted Point, Yosemite','26olmstedpoint_sRGB2_thumb.jpg',130, 130,32,'photo_2374622.html');
												thumbnails[2375467] = new thumbnail(2375467,'186635','River abstract','6_wales_thumb.jpg',130, 130,32,'photo_2375467.html');
												thumbnails[2376636] = new thumbnail(2376636,'186631','Early light, Bla Bheinn','001_skye2_thumb.jpg',130, 130,32,'photo_2376636.html');
												thumbnails[2987210] = new thumbnail(2987210,'191799','Evening light, Pu\'u Poa beach','003_thumb.jpg',130, 130,32,'photo_2987210.html');
												thumbnails[3046553] = new thumbnail(3046553,'187468','Oxfordshire autumn','001_thumb.jpg',130, 130,32,'photo_3046553.html');
												thumbnails[3046554] = new thumbnail(3046554,'187468','Standing tall','002_thumb.jpg',130, 130,32,'photo_3046554.html');
												thumbnails[5338985] = new thumbnail(5338985,'187468','Radcliffe Camera and All Souls College','_MG_1903_thumb.jpg',130, 130,32,'photo_5338985.html');
												thumbnails[2373759] = new thumbnail(2373759,'186635','Abstract falls','011_miniature_thumb.jpg',130, 130,32,'photo_2373759.html');
												thumbnails[2373764] = new thumbnail(2373764,'186639','Rock ice, Howstean Gorge','012_yorkshire_thumb.jpg',130, 130,32,'photo_2373764.html');
												thumbnails[2374363] = new thumbnail(2374363,'186632','Storm clouds over Hengistbury Head','005_dorset_thumb.jpg',130, 130,32,'photo_2374363.html');
												thumbnails[2374473] = new thumbnail(2374473,'186641','Dawn, Blea Tarn','IMG_5194_thumb.jpg',130, 130,32,'photo_2374473.html');
												thumbnails[2374527] = new thumbnail(2374527,'186637','Golden light, New Forest','New forest_other_003_thumb.jpg',130, 130,32,'photo_2374527.html');
												thumbnails[2374542] = new thumbnail(2374542,'186631','Buachaille Etive Mor','027_skye_thumb.jpg',130, 130,32,'photo_2374542.html');
												thumbnails[2374615] = new thumbnail(2374615,'186638','Sunset on Half Dome','14halfdome_sRGB_thumb.jpg',130, 130,32,'photo_2374615.html');
												thumbnails[2987211] = new thumbnail(2987211,'191799','Afterglow, Kauai','011_thumb.jpg',130, 130,32,'photo_2987211.html');
												thumbnails[5338968] = new thumbnail(5338968,'187468','Christchurch Meadows','_MG_1803_thumb.jpg',130, 130,32,'photo_5338968.html');
												thumbnails[2373754] = new thumbnail(2373754,'186635','Shells, Worms Head','5_wales_thumb.jpg',130, 130,32,'photo_2373754.html');
												thumbnails[2374362] = new thumbnail(2374362,'186632','Bats Head, Dorset','009_dorset_thumb.jpg',130, 130,32,'photo_2374362.html');
												thumbnails[2374466] = new thumbnail(2374466,'186641','Afterglow, Castlerigg','IMG_5004 (1)_thumb.jpg',130, 130,32,'photo_2374466.html');
												thumbnails[2374491] = new thumbnail(2374491,'186637','Sunset, New Forest','003_newforest_thumb.jpg',130, 130,32,'photo_2374491.html');
												thumbnails[2374541] = new thumbnail(2374541,'186631','Old man of Storr','014_skye_thumb.jpg',130, 130,32,'photo_2374541.html');
												thumbnails[2374608] = new thumbnail(2374608,'186639','Whitestone Cliff, Yorkshire','029_yorkshire_thumb.jpg',130, 130,32,'photo_2374608.html');
												thumbnails[2374624] = new thumbnail(2374624,'186638','Washburn Point, Yosemite','33washburn_sRGB_thumb.jpg',130, 130,32,'photo_2374624.html');
												thumbnails[2987212] = new thumbnail(2987212,'191799','Stormy dawn, Kilauea lighthouse','049_thumb.jpg',130, 130,32,'photo_2987212.html');
												thumbnails[5338967] = new thumbnail(5338967,'187468','Magdalen chapel from Christchurch Meadows','_MG_1799__thumb.jpg',130, 130,32,'photo_5338967.html');
												thumbnails[2373650] = new thumbnail(2373650,'186632','Seashells, Bournemouth','042_dorset_2_thumb.jpg',130, 130,32,'photo_2373650.html');
												thumbnails[2373753] = new thumbnail(2373753,'186635','Shell, Worms Head','4_wales_thumb.jpg',130, 130,32,'photo_2373753.html');
												thumbnails[2373767] = new thumbnail(2373767,'186638','Fern Spring, Yosemite','002_miniature_thumb.jpg',130, 130,32,'photo_2373767.html');
												thumbnails[2374403] = new thumbnail(2374403,'186631','Elgol, Skye','005_skye_thumb.jpg',130, 130,32,'photo_2374403.html');
												thumbnails[2374468] = new thumbnail(2374468,'186641','Dawn, Skelwith Bridge','IMG_5016_thumb.jpg',130, 130,32,'photo_2374468.html');
												thumbnails[2374493] = new thumbnail(2374493,'186637','Frosty morning, New Forest','007_newforest_2_thumb.jpg',130, 130,32,'photo_2374493.html');
												thumbnails[2374565] = new thumbnail(2374565,'186639','Ruined folly, Hackfall Woods','020_yorkshire_2_thumb.jpg',130, 130,32,'photo_2374565.html');
												thumbnails[2987782] = new thumbnail(2987782,'191799','Sunset, Kauai','005_thumb.jpg',130, 130,32,'photo_2987782.html');
												thumbnails[2987841] = new thumbnail(2987841,'191799','Gathering storm, Kauai','065_thumb.jpg',130, 130,32,'photo_2987841.html');
												thumbnails[5338979] = new thumbnail(5338979,'187468','Radcliffe Camera','_MG_1879_thumb.jpg',130, 130,32,'photo_5338979.html');
												thumbnails[2373655] = new thumbnail(2373655,'186635','Support, Lacock Abbey','Lacock013_tree_sRGB_2_thumb.jpg',130, 130,32,'photo_2373655.html');
												thumbnails[2373765] = new thumbnail(2373765,'186639','Mossy rocks, Aysgarth','018_yorkshire_thumb.jpg',130, 130,32,'photo_2373765.html');
												thumbnails[2374366] = new thumbnail(2374366,'186632','Bats Head, Dorset','011_dorset_thumb.jpg',130, 130,32,'photo_2374366.html');
												thumbnails[2374406] = new thumbnail(2374406,'186631','Kilt Rock, Skye','016_skye_thumb.jpg',130, 129,32,'photo_2374406.html');
												thumbnails[2374455] = new thumbnail(2374455,'186641','Castlerigg Circle','IMG_4989_thumb.jpg',130, 130,32,'photo_2374455.html');
												thumbnails[2374497] = new thumbnail(2374497,'186637','Dawn, Bratley View','008_newforest_thumb.jpg',130, 130,32,'photo_2374497.html');
												thumbnails[2376638] = new thumbnail(2376638,'186638','Sunset, Washburn Point','34washburn_sRGB_thumb.jpg',130, 130,32,'photo_2376638.html');
												thumbnails[2987783] = new thumbnail(2987783,'191799','Dawn, Pu\'u Poa beach','006_thumb.jpg',130, 130,32,'photo_2987783.html');
												thumbnails[5338969] = new thumbnail(5338969,'187468','Christchurch Meadows','_MG_1805_thumb.jpg',130, 130,32,'photo_5338969.html');
												thumbnails[2373653] = new thumbnail(2373653,'186635','Stonework detail, Lacock Abbey','Lacock009_stonedetailright_sRGB_thumb.jpg',130, 130,32,'photo_2373653.html');
												thumbnails[2373656] = new thumbnail(2373656,'186641','Drystone wall, Lake District','IMG_4955_thumb.jpg',130, 130,32,'photo_2373656.html');
												thumbnails[2373837] = new thumbnail(2373837,'186637','Sunset grass','004_newforest_thumb.jpg',130, 130,32,'photo_2373837.html');
												thumbnails[2374061] = new thumbnail(2374061,'186638','Olmsted Point, Yosemite','24olmstedpoint_sRGB_thumb.jpg',130, 130,32,'photo_2374061.html');
												thumbnails[2374358] = new thumbnail(2374358,'186632','Storm clouds, Hengistbury Head','004_dorset_thumb.jpg',130, 130,32,'photo_2374358.html');
												thumbnails[2374528] = new thumbnail(2374528,'186631','Buachaille Etive Mor','_MG_2858_thumb.jpg',130, 130,32,'photo_2374528.html');
												thumbnails[2374604] = new thumbnail(2374604,'186639','Summer evening, Whitestone Cliff','028_yorkshire_thumb.jpg',130, 130,32,'photo_2374604.html');
												thumbnails[2987784] = new thumbnail(2987784,'191799','Dramatic skies, Kauai','025_thumb.jpg',130, 130,32,'photo_2987784.html');
												thumbnails[5338970] = new thumbnail(5338970,'187468','Christchurch College and Merton Chapel','_MG_1812_thumb.jpg',130, 130,32,'photo_5338970.html');
												thumbnails[2373820] = new thumbnail(2373820,'186638','Fern Spring, Yosemite','005_miniature_thumb.jpg',130, 130,32,'photo_2373820.html');
												thumbnails[2374371] = new thumbnail(2374371,'186632','Hengistbury Head, Dorset','016_dorset_thumb.jpg',130, 130,32,'photo_2374371.html');
												thumbnails[2374452] = new thumbnail(2374452,'186635','Sunset, Penclawdd','2_wales_thumb.jpg',130, 130,32,'photo_2374452.html');
												thumbnails[2374471] = new thumbnail(2374471,'186641','Sunset, Castlerigg','IMG_5133_thumb.jpg',130, 130,32,'photo_2374471.html');
												thumbnails[2374483] = new thumbnail(2374483,'186637','New Forest','001_newforest_thumb.jpg',130, 130,32,'photo_2374483.html');
												thumbnails[2374530] = new thumbnail(2374530,'186631','Old man of Storr, Skye','003_skye_thumb.jpg',130, 130,32,'photo_2374530.html');
												thumbnails[2374564] = new thumbnail(2374564,'186639','Mallyan Spout','019_yorkshire_thumb.jpg',130, 130,32,'photo_2374564.html');
												thumbnails[2987785] = new thumbnail(2987785,'191799','Na Pali vista','060_thumb.jpg',130, 130,32,'photo_2987785.html');
												thumbnails[5338971] = new thumbnail(5338971,'187468','Christchurch College','_MG_1815_thumb.jpg',130, 130,32,'photo_5338971.html');
												thumbnails[2373824] = new thumbnail(2373824,'186638','Fern Spring, Yosemite','19fernspring_sRGB_thumb.jpg',130, 130,32,'photo_2373824.html');
												thumbnails[2374379] = new thumbnail(2374379,'186632','Dawn, Durdle Door','022_dorset_thumb.jpg',130, 130,32,'photo_2374379.html');
												thumbnails[2374405] = new thumbnail(2374405,'186631','Sunset, Elgol','013_skye_thumb.jpg',130, 130,32,'photo_2374405.html');
												thumbnails[2374453] = new thumbnail(2374453,'186635','Sunset, Rhossilli','3_wales_thumb.jpg',130, 130,32,'photo_2374453.html');
												thumbnails[2374469] = new thumbnail(2374469,'186641','Dawn, Blea Tarn','IMG_5088_thumb.jpg',130, 130,32,'photo_2374469.html');
												thumbnails[2374498] = new thumbnail(2374498,'186637','Dawn, New Forest','012_newforest_thumb.jpg',130, 130,32,'photo_2374498.html');
												thumbnails[2374560] = new thumbnail(2374560,'186639','Fountains Abbey','016_yorkshire1_thumb.jpg',130, 130,32,'photo_2374560.html');
												thumbnails[2987810] = new thumbnail(2987810,'191799','Last rays, Kauai','004_thumb.jpg',130, 130,32,'photo_2987810.html');
												thumbnails[5338975] = new thumbnail(5338975,'187468','Merton Street, Oxford','_MG_1819__thumb.jpg',130, 130,32,'photo_5338975.html');
												thumbnails[2373709] = new thumbnail(2373709,'186641','Reflections, Rydal Cave','LakeDistrict0001_rydalcave_thumb.jpg',130, 130,32,'photo_2373709.html');
												thumbnails[2373714] = new thumbnail(2373714,'186631','Pebble, Elgol','010_skye_thumb.jpg',130, 130,32,'photo_2373714.html');
												thumbnails[2373819] = new thumbnail(2373819,'186638','Erratics, Olmsted Point, Yosemite','003_miniature_thumb.jpg',130, 130,32,'photo_2373819.html');
												thumbnails[2374368] = new thumbnail(2374368,'186632','Bats Head, Dorset','014_dorset_thumb.jpg',130, 130,32,'photo_2374368.html');
												thumbnails[2374506] = new thumbnail(2374506,'186637','Inclosure, New Forest','014_newforest1_thumb.jpg',130, 130,32,'photo_2374506.html');
												thumbnails[2374559] = new thumbnail(2374559,'186639','Whitestone Cliff, Yorkshire','013_yorkshire_thumb.jpg',130, 130,32,'photo_2374559.html');
												thumbnails[2987811] = new thumbnail(2987811,'191799','Evening light, Ke\'e beach','0401_thumb.jpg',130, 130,32,'photo_2987811.html');
												thumbnails[5338976] = new thumbnail(5338976,'187468','Radcliffe Camera pre-dawn','_MG_1824_thumb.jpg',130, 130,32,'photo_5338976.html');
												thumbnails[2373895] = new thumbnail(2373895,'186631','Sand twists','023_skye_thumb.jpg',130, 130,32,'photo_2373895.html');
												thumbnails[2373897] = new thumbnail(2373897,'186639','Natural rust','015_miniature_thumb.jpg',130, 130,32,'photo_2373897.html');
												thumbnails[2374356] = new thumbnail(2374356,'186632','Hengistbury Head storm clouds','003_dorset_thumb.jpg',130, 130,32,'photo_2374356.html');
												thumbnails[2374504] = new thumbnail(2374504,'186637','Frosty morning, New Forest','013_newforest_thumb.jpg',130, 130,32,'photo_2374504.html');
												thumbnails[2376637] = new thumbnail(2376637,'186638','Sunset, Washburn Point','32washburn_sRGB_thumb.jpg',130, 130,32,'photo_2376637.html');
												thumbnails[2987837] = new thumbnail(2987837,'191799','Hawaiian dawn','008_thumb.jpg',130, 130,32,'photo_2987837.html');
												thumbnails[3022492] = new thumbnail(3022492,'186641','Castlerigg with Blencathra','019_lakes_thumb.jpg',130, 130,32,'photo_3022492.html');
												thumbnails[4254709] = new thumbnail(4254709,'268709','Kefalonian sunset','_MG_1048__thumb.jpg',130, 130,32,'photo_4254709.html');
												thumbnails[4254716] = new thumbnail(4254716,'268709','Greek simplicity','_MG_1134__thumb.jpg',130, 130,32,'photo_4254716.html');
												thumbnails[4254722] = new thumbnail(4254722,'268709','Fiskardo night scene','_MG_1241_thumb.jpg',130, 130,32,'photo_4254722.html');
												thumbnails[4660581] = new thumbnail(4660581,'268755','Leh prayer flags','079_thumb.jpg',130, 130,32,'photo_4660581.html');
												thumbnails[5338978] = new thumbnail(5338978,'187468','Detail of Radcliffe Camera and All Souls College','_MG_1876_thumb.jpg',130, 130,32,'photo_5338978.html');
												thumbnails[7783945] = new thumbnail(7783945,'420517','Street garden 1','_MG_1982_crop_thumb.jpg',130, 130,32,'photo_7783945.html');
												thumbnails[7784324] = new thumbnail(7784324,'420545','Autumn colours at Christmas','DSC00048_thumb.jpg',130, 130,32,'photo_7784324.html');
												thumbnails[2373893] = new thumbnail(2373893,'186631','Stone lacework','009_skye_thumb.jpg',130, 130,32,'photo_2373893.html');
												thumbnails[2374216] = new thumbnail(2374216,'186639','Cliff grass','007_miniature_thumb.jpg',130, 130,32,'photo_2374216.html');
												thumbnails[2374370] = new thumbnail(2374370,'186632','Bats Head, Dorset','015_dorset_thumb.jpg',130, 130,32,'photo_2374370.html');
												thumbnails[2374512] = new thumbnail(2374512,'186637','New Forest','020_newforest_thumb.jpg',130, 130,32,'photo_2374512.html');
												thumbnails[2987838] = new thumbnail(2987838,'191799','Last light','026_thumb.jpg',130, 130,32,'photo_2987838.html');
												thumbnails[3022491] = new thumbnail(3022491,'186641','Castlerigg at dawn','018_lakes_thumb.jpg',130, 130,32,'photo_3022491.html');
												thumbnails[4662577] = new thumbnail(4662577,'186635','Troy Town Maze, St Agnes','_MG_1735_thumb.jpg',130, 130,32,'photo_4662577.html');
												thumbnails[5338986] = new thumbnail(5338986,'187468','Guarding statues, Oxford','_MG_1920_thumb.jpg',130, 130,32,'photo_5338986.html');
												thumbnails[2373898] = new thumbnail(2373898,'186639','Stone rainbow','016_miniature_thumb.jpg',130, 130,32,'photo_2373898.html');
												thumbnails[2374376] = new thumbnail(2374376,'186632','Hengistbury Head, Dorset','019_dorset_thumb.jpg',130, 130,32,'photo_2374376.html');
												thumbnails[2374500] = new thumbnail(2374500,'186637','Dawn, Bratley View','010_newforest2_thumb.jpg',130, 130,32,'photo_2374500.html');
												thumbnails[2987839] = new thumbnail(2987839,'191799','Sweeping skies','054_thumb.jpg',130, 130,32,'photo_2987839.html');
												thumbnails[4662578] = new thumbnail(4662578,'186635','Last light, St Agnes','_MG_1743__thumb.jpg',130, 130,32,'photo_4662578.html');
												thumbnails[5338987] = new thumbnail(5338987,'187468','Merton College from Christchurch Meadows','_MG_1937_thumb.jpg',130, 130,32,'photo_5338987.html');
												thumbnails[2374524] = new thumbnail(2374524,'186637','New Forest','017_newforest1_thumb.jpg',130, 130,32,'photo_2374524.html');
												thumbnails[2374547] = new thumbnail(2374547,'186639','May Beck, Yorkshire','010_yorkshire_thumb.jpg',130, 130,32,'photo_2374547.html');
												thumbnails[2987840] = new thumbnail(2987840,'191799','Storms at sunset','061_thumb.jpg',130, 130,32,'photo_2987840.html');
												thumbnails[5338977] = new thumbnail(5338977,'187468','First light on the Radcliffe Camera','_MG_1854___thumb.jpg',130, 130,32,'photo_5338977.html');
												thumbnails[2374377] = new thumbnail(2374377,'186632','Afterglow, Hengistbury Head','020_dorset_thumb.jpg',130, 130,32,'photo_2374377.html');
												thumbnails[2374544] = new thumbnail(2374544,'186639','Swaledale','002_yorkshire_thumb.jpg',130, 130,32,'photo_2374544.html');
												thumbnails[2988957] = new thumbnail(2988957,'191799','Final glimpse','067_thumb.jpg',130, 130,32,'photo_2988957.html');
												thumbnails[3176036] = new thumbnail(3176036,'186637','New Forest dawn','022_newforest_thumb.jpg',130, 130,32,'photo_3176036.html');
												thumbnails[5338984] = new thumbnail(5338984,'187468','Oxford\'s dreaming spires project onto the Radcliffe Camera','_MG_1881_thumb.jpg',130, 130,32,'photo_5338984.html');
												thumbnails[2374388] = new thumbnail(2374388,'186632','Sunset, Southbourne','025_dorset_thumb.jpg',130, 130,32,'photo_2374388.html');
												thumbnails[2989015] = new thumbnail(2989015,'191799','Highlights over Hanalei','036_thumb.jpg',130, 129,32,'photo_2989015.html');
												thumbnails[3035207] = new thumbnail(3035207,'186668','Tulip','005_flora_white_tulip_thumb.jpg',130, 130,32,'photo_3035207.html');
												thumbnails[3176037] = new thumbnail(3176037,'186637','Early morning, New Forest','025_newforest_thumb.jpg',130, 130,32,'photo_3176037.html');
												thumbnails[2374373] = new thumbnail(2374373,'186632','Hengistbury Head, Dorset','018_dorset_thumb.jpg',130, 130,32,'photo_2374373.html');
												thumbnails[2988907] = new thumbnail(2988907,'191799','Na Pali from Ke\'e','039_thumb.jpg',130, 129,32,'photo_2988907.html');
												thumbnails[3035208] = new thumbnail(3035208,'186668','Tulip pair','006_flora_white_tulip_thumb.jpg',130, 130,32,'photo_3035208.html');
												thumbnails[2374390] = new thumbnail(2374390,'186632','Last light, Southbourne','026_dorset_thumb.jpg',130, 130,32,'photo_2374390.html');
												thumbnails[2989016] = new thumbnail(2989016,'191799','Sweeping rain','055_thumb.jpg',130, 130,32,'photo_2989016.html');
												thumbnails[3035209] = new thumbnail(3035209,'186668','Soft colour','007_flora_white_tulip_thumb.jpg',130, 130,32,'photo_3035209.html');
												thumbnails[2374387] = new thumbnail(2374387,'186632','Sunset, Southbourne','024_dorset_thumb.jpg',130, 130,32,'photo_2374387.html');
												thumbnails[2988908] = new thumbnail(2988908,'191799','Na Pali sunset','063_thumb.jpg',130, 130,32,'photo_2988908.html');
												thumbnails[3035210] = new thumbnail(3035210,'186668','Stark contrast','008_flora_white_tulip_thumb.jpg',130, 130,32,'photo_3035210.html');
												thumbnails[2374391] = new thumbnail(2374391,'186632','Sunset, Southbourne','031_dorset_thumb.jpg',130, 130,32,'photo_2374391.html');
												thumbnails[2988954] = new thumbnail(2988954,'191799','Kilauea dawn','050_thumb.jpg',130, 130,32,'photo_2988954.html');
												thumbnails[3038478] = new thumbnail(3038478,'186668','Hydrangea detail','010_flora_bluepurple_hydrangea_thumb.jpg',130, 130,32,'photo_3038478.html');
												thumbnails[2373647] = new thumbnail(2373647,'186632','Groyne, Bournemouth','034_dorset_thumb.jpg',130, 130,32,'photo_2373647.html');
												thumbnails[2988956] = new thumbnail(2988956,'191799','Kauai storms','066_thumb.jpg',130, 130,32,'photo_2988956.html');
												thumbnails[3038479] = new thumbnail(3038479,'186668','Hydrangea','011_flora_bluepurple_hydrangea_thumb.jpg',130, 130,32,'photo_3038479.html');
												thumbnails[4254710] = new thumbnail(4254710,'268709','Waiting','_MG_1072_thumb.jpg',130, 130,32,'photo_4254710.html');
												thumbnails[4254717] = new thumbnail(4254717,'268709','Assos doorways','_MG_1163__thumb.jpg',130, 130,32,'photo_4254717.html');
												thumbnails[4254723] = new thumbnail(4254723,'268709','Myrtos beach','_MG_1254__thumb.jpg',130, 130,32,'photo_4254723.html');
												thumbnails[4660603] = new thumbnail(4660603,'268755','Leh palace','353small_thumb.jpg',130, 130,32,'photo_4660603.html');
												thumbnails[7783950] = new thumbnail(7783950,'420517','Village font','_MG_1996_thumb.jpg',130, 130,32,'photo_7783950.html');
												thumbnails[7784328] = new thumbnail(7784328,'420545','Street scene 1','DSC00074_thumb.jpg',130, 130,32,'photo_7784328.html');
												thumbnails[2989014] = new thumbnail(2989014,'191799','Afterglow','035_thumb.jpg',130, 130,32,'photo_2989014.html');
												thumbnails[3038480] = new thumbnail(3038480,'186668','Purple','012_flora_bluepurple_hydrangea_thumb.jpg',130, 130,32,'photo_3038480.html');
												thumbnails[3126874] = new thumbnail(3126874,'186632','Dune grass, Southbourne','044_dorset_thumb.jpg',130, 130,32,'photo_3126874.html');
												thumbnails[2988955] = new thumbnail(2988955,'191799','Na Pali glow','064_thumb.jpg',130, 130,32,'photo_2988955.html');
												thumbnails[3046559] = new thumbnail(3046559,'186668','Orchid detail','009_flora_white_orchid_thumb.jpg',130, 130,32,'photo_3046559.html');
												thumbnails[3126875] = new thumbnail(3126875,'186632','Southbourne','045_dorset_thumb.jpg',130, 130,32,'photo_3126875.html');
												thumbnails[3046560] = new thumbnail(3046560,'186668','Spirals','011_flora_white_orchid_thumb.jpg',130, 130,32,'photo_3046560.html');
												thumbnails[3126876] = new thumbnail(3126876,'186632','Southbourne beach','047_dorset_thumb.jpg',130, 130,32,'photo_3126876.html');
												thumbnails[3046562] = new thumbnail(3046562,'186668','Cascade of flowers','014_flora_white_orchid_thumb.jpg',130, 130,32,'photo_3046562.html');
												thumbnails[3126877] = new thumbnail(3126877,'186632','Looking to Bournemouth','048_dorset_thumb.jpg',130, 130,32,'photo_3126877.html');
												thumbnails[3429986] = new thumbnail(3429986,'191799','Jurassic trees','068_thumb.jpg',130, 130,32,'photo_3429986.html');
												thumbnails[3046561] = new thumbnail(3046561,'186668','Colour and form','012_flora_white_orchid_thumb.jpg',130, 130,32,'photo_3046561.html');
												thumbnails[3126878] = new thumbnail(3126878,'186632','Southbourne','049_dorset_thumb.jpg',130, 130,32,'photo_3126878.html');
												thumbnails[3429989] = new thumbnail(3429989,'191799','Moreton Bay Fig detail','071_thumb.jpg',130, 130,32,'photo_3429989.html');
												thumbnails[3126923] = new thumbnail(3126923,'186632','Southbourne, Dorset','046_dorset_thumb.jpg',130, 130,32,'photo_3126923.html');
												thumbnails[3429987] = new thumbnail(3429987,'191799','Doing the twist','069_thumb.jpg',130, 130,32,'photo_3429987.html');
												thumbnails[3617493] = new thumbnail(3617493,'186668','Magnolias en masse','Devon_001_thumb.jpg',130, 130,32,'photo_3617493.html');
												thumbnails[3126924] = new thumbnail(3126924,'186632','Fading light, Soutbourne','050_dorset_thumb.jpg',130, 130,32,'photo_3126924.html');
												thumbnails[3429988] = new thumbnail(3429988,'191799','Abstract palms','070_thumb.jpg',130, 130,32,'photo_3429988.html');
												thumbnails[3617491] = new thumbnail(3617491,'186668','Magnolia detail','025_flora_pink_magnolia_thumb.jpg',130, 130,32,'photo_3617491.html');
												thumbnails[3154760] = new thumbnail(3154760,'186632','Last light, Kimmeridge','051_dorset_thumb.jpg',130, 129,32,'photo_3154760.html');
												thumbnails[3429990] = new thumbnail(3429990,'191799','Secret Beach','072_thumb.jpg',130, 130,32,'photo_3429990.html');
												thumbnails[3617492] = new thumbnail(3617492,'186668','Magnolia abstract','026_flora_pink_magnolia_thumb.jpg',130, 130,32,'photo_3617492.html');
												thumbnails[3154761] = new thumbnail(3154761,'186632','Kimmeridge & Clavell Tower','052_dorset_thumb.jpg',130, 130,32,'photo_3154761.html');
												thumbnails[3430010] = new thumbnail(3430010,'191799','Kalalau lookout','073_thumb.jpg',130, 130,32,'photo_3430010.html');
												thumbnails[3617494] = new thumbnail(3617494,'186668','Magnolia display','Devon_003_thumb.jpg',130, 129,32,'photo_3617494.html');
												thumbnails[3154762] = new thumbnail(3154762,'186632','Afterglow, Kimmeridge','053_dorset_thumb.jpg',130, 130,32,'photo_3154762.html');
												thumbnails[3430011] = new thumbnail(3430011,'191799','Classic palms','074_thumb.jpg',130, 130,32,'photo_3430011.html');
												thumbnails[3617595] = new thumbnail(3617595,'186668','Magnolia petals','027_flora_pink_magnolia_thumb.jpg',130, 130,32,'photo_3617595.html');
												thumbnails[4254711] = new thumbnail(4254711,'268709','Isolated Greece','_MG_1074_thumb.jpg',130, 130,32,'photo_4254711.html');
												thumbnails[4254718] = new thumbnail(4254718,'268709','Assos doorways 2','_MG_1169_thumb.jpg',130, 130,32,'photo_4254718.html');
												thumbnails[4660606] = new thumbnail(4660606,'268755','Himalayan afterglow','356small_thumb.jpg',130, 130,32,'photo_4660606.html');
												thumbnails[7783952] = new thumbnail(7783952,'420517','Street garden 2','_MG_1998__thumb.jpg',130, 130,32,'photo_7783952.html');
												thumbnails[7784327] = new thumbnail(7784327,'420545','Street scene 2','DSC00072_bw_thumb.jpg',130, 130,32,'photo_7784327.html');
												thumbnails[3335463] = new thumbnail(3335463,'186632','Clearing storm, Hengistbury','054_dorset_thumb.jpg',130, 130,32,'photo_3335463.html');
												thumbnails[3430012] = new thumbnail(3430012,'191799','Hanalei fields','075_thumb.jpg',130, 130,32,'photo_3430012.html');
												thumbnails[3617596] = new thumbnail(3617596,'186668','Magnolia','028_flora_pink_magnolia_thumb.jpg',130, 130,32,'photo_3617596.html');
												thumbnails[7784072] = new thumbnail(7784072,'268755','Evening light over Stok Kangri','_MG_2220_hipass_thumb.jpg',130, 130,32,'photo_7784072.html');
												thumbnails[3335464] = new thumbnail(3335464,'186632','Seascape drama','055_dorset_thumb.jpg',130, 130,32,'photo_3335464.html');
												thumbnails[3335465] = new thumbnail(3335465,'186632','Last light','056_dorset_thumb.jpg',130, 130,32,'photo_3335465.html');
												thumbnails[3335466] = new thumbnail(3335466,'186632','Afterglow, Hengistbury Head','057_dorset_thumb.jpg',130, 129,32,'photo_3335466.html');
												thumbnails[3335467] = new thumbnail(3335467,'186632','Hengistbury Head','059_dorset_thumb.jpg',130, 130,32,'photo_3335467.html');
												thumbnails[3342868] = new thumbnail(3342868,'186632','Stormy monochrome','060_dorset_thumb.jpg',130, 130,32,'photo_3342868.html');
												thumbnails[3342881] = new thumbnail(3342881,'186632','Hengistbury rocks','061_dorset_thumb.jpg',130, 130,32,'photo_3342881.html');
												thumbnails[3428712] = new thumbnail(3428712,'186632','Hengistbury Head, Dorset','062_dorset_thumb.jpg',130, 137,32,'photo_3428712.html');
												thumbnails[3428714] = new thumbnail(3428714,'186632','Hengistbury Head','064_dorset_thumb.jpg',130, 130,32,'photo_3428714.html');
												thumbnails[3428713] = new thumbnail(3428713,'186632','Hengistbury Head','063_dorset_thumb.jpg',130, 130,32,'photo_3428713.html');
												thumbnails[3428715] = new thumbnail(3428715,'186632','Hengistbury Head','065_dorset_thumb.jpg',130, 130,32,'photo_3428715.html');
												thumbnails[4254712] = new thumbnail(4254712,'268709','Olives in the rain','_MG_1085__thumb.jpg',130, 130,32,'photo_4254712.html');
												thumbnails[4254720] = new thumbnail(4254720,'268709','Last light on Kefalonia','_MG_1182_thumb.jpg',130, 130,32,'photo_4254720.html');
												thumbnails[4660450] = new thumbnail(4660450,'268755','Leh shopping 1','028small_thumb.jpg',130, 130,32,'photo_4660450.html');
												thumbnails[7783955] = new thumbnail(7783955,'420517','Street garden 3','_MG_2032_thumb.jpg',130, 130,32,'photo_7783955.html');
												thumbnails[7784332] = new thumbnail(7784332,'420545','Classic San Francisco','DSC00199_thumb.jpg',130, 129,32,'photo_7784332.html');
												thumbnails[4254713] = new thumbnail(4254713,'268709','Greek blues','_MG_1115_thumb.jpg',130, 130,32,'photo_4254713.html');
												thumbnails[4254721] = new thumbnail(4254721,'268709','A typical Greek scene','_MG_1213_thumb.jpg',130, 130,32,'photo_4254721.html');
												thumbnails[4660574] = new thumbnail(4660574,'268755','Leh market display','036small_thumb.jpg',130, 130,32,'photo_4660574.html');
												thumbnails[7783953] = new thumbnail(7783953,'420517','Rural Mallorca','_MG_2029_thumb.jpg',130, 130,32,'photo_7783953.html');
												thumbnails[7784331] = new thumbnail(7784331,'420545','California','DSC00193_thumb.jpg',130, 130,32,'photo_7784331.html');
												thumbnails[4660451] = new thumbnail(4660451,'268755','Scarves 1','030small_thumb.jpg',130, 130,32,'photo_4660451.html');
												thumbnails[7783954] = new thumbnail(7783954,'420517','Tree study','_MG_2031_thumb.jpg',130, 130,32,'photo_7783954.html');
												thumbnails[7784329] = new thumbnail(7784329,'420545','San Fran tram','DSC00150_thumb.jpg',130, 130,32,'photo_7784329.html');
												thumbnails[4660575] = new thumbnail(4660575,'268755','Scarves 2','038small_thumb.jpg',130, 130,32,'photo_4660575.html');
												thumbnails[7783946] = new thumbnail(7783946,'420517','Street detail 1','_MG_1988_thumb.jpg',130, 130,32,'photo_7783946.html');
												thumbnails[7784325] = new thumbnail(7784325,'420545','Cable care detail 1','DSC00058_thumb.jpg',130, 130,32,'photo_7784325.html');
												thumbnails[4660452] = new thumbnail(4660452,'268755','Scarves 3','031small_thumb.jpg',130, 130,32,'photo_4660452.html');
												thumbnails[7783949] = new thumbnail(7783949,'420517','Street detail 2','_MG_1994_thumb.jpg',130, 130,32,'photo_7783949.html');
												thumbnails[7784326] = new thumbnail(7784326,'420545','Cable car detail 2','DSC00059_thumb.jpg',130, 130,32,'photo_7784326.html');
												thumbnails[7784070] = new thumbnail(7784070,'268755','Prayer flags 1','_MG_2178_thumb.jpg',130, 130,32,'photo_7784070.html');
												thumbnails[7784071] = new thumbnail(7784071,'268755','Prayer flags 2','_MG_2217_thumb.jpg',130, 130,32,'photo_7784071.html');
												thumbnails[4660594] = new thumbnail(4660594,'268755','Prayer flags 3','197small_thumb.jpg',130, 130,32,'photo_4660594.html');
												thumbnails[4660602] = new thumbnail(4660602,'268755','Prayer flags 4','352small_thumb.jpg',130, 130,32,'photo_4660602.html');
												thumbnails[4660454] = new thumbnail(4660454,'268755','Leh shopping 2','034small_thumb.jpg',130, 134,32,'photo_4660454.html');
												thumbnails[7783951] = new thumbnail(7783951,'420517','Street detail 3','_MG_1997_thumb.jpg',130, 130,32,'photo_7783951.html');
												thumbnails[7784330] = new thumbnail(7784330,'420545','Cable car detail 3','DSC00160_thumb.jpg',130, 130,32,'photo_7784330.html');
												thumbnails[4660453] = new thumbnail(4660453,'268755','Scarves 3','032small_thumb.jpg',130, 130,32,'photo_4660453.html');
												thumbnails[7783947] = new thumbnail(7783947,'420517','Street detail 4','_MG_1989_thumb.jpg',130, 130,32,'photo_7783947.html');
												thumbnails[7784334] = new thumbnail(7784334,'420545','Cable cars at Christmas','DSC00140_crop_thumb.jpg',130, 130,32,'photo_7784334.html');
												thumbnails[4660576] = new thumbnail(4660576,'268755','Singing bowls','039small_thumb.jpg',130, 130,32,'photo_4660576.html');
												thumbnails[7783948] = new thumbnail(7783948,'420517','Street detail 5','_MG_1990_thumb.jpg',130, 130,32,'photo_7783948.html');
												thumbnails[7784082] = new thumbnail(7784082,'268755','Ladakh portrait 1','_MG_2398__thumb.jpg',130, 130,32,'photo_7784082.html');
												thumbnails[7784083] = new thumbnail(7784083,'268755','Ladakh portrait 2','_MG_2399_thumb.jpg',130, 130,32,'photo_7784083.html');
												thumbnails[7784085] = new thumbnail(7784085,'268755','Ladakh portrait 3','_MG_2400_thumb.jpg',130, 130,32,'photo_7784085.html');
												thumbnails[4660585] = new thumbnail(4660585,'268755','Ladakh portrait 4','150small_thumb.jpg',130, 130,32,'photo_4660585.html');
												thumbnails[7784091] = new thumbnail(7784091,'268755','Ladakh portrait 5','_MG_2483_hipass_thumb.jpg',130, 129,32,'photo_7784091.html');
												thumbnails[4660586] = new thumbnail(4660586,'268755','Ladakh portrait 6','156small_thumb.jpg',130, 130,32,'photo_4660586.html');
												thumbnails[4660605] = new thumbnail(4660605,'268755','Leh','355small_thumb.jpg',130, 130,32,'photo_4660605.html');
												thumbnails[4660604] = new thumbnail(4660604,'268755','Leh palace at last light','354small_thumb.jpg',130, 130,32,'photo_4660604.html');
												thumbnails[4660583] = new thumbnail(4660583,'268755','Leh sunset','081small_thumb.jpg',130, 130,32,'photo_4660583.html');
												thumbnails[4660577] = new thumbnail(4660577,'268755','Himalayan dawn','040small_thumb.jpg',130, 130,32,'photo_4660577.html');
												thumbnails[7784086] = new thumbnail(7784086,'268755','Fabric 1','_MG_2420_thumb.jpg',130, 130,32,'photo_7784086.html');
												thumbnails[7784087] = new thumbnail(7784087,'268755','Fabric 2','_MG_2426_thumb.jpg',130, 129,32,'photo_7784087.html');
												thumbnails[7784088] = new thumbnail(7784088,'268755','Fabric 3','_MG_2431_thumb.jpg',130, 130,32,'photo_7784088.html');
												thumbnails[7784089] = new thumbnail(7784089,'268755','Fabric 4','_MG_2434_thumb.jpg',130, 130,32,'photo_7784089.html');
												thumbnails[4660578] = new thumbnail(4660578,'268755','Shanti stupa 1','042small_thumb.jpg',130, 130,32,'photo_4660578.html');
												thumbnails[4660579] = new thumbnail(4660579,'268755','Stupa detail 1','044small_thumb.jpg',130, 130,32,'photo_4660579.html');
												thumbnails[4660580] = new thumbnail(4660580,'268755','Stupa detail 2','045small_thumb.jpg',130, 130,32,'photo_4660580.html');
												thumbnails[7784074] = new thumbnail(7784074,'268755','Stupa detail 3','_MG_2229_thumb.jpg',130, 130,32,'photo_7784074.html');
												thumbnails[7784077] = new thumbnail(7784077,'268755','Stupa detail 4','_MG_2235_thumb.jpg',130, 130,32,'photo_7784077.html');
												thumbnails[7784078] = new thumbnail(7784078,'268755','Stupa detail 5','_MG_2237__thumb.jpg',130, 130,32,'photo_7784078.html');
												thumbnails[7784075] = new thumbnail(7784075,'268755','Shanti stupa 2','_MG_2234_thumb.jpg',130, 129,32,'photo_7784075.html');
												thumbnails[7784073] = new thumbnail(7784073,'268755','Shanti stupa 3','_MG_2226_thumb.jpg',130, 130,32,'photo_7784073.html');
												thumbnails[4660584] = new thumbnail(4660584,'268755','Cleaning the monastery','106small_thumb.jpg',130, 130,32,'photo_4660584.html');
												thumbnails[7784090] = new thumbnail(7784090,'268755','Still life','_MG_2469_hipass_thumb.jpg',130, 130,32,'photo_7784090.html');
												thumbnails[4660587] = new thumbnail(4660587,'268755','Wachen sunset','166small_thumb.jpg',130, 130,32,'photo_4660587.html');
												thumbnails[7784079] = new thumbnail(7784079,'268755','Doorstep view','_MG_2261_thumb.jpg',130, 130,32,'photo_7784079.html');
												thumbnails[7784080] = new thumbnail(7784080,'268755','Himalayan storms','_MG_2361_thumb.jpg',130, 130,32,'photo_7784080.html');
												thumbnails[7784081] = new thumbnail(7784081,'268755','Sunset over the Sacred Mountain','_MG_2363_thumb.jpg',130, 130,32,'photo_7784081.html');
												thumbnails[4660588] = new thumbnail(4660588,'268755','Himalayan flowers 1','169small_thumb.jpg',130, 130,32,'photo_4660588.html');
												thumbnails[4660589] = new thumbnail(4660589,'268755','Himalayan flowers 2','170small_thumb.jpg',130, 130,32,'photo_4660589.html');
												thumbnails[4660590] = new thumbnail(4660590,'268755','Rockscape 1','181small_thumb.jpg',130, 130,32,'photo_4660590.html');
												thumbnails[4660592] = new thumbnail(4660592,'268755','Rockscape 2','183small_thumb.jpg',130, 130,32,'photo_4660592.html');
												thumbnails[4660593] = new thumbnail(4660593,'268755','Lichens','184small_thumb.jpg',130, 130,32,'photo_4660593.html');
												thumbnails[4660591] = new thumbnail(4660591,'268755','Rockscape 3','182small_thumb.jpg',130, 130,32,'photo_4660591.html');
												thumbnails[4660595] = new thumbnail(4660595,'268755','Himalayan snowfall','341small_thumb.jpg',130, 130,32,'photo_4660595.html');
												thumbnails[4660596] = new thumbnail(4660596,'268755','Lasirmu la','343small_thumb.jpg',130, 130,32,'photo_4660596.html');
												thumbnails[4660597] = new thumbnail(4660597,'268755','Ponies on the glacier 1','344small_thumb.jpg',130, 130,32,'photo_4660597.html');
												thumbnails[4660599] = new thumbnail(4660599,'268755','Ponies on the glacier 2','346small_thumb.jpg',130, 130,32,'photo_4660599.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[186641] = new gallery(186641,'3022491','Lake District','gallery',[2374473,2374466,2374468,2374455,2373656,2374471,2374469,2373709,3022492,3022491],0, 0, '', 'gallery_186641.html',0,0);
				  					galleries[186631] = new gallery(186631,'2373895','Scotland','gallery',[2376636,2374542,2374541,2374403,2374406,2374528,2374530,2374405,2373714,2373895,2373893],0, 0, '', 'gallery_186631.html',0,0);
				  					galleries[186639] = new gallery(186639,'2374610','Yorkshire','gallery',[2374610,2373764,2374608,2374565,2373765,2374604,2374564,2374560,2374559,2373897,2374216,2373898,2374547,2374544],0, 0, '', 'gallery_186639.html',0,0);
				  					galleries[186637] = new gallery(186637,'2374485','Hampshire','gallery',[2374485,2374527,2374491,2374493,2374497,2373837,2374483,2374498,2374506,2374504,2374512,2374500,2374524,3176036,3176037],0, 0, '', 'gallery_186637.html',0,0);
				  					galleries[186632] = new gallery(186632,'3126875','Dorset','gallery',[2374354,2374363,2374362,2373650,2374366,2374358,2374371,2374379,2374368,2374356,2374370,2374376,2374377,2374388,2374373,2374390,2374387,2374391,2373647,3126874,3126875,3126876,3126877,3126878,3126923,3126924,3154760,3154761,3154762,3335463,3335464,3335465,3335466,3335467,3342868,3342881,3428712,3428714,3428713,3428715],0, 0, '', 'gallery_186632.html',0,0);
				  					galleries[186638] = new gallery(186638,'2374622,2374061','Yosemite','gallery',[2374622,2374615,2374624,2373767,2376638,2374061,2373820,2373824,2373819,2376637],0, 0, '', 'gallery_186638.html',0,0);
				  					galleries[191799] = new gallery(191799,'2987838','Kauai','gallery',[2987210,2987211,2987212,2987782,2987841,2987783,2987784,2987785,2987810,2987811,2987837,2987838,2987839,2987840,2988957,2989015,2988907,2989016,2988908,2988954,2988956,2989014,2988955,3429986,3429989,3429987,3429988,3429990,3430010,3430011,3430012],0, 0, '', 'gallery_191799.html',0,0);
				  					galleries[186635] = new gallery(186635,'4662577,2373753','Other places','gallery',[2375467,2373759,2373754,2373753,2373655,2373653,2374452,2374453,4662577,4662578],0, 0, '', 'gallery_186635.html',0,0);
				  					galleries[186667] = new gallery(186667,'2374301','Flowers 1','gallery',[2373184,2373187,2373189,2373321,2373322,2373325,2373326,2373330,2373377,2373378,2373379,2373381,2373383,2373385,2373386,2373387,2373632,2373637,2373641,2374300,2374301,2374588,2374591,2414202,2414203,2414204,2414205,2414263,2414264,2414265,2414267,2414289,2590720,2590721,2592838,2592847,2657068,2657069,2657398,2657399],0, 0, '', 'gallery_186667.html',0,0);
				  					galleries[186668] = new gallery(186668,'3617595','Flowers 2','gallery',[2373051,2373053,2373062,2373114,2373116,2373118,2373124,2373131,2373133,2373328,2373329,2410219,2410220,2414201,3035207,3035208,3035209,3035210,3038478,3038479,3038480,3046559,3046560,3046562,3046561,3617493,3617491,3617492,3617494,3617595,3617596],0, 0, '', 'gallery_186668.html',0,0);
				  					galleries[268709] = new gallery(268709,'4254716','Kefalonia','gallery',[4254709,4254716,4254722,4254710,4254717,4254723,4254711,4254718,4254712,4254720,4254713,4254721],0, 0, '', 'gallery_268709.html',0,0);
				  					galleries[268755] = new gallery(268755,'7784081','Himalaya','gallery',[4660581,4660603,4660606,7784072,4660450,4660574,4660451,4660575,4660452,7784070,7784071,4660594,4660602,4660454,4660453,4660576,7784082,7784083,7784085,4660585,7784091,4660586,4660605,4660604,4660583,4660577,7784086,7784087,7784088,7784089,4660578,4660579,4660580,7784074,7784077,7784078,7784075,7784073,4660584,7784090,4660587,7784079,7784080,7784081,4660588,4660589,4660590,4660592,4660593,4660591,4660595,4660596,4660597,4660599],0, 0, '', 'gallery_268755.html',0,0);
				  					galleries[187468] = new gallery(187468,'5338985','Oxfordshire','gallery',[3046553,3046554,5338985,5338968,5338967,5338979,5338969,5338970,5338971,5338975,5338976,5338978,5338986,5338987,5338977,5338984],0, 0, '', 'gallery_187468.html',0,0);
				  					galleries[420517] = new gallery(420517,'7783955','Mallorca','gallery',[7783945,7783950,7783952,7783955,7783953,7783954,7783946,7783949,7783951,7783947,7783948],0, 0, '', 'gallery_420517.html',0,0);
				  					galleries[420545] = new gallery(420545,'7784334','San Francisco','gallery',[7784324,7784328,7784327,7784332,7784331,7784329,7784325,7784326,7784330,7784334],0, 0, '', 'gallery_420545.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '4660581';
imageSets[2] = '7784334,7784081,7783955,5338985,4724716,4662577,4254716,3617595,3126875,3022491,2987838,2374622,2374610,2374485,2374301,2374061,2373895,2373753';
imageSets[3] = '4254723,4254722,4254721,4254720,4254718,4254717,4254716,4254713,4254712,4254711,4254710,4254709';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/maryslingo/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/maryslingo/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 = 'Flower & Landscape Photography by Mary Slingo: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      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.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> &pound;' + (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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = 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 = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="maryslingo@doctors.org.uk">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="maryslingo@doctors.org.uk">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							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;
	}
}

			

