/*
window.onload = function() {
  if (document.getElementById('text')) {
    var el = document.getElementById('text').getElementsByTagName('div');
    for (i = 0; i < el.length; i++)
    {
      if (location.hash != '#'+el[i].id)
      {
        el[i].className = "hide";
      }

      document.getElementById('tab'+el[i].id).onclick = function() {
        showText(this.id.substring(3));
        this.className = 'on';
        location.hash = this.id.substring(3);
        return false;
      }


    }
  }
}

function showText(id) {
  if (document.getElementById('text')) {
    var el = document.getElementById('text').getElementsByTagName('div');
    for (i = 0; i < el.length; i++) {
      el[i].className = (el[i].id == id ? "" : "hide");
      document.getElementById('tab'+el[i].id).className = "";
    }
  }
}*/
