// JavaScript Document

sfHoverHorizontal = function() {
	var stlinks = document.getElementById("stlinks");
	if (stlinks != null) {
		var sfEls = stlinks.getElementsByTagName("LI");
		if (sfEls != null) {
			for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					if (this.className.indexOf("sp2") >= 0)
						this.className+=" sfhover2";
					else
						this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
					this.className=this.className.replace(new RegExp(" sfhover2\\b"), "");
				}
			}
		}
	}
}

sfHoverVertical = function() {
	var stlinks = document.getElementById("nav");
	if (stlinks != null) {
		var sfEls = stlinks.getElementsByTagName("LI");
		if (sfEls!= null){
			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", sfHoverHorizontal);
if (window.attachEvent) window.attachEvent("onload", sfHoverVertical);