var timer_id;
var menu_to_hide;
function m_hover(o, m) {
	if (menu_to_hide && menu_to_hide!=o) menu_to_hide.style.display='none';
	if (timer_id) window.clearTimeout(timer_id);
  if (m) {
	  var mnu = document.getElementById(m);
	  if (mnu) {
	    var top=0;
	    var left=0;
	    var to;
	    for (to=o;to!=document.body;to=to.parentNode) {
	  	  if (to.tagName!="TR" && to.tagName!="TBODY") {
		      top += to.offsetTop;
		      left += to.offsetLeft;
		    }
	    }
	    mnu.style.top=top-1;
	    mnu.style.left=left+o.offsetWidth;
	    mnu.style.display='';
	  }
  }
  if (o) o.className="current";
}
function m_blur(o, m) {
  if (m) {
    var mnu = document.getElementById(m);
    menu_to_hide = mnu;
    timer_id = window.setTimeout("menu_to_hide.style.display='none'", 100);
  }
  o.className="";
}
function i_hover(i) {
  var o = document.getElementById(i);
  m_hover(o, "c"+i);
}
function i_blur(i) {
  var o = document.getElementById(i);
  m_blur(o, "c"+i);
}  
