var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById)? true:false;

function showtip(e,text)
{
	if (ns6)
    {
		document.getElementById("tooltip").innerHTML=text;
        document.getElementById("tooltip").style.background='#FFFFE7';
        document.getElementById("tooltip").style.border='1 solid #000000';
		document.getElementById("tooltip").style.left=e.clientX;
        document.getElementById("tooltip").style.top=e.clientY+20;
        document.getElementById("tooltip").style.visibility = "visible";
	}

	if (ns4) {
	   document.tooltip.document.write('<layer bgColor="#FFFFE7" style="width:170px; border:1px ' +'solid black; font-size:11px; font-family:arial; color:#000000;">' + text + '</layer>')
       document.tooltip.document.close()
       document.tooltip.left=e.pageX+5
       document.tooltip.top=e.pageY+10
       document.tooltip.visibility="show"
   }
}

function hidetip()
{
    if (ns6) {
        document.getElementById("tooltip").style.visibility = "hidden";
    } else {
        document.tooltip.visibility="hidden"
    }
}
