function showNav() {	
	var dropBox = $(this).find("div.dropdown_box"); //Grab the corresponding drop_box element to be displayed

	if ($(this).hasClass("current") && !(dropBox.is(":visible"))) {
		this.hadCurrent = true;
	} else {
		$(this).addClass("current");
	}
	
	if (dropBox.length) {
		dropBox.css({
			//display: block; right: -1px; top: 12px; 
			right:  -1, // ($(this).offset().left - dropBox.innerWidth()) + ($(this).outerWidth() + 1),
			top:  12 //$(this).position().top + 11
		});
		dropBox.show();
	}
}

function hideNav() {
	if (!this.hadCurrent) { $(this).removeClass("current"); }
	
	var dropBox = $(this).find("div.dropdown_box"); //Grab the corresponding drop_box element to be displayed
	
	if (dropBox.length) {
		dropBox.hide();
	}
}

var hideTimers = { };

$(document).ready(function() {
	$("ul#top_nav li.dropdown").overNOut({
		over: showNav,
		overDelay: 0,
		out: hideNav,
		outDelay: 300,
		mouseOutOnLast: true
	});
});
