/*** Scripts for averi ***/

function seitedrucken() {
  window.print();
}

function highlightCurrentPageLink() {
  // Alle Links durchlaufen und pruefen: 
  var anzHrefs = document.getElementsByTagName("a").length;
  for (var i = 0; i <= anzHrefs - 1; i++) {
    // Link auf aktuelle Seite gefunden, also CSS umstellen auf aktiv:
    if (document.getElementsByTagName("a")[i].href == document.location.href) {
      var currentClassName = document.getElementsByTagName("a")[i].className;
      var newClassName = currentClassName.replace(/inaktiv/,"aktiv");
      document.getElementsByTagName("a")[i].className = newClassName;
    }
  }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/* (P) S.Ruby, averi */
