fx.Scroll=Class.create();fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(A){this.setOptions(A)},scrollTo:function(D){var B=Position.cumulativeOffset($(D))[1];var A=window.innerHeight||document.documentElement.clientHeight;var C=document.documentElement.scrollHeight;var E=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(B+A>C){this.custom(E,B-A+(C-B))}else{this.custom(E,B)}},increase:function(){window.scrollTo(0,this.now)}});fx.Text=Class.create();fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(B,A){this.el=$(B);this.setOptions(A);if(!this.options.unit){this.options.unit="em"}},increase:function(){this.el.style.fontSize=this.now+this.options.unit}});fx.Combo=Class.create();fx.Combo.prototype={setOptions:function(A){this.options={opacity:true,height:true,width:false};Object.extend(this.options,A||{})},initialize:function(B,A){this.el=$(B);this.setOptions(A);if(this.options.opacity){this.el.o=new fx.Opacity(B,A);A.onComplete=null}if(this.options.height){this.el.h=new fx.Height(B,A);A.onComplete=null}if(this.options.width){this.el.w=new fx.Width(B,A)}},toggle:function(){this.checkExec("toggle")},hide:function(){this.checkExec("hide")},clearTimer:function(){this.checkExec("clearTimer")},checkExec:function(A){if(this.el.o){this.el.o[A]()}if(this.el.h){this.el.h[A]()}if(this.el.w){this.el.w[A]()}},resizeTo:function(A,B){if(this.el.h&&this.el.w){this.h.custom(this.el.offsetHeight,this.el.offsetHeight+A);this.w.custom(this.el.offsetWidth,this.el.offsetWidth+B)}},customSize:function(A,B){if(this.el.h&&this.el.w){this.h.custom(this.el.offsetHeight,A);this.w.custom(this.el.offsetWidth,B)}}};fx.Accordion=Class.create();fx.Accordion.prototype={setOptions:function(A){this.options={delay:100,opacity:false};Object.extend(this.options,A||{})},initialize:function(B,C,A){this.elements=C;this.setOptions(A);C.each(function(E,D){A.onComplete=function(){if(E.offsetHeight>0){E.style.height="1%"}};E.fx=new fx.Combo(E,A);E.fx.hide()});B.each(function(E,D){E.onclick=function(){this.showThisHideOpen(C[D])}.bind(this)}.bind(this))},showThisHideOpen:function(A){if(A.offsetHeight==0){setTimeout(function(){this.clearAndToggle(A)}.bind(this),this.options.delay)}this.elements.each(function(C,B){if(C.offsetHeight>0&&C!=A){this.clearAndToggle(C)}}.bind(this))},clearAndToggle:function(A){A.fx.clearTimer();A.fx.toggle()}};var Remember=new Object();Remember=function(){};Remember.prototype={initialize:function(C,A){this.el=$(C);this.days=365;this.options=A;this.effect();var B=this.readCookie();if(B){this.fx.now=B;this.fx.increase()}},setCookie:function(C){var B=new Date();B.setTime(B.getTime()+(this.days*24*60*60*1000));var A="; expires="+B.toGMTString();document.cookie=this.el+this.el.id+this.prefix+"="+C+A+"; path=/"},readCookie:function(){var C=this.el+this.el.id+this.prefix+"=";var A=document.cookie.split(";");for(var B=0;c=A[B];B++){while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(C)==0){return c.substring(C.length,c.length)}}return false},custom:function(B,A){if(this.fx.now!=A){this.setCookie(A);this.fx.custom(B,A)}}};fx.RememberHeight=Class.create();fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Height(this.el,this.options);this.prefix="height"},toggle:function(){if(this.el.offsetHeight==0){this.setCookie(this.el.scrollHeight)}else{this.setCookie(0)}this.fx.toggle()},resize:function(A){this.setCookie(this.el.offsetHeight+A);this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+A)},hide:function(){if(!this.readCookie()){this.fx.hide()}}});fx.RememberText=Class.create();fx.RememberText.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Text(this.el,this.options);this.prefix="text"}});Array.prototype.each=function(B){for(var A=0;ob=this[A];A++){B(ob,A)}};fx.expoIn=function(A){return Math.pow(2,10*(A-1))};fx.expoOut=function(A){return(-Math.pow(2,-10*A)+1)};fx.quadIn=function(A){return Math.pow(A,2)};fx.quadOut=function(A){return -(A)*(A-2)};fx.circOut=function(A){return Math.sqrt(1-Math.pow(A-1,2))};fx.circIn=function(A){return -(Math.sqrt(1-Math.pow(A,2))-1)};fx.backIn=function(A){return(A)*A*((2.7)*A-1.7)};fx.backOut=function(A){return((A-1)*(A-1)*((2.7)*(A-1)+1.7)+1)};fx.sineOut=function(A){return Math.sin(A*(Math.PI/2))};fx.sineIn=function(A){return -Math.cos(A*(Math.PI/2))+1};fx.sineInOut=function(A){return -(Math.cos(Math.PI*A)-1)/2}