/* onLoadPage */
function onLoadPage() {
	searchBlurFMZ();
	//try {
	//	var testBilderstrecke = document.getElementById( 'bilderstrecke' ).style.width;
	//	initBS();
	//} catch( e ) { }
	setBarsFMZ();
}

/* Linke, Rechte Spalte einfaerben */
function setBarsFMZ() {
	var barsHeight = document.getElementById( 'main' ).offsetHeight;
	var windowHeight = document.documentElement.clientHeight;
	windowHeight = windowHeight - 255; /* FmZ header */
	windowHeight = windowHeight - 37;  /* FmZ topNav */
	if( document.getElementById( 'left' ).offsetHeight > barsHeight ) {
		barsHeight = document.getElementById( 'left' ).offsetHeight;
	}
	if( document.getElementById( 'right' ).offsetHeight > barsHeight ) {
		barsHeight = document.getElementById( 'right' ).offsetHeight;
	}
	if( document.getElementById( 'contentBox' ).offsetHeight > barsHeight ) {
		barsHeight = document.getElementById( 'contentBox' ).offsetHeight;
	}
	if( windowHeight > barsHeight ) {
		barsHeight = windowHeight;
	}
	document.getElementById( 'nav' ).style.height = barsHeight + 'px';
	document.getElementById( 'right' ).style.height = barsHeight + 'px';
	document.getElementById( 'contentBox' ).style.height = ( barsHeight - 20 ) + 'px';
}

