

 
function setFlashHeight(h)
{
	flashStageHeight = h;
	if (jQuery(window).height() > h)
	{
		jQuery("html").height('100%');
		jQuery("body").height('100%');
		jQuery("#flashcontent").height('100%');
		jQuery("#flashswf").height('100%');
	}
	else
	{
		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);
	}
}

function setFlashY(h)
{
	jQuery.scrollTo(h, 1000);
}

jQuery(window).resize(function()
{
	setFlashHeight(flashStageHeight);
	setFlashWidth(980);
});

jQuery(document).ready(function() {
	setFlashHeight(580);
	setFlashWidth(980);
});



