window.onload = function () {
	
	$("#content").hide();

	if ($("a.start_center").length > 0) {
	
		var surl = $("a.start_center").attr("href");
		$(".timeout").hide();
		$(".timeout").fadeIn(3000, function(){
			window.location.href = surl;
		});
	}

	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;	
	
	
	if ($(".resize").length > 0) {
		var img_w = $(".resize").width();
		var img_h = $(".resize").height();					
		$("#content").css({"width": parseInt(w - img_w - 120)+"px"});
	} else {
		$("#content").css({"width": parseInt(w - 160)+"px"});
	}

	var c_h = $("#content").height();
	var c_padding = parseInt((h-c_h)/2 -45 );
	if (c_padding < 85) {c_padding = 85;}

	$("#content").css({ "padding-top": c_padding+"px","position": "static", "opacity": 0 });	
	$("#content").show();
	
	$("#content").animate({ opacity: 1 }, 1250);   
	
};	