window.onresize = resize;
var glowny=document.getElementById("glowny");
window.onload=resize;
function resize(){
	if (typeof window.innerWidth!='undefined') {
		var winWidth = window.innerWidth;
		var winHeight = window.innerHeight;
	} else {
		if (document.documentElement && typeof document.documentElement.clientWidth!='undefined' && document.documentElement.clientWidth!=0) {
			var winWidth = document.documentElement.clientWidth;
			var winHeight = document.documentElement.clientHeight;
		} else {
			if (document.body && typeof document.body.clientWidth!='undefined') {
				var winWidth = document.body.clientWidth;
				var winHeight = document.body.clientHeight;
			}
		}
	}
		//glowny.style.height=glownyheight.toString()+"px";
	if(glowny.clientHeight<winHeight)
	glowny.style.height=winHeight+"px";
}
