//This Runs in IE but not Firefox, because IE doesn't like the hover
//action on non <a> elements

//much of it was commented out in April 2009 because of some problems with IE8 - this is only temporary as
// it will need to change with a new design anyway

startList = function() {

if (document.all&&document.getElementById) {

navRoot = document.getElementById("leftmenu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if ((node.nodeName=="LI") || (node.nodeName=="li")) {
node.onmouseover=function() {

if (this.hasChildNodes()==true) {


       // if (this.firstChild.nextSibling.nextSibling) {
       // if (this.firstChild.nextSibling.nextSibling.style.display=="block") {
                 //don't do anything
                
               //  } else {
                
                // this.className+="hover-navigation";
                // } //display=block
                // } else {
                 this.className+="hover-navigation";
                                // } //if nextsibling
}

  }
  node.onmouseout=function() {
  this.className=this.className.replace("hover-navigation", "");
   }
   }
  }
 }
}
window.onload=startList;
