function setTimer()
{
	resizeTimer = setTimeout("sizeCheck()", 40);
}

function sizeCheck()
{
	if(typeof(window.innerWidth) == 'number') //window.innerWidth is not supported by IE browsers
	{
		windowWidth = window.innerWidth;
	} 
	else if(document.documentElement && document.documentElement.clientWidth) //documentElement seems to be used by IE
	{
		windowWidth = document.documentElement.clientWidth;
	} 
	else if(document.body) //IE 4 and 5 can use document.body to determine window size
	{
		windowWidth = document.body.clientWidth;
	}	
	
	
	if(typeof(window.innerHeight) == 'number') //window.innerWidth is not supported by IE browsers
	{
		windowHeight = window.innerHeight;
	} 
	else if(document.documentElement && document.documentElement.clientHeight) //documentElement seems to be used by IE
	{
		windowHeight = document.documentElement.clientHeight;
	} 
	else if(document.body) //IE 4 and 5 can use document.body to determine window size
	{
		windowHeight = document.body.clientHeight;
	}	
	
	if(windowHeight < 625 || windowWidth < 937)
	{	
		if(windowWidth/windowHeight > 1.4992) //if the height of the window relative to the height of the movie is smaller than widths
		{
			document.getElementById('rustymoo').height = windowHeight;
			document.getElementById('rustymoo').width = Math.round(windowHeight*1.4992);	
			
			document.getElementById('flashCell').style.height = windowHeight;
			document.getElementById('flashCell').style.width = Math.round(windowHeight*1.4992);	
			
			if(typeof(window.innerHeight) == 'number') //using this to filter out IE
			{
				document.getElementById('rustymooembed').height = windowHeight;
				document.getElementById('rustymooembed').width = Math.round(windowHeight*1.4992);
			}
		}
		else //as above comment but swap height/width
		{
			document.getElementById('rustymoo').height = Math.round(windowWidth/1.4992);
			document.getElementById('rustymoo').width = windowWidth;	
			
			document.getElementById('flashCell').style.height = Math.round(windowWidth/1.4992);
			document.getElementById('flashCell').style.width = windowWidth;	

			if(typeof(window.innerWidth) == 'number') //using this to filter out IE
			{
				document.getElementById('rustymooembed').height = Math.round(windowWidth/1.4992);
				document.getElementById('rustymooembed').width = windowWidth;
			}
		}
	}
	else
	{
		document.getElementById('rustymoo').height = 625;
		document.getElementById('rustymoo').width = 937;	
		
		document.getElementById('flashCell').style.height = 625;
		document.getElementById('flashCell').style.width = 937;	

		if(typeof(window.innerWidth) == 'number') //using this to filter out IE
		{
			document.getElementById('rustymooembed').height = 625;
			document.getElementById('rustymooembed').width = 937;
		}
	}
	
	setTimer();
}