var offsetX = 0;
var offsetY = 0;
var ttObject = null;
if (!document.all) {
	document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = getMouseXY;
function getMouseXY(e) {
	if (ttObject != null) {
		if (document.all) {
			cursorX = event.clientX + document.body.scrollLeft;
			cursorY = event.clientY + document.body.scrollTop;
		} else {
			if (window.opera) {
				cursorX = e.clientX;
				cursorY = e.clientY;
			} else {
				cursorX = e.pageX;
				cursorY = e.pageY;
			}
		}
		movettObject(cursorX,cursorY);
	}
	return true;
}
function showttObject(myObject, oX, oY) {
	if (ttObject != null) {
			hidettObject();
	}
	offsetX = oX;
	offsetY = oY;
	ttObject = myObject;
	ttObject.style.visibility = "visible";
}
function hidettObject() {
	ttObject.style.visibility = "hidden";
	ttObject = null;
}
function movettObject(cursorX,cursorY) {
	newX = cursorX + offsetX;
	newY = cursorY + offsetY;
	ttObject.style.top = newY + "px";
	ttObject.style.left = newX + "px";
}