window.thumbnails = {};
															thumbnails[3148397] = clik.newPhoto({"id":3148397,"src":"IMG_8055_edited-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3102410] = clik.newPhoto({"id":3102410,"src":"IMG_4009_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1907896] = clik.newPhoto({"id":1907896,"src":"david_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1907999] = clik.newPhoto({"id":1907999,"src":"jack1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2082410] = clik.newPhoto({"id":2082410,"src":"IMG_9938_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2082445] = clik.newPhoto({"id":2082445,"src":"IMG_0661_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1914193] = clik.newPhoto({"id":1914193,"src":"port4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2111683] = clik.newPhoto({"id":2111683,"src":"IMG_3406_edited-4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1966281] = clik.newPhoto({"id":1966281,"src":"IMG_1695_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1907968] = clik.newPhoto({"id":1907968,"src":"farm_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1907996] = clik.newPhoto({"id":1907996,"src":"jack2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2063117] = clik.newPhoto({"id":2063117,"src":"IMG_3776_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2916812] = clik.newPhoto({"id":2916812,"src":"IMG_5560_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3102536] = clik.newPhoto({"id":3102536,"src":"IMG_7221_edited-8_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3102475] = clik.newPhoto({"id":3102475,"src":"IMG_7191_edited-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2916818] = clik.newPhoto({"id":2916818,"src":"IMG_5553_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1908050] = clik.newPhoto({"id":1908050,"src":"han2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2111686] = clik.newPhoto({"id":2111686,"src":"IMG_3484_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2115922] = clik.newPhoto({"id":2115922,"src":"IMG_0250_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2104729] = clik.newPhoto({"id":2104729,"src":"IMG_3354_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2104730] = clik.newPhoto({"id":2104730,"src":"IMG_3331_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2115925] = clik.newPhoto({"id":2115925,"src":"IMG_0295_edited-6_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1908091] = clik.newPhoto({"id":1908091,"src":"libbs2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2082233] = clik.newPhoto({"id":2082233,"src":"IMG_3117_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2082252] = clik.newPhoto({"id":2082252,"src":"IMG_3004_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2082276] = clik.newPhoto({"id":2082276,"src":"IMG_3091_edited-2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2111711] = clik.newPhoto({"id":2111711,"src":"claude_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1914190] = clik.newPhoto({"id":1914190,"src":"port5_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1906409] = clik.newPhoto({"id":1906409,"src":"shirley_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3824599] = clik.newPhoto({"id":3824599,"src":"IMG_7631_edited-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3824600] = clik.newPhoto({"id":3824600,"src":"IMG_7687_edited-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[3824597] = clik.newPhoto({"id":3824597,"src":"IMG_7793_edited-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4452754] = clik.newPhoto({"id":4452754,"src":"IMG_8591-1_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4452754.html","width":130,"caption":"","height":191});
															thumbnails[4452756] = clik.newPhoto({"id":4452756,"src":"IMG_8547-1_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4452756.html","width":130,"caption":"","height":191});
															thumbnails[4452757] = clik.newPhoto({"id":4452757,"src":"IMG_8604-1_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4452757.html","width":130,"caption":"","height":191});
															thumbnails[4452758] = clik.newPhoto({"id":4452758,"src":"IMG_8522-1_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4452758.html","width":130,"caption":"","height":191});
															thumbnails[4452760] = clik.newPhoto({"id":4452760,"src":"IMG_8615-1_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4452760.html","width":130,"caption":"","height":191});
															thumbnails[4453189] = clik.newPhoto({"id":4453189,"src":"IMG_5486-1_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4453189.html","width":130,"caption":"","height":195});
															thumbnails[4453191] = clik.newPhoto({"id":4453191,"src":"IMG_5481-1_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4453191.html","width":130,"caption":"","height":195});
															thumbnails[4453206] = clik.newPhoto({"id":4453206,"src":"IMG_5482-1_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4453206.html","width":130,"caption":"","height":195});
															thumbnails[4460873] = clik.newPhoto({"id":4460873,"src":"IMG_0030_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460873.html","width":130,"caption":"","height":195});
															thumbnails[4460876] = clik.newPhoto({"id":4460876,"src":"IMG_0077_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460876.html","width":130,"caption":"","height":87});
															thumbnails[4460877] = clik.newPhoto({"id":4460877,"src":"IMG_0056_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460877.html","width":130,"caption":"","height":195});
															thumbnails[4460879] = clik.newPhoto({"id":4460879,"src":"IMG_9740_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460879.html","width":130,"caption":"","height":87});
															thumbnails[4460880] = clik.newPhoto({"id":4460880,"src":"IMG_9885_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460880.html","width":130,"caption":"","height":87});
															thumbnails[4460881] = clik.newPhoto({"id":4460881,"src":"IMG_9891_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460881.html","width":130,"caption":"","height":87});
															thumbnails[4460882] = clik.newPhoto({"id":4460882,"src":"IMG_9934_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460882.html","width":130,"caption":"","height":195});
															thumbnails[4460883] = clik.newPhoto({"id":4460883,"src":"IMG_9939_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460883.html","width":130,"caption":"","height":87});
															thumbnails[4460884] = clik.newPhoto({"id":4460884,"src":"IMG_9928_edited-1_thumb.jpg","galleries_id":260614,"server_id":1,"link":"photo_4460884.html","width":130,"caption":"","height":87});
															thumbnails[4750581] = clik.newPhoto({"id":4750581,"src":"IMG_9707_edited-1_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4750581.html","width":130,"caption":"","height":195});
															thumbnails[4750597] = clik.newPhoto({"id":4750597,"src":"IMG_9662_edited-2_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4750597.html","width":130,"caption":"","height":195});
															thumbnails[4913380] = clik.newPhoto({"id":4913380,"src":"IMG_6302_edited-2_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_4913380.html","width":130,"caption":"","height":130});
															thumbnails[4913381] = clik.newPhoto({"id":4913381,"src":"IMG_6428_edited-3_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_4913381.html","width":130,"caption":"","height":86});
															thumbnails[4913383] = clik.newPhoto({"id":4913383,"src":"IMG_6485_edited-1_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_4913383.html","width":130,"caption":"","height":86});
															thumbnails[5018807] = clik.newPhoto({"id":5018807,"src":"IMG_9364_edited-3_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5018807.html","width":130,"caption":"","height":130});
															thumbnails[5018809] = clik.newPhoto({"id":5018809,"src":"IMG_9249_edited-2_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5018809.html","width":130,"caption":"","height":184});
															thumbnails[5147766] = clik.newPhoto({"id":5147766,"src":"IMG_8929-1_edited-1_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_5147766.html","width":130,"caption":"","height":130});
															thumbnails[5147769] = clik.newPhoto({"id":5147769,"src":"IMG_8938-1_edited-1_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_5147769.html","width":130,"caption":"","height":86});
															thumbnails[5147817] = clik.newPhoto({"id":5147817,"src":"IMG_8964-1_edited-3_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_5147817.html","width":130,"caption":"","height":130});
															thumbnails[5696861] = clik.newPhoto({"id":5696861,"src":"IMG_0042_edited-2_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_5696861.html","width":130,"caption":"","height":93});
															thumbnails[5696869] = clik.newPhoto({"id":5696869,"src":"IMG_4345-1_edited-9_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_5696869.html","width":130,"caption":"","height":182});
															thumbnails[5696871] = clik.newPhoto({"id":5696871,"src":"IMG_4346-1_edited-10_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_5696871.html","width":130,"caption":"","height":182});
															thumbnails[5696872] = clik.newPhoto({"id":5696872,"src":"IMG_2334_edited-6_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_5696872.html","width":130,"caption":"","height":182});
															thumbnails[5696874] = clik.newPhoto({"id":5696874,"src":"IMG_1536_edited-1_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_5696874.html","width":130,"caption":"","height":196});
															thumbnails[5696876] = clik.newPhoto({"id":5696876,"src":"IMG_1555_edited-2_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_5696876.html","width":130,"caption":"","height":195});
															thumbnails[5705498] = clik.newPhoto({"id":5705498,"src":"IMG_9953_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_5705498.html","width":130,"caption":"","height":195});
															thumbnails[5705534] = clik.newPhoto({"id":5705534,"src":"IMG_9879_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_5705534.html","width":130,"caption":"","height":195});
															thumbnails[5705535] = clik.newPhoto({"id":5705535,"src":"IMG_9850_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_5705535.html","width":130,"caption":"","height":195});
															thumbnails[5705537] = clik.newPhoto({"id":5705537,"src":"IMG_0011_edited-4_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_5705537.html","width":130,"caption":"","height":195});
															thumbnails[6548564] = clik.newPhoto({"id":6548564,"src":"IMG_5251_edited-4_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_6548564.html","width":130,"caption":"","height":195});
															thumbnails[6548570] = clik.newPhoto({"id":6548570,"src":"IMG_5134_edited-2_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_6548570.html","width":130,"caption":"","height":195});
															thumbnails[6548572] = clik.newPhoto({"id":6548572,"src":"IMG_4906_edited-2_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_6548572.html","width":130,"caption":"","height":195});
															thumbnails[7172133] = clik.newPhoto({"id":7172133,"src":"IMG_8430_edited-4_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_7172133.html","width":130,"caption":"","height":87});
															thumbnails[7331844] = clik.newPhoto({"id":7331844,"src":"IMG_5571_edited-8_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_7331844.html","width":130,"caption":"","height":87});
															thumbnails[7475416] = clik.newPhoto({"id":7475416,"src":"IMG_6015_edited-3_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_7475416.html","width":130,"caption":"","height":45});
															thumbnails[7475419] = clik.newPhoto({"id":7475419,"src":"IMG_5095_edited-1_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_7475419.html","width":130,"caption":"","height":195});
															thumbnails[1914256] = clik.newPhoto({"id":1914256,"src":"church_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1914256.html","width":130,"caption":"","height":195});
															thumbnails[3824561] = clik.newPhoto({"id":3824561,"src":"IMG_7325_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824561.html","width":130,"caption":"","height":195});
															thumbnails[4419369] = clik.newPhoto({"id":4419369,"src":"IMG_4404_edited-11_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419369.html","width":130,"caption":"","height":182});
															thumbnails[4568788] = clik.newPhoto({"id":4568788,"src":"IMG_1761_edited-2_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4568788.html","width":130,"caption":"","height":191});
															thumbnails[4828990] = clik.newPhoto({"id":4828990,"src":"Joshua_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_4828990.html","width":130,"caption":"","height":195});
															thumbnails[3824575] = clik.newPhoto({"id":3824575,"src":"IMG_7353_edited-4_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824575.html","width":130,"caption":"","height":195});
															thumbnails[4419371] = clik.newPhoto({"id":4419371,"src":"IMG_4364_edited-21_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419371.html","width":130,"caption":"","height":182});
															thumbnails[4568789] = clik.newPhoto({"id":4568789,"src":"IMG_1925_edited-2_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4568789.html","width":130,"caption":"","height":191});
															thumbnails[4659730] = clik.newPhoto({"id":4659730,"src":"IMG_2838_edited-4_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4659730.html","width":130,"caption":"","height":86});
															thumbnails[4750602] = clik.newPhoto({"id":4750602,"src":"IMG_9779_edited-1_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_4750602.html","width":130,"caption":"","height":195});
															thumbnails[3824562] = clik.newPhoto({"id":3824562,"src":"IMG_7339_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824562.html","width":130,"caption":"","height":195});
															thumbnails[4419374] = clik.newPhoto({"id":4419374,"src":"IMG_4423_edited-11_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419374.html","width":130,"caption":"","height":182});
															thumbnails[4568793] = clik.newPhoto({"id":4568793,"src":"IMG_1826_edited-2_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4568793.html","width":130,"caption":"","height":191});
															thumbnails[4659731] = clik.newPhoto({"id":4659731,"src":"IMG_2852_edited-2_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4659731.html","width":130,"caption":"","height":104});
															thumbnails[4750607] = clik.newPhoto({"id":4750607,"src":"IMG_9763_edited-1_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_4750607.html","width":130,"caption":"","height":195});
															thumbnails[3824563] = clik.newPhoto({"id":3824563,"src":"IMG_7340_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824563.html","width":130,"caption":"","height":195});
															thumbnails[3824595] = clik.newPhoto({"id":3824595,"src":"IMG_7745_edited-3_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_3824595.html","width":130,"caption":"","height":87});
															thumbnails[2916737] = clik.newPhoto({"id":2916737,"src":"IMG_5066_edited-3_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_2916737.html","width":130,"caption":"","height":86});
															thumbnails[3824570] = clik.newPhoto({"id":3824570,"src":"IMG_7419_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824570.html","width":130,"caption":"","height":195});
															thumbnails[4419376] = clik.newPhoto({"id":4419376,"src":"IMG_8268-1_edited-3_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419376.html","width":130,"caption":"","height":195});
															thumbnails[4419413] = clik.newPhoto({"id":4419413,"src":"IMG_0078_edited-4_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4419413.html","width":130,"caption":"","height":173});
															thumbnails[2916744] = clik.newPhoto({"id":2916744,"src":"IMG_5040_edited-2_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_2916744.html","width":130,"caption":"","height":86});
															thumbnails[3102406] = clik.newPhoto({"id":3102406,"src":"IMG_4006_edited-5_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_3102406.html","width":130,"caption":"","height":195});
															thumbnails[3824565] = clik.newPhoto({"id":3824565,"src":"IMG_7341_edited-4_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824565.html","width":130,"caption":"","height":195});
															thumbnails[4419378] = clik.newPhoto({"id":4419378,"src":"IMG_8327-1_edited-51_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419378.html","width":130,"caption":"","height":195});
															thumbnails[2916740] = clik.newPhoto({"id":2916740,"src":"IMG_5048_edited-2_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_2916740.html","width":130,"caption":"","height":86});
															thumbnails[3824571] = clik.newPhoto({"id":3824571,"src":"IMG_7431_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824571.html","width":130,"caption":"","height":195});
															thumbnails[2463002] = clik.newPhoto({"id":2463002,"src":"IMG_6840_edited-1_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_2463002.html","width":130,"caption":"","height":87});
															thumbnails[4419380] = clik.newPhoto({"id":4419380,"src":"IMG_8421-1_edited-21_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419380.html","width":130,"caption":"","height":195});
															thumbnails[3543261] = clik.newPhoto({"id":3543261,"src":"IMG_3538_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3543261.html","width":130,"caption":"","height":195});
															thumbnails[1907880] = clik.newPhoto({"id":1907880,"src":"thomas_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_1907880.html","width":130,"caption":"","height":195});
															thumbnails[1907887] = clik.newPhoto({"id":1907887,"src":"flowers_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1907887.html","width":130,"caption":"","height":195});
															thumbnails[2111720] = clik.newPhoto({"id":2111720,"src":"IMG_4867_edited-3_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_2111720.html","width":130,"caption":"","height":195});
															thumbnails[3543262] = clik.newPhoto({"id":3543262,"src":"IMG_3607_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3543262.html","width":130,"caption":"","height":195});
															thumbnails[3555452] = clik.newPhoto({"id":3555452,"src":"IMG_2081_edited-2_thumb.jpg","galleries_id":217576,"server_id":1,"link":"photo_3555452.html","width":130,"caption":"","height":195});
															thumbnails[4419383] = clik.newPhoto({"id":4419383,"src":"IMG_6313_edited-11_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419383.html","width":130,"caption":"","height":182});
															thumbnails[4449847] = clik.newPhoto({"id":4449847,"src":"IMG_8364-1_edited-2_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4449847.html","width":130,"caption":"","height":195});
															thumbnails[4419384] = clik.newPhoto({"id":4419384,"src":"IMG_6345_edited-21_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419384.html","width":130,"caption":"","height":93});
															thumbnails[4449855] = clik.newPhoto({"id":4449855,"src":"IMG_8355-1_edited-1_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4449855.html","width":130,"caption":"","height":195});
															thumbnails[4419386] = clik.newPhoto({"id":4419386,"src":"IMG_6406_edited-21_thumb.jpg","galleries_id":258830,"server_id":1,"link":"photo_4419386.html","width":130,"caption":"","height":182});
															thumbnails[4568776] = clik.newPhoto({"id":4568776,"src":"IMG_1733_edited-41_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4568776.html","width":130,"caption":"","height":161});
															thumbnails[4568781] = clik.newPhoto({"id":4568781,"src":"IMG_1737_edited-5_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4568781.html","width":130,"caption":"","height":161});
															thumbnails[4568855] = clik.newPhoto({"id":4568855,"src":"IMG_1993_edited-31_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4568855.html","width":130,"caption":"","height":104});
															thumbnails[3555468] = clik.newPhoto({"id":3555468,"src":"IMG_2065_edited-1_thumb.jpg","galleries_id":217576,"server_id":1,"link":"photo_3555468.html","width":130,"caption":"","height":87});
															thumbnails[1905949] = clik.newPhoto({"id":1905949,"src":"chris_edited-1_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_1905949.html","width":130,"caption":"","height":195});
															thumbnails[1911276] = clik.newPhoto({"id":1911276,"src":"hanjack_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1911276.html","width":130,"caption":"","height":195});
															thumbnails[3543257] = clik.newPhoto({"id":3543257,"src":"IMG_3499_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3543257.html","width":130,"caption":"","height":195});
															thumbnails[2111762] = clik.newPhoto({"id":2111762,"src":"IMG_3655_edited-1_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_2111762.html","width":130,"caption":"","height":195});
															thumbnails[3555470] = clik.newPhoto({"id":3555470,"src":"IMG_2081_edited-4_thumb.jpg","galleries_id":217576,"server_id":1,"link":"photo_3555470.html","width":130,"caption":"","height":195});
															thumbnails[4419414] = clik.newPhoto({"id":4419414,"src":"IMG_0126_edited-3_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4419414.html","width":130,"caption":"","height":173});
															thumbnails[3555474] = clik.newPhoto({"id":3555474,"src":"IMG_2078_edited-1_thumb.jpg","galleries_id":217576,"server_id":1,"link":"photo_3555474.html","width":130,"caption":"","height":87});
															thumbnails[1907990] = clik.newPhoto({"id":1907990,"src":"kevclaire_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1907990.html","width":130,"caption":"","height":195});
															thumbnails[3497375] = clik.newPhoto({"id":3497375,"src":"IMG_2314_edited-2_thumb.jpg","galleries_id":127836,"server_id":1,"link":"photo_3497375.html","width":130,"caption":"","height":87});
															thumbnails[3543260] = clik.newPhoto({"id":3543260,"src":"IMG_3583_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3543260.html","width":130,"caption":"","height":195});
															thumbnails[3555472] = clik.newPhoto({"id":3555472,"src":"IMG_2066_edited-1_thumb.jpg","galleries_id":217576,"server_id":1,"link":"photo_3555472.html","width":130,"caption":"","height":87});
															thumbnails[4419417] = clik.newPhoto({"id":4419417,"src":"IMG_9637_edited-4_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4419417.html","width":130,"caption":"","height":173});
															thumbnails[4449960] = clik.newPhoto({"id":4449960,"src":"IMG_6468_edited-3_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_4449960.html","width":130,"caption":"","height":182});
															thumbnails[3555473] = clik.newPhoto({"id":3555473,"src":"IMG_2059_edited-1_thumb.jpg","galleries_id":217576,"server_id":1,"link":"photo_3555473.html","width":130,"caption":"","height":87});
															thumbnails[4419420] = clik.newPhoto({"id":4419420,"src":"IMG_9551_edited-3_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4419420.html","width":130,"caption":"","height":173});
															thumbnails[3543256] = clik.newPhoto({"id":3543256,"src":"IMG_3358_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3543256.html","width":130,"caption":"","height":195});
															thumbnails[4419416] = clik.newPhoto({"id":4419416,"src":"IMG_4275_edited-3_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4419416.html","width":130,"caption":"","height":93});
															thumbnails[4659735] = clik.newPhoto({"id":4659735,"src":"IMG_2677_edited-1_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4659735.html","width":130,"caption":"","height":195});
															thumbnails[4659737] = clik.newPhoto({"id":4659737,"src":"IMG_2607_edited-1_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4659737.html","width":130,"caption":"","height":195});
															thumbnails[4659739] = clik.newPhoto({"id":4659739,"src":"IMG_2743_edited-1_thumb.jpg","galleries_id":258839,"server_id":1,"link":"photo_4659739.html","width":130,"caption":"","height":195});
															thumbnails[1907986] = clik.newPhoto({"id":1907986,"src":"wedd6_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1907986.html","width":130,"caption":"","height":195});
															thumbnails[3824555] = clik.newPhoto({"id":3824555,"src":"IMG_7309_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824555.html","width":130,"caption":"","height":195});
															thumbnails[3824558] = clik.newPhoto({"id":3824558,"src":"IMG_7288_edited-3_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3824558.html","width":130,"caption":"","height":195});
															thumbnails[3859476] = clik.newPhoto({"id":3859476,"src":"IMG_9329_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3859476.html","width":130,"caption":"","height":195});
															thumbnails[1907992] = clik.newPhoto({"id":1907992,"src":"tinasteve_edited-1_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1907992.html","width":130,"caption":"","height":195});
															thumbnails[3859474] = clik.newPhoto({"id":3859474,"src":"IMG_9317_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3859474.html","width":130,"caption":"","height":195});
															thumbnails[5593779] = clik.newPhoto({"id":5593779,"src":"IMG_0044_edited-2_thumb.jpg","galleries_id":258829,"server_id":1,"link":"photo_5593779.html","width":130,"caption":"","height":93});
															thumbnails[3859479] = clik.newPhoto({"id":3859479,"src":"IMG_9322_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3859479.html","width":130,"caption":"","height":195});
															thumbnails[1911253] = clik.newPhoto({"id":1911253,"src":"wedd2_edited-1_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1911253.html","width":130,"caption":"","height":87});
															thumbnails[3997986] = clik.newPhoto({"id":3997986,"src":"IMG_1327_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3997986.html","width":130,"caption":"","height":195});
															thumbnails[3997991] = clik.newPhoto({"id":3997991,"src":"IMG_1231_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3997991.html","width":130,"caption":"","height":195});
															thumbnails[3997995] = clik.newPhoto({"id":3997995,"src":"IMG_1295_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3997995.html","width":130,"caption":"","height":195});
															thumbnails[3997999] = clik.newPhoto({"id":3997999,"src":"IMG_1746_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_3997999.html","width":130,"caption":"","height":195});
															thumbnails[4591684] = clik.newPhoto({"id":4591684,"src":"IMG_2968_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4591684.html","width":130,"caption":"","height":195});
															thumbnails[4591727] = clik.newPhoto({"id":4591727,"src":"IMG_2931_edited-5_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4591727.html","width":130,"caption":"","height":195});
															thumbnails[4591731] = clik.newPhoto({"id":4591731,"src":"IMG_2963_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4591731.html","width":130,"caption":"","height":195});
															thumbnails[4591739] = clik.newPhoto({"id":4591739,"src":"IMG_2948_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4591739.html","width":130,"caption":"","height":195});
															thumbnails[1911275] = clik.newPhoto({"id":1911275,"src":"wedd7-1_thumb.jpg","galleries_id":119109,"server_id":1,"link":"photo_1911275.html","width":130,"caption":"","height":87});
															thumbnails[4659748] = clik.newPhoto({"id":4659748,"src":"IMG_2797_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4659748.html","width":130,"caption":"","height":195});
															thumbnails[4659749] = clik.newPhoto({"id":4659749,"src":"IMG_2823_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4659749.html","width":130,"caption":"","height":195});
															thumbnails[4659750] = clik.newPhoto({"id":4659750,"src":"IMG_2771_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4659750.html","width":130,"caption":"","height":195});
															thumbnails[4659765] = clik.newPhoto({"id":4659765,"src":"IMG_1658_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4659765.html","width":130,"caption":"","height":195});
															thumbnails[4659770] = clik.newPhoto({"id":4659770,"src":"IMG_1697_edited-1_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4659770.html","width":130,"caption":"","height":195});
															thumbnails[4659778] = clik.newPhoto({"id":4659778,"src":"IMG_1562_edited-2_thumb.jpg","galleries_id":216953,"server_id":1,"link":"photo_4659778.html","width":130,"caption":"","height":195});
															thumbnails[5696806] = clik.newPhoto({"id":5696806,"src":"IMG_6106_edited-2_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5696806.html","width":130,"caption":"","height":86});
															thumbnails[5696776] = clik.newPhoto({"id":5696776,"src":"IMG_0769_edited-12_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5696776.html","width":130,"caption":"","height":86});
															thumbnails[5696780] = clik.newPhoto({"id":5696780,"src":"IMG_0977_edited-1_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5696780.html","width":130,"caption":"","height":93});
															thumbnails[5696778] = clik.newPhoto({"id":5696778,"src":"IMG_1161_edited-4_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5696778.html","width":130,"caption":"","height":93});
															thumbnails[5696779] = clik.newPhoto({"id":5696779,"src":"IMG_0990_edited-5_thumb.jpg","galleries_id":258838,"server_id":1,"link":"photo_5696779.html","width":130,"caption":"","height":93});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[258829] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Babies","link":"gallery_258829.html","maxRecords":0.0,"photoIDs":[4913380.0,4913381.0,4913383.0,5147766.0,5147769.0,5147817.0,5696861.0,4828990.0,4750602.0,4750607.0,2916737.0,2916744.0,2916740.0,2463002.0,5593779.0],"skipIndex":0,"section_code":"gallery","featured_images":"5696861,5593779,5147817,5147769,5147766,4913383,4913381,4913380,4828990,4750607","id":258829,"singleSection":false});				  						galleries[258830] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Toddlers","link":"gallery_258830.html","maxRecords":0.0,"photoIDs":[4750597.0,5696869.0,5696871.0,5696872.0,4419369.0,4419371.0,4419374.0,4419376.0,4419378.0,4419380.0,4419383.0,4419384.0,4419386.0],"skipIndex":0,"section_code":"gallery","featured_images":"5696872,5696871,5696869,4750597,4419386,4419384,4419383,4419380,4419378,4419376","id":258830,"singleSection":false});				  						galleries[258839] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_258839.html","maxRecords":0.0,"photoIDs":[5696874.0,5696876.0,4568788.0,4568789.0,4568793.0,4419413.0,4419414.0,4419417.0,4419420.0,4419416.0,4659735.0,4659737.0,4659739.0],"skipIndex":0,"section_code":"gallery","featured_images":"5696876,5696874,4659739,4659737,4659735,4568793,4568789,4568788,4419420,4419417","id":258839,"singleSection":false});				  						galleries[258838] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Families","link":"gallery_258838.html","maxRecords":0.0,"photoIDs":[4750581.0,5018807.0,5018809.0,7172133.0,4659730.0,4659731.0,3824595.0,3102406.0,4449847.0,4449855.0,4568776.0,4568781.0,4568855.0,4449960.0,5696806.0,5696776.0,5696780.0,5696778.0,5696779.0],"skipIndex":0,"section_code":"gallery","featured_images":"7172133,5696806,5696780,5696779,5696778,5696776,5018809,5018807,4750581,4659731","id":258838,"singleSection":false});				  						galleries[216953] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Adults","link":"gallery_216953.html","maxRecords":0.0,"photoIDs":[4452754.0,4452756.0,4452757.0,4452758.0,4452760.0,4453189.0,4453191.0,4453206.0,5705498.0,5705534.0,5705535.0,5705537.0,3824561.0,3824575.0,3824562.0,3824563.0,3824570.0,3824565.0,3824571.0,3543261.0,3543262.0,3543257.0,3543260.0,3543256.0,3824555.0,3824558.0,3859476.0,3859474.0,3859479.0,3997986.0,3997991.0,3997995.0,3997999.0,4591684.0,4591727.0,4591731.0,4591739.0,4659748.0,4659749.0,4659750.0,4659765.0,4659770.0,4659778.0],"skipIndex":0,"section_code":"gallery","featured_images":"5705537,5705535,5705534,5705498,4659778,4659770,4659765,4659750,4659749,4659748","id":216953,"singleSection":false});				  						galleries[217576] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Christenings","link":"gallery_217576.html","maxRecords":0.0,"photoIDs":[3555452.0,3555468.0,3555470.0,3555474.0,3555472.0,3555473.0],"skipIndex":0,"section_code":"gallery","featured_images":"3555474,3555473,3555472,3555470,3555468,3555452","id":217576,"singleSection":false});				  						galleries[260614] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Live Music","link":"gallery_260614.html","maxRecords":0.0,"photoIDs":[4460873.0,4460876.0,4460877.0,4460879.0,4460880.0,4460881.0,4460882.0,4460883.0,4460884.0],"skipIndex":0,"section_code":"gallery","featured_images":"4460884,4460883,4460882,4460881,4460880,4460879,4460877,4460876,4460873","id":260614,"singleSection":false});				  						galleries[127836] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_127836.html","maxRecords":0.0,"photoIDs":[7331844.0,7475416.0,7475419.0,1907880.0,2111720.0,1905949.0,2111762.0,3497375.0],"skipIndex":0,"section_code":"gallery","featured_images":"7475419,7475416,7331844,3497375,2111762,2111720,1907880,1905949","id":127836,"singleSection":false});				  						galleries[119109] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_119109.html","maxRecords":0.0,"photoIDs":[6548564.0,6548570.0,6548572.0,1914256.0,1907887.0,1911276.0,1907990.0,1907986.0,1907992.0,1911253.0,1911275.0],"skipIndex":0,"section_code":"gallery","featured_images":"6548572,6548570,6548564,1914256,1911276,1911275,1911253,1907992,1907990,1907986","id":119109,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7475419,7475416,7331844,7172133,6548572,6548570,6548564,5705537,5705535,5705534,5705498,5696876,5696874,5696872,5696871,5696869,5696861,5696806,5696780,5696779,5696778,5696776,5593779,5147817,5147769,5147766,5018809,5018807,4913383,4913381,4913380,4828990,4750607,4750602,4750597,4750581,4659778,4659770,4659765,4659750,4659749,4659748,4659739,4659737,4659735,4659731,4659730,4591739,4591731,4591727';
imageSets[3] = '7475419,7475416,7331844,7172133,6548572,6548570,6548564,5705537,5705535,5705534,5705498,5696876,5696874,5696872,5696871,5696869,5696861,5696806,5696780,5696779,5696778,5696776,5593779,5147817,5147769,5147766,5018809,5018807,4913383,4913381,4913380,4828990,4750607,4750602,4750597,4750581,4659778,4659770,4659765,4659750,4659749,4659748,4659739,4659737,4659735,4659731,4659730,4591739,4591731,4591727';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sueconway/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sueconway/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sueconway/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sueconway/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sueconway/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sueconway/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sueconway/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sueconway/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 = 'Susannah Conway Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.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;
	}
}

			

