window.onload = function horizontal() {
 
   var navItems = document.getElementById("menu_dropdown").getElementsByTagName("li");
    
   for (var i=0; i< navItems.length; i++) {
      if(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 = "transparent";}
            navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";this.style.backgroundColor = "transparent";}
         }
      }
   }
 
}

function swapImage(id, imagem, largura, altura) {
	document.getElementById(id).src = imagem;
	document.getElementById(id).width = "145";
	document.getElementById(id).height = "58";
}

function verificaContato(){
		form = document.formContato;
		if(form.empresa.value.length==0){
			alert('Campo Empresa Obrigatório!');
			form.empresa.focus();
			return false;
		}
		if(form.nome.value.length==0){
			alert('Campo Nome Obrigatório!');
			form.nome.focus();
			return false;
		}
		if(form.telefone.value.length==0){
			alert('Campo Telefone Obrigatório!');
			form.telefone.focus();
			return false;
		}
		if(form.email.value.length==0){
			alert('Campo E-mail Obrigatório!');
			form.email.focus();
			return false;
		}
		if(form.chegou.value.length==0){
			alert('Campo "Como chegou até nós" Obrigatório!');
			form.chegou.focus();
			return false;
		}
		if(form.assunto.value.length==0){
			alert('Campo Assunto Obrigatório!');
			form.assunto.focus();
			return false;
		}
		if(form.mensagem.value.length==0){
			alert('Campo Mensagem Obrigatório!');
			form.telefone.focus();
			return false;
		}
		document.formContato.remetente.value = form.email.value;
}
function liberarBotao(id){
	if(document.getElementById("aceito").checked == true){
		document.getElementById(id).disabled = false;
	}else{
		document.getElementById(id).disabled = true;
	}
}
function validaPasso2(){
	if (document.getElementById("site").value == "") {	
	 alert("Nome do Site preenchido incorretamente.\n");
	 document.getElementById("site").focus();
	 return false;
  }
  return true;
}