var cX = 0; var cY = 0; var rX = 0; var rY = 0;

function UpdateCursorPosition(e){
//    var posx = 0;
//	var posy = 0;
	if (!e) var e = window.event;
//	if (e.pageX || e.pageY) 	{
	//	posx = e.pageX;
	//	posy = e.pageY;
	//}
//	if (e.clientX || e.clientY) 	{
//		posx = e.clientX + document.body.scrollLeft
//			+ document.documentElement.scrollLeft;
//		posy = e.clientY + document.body.scrollTop
//			+ document.documentElement.scrollTop;
//	}
    cX=e.ScreenX+20;
    cY=e.ScreenY;

}

function UpdateCursorPositionDocAll(e){
//    var posx = 0;
//	var posy = 0;
	if (!e) var e = window.event;
//	if (e.pageX || e.pageY) 	{
//		posx = e.pageX;
//		posy = e.pageY;
//	}
//	 if (e.clientX || e.clientY) 	{
//		posx = e.clientX + document.body.scrollLeft
//			+ document.documentElement.scrollLeft;
//		posy = e.clientY + document.body.scrollTop
//			+ document.documentElement.scrollTop;
//	}
    cX=posx+20;
    cY=posy;
}

if(document.all) {
    document.onmousemove = UpdateCursorPositionDocAll;
}
else {
    document.onmousemove = UpdateCursorPosition;
}
function AssignPosition(d) {
        
    d.style.left = cX + "px";
    d.style.top = cY + "px";
}
function HideText(d) {
    if(d.length < 1) {
        return;
    }
    document.getElementById(d).style.display = "none";
}
function ShowText(d) {
    if(d.length < 1) {
        return;
    }
    var dd = document.getElementById(d);
    AssignPosition(dd);
    dd.style.display = "block";
}
function ReverseContentDisplay(d) {
    if(d.length < 1) {
        return;
    }
    var dd = document.getElementById(d);
    AssignPosition(dd);
    if(dd.style.display == "none") {
        dd.style.display = "block";
    }
    else {
        dd.style.display = "none";
    }
}


//-->



