var i;
var puvodni_y;
var stav=new Array();
for (i=1;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';
		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 inv';
		el=document.getElementById('menu'+cil);
		if (el!=undefined) el.className='kotva';

	}
}
