(function(b){function s(c,d){var a=this,g=c.add(a),f=b(window),e,j,n,l=b.tools.expose&&(d.mask||d.expose),q=Math.random().toString().slice(10);l&&(typeof l=="string"&&(l={color:l}),l.closeOnClick=l.closeOnEsc=false);var m=d.target||c.attr("rel");j=m?b(m):c;if(!j.length)throw"Could not find Overlay: "+m;c&&c.index(j)==-1&&c.click(function(k){a.load(k);return k.preventDefault()});b.extend(a,{load:function(k){if(a.isOpened())return a;var i=h[d.effect];if(!i)throw'Overlay: cannot find effect : "'+d.effect+
'"';d.oneInstance&&b.each(o,function(){this.close(k)});k=k||b.Event();k.type="onBeforeLoad";g.trigger(k);if(k.isDefaultPrevented())return a;n=true;l&&b(j).expose(l);var p=d.top,t=d.left,r=j.outerWidth({margin:true}),u=j.outerHeight({margin:true});typeof p=="string"&&(p=p=="center"?Math.max((f.height()-u)/2,0):parseInt(p,10)/100*f.height());t=="center"&&(t=Math.max((f.width()-r)/2,0));i[0].call(a,{top:p,left:t},function(){n&&(k.type="onLoad",g.trigger(k))});l&&d.closeOnClick&&b.mask.getMask().one("click",
a.close);d.closeOnClick&&b(document).bind("click."+q,function(v){b(v.target).parents(j).length||a.close(v)});d.closeOnEsc&&b(document).bind("keydown."+q,function(v){v.keyCode==27&&a.close(v)});return a},close:function(k){if(!a.isOpened())return a;k=k||b.Event();k.type="onBeforeClose";g.trigger(k);if(!k.isDefaultPrevented()){n=false;h[d.effect][1].call(a,function(){k.type="onClose";g.trigger(k)});b(document).unbind("click."+q).unbind("keydown."+q);l&&b.mask.close();return a}},getOverlay:function(){return j},
getTrigger:function(){return c},getClosers:function(){return e},isOpened:function(){return n},getConf:function(){return d}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(k,i){b.isFunction(d[i])&&b(a).bind(i,d[i]);a[i]=function(p){p&&b(a).bind(i,p);return a}});e=j.find(d.close||".close");!e.length&&!d.close&&(e=b('<a class="close"></a>'),j.prepend(e));e.click(function(k){a.close(k)});d.load&&a.load()}b.tools=b.tools||{version:"v1.2.5"};b.tools.overlay={addEffect:function(c,
d,a){h[c]=[d,a]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!b.browser.msie||b.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var o=[],h={};b.tools.overlay.addEffect("default",function(c,d){var a=this.getConf(),g=b(window);a.fixed||(c.top+=g.scrollTop(),c.left+=g.scrollLeft());c.position=a.fixed?"fixed":"absolute";this.getOverlay().css(c).fadeIn(a.speed,d)},function(c){this.getOverlay().fadeOut(this.getConf().closeSpeed,
c)});b.fn.overlay=function(c){var d=this.data("overlay");if(d)return d;b.isFunction(c)&&(c={onBeforeLoad:c});c=b.extend(true,{},b.tools.overlay.conf,c);this.each(function(){d=new s(b(this),c);o.push(d);b(this).data("overlay",d)});return c.api?d:this}})(jQuery);
(function(b){function s(c){var d=c.offset();return{top:d.top+c.height()/2,left:d.left+c.width()/2}}var o=b.tools.overlay,h=b(window);b.extend(o.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});o.addEffect("apple",function(c,d){var a=this.getOverlay(),g=this.getConf(),f=this.getTrigger(),e=this,j=a.outerWidth({margin:true}),n=a.data("img"),l=g.fixed?"fixed":"absolute";if(!n){n=a.css("backgroundImage");if(!n)throw"background-image CSS property not set for overlay";n=n.slice(n.indexOf("(")+
1,n.indexOf(")")).replace(/\"/g,"");a.css("backgroundImage","none");n=b('<img src="'+n+'"/>');n.css({border:0,display:"none"}).width(j);b("body").append(n);a.data("img",n)}var q=g.start.top||Math.round(h.height()/2),m=g.start.left||Math.round(h.width()/2);if(f){f=s(f);q=f.top;m=f.left}g.fixed?(q-=h.scrollTop(),m-=h.scrollLeft()):(c.top+=h.scrollTop(),c.left+=h.scrollLeft());n.css({position:"absolute",top:q,left:m,width:0,zIndex:g.zIndex}).show();c.position=l;a.css(c);n.animate({top:a.css("top"),left:a.css("left"),
width:j},g.speed,function(){a.css("zIndex",g.zIndex+1).fadeIn(g.fadeInSpeed,function(){e.isOpened()&&!b(this).index(a)?d.call():a.hide()})}).css("position",l)},function(c){var d=this.getOverlay().hide(),a=this.getConf(),g=this.getTrigger();d=d.data("img");var f={top:a.start.top,left:a.start.left,width:0};g&&b.extend(f,s(g));a.fixed&&d.css({position:"absolute"}).animate({top:"+="+h.scrollTop(),left:"+="+h.scrollLeft()},0);d.animate(f,a.closeSpeed,c)})})(jQuery);
(function(b){function s(c,d){var a=b(d);return a.length<2?a:c.parent().find(d)}function o(c,d){var a=this,g=c.add(a),f=c.children(),e=0,j=d.vertical;h||(h=a);f.length>1&&(f=b(d.items,c));b.extend(a,{getConf:function(){return d},getIndex:function(){return e},getSize:function(){return a.getItems().size()},getNaviButtons:function(){return q.add(m)},getRoot:function(){return c},getItemWrap:function(){return f},getItems:function(){return f.children(d.item).not("."+d.clonedClass)},move:function(i,p){return a.seekTo(e+
i,p)},next:function(i){return a.move(1,i)},prev:function(i){return a.move(-1,i)},begin:function(i){return a.seekTo(0,i)},end:function(i){return a.seekTo(a.getSize()-1,i)},focus:function(){return h=a},addItem:function(i){i=b(i);d.circular?(f.children("."+d.clonedClass+":last").before(i),f.children("."+d.clonedClass+":first").replaceWith(i.clone().addClass(d.clonedClass))):f.append(i);g.trigger("onAddItem",[i]);return a},seekTo:function(i,p,t){i.jquery||(i*=1);if(d.circular&&i===0&&e==-1&&p!==0)return a;
if(!d.circular&&i<0||i>a.getSize()||i<-1)return a;var r=i;i.jquery?i=a.getItems().index(i):r=a.getItems().eq(i);var u=b.Event("onBeforeSeek");if(!t){g.trigger(u,[i,p]);if(u.isDefaultPrevented()||!r.length)return a}r=j?{top:-r.position().top}:{left:-r.position().left};e=i;h=a;p===undefined&&(p=d.speed);f.animate(r,p,d.easing,t||function(){g.trigger("onSeek",[i])});return a}});b.each(["onBeforeSeek","onSeek","onAddItem"],function(i,p){b.isFunction(d[p])&&b(a).bind(p,d[p]);a[p]=function(t){t&&b(a).bind(p,
t);return a}});if(d.circular){var n=a.getItems().slice(-1).clone().prependTo(f),l=a.getItems().eq(1).clone().appendTo(f);n.add(l).addClass(d.clonedClass);a.onBeforeSeek(function(i,p,t){if(!i.isDefaultPrevented()){if(p==-1){a.seekTo(n,t,function(){a.end(0)});return i.preventDefault()}p==a.getSize()&&a.seekTo(l,t,function(){a.begin(0)})}});a.seekTo(0,0,function(){})}var q=s(c,d.prev).click(function(){a.prev()}),m=s(c,d.next).click(function(){a.next()});!d.circular&&a.getSize()>1&&(a.onBeforeSeek(function(i,
p){setTimeout(function(){i.isDefaultPrevented()||(q.toggleClass(d.disabledClass,p<=0),m.toggleClass(d.disabledClass,p>=a.getSize()-1))},1)}),d.initialIndex||q.addClass(d.disabledClass));d.mousewheel&&b.fn.mousewheel&&c.mousewheel(function(i,p){if(d.mousewheel){a.move(p<0?1:-1,d.wheelSpeed||50);return false}});if(d.touch){var k={};f[0].ontouchstart=function(i){i=i.touches[0];k.x=i.clientX;k.y=i.clientY};f[0].ontouchmove=function(i){if(i.touches.length==1&&!f.is(":animated")){var p=i.touches[0],t=k.x-
p.clientX;p=k.y-p.clientY;a[j&&p>0||!j&&t>0?"next":"prev"]();i.preventDefault()}}}d.keyboard&&b(document).bind("keydown.scrollable",function(i){if(d.keyboard&&!i.altKey&&!i.ctrlKey&&!b(i.target).is(":input"))if(!(d.keyboard!="static"&&h!=a)){var p=i.keyCode;if(j&&(p==38||p==40)){a.move(p==38?-1:1);return i.preventDefault()}if(!j&&(p==37||p==39)){a.move(p==37?-1:1);return i.preventDefault()}}});d.initialIndex&&a.seekTo(d.initialIndex,0,function(){})}b.tools=b.tools||{version:"v1.2.5"};b.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 h;b.fn.scrollable=function(c){var d=this.data("scrollable");if(d)return d;c=b.extend({},b.tools.scrollable.conf,c);this.each(function(){d=new o(b(this),c);b(this).data("scrollable",d)});return c.api?d:this}})(jQuery);
(function(b){var s=b.tools.scrollable;s.autoscroll={conf:{autoplay:true,interval:3E3,autopause:true}};b.fn.autoscroll=function(o){typeof o=="number"&&(o={interval:o});var h=b.extend({},s.autoscroll.conf,o),c;this.each(function(){var d=b(this).data("scrollable");d&&(c=d);var a;d.play=function(){a||(a=setInterval(function(){d.next()},h.interval))};d.pause=function(){a=clearInterval(a)};d.stop=function(){d.pause()};h.autopause&&d.getRoot().add(d.getNaviButtons()).hover(d.pause,d.play);h.autoplay&&d.play()});
return h.api?c:this}})(jQuery);
(function(b){function s(h,c){var d=b(c);return d.length<2?d:h.parent().find(c)}var o=b.tools.scrollable;o.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};b.fn.navigator=function(h){typeof h=="string"&&(h={navi:h});h=b.extend({},o.navigator.conf,h);var c;this.each(function(){function d(m,k,i){e.seekTo(k);if(q)location.hash&&(location.hash=m.attr("href").replace("#",""));else return i.preventDefault()}function a(){return j.find(h.naviItem||"> *")}
function g(m){var k=b("<"+(h.naviItem||"a")+"/>").click(function(i){d(b(this),m,i)}).attr("href","#"+m);m===0&&k.addClass(l);h.indexed&&k.text(m+1);h.idPrefix&&k.attr("id",h.idPrefix+m);return k.appendTo(j)}function f(m,k){var i=a().eq(k.replace("#",""));i.length||(i=a().filter("[href="+k+"]"));i.click()}var e=b(this).data("scrollable"),j=h.navi.jquery?h.navi:s(e.getRoot(),h.navi),n=e.getNaviButtons(),l=h.activeClass,q=h.history&&b.fn.history;e&&(c=e);e.getNaviButtons=function(){return n.add(j)};
a().length?a().each(function(m){b(this).click(function(k){d(b(this),m,k)})}):b.each(e.getItems(),function(m){g(m)});e.onBeforeSeek(function(m,k){setTimeout(function(){if(!m.isDefaultPrevented()){var i=a().eq(k);!m.isDefaultPrevented()&&i.length&&a().removeClass(l).eq(k).addClass(l)}},1)});e.onAddItem(function(m,k){k=g(e.getItems().index(k));q&&k.history(f)});q&&a().history(f)});return h.api?c:this}})(jQuery);
(function(b){function s(c,d,a){var g=this,f=c.add(this),e=c.find(a.tabs),j=d.jquery?d:c.children(d),n;e.length||(e=c.children());j.length||(j=c.parent().find(d));j.length||(j=b(d));b.extend(this,{click:function(l,q){var m=e.eq(l);typeof l=="string"&&l.replace("#","")&&(m=e.filter("[href*="+l.replace("#","")+"]"),l=Math.max(e.index(m),0));if(a.rotate){var k=e.length-1;if(l<0)return g.click(k,q);if(l>k)return g.click(0,q)}if(!m.length){if(n>=0)return g;l=a.initialIndex;m=e.eq(l)}if(l===n)return g;q=
q||b.Event();q.type="onBeforeClick";f.trigger(q,[l]);if(!q.isDefaultPrevented()){o[a.effect].call(g,l,function(){q.type="onClick";f.trigger(q,[l])});n=l;e.removeClass(a.current);m.addClass(a.current);return g}},getConf:function(){return a},getTabs:function(){return e},getPanes:function(){return j},getCurrentPane:function(){return j.eq(n)},getCurrentTab:function(){return e.eq(n)},getIndex:function(){return n},next:function(){return g.click(n+1)},prev:function(){return g.click(n-1)},destroy:function(){e.unbind(a.event).removeClass(a.current);
j.find("a[href^=#]").unbind("click.T");return g}});b.each("onBeforeClick,onClick".split(","),function(l,q){b.isFunction(a[q])&&b(g).bind(q,a[q]);g[q]=function(m){m&&b(g).bind(q,m);return g}});a.history&&b.fn.history&&(b.tools.history.init(e),a.event="history");e.each(function(l){b(this).bind(a.event,function(q){g.click(l,q);return q.preventDefault()})});j.find("a[href^=#]").bind("click.T",function(l){g.click(b(this).attr("href"),l)});location.hash&&a.tabs=="a"&&c.find("[href="+location.hash+"]").length?
g.click(location.hash):(a.initialIndex===0||a.initialIndex>0)&&g.click(a.initialIndex)}b.tools=b.tools||{version:"v1.2.5"};b.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(c,d){o[c]=d}};var o={"default":function(c,d){this.getPanes().hide().eq(c).show();d.call()},fade:function(c,d){var a=this.getConf(),g=a.fadeOutSpeed,f=this.getPanes();g?f.fadeOut(g):f.hide();f.eq(c).fadeIn(a.fadeInSpeed,
d)},slide:function(c,d){this.getPanes().slideUp(200);this.getPanes().eq(c).slideDown(400,d)},ajax:function(c,d){this.getPanes().eq(0).load(this.getTabs().eq(c).attr("href"),d)}},h;b.tools.tabs.addEffect("horizontal",function(c,d){h||(h=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){b(this).hide()});this.getPanes().eq(c).animate({width:h},function(){b(this).show();d.call()})});b.fn.tabs=function(c,d){var a=this.data("tabs");a&&(a.destroy(),this.removeData("tabs"));
b.isFunction(d)&&(d={onBeforeClick:d});d=b.extend({},b.tools.tabs.conf,d);this.each(function(){a=new s(b(this),c,d);b(this).data("tabs",a)});return d.api?a:this}})(jQuery);
(function(b){function s(h,c){function d(m){var k=b(m);return k.length<2?k:h.parent().find(m)}var a=this,g=h.add(this),f=h.data("tabs"),e,j=true,n=d(c.next).click(function(){f.next()}),l=d(c.prev).click(function(){f.prev()});b.extend(a,{getTabs:function(){return f},getConf:function(){return c},play:function(){if(e)return a;var m=b.Event("onBeforePlay");g.trigger(m);if(m.isDefaultPrevented())return a;e=setInterval(f.next,c.interval);j=false;g.trigger("onPlay");return a},pause:function(){if(!e)return a;
var m=b.Event("onBeforePause");g.trigger(m);if(m.isDefaultPrevented())return a;e=clearInterval(e);g.trigger("onPause");return a},stop:function(){a.pause();j=true}});b.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(m,k){b.isFunction(c[k])&&b(a).bind(k,c[k]);a[k]=function(i){return b(a).bind(k,i)}});c.autopause&&f.getTabs().add(n).add(l).add(f.getPanes()).hover(a.pause,function(){j||a.play()});c.autoplay&&a.play();c.clickable&&f.getPanes().click(function(){f.next()});if(!f.getConf().rotate){var q=
c.disabledClass;f.getIndex()||l.addClass(q);f.onBeforeClick(function(m,k){l.toggleClass(q,!k);n.toggleClass(q,k==f.getTabs().length-1)})}}var o;o=b.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3E3,clickable:true,api:false}};b.fn.slideshow=function(h){var c=this.data("slideshow");if(c)return c;h=b.extend({},o.conf,h);this.each(function(){c=new s(b(this),h);b(this).data("slideshow",c)});return h.api?c:this}})(jQuery);
(function(b){function s(){if(b.browser.msie){var e=b(document).height(),j=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e-j<20?j:e]}return[b(document).width(),b(document).height()]}function o(e){if(e)return e.call(b.mask)}b.tools=b.tools||{version:"v1.2.5"};var h;h=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,d,a,g,f;b.mask={load:function(e,j){if(a)return this;typeof e=="string"&&(e={color:e});e=e||g;g=e=b.extend(b.extend({},h.conf),e);c=b("#"+e.maskId);c.length||(c=b("<div/>").attr("id",e.maskId),b("body").append(c));var n=s();c.css({position:"absolute",top:0,left:0,width:n[0],height:n[1],display:"none",opacity:e.startOpacity,zIndex:e.zIndex});e.color&&c.css("backgroundColor",e.color);if(o(e.onBeforeLoad)===false)return this;e.closeOnEsc&&b(document).bind("keydown.mask",function(l){l.keyCode==
27&&b.mask.close(l)});e.closeOnClick&&c.bind("click.mask",function(l){b.mask.close(l)});b(window).bind("resize.mask",function(){b.mask.fit()});j&&j.length&&(f=j.eq(0).css("zIndex"),b.each(j,function(){var l=b(this);/relative|absolute|fixed/i.test(l.css("position"))||l.css("position","relative")}),d=j.css({zIndex:Math.max(e.zIndex+1,f=="auto"?0:f)}));c.css({display:"block"}).fadeTo(e.loadSpeed,e.opacity,function(){b.mask.fit();o(e.onLoad);a="full"});a=true;return this},close:function(){if(a){if(o(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){o(g.onClose);d&&d.css({zIndex:f});a=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(a){var e=s();c.css({width:e[0],height:e[1]})}},getMask:function(){return c},isLoaded:function(e){return e?a=="full":a},getConf:function(){return g},getExposed:function(){return d}};b.fn.mask=function(e){b.mask.load(e);return this};b.fn.expose=function(e){b.mask.load(e,this);return this}})(jQuery);
(function(b){function s(a){if(a){var g=h.contentWindow.document;g.open().close();g.location.hash=a}}var o,h,c,d;b.tools=b.tools||{version:"v1.2.5"};b.tools.history={init:function(a){d||(b.browser.msie&&b.browser.version<"8"?h||(h=b("<iframe/>").attr("src","javascript:false;").hide().get(0),b("body").append(h),setInterval(function(){var g=h.contentWindow.document.location.hash;o!==g&&b.event.trigger("hash",g)},100),s(location.hash||"#")):setInterval(function(){var g=location.hash;g!==o&&b.event.trigger("hash",
g)},100),c=c?c.add(a):a,a.click(function(g){var f=b(this).attr("href");h&&s(f);if(f.slice(0,1)!="#"){location.href="#"+f;return g.preventDefault()}}),d=true)}};b(window).bind("hash",function(a,g){g?c.filter(function(){var f=b(this).attr("href");return f==g||f==g.replace("#","")}).trigger("history",[g]):c.eq(0).trigger("history",[g]);o=g});b.fn.history=function(a){b.tools.history.init(this);return this.bind("history",a)}})(jQuery);
(function(b){function s(c,d,a){var g=a.relative?c.position().top:c.offset().top,f=a.relative?c.position().left:c.offset().left,e=a.position[0];g-=d.outerHeight()-a.offset[0];f+=c.outerWidth()+a.offset[1];/iPad/i.test(navigator.userAgent)&&(g-=b(window).scrollTop());var j=d.outerHeight()+c.outerHeight();e=="center"&&(g+=j/2);e=="bottom"&&(g+=j);e=a.position[1];c=d.outerWidth()+c.outerWidth();e=="center"&&(f-=c/2);e=="left"&&(f-=c);return{top:g,left:f}}function o(c,d){var a=this,g=c.add(a),f,e=0,j=
0,n=c.attr("title"),l=c.attr("data-tooltip"),q=h[d.effect],m,k=c.is(":input"),i=k&&c.is(":checkbox, :radio, select, :button, :submit"),p=c.attr("type"),t=d.events[p]||d.events[k?i?"widget":"input":"def"];if(!q)throw'Nonexistent effect "'+d.effect+'"';t=t.split(/,\s*/);if(t.length!=2)throw"Tooltip: bad events configuration for "+p;c.bind(t[0],function(r){clearTimeout(e);d.predelay?j=setTimeout(function(){a.show(r)},d.predelay):a.show(r)}).bind(t[1],function(r){clearTimeout(j);d.delay?e=setTimeout(function(){a.hide(r)},
d.delay):a.hide(r)});n&&d.cancelDefault&&(c.removeAttr("title"),c.data("title",n));b.extend(a,{show:function(r){if(!f){l?f=b(l):d.tip?f=b(d.tip).eq(0):n?f=b(d.layout).addClass(d.tipClass).appendTo(document.body).hide().append(n):(f=c.next(),f.length||(f=c.parent().next()));if(!f.length)throw"Cannot find tooltip for "+c;}if(a.isShown())return a;f.stop(true,true);var u=s(c,f,d);d.tip&&f.html(c.data("title"));r=r||b.Event();r.type="onBeforeShow";g.trigger(r,[u]);if(r.isDefaultPrevented())return a;u=
s(c,f,d);f.css({position:"absolute",top:u.top,left:u.left});m=true;q[0].call(a,function(){r.type="onShow";m="full";g.trigger(r)});u=d.events.tooltip.split(/,\s*/);f.data("__set")||(f.bind(u[0],function(){clearTimeout(e);clearTimeout(j)}),u[1]&&!c.is("input:not(:checkbox, :radio), textarea")&&f.bind(u[1],function(v){v.relatedTarget!=c[0]&&c.trigger(t[1].split(" ")[0])}),f.data("__set",true));return a},hide:function(r){if(!f||!a.isShown())return a;r=r||b.Event();r.type="onBeforeHide";g.trigger(r);if(!r.isDefaultPrevented()){m=
false;h[d.effect][1].call(a,function(){r.type="onHide";g.trigger(r)});return a}},isShown:function(r){return r?m=="full":m},getConf:function(){return d},getTip:function(){return f},getTrigger:function(){return c}});b.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(r,u){b.isFunction(d[u])&&b(a).bind(u,d[u]);a[u]=function(v){v&&b(a).bind(u,v);return a}})}b.tools=b.tools||{version:"v1.2.5"};b.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(c,d,a){h[c]=[d,a]}};var h={toggle:[function(c){var d=this.getConf(),a=this.getTip();d=d.opacity;d<1&&a.css({opacity:d});a.show();c.call()},function(c){this.getTip().hide();c.call()}],fade:[function(c){var d=this.getConf();this.getTip().fadeTo(d.fadeInSpeed,
d.opacity,c)},function(c){this.getTip().fadeOut(this.getConf().fadeOutSpeed,c)}]};b.fn.tooltip=function(c){var d=this.data("tooltip");if(d)return d;c=b.extend(true,{},b.tools.tooltip.conf,c);typeof c.position=="string"&&(c.position=c.position.split(/,?\s/));this.each(function(){d=new o(b(this),c);b(this).data("tooltip",d)});return c.api?d:this}})(jQuery);
(function(b){var s=b.tools.tooltip;s.dynamic={conf:{classNames:"top right bottom left"}};b.fn.dynamic=function(o){typeof o=="number"&&(o={speed:o});o=b.extend({},s.dynamic.conf,o);var h=o.classNames.split(/\s/),c;this.each(function(){var d=b(this).tooltip().onBeforeShow(function(a,g){var f=this.getTip(),e=this.getConf();c||(c=[e.position[0],e.position[1],e.offset[0],e.offset[1],b.extend({},e)]);b.extend(e,c[4]);e.position=[c[0],c[1]];e.offset=[c[2],c[3]];f.css({visibility:"hidden",position:"absolute",
top:g.top,left:g.left}).show();var j;j=b(window);var n=j.width()+j.scrollLeft(),l=j.height()+j.scrollTop();j=[f.offset().top<=j.scrollTop(),n<=f.offset().left+f.width(),l<=f.offset().top+f.height(),j.scrollLeft()>=f.offset().left];a:{for(n=j.length;n--;)if(j[n]){n=false;break a}n=true}if(!n){j[2]&&(b.extend(e,o.top),e.position[0]="top",f.addClass(h[0]));j[3]&&(b.extend(e,o.right),e.position[1]="right",f.addClass(h[1]));j[0]&&(b.extend(e,o.bottom),e.position[0]="bottom",f.addClass(h[2]));j[1]&&(b.extend(e,
o.left),e.position[1]="left",f.addClass(h[3]));if(j[0]||j[2])e.offset[0]*=-1;if(j[1]||j[3])e.offset[1]*=-1}f.css({visibility:"visible"}).hide()});d.onBeforeShow(function(){var a=this.getConf();this.getTip();setTimeout(function(){a.position=[c[0],c[1]];a.offset=[c[2],c[3]]},0)});d.onHide(function(){this.getTip().removeClass(o.classNames)});ret=d});return o.api?ret:this}})(jQuery);
(function(b){var s=b.tools.tooltip;b.extend(s.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var o={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};s.addEffect("slide",function(h){var c=this.getConf(),d=this.getTip(),a=c.slideFade?{opacity:c.opacity}:{},g=o[c.direction]||o.up;a[g[1]]=g[0]+"="+c.slideOffset;c.slideFade&&d.css({opacity:0});d.show().animate(a,c.slideInSpeed,h)},function(h){var c=this.getConf(),d=c.slideOffset,
a=c.slideFade?{opacity:0}:{},g=o[c.direction]||o.up,f=""+g[0];c.bounce&&(f=f=="+"?"-":"+");a[g[1]]=f+"="+d;this.getTip().animate(a,c.slideOutSpeed,function(){b(this).hide();h.call()})})})(jQuery);

