window.thumbnails = {};
															thumbnails[2793491] = clik.newPhoto({"id":2793491,"src":"AMP SC 14x10 Expressions Page 1-21_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_2793491.html","width":130,"caption":"","height":92});
															thumbnails[2793499] = clik.newPhoto({"id":2793499,"src":"AMP SC 14x10 Expressions Page 15-161_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_2793499.html","width":130,"caption":"","height":92});
															thumbnails[2793509] = clik.newPhoto({"id":2793509,"src":"Page 13 gg1_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_2793509.html","width":130,"caption":"","height":92});
															thumbnails[2793510] = clik.newPhoto({"id":2793510,"src":"JS Page23-241_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_2793510.html","width":130,"caption":"","height":92});
															thumbnails[2793543] = clik.newPhoto({"id":2793543,"src":"GS page 24 gs2_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_2793543.html","width":130,"caption":"","height":111});
															thumbnails[3555396] = clik.newPhoto({"id":3555396,"src":"JP_Album_Page_1_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555396.html","width":130,"caption":"","height":130});
															thumbnails[3555400] = clik.newPhoto({"id":3555400,"src":"LiR_Page_19-20_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555400.html","width":130,"caption":"","height":92});
															thumbnails[3555401] = clik.newPhoto({"id":3555401,"src":"BB_A4_Expressions_21-22_Final_web_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555401.html","width":130,"caption":"","height":93});
															thumbnails[3555406] = clik.newPhoto({"id":3555406,"src":"JP_Album_Page_15_web_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555406.html","width":130,"caption":"","height":130});
															thumbnails[3555408] = clik.newPhoto({"id":3555408,"src":"BB_A4_Expressions_23-24_Final_web_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555408.html","width":130,"caption":"","height":93});
															thumbnails[3555410] = clik.newPhoto({"id":3555410,"src":"LiR_Page_21-22_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555410.html","width":130,"caption":"","height":92});
															thumbnails[3555411] = clik.newPhoto({"id":3555411,"src":"BB_A4_Expressions_25-26_Final_web_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555411.html","width":130,"caption":"","height":93});
															thumbnails[3555413] = clik.newPhoto({"id":3555413,"src":"JP_Album_Page_16_thumb.jpg","galleries_id":174773,"server_id":1,"link":"photo_3555413.html","width":130,"caption":"","height":130});
															thumbnails[9065228] = clik.newPhoto({"id":9065228,"src":"2012webdisc_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_9065228.html","width":130,"caption":"","height":87});
															thumbnails[9065239] = clik.newPhoto({"id":9065239,"src":"2012webdisc2_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_9065239.html","width":130,"caption":"","height":87});
															thumbnails[7398194] = clik.newPhoto({"id":7398194,"src":"0282_LR_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398194.html","width":130,"caption":"","height":87});
															thumbnails[7398519] = clik.newPhoto({"id":7398519,"src":"0387_lr1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398519.html","width":130,"caption":"","height":194});
															thumbnails[7398190] = clik.newPhoto({"id":7398190,"src":"darren_perry_weddingsphotojournalism_may_uk_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398190.html","width":130,"caption":"","height":87});
															thumbnails[1702089] = clik.newPhoto({"id":1702089,"src":"sb0228 400x600bw_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702089.html","width":130,"caption":"","height":187});
															thumbnails[2793323] = clik.newPhoto({"id":2793323,"src":"0318 brollies_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_2793323.html","width":130,"caption":"","height":87});
															thumbnails[1702243] = clik.newPhoto({"id":1702243,"src":"DT0136 300x600bw1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702243.html","width":130,"caption":"","height":65});
															thumbnails[7398523] = clik.newPhoto({"id":7398523,"src":"0345_lr1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398523.html","width":130,"caption":"","height":194});
															thumbnails[1701962] = clik.newPhoto({"id":1701962,"src":"SC0149 400x400_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701962.html","width":130,"caption":"","height":130});
															thumbnails[1702091] = clik.newPhoto({"id":1702091,"src":"KJ0283 400x400_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702091.html","width":130,"caption":"","height":130});
															thumbnails[7398368] = clik.newPhoto({"id":7398368,"src":"FP_0246_MAP_lrc_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398368.html","width":130,"caption":"","height":104});
															thumbnails[1701945] = clik.newPhoto({"id":1701945,"src":"SC0208 400x400_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701945.html","width":130,"caption":"","height":130});
															thumbnails[1701959] = clik.newPhoto({"id":1701959,"src":"webwed8_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1701959.html","width":130,"caption":"","height":130});
															thumbnails[1702054] = clik.newPhoto({"id":1702054,"src":"DT0179 400x600_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702054.html","width":130,"caption":"","height":195});
															thumbnails[7398515] = clik.newPhoto({"id":7398515,"src":"0244_cd_lr1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398515.html","width":130,"caption":"","height":194});
															thumbnails[7398529] = clik.newPhoto({"id":7398529,"src":"0286_LR1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398529.html","width":130,"caption":"","height":194});
															thumbnails[1702099] = clik.newPhoto({"id":1702099,"src":"SM0227 400x400bw_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702099.html","width":130,"caption":"","height":130});
															thumbnails[2793335] = clik.newPhoto({"id":2793335,"src":"0341 jp_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_2793335.html","width":130,"caption":"","height":195});
															thumbnails[7398628] = clik.newPhoto({"id":7398628,"src":"FP_0139_kf_lr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398628.html","width":130,"caption":"","height":195});
															thumbnails[7398589] = clik.newPhoto({"id":7398589,"src":"0306_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_7398589.html","width":130,"caption":"","height":195});
															thumbnails[1701952] = clik.newPhoto({"id":1701952,"src":"KJ0129 400x560_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701952.html","width":130,"caption":"","height":182});
															thumbnails[1702100] = clik.newPhoto({"id":1702100,"src":"GG0264 400x400_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702100.html","width":130,"caption":"","height":130});
															thumbnails[2793227] = clik.newPhoto({"id":2793227,"src":"GS Wed LMT1_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_2793227.html","width":130,"caption":"","height":195});
															thumbnails[7398532] = clik.newPhoto({"id":7398532,"src":"FP_0323_lr1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398532.html","width":130,"caption":"","height":194});
															thumbnails[1701964] = clik.newPhoto({"id":1701964,"src":"NK0137 400X600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701964.html","width":130,"caption":"","height":195});
															thumbnails[1702107] = clik.newPhoto({"id":1702107,"src":"JC0277 400x500_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702107.html","width":130,"caption":"","height":163});
															thumbnails[7398534] = clik.newPhoto({"id":7398534,"src":"01421_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398534.html","width":130,"caption":"","height":162});
															thumbnails[1702055] = clik.newPhoto({"id":1702055,"src":"JT0196 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702055.html","width":130,"caption":"","height":87});
															thumbnails[1702058] = clik.newPhoto({"id":1702058,"src":"webwed131_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702058.html","width":130,"caption":"","height":130});
															thumbnails[9065215] = clik.newPhoto({"id":9065215,"src":"0286_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_9065215.html","width":130,"caption":"","height":87});
															thumbnails[1702059] = clik.newPhoto({"id":1702059,"src":"webwed11_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702059.html","width":130,"caption":"","height":130});
															thumbnails[1702081] = clik.newPhoto({"id":1702081,"src":"KJ0198 400x400 bw_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702081.html","width":130,"caption":"","height":130});
															thumbnails[7398540] = clik.newPhoto({"id":7398540,"src":"0224_LR1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398540.html","width":130,"caption":"","height":162});
															thumbnails[7398558] = clik.newPhoto({"id":7398558,"src":"0228_LR1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398558.html","width":130,"caption":"","height":162});
															thumbnails[1702062] = clik.newPhoto({"id":1702062,"src":"JK0186 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702062.html","width":130,"caption":"","height":195});
															thumbnails[7398192] = clik.newPhoto({"id":7398192,"src":"FP_0385_SE_lr1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398192.html","width":130,"caption":"","height":87});
															thumbnails[7398566] = clik.newPhoto({"id":7398566,"src":"01601_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_7398566.html","width":130,"caption":"","height":130});
															thumbnails[1702060] = clik.newPhoto({"id":1702060,"src":"KJ0244 300x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702060.html","width":130,"caption":"","height":260});
															thumbnails[1702063] = clik.newPhoto({"id":1702063,"src":"HC0132 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702063.html","width":130,"caption":"","height":195});
															thumbnails[1702068] = clik.newPhoto({"id":1702068,"src":"webwed5_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702068.html","width":130,"caption":"","height":130});
															thumbnails[7398336] = clik.newPhoto({"id":7398336,"src":"0277nm_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_7398336.html","width":130,"caption":"","height":87});
															thumbnails[1702096] = clik.newPhoto({"id":1702096,"src":"JK0247 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702096.html","width":130,"caption":"","height":87});
															thumbnails[1702095] = clik.newPhoto({"id":1702095,"src":"NK0198 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702095.html","width":130,"caption":"","height":195});
															thumbnails[7398348] = clik.newPhoto({"id":7398348,"src":"FP_0150_BW_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398348.html","width":130,"caption":"","height":87});
															thumbnails[1701953] = clik.newPhoto({"id":1701953,"src":"webwed2_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1701953.html","width":130,"caption":"","height":130});
															thumbnails[1701960] = clik.newPhoto({"id":1701960,"src":"SC0109 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701960.html","width":130,"caption":"","height":195});
															thumbnails[1702079] = clik.newPhoto({"id":1702079,"src":"SC0177 400x4001_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702079.html","width":130,"caption":"","height":130});
															thumbnails[7398343] = clik.newPhoto({"id":7398343,"src":"0312_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_7398343.html","width":130,"caption":"","height":87});
															thumbnails[7398569] = clik.newPhoto({"id":7398569,"src":"03501_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_7398569.html","width":130,"caption":"","height":194});
															thumbnails[1702093] = clik.newPhoto({"id":1702093,"src":"SC0235 400x400s_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702093.html","width":130,"caption":"","height":130});
															thumbnails[1702103] = clik.newPhoto({"id":1702103,"src":"DT0283 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702103.html","width":130,"caption":"","height":195});
															thumbnails[2793203] = clik.newPhoto({"id":2793203,"src":"CK sq look1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_2793203.html","width":130,"caption":"","height":130});
															thumbnails[7398333] = clik.newPhoto({"id":7398333,"src":"0440_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398333.html","width":130,"caption":"","height":104});
															thumbnails[2793202] = clik.newPhoto({"id":2793202,"src":"GS group steps_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_2793202.html","width":130,"caption":"","height":91});
															thumbnails[2793206] = clik.newPhoto({"id":2793206,"src":"AS fountain1_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_2793206.html","width":130,"caption":"","height":195});
															thumbnails[1701949] = clik.newPhoto({"id":1701949,"src":"CS0161 200x600_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1701949.html","width":130,"caption":"","height":390});
															thumbnails[7398583] = clik.newPhoto({"id":7398583,"src":"0342_lr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398583.html","width":130,"caption":"","height":194});
															thumbnails[1701946] = clik.newPhoto({"id":1701946,"src":"DT0116 572x400 tbw_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701946.html","width":130,"caption":"","height":91});
															thumbnails[7398604] = clik.newPhoto({"id":7398604,"src":"0314_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398604.html","width":130,"caption":"","height":87});
															thumbnails[2793198] = clik.newPhoto({"id":2793198,"src":"LiR noses1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_2793198.html","width":130,"caption":"","height":193});
															thumbnails[1701951] = clik.newPhoto({"id":1701951,"src":"SC0144 400x600 bw_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1701951.html","width":130,"caption":"","height":87});
															thumbnails[7398644] = clik.newPhoto({"id":7398644,"src":"FP_0245_SE_lr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398644.html","width":130,"caption":"","height":195});
															thumbnails[1702066] = clik.newPhoto({"id":1702066,"src":"GG0132 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702066.html","width":130,"caption":"","height":87});
															thumbnails[2793310] = clik.newPhoto({"id":2793310,"src":"FP 0437 BW_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_2793310.html","width":130,"caption":"","height":87});
															thumbnails[7398663] = clik.newPhoto({"id":7398663,"src":"FP_0257_SElr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398663.html","width":130,"caption":"","height":195});
															thumbnails[1702071] = clik.newPhoto({"id":1702071,"src":"webwed14_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702071.html","width":130,"caption":"","height":130});
															thumbnails[1702073] = clik.newPhoto({"id":1702073,"src":"webwed15_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702073.html","width":130,"caption":"","height":130});
															thumbnails[1702074] = clik.newPhoto({"id":1702074,"src":"DT0219 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702074.html","width":130,"caption":"","height":195});
															thumbnails[7398560] = clik.newPhoto({"id":7398560,"src":"03911_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_7398560.html","width":130,"caption":"","height":195});
															thumbnails[1702080] = clik.newPhoto({"id":1702080,"src":"JK0234 400x600s_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702080.html","width":130,"caption":"","height":195});
															thumbnails[1702082] = clik.newPhoto({"id":1702082,"src":"GG0180 300x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702082.html","width":130,"caption":"","height":260});
															thumbnails[1702084] = clik.newPhoto({"id":1702084,"src":"JT0200 400x400_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702084.html","width":130,"caption":"","height":130});
															thumbnails[7398352] = clik.newPhoto({"id":7398352,"src":"0294_lr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398352.html","width":130,"caption":"","height":87});
															thumbnails[7398334] = clik.newPhoto({"id":7398334,"src":"0445_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398334.html","width":130,"caption":"","height":87});
															thumbnails[7398572] = clik.newPhoto({"id":7398572,"src":"0207_lr1_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398572.html","width":130,"caption":"","height":195});
															thumbnails[1702087] = clik.newPhoto({"id":1702087,"src":"JC0206 400x600_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_1702087.html","width":130,"caption":"","height":87});
															thumbnails[7398375] = clik.newPhoto({"id":7398375,"src":"0302_lr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398375.html","width":130,"caption":"","height":87});
															thumbnails[7398573] = clik.newPhoto({"id":7398573,"src":"0157_lkr_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398573.html","width":130,"caption":"","height":87});
															thumbnails[7398287] = clik.newPhoto({"id":7398287,"src":"0409_LR_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_7398287.html","width":130,"caption":"","height":87});
															thumbnails[1702109] = clik.newPhoto({"id":1702109,"src":"SC0292 400x600_thumb.JPG","galleries_id":31779,"server_id":1,"link":"photo_1702109.html","width":130,"caption":"","height":87});
															thumbnails[5574395] = clik.newPhoto({"id":5574395,"src":"0295web_thumb.jpg","galleries_id":31779,"server_id":1,"link":"photo_5574395.html","width":130,"caption":"","height":88});
															thumbnails[679716] = clik.newPhoto({"id":679716,"src":"web1 ella_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679716.html","width":130,"caption":"","height":130});
															thumbnails[679725] = clik.newPhoto({"id":679725,"src":"web2 amelie_thumb.JPG","galleries_id":8504,"server_id":1,"link":"photo_679725.html","width":130,"caption":"","height":130});
															thumbnails[679726] = clik.newPhoto({"id":679726,"src":"web3 scarlett_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679726.html","width":130,"caption":"","height":130});
															thumbnails[679727] = clik.newPhoto({"id":679727,"src":"web4 james1_thumb.JPG","galleries_id":8504,"server_id":1,"link":"photo_679727.html","width":130,"caption":"","height":130});
															thumbnails[679728] = clik.newPhoto({"id":679728,"src":"web5 izzy_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679728.html","width":130,"caption":"","height":130});
															thumbnails[679729] = clik.newPhoto({"id":679729,"src":"web6 k flory_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679729.html","width":130,"caption":"","height":130});
															thumbnails[679730] = clik.newPhoto({"id":679730,"src":"web7 taelor_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679730.html","width":130,"caption":"","height":130});
															thumbnails[679731] = clik.newPhoto({"id":679731,"src":"web8 ara stand2_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679731.html","width":130,"caption":"","height":130});
															thumbnails[679733] = clik.newPhoto({"id":679733,"src":"web9 scar_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679733.html","width":130,"caption":"","height":130});
															thumbnails[679736] = clik.newPhoto({"id":679736,"src":"web12 lola_thumb.JPG","galleries_id":8504,"server_id":1,"link":"photo_679736.html","width":130,"caption":"","height":130});
															thumbnails[679737] = clik.newPhoto({"id":679737,"src":"web13 finlay_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679737.html","width":130,"caption":"","height":130});
															thumbnails[679739] = clik.newPhoto({"id":679739,"src":"web14 grace_thumb.JPG","galleries_id":8504,"server_id":1,"link":"photo_679739.html","width":130,"caption":"","height":130});
															thumbnails[679741] = clik.newPhoto({"id":679741,"src":"web15 arabella face_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679741.html","width":130,"caption":"","height":130});
															thumbnails[679743] = clik.newPhoto({"id":679743,"src":"web17 jemma_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679743.html","width":130,"caption":"","height":130});
															thumbnails[679744] = clik.newPhoto({"id":679744,"src":"web18 freddie_thumb.jpg","galleries_id":8504,"server_id":1,"link":"photo_679744.html","width":130,"caption":"","height":130});
															thumbnails[679746] = clik.newPhoto({"id":679746,"src":"web1 hannik_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679746.html","width":130,"caption":"","height":130});
															thumbnails[679747] = clik.newPhoto({"id":679747,"src":"web2 pages_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679747.html","width":130,"caption":"","height":130});
															thumbnails[679748] = clik.newPhoto({"id":679748,"src":"web3 markdan_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679748.html","width":130,"caption":"","height":130});
															thumbnails[679750] = clik.newPhoto({"id":679750,"src":"web4 stams_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679750.html","width":130,"caption":"","height":130});
															thumbnails[679751] = clik.newPhoto({"id":679751,"src":"web5 mitchells_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679751.html","width":130,"caption":"","height":130});
															thumbnails[679752] = clik.newPhoto({"id":679752,"src":"web6 mollokids_thumb.JPG","galleries_id":8787,"server_id":1,"link":"photo_679752.html","width":130,"caption":"","height":130});
															thumbnails[679753] = clik.newPhoto({"id":679753,"src":"web7 mutimers_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679753.html","width":130,"caption":"","height":130});
															thumbnails[679755] = clik.newPhoto({"id":679755,"src":"web8 jandam_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679755.html","width":130,"caption":"","height":130});
															thumbnails[679756] = clik.newPhoto({"id":679756,"src":"web9 florys_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_679756.html","width":130,"caption":"","height":130});
															thumbnails[679797] = clik.newPhoto({"id":679797,"src":"web1 chse_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_679797.html","width":130,"caption":"","height":130});
															thumbnails[679798] = clik.newPhoto({"id":679798,"src":"web2 bhut_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_679798.html","width":130,"caption":"","height":130});
															thumbnails[679799] = clik.newPhoto({"id":679799,"src":"web3 shse_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_679799.html","width":130,"caption":"","height":130});
															thumbnails[679800] = clik.newPhoto({"id":679800,"src":"web4 wells_thumb.JPG","galleries_id":8789,"server_id":1,"link":"photo_679800.html","width":130,"caption":"","height":130});
															thumbnails[679802] = clik.newPhoto({"id":679802,"src":"web6 kym_thumb.JPG","galleries_id":8789,"server_id":1,"link":"photo_679802.html","width":130,"caption":"","height":130});
															thumbnails[679803] = clik.newPhoto({"id":679803,"src":"web7 chriseye_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_679803.html","width":130,"caption":"","height":130});
															thumbnails[679804] = clik.newPhoto({"id":679804,"src":"web8 stand_thumb.JPG","galleries_id":8789,"server_id":1,"link":"photo_679804.html","width":130,"caption":"","height":130});
															thumbnails[679805] = clik.newPhoto({"id":679805,"src":"web9 Bullards_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_679805.html","width":130,"caption":"","height":130});
															thumbnails[679812] = clik.newPhoto({"id":679812,"src":"web10 hwellg_thumb.JPG","galleries_id":8789,"server_id":1,"link":"photo_679812.html","width":130,"caption":"","height":130});
															thumbnails[679814] = clik.newPhoto({"id":679814,"src":"web10 nathtam_thumb.JPG","galleries_id":8789,"server_id":1,"link":"photo_679814.html","width":130,"caption":"","height":130});
															thumbnails[2176645] = clik.newPhoto({"id":2176645,"src":"table shot 600x103 web_thumb.jpg","galleries_id":8787,"server_id":1,"link":"photo_2176645.html","width":130,"caption":"","height":22});
															thumbnails[2793362] = clik.newPhoto({"id":2793362,"src":"0221WebAdMod_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_2793362.html","width":130,"caption":"","height":196});
															thumbnails[2793364] = clik.newPhoto({"id":2793364,"src":"0317_thumb.jpg","galleries_id":8789,"server_id":1,"link":"photo_2793364.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[31779] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section477534_31779.html","maxRecords":0.0,"photoIDs":[9065228.0,9065239.0,7398194.0,7398519.0,7398190.0,1702089.0,2793323.0,1702243.0,7398523.0,1701962.0,1702091.0,7398368.0,1701945.0,1701959.0,1702054.0,7398515.0,7398529.0,1702099.0,2793335.0,7398628.0,7398589.0,1701952.0,1702100.0,2793227.0,7398532.0,1701964.0,1702107.0,7398534.0,1702055.0,1702058.0,9065215.0,1702059.0,1702081.0,7398540.0,7398558.0,1702062.0,7398192.0,7398566.0,1702060.0,1702063.0,1702068.0,7398336.0,1702096.0,1702095.0,7398348.0,1701953.0,1701960.0,1702079.0,7398343.0,7398569.0,1702093.0,1702103.0,2793203.0,7398333.0,2793202.0,2793206.0,1701949.0,7398583.0,1701946.0,7398604.0,2793198.0,1701951.0,7398644.0,1702066.0,2793310.0,7398663.0,1702071.0,1702073.0,1702074.0,7398560.0,1702080.0,1702082.0,1702084.0,7398352.0,7398334.0,7398572.0,1702087.0,7398375.0,7398573.0,7398287.0,1702109.0,5574395.0],"skipIndex":0,"section_code":"section477534","featured_images":"7398343,5574395,1701945","id":31779,"singleSection":false});				  						galleries[174773] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Albums","link":"section477534_174773.html","maxRecords":0.0,"photoIDs":[2793491.0,2793499.0,2793509.0,2793510.0,2793543.0,3555396.0,3555400.0,3555401.0,3555406.0,3555408.0,3555410.0,3555411.0,3555413.0],"skipIndex":0,"section_code":"section477534","featured_images":"3555396,2793510,2793491","id":174773,"singleSection":false});				  						galleries[8504] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait - Children","link":"gallery_8504.html","maxRecords":0.0,"photoIDs":[679716.0,679725.0,679726.0,679727.0,679728.0,679729.0,679730.0,679731.0,679733.0,679736.0,679737.0,679739.0,679741.0,679743.0,679744.0],"skipIndex":0,"section_code":"gallery","featured_images":"679737,679725","id":8504,"singleSection":false});				  						galleries[8787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait - Family","link":"gallery_8787.html","maxRecords":0.0,"photoIDs":[679746.0,679747.0,679748.0,679750.0,679751.0,679752.0,679753.0,679755.0,679756.0,2176645.0],"skipIndex":0,"section_code":"gallery","featured_images":"2176645,679751","id":8787,"singleSection":false});				  						galleries[8789] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events Commercial Other","link":"gallery_8789.html","maxRecords":0.0,"photoIDs":[679797.0,679798.0,679799.0,679800.0,679802.0,679803.0,679804.0,679805.0,679812.0,679814.0,2793362.0,2793364.0],"skipIndex":0,"section_code":"gallery","featured_images":"2793364,2793362","id":8789,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[136116] = '7398194,7398519,7398190,7398523,7398368,7398529,7398515,7398628,7398589,7398532,7398534,9065215,7398540,7398558,7398566,7398192,7398336,7398348,7398343,7398569,7398333,7398583,7398604,7398644,7398663,7398560,7398352,7398334,7398572,7398573,7398375,7398287,5574395';
imageSets[1] = '9065239,9065228';
imageSets[2] = '3555396,2793510,2793491,2793364,2793362,2176645,679751,679737,679725,1701945,7398343,5574395';
imageSets[3] = '9065239,9065228,9065215,7398663,7398644,7398628,7398604,7398589,7398583,7398573,7398572,7398569,7398566,7398560,7398558,7398540,7398534,7398532,7398529,7398523,7398519,7398515,7398375,7398368,7398352,7398348,7398343,7398336,7398334,7398333,7398287,7398194,7398192,7398190,5574395,3555413,3555411,3555410,3555408,3555406,3555401,3555400,3555396,2793543,2793510,2793509,2793499,2793491,2793364,2793362';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/darrenamp/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/darrenamp/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 += 'section477534.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 && 'section477534' != '') {
					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 = 'Addison McGrath Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.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;
	}
}

			

