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="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";
      iframeFix.style.zIndex = -1;

      active.appendChild(iframeFix);
*/    }
  }
}

var addEvent = function (obj, evType, fn)
{
	if (obj.addEventListener)
	{
		obj.addEventListener(evType, fn, true);
		return true;
	}
	else if (obj.attachEvent)
	{
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	}
	else
	{
		return false;
	}
}


addEvent(window, 'load', startList);
