$(function() {
	$('.submenu').each(function() {
		$(this).parent().eq(0).hoverIntent({
			timeout: 50,
			over: function() {
				var current = $('.submenu:eq(0)', this);
				current.slideDown(100);
				$('a:eq(0)',this).addClass('active');
			},
			out: function() {
				var current = $('.submenu:eq(0)', this);
				var pa = $('a:eq(0)',this);
				current.slideUp(200, function() {pa.removeClass('active');});
			}
		});
	});
});

