    //<![CDATA[
      var currentMenuId = ''; 
      function startList(elem) {
		navRoot = document.getElementById(elem);
        for (i=0; i<navRoot.childNodes.length; i++) {
          node = navRoot.childNodes[i];
          if (node.nodeName=="LI") {
          node.onmouseover = function() {
            if(this.className.indexOf("current") == -1) {
              this.className+=" over";
              if(elem == "menuElem") {
				  if (document.getElementById(currentMenuId)) {
					document.getElementById(currentMenuId).className = document.getElementById(currentMenuId).className.replace(" current", "");
				  }
              }
            }
          }
          node.onmouseout = function() {
            //alert(this.className);
			//this.className = "";
            this.className = this.className.replace(" over", "");
				  if (document.getElementById(currentMenuId)) {
            if(document.getElementById(currentMenuId).className.indexOf("current") == -1) {
              document.getElementById(currentMenuId).className += " current";
            }
				  }
          }
         }
        }
      }
      
      function getCurrentMenuId() {
      if (document.getElementById) {
        navRoot = document.getElementById("menuElem");
        for (i=0; i<navRoot.childNodes.length; i++) {
          node = navRoot.childNodes[i];
          if (node.nodeName=="LI") {
            if (node.className.indexOf("current") != -1) {
              currentMenuId = node.id;
            }
          }
        }
       }
      }
      function test(id) {
        if(document.getElementById(id)) {
        }
      }
      
      function validateSearch(form) 
      {
        if(form.name.value == 'Enter keyword or domain' || form.name.value.length < 2) {
          namefield = document.getElementById('nameid');
          namefield.style.background = '#fcc'
          return false;
        }
        return true;
      }
      
      populateHBX = function() {
        if (document.getElementById) {
                    nodes = document.getElementsByTagName("LI");
          for (i=0; i<nodes.length; i++) {
            node = nodes[i];
            if(i < 5) {
            }
            if(node.id.indexOf("menu") == 0) {
              for (q=0; q<node.childNodes.length; q++) {
                child = node.childNodes[q];
                if (child.nodeName=="A") {
                  if(child.innerText) {
                    text = child.innerText;
                  } else {
                    text = child.textContent;
                  }
                  child.setAttribute('hbxrootmenuid','//'+text.replace(" ",""));
                }
              }
            }
          }
        }
      }
      
      window.onload = function()
      {
        getCurrentMenuId();
        startList('menuElem');
        populateHBX();
      }


