var show="none";
var lastID=0;
var t;
var show2="none";
var lastID2=0;
var t2;
function rollOn(id)
{
	if (lastID!=id && lastID!=0)
	{
		clearTimeout(t);
		document.getElementById("odkazy"+lastID).style.display="none";
	}	
	lastID=id;
	show="block";
	document.getElementById("odkazy"+id).style.display=show;
}
function rollOff(id)
{
	show="none";
	clearTimeout(t);
	t=setTimeout("document.getElementById('odkazy"+id+"').style.display=show",200);
}
function rollOn2(id, id2)
{
	if (lastID!=id && lastID!=0)
	{
		clearTimeout(t);
		document.getElementById("odkazy"+lastID).style.display="none";
	}	
	if (lastID2!=id && lastID2!=0)
	{
		clearTimeout(t2);
		document.getElementById("odkazy"+lastID2).style.display="none";
	}
	lastID=id;
	lastID2=id2;
	show="block";
	show2="block";
	document.getElementById("odkazy"+id2).style.display=show2;
}
function rollOff2(id, id2)
{
	show="none";
	clearTimeout(t);
	t=setTimeout("document.getElementById('odkazy"+id+"').style.display=show",200);
	show2="none";
	clearTimeout(t2);
	t2=setTimeout("document.getElementById('odkazy"+id2+"').style.display=show2",200);
}
