

 
function setFlashHeight(h)
{
	flashStageHeight = h;
	if (jQuery(window).height() > h)
	{
		jQuery("html").height('100%');
		jQuery("body").height('100%');
		jQuery("html").css('overflow', 'hidden');
		jQuery("#flashcontent").height('100%');
		jQuery("#flashswf").height('100%');
	}
	else
	{
		jQuery("html").height('auto');
		jQuery("body").height('auto');
		jQuery("html").css('overflow', 'visible');
		jQuery("#flashcontent").height(h);
		jQuery("#flashswf").height(h);
	}
}

function setFlashWidth(w)
{
	flashStageWidth = w;
	if (jQuery(window).width() > w)
	{
		jQuery("#flashcontent").width('100%');
		jQuery("#flashswf").width('100%');
	}
	else
	{
		jQuery("#flashcontent").width(980);
		jQuery("#flashswf").width(980);
	}
}

jQuery(window).resize(function()
{
	setFlashHeight(flashStageHeight);
	setFlashWidth(980);
});

jQuery(document).ready(function() {
	setFlashHeight(650);
	setFlashWidth(980);
});



