var jsDOM0 = (document.all);
var jsDOM1 = (document.getElementById);
var jsDOM = jsDOM0 || jsDOM1;
var jsDebug = 0;

function getObj (name) {
    if (typeof name == "object") return name;
    if (jsDOM1) return document.getElementById(name);
    if (jsDOM0) return eval('document.all.'+name);
    else return null;
}
//počty 2. urovni
var cnt = [];
cnt[1] = 7;
//var cnt = [];
cnt[2] = 4;
//var cnt = [];
cnt[3] = 3;

function Show(index) 
{
	o = getObj('k_'+index);
	o.style.display = 'block';
}
function Hide(index) 
{
	o = getObj('k_'+index);
	o.style.display = 'none';
}
function Show2(parent,child)
{
	oPa = getObj('k_'+parent);
	oPa.style.display = 'block';
	for (i=1; i<=cnt[1]; i++)
	{
		oba = getObj('m_'+parent+'_'+i);
		oba.style.display = 'none';
	}
	//alert('m_'+parent+'_'+child);
	oCha = getObj('m_'+parent+'_'+child);
	oCha.style.display = 'block';
}
function Hide2(parent,child)
{
	oPb = getObj('k_'+parent);
	oPb.style.display = 'none';
	for (i=1; i<=cnt[1]; i++)
	{
		obb = getObj('m_'+parent+'_'+i);
		obb.style.display = 'none';
	}
	oChb = getObj('m_'+parent+'_'+child);
	oChb.style.display = 'none';
}
function Show3(parent,child)
{
	oPa = getObj('k_'+parent);
	oPa.style.display = 'block';
}
function Hide3(parent,child)
{
	oPb = getObj('k_'+parent);
	oPb.style.display = 'none';
}

