var reagera = {
	resizeTimer : null,
	init : function () {
		this.setTopMargin();
		this.fontreplace();
		this.resizeWindow();
	},
	setTopMargin : function () {
		$("#pagewrap").css("margin-top", (($(document).height() - 575) / 2) + "px");
	},
	resizeWindow : function () {
		$(window).bind('resize', function() {
	    if (reagera.resizeTimer) clearTimeout(reagera.resizeTimer);
	    	reagera.resizeTimer = setTimeout(reagera.setTopMargin, 100);
		});
	},
	fontreplace : function () {
		Cufon.replace('.js .gotham', { fontFamily: 'Gotham'});
		Cufon.CSS.ready(function() {
			$(".gotham").show();
		})
	}
};
$(document).ready(function() {
	reagera.init();
});

