function topoffen ()
{
var offen = self, hier = self;

while (hier.location)
    {
    offen = hier;

    if (hier != top && hier.name != 'abschweb_de')
        hier = hier.parent
    else
        break;
    }

return offen;
}








var xtop = topoffen ();





var wmk_heiss_x = ((typeof (innerWidth) == 'number') ? innerWidth : document.body.offsetWidth) - 144;
var wmk_Verteiler_heiss_x = ((typeof (innerWidth) == 'number') ? innerWidth : document.body.offsetWidth) - 170;
var wmk_heiss_y = 50;
var wmk_Verteiler_heiss_y = ((typeof (innerHeight) == 'number') ? innerHeight : document.body.offsetHeight) - 76;









function wmk_aus ()
{
parent.wmk_no_Palette = true;
parent.document.getElementById ('VerteilerPalette').style.visibility = 'hidden';
}







function wmk_checkMaus (e)
{ 
if (navigator.appName.indexOf ("Microsoft") == -1)
    { 
    Maus_x = e.pageX;
    Maus_y = e.pageY;

    rel_x = e.screenX;
    rel_y = e.screenY - 100;
    }
else
    { 
    Maus_x = event.clientX + document.body.scrollLeft;
    Maus_y = event.clientY + document.body.scrollTop;

    rel_x = event.clientX;
    rel_y = event.clientY;
    }

scroll_x = Maus_x - rel_x;
scroll_y = Maus_y - rel_y;


var wmk_heiss_x = ((typeof (innerWidth) == 'number') ? innerWidth : document.body.offsetWidth) - 144;
var wmk_Verteiler_heiss_x = ((typeof (innerWidth) == 'number') ? innerWidth : document.body.offsetWidth) - 170;
var wmk_Verteiler_heiss_y = ((typeof (innerHeight) == 'number') ? innerHeight : document.body.offsetHeight) - 76;
var wmk_Verteiler_top = wmk_Verteiler_heiss_y + 5;

with (parent.document)
    {
    if (!parent.wmk_no_wmk)
        getElementById ('wmk').style.visibility = (rel_y < wmk_heiss_y && rel_x > wmk_heiss_x) ? 'visible' : 'hidden';

    if (!parent.wmk_no_Palette)
        getElementById ('VerteilerPalette').style.visibility = (xtop.oftPalette && rel_y > wmk_Verteiler_heiss_y && rel_x > wmk_Verteiler_heiss_x)
                        ? 'visible' : 'hidden';
    }

//status = 'x = ' + Maus_x + '   y = ' + Maus_y + '    rel_x = ' + rel_x + '   rel_y = ' + rel_y;


if (wmk_onMouseMove != null)
    wmk_onMouseMove ();
}





function wmk_InitMaus ()
{
if (wmk_onLoad != null)
    wmk_onLoad ();

wmk_onMouseMove = document.onmousemove;
document.onmousemove = wmk_checkMaus;
}








function wmk_Init ()
{
wmk_InitMaus ();
}




var wmk_onMouseMove;
var wmk_onLoad = window.onload;
window.onload = wmk_Init;






