//Erweitereter Status
function setstatus(txt){
	self.status = txt;
	return true;
}

//DIV Tag für Info Label
document.write('<div name="info" id="info" style="position:absolute; visibility:hidden; z-index:10000;"></div>');

//Infolabel
var labelon = false;
function info(txt,cx,cy, color){
	if(txt){
		x = cx;
		if(!x) x=15;
		y = cy;
		if(!y) y=5;
		if(document.all) {
			document.getElementById("info").style.left = window.event.clientX + document.body.scrollLeft + x;
			document.getElementById("info").style.top = window.event.clientY + document.body.scrollTop + y;
		}
		
		while(txt.search(/\n/)!=-1) {
			txt = txt.replace(/\n/, "<br>");
		}
		
		if(!color) {
			text = "<table><td class='info'>"+txt+"</td></table>";
		}
		else {
			text = "<table><td class='info' style='background-color: "+color+";'>"+txt+"</td></table>";
		}
		document.getElementById("info").innerHTML = text;
		document.getElementById("info").style.visibility = "visible";
		
		labelon = true;
	}
	return true;
}
//Reposition
document.onmousemove = tomouse;
function tomouse(e) {
	if(labelon){
		if(document.all) {
			document.getElementById("info").style.left = window.event.clientX + document.body.scrollLeft + x;
			document.getElementById("info").style.top = window.event.clientY + document.body.scrollTop + y;
		}
		else {
			document.getElementById("info").style.left = e.pageX + x;
			document.getElementById("info").style.top = e.pageY + y;
		}
	}
	return true;
}
//Destroyinfolabel
function destroy() {
	labelon = false;
	document.getElementById("info").style.visibility = "hidden";
	document.getElementById("info").innerHTML = "";
	return true;
}

//OnPageLoad
self.defaultStatus = '© 2003 Lazyfrosch.de';

