// Ebis - Funções Javascript 
<!--

// *toggleDiv - Se flag 1 mostra div, flag 0 esconde div.
function toggleDiv(id,flagit) 
{
	if (flagit=="1"){
		if (document.layers) document.layers[''+id+''].visibility = "show"
		else if (document.all) document.all[''+id+''].style.visibility = "visible"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	}
	else if (flagit=="0")
	{
		if (document.layers) document.layers[''+id+''].visibility = "hide"
		else if (document.all) document.all[''+id+''].style.visibility = "hidden"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
	}
}


// *exibeFlash - Exibe o flash - hack para ie7 
function exibeFlash(src, larg, alt, wmode)
{
	var strHtml = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ larg +'" height="'+ alt +'">';
	strHtml += '<param name="movie" value="'+ src +'" />';
	strHtml += '<param name="quality" value="high" />';
	strHtml += '<param name="menu" value="false" />';
	strHtml += '<param name="wmode" value="'+wmode+'">';
	strHtml += '<embed src="'+ src +'" wmode="'+wmode+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ larg +'" height="'+ alt +'"></embed>';
	strHtml += '</object>';
		
	document.write(strHtml);
}

// *aparecer - Mostra objeto
function aparecer(obj)
{
	document.getElementById(obj).style.display = '';
	document.getElementById(obj).style.visibility = 'visible';
}

// *desaparecer - Esconde objeto
function desaparecer(obj)
{
	document.getElementById(obj).style.display = 'none';
	document.getElementById(obj).style.visibility = 'hidden';
}

// *trocarCaminho - Troca o caminho do objeto.
function trocarCaminho(id,caminho)
{
	document.getElementById(id).src = caminho;
}


//-->
