var bIsMoving	= false;
var szInLabel	= "";

var hTimerE;
var hTimerL;

function hEnter(szLabel)
{
	if (!bIsMoving)
	{
		if (szInLabel != "")
		{
			hLeave(szInLabel);
			return;
		}

		bIsMoving = true;

		if (hTimerL) clearTimeout(hTimerL);
		if (hTimerE) clearTimeout(hTimerE);

		szInLabel = szLabel;

		window.SWF.TGotoLabel("_root", "E" + szLabel);
		window.SWF.Play();
	}
	else
	{
		clearTimeout(hTimerE);
		hTimerE = setTimeout("hEnter('" + szLabel + "');", 250);
	}
}

function hLeave(szLabel)
{
	if (!bIsMoving)
	{
		if (szInLabel == "")
			return;

		bIsMoving = true;

		if (hTimerE) clearTimeout(hTimerE);
		if (hTimerL) clearTimeout(hTimerL);

		szInLabel = "";

		window.SWF.TGotoLabel("_root", "L" + szLabel);
		window.SWF.Play();
	}
	else
	{
		clearTimeout(hTimerL);
		hTimerL = setTimeout("hLeave('" + szInLabel + "');", 250);
	}
}

function SetAnimationDone()		{ bIsMoving = false; }

