var objToolTip = null;

document.onmousemove = updateToolTip;

function updateToolTip(e) {
    x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
    if (objToolTip != null) {
        objToolTip.style.left = (x + 20) + "px";
        objToolTip.style.top  = (y + 20) + "px";
    }
}

function showToolTip(id) {
    objToolTip = document.getElementById(id);
    objToolTip.style.display = "block";
}

function hideToolTip(id) {
    objToolTip = document.getElementById(id);
    objToolTip.style.display = "none";
}

// ==================================================================================================================
// Hier wird der Statuszeilentext definiert (funktioniert beim Firefox nicht, wenn dort bestimmte Einstellungen nicht erfüllt sind 
// ==================================================================================================================
var Text = " Wir bilden aus in Ihrem Betrieb..............                 melden Sie sich                 es lohnt sich!                 Mailen Sie an  Firma@awb-ausbildung.de                 oder rufen Sie an      02272 905168                 Ihre A.W.B. Aus - und Weiterbildung";
var Geschwindigkeit = 150;
var Breite = 90
var TextLaenge = Text.length;
var Position = 1 - Breite;

function StatusLauftext() {
	Position++;
	var Textzustand="";
	if (Position == TextLaenge) {
		Position = 1 - Breite;
	}
	if (Position < 0) {
		for (var Zaehler=1; Zaehler <=Math.abs(Position); Zaehler++) {
			Textzustand = Textzustand + " ";
		}
		Textzustand = Textzustand + Text.substring(0, Breite - Zaehler +1);
	} else {
		Textzustand = Textzustand + Text.substring(Position, Breite + Position);
	}
	window.status = Textzustand;
	setTimeout("StatusLauftext()",Geschwindigkeit);
}
setTimeout("StatusLauftext()",Geschwindigkeit);


