﻿/*
 
jQuery Tools 1.2.5 / Scrollable Autoscroll

NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

http://flowplayer.org/tools/scrollable/autoscroll.html

Since: September 2009
Date:    Wed Sep 22 06:02:10 2010 +0000 
*/
(function (b) {
    var f = b.tools.scrollable; f.autoscroll = { conf: { autoplay: true, interval: 3E3, autopause: true} }; b.fn.autoscroll = function (c) {
        if (typeof c == "number") c = { interval: c }; var d = b.extend({}, f.autoscroll.conf, c), g; this.each(function () {
            var a = b(this).data("scrollable"); if (a) g = a; var e, h = true; a.play = function () { if (!e) { h = false; e = setInterval(function () { a.next() }, d.interval) } }; a.pause = function () { e = clearInterval(e) }; a.stop = function () { a.pause(); h = true }; d.autopause && a.getRoot().add(a.getNaviButtons()).hover(a.pause,
a.play); d.autoplay && a.play()
        }); return d.api ? g : this
    } 
})(jQuery);

