// JavaScript Document
var windowed = false;

$(document).ready(function(){ 
if (screen.availWidth > top.window.innerWidth || screen.availWidth > (document.body.offsetWidth + 20))
	{
	 // Windowed Mode
	 $('#logo').css({ top: "-120px" });
	 $('#menu_wrapper').css({ top: "3px" });
	 $('#menu').css({ width:"400px", "padding-top":"0px", "margin-left": "350px"});
	 $('#content_wrapper').css({"padding-top": "20px"});
         $('#content').css({"margin-left": "20px"});
	 
	 windowed = true;
	 
  }
  else { windowed = false; }
  
  $('a.current').css({"color": "#f00", "font-family": "arial", "background": "#000", "border": "solid 2px #c81010"});
  $('a.current').animate({ "font-size": "17pt" },'fast');
});

function resize()
{
  if (screen.availWidth > top.window.innerWidth || screen.availWidth > (document.body.offsetWidth + 20))
	{
	
	if ( !windowed )
	{
	 // Windowed Mode
	 $('#logo').animate({ top: "-120px" }, "slow");
	 $('#menu_wrapper').animate({ top: "3px" }, "slow");
	 $('#menu').animate({ width:"400px", "padding-top":"0px", "margin-left": "350px"}, "slow" );
         $('#content_wrapper').animate({"padding-top": "20px"}, "slow");
	 $('#content').animate({"margin-left": "20px"}, "slow");
	 	windowed = true;
	 }
  }
  else
  { 
	 // Fullscreen Mode
	 $('#logo').animate({ top: "0px" }, "slow");
	 $('#menu_wrapper').animate({top: "150px"}, "slow");  
         $('#menu').animate({ width:"100px", "padding-top":"40px", "margin-left": "0px"}, "slow" ); 
         $('#content_wrapper').animate({"padding-top": "120px"}, "slow");
	 $('#content').animate({"margin-left": "150px"}, "slow");
	 windowed = false;
	}
	
}