function ukaz(co)
{
	for(i=1;i<11;i++)
    {
        if (document.getElementById("pm"+i)) document.getElementById("pm"+i).style.display="none";
    }
    var stav = document.getElementById(co).style.display;
	if (stav == 'none')
	{
		document.getElementById(co).style.display = 'block';
	}
	else
	{
		document.getElementById(co).style.display = 'none';
	}
}
function okno(file,x,y)
{
	ok=window.open(file, '', 'width=' + (x+3) + ',height=' + (y+3) + ',status=no,resizable=yes,toolbar=no,scrollbars=no,menu=no,top=5,left=40');
	ok.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
    ok.document.write("<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\" />\n<title>Velky obrazek<\/title>\n<\/head>\n<body style=\"background: #fff;padding:0;margin:1px;cursor:pointer\">\n");
	ok.document.write("<img onclick=\"window.close()\" src=" + file + " alt=\"\" title=\"Kliknutim zavrete toto okno\" />\n<\/body>\n<\/html>");
	ok.document.close();
}
function oknor(o)
{
	okn=window.open('','','status=yes,toolbar=no,location=no,menu=no,resizable=yes,width=450,height=280,top=15,left=50');
	okn.document.write("<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\" /><title>velky obrazek<\/title>\n");
	okn.document.write("<style type=\"text\/css\">\nbody { background: #fff;margin:0;padding:0 } img { cursor:pointer }\n<\/style>\n");
	okn.document.write("<scr"+"ipt type=\"text\/javascript\"> function set() { window.resizeTo(document.images.im.width+20,document.images.im.height+55); }\n<\/scr"+"ipt>\n<\/head>\n");
	okn.document.write("<body>\n<div align=\"center\"><img onclick=\"window.close()\" src=\""+o+"\" name=\"im\" onload=\"set();\" alt=\"\" title=\"Kliknutim zavrete toto okno\" /></div>\n<\/body>\n<\/html>");
	okn.document.close();
}
function tisk()
{
    var wl = "" + window.location + "";
    document.write("<a target=\"_blank\" href=\"");
    document.write(wl);
    if(wl.indexOf('?') == -1)
    {
       document.write("?print=true\" title=\"Nahled se zobrazi v novem okne\">Nahled pro tisk</a>");
    }
    else
    {
        document.write("&amp;print=true\" title=\"Nahled se zobrazi v novem okne\">Nahled pro tisk</a>");
    }
}