window.thumbnails = {};
															thumbnails[3420668] = clik.newPhoto({"id":3420668,"src":"_DSC7228-Edit_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3420668.html","width":130,"caption":"","height":101});
															thumbnails[3420670] = clik.newPhoto({"id":3420670,"src":"_DSC7207-Edit-Edit_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3420670.html","width":130,"caption":"","height":50});
															thumbnails[3420671] = clik.newPhoto({"id":3420671,"src":"_DSC4345-Edit-Edit-2_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3420671.html","width":130,"caption":"","height":85});
															thumbnails[3190088] = clik.newPhoto({"id":3190088,"src":"blue-tit-in-reed-bedfl_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3190088.html","width":130,"caption":"Blue Tit in reed bed","height":100});
															thumbnails[3190159] = clik.newPhoto({"id":3190159,"src":"Grey-Heronfl_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3190159.html","width":130,"caption":"Grey Heron","height":86});
															thumbnails[3190198] = clik.newPhoto({"id":3190198,"src":"Grey-Heron-in-flightfl_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3190198.html","width":130,"caption":"Grey Heron ","height":87});
															thumbnails[2470935] = clik.newPhoto({"id":2470935,"src":"Great Grey Owl_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2470935.html","width":130,"caption":"Great Grey Owl Strix nebulosa","height":172});
															thumbnails[2470943] = clik.newPhoto({"id":2470943,"src":"Barn Owl 1_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2470943.html","width":130,"caption":"Barn Owl 1 Tyto Alba","height":136});
															thumbnails[2470950] = clik.newPhoto({"id":2470950,"src":"Barn Owl 2_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2470950.html","width":130,"caption":"Barn Owl 2 Tyto Alba","height":100});
															thumbnails[2470955] = clik.newPhoto({"id":2470955,"src":"Barn Owl 3_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2470955.html","width":130,"caption":"Barn Owl 3 Tyto Alba","height":89});
															thumbnails[2470998] = clik.newPhoto({"id":2470998,"src":"Golden Eagle 1_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2470998.html","width":130,"caption":"Golden Eagle 1 (Aquila Chrysaetos)","height":89});
															thumbnails[2471000] = clik.newPhoto({"id":2471000,"src":"Golden Eagle 2_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2471000.html","width":130,"caption":"Golden Eagle 2 (Aquila Chrysaetos)","height":102});
															thumbnails[2471071] = clik.newPhoto({"id":2471071,"src":"Lanner Falcon_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2471071.html","width":130,"caption":"Lanner Falcon Falco biarmicus","height":87});
															thumbnails[2471321] = clik.newPhoto({"id":2471321,"src":"BTS 1_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2471321.html","width":130,"caption":"BTS 1","height":87});
															thumbnails[2471346] = clik.newPhoto({"id":2471346,"src":"BTS 3_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2471346.html","width":130,"caption":"BTS 3","height":104});
															thumbnails[2471361] = clik.newPhoto({"id":2471361,"src":"BTS 5_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2471361.html","width":130,"caption":"BTS 5","height":134});
															thumbnails[2487702] = clik.newPhoto({"id":2487702,"src":"Lone Surfer_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2487702.html","width":130,"caption":"Lone Surfer","height":58});
															thumbnails[2510969] = clik.newPhoto({"id":2510969,"src":"wind-surf-1-web1_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2510969.html","width":130,"caption":"Windsurfer 1","height":52});
															thumbnails[2510971] = clik.newPhoto({"id":2510971,"src":"windsurf-2-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2510971.html","width":130,"caption":"Wind Surfer 2","height":55});
															thumbnails[2510974] = clik.newPhoto({"id":2510974,"src":"wind-surf-3-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_2510974.html","width":130,"caption":"Well Airborne","height":67});
															thumbnails[2510982] = clik.newPhoto({"id":2510982,"src":"Autumn-Waterweb_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_2510982.html","width":130,"caption":"Autumn Water","height":117});
															thumbnails[2510986] = clik.newPhoto({"id":2510986,"src":"Autumn-Water-2web1_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_2510986.html","width":130,"caption":"Autumn Water 2","height":125});
															thumbnails[2510993] = clik.newPhoto({"id":2510993,"src":"Autumn-Water-3web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_2510993.html","width":130,"caption":"Autumn Water 3","height":109});
															thumbnails[2511227] = clik.newPhoto({"id":2511227,"src":"Red Squirrel 1_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2511227.html","width":130,"caption":"Red Squirrel 1","height":87});
															thumbnails[2520884] = clik.newPhoto({"id":2520884,"src":"Tawny-Owl-2web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2520884.html","width":130,"caption":"Tawny Owl","height":87});
															thumbnails[2535806] = clik.newPhoto({"id":2535806,"src":"crested-tit-1-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2535806.html","width":130,"caption":"Crested Tit (Parus cristatus)","height":81});
															thumbnails[2535817] = clik.newPhoto({"id":2535817,"src":"blue-tit-2-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2535817.html","width":130,"caption":"Blue Tit (Parus caeruleus)","height":102});
															thumbnails[2535848] = clik.newPhoto({"id":2535848,"src":"red-squirrel-5-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2535848.html","width":130,"caption":"Red Squirrel 5","height":165});
															thumbnails[2535871] = clik.newPhoto({"id":2535871,"src":"Siskin-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_2535871.html","width":130,"caption":"Siskin (Carduelis spinus)","height":158});
															thumbnails[3021277] = clik.newPhoto({"id":3021277,"src":"_DSC1989web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_3021277.html","width":130,"caption":"Sunset Yosemite Valley","height":86});
															thumbnails[3021279] = clik.newPhoto({"id":3021279,"src":"_DSC2294web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_3021279.html","width":130,"caption":"Half Dome Rock","height":86});
															thumbnails[3021289] = clik.newPhoto({"id":3021289,"src":"_DSC2505web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_3021289.html","width":130,"caption":"Sunset, Yosemite","height":58});
															thumbnails[3021312] = clik.newPhoto({"id":3021312,"src":"_DSC2953_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_3021312.html","width":130,"caption":"sunset San Francisco","height":86});
															thumbnails[3077320] = clik.newPhoto({"id":3077320,"src":"_DSC3406editweb_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3077320.html","width":130,"caption":"Barn Owl in Flight","height":86});
															thumbnails[3211546] = clik.newPhoto({"id":3211546,"src":"_DSC4473_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3211546.html","width":130,"caption":"Snowy Owl","height":92});
															thumbnails[3211549] = clik.newPhoto({"id":3211549,"src":"_DSC4474_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3211549.html","width":130,"caption":"Snowy Owl","height":87});
															thumbnails[3211554] = clik.newPhoto({"id":3211554,"src":"_DSC5374_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3211554.html","width":130,"caption":"Golden Eagle","height":87});
															thumbnails[3324974] = clik.newPhoto({"id":3324974,"src":"_DSC0568-Edit_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3324974.html","width":130,"caption":"Lord of the Manor","height":206});
															thumbnails[3324976] = clik.newPhoto({"id":3324976,"src":"_DSC0816-Edit_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3324976.html","width":130,"caption":"Blue Tit on Birch Tree","height":180});
															thumbnails[3325009] = clik.newPhoto({"id":3325009,"src":"_DSC1938-Edit_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3325009.html","width":130,"caption":"Golden Eagle","height":86});
															thumbnails[3325010] = clik.newPhoto({"id":3325010,"src":"_DSC1957-Edit_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3325010.html","width":130,"caption":"Golden Eagle","height":196});
															thumbnails[3594551] = clik.newPhoto({"id":3594551,"src":"_DSC0867-sharp1_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3594551.html","width":130,"caption":"Barn Owl","height":70});
															thumbnails[3594571] = clik.newPhoto({"id":3594571,"src":"_DSC0062-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3594571.html","width":130,"caption":"Barn Owl","height":77});
															thumbnails[3600043] = clik.newPhoto({"id":3600043,"src":"_DSC3788-Edit_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3600043.html","width":130,"caption":"Red Kite","height":93});
															thumbnails[3600047] = clik.newPhoto({"id":3600047,"src":"_DSC8734-sharp_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3600047.html","width":130,"caption":"Dunlin","height":80});
															thumbnails[3600054] = clik.newPhoto({"id":3600054,"src":"_DSC9010-sharp_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3600054.html","width":130,"caption":"Sanderling","height":74});
															thumbnails[3600062] = clik.newPhoto({"id":3600062,"src":"_DSC9674-sharp_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3600062.html","width":130,"caption":"Mallard","height":154});
															thumbnails[3600065] = clik.newPhoto({"id":3600065,"src":"_DSC9729-sharp_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_3600065.html","width":130,"caption":"Mr&Mrs","height":77});
															thumbnails[3702930] = clik.newPhoto({"id":3702930,"src":"_DSC5371-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3702930.html","width":130,"caption":"","height":72});
															thumbnails[3702933] = clik.newPhoto({"id":3702933,"src":"_DSC5515-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3702933.html","width":130,"caption":"","height":84});
															thumbnails[3702948] = clik.newPhoto({"id":3702948,"src":"_DSC5382-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3702948.html","width":130,"caption":"","height":92});
															thumbnails[3702950] = clik.newPhoto({"id":3702950,"src":"_DSC5439-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3702950.html","width":130,"caption":"","height":72});
															thumbnails[3702952] = clik.newPhoto({"id":3702952,"src":"_DSC5454-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3702952.html","width":130,"caption":"","height":86});
															thumbnails[3702956] = clik.newPhoto({"id":3702956,"src":"_DSC5643-web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_3702956.html","width":130,"caption":"","height":110});
															thumbnails[4182266] = clik.newPhoto({"id":4182266,"src":"_DSC0015_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4182266.html","width":130,"caption":"sunset over Groomsport Harbour, County Down, Northern Ireland","height":51});
															thumbnails[4182269] = clik.newPhoto({"id":4182269,"src":"_DSC0359_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4182269.html","width":130,"caption":"","height":86});
															thumbnails[4182274] = clik.newPhoto({"id":4182274,"src":"_DSC0412_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4182274.html","width":130,"caption":"sunset afterglow over County Antrim","height":59});
															thumbnails[4182287] = clik.newPhoto({"id":4182287,"src":"_DSC9438_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4182287.html","width":130,"caption":"","height":86});
															thumbnails[4182296] = clik.newPhoto({"id":4182296,"src":"_DSC9978_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4182296.html","width":130,"caption":"Groomsport sunset","height":86});
															thumbnails[4337183] = clik.newPhoto({"id":4337183,"src":"_DSC3725_web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_4337183.html","width":130,"caption":"Water Yoga","height":76});
															thumbnails[4337193] = clik.newPhoto({"id":4337193,"src":"_DSC3817_web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_4337193.html","width":130,"caption":"Three Amigos","height":190});
															thumbnails[4337200] = clik.newPhoto({"id":4337200,"src":"Portballintrae_web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4337200.html","width":130,"caption":"Portballintrae","height":77});
															thumbnails[4337211] = clik.newPhoto({"id":4337211,"src":"White_Park_Bay_web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4337211.html","width":130,"caption":"Whitepark Bay","height":86});
															thumbnails[4337213] = clik.newPhoto({"id":4337213,"src":"White_Rocks_beach_Portrush_web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_4337213.html","width":130,"caption":"sea daisies","height":92});
															thumbnails[4337661] = clik.newPhoto({"id":4337661,"src":"_DSC0515_web_thumb.jpg","galleries_id":158856,"server_id":32,"link":"photo_4337661.html","width":130,"caption":"seafarers 2","height":106});
															thumbnails[4337706] = clik.newPhoto({"id":4337706,"src":"_DSC4908-Edit-Edit_web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_4337706.html","width":130,"caption":"Golden Eagle","height":87});
															thumbnails[5292216] = clik.newPhoto({"id":5292216,"src":"_DSC4573_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5292216.html","width":130,"caption":"Scrabo Tower","height":55});
															thumbnails[5566783] = clik.newPhoto({"id":5566783,"src":"scrabo-sunrise-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5566783.html","width":130,"caption":"Scrabo Tower sunrise","height":57});
															thumbnails[5567325] = clik.newPhoto({"id":5567325,"src":"_DSC6518_Resized_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5567325.html","width":130,"caption":"","height":86});
															thumbnails[5567333] = clik.newPhoto({"id":5567333,"src":"_DSC7677_Resized_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5567333.html","width":130,"caption":"eider duck","height":135});
															thumbnails[5567342] = clik.newPhoto({"id":5567342,"src":"_DSC7737_Resized_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5567342.html","width":130,"caption":"Whooper Portrait","height":184});
															thumbnails[5567489] = clik.newPhoto({"id":5567489,"src":"_DSC7494_Resized_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5567489.html","width":130,"caption":"Common Pheasant","height":104});
															thumbnails[5725654] = clik.newPhoto({"id":5725654,"src":"Teton-Barn-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5725654.html","width":130,"caption":"Grand Teton Barn","height":87});
															thumbnails[5725671] = clik.newPhoto({"id":5725671,"src":"teton-sunrise-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5725671.html","width":130,"caption":"Sunrise","height":56});
															thumbnails[5725682] = clik.newPhoto({"id":5725682,"src":"bald-eagle-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5725682.html","width":130,"caption":"Bald Eagle","height":72});
															thumbnails[5725690] = clik.newPhoto({"id":5725690,"src":"bald-eagle2-web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5725690.html","width":130,"caption":"Bald Eagle","height":111});
															thumbnails[5850076] = clik.newPhoto({"id":5850076,"src":"_DSC0465web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5850076.html","width":130,"caption":"migration","height":76});
															thumbnails[5850130] = clik.newPhoto({"id":5850130,"src":"_DSC0500web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5850130.html","width":130,"caption":"Grand Teton","height":77});
															thumbnails[5850134] = clik.newPhoto({"id":5850134,"src":"_DSC0511web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5850134.html","width":130,"caption":"first signs of Spring","height":81});
															thumbnails[5850184] = clik.newPhoto({"id":5850184,"src":"_DSC0631web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5850184.html","width":130,"caption":"Ground Squirrel","height":84});
															thumbnails[5850190] = clik.newPhoto({"id":5850190,"src":"_DSC0665web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5850190.html","width":130,"caption":"cabin","height":87});
															thumbnails[5850222] = clik.newPhoto({"id":5850222,"src":"_DSC1213web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5850222.html","width":130,"caption":"Montana building","height":87});
															thumbnails[5850244] = clik.newPhoto({"id":5850244,"src":"_DSC1362web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5850244.html","width":130,"caption":"Hunting Coyote","height":105});
															thumbnails[5850252] = clik.newPhoto({"id":5850252,"src":"_DSC1391web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5850252.html","width":130,"caption":"Frozen waterfall near Cooke City, Yellowstone National Park","height":195});
															thumbnails[5850284] = clik.newPhoto({"id":5850284,"src":"_DSC1405web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5850284.html","width":130,"caption":"frozen waterfall","height":195});
															thumbnails[5850303] = clik.newPhoto({"id":5850303,"src":"_DSC1467web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5850303.html","width":130,"caption":"migrating Bison","height":87});
															thumbnails[5852225] = clik.newPhoto({"id":5852225,"src":"_DSC1412web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5852225.html","width":130,"caption":"Lamar Valley Yellowstone National Park","height":73});
															thumbnails[5852231] = clik.newPhoto({"id":5852231,"src":"_DSC1415web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5852231.html","width":130,"caption":"Lamar Valley","height":82});
															thumbnails[5852237] = clik.newPhoto({"id":5852237,"src":"_DSC1482web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5852237.html","width":130,"caption":"Mammoth","height":87});
															thumbnails[5852247] = clik.newPhoto({"id":5852247,"src":"_DSC1512web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5852247.html","width":130,"caption":"yellowstone National Park","height":88});
															thumbnails[5852251] = clik.newPhoto({"id":5852251,"src":"_DSC1557web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_5852251.html","width":130,"caption":"hot spring","height":172});
															thumbnails[5886310] = clik.newPhoto({"id":5886310,"src":"sage-grouse_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_5886310.html","width":130,"caption":"sage grouse","height":87});
															thumbnails[6024501] = clik.newPhoto({"id":6024501,"src":"_DSC1454web_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_6024501.html","width":130,"caption":"Barn Owl (captive bird)","height":100});
															thumbnails[7407262] = clik.newPhoto({"id":7407262,"src":"_DSC3176-Edit-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_7407262.html","width":130,"caption":"Scrabo Tower sunrise","height":53});
															thumbnails[7407265] = clik.newPhoto({"id":7407265,"src":"_DSC3207-Edit-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_7407265.html","width":130,"caption":"Scrabo sunrise","height":68});
															thumbnails[7407309] = clik.newPhoto({"id":7407309,"src":"_DSC7164-Edit-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_7407309.html","width":130,"caption":"Winter sunrise Donaghadee","height":41});
															thumbnails[7407429] = clik.newPhoto({"id":7407429,"src":"_DSC9278-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_7407429.html","width":130,"caption":"Tollymore Forest","height":93});
															thumbnails[7407608] = clik.newPhoto({"id":7407608,"src":"_DSC8235-web_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_7407608.html","width":130,"caption":"Autumn reflections","height":87});
															thumbnails[7811216] = clik.newPhoto({"id":7811216,"src":"_DSC8767_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811216.html","width":130,"caption":"","height":106});
															thumbnails[7811220] = clik.newPhoto({"id":7811220,"src":"_DSC8756_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811220.html","width":130,"caption":"","height":108});
															thumbnails[7811285] = clik.newPhoto({"id":7811285,"src":"_DSC8792_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811285.html","width":130,"caption":"","height":99});
															thumbnails[7811299] = clik.newPhoto({"id":7811299,"src":"_DSC8828_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811299.html","width":130,"caption":"","height":87});
															thumbnails[7811303] = clik.newPhoto({"id":7811303,"src":"_DSC8823_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811303.html","width":130,"caption":"","height":94});
															thumbnails[7811327] = clik.newPhoto({"id":7811327,"src":"_DSC8857_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811327.html","width":130,"caption":"","height":88});
															thumbnails[7811332] = clik.newPhoto({"id":7811332,"src":"_DSC8977_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811332.html","width":130,"caption":"","height":87});
															thumbnails[7811334] = clik.newPhoto({"id":7811334,"src":"_DSC8715_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811334.html","width":130,"caption":"","height":108});
															thumbnails[7811336] = clik.newPhoto({"id":7811336,"src":"_DSC8995_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811336.html","width":130,"caption":"","height":100});
															thumbnails[7811340] = clik.newPhoto({"id":7811340,"src":"_DSC9014_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811340.html","width":130,"caption":"","height":90});
															thumbnails[7811343] = clik.newPhoto({"id":7811343,"src":"_DSC9137_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811343.html","width":130,"caption":"","height":109});
															thumbnails[7811346] = clik.newPhoto({"id":7811346,"src":"_DSC9195_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811346.html","width":130,"caption":"","height":97});
															thumbnails[7811349] = clik.newPhoto({"id":7811349,"src":"_DSC9209_thumb.jpg","galleries_id":421700,"server_id":32,"link":"photo_7811349.html","width":130,"caption":"","height":90});
															thumbnails[8004691] = clik.newPhoto({"id":8004691,"src":"_DSC0112-Edit_thumb.jpg","galleries_id":251027,"server_id":32,"link":"photo_8004691.html","width":130,"caption":"Bluebell","height":107});
															thumbnails[8004696] = clik.newPhoto({"id":8004696,"src":"_DSC0175_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8004696.html","width":130,"caption":"Snowbound Pheasant","height":86});
															thumbnails[8004704] = clik.newPhoto({"id":8004704,"src":"_DSC0881_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8004704.html","width":130,"caption":"Dawn Patrol","height":104});
															thumbnails[8004718] = clik.newPhoto({"id":8004718,"src":"_DSC1675_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8004718.html","width":130,"caption":"Bluebird","height":93});
															thumbnails[8005166] = clik.newPhoto({"id":8005166,"src":"_DSC1714_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8005166.html","width":130,"caption":"Grey Heron","height":196});
															thumbnails[8005168] = clik.newPhoto({"id":8005168,"src":"_DSC2122_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8005168.html","width":130,"caption":"","height":218});
															thumbnails[8005172] = clik.newPhoto({"id":8005172,"src":"_DSC2228_thumb.jpg","galleries_id":251027,"server_id":32,"link":"photo_8005172.html","width":130,"caption":"Pink Petals","height":93});
															thumbnails[8005177] = clik.newPhoto({"id":8005177,"src":"_DSC2351-Edit_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8005177.html","width":130,"caption":"Bluebell wood","height":83});
															thumbnails[8005192] = clik.newPhoto({"id":8005192,"src":"_DSC3439_thumb.jpg","galleries_id":251027,"server_id":32,"link":"photo_8005192.html","width":130,"caption":"Gerbera","height":86});
															thumbnails[8005196] = clik.newPhoto({"id":8005196,"src":"_DSC5407_thumb.jpg","galleries_id":251027,"server_id":32,"link":"photo_8005196.html","width":130,"caption":"Peace Lily","height":182});
															thumbnails[8005206] = clik.newPhoto({"id":8005206,"src":"_DSC5201_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8005206.html","width":130,"caption":"Evening Sky Blackhead","height":104});
															thumbnails[8005215] = clik.newPhoto({"id":8005215,"src":"_DSC4004_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8005215.html","width":130,"caption":"Doe Castle, Co. Donegal","height":87});
															thumbnails[8005500] = clik.newPhoto({"id":8005500,"src":"_DSC2125_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8005500.html","width":130,"caption":"","height":154});
															thumbnails[8005513] = clik.newPhoto({"id":8005513,"src":"_DSC2152_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8005513.html","width":130,"caption":"","height":89});
															thumbnails[8005517] = clik.newPhoto({"id":8005517,"src":"_DSC5560_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8005517.html","width":130,"caption":"Snowy Owl","height":86});
															thumbnails[8005520] = clik.newPhoto({"id":8005520,"src":"_DSC1218_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8005520.html","width":130,"caption":"Great Grey Owl","height":90});
															thumbnails[8005522] = clik.newPhoto({"id":8005522,"src":"_DSC8846_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8005522.html","width":130,"caption":"Puffin","height":99});
															thumbnails[8005529] = clik.newPhoto({"id":8005529,"src":"_DSC9100_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8005529.html","width":130,"caption":"","height":100});
															thumbnails[8005532] = clik.newPhoto({"id":8005532,"src":"Jonathgan_Rea-0030-Edit_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8005532.html","width":130,"caption":"","height":163});
															thumbnails[8005535] = clik.newPhoto({"id":8005535,"src":"Mel-0061_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8005535.html","width":130,"caption":"","height":195});
															thumbnails[8006164] = clik.newPhoto({"id":8006164,"src":"_DSC0731_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8006164.html","width":130,"caption":"Donaghadee ighthouse","height":196});
															thumbnails[8006249] = clik.newPhoto({"id":8006249,"src":"_DSC1263_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8006249.html","width":130,"caption":"Great Grey Owl","height":172});
															thumbnails[8039756] = clik.newPhoto({"id":8039756,"src":"_DSC5702_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8039756.html","width":130,"caption":"","height":90});
															thumbnails[8039759] = clik.newPhoto({"id":8039759,"src":"_DSC5711_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8039759.html","width":130,"caption":"","height":86});
															thumbnails[8039774] = clik.newPhoto({"id":8039774,"src":"_DSC0745_355DF571-1EC9-DFB6-09C5D5EB9EBFDC25_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8039774.html","width":130,"caption":"Donaghadee Harbour","height":86});
															thumbnails[8045869] = clik.newPhoto({"id":8045869,"src":"Capture0003-4_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8045869.html","width":130,"caption":"","height":182});
															thumbnails[8045871] = clik.newPhoto({"id":8045871,"src":"Capture0009-3_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8045871.html","width":130,"caption":"","height":183});
															thumbnails[8057617] = clik.newPhoto({"id":8057617,"src":"_DSC1871_028_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8057617.html","width":130,"caption":"","height":157});
															thumbnails[8057618] = clik.newPhoto({"id":8057618,"src":"_DSC1836_024_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8057618.html","width":130,"caption":"","height":170});
															thumbnails[8057619] = clik.newPhoto({"id":8057619,"src":"_DSC1840_026_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8057619.html","width":130,"caption":"","height":104});
															thumbnails[8057621] = clik.newPhoto({"id":8057621,"src":"_DSC1849_032_thumb.jpg","galleries_id":430171,"server_id":32,"link":"photo_8057621.html","width":130,"caption":"","height":110});
															thumbnails[8057629] = clik.newPhoto({"id":8057629,"src":"_DSC6487_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8057629.html","width":130,"caption":"White Park Bay and Port Bradden","height":86});
															thumbnails[8057631] = clik.newPhoto({"id":8057631,"src":"_DSC4471_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8057631.html","width":130,"caption":"Glenariff waterfall","height":196});
															thumbnails[8057634] = clik.newPhoto({"id":8057634,"src":"_DSC4537_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8057634.html","width":130,"caption":"Glenariff ","height":86});
															thumbnails[8057674] = clik.newPhoto({"id":8057674,"src":"_DSC5187_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8057674.html","width":130,"caption":"Poppy","height":106});
															thumbnails[8057675] = clik.newPhoto({"id":8057675,"src":"_DSC5189_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8057675.html","width":130,"caption":"Poppy","height":104});
															thumbnails[8448889] = clik.newPhoto({"id":8448889,"src":"_DSC2706_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448889.html","width":130,"caption":"","height":195});
															thumbnails[8448890] = clik.newPhoto({"id":8448890,"src":"_DSC2728_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448890.html","width":130,"caption":"","height":183});
															thumbnails[8448893] = clik.newPhoto({"id":8448893,"src":"_DSC2734-2_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448893.html","width":130,"caption":"","height":145});
															thumbnails[8448895] = clik.newPhoto({"id":8448895,"src":"_DSC2741_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448895.html","width":130,"caption":"","height":195});
															thumbnails[8448911] = clik.newPhoto({"id":8448911,"src":"_DSC2748_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448911.html","width":130,"caption":"","height":94});
															thumbnails[8448953] = clik.newPhoto({"id":8448953,"src":"_DSC2761-3_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448953.html","width":130,"caption":"","height":154});
															thumbnails[8448956] = clik.newPhoto({"id":8448956,"src":"_DSC2775_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448956.html","width":130,"caption":"","height":102});
															thumbnails[8448959] = clik.newPhoto({"id":8448959,"src":"_DSC2785_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448959.html","width":130,"caption":"","height":98});
															thumbnails[8448961] = clik.newPhoto({"id":8448961,"src":"_DSC2779_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448961.html","width":130,"caption":"","height":90});
															thumbnails[8448965] = clik.newPhoto({"id":8448965,"src":"_DSC2846_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448965.html","width":130,"caption":"","height":87});
															thumbnails[8448985] = clik.newPhoto({"id":8448985,"src":"_DSC2856_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8448985.html","width":130,"caption":"","height":87});
															thumbnails[8449016] = clik.newPhoto({"id":8449016,"src":"_DSC2882_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8449016.html","width":130,"caption":"","height":195});
															thumbnails[8449021] = clik.newPhoto({"id":8449021,"src":"_DSC2955_thumb.jpg","galleries_id":447216,"server_id":32,"link":"photo_8449021.html","width":130,"caption":"","height":106});
															thumbnails[8798681] = clik.newPhoto({"id":8798681,"src":"_DSC8125_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798681.html","width":130,"caption":"Ballycopeland Windmill","height":86});
															thumbnails[8798713] = clik.newPhoto({"id":8798713,"src":"_DSC9485_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798713.html","width":130,"caption":"Quality Time","height":93});
															thumbnails[8798716] = clik.newPhoto({"id":8798716,"src":"_DSC9426_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798716.html","width":130,"caption":"Blackhead Twilight","height":87});
															thumbnails[8798721] = clik.newPhoto({"id":8798721,"src":"_DSC8924-2_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798721.html","width":130,"caption":"Cockle Row","height":87});
															thumbnails[8798725] = clik.newPhoto({"id":8798725,"src":"_DSC8924_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798725.html","width":130,"caption":"Cockle Row antique","height":87});
															thumbnails[8798778] = clik.newPhoto({"id":8798778,"src":"_DSC4317_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8798778.html","width":130,"caption":"Mute Swan 4317","height":104});
															thumbnails[8798783] = clik.newPhoto({"id":8798783,"src":"_DSC9957-Edit-2_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8798783.html","width":130,"caption":"Barn Owl 9957","height":83});
															thumbnails[8798785] = clik.newPhoto({"id":8798785,"src":"_DSC9957-Edit_thumb.jpg","galleries_id":158845,"server_id":32,"link":"photo_8798785.html","width":130,"caption":"Barn Owl 9957","height":83});
															thumbnails[8798864] = clik.newPhoto({"id":8798864,"src":"_DSC4934_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798864.html","width":130,"caption":"Whiterock Sunrise","height":71});
															thumbnails[8798873] = clik.newPhoto({"id":8798873,"src":"_DSC4589_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798873.html","width":130,"caption":"Homeward Bound","height":58});
															thumbnails[8798874] = clik.newPhoto({"id":8798874,"src":"_DSC4588_thumb.jpg","galleries_id":158859,"server_id":32,"link":"photo_8798874.html","width":130,"caption":"Fields of Gold","height":63});
															thumbnails[8988856] = clik.newPhoto({"id":8988856,"src":"_DSC7342_97C28C26-24E8-5EC4-4FC217184E7A562C_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988856.html","width":130,"caption":" DSC7342","height":121});
															thumbnails[8988858] = clik.newPhoto({"id":8988858,"src":"_DSC7349_97C302E1-24E8-5EC4-4F0F08B1ABDEDF31_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988858.html","width":130,"caption":" DSC7349","height":115});
															thumbnails[8988859] = clik.newPhoto({"id":8988859,"src":"_DSC7392_97C3F3C1-24E8-5EC4-4F31FBDCB1567E2D_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988859.html","width":130,"caption":" DSC7392","height":111});
															thumbnails[8988860] = clik.newPhoto({"id":8988860,"src":"_DSC7420_97C490D2-24E8-5EC4-4F333C4D8170F0E3_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988860.html","width":130,"caption":" DSC7420","height":192});
															thumbnails[8988861] = clik.newPhoto({"id":8988861,"src":"_DSC7439_97C5179C-24E8-5EC4-4FE95AAE5DEDAF7B_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988861.html","width":130,"caption":" DSC7439","height":108});
															thumbnails[8988862] = clik.newPhoto({"id":8988862,"src":"_DSC7462_97C59A89-24E8-5EC4-4FC7605171CB241D_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988862.html","width":130,"caption":" DSC7462","height":92});
															thumbnails[8988864] = clik.newPhoto({"id":8988864,"src":"_DSC7467-2_97C6658A-24E8-5EC4-4F582C2AA13D2838_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988864.html","width":130,"caption":" DSC7467-2","height":196});
															thumbnails[8988865] = clik.newPhoto({"id":8988865,"src":"_DSC7467_97C6F130-24E8-5EC4-4FE4EA5A16154ADA_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988865.html","width":130,"caption":" DSC7467","height":196});
															thumbnails[8988866] = clik.newPhoto({"id":8988866,"src":"_DSC7471_97C7623D-24E8-5EC4-4F5FF6D755AD2300_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988866.html","width":130,"caption":" DSC7471","height":107});
															thumbnails[8988868] = clik.newPhoto({"id":8988868,"src":"_DSC7472_97C7CFBE-24E8-5EC4-4F19FFB299EB1BB3_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988868.html","width":130,"caption":" DSC7472","height":99});
															thumbnails[8988869] = clik.newPhoto({"id":8988869,"src":"_DSC7480_97C82839-24E8-5EC4-4F2BD7E052E66956_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988869.html","width":130,"caption":" DSC7480","height":91});
															thumbnails[8988870] = clik.newPhoto({"id":8988870,"src":"_DSC7482_97C8A105-24E8-5EC4-4FE1CEFD960A9312_thumb.jpg","galleries_id":473399,"server_id":32,"link":"photo_8988870.html","width":130,"caption":" DSC7482","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[421700] = clik.newGallery({"parentGallery":421699,"usePopups":false,"title":"Catherine and Peter","link":"gallery_421700.html","maxRecords":0.0,"photoIDs":[7811216.0,7811220.0,7811285.0,7811299.0,7811303.0,7811327.0,7811332.0,7811334.0,7811336.0,7811340.0,7811343.0,7811346.0,7811349.0],"skipIndex":0,"section_code":"gallery","featured_images":"7811349,7811346,7811343,7811340,7811336,7811334,7811332,7811327,7811303,7811299","id":421700,"singleSection":false});				  						galleries[430183] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_430183.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":430183,"singleSection":false});				  						galleries[251027] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"General images","link":"gallery_251027.html","maxRecords":0.0,"photoIDs":[8004691.0,8005172.0,8005192.0,8005196.0],"skipIndex":0,"section_code":"gallery","featured_images":"8005196,8005192,8005172,8004691","id":251027,"singleSection":false});				  						galleries[447216] = clik.newGallery({"parentGallery":421699,"usePopups":false,"title":"Geraldine and Michael","link":"gallery_447216.html","maxRecords":0.0,"photoIDs":[8448889.0,8448890.0,8448893.0,8448895.0,8448911.0,8448953.0,8448956.0,8448959.0,8448961.0,8448965.0,8448985.0,8449016.0,8449021.0],"skipIndex":0,"section_code":"gallery","featured_images":"8449021,8449016,8448985,8448965,8448961,8448959,8448956,8448953,8448911,8448895","id":447216,"singleSection":false});				  						galleries[158859] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes\/Seascapes","link":"gallery_158859.html","maxRecords":0.0,"photoIDs":[2510982.0,2510986.0,2510993.0,3021277.0,3021279.0,3021289.0,3021312.0,4182266.0,4182269.0,4182274.0,4182287.0,4182296.0,4337200.0,4337211.0,4337213.0,5292216.0,5566783.0,5567325.0,5725654.0,5725671.0,5850130.0,5850190.0,5850222.0,5850252.0,5850284.0,5852225.0,5852231.0,5852237.0,5852247.0,5852251.0,7407262.0,7407265.0,7407309.0,7407429.0,7407608.0,8005177.0,8005206.0,8005215.0,8006164.0,8039774.0,8057629.0,8057631.0,8057634.0,8057674.0,8057675.0,8798681.0,8798713.0,8798716.0,8798721.0,8798725.0,8798864.0,8798873.0,8798874.0],"skipIndex":0,"section_code":"gallery","featured_images":"8798874,8798873,8798864,8798725,8798721,8798716,8798713,8798681,8057675,8057674","id":158859,"singleSection":false});				  						galleries[473399] = clik.newGallery({"parentGallery":421699,"usePopups":false,"title":"Natalie and Mark","link":"gallery_473399.html","maxRecords":0.0,"photoIDs":[8988856.0,8988858.0,8988859.0,8988860.0,8988861.0,8988862.0,8988864.0,8988865.0,8988866.0,8988868.0,8988869.0,8988870.0],"skipIndex":0,"section_code":"gallery","featured_images":"8988870,8988869,8988868,8988866,8988865,8988864,8988862,8988861,8988860,8988859","id":473399,"singleSection":false});				  						galleries[430171] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_430171.html","maxRecords":0.0,"photoIDs":[8005168.0,8005500.0,8005513.0,8005529.0,8005532.0,8005535.0,8039756.0,8039759.0,8045869.0,8045871.0,8057617.0,8057618.0,8057619.0,8057621.0],"skipIndex":0,"section_code":"gallery","featured_images":"8057621,8057619,8057618,8057617,8045871,8045869,8039759,8039756,8005535,8005532","id":430171,"singleSection":false});				  						galleries[158856] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Watersport","link":"gallery_158856.html","maxRecords":0.0,"photoIDs":[3420668.0,3420670.0,2471321.0,2471346.0,2471361.0,2487702.0,2510969.0,2510971.0,2510974.0,3702930.0,3702933.0,3702948.0,3702950.0,3702952.0,3702956.0,4337183.0,4337193.0,4337661.0],"skipIndex":0,"section_code":"gallery","featured_images":"4337661,4337193,4337183,3702956,3702952,3702950,3702948,3702933,3702930,3420670","id":158856,"singleSection":false});				  						galleries[421699] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_421699.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8988870,8988869,8988868,8988866,8988865,8988864,8988862,8988861,8988860,8988859","id":421699,"singleSection":false});				  						galleries[158845] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_158845.html","maxRecords":0.0,"photoIDs":[3420671.0,3190088.0,3190159.0,3190198.0,2470935.0,2470943.0,2470950.0,2470955.0,2470998.0,2471000.0,2471071.0,2511227.0,2520884.0,2535806.0,2535817.0,2535848.0,2535871.0,3077320.0,3211546.0,3211549.0,3211554.0,3324974.0,3324976.0,3325009.0,3325010.0,3594551.0,3594571.0,3600043.0,3600047.0,3600054.0,3600062.0,3600065.0,4337706.0,5567333.0,5567342.0,5567489.0,5725682.0,5725690.0,5850076.0,5850134.0,5850184.0,5850244.0,5850303.0,5886310.0,6024501.0,8004696.0,8004704.0,8004718.0,8005166.0,8005517.0,8005520.0,8005522.0,8006249.0,8798778.0,8798783.0,8798785.0],"skipIndex":0,"section_code":"gallery","featured_images":3077320.0,"id":158845,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2470998';
imageSets[2] = '3077320';
imageSets[3] = '8988870,8988869,8988868,8988866,8988865,8988864,8988862,8988861,8988860,8988859,8988858,8988856,8798874,8798873,8798864,8798785,8798783,8798778,8798725,8798721,8798716,8798713,8798681,8449021,8449016,8448985,8448965,8448961,8448959,8448956,8448953,8448911,8448895,8448893,8448890,8448889,8057675,8057674,8057634,8057631,8057629,8057621,8057619,8057618,8057617,8045871,8045869,8039774,8039759,8039756';
imageSets[247078] = '8988870';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nigelsnell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/nigelsnell/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 = 'Nigel Snell 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>';
	}
				
				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;
	}
}

			

