// JavaScript Document
//-->
function abrirDiv(obj)
{
	var el = document.getElementById(obj); 
	if ( el.style.display != 'none' ) { el.style.display = 'none'; } 
	else { el.style.display = ''; } 
}

//
function ftrocaLingua(pagina,lingua)
{
	var url;
	url = "http://www.volans.com.br/" + lingua + "/" + pagina;

	if(lingua != "")
	{
		location.href=url;
	}

}

// função para alterar o tamanho da fonte do site
function fmudaFonte(obj) 
{
	switch (obj) 
	{
		case '+':
			if (tam < max) { tam += 1; }
			break;
		case '-':
			if (tam > min) { tam -= 1; }
			break;
	}
	document.getElementById('textoVariavel').style.fontSize = tam + 'px';
}

function fAcessoRapido(obj)
{
	var tmp;
	tmp = obj.value;
	tmp = tmp.split("%")
	if(tmp[2] == '_self')
	{
		if(tmp[1] != ''){ eval(tmp[1]) }
		else{ document.location = tmp[0]; }
	}
	else if(tmp[2] == '_blank')
	{
		window.open(tmp[0],'nova');
	}
}
// -->