<!--
/***********************************************************************
    Displays popup box on highlighted item.

    Pop up information box II (Mike McGrath (mike_mcgrath@lineone.net, 
      http://website.lineone.net/~mike_mcgrath)) 

    The commented out code is used for Netscape. It checks to see which
      browser is being used and if it is Netscape, then which version is
      running (nav OR old).
************************************************************************/
  Xoffset= -35;    // modify these values to ...
  Yoffset= 19;      // change the popup position.
  var yyy=-1000;
  var mouseOutFlag;

//    var nav, old, iex=(document.all);
//    if(navigator.appName=="Netscape") {
//      if(document.layers)
//        nav=true;
//      else
//        old=true;
//    }

//    if(!old){
  var skn;
//      if(nav)
//        skn = document.dek;
//      else
  skn = buttonArea.style;
//      if(nav){
//        document.captureEvents(Event.MOUSEMOVE);
//      }
  document.onmousemove=get_mouse;
//    }

  function popupHelp(popupMessage) {
    var today = new Date();
    var intSeconds = today.getSeconds();
    var intMinutes = today.getMinutes();

    mouseOutFlag = 0;

/*    do {
      if(mouseOutFlag==1) {
         break;
      }
      today=new Date();
    } while(Math.abs(today.getSeconds() - intSeconds) < 2);
*/
    if(mouseOutFlag==0) {
      displayMessage(popupMessage);
    }
  }

  function displayMessage(popupMessage){
    var content;
    content = "<TABLE BORDER=1 WIDTH=75 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 BGCOLOR=lightyellow>"+
              "<TD ALIGN=center STYLE='FONT-FAMILY: Arial; FONT-SIZE: 7pt'>"+
              popupMessage+"</TD></TABLE>";
//                  "<FONT COLOR=black SIZE=2>"+
//                  popupMessage+"</FONT></TD></TABLE>";

//      if(old) {
//        alert(popupMessage);
//        return;
//      } 
//      else {
    yyy=Yoffset;
//        if(nav) {
//          skn.document.write(content);
//          skn.document.close();
//          skn.visibility="visible"
//        }
//        if(iex) { 
    document.all("buttonArea").innerHTML=content;
    skn.visibility="visible"
//        }
//      }
  }

  function get_mouse(e){
    var x,y;
//      if(nav)
//        x = e.pageX;
//      else
    x = event.x+document.body.scrollLeft;
    skn.left=x+Xoffset;
      
//      var y=(nav)?e.pageY:event.y+document.body.scrollTop;
//      if(nav)
//        y = e.pageY;
//      else
    y = event.y+document.body.scrollTop;
    skn.top=y+yyy;
  }

  function hidePopupHelp(){
//      if(!old){
    yyy=-1000;
    skn.visibility="hidden";
    mouseOutFlag=1;
//      }
  }

//-->
