function getClientWidth()
{
	return document.compatMode == 'CSS1Compat' && !window.opera?document.documentElement.clientWidth : document.body.clientWidth;
}

function getClientHeight()
{
	return document.compatMode == 'CSS1Compat' && !window.opera?document.documentElement.clientHeight : document.body.clientHeight;
}

function init()
{
	var swf          = document.getElementById("head");
	var main         = document.getElementById("content");
	var menu         = document.getElementById("menu");

	//alert(swf + ", " + main + ", " + menu);
	var width  = swf.clientWidth  - 350;
	var height = swf.clientHeight - 150 - 200;
	
	main.style.height = height;
	menu.style.height = height;

	main.style.width = width;
	menu.style.left  = width + 60;

	if (main.style.width == "")
	{
		main.style.cssText += "width: "  + width  + "px;";
		main.style.cssText += "height: " + height + "px;";
		menu.style.cssText += "height: " + height + "px;";
		menu.style.cssText += "left: "   + (width + 60) + "px;";
	}

	//alert(main.style.width + ", " + main.style.height);
//	main.style.cssText += "height: " + (swf.clientHeight - 120 - 200) + "px;";
//	alert(swf.clientHeight - 115 - 200);
	/*swf.style.left   = 0;
	swf.style.right  = 0;
	//alert(swf.clientWidth + " x " + swf.clientHeight);
	//fo.addParam("width",  getClientWidth());
	//fo.addParam("height", getClientHeight());
	/*swf.style.width  = getClientWidth();
	swf.style.height = getClientHeight();
	alert(swf.style.height + ", " + swf.height);*/
}

function menuoff()
{
	var swf          = document.getElementById("head");
	var main         = document.getElementById("content");
	var menu         = document.getElementById("menu");

	main.style.width = swf.clientWidth - 100;
	menu.style.display = "none";
}

function menuon()
{
	var swf          = document.getElementById("head");
	var main         = document.getElementById("content");
	var menu         = document.getElementById("menu");

	main.style.width = swf.clientWidth - 350;
	menu.style.left  = swf.clientWidth - 350 + 60;
	menu.style.display = "block";
}
