    function LookUp(term)
   {
   Glossary=window.open("IUterms.html#"+term,"Glossary","height=300,width=500,resizable,scrollbars");
   Glossary.focus()
   }

    function XPLookUp(term)
   {
   Glossary=window.open("../IUterms.html#"+term,"Glossary","height=300,width=500,resizable,scrollbars");
   Glossary.focus()
   }


   function Glossary()
   {
   Glossary=window.open("IUterms.html","Glossary","height=300,width=500,resizable,scrollbars");
   Glossary.focus()
   }

     var ExpireDate;
  function Window_OnLoad()
  {
    InitTable();
    // Set the expiration date variable.
    var Expires = new Date();
    Expires.setFullYear(Expires.getFullYear() + 1);
    ExpireDate = Expires.toGMTString();

    // Move to the last known position.
    // Get all the cookies.
    var allcookies = document.cookie;
    // Get the position of the PreviousLocation cookie. If its -1, then the value doesn't exist.
    var posPreviousLocation = allcookies.indexOf("PreviousLocation=");

    // find the end of the PL
    if (posPreviousLocation > -1)
    {
        var posEndPreviousLocation = allcookies.indexOf(";", posPreviousLocation);
        if (posEndPreviousLocation == -1)
            posEndPreviousLocation = allcookies.length;
        // extract the PL from the cookie string
        var PreviousLocation = allcookies.substr( (posPreviousLocation+17), (posEndPreviousLocation-posPreviousLocation) );
        // move to the PL
        document.body.scrollTop = PreviousLocation;
    }

    // read through allcookies looking for menus that need to be opened.
    posStart = 0;
    while( (posOpen = allcookies.indexOf("=Open", posStart)) > -1)
    {
        tmpStr = allcookies.slice(0, posOpen);
        posBegin = tmpStr.lastIndexOf(";");
        if (posBegin < 0 || posBegin > posOpen)
        {
            posBegin = 0;
            imgName = allcookies.substr( (posBegin+3), (posOpen-posBegin-3) );
        }
        else
        {
            posBegin = posBegin + 1;
            imgName = allcookies.substr( (posBegin+4), (posOpen-posBegin-4) );
        }
        FlipDiv(imgName);
        posStart = posOpen+5;
    }
  }

function SetPreviousLocation()
{
    // set the PreviousLocation cookie
    document.cookie = "PreviousLocation=" + document.body.scrollTop + ";expires=" + ExpireDate;
}

  function FlipDiv(rootName)
  {
      divName = 'div' + rootName;
      tblName = 'tbl' + rootName;
      imgName = 'img' + rootName;

      tmpSource = document.getElementById(imgName).src;
      tmpSource = tmpSource.slice(tmpSource.length-10);
      if (tmpSource == "SmPlus.gif")
      {
        document.getElementById(imgName).src = "Graphics/SmMinus.gif";
        document.getElementById(divName).style.height = document.getElementById(tblName).offsetHeight;
        document.cookie = imgName + "=Open;expires=" + ExpireDate;
      }
      else
      {
        document.getElementById(imgName).src = "Graphics/SmPlus.gif";
        document.getElementById(divName).style.height = "30px";
        document.cookie = imgName + "=Closed;expires=" + ExpireDate;
      }

      // resize the parents now.
      tmpName = rootName;
      posEnd = rootName.length-1;
      while( (posBegin = rootName.lastIndexOf('_', posEnd)) > -1)
      {
        tmpName = rootName.slice(0, posBegin);
        tmpDiv = 'div' + tmpName;
        tmpTbl = 'tbl' + tmpName;
        tmpImg = 'img' + tmpName;
        tmpSource = document.getElementById(tmpImg).src;
        tmpSource = tmpSource.slice(tmpSource.length-11);
        if (tmpSource == "SmMinus.gif")
        {
          document.getElementById(tmpDiv).style.height = document.getElementById(tmpTbl).offsetHeight;
        }
        posEnd = posBegin-1;
      }
  }


    function XPFlipDiv(rootName)
  {
      divName = 'div' + rootName;
      tblName = 'tbl' + rootName;
      imgName = 'img' + rootName;

      tmpSource = document.getElementById(imgName).src;
      tmpSource = tmpSource.slice(tmpSource.length-10);
      if (tmpSource == "SmPlus.gif")
      {
        document.getElementById(imgName).src = "XPGraphics/SmMinus.gif";
        document.getElementById(divName).style.height = document.getElementById(tblName).offsetHeight;
        document.cookie = imgName + "=Open;expires=" + ExpireDate;
      }
      else
      {
        document.getElementById(imgName).src = "XPGraphics/SmPlus.gif";
        document.getElementById(divName).style.height = "30px";
        document.cookie = imgName + "=Closed;expires=" + ExpireDate;
      }

      // resize the parents now.
      tmpName = rootName;
      posEnd = rootName.length-1;
      while( (posBegin = rootName.lastIndexOf('_', posEnd)) > -1)
      {
        tmpName = rootName.slice(0, posBegin);
        tmpDiv = 'div' + tmpName;
        tmpTbl = 'tbl' + tmpName;
        tmpImg = 'img' + tmpName;
        tmpSource = document.getElementById(tmpImg).src;
        tmpSource = tmpSource.slice(tmpSource.length-11);
        if (tmpSource == "SmMinus.gif")
        {
          document.getElementById(tmpDiv).style.height = document.getElementById(tmpTbl).offsetHeight;
        }
        posEnd = posBegin-1;
      }
  }

function InitTable()
{
    x = 0;
    while (document.all[x] != null)
    {
        tmpStr = document.all[x].id;
        rootName = tmpStr.slice(3);
        if (tmpStr.substr(0, 3) == "div")
        {
            imgName = 'img' + rootName;
            tmpSource = document.all[imgName].src;
            tmpSource = tmpSource.slice(tmpSource.length-10);
            if (tmpSource == "SmPlus.gif")
            {
                FlipDivModified(rootName);
                FlipDivModified(rootName);
            }
            else
            {
                FlipDivModified(rootName);
            }
        }
        x = x + 1;
    }
}

function FlipDivModified(rootName)
{
divName = 'div' + rootName;
tblName = 'tbl' + rootName;
imgName = 'img' + rootName;
trName = 'tr' + rootName;

tmpSource = document.getElementById(imgName).src;
tmpSource = tmpSource.slice(tmpSource.length-11);
if (tmpSource == "SmLight.gif")
{
document.getElementById(divName).style.height = document.getElementById(tblName).offsetHeight;
}
else if (tmpSource == "SmPlus.gif")
{
document.getElementById(imgName).src = "Graphics/SmMinus.gif";
document.getElementById(divName).style.height = document.getElementById(tblName).offsetHeight;
}
else
{
document.getElementById(imgName).src = "Graphics/SmPlus.gif";
document.getElementById(divName).style.height = (document.getElementById(trName).offsetHeight + 5) + "px";
}

// resize the parents now.
tmpName = rootName;
posEnd = rootName.length-1;
while( (posBegin = rootName.lastIndexOf('_', posEnd)) > -1)
{
tmpName = rootName.slice(0, posBegin);
tmpDiv = 'div' + tmpName;
tmpTbl = 'tbl' + tmpName;
tmpImg = 'img' + tmpName;
tmpSource = document.getElementById(tmpImg).src;
tmpSource = tmpSource.slice(tmpSource.length-11);
if (tmpSource == "SmMinus.gif")
{
document.getElementById(tmpDiv).style.height = document.getElementById(tmpTbl).offsetHeight;
}
posEnd = posBegin-1;
}
}
function WriteHeader(HeaderText)
{
//if ( flash6Installed )
//{

// ok to use flash
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"' +
'WIDTH="1004" HEIGHT="109" id="TopBar" ALIGN="">' +
'<PARAM NAME=movie VALUE="TopBar.swf?pageTitle=' + HeaderText + '&pageTitleShd=' + HeaderText + '">' +
'<PARAM NAME=quality VALUE=best>' +
'<PARAM NAME=scale VALUE=exactfit>' +
'<PARAM NAME=wmode VALUE=opaque>' +
'<PARAM NAME=bgcolor VALUE=#FFFFFF>' +
'<EMBED src="TopBar.swf" quality=best scale=exactfit wmode=opaque bgcolor=#FFFFFF WIDTH="1004"' +
'HEIGHT="109" NAME="TopBar" ALIGN="" swLiveConnect=true' +
'TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' +
'</OBJECT>');
//}
//else
//{
//// either no flash or too old. use gif.
//document.write('<img src="Graphics/TopBar.gif" style="z-index:1">' +
//'<div style="position:absolute;top:43px;left:239px;z-index:2;font-family:arial;font-weight:bold;font-size:32pt;color:white">' + HeaderText + '</div>');
//}
}

//Added this function 9-2-04
function ShowMouseHelp(HelpText)
{
//alert('clientX: ' + event.clientX + ', clientWidth: ' + document.body.clientWidth);
  MouseOverVisible = 1;
  if ((event.clientX+160) > document.body.clientWidth)
    tmpX = (document.body.clientWidth - 155);
  else
    tmpX = event.clientX;
  // if the page has been scrolled, move X over that far
  if (document.body.scrollLeft > 0)
    tmpX = tmpX + document.body.scrollTop;

  //alert('clientY: ' + event.clientY + ', divHeight: ' + document.getElementById("MouseHelp").clientHeight + ', clientHeight: ' + document.body.clientHeight);
  if ((event.clientY+document.getElementById("MouseHelp").clientHeight) > document.body.clientHeight)
    tmpY = (event.clientY - document.getElementById("MouseHelp").clientHeight - 10);
  else
    tmpY = event.clientY +5;
  // if the page has been scrolled down, move Y that far down
  if (document.body.scrollTop > 0)
    tmpY = tmpY + document.body.scrollTop;

    document.getElementById("MouseHelp").innerHTML = HelpText;
    document.getElementById("MouseHelp").style.left = tmpX;
    document.getElementById("MouseHelp").style.top = tmpY;
    document.getElementById("MouseHelp").style.visibility = "visible";
}

function HideMouseHelp()
{
    document.getElementById("MouseHelp").style.visibility = "hidden";
}