window.thumbnails = {};
															thumbnails[535491] = clik.newPhoto({"id":535491,"src":"Bluebells0256--1_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_535491.html","width":130,"caption":"Gilsland Bluebells<br>\r\n<\/br><br>\r\nGilsland","height":87});
															thumbnails[535493] = clik.newPhoto({"id":535493,"src":"Thirlwall-Castle-snow_0034_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_535493.html","width":130,"caption":"Thirlwall Castle <\/br><br>\r\nLongbyre<br>\r\n","height":86});
															thumbnails[563524] = clik.newPhoto({"id":563524,"src":"Autumn-TarnF0432_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_563524.html","width":130,"caption":"Talkin Tarn <\/br><br>\r\nBrampton","height":89});
															thumbnails[582604] = clik.newPhoto({"id":582604,"src":"Gelt-Woods-2henry-Luc_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_582604.html","width":130,"caption":"Gelt Woods.<\/br><br>\r\nBrampton","height":87});
															thumbnails[686544] = clik.newPhoto({"id":686544,"src":"CLW-0003-Luc_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_686544.html","width":130,"caption":"Crammel Linn <\/br>Gilsland","height":81});
															thumbnails[2574728] = clik.newPhoto({"id":2574728,"src":"Coomb-Crags_0060bright1_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_2574728.html","width":130,"caption":"Coomb Crags <\/br>Cumbria","height":93});
															thumbnails[5495524] = clik.newPhoto({"id":5495524,"src":"Cawfield-Crags_0016_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_5495524.html","width":130,"caption":"Cawfield  Crags <\/br> Hadrians Wall","height":88});
															thumbnails[5531272] = clik.newPhoto({"id":5531272,"src":"cawf_0106-luc_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_5531272.html","width":130,"caption":"Cawfields Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[5652865] = clik.newPhoto({"id":5652865,"src":"HW-lights_0068-web_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_5652865.html","width":130,"caption":"Cuddys Crag <\/br> Hadrian's Wall","height":73});
															thumbnails[5659192] = clik.newPhoto({"id":5659192,"src":"Walltown_0156-jnl_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_5659192.html","width":130,"caption":"Walltown Crags <\/br>Hadrian's Wall","height":86});
															thumbnails[5691204] = clik.newPhoto({"id":5691204,"src":"Mucklebank-Crag_0058_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_5691204.html","width":130,"caption":"Mucklebank Crag <\/br> Hadrian's Wall","height":85});
															thumbnails[6034154] = clik.newPhoto({"id":6034154,"src":"Cawfields_0056_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_6034154.html","width":130,"caption":"Cawfields Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[6595802] = clik.newPhoto({"id":6595802,"src":"Cawfields_0050_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6595802.html","width":130,"caption":"Cawfields Quarry <\/br> Hadrian's Wall","height":86});
															thumbnails[6595829] = clik.newPhoto({"id":6595829,"src":"Cawfields_0057_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6595829.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[6595897] = clik.newPhoto({"id":6595897,"src":"Cawfields_0074a_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6595897.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[6595915] = clik.newPhoto({"id":6595915,"src":"Caw-Gap_0072_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6595915.html","width":130,"caption":"Caw Gap <\/br> Hadrian's Wall","height":86});
															thumbnails[6595932] = clik.newPhoto({"id":6595932,"src":"Cuddys-Crag_0064_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6595932.html","width":130,"caption":"Cuddys Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[6595959] = clik.newPhoto({"id":6595959,"src":"Cuddys-Crag_0071--2_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6595959.html","width":130,"caption":"Cuddys Crag <\/br> Hadrian's Wall","height":94});
															thumbnails[6595986] = clik.newPhoto({"id":6595986,"src":"Highshields-Crag_0062_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_6595986.html","width":130,"caption":"Highshields  Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[6596005] = clik.newPhoto({"id":6596005,"src":"Hotbank_0025_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_6596005.html","width":130,"caption":"Hotbank Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[6596020] = clik.newPhoto({"id":6596020,"src":"Housesteads_0081_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_6596020.html","width":130,"caption":"Housesteads Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[6596085] = clik.newPhoto({"id":6596085,"src":"Steel-Rigg_0018_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6596085.html","width":130,"caption":"Steel Rigg <\/br> Hadrian's Wall","height":86});
															thumbnails[6596116] = clik.newPhoto({"id":6596116,"src":"Steel-Rigg_0085_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6596116.html","width":130,"caption":"Steel Rigg <\/br> Hadrian's Wall","height":86});
															thumbnails[6596155] = clik.newPhoto({"id":6596155,"src":"Walltown-Crags_0017_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_6596155.html","width":130,"caption":"Walltown Crags <\/br> Hadrian's Wall","height":85});
															thumbnails[6662949] = clik.newPhoto({"id":6662949,"src":"Steel-Rigg_0073_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6662949.html","width":130,"caption":"Steel Rigg <\/br> Hadrian's Wall","height":86});
															thumbnails[6851574] = clik.newPhoto({"id":6851574,"src":"Walltown-Crags_0041_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_6851574.html","width":130,"caption":"Walltown Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[6851795] = clik.newPhoto({"id":6851795,"src":"Cawfields_0199_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_6851795.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[6851850] = clik.newPhoto({"id":6851850,"src":"Steel-Rigg0022_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_6851850.html","width":130,"caption":"Steel Rigg <\/br> Hadrian's Wall","height":91});
															thumbnails[6851874] = clik.newPhoto({"id":6851874,"src":"Walltown_0051jnl_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_6851874.html","width":130,"caption":"Walltown Crags <\/br> Hadrian's Wall","height":85});
															thumbnails[6855171] = clik.newPhoto({"id":6855171,"src":"Kings-Hill_0060-lite_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_6855171.html","width":130,"caption":"Kings Hill <\/br> Hadrian's Wall","height":86});
															thumbnails[6856917] = clik.newPhoto({"id":6856917,"src":"Birdoswald_0020_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_6856917.html","width":130,"caption":"Birdoswald <\/br> Hadrian's Wall","height":81});
															thumbnails[6864642] = clik.newPhoto({"id":6864642,"src":"Cuddys_Crag_0022_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_6864642.html","width":130,"caption":"Cuddys Crag <\/br> Hadrian's Wall","height":83});
															thumbnails[7347885] = clik.newPhoto({"id":7347885,"src":"Sycamore-Gap_0035_thumb.jpg","galleries_id":234478,"server_id":1,"link":"photo_7347885.html","width":130,"caption":"Sycamore Gap <\/br> Hadrian's Wall","height":87});
															thumbnails[7354123] = clik.newPhoto({"id":7354123,"src":"Derwentwater_0019-2website_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_7354123.html","width":130,"caption":"Derwentwater <\/br> Lake District","height":85});
															thumbnails[7354178] = clik.newPhoto({"id":7354178,"src":"Elterwater_0153website_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_7354178.html","width":130,"caption":"Elterwater <\/br> Lake District","height":86});
															thumbnails[7354197] = clik.newPhoto({"id":7354197,"src":"Lanercost-priory_0103websit_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_7354197.html","width":130,"caption":"Lanercost Priory <\/br> Cumbria","height":86});
															thumbnails[7354307] = clik.newPhoto({"id":7354307,"src":"Starlings_0296website_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_7354307.html","width":130,"caption":"Gretna Murmuration <\/br> Scotland","height":86});
															thumbnails[8107540] = clik.newPhoto({"id":8107540,"src":"Sycamore-Sunset-0045_thumb.jpg","galleries_id":234478,"server_id":1,"link":"photo_8107540.html","width":130,"caption":"Sycamore Gap <\/br> Hadrian's Wall","height":86});
															thumbnails[8308754] = clik.newPhoto({"id":8308754,"src":"Cawfield-Crags_0098-website_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_8308754.html","width":130,"caption":"Cawfields Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[8712083] = clik.newPhoto({"id":8712083,"src":"Bradley-Tups-0057Blog_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712083.html","width":130,"caption":"Winshields Crag <\/br>","height":87});
															thumbnails[8712098] = clik.newPhoto({"id":8712098,"src":"Birdoswald_0081ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712098.html","width":130,"caption":"Birdoswald <\/br> Hadrian's Wall","height":86});
															thumbnails[8712112] = clik.newPhoto({"id":8712112,"src":"Blue-Tit-_0024ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712112.html","width":130,"caption":"Blue Tit reflecting","height":158});
															thumbnails[8712134] = clik.newPhoto({"id":8712134,"src":"Broomlee-Lough_0046-ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712134.html","width":130,"caption":"Broomlee Lough <\/br> Hadrian's Wall","height":86});
															thumbnails[8712143] = clik.newPhoto({"id":8712143,"src":"Cawfield-Crags_0046-Blip_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_8712143.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":93});
															thumbnails[8712165] = clik.newPhoto({"id":8712165,"src":"Cawfields_0020-ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712165.html","width":130,"caption":"Cawfields <\/br> Hadrian's Wall","height":86});
															thumbnails[8712176] = clik.newPhoto({"id":8712176,"src":"Cuddys-Crag-0178ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712176.html","width":130,"caption":"Cuddys Crag <\/BR> Hadrian's Wall","height":86});
															thumbnails[8712179] = clik.newPhoto({"id":8712179,"src":"Greenlee-Lough-0169-ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712179.html","width":130,"caption":"Greenlee Lough <\/br> Hadrian's Wall","height":86});
															thumbnails[8712185] = clik.newPhoto({"id":8712185,"src":"Guarding-Birdoswald_0017ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712185.html","width":130,"caption":"Birdoswald <\/br>","height":81});
															thumbnails[8712250] = clik.newPhoto({"id":8712250,"src":"Hadrians-Wall-at-Hotbankws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712250.html","width":130,"caption":"Hotbank Crag <\/br>","height":85});
															thumbnails[8712264] = clik.newPhoto({"id":8712264,"src":"Highshields-Crag0091_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_8712264.html","width":130,"caption":"Highshields Crag <\/br> Hadrian's Wall","height":85});
															thumbnails[8712280] = clik.newPhoto({"id":8712280,"src":"Hotbank-Sunrise_0072ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712280.html","width":130,"caption":"Hotbank Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[8712282] = clik.newPhoto({"id":8712282,"src":"IG-Bluebells0063ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712282.html","width":130,"caption":"Bluebells in Irthing Gorge","height":87});
															thumbnails[8712303] = clik.newPhoto({"id":8712303,"src":"Kings-Hill0038ws_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_8712303.html","width":130,"caption":"Kings Hill <\/br> Hadrian's Wall","height":84});
															thumbnails[8712319] = clik.newPhoto({"id":8712319,"src":"Little-Owl_0232ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712319.html","width":130,"caption":"Little Owl","height":105});
															thumbnails[8712333] = clik.newPhoto({"id":8712333,"src":"Mucklebank-Crag_0051ws_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_8712333.html","width":130,"caption":"Mucklebank Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[8712406] = clik.newPhoto({"id":8712406,"src":"Puffin-with-fish_0441ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712406.html","width":130,"caption":"Puffin on the Farne Island","height":97});
															thumbnails[8712429] = clik.newPhoto({"id":8712429,"src":"rapishaw-Gap_0093ws_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8712429.html","width":130,"caption":"Rapishaw Gap <\/br> Hadrian's Wall","height":94});
															thumbnails[8712452] = clik.newPhoto({"id":8712452,"src":"Red-Squirrel_0139ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712452.html","width":130,"caption":"Red Squirrel, Killhope Mining Museum","height":103});
															thumbnails[8712455] = clik.newPhoto({"id":8712455,"src":"Red-Squirrel-Killhope_0385-_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712455.html","width":130,"caption":"Red Squirrel Killhope Mining Museum","height":129});
															thumbnails[8712478] = clik.newPhoto({"id":8712478,"src":"Rydal-Water_0005ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712478.html","width":130,"caption":"Rydal Water <\/br> Lake District","height":85});
															thumbnails[8712482] = clik.newPhoto({"id":8712482,"src":"Rydal-Water_0037ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712482.html","width":130,"caption":"Rydal Water <\/br> Lake District","height":83});
															thumbnails[8712484] = clik.newPhoto({"id":8712484,"src":"sparrowhawk_0050-ws_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8712484.html","width":130,"caption":"Sparrowhawk","height":195});
															thumbnails[8713029] = clik.newPhoto({"id":8713029,"src":"Cawfields_0021website_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_8713029.html","width":130,"caption":"Cawfields Crag <\/br> Hadrian's Wall","height":81});
															thumbnails[8713060] = clik.newPhoto({"id":8713060,"src":"Steel-Rigg0082website_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_8713060.html","width":130,"caption":"Steel Rigg <\/BR> Hadrian's Wall","height":87});
															thumbnails[8713064] = clik.newPhoto({"id":8713064,"src":"Little-Grebe0595-website_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8713064.html","width":130,"caption":"Little Grabe","height":86});
															thumbnails[8713075] = clik.newPhoto({"id":8713075,"src":"Goosander_0827website_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8713075.html","width":130,"caption":"Goosander, River Nith","height":84});
															thumbnails[8713092] = clik.newPhoto({"id":8713092,"src":"Tern_0791website_thumb.jpg","galleries_id":41828,"server_id":1,"link":"photo_8713092.html","width":130,"caption":"Tern on the Farnes","height":98});
															thumbnails[5300336] = clik.newPhoto({"id":5300336,"src":"Sycamore-gap_0077_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_5300336.html","width":130,"caption":"Sycamore Gap <\/br> Hadrian's Wall","height":86});
															thumbnails[5300399] = clik.newPhoto({"id":5300399,"src":"housesteads_0038_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_5300399.html","width":130,"caption":"Housesteads Crag <\/br> Hadrian's Wall","height":80});
															thumbnails[5300380] = clik.newPhoto({"id":5300380,"src":"Cawfield-Crags_0187-2_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_5300380.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[5300392] = clik.newPhoto({"id":5300392,"src":"Cuddys-crag_0027-12091_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_5300392.html","width":130,"caption":"Cuddys Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[5300428] = clik.newPhoto({"id":5300428,"src":"Winshields-Crag_0007_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_5300428.html","width":130,"caption":"Winshields Crag <\/br> Hadrian's Wall","height":85});
															thumbnails[3961278] = clik.newPhoto({"id":3961278,"src":"Cawfields0014website_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_3961278.html","width":130,"caption":"Cawfields Crag <\/br> Hadrian's Wall","height":85});
															thumbnails[1580324] = clik.newPhoto({"id":1580324,"src":"Long-Stone-Thorngrafton_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_1580324.html","width":130,"caption":"Vindolanda<\/br><br>\r\nHadrian's Wall","height":83});
															thumbnails[5300386] = clik.newPhoto({"id":5300386,"src":"Cawfields0086-09-website_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_5300386.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[5122227] = clik.newPhoto({"id":5122227,"src":"HW_0071liam_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_5122227.html","width":130,"caption":"Castle Nicks <\/br> Hadrians Wall","height":82});
															thumbnails[732937] = clik.newPhoto({"id":732937,"src":"sews_2575 290807epz_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_732937.html","width":130,"caption":"Sewingshields Crag,<\/br>Hadrian's Wall","height":85});
															thumbnails[3417094] = clik.newPhoto({"id":3417094,"src":"Walltown_0073-website_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_3417094.html","width":130,"caption":"Walltown Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[1052570] = clik.newPhoto({"id":1052570,"src":"rabbit_0114-010607_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_1052570.html","width":130,"caption":"Housesteads Crag <\/br><br>\r\nHadrian's Wall","height":85});
															thumbnails[4661776] = clik.newPhoto({"id":4661776,"src":"CC00762_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_4661776.html","width":130,"caption":"Cuddys Crag <\/br> Hadrian's Wall","height":86});
															thumbnails[3913377] = clik.newPhoto({"id":3913377,"src":"Cuddys0111website_thumb.jpg","galleries_id":61378,"server_id":1,"link":"photo_3913377.html","width":130,"caption":"Cuddys Crag <\/br>Hadrian's Wall","height":86});
															thumbnails[3348528] = clik.newPhoto({"id":3348528,"src":"Cawfields-Crag0061_filtered_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_3348528.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":83});
															thumbnails[725229] = clik.newPhoto({"id":725229,"src":"Housesteads-0019-website_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_725229.html","width":130,"caption":"Housesteads Crag<\/br>Hadrian's Wall","height":88});
															thumbnails[682368] = clik.newPhoto({"id":682368,"src":"Cuddy's-Crag_0048radiant-lu_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_682368.html","width":130,"caption":"Hotbank Crag<\/br><br>\r\nHadrian's Wall","height":82});
															thumbnails[532221] = clik.newPhoto({"id":532221,"src":"Housesteads_3561luc_thumb.jpg","galleries_id":89974,"server_id":1,"link":"photo_532221.html","width":130,"caption":"Housesteads Crags<br>\r\n<\/br><br>\r\nHadrian's Wall","height":84});
															thumbnails[2550819] = clik.newPhoto({"id":2550819,"src":"Caw-Gap-0101-2_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_2550819.html","width":130,"caption":"Caw Gap <\/br>Hadrian's Wall","height":86});
															thumbnails[3875811] = clik.newPhoto({"id":3875811,"src":"Walltown0013-1website_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_3875811.html","width":130,"caption":"Walltown Crags <\/br>Hadrian's Wall","height":86});
															thumbnails[3961306] = clik.newPhoto({"id":3961306,"src":"Kings-Hill-0052website_thumb.jpg","galleries_id":89975,"server_id":1,"link":"photo_3961306.html","width":130,"caption":"Kings Hill <\/br> Hadrian's Wall","height":86});
															thumbnails[3402795] = clik.newPhoto({"id":3402795,"src":"Cawfield-Crags-snow-0027_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_3402795.html","width":130,"caption":"Cawfield Crags <\/br> Hadrian's Wall","height":82});
															thumbnails[3402804] = clik.newPhoto({"id":3402804,"src":"Peel-Crags-snow-0068_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_3402804.html","width":130,"caption":"Peel Crags <\/br> Hadrian's Wall","height":86});
															thumbnails[1745021] = clik.newPhoto({"id":1745021,"src":"Housesteads_0078-lucis_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_1745021.html","width":130,"caption":"Housesteads Crag<\/br>Hadrian's Wall","height":88});
															thumbnails[1745071] = clik.newPhoto({"id":1745071,"src":"sow_0045_Lucis_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_1745071.html","width":130,"caption":"Highshields Crag <\/br>Hadrian's Wall","height":86});
															thumbnails[1816665] = clik.newPhoto({"id":1816665,"src":"Cawfields-Feb-0046luc_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_1816665.html","width":130,"caption":"Cawfields Winter<\/br>Hadrian's Wall","height":82});
															thumbnails[3417102] = clik.newPhoto({"id":3417102,"src":"Willowford-0040-1_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_3417102.html","width":130,"caption":"Willowford Bridge <\/br> Hadrian's Wall","height":89});
															thumbnails[5305190] = clik.newPhoto({"id":5305190,"src":"Kings-Hill_0043-luc_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_5305190.html","width":130,"caption":"Kings Hill <\/br> Hadrian's Wall","height":87});
															thumbnails[5305202] = clik.newPhoto({"id":5305202,"src":"walltown_0085-Luc-plus_thumb.jpg","galleries_id":210658,"server_id":1,"link":"photo_5305202.html","width":130,"caption":"Walltown Crags <\/br> Hadrian's Wall","height":87});
															thumbnails[2579946] = clik.newPhoto({"id":2579946,"src":"sunrise-sycamore_0025-21-02_thumb.jpg","galleries_id":234478,"server_id":1,"link":"photo_2579946.html","width":130,"caption":"Sycamore Gap<\/br><br>\r\nHadrian's Wall","height":83});
															thumbnails[3402774] = clik.newPhoto({"id":3402774,"src":"Sycamore-Gap-Snow0049_thumb.jpg","galleries_id":234478,"server_id":1,"link":"photo_3402774.html","width":130,"caption":"Sycamore Gap <\/br> Hadrian's Wall","height":85});
															thumbnails[3348104] = clik.newPhoto({"id":3348104,"src":"Sycamore0114web-0110_thumb.jpg","galleries_id":234478,"server_id":1,"link":"photo_3348104.html","width":130,"caption":"Sycamore Gap <\/br> Hadrian's Wall","height":88});
															thumbnails[3402789] = clik.newPhoto({"id":3402789,"src":"Sycamore-Gap-snow-0054_thumb.jpg","galleries_id":234478,"server_id":1,"link":"photo_3402789.html","width":130,"caption":"Sycamore Gap <\/br> Hadrian's Wall","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[61378] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hadrian's Wall Morning","link":"gallery_61378.html","maxRecords":0.0,"photoIDs":[6595802.0,6595829.0,6595897.0,6595915.0,6595932.0,6595959.0,6596085.0,6596116.0,6662949.0,6851874.0,8712083.0,8712098.0,8712134.0,8712165.0,8712176.0,8712179.0,8712185.0,8712250.0,8712280.0,8712429.0,8713060.0,5300399.0,5300380.0,5300392.0,3961278.0,1580324.0,5300386.0,5122227.0,732937.0,3417094.0,1052570.0,4661776.0,3913377.0],"skipIndex":0,"section_code":"gallery","featured_images":"6851874,6662949,6596116,6596085,6595959,6595932,6595915,6595897,6595829,6595802,5300399,5300392,5300386,5300380,5122227,4661776,3961278,3913377,3417094,1580324,1052570,732937","id":61378,"singleSection":false});				  						galleries[89974] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hadrian's Wall Day","link":"gallery_89974.html","maxRecords":0.0,"photoIDs":[5495524.0,5691204.0,6595986.0,6851795.0,6851850.0,6864642.0,8308754.0,8712143.0,8712333.0,8713029.0,5300336.0,5300428.0,3348528.0,725229.0,682368.0,532221.0],"skipIndex":0,"section_code":"gallery","featured_images":"6864642,6851850,6851795,6595986,5691204,5495524,5300428,5300336,3348528,725229,682368,532221","id":89974,"singleSection":false});				  						galleries[89975] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hadrian's Wall Evening","link":"gallery_89975.html","maxRecords":0.0,"photoIDs":[5531272.0,5652865.0,5659192.0,6034154.0,6596005.0,6596020.0,6596155.0,6851574.0,6855171.0,8712264.0,8712303.0,2550819.0,3875811.0,3961306.0],"skipIndex":0,"section_code":"gallery","featured_images":"6851574,6596155,6596020,6596005,6034154,5659192,5531272,3875811,2550819","id":89975,"singleSection":false});				  						galleries[210658] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hadrian's Wall Snow","link":"gallery_210658.html","maxRecords":0.0,"photoIDs":[6856917.0,3402795.0,3402804.0,1745021.0,1745071.0,1816665.0,3417102.0,5305190.0,5305202.0],"skipIndex":0,"section_code":"gallery","featured_images":"6856917,5305202,5305190,3417102,3402795,1816665,1745021","id":210658,"singleSection":false});				  						galleries[234478] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sycamore Gap","link":"gallery_234478.html","maxRecords":0.0,"photoIDs":[7347885.0,8107540.0,2579946.0,3402774.0,3348104.0,3402789.0],"skipIndex":0,"section_code":"gallery","featured_images":"8107540,7347885,2579946","id":234478,"singleSection":false});				  						galleries[41828] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Off the Wall in more ways than one","link":"gallery_41828.html","maxRecords":0.0,"photoIDs":[535491.0,535493.0,563524.0,582604.0,686544.0,2574728.0,7354123.0,7354178.0,7354197.0,7354307.0,8712112.0,8712282.0,8712319.0,8712406.0,8712452.0,8712455.0,8712478.0,8712482.0,8712484.0,8713064.0,8713075.0,8713092.0],"skipIndex":0,"section_code":"gallery","featured_images":"8713092,8713075,8713064,7354307,7354197,7354178,7354123,2574728,686544,582604,563524,535493,535491","id":41828,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8107540,7354307,7354197,7354178,7354123,7347885,6864642,6856917,6851874,6851850,6851795,6851574,6662949,6596155,6596116,6596085,6595959,6595932,6595915,6595897,6595829,6595802,6034154,5531272,686544,535491,3961278,1052570,532221,2550819,3875811,5305190,2579946,3402774';
imageSets[2] = '8713092,8713075,8713064,8107540,7354307,7354197,7354178,7354123,7347885,6864642,6856917,6851874,6851850,6851795,6851574,6662949,6596155,6596116,6596085,6596020,6596005,6595986,6595959,6595932,6595915,6595897,6595829,6595802,6034154,5691204,5659192,5531272,5495524,2574728,686544,582604,563524,535493,535491,5300336,5300399,5300380,5300392,5300428,3961278,1580324,5300386,5122227,732937,3417094,1052570,4661776,3913377,3348528,725229,682368,532221,2550819,3875811,3402795,1745021,1816665,3417102,5305190,5305202,2579946';
imageSets[3] = '3348104';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Merlin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Merlin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Merlin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Merlin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Merlin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Merlin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Merlin/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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'After the Rain: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		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.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('item added to basket').show();}
				else{
					$('#paymentConfirm', root).text('item added to basket').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>For this photograph please quote: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Grid Reference </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer © </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p><bold> To order this print, please click on the \'drop down\' menu below for size and price options</bold></p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MERLIN">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to Basket" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View Basket" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">item added to basket</div>';
			temp += '</div>';
			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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

