window.onresize = onResize;

function onResize()
{
	var el = document.getElementById('flashcontent');

	if (navigator.appName.indexOf("Microsoft")!=-1) 
	{
		(document.body.offsetWidth < 800) ? el.style.width = 800 + 'px' : el.style.width = ( document.body.offsetWidth - 4 ) + 'px';
		(document.body.offsetHeight < 600) ? el.style.height = 600 + 'px' : el.style.height = ( document.body.offsetHeight - 4 ) + 'px';
		
	} 
	else 
	{
		(window.innerWidth < 800) ? el.style.width = 800 + 'px' : el.style.width = ( window.innerWidth - 4 ) + 'px';
		(window.innerHeight < 600) ? el.style.height = 600 + 'px' : el.style.height = ( window.innerHeight - 4 )+ 'px';
	}
}