function resizeDIVs( ) {

	var oFrame = document.getElementById( "frame" );
	var oNavigation = document.getElementById( "navigation" );
	var oTexts = document.getElementById( "texts" );

	if ( navigator.userAgent.indexOf( "Mac" ) != -1 
	  || navigator.userAgent.indexOf( "MSIE" ) != -1 ) { 
		oTexts.style.width = ( oFrame.clientWidth - 40 - 16 ) + "px";
		oNavigation.style.width = ( oFrame.clientWidth - 40 - 16 ) + "px";
	} else {
		oTexts.style.width = ( oFrame.clientWidth - 36 ) + "px";
		oNavigation.style.width = ( oFrame.clientWidth - 36 ) + "px";
	}
}

function initBackground( ) {

	var oFrame = document.getElementById( "frame" );
	var oImages = document.getElementById( "content-images" );
	var oNavigation = document.getElementById( "navigation" );
	var oTexts = document.getElementById( "texts" );

	var oOffset = document.getElementById( "text-offset" );
	var oText = document.getElementById( "content-text" );

	resizeDIVs( );

	var iScrollTop = getScrollTop( );
	var iClientHeight = getClientHeight( );

	if ( oText.clientHeight == 0 ) {
		oImages.style.paddingTop = ( oOffset.offsetTop + oText.clientHeight + 10 + 125 ) + "px";
	} else {
		oImages.style.paddingTop = ( oOffset.offsetTop + oText.clientHeight + 30 + 125 ) + "px";
	}

	oImages.style.paddingBottom = "30px";
//	if ( oImages.offsetHeight - ( oOffset.offsetTop + oText.clientHeight + 30 + 125 ) < oFrame.offsetHeight )
//		oImages.style.paddingBottom = Math.max( 0, iClientHeight - ( oImages.offsetHeight - ( oOffset.offsetTop + oText.clientHeight ) ) ) + 30 + "px";

	resizeDIVs( );

	setInterval( "frameScroll()", 20 );
}