// JavaScript Document
/*
function setLayout()
{
	// schoolbord repeat
	var divStaticObj = document.getElementById("bodyBackgroundSchoolbord");  
	var divRepeatObj = document.getElementById("bodyBackgroundSchoolbordRepeat");  
	var contentHeight = document.getElementById("bodyScroll").scrollHeight; 
	var windowHeight = getWindowHeight();
	var newRepeatHeight = 0;
	
	
	
	if((windowHeight + document.getElementById("bodyScroll").scrollTop) > divStaticObj.offsetHeight)
	{
		var newRepeatHeight = windowHeight + document.getElementById("bodyScroll").scrollTop - divStaticObj.offsetHeight;
	}

	divRepeatObj.style.height = newRepeatHeight + 'px';
	
	// gradient align bottom
	var divGradientVertObj = document.getElementById("bodyBackground");  
	var divGradientHorObj = document.getElementById("bodyBackgroundGradientHorizontal");  
	divGradientVertObj.style.top =  (document.getElementById("bodyScroll").scrollTop) + 'px';
}
*/

function getWindowHeight()
{
	var windowHeight = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
	return windowHeight;
}