// Início do código de Aumentar/ Diminuir a letra
 
// Para usar coloque o comando: "javascript:mudaTamanho('tag_ou_id_alvo', -1);" para diminuir
// e o comando "javascript:mudaTamanho('tag_ou_id_alvo', +1);" para aumentar
 
var tagAlvo = new Array('p'); //pega todas as tags p//
 
// Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small...
var tamanhos = new Array( '9px','10px','11px','12px','13px','14px','15px', '16px', '17px', '18px');
var tamanhoInicial = 2;
 
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 > 9 ) tamanho = 9;
  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 ];
  }
}
// Fim do código de Aumentar/ Diminuir a letra


function fcPopUp(Pagina, W, H)
{
	window.open(Pagina,'page','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+ W +',height='+ H);
	//return false;
}

function posiciona01(s)
{
    try
    {
        if(document.layers)
        {
            return document.layers[s];
        }
        else if(document.all && !document.getElementById) 
        {
            return document.all[s];
        }
        else 
        {
            return document.getElementById(s);
        }
    }
    catch(err)
    {
    }
}
function posiciona02(s,x,y)
{
    try
    {
        _o = posiciona01(s);_o.style.clip = 'rect(0px '+x+'px '+y+'px 0px)';
    }
    catch(err)
    {
    }
}

function LiberaMapaSite()
{
    elem = document.getElementById("spnMapaTopo");
    elem.style.display = "block";
    return false;   
}


startList = function() 
{
    if (document.all&&document.getElementById) 
    {
        navRoot = document.getElementById("MenuPrincipal");
        for (i=0; i<navRoot.childNodes.length; i++) 
        {
            node = navRoot.childNodes[i];
            if (node.nodeName=="LI") 
            {
                node.onmouseover=function() 
                {
                    this.className+=" over";
                }
                node.onmouseout=function() 
                {
                    this.className=this.className.replace(" over", "");
                }
            }
        }
    }
}

function StartUp()
{
    startList;
    posiciona02("Banner",990,110);
    posiciona02("FullBanner",650,60);
}

window.onload=StartUp;



