/*
 *  Inicia as principais variaveis
 */

var mAnterior='';
var allTimer=0;

var lastEvWindow=0;

var NS=0;        // Netscape
var IE=0;        // IE
var FF=0;        // FF


/*
 *  Browser
 */

if (document.layers)         			NS=1;	// Netscape 4.x
if (document.all)            			IE=1;	// Explorer 4.x ou >
if (document.getElementById) 			NS6=1;  // Netscape 6.x
if (navigator.userAgent.indexOf("Firefox")!=-1) FF=1;   // Firefox

// if (NS) alert ('Netscape 4.x!');
// if (IE) alert ('Explorer!');
// if (!IE && NS6) alert ('Netscape 6.x!');

EscondeLayerTempo ();

/*
 *  Controles dos Layers
 */

function MostraLayer (nome) {
 
// alert (mAnt); alert (mAnterior);
// document.getElementById(nome).style.visibility = "visible";
  
  
  // Limpa o controle de tempo
  clearTimeout (allTimer);

  // Atualiza o controle de layer anterior
  mAnterior=nome;

  // Mostra o layer
  if (IE || NS6) document.getElementById(nome).style.visibility = "visible";
  if (NS) document.layers[nome].visibility = "show";

}


function EscondeLayerTempo () {
  allTimer=setTimeout("EscondeLayer()",800);
}

function EscondeLayer () {

  // Limpa o controle de tempo
  clearTimeout(allTimer);

  if (mAnterior) {
    if (IE || NS6) document.getElementById(mAnterior).style.visibility = "hidden";
    if (NS) document.layers[mAnterior].visibility = "hidden";
  }
}


/*
 *  Array de controle do menu
 */

if (IE || NS6) MnuX = ((screen.availWidth - 750) / 2) + 173;
if (NS) MnuX = ((screen.availWidth - 750) / 2) + 173;
if (FF) MnuX = ((screen.availWidth - 750) / 2) + 180;

arrayMenu = new Array(

1,"menu_princ",MnuX - 45,87,
2,"Ensino Básico", "/solucoes/ens_basico.php",
2,"Instiuições de Ensino Superior", "/solucoes/ens_superior.php",
2,"Comunidade Acadêmica", "/solucoes/comun_acad.php",
2,"Inteligência Acadêmica", "/solucoes/inteli_acad.php",
2,"Gestão de Bibliotecas", "/solucoes/gestao_biblio.php",
2,"Gestão pela Internet","/solucoes/gestao_inter.php");


/*
 *  Informação na Status Line
 */

document.onmousemove = MoveHandler;

function MoveHandler (e) {
  self.status = 'Softworks';
}
