// JavaScript Document
function windowHeight(){
	var h = 0;
	var container = document.getElementById("container");
	//IE
	if(!window.innerWidth){
		//strict mode
		if(!(document.documentElement.clientWidth == 0)){
			h = document.documentElement.clientHeight;
		}
		//quirks mode
		else{
			h = document.body.clientHeight;
		}
	}
	//w3c
	else{
		h = window.innerHeight;
	}
	if(h > 684){
		container.style.top = Math.round((h - container.offsetHeight)/2) + "px";
	}else
		container.style.top = "0px";
	return h;
}
