// JavaScript Document

	$(document).ready(function() {
  
		$("#topNav ul li").hover(function() { //Hover over event on list item
			$(this).find("a").addClass("selected");
			$(this).find("span").show(); //Show the subnav
		} , function() { //on hover out...
			$(this).find("a").removeClass("selected"); //Ditch the background
			$(this).find("span").hide(); //Hide the subnav
		});
		$(".headerLink").keyup(function(e){
			if (e.which == 9) {
				$(this).find("a").addClass("selected");
				$(this).find("span").show(); //Show the subnav
			}
			else {
				$(this).find("a").removeClass("selected"); //Ditch the background
				$(this).find("span").hide(); //Hide the subnav
			}
		});
		$(".headerLink").focus(function(e){
			$(".navbox").hide();
			$("#topNav ul li a").removeClass("selected");
		});
	});
