$(document).ready(function(){
	$('#topnav > li').addClass('top').hover(
		function () {
			// ie needs a little extra help to hide the ones that have a.active
			$('li.top:visible').removeClass("active");
			$(this).addClass("active");
		}, 
		function () {
			$(this).removeClass("active");
		}
	);
	
	// get text for subnav heading, based on active section in nav
	var headingText = $('li.parent-here, li.here', '#topnav').eq(0).find('a:first').text();
	$('#subnav-heading').text(headingText);
});
