Slider: Moved events to named functions (to allow extended plugins to hook in).