function MostrarData() { 
  
hoje = new Date();
 dia = hoje.getDate();
 dias = hoje.getDay();
 if (dia < 10)
 dia = "0" + dia
 mes = hoje.getMonth();
 ano = hoje.getFullYear();
function CriaArray (n) {
 this.length = n }
 NomeDia = new CriaArray(7)
 NomeDia[0] = "Domingo"
 NomeDia[1] = "Segunda-feira"
 NomeDia[2] = "Terça-feira"
 NomeDia[3] = "Quarta-feira"
 NomeDia[4] = "Quinta-feira"
 NomeDia[5] = "Sexta-feira"
 NomeDia[6] = "Sábado"
 NomeMes = new CriaArray(12)
 NomeMes[0] = "janeiro"
 NomeMes[1] = "fevereiro"
 NomeMes[2] = "março"
 NomeMes[3] = "abril"
 NomeMes[4] = "maio"
 NomeMes[5] = "junho"
 NomeMes[6] = "julho"
 NomeMes[7] = "agosto"
NomeMes[8] = "setembro"
 NomeMes[9] = "outubro"
 NomeMes[10] = "novembro"
 NomeMes[11] = "dezembro"
document.write ("<span class='data'>"+ 'São Paulo' + ", " + dia + " de "+ NomeMes[mes] + " de "+ ano +" </span>")}


//------------------Function SubMENU ------------------------------------------------------------------------------

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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", "");
			  		}
			   }
		  }
		  
		  navRoot = document.getElementById("nav2");
		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", "");
			  		}
			   }
		  }
		  
		  navRoot = document.getElementById("nav3");
		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", "");
			  		}
			   }
		  }
		  
		    navRoot = document.getElementById("nav4");
		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", "");
			  		}
			   }
		  }
		  
		    navRoot = document.getElementById("nav5");
		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", "");
			  		}
			   }
		  }
		  
		    navRoot = document.getElementById("nav6");
		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", "");
			  		}
			   }
		  }
	 
	 
	 		    navRoot = document.getElementById("nav7");
		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", "");
			  		}
			   }
		  }
	 }
	 
	 
}

window.onload=startList;

/* link div */

function showMenu(menu) {
	var divs 
	divs = document.all.tags('div')
	  for (i = 0; i < divs.length; i++) {

		if (divs[i].id.indexOf('underMenu') > -1) {
			if (divs[i].id == menu){
					if (divs[i].style.display == "none"){
						divs[i].style.display = "inline";
					} else if (divs[i].style.display == "inline") {
						divs[i].style.display = "none";
					}	
			} else {
				divs[i].style.display  = "none";	
			}
		}
	  }
}