// JavaScript Document

<!-- inicio
var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)

document.onmousemove = posicRatonXY;
var posicX = 0
var posicY = 0

function posicRatonXY(e) {
	
if (document.documentElement && document.documentElement.scrollTop){
  // Explorer 6 Strict
  scrolTop = document.documentElement.scrollTop;
  scrolLeft = document.documentElement.scrollLeft;  
}
else if (document.body){
  // all other Explorers
  scrolTop = document.body.scrollTop;
  scrolLeft = document.body.scrollLeft;  
}

if (IE) { posicX = event.clientX + scrolLeft + 5;
posicY = event.clientY + scrolTop;}
else { posicX = e.pageX + 5; posicY = e.pageY };
if (posicX < 0) {posicX = 0};
if (posicY < 0) {posicY = 0};

//document.getElementById("Raton").RatonX.value = posicX;
//document.getElementById("Raton").RatonY.value = posicY;
return true }
// final -->


function vercapa(id)
{
	var d = document.getElementById(id);
	d.style.left = posicX + "px";
	d.style.top = posicY + "px";

}
function movercapa(id)
{
	var d = document.getElementById(id);
	d.style.display='block';
	d.style.left = posicX + "px";
	d.style.top = posicY + "px";
}
function ocultarcapa(id)
{
	var d = document.getElementById(id);
	d.style.display='none';
}

