//CONTROLE TAMANHO FONTE *********************************************************************
var tagAlvo = new Array('p'); 
var tamanhos = new Array( '9px','10px','11px','12px','14px','16px','18px' ); 
var tamanhoInicial = 3;   function mudaTamanho( idAlvo,acao ){   
	if (!document.getElementById) return   
	var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;   
	tamanho += acao;   
	if ( tamanho < 0 ) tamanho = 0;   
	if ( tamanho > 6 ) tamanho = 6;   
	tamanhoInicial = tamanho;   
	if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];
	selecionados.style.fontSize = tamanhos[ tamanho ];
	for ( i = 0; i < tagAlvo.length; i++ ){     
	tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );     
	for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];   
	} 
}

//MOSTRAR-ESCONDER DIV *********************************************************************
function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById )
    elem = document.getElementById( whichLayer );
  else if( document.all )
      elem = document.all[whichLayer];
  else if( document.layers )
    elem = document.layers[whichLayer];
  vis = elem.style;

  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}