// JavaScript Document
function hoverForIe() {
        if (document.all && document.getElementById) {
                navRoot = document.getElementById("navigacio");
                for (i=0; i<navRoot.childNodes.length; i++) {
                        node = navRoot.childNodes[i];
                        if (node.nodeName=="LI") {
                                node.onmouseover=function() {
                                        this.className+=" over";
                          }
                          node.onmouseout=function() {
                                  this.className=this.className.replace(" over", "");
                                }
                  }
                }
        }
}

function init() {
        hoverForIe();
}

function valto(id) {
        var item = document.getElementById(id);

        if(item.className == 'cssmenu') {
                item.className = 'hiddensubmenu';
        } else {
                item.className = 'cssmenu';
        }
}

