var startList = function()
{
  if (document.all&&document.getElementById)
  {
    var navDiv = document.getElementById("navigation");

    if(navDiv==null){
      return false;
    }

    var navRoot = navDiv.getElementsByTagName("ul")[0];
    if (navRoot && navRoot.childNodes) {
      for (var i=0; i<navRoot.childNodes.length; i++)
      {
        var node = navRoot.childNodes[i];
        if (node.nodeName=="LI")
        {
          node.onmouseover=function() {
            this.className+=" over";

        /* only "active" lis can drop down */
            if (this.id == "active") {
              window.focus();
            }
          }
          node.onmouseout=function() {
            this.className=this.className.replace(" over", "");
          }
        }
      }
      var active = document.getElementById("active");
      var activeDiv = active.getElementsByTagName("div");
      if(activeDiv.length == 1){ activeDiv = activeDiv[0]; }
      else{ return; }
      var iframeFix = document.createElement("iframe");
      iframeFix.frameBorder = "0";
      iframeFix.src="https://www.enterprise.com/content/car_rental/images/dotBlank.gif";

      var ob = document.getElementById('activeUL');
      var h = 3;
      for (i = 0; i < ob.childNodes.length; i++) {
        h += 20;
      }
      iframeFix.style.height=h+"px";

      active.appendChild(iframeFix);
    }
  }
}

addEvent(window, 'load', startList);


function init_navigation()
{
// hides the submit button if javascript is enabled.
  if(document.forms["localeForm"].elements["changeButton"] != undefined)
  {
    document.forms["localeForm"].elements["changeButton"].style.visibility = "hidden";
  }
}
