sfHover = function() {
	var temp = document.getElementById("nav");
	var sfEls = temp.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		var temp1 = sfEls[i].getElementsByTagName("UL");
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
flagHover = function() {
	var temp2 = document.getElementById("flagnav");
	if(temp2){
		var sf2Els = temp2.getElementsByTagName("LI");
		for (var i=0; i<sf2Els.length; i++) {
			sf2Els[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sf2Els[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}

if (window.attachEvent){ 
	window.attachEvent("onload", sfHover);
	window.attachEvent("onload", flagHover);
}
