over = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("li");
    for (var i=0 ; i < sfEls.length ; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" over";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" over\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", over);

function IEHoverPseudo() {
    var navItems = document.getElementById("primary-nav").getElementsByTagName("li");
    for (var i=0; i<navItems.length; i++) {
        if(navItems[i].className == "menuparent") {
            navItems[i].onmouseover=function() {
                this.className += " over";
            }
            navItems[i].onmouseout=function() {
                this.className = "menuparent";
            }
        }
    }
}

function inCarrega(endereco, item){
  arrStr = endereco.split("=");
  if(arrStr[0]=='paginas/evento.php?id'){ //Verifica se é algum redirecionamento de evento
    window.location.href='eventos/view/'+arrStr[1];
  }
}
window.onload = IEHoverPseudo;
