function EnableHTMLScroll(id, w, h) {
	
	var minW = w;
	var minH = h;
	this.id = id;
	var div;
	swfobject.addDomLoadEvent(init);
	
	function init() {
		div = document.getElementById(id);
		window.onresize = resize;
		resize();
	}
	
	function resize() {
		if(div.style.width == "") div.style.width = "100%";
		if(div.style.height == "") div.style.height = "100%";
		var win = getSize();
		if(win.w < minW) {
			div.style.width = minW+"px";
			document.body.style.overflow = "auto";
		} else {
			div.style.width = "100%";
			document.body.style.overflow = "hidden";
		}
		if(win.h < minH) {
			div.style.height = minH+"px";
			document.body.style.overflow = "auto";
		} else {
			div.style.height = "100%";
			document.body.style.overflow = "hidden";
		}	
	}
	
	function getSize() {
		var win = {};
		if (self.innerHeight) { // all except Explorer
			win.w = self.innerWidth;
			win.h = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) {// Explorer 6 Strict Mode
			win.w = document.documentElement.clientWidth;
			win.h = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			win. w = document.body.clientWidth;
			win. h = document.body.clientHeight;
		}
		return win;
	}
}