﻿/* Apply sfhover class addition to all li's in ul elements that are set with the nav-XXXX class name*/
 
sfhover = function() {

	var ulobjs = document.getElementsByTagName("UL");

	for (var s=0;s<ulobjs.length; s++) {
	    if (ulobjs[s].className.indexOf("nav-")==0)
	    {
	        objs = ulobjs[s].getElementsByTagName("LI");
	        for (var i=0; i<objs.length; i++) {
		        objs[i].onmouseover=function() {
			        this.className+=" sfhover";
			         
		        }
		        objs[i].onmouseout=function() {
			        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		        }
	        }
	    }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfhover);