﻿function updateWMTT(e) {
	var seitenHoehe
	if (self.pageYOffset) // all except Explorer
	{
	seitenHoehe = self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		seitenHoehe = document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		seitenHoehe = document.body.scrollTop;
	}

	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	if (document.all) {
		y= window.event.y + seitenHoehe;
	} else {
		y = e.pageY;
	}
	if (wmtt != null) {
		if (x > 420) {
			wmtt.style.left = (x - 370) + "px";
		} else {
			wmtt.style.left = (x + 20) + "px";
		}
		wmtt.style.top 	= (y + 1) + "px";
	}
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.top 	= 0 + "px";
	wmtt.style.display = "block"; 
}

function hideWMTT() {
	wmtt.style.display = "none"; 
}

wmtt = null;
document.onmousemove = updateWMTT;
