function menuvertIE() {
  var menuRoot, node, subnode, i, j;
  menuRoot = document.getElementById("menue_vert");
  for (i=0; i<menuRoot.childNodes.length; i++) {
    node = menuRoot.childNodes[i];
    if (node.nodeName == "UL") {
      for (j=0; j<node.childNodes.length; j++) {
        subnode = node.childNodes[j];
        if (subnode.nodeName == "LI") {
          subnode.onmouseover=function() {
            this.className+=" over";
          }
          subnode.onmouseout=function() {
            this.className=this.className.replace(" over", "");
          }
        }
      }
    }
  }
}
 
function menuhorizIE() {
  var menuRoot, node, NewNode, i;
  menuRoot = document.getElementById("menue_horiz").childNodes[0];
  for (i=0; i<menuRoot.childNodes.length; i++) {
    node = menuRoot.childNodes[i];
    if (node.nodeName == "LI") {
      if ((node.className != "letztes") && (node.className != "sitemap")) {
        newNode = document.createTextNode(" | ");
        node.appendChild(newNode, node.firstChild);
      }
    }
  }
}
 
function newsboxIE() {
  var menuRoot, node, subnode, i, j;
  menuRoot = document.getElementById("box_platzhalter");
  for (i=0; i<menuRoot.childNodes.length; i++) {
    node = menuRoot.childNodes[i];
    if (node.nodeName == "UL") {
      for (j=0; j<node.childNodes.length; j++) {
        subnode = node.childNodes[j];
        if (subnode.nodeName == "LI") {
          subnode.onmouseover=function() {
            this.className+=" over";
          }
          subnode.onmouseout=function() {
            this.className=this.className.replace(" over", "");
          }
        }
      }
    }
  }
}
 
function sitehistoryIE() {
  var menuRoot, node, newNode, i;
  menuRoot = document.getElementById("sitehistory").childNodes[0];
  for (i=0; i<menuRoot.childNodes.length; i++) {
    node = menuRoot.childNodes[i];
    if ((node.nodeName == "LI") && (node.className != "erstes")) {
        newNode = document.createTextNode(" » ");
        node.insertBefore(newNode, node.firstChild);
    }
  }
}
 
function linksIE() {
  var node, newNode, i;
  hoverImg = document.createElement("img");
  hoverImg.src = "http://www.rub.de/aww/img/ul_hover.png";
  normalImg = document.createElement("img");
  normalImg.src ="http://www.rub.de/aww/img/ul_normal.png";
  for (i=0; i<(document.links.length - 5); ++i) {
    node = document.getElementsByTagName("a")[i];
    switch (node.className) {
      case "betont":
        node.firstChild.data = " " + node.firstChild.data;
        newNode = document.createElement("img");
        newNode.src = "http://www.rub.de/aww/img/ul_normal.png";
        node.insertBefore(newNode, node.firstChild);
        node.onmouseover=function() {
          this.replaceChild(hoverImg, this.firstChild);
        }
        node.onmouseout=function() {
          this.replaceChild(normalImg, this.firstChild);
        }
        break;
      case "acrobat":
        node.firstChild.data = " " + node.firstChild.data;
        newNode = document.createElement("img");
        newNode.src = "http://www.rub.de/aww/img/acrobat.png";
        node.insertBefore(newNode, node.firstChild);
        break;
    }
  }
}
 
 
fixIE = function() {
  if ((document.all) && (document.getElementById) && (!(window.XMLHttpRequest))) {
    menuvertIE();
    menuhorizIE();
    sitehistoryIE();
    linksIE();
    newsboxIE();
  }
}
 
window.onload=fixIE;

