<!--

/*
    This script was developped 1999 by Andreas Zierhut.
    You can use it for free, as long this comment stays in the script.
    You can contact me with E-Mail: Andreas.Zierhut@t-online.de
    or visit my homepage: http://home.t-online.de/~javascript/
*/

var ns = document.layers ? true : false;

function HoverInit()
{
  if (onLoadOld)
    onLoadOld();
  tmpLayer = new Layer(1);
  tmpLayer.bgColor = "#525942";
}

var obj = null;
var tmpLayer = null;
var onLoadOld = null;

if (ns) {
  if (window.onload)
    onLoadOld = window.onload;
  window.onload = HoverInit;
  document.captureEvents(Event.MOUSEOVER);
  document.onmouseover = Hover;
}

function Hover(evt)
{
  document.routeEvent(evt);

  if (tmpLayer && tmpLayer.visibility == 'hide' && evt.target.text) {

    obj = evt.target;

    tmpLayer.left = obj.x;
    tmpLayer.top  = obj.y;
    tmpLayer.width = 1;

    with (tmpLayer.document) {
      open();
      write("<nobr><a href='"+obj.href+"' class='hover'>"+obj.text+"</a>&nbsp;&nbsp;</nobr>");
      close();
    }

    tmpLayer.visibility = 'show';

    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = Hoveroff;

  }

}

function Hoveroff(evt)
{
  if (tmpLayer && evt.target != tmpLayer.document.links[0] && evt.target != obj) {

    tmpLayer.visibility = 'hide';
    document.releaseEvents(Event.MOUSEMOVE);

  }
}
//-->