


var fullscreen_css = false;
var fullscreen_min_width = 900;
var fullscreen_min_height = 580;


function loadFullscreenCSS(bool)
{
	fullscreen_css = true;
}


function resizeactions()
{

	if (fullscreen_css)
	{
		
		var is_too_small = false;
		
		jQuery("body").css("margin","0");
		jQuery("body").css("padding","0");
		
		// Width
		if (jQuery(window).width() < fullscreen_min_width)
		{
			is_too_small = true;
			jQuery("#flashcontent").css("width",fullscreen_min_width+"px");
		}
		else
		{
			jQuery("#flashcontent").css("width","100%");
		}
		
		// Height
		if (jQuery(window).height() < fullscreen_min_height)
		{
			is_too_small = true;
			jQuery("#flashcontent").css("height",fullscreen_min_height+"px");
			jQuery("html").css("height","auto");
			jQuery("body").css("height","auto");
		}
		else
		{
			jQuery("#flashcontent").css("height","100%");
			jQuery("html").css("height","100%");
			jQuery("body").css("height","100%");
		}
		
		// Height and Width
		if (!jQuery.browser.mozilla)
		{
			if (is_too_small)
			{
				jQuery("html").css("overflow","visible");
			}
			else
			{
				jQuery("html").css("overflow","hidden");
			}
		}
		
	}
}


jQuery(document).ready(function(){
	
	resizeactions();
	jQuery(window).resize(resizeactions);
	
});


