/*
 * jQuery Tools 1.2.5 - The missing UI library for the Web
 * 
 * [tooltip]
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 * File generated: Fri Oct 22 09:07:10 GMT 2010
 */
(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,d=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];d+=a.outerWidth()+c.offset[1];if(/iPad/i.test(navigator.userAgent))h-=f(window).scrollTop();var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")d-=a/2;if(i=="left")d-=a;return{top:h,left:d}}function u(a,b){var c=this,h=a.add(c),d,i=0,j=
0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configuration for "+t;a.bind(k[0],function(e){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(e)},b.predelay);else c.show(e)}).bind(k[1],function(e){clearTimeout(j);if(b.delay)i=
setTimeout(function(){c.hide(e)},b.delay);else c.hide(e)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q)d=f(q);else if(b.tip)d=f(b.tip).eq(0);else if(m)d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else{d=a.next();d.length||(d=a.parent().next())}if(!d.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;d.stop(true,true);var g=p(a,d,b);b.tip&&d.html(a.data("title"));e=e||f.Event();e.type="onBeforeShow";
h.trigger(e,[g]);if(e.isDefaultPrevented())return c;g=p(a,d,b);d.css({position:"absolute",top:g.top,left:g.left});l=true;r[0].call(c,function(){e.type="onShow";l="full";h.trigger(e)});g=b.events.tooltip.split(/,\s*/);if(!d.data("__set")){d.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&d.bind(g[1],function(n){n.relatedTarget!=a[0]&&a.trigger(k[1].split(" ")[0])});d.data("__set",true)}return c},hide:function(e){if(!d||!c.isShown())return c;
e=e||f.Event();e.type="onBeforeHide";h.trigger(e);if(!e.isDefaultPrevented()){l=false;o[b.effect][1].call(c,function(){e.type="onHide";h.trigger(e)});return c}},isShown:function(e){return e?l=="full":l},getConf:function(){return b},getTip:function(){return d},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(e,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(n){n&&f(c).bind(g,n);return c}})}f.tools=f.tools||{version:"1.2.5"};f.tools.tooltip=
{conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){o[a]=[b,c]}};var o={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();
a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new u(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);

(function (b) { b.tools = b.tools || { version: {} };b.tools.version.overlay = "1.0.4";var c = [];function a(h, d) { var r = this, q = b(window), f, n, s, i, k, m, l;var e = d.expose && b.tools.version.expose;function p(o, t) { b(r).bind(o, function (v, u) { if(t && t.call(this) === false && u) { u.proceed = false } });return r } b.each(d, function (o, t) { if(b.isFunction(t)) { p(o, t) } });var j = d.target || h.attr("rel");var g = j ? b(j) : null;if(!g) { g = h } else { k = h } q.load(function () { m = g.attr("overlay");if(!m) { m = g.css("backgroundImage");if(!m) { throw "background-image CSS property not set for overlay element: " + j } m = m.substring(m.indexOf("(") + 1, m.indexOf(")")).replace(/\"/g, "");g.css("backgroundImage", "none");g.attr("overlay", m) } s = g.outerWidth({ margin: true });i = g.outerHeight({ margin: true });n = b('<img src="' + m + '"/>');n.css({ border: 0, position: "absolute", display: "none" }).width(s).attr("overlay", true);b("body").append(n);if(k) { k.bind("click.overlay", function (o) { r.load(o.pageY - q.scrollTop(), o.pageX - q.scrollLeft());return o.preventDefault() }) } d.close = d.close || ".close";if(!g.find(d.close).length) { g.prepend('<div class="close"></div>') } f = g.find(d.close);f.bind("click.overlay", function () { r.close() });if(d.preload) { setTimeout(function () { var o = new Image();o.src = m }, 2000) } });b.extend(r, { load: function (w, v) { if(!n) { q.load(function () { r.load(w, v) });return r } if(r.isOpened()) { return r } if(d.oneInstance) { b.each(c, function () { this.close() }) } var u = { proceed: true };b(r).trigger("onBeforeLoad", u);if(!u.proceed) { return r } if(e) { n.expose(d.expose);l = n.expose().load() } w = w || d.start.top;v = v || d.start.left;var o = d.finish.top;var t = d.finish.left;if(o == "center") { o = Math.max((q.height() - i) / 2, 0) } if(t == "center") { t = Math.max((q.width() - s) / 2, 0) } if(!d.start.absolute) { w += q.scrollTop();v += q.scrollLeft() } if(!d.finish.absolute) { o += q.scrollTop();t += q.scrollLeft() } n.css({ top: w, left: v, width: d.start.width, zIndex: d.zIndex }).show();n.animate({ top: o, left: t, width: s }, d.speed, function () { g.css({ position: "absolute", top: o, left: t });var x = n.css("zIndex");f.add(g).css("zIndex", ++x);g.fadeIn(d.fadeInSpeed, function () { b(r).trigger("onLoad") }) });return r }, close: function () { if(!r.isOpened()) { return r } var u = { proceed: true };b(r).trigger("onBeforeClose", u);if(!u.proceed) { return r } if(l) { l.close() } if(n.is(":visible")) { g.hide();var t = d.start.top;var o = d.start.left;if(k) { u = k.offset();t = u.top + k.height() / 2;o = u.left + k.width() / 2 } n.animate({ top: t, left: o, width: 0 }, d.closeSpeed, function () { b(r).trigger("onClose", u) }) } return r }, getBackgroundImage: function () { return n }, getContent: function () { return g }, getTrigger: function () { return k }, isOpened: function () { return g.is(":visible") }, getConf: function () { return d }, onBeforeLoad: function (o) { return p("onBeforeLoad", o) }, onLoad: function (o) { return p("onLoad", o) }, onBeforeClose: function (o) { return p("onBeforeClose", o) }, onClose: function (o) { return p("onClose", o) } });b(document).keydown(function (o) { if(o.keyCode == 27) { r.close() } });if(d.closeOnClick) { b(document).bind("click.overlay", function (o) { if(!g.is(":visible, :animated")) { return } var t = b(o.target);if(t.attr("overlay")) { return } if(t.parents("[overlay]").length) { return } r.close() }) } } b.fn.overlay = function (e) { var f = this.eq(typeof e == "number" ? e : 0).data("overlay");if(f) { return f } var d = b(window);var g = { start: { top: Math.round(d.height() / 2), left: Math.round(d.width() / 2), width: 0, absolute: false }, finish: { top: 80, left: "center", absolute: false }, speed: "normal", fadeInSpeed: "fast", closeSpeed: "fast", close: null, oneInstance: true, closeOnClick: true, preload: true, zIndex: 9999, api: false, expose: null, target: null };if(b.isFunction(e)) { e = { onBeforeLoad: e} } b.extend(true, g, e);this.each(function () { f = new a(b(this), g);c.push(f);b(this).data("overlay", f) });return g.api ? f : this } })(jQuery);
