function CxpGlobalNav() {
  this.wrapper = $('nav-wrapper');
  this.init = function() {
    this.listitems = this.wrapper.getElementsByTagName("LI");
    for (var i=0;this.listitems[i];i++) {
      var item = this.listitems[i];
      item.alink = item.getElementsByTagName("A")[0];
      if (getNextElementSibling(item.alink) && getNextElementSibling(item.alink).className.indexOf("sub-menu") != -1) {
        item.submenu = item.getElementsByTagName("UL")[0];
        if (!IE && item.submenu.className.indexOf("level-one") != -1) {
          item.submenu.style.marginTop = "15px";
        }
        item.onmouseover = function() {
          if (!this.submenu.shadow && IE) {
            var iframe = document.createElement("IFRAME");
            iframe.style.position = "absolute";
            iframe.style.zIndex = parseInt(getStyle(this.submenu,"zIndex"))-1;
            iframe.style.width = parseInt(getStyle(this.submenu,"width")) + 2 + "px";
            iframe.style.height = this.submenu.offsetHeight + "px";
            iframe.style.visibility = "hidden";
            iframe.style.top = getStyle(this.submenu,"top");
            iframe.style.marginLeft = getStyle(this.submenu,"marginLeft");
            iframe.style.marginTop = getStyle(this.submenu,"marginTop");
            iframe.style.display="none";
            this.submenu.shadow = iframe;
            this.appendChild(iframe,this.submenu);
          }
          this.submenu.style.visibility = "visible";
          if (IE) {
            this.submenu.shadow.style.visibility = "visible";
            this.submenu.shadow.style.display="block";
          }
        }
        item.onmouseout = function() {
          if (this.submenu) {
            this.submenu.style.visibility = "hidden";
            if (IE && this.submenu.shadow) {
              this.submenu.shadow.style.visibility = "hidden";
            }
          }
        }
      }
    }    
  }
  if (this.wrapper) {
    this.init();
  }
}