var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

var tempX = 0
var tempY = 0

function getMouseXY(e) {
  if (IE) { // para internet explorer
    tempX = event.clientX + document.documentElement.scrollLeft;
    tempY = event.clientY + document.documentElement.scrollTop;
  } else {  // mozilla
    tempX = e.pageX;
    tempY = e.pageY;
  }  
  // para posibles valores negativos en Netscape
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
	//document.getElementById('pantalla').innerHTML = tempX + " , " + tempY + " // " +  document.body.scrollTop + "-";// window.pageYOffset --> funciona en firefox, nos da el valor del scroll vertiical
  return true
}


function muestraToolTip (id) {
	document.getElementById(id).className = "tooltip";
	}
	
function ocultaToolTip (id) {
	document.getElementById(id).className = "oculto";
	}


function mueveToolTip (id) {

			document.getElementById(id).style.top = tempY + 10 + 'px';
			document.getElementById(id).style.left = tempX + 10 + 'px';
		
	}