    //<![CDATA[
      var currentMenuId = ''; 
      function startList(elem) {
      if (document.getElementById) {
        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 != "current") {
              this.className+=" over";
              if(elem == "nav") {
                document.getElementById(currentMenuId).className="";
              }
            }
          }
          node.onmouseout = function() {
            this.className="";
            this.className.replace(" over", "");
            if(document.getElementById(currentMenuId).className != "current") {
              document.getElementById(currentMenuId).className+="current";
            }
          }
         }
        }
       }
      }
      
      function getCurrentMenuId() {
      if (document.getElementById) {
        navRoot = document.getElementById("nav");
        for (i=0; i<navRoot.childNodes.length; i++) {
          node = navRoot.childNodes[i];
          if (node.nodeName=="LI") {
            if (node.className == "current") {
              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('nav');
        populateHBX();
      }

// Hover
sfHover = function() {
	var sfEls = document.getElementById("navbar").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



