// ===================================================
// =  EDITING SECTION --- TOOLTIP PROPERTIES
// ===================================================
var TipBGColor = "#FBF9F3";
var TipFontFamily = "Tahoma, Arial";
var TipFontSize = "11px";
var TipFontWeight = "normal";
var TipFontColor = "#000000";
var TipBorder = "solid 1px black";
var TipPadding = "5px";
var TipWidth = "150px";
var TipoffsetLeft = 15;
var TipoffsetTop = 15;

var tipText = null;

document.onmousemove = MoveTip;

// =======================================================
// =  END EDITING SECTION --- DO NOT EDIT BELOW THIS LINE
// =======================================================

function ShowTip(isText, text) {
if (isText > 0) {
	tipText = text; 
	if (document.getElementById) {document.getElementById('tip').style.visibility = "visible";return true;}
}
}

function HideTip(isText) {
if (isText > 0) {
	tipText = null;
	if (document.getElementById) {document.getElementById('tip').style.visibility = "hidden";return true;}
}
}

function MoveTip(e) {
   if(tipText != null)
   {
    var posX, posY;
    if (document.getElementById) {
      posX = event.x + document.body.scrollLeft;
      posY = event.y + document.body.scrollTop;

	var tblText = "";
	tblText += "<table bgcolor=\"" + TipBGColor + "\" cellpadding=\"" + TipPadding + "\" cellspacing=\"0\" width=\"" + TipWidth + "\" style=\"border: " + TipBorder + ";\">";
	tblText += "<tr>";
	tblText += "<td style=\"font-family: " + TipFontFamily + "; font-size: " + TipFontSize + "; color: " + TipFontColor + ";\">";
	tblText += tipText;
	tblText += "</td>";
	tblText += "</tr>";
	tblText += "</table>";	
  
      document.getElementById('tip').style.left = parseInt(posX) + TipoffsetLeft;
      document.getElementById('tip').style.top = parseInt(posY) + TipoffsetTop;
      document.getElementById('tip').innerHTML = tblText;
    }
      return true;
    }
}