// JavaScript Document
var isOpera, isIE, isNav, isFox, isOther = false;
if (navigator.userAgent.indexOf("Opera")!=-1) {
 isOpera = true;
} else if (navigator.userAgent.indexOf("Firefox")!=-1) {
 isFox = true;
} else if (navigator.appName == "Microsoft Internet Explorer") {
 isIE = true;
} else if (navigator.appName == "Netscape") {
 isNav = true;
} else {
 isOther = true;
}

var eventTrigger;
function showSubs(id)
{
	return;
}
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

var mouseX = 0, mouseY = 0;

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    mouseX = event.clientX + document.body.scrollLeft;
    mouseY = event.clientY + document.body.scrollTop;
  } else {  // grab the x-y pos.s if browser is NS
    mouseX = e.pageX;
    mouseY = e.pageY;
  }  
  // catch possible negative values in NS4
  if (mouseX < 0){mouseX = 0;}
  if (mouseY < 0){mouseY = 0;}  
  return true;
}
var lastid = -1;
function dispSub (id)
{
	hideSub();
	lastid = id;
	var subdiv = document.getElementById ("submenu" + id);
	subdiv.style.display = "block";
	//alert(lastid);
	if (!IE) subdiv.style.top = "225px";
	subdiv.style.left = (mouseX-90) + "px"; //eval ('"' + (mouseX-20) + '"'); //eval (x + "px");
}
function hideSub ()
{
	if (lastid > -1)
	{
		var subdiv = document.getElementById ("submenu" + lastid);
		subdiv.style.display = "none";
	}
	return true;
}

