var myWidth = -1;
var myHeight = -1;
count = 0;

function captureResize()
{
	
	var myCurrWidth = 0;
	var myCurrHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' )
	{
	    myCurrWidth = window.innerWidth;
	    myCurrHeight = window.innerHeight;
	}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
	    myCurrWidth = document.documentElement.clientWidth;
	    myCurrHeight = document.documentElement.clientHeight;
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
		myCurrWidth = document.body.clientWidth;
		myCurrHeight = document.body.clientHeight;
	}
	
	
	if(myCurrWidth != myWidth || myHeight != myCurrHeight || myWidth == -1 || count < 12)
	{
	    
		myWidth = myCurrWidth;
		myHeight = myCurrHeight;
		
		var homeSwf = document.getElementById('homeSwf');
		var footer_wrap = document.getElementById('footer_wrap');
	
		var flashHeight = 490;
	
		var cHeight = (myWidth * (flashHeight/1000) );
	
		if(homeSwf)
		{
			homeSwf.style.top = '80px';
			homeSwf.style.width = (myWidth - 36) + 'px';
			homeSwf.style.height = cHeight + 'px';
		
			homeSwf.style.left = '18px';
			footer_wrap.style.top = (cHeight + 80) + 'px';
		}
	}
	
	count++;
}


setInterval('captureResize()',750);