function showMenuInFrame(menuLabel, x, y) 
{
  if (!top.HauptFrame) { return; }
  if (window.pageXOffset > -1) 
  {
    x = x || top.HauptFrame.pageXOffset + window.pageX;
    y = y || top.HauptFrame.pageYOffset + 5;
  } 
  else if (document.body.scrollLeft > -1) 
  {
    x = x || top.HauptFrame.document.body.scrollLeft + window.pageX;
    y = y || top.HauptFrame.document.body.scrollTop + 5;
  }
  if (top.HauptFrame.showMenu) 
  {
    top.HauptFrame.showMenu(menuLabel, x, y);
  }
}
function mouseTracker(e) 
{
  e = e || window.Event || window.event;
  window.pageX = e.pageX || e.clientX;
  window.pageY = e.pageY || e.clientY;
}

if (window.captureEvents) 
{
  window.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP);
  window.onmousemove = mouseTracker;
} 
else
{
  document.onmousemove = mouseTracker;
}

