function submenu(a,b,c,d){
	var button =a;
	var content=b;
	content.appendTo(c||$("body"));
	var height=content.height();	 
	
	content.css({
			position:"relative",
			left:a.offset().left-c.offset().left,
			height:"0px",
			opacity:0
			
		 
	});
	var show=function(){
		content.animate({height:height,opacity:1},{queue:false} )
	};
	var hide=function(){
		content.animate({height:0,opacity:0},{queue:false}  )
	};
	$(button).add(content).hover(show,hide);
};

$(function(){
 
		submenu(
			$(".element-3"),
			$("#left_menu ul").addClass("menuA"),
			$("#top-block")	 
		);	
})
	 
 
