window.thumbnails = {};
															thumbnails[496958] = clik.newPhoto({"id":496958,"src":"thirlmerebarn_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_496958.html","width":130,"caption":"Barn near Thirlmere","height":87});
															thumbnails[1852365] = clik.newPhoto({"id":1852365,"src":"104_0041bowermanmono_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_1852365.html","width":92,"caption":"Bowerman's Nose","height":130});
															thumbnails[1929293] = clik.newPhoto({"id":1929293,"src":"118_0048seatbw_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_1929293.html","width":98,"caption":"Churchyard view, Brentor","height":130});
															thumbnails[2313787] = clik.newPhoto({"id":2313787,"src":"136_0011theedge_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_2313787.html","width":130,"caption":"Longside Edge","height":50});
															thumbnails[3160358] = clik.newPhoto({"id":3160358,"src":"159_0131_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_3160358.html","width":130,"caption":"Dartmoor conifers","height":130});
															thumbnails[3160368] = clik.newPhoto({"id":3160368,"src":"164_0181combesheadS_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_3160368.html","width":130,"caption":"Combeshead tor","height":130});
															thumbnails[3160375] = clik.newPhoto({"id":3160375,"src":"104_0041bowermanS_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_3160375.html","width":130,"caption":"Bowerman's Nose","height":130});
															thumbnails[3275807] = clik.newPhoto({"id":3275807,"src":"170_0068littlemissunset_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_3275807.html","width":130,"caption":"Little Mis Tor","height":50});
															thumbnails[3275875] = clik.newPhoto({"id":3275875,"src":"172_0055loweryS_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_3275875.html","width":130,"caption":"Lowery Tor","height":130});
															thumbnails[3429341] = clik.newPhoto({"id":3429341,"src":"177_0130snowfield_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_3429341.html","width":130,"caption":"Snow field","height":52});
															thumbnails[3826207] = clik.newPhoto({"id":3826207,"src":"186_0626crinklecrags_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_3826207.html","width":130,"caption":"Crinkle Crags and Bowfell","height":61});
															thumbnails[4429176] = clik.newPhoto({"id":4429176,"src":"202_1405eveninglight_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_4429176.html","width":130,"caption":"Evening sunlight","height":86});
															thumbnails[4806742] = clik.newPhoto({"id":4806742,"src":"208_1666theband_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_4806742.html","width":130,"caption":"The Band","height":90});
															thumbnails[4806774] = clik.newPhoto({"id":4806774,"src":"208_1684bleatarn_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_4806774.html","width":130,"caption":"Blea Tarn","height":81});
															thumbnails[4806813] = clik.newPhoto({"id":4806813,"src":"208_1694langdales_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_4806813.html","width":102,"caption":"Langdale peaks","height":130});
															thumbnails[4806940] = clik.newPhoto({"id":4806940,"src":"208_1708littlelangdaletarn_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_4806940.html","width":130,"caption":"Little Langdale Tarn","height":78});
															thumbnails[4963237] = clik.newPhoto({"id":4963237,"src":"215_2201leathertor_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_4963237.html","width":130,"caption":"Dartmoor panorama","height":48});
															thumbnails[5013746] = clik.newPhoto({"id":5013746,"src":"217_2304autumn_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_5013746.html","width":130,"caption":"Autumn colours","height":130});
															thumbnails[5488879] = clik.newPhoto({"id":5488879,"src":"230_3048downtor_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_5488879.html","width":130,"caption":"Down Tor","height":84});
															thumbnails[5488903] = clik.newPhoto({"id":5488903,"src":"230_3071stonecircleBW_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_5488903.html","width":130,"caption":"Stone circle","height":86});
															thumbnails[5502823] = clik.newPhoto({"id":5502823,"src":"93_0092pondatduskS_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_5502823.html","width":130,"caption":"Pond at dusk","height":130});
															thumbnails[5502861] = clik.newPhoto({"id":5502861,"src":"201_1351lowerytors_DC53CC27-24E8-5EC4-4F240C69136B2A32_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_5502861.html","width":130,"caption":"Lowery Tors","height":51});
															thumbnails[5502868] = clik.newPhoto({"id":5502868,"src":"219_2449nattor_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_5502868.html","width":130,"caption":"Nattor Panorama","height":54});
															thumbnails[5503899] = clik.newPhoto({"id":5503899,"src":"167_pano_-gmtshower_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_5503899.html","width":130,"caption":"Dark skies","height":49});
															thumbnails[5558034] = clik.newPhoto({"id":5558034,"src":"232_3194greatmis_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_5558034.html","width":130,"caption":"Great Mis Tor","height":80});
															thumbnails[5953253] = clik.newPhoto({"id":5953253,"src":"243_0418conistoncrags_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_5953253.html","width":130,"caption":"Coniston Crags","height":56});
															thumbnails[5954548] = clik.newPhoto({"id":5954548,"src":"243_0312conistonmineworkingsBW_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_5954548.html","width":130,"caption":"Ruined","height":85});
															thumbnails[6015209] = clik.newPhoto({"id":6015209,"src":"244_0602bluebellsP_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_6015209.html","width":130,"caption":"Bluebells","height":60});
															thumbnails[6015223] = clik.newPhoto({"id":6015223,"src":"244_0592bluebellsS_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_6015223.html","width":123,"caption":"Spring woodland","height":130});
															thumbnails[6568504] = clik.newPhoto({"id":6568504,"src":"249_1096pond_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_6568504.html","width":130,"caption":"Evening","height":87});
															thumbnails[7025367] = clik.newPhoto({"id":7025367,"src":"256_1401oaktree_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7025367.html","width":130,"caption":"Shining through","height":86});
															thumbnails[7025378] = clik.newPhoto({"id":7025378,"src":"263_1753puddles_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7025378.html","width":130,"caption":"After the shower","height":86});
															thumbnails[7025407] = clik.newPhoto({"id":7025407,"src":"258_1493gull_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7025407.html","width":130,"caption":"Herring gull preening","height":89});
															thumbnails[7025699] = clik.newPhoto({"id":7025699,"src":"258_1508polperro_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7025699.html","width":130,"caption":"Polperro harbour entrance","height":85});
															thumbnails[7025731] = clik.newPhoto({"id":7025731,"src":"258_1513lichen_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7025731.html","width":130,"caption":"Gold lichen","height":83});
															thumbnails[7247882] = clik.newPhoto({"id":7247882,"src":"267_2059sunset_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7247882.html","width":130,"caption":"Moor Sunset","height":86});
															thumbnails[7247886] = clik.newPhoto({"id":7247886,"src":"266_1986monolith_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7247886.html","width":130,"caption":"Monolith","height":86});
															thumbnails[7314390] = clik.newPhoto({"id":7314390,"src":"267_2069treesunset_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7314390.html","width":130,"caption":"Twisted tree","height":86});
															thumbnails[7314445] = clik.newPhoto({"id":7314445,"src":"270_2355churchyard_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_7314445.html","width":130,"caption":"Princetown Churchyard","height":130});
															thumbnails[7359975] = clik.newPhoto({"id":7359975,"src":"271_2419backlitpony_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_7359975.html","width":130,"caption":"Early morning","height":130});
															thumbnails[7359996] = clik.newPhoto({"id":7359996,"src":"271_2428moonandice_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7359996.html","width":130,"caption":"Moon reflection","height":86});
															thumbnails[7509721] = clik.newPhoto({"id":7509721,"src":"272_2513postbridgeslow_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7509721.html","width":130,"caption":"Postbridge","height":83});
															thumbnails[7509917] = clik.newPhoto({"id":7509917,"src":"272_2487treesBW_thumb.jpg","galleries_id":86926,"server_id":1,"link":"photo_7509917.html","width":130,"caption":"Trees at Burrator","height":85});
															thumbnails[7753741] = clik.newPhoto({"id":7753741,"src":"276_2924crownsmines_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7753741.html","width":130,"caption":"Crowns Mine buildings","height":86});
															thumbnails[7753744] = clik.newPhoto({"id":7753744,"src":"276_2964newlynharbour_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7753744.html","width":130,"caption":"Newlyn Harbour","height":86});
															thumbnails[7909405] = clik.newPhoto({"id":7909405,"src":"278_3106looe_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7909405.html","width":130,"caption":"Looe View","height":86});
															thumbnails[7909411] = clik.newPhoto({"id":7909411,"src":"278_3184polperro_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7909411.html","width":130,"caption":"Polperro","height":86});
															thumbnails[7909432] = clik.newPhoto({"id":7909432,"src":"278_3256bluebellsS_thumb.jpg","galleries_id":311610,"server_id":1,"link":"photo_7909432.html","width":130,"caption":"Bluebells","height":130});
															thumbnails[7909535] = clik.newPhoto({"id":7909535,"src":"278_3241bluebellsblurred_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7909535.html","width":130,"caption":"Bluebell Abstract","height":87});
															thumbnails[7909585] = clik.newPhoto({"id":7909585,"src":"279_3383thepimple_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7909585.html","width":130,"caption":"The Pimple","height":86});
															thumbnails[8178286] = clik.newPhoto({"id":8178286,"src":"283_3628causeway_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178286.html","width":130,"caption":"St Michael's Mount ","height":76});
															thumbnails[8178292] = clik.newPhoto({"id":8178292,"src":"283_3722porthmeorcove_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178292.html","width":130,"caption":"Porthmeor Cove","height":83});
															thumbnails[8178326] = clik.newPhoto({"id":8178326,"src":"283_3773pzharbour_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178326.html","width":130,"caption":"Penzance harbour","height":87});
															thumbnails[8178349] = clik.newPhoto({"id":8178349,"src":"283_3800landsend_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178349.html","width":130,"caption":"Land's End","height":85});
															thumbnails[8178404] = clik.newPhoto({"id":8178404,"src":"283_3853tocapecornwall_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178404.html","width":130,"caption":"Cape Cornwall","height":130});
															thumbnails[8178418] = clik.newPhoto({"id":8178418,"src":"283_3844pendowercoves_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178418.html","width":130,"caption":"Pendower Cove","height":85});
															thumbnails[8316991] = clik.newPhoto({"id":8316991,"src":"98_0034helmcrag1_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8316991.html","width":130,"caption":"Helm Crag","height":87});
															thumbnails[8316998] = clik.newPhoto({"id":8316998,"src":"67_0017dowcrags1_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8316998.html","width":130,"caption":"Dow Crags","height":86});
															thumbnails[8319910] = clik.newPhoto({"id":8319910,"src":"282_3495bennetscross_thumb.jpg","galleries_id":311611,"server_id":1,"link":"photo_8319910.html","width":130,"caption":"Bennet's Cross","height":57});
															thumbnails[8319992] = clik.newPhoto({"id":8319992,"src":"282_3523sharpitorrocks_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8319992.html","width":130,"caption":"Granite","height":86});
															thumbnails[8320127] = clik.newPhoto({"id":8320127,"src":"284_3925peekhill_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8320127.html","width":130,"caption":"Evening","height":86});
															thumbnails[8515890] = clik.newPhoto({"id":8515890,"src":"293_4664ETNZ_AC45_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8515890.html","width":130,"caption":"Emirates Team","height":90});
															thumbnails[8515900] = clik.newPhoto({"id":8515900,"src":"293_4669AC45start_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8515900.html","width":130,"caption":"On your marks...","height":46});
															thumbnails[8515907] = clik.newPhoto({"id":8515907,"src":"294_4868oracleracingcoutts_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8515907.html","width":130,"caption":"Wing sail catamaran","height":85});
															thumbnails[8515922] = clik.newPhoto({"id":8515922,"src":"294_4825AC45cats_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8515922.html","width":130,"caption":"Close racing","height":86});
															thumbnails[8586055] = clik.newPhoto({"id":8586055,"src":"288_4075bennetscrossheather_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8586055.html","width":130,"caption":"Bennett's Cross","height":87});
															thumbnails[8586062] = clik.newPhoto({"id":8586062,"src":"288_4147stonewall_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8586062.html","width":130,"caption":"Stone wall","height":86});
															thumbnails[8586129] = clik.newPhoto({"id":8586129,"src":"291_4423pondatdusk_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8586129.html","width":130,"caption":"Evening stop","height":86});
															thumbnails[8586144] = clik.newPhoto({"id":8586144,"src":"295_4925langdalebarn_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8586144.html","width":130,"caption":"Langdale barn","height":79});
															thumbnails[8586227] = clik.newPhoto({"id":8586227,"src":"295_4931tobowfell_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8586227.html","width":130,"caption":"Cumbria Way","height":79});
															thumbnails[8586432] = clik.newPhoto({"id":8586432,"src":"295_5050pikeostickle_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8586432.html","width":130,"caption":"Pike of Stickle","height":86});
															thumbnails[8586441] = clik.newPhoto({"id":8586441,"src":"295_5013bowfell_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8586441.html","width":130,"caption":"Bowfell","height":86});
															thumbnails[8586452] = clik.newPhoto({"id":8586452,"src":"295_4943scafellpikeview_thumb.jpg","galleries_id":31123,"server_id":1,"link":"photo_8586452.html","width":130,"caption":"View from the top","height":60});
															thumbnails[8676181] = clik.newPhoto({"id":8676181,"src":"289_4194dartmoorpony_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8676181.html","width":130,"caption":"Dartmoor Pony","height":86});
															thumbnails[8756531] = clik.newPhoto({"id":8756531,"src":"299_5338bedruthan_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8756531.html","width":130,"caption":"Bedruthan Steps","height":84});
															thumbnails[8756593] = clik.newPhoto({"id":8756593,"src":"299_5350seatview_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8756593.html","width":130,"caption":"Seat with a view","height":83});
															thumbnails[8756597] = clik.newPhoto({"id":8756597,"src":"299_5371pentiresteps_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8756597.html","width":130,"caption":"Pentire Steps","height":89});
															thumbnails[8756770] = clik.newPhoto({"id":8756770,"src":"298_5264warrenhouseinn_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8756770.html","width":130,"caption":"Warren House Inn","height":85});
															thumbnails[8756799] = clik.newPhoto({"id":8756799,"src":"298_5284birchtor_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8756799.html","width":130,"caption":"Birch Tor","height":86});
															thumbnails[8848164] = clik.newPhoto({"id":8848164,"src":"300_5459autumn_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_8848164.html","width":130,"caption":"Autumn river","height":86});
															thumbnails[8848196] = clik.newPhoto({"id":8848196,"src":"300_5503deancombe_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8848196.html","width":130,"caption":"Deancombe","height":85});
															thumbnails[8848200] = clik.newPhoto({"id":8848200,"src":"300_5517dartmoorgateway_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_8848200.html","width":130,"caption":"Dartmoor gateway","height":86});
															thumbnails[8873616] = clik.newPhoto({"id":8873616,"src":"276_2882enginehouses_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8873616.html","width":83,"caption":"Botallack engine house","height":130});
															thumbnails[8873627] = clik.newPhoto({"id":8873627,"src":"299_5320bedruthan_2F696539-24E8-5EC4-4FE40AE5C3856176_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8873627.html","width":89,"caption":"Bedruthan Steps","height":130});
															thumbnails[8964423] = clik.newPhoto({"id":8964423,"src":"302_5663waterblur_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_8964423.html","width":130,"caption":"Flowing water","height":87});
															thumbnails[8964431] = clik.newPhoto({"id":8964431,"src":"302_5597pewtor_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_8964431.html","width":130,"caption":"Pewtor","height":86});
															thumbnails[9030408] = clik.newPhoto({"id":9030408,"src":"305_5861fallentree_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9030408.html","width":130,"caption":"Fallen tree","height":82});
															thumbnails[9030422] = clik.newPhoto({"id":9030422,"src":"306_5884tamarmist_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9030422.html","width":130,"caption":"Misty morning","height":85});
															thumbnails[9030501] = clik.newPhoto({"id":9030501,"src":"306_5877peekhill_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9030501.html","width":130,"caption":"Burrator Dawn","height":86});
															thumbnails[9036066] = clik.newPhoto({"id":9036066,"src":"306_5920nunscrossfarm_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9036066.html","width":130,"caption":"Nun's Cross Farm","height":83});
															thumbnails[9036131] = clik.newPhoto({"id":9036131,"src":"306_5934stonerow_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9036131.html","width":130,"caption":"Stone Row","height":87});
															thumbnails[9036205] = clik.newPhoto({"id":9036205,"src":"306_5911dartmoorsheep_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9036205.html","width":130,"caption":"Sheep crossing","height":84});
															thumbnails[9036211] = clik.newPhoto({"id":9036211,"src":"306_5920nunscrossfarmBW_thumb.jpg","galleries_id":442383,"server_id":1,"link":"photo_9036211.html","width":130,"caption":"Nun's Cross Farm","height":86});
															thumbnails[1383867] = clik.newPhoto({"id":1383867,"src":"96_0027waterfall_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_1383867.html","width":130,"caption":"River Meavy waterfall","height":90});
															thumbnails[1656474] = clik.newPhoto({"id":1656474,"src":"93_0092pondatdusk_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_1656474.html","width":130,"caption":"Pond at dusk","height":87});
															thumbnails[2383739] = clik.newPhoto({"id":2383739,"src":"141_0024ponies_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_2383739.html","width":130,"caption":"Dartmoor ponies","height":90});
															thumbnails[3718685] = clik.newPhoto({"id":3718685,"src":"184_0473gftreesunset_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_3718685.html","width":130,"caption":"Red sky at night","height":89});
															thumbnails[3961654] = clik.newPhoto({"id":3961654,"src":"191_0016grazingpony_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_3961654.html","width":130,"caption":"Grazing","height":86});
															thumbnails[4349182] = clik.newPhoto({"id":4349182,"src":"200_1308maristowsunset_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_4349182.html","width":130,"caption":"Sunset","height":86});
															thumbnails[5013883] = clik.newPhoto({"id":5013883,"src":"217_2348meavy_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_5013883.html","width":130,"caption":"River Plym 2","height":86});
															thumbnails[5283827] = clik.newPhoto({"id":5283827,"src":"226_2797yulelogs_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_5283827.html","width":130,"caption":"Yule Logs","height":85});
															thumbnails[5283851] = clik.newPhoto({"id":5283851,"src":"225_2729greatmistor_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_5283851.html","width":130,"caption":"Great Mistor","height":86});
															thumbnails[5283855] = clik.newPhoto({"id":5283855,"src":"225_2712thintree_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_5283855.html","width":130,"caption":"Sunset","height":86});
															thumbnails[4349191] = clik.newPhoto({"id":4349191,"src":"200_1285wheatlines_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_4349191.html","width":93,"caption":"Wheat ears","height":130});
															thumbnails[8873637] = clik.newPhoto({"id":8873637,"src":"283_3815naturalarch_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8873637.html","width":130,"caption":"Armed Knight","height":86});
															thumbnails[3961569] = clik.newPhoto({"id":3961569,"src":"187_0654bluebells_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_3961569.html","width":91,"caption":"Bluebell closeup","height":130});
															thumbnails[5488982] = clik.newPhoto({"id":5488982,"src":"230_3099tree_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_5488982.html","width":86,"caption":"Windswept tree II","height":130});
															thumbnails[7247877] = clik.newPhoto({"id":7247877,"src":"266_1997wemburysunset_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_7247877.html","width":91,"caption":"Wembury Dusk","height":130});
															thumbnails[7314452] = clik.newPhoto({"id":7314452,"src":"270_2370snowyheadstones_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7314452.html","width":91,"caption":"Headstones","height":130});
															thumbnails[7509760] = clik.newPhoto({"id":7509760,"src":"272_2515bridgeslow_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_7509760.html","width":92,"caption":"Postbridge","height":130});
															thumbnails[8178308] = clik.newPhoto({"id":8178308,"src":"283_3737northcoast_thumb.jpg","galleries_id":380370,"server_id":1,"link":"photo_8178308.html","width":92,"caption":"North Coast","height":130});
															thumbnails[8319919] = clik.newPhoto({"id":8319919,"src":"281_3454sheepstor_thumb.jpg","galleries_id":31117,"server_id":1,"link":"photo_8319919.html","width":88,"caption":"Sheepstor","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[442383] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Latest images","link":"gallery_442383.html","maxRecords":0.0,"photoIDs":[8848164.0,8848200.0,8964423.0,8964431.0,9030408.0,9030422.0,9030501.0,9036066.0,9036131.0,9036205.0,9036211.0],"skipIndex":0,"section_code":"gallery","featured_images":9030422.0,"id":442383,"singleSection":false});				  						galleries[31117] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dartmoor Landscapes","link":"gallery_31117.html","maxRecords":0.0,"photoIDs":[4429176.0,5558034.0,6015209.0,6568504.0,7025367.0,7025378.0,7247882.0,7247886.0,7314390.0,7359996.0,7509721.0,7909535.0,7909585.0,8319992.0,8320127.0,8586055.0,8586062.0,8586129.0,8676181.0,8756770.0,8756799.0,8848196.0,1383867.0,1656474.0,2383739.0,3718685.0,3961654.0,4349182.0,5013883.0,5283827.0,5283851.0,5283855.0,4349191.0,3961569.0,5488982.0,7314452.0,7509760.0,8319919.0],"skipIndex":0,"section_code":"gallery","featured_images":"8756799,7909585,7247886,7247882,5558034","id":31117,"singleSection":false});				  						galleries[311610] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dartmoor Square Format","link":"gallery_311610.html","maxRecords":0.0,"photoIDs":[3160358.0,3160368.0,3160375.0,3275875.0,5013746.0,5502823.0,6015223.0,7359975.0,7909432.0],"skipIndex":0,"section_code":"gallery","featured_images":"7909432,5502823,5013746","id":311610,"singleSection":false});				  						galleries[311611] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Panoramas","link":"gallery_311611.html","maxRecords":0.0,"photoIDs":[3275807.0,3429341.0,4963237.0,5502861.0,5502868.0,5503899.0,5953253.0,8319910.0],"skipIndex":0,"section_code":"gallery","featured_images":"8319910,5502868,5502861","id":311611,"singleSection":false});				  						galleries[380370] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coast","link":"gallery_380370.html","maxRecords":0.0,"photoIDs":[7025407.0,7025699.0,7025731.0,7753741.0,7753744.0,7909405.0,7909411.0,8178286.0,8178292.0,8178326.0,8178349.0,8178404.0,8178418.0,8515890.0,8515900.0,8515907.0,8515922.0,8756531.0,8756593.0,8756597.0,8873616.0,8873627.0,8873637.0,7247877.0,8178308.0],"skipIndex":0,"section_code":"gallery","featured_images":"8756593,7909405,7753744","id":380370,"singleSection":false});				  						galleries[86926] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and white","link":"gallery_86926.html","maxRecords":0.0,"photoIDs":[1852365.0,1929293.0,5488879.0,5488903.0,5954548.0,7314445.0,7509917.0],"skipIndex":0,"section_code":"gallery","featured_images":"5488903,5488879","id":86926,"singleSection":false});				  						galleries[31123] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lake District","link":"gallery_31123.html","maxRecords":0.0,"photoIDs":[496958.0,2313787.0,3826207.0,4806742.0,4806774.0,4806813.0,4806940.0,8316991.0,8316998.0,8586144.0,8586227.0,8586432.0,8586441.0,8586452.0],"skipIndex":0,"section_code":"gallery","featured_images":"8586432,8586227,8316998","id":31123,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9036131,9030408,8964423,8848164,8756597,8320127,8178326,7909585';
imageSets[2] = '9030422,8756799,8756593,8586432,8586227,8319910,8316998,7909585,7909432,7909405,7753744,7247886,7247882,5558034,5502868,5502861,5502823,5488903,5488879,5013746';
imageSets[3] = '8848200,8756531';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/janehallin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/janehallin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/janehallin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/janehallin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/janehallin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/janehallin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/janehallin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/janehallin/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 || photos || {})[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 = ': ' + 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 cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').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>Ref: </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>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Jane Hallin </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>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="janehallin@blueyonder.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to basket\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="janehallin@blueyonder.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View basket\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

