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