// JavaScript Document

window.onload = checkforScrollbar;
window.onresize = checkforScrollbar;

function getWindowHeight() {
	var windowHeight=0;
	if (typeof(window.innerHeight)=='number') {
		windowHeight=window.innerHeight;
	} else {
		if (document.documentElement&&
			document.documentElement.clientHeight) {
			windowHeight=
			document.documentElement.clientHeight;
		} else {
			if (document.body&&document.body.clientHeight) {
				windowHeight=document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}


function checkforScrollbar() {
	if (document.getElementById) {
		var windowHeight=getWindowHeight();
		if (windowHeight<600) {
			document.getElementById('flash').style.height='600px';
			document.getElementById('contentcontainer').style.overflow='auto';
			document.getElementById('contentcontainer').style.overflowX='hidden';
		} else {
			document.getElementById('flash').style.height='100%';
			document.getElementById('contentcontainer').style.overflow='hidden';
		}
	}
}
