//===== relative URL handling code for js files ================
sWZBaseFolder = "www.filopur.de";                          
sWZ = window.location.href;                                     
iWZ = sWZ.indexOf(sWZBaseFolder) + sWZBaseFolder.length + 1;    
sWZBase = sWZ.substring(0,iWZ);                                 
//===== Copyright © 2001 Spidersoft. All rights reserved. ======

var ns = document.layers ? true : false;

function HoverInit()
{
  if (onLoadOld)
    onLoadOld();
  tmpLayer = new Layer(1);
  tmpLayer.bgColor = document.bgColor;
}

var obj = null;
var tmpLayer = null;
var onLoadOld = null;
var LinkClick = 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;
    LinkClick = null;
    if (obj.onclick)
      LinkClick = obj.onclick;

    tmpLayer.left = obj.x;
    tmpLayer.top  = obj.y;
    tmpLayer.width = 1;

    with (tmpLayer.document) {
      open();
      write('<nobr><a href="'+obj.href+'" onClick="if (LinkClick) return LinkClick(); return true;" class="hover"' + (obj.target ? ' target="' + obj.target + '"' : '') + '>'+obj.text+'</a></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);

  }
}
