var mT = 0;
var mF = "";


// Defines Y-coordinate for menu
var m_x, m_y;


// Simple browser detection (seperate into:  NS4.x, IE4.x, DOCOM[5+] browsers)
var ns = (navigator.appName == 'Netscape')
var ns4 = (ns && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5);
var ie = (navigator.appName == 'Microsoft Internet Explorer');
var ie4 = (ie && parseInt(navigator.appVersion) >= 4);
var docom = (document.getElementById);
var win2k = (navigator.userAgent.indexOf('Windows NT 5.0') != -1);
var ie4mac = (ie && !docom && navigator.userAgent.indexOf('Macintosh') != -1);
var dhtmlBrowser = (ie4 || ns4 || docom);
var SHOW, HIDE;

if (ie4 || docom) {
  SHOW = "visible";
  HIDE = "hidden";
} else if (ns4) {
  SHOW = "show";
  HIDE = "hide";
}


function ShowMenu()
{
  clearTimeout(mT);
  vizElement("L1",SHOW);
  menuTrans("L1", 90);
}


function HideMenu()
{
  vizElement("L1",HIDE);
}

function vizElement(eleId, vizProp)
{
  if (docom) document.getElementById(eleId).style.visibility = vizProp;
  else if (ie4) eval('document.all.' + eleId + '.style.visibility = "' + vizProp + '"');
  else if (ns4) eval('document.' + eleId + '.visibility = "' + vizProp + '"');
}

function menuTrans(mId, grade) {
  if (ie4 && !ie4mac) {
    eval('document.all.' + mId + '.style.filter="alpha(opacity=' + grade + ')"');
  }
}


function menuTimeOff() {
  mF = "HideMenu()";
  mT = setTimeout(mF, 100);
}


//window.offscreenBuffering = true;
if (dhtmlBrowser) {
  if (ns4) document.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP);
}
