/*
* jQuery Tools 1.2.5 - The missing UI library for the Web
* 
* [tabs, tabs.slideshow, scrollable, scrollable.autoscroll, scrollable.navigator]
* 
* NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
* 
* http://flowplayer.org/tools/
* 
* File generated: Fri Oct 01 13:12:39 GMT 2010
*/
(function(c) {
    function p(d, b, a) {
        var e = this, l = d.add(this), h = d.find(a.tabs), i = b.jquery ? b : d.children(b), j; h.length || (h = d.children()); i.length || (i = d.parent().find(b)); i.length || (i = c(b)); c.extend(this, { click: function(f, g) {
            var k = h.eq(f); if (typeof f == "string" && f.replace("#", "")) { k = h.filter("[href*=" + f.replace("#", "") + "]"); f = Math.max(h.index(k), 0) } if (a.rotate) { var n = h.length - 1; if (f < 0) return e.click(n, g); if (f > n) return e.click(0, g) } if (!k.length) { if (j >= 0) return e; f = a.initialIndex; k = h.eq(f) } if (f === j) return e;
            g = g || c.Event(); g.type = "onBeforeClick"; l.trigger(g, [f]); if (!g.isDefaultPrevented()) { o[a.effect].call(e, f, function() { g.type = "onClick"; l.trigger(g, [f]) }); j = f; h.removeClass(a.current); k.addClass(a.current); return e } 
        }, getConf: function() { return a }, getTabs: function() { return h }, getPanes: function() { return i }, getCurrentPane: function() { return i.eq(j) }, getCurrentTab: function() { return h.eq(j) }, getIndex: function() { return j }, next: function() { return e.click(j + 1) }, prev: function() { return e.click(j - 1) }, destroy: function() {
            h.unbind(a.event).removeClass(a.current);
            i.find("a[href^=#]").unbind("click.T"); return e
        } 
        }); c.each("onBeforeClick,onClick".split(","), function(f, g) { c.isFunction(a[g]) && c(e).bind(g, a[g]); e[g] = function(k) { k && c(e).bind(g, k); return e } }); if (a.history && c.fn.history) { c.tools.history.init(h); a.event = "history" } h.each(function(f) { c(this).bind(a.event, function(g) { e.click(f, g); return g.preventDefault() }) }); i.find("a[href^=#]").bind("click.T", function(f) { e.click(c(this).attr("href"), f) }); if (location.hash && a.tabs == "a" && d.find("[href=" + location.hash + "]").length) e.click(location.hash);
        else if (a.initialIndex === 0 || a.initialIndex > 0) e.click(a.initialIndex)
    } c.tools = c.tools || { version: "1.2.5" }; c.tools.tabs = { conf: { tabs: "a", current: "current", onBeforeClick: null, onClick: null, effect: "default", initialIndex: 0, event: "click", rotate: false, history: false }, addEffect: function(d, b) { o[d] = b } }; var o = { "default": function(d, b) { this.getPanes().hide().eq(d).show(); b.call() }, fade: function(d, b) { var a = this.getConf(), e = a.fadeOutSpeed, l = this.getPanes(); e ? l.fadeOut(e) : l.hide(); l.eq(d).fadeIn(a.fadeInSpeed, b) }, slide: function(d,
b) { this.getPanes().slideUp(200); this.getPanes().eq(d).slideDown(400, b) }, ajax: function(d, b) { this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"), b) } 
    }, m; c.tools.tabs.addEffect("horizontal", function(d, b) { m || (m = this.getPanes().eq(0).width()); this.getCurrentPane().animate({ width: 0 }, function() { c(this).hide() }); this.getPanes().eq(d).animate({ width: m }, function() { c(this).show(); b.call() }) }); c.fn.tabs = function(d, b) {
        var a = this.data("tabs"); if (a) { a.destroy(); this.removeData("tabs") } if (c.isFunction(b)) b =
{ onBeforeClick: b }; b = c.extend({}, c.tools.tabs.conf, b); this.each(function() { a = new p(c(this), d, b); c(this).data("tabs", a) }); return b.api ? a : this
    } 
})(jQuery);
(function(c) {
    function p(g, a) {
        function m(f) { var e = c(f); return e.length < 2 ? e : g.parent().find(f) } var b = this, i = g.add(this), d = g.data("tabs"), h, j = true, n = m(a.next).click(function() { d.next() }), k = m(a.prev).click(function() { d.prev() }); c.extend(b, { getTabs: function() { return d }, getConf: function() { return a }, play: function() { if (h) return b; var f = c.Event("onBeforePlay"); i.trigger(f); if (f.isDefaultPrevented()) return b; h = setInterval(d.next, a.interval); j = false; i.trigger("onPlay"); return b }, pause: function() {
            if (!h) return b;
            var f = c.Event("onBeforePause"); i.trigger(f); if (f.isDefaultPrevented()) return b; h = clearInterval(h); i.trigger("onPause"); return b
        }, stop: function() { b.pause(); j = true } 
        }); c.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","), function(f, e) { c.isFunction(a[e]) && c(b).bind(e, a[e]); b[e] = function(q) { return c(b).bind(e, q) } }); a.autopause && d.getTabs().add(n).add(k).add(d.getPanes()).hover(b.pause, function() { j || b.play() }); a.autoplay && b.play(); a.clickable && d.getPanes().click(function() { d.next() }); if (!d.getConf().rotate) {
            var l =
a.disabledClass; d.getIndex() || k.addClass(l); d.onBeforeClick(function(f, e) { k.toggleClass(l, !e); n.toggleClass(l, e == d.getTabs().length - 1) })
        } 
    } var o; o = c.tools.tabs.slideshow = { conf: { next: ".forward", prev: ".backward", disabledClass: "disabled", autoplay: false, autopause: true, interval: 3E3, clickable: true, api: false} }; c.fn.slideshow = function(g) { var a = this.data("slideshow"); if (a) return a; g = c.extend({}, o.conf, g); this.each(function() { a = new p(c(this), g); c(this).data("slideshow", a) }); return g.api ? a : this } 
})(jQuery);
(function(e) {
    function p(f, c) { var b = e(c); return b.length < 2 ? b : f.parent().find(c) } function u(f, c) {
        var b = this, n = f.add(b), g = f.children(), l = 0, j = c.vertical; k || (k = b); if (g.length > 1) g = e(c.items, f); e.extend(b, { getConf: function() { return c }, getIndex: function() { return l }, getSize: function() { return b.getItems().size() }, getNaviButtons: function() { return o.add(q) }, getRoot: function() { return f }, getItemWrap: function() { return g }, getItems: function() { return g.children(c.item).not("." + c.clonedClass) }, move: function(a, d) {
            return b.seekTo(l +
a, d)
        }, next: function(a) { return b.move(1, a) }, prev: function(a) { return b.move(-1, a) }, begin: function(a) { return b.seekTo(0, a) }, end: function(a) { return b.seekTo(b.getSize() - 1, a) }, focus: function() { return k = b }, addItem: function(a) { a = e(a); if (c.circular) { g.children("." + c.clonedClass + ":last").before(a); g.children("." + c.clonedClass + ":first").replaceWith(a.clone().addClass(c.clonedClass)) } else g.append(a); n.trigger("onAddItem", [a]); return b }, seekTo: function(a, d, h) {
            a.jquery || (a *= 1); if (c.circular && a === 0 && l == -1 && d !==
0) return b; if (!c.circular && a < 0 || a > b.getSize() || a < -1) return b; var i = a; if (a.jquery) a = b.getItems().index(a); else i = b.getItems().eq(a); var r = e.Event("onBeforeSeek"); if (!h) { n.trigger(r, [a, d]); if (r.isDefaultPrevented() || !i.length) return b } i = j ? { top: -i.position().top} : { left: -i.position().left }; l = a; k = b; if (d === undefined) d = c.speed; g.animate(i, d, c.easing, h || function() { n.trigger("onSeek", [a]) }); return b
        } 
        }); e.each(["onBeforeSeek", "onSeek", "onAddItem"], function(a, d) {
            e.isFunction(c[d]) && e(b).bind(d, c[d]); b[d] = function(h) {
                h &&
e(b).bind(d, h); return b
            } 
        }); if (c.circular) { var s = b.getItems().slice(-1).clone().prependTo(g), t = b.getItems().eq(1).clone().appendTo(g); s.add(t).addClass(c.clonedClass); b.onBeforeSeek(function(a, d, h) { if (!a.isDefaultPrevented()) if (d == -1) { b.seekTo(s, h, function() { b.end(0) }); return a.preventDefault() } else d == b.getSize() && b.seekTo(t, h, function() { b.begin(0) }) }); b.seekTo(0, 0, function() { }) } var o = p(f, c.prev).click(function() { b.prev() }), q = p(f, c.next).click(function() { b.next() }); if (!c.circular && b.getSize() > 1) {
            b.onBeforeSeek(function(a,
d) { setTimeout(function() { if (!a.isDefaultPrevented()) { o.toggleClass(c.disabledClass, d <= 0); q.toggleClass(c.disabledClass, d >= b.getSize() - 1) } }, 1) }); c.initialIndex || o.addClass(c.disabledClass)
        } c.mousewheel && e.fn.mousewheel && f.mousewheel(function(a, d) { if (c.mousewheel) { b.move(d < 0 ? 1 : -1, c.wheelSpeed || 50); return false } }); if (c.touch) {
            var m = {}; g[0].ontouchstart = function(a) { a = a.touches[0]; m.x = a.clientX; m.y = a.clientY }; g[0].ontouchmove = function(a) {
                if (a.touches.length == 1 && !g.is(":animated")) {
                    var d = a.touches[0], h =
m.x - d.clientX; d = m.y - d.clientY; b[j && d > 0 || !j && h > 0 ? "next" : "prev"](); a.preventDefault()
                } 
            } 
        } c.keyboard && e(document).bind("keydown.scrollable", function(a) { if (!(!c.keyboard || a.altKey || a.ctrlKey || e(a.target).is(":input"))) if (!(c.keyboard != "static" && k != b)) { var d = a.keyCode; if (j && (d == 38 || d == 40)) { b.move(d == 38 ? -1 : 1); return a.preventDefault() } if (!j && (d == 37 || d == 39)) { b.move(d == 37 ? -1 : 1); return a.preventDefault() } } }); c.initialIndex && b.seekTo(c.initialIndex, 0, function() { })
    } e.tools = e.tools || { version: "1.2.5" }; e.tools.scrollable =
{ conf: { activeClass: "active", circular: false, clonedClass: "cloned", disabledClass: "disabled", easing: "swing", initialIndex: 0, item: null, items: ".items", keyboard: true, mousewheel: false, next: ".next", prev: ".prev", speed: 400, vertical: false, touch: true, wheelSpeed: 0} }; var k; e.fn.scrollable = function(f) { var c = this.data("scrollable"); if (c) return c; f = e.extend({}, e.tools.scrollable.conf, f); this.each(function() { c = new u(e(this), f); e(this).data("scrollable", c) }); return f.api ? c : this } 
})(jQuery);
(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);
(function(d) {
    function p(b, g) { var h = d(g); return h.length < 2 ? h : b.parent().find(g) } var m = d.tools.scrollable; m.navigator = { conf: { navi: ".navi", naviItem: null, activeClass: "active", indexed: false, idPrefix: null, history: false} }; d.fn.navigator = function(b) {
        if (typeof b == "string") b = { navi: b }; b = d.extend({}, m.navigator.conf, b); var g; this.each(function() {
            function h(a, c, i) { e.seekTo(c); if (j) { if (location.hash) location.hash = a.attr("href").replace("#", "") } else return i.preventDefault() } function f() {
                return k.find(b.naviItem ||
"> *")
            } function n(a) { var c = d("<" + (b.naviItem || "a") + "/>").click(function(i) { h(d(this), a, i) }).attr("href", "#" + a); a === 0 && c.addClass(l); b.indexed && c.text(a + 1); b.idPrefix && c.attr("id", b.idPrefix + a); return c.appendTo(k) } function o(a, c) { a = f().eq(c.replace("#", "")); a.length || (a = f().filter("[href=" + c + "]")); a.click() } var e = d(this).data("scrollable"), k = b.navi.jquery ? b.navi : p(e.getRoot(), b.navi), q = e.getNaviButtons(), l = b.activeClass, j = b.history && d.fn.history; if (e) g = e; e.getNaviButtons = function() { return q.add(k) };
            f().length ? f().each(function(a) { d(this).click(function(c) { h(d(this), a, c) }) }) : d.each(e.getItems(), function(a) { n(a) }); e.onBeforeSeek(function(a, c) { setTimeout(function() { if (!a.isDefaultPrevented()) { var i = f().eq(c); !a.isDefaultPrevented() && i.length && f().removeClass(l).eq(c).addClass(l) } }, 1) }); e.onAddItem(function(a, c) { c = n(e.getItems().index(c)); j && c.history(o) }); j && f().history(o)
        }); return b.api ? g : this
    } 
})(jQuery);

