$(document).ready(function(){

	doSlideBox();

	function doSlideBox() {
	
		var obj_left = Math.floor(($(window).width() - $("#Container").width()) / 2);
		var obj_top  = Math.floor(($(window).height() - $("#Container").height()) / 3.5);

		$("#Container").animate({
			"top": obj_top,
			"left": obj_left,
			queue: true,
			duration: 7000,
			easing: "easeOutCubic",
			complete: function(){}
		});
	}
		
	var resizeTimer = null;
	$(window).bind('resize', function() {
		if (resizeTimer) clearTimeout(resizeTimer);
		resizeTimer = setTimeout(doSlideBox, 100);
	});
});
