// JavaScript Document menu


var zmizik;

function menupryc(xID)
  {
  window.clearTimeout(zmizik);
  zmizik=null;
  for (i=10; i<=40; i++)
    {
    if (document.getElementById("mn"+i) != null)
      {
      if (i != xID)
			  {
      	document.getElementById("mn"+i).style.visibility = "hidden";
        }
      }
    }
  }

function outMenu(){
     zmizik = window.setTimeout("menupryc(0)",250);
}
function ukazho(xID, menutype)
{
menupryc(xID);
var parElement = document.getElementById('odk'+xID);
var mX = 0;
var mY = 0;
while (typeof parElement == 'object' && parElement.tagName != 'BODY')
  {
  mY += parElement.offsetTop;
  mX += parElement.offsetLeft;
  parElement = parElement.offsetParent;
  }

if(document.getElementById('mn'+xID)!= null )
  {
	if (menutype == 1)
		{
		document.getElementById('mn'+xID).style.left = mX;
  	document.getElementById('mn'+xID).style.top = mY+20;
    }
  else
    {
    // alert(mY);
    //alert ('mn'+xID)
		document.getElementById('mn'+xID).style.left = mX+168;
  	document.getElementById('mn'+xID).style.top = mY;
    }
  document.getElementById('mn'+xID).style.visibility = "visible";
  }
}

function ClearTimer()
  {
  window.clearTimeout(zmizik);
  }


function Openkoncese(soubor) {
  window.open(soubor,"_blank","top=0,left=0,width="+ screen.availWidth +", height=" + screen.availHeight);
}
function aktualni(){
window.open ("aktualni.php","_blank","top=100, left=100, width=400, menubar=no, scrollbars=yes")
}