function over_effect(e,state){
	if (document.all)
	source4=event.srcElement
	else if (document.getElementById)
	source4=e.target
	if (source4.className=="menulines")
	source4.style.borderStyle=state
	else{
	while(source4.tagName!="TABLE"){
	source4=document.getElementById? source4.parentNode : source4.parentElement
	if (source4.className=="menulines")
	source4.style.borderStyle=state
	}
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



/*
function fraseFolha(){
	text = "Ninguém.deve.deixar.de.fazer.por.só.poder.fazer.muito.pouco!."
	word = text.split('.')
	i = -1;           
	j = 0;            
	start = 0;      
	scount = 0;  
	function checkIt() {
	with(document.all.anima) {
	if(innerText.charAt(innerText.length-1) == "_") {
	innerText = innerText.substring(0, innerText.length - 1);
	return true;
	}
	else {
	innerText = innerText + "_";
	return false;
		  }
	   }
	}
	function blinkfor(count, timing) {
	with(document.all.anima) {
	if(start < count) {
	if(checkIt()) {
	start++;
	}
	mistake = 'blinkfor('+count+','+timing+')';
	setTimeout('eval(mistake)', timing);
	}
	else {
	start = 0;
	i++;
	call_It();
		  }
	   }
	}
	function mispell(offset,correction) {
	with(document.all.anima) {
	if(scount < offset) {
	if(!checkIt()) {
	innerText = innerText.substring(0, innerText.length-2) + "_";
	scount++;
	}
	mistake = 'mispell(' + offset + ', "' + correction + '")';
	setTimeout("eval(mistake)", 150);
	}
	else {
	if(correction == '' && scount == offset ) {
	i = i - offset;
	scount++;
	}
	if(offset > 0) {
	if(checkIt()) {
	innerText += correction.charAt(correction.length - offset) + "_";
	offset--;
	}
	mistake = 'mispell(' + offset + ',"' + correction + '")';
	setTimeout("eval(mistake)", 150);
	}
	else {
	scount = 0;
	j++;
	innerText = innerText.substring(0, innerText.length - 1);
	call_It();
			 }
		  }
	   }
	}
	function spellit(string) {
	with(document.all.anima) {
	if(i <= string.length) {
	if(string.charAt(i) == '/') {
	NumErrs = string.charAt(i + 1);
	NewLets = string.substring(i + 2, i + NumErrs);
	mispell(NumErrs,NewLets);
	}
	else if(i <= string.length - 1) {
	i++;
	innerText = string.substring(0,i) + "_";
	mistake = 'spellit("' + string + '")';
	setTimeout("eval(mistake)", 150);
	}
	else {
	innerText = string.substring(0, i);
	j++;
	call_It();
			 }
		  }
	   }
	}
	function call_It() {
	with(document.all) {
	if(i == -1){
	blinkfor(4, 150);
	}
	else if(j <= word.length - 1) {
	spellit(anima.innerText + " " + word[j]);
	} 
	else {
	blinkfor(100,230);
		  }
	   }
	}
	if(document.all) {
	call_It();
} 
*/



function dataFolha() {
	var d = new Date()
	var h = d.getHours()
	if (h < 12)
	document.write("Bom-dia!<br>")
	else
	if (h < 18)
	document.write("Boa-tarde!<br>")
	else {
	document.write("Boa-noite!<br>")
	}
	document.write("<strong>Folha do Meio Ambiente</strong><br>")
	today = new Date()
	document.write(" ",today.getHours(),":",today.getMinutes(),"h")
	document.write(
	" do dia: ",today.getDate(),"/",today.getMonth()+1,"/",today.getYear());
}
