/*
 * Enforce a minimum size for the SWFObject so that scrollbars appear on smaller browsers.
 * 
 */
function setFlashSize( containerID, flashWidth, flashHeight )
{
	window.onresize = function() {
		var size = [0,0];
		
		if( typeof( window.innerWidth ) == 'number' ) {
			size = [window.innerWidth, window.innerHeight];
		} 
		else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			size = [document.documentElement.clientWidth, document.documentElement.clientHeight];
		} 
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 
			size = [document.body.clientWidth, document.body.clientHeight];
		}
		
		document.getElementById( containerID ).style.minWidth = flashWidth+"px";
		document.getElementById( containerID ).style.minHeight = flashHeight+"px";
		document.getElementById( containerID ).style.width = size[0] < flashWidth ? flashWidth+"px" : "100%";
		document.getElementById( containerID ).style.height = size[1] < flashHeight ? flashHeight+"px" : "100%";
	};
	window.onload = function() {
		window.onresize();
	}
}
