AddIEHover = function(nav) {
  if (document.all&&document.getElementById(nav)) {
    var listitems = document.getElementById(nav).getElementsByTagName("LI");
    for (i = 1; i<listitems.length; i++) {
      listitems[i].onmouseover = function() {
        this.className += " over";
      }
      listitems[i].onmouseout = function() {
        this.className = this.className.replace(" over", "");
      }
    }
  }
}

PopupWindow = function (cssid) {
  if (document.all&&document.getElementById(cssid)) {
    var popuplink = document.getElementById(cssid).getElementsByTagName("A")[0];
    if(popuplink) {
      popuplink.onclick = function () {
        var newWin = window.open(popuplink.href,"","toolbar=no,location=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=400,height=300");
        return false;
      }
    }
  }
}

window.onload=function(){
  AddIEHover("nav");
  PopupWindow("printablelink");
  PopupWindow("printablelinktop");
}
