jQuery.effects||function(a,b){function e(c){var b;return c&&c.constructor==Array&&c.length==3?c:(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))?[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]:(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))?[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]:(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))?[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(c)?f.transparent:f[a.trim(c).toLowerCase()]}function j(c,d){var b;do{b=a.curCSS(c,d);if(b!=""&&b!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return e(b)}function g(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,c={},b,d;if(a&&a.length&&a[0]&&a[a[0]])for(var e=a.length;e--;){b=a[e];if(typeof a[b]=="string"){d=b.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});c[d]=a[b]}}else for(b in a)if(typeof a[b]==="string")c[b]=a[b];return c}function h(d){var b,c;for(b in d){c=d[b];if(c==null||a.isFunction(c)||b in k||/scrollbar/.test(b)||!/color/i.test(b)&&isNaN(parseFloat(c)))delete d[b]}return d}function l(d,b){var c={_:0},a;for(a in b)if(d[a]!=b[a])c[a]=b[a];return c}function c(e,b,c,d){if(typeof e=="object"){d=b;c=null;b=e;e=b.effect}if(a.isFunction(b)){d=b;c=null;b={}}if(typeof b=="number"||a.fx.speeds[b]){d=c;c=b;b={}}if(a.isFunction(c)){d=c;c=null}b=b||{};c=c||b.duration;c=a.fx.off?0:typeof c=="number"?c:c in a.fx.speeds?a.fx.speeds[c]:a.fx.speeds._default;d=d||b.complete;return[e,b,c,d]}function d(b){return!b||typeof b==="number"||a.fx.speeds[b]?true:typeof b==="string"&&!a.effects[b]?true:false}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,b){a.fx.step[b]=function(a){if(!a.colorInit){a.start=j(a.elem,b);a.end=e(a.end);a.colorInit=true}a.elem.style[b]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var f={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],transparent:[255,255,255]},i=["add","remove","toggle"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(c,e,b,d){if(a.isFunction(b)){d=b;b=null}return this.each(function(){a.queue(this,"fx",function(){var f=a(this),m=f.attr("style")||" ",j=h(g.call(this)),k,n=f.attr("className");a.each(i,function(b,a){c[a]&&f[a+"Class"](c[a])});k=h(g.call(this));f.attr("className",n);f.animate(l(j,k),e,b,function(){a.each(i,function(b,a){c[a]&&f[a+"Class"](c[a])});if(typeof f.attr("style")=="object"){f.attr("style").cssText="";f.attr("style").cssText=m}else f.attr("style",m);d&&d.apply(this,arguments)});j=a.queue(this);k=j.splice(j.length-1,1)[0];j.splice(1,0,k);a.dequeue(this)})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(c,b,d,e){return b?a.effects.animateClass.apply(this,[{add:c},b,d,e]):this._addClass(c)},_removeClass:a.fn.removeClass,removeClass:function(c,b,d,e){return b?a.effects.animateClass.apply(this,[{remove:c},b,d,e]):this._removeClass(c)},_toggleClass:a.fn.toggleClass,toggleClass:function(d,c,e,f,g){return typeof c=="boolean"||c===b?e?a.effects.animateClass.apply(this,[c?{add:d}:{remove:d},e,f,g]):this._toggleClass(d,c):a.effects.animateClass.apply(this,[{toggle:d},c,e,f])},switchClass:function(d,b,c,e,f){return a.effects.animateClass.apply(this,[{add:b,remove:d},c,e,f])}});a.extend(a.effects,{version:"1.8.7",save:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.data("ec.storage."+b[a],c[0].style[b[a]])},restore:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.css(b[a],c.data("ec.storage."+b[a]))},setMode:function(b,a){if(a=="toggle")a=b.is(":hidden")?"show":"hide";return a},getBaseline:function(a,c){var b;switch(a[0]){case"top":b=0;break;case"middle":b=.5;break;case"bottom":b=1;break;default:b=a[0]/c.height}switch(a[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=a[1]/c.width}return{x:a,y:b}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(true),height:b.outerHeight(true),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});b.wrap(d);d=b.parent();if(b.css("position")=="static"){d.css({position:"relative"});b.css({position:"relative"})}else{a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")});a.each(["top","left","bottom","right"],function(d,a){c[a]=b.css(a);if(isNaN(parseInt(c[a],10)))c[a]="auto"});b.css({position:"relative",top:0,left:0})}return d.css(c).show()},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(e,c,d,b){b=b||{};a.each(c,function(c,a){unit=e.cssUnit(a);if(unit[0]>0)b[a]=unit[0]*d+unit[1]});return b}});a.fn.extend({effect:function(f){var b=c.apply(this,arguments),d={options:b[1],duration:b[2],callback:b[3]};b=d.options.mode;var e=a.effects[f];return a.fx.off||!e?b?this[b](d.duration,d.callback):this.each(function(){d.callback&&d.callback.call(this)}):e.call(this,d)},_show:a.fn.show,show:function(b){if(d(b))return this._show.apply(this,arguments);else{var a=c.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:a.fn.hide,hide:function(b){if(d(b))return this._hide.apply(this,arguments);else{var a=c.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:a.fn.toggle,toggle:function(b){if(d(b)||typeof b==="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);else{var e=c.apply(this,arguments);e[1].mode="toggle";return this.effect.apply(this,e)}},cssUnit:function(d){var b=this.css(d),c=[];a.each(["em","px","%","pt"],function(d,a){if(b.indexOf(a)>0)c=[parseFloat(b),a]});return c}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(d,b,c,e,f){return a.easing[a.easing.def](d,b,c,e,f)},easeInQuad:function(e,a,b,c,d){return c*(a/=d)*a+b},easeOutQuad:function(e,a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOutQuad:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},easeInCubic:function(e,a,b,c,d){return c*(a/=d)*a*a+b},easeOutCubic:function(e,a,b,c,d){return c*((a=a/d-1)*a*a+1)+b},easeInOutCubic:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},easeInQuart:function(e,a,b,c,d){return c*(a/=d)*a*a*a+b},easeOutQuart:function(e,a,b,c,d){return-c*((a=a/d-1)*a*a*a-1)+b},easeInOutQuart:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(e,a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeOutQuint:function(e,a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},easeInOutQuint:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(e,b,c,a,d){return-a*Math.cos(b/d*(Math.PI/2))+a+c},easeOutSine:function(e,a,b,c,d){return c*Math.sin(a/d*(Math.PI/2))+b},easeInOutSine:function(e,a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b},easeInExpo:function(e,a,b,c,d){return a==0?b:c*Math.pow(2,10*(a/d-1))+b},easeOutExpo:function(e,a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeInOutExpo:function(e,a,b,c,d){return a==0?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(e,a,b,c,d){return-c*(Math.sqrt(1-(a/=d)*a)-1)+b},easeOutCirc:function(e,a,b,c,d){return c*Math.sqrt(1-(a=a/d-1)*a)+b},easeInOutCirc:function(e,a,b,c,d){return(a/=d/2)<1?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(d,c,f,a,g){d=1.70158;var b=0,e=a;if(c==0)return f;if((c/=g)==1)return f+a;b||(b=g*.3);if(e<Math.abs(a)){e=a;d=b/4}else d=b/(2*Math.PI)*Math.asin(a/e);return-(e*Math.pow(2,10*(c-=1))*Math.sin((c*g-d)*2*Math.PI/b))+f},easeOutElastic:function(d,c,f,a,g){d=1.70158;var b=0,e=a;if(c==0)return f;if((c/=g)==1)return f+a;b||(b=g*.3);if(e<Math.abs(a)){e=a;d=b/4}else d=b/(2*Math.PI)*Math.asin(a/e);return e*Math.pow(2,-10*c)*Math.sin((c*g-d)*2*Math.PI/b)+a+f},easeInOutElastic:function(d,a,f,b,g){d=1.70158;var c=0,e=b;if(a==0)return f;if((a/=g/2)==2)return f+b;c||(c=g*.3*1.5);if(e<Math.abs(b)){e=b;d=c/4}else d=c/(2*Math.PI)*Math.asin(b/e);return a<1?-.5*e*Math.pow(2,10*(a-=1))*Math.sin((a*g-d)*2*Math.PI/c)+f:e*Math.pow(2,-10*(a-=1))*Math.sin((a*g-d)*2*Math.PI/c)*.5+b+f},easeInBack:function(g,c,d,e,f,a){if(a==b)a=1.70158;return e*(c/=f)*c*((a+1)*c-a)+d},easeOutBack:function(g,a,d,e,f,c){if(c==b)c=1.70158;return e*((a=a/f-1)*a*((c+1)*a+c)+1)+d},easeInOutBack:function(g,a,d,e,f,c){if(c==b)c=1.70158;return(a/=f/2)<1?e/2*a*a*(((c*=1.525)+1)*a-c)+d:e/2*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)+d},easeInBounce:function(f,d,e,b,c){return b-a.easing.easeOutBounce(f,c-d,0,b,c)+e},easeOutBounce:function(e,a,b,c,d){return(a/=d)<1/2.75?c*7.5625*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},easeInOutBounce:function(f,c,e,d,b){return c<b/2?a.easing.easeInBounce(f,c*2,0,d,b)*.5+e:a.easing.easeOutBounce(f,c*2-b,0,d,b)*.5+d*.5+e}})}(jQuery)
