window.thumbnails = {};
															thumbnails[4605471] = clik.newPhoto({"id":4605471,"src":"21_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[4605479] = clik.newPhoto({"id":4605479,"src":"Alex_Fur_BW_Final_web1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4605523] = clik.newPhoto({"id":4605523,"src":"51_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[4606817] = clik.newPhoto({"id":4606817,"src":"1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[4866259] = clik.newPhoto({"id":4866259,"src":"53_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":174});
															thumbnails[6096998] = clik.newPhoto({"id":6096998,"src":"Hair_Salon_7_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":189});
															thumbnails[4605953] = clik.newPhoto({"id":4605953,"src":"6_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4605953.html","width":130,"caption":"","height":174});
															thumbnails[4606001] = clik.newPhoto({"id":4606001,"src":"7_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606001.html","width":130,"caption":"","height":174});
															thumbnails[4606004] = clik.newPhoto({"id":4606004,"src":"8_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606004.html","width":130,"caption":"","height":174});
															thumbnails[4606159] = clik.newPhoto({"id":4606159,"src":"10_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606159.html","width":130,"caption":"","height":174});
															thumbnails[4606185] = clik.newPhoto({"id":4606185,"src":"11_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606185.html","width":130,"caption":"","height":174});
															thumbnails[4606395] = clik.newPhoto({"id":4606395,"src":"12_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606395.html","width":130,"caption":"","height":174});
															thumbnails[4606595] = clik.newPhoto({"id":4606595,"src":"13_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606595.html","width":130,"caption":"","height":174});
															thumbnails[4606596] = clik.newPhoto({"id":4606596,"src":"14_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606596.html","width":130,"caption":"","height":174});
															thumbnails[4606636] = clik.newPhoto({"id":4606636,"src":"16_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606636.html","width":130,"caption":"","height":174});
															thumbnails[4606690] = clik.newPhoto({"id":4606690,"src":"17_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606690.html","width":130,"caption":"","height":174});
															thumbnails[4606691] = clik.newPhoto({"id":4606691,"src":"18_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606691.html","width":130,"caption":"","height":174});
															thumbnails[4606697] = clik.newPhoto({"id":4606697,"src":"19_thumb.jpg","galleries_id":266370,"server_id":18,"link":"photo_4606697.html","width":130,"caption":"","height":174});
															thumbnails[4606780] = clik.newPhoto({"id":4606780,"src":"20_thumb.jpg","galleries_id":266371,"server_id":18,"link":"photo_4606780.html","width":130,"caption":"","height":174});
															thumbnails[4606781] = clik.newPhoto({"id":4606781,"src":"211_thumb.jpg","galleries_id":266371,"server_id":18,"link":"photo_4606781.html","width":130,"caption":"","height":174});
															thumbnails[4606782] = clik.newPhoto({"id":4606782,"src":"23_thumb.jpg","galleries_id":266371,"server_id":18,"link":"photo_4606782.html","width":130,"caption":"","height":174});
															thumbnails[4606811] = clik.newPhoto({"id":4606811,"src":"22_thumb.jpg","galleries_id":266371,"server_id":18,"link":"photo_4606811.html","width":130,"caption":"","height":174});
															thumbnails[4606812] = clik.newPhoto({"id":4606812,"src":"25_thumb.jpg","galleries_id":266371,"server_id":18,"link":"photo_4606812.html","width":130,"caption":"","height":174});
															thumbnails[4606813] = clik.newPhoto({"id":4606813,"src":"24_thumb.jpg","galleries_id":266371,"server_id":18,"link":"photo_4606813.html","width":130,"caption":"","height":174});
															thumbnails[4606853] = clik.newPhoto({"id":4606853,"src":"26_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_4606853.html","width":130,"caption":"","height":174});
															thumbnails[4606899] = clik.newPhoto({"id":4606899,"src":"27_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_4606899.html","width":130,"caption":"","height":174});
															thumbnails[4606930] = clik.newPhoto({"id":4606930,"src":"28_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_4606930.html","width":130,"caption":"","height":174});
															thumbnails[4607014] = clik.newPhoto({"id":4607014,"src":"30_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_4607014.html","width":130,"caption":"","height":174});
															thumbnails[4607035] = clik.newPhoto({"id":4607035,"src":"31_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_4607035.html","width":130,"caption":"","height":174});
															thumbnails[4607046] = clik.newPhoto({"id":4607046,"src":"29_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_4607046.html","width":130,"caption":"","height":174});
															thumbnails[4607081] = clik.newPhoto({"id":4607081,"src":"34_thumb.jpg","galleries_id":266519,"server_id":18,"link":"photo_4607081.html","width":130,"caption":"","height":174});
															thumbnails[4607082] = clik.newPhoto({"id":4607082,"src":"33_thumb.jpg","galleries_id":266519,"server_id":18,"link":"photo_4607082.html","width":130,"caption":"","height":174});
															thumbnails[4607083] = clik.newPhoto({"id":4607083,"src":"32_thumb.jpg","galleries_id":266519,"server_id":18,"link":"photo_4607083.html","width":130,"caption":"","height":174});
															thumbnails[4607084] = clik.newPhoto({"id":4607084,"src":"36_thumb.jpg","galleries_id":266519,"server_id":18,"link":"photo_4607084.html","width":130,"caption":"","height":97});
															thumbnails[4607085] = clik.newPhoto({"id":4607085,"src":"37_thumb.jpg","galleries_id":266519,"server_id":18,"link":"photo_4607085.html","width":130,"caption":"","height":97});
															thumbnails[4607086] = clik.newPhoto({"id":4607086,"src":"351_thumb.jpg","galleries_id":266519,"server_id":18,"link":"photo_4607086.html","width":130,"caption":"","height":97});
															thumbnails[4607696] = clik.newPhoto({"id":4607696,"src":"38_thumb.jpg","galleries_id":266548,"server_id":18,"link":"photo_4607696.html","width":130,"caption":"","height":174});
															thumbnails[4607710] = clik.newPhoto({"id":4607710,"src":"411_thumb.jpg","galleries_id":266548,"server_id":18,"link":"photo_4607710.html","width":130,"caption":"","height":174});
															thumbnails[4607713] = clik.newPhoto({"id":4607713,"src":"42_thumb.jpg","galleries_id":266548,"server_id":18,"link":"photo_4607713.html","width":130,"caption":"","height":174});
															thumbnails[4607723] = clik.newPhoto({"id":4607723,"src":"401_thumb.jpg","galleries_id":266548,"server_id":18,"link":"photo_4607723.html","width":130,"caption":"","height":97});
															thumbnails[4608258] = clik.newPhoto({"id":4608258,"src":"391_thumb.jpg","galleries_id":266548,"server_id":18,"link":"photo_4608258.html","width":130,"caption":"","height":97});
															thumbnails[4821157] = clik.newPhoto({"id":4821157,"src":"51_E4E1DB7D-1D09-001F-99AB3DCF4D9760D1_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_4821157.html","width":130,"caption":"","height":174});
															thumbnails[4821158] = clik.newPhoto({"id":4821158,"src":"501_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_4821158.html","width":130,"caption":"","height":174});
															thumbnails[4821161] = clik.newPhoto({"id":4821161,"src":"491_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_4821161.html","width":130,"caption":"","height":174});
															thumbnails[4866301] = clik.newPhoto({"id":4866301,"src":"Hair_Salon_712_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_4866301.html","width":130,"caption":"","height":189});
															thumbnails[4988998] = clik.newPhoto({"id":4988998,"src":"55_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_4988998.html","width":130,"caption":"","height":174});
															thumbnails[6096820] = clik.newPhoto({"id":6096820,"src":"Hair_Salon_2_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6096820.html","width":130,"caption":"","height":189});
															thumbnails[6096829] = clik.newPhoto({"id":6096829,"src":"Kelly_1_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_6096829.html","width":130,"caption":"","height":89});
															thumbnails[6096830] = clik.newPhoto({"id":6096830,"src":"16yrold_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_6096830.html","width":130,"caption":"","height":116});
															thumbnails[6096832] = clik.newPhoto({"id":6096832,"src":"Group2_thumb.jpg","galleries_id":266506,"server_id":18,"link":"photo_6096832.html","width":130,"caption":"","height":86});
															thumbnails[6096917] = clik.newPhoto({"id":6096917,"src":"Hair_Salon_6_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6096917.html","width":130,"caption":"","height":189});
															thumbnails[6097318] = clik.newPhoto({"id":6097318,"src":"Juliette_2_Final_web12_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_6097318.html","width":130,"caption":"","height":86});
															thumbnails[6097549] = clik.newPhoto({"id":6097549,"src":"Juliette_1_Final_web_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_6097549.html","width":130,"caption":"","height":195});
															thumbnails[6097551] = clik.newPhoto({"id":6097551,"src":"The_girls_finalweb_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_6097551.html","width":130,"caption":"","height":189});
															thumbnails[6097553] = clik.newPhoto({"id":6097553,"src":"Nic_and_girls_final_web_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_6097553.html","width":130,"caption":"","height":189});
															thumbnails[6097554] = clik.newPhoto({"id":6097554,"src":"The_girls_2_final_web_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_6097554.html","width":130,"caption":"","height":86});
															thumbnails[6097556] = clik.newPhoto({"id":6097556,"src":"Lucia_final_web_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_6097556.html","width":130,"caption":"","height":189});
															thumbnails[6097559] = clik.newPhoto({"id":6097559,"src":"Alex_and_Aniella_final_web_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6097559.html","width":130,"caption":"","height":195});
															thumbnails[6097560] = clik.newPhoto({"id":6097560,"src":"Alex_Fur_BW_Final_web_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6097560.html","width":130,"caption":"","height":195});
															thumbnails[6097562] = clik.newPhoto({"id":6097562,"src":"Alex_1_Final_web_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6097562.html","width":130,"caption":"","height":195});
															thumbnails[6097576] = clik.newPhoto({"id":6097576,"src":"sellu_blue_floor_final_web_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6097576.html","width":130,"caption":"","height":189});
															thumbnails[6097578] = clik.newPhoto({"id":6097578,"src":"sellu_bw_side_final_web_thumb.jpg","galleries_id":342067,"server_id":18,"link":"photo_6097578.html","width":130,"caption":"","height":189});
															thumbnails[6097740] = clik.newPhoto({"id":6097740,"src":"Gerard_Headsetweb_thumb.jpg","galleries_id":380989,"server_id":18,"link":"photo_6097740.html","width":130,"caption":"Gerard Conway: Award winning radio presenter","height":89});
															thumbnails[6097780] = clik.newPhoto({"id":6097780,"src":"Gerard_Close_up_web_thumb.jpg","galleries_id":380989,"server_id":18,"link":"photo_6097780.html","width":130,"caption":"Gerard Conway: Award winning radio presenter","height":195});
															thumbnails[6278396] = clik.newPhoto({"id":6278396,"src":"Holdng_Hands_Wedding_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278396.html","width":130,"caption":"","height":195});
															thumbnails[6278422] = clik.newPhoto({"id":6278422,"src":"Bride_1_Lucy_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278422.html","width":130,"caption":"","height":195});
															thumbnails[6278543] = clik.newPhoto({"id":6278543,"src":"Wedding_7_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278543.html","width":130,"caption":"","height":87});
															thumbnails[6278544] = clik.newPhoto({"id":6278544,"src":"Wedding_8_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278544.html","width":130,"caption":"","height":87});
															thumbnails[6278558] = clik.newPhoto({"id":6278558,"src":"Wedding_Kiss_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278558.html","width":130,"caption":"","height":99});
															thumbnails[6278592] = clik.newPhoto({"id":6278592,"src":"Wedding3_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278592.html","width":130,"caption":"","height":195});
															thumbnails[6278929] = clik.newPhoto({"id":6278929,"src":"Girls_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_6278929.html","width":130,"caption":"","height":195});
															thumbnails[7035956] = clik.newPhoto({"id":7035956,"src":"spepys_1_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_7035956.html","width":130,"caption":"","height":87});
															thumbnails[7035960] = clik.newPhoto({"id":7035960,"src":"spepys_2_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_7035960.html","width":130,"caption":"","height":87});
															thumbnails[7036025] = clik.newPhoto({"id":7036025,"src":"spepys_4_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_7036025.html","width":130,"caption":"","height":91});
															thumbnails[7036029] = clik.newPhoto({"id":7036029,"src":"spepys_3_web1_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_7036029.html","width":130,"caption":"","height":102});
															thumbnails[7036135] = clik.newPhoto({"id":7036135,"src":"spepys_5_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_7036135.html","width":130,"caption":"","height":87});
															thumbnails[7036161] = clik.newPhoto({"id":7036161,"src":"spepys_6_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_7036161.html","width":130,"caption":"","height":87});
															thumbnails[7039589] = clik.newPhoto({"id":7039589,"src":"phoebe_and_emily_web_thumb.jpg","galleries_id":342055,"server_id":18,"link":"photo_7039589.html","width":130,"caption":"","height":189});
															thumbnails[7039687] = clik.newPhoto({"id":7039687,"src":"gray_brideb_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_7039687.html","width":130,"caption":"","height":197});
															thumbnails[7039735] = clik.newPhoto({"id":7039735,"src":"gray_bride_2web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_7039735.html","width":130,"caption":"","height":196});
															thumbnails[7039745] = clik.newPhoto({"id":7039745,"src":"wedding_dress_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_7039745.html","width":130,"caption":"","height":194});
															thumbnails[7039777] = clik.newPhoto({"id":7039777,"src":"wedding_flowers_web1_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_7039777.html","width":130,"caption":"","height":86});
															thumbnails[7039916] = clik.newPhoto({"id":7039916,"src":"corporate1_web_thumb.jpg","galleries_id":380989,"server_id":18,"link":"photo_7039916.html","width":130,"caption":"Accenture: Global consulting, technology and outsourcing...","height":87});
															thumbnails[7040207] = clik.newPhoto({"id":7040207,"src":"corporate2_web_thumb.jpg","galleries_id":380989,"server_id":18,"link":"photo_7040207.html","width":130,"caption":"Accenture: Global consulting, technology and outsourcing...","height":87});
															thumbnails[7040220] = clik.newPhoto({"id":7040220,"src":"corporate3_web_thumb.jpg","galleries_id":380989,"server_id":18,"link":"photo_7040220.html","width":130,"caption":"Accenture: Global consulting, technology and outsourcing...","height":87});
															thumbnails[7040226] = clik.newPhoto({"id":7040226,"src":"corporate4_web_thumb.jpg","galleries_id":380989,"server_id":18,"link":"photo_7040226.html","width":130,"caption":"Accenture: Global consulting, technology and outsourcing...","height":87});
															thumbnails[7073304] = clik.newPhoto({"id":7073304,"src":"wedding_flowers_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_7073304.html","width":130,"caption":"","height":195});
															thumbnails[8473889] = clik.newPhoto({"id":8473889,"src":"bridal_party_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_8473889.html","width":130,"caption":"","height":195});
															thumbnails[8473890] = clik.newPhoto({"id":8473890,"src":"bridal_stance_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_8473890.html","width":130,"caption":"","height":195});
															thumbnails[8473891] = clik.newPhoto({"id":8473891,"src":"bridal_throw_web_thumb.jpg","galleries_id":348735,"server_id":18,"link":"photo_8473891.html","width":130,"caption":"","height":87});
															thumbnails[8473893] = clik.newPhoto({"id":8473893,"src":"ye_awards_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_8473893.html","width":130,"caption":"","height":87});
															thumbnails[8473895] = clik.newPhoto({"id":8473895,"src":"ye_entire_grp_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_8473895.html","width":130,"caption":"","height":66});
															thumbnails[8473897] = clik.newPhoto({"id":8473897,"src":"YE-Winners4_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_8473897.html","width":130,"caption":"","height":87});
															thumbnails[8473947] = clik.newPhoto({"id":8473947,"src":"wedding_speeches_web_thumb.jpg","galleries_id":380988,"server_id":18,"link":"photo_8473947.html","width":130,"caption":"","height":87});
															thumbnails[8474029] = clik.newPhoto({"id":8474029,"src":"sample_hellokitty_necklace_web_thumb.jpg","galleries_id":380990,"server_id":18,"link":"photo_8474029.html","width":130,"caption":"","height":130});
															thumbnails[8474033] = clik.newPhoto({"id":8474033,"src":"ecom_web_thumb.jpg","galleries_id":380990,"server_id":18,"link":"photo_8474033.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[380983] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Corporate \/ Business","link":"gallery_380983.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8474033,8474029,8473947,8473897,8473895,8473893,7040226,7040220,7040207,7039916","id":380983,"singleSection":false});				  						galleries[380989] = clik.newGallery({"parentGallery":380983,"usePopups":false,"title":"Corporate Portraits","link":"gallery_380989.html","maxRecords":0.0,"photoIDs":[6097740.0,6097780.0,7039916.0,7040207.0,7040220.0,7040226.0],"skipIndex":0,"section_code":"gallery","featured_images":"7040226,7040220,7040207,7039916,6097780,6097740","id":380989,"singleSection":false});				  						galleries[347118] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Creative","link":"gallery_347118.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4608258,4607723,4607713,4607710,4607696,4607086,4607085,4607084,4607083,4607082","id":347118,"singleSection":false});				  						galleries[380990] = clik.newGallery({"parentGallery":380983,"usePopups":false,"title":"Ecommerce \/ Product Photography","link":"gallery_380990.html","maxRecords":0.0,"photoIDs":[8474029.0,8474033.0],"skipIndex":0,"section_code":"gallery","featured_images":"8474033,8474029","id":380990,"singleSection":false});				  						galleries[342055] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family & Children","link":"gallery_342055.html","maxRecords":0.0,"photoIDs":[4988998.0,6097318.0,6097549.0,6097551.0,6097553.0,6097554.0,6097556.0,7039589.0],"skipIndex":0,"section_code":"gallery","featured_images":"7039589,6097556,6097554,6097553,6097551,6097549,6097318,4988998","id":342055,"singleSection":false});				  						galleries[380969] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Girls Girls Girls","link":"gallery_380969.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6096832,6096830,6096829,4607046,4607035,4607014,4606930,4606899,4606853,4606813","id":380969,"singleSection":false});				  						galleries[342067] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits \/ Portfolio","link":"gallery_342067.html","maxRecords":0.0,"photoIDs":[4821157.0,4821158.0,4821161.0,4866301.0,6096820.0,6096917.0,6097559.0,6097560.0,6097562.0,6097576.0,6097578.0],"skipIndex":0,"section_code":"gallery","featured_images":"6097578,6097576,6097562,6097560,6097559,6096917,6096820,4866301,4821161,4821158","id":342067,"singleSection":false});				  						galleries[380988] = clik.newGallery({"parentGallery":380983,"usePopups":false,"title":"Venue & Events","link":"gallery_380988.html","maxRecords":0.0,"photoIDs":[7035956.0,7035960.0,7036025.0,7036029.0,7036135.0,7036161.0,8473893.0,8473895.0,8473897.0,8473947.0],"skipIndex":0,"section_code":"gallery","featured_images":"8473947,8473897,8473895,8473893,7036161,7036135,7036029,7036025,7035960,7035956","id":380988,"singleSection":false});				  						galleries[348735] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_348735.html","maxRecords":0.0,"photoIDs":[6278396.0,6278422.0,6278543.0,6278544.0,6278558.0,6278592.0,6278929.0,7039687.0,7039735.0,7039745.0,7039777.0,7073304.0,8473889.0,8473890.0,8473891.0],"skipIndex":0,"section_code":"gallery","featured_images":"8473891,8473890,8473889,7073304,7039777,7039745,7039735,7039687,6278929,6278592","id":348735,"singleSection":false});				  						galleries[266371] = clik.newGallery({"parentGallery":380969,"usePopups":false,"title":"Bond girls","link":"gallery_266371.html","maxRecords":0.0,"photoIDs":[4606780.0,4606781.0,4606782.0,4606811.0,4606812.0,4606813.0],"skipIndex":0,"section_code":"gallery","featured_images":"4606813,4606812,4606811,4606782,4606781,4606780","id":266371,"singleSection":false});				  						galleries[266370] = clik.newGallery({"parentGallery":347118,"usePopups":false,"title":"Theatrical","link":"gallery_266370.html","maxRecords":0.0,"photoIDs":[4605953.0,4606001.0,4606004.0,4606159.0,4606185.0,4606395.0,4606595.0,4606596.0,4606636.0,4606690.0,4606691.0,4606697.0],"skipIndex":0,"section_code":"gallery","featured_images":"4606697,4606691,4606690,4606636,4606596,4606595,4606395,4606185,4606159,4606004","id":266370,"singleSection":false});				  						galleries[266506] = clik.newGallery({"parentGallery":380969,"usePopups":false,"title":"Football babes","link":"gallery_266506.html","maxRecords":0.0,"photoIDs":[4606853.0,4606899.0,4606930.0,4607014.0,4607035.0,4607046.0,6096829.0,6096830.0,6096832.0],"skipIndex":0,"section_code":"gallery","featured_images":"6096832,6096830,6096829,4607046,4607035,4607014,4606930,4606899,4606853","id":266506,"singleSection":false});				  						galleries[266519] = clik.newGallery({"parentGallery":347118,"usePopups":false,"title":"Black n White","link":"gallery_266519.html","maxRecords":0.0,"photoIDs":[4607081.0,4607082.0,4607083.0,4607084.0,4607085.0,4607086.0],"skipIndex":0,"section_code":"gallery","featured_images":"4607086,4607085,4607084,4607083,4607082,4607081","id":266519,"singleSection":false});				  						galleries[266548] = clik.newGallery({"parentGallery":347118,"usePopups":false,"title":"Album cover","link":"gallery_266548.html","maxRecords":0.0,"photoIDs":[4607696.0,4607710.0,4607713.0,4607723.0,4608258.0],"skipIndex":0,"section_code":"gallery","featured_images":"4608258,4607723,4607713,4607710,4607696","id":266548,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4866301,4606817,4605523,4605479,4605471';
imageSets[3] = '8474033,8474029,8473947,8473897,8473895,8473893,8473891,8473890,8473889,7073304,7040226,7040220,7040207,7039916,7039777,7039745,7039735,7039687,7039589,7036161,7036135,7036029,7036025,7035960,7035956,6278929,6278592,6278558,6278544,6278543,6278422,6278396,6097780,6097740,6097578,6097576,6097562,6097560,6097559,6097556,6097554,6097553,6097551,6097549,6097318,6096998,6096917,6096832,6096830,6096829';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/BlissUKFF/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/BlissUKFF/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 = 'Bliss Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &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="info@ukfootballfinder.co.uk">';
					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="info@ukfootballfinder.co.uk">';
				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;
	}
}

			

