function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display=='')
    vis.display = 'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function mudaFonte(termo) {

  var i=2;
  var min=8;
  var max=18;
  
  var texto = document.getElementById('texto').className;
  var tamanho = texto.replace("px","");
  var tamanho = texto.replace("fonte","");
  
  if(tamanho==""){tamanho=12}
  
	if(termo=="mais") { 
	  tamanho = parseInt(tamanho) + parseInt(i);
	  if(tamanho<=max) { document.getElementById('texto').className = "fonte" + tamanho+ "px";}
	}
	
	else if(termo=="menos") { 
	  tamanho = parseInt(tamanho) - parseInt(i);
	  if(tamanho>=min) { document.getElementById('texto').className = "fonte" + tamanho+ "px";}
	}
	
	else if(termo=="original") { 
	  document.getElementById('texto').className = "fonte12px";
	}

}