var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)

var tempX = 0;
var tempY = 0;

function getMouseXY(e)
{
	if (IE) 
	{
		tempX = event.clientX + document.body.scrollLeft;
		tempY = event.clientY + document.body.scrollTop;
		hint.style.top = tempY + 15;
		hint.style.left = tempX + 11;
	}
	else
	{
		tempX = e.pageX;
		tempY = e.pageY;
		document.layers["hint"].top = tempY + 15;
		document.layers["hint"].left = tempX + 11;
	}
	
	if (tempX < 0)
	{
		tempX = 0;
	}
	if (tempY < 0)
	{
		tempY = 0;
	}
	return true;
}

function show(tekst)
{
document.onmousemove = getMouseXY;
	txt = "<table cellspacing=0 cellpadding=5 class=tabelka_div><tr><td valign=top class=tabelka_div_td nowrap>"+tekst+"</td></tr></table>"
	if(IE)
	{
		hint.innerHTML = txt;
		hint.style.visibility = "";
	}
	else
	{
		document.layers["hint"].document.write(txt);
		document.layers["hint"].document.close();
		document.layers["hint"].visibility = "show";
	}
}

function hide()
{
	txt = ""
	if(IE)
	{
		hint.innerHTML = txt;
		hint.style.visibility = "hidden";
	}
	else
	{
		document.layers["hint"].document.write(txt);
		document.layers["hint"].document.close();
		document.layers["hint"].visibility = "hide";
	}
}
