// JavaScript Document
	var buttons=Array('index','oobservatorio','objetivosdomilenio','noticias','estudosepesquisas','mapainterativo','indicadores','contato');
	fundoMain = "#ffffff";
	function aoEntrar(){
		objeto=document.getElementById("main");
		objeto.style.fontSize='medium';
	}
	function alterarTam(operacao){
	var fontes = Array("xx-small","x-small","small","medium","large","x-large","xx-large");
	var elemento = document.getElementById("main");
	var tamAtual = elemento.style.fontSize;
	var tamFonte = tamAtual;
	if (operacao=="aumentar"){
		for (i=0;i<=6;i++){
			if (tamFonte!='xx-large'){
				if (tamFonte==fontes[i]){
					elemento.style.fontSize=fontes[i+1];
					if (tamFonte==fontes[i+1]){
						break;		
					}
				}
			}
		}		
	}
	if (operacao=="diminuir"){
		for (i=0;i<=6;i++){
			if (tamFonte!='xx-small'){
				if (tamFonte==fontes[i]){
					elemento.style.fontSize=fontes[i-1];
					if (tamFonte==fontes[i-1]){
						break;		
					}
				}
			}
		}		
	}
	
	}
	function contraste(){
		var main = document.getElementById("main");
		var menu = document.getElementById("menu");
		var links = document.getElementById("links");
		var corMain = main.style.color;
		var corLinks = links.style.color;
		this.fundoMain = main.style.background;
		var fundoMenu = menu.style.background;
		var fundoLinks = links.style.background;
		if ((corMain=="#ffffff")||(corMain=="#fff")||(corMain=="write")||(corMain=="rgb(255, 255, 255)")){
			for (i=0;i<this.buttons.length;i++)
			{
				document.getElementById(this.buttons[i]).src="docsPage1/btns/"+this.buttons[i]+".gif";
			}
			this.fundoMain="#fff";
			main.style.color="#000";
			menu.style.color="#FFF";
			links.style.color="#FFF";
			main.style.background="#FFF";
			menu.style.background="#BBD9F9";
			links.style.background="#BBD9F9";
		}
		else{
			for (i=0;i<this.buttons.length;i++)
			{
				document.getElementById(this.buttons[i]).src="docsPage1/btns/contraste/"+this.buttons[i]+".gif";
			}
			this.fundoMain="#000";
			main.style.color="#FFF";
			menu.style.color="#FFF";
			links.style.color="#FFF";
			main.style.background="#000";
			menu.style.background="#000";
			links.style.background="#000";	
			
		}
	}	
	function trocarOnMouse(elemento)
	{
		caminho=elemento.src;
		if ((this.fundoMain=="#000000")||(this.fundoMain=="#000")||(this.fundoMain=="black")||(this.fundoMain=="rgb(0, 0, 0)"))
		{
			document.getElementById(elemento.id).src='docsPage1/btns/contraste/'+elemento.id+'_onMouse.gif';	
		}
		if ((this.fundoMain=="#ffffff")||(this.fundoMain=="#fff")||(this.fundoMain=="write")||(this.fundoMain=="rgb(255, 255, 255)"))
		{
			document.getElementById(elemento.id).src='docsPage1/btns/'+elemento.id+'_onMouse.gif';	
		}
	}
	function trocarOnMouseOut(elemento)
	{
		var idMenu = document.getElementById("menu");
		var Menu = idMenu.style.backgroundcolor;
		caminho=elemento.src;
		if ((this.fundoMain=="#000000")||(this.fundoMain=="#000")||(this.fundoMain=="black")||(this.fundoMain=="rgb(0, 0, 0)"))
		{
			for (i=0;i<this.buttons.length;i++)
			{
				document.getElementById(this.buttons[i]).src="docsPage1/btns/contraste/"+this.buttons[i]+".gif";
			}		
		}
		else
		{
			for (i=0;i<this.buttons.length;i++)
			{
				document.getElementById(this.buttons[i]).src="docsPage1/btns/"+this.buttons[i]+".gif";
			}	
		}
	}