// Initialize events that must load after page contents

var init = function ()
{
	$("#messageBox").each( function ()
	{
		var marginleft = (-1*($(this).width()/2))+"px";
		$(this).css({"margin-left" : marginleft, "left" : "50%", "top" : "0"});
	});
	setTimeout("$('#messageBox').fadeOut()", 4000);
	hoverInit();
	$(".MenuButton").hover(function()
	{
		$(this).css("background-color", "#4b0a1d");
	},
	function()
	{
		$(this).css("background-color", "");
	});
}

window.onload = init;
