/** SCRIPTS GERAIS ************************/

////////// QUANDO CARREGAR O SITE /////////
window.onload = function (e) {
	
}

//////////// FLASH - SWF //////////////////
function RodarFlash(path,variaveis,_width,_height)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+_width+'" height="'+_height+'">')
		document.write('<param name="movie" value="'+path+'?'+variaveis+'">')
		document.write('<param name="quality" value="high">')
		document.write('<param name="wmode" value="transparent">')
		document.write('<embed src="'+path+'?'+variaveis+'" width="'+_width+'" height="'+_height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
	document.write('</object>')
}

///////// FECHA AS PopUPs divs ////////////
function mostraOculta_DIV (obj) {
	var obj = document.getElementById(obj);
	if(obj.style.display != 'block') {
		obj.style.display = 'block';
	}
	else {
		obj.style.display = 'none';
	}
}
var ant;
function abrefecha(id) //Função que mostra/esconde as tabelas
{
var tabela = document.getElementById("box" + id);
var lnk = document.getElementById("lnk" + id);

	if(ant == id){
	if (tabela.style.display == "block")
	{
	lnk.className="lnkSeta";
	tabela.style.display = "none";
	}
		else
		{
		lnk.className="lnkSetaon";
		tabela.style.display = "block";
		}
		}
	else{
	if(ant != undefined){
	document.getElementById("box" + ant).style.display = "none";
	document.getElementById("lnk" + ant).className="lnkSeta";
	}
	lnk.className="lnkSetaon";
	tabela.style.display = "block";
	ant = id;
	}
}