function autoColHeight() {
     
  var maxHeight = 0;
  var navBarHeight = document.getElementById('NavBar').offsetHeight;
  var contentHeight = document.getElementById('ContentHeadline').offsetHeight + document.getElementById('ContentText').offsetHeight + 14;
  var picBarHeight = document.getElementById('PicBar').offsetHeight;
        
  if (navBarHeight > contentHeight) {
     maxHeight = navBarHeight;
  } else {
    maxHeight = contentHeight;
  }
        
  if (picBarHeight > maxHeight) {
    maxHeight = picBarHeight;
  }
        
  /*ausgleich für NavBar-Abschluss*/
  maxHeight = maxHeight - 2;
        
  /*height+top+margin-left, damit rand unten = rand li/re*/        
  document.getElementById('Main').style.height = maxHeight + 195 + "px";
  document.getElementById('NavBar').style.height = maxHeight + 20 + "px";
  document.getElementById('Content').style.height = maxHeight + 20 + "px";
  document.getElementById('PicBar').style.height = maxHeight + 20 + "px";
        
}     
           
function buttonHover(pic, event, isCurrentPage) {
        
  if (isCurrentPage == false) {
        
    var fullPath, newPath;                
        
    fullPath = document[pic].src;

    if (fullPath.match(/aktiv/g) && event != 'onmouseover') {
      newPath = fullPath.replace(/_aktiv/g, "");        
    } else {
      newPath = fullPath.replace(/buttons/, "buttons_aktiv");
    }

    document[pic].src = newPath;
  }
}