
onBGColor = "#F5F5F5";
onBorderColor = "1px solid #DDDDDD";
onFontColor = "#D31145";

offBGColor = "#FFFFFF";
offBorderColor = "1px solid #FFFFFF";
offFontColor = "#000000";

speed = 6;
timer = 0;

function toggleMenu(inSection)
{
	toggleThisMenu = inSection + '_menu';
	toggleThisMenuID = document.getElementById(toggleThisMenu);
	
	toggleThisLink = inSection + '_link';
	toggleThisLinkID = document.getElementById(toggleThisLink);
	
	if(toggleThisMenuID.style.display == 'block')
	{
		toggleThisMenuID.style.display = 'none';
		toggleThisLinkID.style.backgroundColor = offBGColor;
		toggleThisLinkID.style.borderBottom = offBorderColor;
		toggleThisLinkID.style.color = offFontColor;
	}
	else
	{
		toggleThisMenuID.style.display = 'block';
		toggleThisLinkID.style.backgroundColor = onBGColor;
		toggleThisLinkID.style.borderBottom = onBorderColor;
		toggleThisLinkID.style.color = onFontColor;
	}
}

function toggleSubMenu(inSection)
{
	toggleThisMenu = inSection + '_menu';
	toggleThisMenuID = document.getElementById(toggleThisMenu);
	
	if(toggleThisMenuID.style.display == 'block')
	{
		toggleThisMenuID.style.display = 'none';
	}
	else
	{
		toggleThisMenuID.style.display = 'block';
	}
}

function cycleOpac(inOpac, inMenu)
{
	inMenuID = document.getElementById(inMenu);

	inMenuID.style.opacity = (inOpac / 100);
	inMenuID.style.KhtmlOpacity = (inOpac / 100);
	inMenuID.style.filter = "alpha(opacity=" + inOpac + ")";
}

