/*
 * DOMEffects 0.2.6, 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 a="q",n="f",j="t",l="duration",k="s",h="a",c="easing",e="c",f="value",m="unit",p="color",i=setTimeout,g=false;function d(r,s,u,t){return u*r/t+s}function b(){return new Date().getTime()}function q(s){var r=/#([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})|rgb\((\d*)\D*(\d*)\D*(\d*)\)/i;q=function(t){if(t=r.exec(t)){return{r:t[1]?parseInt(t[1]+(t[1].length===1?t[1]:""),16):parseInt(t[4],10),g:t[1]?parseInt(t[2]+(t[2].length===1?t[2]:""),16):parseInt(t[5],10),b:t[1]?parseInt(t[3]+(t[3].length===1?t[3]:""),16):parseInt(t[6],10)}}};return q(s)}function o(t,x){t.fx[k]=x;t.fx[n]=[];var v,r,w,u=[],s;for(r in t.fx[a][0][h]){v=t.fx[a][0][h][r];s=typeof v==="object";if(s&&v[m]==="color"){if(typeof v[f]==="string"){v[f]=q(v[f])}fromValue=q(t.getStyle(r));t.fx[n][t.fx[n].length]=fromValue?fromValue:{r:0,g:0,b:0}}else{if(!s){w={};w[f]=v;w[m]="px";v=w}else{v[m]=v[m]!==undefined?v[m]:"px"}fromValue=parseFloat(t.getStyle(r));t.fx[n][t.fx[n].length]=isNaN(fromValue)?0:fromValue}v[h]=r;u[u.length]=v}t.fx[a][0][h]=u}return{stop:function(){var r=this;if(r.fx&&r.fx[j]){clearTimeout(r.fx[j]);r.fx=g}return r},animate:function(r,t){var v=this,s={};t=t?t:{};s[h]=r;s[e]=t.callback;s[l]=t[l]?t[l]:1000;s[c]=t[c]?t[c]:d;if(v.fx){v.fx[a].push(s)}else{v.fx={};v.fx[a]=[s];o(v,b());var u=function(){var w=b()-v.fx[k],B=v.fx[a][0],A=B[l],y=";",x=0,C,z,D;if(A<w){w=A}for(;x<v.fx[a][0][h].length;x++){C=v.fx[a][0][h][x];D=v.fx[n][x];if(C[m]===p){y+=C[h]+":rgb("+Math.floor(B[c](w,D.r,C[f].r-D.r,A))+","+Math.floor(B[c](w,D.g,C[f].g-D.g,A))+","+Math.floor(B[c](w,D.b,C[f].b-D.b,A))+")"}else{z=B[c](w,D,C[f]-D,A);y+=C[h]==="opacity"?DOMEffects.getOpacityRule(z):C[h]+":"+z+C[m]+";"}}v.style.cssText+=y;if(A===w){if(typeof v.fx[a][0][e]==="function"){v.fx[a][0][e].call(v)}v.fx[a].shift();if(v.fx[a].length===0){v.fx=g;return}else{o(v,v.fx[k]+w)}}v.fx[j]=i(u,30)};v.fx[j]=i(u,30)}return v}}}());
/*
 * DOMEffects 0.2.6, Copyright (c) 2008 Pelle Wessman, <http://code.google.com/p/domeffects>, MIT Style License.
 */
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}});
