// funkce pro zobrazení grafického souboru (DWF,PDF,JPEG,GIF,...) v samostatném okně o velikosti x-y, nebo přes celou obrazovku

function zobraz_fs(nazev,x,y,soubor,pohled,skryt)
{
var hele=open(soubor,"fullscreen","scrollbars=no,fullscreen=yes");
var xm=x*0.75;
if (xm==y) { width=100; height=100 };
if (xm>y) { width=100; height=(y/x*133) };
if (xm<y) { width=(x/y*75); height=100 };
	if (soubor.indexOf(".pdf")>1) { window.hele };
		if (soubor.indexOf(".dwf")>1) { hele.document.open(); hele.document.write("<html>\n<head>\n<title>"+nazev+"</title>\n<meta http-equiv=\"content-type\" content=\"text/html;charset=windows-1250\">\n</head>\n\n<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" bgcolor=\"#003366\">\n<object classid=\"clsid:B2BE75F3-9197-11CF-ABF4-08000996E931\" codebase=\"ftp://ftp.autodesk.com/pub/whip/english/whip.cab#version=4,0,0,0\" width=\"100%\" height=\"100%\">\n <param name=\"Filename\" value=\""+soubor+"\">\n <param name=\"NamedView\" value=\""+pohled+"\">\n <param name=\"LayersOff\" value=\""+skryt+"\">\n <embed width=\"100%\" height=\"100%\" src=\""+soubor+"\" namedview=\""+pohled+"\" layersoff=\""+skryt+"\" pluginspage=\"ftp://adeskftp.autodesk.com/webpub/whip/english/whip.jar\"></embed>\n</object>\n</body>\n</html>\n"); hele.document.close() };
			if (soubor.indexOf(".jpg")>1 || soubor.indexOf(".gif")>1) { hele.document.open(); hele.document.write("<html>\n<head>\n<title>"+nazev+"</title>\n<meta http-equiv=\"content-type\" content=\"text/html;windows-1250\">\n<link rel=\"stylesheet\" href=\"skk.css\" type=\"text/css\">\n</head>\n\n<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" class=\"menubg\" bgcolor=\"White\">\n<center><img src=\""+soubor+"\" alt=\""+nazev+"\" class=\"obrazek\" width=\""+width+"%\" height=\""+height+"%\"></center>\n</body>\n</html>\n"); hele.document.close() };
}

function zobraz(nazev,x,y,soubor,pohled,skryt)
{
var hele=open(soubor,"","scrollbars=yes,resizable=yes,toolbar=no,directories=no,menubar=no,status=yes,width="+x+",height="+y+",top=0,left=0");
	if (soubor.indexOf(".pdf")>1) { window.hele };
		if (soubor.indexOf(".dwf")>1) { hele.document.open(); hele.document.write("<html>\n<head>\n<title>"+nazev+"</title>\n<meta http-equiv=\"content-type\" content=\"text/html;charset=windows-1250\">\n</head>\n\n<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" bgcolor=\"#003366\">\n<object classid=\"clsid:B2BE75F3-9197-11CF-ABF4-08000996E931\" codebase=\"ftp://ftp.autodesk.com/pub/whip/english/whip.cab#version=4,0,0,0\" width=\"100%\" height=\"100%\">\n <param name=\"Filename\" value=\""+soubor+"\">\n <param name=\"NamedView\" value=\""+pohled+"\">\n <param name=\"LayersOff\" value=\""+skryt+"\">\n <embed width=\"100%\" height=\"100%\" src=\""+soubor+"\" namedview=\""+pohled+"\" layersoff=\""+skryt+"\" pluginspage=\"ftp://adeskftp.autodesk.com/webpub/whip/english/whip.jar\"></embed>\n</object>\n</body>\n</html>\n"); hele.document.close() };
			if (soubor.indexOf(".jpg")>1 || soubor.indexOf(".gif")>1) { hele.document.open(); hele.document.write("<html>\n<head>\n<title>"+nazev+"</title>\n<meta http-equiv=\"content-type\" content=\"text/html;windows-1250\">\n</head>\n\n<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" bgcolor=\"#003366\">\n<img src=\""+soubor+"\" alt=\""+nazev+"\" border=\"0\" width=\""+x+"\" height=\""+y+"\">\n</body>\n</html>\n"); hele.document.close() };
}
