window.thumbnails = {};
															thumbnails[9070003] = clik.newPhoto({"id":9070003,"src":"W4-1_83E52683-1EC9-D45B-1CD54A5DEE2FE29E_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070003.html","width":130,"caption":"W4-1","height":194});
															thumbnails[9070004] = clik.newPhoto({"id":9070004,"src":"W4-2_83E57FE1-1EC9-D45B-1C8BC62737BB89EE_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070004.html","width":130,"caption":"W4-2","height":194});
															thumbnails[9070005] = clik.newPhoto({"id":9070005,"src":"W4-3_83E6168D-1EC9-D45B-1C5BE56CA644AF79_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070005.html","width":130,"caption":"W4-3","height":194});
															thumbnails[9070006] = clik.newPhoto({"id":9070006,"src":"W4-4_83E65E72-1EC9-D45B-1C8F22FE1232765C_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070006.html","width":130,"caption":"W4-4","height":194});
															thumbnails[9070009] = clik.newPhoto({"id":9070009,"src":"W4-5_83E6B29E-1EC9-D45B-1C023130C5966725_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070009.html","width":130,"caption":"W4-5","height":194});
															thumbnails[9070010] = clik.newPhoto({"id":9070010,"src":"W4-6_83E6FBC2-1EC9-D45B-1C5931D9170FDBE9_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070010.html","width":130,"caption":"W4-6","height":194});
															thumbnails[9070011] = clik.newPhoto({"id":9070011,"src":"W4-7_83E76584-1EC9-D45B-1CC7D096B9F097B4_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070011.html","width":130,"caption":"W4-7","height":194});
															thumbnails[9070012] = clik.newPhoto({"id":9070012,"src":"W4-8_83E7B828-1EC9-D45B-1C2DFF4DC999970E_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070012.html","width":130,"caption":"W4-8","height":194});
															thumbnails[9070013] = clik.newPhoto({"id":9070013,"src":"W4-9_83E80529-1EC9-D45B-1C4DE11966D2175D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070013.html","width":130,"caption":"W4-9","height":87});
															thumbnails[9070014] = clik.newPhoto({"id":9070014,"src":"W4-10_83E85B51-1EC9-D45B-1CB5D55AAFC1FB83_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070014.html","width":130,"caption":"W4-10","height":87});
															thumbnails[9070015] = clik.newPhoto({"id":9070015,"src":"W4-11_83E8AD1E-1EC9-D45B-1CB75835112D1228_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070015.html","width":130,"caption":"W4-11","height":194});
															thumbnails[9070016] = clik.newPhoto({"id":9070016,"src":"W4-12_83E8FBB9-1EC9-D45B-1C5A87384B9CA473_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070016.html","width":130,"caption":"W4-12","height":194});
															thumbnails[9070017] = clik.newPhoto({"id":9070017,"src":"W4-13_83E942D1-1EC9-D45B-1C7D5EB058D81EB4_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070017.html","width":130,"caption":"W4-13","height":194});
															thumbnails[9070018] = clik.newPhoto({"id":9070018,"src":"W4-14_83E98BE1-1EC9-D45B-1C020A0E651C6D8D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070018.html","width":130,"caption":"W4-14","height":194});
															thumbnails[9070019] = clik.newPhoto({"id":9070019,"src":"W4-15_83E9D3B4-1EC9-D45B-1C7F5090335DD670_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070019.html","width":130,"caption":"W4-15","height":194});
															thumbnails[9070020] = clik.newPhoto({"id":9070020,"src":"W4-16_83EA2FC9-1EC9-D45B-1C5CB15D2E1F23F8_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070020.html","width":130,"caption":"W4-16","height":194});
															thumbnails[9070021] = clik.newPhoto({"id":9070021,"src":"W4-17_83EA7967-1EC9-D45B-1C0D46881878C1D1_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070021.html","width":130,"caption":"W4-17","height":87});
															thumbnails[9070022] = clik.newPhoto({"id":9070022,"src":"W4-18_83EABC32-1EC9-D45B-1C93D366F0940379_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070022.html","width":130,"caption":"W4-18","height":194});
															thumbnails[9070023] = clik.newPhoto({"id":9070023,"src":"W4-19_83EAFA59-1EC9-D45B-1C299BD546D0EE24_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070023.html","width":130,"caption":"W4-19","height":87});
															thumbnails[9070024] = clik.newPhoto({"id":9070024,"src":"W4-20_83EB3E35-1EC9-D45B-1C599DC7C12BB840_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070024.html","width":130,"caption":"W4-20","height":87});
															thumbnails[9070025] = clik.newPhoto({"id":9070025,"src":"W4-21_83EB7CE6-1EC9-D45B-1CA2704A9F88AEFF_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070025.html","width":130,"caption":"W4-21","height":87});
															thumbnails[9070026] = clik.newPhoto({"id":9070026,"src":"W4-22_83EBC352-1EC9-D45B-1C9A36D19EAC382C_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070026.html","width":130,"caption":"W4-22","height":87});
															thumbnails[9070027] = clik.newPhoto({"id":9070027,"src":"W4-23_83EC0314-1EC9-D45B-1C28B13306B39E5C_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070027.html","width":130,"caption":"W4-23","height":87});
															thumbnails[9070028] = clik.newPhoto({"id":9070028,"src":"W4-24_83EC4296-1EC9-D45B-1CC5CE49FCF4D439_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070028.html","width":130,"caption":"W4-24","height":87});
															thumbnails[9070029] = clik.newPhoto({"id":9070029,"src":"W4-25_83EC8C5A-1EC9-D45B-1C9DFD5575B95993_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070029.html","width":130,"caption":"W4-25","height":87});
															thumbnails[9070030] = clik.newPhoto({"id":9070030,"src":"W4-26_83ECDAB2-1EC9-D45B-1C8274B1B8D21E01_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070030.html","width":130,"caption":"W4-26","height":87});
															thumbnails[9070033] = clik.newPhoto({"id":9070033,"src":"W4-27_83ED2C3F-1EC9-D45B-1CCC7CB4A4B56821_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070033.html","width":130,"caption":"W4-27","height":87});
															thumbnails[9070034] = clik.newPhoto({"id":9070034,"src":"W4-28_83ED78E1-1EC9-D45B-1C959519C23513C2_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070034.html","width":130,"caption":"W4-28","height":87});
															thumbnails[9070035] = clik.newPhoto({"id":9070035,"src":"W4-29_83EDCA65-1EC9-D45B-1CD23E9C54FE3814_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070035.html","width":130,"caption":"W4-29","height":87});
															thumbnails[9070036] = clik.newPhoto({"id":9070036,"src":"W4-30_83EE1780-1EC9-D45B-1C2A6CC4DC3BD221_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070036.html","width":130,"caption":"W4-30","height":87});
															thumbnails[9070037] = clik.newPhoto({"id":9070037,"src":"W4-31_83EE5C38-1EC9-D45B-1C083C300E1CD35F_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070037.html","width":130,"caption":"W4-31","height":87});
															thumbnails[9070038] = clik.newPhoto({"id":9070038,"src":"W4-32_83EE9D95-1EC9-D45B-1CFF5F3E1524DBBE_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070038.html","width":130,"caption":"W4-32","height":87});
															thumbnails[9070039] = clik.newPhoto({"id":9070039,"src":"W4-33_83EEEAD4-1EC9-D45B-1C6061F879306991_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070039.html","width":130,"caption":"W4-33","height":87});
															thumbnails[9070040] = clik.newPhoto({"id":9070040,"src":"W4-34_83EF35E3-1EC9-D45B-1C86A13808F99165_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070040.html","width":130,"caption":"W4-34","height":87});
															thumbnails[9070041] = clik.newPhoto({"id":9070041,"src":"W4-35_83EF72D9-1EC9-D45B-1CDC1F62B70E0FB3_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070041.html","width":130,"caption":"W4-35","height":87});
															thumbnails[9070042] = clik.newPhoto({"id":9070042,"src":"W4-36_83EFEA89-1EC9-D45B-1CEAE1FBB0896C4F_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070042.html","width":130,"caption":"W4-36","height":87});
															thumbnails[9070043] = clik.newPhoto({"id":9070043,"src":"W4-37_83F02A4D-1EC9-D45B-1CC212E83C95D3B5_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070043.html","width":130,"caption":"W4-37","height":87});
															thumbnails[9070044] = clik.newPhoto({"id":9070044,"src":"W4-38_83F06C22-1EC9-D45B-1C63054823434969_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070044.html","width":130,"caption":"W4-38","height":87});
															thumbnails[9070045] = clik.newPhoto({"id":9070045,"src":"W4-39_83F0AE81-1EC9-D45B-1C37B74BF2F634C3_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070045.html","width":130,"caption":"W4-39","height":87});
															thumbnails[9070046] = clik.newPhoto({"id":9070046,"src":"W4-40_83F0FF0C-1EC9-D45B-1CEAAA70603192D1_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070046.html","width":130,"caption":"W4-40","height":87});
															thumbnails[9070047] = clik.newPhoto({"id":9070047,"src":"W4-41_83F14192-1EC9-D45B-1C7FB7F92BD5930D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070047.html","width":130,"caption":"W4-41","height":87});
															thumbnails[9070048] = clik.newPhoto({"id":9070048,"src":"W4-42_83F1A15C-1EC9-D45B-1CD51451B73BC022_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070048.html","width":130,"caption":"W4-42","height":87});
															thumbnails[9070049] = clik.newPhoto({"id":9070049,"src":"W4-43_83F1ED08-1EC9-D45B-1C144DB8F6DE1271_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070049.html","width":130,"caption":"W4-43","height":194});
															thumbnails[9070050] = clik.newPhoto({"id":9070050,"src":"W4-44_83F23F3F-1EC9-D45B-1C0CFB91DB5B90C7_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070050.html","width":130,"caption":"W4-44","height":194});
															thumbnails[9070051] = clik.newPhoto({"id":9070051,"src":"W4-45_83F28B41-1EC9-D45B-1CAE9B5FC1C657A2_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070051.html","width":130,"caption":"W4-45","height":194});
															thumbnails[9070053] = clik.newPhoto({"id":9070053,"src":"W4-46_83F2D7FB-1EC9-D45B-1C6A4713ABCAF22D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070053.html","width":130,"caption":"W4-46","height":87});
															thumbnails[9070054] = clik.newPhoto({"id":9070054,"src":"W4-47_83F32DE5-1EC9-D45B-1CF449F8AA7C3748_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070054.html","width":130,"caption":"W4-47","height":194});
															thumbnails[9070056] = clik.newPhoto({"id":9070056,"src":"W4-48_83F38A98-1EC9-D45B-1C55AD2FF727DE3A_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070056.html","width":130,"caption":"W4-48","height":194});
															thumbnails[9070057] = clik.newPhoto({"id":9070057,"src":"W4-49_83F3DCD8-1EC9-D45B-1C1EEC2B50687519_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070057.html","width":130,"caption":"W4-49","height":87});
															thumbnails[9070058] = clik.newPhoto({"id":9070058,"src":"W4-50_83F42E83-1EC9-D45B-1C152204EC759DE2_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070058.html","width":130,"caption":"W4-50","height":87});
															thumbnails[9070059] = clik.newPhoto({"id":9070059,"src":"W4-51_83F47CB8-1EC9-D45B-1CF468B696946973_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070059.html","width":130,"caption":"W4-51","height":194});
															thumbnails[9070060] = clik.newPhoto({"id":9070060,"src":"W4-52_83F4CE30-1EC9-D45B-1CEB5DA8F34381FD_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070060.html","width":130,"caption":"W4-52","height":87});
															thumbnails[9070061] = clik.newPhoto({"id":9070061,"src":"W4-53_83F51BFF-1EC9-D45B-1C52CD959762D88B_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070061.html","width":130,"caption":"W4-53","height":87});
															thumbnails[9070062] = clik.newPhoto({"id":9070062,"src":"W4-54_83F56B11-1EC9-D45B-1C88F0F0644D86FE_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070062.html","width":130,"caption":"W4-54","height":87});
															thumbnails[9070063] = clik.newPhoto({"id":9070063,"src":"W4-55_83F5BCCD-1EC9-D45B-1C26252472248FAC_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070063.html","width":130,"caption":"W4-55","height":87});
															thumbnails[9070064] = clik.newPhoto({"id":9070064,"src":"W4-56_83F60A9F-1EC9-D45B-1C83AF0E915B0159_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070064.html","width":130,"caption":"W4-56","height":194});
															thumbnails[9070065] = clik.newPhoto({"id":9070065,"src":"W4-57_83F657BA-1EC9-D45B-1C10454BBE25B694_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070065.html","width":130,"caption":"W4-57","height":194});
															thumbnails[9070066] = clik.newPhoto({"id":9070066,"src":"W4-58_83F6A76A-1EC9-D45B-1CCEFF44A25540A2_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070066.html","width":130,"caption":"W4-58","height":194});
															thumbnails[9070067] = clik.newPhoto({"id":9070067,"src":"W4-59_83F6EF78-1EC9-D45B-1CEC7865EB7A4DEF_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070067.html","width":130,"caption":"W4-59","height":194});
															thumbnails[9070068] = clik.newPhoto({"id":9070068,"src":"W4-60_83F73929-1EC9-D45B-1C7290EEC6ED1007_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070068.html","width":130,"caption":"W4-60","height":194});
															thumbnails[9070069] = clik.newPhoto({"id":9070069,"src":"W4-61_83F7851D-1EC9-D45B-1CA6D762A906D44F_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070069.html","width":130,"caption":"W4-61","height":194});
															thumbnails[9070070] = clik.newPhoto({"id":9070070,"src":"W4-62_83F7CABF-1EC9-D45B-1C7BF38CABD1A326_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070070.html","width":130,"caption":"W4-62","height":194});
															thumbnails[9070071] = clik.newPhoto({"id":9070071,"src":"W4-63_83F80E37-1EC9-D45B-1C5D2DF5510CB2FB_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070071.html","width":130,"caption":"W4-63","height":194});
															thumbnails[9070072] = clik.newPhoto({"id":9070072,"src":"W4-64_83F85215-1EC9-D45B-1CC4410EE0442D1E_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070072.html","width":130,"caption":"W4-64","height":194});
															thumbnails[9070073] = clik.newPhoto({"id":9070073,"src":"W4-65_83F89B5B-1EC9-D45B-1CD3F2E8263131AA_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070073.html","width":130,"caption":"W4-65","height":194});
															thumbnails[9070074] = clik.newPhoto({"id":9070074,"src":"W4-66_83F8DCE2-1EC9-D45B-1CFB91017860D2EC_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070074.html","width":130,"caption":"W4-66","height":194});
															thumbnails[9070075] = clik.newPhoto({"id":9070075,"src":"W4-67_83F93DC3-1EC9-D45B-1C67F4B91FA6FABD_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070075.html","width":130,"caption":"W4-67","height":87});
															thumbnails[9070076] = clik.newPhoto({"id":9070076,"src":"W4-68_83F998A5-1EC9-D45B-1CFDF182A3C39EBC_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070076.html","width":130,"caption":"W4-68","height":87});
															thumbnails[9070077] = clik.newPhoto({"id":9070077,"src":"W4-69_83FA0351-1EC9-D45B-1CD226253A1FA883_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070077.html","width":130,"caption":"W4-69","height":87});
															thumbnails[9070078] = clik.newPhoto({"id":9070078,"src":"W4-70_83FA6049-1EC9-D45B-1C2578D80B46AE42_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070078.html","width":130,"caption":"W4-70","height":87});
															thumbnails[9070079] = clik.newPhoto({"id":9070079,"src":"W4-71_83FAB37D-1EC9-D45B-1CED63E72654121F_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070079.html","width":130,"caption":"W4-71","height":87});
															thumbnails[9070080] = clik.newPhoto({"id":9070080,"src":"W4-72_83FB0C2A-1EC9-D45B-1C51E9E0578CB082_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070080.html","width":130,"caption":"W4-72","height":87});
															thumbnails[9070081] = clik.newPhoto({"id":9070081,"src":"W4-73_83FB5FA1-1EC9-D45B-1C6E036C2087D888_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070081.html","width":130,"caption":"W4-73","height":87});
															thumbnails[9070083] = clik.newPhoto({"id":9070083,"src":"W4-74_83FBC9CF-1EC9-D45B-1C3D2B926A0A4E93_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070083.html","width":130,"caption":"W4-74","height":87});
															thumbnails[9070084] = clik.newPhoto({"id":9070084,"src":"W4-75_83FC20F4-1EC9-D45B-1C0154EE51ECE55D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070084.html","width":130,"caption":"W4-75","height":87});
															thumbnails[9070085] = clik.newPhoto({"id":9070085,"src":"W4-76_83FC741D-1EC9-D45B-1C3E00961CB70672_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070085.html","width":130,"caption":"W4-76","height":87});
															thumbnails[9070086] = clik.newPhoto({"id":9070086,"src":"W4-77_83FCD874-1EC9-D45B-1C6622060122A59E_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070086.html","width":130,"caption":"W4-77","height":87});
															thumbnails[9070088] = clik.newPhoto({"id":9070088,"src":"W4-78_83FD2AE1-1EC9-D45B-1CC7DF209B88259F_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070088.html","width":130,"caption":"W4-78","height":87});
															thumbnails[9070089] = clik.newPhoto({"id":9070089,"src":"W4-79_83FD8309-1EC9-D45B-1CDE13AC76755E29_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070089.html","width":130,"caption":"W4-79","height":87});
															thumbnails[9070090] = clik.newPhoto({"id":9070090,"src":"W4-80_83FDE954-1EC9-D45B-1CE8964D4E6FC816_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070090.html","width":130,"caption":"W4-80","height":87});
															thumbnails[9070091] = clik.newPhoto({"id":9070091,"src":"W4-81_83FE5289-1EC9-D45B-1C2C58199FAF542D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070091.html","width":130,"caption":"W4-81","height":87});
															thumbnails[9070092] = clik.newPhoto({"id":9070092,"src":"W4-82_83FEAC59-1EC9-D45B-1CA0D002AD5F7AAC_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070092.html","width":130,"caption":"W4-82","height":87});
															thumbnails[9070093] = clik.newPhoto({"id":9070093,"src":"W4-83_83FEF2D4-1EC9-D45B-1CFCC82A4B39E009_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070093.html","width":130,"caption":"W4-83","height":87});
															thumbnails[9070094] = clik.newPhoto({"id":9070094,"src":"W4-84_83FF4C05-1EC9-D45B-1CD3263109998C6B_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070094.html","width":130,"caption":"W4-84","height":87});
															thumbnails[9070095] = clik.newPhoto({"id":9070095,"src":"W4-85_83FFAE8B-1EC9-D45B-1C44894F2043396D_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070095.html","width":130,"caption":"W4-85","height":194});
															thumbnails[9070096] = clik.newPhoto({"id":9070096,"src":"W4-86_84000444-1EC9-D45B-1C16BF4C7151F5E0_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070096.html","width":130,"caption":"W4-86","height":87});
															thumbnails[9070097] = clik.newPhoto({"id":9070097,"src":"W4-87_84005495-1EC9-D45B-1C8CC4FF1370E3E8_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070097.html","width":130,"caption":"W4-87","height":87});
															thumbnails[9070098] = clik.newPhoto({"id":9070098,"src":"W4-88_8400ABE2-1EC9-D45B-1C815121C09F08D4_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070098.html","width":130,"caption":"W4-88","height":87});
															thumbnails[9070099] = clik.newPhoto({"id":9070099,"src":"W4-89_8400F8CD-1EC9-D45B-1C95079F43E42FE3_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070099.html","width":130,"caption":"W4-89","height":87});
															thumbnails[9070100] = clik.newPhoto({"id":9070100,"src":"W4-90_840144D6-1EC9-D45B-1C03AE07296E7EBB_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070100.html","width":130,"caption":"W4-90","height":194});
															thumbnails[9070101] = clik.newPhoto({"id":9070101,"src":"W4-91_84018E97-1EC9-D45B-1C727D0BB5FB4EDA_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070101.html","width":130,"caption":"W4-91","height":87});
															thumbnails[9070102] = clik.newPhoto({"id":9070102,"src":"W4-92_8401CE8E-1EC9-D45B-1C2D21F9119E1C7F_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070102.html","width":130,"caption":"W4-92","height":194});
															thumbnails[9070103] = clik.newPhoto({"id":9070103,"src":"W4-93_8402147B-1EC9-D45B-1C7668D5B87FB876_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070103.html","width":130,"caption":"W4-93","height":194});
															thumbnails[9070104] = clik.newPhoto({"id":9070104,"src":"W4-94_840274AF-1EC9-D45B-1C4A0F50242E4047_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070104.html","width":130,"caption":"W4-94","height":194});
															thumbnails[9070105] = clik.newPhoto({"id":9070105,"src":"W4-95_8402C65B-1EC9-D45B-1C217DEBC7EB11C5_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070105.html","width":130,"caption":"W4-95","height":87});
															thumbnails[9070106] = clik.newPhoto({"id":9070106,"src":"W4-96_84031F77-1EC9-D45B-1C9E6D77D0C83302_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070106.html","width":130,"caption":"W4-96","height":87});
															thumbnails[9070107] = clik.newPhoto({"id":9070107,"src":"W4-97_840385C8-1EC9-D45B-1C630D04A4C8FE20_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070107.html","width":130,"caption":"W4-97","height":87});
															thumbnails[9070109] = clik.newPhoto({"id":9070109,"src":"W4-98_8403DB01-1EC9-D45B-1C77AA3E2F02DF82_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070109.html","width":130,"caption":"W4-98","height":194});
															thumbnails[9070110] = clik.newPhoto({"id":9070110,"src":"W4-99_8404223F-1EC9-D45B-1C18E7417A698A9B_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070110.html","width":130,"caption":"W4-99","height":87});
															thumbnails[9070111] = clik.newPhoto({"id":9070111,"src":"W4_84046038-1EC9-D45B-1C03256C4EA169DF_thumb.JPG","galleries_id":478343,"server_id":1,"link":"photo_9070111.html","width":130,"caption":"W4","height":194});
															thumbnails[6437933] = clik.newPhoto({"id":6437933,"src":"Hi10_thumb.jpg","galleries_id":355317,"server_id":1,"link":"photo_6437933.html","width":130,"caption":"Hi10","height":116});
															thumbnails[6437934] = clik.newPhoto({"id":6437934,"src":"Hi8_thumb.jpg","galleries_id":355317,"server_id":1,"link":"photo_6437934.html","width":130,"caption":"Hi8","height":195});
															thumbnails[7496326] = clik.newPhoto({"id":7496326,"src":"candyfloss_thumb.jpg","galleries_id":406426,"server_id":1,"link":"photo_7496326.html","width":130,"caption":"candyfloss","height":175});
															thumbnails[7496327] = clik.newPhoto({"id":7496327,"src":"FunCatering_thumb.jpg","galleries_id":406426,"server_id":1,"link":"photo_7496327.html","width":130,"caption":"FunCatering","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[355317] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The studio","link":"section423732.html","maxRecords":0.0,"photoIDs":[6437933.0,6437934.0],"skipIndex":0,"section_code":"section423732","featured_images":"6437934,6437933","id":355317,"singleSection":true});				  						galleries[478343] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"23th to 29th Jan ","link":"gallery.html","maxRecords":0.0,"photoIDs":[9070003.0,9070004.0,9070005.0,9070006.0,9070009.0,9070010.0,9070011.0,9070012.0,9070013.0,9070014.0,9070015.0,9070016.0,9070017.0,9070018.0,9070019.0,9070020.0,9070021.0,9070022.0,9070023.0,9070024.0,9070025.0,9070026.0,9070027.0,9070028.0,9070029.0,9070030.0,9070033.0,9070034.0,9070035.0,9070036.0,9070037.0,9070038.0,9070039.0,9070040.0,9070041.0,9070042.0,9070043.0,9070044.0,9070045.0,9070046.0,9070047.0,9070048.0,9070049.0,9070050.0,9070051.0,9070053.0,9070054.0,9070056.0,9070057.0,9070058.0,9070059.0,9070060.0,9070061.0,9070062.0,9070063.0,9070064.0,9070065.0,9070066.0,9070067.0,9070068.0,9070069.0,9070070.0,9070071.0,9070072.0,9070073.0,9070074.0,9070075.0,9070076.0,9070077.0,9070078.0,9070079.0,9070080.0,9070081.0,9070083.0,9070084.0,9070085.0,9070086.0,9070088.0,9070089.0,9070090.0,9070091.0,9070092.0,9070093.0,9070094.0,9070095.0,9070096.0,9070097.0,9070098.0,9070099.0,9070100.0,9070101.0,9070102.0,9070103.0,9070104.0,9070105.0,9070106.0,9070107.0,9070109.0,9070110.0,9070111.0],"skipIndex":0,"section_code":"gallery","featured_images":"9070111,9070110,9070109,9070107,9070106,9070105,9070104,9070103,9070102,9070101","id":478343,"singleSection":true});				  						galleries[406426] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Candyfloss2u","link":"section486097.html","maxRecords":0.0,"photoIDs":[7496326.0,7496327.0],"skipIndex":0,"section_code":"section486097","featured_images":"7496327,7496326","id":406426,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7496326';
imageSets[3] = '7496326';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/danhif1/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/danhif1/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/danhif1/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/danhif1/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/danhif1/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/danhif1/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/danhif1/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/danhif1/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'KeyRings2u: ' + 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="dannywhil@blueyonder.co.uk">';
					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="dannywhil@blueyonder.co.uk">';
				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;
	}
}

			

