window.thumbnails = new Object();
												thumbnails[715170] = new thumbnail(715170,'55020','Flamborough Head Lighthouse','Flamborough-Head-Lighthouse_thumb.jpg',130, 184,1,'																			photo_715170.html');
												thumbnails[717079] = new thumbnail(717079,'55020','Water Stones','Water-Stones_thumb.jpg',130, 90,1,'																			photo_717079.html');
												thumbnails[719210] = new thumbnail(719210,'55020','Aysgarth Church','Asgarth-Church_thumb.jpg',130, 218,1,'																			photo_719210.html');
												thumbnails[721754] = new thumbnail(721754,'55207','Reflections on Fishermans Bastion','Reflections-on-Fishermans-B_thumb.jpg',130, 204,1,'																			photo_721754.html');
												thumbnails[721770] = new thumbnail(721770,'55208','Dried Up Old Fishing Boat','Dried-up-old-fishing-boat_thumb.jpg',130, 191,1,'																			photo_721770.html');
												thumbnails[722183] = new thumbnail(722183,'55207','Funicular Railway Car','Funicular-Railway-Car_thumb.jpg',130, 98,1,'																			photo_722183.html');
												thumbnails[722186] = new thumbnail(722186,'55207','Gateway','Gateway_thumb.jpg',130, 191,1,'																			photo_722186.html');
												thumbnails[723798] = new thumbnail(723798,'55020','Fisheye Tree','Fisheye-Tree_thumb.jpg',130, 83,1,'																			photo_723798.html');
												thumbnails[723800] = new thumbnail(723800,'55020','Golden Grain','Golden-Grain_thumb.jpg',130, 184,1,'																			photo_723800.html');
												thumbnails[723804] = new thumbnail(723804,'55020','Misty Windermere','Misty-Windermere_thumb.jpg',130, 95,1,'																			photo_723804.html');
												thumbnails[723806] = new thumbnail(723806,'55020','Morning Sky','Morning-Sky_thumb.jpg',130, 83,1,'																			photo_723806.html');
												thumbnails[725644] = new thumbnail(725644,'55208','Corfu Steps','Corfu-Steps_thumb.jpg',130, 178,1,'																			photo_725644.html');
												thumbnails[725650] = new thumbnail(725650,'55208','Greek Gateway','Greek-Gateway_thumb.jpg',130, 187,1,'																			photo_725650.html');
												thumbnails[725826] = new thumbnail(725826,'55209','Shadows','Shadows-BW_thumb.jpg',130, 193,1,'																			photo_725826.html');
												thumbnails[726388] = new thumbnail(726388,'55020','Windermere Sunset','Windermere-Sunset-2_thumb.jpg',130, 90,1,'																			photo_726388.html');
												thumbnails[726390] = new thumbnail(726390,'55020','Morning Mist','Early-Morning-Mist_thumb.jpg',130, 179,1,'																			photo_726390.html');
												thumbnails[727151] = new thumbnail(727151,'55208','Green Lamp Post','Green-Lamp-Post_thumb.jpg',130, 179,1,'																			photo_727151.html');
												thumbnails[727152] = new thumbnail(727152,'55208','Red','Red_thumb.jpg',130, 93,1,'																			photo_727152.html');
												thumbnails[727154] = new thumbnail(727154,'56002','Red & Blue','Red-and-Blue_thumb.jpg',130, 201,1,'																			photo_727154.html');
												thumbnails[727155] = new thumbnail(727155,'56002','Walkway','Walkway_thumb.jpg',130, 176,1,'																			photo_727155.html');
												thumbnails[733105] = new thumbnail(733105,'55209','Alfresco','Alfresco_thumb.jpg',130, 192,1,'																			photo_733105.html');
												thumbnails[733106] = new thumbnail(733106,'55020','Scarborough Sunrise','Scarborough-Sunrise_thumb.jpg',130, 92,1,'																			photo_733106.html');
												thumbnails[735467] = new thumbnail(735467,'55209','Stone Face','Stone-Face_thumb.jpg',130, 200,1,'																			photo_735467.html');
												thumbnails[735470] = new thumbnail(735470,'55208','Fishing','Fishing_thumb.jpg',130, 190,1,'																			photo_735470.html');
												thumbnails[740954] = new thumbnail(740954,'55208','Bright White','Bright-White_thumb.jpg',130, 90,1,'																			photo_740954.html');
												thumbnails[740956] = new thumbnail(740956,'55208','Red Building','Red-Building_thumb.jpg',130, 104,1,'																			photo_740956.html');
												thumbnails[740959] = new thumbnail(740959,'55208','Two Boats','Two-Boats_thumb.jpg',130, 87,1,'																			photo_740959.html');
												thumbnails[742131] = new thumbnail(742131,'55208','Left to Rot','Left-to-Rot_thumb.jpg',130, 86,1,'																			photo_742131.html');
												thumbnails[743264] = new thumbnail(743264,'55207','Entrance','Enterance_thumb.jpg',130, 177,1,'																			photo_743264.html');
												thumbnails[743270] = new thumbnail(743270,'55207','Matthias Church','Matthias-Church_thumb.jpg',130, 97,1,'																			photo_743270.html');
												thumbnails[786465] = new thumbnail(786465,'55208','Knot','Knot_thumb.jpg',130, 184,1,'																			photo_786465.html');
												thumbnails[787246] = new thumbnail(787246,'55207','Chain Bridge','Chain-Bridge_thumb.jpg',130, 184,1,'																			photo_787246.html');
												thumbnails[792803] = new thumbnail(792803,'55207','Between The Buildings','Between-The-Buildings_thumb.jpg',130, 111,1,'																			photo_792803.html');
												thumbnails[792819] = new thumbnail(792819,'55209','Light Arches','Light-Arches1_thumb.jpg',130, 97,1,'																			photo_792819.html');
												thumbnails[792823] = new thumbnail(792823,'55207','Soliders','Cafe-with-Soliders_thumb.jpg',130, 111,1,'																			photo_792823.html');
												thumbnails[793756] = new thumbnail(793756,'61707','All Dried Up','All-Dried-Up-2_thumb.jpg',130, 90,1,'																			photo_793756.html');
												thumbnails[793758] = new thumbnail(793758,'61707','Steel Bridge','Steel-Bridge_thumb.jpg',130, 204,1,'																			photo_793758.html');
												thumbnails[793950] = new thumbnail(793950,'55209','Cantilever','Cantilever1_thumb.jpg',130, 203,1,'																			photo_793950.html');
												thumbnails[793952] = new thumbnail(793952,'55020','Waterfall At Boot','Waterfall-at-Boot1_thumb.jpg',130, 176,1,'																			photo_793952.html');
												thumbnails[793953] = new thumbnail(793953,'61707','Deckchairs','Deckchairs_thumb.jpg',130, 97,1,'																			photo_793953.html');
												thumbnails[795857] = new thumbnail(795857,'55020','Aysgarth Waterfall','Aysgarth-Waterfall_thumb.jpg',130, 95,1,'																			photo_795857.html');
												thumbnails[795859] = new thumbnail(795859,'61707','Water Rush','Water-Rush_thumb.jpg',130, 185,1,'																			photo_795859.html');
												thumbnails[797151] = new thumbnail(797151,'56002','Spanish Steps','Spannish-Steps_thumb.jpg',130, 191,1,'																			photo_797151.html');
												thumbnails[797152] = new thumbnail(797152,'56002','Toallas','Toallas_thumb.jpg',130, 96,1,'																			photo_797152.html');
												thumbnails[797254] = new thumbnail(797254,'61707','Tall and Proud','Tall-and-Proud_thumb.jpg',130, 227,1,'																			photo_797254.html');
												thumbnails[880186] = new thumbnail(880186,'56002','Armadillo','Armadillo1_thumb.jpg',130, 85,1,'																			photo_880186.html');
												thumbnails[880187] = new thumbnail(880187,'55209','Armadillo Reflects','Armadillo Reflects_thumb.jpg',130, 86,1,'																			photo_880187.html');
												thumbnails[880231] = new thumbnail(880231,'61707','Red Bridge','Red Bridge1_thumb.jpg',130, 184,1,'																			photo_880231.html');
												thumbnails[881459] = new thumbnail(881459,'55209','Bandstand By The Sea','Band Stand by the Sea_thumb.jpg',130, 95,1,'																			photo_881459.html');
												thumbnails[881474] = new thumbnail(881474,'55209','Water and Arch','Water and Arch_thumb.jpg',130, 86,1,'																			photo_881474.html');
												thumbnails[881717] = new thumbnail(881717,'55208','Blue Window','Blue Window_thumb.jpg',130, 191,1,'																			photo_881717.html');
												thumbnails[893199] = new thumbnail(893199,'55208','Green Gates','Green Gateway_thumb.jpg',130, 203,1,'																			photo_893199.html');
												thumbnails[893351] = new thumbnail(893351,'55208','Pebble Beach','Pebble Beach_thumb.jpg',130, 200,1,'																			photo_893351.html');
												thumbnails[1064186] = new thumbnail(1064186,'290791','Wastwater','Wastwater1_thumb.jpg',130, 199,1,'																			photo_1064186.html');
												thumbnails[1067839] = new thumbnail(1067839,'290791','Old Stone Wall','Old-Stone-Wall_thumb.jpg',130, 201,1,'																			photo_1067839.html');
												thumbnails[1095274] = new thumbnail(1095274,'80701','','Red-Rose-2_thumb.jpg',130, 89,1,'																			photo_1095274.html');
												thumbnails[1097071] = new thumbnail(1097071,'55020','Field of Gold','Field-of-Gold_thumb.jpg',130, 89,1,'																			photo_1097071.html');
												thumbnails[1100786] = new thumbnail(1100786,'80701','','Abstract-Flower_thumb.jpg',130, 89,1,'																			photo_1100786.html');
												thumbnails[1100809] = new thumbnail(1100809,'80701','','Red-Flower-with-Yellow-Cent_thumb.jpg',130, 94,1,'																			photo_1100809.html');
												thumbnails[1100814] = new thumbnail(1100814,'80701','','Pink-Rose_thumb.jpg',130, 105,1,'																			photo_1100814.html');
												thumbnails[1101026] = new thumbnail(1101026,'80701','','Pink-Carnation_thumb.jpg',130, 108,1,'																			photo_1101026.html');
												thumbnails[1104632] = new thumbnail(1104632,'80701','','Pink-Rose-2_thumb.jpg',130, 86,1,'																			photo_1104632.html');
												thumbnails[1104635] = new thumbnail(1104635,'80701','','Pink-Yellow-Rose_thumb.jpg',130, 113,1,'																			photo_1104635.html');
												thumbnails[1104960] = new thumbnail(1104960,'55020','Boats Reflecting','Boats-Reflecting_thumb.jpg',130, 89,1,'																			photo_1104960.html');
												thumbnails[1104962] = new thumbnail(1104962,'290791','Wray Castle Boat House','Wray-Castle-Boat-House_thumb.jpg',130, 96,1,'																			photo_1104962.html');
												thumbnails[1305047] = new thumbnail(1305047,'92422','Lamp with Red Window','Lamp-with-Red-Window_thumb.jpg',130, 202,1,'																			photo_1305047.html');
												thumbnails[1305973] = new thumbnail(1305973,'92422','Archway','Arch_thumb.jpg',130, 178,1,'																			photo_1305973.html');
												thumbnails[1309619] = new thumbnail(1309619,'92422','Fountain','Fountain_thumb.jpg',130, 178,1,'																			photo_1309619.html');
												thumbnails[1309642] = new thumbnail(1309642,'92422','Valletta Lion','Lion-with-Shield_thumb.jpg',130, 186,1,'																			photo_1309642.html');
												thumbnails[1309652] = new thumbnail(1309652,'92422','Victoria Gate','Victoria-Gate_thumb.jpg',130, 182,1,'																			photo_1309652.html');
												thumbnails[1310198] = new thumbnail(1310198,'92422','A Call to God','A-Call-to-God_thumb.jpg',130, 185,1,'																			photo_1310198.html');
												thumbnails[1310865] = new thumbnail(1310865,'92422','Heavens Above','Heavens-Above_thumb.jpg',130, 97,1,'																			photo_1310865.html');
												thumbnails[1310871] = new thumbnail(1310871,'92422','Green Door and Shutters','Green-Door-with-Shutters_thumb.jpg',130, 246,1,'																			photo_1310871.html');
												thumbnails[1321130] = new thumbnail(1321130,'92422','A view from St Paul\'s Square','A-View-from-St-Pauls-Square_thumb.jpg',130, 172,1,'																			photo_1321130.html');
												thumbnails[1321132] = new thumbnail(1321132,'92422','Mellieha Church','Mellieha-Church_thumb.jpg',130, 169,1,'																			photo_1321132.html');
												thumbnails[1321135] = new thumbnail(1321135,'92422','Night Church','Night-Church_thumb.jpg',130, 171,1,'																			photo_1321135.html');
												thumbnails[1321137] = new thumbnail(1321137,'92422','Up a Blind Alley','Up-a-Blind-Alley_thumb.jpg',130, 174,1,'																			photo_1321137.html');
												thumbnails[1321139] = new thumbnail(1321139,'55020','Fisheye Ocean Potion','Fisheye-Ocean-Potion_thumb.jpg',130, 197,1,'																			photo_1321139.html');
												thumbnails[1360646] = new thumbnail(1360646,'92422','Knock Knock','Knock-Knock_thumb.jpg',130, 195,1,'																			photo_1360646.html');
												thumbnails[2706074] = new thumbnail(2706074,'170583','Tanem','Tanem_thumb.jpg',130, 90,1,'																			photo_2706074.html');
												thumbnails[3099304] = new thumbnail(3099304,'170583','Miller Time','Miller-Time-1_thumb.jpg',130, 179,1,'																			photo_3099304.html');
												thumbnails[3120200] = new thumbnail(3120200,'55209','Bristol Cathedral','Bristol-Catherdial_thumb.jpg',130, 174,1,'																			photo_3120200.html');
												thumbnails[3126917] = new thumbnail(3126917,'55209','Windward Way','Windward-Way_thumb.jpg',130, 85,1,'																			photo_3126917.html');
												thumbnails[3174580] = new thumbnail(3174580,'290791','Windermere Boats','Windermere-Boats-1_thumb.jpg',130, 194,1,'																			photo_3174580.html');
												thumbnails[3260864] = new thumbnail(3260864,'55020','Black & White','Black-and-White-2_thumb.jpg',130, 190,1,'																			photo_3260864.html');
												thumbnails[3565518] = new thumbnail(3565518,'170583','Rusty','Rusty-1_thumb.jpg',130, 194,1,'																			photo_3565518.html');
												thumbnails[3565520] = new thumbnail(3565520,'170583','Closed','Closed-1_thumb.jpg',130, 173,1,'																			photo_3565520.html');
												thumbnails[3565522] = new thumbnail(3565522,'170583','Unoccupied','Unocupied-1_thumb.jpg',130, 182,1,'																			photo_3565522.html');
												thumbnails[3565523] = new thumbnail(3565523,'170583','Fisheye Kyrenia Harbour','Fisheye-Kyrenia-Harbour_thumb.jpg',130, 182,1,'																			photo_3565523.html');
												thumbnails[3569373] = new thumbnail(3569373,'170583','Knacked','Knacked_thumb.jpg',130, 148,1,'																			photo_3569373.html');
												thumbnails[3580003] = new thumbnail(3580003,'170583','Waiting for Better Days','Waiting-for-Better-Days_thumb.jpg',130, 175,1,'																			photo_3580003.html');
												thumbnails[3676781] = new thumbnail(3676781,'170583','Old Rotting Door','Old-Rotting-Door_thumb.jpg',130, 262,1,'																			photo_3676781.html');
												thumbnails[3676959] = new thumbnail(3676959,'170583','Looking out to Sea','Looking-out-to-Sea-2_thumb.jpg',130, 179,1,'																			photo_3676959.html');
												thumbnails[3677408] = new thumbnail(3677408,'170583','Kyrenia Lighthouse','Kyrenia-Lighthouse-1_thumb.jpg',130, 187,1,'																			photo_3677408.html');
												thumbnails[3677428] = new thumbnail(3677428,'170583','The Pier','The-Pier_thumb.jpg',130, 88,1,'																			photo_3677428.html');
												thumbnails[3678156] = new thumbnail(3678156,'170583','Bell Tower','Bell-Tower_thumb.jpg',130, 186,1,'																			photo_3678156.html');
												thumbnails[3681832] = new thumbnail(3681832,'170583','Kyrenia Boats','Krrenia-Boats-2_thumb.jpg',130, 95,1,'																			photo_3681832.html');
												thumbnails[3696204] = new thumbnail(3696204,'55209','Rusty Monochrome Version','Rusty-2-BW_thumb.jpg',130, 192,1,'																			photo_3696204.html');
												thumbnails[3700817] = new thumbnail(3700817,'61707','Old Flamborough Lighthouse','Old-Flamborough-Head-Lighthouse_thumb.jpg',130, 195,1,'																			photo_3700817.html');
												thumbnails[3700919] = new thumbnail(3700919,'61707','Looking Skyward','Looking-Skyward_thumb.jpg',130, 201,1,'																			photo_3700919.html');
												thumbnails[3701862] = new thumbnail(3701862,'80701','','Spring-Daffs-2_thumb.jpg',130, 179,1,'																			photo_3701862.html');
												thumbnails[3704735] = new thumbnail(3704735,'55208','Bed knobs and Doorknocker','Bedknobs-and-Doorknocker_thumb.jpg',130, 94,1,'																			photo_3704735.html');
												thumbnails[4024890] = new thumbnail(4024890,'170583','Three Umbrellas','Three-Umbrellas-2_thumb.jpg',130, 202,1,'																			photo_4024890.html');
												thumbnails[4428948] = new thumbnail(4428948,'396447','','Rock-Sky_thumb.jpg',130, 63,1,'																			photo_4428948.html');
												thumbnails[4562235] = new thumbnail(4562235,'170583','River Dalyan Sunrise','River-Dalyan-Sunrise-2_thumb.jpg',130, 83,1,'																			photo_4562235.html');
												thumbnails[4616078] = new thumbnail(4616078,'170583','Rotting Away','Rotting-Away_thumb.jpg',130, 123,1,'																			photo_4616078.html');
												thumbnails[5002882] = new thumbnail(5002882,'61707','Infra Red Tower ','Infa-Red-Tower_thumb.jpg',130, 204,1,'																			photo_5002882.html');
												thumbnails[5009172] = new thumbnail(5009172,'56002','Little Green House','Little-Green-House_thumb.jpg',130, 188,1,'																			photo_5009172.html');
												thumbnails[5148045] = new thumbnail(5148045,'290791','Tired Old Field','Run-Down-Field-11_thumb.jpg',130, 82,1,'																			photo_5148045.html');
												thumbnails[5148049] = new thumbnail(5148049,'290791','The House at the End of the Lane','The-House-at-the-end-of-the-Lane_thumb.jpg',130, 201,1,'																			photo_5148049.html');
												thumbnails[5148051] = new thumbnail(5148051,'290791','The Shelter','The-Shelter_thumb.jpg',130, 182,1,'																			photo_5148051.html');
												thumbnails[5178936] = new thumbnail(5178936,'290791','Water Tree','Water-Tree_thumb.jpg',130, 202,1,'																			photo_5178936.html');
												thumbnails[5178945] = new thumbnail(5178945,'290791','Washed Away','Washed-Away_thumb.jpg',130, 192,1,'																			photo_5178945.html');
												thumbnails[5239745] = new thumbnail(5239745,'55020','Morning Storm','Morning-Strom-C3_thumb.jpg',130, 84,1,'																			photo_5239745.html');
												thumbnails[5348095] = new thumbnail(5348095,'301079','Alone','Alone_thumb.jpg',130, 201,1,'																			photo_5348095.html');
												thumbnails[5348100] = new thumbnail(5348100,'301079','Tewit Well','Tewit-Well-No-3_thumb.jpg',130, 179,1,'																			photo_5348100.html');
												thumbnails[5348565] = new thumbnail(5348565,'301079','Lines in the Snow','Lines-in-the-snow-2_thumb.jpg',130, 191,1,'																			photo_5348565.html');
												thumbnails[5348773] = new thumbnail(5348773,'301079','Tree Corridor','Tree-Corridor_thumb.jpg',130, 92,1,'																			photo_5348773.html');
												thumbnails[5612786] = new thumbnail(5612786,'396447','','Almscliffe-Crag-Number-1_thumb.jpg',130, 182,1,'																			photo_5612786.html');
												thumbnails[5612790] = new thumbnail(5612790,'396447','','Almscliffe-Crag-Number-2_thumb.jpg',130, 101,1,'																			photo_5612790.html');
												thumbnails[5612802] = new thumbnail(5612802,'396447','','Fisheye-Almscliffe-Crag_thumb.jpg',130, 87,1,'																			photo_5612802.html');
												thumbnails[5612873] = new thumbnail(5612873,'55020','Golden Field','Golden-Field_thumb.jpg',130, 79,1,'																			photo_5612873.html');
												thumbnails[5612907] = new thumbnail(5612907,'55020','The Long Shadows','Long-Shadows_thumb.jpg',130, 84,1,'																			photo_5612907.html');
												thumbnails[5612915] = new thumbnail(5612915,'55020','Sunset Tree','Tree-Sky_thumb.jpg',130, 151,1,'																			photo_5612915.html');
												thumbnails[6186994] = new thumbnail(6186994,'55209','Nidd Viaduct, Knaresborough','Nidd-Viaduct-with-Edge_thumb.jpg',130, 90,1,'																			photo_6186994.html');
												thumbnails[6362049] = new thumbnail(6362049,'352263','Fisheye Temenos','Fisheye-Temenos_thumb.jpg',130, 203,1,'																			photo_6362049.html');
												thumbnails[6362051] = new thumbnail(6362051,'352263','Temenos and the Riverside Stadium','Temenos-and-Riverside-Stadium-1_thumb.jpg',130, 83,1,'																			photo_6362051.html');
												thumbnails[6362054] = new thumbnail(6362054,'352263','Temenos Close Up','Temenos-Close-up_thumb.jpg',130, 84,1,'																			photo_6362054.html');
												thumbnails[6362056] = new thumbnail(6362056,'352263','Temenos comes out of the sky','Temenos-comes-out-of-sky_thumb.jpg',130, 86,1,'																			photo_6362056.html');
												thumbnails[6362057] = new thumbnail(6362057,'352263','Temenos and the Transporter Bridge','Temenos-with-Transporter-Bridge-4_thumb.jpg',130, 193,1,'																			photo_6362057.html');
												thumbnails[6362064] = new thumbnail(6362064,'352263','Temenos in part','Quarter-Temenos_thumb.jpg',130, 200,1,'																			photo_6362064.html');
												thumbnails[6362174] = new thumbnail(6362174,'80701','','Red-and-Yellow_thumb.jpg',130, 109,1,'																			photo_6362174.html');
												thumbnails[6362178] = new thumbnail(6362178,'80701','','Rose_thumb.jpg',130, 101,1,'																			photo_6362178.html');
												thumbnails[6364216] = new thumbnail(6364216,'352376','','18_thumb.jpg',130, 97,1,'																			photo_6364216.html');
												thumbnails[6364217] = new thumbnail(6364217,'352376','','22_thumb.jpg',130, 90,1,'																			photo_6364217.html');
												thumbnails[6364218] = new thumbnail(6364218,'352376','','26_thumb.jpg',130, 92,1,'																			photo_6364218.html');
												thumbnails[6364220] = new thumbnail(6364220,'352376','','27_thumb.jpg',130, 85,1,'																			photo_6364220.html');
												thumbnails[6364221] = new thumbnail(6364221,'352376','','34_thumb.jpg',130, 87,1,'																			photo_6364221.html');
												thumbnails[6364222] = new thumbnail(6364222,'352376','','36_thumb.jpg',130, 77,1,'																			photo_6364222.html');
												thumbnails[6364223] = new thumbnail(6364223,'352376','','37_thumb.jpg',130, 110,1,'																			photo_6364223.html');
												thumbnails[6364224] = new thumbnail(6364224,'352376','','51_thumb.jpg',130, 85,1,'																			photo_6364224.html');
												thumbnails[6364225] = new thumbnail(6364225,'352376','','54_thumb.jpg',130, 103,1,'																			photo_6364225.html');
												thumbnails[6758077] = new thumbnail(6758077,'170583','The Library','The-Lib-2_thumb.jpg',130, 180,1,'																			photo_6758077.html');
												thumbnails[7230726] = new thumbnail(7230726,'301079','Spike','Spike_thumb.jpg',130, 227,1,'																			photo_7230726.html');
												thumbnails[7230732] = new thumbnail(7230732,'55209','The Valley of the Long Shadows 1','The-Long-Shaddows-2_thumb.jpg',130, 187,1,'																			photo_7230732.html');
												thumbnails[7230737] = new thumbnail(7230737,'301079','The Dog','The-Dog_thumb.jpg',130, 190,1,'																			photo_7230737.html');
												thumbnails[7233759] = new thumbnail(7233759,'55209','The Valley of the Long Shadows 2','The-Broken-Tree-2_thumb.jpg',130, 79,1,'																			photo_7233759.html');
												thumbnails[7233765] = new thumbnail(7233765,'301079','The Long Walk','Lamplight_thumb.jpg',130, 193,1,'																			photo_7233765.html');
												thumbnails[7255488] = new thumbnail(7255488,'301079','Tree Number One','The-Tree-5_thumb.jpg',130, 214,1,'																			photo_7255488.html');
												thumbnails[7255492] = new thumbnail(7255492,'301079','Tree Pathway','Tree-Pathway-1_thumb.jpg',130, 191,1,'																			photo_7255492.html');
												thumbnails[7265782] = new thumbnail(7265782,'301079','Tree Number Two','The-Tree-1_thumb.jpg',130, 195,1,'																			photo_7265782.html');
												thumbnails[7265786] = new thumbnail(7265786,'301079','Tree Number Three','The-Tree-3_thumb.jpg',130, 198,1,'																			photo_7265786.html');
												thumbnails[7265791] = new thumbnail(7265791,'301079','Tree Number Four','The-Tree-4_thumb.jpg',130, 200,1,'																			photo_7265791.html');
												thumbnails[7327093] = new thumbnail(7327093,'396447','','Almscliff-Crag-2_thumb.jpg',130, 86,1,'																			photo_7327093.html');
												thumbnails[7327096] = new thumbnail(7327096,'396447','','Armscliffe-Crag-3_thumb.jpg',130, 78,1,'																			photo_7327096.html');
												thumbnails[7328392] = new thumbnail(7328392,'55020','Tewit Well 1','Tewit-Well-2_thumb.jpg',130, 89,1,'																			photo_7328392.html');
												thumbnails[7328595] = new thumbnail(7328595,'55020','Tewit Well 2','Tewit-Well-5_thumb.jpg',130, 196,1,'																			photo_7328595.html');
												thumbnails[4227674] = new thumbnail(4227674,'250742','Seagull Number 1','Seagull-Number-1_thumb.jpg',130, 84,1,'																			photo_4227674.html');
												thumbnails[4227679] = new thumbnail(4227679,'250742','Seagull Number 2','Seagull-Number-2_thumb.jpg',130, 187,1,'																			photo_4227679.html');
												thumbnails[4228046] = new thumbnail(4228046,'250742','Kempt Tower','Kempt-Tower-1_thumb.jpg',130, 195,1,'																			photo_4228046.html');
												thumbnails[4228050] = new thumbnail(4228050,'250742','La Hocq Tower','La-Hocq-Tower_thumb.jpg',130, 189,1,'																			photo_4228050.html');
												thumbnails[4232853] = new thumbnail(4232853,'250742','Quasine Tower Number 1','Quasine-Tower-8_thumb.jpg',130, 167,1,'																			photo_4232853.html');
												thumbnails[4234480] = new thumbnail(4234480,'250742','Quasine Tower Number 2','Quasine-Tower-6_thumb.jpg',130, 178,1,'																			photo_4234480.html');
												thumbnails[4234076] = new thumbnail(4234076,'250742','Corbiere Lighthouse Number 1','Corbiere-Lighthouse-1_thumb.jpg',130, 187,1,'																			photo_4234076.html');
												thumbnails[4234108] = new thumbnail(4234108,'250742','Corbiere Lighthouse Number 2','Corbiere-Lighthouse-9_thumb.jpg',130, 165,1,'																			photo_4234108.html');
												thumbnails[4234110] = new thumbnail(4234110,'250742','Over The Edge','Over-The-Edge_thumb.jpg',130, 190,1,'																			photo_4234110.html');
												thumbnails[4234115] = new thumbnail(4234115,'250742','Its Yellow','Its-Yellow_thumb.jpg',130, 78,1,'																			photo_4234115.html');
												thumbnails[4234117] = new thumbnail(4234117,'250742','Its Blue','Its-Blue_thumb.jpg',130, 172,1,'																			photo_4234117.html');
												thumbnails[4234136] = new thumbnail(4234136,'250742','The Red Collection Number 1','Red-Hut-1_thumb.jpg',130, 196,1,'																			photo_4234136.html');
												thumbnails[4234137] = new thumbnail(4234137,'250742','The Red Collection Number 2','Red-Hut-2_thumb.jpg',130, 192,1,'																			photo_4234137.html');
												thumbnails[4234140] = new thumbnail(4234140,'250742','The Red Collection Number 3','Red-Hut-3_thumb.jpg',130, 83,1,'																			photo_4234140.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[396447] = new gallery(396447,'7327096,7327093,5612802,5612790,5612786,4428948','Almscliffe Crag','gallery',[4428948,5612786,5612790,5612802,7327093,7327096],0, 0, '', '																																																																																																							gallery_396447.html',0,0);
				  					galleries[55207] = new gallery(55207,'792823,792803,787246,743270,743264,722186,722183,721754','Budapest','gallery',[721754,722183,722186,743264,743270,787246,792803,792823],0, 0, '', '																																																																																																							gallery_55207.html',0,0);
				  					galleries[80701] = new gallery(80701,'6362178,6362174,3701862,1104635,1104632,1101026,1100814,1100809,1100786,1095274','Flowers','gallery',[1095274,1100786,1100809,1100814,1101026,1104632,1104635,3701862,6362174,6362178],0, 0, '', '																																																																																																							gallery_80701.html',0,0);
				  					galleries[61707] = new gallery(61707,'5002882,3700919,3700817,880231,797254,795859,793953,793758,793756','FX','gallery',[793756,793758,793953,795859,797254,880231,3700817,3700919,5002882],0, 0, '', '																																																																																																							gallery_61707.html',0,0);
				  					galleries[55208] = new gallery(55208,'3704735,893351,893199,881717,786465,742131,740959,740956,740954,735470','Greece','gallery',[721770,725644,725650,727151,727152,735470,740954,740956,740959,742131,786465,881717,893199,893351,3704735],0, 0, '', '																																																																																																							gallery_55208.html',0,0);
				  					galleries[250742] = new gallery(250742,'4234480,4234140,4234137,4234136,4234117,4234115,4234110,4234108,4234076,4232853','Jersey','gallery',[4227674,4227679,4228046,4228050,4232853,4234480,4234076,4234108,4234110,4234115,4234117,4234136,4234137,4234140],0, 0, '', '																																																																																																							gallery_250742.html',0,0);
				  					galleries[352376] = new gallery(352376,'6364225,6364224,6364223,6364222,6364221,6364220,6364218,6364217,6364216','Knaresborough Bed Race','gallery',[6364216,6364217,6364218,6364220,6364221,6364222,6364223,6364224,6364225],0, 0, '', '																																																																																																							gallery_352376.html',0,0);
				  					galleries[92422] = new gallery(92422,'1360646,1321137,1321135,1321132,1321130,1310871,1310865,1310198,1309652,1309642','Malta','gallery',[1305047,1305973,1309619,1309642,1309652,1310198,1310865,1310871,1321130,1321132,1321135,1321137,1360646],0, 0, '', '																																																																																																							gallery_92422.html',0,0);
				  					galleries[55209] = new gallery(55209,'7233759,7230732,6186994,3696204,3126917,3120200,881474,881459,880187,793950','Monochrome','gallery',[725826,733105,735467,792819,793950,880187,881459,881474,3120200,3126917,3696204,6186994,7230732,7233759],0, 0, '', '																																																																																																							gallery_55209.html',0,0);
				  					galleries[290791] = new gallery(290791,'5178945,5178936,5148051,5148049,5148045,3174580,1104962,1067839,1064186','Monochrome Lake District','gallery',[1064186,1067839,1104962,3174580,5148045,5148049,5148051,5178936,5178945],0, 0, '', '																																																																																																							gallery_290791.html',0,0);
				  					galleries[55020] = new gallery(55020,'7328595,7328392,5612915,5612907,5612873,5239745,3260864,1321139,1104960,1097071','Northern England','gallery',[715170,717079,719210,723798,723800,723804,723806,726388,726390,733106,793952,795857,1097071,1104960,1321139,3260864,5239745,5612873,5612907,5612915,7328392,7328595],0, 0, '', '																																																																																																							gallery_55020.html',0,0);
				  					galleries[56002] = new gallery(56002,'5009172,880186,797152,797151,727155,727154','Other','gallery',[727154,727155,797151,797152,880186,5009172],0, 0, '', '																																																																																																							gallery_56002.html',0,0);
				  					galleries[301079] = new gallery(301079,'7265791,7265786,7265782,7255492,7255488,7233765,7230737,7230726,5348773,5348565','Snow','gallery',[5348095,5348100,5348565,5348773,7230726,7230737,7233765,7255488,7255492,7265782,7265786,7265791],0, 0, '', '																																																																																																							gallery_301079.html',0,0);
				  					galleries[352263] = new gallery(352263,'6362064,6362057,6362056,6362054,6362051,6362049','Temenos','gallery',[6362049,6362051,6362054,6362056,6362057,6362064],0, 0, '', '																																																																																																							gallery_352263.html',0,0);
				  					galleries[170583] = new gallery(170583,'6758077,4616078,4562235,4024890,3681832,3678156,3677428,3677408,3676959,3676781','Turkey & Northern Cyprus','gallery',[2706074,3099304,3565518,3565520,3565522,3565523,3569373,3580003,3676781,3676959,3677408,3677428,3678156,3681832,4024890,4562235,4616078,6758077],0, 0, '', '																																																																																																							gallery_170583.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5612802,4428948';
imageSets[3] = '5612802,4428948';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/twentyeight7/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/twentyeight7/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));		}, 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 = 'fotographx: ' + 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));    }        
    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;
	}
}

		

