window.thumbnails = new Object();
												thumbnails[4850214] = new thumbnail(4850214,'352176','Twickelervaart','_MG_1954_thumb.jpg',130, 195,18,'photo_4850214.html');
												thumbnails[4850222] = new thumbnail(4850222,'279288','Yamhill County, Oregon USA','_MG_2087_thumb.jpg',130, 87,18,'photo_4850222.html');
												thumbnails[4850226] = new thumbnail(4850226,'279288','Yamhill County, Oregon USA','_MG_2153a_thumb.jpg',130, 195,18,'photo_4850226.html');
												thumbnails[4850230] = new thumbnail(4850230,'279288','Haystack Rock, Oregon USA','_MG_2190_thumb.jpg',130, 84,18,'photo_4850230.html');
												thumbnails[4850233] = new thumbnail(4850233,'279288','Haystack Rock, Oregon USA','_MG_2192_thumb.jpg',130, 87,18,'photo_4850233.html');
												thumbnails[4850234] = new thumbnail(4850234,'279288','Haystack Rock, Oregon USA','_MG_2196_thumb.jpg',130, 195,18,'photo_4850234.html');
												thumbnails[4850235] = new thumbnail(4850235,'279288','Yamhill County, Oregon USA','_MG_2476_thumb.jpg',130, 87,18,'photo_4850235.html');
												thumbnails[4851412] = new thumbnail(4851412,'276247','Scottish Highlander','_MG_15861_thumb.jpg',130, 87,18,'photo_4851412.html');
												thumbnails[4851414] = new thumbnail(4851414,'279288','Hat Point, Oregon USA','_MG_2633_thumb.jpg',130, 195,18,'photo_4851414.html');
												thumbnails[4851467] = new thumbnail(4851467,'279288','John Day Fossil Beds, Oregon USA','_MG_2703_thumb.jpg',130, 87,18,'photo_4851467.html');
												thumbnails[4851468] = new thumbnail(4851468,'279288','John Day Fossil Beds, Oregon USA','_MG_2703c_thumb.jpg',130, 87,18,'photo_4851468.html');
												thumbnails[4851471] = new thumbnail(4851471,'279288','Painted Hills, Oregon USA','_MG_2711_thumb.jpg',130, 87,18,'photo_4851471.html');
												thumbnails[4851472] = new thumbnail(4851472,'279288','Painted Hills, Oregon USA','_MG_2714_thumb.jpg',130, 195,18,'photo_4851472.html');
												thumbnails[4851478] = new thumbnail(4851478,'279288','Sahalie Falls, Oregon USA','_MG_2731_28_29_30_thumb.jpg',130, 195,18,'photo_4851478.html');
												thumbnails[4852588] = new thumbnail(4852588,'276247','Roosevelt Elk','_MG_20811_thumb.jpg',130, 87,18,'photo_4852588.html');
												thumbnails[4852606] = new thumbnail(4852606,'276247','Pacific Treefrog','_MG_22901_thumb.jpg',130, 87,18,'photo_4852606.html');
												thumbnails[4852621] = new thumbnail(4852621,'276247','California Sea Lion','_MG_30041_thumb.jpg',130, 87,18,'photo_4852621.html');
												thumbnails[4852622] = new thumbnail(4852622,'276247','California Sea Lion','_MG_30151_thumb.jpg',130, 87,18,'photo_4852622.html');
												thumbnails[4852624] = new thumbnail(4852624,'276247','California Sea Lion','_MG_30201_thumb.jpg',130, 87,18,'photo_4852624.html');
												thumbnails[4862044] = new thumbnail(4862044,'279288','South Sister at Sparks lake, Oregon USA','_MG_2770_thumb.jpg',130, 87,18,'photo_4862044.html');
												thumbnails[4862057] = new thumbnail(4862057,'279288','South Sister at Sparks Lake, Oregon USA','_MG_2774_thumb.jpg',130, 195,18,'photo_4862057.html');
												thumbnails[4862064] = new thumbnail(4862064,'279288','Port Orford Heads, Oregon USA','_MG_2794_thumb.jpg',130, 195,18,'photo_4862064.html');
												thumbnails[4862069] = new thumbnail(4862069,'279288','Paradise Beach, Oregon USA','_MG_2804pan2_thumb.jpg',130, 65,18,'photo_4862069.html');
												thumbnails[4862074] = new thumbnail(4862074,'279288','Secret Bay, Oregon USA','_MG_2871_thumb.jpg',130, 87,18,'photo_4862074.html');
												thumbnails[4862096] = new thumbnail(4862096,'277146','Bass Rock, Scotland','IMG_5734_thumb.jpg',130, 41,18,'photo_4862096.html');
												thumbnails[4862097] = new thumbnail(4862097,'277146','Gamrie Bay, Scotland','IMG_6118_thumb.jpg',130, 197,18,'photo_4862097.html');
												thumbnails[4862099] = new thumbnail(4862099,'277146','Lour Burn, Scotland','IMG_6202_thumb.jpg',130, 98,18,'photo_4862099.html');
												thumbnails[4862100] = new thumbnail(4862100,'277146','Linn Falls, Scotland','IMG_62371_thumb.jpg',130, 179,18,'photo_4862100.html');
												thumbnails[4892687] = new thumbnail(4892687,'276241','Blackthorn','IMG_5247_thumb.jpg',130, 87,18,'photo_4892687.html');
												thumbnails[4892688] = new thumbnail(4892688,'276241','Common Foxglove','IMG_55121_thumb.jpg',130, 223,18,'photo_4892688.html');
												thumbnails[4892690] = new thumbnail(4892690,'276241','Common Monkey-Flower','IMG_6360_thumb.jpg',130, 195,18,'photo_4892690.html');
												thumbnails[4892694] = new thumbnail(4892694,'276241','Porcelain Fungus','IMG_7101_thumb.jpg',130, 75,18,'photo_4892694.html');
												thumbnails[4892696] = new thumbnail(4892696,'276247','Red Deer','IMG_5965_thumb.jpg',130, 195,18,'photo_4892696.html');
												thumbnails[4892699] = new thumbnail(4892699,'276247','Red Deer','IMG_5967_thumb.jpg',130, 195,18,'photo_4892699.html');
												thumbnails[4892700] = new thumbnail(4892700,'276247','Red Deer','IMG_59691_thumb.jpg',130, 195,18,'photo_4892700.html');
												thumbnails[4892703] = new thumbnail(4892703,'276247','Waterbuck','IMG_4046_thumb.jpg',130, 195,18,'photo_4892703.html');
												thumbnails[4892706] = new thumbnail(4892706,'276247','Meerkat','IMG_4071_thumb.jpg',130, 195,18,'photo_4892706.html');
												thumbnails[4892710] = new thumbnail(4892710,'276247','Poolfrog','IMG_5613_thumb.jpg',130, 77,18,'photo_4892710.html');
												thumbnails[4892716] = new thumbnail(4892716,'276247','Little Owl','IMG_5817_thumb.jpg',130, 143,18,'photo_4892716.html');
												thumbnails[4892721] = new thumbnail(4892721,'276247','Young Rabbit','IMG_5900_thumb.jpg',130, 99,18,'photo_4892721.html');
												thumbnails[4892726] = new thumbnail(4892726,'276310','Slow Loss','IMG_5728_thumb.jpg',130, 87,18,'photo_4892726.html');
												thumbnails[4892728] = new thumbnail(4892728,'276310','Natural patterns','IMG_66241_thumb.jpg',130, 170,18,'photo_4892728.html');
												thumbnails[4892729] = new thumbnail(4892729,'276310','Ice patterns','IMG_7227_thumb.jpg',130, 87,18,'photo_4892729.html');
												thumbnails[4892732] = new thumbnail(4892732,'276310','Ice Patterns','IMG_7229_thumb.jpg',130, 87,18,'photo_4892732.html');
												thumbnails[4892983] = new thumbnail(4892983,'276241','Lesser Butterfly-orchid','_MG_02681_thumb.jpg',130, 195,18,'photo_4892983.html');
												thumbnails[4892994] = new thumbnail(4892994,'276249','Røros, Norway','_MG_0383_thumb.jpg',130, 194,18,'photo_4892994.html');
												thumbnails[4892998] = new thumbnail(4892998,'276249','Røros, Norway','_MG_0385_thumb.jpg',130, 88,18,'photo_4892998.html');
												thumbnails[4893003] = new thumbnail(4893003,'276249','Het Stift, Netherlands','_MG_1711_thumb.jpg',130, 195,18,'photo_4893003.html');
												thumbnails[4893004] = new thumbnail(4893004,'276249','Het Stift, Netherlands','_MG_1714_thumb.jpg',130, 195,18,'photo_4893004.html');
												thumbnails[4893009] = new thumbnail(4893009,'276249','Noordmolen, Netherlands','_MG_1765_thumb.jpg',130, 195,18,'photo_4893009.html');
												thumbnails[4893013] = new thumbnail(4893013,'276249','Cape Blanco Lighthouse, Oregon USA','_MG_2877_thumb.jpg',130, 195,18,'photo_4893013.html');
												thumbnails[4893014] = new thumbnail(4893014,'276249','Cape Blanco Lighthouse, Oregon USA','_MG_2879_thumb.jpg',130, 90,18,'photo_4893014.html');
												thumbnails[4893017] = new thumbnail(4893017,'276249','Coquille River Lighthouse, Oregon USA','_MG_2891_thumb.jpg',130, 195,18,'photo_4893017.html');
												thumbnails[4893020] = new thumbnail(4893020,'276249','Nightglow 2007, Netherlands','_MG_68831_thumb.jpg',130, 73,18,'photo_4893020.html');
												thumbnails[4893029] = new thumbnail(4893029,'279288','Cape Arago Lighthouse, Oregon USA','_MG_2944_thumb.jpg',130, 195,18,'photo_4893029.html');
												thumbnails[4893031] = new thumbnail(4893031,'277146','Right Angle Falls, Scotland','IMG_6420_thumb.jpg',130, 195,18,'photo_4893031.html');
												thumbnails[4893037] = new thumbnail(4893037,'277146','Loch Etive, Scotland','IMG_6432_thumb.jpg',130, 170,18,'photo_4893037.html');
												thumbnails[4893080] = new thumbnail(4893080,'277146','River Coe, Scotland','IMG_6440_thumb.jpg',130, 200,18,'photo_4893080.html');
												thumbnails[4900563] = new thumbnail(4900563,'277146','River Gairn, Scotland','IMG_5937a__thumb.jpg',130, 195,18,'photo_4900563.html');
												thumbnails[4900566] = new thumbnail(4900566,'277146','Loch Tulla, Scotland','IMG_6382_thumb.jpg',130, 63,18,'photo_4900566.html');
												thumbnails[4900572] = new thumbnail(4900572,'277146','Loch Morlich, Scotland','IMG_6504_thumb.jpg',130, 87,18,'photo_4900572.html');
												thumbnails[4919184] = new thumbnail(4919184,'276241','Fireweed','_MG_0870_thumb.jpg',130, 195,18,'photo_4919184.html');
												thumbnails[4975522] = new thumbnail(4975522,'277146','Loch Morlich, Scotland','IMG_6514_thumb.jpg',130, 69,18,'photo_4975522.html');
												thumbnails[4975529] = new thumbnail(4975529,'277146','Abandoned Farm in Strathdearn, Scotland','IMG_6609_thumb.jpg',130, 169,18,'photo_4975529.html');
												thumbnails[5090151] = new thumbnail(5090151,'276249','Frozen moment','_MG_3223_thumb.jpg',130, 195,18,'photo_5090151.html');
												thumbnails[5116780] = new thumbnail(5116780,'279288','Cape Arago Lighthouse Oregon, USA','_MG_2947_thumb.jpg',130, 86,18,'photo_5116780.html');
												thumbnails[5116834] = new thumbnail(5116834,'279288','Sunset at Port Orford Head Oregon, USA','_MG_2829_thumb.jpg',130, 198,18,'photo_5116834.html');
												thumbnails[5130401] = new thumbnail(5130401,'352176','Sallandse Heuvelrug','_MG_3375_thumb.jpg',130, 91,18,'photo_5130401.html');
												thumbnails[5139093] = new thumbnail(5139093,'277145','Solitude Snag','_MG_3403_thumb.jpg',130, 195,18,'photo_5139093.html');
												thumbnails[5271553] = new thumbnail(5271553,'277145','Dwingelderveld','_MG_3419_thumb.jpg',130, 87,18,'photo_5271553.html');
												thumbnails[5317467] = new thumbnail(5317467,'279288','Grand Teton, Wyoming USA','IMG_2346_thumb.jpg',130, 87,18,'photo_5317467.html');
												thumbnails[5317486] = new thumbnail(5317486,'277145','Farm on the shire of Van Rechteren Limpurg','_MG_3453_thumb.jpg',130, 96,18,'photo_5317486.html');
												thumbnails[5317488] = new thumbnail(5317488,'277145','Lateraal Kanaal','_MG_3458_thumb.jpg',130, 87,18,'photo_5317488.html');
												thumbnails[5317493] = new thumbnail(5317493,'277145','Bosvijver Gravenallee','_MG_3468_thumb.jpg',130, 195,18,'photo_5317493.html');
												thumbnails[5361516] = new thumbnail(5361516,'277145','Farm on the Shire of Van Rechteren Limpurg','_MG_3451_thumb.jpg',130, 90,18,'photo_5361516.html');
												thumbnails[5361517] = new thumbnail(5361517,'277145','Shire of Van Rechteren Limpurg','_MG_3455_thumb.jpg',130, 87,18,'photo_5361517.html');
												thumbnails[5361538] = new thumbnail(5361538,'277146','Hardangerfjord, Norway','_MG_0991_thumb.jpg',130, 87,18,'photo_5361538.html');
												thumbnails[5438539] = new thumbnail(5438539,'352176','Sallandse Heuvelrug','_MG_3476_thumb.jpg',130, 87,18,'photo_5438539.html');
												thumbnails[5889830] = new thumbnail(5889830,'352176','Deldeneresch','_MG_3516_thumb.jpg',130, 87,18,'photo_5889830.html');
												thumbnails[5889831] = new thumbnail(5889831,'352176','Deldeneresch','_MG_3534_thumb.jpg',130, 60,18,'photo_5889831.html');
												thumbnails[5889833] = new thumbnail(5889833,'352176','Deldeneresch','_MG_3540_thumb.jpg',130, 48,18,'photo_5889833.html');
												thumbnails[5889836] = new thumbnail(5889836,'352176','Deldeneresch','_MG_3550_thumb.jpg',130, 52,18,'photo_5889836.html');
												thumbnails[6018812] = new thumbnail(6018812,'276249','ROC van Twente','_MG_3594_5_6_7_thumb.jpg',130, 87,18,'photo_6018812.html');
												thumbnails[6018816] = new thumbnail(6018816,'352176','Kroezeboom','_MG_3615_thumb.jpg',130, 195,18,'photo_6018816.html');
												thumbnails[6038899] = new thumbnail(6038899,'276249','Nomotion','_MG_3684_thumb.jpg',130, 195,18,'photo_6038899.html');
												thumbnails[6142389] = new thumbnail(6142389,'352176','Mepper Hooilanden','_MG_4010_thumb.jpg',130, 87,18,'photo_6142389.html');
												thumbnails[6142392] = new thumbnail(6142392,'352176','Mepper Hooilanden','_MG_4029_thumb.jpg',130, 87,18,'photo_6142392.html');
												thumbnails[6142395] = new thumbnail(6142395,'352176','Mepper Hooilanden','_MG_4034_thumb.jpg',130, 87,18,'photo_6142395.html');
												thumbnails[6358989] = new thumbnail(6358989,'352176','Haaksbergerveen','_MG_4086_thumb.jpg',130, 87,18,'photo_6358989.html');
												thumbnails[6358991] = new thumbnail(6358991,'352176','Haaksbergerveen','_MG_4102_thumb.jpg',130, 87,18,'photo_6358991.html');
												thumbnails[6358993] = new thumbnail(6358993,'352176','Haaksbergerveen','_MG_4105_thumb.jpg',130, 195,18,'photo_6358993.html');
												thumbnails[6448547] = new thumbnail(6448547,'352176','Haaksbergerveen','_MG_4202_thumb.jpg',130, 195,18,'photo_6448547.html');
												thumbnails[6908969] = new thumbnail(6908969,'276247','Who\'s there','_MG_4231_thumb.jpg',130, 87,18,'photo_6908969.html');
												thumbnails[6908971] = new thumbnail(6908971,'276247','Stop bugging me','_MG_4232_thumb.jpg',130, 87,18,'photo_6908971.html');
												thumbnails[6908978] = new thumbnail(6908978,'276247','Intimate moment','_MG_4245_thumb.jpg',130, 87,18,'photo_6908978.html');
												thumbnails[6908980] = new thumbnail(6908980,'276247','Who me?','_MG_4264_thumb.jpg',130, 87,18,'photo_6908980.html');
												thumbnails[6908983] = new thumbnail(6908983,'276247','What\'s up','_MG_4271_thumb.jpg',130, 139,18,'photo_6908983.html');
												thumbnails[6908990] = new thumbnail(6908990,'352176','Asselse Heide','_MG_4296_thumb.jpg',130, 195,18,'photo_6908990.html');
												thumbnails[6908993] = new thumbnail(6908993,'352176','Asselse Heide','_MG_4298_thumb.jpg',130, 87,18,'photo_6908993.html');
												thumbnails[7016267] = new thumbnail(7016267,'352176','Aan \'t Elfde Groote Peel','_MG_4448_thumb.jpg',130, 87,18,'photo_7016267.html');
												thumbnails[7117733] = new thumbnail(7117733,'352176','Strabrechtsche Heide - Starven','_MG_4506_thumb.jpg',130, 87,18,'photo_7117733.html');
												thumbnails[7647142] = new thumbnail(7647142,'276247','Bali Mynah','_MG_4585_thumb.jpg',130, 87,18,'photo_7647142.html');
												thumbnails[7647145] = new thumbnail(7647145,'352176','Strabrechtsche Heide - Starven','_MG_9915_thumb.jpg',130, 87,18,'photo_7647145.html');
												thumbnails[7798680] = new thumbnail(7798680,'289136','Gimsøy Kirke, Lofoten Norway','_MG_0102_thumb.jpg',130, 87,18,'photo_7798680.html');
												thumbnails[7798744] = new thumbnail(7798744,'289136','Austvågøy, Lofoten Norway','_MG_0104_thumb.jpg',130, 87,18,'photo_7798744.html');
												thumbnails[7798751] = new thumbnail(7798751,'289136','Sandsmannen & Hov, Lofoten Norway','_MG_0027_thumb.jpg',130, 87,18,'photo_7798751.html');
												thumbnails[7798759] = new thumbnail(7798759,'289136','Lighthouse on Henningsvaer, Lofoten Norway','_MG_0013_thumb.jpg',130, 195,18,'photo_7798759.html');
												thumbnails[7798763] = new thumbnail(7798763,'289136','Ramberg Beach, Lofoten Norway','_MG_0160_thumb.jpg',130, 195,18,'photo_7798763.html');
												thumbnails[7798765] = new thumbnail(7798765,'289136','Reine, Lofoten Norway','_MG_0210_thumb.jpg',130, 87,18,'photo_7798765.html');
												thumbnails[7798775] = new thumbnail(7798775,'289136','Hodet near Eggum, Lofoten Norway','_MG_0086_thumb.jpg',130, 87,18,'photo_7798775.html');
												thumbnails[7798777] = new thumbnail(7798777,'289136','Vatterfjordpollen, Lofoten Norway','_MG_0250_thumb.jpg',130, 87,18,'photo_7798777.html');
												thumbnails[7798780] = new thumbnail(7798780,'289136','Stockfish, Lofoten Norway','_MG_0186_thumb.jpg',130, 195,18,'photo_7798780.html');
												thumbnails[7798785] = new thumbnail(7798785,'289136','Sildpollen Kirke, Lofoten Norway','_MG_0255_thumb.jpg',130, 195,18,'photo_7798785.html');
												thumbnails[7798791] = new thumbnail(7798791,'289136','Austnesfjorden, Lofoten Norway','_MG_0287b_thumb.jpg',130, 87,18,'photo_7798791.html');
												thumbnails[7798795] = new thumbnail(7798795,'289136','Morfjorden, Lofoten Norway','_MG_0274_thumb.jpg',130, 195,18,'photo_7798795.html');
												thumbnails[7798799] = new thumbnail(7798799,'289136','Haukland Beach, Lofoten Norway','_MG_0353_thumb.jpg',130, 87,18,'photo_7798799.html');
												thumbnails[7798800] = new thumbnail(7798800,'289136','Haukland Beach, Lofoten Norway','_MG_0361_thumb.jpg',130, 195,18,'photo_7798800.html');
												thumbnails[7798803] = new thumbnail(7798803,'289136','Haukland Beach, Lofoten Norway','_MG_0370_thumb.jpg',130, 195,18,'photo_7798803.html');
												thumbnails[7798804] = new thumbnail(7798804,'289136','Haukland Beach, Lofoten Norway','_MG_0386_thumb.jpg',130, 87,18,'photo_7798804.html');
												thumbnails[7798805] = new thumbnail(7798805,'289136','Haukland Beach, Lofoten Norway','_MG_0407_thumb.jpg',130, 198,18,'photo_7798805.html');
												thumbnails[7798806] = new thumbnail(7798806,'289136','Haukland Beach, Lofoten Norway','_MG_0427_thumb.jpg',130, 199,18,'photo_7798806.html');
												thumbnails[7798810] = new thumbnail(7798810,'289136','Vestvågøy, Lofoten Norway','_MG_0438_thumb.jpg',130, 87,18,'photo_7798810.html');
												thumbnails[7798813] = new thumbnail(7798813,'289136','Hov, Lofoten Norway','_MG_0444_thumb.jpg',130, 87,18,'photo_7798813.html');
												thumbnails[7798855] = new thumbnail(7798855,'289136','Justadtinden, Lofoten Norway','_MG_0454_thumb.jpg',130, 87,18,'photo_7798855.html');
												thumbnails[4850105] = new thumbnail(4850105,'277145','Archemerberg','_MG_0276_thumb.jpg',130, 87,18,'photo_4850105.html');
												thumbnails[4850135] = new thumbnail(4850135,'277146','Dovrefjell, Norway','_MG_0433_thumb.jpg',130, 93,18,'photo_4850135.html');
												thumbnails[4862092] = new thumbnail(4862092,'279288','Old Faithful, Wyoming USA','IMG_2210_thumb.jpg',130, 87,18,'photo_4862092.html');
												thumbnails[4850126] = new thumbnail(4850126,'277145','View of Salland','_MG_0316_thumb.jpg',130, 76,18,'photo_4850126.html');
												thumbnails[4850138] = new thumbnail(4850138,'277146','Rauma river, Norway','_MG_04721_thumb.jpg',130, 195,18,'photo_4850138.html');
												thumbnails[4862094] = new thumbnail(4862094,'279288','Glacier National Park, Montana USA','IMG_3035_thumb.jpg',130, 87,18,'photo_4862094.html');
												thumbnails[4850184] = new thumbnail(4850184,'277145','Kroezeboom','_MG_1661_thumb.jpg',130, 87,18,'photo_4850184.html');
												thumbnails[4850151] = new thumbnail(4850151,'277146','Geirangerfjord, Norway','_MG_06241_thumb.jpg',130, 195,18,'photo_4850151.html');
												thumbnails[4850187] = new thumbnail(4850187,'277145','Kroezeboom','_MG_1665_thumb.jpg',130, 70,18,'photo_4850187.html');
												thumbnails[4850155] = new thumbnail(4850155,'277146','Kjenndalsbreen, Norway','_MG_06321_thumb.jpg',130, 195,18,'photo_4850155.html');
												thumbnails[4862080] = new thumbnail(4862080,'277145','Kroezeboom','IMG_0073_thumb.jpg',130, 87,18,'photo_4862080.html');
												thumbnails[4850200] = new thumbnail(4850200,'277145','Eksosche Aa','_MG_1855_thumb.jpg',130, 195,18,'photo_4850200.html');
												thumbnails[4900499] = new thumbnail(4900499,'277146','Kjendaalsbreen, Norway','_MG_0637_thumb.jpg',130, 195,18,'photo_4900499.html');
												thumbnails[4850159] = new thumbnail(4850159,'277146','Along the Snovegen, Norway','_MG_07891_thumb.jpg',130, 201,18,'photo_4850159.html');
												thumbnails[4850207] = new thumbnail(4850207,'277145','Deldeneresch','_MG_1908_thumb.jpg',130, 195,18,'photo_4850207.html');
												thumbnails[4850164] = new thumbnail(4850164,'277146','Along the Snovegen, Norway','_MG_0829_thumb.jpg',130, 91,18,'photo_4850164.html');
												thumbnails[4850209] = new thumbnail(4850209,'277145','Deldeneresch','_MG_1940_thumb.jpg',130, 87,18,'photo_4850209.html');
												thumbnails[4850170] = new thumbnail(4850170,'277146','Haukelandsvatnet, Norway','_MG_09121_thumb.jpg',130, 54,18,'photo_4850170.html');
												thumbnails[4862042] = new thumbnail(4862042,'277146','Hornindalsvatnet, Norway','_MG_05771_thumb.jpg',130, 86,18,'photo_4862042.html');
												thumbnails[4850191] = new thumbnail(4850191,'277145','The \'Twentse\' Countryside','_MG_1791_thumb.jpg',130, 87,18,'photo_4850191.html');
												thumbnails[4862095] = new thumbnail(4862095,'277145','Gravenallee','IMG_4638_thumb.jpg',130, 195,18,'photo_4862095.html');
												thumbnails[4975516] = new thumbnail(4975516,'277145','Sallandse Heuvelrug','IMG_7193_thumb.jpg',130, 87,18,'photo_4975516.html');
												thumbnails[4975517] = new thumbnail(4975517,'277145','Sallandse Heuvelrug','IMG_7201_thumb.jpg',130, 99,18,'photo_4975517.html');
												thumbnails[4975520] = new thumbnail(4975520,'277145','Mepper Hooilanden','IMG_7429_thumb.jpg',130, 87,18,'photo_4975520.html');
												thumbnails[4850175] = new thumbnail(4850175,'277145','Aekingerzand','_MG_1083_thumb.jpg',130, 87,18,'photo_4850175.html');
												thumbnails[4850177] = new thumbnail(4850177,'277145','Aekingerzand','_MG_1094_thumb.jpg',130, 195,18,'photo_4850177.html');
												thumbnails[4850178] = new thumbnail(4850178,'277145','Drents-Friese Wold','_MG_1514_thumb.jpg',130, 160,18,'photo_4850178.html');
												thumbnails[4850180] = new thumbnail(4850180,'277145','Drents-Friese Wold','_MG_1529_thumb.jpg',130, 87,18,'photo_4850180.html');
												thumbnails[4850182] = new thumbnail(4850182,'277145','Drents-Friese Wold','_MG_1572_0_1_thumb.jpg',130, 195,18,'photo_4850182.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[276240] = new gallery(276240,'7647145,7117733,7016267,6908993,6908990,6448547,6358993,6358991,6358989,6142395','Landscapes','gallery',[],0, 0, '', 'gallery_276240.html',0,0);
				  					galleries[276241] = new gallery(276241,'4919184,4892983,4892694,4892690,4892688,4892687','Flora & Fungi','gallery',[4892687,4892688,4892690,4892694,4892983,4919184],0, 0, '', 'gallery_276241.html',0,0);
				  					galleries[276247] = new gallery(276247,'7647142,6908983,6908980,6908978,6908971,6908969,4892721,4892716,4892710,4892706','Fauna','gallery',[4851412,4852588,4852606,4852621,4852622,4852624,4892696,4892699,4892700,4892703,4892706,4892710,4892716,4892721,6908969,6908971,6908978,6908980,6908983,7647142],0, 0, '', 'gallery_276247.html',0,0);
				  					galleries[276249] = new gallery(276249,'6038899,6018812,5090151,4893020,4893017,4893014,4893013,4893009,4893004,4893003','Man made','gallery',[4892994,4892998,4893003,4893004,4893009,4893013,4893014,4893017,4893020,5090151,6018812,6038899],0, 0, '', 'gallery_276249.html',0,0);
				  					galleries[276310] = new gallery(276310,'4892732,4892729,4892728,4892726','Abstract','gallery',[4892726,4892728,4892729,4892732],0, 0, '', 'gallery_276310.html',0,0);
				  					galleries[277145] = new gallery(277145,'5361517,5361516,5317493,5317488,5317486,5271553,5139093,4975520,4975517,4975516','Netherlands I','gallery',[5139093,5271553,5317486,5317488,5317493,5361516,5361517,4850105,4850126,4850184,4850187,4862080,4850200,4850207,4850209,4850191,4862095,4975516,4975517,4975520,4850175,4850177,4850178,4850180,4850182],0, 0, '276240', 'gallery_277145.html',0,0);
				  					galleries[352176] = new gallery(352176,'7647145,7117733,7016267,6908993,6908990,6448547,6358993,6358991,6358989,6142395','Netherlands II','gallery',[4850214,5130401,5438539,5889830,5889831,5889833,5889836,6018816,6142389,6142392,6142395,6358989,6358991,6358993,6448547,6908990,6908993,7016267,7117733,7647145],0, 0, '276240', 'gallery_352176.html',0,0);
				  					galleries[277146] = new gallery(277146,'5361538,4975529,4975522,4900572,4900566,4900563,4900499,4893080,4893037,4893031','Abroad I','gallery',[4862096,4862097,4862099,4862100,4893031,4893037,4893080,4900563,4900566,4900572,4975522,4975529,5361538,4850135,4850138,4850151,4850155,4900499,4850159,4850164,4850170,4862042],0, 0, '276240', 'gallery_277146.html',0,0);
				  					galleries[279288] = new gallery(279288,'5317467,5116834,5116780,4893029,4862094,4862092,4862074,4862069,4862064,4862057','Abroad II','gallery',[4850222,4850226,4850230,4850233,4850234,4850235,4851414,4851467,4851468,4851471,4851472,4851478,4862044,4862057,4862064,4862069,4862074,4893029,5116780,5116834,5317467,4862092,4862094],0, 0, '276240', 'gallery_279288.html',0,0);
				  					galleries[289136] = new gallery(289136,'7798855,7798813,7798810,7798806,7798805,7798804,7798803,7798800,7798799,7798795','New','gallery',[7798680,7798744,7798751,7798759,7798763,7798765,7798775,7798777,7798780,7798785,7798791,7798795,7798799,7798800,7798803,7798804,7798805,7798806,7798810,7798813,7798855],0, 0, '', 'gallery_289136.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7798855,7798813,7798810,7798806,7798805,7798804,7798803,7798800,7798799,7798795,7798791,7798785,7798780,7798777,7798775,7798765,7798763,7798759,7798751,7798744,7798680,7647145,7647142,7117733,7016267,6908993,6908990,6908983,6908980,6908978,6908971,6908969,6448547,6358993,6358991,6358989,6142395,6142392,6142389,6038899,6018816,6018812,5889836,5889833,5889831,5889830,5438539,5361538,5361517,5361516';
imageSets[3] = '7798855,7798813,7798810,7798806,7798805,7798804,7798803,7798800,7798799,7798795,7798791,7798785,7798780,7798777,7798775,7798765,7798763,7798759,7798751,7798744,7798680,7647145,7647142,7117733,7016267,6908993,6908990,6908983,6908980,6908978,6908971,6908969,6448547,6358993,6358991,6358989,6142395,6142392,6142389,6038899,6018816,6018812,5889836,5889833,5889831,5889830,5438539,5361538,5361517,5361516';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/NABouwen/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/NABouwen/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 = 'Niek Bouwen Photography: ' + 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 == undefined) {
    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;
	}
}

			

