function valignMiddle(){
	var imgHeight = 22;
	var windowHeight;
	var contentsHeight = 568;
	if (window.opera && window.opera.version() >= 9.5) {
		windowHeight = document.documentElement.clientHeight;
	} else {
		windowHeight = $(window).height();
	}
	var topPosition  = Math.floor((windowHeight - contentsHeight) / 2);
	if (windowHeight > contentsHeight) {
		$("#container").css({"top":topPosition});
	} else {
		$("#container").css("top","0px");
	}
}
$(window).resize(valignMiddle);
