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 = "#e5e5ff";	//background color of tooltip
var fcolor = "#000000";		//color of tooltip text
var opacity = 95;		//translucency of tooltip
var borderstyle = "outset";	//tooltip border style
var borderwidth = "1px";		//tooltip border width
var bordercolor = "#333333";	//tooltip border color
var font = "Verdana";	//font family
var fontsize = 11;		//font size this is the div tag that holds the tooltip

document.write('<div style="padding-left:6px; padding-right:6px; padding-top:7px; padding-bottom:8px; line-height:14px; color: '+fcolor+'; z-index: 2000; position: absolute; filter: alpha(opacity='+opacity+'); background-color: '+bcolor+'; border-style: '+borderstyle+'; border-width: '+borderwidth+'; border-color: '+bordercolor+'; font-family: '+font+'; font-size: '+fontsize+';text-align:left;width:230px; visibility: hidden;" id="'+ttname+'">');
document.write('Just an empty link!');
document.write('</div>');

function funToolTip() 
    {

	    e = event;
	    es = event.srcElement;
	    if (es.tooltip != "" && es.tooltip != undefined) 
	        {
		        
		        var posx = 0;
	            var posy = 0;
	            if (!e) var e = window.event;
	            if (e.pageX || e.pageY) 	
	                {
		                posx = e.pageX;
		                posy = e.pageY;
	                }
	            else if (e.clientX || e.clientY) 	
	                {
		                posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		                posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	                }

		        
		        document.getElementById(ttname).style.visibility = "visible";
		        document.getElementById(ttname).style.left = posx-110;
		        document.getElementById(ttname).style.top = posy+1;
		        document.getElementById(ttname).style.position = "absolute";
		        document.getElementById(ttname).innerHTML = es.tooltip;
		        if (instatus) 
		            {
			            window.status = es.tooltip;
		            }
	        }
    }
    
    function funHideToolTip() 
    {

	    document.getElementById(ttname).style.visibility = "hidden";
	    if (instatus) 
	        {
		        window.status = "";
	        }
    }

    document.onmousemove = funToolTip;
    document.onmouseout = funHideToolTip;
    
    
