﻿function makeTall() {					
	$(this).find('ul:first').prev().stop(true, true).animate({opacity: 'toggle'}, 200, function(){
		$(this).next().stop(true, true).animate({opacity: 'toggle'}, 200).addClass('active_list');			
	});	
}

function makeShort() {			
	$(this).children('ul.active_list').prev().stop(true, true).animate({opacity: 'toggle'}, 100);
	$(this).children('ul.active_list').stop(true, true).animate({opacity: 'toggle'}, 100).removeClass('active_list');			
}

$(document).ready(function () 
{		
	if ($.browser.msie != undefined && $.browser.msie && $.browser.version<7)
		return;
		
	var menuconfig = {    
		 over: makeTall,
		 timeout: 250,
		 interval: 200,
		 out: makeShort
	};		
	
	$('ul.menu-nav li').hoverIntent(menuconfig);	
	$('ul.menu-nav ul').before('<div class="menuheader"></div>');
	$('ul.menu-nav ul').append('<li class="menufooter"></li>');
});
