window.thumbnails = {};
															thumbnails[4396429] = clik.newPhoto({"id":4396429,"src":"P1050459_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4396429.html","width":130,"caption":"Haybales And Beacons II","height":90});
															thumbnails[4396515] = clik.newPhoto({"id":4396515,"src":"img128_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_4396515.html","width":130,"caption":"\"Porthgain Harbour\"<br>\r\nNorth Pembrokeshire","height":88});
															thumbnails[4396517] = clik.newPhoto({"id":4396517,"src":"37530668957a7efa7462dbd6a795f2edcfe251b74b1e39c1b657c0cead39e33302f5c5a11_thumb.jpg","galleries_id":257832,"server_id":18,"link":"photo_4396517.html","width":130,"caption":"\"Herefordshire Cottage, Hampton Bishop\"","height":98});
															thumbnails[4396558] = clik.newPhoto({"id":4396558,"src":"img081_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_4396558.html","width":130,"caption":"\"Waiting For The Tide, Fishguard Harbour\"","height":89});
															thumbnails[4396878] = clik.newPhoto({"id":4396878,"src":"P1030801_thumb.JPG","galleries_id":257832,"server_id":18,"link":"photo_4396878.html","width":130,"caption":"\"Herefordshire Farmhouse\"","height":84});
															thumbnails[4396904] = clik.newPhoto({"id":4396904,"src":"P1050188_thumb.JPG","galleries_id":257832,"server_id":18,"link":"photo_4396904.html","width":130,"caption":"\"Herefordshire Farmhouse\"","height":76});
															thumbnails[4396905] = clik.newPhoto({"id":4396905,"src":"P1050446_thumb.JPG","galleries_id":257832,"server_id":18,"link":"photo_4396905.html","width":130,"caption":"\"Farmhouse Near Eardisland\"","height":93});
															thumbnails[4397035] = clik.newPhoto({"id":4397035,"src":"P1020312_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4397035.html","width":130,"caption":"\"Summers Afternoon, Brecon Beacons\"","height":80});
															thumbnails[4397040] = clik.newPhoto({"id":4397040,"src":"P1020484_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4397040.html","width":130,"caption":"\"Snow On The Beacons\"","height":78});
															thumbnails[4397041] = clik.newPhoto({"id":4397041,"src":"P1050335_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4397041.html","width":130,"caption":"\"Haybales And Beacons\"","height":89});
															thumbnails[4397042] = clik.newPhoto({"id":4397042,"src":"P1050451_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4397042.html","width":130,"caption":"\"Brecon Beacons Farmhouse\"","height":93});
															thumbnails[4397044] = clik.newPhoto({"id":4397044,"src":"P1050492_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4397044.html","width":130,"caption":"\"Summer Meadow, Brecon Beacons\"","height":81});
															thumbnails[4397045] = clik.newPhoto({"id":4397045,"src":"P1050544_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4397045.html","width":130,"caption":"\"Passing Light, Brecon Beacons\"","height":80});
															thumbnails[4397066] = clik.newPhoto({"id":4397066,"src":"img072_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_4397066.html","width":130,"caption":"\"Fishing Boats At Solva\"","height":68});
															thumbnails[4397067] = clik.newPhoto({"id":4397067,"src":"img075_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_4397067.html","width":130,"caption":"\"Abereiddy Cottages\"","height":74});
															thumbnails[4397069] = clik.newPhoto({"id":4397069,"src":"img073_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_4397069.html","width":130,"caption":"\"Road To Carn Llidi\"<br>\r\nNorth Pembrokeshire","height":81});
															thumbnails[4397071] = clik.newPhoto({"id":4397071,"src":"img1221_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_4397071.html","width":130,"caption":"\"Preseli Cottage\"<br>\r\nNorth Pembrokeshire","height":89});
															thumbnails[4397072] = clik.newPhoto({"id":4397072,"src":"P1050340_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4397072.html","width":130,"caption":"\"High And Dry, Fishguard Harbour\"","height":88});
															thumbnails[4397074] = clik.newPhoto({"id":4397074,"src":"P1050333_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4397074.html","width":130,"caption":"\"Fishguard Harbour\"","height":88});
															thumbnails[4397075] = clik.newPhoto({"id":4397075,"src":"img076_thumb.jpg","galleries_id":257823,"server_id":18,"link":"photo_4397075.html","width":130,"caption":"\"Pen Y Fan From Mynydd Illtyd\"","height":84});
															thumbnails[4397076] = clik.newPhoto({"id":4397076,"src":"img077_thumb.jpg","galleries_id":257823,"server_id":18,"link":"photo_4397076.html","width":130,"caption":"\"Brecon Beacons From Mynnid Illtyd\"","height":79});
															thumbnails[4397077] = clik.newPhoto({"id":4397077,"src":"img078_thumb.jpg","galleries_id":257823,"server_id":18,"link":"photo_4397077.html","width":130,"caption":"\"Brecon Beacons From Llanfrynach\"","height":82});
															thumbnails[4397078] = clik.newPhoto({"id":4397078,"src":"img079_thumb.jpg","galleries_id":257823,"server_id":18,"link":"photo_4397078.html","width":130,"caption":"\"Brecon Beacons From The Upper Neuadd\"","height":78});
															thumbnails[4397079] = clik.newPhoto({"id":4397079,"src":"img071_thumb.jpg","galleries_id":257823,"server_id":18,"link":"photo_4397079.html","width":130,"caption":"\"Sunlight Over The Beacons\"","height":80});
															thumbnails[4398379] = clik.newPhoto({"id":4398379,"src":"P1020110_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4398379.html","width":130,"caption":"Low Tide At Solva Harbour","height":41});
															thumbnails[4402013] = clik.newPhoto({"id":4402013,"src":"P10501892_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402013.html","width":130,"caption":"\"Trehowell Farm\"<br>\r\nNorth Pembrokeshire","height":79});
															thumbnails[4402034] = clik.newPhoto({"id":4402034,"src":"P1060085_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402034.html","width":130,"caption":"\"Pembrokeshire Cottage\"","height":94});
															thumbnails[4402038] = clik.newPhoto({"id":4402038,"src":"P1060095_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402038.html","width":130,"caption":"\"Road To Carn Llidi\"<br>\r\nNorth Pembrokeshire","height":80});
															thumbnails[4402044] = clik.newPhoto({"id":4402044,"src":"P1060098_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402044.html","width":130,"caption":"\"Farm Near St.Davids\"<br>\r\nNorth Pembrokeshire","height":94});
															thumbnails[4402048] = clik.newPhoto({"id":4402048,"src":"P1060099_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402048.html","width":130,"caption":"\"Llanferran Farm\"<br>\r\nNorth Pembrokeshire","height":81});
															thumbnails[4402051] = clik.newPhoto({"id":4402051,"src":"P10601071_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402051.html","width":130,"caption":"\"Carew Castle\"<br>\r\nSouth Pembrokeshire","height":41});
															thumbnails[4402060] = clik.newPhoto({"id":4402060,"src":"P1060110_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402060.html","width":130,"caption":"\"Carew Castle\"<br>\r\nSouth Pembrokeshire","height":97});
															thumbnails[4402063] = clik.newPhoto({"id":4402063,"src":"P1060114_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402063.html","width":130,"caption":"\"Strumble Lighthouse\"<br>\r\nNorth Pembrokeshire","height":78});
															thumbnails[4402066] = clik.newPhoto({"id":4402066,"src":"P1060116_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402066.html","width":130,"caption":"\"Coastal Cottage, Porthclais\"<br>\r\n","height":86});
															thumbnails[4402071] = clik.newPhoto({"id":4402071,"src":"P1060119_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402071.html","width":130,"caption":"\"Cottage At Porthclais\"","height":73});
															thumbnails[4402075] = clik.newPhoto({"id":4402075,"src":"P1060121_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402075.html","width":130,"caption":"\"Pembrokeshire Thatched Cottage\"","height":90});
															thumbnails[4402078] = clik.newPhoto({"id":4402078,"src":"P1060123_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402078.html","width":130,"caption":"\"The Watch Cottage, Llanrhian\"<br>\r\nNorth Pembrokeshire","height":69});
															thumbnails[4402093] = clik.newPhoto({"id":4402093,"src":"P1020645_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402093.html","width":130,"caption":"\"Misty Morning At Solva Harbour\"","height":88});
															thumbnails[4402098] = clik.newPhoto({"id":4402098,"src":"P1060139_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4402098.html","width":130,"caption":"\"Boats At Porthclais Harbour\"<br>\r\nNorth Pembrokeshire","height":82});
															thumbnails[4402130] = clik.newPhoto({"id":4402130,"src":"P1020221_thumb.JPG","galleries_id":258059,"server_id":18,"link":"photo_4402130.html","width":130,"caption":"\"Cotswold Cottage\"","height":94});
															thumbnails[4402157] = clik.newPhoto({"id":4402157,"src":"P1050725_thumb.JPG","galleries_id":257832,"server_id":18,"link":"photo_4402157.html","width":130,"caption":"\"Derelict Barn, Herefordshire\"","height":82});
															thumbnails[4406118] = clik.newPhoto({"id":4406118,"src":"P1060143_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4406118.html","width":130,"caption":"\"Snow On The Peaks\", Brecon Beacons","height":89});
															thumbnails[4454028] = clik.newPhoto({"id":4454028,"src":"P1060164_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4454028.html","width":130,"caption":"Pen-Y-FanFrom Upper Neuadd Reservoir","height":89});
															thumbnails[4465006] = clik.newPhoto({"id":4465006,"src":"P1050482_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4465006.html","width":130,"caption":"\"Pembrokeshire Farm\"","height":78});
															thumbnails[4481356] = clik.newPhoto({"id":4481356,"src":"img154_thumb.jpg","galleries_id":257823,"server_id":18,"link":"photo_4481356.html","width":130,"caption":"\"Moorland Stream\", Brecon Beacons","height":74});
															thumbnails[4492547] = clik.newPhoto({"id":4492547,"src":"P1060278_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4492547.html","width":130,"caption":"\"View From The Beacons\"","height":88});
															thumbnails[4492548] = clik.newPhoto({"id":4492548,"src":"P1060286_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_4492548.html","width":130,"caption":"Moorland Pond Brecon Beacons","height":68});
															thumbnails[4655852] = clik.newPhoto({"id":4655852,"src":"img107_thumb.jpg","galleries_id":268444,"server_id":18,"link":"photo_4655852.html","width":130,"caption":"\"Appledore\"North Devon","height":86});
															thumbnails[4775286] = clik.newPhoto({"id":4775286,"src":"P1060141_thumb.JPG","galleries_id":268444,"server_id":18,"link":"photo_4775286.html","width":130,"caption":"\"Dartmoor Farmhouse\"","height":81});
															thumbnails[5046043] = clik.newPhoto({"id":5046043,"src":"P1070758_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_5046043.html","width":130,"caption":"\"Cottage at Garn Fawr\"<br>\r\nNorth Pembrokeshire<br>\r\n","height":79});
															thumbnails[5305788] = clik.newPhoto({"id":5305788,"src":"img156_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_5305788.html","width":130,"caption":"\"Evening at Solva Harbour\"","height":127});
															thumbnails[5305855] = clik.newPhoto({"id":5305855,"src":"CNV00011_thumb.jpg","galleries_id":257824,"server_id":18,"link":"photo_5305855.html","width":130,"caption":"\"Cottages at Aberfelin\"<br>\r\nNorth Pembrokeshire<br>\r\n<br>\r\n","height":92});
															thumbnails[5354915] = clik.newPhoto({"id":5354915,"src":"P1080538_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_5354915.html","width":130,"caption":"\"Misty Morning, Angle\"","height":184});
															thumbnails[6543969] = clik.newPhoto({"id":6543969,"src":"P1040980_thumb.JPG","galleries_id":268444,"server_id":18,"link":"photo_6543969.html","width":130,"caption":"Passing LightDartmoor","height":98});
															thumbnails[7177084] = clik.newPhoto({"id":7177084,"src":"P1070265_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_7177084.html","width":130,"caption":"Passing Light Brecon Beacons","height":89});
															thumbnails[7177085] = clik.newPhoto({"id":7177085,"src":"P1070262_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_7177085.html","width":130,"caption":"Beacons From The Roman Road","height":89});
															thumbnails[7228966] = clik.newPhoto({"id":7228966,"src":"P1050324_thumb.JPG","galleries_id":268444,"server_id":18,"link":"photo_7228966.html","width":130,"caption":"Postbridge Dartmoor","height":98});
															thumbnails[8104072] = clik.newPhoto({"id":8104072,"src":"P1100329_thumb.JPG","galleries_id":257823,"server_id":18,"link":"photo_8104072.html","width":130,"caption":"Beacons From The Roman Road","height":98});
															thumbnails[8416307] = clik.newPhoto({"id":8416307,"src":"4318356135d13f9073e3b5f5c16be744878a957ce89b6e491bb90f12051a341682fde78a1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_8416307.html","width":130,"caption":"St.Clement","height":86});
															thumbnails[4958543] = clik.newPhoto({"id":4958543,"src":"P1070672_thumb.jpg","galleries_id":268444,"server_id":18,"link":"photo_4958543.html","width":130,"caption":"\"Moorland Farm\"<br>\r\n Dartmoor","height":82});
															thumbnails[7432341] = clik.newPhoto({"id":7432341,"src":"430393062f5fcb9a021defdac3950cb0b970e0bae844d99aa16709cb3ce658592daf023e1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_7432341.html","width":130,"caption":"St. Clement","height":123});
															thumbnails[7997000] = clik.newPhoto({"id":7997000,"src":"3906880576ec3e2bb3c30930648c7aa2e01055d480e75e4f022e36f539b1cd695c5353cf1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_7997000.html","width":130,"caption":"St.Clement","height":96});
															thumbnails[9095767] = clik.newPhoto({"id":9095767,"src":"469218555adeb577c1d70bd87b21d15c4635daddcc1192569a21c7f0eafe9ee98e1ffbad11_1.jpg","galleries_id":268444,"server_id":37,"link":"photo_9095767.html","width":130,"caption":"Ponsworthy, Dartmoor","height":81});
															thumbnails[4673723] = clik.newPhoto({"id":4673723,"src":"P1060383_thumb.JPG","galleries_id":257824,"server_id":18,"link":"photo_4673723.html","width":130,"caption":"\"Abercastle\"North Pembrokeshire","height":88});
															thumbnails[5276078] = clik.newPhoto({"id":5276078,"src":"P1040213_thumb.JPG","galleries_id":257828,"server_id":18,"link":"photo_5276078.html","width":130,"caption":"Zennor ChurchWest Cornwall.","height":84});
															thumbnails[7112504] = clik.newPhoto({"id":7112504,"src":"890844234e32b3c931202cb4a9c349c6c381f481385786201757f59e3b6b6b4317690df21_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_7112504.html","width":130,"caption":"Cottages At Penberth","height":96});
															thumbnails[4648589] = clik.newPhoto({"id":4648589,"src":"300035735ff29b4a12823e85ee442f1d2988089e082341c24c5ce0eeb1e2f6b0acc6c35b1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4648589.html","width":130,"caption":"Polperro Harbour","height":84});
															thumbnails[4557981] = clik.newPhoto({"id":4557981,"src":"56360347e36e7e50512741a235bca74aac7ce367e91b66175ca4cf31825ae359f663b3a91_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4557981.html","width":130,"caption":"Zennor Village, Cornwall","height":96});
															thumbnails[4477203] = clik.newPhoto({"id":4477203,"src":"img150_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4477203.html","width":130,"caption":"Awaiting The Tide<br>\r\nPolperro Harbour","height":95});
															thumbnails[4400466] = clik.newPhoto({"id":4400466,"src":"9963314105849e80fd6fc116e4cc4d598831c71256299bdd50689d81b32e6a0a7704512e1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400466.html","width":130,"caption":"Passing Light, St.Ives","height":98});
															thumbnails[6091202] = clik.newPhoto({"id":6091202,"src":"34487188fe59409528de7a1f54c970b2d2f0c7d573930b91bb081cd6c0af5b5e7454acb61_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_6091202.html","width":130,"caption":"Zennor Village West Cornwall","height":98});
															thumbnails[4396996] = clik.newPhoto({"id":4396996,"src":"36654125aa1a3b4f6d5e312a0c2f1542a508b25cf9b7533b1ae6dcfb85e43209714761db1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4396996.html","width":130,"caption":"Passing Light, Penberth Cove","height":85});
															thumbnails[4396492] = clik.newPhoto({"id":4396492,"src":"900095903580a5c596d97600e516a0492d1a3b8bb32b3d04b9ea184cbd6f68ea7d2ff8cc1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4396492.html","width":130,"caption":"A Fine Morning, St.Ives Harbour","height":85});
															thumbnails[4477180] = clik.newPhoto({"id":4477180,"src":"img145_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4477180.html","width":130,"caption":"Polperro Harbour","height":83});
															thumbnails[4396995] = clik.newPhoto({"id":4396995,"src":"98420262855d8ca37bdafad7e5269e7d4190d3f73310e489e1673b2f81fcf42f3ce0d17f1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4396995.html","width":130,"caption":"St.Ives Harbour","height":95});
															thumbnails[4400363] = clik.newPhoto({"id":4400363,"src":"P1060094_thumb.JPG","galleries_id":257828,"server_id":18,"link":"photo_4400363.html","width":130,"caption":"Mousehole Harbour","height":93});
															thumbnails[4400369] = clik.newPhoto({"id":4400369,"src":"375556493c38635e622494ed04772de93a03fef7442a16009ae3a1daf186b84dac4e860c1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400369.html","width":130,"caption":"Priests Cove, Cape Cornwall","height":81});
															thumbnails[4400367] = clik.newPhoto({"id":4400367,"src":"809250188a82b32ee583f1c5a7c63fc85fbf81d18f093495b03c34f6b23765b4524067de1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400367.html","width":130,"caption":"Polperro Fishing Boats","height":83});
															thumbnails[4400366] = clik.newPhoto({"id":4400366,"src":"04803522ea206b49ea21efc0ab94c1bdf771ae32c65589c3a3b7d529b24d100dd05bdde5112_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400366.html","width":130,"caption":"St.Ives Fishing Boats","height":93});
															thumbnails[4400365] = clik.newPhoto({"id":4400365,"src":"P1060101_thumb.JPG","galleries_id":257828,"server_id":18,"link":"photo_4400365.html","width":130,"caption":"Boats At Mounts Bay, Cornwall","height":91});
															thumbnails[4400355] = clik.newPhoto({"id":4400355,"src":"49458741c0c079f07a86509e9fbb1fb842c014333eadf8b90747e30e1662b215125936f81_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400355.html","width":130,"caption":"Low Tide At Polperro","height":87});
															thumbnails[4400360] = clik.newPhoto({"id":4400360,"src":"963195143e7673e2c97b7af39d57c404e8783bb6ac85aa71473951bf975032ae7c5918f41_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400360.html","width":130,"caption":"The Pandora Inn, Cornwall","height":84});
															thumbnails[4400371] = clik.newPhoto({"id":4400371,"src":"P1060135_thumb.JPG","galleries_id":257828,"server_id":18,"link":"photo_4400371.html","width":130,"caption":"Wheal Coates Mine, Cornwall","height":85});
															thumbnails[4400372] = clik.newPhoto({"id":4400372,"src":"28128936bcc36317b370e1d107595abac3343a8216df3a9c8df52f65bb69fbc429200a311_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4400372.html","width":130,"caption":"Wheal Friendly Mine, St.Agnes","height":85});
															thumbnails[4396999] = clik.newPhoto({"id":4396999,"src":"78389642ff00b54c414acfcfea0d09b4b2dfd3848ef2a1b074562df45d6755b696eefdf41_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_4396999.html","width":130,"caption":"Wheal Trewavas Mines, Cornwall","height":90});
															thumbnails[8478944] = clik.newPhoto({"id":8478944,"src":"98587000195568c7c746e9b59180cfa988bcbbc32f1110235e832e3fe93c181b5e1592d51_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_8478944.html","width":130,"caption":"Penberth Cove","height":80});
															thumbnails[8478948] = clik.newPhoto({"id":8478948,"src":"334399826d5e8a4d265bf9c3a531cb789f236fe5ac0f618aaa6d0b4540e09e703b68e1bd1_thumb.jpg","galleries_id":257828,"server_id":18,"link":"photo_8478948.html","width":130,"caption":"Sennen Cove","height":97});
															thumbnails[8577121] = clik.newPhoto({"id":8577121,"src":"VisualiseCAC748GR_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577121.html","width":130,"caption":"Tenby Harbour","height":100});
															thumbnails[8577136] = clik.newPhoto({"id":8577136,"src":"Visualise11_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577136.html","width":130,"caption":"Tenby Harbour","height":104});
															thumbnails[8577145] = clik.newPhoto({"id":8577145,"src":"VisualiseCAIZSYEO_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577145.html","width":130,"caption":"Strumble Lighthouse","height":100});
															thumbnails[8577158] = clik.newPhoto({"id":8577158,"src":"VisualiseCAGUG3D7_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577158.html","width":130,"caption":"Cottage At Garn Fawr","height":100});
															thumbnails[8577209] = clik.newPhoto({"id":8577209,"src":"VisualiseCADZX6N6_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577209.html","width":130,"caption":"Penporthclais Cottage","height":100});
															thumbnails[8577213] = clik.newPhoto({"id":8577213,"src":"VisualiseCAU6DM9D_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577213.html","width":130,"caption":"Solva Harbour","height":100});
															thumbnails[8577220] = clik.newPhoto({"id":8577220,"src":"VisualiseCARAAUDN_thumb.jpg","galleries_id":453438,"server_id":18,"link":"photo_8577220.html","width":130,"caption":"Carn Llidi From Whitesands Bay","height":91});
															thumbnails[7437060] = clik.newPhoto({"id":7437060,"src":"P1000250_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7437060.html","width":130,"caption":"Winter At Pensarn Cottage","height":99});
															thumbnails[7437065] = clik.newPhoto({"id":7437065,"src":"P1010299_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7437065.html","width":130,"caption":"Springtime At Pensarn Cottage","height":81});
															thumbnails[7437072] = clik.newPhoto({"id":7437072,"src":"P1020121_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7437072.html","width":130,"caption":"Gwastad Lock Mon & Brecon Canal","height":93});
															thumbnails[7437083] = clik.newPhoto({"id":7437083,"src":"P1080014_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7437083.html","width":130,"caption":"Llanfoist Wharf Mon & Brecon Canal","height":94});
															thumbnails[7437097] = clik.newPhoto({"id":7437097,"src":"P1070833_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7437097.html","width":130,"caption":"Llangattock Wharf Mon & Brecon Canal","height":95});
															thumbnails[7437117] = clik.newPhoto({"id":7437117,"src":"P1080154_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7437117.html","width":130,"caption":"Springtime All-Ty-Ryn Woods","height":94});
															thumbnails[7478397] = clik.newPhoto({"id":7478397,"src":"P1080298_thumb.JPG","galleries_id":403198,"server_id":18,"link":"photo_7478397.html","width":130,"caption":"Bluebell Woods Usk Valley","height":88});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[403198] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibition 2011","link":"section481590.html","maxRecords":0.0,"photoIDs":[7437060.0,7437065.0,7437072.0,7437083.0,7437097.0,7437117.0,7478397.0],"skipIndex":0,"section_code":"section481590","featured_images":"7478397,7437117,7437097,7437083,7437072,7437065,7437060","id":403198,"singleSection":true});				  						galleries[453438] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pembrokeshire Prints","link":"section547960.html","maxRecords":0.0,"photoIDs":[8577121.0,8577136.0,8577145.0,8577158.0,8577209.0,8577213.0,8577220.0],"skipIndex":0,"section_code":"section547960","featured_images":8577145.0,"id":453438,"singleSection":true});				  						galleries[257828] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall Paintings","link":"gallery_257828.html","maxRecords":0.0,"photoIDs":[8416307.0,7432341.0,7997000.0,5276078.0,7112504.0,4648589.0,4557981.0,4477203.0,4400466.0,6091202.0,4396996.0,4396492.0,4477180.0,4396995.0,4400363.0,4400369.0,4400367.0,4400366.0,4400365.0,4400355.0,4400360.0,4400371.0,4400372.0,4396999.0,8478944.0,8478948.0],"skipIndex":0,"section_code":"gallery","featured_images":"7997000,7432341,6091202,5276078,4648589","id":257828,"singleSection":false});				  						galleries[257823] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brecon Beacons Paintings","link":"gallery_257823.html","maxRecords":0.0,"photoIDs":[4396429.0,4397035.0,4397040.0,4397041.0,4397042.0,4397044.0,4397045.0,4397075.0,4397076.0,4397077.0,4397078.0,4397079.0,4406118.0,4454028.0,4481356.0,4492547.0,4492548.0,7177084.0,7177085.0,8104072.0],"skipIndex":0,"section_code":"gallery","featured_images":4396429.0,"id":257823,"singleSection":false});				  						galleries[257824] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pembrokeshire Paintings","link":"gallery_257824.html","maxRecords":0.0,"photoIDs":[4396515.0,4396558.0,4397066.0,4397067.0,4397069.0,4397071.0,4397072.0,4397074.0,4398379.0,4402013.0,4402034.0,4402038.0,4402044.0,4402048.0,4402051.0,4402060.0,4402063.0,4402066.0,4402071.0,4402075.0,4402078.0,4402093.0,4402098.0,4465006.0,5046043.0,5305788.0,5305855.0,5354915.0,4673723.0],"skipIndex":0,"section_code":"gallery","featured_images":"5305788,4673723,4396558","id":257824,"singleSection":false});				  						galleries[257832] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Herefordshire Paintings","link":"gallery_257832.html","maxRecords":0.0,"photoIDs":[4396517.0,4396878.0,4396904.0,4396905.0,4402157.0],"skipIndex":0,"section_code":"gallery","featured_images":4396517.0,"id":257832,"singleSection":false});				  						galleries[258059] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cotswold Paintings","link":"gallery_258059.html","maxRecords":0.0,"photoIDs":[4402130.0],"skipIndex":0,"section_code":"gallery","featured_images":4402130.0,"id":258059,"singleSection":false});				  						galleries[268444] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Devon Paintings","link":"gallery_268444.html","maxRecords":0.0,"photoIDs":[4655852.0,4775286.0,6543969.0,7228966.0,4958543.0,9095767.0],"skipIndex":0,"section_code":"gallery","featured_images":"9095767,6543969","id":268444,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8416307,9095767,4396996';
imageSets[2] = '8577145,6543969,5305788,4396558,4396517,4396429,9095767,7997000,7432341,5276078,4673723,4648589,6091202';
imageSets[3] = '9095767,8577220,8577213,8577209,8577158,8577145,8577136,8577121,8478948,8478944,8416307,8104072,7997000,7478397,7437117,7437097,7437083,7437072,7437065,7437060,7432341,7228966,7177085,7177084,7112504,6543969,6091202,5354915,5305855,5305788,5276078,5046043,4958543,4775286,4673723,4655852,4648589,4557981,4492548,4492547,4481356,4477203,4477180,4465006,4454028,4406118,4402157,4402130,4402098,4402093';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/maxwell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/maxwell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/maxwell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/maxwell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/maxwell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/maxwell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/maxwell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/maxwell/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 = 'Mark Whittaker Fine Art Pastels: ' + 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>';
	}
				
	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="mark.whittaker11@ntlworld.com">';
					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="mark.whittaker11@ntlworld.com">';
				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;
	}
}

			

