var buttons = 16;

function menu(i)	{
	rand = -161;
	for (j = 0; j < buttons; j++)	{
		if (document.getElementsByTagName)	{	<!-- DOM -->
			document.getElementsByTagName('DIV')[j].style.left = rand+"px";
		}
		else if (document.all)	{	<!-- Explorer -->
			document.all.tags('DIV')[j].style.pixelLeft = rand;
		}
		else if (document.layers)	{	<!-- Netscape -->
			document.layers[j].left = rand;
		}
	}
	geht_auf = setInterval("oeffner("+i+")",10);
}

function oeffner(i)	{
	if (rand < 0)	{
		if (document.getElementsByTagName)	{	<!-- DOM -->
			rand+=2;
			document.getElementsByTagName('DIV')[i].style.left = rand+"px";
			if (!document.all)	{ rand+=5 }
		}
		else if (document.all)	{	<!-- Explorer -->
			rand+=3;
			document.all.tags('DIV')[i].style.pixelLeft = rand;
		}
		else if (document.layers)	{	<!-- Netscape -->
			rand+=6;
			document.layers[i].left = rand;
		}
		else	{ clearInterval(geht_auf); }
	}
	else	{ clearInterval(geht_auf); }
}