// menu.js for ie5up
var obja, objb;
var menuon;
var x0, x1, y0, y1;
var oT, oL, obj;

function mover(n) {
    if (menuon == n)
	    return true;
	if (menuon) {
	    objb.style.visibility = "hidden";
	    obja.style.visibility = "visible";
    }
	menuon = n;
	obja = eval("document.getElementById('mbar"+n+"a')");
	objb = eval("document.getElementById('mbar"+n+"b')");
	for (oT = oL = 0, obj = obja; obj.tagName != "BODY"; obj = obj.offsetParent) {
		oT += obj.offsetTop;
		oL += obj.offsetLeft;
	}
	objb.style.top = oT;
	objb.style.left = oL;
	x0 = objb.offsetLeft + 5;
	y0 = objb.offsetTop + 5;
	x1 = x0 + objb.offsetWidth - 10;
	y1 = y0 + objb.offsetHeight - 10;
	obja.style.visibility = "hidden";
	objb.style.visibility = "visible";
	objb.onmouseout = mout;
	obj.onmousemove = mout;
	zoef(n, obja.offsetHeight, objb.offsetHeight);
    return true;
}
function mout(e) {
    if (!menuon) 
		return false;
	e = window.event;
	x = e.x + obj.scrollLeft;
	y = e.y + obj.scrollTop;
	if (x0 <= x && x <= x1 && y0 <= y && y <= y1)
	    return true;
	objb.style.visibility = "hidden";
	obja.style.visibility = "visible";
	menuon = 0;
	return true;
}
function moff() {
    if (!menuon) 
	    return true;
	objb.style.visibility = "hidden";
	obja.style.visibility = "visible";
	menuon = 0;
	return true;
}
function zoef(n, ya, yb) {
	if (menuon != n) return;
    ya += 10;
	if (ya > yb) ya = yb;
	objb.style.clip = "rect(auto,auto,"+ya+",auto)"; 
	y1 = y0 + ya - 10;
	if (ya < yb)
	    setTimeout("zoef("+n+","+ya+","+yb+")",1);
}

