// Função para ativar o submenu
function mostrarMenu(obj)
{
	   document.getElementById(obj).style.display = "";
	
}
function esconderMenu(obj)
{
	
	{   document.getElementById(obj).style.display = "none";
	}
	
}
// Função para acender linha do SUBmenu 
function acenderSub( linha )
 {
 if ( navigator.appName == "Netscape" ) linha.bgColor = "#CDE760";
 else linha.style.backgroundColor = "#CDE760";
 }

 function apagarSub( linha )
 {
 if ( navigator.appName == "Netscape" ) linha.bgColor = "#E6F2AA";
 else linha.style.backgroundColor = "#E6F2AA";
 }
 
// Função para acender linha do menu 
function acender( linha )
 {
 if ( navigator.appName == "Netscape" ) linha.bgColor = "#CDE760";
 else linha.style.backgroundColor = "#CDE760";
 }

 function apagar( linha )
 {
 if ( navigator.appName == "Netscape" ) linha.bgColor = "#ffffff";
 else linha.style.backgroundColor = "#ffffff";
 }

// função para liberar o clique do arquivo em flash

var __div_ieupdate_id = 0;

function Flash () {
   this._swf = '';
   this._id = '';
   this._width = 0;
   this._height = 0;
   this._params = new Array();

   document.write('<div id="__div_ieupdate_id' + __div_ieupdate_id + '"/>');
}

Flash.prototype.display = function() {
   var theObject = document.getElementById("__div_ieupdate_id" + __div_ieupdate_id++);
   theObject.innerHTML = this.getHTML();
}

Flash.prototype.setSWF = function (_id, _swf, _width, _height) {
   this._id        = _id;
   this._swf         = _swf;
   this._width     = _width;
   this._height     = _height;
}

Flash.prototype.setParam = function (paramName, paramValue) {
   this._params[this._params.length] = paramName+'|||'+paramValue; }

Flash.prototype.getHTML = function() {
   var _txt     = '';
   var params = '';
   _txt += '<object';
   _txt += ' id="' + this._id + '"';
   _txt += ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
   _txt += ' codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=6,0,0,0"';
   _txt += ' width="' + this._width + '" height="' + this._height + '">\n';
   _txt += '<param name="movie" value="' + this._swf + '" />\n'
   for ( i=0;i<this._params.length;i++ ) {
       _param = this._params[i].split ('|||');
       _txt += '<param name="'+_param[0]+'" value="'+_param[1]+'" />\n';
       params += _param[0]+'="'+_param[1]+'" ';
   }

   _txt += '<embed width="'+this._width+'" height="'+this._height+'" src="'+this._swf+'" '+params+' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>\n';
   _txt += '</object></div>\n';
   return _txt;
}

function MM_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

