var smartSwitchItems = [];

function setInnerHtml(id, value)
{
	document.getElementById(id).innerHTML = value;
}
function hideE(id)
{
	document.getElementById(id).style.display = 'none';
}
function showE(id, showStyle)
{
	document.getElementById(id).style.display = showStyle || 'block';
}

function smartSwitch(id)
{
	if (smartSwitchItems[id] || typeof smartSwitchItems[id] == "undefined")
		hideE(id);
	else
		showE(id);
	
	smartSwitchItems[id] = (smartSwitchItems[id] == true ? false : true);
}

function initAbout()
{
	if (smartSwitchItems.length > 1)
	{
		for (i = 0; i < smartSwitchItems.length; i++)
		{
			if (location.hash && location.hash == '#' + i)
			{
				showE(i);
				smartSwitchItems[i] = true;
			}
			else
			{
				hideE(i);
				smartSwitchItems[i] = false;
			}
		}
	}
	else if (smartSwitchItems.length == 1)
	{
		showE(0);
		smartSwitchItems[0] = true;
	}
}

initFunctions[initFunctions.length + 1] = 'initAbout';
//window.onload = initAbout;