window.thumbnails = {};
															thumbnails[5627052] = clik.newPhoto({"id":5627052,"src":"Cropped_Cover_small1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":121});
															thumbnails[8650584] = clik.newPhoto({"id":8650584,"src":"Low_res_Sentinel_Belfast_Lego_Installed_RUA_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3543715] = clik.newPhoto({"id":3543715,"src":"Sentinelkingstonedetail_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"<br>\r\n","height":173});
															thumbnails[3543718] = clik.newPhoto({"id":3543718,"src":"Sentinelkingstonedetail2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3543723] = clik.newPhoto({"id":3543723,"src":"Pontoon4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3543882] = clik.newPhoto({"id":3543882,"src":"Pontoonacedetail_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3543721] = clik.newPhoto({"id":3543721,"src":"Pontoonkingdetail_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3543606] = clik.newPhoto({"id":3543606,"src":"Sentinelwalkthrough_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":97});
															thumbnails[3543701] = clik.newPhoto({"id":3543701,"src":"Neveracrosswordspoken3_thumb.jpg","galleries_id":337391,"server_id":15,"link":"photo_3543701.html","width":130,"caption":"","height":97});
															thumbnails[3543855] = clik.newPhoto({"id":3543855,"src":"AttheEndoftheLinedetail2_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_3543855.html","width":130,"caption":"","height":98});
															thumbnails[8561700] = clik.newPhoto({"id":8561700,"src":"Shelter_detail_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_8561700.html","width":130,"caption":"","height":98});
															thumbnails[3543704] = clik.newPhoto({"id":3543704,"src":"Galleryshot_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_3543704.html","width":130,"caption":"","height":97});
															thumbnails[3543498] = clik.newPhoto({"id":3543498,"src":"ThenHeSteppedOutoftheCircledetail_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_3543498.html","width":130,"caption":"","height":98});
															thumbnails[3543738] = clik.newPhoto({"id":3543738,"src":"AttheEndoftheLinedetail_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_3543738.html","width":130,"caption":"","height":98});
															thumbnails[3543707] = clik.newPhoto({"id":3543707,"src":"Theendreflection_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_3543707.html","width":130,"caption":"","height":174});
															thumbnails[3543896] = clik.newPhoto({"id":3543896,"src":"Theenddetail1_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_3543896.html","width":130,"caption":"","height":173});
															thumbnails[3543915] = clik.newPhoto({"id":3543915,"src":"SentinelTheVoiddetail1_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_3543915.html","width":130,"caption":"","height":173});
															thumbnails[5988954] = clik.newPhoto({"id":5988954,"src":"Dear_A_Letter_from_New_York_City_1989_thumb.jpg","galleries_id":337391,"server_id":15,"link":"photo_5988954.html","width":130,"caption":"","height":98});
															thumbnails[5988961] = clik.newPhoto({"id":5988961,"src":"Dear_A_Letter_from_New_York_City_1989_Front_thumb.jpg","galleries_id":337391,"server_id":15,"link":"photo_5988961.html","width":130,"caption":"","height":98});
															thumbnails[5988977] = clik.newPhoto({"id":5988977,"src":"Dear_A_Letter_from_Niagara_Falls_1989_Front_thumb.jpg","galleries_id":337391,"server_id":15,"link":"photo_5988977.html","width":130,"caption":"","height":98});
															thumbnails[6112209] = clik.newPhoto({"id":6112209,"src":"Dear_A_Postcard_from_Donegall1_thumb.jpg","galleries_id":337391,"server_id":15,"link":"photo_6112209.html","width":130,"caption":"","height":98});
															thumbnails[5279301] = clik.newPhoto({"id":5279301,"src":"Purple_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_5279301.html","width":130,"caption":"","height":173});
															thumbnails[5279303] = clik.newPhoto({"id":5279303,"src":"Midnight_Blue_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_5279303.html","width":130,"caption":"","height":173});
															thumbnails[5279307] = clik.newPhoto({"id":5279307,"src":"Red_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_5279307.html","width":130,"caption":"","height":173});
															thumbnails[5279309] = clik.newPhoto({"id":5279309,"src":"Violet_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_5279309.html","width":130,"caption":"","height":173});
															thumbnails[5279314] = clik.newPhoto({"id":5279314,"src":"Red_Orange_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_5279314.html","width":130,"caption":"","height":173});
															thumbnails[5279311] = clik.newPhoto({"id":5279311,"src":"Purple_2_thumb.jpg","galleries_id":222340,"server_id":15,"link":"photo_5279311.html","width":130,"caption":"","height":173});
															thumbnails[5533949] = clik.newPhoto({"id":5533949,"src":"Andrea_1_thumb.jpg","galleries_id":313575,"server_id":15,"link":"photo_5533949.html","width":130,"caption":"","height":98});
															thumbnails[5533953] = clik.newPhoto({"id":5533953,"src":"Andrea_2_thumb.jpg","galleries_id":313575,"server_id":15,"link":"photo_5533953.html","width":130,"caption":"","height":98});
															thumbnails[5533979] = clik.newPhoto({"id":5533979,"src":"Colourscape1_ECAA8FC6-24E8-5EC4-4F9388D2513DC9FD_thumb.jpg","galleries_id":313575,"server_id":15,"link":"photo_5533979.html","width":130,"caption":"","height":98});
															thumbnails[5533987] = clik.newPhoto({"id":5533987,"src":"Colourscape2_ECACC055-24E8-5EC4-4FDA7E8220BAAB53_thumb.jpg","galleries_id":313575,"server_id":15,"link":"photo_5533987.html","width":130,"caption":"","height":98});
															thumbnails[5533990] = clik.newPhoto({"id":5533990,"src":"Scott1_thumb.jpg","galleries_id":313575,"server_id":15,"link":"photo_5533990.html","width":130,"caption":"","height":98});
															thumbnails[5533997] = clik.newPhoto({"id":5533997,"src":"Scott2_thumb.jpg","galleries_id":313575,"server_id":15,"link":"photo_5533997.html","width":130,"caption":"","height":98});
															thumbnails[4993213] = clik.newPhoto({"id":4993213,"src":"v_windmill_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993213.html","width":130,"caption":"","height":173});
															thumbnails[4993216] = clik.newPhoto({"id":4993216,"src":"v_pole_and_pebble_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993216.html","width":130,"caption":"","height":173});
															thumbnails[4993223] = clik.newPhoto({"id":4993223,"src":"v_Lorna_and_Grace_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993223.html","width":130,"caption":"","height":173});
															thumbnails[4993228] = clik.newPhoto({"id":4993228,"src":"v_highland_coo_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993228.html","width":130,"caption":"","height":173});
															thumbnails[4993246] = clik.newPhoto({"id":4993246,"src":"v_pebble_stact_colour_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993246.html","width":130,"caption":"","height":173});
															thumbnails[4993233] = clik.newPhoto({"id":4993233,"src":"v_chicken_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993233.html","width":130,"caption":"","height":173});
															thumbnails[4993237] = clik.newPhoto({"id":4993237,"src":"v_BW_pebblestack_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993237.html","width":130,"caption":"","height":173});
															thumbnails[4993239] = clik.newPhoto({"id":4993239,"src":"v_finished_in_cabinet_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993239.html","width":130,"caption":"","height":173});
															thumbnails[4993270] = clik.newPhoto({"id":4993270,"src":"h_butcher_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993270.html","width":130,"caption":"","height":98});
															thumbnails[4993273] = clik.newPhoto({"id":4993273,"src":"h_da_boyz_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993273.html","width":130,"caption":"","height":98});
															thumbnails[4993274] = clik.newPhoto({"id":4993274,"src":"h_Lorna_and_Grace_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993274.html","width":130,"caption":"","height":98});
															thumbnails[4993540] = clik.newPhoto({"id":4993540,"src":"h_pebble_blue_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993540.html","width":130,"caption":"","height":98});
															thumbnails[4993402] = clik.newPhoto({"id":4993402,"src":"h_pebble_lichen_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993402.html","width":130,"caption":"","height":98});
															thumbnails[4993403] = clik.newPhoto({"id":4993403,"src":"h_shepardesses_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993403.html","width":130,"caption":"","height":98});
															thumbnails[4993405] = clik.newPhoto({"id":4993405,"src":"h_shopkeep_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993405.html","width":130,"caption":"","height":98});
															thumbnails[4993522] = clik.newPhoto({"id":4993522,"src":"h_wick_library_thumb.jpg","galleries_id":267967,"server_id":15,"link":"photo_4993522.html","width":130,"caption":"","height":98});
															thumbnails[4993590] = clik.newPhoto({"id":4993590,"src":"Sentinel_11_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_4993590.html","width":130,"caption":"","height":173});
															thumbnails[4993592] = clik.newPhoto({"id":4993592,"src":"Sentinel_21_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_4993592.html","width":130,"caption":"","height":173});
															thumbnails[4993593] = clik.newPhoto({"id":4993593,"src":"Sentinel_31_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_4993593.html","width":130,"caption":"","height":173});
															thumbnails[5429922] = clik.newPhoto({"id":5429922,"src":"Sentinel_Botannic_reflection_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_5429922.html","width":130,"caption":"","height":173});
															thumbnails[8561746] = clik.newPhoto({"id":8561746,"src":"Walkby_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_8561746.html","width":130,"caption":"","height":173});
															thumbnails[8561727] = clik.newPhoto({"id":8561727,"src":"Sentinel_Belfast_Lego_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_8561727.html","width":130,"caption":"","height":173});
															thumbnails[8561730] = clik.newPhoto({"id":8561730,"src":"Sentinel_Death_Slab_thumb.jpg","galleries_id":267201,"server_id":15,"link":"photo_8561730.html","width":130,"caption":"","height":173});
															thumbnails[5242253] = clik.newPhoto({"id":5242253,"src":"Colourscape1_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5242253.html","width":130,"caption":"","height":98});
															thumbnails[5242258] = clik.newPhoto({"id":5242258,"src":"Colourscape2_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5242258.html","width":130,"caption":"","height":98});
															thumbnails[8278680] = clik.newPhoto({"id":8278680,"src":"Colourscape-III-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278680.html","width":130,"caption":"","height":98});
															thumbnails[8278681] = clik.newPhoto({"id":8278681,"src":"Colourscape-IV-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278681.html","width":130,"caption":"","height":98});
															thumbnails[5988875] = clik.newPhoto({"id":5988875,"src":"Colourscape_V_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5988875.html","width":130,"caption":"","height":98});
															thumbnails[5988883] = clik.newPhoto({"id":5988883,"src":"Colourscape_VI_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5988883.html","width":130,"caption":"","height":98});
															thumbnails[5988891] = clik.newPhoto({"id":5988891,"src":"Colourscape_VII_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5988891.html","width":130,"caption":"","height":98});
															thumbnails[5988945] = clik.newPhoto({"id":5988945,"src":"Colourscape_VIII_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5988945.html","width":130,"caption":"","height":98});
															thumbnails[8278658] = clik.newPhoto({"id":8278658,"src":"Moment-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278658.html","width":130,"caption":"","height":98});
															thumbnails[5242262] = clik.newPhoto({"id":5242262,"src":"Mindscape1_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5242262.html","width":130,"caption":"","height":98});
															thumbnails[5242276] = clik.newPhoto({"id":5242276,"src":"Mindscape2_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5242276.html","width":130,"caption":"","height":98});
															thumbnails[8278714] = clik.newPhoto({"id":8278714,"src":"E-scape-I-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278714.html","width":130,"caption":"","height":98});
															thumbnails[8278718] = clik.newPhoto({"id":8278718,"src":"E-scape-II-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278718.html","width":130,"caption":"","height":98});
															thumbnails[8278723] = clik.newPhoto({"id":8278723,"src":"E-scape-III-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278723.html","width":130,"caption":"","height":98});
															thumbnails[8278726] = clik.newPhoto({"id":8278726,"src":"E-scape-IV-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278726.html","width":130,"caption":"","height":98});
															thumbnails[8278733] = clik.newPhoto({"id":8278733,"src":"L-scape-I-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278733.html","width":130,"caption":"","height":98});
															thumbnails[8278739] = clik.newPhoto({"id":8278739,"src":"L-scape-II-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278739.html","width":130,"caption":"","height":98});
															thumbnails[8278741] = clik.newPhoto({"id":8278741,"src":"L-scape-III-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278741.html","width":130,"caption":"","height":98});
															thumbnails[8278743] = clik.newPhoto({"id":8278743,"src":"L-scape-IV-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278743.html","width":130,"caption":"","height":98});
															thumbnails[5242279] = clik.newPhoto({"id":5242279,"src":"Voidscape1_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5242279.html","width":130,"caption":"","height":98});
															thumbnails[5242284] = clik.newPhoto({"id":5242284,"src":"Voidscape1_Detail_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5242284.html","width":130,"caption":"","height":98});
															thumbnails[5988962] = clik.newPhoto({"id":5988962,"src":"Voidscape_III_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5988962.html","width":130,"caption":"","height":98});
															thumbnails[5988965] = clik.newPhoto({"id":5988965,"src":"Voidscape_V_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_5988965.html","width":130,"caption":"","height":98});
															thumbnails[8278818] = clik.newPhoto({"id":8278818,"src":"Voidscape--IV-CP_thumb.jpg","galleries_id":295485,"server_id":15,"link":"photo_8278818.html","width":130,"caption":"","height":98});
															thumbnails[5279158] = clik.newPhoto({"id":5279158,"src":"Aran_1_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279158.html","width":130,"caption":"","height":98});
															thumbnails[5279161] = clik.newPhoto({"id":5279161,"src":"Aran_2_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279161.html","width":130,"caption":"","height":98});
															thumbnails[5279163] = clik.newPhoto({"id":5279163,"src":"Aran_3_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279163.html","width":130,"caption":"","height":98});
															thumbnails[5279166] = clik.newPhoto({"id":5279166,"src":"Aran_4_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279166.html","width":130,"caption":"","height":98});
															thumbnails[5279178] = clik.newPhoto({"id":5279178,"src":"Trapped_Light_1_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279178.html","width":130,"caption":"","height":98});
															thumbnails[5279186] = clik.newPhoto({"id":5279186,"src":"Trapped_Light_2_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279186.html","width":130,"caption":"","height":98});
															thumbnails[5279189] = clik.newPhoto({"id":5279189,"src":"Trapped_Light_3_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279189.html","width":130,"caption":"","height":98});
															thumbnails[5279191] = clik.newPhoto({"id":5279191,"src":"Trapped_Light_4_thumb.jpg","galleries_id":297026,"server_id":15,"link":"photo_5279191.html","width":130,"caption":"","height":98});
															thumbnails[5279174] = clik.newPhoto({"id":5279174,"src":"Four_Seasons_In_One_day_thumb.jpg","galleries_id":452500,"server_id":15,"link":"photo_5279174.html","width":130,"caption":"","height":98});
															thumbnails[6104138] = clik.newPhoto({"id":6104138,"src":"N15Bundoran_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104138.html","width":130,"caption":"","height":98});
															thumbnails[6104144] = clik.newPhoto({"id":6104144,"src":"N15John_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104144.html","width":130,"caption":"","height":98});
															thumbnails[6104296] = clik.newPhoto({"id":6104296,"src":"N15Wide3_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104296.html","width":130,"caption":"","height":98});
															thumbnails[6104217] = clik.newPhoto({"id":6104217,"src":"N15snow_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104217.html","width":130,"caption":"","height":98});
															thumbnails[6104221] = clik.newPhoto({"id":6104221,"src":"N15bark_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104221.html","width":130,"caption":"","height":98});
															thumbnails[6104232] = clik.newPhoto({"id":6104232,"src":"POT_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104232.html","width":130,"caption":"","height":98});
															thumbnails[6104236] = clik.newPhoto({"id":6104236,"src":"POTback_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104236.html","width":130,"caption":"","height":98});
															thumbnails[6104275] = clik.newPhoto({"id":6104275,"src":"POTtree_thumb.jpg","galleries_id":342310,"server_id":15,"link":"photo_6104275.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[222340] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Shelter","link":"gallery_222340.html","maxRecords":0.0,"photoIDs":[3543855.0,8561700.0,3543704.0,3543498.0,3543738.0,3543707.0,3543896.0,5279301.0,5279303.0,5279307.0,5279309.0,5279314.0,5279311.0],"skipIndex":0,"section_code":"gallery","featured_images":"8561700,5279314,5279311,5279309,5279307,5279303,5279301,3543896,3543707","id":222340,"singleSection":false});				  						galleries[267201] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Sentinel Project","link":"gallery_267201.html","maxRecords":0.0,"photoIDs":[3543915.0,4993590.0,4993592.0,4993593.0,5429922.0,8561746.0,8561727.0,8561730.0],"skipIndex":0,"section_code":"gallery","featured_images":"8561730,8561727,5429922,4993593,3543915","id":267201,"singleSection":false});				  						galleries[267967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Northlands Residency ","link":"gallery_267967.html","maxRecords":0.0,"photoIDs":[4993213.0,4993216.0,4993223.0,4993228.0,4993246.0,4993233.0,4993237.0,4993239.0,4993270.0,4993273.0,4993274.0,4993540.0,4993402.0,4993403.0,4993405.0,4993522.0],"skipIndex":0,"section_code":"gallery","featured_images":"4993246,4993239,4993237,4993228,4993223,4993216,4993213","id":267967,"singleSection":false});				  						galleries[452500] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"IICTF","link":"gallery_452500.html","maxRecords":0.0,"photoIDs":[5279174.0],"skipIndex":0,"section_code":"gallery","featured_images":5279174.0,"id":452500,"singleSection":false});				  						galleries[452504] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TBA","link":"gallery_452504.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":452504,"singleSection":false});				  						galleries[295485] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scapes","link":"gallery_295485.html","maxRecords":0.0,"photoIDs":[5242253.0,5242258.0,8278680.0,8278681.0,5988875.0,5988883.0,5988891.0,5988945.0,8278658.0,5242262.0,5242276.0,8278714.0,8278718.0,8278723.0,8278726.0,8278733.0,8278739.0,8278741.0,8278743.0,5242279.0,5242284.0,5988962.0,5988965.0,8278818.0],"skipIndex":0,"section_code":"gallery","featured_images":"8278818,8278743,8278741,8278739,8278733,8278726,8278723,8278718,8278714,8278681,8278680,8278658,5988965,5988962,5988945,5988891,5988883,5988875,5242284,5242279,5242276,5242262,5242258,5242253","id":295485,"singleSection":false});				  						galleries[337391] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Letters, Postcards, Puzzles and Games","link":"gallery_337391.html","maxRecords":0.0,"photoIDs":[3543701.0,5988954.0,5988961.0,5988977.0,6112209.0],"skipIndex":0,"section_code":"gallery","featured_images":"5988977,5988961,5988954","id":337391,"singleSection":false});				  						galleries[297026] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fire","link":"gallery_297026.html","maxRecords":0.0,"photoIDs":[5279158.0,5279161.0,5279163.0,5279166.0,5279178.0,5279186.0,5279189.0,5279191.0],"skipIndex":0,"section_code":"gallery","featured_images":"5279191,5279189,5279186,5279178,5279166,5279163,5279161,5279158","id":297026,"singleSection":false});				  						galleries[313575] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"three x 3","link":"gallery_313575.html","maxRecords":0.0,"photoIDs":[5533949.0,5533953.0,5533979.0,5533987.0,5533990.0,5533997.0],"skipIndex":0,"section_code":"gallery","featured_images":"5533997,5533990,5533987,5533979,5533953,5533949","id":313575,"singleSection":false});				  						galleries[342310] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Public Art","link":"gallery_342310.html","maxRecords":0.0,"photoIDs":[6104138.0,6104144.0,6104296.0,6104217.0,6104221.0,6104232.0,6104236.0,6104275.0],"skipIndex":0,"section_code":"gallery","featured_images":"6104275,6104232,6104144,6104138","id":342310,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8650584,3543701,3543855,8561700,3543704,3543498,3543738,3543707,3543896,3543915,3543715,3543718,3543723,3543882,3543721,5988954,5988961,5279301,5279303,5279307,5279309,5279314,5279311,5533979,5533987,4993213,4993216,4993223,4993246,4993237,4993239,4993270,4993273,4993274,4993540,4993402,4993403,4993405,4993522,4993593,5429922,3543606,8561727,8561730,5242253,5242258,8278680,8278681,5988875,5988883,5988891,5988945,8278658,5242262,5242276,8278714,8278718,8278723,8278726,8278733,8278739,8278741,8278743,5242279,5242284,5988962,8278818,5988965,5279158,5279161,5279163,5279166,5279178,5279186,5279189,5279191,6104138,6104296,6104275';
imageSets[2] = '8561700,3543707,3543896,3543915,3543715,3543718,3543723,3543882,3543721,5988954,5988961,5988977,5279301,5279303,5279307,5279309,5279314,5279311,5533949,5533953,5533979,5533987,5533990,5533997,4993213,4993216,4993223,4993228,4993246,4993237,4993239,4993593,5429922,8561727,8561730,5242253,5242258,8278680,8278681,5988875,5988883,5988891,5988945,8278658,5242262,5242276,8278714,8278718,8278723,8278726,8278733,8278739,8278741,8278743,5242279,5242284,5988962,8278818,5988965,5279158,5279161,5279163,5279166,5279178,5279186,5279189,5279191,6104138,6104144,6104232,6104275';
imageSets[3] = '8650584,8561746,8561730,8561727,8561700,8278818,8278743,8278741,8278739,8278733,8278726,8278723,8278718,8278714,8278681,8278680,8278658,6112209,6104296,6104275,6104236,6104232,6104221,6104217,6104144,6104138,5988977,5988965,5988962,5988961,5988954,5988945,5988891,5988883,5988875,5627052,5533997,5533990,5533987,5533979,5533953,5533949,5429922,5279314,5279311,5279309,5279307,5279303,5279301,5279191';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Bluemoth/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Bluemoth/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 = 'Sean Campbell: ' + 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>Artist </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;
	}
}

			

