document.onmousemove = updateInfo;
var info = null;
var x = 520;
var y = 0;

function updateInfo(e) {
	//x = 585;
	
	x = (document.all) ? (window.event.x + document.body.scrollLeft) : e.pageX;
	y = (document.all) ? (window.event.y   + document.body.scrollTop) : e.pageY;
	//alert("Scroll: " + document.body.scrollTop);
	if (info != null) {
		info.style.left = (x + 20) + "px";
		info.style.top 	= (y + 20) + "px";
	}
	
}

function showInfo(index) {
	id = "infoDiv";
	if(!info){
		d = document.createElement('div');
		idAttr = document.createAttribute('id');
		idAttr.nodeValue = id;
		d.setAttributeNode(idAttr);
		d.innerHTML = glossarItems[index];
		document.getElementsByTagName("body")[0].appendChild(d);
	}
	info = document.getElementById(id);
	info.style.position = 'absolute';
	info.style.left = (x) + "px";
	info.style.top = (y) + "px";
	info.style.display = "block";
	d.innerHTML = glossarItems[index];
	//alert(" x: "  + x + " y: " + y + "Scroll: " + document.body.scrollTop);
}



function hideInfo() {
	if(info)info.style.display = "none";
}

var glossarItems = {};

glossarItems[3] = 'Test-Info';




