function swf_open_window()
{
	window.moveTo(0,0);
	if (document.getElementById || document.all)
	{
		window.resizeTo(screen.availWidth, screen.availHeight);
	}
	else if (document.layers)
	{
		if (window.outerHeight < screen.availHeight || window.outerWidth < screen.availWidth)
		{
			window.outerHeight = screen.availHeight;
			window.outerWidth = screen.availWidth;
		}
	}

	handle_resize();
}

function handle_resize()
{
	var a = document.getElementById("swf_holder");
	
	if (document.documentElement.offsetWidth < 900)
		a.style.width = 900 + "px";
	else
		a.style.width = document.documentElement.offsetWidth + "px";
	if (document.documentElement.offsetHeight < 600)
	{
		a.style.height = 600 + "px";
		//if (document.body.className != 'scrollable')
		//	document.body.className = 'scrollable';
	}
	else
	{
		a.style.height = "100%";
		//if (document.body.className != 'not_scrollable')
		//	document.body.className = 'not_scrollable';
	}
    if(document.body.offsetWidth < 900)
				a.style.width = 900 +"px";
  			if(document.body.offsetHeight < 600)
    			a.style.height = 600 + "px";

}

//window.onload = swf_open_window;
window.onresize = handle_resize;