// JavaScript Document
var _submenuNum=3
	var submenuheightArray=new Array();
	
	$(document).ready(function(){
		var config = {    
			 sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
			 interval: 0, // number = milliseconds for onMouseOver polling interval    
			 over: fin, // function = onMouseOver callback (REQUIRED)    
			 timeout: 50, // number = milliseconds delay before onMouseOut    
			 out: fout // function = onMouseOut callback (REQUIRED)    
		};	
		$(".top_submenu").css("overflow","hidden");
		for(var _subh=1;_subh<=_submenuNum;_subh++){
			
			submenuheightArray.push($('#tm'+_subh).children('.top_submenu').height());
			$('#tm'+_subh).children('.top_submenu').height(0)
			$("#tm"+_subh).hoverIntent(config);	
		}
		$(".top_submenu").animate({height:0},{duration:0});
		$(".top_submenu").animate({opacity:0},{duration:0});		
	})
	
	function fin()
	{
		
		var _tempstring=$(this).attr('id')	
		var _tempNum=_tempstring.slice(_tempstring.length-1,_tempstring.length)-1
		
		$(this).children('.top_submenu').animate({height:submenuheightArray[_tempNum]},{duration:0});
		$(this).children('.top_submenu').stop().animate({opacity:1},{duration:200,easing:'easeOutCubic'});
	}
	
	function fout()
	{		
		$(this).children('.top_submenu').stop().animate({opacity:0},{duration:500,easing:'easeOutCubic'});
		$(this).children('.top_submenu').animate({height:0},{duration:0});
	}
