window.thumbnails = {};
															thumbnails[6085153] = clik.newPhoto({"id":6085153,"src":"equipment-cb_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Me","height":98});
															thumbnails[6085163] = clik.newPhoto({"id":6085163,"src":"me-clicpic_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":194});
															thumbnails[6093739] = clik.newPhoto({"id":6093739,"src":"bw_ramp_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":12});
															thumbnails[7422432] = clik.newPhoto({"id":7422432,"src":"Liffey-0657_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_7422432.html","width":130,"caption":"Morning Rush","height":87});
															thumbnails[6026814] = clik.newPhoto({"id":6026814,"src":"05-Raugly_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6026814.html","width":130,"caption":"Raugly Reflections","height":87});
															thumbnails[6031115] = clik.newPhoto({"id":6031115,"src":"VIPIRLLA-01_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6031115.html","width":130,"caption":"Rainbow","height":87});
															thumbnails[6065664] = clik.newPhoto({"id":6065664,"src":"Morocco-4428_thumb.jpg","galleries_id":338831,"server_id":32,"link":"photo_6065664.html","width":130,"caption":"Going home","height":87});
															thumbnails[6065679] = clik.newPhoto({"id":6065679,"src":"Urban_Landscape_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6065679.html","width":130,"caption":"","height":86});
															thumbnails[6065834] = clik.newPhoto({"id":6065834,"src":"VIPINTPAT-1694_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6065834.html","width":130,"caption":"greeen in gold","height":87});
															thumbnails[6066167] = clik.newPhoto({"id":6066167,"src":"VIPCZWINT-1995_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6066167.html","width":130,"caption":"Nahorany Sunrise","height":87});
															thumbnails[6084801] = clik.newPhoto({"id":6084801,"src":"Mist_2ii_thumb.jpg","galleries_id":341574,"server_id":32,"link":"photo_6084801.html","width":130,"caption":"Lonely Runner","height":87});
															thumbnails[6130097] = clik.newPhoto({"id":6130097,"src":"VIPINTPAT-4257_thumb.jpg","galleries_id":343701,"server_id":32,"link":"photo_6130097.html","width":130,"caption":"Strawbery&Chocolate","height":87});
															thumbnails[6171119] = clik.newPhoto({"id":6171119,"src":"VIPCZESUM-1513_thumb.jpg","galleries_id":338862,"server_id":32,"link":"photo_6171119.html","width":130,"caption":"Summer Sunset","height":195});
															thumbnails[6177691] = clik.newPhoto({"id":6177691,"src":"VIPSRILAN-0658_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6177691.html","width":130,"caption":"Welligama Bay","height":195});
															thumbnails[6749113] = clik.newPhoto({"id":6749113,"src":"Sweden-Full--6681_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749113.html","width":130,"caption":"Golden Valley","height":87});
															thumbnails[7248359] = clik.newPhoto({"id":7248359,"src":"VIPCZEWINT-0407-2.1final_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248359.html","width":130,"caption":"Morning Chill","height":87});
															thumbnails[7711867] = clik.newPhoto({"id":7711867,"src":"Achill_Island-Easter-2994_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711867.html","width":130,"caption":"Early Start","height":87});
															thumbnails[6031106] = clik.newPhoto({"id":6031106,"src":"VIPIRLSEA-01_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6031106.html","width":130,"caption":"Approaching storm","height":87});
															thumbnails[6036218] = clik.newPhoto({"id":6036218,"src":"VIPIRLLA-021_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6036218.html","width":130,"caption":"Dargle Cascade","height":87});
															thumbnails[6102417] = clik.newPhoto({"id":6102417,"src":"VIPURBAN-0795_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6102417.html","width":130,"caption":"Gloomy day","height":86});
															thumbnails[6110845] = clik.newPhoto({"id":6110845,"src":"VIPCZWINT-2063_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110845.html","width":130,"caption":"Sumava from Kbyl","height":87});
															thumbnails[6112347] = clik.newPhoto({"id":6112347,"src":"VIPINTPAT-1185_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6112347.html","width":130,"caption":"In Bloom","height":87});
															thumbnails[6112434] = clik.newPhoto({"id":6112434,"src":"VIPURBAN-0371_thumb.jpg","galleries_id":341574,"server_id":32,"link":"photo_6112434.html","width":130,"caption":"Old Distilery","height":87});
															thumbnails[6171121] = clik.newPhoto({"id":6171121,"src":"VIPCZESUM-1557_thumb.jpg","galleries_id":338862,"server_id":32,"link":"photo_6171121.html","width":130,"caption":"Blue","height":195});
															thumbnails[6177702] = clik.newPhoto({"id":6177702,"src":"VIPSRILAN-1012_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6177702.html","width":130,"caption":"Mirissa Paradise","height":195});
															thumbnails[6749413] = clik.newPhoto({"id":6749413,"src":"Sweden-Full--6192v_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749413.html","width":130,"caption":"Painted in Pink","height":87});
															thumbnails[6823589] = clik.newPhoto({"id":6823589,"src":"Morocco-4334_thumb.jpg","galleries_id":338831,"server_id":32,"link":"photo_6823589.html","width":130,"caption":"Imlil","height":87});
															thumbnails[6898772] = clik.newPhoto({"id":6898772,"src":"Poolbeg-8224_thumb.jpg","galleries_id":343701,"server_id":32,"link":"photo_6898772.html","width":130,"caption":"Grey Heron","height":195});
															thumbnails[7248373] = clik.newPhoto({"id":7248373,"src":"VIPCZEWINT-9899-2_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248373.html","width":130,"caption":"Cloud Piercer","height":87});
															thumbnails[7711875] = clik.newPhoto({"id":7711875,"src":"Achill_Island-Easter-3224_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711875.html","width":130,"caption":"Purple Haze","height":87});
															thumbnails[6031178] = clik.newPhoto({"id":6031178,"src":"VIPIRLLA-02_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6031178.html","width":130,"caption":"Yeats Country","height":87});
															thumbnails[6082988] = clik.newPhoto({"id":6082988,"src":"34-Vystava-_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6082988.html","width":130,"caption":"Horn Head","height":87});
															thumbnails[6084775] = clik.newPhoto({"id":6084775,"src":"VIPIRLSEA-25041_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6084775.html","width":130,"caption":"Grand Canal Docks","height":87});
															thumbnails[6110849] = clik.newPhoto({"id":6110849,"src":"VIPCZWINT-2006_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110849.html","width":130,"caption":"Gold'blue Morning","height":87});
															thumbnails[6112350] = clik.newPhoto({"id":6112350,"src":"VIPINTPAT-1178_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6112350.html","width":130,"caption":"Tree Trunks","height":87});
															thumbnails[6123532] = clik.newPhoto({"id":6123532,"src":"VIPBWHIT-2743_thumb.jpg","galleries_id":341574,"server_id":32,"link":"photo_6123532.html","width":130,"caption":"Diffused","height":87});
															thumbnails[6171143] = clik.newPhoto({"id":6171143,"src":"VIPCZESUM-1627_thumb.jpg","galleries_id":338862,"server_id":32,"link":"photo_6171143.html","width":130,"caption":"Two Stones","height":195});
															thumbnails[6177824] = clik.newPhoto({"id":6177824,"src":"VIPSRILAN-0694_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6177824.html","width":130,"caption":"Orange Footbal","height":195});
															thumbnails[6749416] = clik.newPhoto({"id":6749416,"src":"Sweden-6600_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749416.html","width":130,"caption":"Covered in mist","height":87});
															thumbnails[6828388] = clik.newPhoto({"id":6828388,"src":"Morocco-4389_thumb.jpg","galleries_id":338831,"server_id":32,"link":"photo_6828388.html","width":130,"caption":"Heavy Load","height":87});
															thumbnails[7711882] = clik.newPhoto({"id":7711882,"src":"Achill_Island-Easter-3288_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711882.html","width":130,"caption":"Achill Island Wild Coast","height":87});
															thumbnails[6065666] = clik.newPhoto({"id":6065666,"src":"Sri_Lanka_00084_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6065666.html","width":130,"caption":"Paradise","height":87});
															thumbnails[6082891] = clik.newPhoto({"id":6082891,"src":"VIPIRLSEA-002_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6082891.html","width":130,"caption":"Dublin Bay","height":195});
															thumbnails[6083443] = clik.newPhoto({"id":6083443,"src":"VIPIRLLA-03_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6083443.html","width":130,"caption":"Knocksink Woods","height":195});
															thumbnails[6103342] = clik.newPhoto({"id":6103342,"src":"VIPURBAN-0808_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6103342.html","width":130,"caption":"Follow the flow","height":195});
															thumbnails[6110888] = clik.newPhoto({"id":6110888,"src":"VIPCZWINT-2056_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110888.html","width":130,"caption":"Javornik","height":195});
															thumbnails[6112358] = clik.newPhoto({"id":6112358,"src":"VIPINTPAT-999_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6112358.html","width":130,"caption":"Together...Forever","height":195});
															thumbnails[6169974] = clik.newPhoto({"id":6169974,"src":"VIPBWHIT-3342_thumb.jpg","galleries_id":341574,"server_id":32,"link":"photo_6169974.html","width":130,"caption":"White pinacles","height":195});
															thumbnails[6728860] = clik.newPhoto({"id":6728860,"src":"Sweden-Full--6150_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6728860.html","width":130,"caption":"Visttasvággi","height":87});
															thumbnails[6828410] = clik.newPhoto({"id":6828410,"src":"Morocco-4501_thumb.jpg","galleries_id":338831,"server_id":32,"link":"photo_6828410.html","width":130,"caption":"Essaouira","height":195});
															thumbnails[7248384] = clik.newPhoto({"id":7248384,"src":"VIPCZEWINT-0485_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248384.html","width":130,"caption":"Winter Trails","height":195});
															thumbnails[7711886] = clik.newPhoto({"id":7711886,"src":"Achill_Island-Easter-2925_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711886.html","width":130,"caption":"","height":195});
															thumbnails[6031184] = clik.newPhoto({"id":6031184,"src":"VIPCZSUMM-01_thumb.jpg","galleries_id":338862,"server_id":32,"link":"photo_6031184.html","width":130,"caption":"Summer Storm","height":87});
															thumbnails[6083036] = clik.newPhoto({"id":6083036,"src":"11-Vystava-_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6083036.html","width":130,"caption":"Misty Morning","height":195});
															thumbnails[6083439] = clik.newPhoto({"id":6083439,"src":"24-Vystava-_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6083439.html","width":130,"caption":"Ticknock ","height":195});
															thumbnails[6103345] = clik.newPhoto({"id":6103345,"src":"VIPURBAN-0827_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6103345.html","width":130,"caption":"Touching the sky","height":195});
															thumbnails[6110884] = clik.newPhoto({"id":6110884,"src":"VIPCZWINT-1990_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110884.html","width":130,"caption":"Blue Snow","height":195});
															thumbnails[6112401] = clik.newPhoto({"id":6112401,"src":"VIPINTPAT-1166_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6112401.html","width":130,"caption":"Autumn Colurs","height":195});
															thumbnails[6120320] = clik.newPhoto({"id":6120320,"src":"Dublin_BW_08_thumb.jpg","galleries_id":341574,"server_id":32,"link":"photo_6120320.html","width":130,"caption":"Stairway to Mist","height":195});
															thumbnails[6177835] = clik.newPhoto({"id":6177835,"src":"VIPSRILAN-1745_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6177835.html","width":130,"caption":"Hidden Leopard","height":87});
															thumbnails[6749421] = clik.newPhoto({"id":6749421,"src":"Sweden-Full--7069_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749421.html","width":130,"caption":"Northern Lights I.","height":87});
															thumbnails[6828415] = clik.newPhoto({"id":6828415,"src":"Morocco-3804_thumb.jpg","galleries_id":338831,"server_id":32,"link":"photo_6828415.html","width":130,"caption":"The Woodcarver","height":195});
															thumbnails[7248388] = clik.newPhoto({"id":7248388,"src":"VIPCZEWINT-9915-3_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248388.html","width":130,"caption":"First Light","height":195});
															thumbnails[7711887] = clik.newPhoto({"id":7711887,"src":"Achill_Island-Easter-3371_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711887.html","width":130,"caption":"","height":195});
															thumbnails[6080973] = clik.newPhoto({"id":6080973,"src":"38-Vystava_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6080973.html","width":130,"caption":"Raugly Harbour","height":195});
															thumbnails[6083431] = clik.newPhoto({"id":6083431,"src":"12-Vystava-_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6083431.html","width":130,"caption":"Mirrors in Phoenix Park","height":195});
															thumbnails[6103618] = clik.newPhoto({"id":6103618,"src":"VIPURBAN-0481_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6103618.html","width":130,"caption":"Yellow Lines","height":195});
															thumbnails[6110890] = clik.newPhoto({"id":6110890,"src":"VIPCZWINT-2069_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110890.html","width":130,"caption":"Above the mist","height":195});
															thumbnails[6112411] = clik.newPhoto({"id":6112411,"src":"VIPINTPAT-1434_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6112411.html","width":130,"caption":"Secret River Delta","height":195});
															thumbnails[6170660] = clik.newPhoto({"id":6170660,"src":"VIPBWHIT-3709_thumb.jpg","galleries_id":341574,"server_id":32,"link":"photo_6170660.html","width":130,"caption":"High Above the Ocean","height":195});
															thumbnails[6177836] = clik.newPhoto({"id":6177836,"src":"VIPSRILAN-2048_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6177836.html","width":130,"caption":"Storm on the horizon","height":87});
															thumbnails[6749424] = clik.newPhoto({"id":6749424,"src":"Sweden-6646_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749424.html","width":130,"caption":"The Bridge","height":87});
															thumbnails[6828421] = clik.newPhoto({"id":6828421,"src":"Morocco-4146_thumb.jpg","galleries_id":338831,"server_id":32,"link":"photo_6828421.html","width":130,"caption":"The Shoemaker","height":195});
															thumbnails[6928831] = clik.newPhoto({"id":6928831,"src":"VIPCZWINT-3049_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6928831.html","width":130,"caption":"Alps on horizon","height":87});
															thumbnails[7248400] = clik.newPhoto({"id":7248400,"src":"VIPCZEWINT-9958_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248400.html","width":130,"caption":"Lonely House","height":195});
															thumbnails[7711891] = clik.newPhoto({"id":7711891,"src":"Achill_Island-Easter-3202_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711891.html","width":130,"caption":"","height":195});
															thumbnails[6083087] = clik.newPhoto({"id":6083087,"src":"VIPIRLSEA-3383_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6083087.html","width":130,"caption":"Vertical Limits","height":195});
															thumbnails[6103335] = clik.newPhoto({"id":6103335,"src":"VIPURBAN-0364_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6103335.html","width":130,"caption":"Duck Lane","height":87});
															thumbnails[6110902] = clik.newPhoto({"id":6110902,"src":"VIPCZWINT-2095_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110902.html","width":130,"caption":"Gold-bearing Veil","height":87});
															thumbnails[6177908] = clik.newPhoto({"id":6177908,"src":"VIPSRILAN-2008_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6177908.html","width":130,"caption":"Ocean Ghosts","height":195});
															thumbnails[6749627] = clik.newPhoto({"id":6749627,"src":"Sweden-Full--6668_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749627.html","width":130,"caption":"Perfect Reflections I.","height":195});
															thumbnails[7248403] = clik.newPhoto({"id":7248403,"src":"VIPCZEWINT-0256_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248403.html","width":130,"caption":"Winter Walk","height":87});
															thumbnails[7711898] = clik.newPhoto({"id":7711898,"src":"Achill_Island-Easter-3326.1_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711898.html","width":130,"caption":"","height":87});
															thumbnails[6083160] = clik.newPhoto({"id":6083160,"src":"VIPSRILAN-2918II_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6083160.html","width":130,"caption":"Dalkey Shore","height":195});
															thumbnails[6103339] = clik.newPhoto({"id":6103339,"src":"VIPURBAN-8815_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6103339.html","width":130,"caption":"Dazed & Confused","height":87});
															thumbnails[6110908] = clik.newPhoto({"id":6110908,"src":"VIPCZWINT-2205_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110908.html","width":130,"caption":"First Light","height":87});
															thumbnails[6113306] = clik.newPhoto({"id":6113306,"src":"VIPIRLLAND-1211_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6113306.html","width":130,"caption":"Rocky Shores","height":87});
															thumbnails[6118449] = clik.newPhoto({"id":6118449,"src":"28-Vystava-_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6118449.html","width":130,"caption":"Prince William Seat","height":87});
															thumbnails[6123629] = clik.newPhoto({"id":6123629,"src":"VIPINTPAT-3664_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6123629.html","width":130,"caption":"Black Fly","height":87});
															thumbnails[6124732] = clik.newPhoto({"id":6124732,"src":"VIPINTPAT-2848_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6124732.html","width":130,"caption":"Ground Frost","height":87});
															thumbnails[6749628] = clik.newPhoto({"id":6749628,"src":"Sweden-6158_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749628.html","width":130,"caption":"Visttasvági Entrance","height":195});
															thumbnails[7248419] = clik.newPhoto({"id":7248419,"src":"VIPCZEWINT-0178_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248419.html","width":130,"caption":"Three Swans","height":87});
															thumbnails[7711894] = clik.newPhoto({"id":7711894,"src":"Achill_Island-Easter-3295_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711894.html","width":130,"caption":"","height":87});
															thumbnails[6083179] = clik.newPhoto({"id":6083179,"src":"23-Vystava_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6083179.html","width":130,"caption":"Lines of life","height":195});
															thumbnails[6103340] = clik.newPhoto({"id":6103340,"src":"VIPURBAN-2621_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6103340.html","width":130,"caption":"Custom House","height":87});
															thumbnails[6110910] = clik.newPhoto({"id":6110910,"src":"VIPINPAT-2090_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_6110910.html","width":130,"caption":"Hell in the Sky","height":87});
															thumbnails[6118454] = clik.newPhoto({"id":6118454,"src":"19-Vystava_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6118454.html","width":130,"caption":"Hidden Creek","height":87});
															thumbnails[6124744] = clik.newPhoto({"id":6124744,"src":"VIPINTPAT-9307_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6124744.html","width":130,"caption":"Subtle","height":87});
															thumbnails[6224251] = clik.newPhoto({"id":6224251,"src":"VIPSRILAN-3060_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6224251.html","width":130,"caption":"Rain came down","height":87});
															thumbnails[6749632] = clik.newPhoto({"id":6749632,"src":"Sweden-Full--6665_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749632.html","width":130,"caption":"Perfect Reflections II.","height":195});
															thumbnails[7248412] = clik.newPhoto({"id":7248412,"src":"VIPCZEWINT-9891-2_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248412.html","width":130,"caption":"Minutes To Sunrise","height":87});
															thumbnails[7711903] = clik.newPhoto({"id":7711903,"src":"Achill_Island-Easter-3334_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711903.html","width":130,"caption":"","height":87});
															thumbnails[6112470] = clik.newPhoto({"id":6112470,"src":"VIPIRLSEA-1412_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6112470.html","width":130,"caption":"Strange formations","height":87});
															thumbnails[6119280] = clik.newPhoto({"id":6119280,"src":"21-Vystava-_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6119280.html","width":130,"caption":"Alone","height":195});
															thumbnails[6124712] = clik.newPhoto({"id":6124712,"src":"VIPURBAN-9516_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6124712.html","width":130,"caption":"Red Sticks","height":195});
															thumbnails[6257554] = clik.newPhoto({"id":6257554,"src":"VIPSRILAN-2638v_thumb.jpg","galleries_id":338832,"server_id":32,"link":"photo_6257554.html","width":130,"caption":"Lifting Mist","height":87});
															thumbnails[6439656] = clik.newPhoto({"id":6439656,"src":"VIPOTH-4532_thumb.jpg","galleries_id":338835,"server_id":32,"link":"photo_6439656.html","width":130,"caption":"Shining Out","height":195});
															thumbnails[6749638] = clik.newPhoto({"id":6749638,"src":"Sweden-6686_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749638.html","width":130,"caption":"Season of change","height":87});
															thumbnails[7248422] = clik.newPhoto({"id":7248422,"src":"VIPCZEWINT-0356_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248422.html","width":130,"caption":"Misty Orchard","height":87});
															thumbnails[7711908] = clik.newPhoto({"id":7711908,"src":"Achill_Island-Easter-2893_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711908.html","width":130,"caption":"","height":195});
															thumbnails[6083356] = clik.newPhoto({"id":6083356,"src":"VIPIRLSEA-3710_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6083356.html","width":130,"caption":"Armageddon","height":87});
															thumbnails[6119281] = clik.newPhoto({"id":6119281,"src":"VIPIRLAND-1123_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6119281.html","width":130,"caption":"Autumn Creek","height":195});
															thumbnails[6124714] = clik.newPhoto({"id":6124714,"src":"VIPURBAN-9933_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6124714.html","width":130,"caption":"Poolbeg Station","height":195});
															thumbnails[6749889] = clik.newPhoto({"id":6749889,"src":"Sweden-Full--6436_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6749889.html","width":130,"caption":"On the edge","height":87});
															thumbnails[7248428] = clik.newPhoto({"id":7248428,"src":"VIPCZEWINT-0042_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248428.html","width":130,"caption":"Icebound","height":195});
															thumbnails[7711909] = clik.newPhoto({"id":7711909,"src":"Achill_Island-Easter-3016_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711909.html","width":130,"caption":"","height":87});
															thumbnails[6112501] = clik.newPhoto({"id":6112501,"src":"VIPURBAN-2560_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6112501.html","width":130,"caption":"Dublin Port","height":87});
															thumbnails[6119343] = clik.newPhoto({"id":6119343,"src":"Phoenix-1583_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6119343.html","width":130,"caption":"Cold morning","height":195});
															thumbnails[6124723] = clik.newPhoto({"id":6124723,"src":"VIPURBAN-9625_thumb.jpg","galleries_id":339111,"server_id":32,"link":"photo_6124723.html","width":130,"caption":"Glowing City","height":195});
															thumbnails[6750012] = clik.newPhoto({"id":6750012,"src":"Sweden-6626_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6750012.html","width":130,"caption":"Beautiful Morning","height":87});
															thumbnails[7248431] = clik.newPhoto({"id":7248431,"src":"VIPCZEWINT-0062_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7248431.html","width":130,"caption":"Steaming Creek","height":87});
															thumbnails[7711931] = clik.newPhoto({"id":7711931,"src":"Achill_Island-Easter-3035_thumb.jpg","galleries_id":338824,"server_id":32,"link":"photo_7711931.html","width":130,"caption":"","height":87});
															thumbnails[6112549] = clik.newPhoto({"id":6112549,"src":"VIPIRLSEA-1369_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6112549.html","width":130,"caption":"Hidden Lines","height":195});
															thumbnails[6554527] = clik.newPhoto({"id":6554527,"src":"VIPIRLLAND-4683_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_6554527.html","width":130,"caption":"Fiery Sunset","height":87});
															thumbnails[6750040] = clik.newPhoto({"id":6750040,"src":"Sweden-Full--7066_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6750040.html","width":130,"caption":"Northern Lights II.","height":87});
															thumbnails[7264787] = clik.newPhoto({"id":7264787,"src":"Viktor_4-0069_thumb.jpg","galleries_id":338864,"server_id":32,"link":"photo_7264787.html","width":130,"caption":"Hot Springs","height":195});
															thumbnails[6112543] = clik.newPhoto({"id":6112543,"src":"VIPIRLSEA-1395_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6112543.html","width":130,"caption":"Green Stone","height":195});
															thumbnails[6750098] = clik.newPhoto({"id":6750098,"src":"Sweden-Full--6463_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6750098.html","width":130,"caption":"The Cascade","height":87});
															thumbnails[7008295] = clik.newPhoto({"id":7008295,"src":"Dargle_River_Cascade-web_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_7008295.html","width":130,"caption":"The Point of Return","height":87});
															thumbnails[7008397] = clik.newPhoto({"id":7008397,"src":"VIPIRLLAND-0952_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_7008397.html","width":130,"caption":"Mount Errigal","height":195});
															thumbnails[6750254] = clik.newPhoto({"id":6750254,"src":"Sweden-7070_thumb.jpg","galleries_id":366921,"server_id":32,"link":"photo_6750254.html","width":130,"caption":"Northern Lights III.","height":87});
															thumbnails[7054589] = clik.newPhoto({"id":7054589,"src":"VIPIRLLAND-9151small_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_7054589.html","width":130,"caption":"","height":195});
															thumbnails[7126760] = clik.newPhoto({"id":7126760,"src":"VIPIRLLAND-9494-3_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_7126760.html","width":130,"caption":"","height":87});
															thumbnails[6113318] = clik.newPhoto({"id":6113318,"src":"VIPIRLSEA-4075_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6113318.html","width":130,"caption":"Semipermiable","height":195});
															thumbnails[6119663] = clik.newPhoto({"id":6119663,"src":"VIPIRLLAND-0926_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6119663.html","width":130,"caption":"Rock Tooth","height":195});
															thumbnails[7048191] = clik.newPhoto({"id":7048191,"src":"VIPIRlLAND-9057_thumb.jpg","galleries_id":338861,"server_id":32,"link":"photo_7048191.html","width":130,"caption":"","height":195});
															thumbnails[6119677] = clik.newPhoto({"id":6119677,"src":"05-Vystava-_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6119677.html","width":130,"caption":"Clontarf blaze","height":195});
															thumbnails[6119688] = clik.newPhoto({"id":6119688,"src":"20-Vystava_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6119688.html","width":130,"caption":"Giant's Causeway","height":195});
															thumbnails[6119757] = clik.newPhoto({"id":6119757,"src":"22-Vystava_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6119757.html","width":130,"caption":"Sky in the fire","height":87});
															thumbnails[6119766] = clik.newPhoto({"id":6119766,"src":"07-Vystava-_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6119766.html","width":130,"caption":"Coast Guard","height":87});
															thumbnails[6119773] = clik.newPhoto({"id":6119773,"src":"10-Vystava_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6119773.html","width":130,"caption":"Pink, Blue & Yellow","height":87});
															thumbnails[6079736] = clik.newPhoto({"id":6079736,"src":"VIPIRLSEA-2897_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6079736.html","width":130,"caption":"Light of hope","height":87});
															thumbnails[6027025] = clik.newPhoto({"id":6027025,"src":"Buren-3732_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6027025.html","width":130,"caption":"Cliffs of Moher","height":87});
															thumbnails[6066115] = clik.newPhoto({"id":6066115,"src":"VIPIRLSEA-3347_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6066115.html","width":130,"caption":"Evening Blues - Pointe na Páirce","height":87});
															thumbnails[6079757] = clik.newPhoto({"id":6079757,"src":"VIPIRLSEA-4122_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6079757.html","width":130,"caption":"Volcanic Ash hues","height":195});
															thumbnails[6080596] = clik.newPhoto({"id":6080596,"src":"VIPIRLSEA-4007_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6080596.html","width":130,"caption":"Sky in the Sea","height":195});
															thumbnails[6080606] = clik.newPhoto({"id":6080606,"src":"VIPIRLSEA-3083_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6080606.html","width":130,"caption":"Sunrise at Poolbeg","height":195});
															thumbnails[6066625] = clik.newPhoto({"id":6066625,"src":"VIPIRLSEA-3438_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6066625.html","width":130,"caption":"The Big Sister I.","height":87});
															thumbnails[6066643] = clik.newPhoto({"id":6066643,"src":"VIPIRLSEA-002-3394_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6066643.html","width":130,"caption":"The Three Sisters ","height":87});
															thumbnails[6264519] = clik.newPhoto({"id":6264519,"src":"VIPIRLSAE-3425_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6264519.html","width":130,"caption":"The Big Sister II.","height":87});
															thumbnails[6439666] = clik.newPhoto({"id":6439666,"src":"VIPIRLSAE-3765_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6439666.html","width":130,"caption":"Fading light","height":195});
															thumbnails[6351992] = clik.newPhoto({"id":6351992,"src":"VIPIRLSAE-4054_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6351992.html","width":130,"caption":"Orange Limestone","height":195});
															thumbnails[6898768] = clik.newPhoto({"id":6898768,"src":"Sligo-7665_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6898768.html","width":130,"caption":"Buoys II.","height":195});
															thumbnails[6396783] = clik.newPhoto({"id":6396783,"src":"VIPIRLSAE-4306ii_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6396783.html","width":130,"caption":"Clearing after storm","height":86});
															thumbnails[6605040] = clik.newPhoto({"id":6605040,"src":"Bull-Island-5460_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6605040.html","width":130,"caption":"Rainbow","height":87});
															thumbnails[6898783] = clik.newPhoto({"id":6898783,"src":"Sligo-7649_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6898783.html","width":130,"caption":"The storm is over","height":87});
															thumbnails[6898732] = clik.newPhoto({"id":6898732,"src":"Sligo-7642_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6898732.html","width":130,"caption":"Bandorran","height":87});
															thumbnails[6898725] = clik.newPhoto({"id":6898725,"src":"Sligo-7702-2_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6898725.html","width":130,"caption":"Swept Away","height":78});
															thumbnails[6896285] = clik.newPhoto({"id":6896285,"src":"VIPIRLSEA-7613_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6896285.html","width":130,"caption":"Buoys in the storm","height":87});
															thumbnails[6954690] = clik.newPhoto({"id":6954690,"src":"Poolbeg-8204_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6954690.html","width":130,"caption":"Alone in the fire","height":87});
															thumbnails[6954735] = clik.newPhoto({"id":6954735,"src":"Poolbeg-8257_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6954735.html","width":130,"caption":"A floating monster","height":87});
															thumbnails[6954712] = clik.newPhoto({"id":6954712,"src":"Poolbeg-8211-2_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_6954712.html","width":130,"caption":"Three","height":87});
															thumbnails[7422353] = clik.newPhoto({"id":7422353,"src":"IMG_0917_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_7422353.html","width":130,"caption":"The Tranquil Morning","height":87});
															thumbnails[7422386] = clik.newPhoto({"id":7422386,"src":"Howth-0782_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_7422386.html","width":130,"caption":"The Two Towers at Dusk","height":87});
															thumbnails[7422426] = clik.newPhoto({"id":7422426,"src":"Howth-0924-Blend_2_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_7422426.html","width":130,"caption":"Sand Ripples","height":195});
															thumbnails[7422423] = clik.newPhoto({"id":7422423,"src":"Howth-0763_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_7422423.html","width":130,"caption":"Seaweed","height":195});
															thumbnails[7422419] = clik.newPhoto({"id":7422419,"src":"Howth-0743_thumb.jpg","galleries_id":338865,"server_id":32,"link":"photo_7422419.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[338865] = clik.newGallery({"parentGallery":338825,"usePopups":false,"title":"Irish Seascape","link":"gallery_338865.html","maxRecords":0.0,"photoIDs":[6026814.0,6031106.0,6082988.0,6082891.0,6083036.0,6080973.0,6083087.0,6083160.0,6083179.0,6112470.0,6083356.0,6112501.0,6112549.0,6112543.0,6113318.0,6119663.0,6119677.0,6119688.0,6119757.0,6119766.0,6119773.0,6079736.0,6027025.0,6066115.0,6079757.0,6080596.0,6080606.0,6066625.0,6066643.0,6264519.0,6439666.0,6351992.0,6898768.0,6396783.0,6605040.0,6898783.0,6898732.0,6898725.0,6896285.0,6954690.0,6954735.0,6954712.0,7422353.0,7422386.0,7422426.0,7422423.0,7422419.0],"skipIndex":0,"section_code":"gallery","featured_images":"7422353,6066115,6031106","id":338865,"singleSection":false});				  						galleries[338824] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Latest Work","link":"gallery_338824.html","maxRecords":0.0,"photoIDs":[7711867.0,7711875.0,7711882.0,7711886.0,7711887.0,7711891.0,7711898.0,7711894.0,7711903.0,7711908.0,7711909.0,7711931.0],"skipIndex":0,"section_code":"gallery","featured_images":7711867.0,"id":338824,"singleSection":false});				  						galleries[338864] = clik.newGallery({"parentGallery":338826,"usePopups":false,"title":"Winter","link":"gallery_338864.html","maxRecords":0.0,"photoIDs":[6066167.0,7248359.0,6110845.0,7248373.0,6110849.0,6110888.0,7248384.0,6110884.0,7248388.0,6110890.0,6928831.0,7248400.0,6110902.0,7248403.0,6110908.0,7248419.0,6110910.0,7248412.0,7248422.0,7248428.0,7248431.0,7264787.0],"skipIndex":0,"section_code":"gallery","featured_images":"7248412,7248359,6066167","id":338864,"singleSection":false});				  						galleries[338825] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ireland","link":"gallery_338825.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7422353,7008295,6066115,6031115,6031106","id":338825,"singleSection":false});				  						galleries[338861] = clik.newGallery({"parentGallery":338825,"usePopups":false,"title":"Irish Landscape","link":"gallery_338861.html","maxRecords":0.0,"photoIDs":[6031115.0,6036218.0,6031178.0,6083443.0,6083439.0,6083431.0,6113306.0,6118449.0,6118454.0,6119280.0,6119281.0,6119343.0,6554527.0,7008295.0,7008397.0,7054589.0,7126760.0,7048191.0],"skipIndex":0,"section_code":"gallery","featured_images":"7008295,6031115","id":338861,"singleSection":false});				  						galleries[338862] = clik.newGallery({"parentGallery":338826,"usePopups":false,"title":"Summer","link":"gallery_338862.html","maxRecords":0.0,"photoIDs":[6171119.0,6171121.0,6171143.0,6031184.0],"skipIndex":0,"section_code":"gallery","featured_images":"6171143,6171121,6171119,6031184","id":338862,"singleSection":false});				  						galleries[338826] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Czech Republic","link":"gallery_338826.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7248412,7248359,6066167","id":338826,"singleSection":false});				  						galleries[338831] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Morocco","link":"gallery_338831.html","maxRecords":0.0,"photoIDs":[6065664.0,6823589.0,6828388.0,6828410.0,6828415.0,6828421.0],"skipIndex":0,"section_code":"gallery","featured_images":6065664.0,"id":338831,"singleSection":false});				  						galleries[338832] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sri Lanka","link":"gallery_338832.html","maxRecords":0.0,"photoIDs":[6177691.0,6177702.0,6177824.0,6065666.0,6177835.0,6177836.0,6177908.0,6224251.0,6257554.0],"skipIndex":0,"section_code":"gallery","featured_images":6065666.0,"id":338832,"singleSection":false});				  						galleries[338835] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Intimate Patterns","link":"gallery_338835.html","maxRecords":0.0,"photoIDs":[6065834.0,6112347.0,6112350.0,6112358.0,6112401.0,6112411.0,6123629.0,6124732.0,6124744.0,6439656.0],"skipIndex":0,"section_code":"gallery","featured_images":6065834.0,"id":338835,"singleSection":false});				  						galleries[339111] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Urban Landscapes","link":"gallery_339111.html","maxRecords":0.0,"photoIDs":[7422432.0,6065679.0,6102417.0,6084775.0,6103342.0,6103345.0,6103618.0,6103335.0,6103339.0,6103340.0,6124712.0,6124714.0,6124723.0],"skipIndex":0,"section_code":"gallery","featured_images":6065679.0,"id":339111,"singleSection":false});				  						galleries[341574] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_341574.html","maxRecords":0.0,"photoIDs":[6084801.0,6112434.0,6123532.0,6169974.0,6120320.0,6170660.0],"skipIndex":0,"section_code":"gallery","featured_images":6084801.0,"id":341574,"singleSection":false});				  						galleries[343701] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Others","link":"gallery_343701.html","maxRecords":0.0,"photoIDs":[6130097.0,6898772.0],"skipIndex":0,"section_code":"gallery","featured_images":6130097.0,"id":343701,"singleSection":false});				  						galleries[366921] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sweden","link":"gallery_366921.html","maxRecords":0.0,"photoIDs":[6749113.0,6749413.0,6749416.0,6728860.0,6749421.0,6749424.0,6749627.0,6749628.0,6749632.0,6749638.0,6749889.0,6750012.0,6750040.0,6750098.0,6750254.0],"skipIndex":0,"section_code":"gallery","featured_images":6728860.0,"id":366921,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7711931,7711909,7711908,7711903,7711898,7711894,7711891,7711887,7711886,7711882,7711875,7711867,7422386,7422353';
imageSets[2] = '7711867,7422353,7248412,7248359,7008295,6728860,6130097,6084801,6066167,6066115,6065834,6065679,6065666,6065664,6031115,6031106';
imageSets[3] = '7711931,7711909,7711908,7711903,7711898,7711894,7711891,7711887,7711886,7711882,7711875,7711867,7422432,7422426,7422423,7422419,7422386,7422353,7264787,7248431,7248428,7248422,7248419,7248412,7248403,7248400,7248388,7248384,7248373,7248359,7126760,7054589,7048191,7008397,7008295,6954735,6954712,6954690,6928831,6898783,6898772,6898768,6898732,6898725,6896285,6828421,6828415,6828410,6828388,6823589';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/vikous/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/vikous/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/vikous/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/vikous/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/vikous/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/vikous/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/vikous/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'VIKTOR PRESSL PHOTOGRAPHY: ' + 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> &euro;' + (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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="VIKOUS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

