function doTooltip(txt) {
// enclose tip in nested tables for uniform 'tooltip' effect
// customize here
var tip = '<TABLE BGCOLOR="#000000" CELLSPACING="0" CELLPADDING="1" BORDER="0"><TR><TD><TABLE BGCOLOR="#FFFFCC" WIDTH="100%" CELLSPACING="0" CELLPADDING="4" BORDER="0"><TR><TD CLASS="tip">' + txt  + '</TD></TR></TABLE></TD></TR></TABLE>'

// check for object (i.e., layers or all) 
// for Netscape 4+
if (document.layers) {
	document.tooltip.document.write(tip)
	document.tooltip.document.close()

	document.tooltip.left = xMousePos + 20
	document.tooltip.top = yMousePos + 20
	document.tooltip.visibility = "show"
} //if

// for IE 4+	
if (document.all) {
	docu = document.body;
	base = document.all.tooltip;
 	base.innerHTML = tip;

	yTav = yMousePosMax - yMousePos;
 	//ha kilog a div, akkor feltoljuk...
 	if ((base.offsetHeight+10) > (yTav)) {
	 	base.style.pixelLeft = xMousePos + 10;
	 	base.style.pixelTop = yMousePos - (base.offsetHeight+10 - yTav)+10;
 	} else {
	 	base.style.pixelLeft = xMousePos + 10;
	 	base.style.pixelTop = yMousePos + 10;
 	} //if

	base.style.visibility = "visible";
 } //if
}

function hideTip() {
if (document.layers) {
	document.tooltip.visibility = "hide"  
 }

if (document.all) {
		document.all.tooltip.style.visibility = "hidden"  
 }
}

