﻿//<!-- Hide script from for older browsers
var originalHeight, originalWidth
window.onresize = function(){ windowSizeResize();}

	function windowSizeLoad()
	{
		document.body.scroll="no";
		originalHeight = document.getElementById("childcontent").clientHeight;
		originalWidth = document.getElementById("childcontent").clientWidth;
		if (window.innerHeight) {
			if (document.getElementById("childcontent").clientHeight > window.innerHeight - 310) { 
				document.getElementById("childcontent").style.height=(window.innerHeight - 310) + "px";
				//document.getElementById("childcontent").style.width="840px";
			}
		} else {
			if (document.getElementById("childcontent").clientHeight > Layer1.clientHeight - 310) {
				document.getElementById("childcontent").style.height=(Layer1.clientHeight - 310) + "px";
				//document.getElementById("childcontent").style.width="840px";
			}
		}
	}

	function windowSizeResize()
	{
		if (window.innerHeight) {
			if (document.getElementById("childcontent").clientHeight > window.innerHeight - 310 || originalHeight > window.innerHeight - 310) {
				document.getElementById("childcontent").style.height=(window.innerHeight - 310) + "px";
				//document.getElementById("childcontent").style.width="840px";
			} else {
				document.getElementById("childcontent").style.height=originalHeight + "px";
				//document.getElementById("childcontent").style.width=originalWidth+"px";
			}
		} else {
			if (document.getElementById("childcontent").clientHeight > Layer1.clientHeight - 310 || originalHeight > Layer1.clientHeight - 310) {
				document.getElementById("childcontent").style.height=(Layer1.clientHeight - 310) + "px";
				//document.getElementById("childcontent").style.width="840px";
			} else {
				document.getElementById("childcontent").style.height=originalHeight+2 + "px";
				//document.getElementById("childcontent").style.width=originalWidth+2 + "px";
			}
		}
	}
// -->

