$(document).ready(function() {
	// Opens all PDFs in a new window
  $("a[href$=.pdf]").attr("target","_blank");

	// Navigation Menu Begins
  $("#nav li").find("span").addClass("drop"); // Traverse the list items, if it finds a span, add the class 'drop' to it
  $(".drop li").find("span").addClass("slide"); // Traverse the drop items, if it finds a span, add the class 'slide' to it
	
	$("#nav li").hover( 
		function() { // When you hover over a list item...
			$(this).find(".drop").show(); // find out if the class is 'drop'. If so, show the drop down menu.
			$(this).find(".slide").hide(); // If there is a 'slide' class present, hide the slide out menu.
	$(".drop li").hover(
		function() { // When you hover over a drop down menu list item...
			$(this).find(".slide").show(); // if the item has the 'slide' class, show the slide out menu.
		}, function() { // When you move your mouse out of the list item...
			$(this).find(".slide").hide(); // if the slide out menu was shown, hide it.
		});
		}, function() {
			$(this).find(".drop").hide(); // When you move your mouse out of a drop AND slide out menu, hide the drop down menu.
		});
	// Navigation Menu Ends

});
