$(function() {
    $("li").each(function() {
        var subMenu = this.getElementsByTagName("ul");

        this.onmouseover = function() {
            this.className += " sfhover";
        }
        this.onmouseout = function() {
            this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    });
});
