function getObj(name)                                   // micro-API for cross-browser DHTML
{
  if (document.getElementById) { this.obj = document.getElementById(name);
                                 this.style = document.getElementById(name).style; }

  else if (document.all)       { this.obj = document.all[name];
                                 this.style = document.all[name].style; }

  else if (document.layers)    { this.obj = getObjNN4(document,name);
                                 this.style = this.obj; }
}

function getObjNN4(obj,name)                            // for nested layers in Netscape 4
{
        var x = obj.layers;
        var thereturn;
        for (var i=0;i<x.length;i++)
        {
                if (x[i].id == name) thereturn = x[i];
                else if (x[i].layers.length) var tmp = getObjNN4(x[i],name);
                if (tmp) thereturn = tmp;
        }
        return thereturn;
}

function findPosX(obj)                                  // finds the real position of an element
{                                                       // not the relative coordinates
        var curleft = 0;
        if (document.getElementById || document.all)
        {
                while (obj.offsetParent)
                {
                        curleft += obj.offsetLeft
                        obj = obj.offsetParent;
                }
        }
        else if (document.layers)
                curleft += obj.pageX;
        return curleft;
}


function findPosY(obj)
{
        var curtop = 0;
        if (document.getElementById || document.all)
        {
                while (obj.offsetParent)
                {
                        curtop += obj.offsetTop
                        obj = obj.offsetParent;
                }
        }
        else if (document.layers)
                curtop += obj.pageY;
        return curtop;
}

function move_layer()
{

anchor  = new getObj("anch");                           // the magic 1x1 gif
laeufer = new getObj("lauf");

laeufer.style.visibility = 'visible';
laeufer.style.left = findPosX(anchor.obj);
laeufer.style.top  = findPosY(anchor.obj);

}


function reload()
{
window.location = self.location;
}