if (document.layers)
  document.write('<STYLE>.hover { position: relative; } <\/STYLE>');
function HoverLink (url, text, hiStyle, lowStyle) {
  if (document.layers) {
    this.id = HoverLink.cnt;
    HoverLink.links[HoverLink.cnt++] = this;
  }
  this.url = url;
  this.text = text;
  this.hiStyle = hiStyle;
  this.lowStyle = lowStyle || '';
  var html = '';
  if (document.layers) {
    html += '<SPAN ID="' + 'link' + this.id + '" CLASS="hover">';
    html += '<A HREF="' + url + '"';
    html += lowStyle ? ' CLASS="' + lowStyle + '"' : '';
    html += '>';
    html += text ? text : url;
    html += '<\/A>';
    html += '<\/SPAN>';
  }
  else {
    html += '<A HREF="' + url + '"';
    html += lowStyle ? ' CLASS="' + lowStyle + '"' : '';
    html += ' ONMOUSEOVER="this.className = \'' + this.hiStyle + '\';"';
    html += ' ONMOUSEOUT="this.className = \'' + this.lowStyle + '\';"';
    html += '>';
    html += text ? text : url;
    html += '<\/A>';
  } document.write(html);
}
function HoverLinkLowLink () {
  var ol = this.ol;
  var html = '';
  html += '<A HREF="' + this.url + '"';
  html += this.lowStyle ? ' CLASS="' + this.lowStyle + '"' : '';
  html += ' ONMOUSEOVER="HoverLink.links[' + this.id + '].hiLink();"';
  html += '>';
  html += this.text ? this.text : this.url;
  html += '<\/A>';
  ol.document.open();
  ol.document.write(html);
  ol.document.close();
}
HoverLink.prototype.lowLink = HoverLinkLowLink;
function HoverLinkHiLink () {
  var ol = this.ol;
  var html = '';
  html += '<A HREF="' + this.url + '"';
  html += ' CLASS="' + this.hiStyle + '"';
  html += ' ONMOUSEOUT="HoverLink.links[' + this.id + '].lowLink();"';
  html += '>';
  html += this.text ? this.text : this.url;
  html += '<\/A>';
  ol.document.open();
  ol.document.write(html);
  ol.document.close();
}
HoverLink.prototype.hiLink = HoverLinkHiLink;
function HoverLinkInit () {
  var l = this.layer = document['link' + this.id];
  var ol = this.ol = new Layer (l.clip.width);
  ol.clip.width = l.clip.width;
  ol.clip.height = l.clip.height;
  ol.pageX = l.pageX;
  var td = document.classes[this.lowStyle].all.textDecoration;
  ol.pageY = td != 'none' ? l.pageY + 2 : l.pageY;
  this.lowLink();
  ol.visibility = 'show';
  l.visibility = 'hide';
}
HoverLink.prototype.init = HoverLinkInit;
if (document.layers) {
  HoverLink.cnt = 0;
  HoverLink.links = new Array();
  HoverLink.init = 
    function () {
      for (var i = 0; i < HoverLink.links.length; i++) 
        HoverLink.links[i].init();
    };
}

function initLinks () {
  if (document.layers)
    HoverLink.init();
}