window.thumbnails = {};
															thumbnails[1558863] = clik.newPhoto({"id":1558863,"src":"181.jpg","galleries_id":121640,"server_id":18,"link":"photo_1558863.html","width":130,"caption":"","height":98});
															thumbnails[1558959] = clik.newPhoto({"id":1558959,"src":"291.jpg","galleries_id":121640,"server_id":18,"link":"photo_1558959.html","width":87,"caption":"","height":130});
															thumbnails[1558973] = clik.newPhoto({"id":1558973,"src":"341.jpg","galleries_id":121640,"server_id":18,"link":"photo_1558973.html","width":130,"caption":"","height":87});
															thumbnails[3500264] = clik.newPhoto({"id":3500264,"src":"Page002_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500264.html","width":130,"caption":"","height":100});
															thumbnails[3500270] = clik.newPhoto({"id":3500270,"src":"Page003_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500270.html","width":130,"caption":"","height":100});
															thumbnails[3500277] = clik.newPhoto({"id":3500277,"src":"Page005_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500277.html","width":130,"caption":"","height":100});
															thumbnails[3500295] = clik.newPhoto({"id":3500295,"src":"Page006_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500295.html","width":130,"caption":"","height":100});
															thumbnails[3500296] = clik.newPhoto({"id":3500296,"src":"Page007_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500296.html","width":130,"caption":"","height":100});
															thumbnails[3500320] = clik.newPhoto({"id":3500320,"src":"Page011_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500320.html","width":130,"caption":"","height":100});
															thumbnails[3500333] = clik.newPhoto({"id":3500333,"src":"Page015_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500333.html","width":130,"caption":"","height":100});
															thumbnails[3500335] = clik.newPhoto({"id":3500335,"src":"Page016_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500335.html","width":130,"caption":"","height":100});
															thumbnails[3500337] = clik.newPhoto({"id":3500337,"src":"Page017_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500337.html","width":130,"caption":"","height":100});
															thumbnails[3500338] = clik.newPhoto({"id":3500338,"src":"Page018_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500338.html","width":130,"caption":"","height":100});
															thumbnails[3500339] = clik.newPhoto({"id":3500339,"src":"Page019_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500339.html","width":130,"caption":"","height":100});
															thumbnails[3500340] = clik.newPhoto({"id":3500340,"src":"Page020_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500340.html","width":130,"caption":"","height":100});
															thumbnails[4557995] = clik.newPhoto({"id":4557995,"src":"lep1_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_4557995.html","width":86,"caption":"","height":130});
															thumbnails[4954615] = clik.newPhoto({"id":4954615,"src":"WED1_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_4954615.html","width":130,"caption":"","height":87});
															thumbnails[5435994] = clik.newPhoto({"id":5435994,"src":"Page003_8001B4A3-2219-B5B5-4C8E53DD5FA80EA6_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5435994.html","width":130,"caption":"","height":100});
															thumbnails[5435997] = clik.newPhoto({"id":5435997,"src":"Page008_80021DFA-2219-B5B5-4C9A2C4D69BC1D19_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5435997.html","width":130,"caption":"","height":100});
															thumbnails[5436006] = clik.newPhoto({"id":5436006,"src":"Page015_8002F3F4-2219-B5B5-4CA2D3C5558D1060_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5436006.html","width":130,"caption":"","height":100});
															thumbnails[5436029] = clik.newPhoto({"id":5436029,"src":"Page025_8003F284-2219-B5B5-4CCE84188B542A66_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5436029.html","width":130,"caption":"","height":100});
															thumbnails[5744608] = clik.newPhoto({"id":5744608,"src":"001small_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5744608.html","width":130,"caption":"","height":120});
															thumbnails[5798576] = clik.newPhoto({"id":5798576,"src":"stutemp1_copy_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5798576.html","width":130,"caption":"","height":98});
															thumbnails[5798577] = clik.newPhoto({"id":5798577,"src":"stutemp2_copy_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5798577.html","width":130,"caption":"","height":98});
															thumbnails[5860098] = clik.newPhoto({"id":5860098,"src":"carsmall_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_5860098.html","width":130,"caption":"","height":87});
															thumbnails[7558680] = clik.newPhoto({"id":7558680,"src":"edita-3_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_7558680.html","width":130,"caption":"","height":100});
															thumbnails[9026794] = clik.newPhoto({"id":9026794,"src":"A-102_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026794.html","width":86,"caption":"","height":130});
															thumbnails[9026795] = clik.newPhoto({"id":9026795,"src":"A-931_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026795.html","width":86,"caption":"","height":130});
															thumbnails[9026797] = clik.newPhoto({"id":9026797,"src":"A-122_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026797.html","width":86,"caption":"","height":130});
															thumbnails[9026798] = clik.newPhoto({"id":9026798,"src":"A-130_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026798.html","width":86,"caption":"","height":130});
															thumbnails[9026803] = clik.newPhoto({"id":9026803,"src":"A-376_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026803.html","width":130,"caption":"","height":88});
															thumbnails[9026804] = clik.newPhoto({"id":9026804,"src":"A-391_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026804.html","width":86,"caption":"","height":130});
															thumbnails[9026805] = clik.newPhoto({"id":9026805,"src":"A-423_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026805.html","width":130,"caption":"","height":106});
															thumbnails[9026806] = clik.newPhoto({"id":9026806,"src":"A-444_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026806.html","width":86,"caption":"","height":130});
															thumbnails[9026807] = clik.newPhoto({"id":9026807,"src":"A-507_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026807.html","width":86,"caption":"","height":130});
															thumbnails[9026810] = clik.newPhoto({"id":9026810,"src":"BRY_0238_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026810.html","width":86,"caption":"","height":130});
															thumbnails[9026812] = clik.newPhoto({"id":9026812,"src":"BRY_0298_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026812.html","width":86,"caption":"","height":130});
															thumbnails[9026813] = clik.newPhoto({"id":9026813,"src":"BRY_0321_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026813.html","width":130,"caption":"","height":87});
															thumbnails[9026816] = clik.newPhoto({"id":9026816,"src":"BRY_0403_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026816.html","width":130,"caption":"","height":87});
															thumbnails[9026817] = clik.newPhoto({"id":9026817,"src":"BRY_0422_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026817.html","width":130,"caption":"","height":87});
															thumbnails[9026818] = clik.newPhoto({"id":9026818,"src":"BRY_0831_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026818.html","width":130,"caption":"","height":87});
															thumbnails[9026819] = clik.newPhoto({"id":9026819,"src":"BRY_0916_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026819.html","width":130,"caption":"","height":87});
															thumbnails[9026821] = clik.newPhoto({"id":9026821,"src":"BRY_1219_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026821.html","width":86,"caption":"","height":130});
															thumbnails[9026822] = clik.newPhoto({"id":9026822,"src":"BRY_1227_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026822.html","width":130,"caption":"","height":96});
															thumbnails[9026823] = clik.newPhoto({"id":9026823,"src":"BRY_1347_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026823.html","width":86,"caption":"","height":130});
															thumbnails[9026824] = clik.newPhoto({"id":9026824,"src":"BRY_1356_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026824.html","width":130,"caption":"","height":87});
															thumbnails[9026825] = clik.newPhoto({"id":9026825,"src":"BRY_2555_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026825.html","width":130,"caption":"","height":87});
															thumbnails[9026828] = clik.newPhoto({"id":9026828,"src":"BRY_2586_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026828.html","width":86,"caption":"","height":130});
															thumbnails[9026829] = clik.newPhoto({"id":9026829,"src":"BRY_2681_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026829.html","width":86,"caption":"","height":130});
															thumbnails[9026831] = clik.newPhoto({"id":9026831,"src":"BRY_2684_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026831.html","width":86,"caption":"","height":130});
															thumbnails[9026832] = clik.newPhoto({"id":9026832,"src":"BRY_2723_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026832.html","width":130,"caption":"","height":87});
															thumbnails[9026834] = clik.newPhoto({"id":9026834,"src":"BRY_2790_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026834.html","width":86,"caption":"","height":130});
															thumbnails[9026839] = clik.newPhoto({"id":9026839,"src":"BRY_2882_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026839.html","width":130,"caption":"","height":87});
															thumbnails[9026841] = clik.newPhoto({"id":9026841,"src":"BRY_3143_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026841.html","width":86,"caption":"","height":130});
															thumbnails[9026842] = clik.newPhoto({"id":9026842,"src":"BRY_3175_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026842.html","width":86,"caption":"","height":130});
															thumbnails[9026844] = clik.newPhoto({"id":9026844,"src":"BRY_4592_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026844.html","width":86,"caption":"","height":130});
															thumbnails[9026845] = clik.newPhoto({"id":9026845,"src":"BRY_4744_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026845.html","width":86,"caption":"","height":130});
															thumbnails[9026846] = clik.newPhoto({"id":9026846,"src":"BRY_4748_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026846.html","width":130,"caption":"","height":87});
															thumbnails[9026847] = clik.newPhoto({"id":9026847,"src":"BRY_5343_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026847.html","width":86,"caption":"","height":130});
															thumbnails[9026850] = clik.newPhoto({"id":9026850,"src":"BRY_5367_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026850.html","width":86,"caption":"","height":130});
															thumbnails[9026851] = clik.newPhoto({"id":9026851,"src":"BRY_6557_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026851.html","width":130,"caption":"","height":87});
															thumbnails[9026852] = clik.newPhoto({"id":9026852,"src":"BRY_7524_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026852.html","width":86,"caption":"","height":130});
															thumbnails[9026853] = clik.newPhoto({"id":9026853,"src":"BRY_7528_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026853.html","width":86,"caption":"","height":130});
															thumbnails[9026854] = clik.newPhoto({"id":9026854,"src":"BRY_7565_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026854.html","width":130,"caption":"","height":87});
															thumbnails[9026855] = clik.newPhoto({"id":9026855,"src":"BRY_8352_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026855.html","width":130,"caption":"","height":87});
															thumbnails[9026856] = clik.newPhoto({"id":9026856,"src":"BRY_9358_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026856.html","width":130,"caption":"","height":87});
															thumbnails[9026858] = clik.newPhoto({"id":9026858,"src":"BRY_9391_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026858.html","width":86,"caption":"","height":130});
															thumbnails[9026859] = clik.newPhoto({"id":9026859,"src":"BRY_9413_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026859.html","width":130,"caption":"","height":87});
															thumbnails[9026860] = clik.newPhoto({"id":9026860,"src":"BRY_9536_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026860.html","width":86,"caption":"","height":130});
															thumbnails[9026861] = clik.newPhoto({"id":9026861,"src":"BRY_9579_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026861.html","width":130,"caption":"","height":87});
															thumbnails[9026862] = clik.newPhoto({"id":9026862,"src":"BRY_9825_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026862.html","width":130,"caption":"","height":87});
															thumbnails[9026863] = clik.newPhoto({"id":9026863,"src":"BRY_9866_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026863.html","width":130,"caption":"","height":87});
															thumbnails[9026865] = clik.newPhoto({"id":9026865,"src":"DSC_0392_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026865.html","width":130,"caption":"","height":86});
															thumbnails[9026866] = clik.newPhoto({"id":9026866,"src":"DSC_1152_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026866.html","width":86,"caption":"","height":130});
															thumbnails[9026868] = clik.newPhoto({"id":9026868,"src":"DSC_4089_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026868.html","width":130,"caption":"","height":86});
															thumbnails[9026869] = clik.newPhoto({"id":9026869,"src":"DSC_4140_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026869.html","width":130,"caption":"","height":86});
															thumbnails[9026870] = clik.newPhoto({"id":9026870,"src":"DSC_4199_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026870.html","width":130,"caption":"","height":86});
															thumbnails[9026871] = clik.newPhoto({"id":9026871,"src":"DSC_7010_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026871.html","width":130,"caption":"","height":86});
															thumbnails[9026872] = clik.newPhoto({"id":9026872,"src":"DSC_7522_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026872.html","width":86,"caption":"","height":130});
															thumbnails[9026875] = clik.newPhoto({"id":9026875,"src":"DSC_7534_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026875.html","width":130,"caption":"","height":86});
															thumbnails[9026876] = clik.newPhoto({"id":9026876,"src":"DSC_7889_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026876.html","width":86,"caption":"","height":130});
															thumbnails[9026877] = clik.newPhoto({"id":9026877,"src":"DSC_8207_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026877.html","width":130,"caption":"","height":86});
															thumbnails[9026878] = clik.newPhoto({"id":9026878,"src":"DSC_8209_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026878.html","width":130,"caption":"","height":86});
															thumbnails[9026879] = clik.newPhoto({"id":9026879,"src":"DSC_8272_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026879.html","width":130,"caption":"","height":86});
															thumbnails[9026880] = clik.newPhoto({"id":9026880,"src":"pic-23_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026880.html","width":130,"caption":"","height":87});
															thumbnails[9026881] = clik.newPhoto({"id":9026881,"src":"pic-36_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026881.html","width":86,"caption":"","height":130});
															thumbnails[9026882] = clik.newPhoto({"id":9026882,"src":"pic-48_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026882.html","width":86,"caption":"","height":130});
															thumbnails[9026884] = clik.newPhoto({"id":9026884,"src":"pic-59_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026884.html","width":86,"caption":"","height":130});
															thumbnails[9026886] = clik.newPhoto({"id":9026886,"src":"pic-66_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026886.html","width":86,"caption":"","height":130});
															thumbnails[9026889] = clik.newPhoto({"id":9026889,"src":"pic-67_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026889.html","width":130,"caption":"","height":87});
															thumbnails[9026892] = clik.newPhoto({"id":9026892,"src":"pic-123_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026892.html","width":86,"caption":"","height":130});
															thumbnails[9026895] = clik.newPhoto({"id":9026895,"src":"pic-188_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026895.html","width":86,"caption":"","height":130});
															thumbnails[9026898] = clik.newPhoto({"id":9026898,"src":"pic-193_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026898.html","width":130,"caption":"","height":87});
															thumbnails[9026901] = clik.newPhoto({"id":9026901,"src":"pic-203_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026901.html","width":86,"caption":"","height":130});
															thumbnails[9026902] = clik.newPhoto({"id":9026902,"src":"pic-216_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026902.html","width":86,"caption":"","height":130});
															thumbnails[9026903] = clik.newPhoto({"id":9026903,"src":"pic-322_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026903.html","width":130,"caption":"","height":87});
															thumbnails[9026904] = clik.newPhoto({"id":9026904,"src":"pic-337_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026904.html","width":86,"caption":"","height":130});
															thumbnails[9026905] = clik.newPhoto({"id":9026905,"src":"pic-401_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026905.html","width":130,"caption":"","height":74});
															thumbnails[9026906] = clik.newPhoto({"id":9026906,"src":"pic-452_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026906.html","width":130,"caption":"","height":86});
															thumbnails[9026908] = clik.newPhoto({"id":9026908,"src":"pic-482_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026908.html","width":130,"caption":"","height":86});
															thumbnails[9026911] = clik.newPhoto({"id":9026911,"src":"pic-497_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026911.html","width":130,"caption":"","height":85});
															thumbnails[9026912] = clik.newPhoto({"id":9026912,"src":"pic-502_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026912.html","width":86,"caption":"","height":130});
															thumbnails[9026913] = clik.newPhoto({"id":9026913,"src":"pic-550_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026913.html","width":130,"caption":"","height":92});
															thumbnails[9026914] = clik.newPhoto({"id":9026914,"src":"pic-580_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026914.html","width":86,"caption":"","height":130});
															thumbnails[9026915] = clik.newPhoto({"id":9026915,"src":"pic-592_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026915.html","width":130,"caption":"","height":94});
															thumbnails[9026917] = clik.newPhoto({"id":9026917,"src":"pic-615_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026917.html","width":86,"caption":"","height":130});
															thumbnails[9026918] = clik.newPhoto({"id":9026918,"src":"pic-618_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026918.html","width":86,"caption":"","height":130});
															thumbnails[9026919] = clik.newPhoto({"id":9026919,"src":"pic-620_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026919.html","width":86,"caption":"","height":130});
															thumbnails[9026920] = clik.newPhoto({"id":9026920,"src":"pic-630_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026920.html","width":86,"caption":"","height":130});
															thumbnails[9026921] = clik.newPhoto({"id":9026921,"src":"pic-644_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026921.html","width":86,"caption":"","height":130});
															thumbnails[9026923] = clik.newPhoto({"id":9026923,"src":"pic-686_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026923.html","width":86,"caption":"","height":130});
															thumbnails[9026924] = clik.newPhoto({"id":9026924,"src":"pic_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026924.html","width":130,"caption":"","height":86});
															thumbnails[9026925] = clik.newPhoto({"id":9026925,"src":"pic1_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026925.html","width":130,"caption":"","height":87});
															thumbnails[9026926] = clik.newPhoto({"id":9026926,"src":"pic2_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026926.html","width":87,"caption":"","height":130});
															thumbnails[9026927] = clik.newPhoto({"id":9026927,"src":"pic3_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_9026927.html","width":130,"caption":"","height":130});
															thumbnails[3500346] = clik.newPhoto({"id":3500346,"src":"Page026_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500346.html","width":130,"caption":"","height":100});
															thumbnails[3500344] = clik.newPhoto({"id":3500344,"src":"Page025_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_3500344.html","width":130,"caption":"","height":100});
															thumbnails[1922798] = clik.newPhoto({"id":1922798,"src":"NI4_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_1922798.html","width":130,"caption":"","height":87});
															thumbnails[1922800] = clik.newPhoto({"id":1922800,"src":"NI5_thumb.jpg","galleries_id":121640,"server_id":18,"link":"photo_1922800.html","width":130,"caption":"","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[121640] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Weddings","link":"gallery.html","maxRecords":0.0,"photoIDs":[1558863.0,1558959.0,1558973.0,3500264.0,3500270.0,3500277.0,3500295.0,3500296.0,3500320.0,3500333.0,3500335.0,3500337.0,3500338.0,3500339.0,3500340.0,4557995.0,4954615.0,5435994.0,5435997.0,5436006.0,5436029.0,5744608.0,5798576.0,5798577.0,5860098.0,7558680.0,9026794.0,9026795.0,9026797.0,9026798.0,9026803.0,9026804.0,9026805.0,9026806.0,9026807.0,9026810.0,9026812.0,9026813.0,9026816.0,9026817.0,9026818.0,9026819.0,9026821.0,9026822.0,9026823.0,9026824.0,9026825.0,9026828.0,9026829.0,9026831.0,9026832.0,9026834.0,9026839.0,9026841.0,9026842.0,9026844.0,9026845.0,9026846.0,9026847.0,9026850.0,9026851.0,9026852.0,9026853.0,9026854.0,9026855.0,9026856.0,9026858.0,9026859.0,9026860.0,9026861.0,9026862.0,9026863.0,9026865.0,9026866.0,9026868.0,9026869.0,9026870.0,9026871.0,9026872.0,9026875.0,9026876.0,9026877.0,9026878.0,9026879.0,9026880.0,9026881.0,9026882.0,9026884.0,9026886.0,9026889.0,9026892.0,9026895.0,9026898.0,9026901.0,9026902.0,9026903.0,9026904.0,9026905.0,9026906.0,9026908.0,9026911.0,9026912.0,9026913.0,9026914.0,9026915.0,9026917.0,9026918.0,9026919.0,9026920.0,9026921.0,9026923.0,9026924.0,9026925.0,9026926.0,9026927.0,3500346.0,3500344.0,1922798.0,1922800.0],"skipIndex":0,"section_code":"gallery","featured_images":"9026927,9026926,9026925,9026924,9026923,9026921,9026920,9026919,9026918,9026917","id":121640,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9026919,9026892,9026881,9026841';
imageSets[3] = '9026927,9026926,9026925,9026924,9026923,9026921,9026920,9026919,9026918,9026917,9026915,9026914,9026913,9026912,9026911,9026908,9026906,9026905,9026904,9026903,9026902,9026901,9026898,9026895,9026892,9026889,9026886,9026884,9026882,9026881,9026880,9026879,9026878,9026877,9026876,9026875,9026872,9026871,9026870,9026869,9026868,9026866,9026865,9026863,9026862,9026861,9026860,9026859,9026858,9026856';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stillshot/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stillshot/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stillshot/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stillshot/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stillshot/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stillshot/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stillshot/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stillshot/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 = 'stillshot photography wedding photographer preston: ' + 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="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="STILLSHOT">';
			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;
	}
}

			

