/*
 jQuery Tools dev - The missing UI library for the Web

 dateinput/dateinput.js
 overlay/overlay.js
 overlay/overlay.apple.js
 rangeinput/rangeinput.js
 scrollable/scrollable.js
 scrollable/scrollable.autoscroll.js
 scrollable/scrollable.navigator.js
 tabs/tabs.js
 toolbox/toolbox.expose.js
 toolbox/toolbox.history.js
 toolbox/toolbox.mousewheel.js
 tooltip/tooltip.js
 tooltip/tooltip.slide.js

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/

 jquery.event.wheel.js - rev 1
 Copyright (c) 2008, Three Dub Media (http://threedubmedia.com)
 Liscensed under the MIT License (MIT-LICENSE.txt)
 http://www.opensource.org/licenses/mit-license.php
 Created: 2008-07-01 | Updated: 2008-07-14

 -----

*/
(function(a,q){function m(a,b){a=""+a;for(b=b||2;a.length<b;)a="0"+a;return a}function f(a,b,c){var d=a.getDate(),h=a.getDay(),e=a.getMonth(),a=a.getFullYear(),g={d:d,dd:m(d),ddd:i[c].shortDays[h],dddd:i[c].days[h],m:e+1,mm:m(e+1),mmm:i[c].shortMonths[e],mmmm:i[c].months[e],yy:String(a).slice(2),yyyy:a},b=b.replace(l,function(a){return a in g?g[a]:a.slice(1,a.length-1)});return p.html(b).html()}function d(a){return parseInt(a,10)}function c(a,b){return a.getFullYear()===b.getFullYear()&&a.getMonth()==
b.getMonth()&&a.getDate()==b.getDate()}function b(a){if(a!==q){if(a.constructor==Date)return a;if(typeof a=="string"){var b=a.split("-");if(b.length==3)return new Date(d(b[0]),d(b[1])-1,d(b[2]));if(!/^-?\d+$/.test(a))return;a=d(a)}b=new Date;b.setDate(b.getDate()+a);return b}}function e(e,g){function p(b,c,d){x=b;A=b.getFullYear();I=b.getMonth();H=b.getDate();d=d||a.Event("api");d.type="beforeChange";J.trigger(d,[b]);if(!d.isDefaultPrevented())e.val(f(b,c.format,c.lang)),d.type="change",J.trigger(d),
e.data("date",b),j.hide(d)}function r(b){b.type="onShow";J.trigger(b);a(document).bind("keydown.d",function(b){if(b.ctrlKey)return true;var c=b.keyCode;if(c==8)return e.val(""),j.hide(b);if(c==27||c==9)return j.hide(b);if(a(k).index(c)>=0){if(!B)return j.show(b),b.preventDefault();var d=a("#"+n.weeks+" a"),g=a("."+n.focus),h=d.index(g);g.removeClass(n.focus);if(c==74||c==40)h+=7;else if(c==75||c==38)h-=7;else if(c==76||c==39)h+=1;else if(c==72||c==37)h-=1;h>41?(j.addMonth(),g=a("#"+n.weeks+" a:eq("+
(h-42)+")")):h<0?(j.addMonth(-1),g=a("#"+n.weeks+" a:eq("+(h+42)+")")):g=d.eq(h);g.addClass(n.focus);return b.preventDefault()}if(c==34)return j.addMonth();if(c==33)return j.addMonth(-1);if(c==36)return j.today();c==13&&(a(b.target).is("select")||a("."+n.focus).click());return a([16,17,18,9]).index(c)>=0});a(document).bind("click.d",function(b){var c=b.target;!a(c).parents("#"+n.root).length&&c!=e[0]&&(!K||c!=K[0])&&j.hide(b)})}var j=this,t=new Date,o=t.getFullYear(),n=g.css,m=i[g.lang],l=a("#"+n.root),
C=l.find("#"+n.title),K,z,D,A,I,H,x=e.attr("data-value")||g.value||e.val(),v=e.attr("min")||g.min,y=e.attr("max")||g.max,B,M;v===0&&(v="0");x=b(x)||t;v=b(v||new Date(o+g.yearRange[0],1,1));y=b(y||new Date(o+g.yearRange[1]+1,1,-1));if(!m)throw"Dateinput: invalid language: "+g.lang;e.attr("type")=="date"&&(M=e.clone(),o=M.wrap("<div/>").parent().html(),o=a(o.replace(/type/i,"type=text data-orig-type")),g.value&&o.val(g.value),e.replaceWith(o),e=o);e.addClass(n.input);var J=e.add(j);if(!l.length){l=
a("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",n.root);l.children().eq(0).attr("id",n.head).end().eq(1).attr("id",n.body).children().eq(0).attr("id",n.days).end().eq(1).attr("id",n.weeks).end().end().end().find("a").eq(0).attr("id",n.prev).end().eq(1).attr("id",n.next);C=l.find("#"+n.head).find("div").attr("id",n.title);if(g.selectors){var F=a("<select/>").attr("id",n.month),G=a("<select/>").attr("id",n.year);C.html(F.add(G))}for(var o=
l.find("#"+n.days),P=0;P<7;P++)o.append(a("<span/>").text(m.shortDays[(P+g.firstDay)%7]));a("body").append(l)}g.trigger&&(K=a("<a/>").attr("href","#").addClass(n.trigger).click(function(a){g.toggle?j.toggle():j.show();return a.preventDefault()}).insertAfter(e));var N=l.find("#"+n.weeks),G=l.find("#"+n.year),F=l.find("#"+n.month);a.extend(j,{show:function(b){if(!e.attr("readonly")&&!e.attr("disabled")&&!B&&(b=b||a.Event(),b.type="onBeforeShow",J.trigger(b),!b.isDefaultPrevented())){a.each(h,function(){this.hide()});
B=true;F.unbind("change").change(function(){j.setValue(G.val(),a(this).val())});G.unbind("change").change(function(){j.setValue(a(this).val(),F.val())});z=l.find("#"+n.prev).unbind("click").click(function(){z.hasClass(n.disabled)||j.addMonth(-1);return false});D=l.find("#"+n.next).unbind("click").click(function(){D.hasClass(n.disabled)||j.addMonth();return false});j.setValue(x);var c=e.offset();/iPad/i.test(navigator.userAgent)&&(c.top-=a(window).scrollTop());l.css({top:c.top+e.outerHeight({margins:true})+
g.offset[0],left:c.left+g.offset[1]});g.speed?l.show(g.speed,function(){r(b)}):(l.show(),r(b));return j}},setValue:function(e,h,r){var f=d(h)>=-1?new Date(d(e),d(h),d(r==q||isNaN(r)?1:r)):e||x;f<v?f=v:f>y&&(f=y);typeof e=="string"&&(f=b(e));e=f.getFullYear();h=f.getMonth();r=f.getDate();h==-1?(h=11,e--):h==12&&(h=0,e++);if(!B)return p(f,g),j;I=h;A=e;H=r;var r=(new Date(e,h,1-g.firstDay)).getDay(),k=(new Date(e,h+1,0)).getDate(),s=(new Date(e,h-1+1,0)).getDate(),l;if(g.selectors){F.empty();a.each(m.months,
function(b,c){v<new Date(e,b+1,1)&&y>new Date(e,b,0)&&F.append(a("<option/>").html(c).attr("value",b))});G.empty();for(var f=t.getFullYear(),i=f+g.yearRange[0];i<f+g.yearRange[1];i++)v<new Date(i+1,0,1)&&y>new Date(i,0,0)&&G.append(a("<option/>").text(i));F.val(h);G.val(e)}else C.html(m.months[h]+" "+e);N.empty();z.add(D).removeClass(n.disabled);for(var i=!r?-7:0,o,E;i<(!r?35:42);i++)o=a("<a/>"),i%7===0&&(l=a("<div/>").addClass(n.week),N.append(l)),i<r?(o.addClass(n.off),E=s-r+i+1,f=new Date(e,h-
1,E)):i>=r+k?(o.addClass(n.off),E=i-k-r+1,f=new Date(e,h+1,E)):(E=i-r+1,f=new Date(e,h,E),c(x,f)?o.attr("id",n.current).addClass(n.focus):c(t,f)&&o.attr("id",n.today)),v&&f<v&&o.add(z).addClass(n.disabled),y&&f>y&&o.add(D).addClass(n.disabled),o.attr("href","#"+E).text(E).data("date",f),l.append(o);N.find("a").click(function(b){var c=a(this);c.hasClass(n.disabled)||(a("#"+n.current).removeAttr("id"),c.attr("id",n.current),p(c.data("date"),g,b));return false});n.sunday&&N.find(n.week).each(function(){var b=
g.firstDay?7-g.firstDay:0;a(this).children().slice(b,b+1).addClass(n.sunday)});return j},setMin:function(a,c){v=b(a);c&&x<v&&j.setValue(v);return j},setMax:function(a,c){y=b(a);c&&x>y&&j.setValue(y);return j},today:function(){return j.setValue(t)},addDay:function(a){return this.setValue(A,I,H+(a||1))},addMonth:function(a){var a=I+(a||1),b=(new Date(A,a+1,0)).getDate();return this.setValue(A,a,H<=b?H:b)},addYear:function(a){return this.setValue(A+(a||1),I,H)},destroy:function(){e.add(document).unbind("click.d").unbind("keydown.d");
l.add(K).remove();e.removeData("dateinput").removeClass(n.input);M&&e.replaceWith(M)},hide:function(b){if(B){b=a.Event();b.type="onHide";J.trigger(b);a(document).unbind("click.d").unbind("keydown.d");if(b.isDefaultPrevented())return;l.hide();B=false}return j},toggle:function(){return j.isOpen()?j.hide():j.show()},getConf:function(){return g},getInput:function(){return e},getCalendar:function(){return l},getValue:function(a){return a?f(x,a,g.lang):x},isOpen:function(){return B}});a.each(["onBeforeShow",
"onShow","change","onHide"],function(b,c){a.isFunction(g[c])&&a(j).bind(c,g[c]);j[c]=function(b){b&&a(j).bind(c,b);return j}});g.editable||e.bind("focus.d click.d",j.show).keydown(function(b){var c=b.keyCode;return!B&&a(k).index(c)>=0?(j.show(b),b.preventDefault()):b.shiftKey||b.ctrlKey||b.altKey||c==9?true:b.preventDefault()});b(e.val())&&p(x,g)}a.tools=a.tools||{version:"1.2.6-dev"};var h=[],g,k=[75,76,38,39,74,72,40,37],i={};g=a.tools.dateinput={conf:{format:"mm/dd/yy",selectors:false,yearRange:[-5,
5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:q,max:q,trigger:0,toggle:0,editable:0,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(b,c){a.each(c,function(a,b){c[a]=b.split(",")});i[b]=c}};g.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var l=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,p=a("<a/>");a.expr[":"].date=function(b){var c=b.getAttribute("type");return c&&c=="date"||!!a(b).data("dateinput")};a.fn.dateinput=function(b){if(this.data("dateinput"))return this;b=a.extend(true,{},g.conf,b);a.each(b.css,function(a,c){!c&&a!="prefix"&&(b.css[a]=(b.css.prefix||"")+(c||a))});var c;this.each(function(){var d=new e(a(this),b);h.push(d);
d=d.getInput().data("dateinput",d);c=c?c.add(d):d});return c?c:this}})(jQuery);
(function(a){function q(d,c){var b=this,e=d.add(b),h=a(window),g,k,i,l=a.tools.expose&&(c.mask||c.expose),p=Math.random().toString().slice(10);if(l)typeof l=="string"&&(l={color:l}),l.closeOnClick=l.closeOnEsc=false;var s=c.target||d.attr("rel");k=s?a(s):d;if(!k.length)throw"Could not find Overlay: "+s;d&&d.index(k)==-1&&d.click(function(a){b.load(a);return a.preventDefault()});a.extend(b,{load:function(d){if(b.isOpened())return b;var g=f[c.effect];if(!g)throw'Overlay: cannot find effect : "'+c.effect+
'"';c.oneInstance&&a.each(m,function(){this.close(d)});d=d||a.Event();d.type="onBeforeLoad";e.trigger(d);if(d.isDefaultPrevented())return b;i=true;l&&a(k).expose(l);var r=c.top,j=c.left,s=k.outerWidth({margin:true}),o=k.outerHeight({margin:true});typeof r=="string"&&(r=r=="center"?Math.max((h.height()-o)/2,0):parseInt(r,10)/100*h.height());j=="center"&&(j=Math.max((h.width()-s)/2,0));g[0].call(b,{top:r,left:j},function(){if(i)d.type="onLoad",e.trigger(d)});if(l&&c.closeOnClick)a.mask.getMask().one("click",
b.close);c.closeOnClick&&a(document).bind("click."+p,function(c){a(c.target).parents(k).length||b.close(c)});c.closeOnEsc&&a(document).bind("keydown."+p,function(a){a.keyCode==27&&b.close(a)});return b},close:function(d){if(!b.isOpened())return b;d=d||a.Event();d.type="onBeforeClose";e.trigger(d);if(!d.isDefaultPrevented())return i=false,f[c.effect][1].call(b,function(){d.type="onClose";e.trigger(d)}),a(document).unbind("click."+p).unbind("keydown."+p),l&&a.mask.close(),b},getOverlay:function(){return k},
getTrigger:function(){return d},getClosers:function(){return g},isOpened:function(){return i},getConf:function(){return c}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(d,e){a.isFunction(c[e])&&a(b).bind(e,c[e]);b[e]=function(c){c&&a(b).bind(e,c);return b}});g=k.find(c.close||".close");!g.length&&!c.close&&(g=a('<a class="close"></a>'),k.prepend(g));g.click(function(a){b.close(a)});c.load&&b.load()}a.tools=a.tools||{version:"1.2.6-dev"};a.tools.overlay={addEffect:function(a,
c,b){f[a]=[c,b]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var m=[],f={};a.tools.overlay.addEffect("default",function(d,c){var b=this.getConf(),e=a(window);b.fixed||(d.top+=e.scrollTop(),d.left+=e.scrollLeft());d.position=b.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(b.speed,c)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,
a)});a.fn.overlay=function(d){var c=this.data("overlay");if(c)return c;a.isFunction(d)&&(d={onBeforeLoad:d});d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){c=new q(a(this),d);m.push(c);a(this).data("overlay",c)});return d.api?c:this}})(jQuery);
(function(a){function q(a){var c=a.offset();return{top:c.top+a.height()/2,left:c.left+a.width()/2}}var m=a.tools.overlay,f=a(window);a.extend(m.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});m.addEffect("apple",function(d,c){var b=this.getOverlay(),e=this.getConf(),h=this.getTrigger(),g=this,k=b.outerWidth({margin:true}),i=b.data("img"),l=e.fixed?"fixed":"absolute";if(!i){i=b.css("backgroundImage");if(!i)throw"background-image CSS property not set for overlay";i=i.slice(i.indexOf("(")+
1,i.indexOf(")")).replace(/\"/g,"");b.css("backgroundImage","none");i=a('<img src="'+i+'"/>');i.css({border:0,display:"none"}).width(k);a("body").append(i);b.data("img",i)}var p=e.start.top||Math.round(f.height()/2),s=e.start.left||Math.round(f.width()/2);if(h)h=q(h),p=h.top,s=h.left;e.fixed?(p-=f.scrollTop(),s-=f.scrollLeft()):(d.top+=f.scrollTop(),d.left+=f.scrollLeft());i.css({position:"absolute",top:p,left:s,width:0,zIndex:e.zIndex}).show();d.position=l;b.css(d);i.animate({top:d.top,left:d.left,
width:k},e.speed,function(){b.css("zIndex",e.zIndex+1).fadeIn(e.fadeInSpeed,function(){g.isOpened()&&!a(this).index(b)?c.call():b.hide()})}).css("position",l)},function(d){var c=this.getOverlay().hide(),b=this.getConf(),e=this.getTrigger(),c=c.data("img"),h={top:b.start.top,left:b.start.left,width:0};e&&a.extend(h,q(e));b.fixed&&c.css({position:"absolute"}).animate({top:"+="+f.scrollTop(),left:"+="+f.scrollLeft()},0);c.animate(h,b.closeSpeed,d)})})(jQuery);
(function(a){function q(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}function m(a,b){var c=parseInt(a.css(b),10);return c?c:(c=a[0].currentStyle)&&c.width&&parseInt(c.width,10)}function f(a){return(a=a.data("events"))&&a.onSlide}function d(b,c){function d(a,e,f,j){f===void 0?f=e/t*O:j&&(f-=c.min);L&&(f=Math.round(f/L)*L);if(e===void 0||L)e=f*t/O;if(isNaN(f))return p;e=Math.max(0,Math.min(e,t));f=e/t*O;if(j||!w)f+=c.min;w&&(j?e=t-e:f=c.max-f);var f=q(f,C),k=a.type=="click";if(A&&r!==void 0&&
!k&&(a.type="onSlide",D.trigger(a,[f,e]),a.isDefaultPrevented()))return p;j=k?c.speed:0;k=k?function(){a.type="change";D.trigger(a,[f])}:null;w?(o.animate({top:e},j,k),c.progress&&n.animate({height:t-e+o.height()/2},j)):(o.animate({left:e},j,k),c.progress&&n.animate({width:e+o.width()/2},j));r=f;b.val(f);return p}function e(){(w=c.vertical||m(u,"height")>m(u,"width"))?(t=m(u,"height")-m(o,"height"),j=u.offset().top+t):(t=m(u,"width")-m(o,"width"),j=u.offset().left)}function l(){e();p.setValue(c.value!==
void 0?c.value:c.min)}var p=this,s=c.css,u=a("<div><div/><a href='#'/></div>").data("rangeinput",p),w,r,j,t;b.before(u);var o=u.addClass(s.slider).find("a").addClass(s.handle),n=u.find("div").addClass(s.progress);a.each("min,max,step,value".split(","),function(a,e){var d=b.attr(e);parseFloat(d)&&(c[e]=parseFloat(d,10))});var O=c.max-c.min,L=c.step=="any"?0:c.step,C=c.precision;if(C===void 0)try{C=L.toString().split(".")[1].length}catch(K){C=0}if(b.attr("type")=="range"){var z=b.clone().wrap("<div/>").parent().html(),
z=a(z.replace(/type/i,"type=text data-orig-type"));z.val(c.value);b.replaceWith(z);b=z}b.addClass(s.input);var D=a(p).add(b),A=true;a.extend(p,{getValue:function(){return r},setValue:function(b,c){e();return d(c||a.Event("api"),void 0,b,true)},getConf:function(){return c},getProgress:function(){return n},getHandle:function(){return o},getInput:function(){return b},step:function(b,e){e=e||a.Event();p.setValue(r+(c.step=="any"?1:c.step)*(b||1),e)},stepUp:function(a){return p.step(a||1)},stepDown:function(a){return p.step(-a||
-1)}});a.each("onSlide,change".split(","),function(b,e){a.isFunction(c[e])&&a(p).bind(e,c[e]);p[e]=function(b){b&&a(p).bind(e,b);return p}});o.drag({drag:false}).bind("dragStart",function(){e();A=f(a(p))||f(b)}).bind("drag",function(a,c,e){if(b.is(":disabled"))return false;d(a,w?c:e)}).bind("dragEnd",function(a){if(!a.isDefaultPrevented())a.type="change",D.trigger(a,[r])}).click(function(a){return a.preventDefault()});u.click(function(a){if(b.is(":disabled")||a.target==o[0])return a.preventDefault();
e();var c=w?o.height()/2:o.width()/2;d(a,w?t-j-c+a.pageY:a.pageX-j-c)});c.keyboard&&b.keydown(function(c){if(!b.attr("readonly")){var e=c.keyCode,d=a([75,76,38,33,39]).index(e)!=-1,g=a([74,72,40,34,37]).index(e)!=-1;if((d||g)&&!c.shiftKey&&!c.altKey&&!c.ctrlKey)return d?p.step(e==33?10:1,c):g&&p.step(e==34?-10:-1,c),c.preventDefault()}});b.blur(function(b){var c=a(this).val();c!==r&&p.setValue(c,b)});a.extend(b[0],{stepUp:p.stepUp,stepDown:p.stepDown});l();t||a(window).load(l)}a.tools=a.tools||{version:"1.2.6-dev"};
var c;c=a.tools.rangeinput={conf:{min:0,max:100,step:"any",steps:0,value:0,precision:void 0,vertical:0,keyboard:true,progress:false,speed:100,css:{input:"range",slider:"slider",progress:"progress",handle:"handle"}}};var b,e;a.fn.drag=function(c){document.ondragstart=function(){return false};c=a.extend({x:true,y:true,drag:true},c);b=b||a(document).bind("mousedown mouseup",function(d){var f=a(d.target);if(d.type=="mousedown"&&f.data("drag")){var i=f.position(),l=d.pageX-i.left,p=d.pageY-i.top,s=true;
b.bind("mousemove.drag",function(a){var b=a.pageX-l,a=a.pageY-p,d={};if(c.x)d.left=b;if(c.y)d.top=a;s&&(f.trigger("dragStart"),s=false);c.drag&&f.css(d);f.trigger("drag",[a,b]);e=f});d.preventDefault()}else try{e&&e.trigger("dragEnd")}finally{b.unbind("mousemove.drag"),e=null}});return this.data("drag",true)};a.expr[":"].range=function(b){var c=b.getAttribute("type");return c&&c=="range"||!!a(b).filter("input").data("rangeinput")};a.fn.rangeinput=function(b){if(this.data("rangeinput"))return this;
var b=a.extend(true,{},c.conf,b),e;this.each(function(){var c=new d(a(this),a.extend(true,{},b)),c=c.getInput().data("rangeinput",c);e=e?e.add(c):c});return e?e:this}})(jQuery);
(function(a){function q(d,c){var b=a(c);return b.length<2?b:d.parent().find(c)}function m(d,c){var b=this,e=d.add(b),h=d.children(),g=0,k=c.vertical;f||(f=b);h.length>1&&(h=a(c.items,d));if(c.size>1)c.circular=false;a.extend(b,{getConf:function(){return c},getIndex:function(){return g},getSize:function(){return b.getItems().size()},getNaviButtons:function(){return p.add(s)},getRoot:function(){return d},getItemWrap:function(){return h},getItems:function(){return h.find(c.item).not("."+c.clonedClass)},
getCircularClones:function(){return h.find(c.item).filter("."+c.clonedClass)},move:function(a,c){return b.seekTo(g+a,c)},next:function(a){return b.move(c.size,a)},prev:function(a){return b.move(-c.size,a)},begin:function(a){return b.seekTo(0,a)},end:function(a){return b.seekTo(b.getSize()-1,a)},focus:function(){return f=b},addItem:function(d){d=a(d);c.circular?(h.children().last().before(d),b.getCircularClones().first().replaceWith(d.clone().addClass(c.clonedClass))):(h.append(d),s.removeClass("disabled"));
e.trigger("onAddItem",[d]);return b},removeItem:function(a){e.trigger("onRemoveItem",[a]);var d=b.getItems(),f;a.jquery?b.getItems().index(f):a=b.getItems().eq(1*a);c.circular?(a.remove(),d=b.getItems(),a=b.getCircularClones(),a.first().replaceWith(d.last().clone().addClass("cloned")),a.last().replaceWith(d.first().clone().addClass("cloned"))):(a.remove(),b.getItems());g>=b.getSize()&&(g-=1,b.move(1));return b},seekTo:function(d,j,p){d.jquery||(d*=1);if(c.circular&&d===0&&g==-1&&j!==0)return b;if(!c.circular&&
d<0||d>b.getSize()||d<-1)return b;var i=d;d.jquery?d=b.getItems().index(d):i=b.getItems().eq(d);var l=a.Event("onBeforeSeek");if(!p&&(e.trigger(l,[d,j]),l.isDefaultPrevented()||!i.length))return b;i=k?{top:-i.position().top}:{left:-i.position().left};g=d;f=b;if(j===void 0)j=c.speed;h.animate(i,j,c.easing,p||function(){e.trigger("onSeek",[d])});return b}});a.each(["onBeforeSeek","onSeek","onAddItem","onRemoveItem"],function(d,e){a.isFunction(c[e])&&a(b).bind(e,c[e]);b[e]=function(c){c&&a(b).bind(e,
c);return b}});if(c.circular){var i=b.getItems().slice(-1).clone().prependTo(h),l=b.getItems().eq(1).clone().appendTo(h);i.add(l).addClass(c.clonedClass);b.onBeforeSeek(function(a,c,d){if(!a.isDefaultPrevented()){var e=b.getCircularClones();if(c<0)return b.seekTo(e.first(),d,function(){b.end(0)}),a.preventDefault();else if(c>=b.getSize())return b.seekTo(e.last(),d,function(){b.begin(0)}),a.preventDefault()}});i=d.parents().add(d).filter(function(){if(a(this).css("display")==="none")return true});
i.length?(i.show(),b.seekTo(0,0,function(){}),i.hide()):b.seekTo(0,0,function(){})}var p=q(d,c.prev).click(function(a){a.stopPropagation();b.prev()}),s=q(d,c.next).click(function(a){a.stopPropagation();b.next()});c.circular||(b.onBeforeSeek(function(a,d){setTimeout(function(){a.isDefaultPrevented()||(p.toggleClass(c.disabledClass,d<=0),s.toggleClass(c.disabledClass,d>=b.getSize()-1))},1)}),c.initialIndex||p.addClass(c.disabledClass));b.getSize()<2&&p.add(s).addClass(c.disabledClass);c.mousewheel&&
a.fn.mousewheel&&d.mousewheel(function(a,d){if(c.mousewheel)return b.move(d<0?1:-1,c.wheelSpeed||50),false});if(c.touch){var m,w;h[0].ontouchstart=function(a){a=a.touches[0];m=a.clientX;w=a.clientY};h[0].ontouchmove=function(a){if(a.touches.length==1&&!h.is(":animated")){var c=a.touches[0],d=m-c.clientX,c=w-c.clientY;b[k&&c>0||!k&&d>0?"next":"prev"]();a.preventDefault()}}}c.keyboard&&a(document).bind("keydown.scrollable",function(d){if(c.keyboard&&!d.altKey&&!d.ctrlKey&&!d.metaKey&&!a(d.target).is(":input")&&
!(c.keyboard!="static"&&f!=b)){var e=d.keyCode;if(k&&(e==38||e==40))return b.move(e==38?-1:1),d.preventDefault();if(!k&&(e==37||e==39))return b.move(e==37?-1:1),d.preventDefault()}});c.initialIndex&&b.seekTo(c.initialIndex,0,function(){})}a.tools=a.tools||{version:"1.2.6-dev"};a.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:"> *",items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",size:1,
speed:400,vertical:false,touch:true,wheelSpeed:0}};var f;a.fn.scrollable=function(d){var c=this.data("scrollable");if(c)return c;d=a.extend({},a.tools.scrollable.conf,d);this.each(function(){c=new m(a(this),d);a(this).data("scrollable",c)});return d.api?c:this}})(jQuery);
(function(a){var q=a.tools.scrollable;q.autoscroll={conf:{autoplay:true,interval:3E3,autopause:true}};a.fn.autoscroll=function(m){typeof m=="number"&&(m={interval:m});var f=a.extend({},q.autoscroll.conf,m),d;this.each(function(){function c(){clearTimeout(h);h=setTimeout(function(){b.next()},f.interval)}var b=a(this).data("scrollable"),e=b.getRoot(),h,g=false;b&&(d=b);b.play=function(){h||(g=false,e.bind("onSeek",c),c())};b.hoverPlay=function(){g||b.play()};b.pause=function(){h=clearTimeout(h);e.unbind("onSeek",
c)};b.resume=function(){g||b.play()};b.stop=function(){g=true;b.pause()};f.autopause&&e.add(b.getNaviButtons()).hover(b.pause,b.resume);f.autoplay&&b.play();b.onRemoveItem(function(){b.getSize()<=2&&b.stop()})});return f.api?d:this}})(jQuery);
(function(a){function q(f,d){var c=a(d);return c.length<2?c:f.parent().find(d)}var m=a.tools.scrollable;m.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};a.fn.navigator=function(f){typeof f=="string"&&(f={navi:f});var f=a.extend({},m.navigator.conf,f),d;this.each(function(){function c(){return h.find(f.naviItem||"> *")}function b(b){var c=a("<"+(f.naviItem||"a")+"/>").click(function(c){a(this);e.seekTo(b);c.preventDefault();i&&history.pushState({i:b})});
b===0&&c.addClass(k);f.indexed&&c.text(b+1);f.idPrefix&&c.attr("id",f.idPrefix+b);return c.appendTo(h)}var e=a(this).data("scrollable"),h=f.navi.jquery?f.navi:q(e.getRoot(),f.navi),g=e.getNaviButtons(),k=f.activeClass,i=f.history&&!!history.pushState,l=e.getConf().size;e&&(d=e);e.getNaviButtons=function(){return g.add(h)};i&&(history.pushState({i:0}),a(window).bind("popstate",function(a){(a=a.originalEvent.state)&&e.seekTo(a.i)}));c().length?c().click(function(b){a(this);var d=c().index(this);e.seekTo(d);
b.preventDefault();i&&history.pushState({i:d})}):a.each(e.getItems(),function(a){a%l==0&&b(a)});e.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var d=b/l;c().eq(d).length&&c().removeClass(k).eq(d).addClass(k)}},1)});e.onAddItem(function(a,c){var d=e.getItems().index(c);d%l==0&&b(d)});e.onRemoveItem(function(a,b){var d=e.getItems().index(b);c().eq(d).remove();c().removeClass(k).eq(d<e.getSize()-1?d:0).addClass(k)})});return f.api?d:this}})(jQuery);
(function(a){function q(c,b,d){var f=this,g=c.add(this),k=c.find(d.tabs),i=b.jquery?b:c.children(b),l;k.length||(k=c.children());i.length||(i=c.parent().find(b));i.length||(i=a(b));a.extend(this,{click:function(b,c){var i=k.eq(b);typeof b=="string"&&b.replace("#","")&&(i=k.filter("[href*="+b.replace("#","")+"]"),b=Math.max(k.index(i),0));if(d.rotate){var q=k.length-1;if(b<0)return f.click(q,c);if(b>q)return f.click(0,c)}if(!i.length){if(l>=0)return f;b=d.initialIndex;i=k.eq(b)}if(b===l)return f;c=
c||a.Event();c.type="onBeforeClick";g.trigger(c,[b]);if(!c.isDefaultPrevented())return m[d.effect].call(f,b,function(){l=b;c.type="onClick";g.trigger(c,[b])}),k.removeClass(d.current),i.addClass(d.current),f},getConf:function(){return d},getTabs:function(){return k},getPanes:function(){return i},getCurrentPane:function(){return i.eq(l)},getCurrentTab:function(){return k.eq(l)},getIndex:function(){return l},next:function(){return f.click(l+1)},prev:function(){return f.click(l-1)},destroy:function(){k.unbind(d.event).removeClass(d.current);
i.find("a[href^=#]").unbind("click.T");return f}});a.each("onBeforeClick,onClick".split(","),function(b,c){a.isFunction(d[c])&&a(f).bind(c,d[c]);f[c]=function(b){b&&a(f).bind(c,b);return f}});if(d.history&&a.fn.history)a.tools.history.init(k),d.event="history";k.each(function(b){a(this).bind(d.event,function(a){f.click(b,a);return a.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(b){f.click(a(this).attr("href"),b)});location.hash&&d.tabs=="a"&&c.find("[href="+location.hash+"]").length?
f.click(location.hash):(d.initialIndex===0||d.initialIndex>0)&&f.click(d.initialIndex)}a.tools=a.tools||{version:"1.2.6-dev"};a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,slideUpSpeed:400,slideDownSpeed:400,history:false},addEffect:function(a,b){m[a]=b}};var m={"default":function(a,b){this.getPanes().hide().eq(a).show();b.call()},fade:function(a,b){var d=this.getConf(),f=d.fadeOutSpeed,g=this.getPanes();f?
g.fadeOut(f):g.hide();g.eq(a).fadeIn(d.fadeInSpeed,b)},slide:function(a,b){var d=this.getConf();this.getPanes().slideUp(d.slideUpSpeed);this.getPanes().eq(a).slideDown(d.slideDownSpeed,b)},ajax:function(a,b){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),b)}},f,d;a.tools.tabs.addEffect("horizontal",function(c,b){if(!f){var e=this.getPanes().eq(c),h=this.getCurrentPane();d||(d=this.getPanes().eq(0).width());f=true;e.show();h.animate({width:0},{step:function(a){e.css("width",d-a)},complete:function(){a(this).hide();
b.call();f=false}});h.length||(b.call(),f=false)}});a.fn.tabs=function(c,b){var d=this.data("tabs");d&&(d.destroy(),this.removeData("tabs"));a.isFunction(b)&&(b={onBeforeClick:b});b=a.extend({},a.tools.tabs.conf,b);this.each(function(){d=new q(a(this),c,b);a(this).data("tabs",d)});return b.api?d:this}})(jQuery);
(function(a){function q(){if(a.browser.msie){var b=a(document).height(),c=a(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-c<20?c:b]}return[a(document).width(),a(document).height()]}function m(b){if(b)return b.call(a.mask)}a.tools=a.tools||{version:"1.2.6-dev"};var f;f=a.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 d,c,b,e,h;a.mask={load:function(g,k){if(b)return this;typeof g=="string"&&(g={color:g});g=g||e;e=g=a.extend(a.extend({},f.conf),g);d=a("#"+g.maskId);d.length||(d=a("<div/>").attr("id",g.maskId),a("body").append(d));var i=q();d.css({position:"absolute",top:0,left:0,width:i[0],height:i[1],display:"none",opacity:g.startOpacity,zIndex:g.zIndex});g.color&&d.css("backgroundColor",g.color);if(m(g.onBeforeLoad)===false)return this;g.closeOnEsc&&a(document).bind("keydown.mask",function(b){b.keyCode==
27&&a.mask.close(b)});g.closeOnClick&&d.bind("click.mask",function(b){a.mask.close(b)});a(window).bind("resize.mask",function(){a.mask.fit()});k&&k.length&&(h=k.eq(0).css("zIndex"),a.each(k,function(){var b=a(this);/relative|absolute|fixed/i.test(b.css("position"))||b.css("position","relative")}),c=k.css({zIndex:Math.max(g.zIndex+1,h=="auto"?0:h)}));d.css({display:"block"}).fadeTo(g.loadSpeed,g.opacity,function(){a.mask.fit();m(g.onLoad);b="full"});b=true;return this},close:function(){if(b){if(m(e.onBeforeClose)===
false)return this;d.fadeOut(e.closeSpeed,function(){m(e.onClose);c&&c.css({zIndex:h});b=false});a(document).unbind("keydown.mask");d.unbind("click.mask");a(window).unbind("resize.mask")}return this},fit:function(){if(b){var a=q();d.css({width:a[0],height:a[1]})}},getMask:function(){return d},isLoaded:function(a){return a?b=="full":b},getConf:function(){return e},getExposed:function(){return c}};a.fn.mask=function(b){a.mask.load(b);return this};a.fn.expose=function(b){a.mask.load(b,this);return this}})(jQuery);
(function(a){function q(a){if(a){var c=f.contentWindow.document;c.open().close();c.location.hash=a}}var m,f,d,c;a.tools=a.tools||{version:"1.2.6-dev"};a.tools.history={init:function(b){c||(a.browser.msie&&a.browser.version<"8"?f||(f=a("<iframe/>").attr("src","javascript:false;").hide().get(0),a("body").prepend(f),setInterval(function(){var b=f.contentWindow.document.location.hash;m!==b&&a(window).trigger("hash",b)},100),q(location.hash||"#")):setInterval(function(){var b=location.hash;b!==m&&a(window).trigger("hash",
b)},100),d=!d?b:d.add(b),b.click(function(b){var c=a(this).attr("href");f&&q(c);if(c.slice(0,1)!="#")return location.href="#"+c,b.preventDefault()}),c=true)}};a(window).bind("hash",function(b,c){c?d.filter(function(){var b=a(this).attr("href");return b==c||b==c.replace("#","")}).trigger("history",[c]):d.eq(0).trigger("history",[c]);m=c});a.fn.history=function(b){a.tools.history.init(this);return this.bind("history",b)}})(jQuery);
(function(a){function q(f){switch(f.type){case "mousemove":return a.extend(f.data,{clientX:f.clientX,clientY:f.clientY,pageX:f.pageX,pageY:f.pageY});case "DOMMouseScroll":a.extend(f,f.data);f.delta=-f.detail/3;break;case "mousewheel":f.delta=f.wheelDelta/120}f.type="wheel";return a.event.handle.call(this,f,f.delta)}a.fn.mousewheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){a.event.add(this,m,q,{})},teardown:function(){a.event.remove(this,m,q)}};
var m=!a.browser.mozilla?"mousewheel":"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":"")})(jQuery);
(function(a){function q(d,c,b){var e=b.relative?d.position().top:d.offset().top,f=b.relative?d.position().left:d.offset().left,g=b.position[0];e-=c.outerHeight()-b.offset[0];f+=d.outerWidth()+b.offset[1];/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var k=c.outerHeight()+d.outerHeight();g=="center"&&(e+=k/2);g=="bottom"&&(e+=k);g=b.position[1];d=c.outerWidth()+d.outerWidth();g=="center"&&(f-=d/2);g=="left"&&(f-=d);return{top:e,left:f}}function m(d,c){var b=this,e=d.add(b),h,g=0,k=
0,i=d.attr("title"),l=d.attr("data-tooltip"),m=f[c.effect],s,u=d.is(":input"),w=u&&d.is(":checkbox, :radio, select, :button, :submit"),r=d.attr("type"),j=c.events[r]||c.events[u?w?"widget":"input":"def"];if(!m)throw'Nonexistent effect "'+c.effect+'"';j=j.split(/,\s*/);if(j.length!=2)throw"Tooltip: bad events configuration for "+r;d.bind(j[0],function(a){clearTimeout(g);c.predelay?k=setTimeout(function(){b.show(a)},c.predelay):b.show(a)}).bind(j[1],function(a){clearTimeout(k);c.delay?g=setTimeout(function(){b.hide(a)},
c.delay):b.hide(a)});i&&c.cancelDefault&&(d.removeAttr("title"),d.data("title",i));a.extend(b,{show:function(f){if(!h&&(l?h=a(l):c.tip?h=a(c.tip).eq(0):i?h=a(c.layout).addClass(c.tipClass).appendTo(document.body).hide().append(i):(h=d.next(),h.length||(h=d.parent().next())),!h.length))throw"Cannot find tooltip for "+d;if(b.isShown())return b;h.stop(true,true);var o=q(d,h,c);c.tip&&h.html(d.data("title"));f=a.Event();f.type="onBeforeShow";e.trigger(f,[o]);if(f.isDefaultPrevented())return b;o=q(d,h,
c);h.css({position:"absolute",top:o.top,left:o.left});s=true;m[0].call(b,function(){f.type="onShow";s="full";e.trigger(f)});o=c.events.tooltip.split(/,\s*/);h.data("__set")||(h.unbind(o[0]).bind(o[0],function(){clearTimeout(g);clearTimeout(k)}),o[1]&&!d.is("input:not(:checkbox, :radio), textarea")&&h.unbind(o[1]).bind(o[1],function(a){a.relatedTarget!=d[0]&&d.trigger(j[1].split(" ")[0])}),c.tip||h.data("__set",true));return b},hide:function(d){if(!h||!b.isShown())return b;d=a.Event();d.type="onBeforeHide";
e.trigger(d);if(!d.isDefaultPrevented())return s=false,f[c.effect][1].call(b,function(){d.type="onHide";e.trigger(d)}),b},isShown:function(a){return a?s=="full":s},getConf:function(){return c},getTip:function(){return h},getTrigger:function(){return d}});a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,e){a.isFunction(c[e])&&a(b).bind(e,c[e]);b[e]=function(c){c&&a(b).bind(e,c);return b}})}a.tools=a.tools||{version:"1.2.6-dev"};a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",
predelay:0,delay:30,opacity:1,tip:0,fadeIE:false,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,c,b){f[a]=[c,b]}};var f={toggle:[function(a){var c=this.getConf(),b=this.getTip(),c=c.opacity;c<1&&b.css({opacity:c});b.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(d){var c=
this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeTo(c.fadeInSpeed,c.opacity,d):(this.getTip().show(),d())},function(d){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeOut(c.fadeOutSpeed,d):(this.getTip().hide(),d())}]};a.fn.tooltip=function(d){var c=this.data("tooltip");if(c)return c;d=a.extend(true,{},a.tools.tooltip.conf,d);if(typeof d.position=="string")d.position=d.position.split(/,?\s/);this.each(function(){c=new m(a(this),d);a(this).data("tooltip",c)});return d.api?
c:this}})(jQuery);
(function(a){var q=a.tools.tooltip;a.extend(q.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!a.browser.msie});var m={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};q.addEffect("slide",function(a){var d=this.getConf(),c=this.getTip(),b=d.slideFade?{opacity:d.opacity}:{},e=m[d.direction]||m.up;b[e[1]]=e[0]+"="+d.slideOffset;d.slideFade&&c.css({opacity:0});c.show().animate(b,d.slideInSpeed,a)},function(f){var d=this.getConf(),c=d.slideOffset,
b=d.slideFade?{opacity:0}:{},e=m[d.direction]||m.up,h=""+e[0];d.bounce&&(h=h=="+"?"-":"+");b[e[1]]=h+"="+c;this.getTip().animate(b,d.slideOutSpeed,function(){a(this).hide();f.call()})})})(jQuery);


/**
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 *
 * Open source under the BSD License.
 *
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 *
 * TERMS OF USE - EASING EQUATIONS
 *
 * Open source under the BSD License.
 *
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the author nor the names of contributors may be used to endorse
 * or promote products derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});

/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
*
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);

/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */
(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);
