$(document).ready(function() {
	$(".top-level").mouseover(function() {
		var strTemp = $("img:first-child",this).attr("src");
		$("img:first-child",this).attr("src",strTemp.replace("-off","-on"));
		$("ul:first",this).show();
		delete strTemp;
	}).mouseout(function() {
		var strTemp = $("img:first-child",this).attr("src");
		$("img:first-child",this).attr("src",strTemp.replace("-on","-off"));
		$("ul:first",this).hide();
		delete strTemp;
	});

	$(".search-field").focus(function() {
		if ($(this).val() == "Search") {
			$(this).val("");
		}
	}).blur(function() {
		if ($(this).val() == "") {
			$(this).val("Search");
		}
	});
	$("#Body div[style*='background-color: Yellow;']").hide();
});
sfHover = function() {
	var sfEls = document.getElementById("main-navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
