window.thumbnails = {};
															thumbnails[6850672] = clik.newPhoto({"id":6850672,"src":"ce_4_thumb.jpg","galleries_id":319011,"server_id":18,"link":"photo_6850672.html","width":130,"caption":"","height":87});
															thumbnails[6850674] = clik.newPhoto({"id":6850674,"src":"ce_5_thumb.jpg","galleries_id":319011,"server_id":18,"link":"photo_6850674.html","width":130,"caption":"","height":196});
															thumbnails[6850677] = clik.newPhoto({"id":6850677,"src":"ce_6_thumb.jpg","galleries_id":319011,"server_id":18,"link":"photo_6850677.html","width":130,"caption":"","height":86});
															thumbnails[6850678] = clik.newPhoto({"id":6850678,"src":"ce_7_thumb.jpg","galleries_id":319011,"server_id":18,"link":"photo_6850678.html","width":130,"caption":"","height":196});
															thumbnails[6850708] = clik.newPhoto({"id":6850708,"src":"albe_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850708.html","width":130,"caption":"","height":87});
															thumbnails[6850711] = clik.newPhoto({"id":6850711,"src":"albe_3_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850711.html","width":130,"caption":"","height":86});
															thumbnails[6850715] = clik.newPhoto({"id":6850715,"src":"albe_6_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850715.html","width":130,"caption":"","height":86});
															thumbnails[6850716] = clik.newPhoto({"id":6850716,"src":"albe_7_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850716.html","width":130,"caption":"","height":86});
															thumbnails[6850718] = clik.newPhoto({"id":6850718,"src":"albe_9_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850718.html","width":130,"caption":"","height":87});
															thumbnails[6850720] = clik.newPhoto({"id":6850720,"src":"albe_10_thumb.JPG","galleries_id":270489,"server_id":18,"link":"photo_6850720.html","width":130,"caption":"","height":98});
															thumbnails[6850721] = clik.newPhoto({"id":6850721,"src":"albe_11_thumb.JPG","galleries_id":270489,"server_id":18,"link":"photo_6850721.html","width":130,"caption":"","height":68});
															thumbnails[6850722] = clik.newPhoto({"id":6850722,"src":"albe_12_thumb.JPG","galleries_id":270489,"server_id":18,"link":"photo_6850722.html","width":130,"caption":"","height":98});
															thumbnails[6850724] = clik.newPhoto({"id":6850724,"src":"albe_13_thumb.JPG","galleries_id":270489,"server_id":18,"link":"photo_6850724.html","width":130,"caption":"","height":98});
															thumbnails[6850725] = clik.newPhoto({"id":6850725,"src":"albe_14_thumb.JPG","galleries_id":270489,"server_id":18,"link":"photo_6850725.html","width":130,"caption":"","height":98});
															thumbnails[6850727] = clik.newPhoto({"id":6850727,"src":"albe_15_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850727.html","width":130,"caption":"","height":98});
															thumbnails[6850728] = clik.newPhoto({"id":6850728,"src":"albe_16_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_6850728.html","width":130,"caption":"","height":86});
															thumbnails[6850729] = clik.newPhoto({"id":6850729,"src":"au_thumb.jpg","galleries_id":271084,"server_id":18,"link":"photo_6850729.html","width":130,"caption":"","height":196});
															thumbnails[6850730] = clik.newPhoto({"id":6850730,"src":"au_2_thumb.jpg","galleries_id":271084,"server_id":18,"link":"photo_6850730.html","width":130,"caption":"","height":196});
															thumbnails[6850731] = clik.newPhoto({"id":6850731,"src":"au_3_thumb.jpg","galleries_id":271084,"server_id":18,"link":"photo_6850731.html","width":130,"caption":"","height":196});
															thumbnails[6850736] = clik.newPhoto({"id":6850736,"src":"au_7_thumb.jpg","galleries_id":271084,"server_id":18,"link":"photo_6850736.html","width":130,"caption":"","height":92});
															thumbnails[6850737] = clik.newPhoto({"id":6850737,"src":"au_8_thumb.jpg","galleries_id":271084,"server_id":18,"link":"photo_6850737.html","width":130,"caption":"","height":184});
															thumbnails[6850739] = clik.newPhoto({"id":6850739,"src":"ca_2_thumb.JPG","galleries_id":278288,"server_id":18,"link":"photo_6850739.html","width":130,"caption":"","height":86});
															thumbnails[6850740] = clik.newPhoto({"id":6850740,"src":"ca_3_thumb.jpg","galleries_id":278288,"server_id":18,"link":"photo_6850740.html","width":130,"caption":"","height":87});
															thumbnails[6850746] = clik.newPhoto({"id":6850746,"src":"ca_7_thumb.jpg","galleries_id":278288,"server_id":18,"link":"photo_6850746.html","width":130,"caption":"","height":86});
															thumbnails[6850747] = clik.newPhoto({"id":6850747,"src":"ca_8_thumb.jpg","galleries_id":278288,"server_id":18,"link":"photo_6850747.html","width":130,"caption":"","height":92});
															thumbnails[6850748] = clik.newPhoto({"id":6850748,"src":"ca_9_thumb.jpg","galleries_id":278288,"server_id":18,"link":"photo_6850748.html","width":130,"caption":"","height":196});
															thumbnails[6850751] = clik.newPhoto({"id":6850751,"src":"ca_12_thumb.jpg","galleries_id":278288,"server_id":18,"link":"photo_6850751.html","width":130,"caption":"","height":87});
															thumbnails[6850756] = clik.newPhoto({"id":6850756,"src":"cr_4_thumb.JPG","galleries_id":364501,"server_id":18,"link":"photo_6850756.html","width":130,"caption":"","height":86});
															thumbnails[6850761] = clik.newPhoto({"id":6850761,"src":"fr_2_thumb.jpg","galleries_id":271085,"server_id":18,"link":"photo_6850761.html","width":130,"caption":"","height":69});
															thumbnails[6850770] = clik.newPhoto({"id":6850770,"src":"fr_9_thumb.jpg","galleries_id":271085,"server_id":18,"link":"photo_6850770.html","width":130,"caption":"","height":71});
															thumbnails[6850771] = clik.newPhoto({"id":6850771,"src":"fr_10_thumb.jpg","galleries_id":271085,"server_id":18,"link":"photo_6850771.html","width":130,"caption":"","height":88});
															thumbnails[6850773] = clik.newPhoto({"id":6850773,"src":"gr_2_thumb.jpg","galleries_id":271086,"server_id":18,"link":"photo_6850773.html","width":130,"caption":"","height":87});
															thumbnails[6850776] = clik.newPhoto({"id":6850776,"src":"gr_5_thumb.JPG","galleries_id":271086,"server_id":18,"link":"photo_6850776.html","width":130,"caption":"","height":87});
															thumbnails[6850777] = clik.newPhoto({"id":6850777,"src":"gr_6_thumb.JPG","galleries_id":271086,"server_id":18,"link":"photo_6850777.html","width":130,"caption":"","height":87});
															thumbnails[6850778] = clik.newPhoto({"id":6850778,"src":"gr_7_thumb.JPG","galleries_id":271086,"server_id":18,"link":"photo_6850778.html","width":130,"caption":"","height":87});
															thumbnails[6850779] = clik.newPhoto({"id":6850779,"src":"gr_8_thumb.jpg","galleries_id":271086,"server_id":18,"link":"photo_6850779.html","width":130,"caption":"","height":87});
															thumbnails[6850780] = clik.newPhoto({"id":6850780,"src":"gr_9_thumb.JPG","galleries_id":271086,"server_id":18,"link":"photo_6850780.html","width":130,"caption":"","height":87});
															thumbnails[6850783] = clik.newPhoto({"id":6850783,"src":"gr_12_thumb.jpg","galleries_id":271086,"server_id":18,"link":"photo_6850783.html","width":130,"caption":"","height":87});
															thumbnails[6850786] = clik.newPhoto({"id":6850786,"src":"in_3_thumb.jpg","galleries_id":271087,"server_id":18,"link":"photo_6850786.html","width":130,"caption":"","height":86});
															thumbnails[6850789] = clik.newPhoto({"id":6850789,"src":"in_6_thumb.JPG","galleries_id":271087,"server_id":18,"link":"photo_6850789.html","width":130,"caption":"","height":86});
															thumbnails[6850791] = clik.newPhoto({"id":6850791,"src":"in_7_thumb.jpg","galleries_id":271087,"server_id":18,"link":"photo_6850791.html","width":130,"caption":"","height":86});
															thumbnails[6850792] = clik.newPhoto({"id":6850792,"src":"in_8_thumb.JPG","galleries_id":271087,"server_id":18,"link":"photo_6850792.html","width":130,"caption":"","height":98});
															thumbnails[6850799] = clik.newPhoto({"id":6850799,"src":"ma1_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_6850799.html","width":130,"caption":"","height":130});
															thumbnails[6850801] = clik.newPhoto({"id":6850801,"src":"ma_31_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_6850801.html","width":130,"caption":"","height":86});
															thumbnails[6850804] = clik.newPhoto({"id":6850804,"src":"ma_71_thumb.JPG","galleries_id":278306,"server_id":18,"link":"photo_6850804.html","width":130,"caption":"","height":98});
															thumbnails[6850805] = clik.newPhoto({"id":6850805,"src":"ma_8_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_6850805.html","width":130,"caption":"","height":87});
															thumbnails[6850806] = clik.newPhoto({"id":6850806,"src":"mou_thumb.jpg","galleries_id":271093,"server_id":18,"link":"photo_6850806.html","width":130,"caption":"","height":87});
															thumbnails[6850810] = clik.newPhoto({"id":6850810,"src":"mou_4_thumb.JPG","galleries_id":271093,"server_id":18,"link":"photo_6850810.html","width":130,"caption":"","height":86});
															thumbnails[6850811] = clik.newPhoto({"id":6850811,"src":"mou_5_thumb.JPG","galleries_id":271093,"server_id":18,"link":"photo_6850811.html","width":130,"caption":"","height":86});
															thumbnails[6850812] = clik.newPhoto({"id":6850812,"src":"mou_6_thumb.jpg","galleries_id":271093,"server_id":18,"link":"photo_6850812.html","width":130,"caption":"","height":86});
															thumbnails[6850813] = clik.newPhoto({"id":6850813,"src":"mou_7_thumb.jpg","galleries_id":271093,"server_id":18,"link":"photo_6850813.html","width":130,"caption":"","height":69});
															thumbnails[6850817] = clik.newPhoto({"id":6850817,"src":"mou_11_thumb.jpg","galleries_id":271093,"server_id":18,"link":"photo_6850817.html","width":130,"caption":"","height":72});
															thumbnails[6850819] = clik.newPhoto({"id":6850819,"src":"mou_13_thumb.JPG","galleries_id":271093,"server_id":18,"link":"photo_6850819.html","width":130,"caption":"","height":72});
															thumbnails[6850823] = clik.newPhoto({"id":6850823,"src":"mou_17_thumb.jpg","galleries_id":271093,"server_id":18,"link":"photo_6850823.html","width":130,"caption":"","height":87});
															thumbnails[6850825] = clik.newPhoto({"id":6850825,"src":"ny_2_thumb.jpg","galleries_id":271089,"server_id":18,"link":"photo_6850825.html","width":130,"caption":"","height":85});
															thumbnails[6850826] = clik.newPhoto({"id":6850826,"src":"ny_3_thumb.jpg","galleries_id":271089,"server_id":18,"link":"photo_6850826.html","width":130,"caption":"","height":61});
															thumbnails[6850827] = clik.newPhoto({"id":6850827,"src":"ny_4_thumb.jpg","galleries_id":271089,"server_id":18,"link":"photo_6850827.html","width":130,"caption":"","height":173});
															thumbnails[6850828] = clik.newPhoto({"id":6850828,"src":"ny_5_thumb.jpg","galleries_id":271089,"server_id":18,"link":"photo_6850828.html","width":130,"caption":"","height":98});
															thumbnails[6850829] = clik.newPhoto({"id":6850829,"src":"pa_thumb.JPG","galleries_id":270490,"server_id":18,"link":"photo_6850829.html","width":130,"caption":"","height":98});
															thumbnails[6850831] = clik.newPhoto({"id":6850831,"src":"pa_4_thumb.jpg","galleries_id":270490,"server_id":18,"link":"photo_6850831.html","width":130,"caption":"","height":196});
															thumbnails[6850832] = clik.newPhoto({"id":6850832,"src":"pa_5_thumb.jpg","galleries_id":270490,"server_id":18,"link":"photo_6850832.html","width":130,"caption":"","height":196});
															thumbnails[6850834] = clik.newPhoto({"id":6850834,"src":"pa_6_thumb.JPG","galleries_id":270490,"server_id":18,"link":"photo_6850834.html","width":130,"caption":"","height":87});
															thumbnails[6850838] = clik.newPhoto({"id":6850838,"src":"pa_9_thumb.jpg","galleries_id":270490,"server_id":18,"link":"photo_6850838.html","width":130,"caption":"","height":87});
															thumbnails[6850840] = clik.newPhoto({"id":6850840,"src":"pa_10_thumb.jpg","galleries_id":270490,"server_id":18,"link":"photo_6850840.html","width":130,"caption":"","height":89});
															thumbnails[6850844] = clik.newPhoto({"id":6850844,"src":"pu_3_thumb.jpg","galleries_id":271090,"server_id":18,"link":"photo_6850844.html","width":130,"caption":"","height":85});
															thumbnails[6850845] = clik.newPhoto({"id":6850845,"src":"pu_4_thumb.jpg","galleries_id":271090,"server_id":18,"link":"photo_6850845.html","width":130,"caption":"","height":197});
															thumbnails[6850846] = clik.newPhoto({"id":6850846,"src":"pu_5_thumb.jpg","galleries_id":271090,"server_id":18,"link":"photo_6850846.html","width":130,"caption":"","height":192});
															thumbnails[6850848] = clik.newPhoto({"id":6850848,"src":"pu_8_thumb.jpg","galleries_id":271090,"server_id":18,"link":"photo_6850848.html","width":130,"caption":"","height":85});
															thumbnails[6850849] = clik.newPhoto({"id":6850849,"src":"pu_9_thumb.jpg","galleries_id":271090,"server_id":18,"link":"photo_6850849.html","width":130,"caption":"","height":52});
															thumbnails[6850851] = clik.newPhoto({"id":6850851,"src":"to_thumb.jpg","galleries_id":271091,"server_id":18,"link":"photo_6850851.html","width":130,"caption":"","height":86});
															thumbnails[6850853] = clik.newPhoto({"id":6850853,"src":"to_2_thumb.JPG","galleries_id":271091,"server_id":18,"link":"photo_6850853.html","width":130,"caption":"","height":87});
															thumbnails[6850857] = clik.newPhoto({"id":6850857,"src":"to_4_thumb.jpg","galleries_id":271091,"server_id":18,"link":"photo_6850857.html","width":130,"caption":"","height":93});
															thumbnails[6850861] = clik.newPhoto({"id":6850861,"src":"ve_thumb.jpg","galleries_id":271092,"server_id":18,"link":"photo_6850861.html","width":130,"caption":"","height":98});
															thumbnails[6850862] = clik.newPhoto({"id":6850862,"src":"ve_2_thumb.JPG","galleries_id":271092,"server_id":18,"link":"photo_6850862.html","width":130,"caption":"","height":66});
															thumbnails[6850863] = clik.newPhoto({"id":6850863,"src":"ve_3_thumb.JPG","galleries_id":271092,"server_id":18,"link":"photo_6850863.html","width":130,"caption":"","height":62});
															thumbnails[6850864] = clik.newPhoto({"id":6850864,"src":"ve_4_thumb.JPG","galleries_id":271092,"server_id":18,"link":"photo_6850864.html","width":130,"caption":"","height":98});
															thumbnails[6850865] = clik.newPhoto({"id":6850865,"src":"ve_5_thumb.JPG","galleries_id":271092,"server_id":18,"link":"photo_6850865.html","width":130,"caption":"","height":98});
															thumbnails[7288784] = clik.newPhoto({"id":7288784,"src":"IMG_0081_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288784.html","width":130,"caption":"","height":173});
															thumbnails[7288807] = clik.newPhoto({"id":7288807,"src":"IMG_0089_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288807.html","width":130,"caption":"","height":98});
															thumbnails[7288811] = clik.newPhoto({"id":7288811,"src":"IMG_0103_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288811.html","width":130,"caption":"","height":103});
															thumbnails[7288812] = clik.newPhoto({"id":7288812,"src":"IMG_0106_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288812.html","width":130,"caption":"","height":209});
															thumbnails[7288815] = clik.newPhoto({"id":7288815,"src":"IMG_0121_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288815.html","width":130,"caption":"","height":173});
															thumbnails[7288817] = clik.newPhoto({"id":7288817,"src":"IMG_0127_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288817.html","width":130,"caption":"","height":173});
															thumbnails[7288818] = clik.newPhoto({"id":7288818,"src":"IMG_0128_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288818.html","width":130,"caption":"","height":98});
															thumbnails[7288822] = clik.newPhoto({"id":7288822,"src":"IMG_0170_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288822.html","width":130,"caption":"","height":173});
															thumbnails[7288824] = clik.newPhoto({"id":7288824,"src":"IMG_0198_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288824.html","width":130,"caption":"","height":98});
															thumbnails[7288827] = clik.newPhoto({"id":7288827,"src":"IMG_0235_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288827.html","width":130,"caption":"","height":98});
															thumbnails[7288829] = clik.newPhoto({"id":7288829,"src":"IMG_0236_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288829.html","width":130,"caption":"","height":173});
															thumbnails[7288835] = clik.newPhoto({"id":7288835,"src":"IMG_0372_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288835.html","width":130,"caption":"","height":98});
															thumbnails[7288844] = clik.newPhoto({"id":7288844,"src":"IMG_0419_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288844.html","width":130,"caption":"","height":98});
															thumbnails[7288846] = clik.newPhoto({"id":7288846,"src":"IMG_0426_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288846.html","width":130,"caption":"","height":98});
															thumbnails[7288854] = clik.newPhoto({"id":7288854,"src":"IMG_0361_thumb.jpg","galleries_id":394252,"server_id":18,"link":"photo_7288854.html","width":130,"caption":"","height":173});
															thumbnails[7288857] = clik.newPhoto({"id":7288857,"src":"IMG_0360_thumb.jpg","galleries_id":394252,"server_id":18,"link":"photo_7288857.html","width":130,"caption":"","height":98});
															thumbnails[7288859] = clik.newPhoto({"id":7288859,"src":"IMG_0369_thumb.jpg","galleries_id":394252,"server_id":18,"link":"photo_7288859.html","width":130,"caption":"","height":98});
															thumbnails[7288861] = clik.newPhoto({"id":7288861,"src":"IMG_0366_thumb.jpg","galleries_id":394252,"server_id":18,"link":"photo_7288861.html","width":130,"caption":"","height":98});
															thumbnails[7288882] = clik.newPhoto({"id":7288882,"src":"IMG_0380_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288882.html","width":130,"caption":"","height":98});
															thumbnails[7288894] = clik.newPhoto({"id":7288894,"src":"IMG_0385_thumb.jpg","galleries_id":394231,"server_id":18,"link":"photo_7288894.html","width":130,"caption":"","height":98});
															thumbnails[7852887] = clik.newPhoto({"id":7852887,"src":"DSC_8716_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_7852887.html","width":130,"caption":"","height":196});
															thumbnails[7872610] = clik.newPhoto({"id":7872610,"src":"DSC_8388_thumb.jpg","galleries_id":425016,"server_id":18,"link":"photo_7872610.html","width":130,"caption":"","height":87});
															thumbnails[7872611] = clik.newPhoto({"id":7872611,"src":"DSC_8432_thumb.jpg","galleries_id":425016,"server_id":18,"link":"photo_7872611.html","width":130,"caption":"","height":195});
															thumbnails[7872614] = clik.newPhoto({"id":7872614,"src":"DSC_8409_thumb.jpg","galleries_id":425016,"server_id":18,"link":"photo_7872614.html","width":130,"caption":"","height":195});
															thumbnails[7872618] = clik.newPhoto({"id":7872618,"src":"IMG_0849_HDR_thumb.jpg","galleries_id":425016,"server_id":18,"link":"photo_7872618.html","width":130,"caption":"","height":98});
															thumbnails[7872621] = clik.newPhoto({"id":7872621,"src":"IMG_0929_HDR_thumb.jpg","galleries_id":425016,"server_id":18,"link":"photo_7872621.html","width":130,"caption":"","height":98});
															thumbnails[7938769] = clik.newPhoto({"id":7938769,"src":"DSC_8768_1_thumb.jpg","galleries_id":427650,"server_id":18,"link":"photo_7938769.html","width":130,"caption":"","height":87});
															thumbnails[7938772] = clik.newPhoto({"id":7938772,"src":"DSC_8775_1_thumb.jpg","galleries_id":427650,"server_id":18,"link":"photo_7938772.html","width":130,"caption":"","height":88});
															thumbnails[7938786] = clik.newPhoto({"id":7938786,"src":"DSC_8844_thumb.jpg","galleries_id":427650,"server_id":18,"link":"photo_7938786.html","width":130,"caption":"","height":196});
															thumbnails[7938789] = clik.newPhoto({"id":7938789,"src":"DSC_8877_thumb.jpg","galleries_id":427650,"server_id":18,"link":"photo_7938789.html","width":130,"caption":"","height":87});
															thumbnails[7938799] = clik.newPhoto({"id":7938799,"src":"DSC_8898_thumb.jpg","galleries_id":427650,"server_id":18,"link":"photo_7938799.html","width":130,"caption":"","height":87});
															thumbnails[8022187] = clik.newPhoto({"id":8022187,"src":"trieste_01_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_8022187.html","width":130,"caption":"","height":98});
															thumbnails[8022189] = clik.newPhoto({"id":8022189,"src":"trieste_03_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_8022189.html","width":130,"caption":"","height":82});
															thumbnails[8022190] = clik.newPhoto({"id":8022190,"src":"trieste_04_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_8022190.html","width":130,"caption":"","height":98});
															thumbnails[8022192] = clik.newPhoto({"id":8022192,"src":"trieste_05_thumb.jpg","galleries_id":278306,"server_id":18,"link":"photo_8022192.html","width":130,"caption":"","height":98});
															thumbnails[8057651] = clik.newPhoto({"id":8057651,"src":"09_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_8057651.html","width":130,"caption":"","height":196});
															thumbnails[8246166] = clik.newPhoto({"id":8246166,"src":"DSC_0004_thumb.jpg","galleries_id":439188,"server_id":18,"link":"photo_8246166.html","width":130,"caption":"","height":196});
															thumbnails[8246194] = clik.newPhoto({"id":8246194,"src":"DSC_9954_thumb.jpg","galleries_id":439188,"server_id":18,"link":"photo_8246194.html","width":130,"caption":"","height":196});
															thumbnails[8246198] = clik.newPhoto({"id":8246198,"src":"DSC_9960_1_thumb.jpg","galleries_id":439188,"server_id":18,"link":"photo_8246198.html","width":130,"caption":"","height":87});
															thumbnails[8246208] = clik.newPhoto({"id":8246208,"src":"DSC_9992_thumb.jpg","galleries_id":439188,"server_id":18,"link":"photo_8246208.html","width":130,"caption":"","height":87});
															thumbnails[8246215] = clik.newPhoto({"id":8246215,"src":"DSC_9996_thumb.jpg","galleries_id":439188,"server_id":18,"link":"photo_8246215.html","width":130,"caption":"","height":87});
															thumbnails[8246234] = clik.newPhoto({"id":8246234,"src":"DSC_9715_1_thumb.jpg","galleries_id":439200,"server_id":18,"link":"photo_8246234.html","width":130,"caption":"","height":85});
															thumbnails[8246242] = clik.newPhoto({"id":8246242,"src":"DSC_9714_thumb.jpg","galleries_id":439200,"server_id":18,"link":"photo_8246242.html","width":130,"caption":"","height":196});
															thumbnails[8246346] = clik.newPhoto({"id":8246346,"src":"IMG_1125_thumb.jpg","galleries_id":364501,"server_id":18,"link":"photo_8246346.html","width":130,"caption":"","height":98});
															thumbnails[8246350] = clik.newPhoto({"id":8246350,"src":"IMG_1021_thumb.jpg","galleries_id":364501,"server_id":18,"link":"photo_8246350.html","width":130,"caption":"","height":98});
															thumbnails[8246353] = clik.newPhoto({"id":8246353,"src":"IMG_1435_thumb.jpg","galleries_id":364501,"server_id":18,"link":"photo_8246353.html","width":130,"caption":"","height":98});
															thumbnails[8246359] = clik.newPhoto({"id":8246359,"src":"IMG_1462_thumb.jpg","galleries_id":364501,"server_id":18,"link":"photo_8246359.html","width":130,"caption":"","height":98});
															thumbnails[8246362] = clik.newPhoto({"id":8246362,"src":"IMG_1576_thumb.jpg","galleries_id":364501,"server_id":18,"link":"photo_8246362.html","width":130,"caption":"","height":69});
															thumbnails[8375888] = clik.newPhoto({"id":8375888,"src":"DSC_0501_thumb.jpg","galleries_id":270490,"server_id":18,"link":"photo_8375888.html","width":130,"caption":"","height":72});
															thumbnails[8524964] = clik.newPhoto({"id":8524964,"src":"DSC_0750_1_thumb.jpg","galleries_id":450563,"server_id":18,"link":"photo_8524964.html","width":130,"caption":"","height":189});
															thumbnails[8524965] = clik.newPhoto({"id":8524965,"src":"DSC_0758_1_thumb.jpg","galleries_id":450563,"server_id":18,"link":"photo_8524965.html","width":130,"caption":"","height":87});
															thumbnails[8524967] = clik.newPhoto({"id":8524967,"src":"DSC_0780_thumb.jpg","galleries_id":450563,"server_id":18,"link":"photo_8524967.html","width":130,"caption":"","height":87});
															thumbnails[8524969] = clik.newPhoto({"id":8524969,"src":"DSC_0806_1_thumb.jpg","galleries_id":450563,"server_id":18,"link":"photo_8524969.html","width":130,"caption":"","height":87});
															thumbnails[8525232] = clik.newPhoto({"id":8525232,"src":"DSC_0685_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_8525232.html","width":130,"caption":"","height":87});
															thumbnails[8525239] = clik.newPhoto({"id":8525239,"src":"DSC_0687_1_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_8525239.html","width":130,"caption":"","height":196});
															thumbnails[8525248] = clik.newPhoto({"id":8525248,"src":"DSC_0578_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_8525248.html","width":130,"caption":"","height":196});
															thumbnails[8525256] = clik.newPhoto({"id":8525256,"src":"DSC_0729_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_8525256.html","width":130,"caption":"","height":87});
															thumbnails[8525269] = clik.newPhoto({"id":8525269,"src":"DSC_0287_thumb.jpg","galleries_id":423768,"server_id":18,"link":"photo_8525269.html","width":130,"caption":"","height":87});
															thumbnails[8525272] = clik.newPhoto({"id":8525272,"src":"DSC_0896_thumb.jpg","galleries_id":450577,"server_id":18,"link":"photo_8525272.html","width":130,"caption":"","height":87});
															thumbnails[8525277] = clik.newPhoto({"id":8525277,"src":"DSC_0880_thumb.jpg","galleries_id":450577,"server_id":18,"link":"photo_8525277.html","width":130,"caption":"","height":196});
															thumbnails[8525281] = clik.newPhoto({"id":8525281,"src":"DSC_0901_thumb.jpg","galleries_id":450577,"server_id":18,"link":"photo_8525281.html","width":130,"caption":"","height":196});
															thumbnails[8525282] = clik.newPhoto({"id":8525282,"src":"DSC_0923_thumb.jpg","galleries_id":450577,"server_id":18,"link":"photo_8525282.html","width":130,"caption":"","height":196});
															thumbnails[8525287] = clik.newPhoto({"id":8525287,"src":"DSC_0935_thumb.jpg","galleries_id":450577,"server_id":18,"link":"photo_8525287.html","width":130,"caption":"","height":87});
															thumbnails[8525291] = clik.newPhoto({"id":8525291,"src":"DSC_0939_thumb.jpg","galleries_id":450577,"server_id":18,"link":"photo_8525291.html","width":130,"caption":"","height":230});
															thumbnails[8547506] = clik.newPhoto({"id":8547506,"src":"DSC_1130_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8547506.html","width":130,"caption":"","height":196});
															thumbnails[8547508] = clik.newPhoto({"id":8547508,"src":"DSC_1159_1_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8547508.html","width":130,"caption":"","height":196});
															thumbnails[8547519] = clik.newPhoto({"id":8547519,"src":"DSC_1244_1_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8547519.html","width":130,"caption":"","height":196});
															thumbnails[8547521] = clik.newPhoto({"id":8547521,"src":"DSC_1261_1_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8547521.html","width":130,"caption":"","height":209});
															thumbnails[8633378] = clik.newPhoto({"id":8633378,"src":"01_1606E1FF-1E4F-37DC-710B1E38AD71C313_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_8633378.html","width":130,"caption":"","height":87});
															thumbnails[8633381] = clik.newPhoto({"id":8633381,"src":"02_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_8633381.html","width":130,"caption":"","height":87});
															thumbnails[8633384] = clik.newPhoto({"id":8633384,"src":"03_thumb.jpg","galleries_id":270489,"server_id":18,"link":"photo_8633384.html","width":130,"caption":"","height":87});
															thumbnails[8633427] = clik.newPhoto({"id":8633427,"src":"307383_235658693158175_100001421381185_704708_1423246094_n_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8633427.html","width":130,"caption":"","height":196});
															thumbnails[8633428] = clik.newPhoto({"id":8633428,"src":"307799_235659213158123_100001421381185_704722_57955075_n_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8633428.html","width":130,"caption":"","height":196});
															thumbnails[8633432] = clik.newPhoto({"id":8633432,"src":"312760_235658746491503_100001421381185_704709_1123213374_n_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8633432.html","width":130,"caption":"","height":196});
															thumbnails[8633435] = clik.newPhoto({"id":8633435,"src":"316009_235659019824809_100001421381185_704715_162170795_n_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8633435.html","width":130,"caption":"","height":196});
															thumbnails[8633441] = clik.newPhoto({"id":8633441,"src":"319132_235658876491490_100001421381185_704711_1977461341_n_thumb.jpg","galleries_id":451649,"server_id":18,"link":"photo_8633441.html","width":130,"caption":"","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[270489] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Albe e tramonti in Friuli","link":"gallery_270489.html","maxRecords":0.0,"photoIDs":[6850708.0,6850711.0,6850715.0,6850716.0,6850718.0,6850720.0,6850721.0,6850722.0,6850724.0,6850725.0,6850727.0,6850728.0,8633378.0,8633381.0,8633384.0],"skipIndex":0,"section_code":"gallery","featured_images":8633378.0,"id":270489,"singleSection":false});				  						galleries[394231] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jerusalem","link":"gallery_394231.html","maxRecords":0.0,"photoIDs":[7288784.0,7288807.0,7288811.0,7288812.0,7288815.0,7288817.0,7288818.0,7288822.0,7288824.0,7288827.0,7288829.0,7288835.0,7288844.0,7288846.0,7288882.0,7288894.0],"skipIndex":0,"section_code":"gallery","featured_images":7288829.0,"id":394231,"singleSection":false});				  						galleries[451649] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Valentina","link":"gallery_451649.html","maxRecords":0.0,"photoIDs":[8547506.0,8547508.0,8547519.0,8547521.0,8633427.0,8633428.0,8633432.0,8633435.0,8633441.0],"skipIndex":0,"section_code":"gallery","featured_images":8633427.0,"id":451649,"singleSection":false});				  						galleries[439188] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Vanessa","link":"gallery_439188.html","maxRecords":0.0,"photoIDs":[8246166.0,8246194.0,8246198.0,8246208.0,8246215.0],"skipIndex":0,"section_code":"gallery","featured_images":"8246198,8246166","id":439188,"singleSection":false});				  						galleries[427650] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Eva","link":"gallery_427650.html","maxRecords":0.0,"photoIDs":[7938769.0,7938772.0,7938786.0,7938789.0,7938799.0],"skipIndex":0,"section_code":"gallery","featured_images":"7938799,7938789,7938786,7938772,7938769","id":427650,"singleSection":false});				  						galleries[271084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Autunno","link":"gallery_271084.html","maxRecords":0.0,"photoIDs":[6850729.0,6850730.0,6850731.0,6850736.0,6850737.0],"skipIndex":0,"section_code":"gallery","featured_images":6850736.0,"id":271084,"singleSection":false});				  						galleries[271085] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Friuli","link":"gallery_271085.html","maxRecords":0.0,"photoIDs":[6850761.0,6850770.0,6850771.0],"skipIndex":0,"section_code":"gallery","featured_images":6850771.0,"id":271085,"singleSection":false});				  						galleries[271086] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Grecia","link":"gallery_271086.html","maxRecords":0.0,"photoIDs":[6850773.0,6850776.0,6850777.0,6850778.0,6850779.0,6850780.0,6850783.0],"skipIndex":0,"section_code":"gallery","featured_images":6850776.0,"id":271086,"singleSection":false});				  						galleries[439200] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Valeri","link":"gallery_439200.html","maxRecords":0.0,"photoIDs":[8246234.0,8246242.0],"skipIndex":0,"section_code":"gallery","featured_images":8246242.0,"id":439200,"singleSection":false});				  						galleries[271087] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Inverno in Carnia","link":"gallery_271087.html","maxRecords":0.0,"photoIDs":[6850786.0,6850789.0,6850791.0,6850792.0],"skipIndex":0,"section_code":"gallery","featured_images":6850786.0,"id":271087,"singleSection":false});				  						galleries[271089] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New York","link":"gallery_271089.html","maxRecords":0.0,"photoIDs":[6850825.0,6850826.0,6850827.0,6850828.0],"skipIndex":0,"section_code":"gallery","featured_images":6850828.0,"id":271089,"singleSection":false});				  						galleries[271090] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Puglia","link":"gallery_271090.html","maxRecords":0.0,"photoIDs":[6850844.0,6850845.0,6850846.0,6850848.0,6850849.0],"skipIndex":0,"section_code":"gallery","featured_images":"6850849,6850848,6850846,6850845,6850844","id":271090,"singleSection":false});				  						galleries[271091] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Toscana","link":"gallery_271091.html","maxRecords":0.0,"photoIDs":[6850851.0,6850853.0,6850857.0],"skipIndex":0,"section_code":"gallery","featured_images":6850857.0,"id":271091,"singleSection":false});				  						galleries[271092] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Venezia","link":"gallery_271092.html","maxRecords":0.0,"photoIDs":[6850861.0,6850862.0,6850863.0,6850864.0,6850865.0],"skipIndex":0,"section_code":"gallery","featured_images":6850863.0,"id":271092,"singleSection":false});				  						galleries[271093] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Montagna","link":"gallery_271093.html","maxRecords":0.0,"photoIDs":[6850806.0,6850810.0,6850811.0,6850812.0,6850813.0,6850817.0,6850819.0,6850823.0],"skipIndex":0,"section_code":"gallery","featured_images":6850810.0,"id":271093,"singleSection":false});				  						galleries[278288] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carnia","link":"gallery_278288.html","maxRecords":0.0,"photoIDs":[6850739.0,6850740.0,6850746.0,6850747.0,6850748.0,6850751.0],"skipIndex":0,"section_code":"gallery","featured_images":6850751.0,"id":278288,"singleSection":false});				  						galleries[278306] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mare","link":"gallery_278306.html","maxRecords":0.0,"photoIDs":[6850799.0,6850801.0,6850804.0,6850805.0,8022187.0,8022189.0,8022190.0,8022192.0],"skipIndex":0,"section_code":"gallery","featured_images":"8022190,8022189,8022187,6850804","id":278306,"singleSection":false});				  						galleries[319011] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Celia","link":"gallery_319011.html","maxRecords":0.0,"photoIDs":[6850672.0,6850674.0,6850677.0,6850678.0],"skipIndex":0,"section_code":"gallery","featured_images":6850672.0,"id":319011,"singleSection":false});				  						galleries[364501] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Croazia","link":"gallery_364501.html","maxRecords":0.0,"photoIDs":[6850756.0,8246346.0,8246350.0,8246353.0,8246359.0,8246362.0],"skipIndex":0,"section_code":"gallery","featured_images":"8246359,8246346,6850756","id":364501,"singleSection":false});				  						galleries[394252] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"West Bank","link":"gallery_394252.html","maxRecords":0.0,"photoIDs":[7288854.0,7288857.0,7288859.0,7288861.0],"skipIndex":0,"section_code":"gallery","featured_images":7288854.0,"id":394252,"singleSection":false});				  						galleries[425016] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Berlin","link":"gallery_425016.html","maxRecords":0.0,"photoIDs":[7872610.0,7872611.0,7872614.0,7872618.0,7872621.0],"skipIndex":0,"section_code":"gallery","featured_images":7872610.0,"id":425016,"singleSection":false});				  						galleries[270490] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Passi","link":"gallery_270490.html","maxRecords":0.0,"photoIDs":[6850829.0,6850831.0,6850832.0,6850834.0,6850838.0,6850840.0,8375888.0],"skipIndex":0,"section_code":"gallery","featured_images":8375888.0,"id":270490,"singleSection":false});				  						galleries[423768] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Arianna","link":"gallery_423768.html","maxRecords":0.0,"photoIDs":[7852887.0,8057651.0,8525232.0,8525239.0,8525248.0,8525256.0,8525269.0],"skipIndex":0,"section_code":"gallery","featured_images":7852887.0,"id":423768,"singleSection":false});				  						galleries[450563] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Letizia","link":"gallery_450563.html","maxRecords":0.0,"photoIDs":[8524964.0,8524965.0,8524967.0,8524969.0],"skipIndex":0,"section_code":"gallery","featured_images":8524969.0,"id":450563,"singleSection":false});				  						galleries[450577] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Madame Guitar 2011","link":"gallery_450577.html","maxRecords":0.0,"photoIDs":[8525272.0,8525277.0,8525281.0,8525282.0,8525287.0,8525291.0],"skipIndex":0,"section_code":"gallery","featured_images":"8525287,8525272","id":450577,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8633441,8633432,8633428,8633384,8633381,8633378,8547508,8547506,8525256,8525232,8375888,8246198,8022192,8022190,8022189,8022187,7938799,7938789,7938786,7938772,7938769,7872611,7852887';
imageSets[2] = '8633427,8633378,8525287,8525272,8524969,8375888,8246359,8246346,8246242,8246198,8246166,8022190,8022189,8022187,7872610,7852887,7288854,7288829,6850863,6850857,6850828,6850810,6850804,6850786,6850776,6850771,6850756,6850751,6850736,6850672';
imageSets[3] = '7288894,7288882,7288859,7288857,7288854,7288846,7288844,7288835,7288829,7288827,7288824,7288822,7288818,7288817,7288815,7288812,7288811,7288807,7288784,6850865,6850863,6850862,6850861,6850857';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/it010740/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/it010740/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/it010740/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/it010740/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/it010740/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/it010740/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/it010740/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/it010740/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 = 'z7photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

