// JavaScript Document
$(function() {

	//Preserves the mouse-over on top-level menu elements when hovering over children
	$("#nav ul").each(function(i){
		$(this).hover(function(){
			$(this).parent().find("a").slice(0,1).addClass("active");
		},function(){
			$(this).parent().find("a").slice(0,1).removeClass("active");
		});
	});

});
