/*
Comportamentos Java Script
Cliente: CFN
Autor  : Henrique Paulino
Data   : 30/01/2007
*/

// menu drop down - IE
over = function() {
	var sfEls = document.getElementById("menu").
getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.
replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);

tam = 10;
//Muda Fonte- index
function mudaFonte(acao,alvo){
		target = document.body;
		alvo2 = document.getElementById(alvo);
		
		switch(acao){
			case 'mais':
			tam = tam + 1;
			target.style.fontSize = tam+ "px";
			alvo2.style.fontSize = tam+ "px";
			break;
			
			case 'menos':
			tam = tam - 1;
			target.style.fontSize = tam+ "px";
			alvo2.style.fontSize = tam+ "px";
			break;
			
			case 'normal':
			tam = 11;
			target.style.fontSize = tam+ "px";
			alvo2.style.fontSize = tam+ "px";
			break;
		}
}



