/*
 * Navigation scripts to hide or show links
*/
var state = new Array();
var count = 0;

function hide(id, index) {
  if(state[index] == false)
  {    
    var thing = document.getElementById(id);  
    thing.style.display = 'none';

    state[index] = true;
  }
  else
  {
    var thing = document.getElementById(id);  
    thing.style.display = '';

    state[index] = false;
  }
}

function makeNav(link, id){
    state[count] = false;
    
    document.write("<a href=\"javascript: hide('" + id + "', '" + count + "'); \">" + link + "</a>");
    count++;
}


