var px = 5;//mehr=schneller
var timer;
function scrollDenDiv(val){
  clearTimeout(timer);
  d=document.getElementById('menu_punkte');
  y=d.scrollLeft;
  if(val==1)y-=px;
  if(val==2)y+=px;
  if(y<=d.scrollWidth-d.offsetWidth+px&&y>=0-px){
    d.scrollLeft=y;
    timer=setTimeout('scrollDenDiv('+val+')',10);
  }
  if(y<0||y>d.scrollWidth-d.offsetWidth){
    clearTimeout(timer);
  }
}
function go(a) {
  d=document.getElementById('menu_punkte').scrollLeft;
  self.location.href=a+d;
}
function menuPosi(posi) {
	document.getElementById('menu_punkte').scrollLeft=posi;
}
var hoehe;
function containerHeight(){
	// alle außer IE
	if (self.innerHeight){
		hoehe = self.innerHeight;
	}
	// IE 6 strict Mode
	else if (document.documentElement && document.documentElement.clientHeight)	{
		hoehe = document.documentElement.clientHeight;
	}
	// andere IE
	else if (document.body){
		hoehe = document.body.clientHeight;
	}
	if(hoehe>760) {
		c1 = document.getElementById("container_home");
		if(isNaN(c1)) {
			c1.style.minHeight=hoehe+"px";
		} else {
			document.getElementById("container").style.minHeight=hoehe+"px";
		}
	}
}
function BrowserDetection(){
  this.UA = navigator.userAgent.toLowerCase();
  if(this.UA.search(/opera/) != -1 || this.UA.search(/firefox/) != -1){
	d=document.getElementById("home");
	if(isNaN(d)) d.style.marginTop="23px";
	else document.getElementById("content").style.marginTop="21px";
  // Firefox
  }
  else {
	d=document.getElementById("banner_left");
	d.style.paddingBottom="8px";
	d.style.height="57px";
  }
}

