var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(A,B){for(property in B){A[property]=B[property]}return A};Function.prototype.bind=function(B){var A=this;return function(){return A.apply(B,arguments)}};function _$(){var C=new Array();for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string"){A=document.getElementById(A)}if(arguments.length==1){return A}C.push(A)}return C}document.getElementsByClassName=function(D){var C=document.getElementsByTagName("*")||document.all;var E=new Array();for(var B=0;B<C.length;B++){var G=C[B];var F=G.className.split(" ");for(var A=0;A<F.length;A++){if(F[A]==D){E.push(G);break}}}return E};if(!window.Element){var Element=new Object()}Object.extend(Element,{remove:function(A){A=_$(A);A.parentNode.removeChild(A)},hasClassName:function(C,D){C=_$(C);if(!C){return }var A=C.className.split(" ");for(var B=0;B<A.length;B++){if(A[B]==D){return true}}return false},addClassName:function(A,B){A=_$(A);Element.removeClassName(A,B);A.className+=" "+B},removeClassName:function(D,E){D=_$(D);if(!D){return }var B="";var A=D.className.split(" ");for(var C=0;C<A.length;C++){if(A[C]!=E){if(C>0){B+=" "}B+=A[C]}}D.className=B},cleanWhitespace:function(B){B=_$(B);for(var A=0;A<B.childNodes.length;A++){var C=B.childNodes[A];if(C.nodeType==3&&!/\S/.test(C.nodeValue)){Element.remove(C)}}}});var fx=new Object();fx.Base=function(){};fx.Base.prototype={setOptions:function(A){this.options={duration:500,onComplete:""};Object.extend(this.options,A||{})},go:function(){this.duration=this.options.duration;this.startTime=(new Date).getTime();this.timer=setInterval(this.step.bind(this),13)},step:function(){var B=(new Date).getTime();var A=(B-this.startTime)/(this.duration);if(B>=this.duration+this.startTime){this.now=this.to;clearInterval(this.timer);this.timer=null;if(this.options.onComplete){setTimeout(this.options.onComplete.bind(this),10)}}else{this.now=((-Math.cos(A*Math.PI)/2)+0.5)*(this.to-this.from)+this.from}this.increase()},custom:function(B,A){if(this.timer!=null){return }this.from=B;this.to=A;this.go()},hide:function(){this.now=0;this.increase()},clearTimer:function(){clearInterval(this.timer);this.timer=null}};fx.Layout=Class.create();fx.Layout.prototype=Object.extend(new fx.Base(),{initialize:function(B,A){this.el=_$(B);this.el.style.overflow="hidden";this.el.iniWidth=this.el.offsetWidth;this.el.iniHeight=this.el.offsetHeight;this.setOptions(A)}});fx.Height=Class.create();Object.extend(Object.extend(fx.Height.prototype,fx.Layout.prototype),{increase:function(){this.el.style.height=this.now+"px"},toggle:function(){if(this.el.offsetHeight>0){this.custom(this.el.offsetHeight,0)}else{this.custom(0,this.el.scrollHeight)}}});fx.Width=Class.create();Object.extend(Object.extend(fx.Width.prototype,fx.Layout.prototype),{increase:function(){this.el.style.width=this.now+"px"},toggle:function(){if(this.el.offsetWidth>0){this.custom(this.el.offsetWidth,0)}else{this.custom(0,this.el.iniWidth)}}});fx.Opacity=Class.create();fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(B,A){this.el=_$(B);this.now=1;this.increase();this.setOptions(A)},increase:function(){if(this.now==1){this.now=0.9999}if(this.now>0&&this.el.style.visibility=="hidden"){this.el.style.visibility="visible"}if(this.now==0){this.el.style.visibility="hidden"}if(window.ActiveXObject){this.el.style.filter="alpha(opacity="+this.now*100+")"}this.el.style.opacity=this.now},toggle:function(){if(this.now>0){this.custom(1,0)}else{this.custom(0,1)}}});