function enlarge(id,titulek,cesta,obrnazev,obrsifra,obrsirka,obrvyska,cas,jazyk,level) {
  // posli jako pohlednici
  var doplntext, posliPohlednici, zavriNahled;
  // text pro Posli jako pohlednici
  if (jazyk == "de") posliPohlednici = "Senden wie die Postkarte";
  else if (jazyk == "en") posliPohlednici = "Send this image";
  else posliPohlednici = "Pošli jako pohlednici";
  // text pro Zavrit nahled
  if (jazyk == "de") zavriNahled = "Schliessen das Fenster";
  else if (jazyk == "en") zavriNahled = "Close the window";
  else zavriNahled = "Zavřít náhled";
  
  if (cas != "xxx") doplntext = ' - <a href="'+level+'elektronicke-pohlednice/epohlednice.php?lang='+jazyk+'&picture='+obrsifra+'&sirka='+obrsirka+'&vyska='+obrvyska+'" target="_blank" onclick="window.opener.location.href=\''+level+'elektronicke-pohlednice/epohlednice.php?lang='+jazyk+'&picture='+obrsifra+'&sirka='+obrsirka+'&vyska='+obrvyska+'\'; window.close(); return false;">'+posliPohlednici+'</a>'; else doplntext = '';

  var sirkaokna = obrsirka+10;
  var vyskaokna = obrvyska+60;
  if (sirkaokna < 550) sirkaokna = 550;
  if (cas == "xxx") cas = "";
  if (cas != "") cas = " ("+cas+")";
  myWindow = window.open("", ""+id+"", "resizable=1,width="+sirkaokna+",height="+vyskaokna+",top="+((screen.height - vyskaokna)/2)+",left="+((screen.width - sirkaokna)/2));
  myWindow.document.open();
  myWindow.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
  myWindow.document.writeln('<html>\n<head>');
  myWindow.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">');
  myWindow.document.writeln('<meta http-equiv="Content-language" content="cs">');
  myWindow.document.writeln('<meta http-equiv="Cache-control" content="no-cache">');
  myWindow.document.writeln('<meta http-equiv="Pragma" content="no-cache">');
  myWindow.document.writeln('<meta http-equiv="Expires" content="0">');
  myWindow.document.writeln('<meta http-equiv="Author" content="Bc. Tomáš Souček (webmaster[zavinac]penkavcivrch.cz)">');
  myWindow.document.writeln('<title>'+titulek+' - &copy; LV Pěnkavčí vrch</title>');
  myWindow.document.writeln('<style>');
  myWindow.document.writeln('body { background: #4F72B1 url(\''+level+'images/page_bgr_top.png\') 0px 0px repeat-x; color: #fff; margin: 0; padding: 0; font-family: "Verdana CE", Verdana, "Geneva CE", "Arial CE", "Lucida Grande CE", "Helvetica CE", Arial, lucida, sans-serif; }');
  myWindow.document.writeln('a:link,a:visited { color: lightblue; text-decoration: underline; }');
  myWindow.document.writeln('a:active,a:hover { color: #f60; text-decoration: underline; }');
  myWindow.document.writeln('.roh1 { float: left; width: 10px; background: #4F72B1 url(\''+level+'images/nahled1.gif\') top no-repeat; }');
  myWindow.document.writeln('.roh2 { float: right; width: 10px; background: #4F72B1 url(\''+level+'images/nahled2.gif\') top no-repeat; }');
  myWindow.document.writeln('.obsahtop { float: right; width: '+(sirkaokna-28)+'px; background-color: #000; color: #fff; font-weight: bold; font-size: 11px; }');
  myWindow.document.writeln('.obsahbottom { float: right; width: '+(sirkaokna-28)+'px; background-color: #000; color: #fff; font-size: 11px; }');
  myWindow.document.writeln('.roh3 { float: left; width: 10px; background: url(\''+level+'images/roh_dole.gif\') bottom no-repeat; }');
  myWindow.document.writeln('.roh4 { float: right; width: 10px; background: url(\''+level+'images/roh_dole1.gif\') bottom no-repeat; }');
  myWindow.document.writeln('.cleaner { clear: both; margin: 0; padding: 0; font-size: 2px; }');
  myWindow.document.writeln('</style>');
  myWindow.document.writeln('</head>');
  myWindow.document.writeln('<body>');
  myWindow.document.writeln('<table cellspacing="0" cellpadding="0" width="100%" height="100%">');
  myWindow.document.writeln('<tr valign="middle" align="center"><td>');
  myWindow.document.writeln('<div style="width: '+(sirkaokna-8)+'px; line-height: 25px;">');
  myWindow.document.writeln('<div class="roh1">&nbsp;</div>');
  myWindow.document.writeln('<div class="roh2">&nbsp;</div>');
  myWindow.document.writeln('<div class="obsahtop">'+titulek+''+cas+'</div>');
  myWindow.document.writeln('<div class="cleaner"></div>');
  myWindow.document.writeln('<div style="background-color: #000;"><img src="'+level+''+cesta+'/'+obrnazev+'" width="'+obrsirka+'" height="'+obrvyska+'" alt="'+titulek+'" style="border: 1px solid #000;" onclick="window.close();" /></div>');
  myWindow.document.writeln('<div class="roh3">&nbsp;</div>');
  myWindow.document.writeln('<div class="roh4">&nbsp;</div>');
  myWindow.document.writeln('<div class="obsahbottom"><a href="javascript: window.close();">'+zavriNahled+'</a>'+doplntext+'</div>');
  myWindow.document.writeln('<div class="cleaner"></div>');
  myWindow.document.writeln('</div>');
  myWindow.document.writeln('</td></tr>');
  myWindow.document.writeln('</table>');
  myWindow.document.write("</body>\n</html>");
  myWindow.document.close();
  myWindow.focus();
}
