var stav=new Array();
for (i=0;i<=max;i++) {
	stav[i]=false;
}
function ukazat(cil) {
	if (stav[cil]==false) {
		stav[cil]=true;
		var el=document.getElementById('submenu'+cil);
		if (el!=undefined) el.className='submenu_container';
		el=document.getElementById('menu_'+cil);
		if (el!=undefined) el.className='kotva on';

	}
}
function schovat(cil) {
	stav[cil]=false;
	window.setTimeout('kill('+cil+')',150);
}
function kill(cil) {
	if (stav[cil]==false) {
		var el=document.getElementById('submenu'+cil);
		if (el!=undefined) el.className='submenu_container inv';
		el=document.getElementById('menu_'+cil);
		if (el!=undefined) el.className='kotva';

	}
}

