
//Script created by Jim Young (www.requestcode.com)
//Submitted to Website Abstraction (http://wsabstract.com)
//Visit http://wsabstract.com for this script

//Set the tool tip message you want for each link here.
          
          
function showtip(current,e,num)
{
    if (document.layers) // Netscape 4.0+
    {
        theString="<DIV CLASS='ttip'>"+tip[num]+"</DIV>"
        document.tooltip.document.write(theString)
        document.tooltip.document.close()
        document.tooltip.left=e.pageX+14
        document.tooltip.top=e.pageY+2
        document.tooltip.visibility="show"
    }
    else
    {
        if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
        {
            elm=document.getElementById("tooltip")
            elml=current
            elm.innerHTML=tip[num]
            elm.style.height=elml.style.height
            elm.style.top=parseInt(elml.offsetTop+elml.offsetHeight)
            elm.style.left=parseInt(elml.offsetLeft+elml.offsetWidth+10)
            elm.style.visibility = "visible"
        }
    }
}

function hidetip(){
if (document.layers) // Netscape 4.0+
   {
    document.tooltip.visibility="hidden"
   }
else
  {
   if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
     {
      elm.style.visibility="hidden"
     }
  } 
}


// the two below are for IE 4.x

function popupon(text, eventObj) 
{ 
  ieLayer = 'document.all[\'tooltip\']';
  nnLayer = 'document.layers[\'tooltip\']';

  //-- Start Editable Area --
  borderColor = '#000000';
  bgColor = '#ffffff';
  border = 0;
  padding = 0;
  xOffset = 0;
  yOffset = 0;
  Font = 'face="Arial, Helvetica, sans-serif" size=1';
  //-- End Editable Area --

  if (!(document.all || document.layers)) return;
  if (null != document.all) document.tooltip = eval(ieLayer); else document.tooltip = eval(nnLayer);

  var table = "";
  var bigTable = ""; // Workaround for Netscape

  if (null != document.all) 
    { // If IE4+
    table += "<table bgcolor= "+ bgColor +" border= "+ border +" cellpadding= "+ padding +" cellspacing=0>";
    table += "<tr><td>";
    table += "<table cellspacing=0 cellpadding="+ padding +">";
    table += "<tr><td bgcolor= "+ bgColor +"><font "+ Font +">" + text + "</font></td></tr>";
    table += "</table></td></tr></table>"
    } 
  else 
    { // If NN4+
    table += "<table cellpadding="+ padding +" border="+ border +" cellspacing=0 bordercolor="+ borderColor +">";
    bigTable += "<table width="+(document.width - xOffset - eventObj.layerX - 30)+"cellpadding="+ padding +" border="+ border +" cellspacing=0 bordercolor="+ borderColor +">";
    table += "<tr><td bgcolor="+ bgColor +"><font "+ Font +">" + text + "</font></td></tr></table>";
    bigTable += "<tr><td bgcolor="+ bgColor +"><font "+ Font +">" + text + "</font></td></tr></table>";
    }

  if (null != document.all) 
    { // If IE4+
    document.tooltip.innerHTML = table;
    document.tooltip.style.left = eventObj.x + xOffset;
    document.tooltip.style.top  = eventObj.y + yOffset;
    document.tooltip.style.visibility = "visible";
    } 
  else 
    { // If NN4+
    document.tooltip.document.open();
    document.tooltip.document.write(table);
    document.tooltip.document.close();
    if ((document.tooltip.document.width + xOffset + eventObj.layerX) > document.width)
    { // If the layer runs off the right hand side
      document.tooltip.document.open();
      document.tooltip.document.write(bigTable);
      document.tooltip.document.close();
    }
    document.tooltip.left = eventObj.layerX + xOffset;
    document.tooltip.top  = eventObj.layerY + yOffset;
    document.tooltip.visibility = "visible";
  }
}


function popupoff() 
{ 
  if (!(document.all || document.layers)) return;
  if (null == document.tooltip) {
  } else if (null != document.all)
    document.tooltip.style.visibility = "hidden";
  else
    document.tooltip.visibility = "hidden";
    document.tooltip = null;
}
