var inmenu=false;
var lastmenu=0;
var count=0;

function Menu(current) {
	if (!document.getElementById) return;

	inmenu=true;
	oldmenu=lastmenu;
	lastmenu=current;

	m=document.getElementById("menu-" + current);
	box=document.getElementById(current);
	box.style.left= m.offsetLeft + 675;
	box.style.top= 125 + (m.offsetTop + m.offsetHeight);
	box.style.visibility="visible";
	m.style.backgroundColor="#A9CCEB";
	box.style.backgroundColor="#A9CCEB";
  }
function Erase(current) {
	if (!document.getElementById) return;
	if (inmenu && lastmenu==current) {
	  return;
	}
	m=document.getElementById("menu-" + current);
	box=document.getElementById(current);
	box.style.visibility="hidden";
	m.style.backgroundColor="#FFFFFF";
  }
function Timeout(current) {
	inmenu=false;
	window.setTimeout("Erase('" + current + "');",200) ;
  }
function Highlight(menu, item) {
	if (!document.getElementById) return;
	inmenu=true;
	lastmenu=menu;
	obj=document.getElementById(item);
	obj.style.backgroundColor="#FFFAC2";
  }
function UnHighlight(menu, item) {
	if (!document.getElementById) return;
	Timeout(menu);
	obj=document.getElementById(item);
	obj.style.backgroundColor="#A9CCEB";
  }
