// JavaScript Document
function IEToggleSelView(bool) 
{
	if ('boolean'===typeof bool)
	{
		clearTimeout(IEToggleSelView.timeout);
		IEToggleSelView.timeout = setTimeout(
			function () {
				if ((/msie/i).test(navigator.userAgent))
				{
					var cache = document.myframe;
					if (cache) {
						cache = cache.document.body.getElementsByTagName('select');
						var cLen = cache.length;
						for (var i=0; i < cLen; i++)
						{
							cache[i].style.visibility = bool? 'visible':'hidden';
						}
						IEToggleSelView.status = bool;
					}
				}
			},
			bool? 100:1
		);
	}
}

$(document).ready(function(){
	$('li.MnItem').hover(
		function()
		{	
			//IEToggleSelView(false);
			
			$('#' + $(this).attr('id') + ' span').animate({ height: $(this).height() + 'px', paddingTop: '4px',width: $(this).width() + 'px'},150);
		  	$('#' + $(this).attr('app')).animate({height:$(this).attr('xheight')+'px'},150);
		},
		function()
		{
			$('#' + $(this).attr('id') + ' span, #' + $(this).attr('app')).stop(); // Parar antes do menu estar completamente aberto
			$('#' + $(this).attr('id') + ' span, #' + $(this).attr('app')).animate({ height: '0px'},100);  // fecha o hover
			$('#' + $(this).attr('id') + ' span').animate({ paddingTop: '0px'},5);
			
			//IEToggleSelView(true);
		}
	);
});
