// JavaScript Document

//Function for select software list in the upper left corner

function select_software(item) {
  //alert("Going to: "+ item.value);
  if (item.value != '') {
    document.location.href = item.value;
  }
}

var overlist = new Array();
var outlist = new Array();
function executeMenuItem() {
  if(overlist.length > 0) {
    var tmpElement = overlist.shift();
    tmpElement.className+=" over";
  }
  if(outlist.length > 0) {
    var tmpElement = outlist.shift();
    tmpElement.className=tmpElement.className.replace(" over", "");
  }
}


startList = function() {
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("subMenu");
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        node.onmouseover=function() {
          if(true){//document.all){
            overlist.push(this);
            setTimeout("executeMenuItem()", 500);
          } else {
            this.className+=" over";
          }
          
        }
        node.onmouseout=function() {
          
          if(document.all){
            outlist.push(this);
            setTimeout("executeMenuItem()", 100);
          } else {
          	this.className=this.className.replace(" over", "");
          }
        }
      }
    }
  }
}
window.onload=startList;