function flashResize(minW,minH){
	var x,y;
	var scrollerW = 0;
	var scrollerH = 0;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		if (x < minW){
			scrollerH = getScrollBarWidth ();
		}
		y = self.innerHeight;
		if (y <minH){
			scrollerW = getScrollBarWidth ();					
		}
	} else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
 	} else if (document.body) // other Explorers
	{
 		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	if (x < minW){
		document.getElementById("flash").style.width = minW-scrollerW+"px";
		if (y < minH){
			document.getElementById("flash").style.height = minH-scrollerH+"px";
		} else {
			document.getElementById("flash").style.height = y-scrollerH+"px";
		}
	} else {
		document.getElementById("flash").style.width = x-scrollerW+"px";
		if (y < minH){
			document.getElementById("flash").style.height = minH-scrollerH+"px";
			document.getElementById("flash").style.width = x-scrollerW+"px";
		} else {
			document.getElementById("flash").style.height = y-scrollerH+"px";
		}
	}
}

function getScrollBarWidth (){
	var inner = document.createElement("p");
	inner.style.width = "100%";
	inner.style.height = "200px";

	var outer = document.createElement("div");
	outer.style.position = "absolute";
	outer.style.top = "0px";
	outer.style.left = "0px";
	outer.style.visibility = "hidden";
	outer.style.width = "200px";
	outer.style.height = "150px";
	outer.style.overflow = "hidden";
	outer.appendChild (inner);
	
	document.body.appendChild (outer);
	var w1 = inner.offsetWidth;
	outer.style.overflow = "scroll";
	var w2 = inner.offsetWidth;
	if (w1 == w2) w2 = outer.clientWidth;
	
	document.body.removeChild (outer);

	return (w1-w2);
};