$(document).ready(function() {
	
	window.onload = function() {getWinHeight();}
	
	$(window).bind("resize", function() {getWinHeight();});
	
	function getWinHeight(){
		if (jQuery.browser.msie) {
	        winHeight = document.documentElement.offsetHeight;
			winWidth = document.documentElement.offsetWidth;
	    } else {
	        winHeight = window.innerHeight;
			winWidth = window.innerWidth;
	    }
 
		newValue = (winHeight - 620)/2; // -320px: height of the content; -300px: height of the background
			
		if (newValue > 0 ) {
			$('#content').css('top', newValue + 'px');
		} else {
			$('#content').css('top',  '0px');
		}
		
		
	}
	
	
	
	
});
