function horizontal() {

   var navItems = document.getElementById("barra").getElementsByTagName("li");

   for (var i=0; i< navItems.length; i++) {
      if((navItems[i].className == "menuvertical") || (navItems[i].className == "submenu"))
      {
         if(navItems[i].getElementsByTagName('ul')[0] != null)
         {
            navItems[i].onmouseover=function() {this.getElementsByTagName('ul')[0].style.display="block";this.style.backgroundColor = "#f9f9f9";}
            navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";this.style.backgroundColor = "#FFFFFF";}
         }
      }
   }

}





<!--
window.defaultStatus='Curso de Ciências Econômicas-UFC/Sobral-Todos os Direitos Reservados';
//-->




<!--
function __doVerifyLoginFields() {
  if(!document.form1.user.value){
    alert('Você deve preencher o campo Usuário.');
  }
  if(!document.form1.pass.value){
    alert('Você deve preencher o campo Senha.');
  }
}
//-->





<!--
function abre(url,janela,larg,alt,scroll){
if (!scroll) { scroll='auto' }
window.open(url,janela,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width="+larg+",height="+alt);
}
//-->





function AbreAba(nome_div)
{
var total_divs = document.getElementsByTagName('div').length;
var div = "";
var td = "";

for (var i=1; i < total_divs+1; i++)
{
div = "div"+i;
td = "td"+i;
document.getElementById(div).style.display = "none";
document.getElementById(td).style.backgroundColor = "";
document.getElementById(div).className="div";

if (div == nome_div)
{
document.getElementById(nome_div).style.display = "block";
document.getElementById(td).style.backgroundColor = "#999999";
}
}
}


<!--
   function finaliza() {
      if(confirm('Deseja mesmo efetivar esse pedido ?'))
	     return true;
	  else return false;
   }//FECHA FUNCTION
//-->


<!--
   function enviar(opcao) {
      //OPÇÃO EXCLUIR SELECIONADA
	  if(opcao == 'E') {
	     document.forms[0].opc_excluir.value = 1;
		 document.forms[0].submit();
      }//FECHA IF

	  //OPÇÃO ATUALIZAR SELECIONADA
	  if(opcao == 'A') {
	     document.forms[0].opc_atualizar.value = 1;
		 document.forms[0].submit();
      }//FECHA IF

	  //OPÇÃO FINALIZAR SELECIONADA
	  if(opcao == 'F') {
	     document.forms[0].opc_finalizar.value = 1;
		 document.forms[0].action = "finalizar.php";
		 document.forms[0].submit();
      }//FECHA IF

   }//FECHA FUNCTION
//-->
