window.thumbnails = {};
															thumbnails[1163874] = clik.newPhoto({"id":1163874,"src":"Shaun13.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Shaun Geraghty - Self Portrait","height":201});
															thumbnails[1165738] = clik.newPhoto({"id":1165738,"src":"logos combined21.gif","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":58});
															thumbnails[1285564] = clik.newPhoto({"id":1285564,"src":"HRS 004aws1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Shaun Geraghty - Radio Presenter","height":75});
															thumbnails[8957802] = clik.newPhoto({"id":8957802,"src":"Caribbean_2011_Nikon_054header_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":79});
															thumbnails[8980472] = clik.newPhoto({"id":8980472,"src":"Stafford_Radio_Nov_11_003a_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":65});
															thumbnails[8980468] = clik.newPhoto({"id":8980468,"src":"Caribbean_2011_Nikon_037ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8980468.html","width":130,"caption":"Alta Vista Chapel","height":83});
															thumbnails[8938889] = clik.newPhoto({"id":8938889,"src":"Caribbean_2011_Nikon_009_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938889.html","width":130,"caption":"Bathsheba","height":86});
															thumbnails[7651212] = clik.newPhoto({"id":7651212,"src":"Attingham1ws_thumb.jpg","galleries_id":83959,"server_id":1,"link":"photo_7651212.html","width":130,"caption":"Attingham Park","height":86});
															thumbnails[7651221] = clik.newPhoto({"id":7651221,"src":"Attingham4ws_thumb.jpg","galleries_id":83959,"server_id":1,"link":"photo_7651221.html","width":130,"caption":"Attingham Hall","height":86});
															thumbnails[7450880] = clik.newPhoto({"id":7450880,"src":"Aqualate1wsa_thumb.jpg","galleries_id":83959,"server_id":1,"link":"photo_7450880.html","width":130,"caption":"Aqualate Evening","height":84});
															thumbnails[6608587] = clik.newPhoto({"id":6608587,"src":"France_August_2010_018ws_thumb.jpg","galleries_id":185503,"server_id":1,"link":"photo_6608587.html","width":130,"caption":"Massaret Sunrise","height":86});
															thumbnails[6612857] = clik.newPhoto({"id":6612857,"src":"France_August_2010_015ws_thumb.jpg","galleries_id":185503,"server_id":1,"link":"photo_6612857.html","width":130,"caption":"Mists of France","height":195});
															thumbnails[6612865] = clik.newPhoto({"id":6612865,"src":"France_August_2010_012ws_thumb.jpg","galleries_id":185503,"server_id":1,"link":"photo_6612865.html","width":130,"caption":"Lost in the Mist","height":86});
															thumbnails[6612947] = clik.newPhoto({"id":6612947,"src":"France_August_2010_022wsa_thumb.jpg","galleries_id":185503,"server_id":1,"link":"photo_6612947.html","width":130,"caption":"Rays of Sunlight","height":118});
															thumbnails[6379791] = clik.newPhoto({"id":6379791,"src":"B_Cruise_2010_Nikon_009asolws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_6379791.html","width":130,"caption":"Church of the Spilled Blood","height":86});
															thumbnails[2940196] = clik.newPhoto({"id":2940196,"src":"Cruise 08A 154ws_thumb.jpg","galleries_id":185503,"server_id":1,"link":"photo_2940196.html","width":130,"caption":"Provencal Courtyard","height":86});
															thumbnails[2922699] = clik.newPhoto({"id":2922699,"src":"Cruise 08A 065tp_edited-1ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2922699.html","width":130,"caption":"Marina Piccolo, Capri","height":86});
															thumbnails[2940299] = clik.newPhoto({"id":2940299,"src":"Cruise 08A 051ws copy_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2940299.html","width":130,"caption":"The Gulf of Tunis","height":89});
															thumbnails[2562507] = clik.newPhoto({"id":2562507,"src":"Shropshire1ws_thumb.jpg","galleries_id":83959,"server_id":1,"link":"photo_2562507.html","width":130,"caption":"Sutherland's Monument","height":93});
															thumbnails[2582675] = clik.newPhoto({"id":2582675,"src":"Shropshire4ws_thumb.jpg","galleries_id":83959,"server_id":1,"link":"photo_2582675.html","width":130,"caption":"Summer Corn","height":180});
															thumbnails[2527726] = clik.newPhoto({"id":2527726,"src":"Liverpool2ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2527726.html","width":130,"caption":"Jetty for Another Place","height":66});
															thumbnails[1161166] = clik.newPhoto({"id":1161166,"src":"Crete 2006 165ajpg2.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161166.html","width":130,"caption":"Sunburst over Souda Bay","height":90});
															thumbnails[1161172] = clik.newPhoto({"id":1161172,"src":"StoupaA 169jpg2.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161172.html","width":130,"caption":"Coffee Break","height":98});
															thumbnails[1161173] = clik.newPhoto({"id":1161173,"src":"Crete 2006 174Ajpg1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161173.html","width":130,"caption":"Almirida Sunset","height":91});
															thumbnails[1161174] = clik.newPhoto({"id":1161174,"src":"HalkiA 054aw1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161174.html","width":130,"caption":"Halki Sunrise","height":86});
															thumbnails[1161184] = clik.newPhoto({"id":1161184,"src":"HalkiB 078ajpg1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161184.html","width":130,"caption":"Pondamos Bay","height":93});
															thumbnails[1161185] = clik.newPhoto({"id":1161185,"src":"HalkiB 084ajpg1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161185.html","width":130,"caption":"Greek Island Sunrise","height":108});
															thumbnails[1161187] = clik.newPhoto({"id":1161187,"src":"Sunset3jpg2.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161187.html","width":130,"caption":"Stoupa Sunset","height":98});
															thumbnails[1161244] = clik.newPhoto({"id":1161244,"src":"Silver Layersjpg1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1161244.html","width":130,"caption":"Silver Layers","height":88});
															thumbnails[1163476] = clik.newPhoto({"id":1163476,"src":"Cornwall Mar 07 176fulljpg1.jpg","galleries_id":83958,"server_id":1,"link":"photo_1163476.html","width":130,"caption":"Treyarnon Sunset","height":88});
															thumbnails[1163484] = clik.newPhoto({"id":1163484,"src":"Devon Nov 06 080ajpg1.jpg","galleries_id":83958,"server_id":1,"link":"photo_1163484.html","width":130,"caption":"Mouth of the Otter","height":88});
															thumbnails[1163504] = clik.newPhoto({"id":1163504,"src":"Budleigh Feb 06 0291.jpg","galleries_id":83958,"server_id":1,"link":"photo_1163504.html","width":130,"caption":"River Otter","height":170});
															thumbnails[1163510] = clik.newPhoto({"id":1163510,"src":"Budleigh New Year 07 060ajpg1.jpg","galleries_id":83958,"server_id":1,"link":"photo_1163510.html","width":130,"caption":"Glistening Estuary","height":180});
															thumbnails[1163514] = clik.newPhoto({"id":1163514,"src":"Budleigh New Year 07 089ajpg1.jpg","galleries_id":83958,"server_id":1,"link":"photo_1163514.html","width":130,"caption":"Gateway to the West","height":182});
															thumbnails[1163533] = clik.newPhoto({"id":1163533,"src":"Crete 2006C 059ajpg1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1163533.html","width":130,"caption":"Sitting Comfortably","height":166});
															thumbnails[1163647] = clik.newPhoto({"id":1163647,"src":"Wrottesley 005ajpg1.jpg","galleries_id":83959,"server_id":1,"link":"photo_1163647.html","width":130,"caption":"A Walk in the Woods","height":184});
															thumbnails[1163655] = clik.newPhoto({"id":1163655,"src":"CANovember 001Ajpg1.jpg","galleries_id":83959,"server_id":1,"link":"photo_1163655.html","width":130,"caption":"Gateway to Autumn","height":186});
															thumbnails[1163694] = clik.newPhoto({"id":1163694,"src":"Long Mynd 010ajpg1.jpg","galleries_id":83959,"server_id":1,"link":"photo_1163694.html","width":130,"caption":"View from the Long Mynd","height":90});
															thumbnails[1163717] = clik.newPhoto({"id":1163717,"src":"CyprusNikA 166ajpg1.jpg","galleries_id":83961,"server_id":1,"link":"photo_1163717.html","width":130,"caption":"Walking over Oranges","height":192});
															thumbnails[1188891] = clik.newPhoto({"id":1188891,"src":"Limni Pier1.jpg","galleries_id":83961,"server_id":1,"link":"photo_1188891.html","width":130,"caption":"Limni Pier","height":93});
															thumbnails[1263525] = clik.newPhoto({"id":1263525,"src":"Wales5ws1.jpg","galleries_id":83961,"server_id":1,"link":"photo_1263525.html","width":130,"caption":"Chirk Castle","height":86});
															thumbnails[1476844] = clik.newPhoto({"id":1476844,"src":"Greece07Anik 129ws1.jpg","galleries_id":83957,"server_id":1,"link":"photo_1476844.html","width":130,"caption":"Gialova Beach","height":86});
															thumbnails[1524436] = clik.newPhoto({"id":1524436,"src":"CyprusNikA 044ws1.jpg","galleries_id":83961,"server_id":1,"link":"photo_1524436.html","width":130,"caption":"Akamas View","height":86});
															thumbnails[1637254] = clik.newPhoto({"id":1637254,"src":"Beer2ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_1637254.html","width":130,"caption":"Misty Rocks","height":81});
															thumbnails[1637302] = clik.newPhoto({"id":1637302,"src":"Bud1ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_1637302.html","width":130,"caption":"Charley Farley","height":85});
															thumbnails[2390559] = clik.newPhoto({"id":2390559,"src":"Greece June 08 Laptop 198 ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_2390559.html","width":130,"caption":"Messinian Bay Sunset","height":86});
															thumbnails[2419773] = clik.newPhoto({"id":2419773,"src":"Greece June 08 Slideshow 042ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_2419773.html","width":130,"caption":"Evening Calm","height":86});
															thumbnails[2496026] = clik.newPhoto({"id":2496026,"src":"Greece June 08 Laptop 044wsa_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_2496026.html","width":130,"caption":"Peace","height":52});
															thumbnails[2906040] = clik.newPhoto({"id":2906040,"src":"Cruise 08B 149ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2906040.html","width":130,"caption":"Portofino","height":84});
															thumbnails[2906136] = clik.newPhoto({"id":2906136,"src":"Cruise 08B 087ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2906136.html","width":130,"caption":"St Peter's, Rome","height":86});
															thumbnails[2906226] = clik.newPhoto({"id":2906226,"src":"Cruise 08A 05wsb_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2906226.html","width":130,"caption":"Vesuvius Sunrise","height":86});
															thumbnails[2959636] = clik.newPhoto({"id":2959636,"src":"Cruise 08A 079tp_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_2959636.html","width":130,"caption":"Ischia Sunset","height":86});
															thumbnails[3053869] = clik.newPhoto({"id":3053869,"src":"Cruise 08B 153ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_3053869.html","width":130,"caption":"Italian Riviera","height":93});
															thumbnails[3147803] = clik.newPhoto({"id":3147803,"src":"Exm04tp_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3147803.html","width":130,"caption":"Exmouth Sunset","height":74});
															thumbnails[3147814] = clik.newPhoto({"id":3147814,"src":"Exm01ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3147814.html","width":130,"caption":"Calm Seas","height":86});
															thumbnails[3154635] = clik.newPhoto({"id":3154635,"src":"Bud10ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3154635.html","width":130,"caption":"Ottermouth Sunset","height":63});
															thumbnails[3185282] = clik.newPhoto({"id":3185282,"src":"Exm02ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3185282.html","width":130,"caption":"Devon Skies","height":86});
															thumbnails[3252258] = clik.newPhoto({"id":3252258,"src":"Istanbul 017aws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_3252258.html","width":130,"caption":"Hagia Sophia, Istanbul","height":93});
															thumbnails[3253201] = clik.newPhoto({"id":3253201,"src":"Crete 2006 008ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_3253201.html","width":130,"caption":"A Quiet Corner","height":91});
															thumbnails[3253214] = clik.newPhoto({"id":3253214,"src":"Exm05ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3253214.html","width":130,"caption":"Exmouth Beach at Sunset","height":83});
															thumbnails[3253267] = clik.newPhoto({"id":3253267,"src":"Greece07 102aws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_3253267.html","width":130,"caption":"Halikoura Taverna","height":176});
															thumbnails[3253279] = clik.newPhoto({"id":3253279,"src":"Greece June 08 176ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_3253279.html","width":130,"caption":"Floating","height":95});
															thumbnails[3253389] = clik.newPhoto({"id":3253389,"src":"HalkiA_052tpa_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_3253389.html","width":130,"caption":"Sunrise from Halki Island","height":86});
															thumbnails[3262366] = clik.newPhoto({"id":3262366,"src":"Summer 07 042a_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_3262366.html","width":130,"caption":"Buxton Opera House","height":93});
															thumbnails[3656460] = clik.newPhoto({"id":3656460,"src":"Cornwall1ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3656460.html","width":130,"caption":"Mullion Sunset","height":195});
															thumbnails[3656470] = clik.newPhoto({"id":3656470,"src":"Cornwall50aws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3656470.html","width":130,"caption":"Poldhu Sunset","height":85});
															thumbnails[3656477] = clik.newPhoto({"id":3656477,"src":"Cornwall50bws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3656477.html","width":130,"caption":"Evening Swirls","height":84});
															thumbnails[3670914] = clik.newPhoto({"id":3670914,"src":"Cornwall50fws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3670914.html","width":130,"caption":"Silver Sands","height":189});
															thumbnails[3732360] = clik.newPhoto({"id":3732360,"src":"Cornwall50dws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_3732360.html","width":130,"caption":"Sunset Blue","height":86});
															thumbnails[4287045] = clik.newPhoto({"id":4287045,"src":"Cruise_09_Greece_116ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_4287045.html","width":130,"caption":"Santorini Skies","height":86});
															thumbnails[4428238] = clik.newPhoto({"id":4428238,"src":"Cruise_09_Greece_051aws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_4428238.html","width":130,"caption":"Greek Fishing Boat","height":81});
															thumbnails[4554322] = clik.newPhoto({"id":4554322,"src":"Wales2ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_4554322.html","width":130,"caption":"The Mawddach Estuary","height":80});
															thumbnails[4554767] = clik.newPhoto({"id":4554767,"src":"Wales4ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_4554767.html","width":130,"caption":"The Toll Bridge, Penmaenpool","height":80});
															thumbnails[4833666] = clik.newPhoto({"id":4833666,"src":"Samos_2009_Nikon_043ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_4833666.html","width":130,"caption":"Fourni Island Sunset","height":86});
															thumbnails[4833680] = clik.newPhoto({"id":4833680,"src":"Samos_2009_NikonB_023ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_4833680.html","width":130,"caption":"Layers of Greece","height":86});
															thumbnails[4844371] = clik.newPhoto({"id":4844371,"src":"Samos_2009_Nikon_002ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_4844371.html","width":130,"caption":"Ikarian Skies","height":86});
															thumbnails[4857326] = clik.newPhoto({"id":4857326,"src":"Samos_2009_NikonB_009ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_4857326.html","width":130,"caption":"Blue Evening","height":85});
															thumbnails[5176066] = clik.newPhoto({"id":5176066,"src":"Bud9ws_thumb.jpg","galleries_id":83958,"server_id":1,"link":"photo_5176066.html","width":130,"caption":"Stormy Skies over Sidmouth","height":86});
															thumbnails[5675389] = clik.newPhoto({"id":5675389,"src":"Pembs14ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_5675389.html","width":130,"caption":"Porthgain Sunset","height":85});
															thumbnails[5675395] = clik.newPhoto({"id":5675395,"src":"Pembs15ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_5675395.html","width":130,"caption":"A Pembrokeshire Evening","height":81});
															thumbnails[5675400] = clik.newPhoto({"id":5675400,"src":"Pembs44ws_thumb.jpg","galleries_id":83961,"server_id":1,"link":"photo_5675400.html","width":130,"caption":"Abereiddi Cottage","height":82});
															thumbnails[6437434] = clik.newPhoto({"id":6437434,"src":"Samos_2009_Nikon_079aws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_6437434.html","width":130,"caption":"Kokkari","height":86});
															thumbnails[6840225] = clik.newPhoto({"id":6840225,"src":"Syros_Sept_2010_Nikon_085ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_6840225.html","width":130,"caption":"Swirling Skies","height":81});
															thumbnails[6840239] = clik.newPhoto({"id":6840239,"src":"Syros_Sept_2010_Nikon_049ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_6840239.html","width":130,"caption":"Evening Anchorage","height":186});
															thumbnails[6840262] = clik.newPhoto({"id":6840262,"src":"Syros_Sept_2010_Nikon_091ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_6840262.html","width":130,"caption":"Aegean Blue","height":156});
															thumbnails[6841763] = clik.newPhoto({"id":6841763,"src":"Syros_Sept_2010_Nikon_052ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_6841763.html","width":130,"caption":"Galissas Sunburst","height":86});
															thumbnails[6867423] = clik.newPhoto({"id":6867423,"src":"Syros_Sept_2010_Nikon_041ws2_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_6867423.html","width":130,"caption":"Greek Gold","height":86});
															thumbnails[7473338] = clik.newPhoto({"id":7473338,"src":"Crete_2006B_047tp_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_7473338.html","width":130,"caption":"A Cretan Evening","height":86});
															thumbnails[8027854] = clik.newPhoto({"id":8027854,"src":"Fourni_June_2011_Nikon_008ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8027854.html","width":130,"caption":"Aghia Triadha at Sunset","height":86});
															thumbnails[8027859] = clik.newPhoto({"id":8027859,"src":"Fourni_June_2011_Nikon_017ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8027859.html","width":130,"caption":"Aghia Triadha Evening","height":195});
															thumbnails[8027862] = clik.newPhoto({"id":8027862,"src":"Fourni_June_2011_Nikon_028ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8027862.html","width":130,"caption":"Evening Mooring","height":86});
															thumbnails[8027866] = clik.newPhoto({"id":8027866,"src":"Fourni_June_2011_Nikon_095ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8027866.html","width":130,"caption":"Evening at Kambi","height":86});
															thumbnails[8596250] = clik.newPhoto({"id":8596250,"src":"Kalymnos_2011_024ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8596250.html","width":130,"caption":"Agios Athanassios at Sunset","height":86});
															thumbnails[8596263] = clik.newPhoto({"id":8596263,"src":"Kalymnos_2011_089ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8596263.html","width":130,"caption":"View to Telendos","height":83});
															thumbnails[8596270] = clik.newPhoto({"id":8596270,"src":"Kalymnos_2011_113ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8596270.html","width":130,"caption":"From the Church Gate","height":86});
															thumbnails[8608349] = clik.newPhoto({"id":8608349,"src":"Kalymnos_2011_007tp_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8608349.html","width":130,"caption":"Aegean Canoe","height":86});
															thumbnails[8608351] = clik.newPhoto({"id":8608351,"src":"Kalymnos_2011_033ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8608351.html","width":130,"caption":"Evening Beach Light","height":78});
															thumbnails[8608354] = clik.newPhoto({"id":8608354,"src":"Kalymnos_2011_034ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8608354.html","width":130,"caption":"Evening View Point","height":85});
															thumbnails[8608361] = clik.newPhoto({"id":8608361,"src":"Kalymnos_2011_109ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8608361.html","width":130,"caption":"Greek Palm","height":83});
															thumbnails[8608364] = clik.newPhoto({"id":8608364,"src":"Kalymnos_2011_117ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8608364.html","width":130,"caption":"Agia Kyriaki from Kantouni","height":86});
															thumbnails[8608413] = clik.newPhoto({"id":8608413,"src":"Fourni_June_2011_Nikon_059ws_thumb.jpg","galleries_id":83957,"server_id":1,"link":"photo_8608413.html","width":130,"caption":"The Fourni Islands","height":63});
															thumbnails[8608416] = clik.newPhoto({"id":8608416,"src":"France_August_2010_077atp_thumb.jpg","galleries_id":185503,"server_id":1,"link":"photo_8608416.html","width":130,"caption":"La Porcherie","height":76});
															thumbnails[8936997] = clik.newPhoto({"id":8936997,"src":"Caribbean_2011_Nikon_058ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8936997.html","width":130,"caption":"White Sands","height":85});
															thumbnails[8938900] = clik.newPhoto({"id":8938900,"src":"Caribbean_2011_Nikon_054ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938900.html","width":130,"caption":"Atlantic Blue","height":81});
															thumbnails[8938910] = clik.newPhoto({"id":8938910,"src":"Caribbean_2011_Nikon_055ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938910.html","width":130,"caption":"Governors Beach","height":85});
															thumbnails[8938915] = clik.newPhoto({"id":8938915,"src":"Caribbean_2011_Nikon_061ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938915.html","width":130,"caption":"The Old Beach Cafe","height":86});
															thumbnails[8938918] = clik.newPhoto({"id":8938918,"src":"Caribbean_2011_Nikon_062ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938918.html","width":130,"caption":"Sailing In","height":85});
															thumbnails[8938921] = clik.newPhoto({"id":8938921,"src":"Caribbean_2011_Nikon_063ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938921.html","width":130,"caption":"Lone Branch","height":82});
															thumbnails[8938926] = clik.newPhoto({"id":8938926,"src":"Caribbean_2011_Nikon_071ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938926.html","width":130,"caption":"Yellow Flag","height":86});
															thumbnails[8938931] = clik.newPhoto({"id":8938931,"src":"Caribbean_2011_Nikon_091ws_thumb.jpg","galleries_id":123763,"server_id":1,"link":"photo_8938931.html","width":130,"caption":"Cane Garden Bay","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[83957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greece","link":"gallery_83957.html","maxRecords":0.0,"photoIDs":[1161166.0,1161172.0,1161173.0,1161174.0,1161184.0,1161185.0,1161187.0,1161244.0,1163533.0,1476844.0,2390559.0,2419773.0,2496026.0,3253201.0,3253267.0,3253279.0,3253389.0,4287045.0,4428238.0,4833666.0,4833680.0,4844371.0,4857326.0,6437434.0,6840225.0,6840239.0,6840262.0,6841763.0,6867423.0,7473338.0,8027854.0,8027859.0,8027862.0,8027866.0,8596250.0,8596263.0,8596270.0,8608349.0,8608351.0,8608354.0,8608361.0,8608364.0,8608413.0],"skipIndex":0,"section_code":"gallery","featured_images":6841763.0,"id":83957,"singleSection":false});				  						galleries[83958] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South West","link":"gallery_83958.html","maxRecords":0.0,"photoIDs":[1163476.0,1163484.0,1163504.0,1163510.0,1163514.0,1637254.0,1637302.0,3147803.0,3147814.0,3154635.0,3185282.0,3253214.0,3656460.0,3656470.0,3656477.0,3670914.0,3732360.0,5176066.0],"skipIndex":0,"section_code":"gallery","featured_images":1637302.0,"id":83958,"singleSection":false});				  						galleries[83959] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Staffs\/Shrops","link":"gallery_83959.html","maxRecords":0.0,"photoIDs":[7651212.0,7651221.0,7450880.0,2562507.0,2582675.0,1163647.0,1163655.0,1163694.0],"skipIndex":0,"section_code":"gallery","featured_images":2562507.0,"id":83959,"singleSection":false});				  						galleries[83961] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Shots","link":"gallery_83961.html","maxRecords":0.0,"photoIDs":[6379791.0,2922699.0,2940299.0,2527726.0,1163717.0,1188891.0,1263525.0,1524436.0,2906040.0,2906136.0,2906226.0,2959636.0,3053869.0,3252258.0,3262366.0,4554322.0,4554767.0,5675389.0,5675395.0,5675400.0],"skipIndex":0,"section_code":"gallery","featured_images":"2940299,1263525","id":83961,"singleSection":false});				  						galleries[185503] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"France","link":"gallery_185503.html","maxRecords":0.0,"photoIDs":[6608587.0,6612857.0,6612865.0,6612947.0,2940196.0,8608416.0],"skipIndex":0,"section_code":"gallery","featured_images":6608587.0,"id":185503,"singleSection":false});				  						galleries[123763] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Latest ","link":"gallery_123763.html","maxRecords":0.0,"photoIDs":[8980468.0,8938889.0,8936997.0,8938900.0,8938910.0,8938915.0,8938918.0,8938921.0,8938926.0,8938931.0],"skipIndex":0,"section_code":"gallery","featured_images":"8980468,8938931,8938926,8938921,8938918,8938915,8938910,8938900,8938889,8936997","id":123763,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8957802';
imageSets[2] = '6841763,6608587,2940299,2562507,1637302,1263525';
imageSets[3] = '8980472,8980468,8957802,8938931,8938926,8938921,8938918,8938915,8938910,8938900,8938889,8936997,8608416,8608413,8608364,8608361,8608354,8608351,8608349,8596270,8596263,8596250,8027866,8027862,8027859,8027854,7651221,7651212,7473338,7450880,6867423,6841763,6840262,6840239,6840225,6612947,6612865,6612857,6608587,6437434,6379791,5675400,5675395,5675389,5176066,4857326,4844371,4833680,4833666,4554767';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/shaung/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/shaung/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/shaung/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/shaung/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/shaung/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/shaung/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/shaung/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/shaung/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 = 'Shaun Geraghty Photographer and Broadcaster: ' + 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> ' + (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 += '<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;
	}
}

			

