$(document).ready(function(){



// Set the size of elements
	var logo_height = 35;
	var wrapper_space = 10;
	var browser_width = $(document).width();
	var browser_height = $(document).height();
	var wrapper_height = parseInt(browser_height) - parseInt(wrapper_space);
	var wrapper_width = parseInt( ( parseInt(wrapper_height) - parseInt(logo_height) )*1.5 );
	var wrapper_margin = parseInt( (parseInt(browser_height) - parseInt(wrapper_height))/2 );
	var content_height = parseInt(wrapper_height) - parseInt(logo_height);
	$("#wrapper").css({"height": wrapper_height, "width": wrapper_width, "margin-top": wrapper_margin});
	$("#logo").css({"height": logo_height, "width": wrapper_width});
	$("#content").css({"height": content_height, "width": wrapper_width});
// Done

// JS for menu and related items
	$("#announcement").hide();
	$("#contact").hide();

	var menu_status = 1;
	$("#logo").mouseenter(function(){
		if ( menu_status == 1 ) {
			$("#menu_wrapper").animate({"top": logo_height}, 150);
		};
	});
	$("#menu_wrapper").mouseleave(function(){
		menu_status = 0;
		$("#menu_wrapper").animate({"top": -150}, 150, "linear", function(){
			menu_status = 1;
		});
	});

	$("#announcement_on").click(function(){
		$("#menu").fadeOut(100, function(){
			$("#announcement").fadeIn(100);
		});
	});
	$("#announcement_off").click(function(){
		$("#announcement").fadeOut(100, function(){
			$("#menu").fadeIn(100);
		});
	});

	$("#contact_on").click(function(){
		$("#menu").fadeOut("fast", function(){
			$("#contact").fadeIn("fast");
		});
	});
	$("#contact_off").click(function(){
		$("#contact").fadeOut("fast", function(){
			$("#menu").fadeIn("fast");
		});
	});
// Done



});
