<!--

  // window.onload = init;

  var intervalID;
  var scroll = false;
  var faktor = 0;
  var minY   = 0;
  var maxY   = 0;
  var curPosition      = 0;
  var scrContentHeight = 0;
  var scrContainHeight = 0;
  
  function init(){
    if ( document.getElementById ) {
		
	  // ScrollContent ##########################
	  scrContentHeight = parseInt(document.getElementById("contentEnde").offsetTop) - parseInt(document.getElementById("contentStart").offsetTop);
	  scrContainHeight = parseInt(document.getElementById("content").style.height);
	  minY = 0;
	  maxY = (scrContentHeight-scrContainHeight) * -1;
	  
	  if (scrContentHeight < scrContainHeight) {
		  document.getElementById("copyNav").style.visibility="hidden"; 
	  } else {
		  document.getElementById("copyNav").style.visibility="visible"; 
	  }
	  
    } else { browserError(); }
  }
  
  function startScroll(direction) {
	if ( document.getElementById ) {
	  if (scroll) { window.clearInterval(intervalID); scroll = false; }	
	  faktor = (direction)?direction:faktor;
	  scroll = true;
	  intervalID = window.setInterval("slideY()",100);
	} else { browserError(); }
  }
  
  function slideY() {
    scroller = document.getElementById("inner");
	if ( document.getElementById ) {
	  if ( curPosition > maxY && faktor==-1 ) {
	    curPosition += (faktor*10);
		scroller.style.margin = curPosition + "px 0px 0px 0px";
      } else if ( curPosition < minY && faktor==1 ) {
	    curPosition += (faktor*10);
		scroller.style.margin = curPosition + "px 0px 0px 0px";     
	  } else {
	    window.clearInterval(intervalID);
		scroll = false;
	  }
	} else { browserError(); }
  }
  
  function stopScroll() {
	if ( document.getElementById ) {
	  if (scroll) { window.clearInterval(intervalID); }
	} else { browserError(); }
  }  
  
  function scrollToTop() {
    if (document.getElementById) {
	  curPosition = minY;
	  document.getElementById("inner").style.margin = curPosition + "px 0px 0px 0px";	} else { browserError(); }
  }	
	
  function toBottom() {
    if (document.getElementById) {
	  curPosition = (scrContentHeight-scrContainHeight) * -1;
	  document.getElementById("inner").style.margin = curPosition + "px 0px 0px 0px";
	} else { browserError(); }
  }
  
  function browserError() {
    alert("Diverse JavaScript-Funktionen werden von Ihrem Browser nicht unterstuetzt!");
  }
  
  function goBack() {
    history.back();
  }
  
// -->
