
function Fensterhoehe(win) {  
    if (win == undefined) win = window;   
    if (win.innerHeight) {   
        return win.innerHeight;   
    }   
    else {   
        if ( win.document.documentElement && win.document.documentElement.clientHeight ) {   
            return win.document.documentElement.clientHeight;   
        }   
        return win.document.body.offsetHeight;   
    }   
} 

function contentResize(){	
	
	var windowHeight = Fensterhoehe();
		
	if ( windowHeight <= 908 ) { windowHeight = 908; }
	
	var headHeight = document.getElementById("head").offsetHeight;
	var naviHeight = document.getElementById("navi_left").offsetHeight;
	var bottomHeight = document.getElementById("bottom").offsetHeight;
	
	var totalHeight = headHeight + naviHeight + bottomHeight;
		
	var leftNavi=document.getElementById("navi_left");
	var content=document.getElementById("content");
	var rightNavi=document.getElementById("navi_right");	
		
	var wrapper_outer=document.getElementById("wrapper_outer");
	var wrapper=document.getElementById("wrapper");	
		
	newNaviHeight = windowHeight - headHeight - bottomHeight;
	newContentHeight = newNaviHeight - 16;
		
	leftNavi.style.height = newNaviHeight + 'px';
	content.style.height = newContentHeight + 'px';
	rightNavi.style.height = newNaviHeight + 'px';
		
	wrapper_outer.style.height = windowHeight + 'px';
	wrapper.style.height = windowHeight + 'px';
	
}

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21040058-1']);
_gaq.push(['_trackPageview']);
(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
	
