var effectMenuDerouleTop = new Class({
									 
	initialize: function(menu,lien,li,color_leave,color_enter,duration){
		this.menu 			= menu;
		this.duration 		= duration;
		this.color_leave	= color_leave;
		this.color_enter	= color_enter;
		this.lien			= lien;
		this.li				= li;
				
		var this_duration		= this.duration;
		var this_color_leave	= this.color_leave;
		var this_color_enter	= this.color_enter;
		var this_menu			= this.menu;
		
		this.lien.addEvent('mouseenter',function(){
			new Fx.Morph(this_menu[0], {duration:this_duration, link: 'cancel', transition: Fx.Transitions.Sine.easeOut}).start({'bottom': 0,'opacity': [0,1]}); //'height': [0,setH]
		});
		
		this_menu[0].addEvent('mouseleave',function(){
			new Fx.Morph(this_menu[0], {duration:this_duration, link: 'cancel', transition: Fx.Transitions.Sine.easeOut}).start({'bottom': '-180px','opacity': [1,0]}); //'height': [0,setH]
		});

		this.li.each(function(item){
			item.addEvents({
				mouseenter: function(){new Fx.Tween(item,{duration:this_duration,link:'cancel',property:'color'}).start(this_color_leave, this_color_enter);},
				mouseleave: function(){new Fx.Tween(item,{duration:this_duration,link:'cancel',property:'color'}).start(this_color_enter, this_color_leave);}
			});
		});
		
		/*var ul 	= this.menu.getFirst('ul');
		var ful = ul[0];
		
		if(ful!=null){
			var setH = ful.getStyle('height');
			var this_morph_enter = new Fx.Morph(ful, {duration:this_duration, link: 'cancel', transition: Fx.Transitions.Sine.easeOut});
			var this_tween_leave = new Fx.Tween(ful, {duration:this_duration, link: 'cancel', transition: Fx.Transitions.Sine.easeOut});
			
			if(this_morph_enter!=null && this_tween_leave!=null){
				this.menu.addEvent('mouseenter',function(){this_morph_enter.start({'height': [0,setH],'opacity': [0,1]});});
				this.menu.addEvent('mouseleave',function(){this_tween_leave.start('opacity',1,0);});
			}			
			
			this.lien.each(function(item){
				item.addEvents({
					mouseenter: function(){new Fx.Tween(item,{duration:this_duration,link:'cancel',property:'color'}).start(this_color_leave, this_color_enter);},
					mouseleave: function(){new Fx.Tween(item,{duration:this_duration,link:'cancel',property:'color'}).start(this_color_enter, this_color_leave);}
				});
			});
		}*/
	}
});
