/*

* jQuery UI Effects 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/
*/

jQuery.effects||function(f,j){function m©{var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb(s*({1,3})s*,s*([0-9]{1,3})s*,s*([0-9]{1,3})s*)/.exec©)return[parseInt(a[1],10),parseInt(a,10),parseInt(a,10)];if(a=/rgb(s*(+(?:.[0-9]+)?)%s*,s*(+(?:.[0-9]+)?)%s*,s*(+(?:.[0-9]+)?)%s*)/.exec©)return[parseFloat(a)*2.55,parseFloat(a)*2.55,parseFloat(a)*2.55];if(a=/#({2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec©)return[parseInt(a[1], 16),parseInt(a,16),parseInt(a,16)];if(a=/#()([a-fA-F0-9])()/.exec©)return[parseInt(a[1]+a,16),parseInt(a+a,16),parseInt(a+a,16)];if(/rgba(0, 0, 0, 0)/.exec©)return n.transparent;return n}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=“”&&b!=“transparent”||f.nodeName(c,“body”))break;a=“backgroundColor”}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, a={},b,d;if(c&&c.length&&c&&c[c])for(var e=c.length;e–;){b=c;if(typeof c==“string”){d=b.replace(/-(w)/g,function(g,h){return h.toUpperCase()});a=c}}else for(b in c)if(typeof c===“string”)a=c;return a}function p©{var a,b;for(a in c){b=c;if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c}return c}function u(c,a){var b={_:0},d;for(d in a)if(c!=a)b=a;return b}function k(c,a,b,d){if(typeof c==“object”){d= a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a==“number”||f.fx.speeds){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b==“number”?b:b in f.fx.speeds?f.fx.speeds:f.fx.speeds._default;d=d||a.complete;return}function l©{if(!c||typeof c===“number”||f.fx.speeds)return true;if(typeof c===“string”&&!f.effects)return true;return false}f.effects={};f.each([“backgroundColor”,“borderBottomColor”,“borderLeftColor”,“borderRightColor”, “borderTopColor”,“borderColor”,“color”,“outlineColor”],function(c,a){f.fx.step=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style=“rgb(”+Math.max(Math.min(parseInt(b.pos*(b.end-b.start)+b.start,10),255),0)+“,”+Math.max(Math.min(parseInt(b.pos*(b.end-b.start)+b.start,10),255),0)+“,”+Math.max(Math.min(parseInt(b.pos*(b.end-b.start)+b.start,10),255),0)+“)”}});var n={aqua:,azure:,beige:,black:[0, 0,0],blue:,brown:,cyan:,darkblue:,darkcyan:,darkgrey:,darkgreen:,darkkhaki:,darkmagenta:,darkolivegreen:,darkorange:,darkorchid:,darkred:,darksalmon:,darkviolet:,fuchsia:,gold:,green:,indigo:,khaki:,lightblue:,lightcyan:,lightgreen:,lightgrey:[211, 211,211],lightpink:,lightyellow:,lime:,magenta:,maroon:,navy:,olive:,orange:,pink:,purple:,violet:,red:,silver:,white:,yellow:,transparent:},q=,t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b, d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr(“style”)||“ ”,h=p(o.call(this)),r,v=e.attr(“class”);f.each(q,function(w,i){c&&e(c)});r=p(o.call(this));e.attr(“class”,v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c&&e(c)});if(typeof e.attr(“style”)==“object”){e.attr(“style”).cssText=“”;e.attr(“style”).cssText=g}else e.attr(“style”,g);d&&d.apply(this,arguments);f.dequeue(this)}})})}; f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,):this._addClass©},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,):this._removeClass©},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a==“boolean”||a===j?b?f.effects.animateClass.apply(this,):this._toggleClass(c,a):f.effects.animateClass.apply(this, [{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,)}});f.extend(f.effects,{version:“1.8.16”,save:function(c,a){for(var b=0;b!==null&&c.data(“ec.storage.”+a,c.style[a])},restore:function(c,a){for(var b=0;b!==null&&c.css(a,c.data(“ec.storage.”+a))},setMode:function(c,a){if(a==“toggle”)a=c.is(“:hidden”)?“show”:“hide”;return a},getBaseline:function(c,a){var b;switch(c){case “top”:b= 0;break;case “middle”:b=0.5;break;case “bottom”:b=1;break;default:b=c/a.height}switch(c){case “left”:c=0;break;case “center”:c=0.5;break;case “right”:c=1;break;default:c=c/a.width}return{x:c,y:b}},createWrapper:function©{if(c.parent().is(“.ui-effects-wrapper”))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),“float”:c.css(“float”)},b=f(“<div></div>”).addClass(“ui-effects-wrapper”).css({fontSize:“100%”,background:“transparent”,border:“none”,margin:0,padding:0}), d=document.activeElement;c.wrap(b);if(c===d||f.contains(c,d))f(d).focus();b=c.parent();if(c.css(“position”)==“static”){b.css({position:“relative”});c.css({position:“relative”})}else{f.extend(a,{position:c.css(“position”),zIndex:c.css(“z-index”)});f.each(,function(e,g){a=c.css(g);if(isNaN(parseInt(a,10)))a=“auto”});c.css({position:“relative”,top:0,left:0,right:“auto”,bottom:“auto”})}return b.css(a).show()},removeWrapper:function©{var a,b=document.activeElement; if(c.parent().is(“.ui-effects-wrapper”)){a=c.parent().replaceWith©;if(c===b||f.contains(c,b))f(b).focus();return a}return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit>0)d=unit*b+unit});return d}});f.fn.extend({effect:function©{var a=k.apply(this,arguments),b={options:a,duration:a,callback:a};a=b.options.mode;var d=f.effects;if(f.fx.off||!d)return a?this(b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)}); return d.call(this,b)},_show:f.fn.show,show:function©{if(l©)return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a.mode=“show”;return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function©{if(l©)return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a.mode=“hide”;return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function©{if(l©||typeof c===“boolean”||f.isFunction©)return this.__toggle.apply(this,arguments);else{var a=k.apply(this, arguments);a.mode=“toggle”;return this.effect.apply(this,a)}},cssUnit:function©{var a=this.css©,b=[];f.each(,function(d,e){if(a.indexOf(e)>0)b=});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:“easeOutQuad”,swing:function(c,a,b,d,e){return f.easing(c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/ 2*a*a+b;return-d/2*(–a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b, d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c, a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*–a)+2)+b},easeInCfunction(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCfunction(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b, d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g= 0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)a((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)a((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158; if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)a(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c, a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);