/*
 * jQuery Color Animations v@VERSION
 * http://jquery.org/
 *
 * Copyright 2011 John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Date: @DATE
 */
(function(M,C){var I="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color outlineColor".split(" "),F=/^([\-+])=\s*(\d+\.?\d*)/,E=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(N){return[N[1],N[2],N[3],N[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(N){return[2.55*N[1],2.55*N[2],2.55*N[3],N[4]]}},{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(N){return[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)]}},{re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,parse:function(N){return[parseInt(N[1]+N[1],16),parseInt(N[2]+N[2],16),parseInt(N[3]+N[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(N){return[N[1],N[2]/100,N[3]/100,N[4]]}}],D=M.Color=function(O,P,N,Q){return new M.Color.fn.parse(O,P,N,Q)},H={rgba:{cache:"_rgba",props:{red:{idx:0,min:0,max:255,type:"int",empty:true},green:{idx:1,min:0,max:255,type:"int",empty:true},blue:{idx:2,min:0,max:255,type:"int",empty:true},alpha:{idx:3,min:0,max:1,type:"float",def:1}}},hsla:{cache:"_hsla",props:{hue:{idx:0,mod:360,type:"int",empty:true},saturation:{idx:1,min:0,max:1,type:"float",empty:true},lightness:{idx:2,min:0,max:1,type:"float",empty:true}}}},K=H.rgba.props,L=D.support={},A,J=M.each;H.hsla.props.alpha=K.alpha;function G(O,P,N){if((P.empty||N)&&O==null){return null}if(P.def&&O==null){return P.def}if(P.type==="int"){O=~~O}if(P.mod){O=(O<0?O+P.mod*(1+~~(-O/P.mod)):O)%P.mod}if(P.type==="float"){O=parseFloat(O)}if(M.isNaN(O)){O=P.def}return P.min>O?P.min:P.max<O?P.max:O}D.fn=D.prototype={constructor:D,parse:function(U,S,N,T){if(U===C){this._rgba=[null,null,null,null];return this}if(U instanceof M||U.nodeType){U=U instanceof M?U.css(S):M(U).css(S);S=C}var R=this,P=M.type(U),O=this._rgba=[],Q;if(S!==C){U=[U,S,N,T];P="array"}if(P==="string"){U=U.toLowerCase();J(E,function(a,b){var Z=b.re.exec(U),Y=Z&&b.parse(Z),X,W=b.space||"rgba",V=H[W].cache;if(Y){X=R[W](Y);if(W!="rgba"){R[V]=X[V]}O=R._rgba=X._rgba;return false}});if(O.length!==0){if(Math.max.apply(Math,O)===0){$.extend(O,A.transparent)}return this}U=A[U]||A._default;return this.parse(U)}if(P==="array"){J(K,function(V,W){O[W.idx]=G(U[W.idx],W)});return this}if(P==="object"){if(U instanceof D){J(H,function(V,W){if(U[W.cache]){R[W.cache]=U[W.cache].slice()}})}else{J(H,function(V,W){J(W.props,function(Y,Z){var X=W.cache;if(!R[X]&&W.to){if(U[Y]==null||Y==="alpha"){return }R[X]=W.to(R._rgba)}R[X][Z.idx]=G(U[Y],Z,true)})})}return this}},is:function(P){var O=D(P),Q=true,N=this;J(H,function(R,T){var S=O[T.cache],U;if(S){U=N[T.cache]||T.to&&T.to(N._rgba)||[];J(T.props,function(V,W){if(S[W.idx]!=null){Q=(S[W.idx]==U[W.idx]);return Q}})}return Q});return Q},_space:function(){var N=[],O=this;J(H,function(P,Q){if(O[Q.cache]){N.push(P)}});return N.pop()},transition:function(O,T){var P=D(O),Q=P._space(),R=H[Q],S=this[R.cache]||R.to(this._rgba),N=S.slice();P=P[R.cache];J(R.props,function(U,X){var V=S[X.idx],W=P[X.idx];if(W===null){return }if(V===null){N[X.idx]=W}else{if(X.mod){if(W-V>X.mod/2){V+=X.mod}else{if(V-W>X.mod/2){V-=X.mod}}}N[X.idx]=G((W-V)*T+V,X)}});return this[Q](N)},blend:function(Q){if(this._rgba[3]===1){return this}var P=this._rgba.slice(),O=P.pop(),N=D(Q)._rgba;return D(M.map(P,function(R,S){return(1-O)*N[S]+O*R}))},toRgbaString:function(){var N=M.map(this._rgba,function(O,P){return O==null?(P>2?1:0):O});if(N[3]===1){N.length=3}return(N.length===3?"rgb(":"rgba(")+N.join(",")+")"},toHslaString:function(){var N=M.map(this.hsla(),function(O,P){O=O==null?(P>2?1:0):O;if(P===1||P===2){O=Math.round(O*100)+"%"}return O});if(N[3]===1){N.length=3}return(N.length===3?"hsl(":"hsla(")+N.join(",")+")"},toHexString:function(N){var O=this._rgba.slice();if(!N){O.length=3}return"#"+M.map(O,function(P,Q){var R=(Q===3)?255:1,S=(P*R).toString(16);return S.length===1?"0"+S:S.substr(0,2)}).join("")},toString:function(){if(this._rgba[3]===0){return"transparent"}return this.toRgbaString()}};D.fn.parse.prototype=D.fn;function B(P,O,N){N=(N+1)%1;if(N*6<1){return P+(O-P)*6*N}if(N*2<1){return O}if(N*3<2){return P+(O-P)*((2/3)-N)*6}return P}H.hsla.to=function(P){if(P[0]==null||P[1]==null||P[2]==null){return[null,null,null,P[3]]}var N=P[0]/255,S=P[1]/255,T=P[2]/255,V=P[3],U=Math.max(N,S,T),Q=Math.min(N,S,T),W=U-Q,X=U+Q,O=X*0.5,R,Y;if(Q===U){R=0}else{if(N===U){R=(60*(S-T)/W)+360}else{if(S===U){R=(60*(T-N)/W)+120}else{R=(60*(N-S)/W)+240}}}if(O===0||O===1){Y=O}else{if(O<=0.5){Y=W/X}else{Y=W/(2-X)}}return[Math.round(R)%360,Y,O,V==null?1:V]};H.hsla.from=function(P){if(P[0]==null||P[1]==null||P[2]==null){return[null,null,null,P[3]]}var S=P[0]/360,W=P[1],R=P[2],V=P[3],O=R<=0.5?R*(1+W):R+W-R*W,Q=2*R-O,N,T,U;return[Math.round(B(Q,O,S+(1/3))*255),Math.round(B(Q,O,S)*255),Math.round(B(Q,O,S-(1/3))*255),V]};J(H,function(O,Q){var P=Q.props,N=Q.cache,S=Q.to,R=Q.from;D.fn[O]=function(X){if(S&&!this[N]){this[N]=S(this._rgba)}if(X===C){return this[N].slice()}var W=M.type(X),T=(W==="array"||W==="object")?X:arguments,V=this[N].slice(),U;J(P,function(Y,a){var Z=T[W==="object"?Y:a.idx];if(Z==null){Z=V[a.idx]}V[a.idx]=G(Z,a)});if(R){U=D(R(V));U[N]=V;return U}else{return D(V)}};J(P,function(T,U){if(D.fn[T]){return }D.fn[T]=function(Y){var a=M.type(Y),X=(T==="alpha"?(this._hsla?"hsla":"rgba"):O),W=this[X](),Z=W[U.idx],V;if(a==="undefined"){return Z}if(a==="function"){Y=Y.call(this,Z);a=M.type(Y)}if(Y==null&&U.empty){return this}if(a==="string"){V=F.exec(Y);if(V){Y=Z+parseFloat(V[2])*(V[1]==="+"?1:-1)}}W[U.idx]=Y;return this[X](W)}})});J(I,function(N,O){M.cssHooks[O]={set:function(R,S){S=D(S);if(!L.rgba&&S._rgba[3]!==1){var Q=O==="backgroundColor"?R.parentNode:R,P;do{P=M.curCSS(Q,"backgroundColor");if(P!==""&&P!=="transparent"){break}}while((R=R.parentNode)&&R.style);S=S.blend(D(P||"_default"))}S=S.toRgbaString();R.style[O]=S}};M.fx.step[O]=function(P){if(!P.colorInit){P.start=D(P.elem,O);P.end=D(P.end);P.colorInit=true}M.cssHooks[O].set(P.elem,P.start.transition(P.end,P.pos))}});M(function(){var O=document.createElement("div"),N=O.style;N.cssText="background-color:rgba(150,255,150,.5)";L.rgba=N.backgroundColor.indexOf("rgba")>-1});A=M.Color.names={aqua:"#00ffff",azure:"#f0ffff",beige:"#f5f5dc",black:"#000000",blue:"#0000ff",brown:"#a52a2a",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkviolet:"#9400d3",fuchsia:"#ff00ff",gold:"#ffd700",green:"#008000",indigo:"#4b0082",khaki:"#f0e68c",lightblue:"#add8e6",lightcyan:"#e0ffff",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightyellow:"#ffffe0",lime:"#00ff00",magenta:"#ff00ff",maroon:"#800000",navy:"#000080",olive:"#808000",orange:"#ffa500",pink:"#ffc0cb",purple:"#800080",violet:"#800080",red:"#ff0000",silver:"#c0c0c0",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);
