// INICIO DO BOX
function box_vantagens(numero){
	if (document.getElementById(numero).className=='boxclose')
		{ document.getElementById(numero).className='boxopen'}
	else if (document.getElementById(numero).className=='boxopen')
		{ document.getElementById(numero).className='boxclose' }
	}
function box(numero){
	if (document.getElementById(numero).className=='boxclose_faq')
		{ document.getElementById(numero).className='boxopen_faq'}
	else if (document.getElementById(numero).className=='boxopen_faq')
		{ document.getElementById(numero).className='boxclose_faq' }
	}
function publicidade() {
	if (window.screen.width <= 1000){
		document.getElementById('publicidade2').style.display='none';
		}
	}
function voltar(){
		if (!(document.getElementById('index'))){
			document.getElementById('voltarinicio').style.display='block';
		}
	}
// FINAL DO BOX

// abre janela
function abre(url,janela,larg,alt,scroll,pos1,pos2){
 window.open(url,janela,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable=no,copyhistory=no,top="+pos1+",left="+pos2+",screenY="+pos1+",screenX="+pos2+",width="+larg+",height="+alt);
}

// abre janela maximizada
function abreM(url,janela,scroll){
W = eval(screen.width)-10;
H = eval(screen.height)-54;

window.open(url,janela,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=no,copyhistory=no,width="+W+",height="+H+",top=0,left=0");
}

// function botaodireito() {if (event.button==2) {alert(' O botão direito está desabilitado! ')}} document.onmousedown=botaodireito

// abre pop up
function popup(pagina,janela,largura,altura){
var desktopname = window.open(pagina,janela,'width='+largura+',height='+altura+',toolbar=no,copyhistory=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,top=0,left=0');
desktopname.focus();
}

// INICIO DO POP UP CENTRALIZADO //
window.name = "new"
b_versao = parseInt(navigator.appVersion);
var win = null;

function janelastatus(mypage,myname,w,h,scroll)
{
if (b_versao >= 4)
        {
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        }
else
        {
        LeftPosition = 100
        TopPosition = 100
        }
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=0,status=0'
win = window.open(mypage,myname,settings)
win.focus()
}

window.name = "new"
b_versao = parseInt(navigator.appVersion);
var win = null;

function janela(mypage,myname,w,h,scroll)
{
if (b_versao >= 4)
        {
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        }
else
        {
        LeftPosition = 100
TopPosition = 100
        }
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=0,status=1'
win = window.open(mypage,myname,settings)
win.focus()
}

window.name = "new"
b_versao = parseInt(navigator.appVersion);
var win = null;
// FINAL DO POP UP CENTRALIZADO //




// INICIO DA ROTINA DE AUMENTAR TEXTO //
var intContaTam = 2;
var vetFonte = new Array ();
vetFonte [0] = "10px";
vetFonte [1] = "11px";
vetFonte [2] = "12px";
vetFonte [3] = "13px";
vetFonte [4] = "14px";
vetFonte [5] = "16px";
  vetFonte [6] = "18px";
  vetFonte [7] = "20px";
  vetFonte [8] = "22px";
  vetFonte [9] = "24px";

function tamTexto (strAD) {

if (strAD=="A") {
	intContaTam++;
	if (intContaTam>= vetFonte.length)
		intContaTam = vetFonte.length-1;

    document.all.spanTit.style.fontSize = vetFonte[intContaTam];
	document.all.spanNot.style.fontSize = vetFonte[intContaTam];
} else {
	intContaTam--;
	if (intContaTam<0)
		intContaTam=0;

    document.all.spanTit.style.fontSize = vetFonte[intContaTam];
	document.all.spanNot.style.fontSize = vetFonte[intContaTam];
}
}
// FINAL DA ROTINA DE AUMENTAR TEXTO //

