function startmenu()
{
if (!timerDomeRunning)
	timerDome = setInterval("menuscroll()",10);
}

function startmenu2()
{
// col mouseover si apre e basta
if (!timerDomeRunning)
	if(menu==0)
	{
		timerDome = setInterval("menuscroll()",10);
	}
}

function startmenu3()
{
// con hidecheck si chiude e basta
if (!timerDomeRunning)
	if(menu==1)
	{
		timerDome = setInterval("menuscroll()",10);
	}
}

function stopclock()
{   
	clearInterval(timerDome)   
	timerDomeRunning = false
}

function menuscroll()
{
	timerDomeRunning = true;
	if (timerDomeRunning)
	{
		if (menu==0)
		{
			xx1=L22.css.left;
			x1=parseInt(xx1);
			if(x1>0)
			{
				ScrollLeftUntil(L22,2,0);
				xx1=L22.css.left;
				x1=parseInt(xx1);		
				stopScroll();
			}
			else
			{
			menu=1;
			stopclock();
			}
		}
		else
		{
			xx1=L22.css.left;
			x1=parseInt(xx1);
			if(x1<142)
			{
				ScrollRightUntil(L22,2, 142);
				xx1=L22.css.left;
				x1=parseInt(xx1);		
				stopScroll();
			}
			else
			{
			menu=0;
			stopclock();
			}
		}
	}
}

function hidecheck(lev)
{
	if (glivello < lev)
	{
		startmenu3();
	}

}

