$(document).ready(function() {
						   
//Add LI hover to menus
$("#nav li").hover(
	function(){
		$(this).addClass("hover").find("ul:first:hidden").show();
		$(this).find(".dwnArrow").hide();
	},
	function(){
		$(this).removeClass("hover").find("ul:first").hide();
		$(this).find(".dwnArrow").show();
	});

//Add a Last Item class to a few things
$("ul li:last-child").addClass("lastItem");
$("ul li:first-child").addClass("firstItem");
$("#nav ul li:last").addClass("superLast");
$(".superLast").parent().parent().addClass("lastParent");
$("#ctaShell .cta").addClass("lastItem");

//remove class from last nav item.
$("#nav>ul>li:last-child").hover(function() {
		$(this).css({'background' : 'none' });	 
		$(this).find("a").css({'background' : 'none', 'color' : '#fff', 'text-decoration' : 'underline' });
},
function() {
		$(this).find("a").css({'background' : 'none', 'color' : '#fff', 'text-decoration' : 'none' });	
});

//add the arrow to any nav items with children
$("#nav>ul>li").each(function(i) {
	var findSubNav = $(this).find("ul");
	if (findSubNav.length > 0 ) {$(this).append("<img src='img/btnArrow.gif' class='dwnArrow' />") };
});

//add a class to the subnav h3 to properly give margin
$(".footerCol h4:not(:first-child)").addClass("headingMargin");

});