$(document).ready(function() {  
	
var offset = $('#content').offset();

var height = $(window).height();
var divHeight = $('#content').height();
var newHeight = (height - divHeight) / 2;
$("#content").css("position", "absolute");
$('#content').css("top", newHeight+"px");

$(window).resize(function() {
	
	var height = $(window).height();
	
	var newHeight = (height - 200) / 2;
	$('#content').css("top", newHeight+"px");
	
	});

});
/*

$(document).ready(function() {  

	var newHeight = (($(window).height() - $("#content").offset().top) / 2) - $("#content").height();
	$('#content').css("margin-top", newHeight+"px");
	
	$(window).resize(function() {
		
	var newHeight = (($(window).height() - $("#content").offset().top) / 2) - $("#content").height();
	$('#content').css("margin-top", newHeight+"px");
		
	});
});*/
