appeardisplay = 'block';
disappeardisplay = 'none';

function makeVisible(tableid) {

  var thistable;
  var othertable;

  thistable = document.getElementById(tableid).style;

  if(tableid == "2007schedCurrent")
    othertable = document.getElementById("2008sched").style;
  else
    othertable = document.getElementById("2007schedCurrent").style;

  thistable.display = appeardisplay;
  othertable.display = disappeardisplay;

}

appear = "visible";
disappear = "hidden";

function showMenu(menuid) {

  var thistable;

  thistable = document.getElementById(menuid).style;
  thistable.visibility = appear;

}

function hideMenu(menuid) {

  var thistable;

  thistable = document.getElementById(menuid).style;
  thistable.visibility = disappear;

}

appeardisp = 'block';
disappeardisp = 'none';

function swapProfile(tableidIn) {

  var thistableid;
  var othertableid;

  thistableid = tableidIn;

  if(thistableid == "stateRankings")
    othertableid = "regionalRankings";
  else if(thistableid == "regionalRankings")
    othertableid = "stateRankings";
  else if(thistableid == "countdownOver")
    othertableid = "countdownClock";
  else if(thistableid == "2007schedCurrent")
	othertableid = "2007schedPast";
  else if(thistableid == "2007schedPast")
	othertableid = "2007schedCurrent";
  else if(thistableid == "2006schedcurrent")
        othertableid = "2006schedpast";
  else if(thistableid == "2006schedpast")
        othertableid = "2006schedcurrent";

  othertable = document.getElementById(othertableid).style;
  othertable.display = disappeardisp;

  thistable = document.getElementById(thistableid).style;
  thistable.display = appeardisp;

}