// JavaScript Document
function windowHeight(){
	var h = 0;

	//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;
	}
	
	var offsetTop;
	if(h > 550){
		offsetTop = Math.round((h - 550)/2);
	} else{
		offsetTop = 0;
	}
	
	document.getElementById("container").style.top = offsetTop + "px";
	return h;
}
