window.thumbnails = {};
															thumbnails[3820132] = clik.newPhoto({"id":3820132,"src":"WEB_ALBUMS_FORWEB_2_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":163,"caption":"","height":200});
															thumbnails[8835596] = clik.newPhoto({"id":8835596,"src":"FP_10051_9612CC38-24E8-5EC4-4FF9DE93773AD985_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835596.html","width":130,"caption":"P 1010","height":87});
															thumbnails[8835597] = clik.newPhoto({"id":8835597,"src":"P_1020_94679163-24E8-5EC4-4F9A9E23EED68F95_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835597.html","width":87,"caption":"P 1020","height":130});
															thumbnails[8835599] = clik.newPhoto({"id":8835599,"src":"P_1030_9467DC5C-24E8-5EC4-4FE1C8EEF5EE285C_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835599.html","width":130,"caption":"P 1030","height":87});
															thumbnails[8835600] = clik.newPhoto({"id":8835600,"src":"P_1040_946824DE-24E8-5EC4-4F55731E6886AA15_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835600.html","width":130,"caption":"P 1040","height":87});
															thumbnails[8835601] = clik.newPhoto({"id":8835601,"src":"P_1050_94687110-24E8-5EC4-4F412CCFB2151F51_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835601.html","width":130,"caption":"P 1050","height":87});
															thumbnails[8835603] = clik.newPhoto({"id":8835603,"src":"P_1060_9468B486-24E8-5EC4-4FC3AE9DB8E0DB75_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835603.html","width":87,"caption":"P 1060","height":130});
															thumbnails[8835604] = clik.newPhoto({"id":8835604,"src":"P_1070_94690171-24E8-5EC4-4F3A0A0952B0DC78_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835604.html","width":87,"caption":"P 1070","height":130});
															thumbnails[8835606] = clik.newPhoto({"id":8835606,"src":"P_1080_94695A27-24E8-5EC4-4F7083B24C4FEACB_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835606.html","width":130,"caption":"P 1080","height":87});
															thumbnails[8835607] = clik.newPhoto({"id":8835607,"src":"P_1090_9469B9B0-24E8-5EC4-4F2C1E806D2F1206_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835607.html","width":130,"caption":"P 1090","height":107});
															thumbnails[8835609] = clik.newPhoto({"id":8835609,"src":"P_1100_946A1525-24E8-5EC4-4F82DB68580B94AA_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835609.html","width":130,"caption":"P 1100","height":98});
															thumbnails[8835610] = clik.newPhoto({"id":8835610,"src":"P_1110_946A71CF-24E8-5EC4-4FA6F750D467040A_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835610.html","width":130,"caption":"P 1110","height":87});
															thumbnails[8835612] = clik.newPhoto({"id":8835612,"src":"P_1120_946ADCC2-24E8-5EC4-4FA00D73E281045F_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835612.html","width":130,"caption":"P 1120","height":130});
															thumbnails[8835613] = clik.newPhoto({"id":8835613,"src":"P_1130_946B4396-24E8-5EC4-4FA39401542A723A_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835613.html","width":87,"caption":"P 1130","height":130});
															thumbnails[8835615] = clik.newPhoto({"id":8835615,"src":"P_1140_946BC42A-24E8-5EC4-4FCC69A8FBBF9A83_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835615.html","width":98,"caption":"P 1140","height":130});
															thumbnails[8835616] = clik.newPhoto({"id":8835616,"src":"P_1150_946C1A02-24E8-5EC4-4F9013C166E0F005_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835616.html","width":130,"caption":"P 1150","height":87});
															thumbnails[8835618] = clik.newPhoto({"id":8835618,"src":"P_1160_946C61E6-24E8-5EC4-4FFB4E1DE0F458E1_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835618.html","width":130,"caption":"P 1160","height":98});
															thumbnails[8835619] = clik.newPhoto({"id":8835619,"src":"P_1170_946CB43E-24E8-5EC4-4FD5DEC2259B97CB_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835619.html","width":86,"caption":"P 1170","height":130});
															thumbnails[8835621] = clik.newPhoto({"id":8835621,"src":"P_1180_946D10E5-24E8-5EC4-4F3315C2E13299FA_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835621.html","width":87,"caption":"P 1180","height":130});
															thumbnails[8835622] = clik.newPhoto({"id":8835622,"src":"P_1190_946D7163-24E8-5EC4-4FA0AF2641B6534E_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835622.html","width":130,"caption":"P 1190","height":87});
															thumbnails[8835624] = clik.newPhoto({"id":8835624,"src":"P_1200_946DF038-24E8-5EC4-4F68397D01FA4772_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835624.html","width":130,"caption":"P 1200","height":117});
															thumbnails[8835625] = clik.newPhoto({"id":8835625,"src":"P_1210_946E4AC6-24E8-5EC4-4F99F3539078F880_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835625.html","width":88,"caption":"P 1210","height":130});
															thumbnails[8835627] = clik.newPhoto({"id":8835627,"src":"P_1220_946ECD1A-24E8-5EC4-4FEA01A64BA71877_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835627.html","width":87,"caption":"P 1220","height":130});
															thumbnails[8835630] = clik.newPhoto({"id":8835630,"src":"P_1230_946F29FD-24E8-5EC4-4FF38C7A56DBD140_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835630.html","width":130,"caption":"P 1230","height":86});
															thumbnails[8835631] = clik.newPhoto({"id":8835631,"src":"P_1240_946F79F9-24E8-5EC4-4F85B2DDD76CB027_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835631.html","width":130,"caption":"P 1240","height":87});
															thumbnails[8835633] = clik.newPhoto({"id":8835633,"src":"P_1250_946FE236-24E8-5EC4-4F3743267A7B2A07_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835633.html","width":130,"caption":"P 1250","height":130});
															thumbnails[8835634] = clik.newPhoto({"id":8835634,"src":"P_1260_94704828-24E8-5EC4-4F70D7315B1F560F_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835634.html","width":120,"caption":"P 1260","height":130});
															thumbnails[8835637] = clik.newPhoto({"id":8835637,"src":"P_1270_9470A3A0-24E8-5EC4-4F5A4E1A6B30164B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835637.html","width":130,"caption":"P 1270","height":104});
															thumbnails[8835638] = clik.newPhoto({"id":8835638,"src":"P_1280_94711334-24E8-5EC4-4F0E617599609BD3_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835638.html","width":93,"caption":"P 1280","height":130});
															thumbnails[8835640] = clik.newPhoto({"id":8835640,"src":"P_1290_94716732-24E8-5EC4-4F01B907D52F9699_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835640.html","width":87,"caption":"P 1290","height":130});
															thumbnails[8835641] = clik.newPhoto({"id":8835641,"src":"P_1300_9471D1A5-24E8-5EC4-4F224A26383C96AD_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835641.html","width":130,"caption":"P 1300","height":87});
															thumbnails[8835643] = clik.newPhoto({"id":8835643,"src":"P_1310_94723B28-24E8-5EC4-4F677596F79F7B90_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835643.html","width":130,"caption":"P 1310","height":87});
															thumbnails[8835644] = clik.newPhoto({"id":8835644,"src":"P_1320_94728B43-24E8-5EC4-4FFA66302C6F3227_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835644.html","width":130,"caption":"P 1320","height":72});
															thumbnails[8835646] = clik.newPhoto({"id":8835646,"src":"P_1330_9472FF48-24E8-5EC4-4F695EC00289DCC7_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835646.html","width":98,"caption":"P 1330","height":130});
															thumbnails[8835648] = clik.newPhoto({"id":8835648,"src":"P_1340_947353B1-24E8-5EC4-4FC29779913BF41B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835648.html","width":102,"caption":"P 1340","height":130});
															thumbnails[8835649] = clik.newPhoto({"id":8835649,"src":"P_1350_9473DA9E-24E8-5EC4-4F715266EAF48DFF_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835649.html","width":130,"caption":"P 1350","height":122});
															thumbnails[8835652] = clik.newPhoto({"id":8835652,"src":"P_1360_94745D91-24E8-5EC4-4F0F2DE281FF7F88_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835652.html","width":91,"caption":"P 1360","height":130});
															thumbnails[8835654] = clik.newPhoto({"id":8835654,"src":"P_1370_9474EC8F-24E8-5EC4-4F2C11B0187D891D_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835654.html","width":130,"caption":"P 1370","height":97});
															thumbnails[8835655] = clik.newPhoto({"id":8835655,"src":"P_1380_947556E2-24E8-5EC4-4F4B29C3216F8DA7_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835655.html","width":88,"caption":"P 1380","height":130});
															thumbnails[8835657] = clik.newPhoto({"id":8835657,"src":"P_1390_9475AEB1-24E8-5EC4-4F07392E2B297E0B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835657.html","width":88,"caption":"P 1390","height":130});
															thumbnails[8835658] = clik.newPhoto({"id":8835658,"src":"P_1400_94760074-24E8-5EC4-4F624366B86CA2E6_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835658.html","width":130,"caption":"P 1400","height":87});
															thumbnails[8835659] = clik.newPhoto({"id":8835659,"src":"P_1410_94764964-24E8-5EC4-4F7B623690697C23_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835659.html","width":130,"caption":"P 1410","height":64});
															thumbnails[8835661] = clik.newPhoto({"id":8835661,"src":"P_1420_94769E69-24E8-5EC4-4F0C446609655DCD_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835661.html","width":130,"caption":"P 1420","height":130});
															thumbnails[8835662] = clik.newPhoto({"id":8835662,"src":"P_1430_94770C83-24E8-5EC4-4FC2328F74C35E4E_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835662.html","width":101,"caption":"P 1430","height":130});
															thumbnails[8835664] = clik.newPhoto({"id":8835664,"src":"P_1440_94776D26-24E8-5EC4-4F11664BD8A6156B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835664.html","width":87,"caption":"P 1440","height":130});
															thumbnails[8835665] = clik.newPhoto({"id":8835665,"src":"P_1450_9477DAF8-24E8-5EC4-4F80660FEA667738_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835665.html","width":84,"caption":"P 1450","height":130});
															thumbnails[8835667] = clik.newPhoto({"id":8835667,"src":"P_1460_94782CFB-24E8-5EC4-4FD141293FDC5572_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835667.html","width":130,"caption":"P 1460","height":98});
															thumbnails[8835668] = clik.newPhoto({"id":8835668,"src":"P_1470_94788F09-24E8-5EC4-4FE2DF3742408AAB_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835668.html","width":87,"caption":"P 1470","height":130});
															thumbnails[8835670] = clik.newPhoto({"id":8835670,"src":"P_1480_9478F164-24E8-5EC4-4F3F6B2A889EE19F_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835670.html","width":87,"caption":"P 1480","height":130});
															thumbnails[8835671] = clik.newPhoto({"id":8835671,"src":"P_1490_947955CC-24E8-5EC4-4F5AFC95E45A2D04_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835671.html","width":87,"caption":"P 1490","height":130});
															thumbnails[8835673] = clik.newPhoto({"id":8835673,"src":"P_1500_9479A71D-24E8-5EC4-4F73D795FAF9C416_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835673.html","width":80,"caption":"P 1500","height":130});
															thumbnails[8835674] = clik.newPhoto({"id":8835674,"src":"P_1510_947A1B57-24E8-5EC4-4F1DD26808EBCDFE_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835674.html","width":88,"caption":"P 1510","height":130});
															thumbnails[8835676] = clik.newPhoto({"id":8835676,"src":"P_1520_947A7046-24E8-5EC4-4FB3C23CA6FEDA9B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835676.html","width":130,"caption":"P 1520","height":98});
															thumbnails[8835677] = clik.newPhoto({"id":8835677,"src":"P_1530_947AF534-24E8-5EC4-4F1A96F0EB056776_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835677.html","width":130,"caption":"P 1530","height":86});
															thumbnails[8835679] = clik.newPhoto({"id":8835679,"src":"P_1540_947B5273-24E8-5EC4-4FCB03714A8E8772_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835679.html","width":130,"caption":"P 1540","height":76});
															thumbnails[8835680] = clik.newPhoto({"id":8835680,"src":"P_1550_947BD156-24E8-5EC4-4FD51FC57A744C47_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835680.html","width":87,"caption":"P 1550","height":130});
															thumbnails[8835682] = clik.newPhoto({"id":8835682,"src":"P_1560_947C4C95-24E8-5EC4-4FF79CFD24373AC5_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835682.html","width":130,"caption":"P 1560","height":87});
															thumbnails[8835684] = clik.newPhoto({"id":8835684,"src":"P_1570_947CE040-24E8-5EC4-4F32FECE0B8957FF_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835684.html","width":130,"caption":"P 1570","height":110});
															thumbnails[8835686] = clik.newPhoto({"id":8835686,"src":"P_1580_947D766E-24E8-5EC4-4F69F238B9136474_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835686.html","width":130,"caption":"P 1580","height":129});
															thumbnails[8835688] = clik.newPhoto({"id":8835688,"src":"P_1590_947DF038-24E8-5EC4-4FBC27D55B859875_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835688.html","width":130,"caption":"P 1590","height":87});
															thumbnails[8835690] = clik.newPhoto({"id":8835690,"src":"P_1600_947E7603-24E8-5EC4-4FF448C0B3005152_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835690.html","width":130,"caption":"P 1600","height":130});
															thumbnails[8835698] = clik.newPhoto({"id":8835698,"src":"P_1610_94843EB0-24E8-5EC4-4F6672AEAB59486B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835698.html","width":104,"caption":"P 1610","height":130});
															thumbnails[8835699] = clik.newPhoto({"id":8835699,"src":"P_1620_9484B14F-24E8-5EC4-4FA4FCE2C11CF69C_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835699.html","width":120,"caption":"P 1620","height":130});
															thumbnails[8835701] = clik.newPhoto({"id":8835701,"src":"P_1630_94852AAC-24E8-5EC4-4FE907DDE4DE2FE7_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835701.html","width":130,"caption":"P 1630","height":87});
															thumbnails[8835703] = clik.newPhoto({"id":8835703,"src":"P_1640_94858D00-24E8-5EC4-4F96D73C055B3EFD_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835703.html","width":130,"caption":"P 1640","height":96});
															thumbnails[8835704] = clik.newPhoto({"id":8835704,"src":"P_1650_9485E84D-24E8-5EC4-4FD9DFC2D895163A_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835704.html","width":130,"caption":"P 1650","height":87});
															thumbnails[8835706] = clik.newPhoto({"id":8835706,"src":"P_1660_94863F3B-24E8-5EC4-4FE3F9201CA90D24_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835706.html","width":130,"caption":"P 1660","height":98});
															thumbnails[8835707] = clik.newPhoto({"id":8835707,"src":"P_1670_9486B5D2-24E8-5EC4-4FCB9B2D7CE946A2_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835707.html","width":130,"caption":"P 1670","height":87});
															thumbnails[8835709] = clik.newPhoto({"id":8835709,"src":"P_1680_9487428D-24E8-5EC4-4FF48783591C16CD_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835709.html","width":120,"caption":"P 1680","height":130});
															thumbnails[8835710] = clik.newPhoto({"id":8835710,"src":"P_1690_9487B736-24E8-5EC4-4FFB7CE5B5242E44_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835710.html","width":130,"caption":"P 1690","height":130});
															thumbnails[8835712] = clik.newPhoto({"id":8835712,"src":"P_1700_94882797-24E8-5EC4-4F13A9BE2E87111B_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835712.html","width":130,"caption":"P 1700","height":87});
															thumbnails[8835713] = clik.newPhoto({"id":8835713,"src":"P_1710_948899A5-24E8-5EC4-4FE4BBE03AD124DA_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835713.html","width":130,"caption":"P 1710","height":78});
															thumbnails[8835716] = clik.newPhoto({"id":8835716,"src":"P_1720_94890F20-24E8-5EC4-4FC9472D662FB3EB_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835716.html","width":130,"caption":"P 1720","height":87});
															thumbnails[8835717] = clik.newPhoto({"id":8835717,"src":"P_1730_94897478-24E8-5EC4-4F55C0CBCB854EF9_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835717.html","width":130,"caption":"P 1730","height":96});
															thumbnails[8835719] = clik.newPhoto({"id":8835719,"src":"P_1740_9489D948-24E8-5EC4-4FAF2419D0ACC0CE_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835719.html","width":130,"caption":"P 1740","height":69});
															thumbnails[8835720] = clik.newPhoto({"id":8835720,"src":"P_1750_948A3FC5-24E8-5EC4-4F58F1994BA12F59_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835720.html","width":130,"caption":"P 1750","height":68});
															thumbnails[8835722] = clik.newPhoto({"id":8835722,"src":"P_1760_948ABA1F-24E8-5EC4-4F3A93E341B0C6CE_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835722.html","width":116,"caption":"P 1760","height":130});
															thumbnails[8835724] = clik.newPhoto({"id":8835724,"src":"P_1770_948B3C55-24E8-5EC4-4F3DE9B663E0E2A2_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835724.html","width":130,"caption":"P 1770","height":92});
															thumbnails[8835725] = clik.newPhoto({"id":8835725,"src":"P_1780_948BBAD0-24E8-5EC4-4F499B4A65220AB5_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835725.html","width":130,"caption":"P 1780","height":87});
															thumbnails[8835727] = clik.newPhoto({"id":8835727,"src":"P_1790_948C3037-24E8-5EC4-4F6E1038A6A3DF85_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835727.html","width":130,"caption":"P 1790","height":130});
															thumbnails[8835728] = clik.newPhoto({"id":8835728,"src":"P_1800_948C9269-24E8-5EC4-4F9EE273438EFEEE_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835728.html","width":87,"caption":"P 1800","height":130});
															thumbnails[8835730] = clik.newPhoto({"id":8835730,"src":"P_1810_948CE8C6-24E8-5EC4-4F042174BF98477C_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835730.html","width":100,"caption":"P 1810","height":130});
															thumbnails[8835731] = clik.newPhoto({"id":8835731,"src":"P_1820_948D5C2C-24E8-5EC4-4F9DBA30412B1E0C_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835731.html","width":86,"caption":"P 1820","height":130});
															thumbnails[8835733] = clik.newPhoto({"id":8835733,"src":"P_1830_948DAF93-24E8-5EC4-4FC697E5DDFA0AA3_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835733.html","width":130,"caption":"P 1830","height":87});
															thumbnails[8835734] = clik.newPhoto({"id":8835734,"src":"P_1840_948E0BDE-24E8-5EC4-4F0A1ED1FE5C8032_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835734.html","width":130,"caption":"P 1840","height":87});
															thumbnails[8835736] = clik.newPhoto({"id":8835736,"src":"P_1850_948E6DFD-24E8-5EC4-4F0AB577375342AA_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835736.html","width":130,"caption":"P 1850","height":87});
															thumbnails[8835737] = clik.newPhoto({"id":8835737,"src":"P_1860_948EB5B1-24E8-5EC4-4FB99ED353A8D91C_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835737.html","width":130,"caption":"P 1860","height":90});
															thumbnails[8835739] = clik.newPhoto({"id":8835739,"src":"P_1870_948F06BF-24E8-5EC4-4F6240F2A57E08D5_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835739.html","width":92,"caption":"P 1870","height":130});
															thumbnails[8835740] = clik.newPhoto({"id":8835740,"src":"P_1880_948F6A0B-24E8-5EC4-4FB17271875012AB_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835740.html","width":130,"caption":"P 1880","height":91});
															thumbnails[8835743] = clik.newPhoto({"id":8835743,"src":"P_1890_948FC56C-24E8-5EC4-4FD3B5A4306D3491_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835743.html","width":87,"caption":"P 1890","height":130});
															thumbnails[8835744] = clik.newPhoto({"id":8835744,"src":"P_1900_94902693-24E8-5EC4-4F124C9E927E2591_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835744.html","width":87,"caption":"P 1900","height":130});
															thumbnails[8835747] = clik.newPhoto({"id":8835747,"src":"P_1910_94907F75-24E8-5EC4-4F3318915526694A_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835747.html","width":130,"caption":"P 1910","height":87});
															thumbnails[8835748] = clik.newPhoto({"id":8835748,"src":"P_1920_9490CCE5-24E8-5EC4-4F1E0A32BC76A152_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835748.html","width":130,"caption":"P 1920","height":87});
															thumbnails[8835749] = clik.newPhoto({"id":8835749,"src":"P_1930_949129AE-24E8-5EC4-4FE43BF284D3E3DC_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835749.html","width":130,"caption":"P 1930","height":89});
															thumbnails[8835751] = clik.newPhoto({"id":8835751,"src":"P_1940_94917C08-24E8-5EC4-4FE74E623721EF13_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835751.html","width":130,"caption":"P 1940","height":87});
															thumbnails[8835752] = clik.newPhoto({"id":8835752,"src":"P_1950_9491DD41-24E8-5EC4-4FD4CC56014F2C30_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835752.html","width":130,"caption":"P 1950","height":87});
															thumbnails[8835755] = clik.newPhoto({"id":8835755,"src":"P_1960_94923B71-24E8-5EC4-4F700DDC425BAC88_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835755.html","width":89,"caption":"P 1960","height":130});
															thumbnails[8835756] = clik.newPhoto({"id":8835756,"src":"P_1970_94929089-24E8-5EC4-4F1F34756CBF79D6_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835756.html","width":87,"caption":"P 1970","height":130});
															thumbnails[8835758] = clik.newPhoto({"id":8835758,"src":"P_1980_9492E1DD-24E8-5EC4-4FF1FBC0B70D5640_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835758.html","width":97,"caption":"P 1980","height":130});
															thumbnails[8835759] = clik.newPhoto({"id":8835759,"src":"P_1990_94934BB9-24E8-5EC4-4FBBFFC8072BBB99_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835759.html","width":130,"caption":"P 1990","height":87});
															thumbnails[8835761] = clik.newPhoto({"id":8835761,"src":"P_2000_94941990-24E8-5EC4-4F0A1DB6AFBB41F7_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835761.html","width":130,"caption":"P 2000","height":123});
															thumbnails[8835762] = clik.newPhoto({"id":8835762,"src":"P_2010_9494EB95-24E8-5EC4-4F06155768543A90_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835762.html","width":87,"caption":"P 2010","height":130});
															thumbnails[8835764] = clik.newPhoto({"id":8835764,"src":"P_2020_949571E0-24E8-5EC4-4FBC1B646CB62011_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835764.html","width":87,"caption":"P 2020","height":130});
															thumbnails[8835766] = clik.newPhoto({"id":8835766,"src":"P_2030_9495E33D-24E8-5EC4-4F33E20DD6897616_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835766.html","width":130,"caption":"P 2030","height":130});
															thumbnails[8835767] = clik.newPhoto({"id":8835767,"src":"P_2040_9496462D-24E8-5EC4-4F94EBA1C2FFD81E_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835767.html","width":130,"caption":"P 2040","height":87});
															thumbnails[8835769] = clik.newPhoto({"id":8835769,"src":"P_2050_94969D24-24E8-5EC4-4FD40EAC9E778CA4_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835769.html","width":130,"caption":"P 2050","height":87});
															thumbnails[8835770] = clik.newPhoto({"id":8835770,"src":"P_2060_9496E994-24E8-5EC4-4F67754B4220B4F2_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835770.html","width":87,"caption":"P 2060","height":130});
															thumbnails[8835772] = clik.newPhoto({"id":8835772,"src":"P_2070_949741F3-24E8-5EC4-4F1DA19AF206BA90_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835772.html","width":130,"caption":"P 2070","height":130});
															thumbnails[8835773] = clik.newPhoto({"id":8835773,"src":"P_2080_9497A3BE-24E8-5EC4-4F0D58EFC1CBBE85_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8835773.html","width":87,"caption":"P 2080","height":130});
															thumbnails[8803798] = clik.newPhoto({"id":8803798,"src":"9_SLIDE_BW_TEST_thumb.JPG","galleries_id":101766,"server_id":1,"link":"photo_8803798.html","width":130,"caption":2110.0,"height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[101766] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"WEDDING PHOTOGRAPHY PORTFOLIO","link":"section136327.html","maxRecords":0.0,"photoIDs":[8835596.0,8835597.0,8835599.0,8835600.0,8835601.0,8835603.0,8835604.0,8835606.0,8835607.0,8835609.0,8835610.0,8835612.0,8835613.0,8835615.0,8835616.0,8835618.0,8835619.0,8835621.0,8835622.0,8835624.0,8835625.0,8835627.0,8835630.0,8835631.0,8835633.0,8835634.0,8835637.0,8835638.0,8835640.0,8835641.0,8835643.0,8835644.0,8835646.0,8835648.0,8835649.0,8835652.0,8835654.0,8835655.0,8835657.0,8835658.0,8835659.0,8835661.0,8835662.0,8835664.0,8835665.0,8835667.0,8835668.0,8835670.0,8835671.0,8835673.0,8835674.0,8835676.0,8835677.0,8835679.0,8835680.0,8835682.0,8835684.0,8835686.0,8835688.0,8835690.0,8835698.0,8835699.0,8835701.0,8835703.0,8835704.0,8835706.0,8835707.0,8835709.0,8835710.0,8835712.0,8835713.0,8835716.0,8835717.0,8835719.0,8835720.0,8835722.0,8835724.0,8835725.0,8835727.0,8835728.0,8835730.0,8835731.0,8835733.0,8835734.0,8835736.0,8835737.0,8835739.0,8835740.0,8835743.0,8835744.0,8835747.0,8835748.0,8835749.0,8835751.0,8835752.0,8835755.0,8835756.0,8835758.0,8835759.0,8835761.0,8835762.0,8835764.0,8835766.0,8835767.0,8835769.0,8835770.0,8835772.0,8835773.0,8803798.0],"skipIndex":0,"section_code":"section136327","featured_images":8835596.0,"id":101766,"singleSection":true});				  						galleries[118168] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BLACK AND WHITE","link":"gallery_118168.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":118168,"singleSection":false});				  						galleries[151420] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Marlene and David - 7th July 2011","link":"section521695.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section521695","featured_images":"","id":151420,"singleSection":true});				  						galleries[152914] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SPARE TWO ( COPY TEMPLATE )","link":"gallery_152914.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":152914,"singleSection":false});				  						galleries[175808] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SPARE THREE","link":"gallery_175808.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":175808,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8835596,8835597,8835599,8835600,8835601,8835603,8835604,8835606,8835607,8835609,8835610,8835612,8835613,8835615,8835616,8835618,8835619,8835621,8835622,8835624,8835625,8835627,8835630,8835631,8835633,8835634,8835637,8835638,8835640,8835641,8835643,8835644,8835646,8835648,8835649,8835652,8835654,8835655,8835657,8835658,8835659,8835661,8835662,8835664,8835665,8835667,8835668,8835670,8835671,8835673,8835674,8835676,8835677,8835679,8835680,8835682,8835684,8835686,8835688,8835690,8835698,8835699,8835701,8835703,8835704,8835706,8835707,8835709,8835710,8835712,8835713,8835716,8835717,8835719,8835720,8835722,8835724,8835725,8835727,8835728,8835730,8835731,8835733,8835734,8835736,8835737,8835739,8835740,8835743,8835744,8835747,8835748,8835749,8835751,8835752,8835755,8835756,8835758,8835759,8835761,8835762,8835764,8835766,8835767,8835769,8835770,8835772,8835773,8803798';
imageSets[2] = '8835596';
imageSets[3] = '8835773,8835772,8835770,8835769,8835767,8835766,8835764,8835762,8835761,8835759,8835758,8835756,8835755,8835752,8835751,8835749,8835748,8835747,8835744,8835743,8835740,8835739,8835737,8835736,8835734,8835733,8835731,8835730,8835728,8835727,8835725,8835724,8835722,8835720,8835719,8835717,8835716,8835713,8835712,8835710,8835709,8835707,8835706,8835704,8835703,8835701,8835699,8835698,8835690,8835688';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nicholasrokans/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/nicholasrokans/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 += 'section136327.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 && 'section136327' != '') {
					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 = 'Wedding Photographer in East Lothian and Edinburgh: ' + 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><strong>Buy now using PayPal</strong></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><p><strong>Select an option to buy it using PayPal. <p>When you have finished ordering, please go to the PRINT ORDERS section to complete the ordering and payment process.<P>.</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="NICHOLASROKANS">';
			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;
	}
}

			

