var ns4 = (document.layers)? true:false
var ie4 = (document.all)? true:false
var ns6 = (document.getElementById && !document.all) ? true: false;
var coorX, coorY;
if (ns6) document.addEventListener("mousemove", mouseMove, true)
if (ns4) {document.captureEvents(Event.MOUSEMOVE); document.mousemove = mouseMove;}

function mouseMove(e)	{
	if (ns4||ns6)	{coorX = e.pageX; coorY = e.pageY;}
	if (ie4)	{coorX = event.x; coorY = event.y;}
	return true;
}

function iniayuda()	{
	if (ie4)	document.body.onmousemove = mouseMove;
}

var ini_msg = "<table cellspacing=0 border=0 style='padding: 5; margin:0 '><tr style='background-color:aqua'><td style='font-weight:900;text-align:center; text-indent: .5cm'>";
var med_msg = "</td><td><img style='margin:0 ' align=right src='../ficheros/_acad.gif'></td></tr><tr><td colspan=2 style='background-color:blue;height:1'></td></tr><tr><td colspan=2 style='padding: 5'>";
var fin_msg = "</td></tr></table>";

function mostrarAyuda(cabecera, mensaje)	{
	document.getElementById("ayuda").style.top = coorY + 10;
	document.getElementById("ayuda").style.left = coorX + 10;

	document.getElementById("ayuda").innerHTML = ini_msg + cabecera + med_msg + mensaje + fin_msg;
	document.getElementById("ayuda").style.visibility = "visible";
}

function ocultarAyuda()	{
	document.getElementById("ayuda").style.visibility = "hidden";
}

function moverAyuda()	{
	document.getElementById("ayuda").style.top = coorY + 10;
	document.getElementById("ayuda").style.left = coorX + 10;
}

