/*
 * DOMEffects 0.2.5, Copyright (c) 2008 Pelle Wessman, <http://code.google.com/p/domeffects>, MIT Style License.
 */
var DOMEffects=function(){var A="visibility:",C="opacity",B="getOpacityRule";
return{getOpacityRule:function(D){this[B]=window.ActiveXObject?function(E){return C+":"+E+";filter:progid:DXImageTransform.Microsoft.Alpha("+C+"="+(E*100)+");"
}:function(E){return(E!==0?A+"visible;":A+"hidden;")+C+":"+E+";"};return this[B](D)}}}();DOMAssistant.attach(function(){var B="style",C="cssText";
function A(F,E,D){if(F[B][C]!==undefined){A=function(I,H,G){I[B][C]=G?H:I[B][C]+";"+H}}else{A=function(I,H,G){I.setAttribute(B,G?H:I.getAttribute(B)+";"+H)
}}A(F,E,D)}return{setStyle:function(D,E){A(this,D,E);return this}}}());DOMAssistant.attach(function(){var A="q",N="f",J="t",L="duration",K="s",H="a",C="easing",E="c",F="value",M="unit",I=setTimeout,G=false;
function D(P,Q,S,R){return S*P/R+Q}function B(){return new Date().getTime()}function O(Q,U){Q.fx[K]=U;
Q.fx[N]=[];var S,P,T,R=[];for(P in Q.fx[A][0][H]){S=Q.fx[A][0][H][P];if(typeof S!=="object"){T={};T[F]=S;
T[M]="px";S=T}else{S[M]=S[M]!==undefined?S[M]:"px"}S[H]=P;R[R.length]=S;S=parseFloat(Q.getStyle(P));Q.fx[N][Q.fx[N].length]=isNaN(S)?0:S
}Q.fx[A][0][H]=R}return{stop:function(){var P=this;if(P.fx&&P.fx[J]){clearTimeout(P.fx[J]);P.fx=G}return P
},animate:function(P,R){var T=this,Q={};R=R?R:{};Q[H]=P;Q[E]=R.callback;Q[L]=R[L]?R[L]:1000;Q[C]=R[C]?R[C]:D;
if(T.fx){T.fx[A].push(Q)}else{T.fx={};T.fx[A]=[Q];O(T,B());var S=function(){var U=B()-T.fx[K],Y=T.fx[A][0][L],W="",V=0;
if(Y<U){U=Y}for(;V<T.fx[A][0][H].length;V++){var Z=T.fx[A][0][H][V],X=T.fx[A][0][C](U,T.fx[N][V],Z[F]-T.fx[N][V],Y);
W+=Z[H]==="opacity"?DOMEffects.getOpacityRule(X):Z[H]+":"+X+Z[M]+";"}T.setStyle(W);if(Y===U){if(typeof T.fx[A][0][E]==="function"){T.fx[A][0][E].call(T)
}T.fx[A].shift();if(T.fx[A].length===0){T.fx=G;return }else{O(T,T.fx[K]+U)}}T.fx[J]=I(S,30)};T.fx[J]=I(S,30)
}return T}}}());DOMAssistant.attach({show:function(A){A=A?A:{};var B=$$(this);if(A.duration===0){B.setStyle(DOMEffects.getOpacityRule(1))
}else{var C={};C.duration=A.duration;C.easing=A.easing;C.callback=A.callback;B.animate({opacity:{value:1,unit:""}},C)
}return B},hide:function(A){A=A?A:{};var B=$$(this);if(A.duration===0){B.setStyle(DOMEffects.getOpacityRule(0))
}else{var C={};C.duration=A.duration;C.easing=A.easing;C.callback=A.remove?function(){B.remove()}:A.callback;
B.animate({opacity:{value:0,unit:""}},C)}return B}});
