window.thumbnails = {};
															thumbnails[4608704] = clik.newPhoto({"id":4608704,"src":"beauty_in_august_o5_by_sunburntchaos_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4608704.html","width":130,"caption":"","height":130});
															thumbnails[4683834] = clik.newPhoto({"id":4683834,"src":"websitenew01_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4683834.html","width":130,"caption":"","height":130});
															thumbnails[4683835] = clik.newPhoto({"id":4683835,"src":"websitenew02_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4683835.html","width":130,"caption":"","height":130});
															thumbnails[7146247] = clik.newPhoto({"id":7146247,"src":"12x12_final01ws_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146247.html","width":130,"caption":"","height":130});
															thumbnails[7146283] = clik.newPhoto({"id":7146283,"src":"12x12_final02ws2_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146283.html","width":130,"caption":"","height":130});
															thumbnails[7146297] = clik.newPhoto({"id":7146297,"src":"5x5_07_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146297.html","width":130,"caption":"","height":100});
															thumbnails[7146298] = clik.newPhoto({"id":7146298,"src":"5x5_01_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146298.html","width":130,"caption":"","height":130});
															thumbnails[7146304] = clik.newPhoto({"id":7146304,"src":"5x5_14_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146304.html","width":130,"caption":"","height":167});
															thumbnails[7146321] = clik.newPhoto({"id":7146321,"src":"5x5_12_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146321.html","width":130,"caption":"","height":101});
															thumbnails[7146613] = clik.newPhoto({"id":7146613,"src":"aoibheannsmall01_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7146613.html","width":130,"caption":"","height":130});
															thumbnails[7625677] = clik.newPhoto({"id":7625677,"src":"001_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625677.html","width":130,"caption":"","height":130});
															thumbnails[7625678] = clik.newPhoto({"id":7625678,"src":"005_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625678.html","width":130,"caption":"","height":89});
															thumbnails[7625679] = clik.newPhoto({"id":7625679,"src":"009_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625679.html","width":130,"caption":"","height":72});
															thumbnails[7625680] = clik.newPhoto({"id":7625680,"src":"0011_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625680.html","width":130,"caption":"","height":89});
															thumbnails[7625683] = clik.newPhoto({"id":7625683,"src":"004_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625683.html","width":130,"caption":"","height":130});
															thumbnails[7625685] = clik.newPhoto({"id":7625685,"src":"007_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625685.html","width":130,"caption":"","height":89});
															thumbnails[7625686] = clik.newPhoto({"id":7625686,"src":"tom001_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625686.html","width":130,"caption":"","height":101});
															thumbnails[7625688] = clik.newPhoto({"id":7625688,"src":"tom003_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625688.html","width":130,"caption":"","height":88});
															thumbnails[7625689] = clik.newPhoto({"id":7625689,"src":"tom004_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625689.html","width":130,"caption":"","height":89});
															thumbnails[7625691] = clik.newPhoto({"id":7625691,"src":"tom006_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625691.html","width":130,"caption":"","height":69});
															thumbnails[7625693] = clik.newPhoto({"id":7625693,"src":"tom007_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625693.html","width":130,"caption":"","height":89});
															thumbnails[7625694] = clik.newPhoto({"id":7625694,"src":"tom008_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625694.html","width":130,"caption":"","height":89});
															thumbnails[7625696] = clik.newPhoto({"id":7625696,"src":"0012_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625696.html","width":130,"caption":"","height":89});
															thumbnails[7625697] = clik.newPhoto({"id":7625697,"src":"002_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625697.html","width":130,"caption":"","height":71});
															thumbnails[7625699] = clik.newPhoto({"id":7625699,"src":"006_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625699.html","width":130,"caption":"","height":130});
															thumbnails[7625700] = clik.newPhoto({"id":7625700,"src":"0071_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625700.html","width":130,"caption":"","height":130});
															thumbnails[7625701] = clik.newPhoto({"id":7625701,"src":"008_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625701.html","width":130,"caption":"","height":71});
															thumbnails[7625704] = clik.newPhoto({"id":7625704,"src":"003_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_7625704.html","width":130,"caption":"","height":130});
															thumbnails[7625705] = clik.newPhoto({"id":7625705,"src":"aisling01_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625705.html","width":130,"caption":"","height":87});
															thumbnails[7625707] = clik.newPhoto({"id":7625707,"src":"aisling02_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625707.html","width":130,"caption":"","height":87});
															thumbnails[7625711] = clik.newPhoto({"id":7625711,"src":"aisling09_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625711.html","width":130,"caption":"","height":87});
															thumbnails[7625713] = clik.newPhoto({"id":7625713,"src":"aisling10_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625713.html","width":130,"caption":"","height":87});
															thumbnails[7625861] = clik.newPhoto({"id":7625861,"src":"ws1_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625861.html","width":130,"caption":"","height":194});
															thumbnails[7625863] = clik.newPhoto({"id":7625863,"src":"ws2_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625863.html","width":130,"caption":"","height":194});
															thumbnails[7625867] = clik.newPhoto({"id":7625867,"src":"ws4_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625867.html","width":130,"caption":"","height":194});
															thumbnails[7625872] = clik.newPhoto({"id":7625872,"src":"ws5_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625872.html","width":130,"caption":"","height":192});
															thumbnails[7625874] = clik.newPhoto({"id":7625874,"src":"ws6_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625874.html","width":130,"caption":"","height":194});
															thumbnails[7625875] = clik.newPhoto({"id":7625875,"src":"ws7_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625875.html","width":130,"caption":"","height":194});
															thumbnails[7625876] = clik.newPhoto({"id":7625876,"src":"ws8_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_7625876.html","width":130,"caption":"","height":194});
															thumbnails[5393448] = clik.newPhoto({"id":5393448,"src":"wedding44_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_5393448.html","width":130,"caption":"","height":130});
															thumbnails[5393449] = clik.newPhoto({"id":5393449,"src":"wedding45_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_5393449.html","width":130,"caption":"","height":130});
															thumbnails[5393472] = clik.newPhoto({"id":5393472,"src":"wedding53_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_5393472.html","width":130,"caption":"","height":245});
															thumbnails[5393476] = clik.newPhoto({"id":5393476,"src":"wedding56_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_5393476.html","width":130,"caption":"","height":88});
															thumbnails[1000114] = clik.newPhoto({"id":1000114,"src":"ws_07_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000114.html","width":130,"caption":"","height":182});
															thumbnails[1269632] = clik.newPhoto({"id":1269632,"src":"donegal_final_01_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_1269632.html","width":130,"caption":"","height":184});
															thumbnails[1269634] = clik.newPhoto({"id":1269634,"src":"donegal_final_02_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_1269634.html","width":130,"caption":"","height":184});
															thumbnails[1938895] = clik.newPhoto({"id":1938895,"src":"the_forgotten_boats_small_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_1938895.html","width":130,"caption":"","height":179});
															thumbnails[1939885] = clik.newPhoto({"id":1939885,"src":"the_forgotten_ruins_small_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_1939885.html","width":130,"caption":"","height":179});
															thumbnails[1939886] = clik.newPhoto({"id":1939886,"src":"the_forgotten_lighthouse_small_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_1939886.html","width":130,"caption":"","height":179});
															thumbnails[2204464] = clik.newPhoto({"id":2204464,"src":"Enchanted_Night__thumb.jpg","galleries_id":94259,"server_id":1,"link":"photo_2204464.html","width":130,"caption":"","height":199});
															thumbnails[2412954] = clik.newPhoto({"id":2412954,"src":"missing_cove_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_2412954.html","width":130,"caption":"","height":195});
															thumbnails[3640427] = clik.newPhoto({"id":3640427,"src":"wedding14_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_3640427.html","width":130,"caption":"","height":130});
															thumbnails[3640428] = clik.newPhoto({"id":3640428,"src":"wedding24_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_3640428.html","width":130,"caption":"","height":130});
															thumbnails[4146500] = clik.newPhoto({"id":4146500,"src":"smallstone02_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4146500.html","width":130,"caption":"","height":195});
															thumbnails[4309280] = clik.newPhoto({"id":4309280,"src":"smallflower01_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4309280.html","width":130,"caption":"","height":130});
															thumbnails[4447470] = clik.newPhoto({"id":4447470,"src":"wedding10_8x8_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447470.html","width":130,"caption":"","height":130});
															thumbnails[4447476] = clik.newPhoto({"id":4447476,"src":"wedding40_8x8_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447476.html","width":130,"caption":"","height":130});
															thumbnails[4691405] = clik.newPhoto({"id":4691405,"src":"feethands01small_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_4691405.html","width":130,"caption":"","height":130});
															thumbnails[4698795] = clik.newPhoto({"id":4698795,"src":"hands01small_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_4698795.html","width":130,"caption":"","height":130});
															thumbnails[5393267] = clik.newPhoto({"id":5393267,"src":"wedding07_4BCED2D7-2219-B5B5-4C3FA1A1456AC838_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_5393267.html","width":130,"caption":"","height":193});
															thumbnails[1000119] = clik.newPhoto({"id":1000119,"src":"ws_10_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000119.html","width":130,"caption":"","height":182});
															thumbnails[2204480] = clik.newPhoto({"id":2204480,"src":"The_Lonesome_Avenue_thumb.jpg","galleries_id":94259,"server_id":1,"link":"photo_2204480.html","width":130,"caption":"","height":194});
															thumbnails[2204483] = clik.newPhoto({"id":2204483,"src":"Ireland__s_Own_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_2204483.html","width":130,"caption":"","height":87});
															thumbnails[2204485] = clik.newPhoto({"id":2204485,"src":"Ireland__s_Serenity_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_2204485.html","width":130,"caption":"","height":87});
															thumbnails[3640410] = clik.newPhoto({"id":3640410,"src":"wedding05_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_3640410.html","width":130,"caption":"","height":182});
															thumbnails[3640411] = clik.newPhoto({"id":3640411,"src":"wedding13_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_3640411.html","width":130,"caption":"","height":182});
															thumbnails[3640425] = clik.newPhoto({"id":3640425,"src":"wedding21_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_3640425.html","width":130,"caption":"","height":182});
															thumbnails[4213418] = clik.newPhoto({"id":4213418,"src":"The_Silent_Valley_V_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4213418.html","width":130,"caption":"","height":100});
															thumbnails[4213420] = clik.newPhoto({"id":4213420,"src":"The_Silent_Valley_II_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4213420.html","width":130,"caption":"","height":87});
															thumbnails[4213421] = clik.newPhoto({"id":4213421,"src":"The_Silent_Valley_III_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4213421.html","width":130,"caption":"","height":96});
															thumbnails[4309281] = clik.newPhoto({"id":4309281,"src":"smallorchid01_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4309281.html","width":130,"caption":"","height":130});
															thumbnails[4447482] = clik.newPhoto({"id":4447482,"src":"wedding03bw_4x6_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447482.html","width":130,"caption":"","height":195});
															thumbnails[4608652] = clik.newPhoto({"id":4608652,"src":"Freddie_II_2by_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_4608652.html","width":130,"caption":"","height":130});
															thumbnails[4685308] = clik.newPhoto({"id":4685308,"src":"CNV00031_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_4685308.html","width":130,"caption":"","height":130});
															thumbnails[1000118] = clik.newPhoto({"id":1000118,"src":"ws_09_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000118.html","width":130,"caption":"","height":182});
															thumbnails[2204476] = clik.newPhoto({"id":2204476,"src":"To_The_Sky_thumb.jpg","galleries_id":94259,"server_id":1,"link":"photo_2204476.html","width":130,"caption":"","height":194});
															thumbnails[4213403] = clik.newPhoto({"id":4213403,"src":"The_Beauty_Of_Ireland_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4213403.html","width":130,"caption":"","height":142});
															thumbnails[4213413] = clik.newPhoto({"id":4213413,"src":"The_Beauty_Of_Ireland_IV_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4213413.html","width":130,"caption":"","height":142});
															thumbnails[4213416] = clik.newPhoto({"id":4213416,"src":"The_Beauty_Of_Ireland_II_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4213416.html","width":130,"caption":"","height":142});
															thumbnails[4309278] = clik.newPhoto({"id":4309278,"src":"smallflower03_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4309278.html","width":130,"caption":"","height":130});
															thumbnails[4447483] = clik.newPhoto({"id":4447483,"src":"wedding60_5x7_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447483.html","width":130,"caption":"","height":93});
															thumbnails[4447496] = clik.newPhoto({"id":4447496,"src":"wedding30copycolour-bw_5x7_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447496.html","width":130,"caption":"","height":93});
															thumbnails[4447501] = clik.newPhoto({"id":4447501,"src":"wedding11_5x7_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447501.html","width":130,"caption":"","height":93});
															thumbnails[4447572] = clik.newPhoto({"id":4447572,"src":"wedding12_5x7_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_4447572.html","width":130,"caption":"","height":93});
															thumbnails[1000123] = clik.newPhoto({"id":1000123,"src":"ws_15_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000123.html","width":130,"caption":"","height":182});
															thumbnails[2204470] = clik.newPhoto({"id":2204470,"src":"Mystical_Water_thumb.jpg","galleries_id":94259,"server_id":1,"link":"photo_2204470.html","width":130,"caption":"","height":194});
															thumbnails[3640430] = clik.newPhoto({"id":3640430,"src":"weddingsample071_thumb.jpg","galleries_id":191074,"server_id":1,"link":"photo_3640430.html","width":130,"caption":"","height":75});
															thumbnails[4146501] = clik.newPhoto({"id":4146501,"src":"small01_thumb.jpg","galleries_id":90295,"server_id":1,"link":"photo_4146501.html","width":130,"caption":"","height":66});
															thumbnails[4315285] = clik.newPhoto({"id":4315285,"src":"lifedeath_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4315285.html","width":130,"caption":"","height":130});
															thumbnails[2204472] = clik.newPhoto({"id":2204472,"src":"The_Mystical_River_thumb.jpg","galleries_id":94259,"server_id":1,"link":"photo_2204472.html","width":130,"caption":"","height":87});
															thumbnails[4340432] = clik.newPhoto({"id":4340432,"src":"smallrose_thumb.jpg","galleries_id":72528,"server_id":1,"link":"photo_4340432.html","width":130,"caption":"","height":130});
															thumbnails[4685546] = clik.newPhoto({"id":4685546,"src":"final_015_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_4685546.html","width":130,"caption":"","height":130});
															thumbnails[1000122] = clik.newPhoto({"id":1000122,"src":"ws_10_1_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000122.html","width":130,"caption":"","height":182});
															thumbnails[2204474] = clik.newPhoto({"id":2204474,"src":"Mystical_Rocks_thumb.jpg","galleries_id":94259,"server_id":1,"link":"photo_2204474.html","width":130,"caption":"","height":147});
															thumbnails[1000117] = clik.newPhoto({"id":1000117,"src":"ws_08_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000117.html","width":130,"caption":"","height":93});
															thumbnails[1000120] = clik.newPhoto({"id":1000120,"src":"ws_11_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000120.html","width":130,"caption":"","height":93});
															thumbnails[4608658] = clik.newPhoto({"id":4608658,"src":"wedding_01__by_sunburntchaos_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_4608658.html","width":130,"caption":"","height":182});
															thumbnails[1000113] = clik.newPhoto({"id":1000113,"src":"ws_06_thumb.jpg","galleries_id":75031,"server_id":1,"link":"photo_1000113.html","width":130,"caption":"","height":93});
															thumbnails[960855] = clik.newPhoto({"id":960855,"src":"oisin2_thumb.jpg","galleries_id":72518,"server_id":1,"link":"photo_960855.html","width":130,"caption":"","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[191074] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_191074.html","maxRecords":0.0,"photoIDs":[7625705.0,7625707.0,7625711.0,7625713.0,7625861.0,7625863.0,7625867.0,7625872.0,7625874.0,7625875.0,7625876.0,5393448.0,5393449.0,5393472.0,5393476.0,3640427.0,3640428.0,4447470.0,4447476.0,5393267.0,3640410.0,3640411.0,3640425.0,4447482.0,4447483.0,4447496.0,4447501.0,4447572.0,3640430.0],"skipIndex":0,"section_code":"gallery","featured_images":3640427.0,"id":191074,"singleSection":false});				  						galleries[72518] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraiture","link":"gallery_72518.html","maxRecords":0.0,"photoIDs":[7146247.0,7146283.0,7146297.0,7146298.0,7146304.0,7146321.0,7146613.0,7625677.0,7625678.0,7625679.0,7625680.0,7625683.0,7625685.0,7625686.0,7625688.0,7625689.0,7625691.0,7625693.0,7625694.0,7625696.0,7625697.0,7625699.0,7625700.0,7625701.0,7625704.0,4691405.0,4698795.0,4608652.0,4685308.0,4608658.0,960855.0],"skipIndex":0,"section_code":"gallery","featured_images":7625683.0,"id":72518,"singleSection":false});				  						galleries[72528] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Digital Editing","link":"gallery_72528.html","maxRecords":0.0,"photoIDs":[4608704.0,4683834.0,4683835.0,4309280.0,4309281.0,4309278.0,4315285.0,4340432.0],"skipIndex":0,"section_code":"gallery","featured_images":"4683835,4683834,4608704,4340432,4315285,4309281,4309280,4309278","id":72528,"singleSection":false});				  						galleries[90295] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_90295.html","maxRecords":0.0,"photoIDs":[1269632.0,1269634.0,1938895.0,1939885.0,1939886.0,2412954.0,4146500.0,2204483.0,2204485.0,4213418.0,4213420.0,4213421.0,4213403.0,4213413.0,4213416.0,4146501.0],"skipIndex":0,"section_code":"gallery","featured_images":4213413.0,"id":90295,"singleSection":false});				  						galleries[75031] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"gallery_75031.html","maxRecords":0.0,"photoIDs":[1000114.0,1000119.0,1000118.0,1000123.0,4685546.0,1000122.0,1000117.0,1000120.0,1000113.0],"skipIndex":0,"section_code":"gallery","featured_images":4685546.0,"id":75031,"singleSection":false});				  						galleries[94259] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Traditional Prints","link":"gallery_94259.html","maxRecords":0.0,"photoIDs":[2204464.0,2204480.0,2204476.0,2204470.0,2204472.0,2204474.0],"skipIndex":0,"section_code":"gallery","featured_images":2204474.0,"id":94259,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7625705';
imageSets[2] = '7625683,3640427,4213413,4685546,2204474';
imageSets[3] = '7625876,7625875,7625874,7625872,7625867,7625863,7625861,7625713,7625711,7625707,7625705,7625704,7625701,7625700,7625699,7625697,7625696,7625694,7625693,7625691,7625689,7625688,7625686,7625685,7625683,7625680,7625679,7625678,7625677,7146613,7146321,7146304,7146298,7146297,7146283,7146247,5393476,5393472,5393449,5393448,5393267,4698795,4691405,4685546,4685308,4683835,4683834,4608704,4608658,4608652';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/celinehughes/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/celinehughes/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 = 'Celine Hughes 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="celine_hughes@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="celine_hughes@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

