﻿function animateFullscreenLayer()
{
	// Needed to reset later on (use values from the CSS)

	var fullscreenLayer = $('#fullscreenflashcontent');
	var flash = $('#fullscreenflashcontent');;
	var winWidth = $(document).width();
	var winHeight = $(document).height();

	$('body').css('overflow','hidden');
	flash = $('#bro_go');
	flash.css('display','none');

	fullscreenLayer.animate(
		{
			width:winWidth,
			marginLeft:-(winWidth/2)
		},
		700,
		function()
		{
			fullscreenLayer.animate(
				{
					top:0,
					height:winHeight
				},400,
				function()
				{
					flash.css({display:'block',opacity:'0'});
					flash.fadeTo(3000,1);
					fullscreenLayer.css({left:'0',marginLeft:'0',width:winWidth,height:winHeight});
				});
		}
	);
	
	return false;
}


$(function() {

});