/* Drop down menu */
var currentNavElement = null;
$().ready(function () {
	$('nav ul li').hover(function () {
		currentNavElement = $(this);
		showMenu(currentNavElement);
	}, function () {
		hideMenu($(this));
	});
});

function showMenu(element) {
	if (element == currentNavElement) {
		$(element).children('ul.subnav:first').fadeIn('500');
		currentNavElement = null;
	}
}

function hideMenu(element) {
	$(element).children('ul.subnav:first').stop(true, true).fadeOut('550');
}
