/*
 * jquery.tools 1.1.2 - The missing UI library for the Web
 * 
 * [tools.scrollable-1.1.2]
 * 
 * Copyright (c) 2009 Tero Piirainen
 * http://flowplayer.org/tools/
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * http://www.opensource.org/licenses
 * 
 * -----
 * 
 * File generated: Mon Jan 11 13:00:51 GMT 2010
 */

(function(c) { c.tools = c.tools || { version: {} }; c.tools.version.tabs = "1.0.1"; c.tools.addTabEffect = function(d, e) { b[d] = e }; var b = { "default": function(d) { this.getPanes().hide().eq(d).show() }, fade: function(d) { this.getPanes().hide().eq(d).fadeIn(this.getConf().fadeInSpeed) }, slide: function(d) { this.getCurrentPane().slideUp("fast"); this.getPanes().eq(d).slideDown() }, horizontal: function(d) { if (!c._hW) { c._hW = this.getPanes().eq(0).width() } this.getCurrentPane().animate({ width: 0 }, function() { c(this).hide() }); this.getPanes().eq(d).animate({ width: c._hW }, function() { c(this).show() }) } }; function a(e, f, g) { var d = this; var h; function i(j, k) { c(d).bind(j, function(m, l) { if (k && k.call(this, l.index) === false && l) { l.proceed = false } }); return d } c.each(g, function(j, k) { if (c.isFunction(k)) { i(j, k) } }); c.extend(this, { click: function(k) { if (k === h) { return d } var m = d.getCurrentPane(); var l = e.eq(k); if (typeof k == "string") { l = e.filter("[href=" + k + "]"); k = e.index(l) } if (!l.length) { if (h >= 0) { return d } k = g.initialIndex; l = e.eq(k) } var j = { index: k, proceed: true }; c(d).triggerHandler("onBeforeClick", j); if (!j.proceed) { return d } l.addClass(g.current); b[g.effect].call(d, k); c(d).triggerHandler("onClick", j); e.removeClass(g.current); l.addClass(g.current); h = k; return d }, getConf: function() { return g }, getTabs: function() { return e }, getPanes: function() { return f }, getCurrentPane: function() { return f.eq(h) }, getCurrentTab: function() { return e.eq(h) }, getIndex: function() { return h }, next: function() { return d.click(h + 1) }, prev: function() { return d.click(h - 1) }, onBeforeClick: function(j) { return i("onBeforeClick", j) }, onClick: function(j) { return i("onClick", j) } }); e.each(function(j) { c(this).bind(g.event, function(k) { d.click(j); if (!g.history) { return k.preventDefault() } }) }); if (g.history) { e.history(function(j, k) { d.click(k || 0) }) } if (location.hash) { d.click(location.hash) } else { d.click(g.initialIndex) } f.find("a[href^=#]").click(function() { d.click(c(this).attr("href")) }) } c.fn.tabs = function(g, d) { var e = this.eq(typeof conf == "number" ? conf : 0).data("tabs"); if (e) { return e } var f = { tabs: "a", current: "current", onBeforeClick: null, onClick: null, effect: "default", history: false, initialIndex: 0, event: "click", api: false }; if (c.isFunction(d)) { d = { onBeforeClick: d} } c.extend(f, d); this.each(function() { var h = c(this).find(f.tabs); if (!h.length) { h = c(this).children() } var i = g.jquery ? g : c(g); e = new a(h, i, f); c(this).data("tabs", e) }); return f.api ? e : this } })(jQuery); (function(b) { var c, a; b.prototype.history = function(e) { var d = this; if (b.browser.msie) { if (!a) { a = b("<iframe />").hide().get(0); b("body").append(a); setInterval(function() { var f = a.contentWindow.document; var g = f.location.hash; if (c !== g) { b.event.trigger("hash", g); c = g } }, 100) } d.bind("click.hash", function(g) { var f = a.contentWindow.document; f.open().close(); f.location.hash = b(this).attr("href") }); d.eq(0).triggerHandler("click.hash") } else { setInterval(function() { var f = location.hash; if (d.filter("[href*=" + f + "]").length && f !== c) { c = f; b.event.trigger("hash", f) } }, 100) } b(window).bind("hash", e); return this } })(jQuery);
(function(c) { c.tools = c.tools || { version: {} }; c.tools.version.tooltip = "1.0.2"; var b = { toggle: [function() { this.getTip().show() }, function() { this.getTip().hide() } ], fade: [function() { this.getTip().fadeIn(this.getConf().fadeInSpeed) }, function() { this.getTip().fadeOut(this.getConf().fadeOutSpeed) } ] }; c.tools.addTipEffect = function(d, f, e) { b[d] = [f, e] }; c.tools.addTipEffect("slideup", function() { var d = this.getConf(); var e = d.slideOffset || 10; this.getTip().css({ opacity: 0 }).animate({ top: "-=" + e, opacity: d.opacity }, d.slideInSpeed || 200).show() }, function() { var d = this.getConf(); var e = d.slideOffset || 10; this.getTip().animate({ top: "-=" + e, opacity: 0 }, d.slideOutSpeed || 200, function() { c(this).hide().animate({ top: "+=" + (e * 2) }, 0) }) }); function a(f, e) { var d = this; var h = f.next(); if (e.tip) { if (e.tip.indexOf("#") != -1) { h = c(e.tip) } else { h = f.nextAll(e.tip).eq(0); if (!h.length) { h = f.parent().nextAll(e.tip).eq(0) } } } function j(k, l) { c(d).bind(k, function(n, m) { if (l && l.call(this) === false && m) { m.proceed = false } }); return d } c.each(e, function(k, l) { if (c.isFunction(l)) { j(k, l) } }); var g = f.is("input, textarea"); f.bind(g ? "focus" : "mouseover", function(k) { k.target = this; d.show(k); h.hover(function() { d.show() }, function() { d.hide() }) }); f.bind(g ? "blur" : "mouseout", function() { d.hide() }); h.css("opacity", e.opacity); var i = 0; c.extend(d, { show: function(q) { if (q) { f = c(q.target) } clearTimeout(i); if (h.is(":animated") || h.is(":visible")) { return d } var o = { proceed: true }; c(d).trigger("onBeforeShow", o); if (!o.proceed) { return d } var n = f.position().top - h.outerHeight(); var k = h.outerHeight() + f.outerHeight(); var r = e.position[0]; if (r == "center") { n += k / 2 } if (r == "bottom") { n += k } var l = f.outerWidth() + h.outerWidth(); var m = f.position().left + f.outerWidth(); r = e.position[1]; if (r == "center") { m -= l / 2 } if (r == "left") { m -= l } n += e.offset[0]; m += e.offset[1]; h.css({ position: "absolute", top: n, left: m }); b[e.effect][0].call(d); c(d).trigger("onShow"); return d }, hide: function() { clearTimeout(i); i = setTimeout(function() { if (!h.is(":visible")) { return d } var k = { proceed: true }; c(d).trigger("onBeforeHide", k); if (!k.proceed) { return d } b[e.effect][1].call(d); c(d).trigger("onHide") }, e.delay || 1); return d }, isShown: function() { return h.is(":visible, :animated") }, getConf: function() { return e }, getTip: function() { return h }, getTrigger: function() { return f }, onBeforeShow: function(k) { return j("onBeforeShow", k) }, onShow: function(k) { return j("onShow", k) }, onBeforeHide: function(k) { return j("onBeforeHide", k) }, onHide: function(k) { return j("onHide", k) } }) } c.prototype.tooltip = function(d) { var e = this.eq(typeof d == "number" ? d : 0).data("tooltip"); if (e) { return e } var f = { tip: null, effect: "slideup", delay: 30, opacity: 1, position: ["top", "center"], offset: [0, 0], api: false }; if (c.isFunction(d)) { d = { onBeforeShow: d} } c.extend(f, d); this.each(function() { e = new a(c(this), f); c(this).data("tooltip", e) }); return f.api ? e : this } })(jQuery);

(function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var c;function a(o,m){var r=this,p=b(this),d=!m.vertical,e=o.children(),k=0,i;if(!c){c=r}b.each(m,function(s,t){if(b.isFunction(t)){p.bind(s,t)}});if(e.length>1){e=b(m.items,o)}function l(t){var s=b(t);return m.globalNav?s:o.parent().find(t)}o.data("finder",l);var f=l(m.prev),h=l(m.next),g=l(m.prevPage),n=l(m.nextPage);b.extend(r,{getIndex:function(){return k},getClickIndex:function(){var s=r.getItems();return s.index(s.filter("."+m.activeClass))},getConf:function(){return m},getSize:function(){return r.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/m.size)},getPageIndex:function(){return Math.ceil(k/m.size)},getNaviButtons:function(){return f.add(h).add(g).add(n)},getRoot:function(){return o},getItemWrap:function(){return e},getItems:function(){return e.children(m.item)},getVisibleItems:function(){return r.getItems().slice(k,k+m.size)},seekTo:function(s,w,t){if(s<0){s=0}if(k===s){return r}if(b.isFunction(w)){t=w}if(s>r.getSize()-m.size){return m.loop?r.begin():this.end()}var u=r.getItems().eq(s);if(!u.length){return r}var v=b.Event("onBeforeSeek");p.trigger(v,[s]);if(v.isDefaultPrevented()){return r}if(w===undefined||b.isFunction(w)){w=m.speed}function x(){if(t){t.call(r,s)}p.trigger("onSeek",[s])}if(d){e.animate({left:-u.position().left},w,m.easing,x)}else{e.animate({top:-u.position().top},w,m.easing,x)}c=r;k=s;v=b.Event("onStart");p.trigger(v,[s]);if(v.isDefaultPrevented()){return r}f.add(g).toggleClass(m.disabledClass,s===0);h.add(n).toggleClass(m.disabledClass,s>=r.getSize()-m.size);return r},move:function(u,t,s){i=u>0;return this.seekTo(k+u,t,s)},next:function(t,s){return this.move(1,t,s)},prev:function(t,s){return this.move(-1,t,s)},movePage:function(w,v,u){i=w>0;var s=m.size*w;var t=k%m.size;if(t>0){s+=(w>0?-t:m.size-t)}return this.move(s,v,u)},prevPage:function(t,s){return this.movePage(-1,t,s)},nextPage:function(t,s){return this.movePage(1,t,s)},setPage:function(t,u,s){return this.seekTo(t*m.size,u,s)},begin:function(t,s){i=false;return this.seekTo(0,t,s)},end:function(t,s){i=true;var u=this.getSize()-m.size;return u>0?this.seekTo(u,t,s):r},reload:function(){p.trigger("onReload");return r},focus:function(){c=r;return r},click:function(u){var v=r.getItems().eq(u),s=m.activeClass,t=m.size;if(u<0||u>=r.getSize()){return r}if(t==1){if(m.loop){return r.next()}if(u===0||u==r.getSize()-1){i=(i===undefined)?true:!i}return i===false?r.prev():r.next()}if(t==2){if(u==k){u--}r.getItems().removeClass(s);v.addClass(s);return r.seekTo(u,time,fn)}if(!v.hasClass(s)){r.getItems().removeClass(s);v.addClass(s);var x=Math.floor(t/2);var w=u-x;if(w>r.getSize()-t){w=r.getSize()-t}if(w!==u){return r.seekTo(w)}}return r},bind:function(s,t){p.bind(s,t);return r},unbind:function(s){p.unbind(s);return r}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(s,t){r[t]=function(u){return r.bind(t,u)}});f.addClass(m.disabledClass).click(function(){r.prev()});h.click(function(){r.next()});n.click(function(){r.nextPage()});if(r.getSize()<m.size){h.add(n).addClass(m.disabledClass)}g.addClass(m.disabledClass).click(function(){r.prevPage()});var j=m.hoverClass,q="keydown."+Math.random().toString().substring(10);r.onReload(function(){if(j){r.getItems().hover(function(){b(this).addClass(j)},function(){b(this).removeClass(j)})}if(m.clickable){r.getItems().each(function(s){b(this).unbind("click.scrollable").bind("click.scrollable",function(t){if(b(t.target).is("a")){return}return r.click(s)})})}if(m.keyboard){b(document).unbind(q).bind(q,function(t){if(t.altKey||t.ctrlKey){return}if(m.keyboard!="static"&&c!=r){return}var u=m.keyboardSteps;if(d&&(t.keyCode==37||t.keyCode==39)){r.move(t.keyCode==37?-u:u);return t.preventDefault()}if(!d&&(t.keyCode==38||t.keyCode==40)){r.move(t.keyCode==38?-u:u);return t.preventDefault()}return true})}else{b(document).unbind(q)}});r.reload()}b.fn.scrollable=function(d){var e=this.eq(typeof d=="number"?d:0).data("scrollable");if(e){return e}var f=b.extend({},b.tools.scrollable.conf);d=b.extend(f,d);d.keyboardSteps=d.keyboardSteps||d.size;this.each(function(){e=new a(b(this),d);b(this).data("scrollable",e)});return d.api?e:this}})(jQuery);