window.thumbnails = {};
															thumbnails[7895831] = clik.newPhoto({"id":7895831,"src":"0001_50A35DAA-1EC9-D45B-1C2355682B63AADA_thumb.jpg","galleries_id":425940,"server_id":1,"link":"photo_7895831.html","width":67,"caption":"Frames","height":100});
															thumbnails[7895832] = clik.newPhoto({"id":7895832,"src":"0002_50A360C7-1EC9-D45B-1CD06EA4719008FE_thumb.jpg","galleries_id":425940,"server_id":1,"link":"photo_7895832.html","width":100,"caption":"Bielle Fiorino","height":67});
															thumbnails[7895833] = clik.newPhoto({"id":7895833,"src":"0003_50A363E4-1EC9-D45B-1C97973E0394089E_thumb.jpg","galleries_id":425940,"server_id":1,"link":"photo_7895833.html","width":100,"caption":"Bielle Fiorino","height":67});
															thumbnails[7895834] = clik.newPhoto({"id":7895834,"src":"0004_50A3673F-1EC9-D45B-1C851D3E4CF9E87E_thumb.jpg","galleries_id":425940,"server_id":1,"link":"photo_7895834.html","width":100,"caption":"Bielle Fiorino","height":67});
															thumbnails[7895835] = clik.newPhoto({"id":7895835,"src":"0005_50A36A7B-1EC9-D45B-1C9DD0F5C5EA2A13_thumb.jpg","galleries_id":425940,"server_id":1,"link":"photo_7895835.html","width":100,"caption":"Bielle Fiorino","height":67});
															thumbnails[7886207] = clik.newPhoto({"id":7886207,"src":"0133_469D3630-24E8-5EC4-4F22100F18670FCF_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886207.html","width":67,"caption":133.0,"height":100});
															thumbnails[7886205] = clik.newPhoto({"id":7886205,"src":"0131_469D2FE7-24E8-5EC4-4FA616F575B43417_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886205.html","width":100,"caption":131.0,"height":67});
															thumbnails[7886204] = clik.newPhoto({"id":7886204,"src":"0130_469D2D18-24E8-5EC4-4F1A6B3F5AD97A3D_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886204.html","width":67,"caption":130.0,"height":100});
															thumbnails[7886202] = clik.newPhoto({"id":7886202,"src":"0128_469D272C-24E8-5EC4-4F8B26D5558D1FF8_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886202.html","width":67,"caption":128.0,"height":100});
															thumbnails[7886201] = clik.newPhoto({"id":7886201,"src":"0127_469D242F-24E8-5EC4-4F99C4A053AC6CED_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886201.html","width":67,"caption":127.0,"height":100});
															thumbnails[7886200] = clik.newPhoto({"id":7886200,"src":"0126_469D2112-24E8-5EC4-4FE64697A3108B56_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886200.html","width":100,"caption":126.0,"height":67});
															thumbnails[7886197] = clik.newPhoto({"id":7886197,"src":"0123_469D1886-24E8-5EC4-4F5A8DEAD49C91A7_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886197.html","width":67,"caption":123.0,"height":100});
															thumbnails[7886196] = clik.newPhoto({"id":7886196,"src":"0122_469D1598-24E8-5EC4-4FFBEBEC03050F16_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886196.html","width":67,"caption":122.0,"height":100});
															thumbnails[7886195] = clik.newPhoto({"id":7886195,"src":"0121_469D12AA-24E8-5EC4-4F9CFD4E0EE283B0_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886195.html","width":100,"caption":121.0,"height":67});
															thumbnails[7886194] = clik.newPhoto({"id":7886194,"src":"0120_469D0FEB-24E8-5EC4-4F2A0ED2E566FB86_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886194.html","width":100,"caption":120.0,"height":67});
															thumbnails[7886192] = clik.newPhoto({"id":7886192,"src":"0118_469D0953-24E8-5EC4-4FA5CAEAB02B8038_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886192.html","width":67,"caption":118.0,"height":100});
															thumbnails[7886189] = clik.newPhoto({"id":7886189,"src":"0115_469CFF80-24E8-5EC4-4F9F30D9D2AFA1BA_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886189.html","width":67,"caption":115.0,"height":100});
															thumbnails[7886187] = clik.newPhoto({"id":7886187,"src":"0113_469CF994-24E8-5EC4-4F369FECACC062C6_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886187.html","width":67,"caption":113.0,"height":100});
															thumbnails[7886186] = clik.newPhoto({"id":7886186,"src":"0112_469CF6A6-24E8-5EC4-4FF6F30A34A62E2C_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886186.html","width":67,"caption":112.0,"height":100});
															thumbnails[7886185] = clik.newPhoto({"id":7886185,"src":"0111_469CF3A8-24E8-5EC4-4F788B3E91F96520_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886185.html","width":67,"caption":111.0,"height":100});
															thumbnails[7886184] = clik.newPhoto({"id":7886184,"src":"0110_469CF02E-24E8-5EC4-4F1141B891918622_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886184.html","width":67,"caption":110.0,"height":100});
															thumbnails[7886182] = clik.newPhoto({"id":7886182,"src":"0108_469CE9A6-24E8-5EC4-4F9D6F23D33827BF_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886182.html","width":100,"caption":108.0,"height":67});
															thumbnails[7886181] = clik.newPhoto({"id":7886181,"src":"0107_469CE699-24E8-5EC4-4FDA6D0A54964BA2_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886181.html","width":67,"caption":107.0,"height":100});
															thumbnails[7886179] = clik.newPhoto({"id":7886179,"src":"0105_469CE09D-24E8-5EC4-4F659E495D6F1020_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886179.html","width":100,"caption":105.0,"height":67});
															thumbnails[7886175] = clik.newPhoto({"id":7886175,"src":"0101_469CD4C6-24E8-5EC4-4FD215E9D6863BC1_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886175.html","width":67,"caption":101.0,"height":100});
															thumbnails[7886174] = clik.newPhoto({"id":7886174,"src":"0100_469CD1D8-24E8-5EC4-4F100D7E0B0320D6_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886174.html","width":67,"caption":100.0,"height":100});
															thumbnails[7886436] = clik.newPhoto({"id":7886436,"src":"0099_46B09276-24E8-5EC4-4FF92474FAA80760_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886436.html","width":67,"caption":99.0,"height":100});
															thumbnails[7886435] = clik.newPhoto({"id":7886435,"src":"0098_46B08F39-24E8-5EC4-4FE37E46FCE8FFE7_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886435.html","width":67,"caption":98.0,"height":100});
															thumbnails[7886434] = clik.newPhoto({"id":7886434,"src":"0097_46B08BEE-24E8-5EC4-4F70CFFFD88B8159_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886434.html","width":67,"caption":97.0,"height":100});
															thumbnails[7886433] = clik.newPhoto({"id":7886433,"src":"0096_46B088F0-24E8-5EC4-4FACC7A61FE96CEB_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886433.html","width":67,"caption":96.0,"height":100});
															thumbnails[7886432] = clik.newPhoto({"id":7886432,"src":"0095_46B085E3-24E8-5EC4-4F4E2588835A00A6_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886432.html","width":67,"caption":95.0,"height":100});
															thumbnails[7886431] = clik.newPhoto({"id":7886431,"src":"0094_46B08287-24E8-5EC4-4F152E428AAC2B2E_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886431.html","width":100,"caption":94.0,"height":67});
															thumbnails[7886430] = clik.newPhoto({"id":7886430,"src":"0093_46B07FB9-24E8-5EC4-4FC8C1743ACC6CC8_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886430.html","width":67,"caption":93.0,"height":100});
															thumbnails[7886429] = clik.newPhoto({"id":7886429,"src":"0092_46B07C2E-24E8-5EC4-4FF4D44D5734BFCF_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886429.html","width":67,"caption":92.0,"height":100});
															thumbnails[7886428] = clik.newPhoto({"id":7886428,"src":"0091_46B07827-24E8-5EC4-4F1B5368F6FAFC3B_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886428.html","width":67,"caption":91.0,"height":100});
															thumbnails[7886427] = clik.newPhoto({"id":7886427,"src":"0090_46B074DB-24E8-5EC4-4FE30D4472FEB012_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886427.html","width":67,"caption":90.0,"height":100});
															thumbnails[7886425] = clik.newPhoto({"id":7886425,"src":"0088_46B06ED0-24E8-5EC4-4F4B35F2D95C20C3_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886425.html","width":67,"caption":88.0,"height":100});
															thumbnails[7886424] = clik.newPhoto({"id":7886424,"src":"0087_46B06BA4-24E8-5EC4-4F77FE26AF613714_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886424.html","width":100,"caption":87.0,"height":67});
															thumbnails[7886423] = clik.newPhoto({"id":7886423,"src":"0086_46B06897-24E8-5EC4-4FF2A216A8EA1BBF_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886423.html","width":100,"caption":86.0,"height":67});
															thumbnails[7886422] = clik.newPhoto({"id":7886422,"src":"0085_46B065C8-24E8-5EC4-4FB092DAD272CF8F_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886422.html","width":67,"caption":85.0,"height":100});
															thumbnails[7886421] = clik.newPhoto({"id":7886421,"src":"0084_46B062CA-24E8-5EC4-4F523CF44387406E_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886421.html","width":100,"caption":84.0,"height":67});
															thumbnails[7886420] = clik.newPhoto({"id":7886420,"src":"0083_46B05FFB-24E8-5EC4-4F4BBB2013356377_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886420.html","width":67,"caption":83.0,"height":100});
															thumbnails[7886419] = clik.newPhoto({"id":7886419,"src":"0082_46B05CEE-24E8-5EC4-4FB1662E35862D65_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886419.html","width":100,"caption":82.0,"height":67});
															thumbnails[7886418] = clik.newPhoto({"id":7886418,"src":"0081_46B05A1F-24E8-5EC4-4FA630C9B84D7074_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886418.html","width":67,"caption":81.0,"height":100});
															thumbnails[7886417] = clik.newPhoto({"id":7886417,"src":"0080_46B05722-24E8-5EC4-4FC7AA02B8A86D33_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886417.html","width":67,"caption":80.0,"height":100});
															thumbnails[7886415] = clik.newPhoto({"id":7886415,"src":"0078_46B05155-24E8-5EC4-4FB1CD92C67B06DF_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886415.html","width":67,"caption":78.0,"height":100});
															thumbnails[7886412] = clik.newPhoto({"id":7886412,"src":"0075_46B047FF-24E8-5EC4-4FBEC24DF4ECAD5D_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886412.html","width":67,"caption":75.0,"height":100});
															thumbnails[7886411] = clik.newPhoto({"id":7886411,"src":"0074_46B04511-24E8-5EC4-4FE90D8416DC0922_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886411.html","width":100,"caption":74.0,"height":67});
															thumbnails[7886410] = clik.newPhoto({"id":7886410,"src":"0073_46B040FA-24E8-5EC4-4F7173381F9FE158_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886410.html","width":67,"caption":73.0,"height":100});
															thumbnails[7886408] = clik.newPhoto({"id":7886408,"src":"0072_46B03DFC-24E8-5EC4-4F35F31FDB0EC5D6_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886408.html","width":100,"caption":72.0,"height":67});
															thumbnails[7886407] = clik.newPhoto({"id":7886407,"src":"0071_46B03B1E-24E8-5EC4-4F855BBEA59944D1_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886407.html","width":100,"caption":71.0,"height":67});
															thumbnails[7886406] = clik.newPhoto({"id":7886406,"src":"0070_46B0383F-24E8-5EC4-4FEDA01070D924E0_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886406.html","width":100,"caption":70.0,"height":67});
															thumbnails[7886403] = clik.newPhoto({"id":7886403,"src":"0067_46B02F95-24E8-5EC4-4FD42CEB834D145A_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886403.html","width":67,"caption":67.0,"height":100});
															thumbnails[7886402] = clik.newPhoto({"id":7886402,"src":"0066_46B02C97-24E8-5EC4-4F7EC297A8053A74_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886402.html","width":67,"caption":66.0,"height":100});
															thumbnails[7886401] = clik.newPhoto({"id":7886401,"src":"0065_46B0297A-24E8-5EC4-4FD25B7631E143D2_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886401.html","width":67,"caption":65.0,"height":100});
															thumbnails[7886400] = clik.newPhoto({"id":7886400,"src":"0064_46B0268C-24E8-5EC4-4F8B4E7CF54C6438_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886400.html","width":67,"caption":64.0,"height":100});
															thumbnails[7886397] = clik.newPhoto({"id":7886397,"src":"0062_46B01F68-24E8-5EC4-4FF4A23B5E9AF5C0_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886397.html","width":100,"caption":62.0,"height":67});
															thumbnails[7886396] = clik.newPhoto({"id":7886396,"src":"0061_46B01C8A-24E8-5EC4-4F74F44859A3F542_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886396.html","width":100,"caption":61.0,"height":67});
															thumbnails[7886395] = clik.newPhoto({"id":7886395,"src":"0060_46B019BB-24E8-5EC4-4F227FAF853293BC_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886395.html","width":100,"caption":60.0,"height":67});
															thumbnails[7886394] = clik.newPhoto({"id":7886394,"src":"0059_46B016BD-24E8-5EC4-4F6D41AB1EDEA97F_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886394.html","width":100,"caption":59.0,"height":67});
															thumbnails[7886393] = clik.newPhoto({"id":7886393,"src":"0058_46B013BF-24E8-5EC4-4F973105DFED9F4A_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886393.html","width":100,"caption":58.0,"height":67});
															thumbnails[7886392] = clik.newPhoto({"id":7886392,"src":"0057_46B010A3-24E8-5EC4-4FC49339C8480FB9_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886392.html","width":100,"caption":57.0,"height":67});
															thumbnails[7886389] = clik.newPhoto({"id":7886389,"src":"0054_46B007F8-24E8-5EC4-4FB00FA42CA6D3B2_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886389.html","width":67,"caption":54.0,"height":100});
															thumbnails[7886388] = clik.newPhoto({"id":7886388,"src":"0053_46B004EB-24E8-5EC4-4F34EC61E9C2A2BF_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886388.html","width":100,"caption":53.0,"height":67});
															thumbnails[7886387] = clik.newPhoto({"id":7886387,"src":"0052_46B0021C-24E8-5EC4-4FA714F63331BC47_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886387.html","width":67,"caption":52.0,"height":100});
															thumbnails[7886386] = clik.newPhoto({"id":7886386,"src":"0051_46AFFF1E-24E8-5EC4-4F5F8A42C3943F3E_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886386.html","width":100,"caption":51.0,"height":67});
															thumbnails[7886385] = clik.newPhoto({"id":7886385,"src":"0050_46AFFC5F-24E8-5EC4-4FF792264C2A3415_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886385.html","width":67,"caption":50.0,"height":100});
															thumbnails[7886556] = clik.newPhoto({"id":7886556,"src":"0048_46BDBC46-24E8-5EC4-4F5703D20AF06685_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886556.html","width":67,"caption":48.0,"height":100});
															thumbnails[7886553] = clik.newPhoto({"id":7886553,"src":"0045_46BDB31F-24E8-5EC4-4F329CB354AB4EAE_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886553.html","width":67,"caption":45.0,"height":100});
															thumbnails[7886552] = clik.newPhoto({"id":7886552,"src":"0044_46BDAFC3-24E8-5EC4-4FDCCDB7744393B7_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886552.html","width":67,"caption":44.0,"height":100});
															thumbnails[7886551] = clik.newPhoto({"id":7886551,"src":"0043_46BDACD5-24E8-5EC4-4F908C0725785AEE_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886551.html","width":67,"caption":43.0,"height":100});
															thumbnails[7886550] = clik.newPhoto({"id":7886550,"src":"0042_46BDA9D8-24E8-5EC4-4F09E430D40AA00C_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886550.html","width":100,"caption":42.0,"height":67});
															thumbnails[7886549] = clik.newPhoto({"id":7886549,"src":"0041_46BDA69B-24E8-5EC4-4FFAA48F59D054E6_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886549.html","width":100,"caption":41.0,"height":67});
															thumbnails[7886548] = clik.newPhoto({"id":7886548,"src":"0040_46BDA350-24E8-5EC4-4F823B84B30DF701_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886548.html","width":100,"caption":40.0,"height":67});
															thumbnails[7886547] = clik.newPhoto({"id":7886547,"src":"0039_46BDA081-24E8-5EC4-4FE36D139D6AAEB0_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886547.html","width":100,"caption":39.0,"height":67});
															thumbnails[7886546] = clik.newPhoto({"id":7886546,"src":"0038_46BD9D26-24E8-5EC4-4F4E8032AFADE7C1_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886546.html","width":67,"caption":38.0,"height":100});
															thumbnails[7886545] = clik.newPhoto({"id":7886545,"src":"0037_46BD9A37-24E8-5EC4-4F85ECCA3F93973D_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886545.html","width":100,"caption":37.0,"height":67});
															thumbnails[7886544] = clik.newPhoto({"id":7886544,"src":"0036_46BD9769-24E8-5EC4-4F6FD6525E9801BB_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886544.html","width":67,"caption":36.0,"height":100});
															thumbnails[7886542] = clik.newPhoto({"id":7886542,"src":"0034_46BD912F-24E8-5EC4-4FA76C961D545986_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886542.html","width":67,"caption":34.0,"height":100});
															thumbnails[7886541] = clik.newPhoto({"id":7886541,"src":"0033_46BD8E22-24E8-5EC4-4FFFD62EC3E0DD94_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886541.html","width":100,"caption":33.0,"height":67});
															thumbnails[7886540] = clik.newPhoto({"id":7886540,"src":"0032_46BD8B53-24E8-5EC4-4F6BACE74A7EB987_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886540.html","width":100,"caption":32.0,"height":67});
															thumbnails[7886538] = clik.newPhoto({"id":7886538,"src":"0030_46BD8596-24E8-5EC4-4F3010E658D8F366_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886538.html","width":67,"caption":30.0,"height":100});
															thumbnails[7886537] = clik.newPhoto({"id":7886537,"src":"0029_46BD8298-24E8-5EC4-4F87006810C42E1C_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886537.html","width":67,"caption":29.0,"height":100});
															thumbnails[7886536] = clik.newPhoto({"id":7886536,"src":"0028_46BD7F9B-24E8-5EC4-4F808446965FF9A3_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886536.html","width":100,"caption":28.0,"height":67});
															thumbnails[7886534] = clik.newPhoto({"id":7886534,"src":"0026_46BD7990-24E8-5EC4-4F3213F6FF60DA04_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886534.html","width":67,"caption":26.0,"height":100});
															thumbnails[7886533] = clik.newPhoto({"id":7886533,"src":"0025_46BD7692-24E8-5EC4-4FD362CC984F08F5_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886533.html","width":67,"caption":25.0,"height":100});
															thumbnails[7886531] = clik.newPhoto({"id":7886531,"src":"0023_46BD6F8D-24E8-5EC4-4F6A58C541E1AD12_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886531.html","width":67,"caption":23.0,"height":100});
															thumbnails[7886527] = clik.newPhoto({"id":7886527,"src":"0019_46BD6155-24E8-5EC4-4F261B376445D059_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886527.html","width":67,"caption":19.0,"height":100});
															thumbnails[7886522] = clik.newPhoto({"id":7886522,"src":"0014_46BD4FD0-24E8-5EC4-4F8B8701D708B599_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886522.html","width":67,"caption":14.0,"height":100});
															thumbnails[7886521] = clik.newPhoto({"id":7886521,"src":"0013_46BD4C84-24E8-5EC4-4F8360A335663997_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886521.html","width":100,"caption":13.0,"height":67});
															thumbnails[7886520] = clik.newPhoto({"id":7886520,"src":"0012_46BD4977-24E8-5EC4-4F5CF2443D684D0B_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886520.html","width":67,"caption":12.0,"height":100});
															thumbnails[7886519] = clik.newPhoto({"id":7886519,"src":"0011_46BD462B-24E8-5EC4-4F2F8E432561B85F_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886519.html","width":100,"caption":11.0,"height":67});
															thumbnails[7886517] = clik.newPhoto({"id":7886517,"src":"0009_46BD3F65-24E8-5EC4-4FD7D79DE6A33C5D_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886517.html","width":67,"caption":9.0,"height":100});
															thumbnails[7886516] = clik.newPhoto({"id":7886516,"src":"0008_46BD3C77-24E8-5EC4-4FA309BC1F96D7BB_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886516.html","width":67,"caption":8.0,"height":100});
															thumbnails[7886514] = clik.newPhoto({"id":7886514,"src":"0006_46BD366C-24E8-5EC4-4FB479A36EE2DF81_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886514.html","width":100,"caption":6.0,"height":67});
															thumbnails[7886513] = clik.newPhoto({"id":7886513,"src":"0005_46BD339D-24E8-5EC4-4FF7BE93405F33F3_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886513.html","width":67,"caption":5.0,"height":100});
															thumbnails[7886512] = clik.newPhoto({"id":7886512,"src":"0004_46BD30AF-24E8-5EC4-4F8BD44893EE07ED_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886512.html","width":100,"caption":4.0,"height":67});
															thumbnails[7886511] = clik.newPhoto({"id":7886511,"src":"0003_46BD2DF0-24E8-5EC4-4F885070C8A14EA7_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886511.html","width":67,"caption":3.0,"height":100});
															thumbnails[7886510] = clik.newPhoto({"id":7886510,"src":"0002_46BD2AE3-24E8-5EC4-4FD19C80583427EC_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886510.html","width":100,"caption":2.0,"height":67});
															thumbnails[7886509] = clik.newPhoto({"id":7886509,"src":"0001_46BD2814-24E8-5EC4-4F5A7B93FD071C6E_thumb.jpg","galleries_id":425544,"server_id":1,"link":"photo_7886509.html","width":67,"caption":1.0,"height":100});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[425544] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding","link":"gallery_425544.html","maxRecords":0.0,"photoIDs":[7886207.0,7886205.0,7886204.0,7886202.0,7886201.0,7886200.0,7886197.0,7886196.0,7886195.0,7886194.0,7886192.0,7886189.0,7886187.0,7886186.0,7886185.0,7886184.0,7886182.0,7886181.0,7886179.0,7886175.0,7886174.0,7886436.0,7886435.0,7886434.0,7886433.0,7886432.0,7886431.0,7886430.0,7886429.0,7886428.0,7886427.0,7886425.0,7886424.0,7886423.0,7886422.0,7886421.0,7886420.0,7886419.0,7886418.0,7886417.0,7886415.0,7886412.0,7886411.0,7886410.0,7886408.0,7886407.0,7886406.0,7886403.0,7886402.0,7886401.0,7886400.0,7886397.0,7886396.0,7886395.0,7886394.0,7886393.0,7886392.0,7886389.0,7886388.0,7886387.0,7886386.0,7886385.0,7886556.0,7886553.0,7886552.0,7886551.0,7886550.0,7886549.0,7886548.0,7886547.0,7886546.0,7886545.0,7886544.0,7886542.0,7886541.0,7886540.0,7886538.0,7886537.0,7886536.0,7886534.0,7886533.0,7886531.0,7886527.0,7886522.0,7886521.0,7886520.0,7886519.0,7886517.0,7886516.0,7886514.0,7886513.0,7886512.0,7886511.0,7886510.0,7886509.0],"skipIndex":0,"section_code":"gallery","featured_images":"7886556,7886553,7886552,7886551,7886550,7886549,7886548,7886547,7886546,7886545","id":425544,"singleSection":false});				  						galleries[425940] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Albums  Frames","link":"gallery_425940.html","maxRecords":0.0,"photoIDs":[7895831.0,7895832.0,7895833.0,7895834.0,7895835.0],"skipIndex":0,"section_code":"gallery","featured_images":7895831.0,"id":425940,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7886200';
imageSets[2] = '7895831';
imageSets[3] = '7895835,7895834,7895833,7895832,7895831,7886556,7886553,7886552,7886551,7886550,7886549,7886548,7886547,7886546,7886545,7886544,7886542,7886541,7886540,7886538,7886537,7886536,7886534,7886533,7886531,7886527,7886522,7886521,7886520,7886519,7886517,7886516,7886514,7886513,7886512,7886511,7886510,7886509,7886436,7886435,7886434,7886433,7886432,7886431,7886430,7886429,7886428,7886427,7886425,7886424';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Sewell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Sewell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Sewell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Sewell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Sewell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Sewell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Sewell/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Stuart Sewell Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="stuartsewellphotography@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="stuartsewellphotography@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

