// JavaScript Document

tt = null;

function getScroll() {
   if (document.body.scrollTop != undefined) {	// IE model
      var ieBox = document.compatMode != "CSS1Compat";
      var cont = ieBox ? document.body : document.documentElement;
      return {x : cont.scrollLeft, y : cont.scrollTop};
   }
   else {
      return {x : window.pageXOffset, y : window.pageYOffset};
   }
}




// document.onmousemove = updateTT;


	
	

function updateTT(e) {
	var gerollt = getScroll();
	
	//x = (document.all) ? window.event.x  : e.pageX;
	//y = (document.all) ? window.event.y  : e.pageY;
	x = (document.all) ? window.event.x  : e.clientX;
	y = (document.all) ? window.event.y  : e.clientY;
	//x = e.clientX;
	//y = e.clientY;
	xs = gerollt.x;
	ys = gerollt.y;
	if (tt != null) {
		tt.style.left = (x + xs + 15) + "px";
		tt.style.top 	= (y + ys +15) + "px";
	}
}


function showTT(id) {
	tt = document.getElementById(id);
	tt.style.display = "block";
	tt.style.zindex = "100";
}

function hideTT(id) {
	tt = document.getElementById(id);
	tt.style.display = "none";
}

function clickTT(id) {
	tt = document.getElementById(id);
	
	if(document.getElementById(id).style.display != "block")
	{
		tt.style.display = "block";
	}
	else
	{
		tt.style.display = "none";
	}
	
	tt.style.zindex = "200";
	
}
