var minWidth = 960;
var minHeight = 650;
var timeout;

function setDimensions(iWidth, iHeight) {
    minWidth = iWidth;
	minHeight = iHeight;
}

function resizeFlash() {
	timeout = setTimeout(doResize, 10);
}
function doResize() {
	obj = document.getElementById("flashcontent");
	iWidth = document.body.clientWidth + "px";
	iHeight = document.body.clientHeight + "px";

	if(document.body.clientWidth<minWidth)
		iWidth = minWidth+"px";
	if(document.body.clientHeight<minHeight)
		iHeight = minHeight+"px";
	obj.style.width = iWidth;
	obj.style.height = iHeight;
}