<!--
function init()
{
	var nVisibleWindowHeight = window.screen.availHeight - 10 - 2 - 100 - 16 - 32 - 2 - 10 ;
	var oBegContent = document.getElementById('oBegContent');
	var oEndContent = document.getElementById('oEndContent');
	var oContent = document.getElementById('oContent');
alert(oBegContent+"-"+oEndContent+"-"+oContent);
	var nContentHeight = document.body.clientHeight;
	var nAvailableHeight = window.screen.availHeight;
	var nContentBottom = oEndContent.offsetTop;
	var nPadding = oContent.style.padding;
	var nBorder = oContent.style.border;
	var nMargin = oContent.style.margin;

	var nSpace = nVisibleWindowHeight - nContentHeight - 3 - 2 - 3 - 2;

	if (nContentHeight < nVisibleWindowHeight)
		oBegContent.style.height = (nContentHeight + nSpace) + 'px';
}

function toggleElement(sObject)
{
	var oObject = document.getElementById(sObject);

	if (oObject)
	{
		var bIsDisplay = (oObject.style.display.length == 0)?false:true;

		if (oObject.style.display == 'none' || oObject.style.visibility == 'hidden')
		{
			if (bIsDisplay)
				oObject.style.display = 'block';
			else
				oObject.style.visibility = 'visible';
		}
		else
		{
			if (bIsDisplay)
				oObject.style.display = 'none';
			else
				oObject.style.visibility = 'hidden';
		}
	}
}

function setMenuBgColor(oElement, sType)
{
	var sMenuBgColor;
	sMenuBgColor = '#d7cabb';

	if (sType == 'over')
		sColor = '#c6cfd7';
	else if (sType == 'out')
		sColor = sMenuBgColor;
	else
		sColor = sMenuBgColor;

	oElement.style.backgroundColor = sColor;
}

function setToolbarBgColor(oElement, sType)
{
	var sMenuBgColor;
	sMenuBgColor = '#c6cfd7';

	if (sType == 'over')
		sColor = '#d7cabb';
	else if (sType == 'out')
		sColor = sMenuBgColor;
	else
		sColor = sMenuBgColor;

	oElement.style.backgroundColor = sColor;
}

function setCopyright()
{
	var oCopyright = document.getElementById("oCopyright");

	if (oCopyright)
	{
		var thisDate = new Date();
		oCopyright.innerHTML = thisDate.getFullYear();
	}
}
//-->