//////////////////////////////////////////////////////////////////////////////
// HumanSideOfLyme.org                                                      //
// JavaScript File                                                          //
// Support: General Browser Use (getElementById)                            //
//////////////////////////////////////////////////////////////////////////////

var toosmall = "Font Too Small?\n-------------------------\nIt can be changed.\n\n\nInternet Explorer:\n\n  Go to the 'View' menu and choose 'Text Size'.\n  Adjust it from the list.\n\n\nNetscape/Mozilla/Firefox:\n\n  Go to the 'View' menu and choose 'Text Size'.\n  Adjust it by selecting 'Increase' or 'Decrease'.\n";

// The Following 2 Functions Are Used To Help Control The Menu
function menuon(item)
{
  item.className    = 'menuon';
  item.style.cursor = 'pointer';
}

function menuoff(item,sel)
{
  item.className = (sel)
                 ? 'menusel' : 'menuoff';
}

//////////////////////////////////////////////////////////////////////////////
// popWin : Pops a new window with given size and specifications            //
// Usage  : Call with parameters                                            //
//               winname    : Name Of New Window                            //
//               width      : Width Of New Window                           //
//               height     : Height Of New Window                          //
//               usetoolbar : Have Toolbar On Top?                          //
//////////////////////////////////////////////////////////////////////////////
function popWin(winname,width,height,usetoolbar)
{
  var x   = 800; // Default Width
  var y   = 600; // Default Height
  var agt = navigator.userAgent.toLowerCase();

  if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1))
  {
    // IE
    x = screen.width;
    y = screen.height;
  }
  else
  {
    // Netscape Or Others
    x = window.outerWidth;
    y = window.outerHeight;
  }

  var X = (x-200)/2;
  var Y = (y-200)/2;
  poppedWin = (usetoolbar)
            ? window.open ("",winname,'toolbar=yes,menubar=yes,resizable=yes,alwaysRaised=yes,status=no,scrollbars=yes,screenX='+X+',screenY='+Y+',top='+Y+',left='+X+',width='+width+',height='+height)
            : window.open ("",winname,'resizable=yes,alwaysRaised=yes,status=no,scrollbars=yes,screenX='+X+',screenY='+Y+',top='+Y+',left='+X+',width='+width+',height='+height);
  poppedWin.focus();
}
