var timer;
var i;
var puvodni_y;
var stav=new Array();

stav[1]=new Array();
stav[2]=new Array();
for (i=0;i<=5;i++) {
	stav[1][i]=false;
	stav[2][i]=false;
}                   

function ukazat(cil,typ) {
	if (stav[typ][cil]==false) {
		stav[typ][cil]=true;
		var el=document.getElementById('submenu'+typ+cil);
		if (el!=undefined) el.className='submenu';
		el=document.getElementById('menu'+typ+cil);
		if (el!=undefined)el.className='kotva on';
	}
}
function schovat(cil,typ) {
	stav[typ][cil]=false;
	window.setTimeout('kill('+cil+','+typ+')',5);
}

function kill(cil,typ) {
	if (stav[typ][cil]==false) {
		var el=document.getElementById('submenu'+typ+cil);
		if (el!=undefined) el.className='submenu inv';
		el=document.getElementById('menu'+typ+cil);
		if (el!=undefined) el.className='kotva';

	}
}
