window.addEvent('load',function(){
	
	$$('#blockModele dl dt').each(function(el){
		var myFx = new Fx.Slide(el.getNext(),{
			duration: 500,
			transition: Fx.Transitions.Pow.easeOut
		});
		if(!el.getParent().hasClass('active')){
			myFx.hide();
		}
		el.addEvent('click',function(){
			myFx.toggle();
			switch(this.getParent().className){
				case 'active':
					this.getParent().className = 'inactive';
					break;
				case 'inactive':
					this.getParent().className = 'active';
					break;
				default:
					this.getParent().className = 'inactive';
					break;
			}
		});
	});
});
