var wait;
document.scrollHeight = 0+"px";

function setheight() {
	if (wait)
		clearTimeout(wait);
	var ls1= document.getElementById('ls1');
	var ls2= document.getElementById('ls2');
	var ls3= document.getElementById('ls3');
	var ls4= document.getElementById('ls4');
	var ls5= document.getElementById('ls5');
	var cont = document.getElementById('content');
	var unten = document.getElementById('aussen');
		//var hoehecontent = doucument.cont.style.height;
	var nav_bottom = document.getElementById('content_navigation');
	wait = setTimeout(setFooter2,10);
	
	function setFooter2() {
		var docHeight1 = document.documentElement.clientHeight;	//H�he des Bowserfensters
		var docHeight2 = document.documentElement.scrollHeight;//h�he des Contents
		var breite = document.documentElement.clientWidth;
		
		var breite2 = breite - 630;	
		var hoehe = document.getElementById("content").style.height;
		//var unten2 = unten.style.bottom;
		
		var docHeight = (docHeight1 > docHeight2) ? docHeight1 : docHeight2;
		
		ls1.style.height = docHeight + 'px';
		ls2.style.height = docHeight + 'px';
		ls3.style.height = docHeight + 'px';
		ls4.style.height = docHeight + 'px';
		ls5.style.height = docHeight + 'px';
		nav_bottom.style.width = breite2 + 'px';
		nav_bottom.style.bottom =0 + 'px';
		
		/*sichtbarer Innenbereich	*/	
		if  (docHeight2 > docHeight1) {			//Browserfenster gr��er content
		//unten = (docHeight1-docHeight2);
		//unten2 = -unten;
			//nav_bottom.style.bottom =unten2+ 'px';
			//alert ("gr��er");
				}else{
					//alert ("kleiner");

					//nav_bottom.style.bottom =0+ 'px';
					}

	}
}

window.onload  = setheight;
window.onresize = setheight;
window.onscroll = setheight;


