window.thumbnails = {};
															thumbnails[3771071] = clik.newPhoto({"id":3771071,"src":"Hightown_08_30_small1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":181,"caption":"Stop, camera, action!!","height":181});
															thumbnails[5432077] = clik.newPhoto({"id":5432077,"src":"CaSh10100bw_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":133,"caption":"","height":200});
															thumbnails[5432732] = clik.newPhoto({"id":5432732,"src":"album_13_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":150,"caption":"","height":56});
															thumbnails[5664359] = clik.newPhoto({"id":5664359,"src":"Another-Place-107_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[7032914] = clik.newPhoto({"id":7032914,"src":"02_PC-76_thumb_D6660ACF-1EC9-DFB6-0901FF1F0C4F8629.jpg","galleries_id":"","server_id":5,"link":"#","width":200,"caption":"","height":61});
															thumbnails[7524686] = clik.newPhoto({"id":7524686,"src":"5x8plain_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":71});
															thumbnails[8673936] = clik.newPhoto({"id":8673936,"src":"06_Evening-71_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":80});
															thumbnails[3601052] = clik.newPhoto({"id":3601052,"src":"col_p_1179_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[3601051] = clik.newPhoto({"id":3601051,"src":"col_p178_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[3664768] = clik.newPhoto({"id":3664768,"src":"col_p_2188_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[3664770] = clik.newPhoto({"id":3664770,"src":"col_ld_30144_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Arriving","height":98});
															thumbnails[3664769] = clik.newPhoto({"id":3664769,"src":"col_ld_31145_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3598174] = clik.newPhoto({"id":3598174,"src":"bw_ls_22_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5432081] = clik.newPhoto({"id":5432081,"src":"CaSh10072_copy_3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[5432701] = clik.newPhoto({"id":5432701,"src":"col_ld_67168_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[5432702] = clik.newPhoto({"id":5432702,"src":"col_ld_68169_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":90});
															thumbnails[3599190] = clik.newPhoto({"id":3599190,"src":"bw_p_170721_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"The classic ring shot.","height":130});
															thumbnails[5432085] = clik.newPhoto({"id":5432085,"src":"Fields_of_Gold_19_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":67,"caption":"","height":100});
															thumbnails[3601074] = clik.newPhoto({"id":3601074,"src":"bw_ls_29040_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5432088] = clik.newPhoto({"id":5432088,"src":"Fields_of_Gold_22_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":67,"caption":"","height":100});
															thumbnails[3601075] = clik.newPhoto({"id":3601075,"src":"bw_p_16071_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[5432090] = clik.newPhoto({"id":5432090,"src":"Fields_of_Gold_127_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[3601082] = clik.newPhoto({"id":3601082,"src":"bw_p_13068_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[4258804] = clik.newPhoto({"id":4258804,"src":"banner_jenny_a_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":70});
															thumbnails[3601083] = clik.newPhoto({"id":3601083,"src":"bw_p_5084_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[5432064] = clik.newPhoto({"id":5432064,"src":"Trees-29_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[3601106] = clik.newPhoto({"id":3601106,"src":"bw_ls_13024_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5432689] = clik.newPhoto({"id":5432689,"src":"col_green__ld_25089_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[5432699] = clik.newPhoto({"id":5432699,"src":"col_green_ld_14096_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[5432697] = clik.newPhoto({"id":5432697,"src":"col_green_ld_12094_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":260,"caption":"","height":260});
															thumbnails[5432692] = clik.newPhoto({"id":5432692,"src":"col_green_ld090_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":79});
															thumbnails[5432700] = clik.newPhoto({"id":5432700,"src":"col_green_ld_24107_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":91});
															thumbnails[3601131] = clik.newPhoto({"id":3601131,"src":"bw_ls_20032_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":103});
															thumbnails[3599203] = clik.newPhoto({"id":3599203,"src":"bw_p_150701_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"Together forever","height":130});
															thumbnails[5432431] = clik.newPhoto({"id":5432431,"src":"Group_Shots_81_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":94});
															thumbnails[3601129] = clik.newPhoto({"id":3601129,"src":"bw_ls_28039_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5432452] = clik.newPhoto({"id":5432452,"src":"Group_Shots_441_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":260,"caption":"","height":260});
															thumbnails[3599198] = clik.newPhoto({"id":3599198,"src":"bw_p_22078_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"At home before the ceremony.","height":130});
															thumbnails[3599208] = clik.newPhoto({"id":3599208,"src":"bw_ls_32044_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Brides dad having a friendly joke at the grooms expense (Liverpool supporter)","height":86});
															thumbnails[5432075] = clik.newPhoto({"id":5432075,"src":"CaSh20150a1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":67});
															thumbnails[5432704] = clik.newPhoto({"id":5432704,"src":"col_ld_71172_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":100,"caption":"","height":62});
															thumbnails[5432706] = clik.newPhoto({"id":5432706,"src":"col_p_20189_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3599251] = clik.newPhoto({"id":3599251,"src":"col_ld_10126_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":260,"caption":"Quick photo opportunity at the church 'all girls together'","height":260});
															thumbnails[3598443] = clik.newPhoto({"id":3598443,"src":"bw_ls_8_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_3598443.html","width":260,"caption":"","height":260});
															thumbnails[3599157] = clik.newPhoto({"id":3599157,"src":"bw_ls_203112_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_3599157.html","width":200,"caption":"Non-traditional group shot with the bride leading the ladies!","height":200});
															thumbnails[4454925] = clik.newPhoto({"id":4454925,"src":"milly2_tight_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4454925.html","width":200,"caption":"I'm coming to get you!!!","height":200});
															thumbnails[4455120] = clik.newPhoto({"id":4455120,"src":"ROSE_BWJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455120.html","width":200,"caption":"","height":200});
															thumbnails[4455124] = clik.newPhoto({"id":4455124,"src":"TO_SORT_280AJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455124.html","width":200,"caption":"","height":200});
															thumbnails[4455138] = clik.newPhoto({"id":4455138,"src":"MILLY_EATING_SQUAREJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455138.html","width":200,"caption":"","height":200});
															thumbnails[4455145] = clik.newPhoto({"id":4455145,"src":"TO_SORT_005JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455145.html","width":200,"caption":"","height":200});
															thumbnails[4455146] = clik.newPhoto({"id":4455146,"src":"TO_SORT_006JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455146.html","width":200,"caption":"","height":200});
															thumbnails[4455149] = clik.newPhoto({"id":4455149,"src":"TO_SORT_003JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455149.html","width":200,"caption":"","height":200});
															thumbnails[4455151] = clik.newPhoto({"id":4455151,"src":"TO_SORT_009JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455151.html","width":200,"caption":"","height":200});
															thumbnails[4455154] = clik.newPhoto({"id":4455154,"src":"TO_SORT_149JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455154.html","width":200,"caption":"","height":200});
															thumbnails[4455156] = clik.newPhoto({"id":4455156,"src":"TO_SORT_149_BWJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455156.html","width":200,"caption":"","height":200});
															thumbnails[4483945] = clik.newPhoto({"id":4483945,"src":"thailand_200athumb_thumb.jpg","galleries_id":261439,"server_id":5,"link":"photo_4483945.html","width":150,"caption":"","height":154});
															thumbnails[4483979] = clik.newPhoto({"id":4483979,"src":"thailand_200thumb_thumb.jpg","galleries_id":261439,"server_id":5,"link":"photo_4483979.html","width":150,"caption":"","height":161});
															thumbnails[4483989] = clik.newPhoto({"id":4483989,"src":"thailand_200bwthumb_thumb.jpg","galleries_id":261439,"server_id":5,"link":"photo_4483989.html","width":150,"caption":"","height":162});
															thumbnails[5285422] = clik.newPhoto({"id":5285422,"src":"IOW_304thumbbw_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_5285422.html","width":150,"caption":"","height":140});
															thumbnails[5432070] = clik.newPhoto({"id":5432070,"src":"Waiting__Arriving_17_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_5432070.html","width":200,"caption":"","height":200});
															thumbnails[5432071] = clik.newPhoto({"id":5432071,"src":"CaSh20205bw_thumb_D64B90DE-1EC9-DFB6-09278B7B1D5D731C.jpg","galleries_id":467731,"server_id":5,"link":"photo_5432071.html","width":133,"caption":"","height":200});
															thumbnails[5432716] = clik.newPhoto({"id":5432716,"src":"bw_ls_31043_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_5432716.html","width":200,"caption":"","height":200});
															thumbnails[5432717] = clik.newPhoto({"id":5432717,"src":"bw_p063_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_5432717.html","width":133,"caption":"","height":200});
															thumbnails[5432725] = clik.newPhoto({"id":5432725,"src":"bw_p_6085_thumb_D65EFCAE-1EC9-DFB6-0997ABFF10915F19.jpg","galleries_id":467731,"server_id":5,"link":"photo_5432725.html","width":142,"caption":"","height":200});
															thumbnails[5432739] = clik.newPhoto({"id":5432739,"src":"jenny_martin_photography_63_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_5432739.html","width":200,"caption":"","height":200});
															thumbnails[6264913] = clik.newPhoto({"id":6264913,"src":"Casino-79web_thumb.jpg","galleries_id":380678,"server_id":5,"link":"photo_6264913.html","width":150,"caption":"","height":150});
															thumbnails[6265001] = clik.newPhoto({"id":6265001,"src":"Casino-77_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_6265001.html","width":150,"caption":"","height":144});
															thumbnails[6265002] = clik.newPhoto({"id":6265002,"src":"Casino-78-web_thumb.jpg","galleries_id":380678,"server_id":5,"link":"photo_6265002.html","width":150,"caption":"","height":142});
															thumbnails[6265006] = clik.newPhoto({"id":6265006,"src":"Casino-76-web_thumb.jpg","galleries_id":380678,"server_id":5,"link":"photo_6265006.html","width":150,"caption":"","height":150});
															thumbnails[6265072] = clik.newPhoto({"id":6265072,"src":"Casino-75-web_thumb.jpg","galleries_id":380678,"server_id":5,"link":"photo_6265072.html","width":150,"caption":"","height":160});
															thumbnails[6954582] = clik.newPhoto({"id":6954582,"src":"Wedding_Fair_Villiage-8_thumb.jpg","galleries_id":380678,"server_id":5,"link":"photo_6954582.html","width":150,"caption":"Village Hotel - Wedding Fashion show","height":147});
															thumbnails[6999425] = clik.newPhoto({"id":6999425,"src":"Wedding_Fair_Villiage-43_thumb.jpg","galleries_id":380678,"server_id":5,"link":"photo_6999425.html","width":200,"caption":"","height":200});
															thumbnails[7000004] = clik.newPhoto({"id":7000004,"src":"The_Whip_26-Edit_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_7000004.html","width":200,"caption":"","height":200});
															thumbnails[7032498] = clik.newPhoto({"id":7032498,"src":"01_GR-6_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032498.html","width":100,"caption":"","height":67});
															thumbnails[7032616] = clik.newPhoto({"id":7032616,"src":"01_GR-175_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032616.html","width":100,"caption":"","height":67});
															thumbnails[7032618] = clik.newPhoto({"id":7032618,"src":"IMG_9976bw-2_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032618.html","width":100,"caption":"","height":67});
															thumbnails[7032636] = clik.newPhoto({"id":7032636,"src":"House_24_thumb.JPG","galleries_id":467731,"server_id":5,"link":"photo_7032636.html","width":100,"caption":"","height":67});
															thumbnails[7032641] = clik.newPhoto({"id":7032641,"src":"01_GR-149_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032641.html","width":100,"caption":"","height":67});
															thumbnails[7032643] = clik.newPhoto({"id":7032643,"src":"House_12_thumb.JPG","galleries_id":467731,"server_id":5,"link":"photo_7032643.html","width":100,"caption":"","height":67});
															thumbnails[7032852] = clik.newPhoto({"id":7032852,"src":"01_Arriving-12_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032852.html","width":100,"caption":"","height":67});
															thumbnails[7032854] = clik.newPhoto({"id":7032854,"src":"01_Arriving-65_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032854.html","width":76,"caption":"","height":100});
															thumbnails[7032858] = clik.newPhoto({"id":7032858,"src":"01_Arriving-94_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032858.html","width":62,"caption":"","height":100});
															thumbnails[7032860] = clik.newPhoto({"id":7032860,"src":"02_PC-6a_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032860.html","width":100,"caption":"","height":67});
															thumbnails[7032863] = clik.newPhoto({"id":7032863,"src":"01_Arriving-120_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032863.html","width":100,"caption":"","height":91});
															thumbnails[7032870] = clik.newPhoto({"id":7032870,"src":"02_PC-54_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032870.html","width":100,"caption":"","height":67});
															thumbnails[7032909] = clik.newPhoto({"id":7032909,"src":"02_PC-64_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032909.html","width":100,"caption":"","height":67});
															thumbnails[7032911] = clik.newPhoto({"id":7032911,"src":"02_PC-65_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032911.html","width":100,"caption":"","height":67});
															thumbnails[7032916] = clik.newPhoto({"id":7032916,"src":"02_PC-51_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032916.html","width":100,"caption":"","height":67});
															thumbnails[7032922] = clik.newPhoto({"id":7032922,"src":"02_PC-11_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032922.html","width":100,"caption":"","height":67});
															thumbnails[7032933] = clik.newPhoto({"id":7032933,"src":"02_AC-39_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7032933.html","width":100,"caption":"","height":67});
															thumbnails[7033057] = clik.newPhoto({"id":7033057,"src":"bw_ls019_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033057.html","width":100,"caption":"","height":67});
															thumbnails[7033070] = clik.newPhoto({"id":7033070,"src":"col_ld_11127_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033070.html","width":100,"caption":"","height":75});
															thumbnails[7033080] = clik.newPhoto({"id":7033080,"src":"col_ld_12128_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033080.html","width":100,"caption":"","height":60});
															thumbnails[7033088] = clik.newPhoto({"id":7033088,"src":"02_Ceremony-12_thumb_D667B910-1EC9-DFB6-096AE70ACD50D32E.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033088.html","width":200,"caption":"","height":134});
															thumbnails[7033090] = clik.newPhoto({"id":7033090,"src":"02_Ceremony-23_thumb_D66A76A9-1EC9-DFB6-09BA72CCC43E8EAE.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033090.html","width":200,"caption":"","height":134});
															thumbnails[7033094] = clik.newPhoto({"id":7033094,"src":"03_C-89_thumb_D66C24DB-1EC9-DFB6-093E7C53F427E34E.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033094.html","width":200,"caption":"","height":134});
															thumbnails[7033096] = clik.newPhoto({"id":7033096,"src":"03_C-125_thumb_D66ECCD0-1EC9-DFB6-092D0DD76E2FE7B7.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033096.html","width":200,"caption":"","height":134});
															thumbnails[7033321] = clik.newPhoto({"id":7033321,"src":"03_C-208a_thumb_D6701975-1EC9-DFB6-0918B797A425AB6E.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033321.html","width":200,"caption":"","height":134});
															thumbnails[7033326] = clik.newPhoto({"id":7033326,"src":"03_C-181_thumb_D671972F-1EC9-DFB6-099D2E0CB9FF6F2A.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033326.html","width":200,"caption":"","height":134});
															thumbnails[7033337] = clik.newPhoto({"id":7033337,"src":"03_C-297_thumb_D6732261-1EC9-DFB6-0999A6D78325E285.jpg","galleries_id":467731,"server_id":5,"link":"photo_7033337.html","width":200,"caption":"","height":134});
															thumbnails[7034413] = clik.newPhoto({"id":7034413,"src":"Laura__Keith_003thumb_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_7034413.html","width":260,"caption":"","height":260});
															thumbnails[7204747] = clik.newPhoto({"id":7204747,"src":"Dance_Edit_54_thumb_D674E5A5-1EC9-DFB6-0990D9DBC034C19F.jpg","galleries_id":467731,"server_id":5,"link":"photo_7204747.html","width":200,"caption":"","height":115});
															thumbnails[7204762] = clik.newPhoto({"id":7204762,"src":"Dance_Edit_62_thumb_D6768921-1EC9-DFB6-09A23F05F01B9C3B.jpg","galleries_id":467731,"server_id":5,"link":"photo_7204762.html","width":200,"caption":"","height":133});
															thumbnails[7524636] = clik.newPhoto({"id":7524636,"src":"5x8_thumb.jpg","galleries_id":261439,"server_id":5,"link":"photo_7524636.html","width":150,"caption":"","height":136});
															thumbnails[8673816] = clik.newPhoto({"id":8673816,"src":"HSBC-31_thumb.jpg","galleries_id":467846,"server_id":5,"link":"photo_8673816.html","width":150,"caption":"HSBC Star Business award","height":147});
															thumbnails[8673909] = clik.newPhoto({"id":8673909,"src":"IMG_9200-2_thumb.jpg","galleries_id":457786,"server_id":5,"link":"photo_8673909.html","width":200,"caption":"","height":200});
															thumbnails[8673922] = clik.newPhoto({"id":8673922,"src":"03_Bramhall-18_thumb_D6794B86-1EC9-DFB6-09972CB9187228FB.jpg","galleries_id":467731,"server_id":5,"link":"photo_8673922.html","width":200,"caption":"","height":160});
															thumbnails[8673926] = clik.newPhoto({"id":8673926,"src":"03_Bramhall-109_thumb_D67B6CCE-1EC9-DFB6-099A375DAE1684A2.jpg","galleries_id":467731,"server_id":5,"link":"photo_8673926.html","width":200,"caption":"","height":133});
															thumbnails[8673982] = clik.newPhoto({"id":8673982,"src":"After_the_ceremony_53_thumb_D67D0892-1EC9-DFB6-0982609A7E750721.JPG","galleries_id":467731,"server_id":5,"link":"photo_8673982.html","width":200,"caption":"","height":133});
															thumbnails[8836370] = clik.newPhoto({"id":8836370,"src":"First_Dance_13_97087917-1EC9-D45B-1C528CA371BEFE32_thumb_D6805211-1EC9-DFB6-0972F377D71BD7AD.JPG","galleries_id":467731,"server_id":5,"link":"photo_8836370.html","width":200,"caption":"","height":133});
															thumbnails[4264885] = clik.newPhoto({"id":4264885,"src":"MILLY_111JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4264885.html","width":200,"caption":"","height":200});
															thumbnails[4265135] = clik.newPhoto({"id":4265135,"src":"MILLY_074AAJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4265135.html","width":200,"caption":"","height":200});
															thumbnails[4459714] = clik.newPhoto({"id":4459714,"src":"IOW_261thumb_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_4459714.html","width":200,"caption":"","height":200});
															thumbnails[8673767] = clik.newPhoto({"id":8673767,"src":"A56_Back1_thumb.jpg","galleries_id":457786,"server_id":5,"link":"photo_8673767.html","width":150,"caption":"Special Christmas Offer","height":149});
															thumbnails[8896769] = clik.newPhoto({"id":8896769,"src":"01_At_the_House-64_2F853436-1EC9-DFB6-09865EF3E66235BC_thumb_D4A813C4-1EC9-DFB6-097255FA6A4A65DB.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896769.html","width":200,"caption":"","height":200});
															thumbnails[8896857] = clik.newPhoto({"id":8896857,"src":"01_AH-118_315BD956-1E4F-37DC-711418E4373AAFCA_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896857.html","width":200,"caption":"","height":200});
															thumbnails[8897316] = clik.newPhoto({"id":8897316,"src":"IMG_7547_349C39B9-24E8-5EC4-4FC09915ADD44768_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_8897316.html","width":200,"caption":"IMG 7547","height":200});
															thumbnails[9075540] = clik.newPhoto({"id":9075540,"src":"IMG_9302_D5F249FC-1EC9-DFB6-096CC6D6CCD3B1BF_thumb.jpg","galleries_id":467846,"server_id":5,"link":"photo_9075540.html","width":198,"caption":"","height":200});
															thumbnails[4265067] = clik.newPhoto({"id":4265067,"src":"MILLY_073AJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4265067.html","width":200,"caption":"","height":200});
															thumbnails[4459712] = clik.newPhoto({"id":4459712,"src":"IOW_260thumb_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_4459712.html","width":200,"caption":"","height":200});
															thumbnails[8896778] = clik.newPhoto({"id":8896778,"src":"01_At_the_House-80_2FA0B560-1EC9-DFB6-09F227DEC9A82AB0_thumb_D689ABF3-1EC9-DFB6-09799E9936C4A052.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896778.html","width":200,"caption":"","height":133});
															thumbnails[8896859] = clik.newPhoto({"id":8896859,"src":"01_GR-6_315C4E6F-1E4F-37DC-719B9D9B458CB09B_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896859.html","width":200,"caption":"","height":200});
															thumbnails[8897317] = clik.newPhoto({"id":8897317,"src":"IMG_7665-Edit_349CC4CA-24E8-5EC4-4F2E1DCCEE901DB0_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_8897317.html","width":200,"caption":"IMG 7665-Edit","height":200});
															thumbnails[9075542] = clik.newPhoto({"id":9075542,"src":"IMG_9323_D5F352D6-1EC9-DFB6-094B65D7984C287D_thumb.jpg","galleries_id":467846,"server_id":5,"link":"photo_9075542.html","width":200,"caption":"","height":133});
															thumbnails[4455135] = clik.newPhoto({"id":4455135,"src":"MILLY_247JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455135.html","width":200,"caption":"","height":200});
															thumbnails[4459372] = clik.newPhoto({"id":4459372,"src":"IOW_240thumb_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_4459372.html","width":200,"caption":"","height":200});
															thumbnails[8896779] = clik.newPhoto({"id":8896779,"src":"01_At_the_House-66_2FA61DE0-1EC9-DFB6-09D950C58A55F3C6_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896779.html","width":200,"caption":"","height":200});
															thumbnails[8896860] = clik.newPhoto({"id":8896860,"src":"01_GR-12_315CC553-1E4F-37DC-71CD5BC9EC9A64F6_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896860.html","width":200,"caption":"","height":200});
															thumbnails[8897318] = clik.newPhoto({"id":8897318,"src":"IMG_7766_349D20F2-24E8-5EC4-4FD7A02E4448ED01_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_8897318.html","width":200,"caption":"IMG 7766","height":200});
															thumbnails[9075543] = clik.newPhoto({"id":9075543,"src":"IMG_9351_D5F3DC92-1EC9-DFB6-09866AEDCB491C1E_thumb.jpg","galleries_id":467846,"server_id":5,"link":"photo_9075543.html","width":200,"caption":"IMG 9351","height":114});
															thumbnails[4455134] = clik.newPhoto({"id":4455134,"src":"MILLY_231JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455134.html","width":200,"caption":"","height":200});
															thumbnails[4455225] = clik.newPhoto({"id":4455225,"src":"Jenn_to_sort_187_thumb.jpg","galleries_id":260394,"server_id":5,"link":"photo_4455225.html","width":200,"caption":"","height":200});
															thumbnails[8896780] = clik.newPhoto({"id":8896780,"src":"01_At_the_House-74_2FA67EE3-1EC9-DFB6-09F28EAED8A2CD65_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896780.html","width":200,"caption":"","height":200});
															thumbnails[8896861] = clik.newPhoto({"id":8896861,"src":"01_GR-22_315D146B-1E4F-37DC-71D67F79C524CBC4_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896861.html","width":200,"caption":"","height":200});
															thumbnails[8897319] = clik.newPhoto({"id":8897319,"src":"IMG_7832-2_349E0C67-24E8-5EC4-4F50572CF357F670_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_8897319.html","width":200,"caption":"IMG 7832-2","height":200});
															thumbnails[4455131] = clik.newPhoto({"id":4455131,"src":"MILLY_163JPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4455131.html","width":200,"caption":"","height":200});
															thumbnails[8896783] = clik.newPhoto({"id":8896783,"src":"Getting_Ready-60_2FB29778-1EC9-DFB6-09E042D36FC2C522_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896783.html","width":200,"caption":"","height":200});
															thumbnails[8897320] = clik.newPhoto({"id":8897320,"src":"IMG_7965_349EC0EE-24E8-5EC4-4FCA21D460CD9802_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_8897320.html","width":200,"caption":"IMG 7965","height":200});
															thumbnails[4264760] = clik.newPhoto({"id":4264760,"src":"MILLY_104_AJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4264760.html","width":200,"caption":"","height":200});
															thumbnails[8896784] = clik.newPhoto({"id":8896784,"src":"Getting_Ready-64_2FB2F811-1EC9-DFB6-0994A5EFF40DE356_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896784.html","width":200,"caption":"","height":200});
															thumbnails[4264700] = clik.newPhoto({"id":4264700,"src":"MILLY_103_AJPG_thumb.jpg","galleries_id":251934,"server_id":5,"link":"photo_4264700.html","width":200,"caption":"","height":200});
															thumbnails[8896786] = clik.newPhoto({"id":8896786,"src":"Getting_Ready-68_2FB368F9-1EC9-DFB6-0991D19032E69AD2_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896786.html","width":200,"caption":"","height":200});
															thumbnails[8896787] = clik.newPhoto({"id":8896787,"src":"Getting_Ready-94_2FB40018-1EC9-DFB6-09BE7298EBE0FAE2_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896787.html","width":200,"caption":"","height":200});
															thumbnails[8896803] = clik.newPhoto({"id":8896803,"src":"Jenny_and_Kev_home_65_7_2FDAA3B6-1EC9-DFB6-09C6AE589D3905A1_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896803.html","width":200,"caption":"","height":200});
															thumbnails[8896811] = clik.newPhoto({"id":8896811,"src":"Jenny_and_Kev_home_39_30044745-1EC9-DFB6-09F5F5B9A7F03BB6_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896811.html","width":200,"caption":"","height":200});
															thumbnails[8896816] = clik.newPhoto({"id":8896816,"src":"Liam_BC-53_3022D851-1EC9-DFB6-097709F13DD354D9_thumb.jpg","galleries_id":467731,"server_id":5,"link":"photo_8896816.html","width":200,"caption":"","height":200});
															thumbnails[2269906] = clik.newPhoto({"id":2269906,"src":"Untitled-1_thumb_D6D1F56C-1EC9-DFB6-0945EFC8DED58C5C.jpg","galleries_id":152289,"server_id":5,"link":"photo_2269906.html","width":200,"caption":"","height":75});
															thumbnails[2270552] = clik.newPhoto({"id":2270552,"src":"Untitled-2_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270552.html","width":200,"caption":"","height":75});
															thumbnails[2270561] = clik.newPhoto({"id":2270561,"src":"Untitled-3_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270561.html","width":200,"caption":"","height":75});
															thumbnails[2270568] = clik.newPhoto({"id":2270568,"src":"Untitled-4_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270568.html","width":200,"caption":"","height":75});
															thumbnails[2270573] = clik.newPhoto({"id":2270573,"src":"Untitled-6_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270573.html","width":200,"caption":"","height":74});
															thumbnails[2270609] = clik.newPhoto({"id":2270609,"src":"Untitled-7_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270609.html","width":200,"caption":"","height":75});
															thumbnails[2270611] = clik.newPhoto({"id":2270611,"src":"Untitled-8_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270611.html","width":200,"caption":"","height":75});
															thumbnails[2270613] = clik.newPhoto({"id":2270613,"src":"Untitled-9_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_2270613.html","width":200,"caption":"","height":74});
															thumbnails[8346753] = clik.newPhoto({"id":8346753,"src":"048-0491_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346753.html","width":200,"caption":"","height":73});
															thumbnails[8346375] = clik.newPhoto({"id":8346375,"src":"002-003_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346375.html","width":200,"caption":"","height":73});
															thumbnails[8346390] = clik.newPhoto({"id":8346390,"src":"010-011_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346390.html","width":200,"caption":"","height":73});
															thumbnails[8346392] = clik.newPhoto({"id":8346392,"src":"012-013_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346392.html","width":200,"caption":"","height":73});
															thumbnails[8346404] = clik.newPhoto({"id":8346404,"src":"014-015_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346404.html","width":200,"caption":"","height":73});
															thumbnails[8346406] = clik.newPhoto({"id":8346406,"src":"016-017_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346406.html","width":200,"caption":"","height":73});
															thumbnails[8346409] = clik.newPhoto({"id":8346409,"src":"018-019_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346409.html","width":200,"caption":"","height":73});
															thumbnails[8346411] = clik.newPhoto({"id":8346411,"src":"022-023_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346411.html","width":200,"caption":"","height":73});
															thumbnails[8346414] = clik.newPhoto({"id":8346414,"src":"024-025_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346414.html","width":200,"caption":"","height":73});
															thumbnails[8346416] = clik.newPhoto({"id":8346416,"src":"040-041_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346416.html","width":200,"caption":"","height":73});
															thumbnails[8346417] = clik.newPhoto({"id":8346417,"src":"042-043_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346417.html","width":200,"caption":"","height":73});
															thumbnails[8346432] = clik.newPhoto({"id":8346432,"src":"044-045_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346432.html","width":200,"caption":"","height":73});
															thumbnails[8346434] = clik.newPhoto({"id":8346434,"src":"048-049_thumb.jpg","galleries_id":152289,"server_id":5,"link":"photo_8346434.html","width":200,"caption":"","height":73});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[467731] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding","link":"Gallery_467731.html","maxRecords":0.0,"photoIDs":[3598443.0,3599157.0,5432070.0,5432071.0,5432716.0,5432717.0,5432725.0,5432739.0,7032498.0,7032616.0,7032618.0,7032636.0,7032641.0,7032643.0,7032852.0,7032854.0,7032858.0,7032860.0,7032863.0,7032870.0,7032909.0,7032911.0,7032916.0,7032922.0,7032933.0,7033057.0,7033070.0,7033080.0,7033088.0,7033090.0,7033094.0,7033096.0,7033321.0,7033326.0,7033337.0,7204747.0,7204762.0,8673922.0,8673926.0,8673982.0,8836370.0,8896769.0,8896857.0,8896778.0,8896859.0,8896779.0,8896860.0,8896780.0,8896861.0,8896783.0,8896784.0,8896786.0,8896787.0,8896803.0,8896811.0,8896816.0],"skipIndex":0,"section_code":"Gallery","featured_images":"7032860,7032641,5432725,5432716","id":467731,"singleSection":false});				  						galleries[152289] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"wedding album","link":"section265875.html","maxRecords":0.0,"photoIDs":[2269906.0,2270552.0,2270561.0,2270568.0,2270573.0,2270609.0,2270611.0,2270613.0,8346753.0,8346375.0,8346390.0,8346392.0,8346404.0,8346406.0,8346409.0,8346411.0,8346414.0,8346416.0,8346417.0,8346432.0,8346434.0],"skipIndex":0,"section_code":"section265875","featured_images":2270609.0,"id":152289,"singleSection":true});				  						galleries[251934] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children's Portraits","link":"Gallery_251934.html","maxRecords":0.0,"photoIDs":[4454925.0,4455120.0,4455124.0,4455138.0,4455145.0,4455146.0,4455149.0,4455151.0,4455154.0,4455156.0,4264885.0,4265135.0,8897316.0,4265067.0,8897317.0,4455135.0,8897318.0,4455134.0,8897319.0,4455131.0,8897320.0,4264760.0,4264700.0],"skipIndex":0,"section_code":"Gallery","featured_images":"4455154,4455138,4265135","id":251934,"singleSection":false});				  						galleries[457786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family Portraits","link":"Gallery_457786.html","maxRecords":0.0,"photoIDs":[8673909.0,8673767.0],"skipIndex":0,"section_code":"Gallery","featured_images":"8673909,8673767","id":457786,"singleSection":false});				  						galleries[467846] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Corporate","link":"Gallery_467846.html","maxRecords":0.0,"photoIDs":[8673816.0,9075540.0,9075542.0,9075543.0],"skipIndex":0,"section_code":"Gallery","featured_images":"9075543,9075542,9075540,8673816","id":467846,"singleSection":false});				  						galleries[261439] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Digital Makeover","link":"Gallery_261439.html","maxRecords":0.0,"photoIDs":[4483945.0,4483979.0,4483989.0,7524636.0],"skipIndex":0,"section_code":"Gallery","featured_images":"4483989,4483945","id":261439,"singleSection":false});				  						galleries[380678] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion Events ","link":"Gallery_380678.html","maxRecords":0.0,"photoIDs":[6264913.0,6265002.0,6265006.0,6265072.0,6954582.0,6999425.0],"skipIndex":0,"section_code":"Gallery","featured_images":6999425.0,"id":380678,"singleSection":false});				  						galleries[260394] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bands","link":"Gallery_260394.html","maxRecords":0.0,"photoIDs":[5285422.0,6265001.0,7000004.0,7034413.0,4459714.0,4459712.0,4459372.0,4455225.0],"skipIndex":0,"section_code":"Gallery","featured_images":7034413.0,"id":260394,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[231245] = '4455156,4455154,4455151,4455149,4455146,4455145,4455138,4455124,4455120,4454925,4455135,4455134,4455131,4264760,4264700';
imageSets[231383] = '7033321,7033096,7033090,7032870,7032863,7032860,7032636,7032618';
imageSets[1] = '7524636,8673767';
imageSets[2] = '7034413,7032860,7032641,6999425,5432725,5432716,4483989,4483945,4455154,4455138,2270609,3601052,4265135,5432692,5432452';
imageSets[3] = '7032636';
imageSets[231244] = '5432739,5432732,5432725,5432717,5432716,5432077,5432071,5432070,3599157,3598443,3601051,3664768,3664770,3664769,5432702,5432085,3599190,5432088,3601074,5432090,3601075,4258804,5432064,3601083,3601106,3601131,5432431,3599203,3601129,3599198,3599208,5432075,3599251';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jennymartin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jennymartin/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 = 'jenny martin 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>Jenny Martin </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="JENNYMARTIN">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

