  setHandler = function()
  {
    var tCountValidATags = 0;
    var tATags = document.getElementsByTagName("a");

    for (var i=0; i < tATags.length; i++)
    {
      var tClassName = tATags[i].className;
      if (tATags[i].className && tATags[i].className.indexOf("lev1") != -1)
      {
        tATags[i].onfocus = function()
        {
          this.parentNode.className += "isactive";
        }
        tATags[i].onblur = function()
        {
          this.parentNode.className = this.parentNode.className.replace(new RegExp("isactive\\b"), "");
        }
        tCountValidATags++;
      }
      if (tATags[i].className && tATags[i].className.indexOf("lev2") != -1)
      {
        tATags[i].onfocus = function()
        {
          this.parentNode.parentNode.parentNode.className += "isactive";
          this.parentNode.className += "mmhover";
        }
        tATags[i].onblur = function()
        {
          this.parentNode.className = this.parentNode.className.replace(new RegExp("mmhover\\b"), "");
          this.parentNode.parentNode.parentNode.className = this.parentNode.parentNode.parentNode.className.replace(new RegExp("isactive\\b"), "");
        }
      }
    }
  }

  if (window.attachEvent) {
    window.attachEvent("onload", setHandler);
  }

  if (window.addEventListener)  {
    window.addEventListener("load", setHandler, false);
  }


