function Koordinaten(Ereignis)
{
	if (document.layers)
	{
		document.tooltip.pageX = Ereignis.pageX;
		document.tooltip.pageY = Ereignis.pageY+20;
	}
	else
	{
		var x=-1; var y=-1;
		
		if (Ereignis) { // DOM Level 2 compliant
			x=Ereignis.clientX; y=Ereignis.clientY;
		} else if (window.event) { // for IE
			// standards compliant event handling:
			x=window.event.x; y=window.event.y;
		}
		
		if (x>=0) {
			document.getElementById("tooltip").style.left = x;
			document.getElementById("tooltip").style.top = y+20;
		}
	}
}

function mark(grosse, cx, cy)
{
	if (top.cont.document.title == 'Alt-Lowangen' || top.cont.document.title == 'Bunte Flucht' || top.cont.document.title == 'Eydal' || top.cont.document.title == 'Umgebung Lowangens')
	{
		if (document.layers)
		{
		}
		else
		{
			bnull_x = document.getElementById("bild").offsetLeft + document.getElementById("tabelle").offsetLeft;
			bnull_y = document.getElementById("bild").offsetTop + document.getElementById("tabelle").offsetTop;
			document.getElementById("markierung").innerHTML = "<IMG NAME='kreis' SRC='kreis_"+grosse+".gif'>";
			document.getElementById("markierung").height = grosse*10;
			document.getElementById("markierung").width = grosse*10;
			document.getElementById("markierung").style.left = bnull_x + cx - grosse*5 + 2;
			document.getElementById("markierung").style.top = bnull_y + cy - grosse*5 + 2;
			document.getElementById("markierung").style.visibility = "visible";
		}
	}
}

function unmark()
{
	if (top.cont.document.title == 'Alt-Lowangen' || top.cont.document.title == 'Bunte Flucht' || top.cont.document.title == 'Eydal' || top.cont.document.title == 'Umgebung Lowangens')
	{
		if (document.layers)
		{
		}
		else
		{
			document.getElementById("markierung").style.visibility = "hidden";
		}
	}
}

function tooltip_an(inhalt)
{
	if (document.layers)
	{
		document.tooltip.document.open();
		document.tooltip.document.write("<FONT FACE='Arial' SIZE=2><SPAN STYLE='background-color:#FFFFCC; '><NOBR>"+inhalt+"</NOBR></SPAN></FONT>");
		document.tooltip.document.close();
		document.tooltip.visibility = "show";
	}
	else
	{
		document.getElementById("tooltip").innerHTML = "<FONT FACE='Arial' SIZE=2><SPAN ID='tooltiptext' STYLE='background-color:#FFFFCC; '><NOBR>"+inhalt+"</NOBR></SPAN></FONT>";
		document.getElementById("tooltip").style.width = document.getElementById("tooltiptext").offsetWidth;
		document.getElementById("tooltip").style.visibility = "visible";
	}
}

function tooltip_aus()
{
	if (document.layers)
	{
		document.tooltip.visibility = "hide";
	}
	else
	{
		document.getElementById("tooltip").style.visibility = "hidden";
	}
}
if (document.layers)
{
	document.captureEvents(Event.MOUSEMOVE);
	document.onMouseMove = Koordinaten;
}
