function MM_displayStatusMsg(msgStr)                       //hláška do spodního řádku v  body dokumentu potom: onload=" MM_displayStatusMsg('TEXT'); return document.MM_returnValue" 
{ 
  status=msgStr;
  document.MM_returnValue = true;
}

function openPriloha(url)
{
  priloha=window.open("img/"+url,"priloha","toolbar=no,location=no,resizable=yes,directories=no,status=no,menubar=no,height=400");
  priloha.focus();
}		


var layer="index";
function makesubmenu()						//barveni, otvírání submenu 
{
layer = parent.location.pathname;

//alert(layer+","+layer.lastIndexOf("/")+","+layer.lastIndexOf("."));

layer = layer.substring(layer.lastIndexOf("/")+1,layer.lastIndexOf("."));
//alert(layer);
  if (layer=="/") layer="index";

  if (document.all.item(layer) != null){
    document.all.item(layer).style.color = "yellow";}
  if (document.all.item(layer+"-sub") != null){
    document.all.item(layer+"-sub").style.display = "block";}
/*	if ((last == layer) && (m == "m"))						//zavirání sama sebe
		{
		document.all.item(layer+"-sub").style.display = "none";
		last="N";
		}
	else
		{
		if (m == "m")										//rozbalení menu
			{
			document.all.item(layer+"-sub").style.display = "block";
			if (s != "s") document.all.item(layer).style.color = "FFFF00";
			}
		last=layer;
		}
*/
}

