
function init(){new FeaturesManager();}
var FeaturesManager=new Class({initialize:function(){this.activeId=0;this.fx=new Fx.Tween('featuresContent',{duration:400,wait:false})
this.getSwitchers().each(function(el,id){el.onclick=this.switchContent.bindWithEvent(this,id);},this);},getContents:function(){return $$('#featuresContents div.featuresContent');},getSwitchers:function(){return $$('#featuresSwitchers li');},switchContent:function(e,id){e=new Event(e);e.stop();if(this.activeId==id){return;}
var switchers=this.getSwitchers();switchers[this.activeId].removeClass('active');switchers[id].addClass('active');this.fx.start('opacity',0).chain(function(){var content=this.getContents()[id];$('featuresContent').empty().innerHTML=content.innerHTML;this.fx.start('opacity',1);}.bind(this));this.activeId=id;}});