(function (c) { var e = c.tools.scrollable; e.autoscroll = { conf: { autoplay: !0, interval: 3E3, autopause: !0} }; c.fn.autoscroll = function (b) { typeof b == "number" && (b = { interval: b }); var d = c.extend({}, e.autoscroll.conf, b), f; this.each(function () { var a = c(this).data("scrollable"); a && (f = a); var b; a.play = function () { b || (b = setInterval(function () { a.next() }, d.interval)) }; a.pause = function () { b = clearInterval(b) }; a.stop = function () { a.pause() }; d.autopause && a.getRoot().add(a.getNaviButtons()).hover(a.pause, a.play); d.autoplay && a.play() }); return d.api ? f : this } })(jQuery);
