var Class={create:function(){
return function(){
this.initialize.apply(this,arguments);
};
}};
Object.extend=function(_1,_2){
for(property in _2){
_1[property]=_2[property];
}
return _1;
};
Function.prototype.bind=function(_3){
var _4=this;
return function(){
return _4.apply(_3,arguments);
};
};
Function.prototype.bindAsEventListener=function(_5){
var _6=this;
return function(_7){
_6.call(_5,_7||window.event);
};
};
function $(){
if(arguments.length==1){
return get$(arguments[0]);
}
var _8=[];
$c(arguments).each(function(el){
_8.push(get$(el));
});
return _8;
function get$(el){
if(typeof el=="string"){
el=document.getElementById(el);
}
return el;
}
}
if(!window.Element){
var Element=new Object();
}
Object.extend(Element,{remove:function(_b){
_b=$(_b);
_b.parentNode.removeChild(_b);
},hasClassName:function(_c,_d){
_c=$(_c);
if(!_c){
return;
}
var _e=false;
_c.className.split(" ").each(function(cn){
if(cn==_d){
_e=true;
}
});
return _e;
},addClassName:function(_10,_11){
_10=$(_10);
Element.removeClassName(_10,_11);
_10.className+=" "+_11;
},removeClassName:function(_12,_13){
_12=$(_12);
if(!_12){
return;
}
var _14="";
_12.className.split(" ").each(function(cn,i){
if(cn!=_13){
if(i>0){
_14+=" ";
}
_14+=cn;
}
});
_12.className=_14;
},cleanWhitespace:function(_17){
_17=$(_17);
$c(_17.childNodes).each(function(_18){
if(_18.nodeType==3&&!/\S/.test(_18.nodeValue)){
Element.remove(_18);
}
});
},find:function(_19,_1a){
_19=$(_19)[_1a];
while(_19.nodeType!=1){
_19=_19[_1a];
}
return _19;
}});
var Position={cumulativeOffset:function(_1b){
var _1c=0,valueL=0;
do{
_1c+=_1b.offsetTop||0;
valueL+=_1b.offsetLeft||0;
_1b=_1b.offsetParent;
}while(_1b);
return [valueL,_1c];
}};
document.getElementsByClassName=function(_1d){
var _1e=document.getElementsByTagName("*")||document.all;
var _1f=[];
$c(_1e).each(function(_20){
if(Element.hasClassName(_20,_1d)){
_1f.push(_20);
}
});
return _1f;
};
Array.prototype.iterate=function(_21){
for(var i=0;i<this.length;i++){
_21(this[i],i);
}
};
if(!Array.prototype.each){
Array.prototype.each=Array.prototype.iterate;
}
function $c(_23){
var _24=[];
for(var i=0;i<_23.length;i++){
_24.push(_23[i]);
}
return _24;
}
var fx=new Object();
fx.Base=function(){
};
fx.Base.prototype={setOptions:function(_26){
this.options={duration:500,onComplete:"",transition:fx.sinoidal};
Object.extend(this.options,_26||{});
},step:function(){
var _27=(new Date).getTime();
if(_27>=this.options.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{
var _28=(_27-this.startTime)/(this.options.duration);
this.now=this.options.transition(_28)*(this.to-this.from)+this.from;
}
this.increase();
},custom:function(_29,to){
if(this.timer!=null){
return;
}
this.from=_29;
this.to=to;
this.startTime=(new Date).getTime();
this.timer=setInterval(this.step.bind(this),13);
},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(el,_2c){
this.el=$(el);
this.el.style.overflow="hidden";
this.iniWidth=this.el.offsetWidth;
this.iniHeight=this.el.offsetHeight;
this.setOptions(_2c);
}});
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.iniWidth);
}
}});
fx.Opacity=Class.create();
fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(el,_2e){
this.el=$(el);
this.now=1;
this.increase();
this.setOptions(_2e);
},increase:function(){
if(this.now==1&&(/Firefox/.test(navigator.userAgent))){
this.now=0.9999;
}
this.setOpacity(this.now);
},setOpacity:function(_2f){
if(_2f==0&&this.el.style.visibility!="hidden"){
this.el.style.visibility="hidden";
}else{
if(this.el.style.visibility!="visible"){
this.el.style.visibility="visible";
}
}
if(window.ActiveXObject){
this.el.style.filter="alpha(opacity="+_2f*100+")";
}
this.el.style.opacity=_2f;
},toggle:function(){
if(this.now>0){
this.custom(1,0);
}else{
this.custom(0,1);
}
}});
fx.sinoidal=function(pos){
return ((-Math.cos(pos*Math.PI)/2)+0.5);
};
fx.linear=function(pos){
return pos;
};
fx.cubic=function(pos){
return Math.pow(pos,3);
};
fx.circ=function(pos){
return Math.sqrt(pos);
};
fx.Scroll=Class.create();
fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(_34){
this.setOptions(_34);
},scrollTo:function(el){
var _36=Position.cumulativeOffset($(el))[1];
var _37=window.innerHeight||document.documentElement.clientHeight;
var _38=document.documentElement.scrollHeight;
var top=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;
if(_36+_37>_38){
this.custom(top,_36-_37+(_38-_36));
}else{
this.custom(top,_36);
}
},increase:function(){
window.scrollTo(0,this.now);
}});
fx.Text=Class.create();
fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(el,_3b){
this.el=$(el);
this.setOptions(_3b);
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(_3c){
this.options={opacity:true,height:true,width:false};
Object.extend(this.options,_3c||{});
},initialize:function(el,_3e){
this.el=$(el);
this.setOptions(_3e);
if(this.options.opacity){
this.o=new fx.Opacity(el,_3e);
_3e.onComplete=null;
}
if(this.options.height){
this.h=new fx.Height(el,_3e);
_3e.onComplete=null;
}
if(this.options.width){
this.w=new fx.Width(el,_3e);
}
},toggle:function(){
this.checkExec("toggle");
},hide:function(){
this.checkExec("hide");
},clearTimer:function(){
this.checkExec("clearTimer");
},checkExec:function(_3f){
if(this.o){
this.o[_3f]();
}
if(this.h){
this.h[_3f]();
}
if(this.w){
this.w[_3f]();
}
},resizeTo:function(hto,wto){
if(this.h&&this.w){
this.h.custom(this.el.offsetHeight,this.el.offsetHeight+hto);
this.w.custom(this.el.offsetWidth,this.el.offsetWidth+wto);
}
},customSize:function(hto,wto){
if(this.h&&this.w){
this.h.custom(this.el.offsetHeight,hto);
this.w.custom(this.el.offsetWidth,wto);
}
}};
fx.Accordion=Class.create();
fx.Accordion.prototype={setOptions:function(_44){
this.options={delay:100,opacity:false};
Object.extend(this.options,_44||{});
},initialize:function(_45,_46,_47){
this.elements=_46;
this.setOptions(_47);
var _47=_47||"";
this.fxa=[];
if(_47&&_47.onComplete){
_47.onFinish=_47.onComplete;
}
_46.each(function(el,i){
_47.onComplete=function(){
if(el.offsetHeight>0){
el.style.height="1%";
}
if(_47.onFinish){
_47.onFinish(el);
}
};
this.fxa[i]=new fx.Combo(el,_47);
this.fxa[i].hide();
}.bind(this));
_45.each(function(tog,i){
if(typeof tog.onclick=="function"){
var _4c=tog.onclick;
}
tog.onclick=function(){
if(_4c){
_4c();
}
this.showThisHideOpen(_46[i]);
}.bind(this);
}.bind(this));
},showThisHideOpen:function(_4d){
this.elements.each(function(el,j){
if(el.offsetHeight>0&&el!=_4d){
this.clearAndToggle(el,j);
}
if(el==_4d&&_4d.offsetHeight==0){
setTimeout(function(){
this.clearAndToggle(_4d,j);
}.bind(this),this.options.delay);
}
}.bind(this));
},clearAndToggle:function(el,i){
this.fxa[i].clearTimer();
this.fxa[i].toggle();
}};
var Remember=new Object();
Remember=function(){
};
Remember.prototype={initialize:function(el,_53){
this.el=$(el);
this.days=365;
this.options=_53;
this.effect();
var _54=this.readCookie();
if(_54){
this.fx.now=_54;
this.fx.increase();
}
},setCookie:function(_55){
var _56=new Date();
_56.setTime(_56.getTime()+(this.days*24*60*60*1000));
var _57="; expires="+_56.toGMTString();
document.cookie=this.el+this.el.id+this.prefix+"="+_55+_57+"; path=/";
},readCookie:function(){
var _58=this.el+this.el.id+this.prefix+"=";
var ca=document.cookie.split(";");
for(var i=0;c=ca[i];i++){
while(c.charAt(0)==" "){
c=c.substring(1,c.length);
}
if(c.indexOf(_58)==0){
return c.substring(_58.length,c.length);
}
}
return false;
},custom:function(_5b,to){
if(this.fx.now!=to){
this.setCookie(to);
this.fx.custom(_5b,to);
}
}};
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(to){
this.setCookie(this.el.offsetHeight+to);
this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+to);
},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.iterate=function(_5e){
for(var i=0;i<this.length;i++){
_5e(this[i],i);
}
};
if(!Array.prototype.each){
Array.prototype.each=Array.prototype.iterate;
}
fx.expoIn=function(pos){
return Math.pow(2,10*(pos-1));
};
fx.expoOut=function(pos){
return (-Math.pow(2,-10*pos)+1);
};
fx.quadIn=function(pos){
return Math.pow(pos,2);
};
fx.quadOut=function(pos){
return -(pos)*(pos-2);
};
fx.circOut=function(pos){
return Math.sqrt(1-Math.pow(pos-1,2));
};
fx.circIn=function(pos){
return -(Math.sqrt(1-Math.pow(pos,2))-1);
};
fx.backIn=function(pos){
return (pos)*pos*((2.7)*pos-1.7);
};
fx.backOut=function(pos){
return ((pos-1)*(pos-1)*((2.7)*(pos-1)+1.7)+1);
};
fx.sineOut=function(pos){
return Math.sin(pos*(Math.PI/2));
};
fx.sineIn=function(pos){
return -Math.cos(pos*(Math.PI/2))+1;
};
fx.sineInOut=function(pos){
return -(Math.cos(Math.PI*pos)-1)/2;
};
var terms=document.getElementsByClassName("faqTitle");
var def=document.getElementsByClassName("faqContent");
var plop=new fx.Accordion(terms,def,{opacity:true});
plop.showThisHideOpen(def[0]);
