
//Store Browser Info
   browserIsNetscape = navigator.appName == "Netscape";
   browserIsMSIE = navigator.appVersion.indexOf("MSIE") != -1;
   browserIsGeneration4 = navigator.appVersion.charAt(0) == "4"; //includes netscape 4 and IE 4 & 5
   browserIsGeneration5 = navigator.appVersion.charAt(0) == "5"; //SO far (Sept 2001) only netscape 6
   toolTipCompatible = false;

function writeToolTip(ToolTipID, clickableText, toolTipText){
// start clickable tooltip
   if(browserIsNetscape && browserIsGeneration4){
      toolTipCompatible = true;
      document.write("<A href='#" + ToolTipID + "' name='" + ToolTipID + 
		     "' onmouseover='showToolTip(document." + ToolTipID + 
		     ", event)' onmouseout='hideToolTip(document." + ToolTipID + 
		     ")'>");
   }
   document.write("<SPAN class='toolhighlight'");
   if( (browserIsMSIE && browserIsGeneration4 ) || (browserIsNetscape && browserIsGeneration5) ){
      toolTipCompatible = true;
      document.write(" title='" + toolTipText + "'")
}
   document.write(">");

//actual clickable text
   if(toolTipCompatible){ document.write("[" + clickableText + "]"); }

//End of clickable text marrkup
   document.write("</SPAN>");
   if(browserIsNetscape && browserIsGeneration4){ 
      document.writeln("</A>");
//NS4 layer for tooltip
       document.write("<layer NAME='" + ToolTipID + "' bgcolor='#ffffcc' visibility='hide'>");
       document.write(toolTipText);
       document.writeln("</layer>");
   }
   if(!toolTipCompatible){ document.write(" [Definition: " + toolTipText + "]"); }  
}  

function showToolTip(tip, evt){
    tip.left = evt.layerX + 20;
    tip.top = evt.layerY;
    tip.visibility = 'show';
}

function hideToolTip(tip){ tip.visibility = 'hide'; }
