// Function to open the specified program page at the specified anchor
// Expands the program(s) in the program page.
function openProgramAnchor()
{
  // Read the URL to extract the program names.
  var progs = parseGetVars();

  if (progs) {
    // Expand the programs.
    for (var i in progs) {
      // The remove method is showing up as an element in the hash
      // array.  I cannot figure out why.  However, if I filter by
      // the value, I can prevent it from getting in the way.
      if (progs[i] == 1) {
        expandText(i, 'navy');
      }
    }
  }
}

// Add this function to the window's onLoad handler.
// If the caller passes program names, open them.
addLoadEvent(openProgramAnchor);
