var cor;

function selecionaGrid( elemento )
{
cor=elemento.style.backgroundColor;
elemento.style.backgroundColor = "#8F8F8F";
}

// Função para mudar a linha ao de-selecionar
function deSelecionaGrid( elemento)
{
elemento.style.backgroundColor = cor; 
}

function getRefToDiv(divID) {
     if( document.layers ) { //Netscape layers
         return document.layers[divID]; }
     if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
         return document.getElementById(divID); }
     if( document.all ) { //Proprietary DOM; IE4
         return document.all[divID]; }
     if( document[divID] ) { //Netscape alternative
         return document[divID]; }
     return false;
}

function alterDisplay( menu ) {
	var oUl = getRefToDiv( menu ) ;

	if ( oUl.style.display == 'none' )
		oUl.style.display = 'block' ;
	else
		oUl.style.display = 'none' ;
}

function escreveFlashGeral(CaminhoSWF, Largura, Altura)
{
	var flash="";
	flash += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+ Largura +'" height="'+ Altura +'">'
	flash += '<param name="movie" value="'+ CaminhoSWF +'" />'
	flash += '<param name="quality" value="high" />'
	flash += '<param name="wmode" value="transparent">'
	flash += '<embed src="'+ CaminhoSWF +'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+ Largura +'" height="'+ Altura +'"  wmode="transparent"></embed>'
	flash += '</object>'
	document.write(flash)
}
