window.thumbnails = {};
															thumbnails[7708937] = clik.newPhoto({"id":7708937,"src":"ps_1_low_res_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Paul Spree","height":87});
															thumbnails[7705149] = clik.newPhoto({"id":7705149,"src":"Home_Page_2011_750_wide1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6024704] = clik.newPhoto({"id":6024704,"src":"Ashley_-_Clickpic_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_6024704.html","width":130,"caption":"Ashley","height":195});
															thumbnails[6024706] = clik.newPhoto({"id":6024706,"src":"Ashley_-_Clickpic_2_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_6024706.html","width":130,"caption":"Ashley","height":195});
															thumbnails[5977952] = clik.newPhoto({"id":5977952,"src":"clickpic_1_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5977952.html","width":130,"caption":"Leon","height":195});
															thumbnails[5977954] = clik.newPhoto({"id":5977954,"src":"clickpic_4_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5977954.html","width":130,"caption":"Sinead","height":195});
															thumbnails[5977956] = clik.newPhoto({"id":5977956,"src":"clickpic_7_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5977956.html","width":130,"caption":"Ally Montana","height":195});
															thumbnails[5977958] = clik.newPhoto({"id":5977958,"src":"clickpic_2_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5977958.html","width":130,"caption":"Leon","height":195});
															thumbnails[5978002] = clik.newPhoto({"id":5978002,"src":"clickpic_5_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5978002.html","width":130,"caption":"Ally Montana","height":195});
															thumbnails[5978012] = clik.newPhoto({"id":5978012,"src":"clickpic_3_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5978012.html","width":130,"caption":"Sinead","height":195});
															thumbnails[5978013] = clik.newPhoto({"id":5978013,"src":"clickpic_6_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5978013.html","width":130,"caption":"Ally Montana","height":195});
															thumbnails[6476932] = clik.newPhoto({"id":6476932,"src":"Poppy_on_Clickpic_400_x_600_2_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_6476932.html","width":130,"caption":"Family Portrait","height":195});
															thumbnails[6973406] = clik.newPhoto({"id":6973406,"src":"Number-4_web_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_6973406.html","width":130,"caption":"Wedding Bands","height":87});
															thumbnails[6973415] = clik.newPhoto({"id":6973415,"src":"Number-9_web_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_6973415.html","width":130,"caption":"The Brides Shoes","height":87});
															thumbnails[6973436] = clik.newPhoto({"id":6973436,"src":"Number-11_web_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_6973436.html","width":130,"caption":"Groom","height":195});
															thumbnails[6973683] = clik.newPhoto({"id":6973683,"src":"Number-5_web_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_6973683.html","width":130,"caption":"Bride","height":195});
															thumbnails[8363434] = clik.newPhoto({"id":8363434,"src":"4_0B4AB546-24E8-5EC4-4FF4299FC1C55B01_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363434.html","width":130,"caption":"Wedding Groups","height":86});
															thumbnails[3984266] = clik.newPhoto({"id":3984266,"src":"Bride_A_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_3984266.html","width":130,"caption":"Bride Portrait","height":195});
															thumbnails[4022663] = clik.newPhoto({"id":4022663,"src":"Groom_A_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4022663.html","width":130,"caption":"Portrait","height":195});
															thumbnails[4584569] = clik.newPhoto({"id":4584569,"src":"Ade_web_4_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_4584569.html","width":130,"caption":"Wedding Bouquet ","height":87});
															thumbnails[4592018] = clik.newPhoto({"id":4592018,"src":"Couple_A_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4592018.html","width":130,"caption":"Married","height":195});
															thumbnails[5470315] = clik.newPhoto({"id":5470315,"src":"Ade_web_3_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_5470315.html","width":130,"caption":"Wedding Bouquet","height":87});
															thumbnails[8363389] = clik.newPhoto({"id":8363389,"src":"1_0B3E16AE-24E8-5EC4-4F6B760EA3A0428D_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363389.html","width":130,"caption":"Bands of Gold","height":86});
															thumbnails[8363393] = clik.newPhoto({"id":8363393,"src":"2_0B3EF9DB-24E8-5EC4-4F51556DE5B1C16D_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363393.html","width":130,"caption":"Wedding Bouquet ","height":86});
															thumbnails[8363421] = clik.newPhoto({"id":8363421,"src":"3_0B456BCB-24E8-5EC4-4F72549349AB123A_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363421.html","width":130,"caption":"Wedding Documentary","height":86});
															thumbnails[4065879] = clik.newPhoto({"id":4065879,"src":"Phillip_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4065879.html","width":130,"caption":"African Groom","height":195});
															thumbnails[5629861] = clik.newPhoto({"id":5629861,"src":"Ade_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_5629861.html","width":130,"caption":"African Bride","height":195});
															thumbnails[4075878] = clik.newPhoto({"id":4075878,"src":"Nikki_4_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4075878.html","width":130,"caption":"Bride & Groom","height":195});
															thumbnails[4002242] = clik.newPhoto({"id":4002242,"src":"Nikki_1_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4002242.html","width":130,"caption":"Groom","height":195});
															thumbnails[4358799] = clik.newPhoto({"id":4358799,"src":"1_82_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4358799.html","width":130,"caption":"Nicky","height":195});
															thumbnails[4358800] = clik.newPhoto({"id":4358800,"src":"1_37_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_4358800.html","width":130,"caption":"Warren","height":195});
															thumbnails[4867793] = clik.newPhoto({"id":4867793,"src":"4_A4D87B7B-24E8-5EC4-4F5BC6D360C89802_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4867793.html","width":130,"caption":"Putting Nerves to Rest","height":86});
															thumbnails[4867799] = clik.newPhoto({"id":4867799,"src":"Nikki__Warren_6_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4867799.html","width":130,"caption":"Grooms Arrival","height":87});
															thumbnails[4867815] = clik.newPhoto({"id":4867815,"src":"3_A4D8153F-24E8-5EC4-4FDA34C424CF7F38_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4867815.html","width":130,"caption":"Proud Parents","height":87});
															thumbnails[4867820] = clik.newPhoto({"id":4867820,"src":"Nikki__Warren_9_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4867820.html","width":130,"caption":"Wedding Cake","height":87});
															thumbnails[3984387] = clik.newPhoto({"id":3984387,"src":"14_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_3984387.html","width":130,"caption":"Debra & Josh","height":195});
															thumbnails[7705309] = clik.newPhoto({"id":7705309,"src":"Clickpic_1_91B5F61B-1EC9-D45B-1C820C5B970DA9AC_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7705309.html","width":130,"caption":"Wendy & Nan","height":195});
															thumbnails[7705330] = clik.newPhoto({"id":7705330,"src":"Clickpic_2_91B7C387-1EC9-D45B-1C7D242B99B10208_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7705330.html","width":130,"caption":"Wendy & Kevin","height":196});
															thumbnails[7705373] = clik.newPhoto({"id":7705373,"src":"clickpic_1_91C42D7F-1EC9-D45B-1C6B0C5393EB602B_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7705373.html","width":130,"caption":"Debra","height":196});
															thumbnails[7705382] = clik.newPhoto({"id":7705382,"src":"13_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7705382.html","width":130,"caption":"Nicky & Warren","height":195});
															thumbnails[7902992] = clik.newPhoto({"id":7902992,"src":"1_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7902992.html","width":130,"caption":"Ade & Philippe","height":195});
															thumbnails[7902993] = clik.newPhoto({"id":7902993,"src":"2_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7902993.html","width":130,"caption":"Ade & Philippe","height":195});
															thumbnails[7902994] = clik.newPhoto({"id":7902994,"src":"3_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7902994.html","width":130,"caption":"Ade & Philippe","height":195});
															thumbnails[7902995] = clik.newPhoto({"id":7902995,"src":"4_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7902995.html","width":130,"caption":"Ade & Philippe","height":195});
															thumbnails[7902996] = clik.newPhoto({"id":7902996,"src":"5_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7902996.html","width":130,"caption":"Debra & Josh","height":196});
															thumbnails[7902998] = clik.newPhoto({"id":7902998,"src":"6_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7902998.html","width":130,"caption":"Debra & Josh","height":196});
															thumbnails[7903000] = clik.newPhoto({"id":7903000,"src":"7_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7903000.html","width":130,"caption":"Josh & Bestman","height":196});
															thumbnails[7903002] = clik.newPhoto({"id":7903002,"src":"8_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7903002.html","width":130,"caption":"Wendy & Kevin","height":196});
															thumbnails[7903004] = clik.newPhoto({"id":7903004,"src":"9_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7903004.html","width":130,"caption":"Nicky & Warren","height":195});
															thumbnails[7903006] = clik.newPhoto({"id":7903006,"src":"10_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7903006.html","width":130,"caption":"Nicky & Warren","height":197});
															thumbnails[7903007] = clik.newPhoto({"id":7903007,"src":"11_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7903007.html","width":130,"caption":"Wendy","height":196});
															thumbnails[7903008] = clik.newPhoto({"id":7903008,"src":"12_thumb.jpg","galleries_id":363727,"server_id":15,"link":"photo_7903008.html","width":130,"caption":"Philippe","height":195});
															thumbnails[8220314] = clik.newPhoto({"id":8220314,"src":"DSC06588-2_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220314.html","width":130,"caption":"Kelly","height":196});
															thumbnails[8220315] = clik.newPhoto({"id":8220315,"src":"steve_b_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220315.html","width":130,"caption":"Steve","height":196});
															thumbnails[8220316] = clik.newPhoto({"id":8220316,"src":"DSC06685_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220316.html","width":130,"caption":"Elika","height":196});
															thumbnails[8220317] = clik.newPhoto({"id":8220317,"src":"DSC07976_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220317.html","width":130,"caption":"Freya and Dad","height":196});
															thumbnails[8220318] = clik.newPhoto({"id":8220318,"src":"DSC06843_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220318.html","width":130,"caption":"Siobhan","height":196});
															thumbnails[8220319] = clik.newPhoto({"id":8220319,"src":"DSC07545_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220319.html","width":130,"caption":"Sonia","height":196});
															thumbnails[8220320] = clik.newPhoto({"id":8220320,"src":"DSC06604_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220320.html","width":130,"caption":"Kelly","height":196});
															thumbnails[8220333] = clik.newPhoto({"id":8220333,"src":"DSC06705_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220333.html","width":130,"caption":"Elika","height":196});
															thumbnails[8220347] = clik.newPhoto({"id":8220347,"src":"DSC06731_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220347.html","width":130,"caption":"Siobjan","height":196});
															thumbnails[8220349] = clik.newPhoto({"id":8220349,"src":"DSC07973_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_8220349.html","width":130,"caption":"Freya","height":196});
															thumbnails[8218671] = clik.newPhoto({"id":8218671,"src":"DSC09539_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8218671.html","width":130,"caption":"Color scheme","height":196});
															thumbnails[8218674] = clik.newPhoto({"id":8218674,"src":"DSC09498_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8218674.html","width":130,"caption":"Mixed Floral Bouquet","height":196});
															thumbnails[8218655] = clik.newPhoto({"id":8218655,"src":"DSC09071_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8218655.html","width":130,"caption":"Bride wares Purple","height":196});
															thumbnails[8218666] = clik.newPhoto({"id":8218666,"src":"DSC09074_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8218666.html","width":130,"caption":"Brides Bouquet","height":196});
															thumbnails[4592139] = clik.newPhoto({"id":4592139,"src":"Ade_web_6_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_4592139.html","width":130,"caption":"Tiara","height":195});
															thumbnails[6421541] = clik.newPhoto({"id":6421541,"src":"Ade_web_2_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_6421541.html","width":130,"caption":"Shoes","height":195});
															thumbnails[8363442] = clik.newPhoto({"id":8363442,"src":"5_0B4EFA8E-24E8-5EC4-4FEBC8FE6489C327_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363442.html","width":130,"caption":"Philippe","height":195});
															thumbnails[8363759] = clik.newPhoto({"id":8363759,"src":"6_0B5E6151-24E8-5EC4-4F63164E05FAB2B3_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363759.html","width":130,"caption":"Flower Girl","height":195});
															thumbnails[8363960] = clik.newPhoto({"id":8363960,"src":"7_0B6FA3FB-24E8-5EC4-4F70A6B5C2363827_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363960.html","width":130,"caption":"Bride to be","height":195});
															thumbnails[8363969] = clik.newPhoto({"id":8363969,"src":"8_0B801049-24E8-5EC4-4FBB9B1DE7A483FF_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8363969.html","width":130,"caption":"Ade","height":195});
															thumbnails[4002140] = clik.newPhoto({"id":4002140,"src":"5_A4D9F74E-24E8-5EC4-4F11FEBDB56D99DC_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4002140.html","width":130,"caption":"Warren","height":196});
															thumbnails[4002300] = clik.newPhoto({"id":4002300,"src":"7_A4DA8EAC-24E8-5EC4-4FBE82A0E02FF408_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4002300.html","width":130,"caption":"Groom and Father","height":195});
															thumbnails[4867800] = clik.newPhoto({"id":4867800,"src":"8_A4DB19C6-24E8-5EC4-4F5F9271E53ACDEA_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4867800.html","width":130,"caption":"Nicky","height":196});
															thumbnails[4867801] = clik.newPhoto({"id":4867801,"src":"Nikki__Warren_8_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4867801.html","width":130,"caption":"Flowergirl","height":195});
															thumbnails[7903040] = clik.newPhoto({"id":7903040,"src":"DSC01243_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_7903040.html","width":130,"caption":"The Dress","height":196});
															thumbnails[7903044] = clik.newPhoto({"id":7903044,"src":"DSC01250_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_7903044.html","width":130,"caption":"Waiting for the Bride","height":196});
															thumbnails[8364017] = clik.newPhoto({"id":8364017,"src":"9_0B97D8C8-24E8-5EC4-4F294ACB7B4DED70_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364017.html","width":130,"caption":"Wedding Portrait","height":86});
															thumbnails[8364020] = clik.newPhoto({"id":8364020,"src":"10_0B9879AD-24E8-5EC4-4F1ED16A70DEE170_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364020.html","width":130,"caption":"In The Church","height":86});
															thumbnails[8364026] = clik.newPhoto({"id":8364026,"src":"11_0B999BC8-24E8-5EC4-4F51B191477F1231_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364026.html","width":130,"caption":"After the Ceremony","height":86});
															thumbnails[8364030] = clik.newPhoto({"id":8364030,"src":"12_0B9A547A-24E8-5EC4-4F7DEE6E84C948AE_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364030.html","width":130,"caption":"Wedding Reception","height":86});
															thumbnails[7903036] = clik.newPhoto({"id":7903036,"src":"DSC01346_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_7903036.html","width":130,"caption":"Rings","height":86});
															thumbnails[7903037] = clik.newPhoto({"id":7903037,"src":"DSC01211_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_7903037.html","width":130,"caption":"Tiara","height":86});
															thumbnails[7903038] = clik.newPhoto({"id":7903038,"src":"DSC01269_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_7903038.html","width":130,"caption":"Shoes","height":86});
															thumbnails[7903039] = clik.newPhoto({"id":7903039,"src":"DSC00389_thumb.JPG","galleries_id":363726,"server_id":15,"link":"photo_7903039.html","width":130,"caption":"Flowers","height":86});
															thumbnails[8262253] = clik.newPhoto({"id":8262253,"src":"9_A4DC2868-24E8-5EC4-4F353F08BDBE7A9A_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262253.html","width":130,"caption":"Childs Play","height":87});
															thumbnails[8262255] = clik.newPhoto({"id":8262255,"src":"10_A4DCF59B-24E8-5EC4-4F4B3BF79987EFC2_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262255.html","width":130,"caption":"Bridesmaid","height":87});
															thumbnails[8262261] = clik.newPhoto({"id":8262261,"src":"11_A4DDC09C-24E8-5EC4-4FD25FFB9F337F10_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262261.html","width":130,"caption":"Bridesmaids","height":86});
															thumbnails[8262266] = clik.newPhoto({"id":8262266,"src":"12_A4DEB59B-24E8-5EC4-4FC03C1306E3FD71_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262266.html","width":130,"caption":"Nicky & Warren","height":86});
															thumbnails[3984427] = clik.newPhoto({"id":3984427,"src":"Ade_web_7_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_3984427.html","width":130,"caption":"Wedding Dress","height":195});
															thumbnails[4592089] = clik.newPhoto({"id":4592089,"src":"Ade_web_5_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_4592089.html","width":130,"caption":"Bouquet","height":195});
															thumbnails[8364044] = clik.newPhoto({"id":8364044,"src":"13_0B9D6661-24E8-5EC4-4F80B2958EDD7E84_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364044.html","width":130,"caption":"At the Alter","height":195});
															thumbnails[8364049] = clik.newPhoto({"id":8364049,"src":"14_0B9E1DFA-24E8-5EC4-4FF339538F433B63_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364049.html","width":130,"caption":"Signing of the Register","height":195});
															thumbnails[8364054] = clik.newPhoto({"id":8364054,"src":"15_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364054.html","width":130,"caption":"Wedding Portrait","height":195});
															thumbnails[8364056] = clik.newPhoto({"id":8364056,"src":"161_thumb.jpg","galleries_id":443367,"server_id":15,"link":"photo_8364056.html","width":130,"caption":"First Dance","height":195});
															thumbnails[4373186] = clik.newPhoto({"id":4373186,"src":"1_112_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_4373186.html","width":130,"caption":"Cutting of the Cake","height":195});
															thumbnails[7903041] = clik.newPhoto({"id":7903041,"src":"Ade_web_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_7903041.html","width":130,"caption":"Shoes","height":195});
															thumbnails[7903042] = clik.newPhoto({"id":7903042,"src":"DSC00376_thumb.JPG","galleries_id":363726,"server_id":15,"link":"photo_7903042.html","width":130,"caption":"Wedding dress","height":196});
															thumbnails[8262274] = clik.newPhoto({"id":8262274,"src":"13_A4E086D2-24E8-5EC4-4FCE8F19A6A77EEF_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262274.html","width":130,"caption":"NIcky & Warren","height":196});
															thumbnails[8262278] = clik.newPhoto({"id":8262278,"src":"14_A4E14B5B-24E8-5EC4-4F288A95CEEB1238_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262278.html","width":130,"caption":"First Dance","height":195});
															thumbnails[8262286] = clik.newPhoto({"id":8262286,"src":"16_thumb.jpg","galleries_id":439972,"server_id":15,"link":"photo_8262286.html","width":130,"caption":"Bride and Father","height":196});
															thumbnails[8219014] = clik.newPhoto({"id":8219014,"src":"DSC09727_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8219014.html","width":130,"caption":"Memories","height":86});
															thumbnails[8219012] = clik.newPhoto({"id":8219012,"src":"DSC01557_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8219012.html","width":130,"caption":"Bride and Groom","height":86});
															thumbnails[8219010] = clik.newPhoto({"id":8219010,"src":"DSC00445_thumb.JPG","galleries_id":363726,"server_id":15,"link":"photo_8219010.html","width":130,"caption":"Stella","height":86});
															thumbnails[8219016] = clik.newPhoto({"id":8219016,"src":"Number-48_thumb.jpg","galleries_id":363726,"server_id":15,"link":"photo_8219016.html","width":130,"caption":"Two become One","height":86});
															thumbnails[4922960] = clik.newPhoto({"id":4922960,"src":"Kirsty__Grace_1_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_4922960.html","width":130,"caption":"Kirsty & Grace","height":87});
															thumbnails[5302427] = clik.newPhoto({"id":5302427,"src":"Sophie_and_Marie_1_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302427.html","width":130,"caption":"Sophie and Marie","height":87});
															thumbnails[5302456] = clik.newPhoto({"id":5302456,"src":"Sophie_and_Marie_2_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302456.html","width":130,"caption":"Grandparents and Marie","height":87});
															thumbnails[5302459] = clik.newPhoto({"id":5302459,"src":"Sophie_and_Marie_3_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302459.html","width":130,"caption":"Auntie and Marie","height":87});
															thumbnails[5231477] = clik.newPhoto({"id":5231477,"src":"Paul_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5231477.html","width":130,"caption":"Paul","height":195});
															thumbnails[5302463] = clik.newPhoto({"id":5302463,"src":"Sophie_and_Marie_4_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302463.html","width":130,"caption":"Farther and Daughter","height":87});
															thumbnails[5231579] = clik.newPhoto({"id":5231579,"src":"Paul_2_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5231579.html","width":130,"caption":"Paul","height":195});
															thumbnails[5302468] = clik.newPhoto({"id":5302468,"src":"Sophie_and_Marie_5_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302468.html","width":130,"caption":"Candle for Marie","height":87});
															thumbnails[5471857] = clik.newPhoto({"id":5471857,"src":"Clickpic_K30_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5471857.html","width":130,"caption":"Kirsty","height":195});
															thumbnails[5302488] = clik.newPhoto({"id":5302488,"src":"Kirsty__Grace_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302488.html","width":130,"caption":"Kirsty, Grace and Family","height":87});
															thumbnails[5471860] = clik.newPhoto({"id":5471860,"src":"Clickpic_K39_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5471860.html","width":130,"caption":"Kirsty","height":195});
															thumbnails[5471805] = clik.newPhoto({"id":5471805,"src":"Clickpic_K7_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5471805.html","width":130,"caption":"Kirsty","height":195});
															thumbnails[4246651] = clik.newPhoto({"id":4246651,"src":"Model_-_Victoria_600_x_400_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_4246651.html","width":130,"caption":"Victoria","height":195});
															thumbnails[5629320] = clik.newPhoto({"id":5629320,"src":"Leon_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5629320.html","width":130,"caption":"Leon","height":195});
															thumbnails[5629448] = clik.newPhoto({"id":5629448,"src":"Flower_Girl_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5629448.html","width":130,"caption":"Flower Girl","height":195});
															thumbnails[5302475] = clik.newPhoto({"id":5302475,"src":"Sophie_and_Marie_6_thumb.jpg","galleries_id":277686,"server_id":15,"link":"photo_5302475.html","width":130,"caption":"Marie","height":195});
															thumbnails[5629327] = clik.newPhoto({"id":5629327,"src":"Leon_and_Sinead_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5629327.html","width":130,"caption":"Leon and Sinead","height":87});
															thumbnails[5713725] = clik.newPhoto({"id":5713725,"src":"Jack_C_thumb.jpg","galleries_id":251466,"server_id":15,"link":"photo_5713725.html","width":130,"caption":"Latin Drummer","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[363726] = clik.newGallery({"parentGallery":256159,"usePopups":false,"title":"Small Details","link":"gallery_363726.html","maxRecords":0.0,"photoIDs":[6973406.0,6973415.0,4584569.0,5470315.0,8218671.0,8218674.0,8218655.0,8218666.0,4592139.0,6421541.0,7903040.0,7903044.0,7903036.0,7903037.0,7903038.0,7903039.0,3984427.0,4592089.0,7903041.0,7903042.0,8219014.0,8219012.0,8219010.0,8219016.0],"skipIndex":0,"section_code":"gallery","featured_images":4592089.0,"id":363726,"singleSection":false});				  						galleries[363727] = clik.newGallery({"parentGallery":256159,"usePopups":false,"title":"Bride and Groom Portraits","link":"gallery_363727.html","maxRecords":0.0,"photoIDs":[6973436.0,6973683.0,3984266.0,4022663.0,4592018.0,4065879.0,5629861.0,4075878.0,4002242.0,4358799.0,4358800.0,3984387.0,7705309.0,7705330.0,7705373.0,7705382.0,7902992.0,7902993.0,7902994.0,7902995.0,7902996.0,7902998.0,7903000.0,7903002.0,7903004.0,7903006.0,7903007.0,7903008.0],"skipIndex":0,"section_code":"gallery","featured_images":3984387.0,"id":363727,"singleSection":false});				  						galleries[443367] = clik.newGallery({"parentGallery":256159,"usePopups":false,"title":"Wedding of Ade & Philippe","link":"gallery_443367.html","maxRecords":0.0,"photoIDs":[8363434.0,8363389.0,8363393.0,8363421.0,8363442.0,8363759.0,8363960.0,8363969.0,8364017.0,8364020.0,8364026.0,8364030.0,8364044.0,8364049.0,8364054.0,8364056.0],"skipIndex":0,"section_code":"gallery","featured_images":8363389.0,"id":443367,"singleSection":false});				  						galleries[439972] = clik.newGallery({"parentGallery":256159,"usePopups":false,"title":"Wedding of Nicky & Warren","link":"gallery_439972.html","maxRecords":0.0,"photoIDs":[4867793.0,4867799.0,4867815.0,4867820.0,4002140.0,4002300.0,4867800.0,4867801.0,8262253.0,8262255.0,8262261.0,8262266.0,4373186.0,8262274.0,8262278.0,8262286.0],"skipIndex":0,"section_code":"gallery","featured_images":8262266.0,"id":439972,"singleSection":false});				  						galleries[256159] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_256159.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8363389,8262266,4592089,3984387","id":256159,"singleSection":false});				  						galleries[277686] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Christenings","link":"gallery_277686.html","maxRecords":0.0,"photoIDs":[4922960.0,5302427.0,5302456.0,5302459.0,5302463.0,5302468.0,5302488.0,5302475.0],"skipIndex":0,"section_code":"gallery","featured_images":5302475.0,"id":277686,"singleSection":false});				  						galleries[251466] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_251466.html","maxRecords":0.0,"photoIDs":[6024704.0,6024706.0,5977952.0,5977954.0,5977956.0,5977958.0,5978002.0,5978012.0,5978013.0,6476932.0,8220314.0,8220315.0,8220316.0,8220317.0,8220318.0,8220319.0,8220320.0,8220333.0,8220347.0,8220349.0,5231477.0,5231579.0,5471857.0,5471860.0,5471805.0,4246651.0,5629320.0,5629448.0,5629327.0,5713725.0],"skipIndex":0,"section_code":"gallery","featured_images":"8220349,8220347,8220333,8220320,8220319,8220318,8220317,8220316,8220315,8220314","id":251466,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7705149';
imageSets[2] = '8363389,8262266,5302475,4592089,3984387';
imageSets[3] = '8364056,8364054,8364049,8364044,8364030,8364026,8364020,8364017,8363969,8363960,8363759,8363442,8363434,8363421,8363393,8363389,8262286,8262278,8262274,8262266,8262261,8262255,8262253,8220349,8220347,8220333,8220320,8220319,8220318,8220317,8220316,8220315,8220314,8219016,8219014,8219012,8219010,8218674,8218671,8218666,8218655,7903044,7903042,7903041,7903040,7903039,7903038,7903037,7903036,7903008';
imageSets[241601] = '7708937';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/spree5326/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/spree5326/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/spree5326/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/spree5326/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/spree5326/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/spree5326/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/spree5326/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 = 'PAUL SPREE photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.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 += '<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;
	}
}

			

