var instatus = false;	//determines if tooltip will also be displayed in the status bar
var ttname = "tooltip"; //name of the tooltip div tag (used on next line)
var bcolor = "#DBEAF8";	//background color of tooltip
var fcolor = "#44586C";		//color of tooltip text
var borderstyle = "solid";	//tooltip border style
var borderwidth = "1px";		//tooltip border width
var bordercolor = "#44586C";	//tooltip border color
var font = "Verdana, Arial";	//font family
var fontsize = "13px";		//font size

 document.write('<div style="color: '+fcolor+'; z-index: 2000; position: absolute; background-color: '+bcolor+'; border-style: '+borderstyle+'; border-width: '+borderwidth+'; border-color: '+bordercolor+';border-right: #000000 2px solid;border-bottom: #000000 2px solid; font-family: '+font+'; font-size: '+fontsize+'; visibility: hidden;" id="'+ttname+'">');
 document.write('');
 document.write('</div>');

function ToolTip() {
	
	var show_tip;
	var e = event;
	var es = event.srcElement;	//event source
	
	
	show_tip = (typeof(es.tooltip) != "undefined");
	if (!show_tip) return;
        show_tip = (document.getElementById)
	if (!show_tip) return;

        if (es.tooltip != "")


	{
		document.getElementById(ttname).style.visibility = "visible";
		document.getElementById(ttname).style.left = e.x+20;
		document.getElementById(ttname).style.top = e.y+10;
		document.getElementById(ttname).style.position = "absolute";
		document.getElementById(ttname).innerHTML = "&nbsp;" + es.tooltip + "&nbsp;";
		if (instatus) {
			window.status = es.tooltip;
		}
	}

}

function hideToolTip() {


    var es = event.srcElement;

    if (typeof(es.tooltip) != "undefined")
    {
        if (!document.getElementById) return;

	document.getElementById(ttname).style.visibility = "hidden";
	if (instatus) {
		window.status = "";
        	      }
    }
}

document.onmousemove = ToolTip;
document.onmouseout = hideToolTip;

function stay() {}
