function animateTopMenu(index)
{
	var elem = document.getElementById("top-menu-" + index);
	var opacityAnim = new YAHOO.util.Anim(
			elem,
			{
				// animation type
				opacity:
				{
					to: 1
				}
			},
			0.2);
	opacityAnim.onComplete.subscribe
	(
		function()
		{
			elem.style.opacity = "";
			elem.style.filter = "";
		}
	);
	
	var backgroundAnim = new YAHOO.util.ColorAnim(
			elem,
			{
				// animation type
				backgroundColor:
				{
					to: "#ffffff"
				}
			},
			0.4);
	
	opacityAnim.animate();
	backgroundAnim.animate();
	
	index++;
	if (document.getElementById("top-menu-" + index))
	{
		window.setTimeout("animateTopMenu(" + index + ")", 100);
	}
}

function animateTopMenuPrepare()
{
	var index = 1;
	
	while (elem = document.getElementById("top-menu-" + index))
	{
		elem.style.opacity = 0;
		elem.style.filter = "alpha(opacity=0)";
		elem.style.backgroundColor = "#0088FF";
		index++;
	}
}