sfHover = function() {
    var contentMenu = $("contentMenu"); 
    var subs = $$(".subMenu");        
    var topEntries = $$(".topMenuEntry");

    contentMenu.addEvent("mouseleave", function() {
        subs.each(function(subMenu) {
            subMenu.style.height="0px";            
        });
    }); 

    topEntries.each(function(topEntry) {
        var currentid = topEntry.attributes['name'].value;
        topEntry.addEvent("mouseenter", function() {
            subs.each(function(subMenu) {
                if (subMenu.attributes['name'].value == currentid) {
                    subMenu.style.height="20px";
                }
                else {
                    subMenu.style.height="0px";            
                }
            });
        }); 
    });
}


if (window.attachEvent)
{
    window.attachEvent("onload", sfHover)
}
else if (window.addEventListener)
{
    window.addEventListener("load", sfHover, false);
}