
var div_id = "flashcontainer";


function minimumSize(minWidth, minHeight){
	var w = "100%";
	var h = "100%";

	if( Number(minWidth)  > getWindowWidth()  )	w = minWidth  +"px";
	if( Number(minHeight) > getWindowHeight() ) h = minHeight +"px";

	document.getElementById(div_id).style.width  = w;
	document.getElementById(div_id).style.height = h;
}


function getWindowWidth(){
	if( !isNaN(window.innerWidth) )											return window.innerWidth;
	if( document.documentElement && document.documentElement.clientWidth )	return document.documentElement.clientWidth;
	return document.body.clientWidth;
}

function getWindowHeight(){
	if( !isNaN(window.innerHeight) )										return window.innerHeight;
	if( document.documentElement && document.documentElement.clientHeight )	return document.documentElement.clientHeight;
	return document.body.clientHeight;
}



