// JavaScript Document

sfHover = function() {
	var sfEls = document.getElementById("midnav").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);

tsfHover = function() {
	var tsfEls = document.getElementById("trainnav").getElementsByTagName("LI");
	for (var i=0; i<tsfEls.length; i++) {
		tsfEls[i].onmouseover=function() {
			this.className+=" tsfhover";
		}
		tsfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tsfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", tsfHover);

vsfHover = function() {
	var vsfEls = document.getElementById("svcsnav").getElementsByTagName("LI");
	for (var i=0; i<vsfEls.length; i++) {
		vsfEls[i].onmouseover=function() {
			this.className+=" vsfhover";
		}
		vsfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" vsfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", vsfHover);


asfHover = function() {
	var asfEls = document.getElementById("advnav").getElementsByTagName("LI");
	for (var i=0; i<asfEls.length; i++) {
		asfEls[i].onmouseover=function() {
			this.className+=" asfhover";
		}
		asfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" asfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", asfHover);
