$(function() {
	if (page == "moving day" || page == "welcome home") $("div#header ul li[class='hide']").attr("id", (page == "moving day" ? "welcome home" : "moving day"));
	
	$("div#header ul li").each(function(i) {
		if ($(this).hasClass("hide") && $(this).attr("id") == "") return false;
		
		var file_name = $(this).attr("id").replace(/^\s+|\s+$/g,"").replace(" ", "_");
		header_img = $("<img>").attr({src:"images/Nav_" + file_name + ".gif"}).attr("alt", $(this).attr("id"));
				
		header_img.hover(
			function() {
				if ($(this).hasClass("activeNav") == true) return false;
				$(this).css({cursor:"pointer"}).attr("src", "images/Nav_" + file_name + "_over.gif");
			},
			function() {
				if ($(this).hasClass("activeNav") == true) return false;
				$(this).css({cursor:"default"}).attr("src", "images/Nav_" + file_name + ".gif");
			}
		);
		
		header_img.click(
			function() {
				location.href = "?p=" + file_name;
			}
		);
		
		$(this).html(header_img);
	});
	
	$("div#header ul li[id='resources'] img").css({marginTop:"4px"});
	$("div#header ul li[id='welcome home'] img").css({marginTop:"0px"});
	
	if ($.browser.name == "msie" || $.browser.name == "ie") $("div#header ul li:first").css({marginTop:"0"});
	
	//Let's put the background image
	$("<img>").attr("src", "images/footer_slogan.jpg").css({position:"absolute", left:"0"}).appendTo("#footer");

});