//Dieses Skript stammt von Michael Mailerīs JavaScripts
//URL: http://www.webaid.de/js  --  eMail: mm@webaid.de
//modifiziert von Klaus Gottschling webmaster@klaus.gottschling.de
//Bitte   entfernen   Sie   diesen   Vermerk   nicht  !

var mx=0;
var my=0;
var ypos=0;
var xpos=0;
var fnst_breite = 0;
var fnst_hoehe = 0;
var maxWidth = 120;
isNetscape = false;
isBrows4 = false;

function watch_mouse(e)
{
        if (isNetscape)
        {
                mx = e.x;
                my = e.y;
                ypos = my + 20;
                xpos = mx + 5;
                if ((ypos + document.bubble.clip.bottom + 2) > (window.pageYOffset + window.innerHeight))
                {
                         ypos = my - 20 - document.bubble.clip.bottom;
                }
                if ((xpos + document.bubble.clip.width + 15) > (window.innerWidth + window.pageXOffset)) xpos = window.innerWidth + window.pageXOffset - document.bubble.clip.width -15;
                if (xpos < 5) xpos = 5;
                document.bubble.left = xpos;
                document.bubble.top  = ypos;
        }
        else
        {
                mx = window.event.x;
                my = window.event.y;
                xpos = mx + document.body.scrollLeft + 2;
                if ((xpos + bubble.offsetWidth + 15) > (document.body.offsetWidth + document.body.scrollLeft))
                {
                        xpos = document.body.offsetWidth + document.body.scrollLeft - bubble.offsetWidth - 15;
                }
                if (xpos < (document.body.scrollLeft + 5)) xpos = document.body.scrollLeft + 5;
                bubble.style.left = xpos;
                ypos = my + document.body.scrollTop + 20;
                if ((ypos + bubble.offsetHeight + 5) > (document.body.offsetHeight + document.body.scrollTop))
                {
                        ypos = my + document.body.scrollTop - bubble.offsetHeight - 15;
                }
                bubble.style.top = ypos;
        }
}

function ShowBubble(text)
{
        if (!isBrows4) return;
        if (isNetscape)
        {
                text="<div class=\"BubbleClass\">"+text+"</div>"
                with (document.bubble.document)
                {
                        open();
                        write(text);
                        close();
                }
                document.bubble.bgColor = "ffffcc";
                document.bubble.visibility = "SHOW";
        }
        else
        {
                document.all.bubble.innerHTML = text;
                bubble.style.visibility = "visible";
        }
}

function HideBubble()
{
        if (!isBrows4) return;
        if (isNetscape)
        {
                document.bubble.visibility = "HIDE";
        }
        else
        {
                bubble.style.visibility = "hidden";
        }
}

function helpinit()
{
        BrowserVar = parseFloat(navigator.appVersion);
        if (BrowserVar < 4) return;
        if (navigator.appName =="Netscape")
        {
                isNetscape = true;
                fnst_breite = window.innerWidth;
                fnst_hoehe = window.innerHeight;
        }
        else
        {
                fnst_breite = document.body.offsetWidth;
                fnst_hoehe = document.body.offsetHeight;
        }
        if (isNetscape)
        {
                document.captureEvents(Event.MOUSEMOVE);
        }
        isBrows4 = true;
        document.onmousemove = watch_mouse;
        HideBubble();
}

