window.thumbnails = {};
															thumbnails[8588646] = clik.newPhoto({"id":8588646,"src":"IMG_8137_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588646.html","width":120,"caption":"Talland beach before dawn","height":80});
															thumbnails[8588652] = clik.newPhoto({"id":8588652,"src":"IMG_8158_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588652.html","width":120,"caption":"Talland sunrise-1","height":80});
															thumbnails[8588660] = clik.newPhoto({"id":8588660,"src":"IMG_8181_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588660.html","width":120,"caption":"Talland sunrise-2","height":80});
															thumbnails[8588663] = clik.newPhoto({"id":8588663,"src":"IMG_8877_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588663.html","width":120,"caption":"Pentewan beach, St Austell Bay","height":80});
															thumbnails[8588668] = clik.newPhoto({"id":8588668,"src":"IMG_9010_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588668.html","width":120,"caption":"Trebarwith Strand, North Cornwall","height":80});
															thumbnails[8588675] = clik.newPhoto({"id":8588675,"src":"IMG_9062_1DFB9916-1EC9-DFB6-09D5BDA711A4B0D3_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588675.html","width":120,"caption":"Storm at Peak Rock, Polperro-1","height":80});
															thumbnails[8588683] = clik.newPhoto({"id":8588683,"src":"IMG11415_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588683.html","width":120,"caption":"Storm at Peak Rock, Polperro-2","height":80});
															thumbnails[8588692] = clik.newPhoto({"id":8588692,"src":"IMG11439_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588692.html","width":120,"caption":"Storm at Peak Rock, Polperro-3","height":80});
															thumbnails[8588697] = clik.newPhoto({"id":8588697,"src":"IMG11971_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588697.html","width":120,"caption":"Talland beach reflections","height":80});
															thumbnails[8588721] = clik.newPhoto({"id":8588721,"src":"IMG12206_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588721.html","width":120,"caption":"Looe Island from Port Nadler","height":85});
															thumbnails[8588725] = clik.newPhoto({"id":8588725,"src":"IMG12488_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588725.html","width":120,"caption":"Stream on Talland beach","height":80});
															thumbnails[8588965] = clik.newPhoto({"id":8588965,"src":"IMG_0531_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8588965.html","width":120,"caption":"Approaching Polperro","height":80});
															thumbnails[8588971] = clik.newPhoto({"id":8588971,"src":"IMG_1431_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8588971.html","width":120,"caption":"Low tide in Polperro harbour","height":80});
															thumbnails[8588973] = clik.newPhoto({"id":8588973,"src":"IMG_2288_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8588973.html","width":120,"caption":"Polperro rainbow","height":80});
															thumbnails[8588977] = clik.newPhoto({"id":8588977,"src":"IMG_3919_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8588977.html","width":120,"caption":"Polperro's inner harbour","height":80});
															thumbnails[8588982] = clik.newPhoto({"id":8588982,"src":"IMG_6450_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8588982.html","width":120,"caption":"Father and son","height":80});
															thumbnails[8589048] = clik.newPhoto({"id":8589048,"src":"IMG_8508_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589048.html","width":120,"caption":"Polperro, low tide","height":80});
															thumbnails[8589052] = clik.newPhoto({"id":8589052,"src":"IMG_9454_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589052.html","width":120,"caption":"Moored off Polperro","height":80});
															thumbnails[8589056] = clik.newPhoto({"id":8589056,"src":"IMG10078_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589056.html","width":120,"caption":"Sea pinks and boat","height":80});
															thumbnails[8589061] = clik.newPhoto({"id":8589061,"src":"IMG10094_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589061.html","width":120,"caption":"Boat and reflections","height":180});
															thumbnails[8589082] = clik.newPhoto({"id":8589082,"src":"IMG11380_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589082.html","width":120,"caption":"Clouds over the Camel, North Cornwall","height":80});
															thumbnails[8589126] = clik.newPhoto({"id":8589126,"src":"IMG12269_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589126.html","width":120,"caption":"Polperro lighthouse and sunrise","height":80});
															thumbnails[8589131] = clik.newPhoto({"id":8589131,"src":"IMG14648_1FF2BF0D-1EC9-DFB6-0985F857DBC661AA_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589131.html","width":120,"caption":"Boats in the morning, Polruan","height":80});
															thumbnails[8589167] = clik.newPhoto({"id":8589167,"src":"IMG15138_1FFC9409-1EC9-DFB6-095086E296B7276C_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589167.html","width":120,"caption":"Gig practice, Polruan","height":180});
															thumbnails[8589200] = clik.newPhoto({"id":8589200,"src":"IMG16934_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589200.html","width":120,"caption":"Classic yachts, Fowey","height":80});
															thumbnails[8589206] = clik.newPhoto({"id":8589206,"src":"IMG16943_200C6FEB-1EC9-DFB6-09903ED98D5E6ABB_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589206.html","width":120,"caption":"Donna Capel, Fowey","height":80});
															thumbnails[8589216] = clik.newPhoto({"id":8589216,"src":"IMG18581_2011588B-1EC9-DFB6-09EE2009D9B84A9D_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589216.html","width":120,"caption":"Boat and autumn mist, Looe","height":80});
															thumbnails[8589240] = clik.newPhoto({"id":8589240,"src":"IMG20509_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589240.html","width":120,"caption":"Luggers leaving Looe","height":82});
															thumbnails[8589247] = clik.newPhoto({"id":8589247,"src":"IMG20528_thumb.jpg","galleries_id":50241,"server_id":18,"link":"photo_8589247.html","width":120,"caption":"Lugger in Looe harbour","height":80});
															thumbnails[8589292] = clik.newPhoto({"id":8589292,"src":"IMG_0784_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589292.html","width":120,"caption":"Parson's Cove and Pencarrow Head","height":80});
															thumbnails[8589296] = clik.newPhoto({"id":8589296,"src":"IMG_0464_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589296.html","width":120,"caption":"Looe Island from Hannafore","height":78});
															thumbnails[8589300] = clik.newPhoto({"id":8589300,"src":"IMG_0644_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589300.html","width":120,"caption":"Stone wall and clouds","height":80});
															thumbnails[8589303] = clik.newPhoto({"id":8589303,"src":"IMG_0799_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589303.html","width":120,"caption":"Lantivet beach","height":80});
															thumbnails[8589306] = clik.newPhoto({"id":8589306,"src":"IMG_1400_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589306.html","width":120,"caption":"Talland beach morning","height":80});
															thumbnails[8589310] = clik.newPhoto({"id":8589310,"src":"IMG_2559_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589310.html","width":120,"caption":"Talland beach","height":80});
															thumbnails[8589312] = clik.newPhoto({"id":8589312,"src":"IMG_2875_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589312.html","width":120,"caption":"Peak Rock, Polperro","height":80});
															thumbnails[8589314] = clik.newPhoto({"id":8589314,"src":"IMG_3627_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589314.html","width":120,"caption":"Port Nadler-1","height":85});
															thumbnails[8589318] = clik.newPhoto({"id":8589318,"src":"IMG_3636_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589318.html","width":120,"caption":"Port Nadler-2","height":80});
															thumbnails[8589323] = clik.newPhoto({"id":8589323,"src":"IMG_3758_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589323.html","width":120,"caption":"Sea pinks and salt lines off Polperro","height":80});
															thumbnails[8589327] = clik.newPhoto({"id":8589327,"src":"IMG_4386_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589327.html","width":120,"caption":"Port Nadler-3","height":80});
															thumbnails[8589329] = clik.newPhoto({"id":8589329,"src":"IMG_4604_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589329.html","width":120,"caption":"Port Nadler, Looe Island and luggers","height":80});
															thumbnails[8589331] = clik.newPhoto({"id":8589331,"src":"IMG_5167_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589331.html","width":120,"caption":"Parson's Cove-2","height":80});
															thumbnails[8589332] = clik.newPhoto({"id":8589332,"src":"IMG_5342_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589332.html","width":120,"caption":"Lantic Bay dawn","height":80});
															thumbnails[8589336] = clik.newPhoto({"id":8589336,"src":"IMG_5419_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589336.html","width":120,"caption":"Beach, Lantic Bay","height":80});
															thumbnails[8589337] = clik.newPhoto({"id":8589337,"src":"IMG_5694_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589337.html","width":120,"caption":"Chapel Point, Port Mellon","height":80});
															thumbnails[8589338] = clik.newPhoto({"id":8589338,"src":"IMG_5890_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589338.html","width":120,"caption":"Montbretia at Gunwalloe","height":80});
															thumbnails[8589342] = clik.newPhoto({"id":8589342,"src":"IMG_5987_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589342.html","width":120,"caption":"Boat at Nealand Point, Polperro","height":80});
															thumbnails[8589345] = clik.newPhoto({"id":8589345,"src":"IMG_6006_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589345.html","width":120,"caption":"Beach, Polridmouth","height":80});
															thumbnails[8589351] = clik.newPhoto({"id":8589351,"src":"IMG_6040_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589351.html","width":120,"caption":"Sunrise, Polperro","height":80});
															thumbnails[8589352] = clik.newPhoto({"id":8589352,"src":"IMG_7380_thumb.jpg","galleries_id":50239,"server_id":18,"link":"photo_8589352.html","width":120,"caption":"Lake Rock sunrise","height":80});
															thumbnails[8589362] = clik.newPhoto({"id":8589362,"src":"IMG_7399_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8589362.html","width":120,"caption":"Lake Rock sunrise","height":80});
															thumbnails[8589367] = clik.newPhoto({"id":8589367,"src":"IMG_4303_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8589367.html","width":120,"caption":"Kilmar tor","height":80});
															thumbnails[8589372] = clik.newPhoto({"id":8589372,"src":"IMG_4480_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8589372.html","width":120,"caption":"Hayfield and poppies","height":80});
															thumbnails[8589405] = clik.newPhoto({"id":8589405,"src":"IMG_6077_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8589405.html","width":120,"caption":"Bales, sheep and clouds","height":80});
															thumbnails[8589408] = clik.newPhoto({"id":8589408,"src":"IMG_6177_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8589408.html","width":120,"caption":"River Lynher reflections","height":80});
															thumbnails[8589410] = clik.newPhoto({"id":8589410,"src":"IMG_7606_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8589410.html","width":120,"caption":"Red rocks at dawn, Talland","height":80});
															thumbnails[8589413] = clik.newPhoto({"id":8589413,"src":"IMG_7650_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8589413.html","width":120,"caption":"Lake Rock dawn-1","height":80});
															thumbnails[8589419] = clik.newPhoto({"id":8589419,"src":"IMG_5581_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8589419.html","width":120,"caption":"Dawn shadows, Rough Tor","height":80});
															thumbnails[8589422] = clik.newPhoto({"id":8589422,"src":"IMG13077_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8589422.html","width":120,"caption":"Dry stone wall, Leskernick","height":80});
															thumbnails[8590057] = clik.newPhoto({"id":8590057,"src":"IMG13084_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590057.html","width":120,"caption":"Granite and trees","height":180});
															thumbnails[8590065] = clik.newPhoto({"id":8590065,"src":"IMG13147_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590065.html","width":120,"caption":"Leskernick farm","height":69});
															thumbnails[8590067] = clik.newPhoto({"id":8590067,"src":"IMG13199_EA3B88E8-24E8-5EC4-4F4481E9D1816024_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590067.html","width":120,"caption":"Foxgloves at Colliford lake","height":80});
															thumbnails[8590072] = clik.newPhoto({"id":8590072,"src":"IMG13419_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590072.html","width":120,"caption":"Wooda Bridge","height":80});
															thumbnails[8590076] = clik.newPhoto({"id":8590076,"src":"IMG14495_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590076.html","width":120,"caption":"Leskernick from Codda Downs","height":80});
															thumbnails[8590078] = clik.newPhoto({"id":8590078,"src":"IMG15230_EA3D7C4E-24E8-5EC4-4FE828581A1E711A_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590078.html","width":120,"caption":"Golitha-1","height":80});
															thumbnails[8590081] = clik.newPhoto({"id":8590081,"src":"IMG15295_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590081.html","width":120,"caption":"Golitha-2","height":180});
															thumbnails[8590084] = clik.newPhoto({"id":8590084,"src":"IMG15648_EA3F0B8B-24E8-5EC4-4F634FE2C178AD55_thumb.jpg","galleries_id":50242,"server_id":18,"link":"photo_8590084.html","width":120,"caption":"Cardinham from Bury Castle","height":80});
															thumbnails[8590094] = clik.newPhoto({"id":8590094,"src":"IMG_7461_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590094.html","width":120,"caption":"Largin woods","height":80});
															thumbnails[8590099] = clik.newPhoto({"id":8590099,"src":"IMG_7565_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590099.html","width":120,"caption":"West Looe estuary","height":80});
															thumbnails[8590103] = clik.newPhoto({"id":8590103,"src":"IMG_9799_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590103.html","width":120,"caption":"Bluebells above Sandplace","height":180});
															thumbnails[8590106] = clik.newPhoto({"id":8590106,"src":"IMG14550_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590106.html","width":120,"caption":"River Fowey in the Glynn Valley","height":80});
															thumbnails[8590110] = clik.newPhoto({"id":8590110,"src":"IMG14744_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590110.html","width":120,"caption":"Penquite Quay, Fowey estuary","height":80});
															thumbnails[8590116] = clik.newPhoto({"id":8590116,"src":"IMG15684_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590116.html","width":120,"caption":"River Fowey above Treverbyn Bridge","height":80});
															thumbnails[8590120] = clik.newPhoto({"id":8590120,"src":"IMG15904_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590120.html","width":120,"caption":"Old boat, Penpoll Creek","height":80});
															thumbnails[8590123] = clik.newPhoto({"id":8590123,"src":"IMG16749_EA455783-24E8-5EC4-4F8A320F48EDB640_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590123.html","width":120,"caption":"River Tiddy","height":80});
															thumbnails[8590127] = clik.newPhoto({"id":8590127,"src":"IMG17719_EA45BB3F-24E8-5EC4-4F444F0102AC002E_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590127.html","width":120,"caption":"Steam train on the Looe Valley line","height":80});
															thumbnails[8590130] = clik.newPhoto({"id":8590130,"src":"IMG18727_EA463C47-24E8-5EC4-4F335FD03C8266F2_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590130.html","width":120,"caption":"Empty seat and tree","height":80});
															thumbnails[8590132] = clik.newPhoto({"id":8590132,"src":"IMG18907_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590132.html","width":120,"caption":"Frosty morning above Watergate","height":80});
															thumbnails[8590134] = clik.newPhoto({"id":8590134,"src":"IMG20132_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590134.html","width":120,"caption":"Bluebells above Sandplace-2","height":67});
															thumbnails[8590136] = clik.newPhoto({"id":8590136,"src":"IMG20147_thumb.jpg","galleries_id":50243,"server_id":18,"link":"photo_8590136.html","width":120,"caption":"Ramsons, above Sandplace","height":80});
															thumbnails[8590142] = clik.newPhoto({"id":8590142,"src":"IMG_7672_EA49105A-24E8-5EC4-4F18F46DEAF465EF_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590142.html","width":120,"caption":"Lake Rock dawn-2","height":85});
															thumbnails[8590144] = clik.newPhoto({"id":8590144,"src":"IMG_7851_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590144.html","width":120,"caption":"Sunrise below Chapel cliffs-1","height":80});
															thumbnails[8590146] = clik.newPhoto({"id":8590146,"src":"IMG_7869_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590146.html","width":120,"caption":"Sunrise below Chapel cliffs-2","height":180});
															thumbnails[8590148] = clik.newPhoto({"id":8590148,"src":"IMG_8013_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590148.html","width":120,"caption":"Dawn, Lantivet beach","height":80});
															thumbnails[8590150] = clik.newPhoto({"id":8590150,"src":"IMG_8106_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590150.html","width":120,"caption":"Talland sunrise-1","height":80});
															thumbnails[8590152] = clik.newPhoto({"id":8590152,"src":"IMG_8127_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590152.html","width":120,"caption":"Talland sunrise-2","height":80});
															thumbnails[8590164] = clik.newPhoto({"id":8590164,"src":"IMG_8196_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590164.html","width":120,"caption":"Looe Island from Port Nadler-1","height":156});
															thumbnails[8590188] = clik.newPhoto({"id":8590188,"src":"IMG_8588_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590188.html","width":120,"caption":"Whitsand Bay","height":80});
															thumbnails[8590211] = clik.newPhoto({"id":8590211,"src":"IMG_9062_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590211.html","width":120,"caption":"Peak Rock storm","height":80});
															thumbnails[8590216] = clik.newPhoto({"id":8590216,"src":"IMG11994_EA4D2C9E-24E8-5EC4-4F7FD2A9020878E7_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590216.html","width":120,"caption":"Sunrise reflections, Talland","height":80});
															thumbnails[8590219] = clik.newPhoto({"id":8590219,"src":"IMG12020_EA4D8250-24E8-5EC4-4F4003DC91151498_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590219.html","width":120,"caption":"Rocks and swell at dawn, Lake Rock","height":170});
															thumbnails[8590221] = clik.newPhoto({"id":8590221,"src":"IMG12206_EA4DF118-24E8-5EC4-4FD266EA2361473D_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590221.html","width":120,"caption":"Looe Island from Port Nadler-2","height":85});
															thumbnails[8590223] = clik.newPhoto({"id":8590223,"src":"IMG12229_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590223.html","width":120,"caption":"Sunrise below Chapel cliffs-3","height":80});
															thumbnails[8590224] = clik.newPhoto({"id":8590224,"src":"IMG12493_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590224.html","width":120,"caption":"Stream on Talland beach","height":180});
															thumbnails[8590239] = clik.newPhoto({"id":8590239,"src":"IMG18674_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590239.html","width":120,"caption":"Friends, Seaton beach","height":80});
															thumbnails[8590262] = clik.newPhoto({"id":8590262,"src":"IMG19706_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590262.html","width":120,"caption":"Talland Bay and boat","height":80});
															thumbnails[8590288] = clik.newPhoto({"id":8590288,"src":"IMG21027_thumb.jpg","galleries_id":50245,"server_id":18,"link":"photo_8590288.html","width":120,"caption":"Golfers above Portwrinkle","height":80});
															thumbnails[8975633] = clik.newPhoto({"id":8975633,"src":"Image01_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975633.html","width":120,"caption":"Swallow on wire","height":178});
															thumbnails[8975638] = clik.newPhoto({"id":8975638,"src":"Image02_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975638.html","width":120,"caption":"Sparrow on Escallonia","height":180});
															thumbnails[8975639] = clik.newPhoto({"id":8975639,"src":"Image03_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975639.html","width":120,"caption":"Inside the church of St Ildierna, Lansallos","height":80});
															thumbnails[8975650] = clik.newPhoto({"id":8975650,"src":"Image04_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975650.html","width":120,"caption":"Camellias and church, Lanhydrock","height":180});
															thumbnails[8588635] = clik.newPhoto({"id":8588635,"src":"IMG_2077_thumb.jpg","galleries_id":410802,"server_id":18,"link":"photo_8588635.html","width":120,"caption":"Lantic Bay","height":80});
															thumbnails[8975661] = clik.newPhoto({"id":8975661,"src":"Image05_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975661.html","width":120,"caption":"Gig practice on Pont Pill, Polruan","height":180});
															thumbnails[8975671] = clik.newPhoto({"id":8975671,"src":"Image06_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975671.html","width":120,"caption":"Father and son on the Banjo pier, Looe","height":80});
															thumbnails[8975680] = clik.newPhoto({"id":8975680,"src":"Image07_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975680.html","width":120,"caption":"Winter sunrise at Lantivet beach","height":80});
															thumbnails[8975683] = clik.newPhoto({"id":8975683,"src":"Image08_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975683.html","width":120,"caption":"Winter sunrise at Lake Rock, Talland Bay","height":170});
															thumbnails[8975687] = clik.newPhoto({"id":8975687,"src":"Image09_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975687.html","width":120,"caption":"Golitha Falls","height":180});
															thumbnails[8975695] = clik.newPhoto({"id":8975695,"src":"Image10_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975695.html","width":120,"caption":"Waterfall at St Cadix, Penpoll Creek","height":180});
															thumbnails[8975704] = clik.newPhoto({"id":8975704,"src":"Panel_thumb.jpg","galleries_id":472607,"server_id":18,"link":"photo_8975704.html","width":120,"caption":"The panel","height":50});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[50239] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coast-1","link":"gallery_50239.html","maxRecords":0.0,"photoIDs":[8589292.0,8589296.0,8589300.0,8589303.0,8589306.0,8589310.0,8589312.0,8589314.0,8589318.0,8589323.0,8589327.0,8589329.0,8589331.0,8589332.0,8589336.0,8589337.0,8589338.0,8589342.0,8589345.0,8589351.0,8589352.0],"skipIndex":0,"section_code":"gallery","featured_images":"8589352,8589351,8589345,8589342,8589338,8589337,8589336,8589332,8589331,8589329","id":50239,"singleSection":false});				  						galleries[50245] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coast-2","link":"gallery_50245.html","maxRecords":0.0,"photoIDs":[8589362.0,8589410.0,8589413.0,8590142.0,8590144.0,8590146.0,8590148.0,8590150.0,8590152.0,8590164.0,8590188.0,8590211.0,8590216.0,8590219.0,8590221.0,8590223.0,8590224.0,8590239.0,8590262.0,8590288.0],"skipIndex":0,"section_code":"gallery","featured_images":"8590288,8590262,8590239,8590224,8590223,8590221,8590219,8590216,8590211,8590188","id":50245,"singleSection":false});				  						galleries[50241] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Harbours","link":"gallery_50241.html","maxRecords":0.0,"photoIDs":[8588965.0,8588971.0,8588973.0,8588977.0,8588982.0,8589048.0,8589052.0,8589056.0,8589061.0,8589082.0,8589126.0,8589131.0,8589167.0,8589200.0,8589206.0,8589216.0,8589240.0,8589247.0],"skipIndex":0,"section_code":"gallery","featured_images":"8589247,8589240,8589216,8589206,8589200,8589167,8589131,8589126,8589082,8589061","id":50241,"singleSection":false});				  						galleries[50242] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bodmin Moor","link":"gallery_50242.html","maxRecords":0.0,"photoIDs":[8589367.0,8589419.0,8589422.0,8590057.0,8590065.0,8590067.0,8590072.0,8590076.0,8590078.0,8590081.0,8590084.0],"skipIndex":0,"section_code":"gallery","featured_images":"8590084,8590081,8590078,8590076,8590072,8590067,8590065,8590057,8589422,8589419","id":50242,"singleSection":false});				  						galleries[50243] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rivers and countryside","link":"gallery_50243.html","maxRecords":0.0,"photoIDs":[8589372.0,8589405.0,8589408.0,8590094.0,8590099.0,8590103.0,8590106.0,8590110.0,8590116.0,8590120.0,8590123.0,8590127.0,8590130.0,8590132.0,8590134.0,8590136.0],"skipIndex":0,"section_code":"gallery","featured_images":"8590136,8590134,8590132,8590130,8590127,8590123,8590120,8590116,8590110,8590106","id":50243,"singleSection":false});				  						galleries[410802] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black-and-white","link":"gallery_410802.html","maxRecords":0.0,"photoIDs":[8588646.0,8588652.0,8588660.0,8588663.0,8588668.0,8588675.0,8588683.0,8588692.0,8588697.0,8588721.0,8588725.0,8588635.0],"skipIndex":0,"section_code":"gallery","featured_images":"8588725,8588721,8588697,8588692,8588683,8588675,8588668,8588663,8588660,8588652","id":410802,"singleSection":false});				  						galleries[472607] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LRPS panel","link":"gallery_472607.html","maxRecords":0.0,"photoIDs":[8975633.0,8975638.0,8975639.0,8975650.0,8975661.0,8975671.0,8975680.0,8975683.0,8975687.0,8975695.0,8975704.0],"skipIndex":0,"section_code":"gallery","featured_images":8975704.0,"id":472607,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8975704,8975695,8975687,8975683,8975680,8975671,8975661,8975650,8975639,8975638,8975633,8590288,8590262,8590239,8590224,8590223,8590221,8590219,8590216,8590211,8590188,8590164,8590152,8590150,8590148,8590146,8590144,8590142,8590136,8590134,8590132,8590130,8590127,8590123,8590120,8590116,8590110,8590106,8590103,8590099,8590094,8590084,8590081,8590078,8590076,8590072,8590067,8590065,8590057,8589422';
imageSets[2] = '8975704';
imageSets[3] = '8975704,8975695,8975687,8975683,8975680,8975671,8975661,8975650,8975639,8975638,8975633,8590288,8590262,8590239,8590224,8590223,8590221,8590219,8590216,8590211,8590188,8590164,8590152,8590150,8590148,8590146,8590144,8590142,8590136,8590134,8590132,8590130,8590127,8590123,8590120,8590116,8590110,8590106,8590103,8590099,8590094,8590084,8590081,8590078,8590076,8590072,8590067,8590065,8590057,8589422';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lightpix/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lightpix/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lightpix/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lightpix/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lightpix/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lightpix/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lightpix/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lightpix/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 = 'Tremorvapix: ' + 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>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				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>Order this print:</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.item_price !== '') {
																		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="lightp@macace.net">';
					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 cart\" 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="lightp@macace.net">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" 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;
	}
}

			

