function show_props(obj, obj_name) {
    var result = "";
    for (var i in obj)
        result += obj_name + "." + i + " = " + obj[i] + "\n";
    return result;
}

function menufyList( list )
{
    for (var i=0; i<list.childNodes.length; i++) {
        var node = list.childNodes[i];
        if (node.nodeName=="LI") {
            node.onmouseover=function() {
                this.className+="over";
            }
            node.onmouseout=function() {
                this.className=this.className.replace("over", "");
            }
            for( var j = 0; j < node.childNodes.length; j++ ){
                var childnode = node.childNodes[j];
                //if( childnode.nodeName == "UL" )
                    menufyList( childnode );
            }
        }
    }
}


startList = function() {
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("menu");
        menufyList( navRoot );
    }
}
//window.onload=startList;


$(document).ready(function() {
    $("ul.menu li").hover(
            function() {
                $(this).addClass('over');
            },
            function() {
                $(this).removeClass('over');
            }
    );
});

