var Balafia_Menu = Class.create(
{
	initialize: function(selector)
	{
		this.node = $(selector);
		if(!this.node) this.node = $(document.body).down(selector);
		if(!this.node) return false;
		
		var effect	=	false;
		var min		=	this.node.getStyle("height");
		var max		=	"130px";
		
		this.node.removeClassName("menu_bottom_no_javascript");
		
		this.node.select(".menu_projects, .menu_services").invoke("observe","mouseenter",function(){
			if(effect) effect.cancel();
			
			effect = new S2.FX.Morph(this,{style:"height:"+max,duration: 0.7}).play();
		}.bind(this.node));
		
		this.node.observe("mouseleave",function(){	
			if(effect) effect.cancel();
			
			effect = new S2.FX.Morph(this,{style:"height:"+min,duration: 0.7}).play();
		});
	}
});
