	function ExibeSubMenu( id )
	{
		  document.getElementById( id ).style.display = "";
	}

	function OcultaSubMenu( id )
	{	document.getElementById( id ).style.display = "none"; }


	function ComRealce( obj, cor )
	{
		obj.style.backgroundColor = cor;
	}

	function SemRealce( obj, cor )
	{
		obj.style.backgroundColor = cor;
	}

	function EnviaComent( ID_ )
	{
		FormEditar( "FId" ).value = ID_;
		FormEditar( "FTxtEditado" ).value = FormComentarios( "FComent" + ID_ ).value;
		FormEditar( "FPublicar" ).value   = FormComentarios( "FComentPublicar" + ID_ ).checked;
		FormEditar.submit();
	}





var flagFoto = false;

function ExibeFoto( f, l )
{
	document.all( "ImgFoto" ).src = "imagens/carregando.gif";
	document.all( "ImgFoto" ).src = f;
	document.all( "DivFotoLegenda" ).innerHTML = l;
	document.all( "DivFoto" ).style.display = "";
	flagFoto = true;
}


function OcultaFoto( f )
{
	document.all( "DivFoto" ).style.display = "none";
	document.all( "DivBkg" ).style.display = "none";
}


function RedimensionaFoto()
{

	if( flagFoto )
	{
	document.all( "DivBkg" ).style.display = "";
	}
	flagFoto = false;
}



var intervalo = window.setInterval( "AjustaPosScroll()", 500);

function AjustaPosScroll()
{
	var top = (document.documentElement && document.documentElement.scrollTop) ?
  document.documentElement.scrollTop : document.body.scrollTop;

	BodyWidth = document.body.scrollWidth;

	// Dimensiona e posiciona DIV de fundo:
	document.all( "DivBkg" ).style.left = 0;
	document.all( "DivBkg" ).style.top = 0;
	document.all( "DivBkg" ).style.width = BodyWidth;
	document.all( "DivBkg" ).style.height = document.body.scrollHeight;

	BodyScroll = document.body.scrollTop;
	BodyScroll = top;

	FotoAlt = document.all( "ImgFoto" ).height;
	BodyAlt = document.body.clientHeight;

	PosMid = BodyScroll + ( ( BodyAlt - ( FotoAlt + 35 ) ) / 2 );

	document.all( "DivFoto" ).style.top = PosMid;

	FotoLrg   = document.all( "ImgFoto" ).width;
	PosCnt = ( BodyWidth - ( FotoLrg + 30 ) ) / 2;
	document.all( "DivFoto" ).style.left = PosCnt;


}

