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 = "#000066";}
				navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";this.style.backgroundColor = "#000066";}
			}
		}
	}

}


function formCheck(formobj){
	//1) Enter name of mandatory fields
	var fieldRequired = Array("depto","email","dominio","descricao","email","Nome","nome","E_mail","Assunto","Mensagem","login","senha","palavra-chave", "endereco", "cidade", "estado", "tel", "LINK_CAT", "LINK_SUB","LINK_NAME" ,"LINK_URL", "LINK_DESC", "mensagem", "tipo_aco", "tratamento");
	//2) Enter field description to appear in the dialog box
	var fieldDescription = Array("depto","email","dominio","descricao","email","Nome","nome","E_mail","Assunto","Mensagem","login","senha","palavra-chave","endereco", "cidade", "estado", "tel","LINK_CAT", "LINK_SUB","LINK_NAME" ,"LINK_URL", "LINK_DESC", "mensagem", "tipo_aco", "tratamento");
	//3) Enter dialog message
	var alertMsg = "Para melhor a MONTAGNA atendê-lo, por favor, preencha o formulário corretamente:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}


function topo1(){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='711' height='83'>");
   document.write("<param name='movie' value='cabec_office.swf'>");
   document.write("<param name='quality' value='high'>");
   document.write("<embed src='cabec_office.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='711' height='83'></embed>");
   document.write("</object>");
}


function topo2(){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='933' height='83'>");
   document.write("<param name='movie' value='cabec_office2.swf'>");
   document.write("<param name='quality' value='high'>");
   document.write("<embed src='cabec_office2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='933' height='83'></embed>");
   document.write("</object>");
}