function sfHover() {
    //alert("test");
    var sfEls = document.getElementById("BvtechMenu").getElementsByTagName("TD");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=(this.className.length>0? " ": "") + "sfhover";

			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
			}

		}
		
		// add current hover efect in main links
		var sfEls = document.getElementById("BvtechMenu").getElementsByTagName("TR")[0].childNodes;
		for (var i=0; i<sfEls.length; i++) {
			if (sfEls[i].tagName == "TD")
			{
				sfEls[i].onmouseover=function() {
					this.className+=(this.className.length>0? " ": "") + "sfhover";
					this.firstChild.id = "current";
	
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
					this.firstChild.id = "";
				}
				
			}
		}
	}

//document.getElementById("main-nav").setAttribute("onload", 'sfHover');
	//window.onload = sfHover;

	if (window.attachEvent) {
	    window.attachEvent("onload", sfHover);
	}
	else {
	    window.addEventListener("load", sfHover, false);
	}
