
function Menu(vyber)
{
  document.writeln('<div id="kontakt">');
  document.writeln('  <b>Mobil:</b> +420 777 782 207<br />');
  document.writeln('  <b>E-mail:</b> <a href="mailto:info@zen-shiatsu.cz">info@zen-shiatsu.cz</a>');
  document.writeln('</div>');
    
  document.writeln('<div id="tabs">');
  document.writeln('  <ul>');

  if (vyber==1)
    document.writeln('    <li id="current"><a href="index.php">Hlavní stránka</a></li>');
  else
    document.writeln('    <li><a href="index.php">Hlavní stránka</a></li>');
    
  if (vyber==7)
    document.writeln('    <li id="current"><a href="http://kacka.zen-shiatsu.cz" target="_blank">Kresby a obrazy</a></li>');
  else
    document.writeln('    <li><a href="http://kacka.zen-shiatsu.cz" target="_blank">Kresby a obrazy</a></li>');  
  
  if (vyber==8)
    document.writeln('    <li id="current"><a href="fotogalerie.php">Fotogalerie</a></li>');
  else
    document.writeln('    <li><a href="fotogalerie.php">Fotogalerie</a></li>');
  
  if (vyber==9)
    document.writeln('    <li id="current"><a href="cenik.php">Ceník</a></li>');
  else
    document.writeln('    <li><a href="cenik.php">Ceník</a></li>');
    
  if (vyber==10)
    document.writeln('    <li id="current"><a href="kontakt.php">Kontakt</a></li>');
  else
    document.writeln('    <li><a href="kontakt.php">Kontakt</a></li>');
    
  if (vyber==11)
    document.writeln('    <li id="current"><a href="odkazy.php">Zajímavé odkazy</a></li>');
  else
    document.writeln('    <li><a href="odkazy.php">Zajímavé odkazy</a></li>');

  document.writeln('  </ul>');
  document.writeln('</div>');
  
  //Menu_main();
  Mail_form();
}

function Menu_main()
{ 
  document.writeln('  <div class="menu_horizont">');
  document.writeln('    <table><tr>');
  document.writeln('    <td>&raquo; <a href="shiatsu.html">Co je Shiatsu?</a> </td>'); 
  document.writeln('    <td>&raquo; <a href="praxe.html">Shiatsu v praxi</a> </td>');
  document.writeln('    <td>&raquo; <a href="poprve.html">Když jdete na masáž</a> </td>');
  document.writeln('    <td>&raquo; <a href="strava.html">Energeticky vyvážená strava</a> </td>');
  document.writeln('    <td>&raquo; <a href="doin.html">Zdravotní cvičení</a> </td>');
  document.writeln('    </tr></table>');
  document.writeln('  </div>');
}


function Mail_form()
{
  document.writeln('<div id="mail">');

  document.writeln('    <form method="post" action="http://mail.zen-shiatsu.cz/openwebmail.pl" enctype="multipart/form-data" name="login">');
  document.writeln('      <input type="hidden" name="logindomain" value="mail.zen-shiatsu.cz">');
  document.writeln('      <div>Uživatel: <input class="text" type="text" name="loginname"  size="10" onchange="focuspwd()" /></div>');
  document.writeln('      <div>Heslo: <input class="text" type="password" name="password"  size="10" onchange="focusloginbutton()" /></div>');
  document.writeln('      <label><input type="hidden" name="httpcompress" value="1" checked="checked" onclick="httpcompresshelp()" /></label><!--<font size=1>HTTP komprese</font>-->');
  document.writeln('      <!--<label><input type="checkbox" name="autologin" value="1" onclick="autologinhelp()" /></label><font size=1>Automatické přihlášení</font>-->');
  document.writeln('      <input class="text" type="submit" name="loginbutton" value="Přihlásit" />');
  document.writeln('      <input type="hidden" name=".cgifields" value="httpcompress"  />');
  document.writeln('      <input type="hidden" name=".cgifields" value="autologin"  />');
  document.writeln('    </form>');

  document.writeln('    <script language="JavaScript">');
  document.writeln('    <!--');
      
  document.writeln('       if (document.login.loginname.value == "") {');
  document.writeln('          document.login.loginname.focus()');
  document.writeln('       } else {');
  document.writeln('          document.login.password.focus()');
  document.writeln('       }');
      
  document.writeln('       function focuspwd() {');
  document.writeln('          document.login.password.focus();');
  document.writeln('          return(true);');
  document.writeln('       }');
      
  document.writeln('       function focusloginbutton() {');
  document.writeln('          document.login.loginbutton.focus();');
  document.writeln('          return (true);');
  document.writeln('       }');
    
  document.writeln('       function httpcompresshelp() {');
  document.writeln('          if (document.login.httpcompress.checked) {');
  document.writeln('             alert(');
  document.writeln('              "HTTP komprese umožňuje snížit množství dat přenášených mezi serverem a vaąím počítačem, což může "+');
  document.writeln('              "být výhodné pro pomalé připojení (např. pomocí modemu). Mohou však vyvstat některé problémy "+');
  document.writeln('              "s kompatibilitou:\\n\\n"+');
  document.writeln('              "1) Některé proxy servery podporují kompresi jen u HTTP/1.1, takže může být nutné povolit "+');
  document.writeln('              "v prohlíľeči podporu HTTP/1.1 u připojení přes proxy\\n"+');
  document.writeln('              "2) Některé proxy servery vůbec nepodporují kompresi a budete muset v prohlížeči nastavit "+');
  document.writeln('              "přímý přístup na WebMail server (tj. výjimku z pouľití proxy)\\n"+');
  document.writeln('              "3) Některé prohlížeče mají problémy při použití komprese společně se SSL\\n"+');
  document.writeln('              "4) Některé prohlížeče oznamují podporu komprese, ale ve skutečnosti ji nepodporují\\n\\n"+');
  document.writeln('              "Takže pokud budete mít nějaké problémy, přihlaste se prosím znovu a kompresi vypněte.\\n"');
  document.writeln('             );');
  document.writeln('          }');
  document.writeln('          return(true);');
  document.writeln('       }');
   
  document.writeln('       function autologinhelp() {');
  document.writeln('          if (document.login.autologin.checked) {');
  document.writeln('             alert(');
  document.writeln('              "Při zapnutí Automatického přihláąení je možné se do Open WebMailu přihlásit bez vyplnění "+');
  document.writeln('              "přihlašovacího jména a hesla, pokud jste se z předchozího sezení neodhlásili a zároveň "+');
  document.writeln('              "toto sezení nepřekročilo maximální povolenou dobu nečinnosti.\\n\\n"+');
  document.writeln('              "POZOR! Kdokoliv jiný se díky Automatickému přihlášení také může na tomto počítači "+');
  document.writeln('              "v této době dostat k vaší poště bez vložení jména a hesla.\\n"+');
  document.writeln('              "Proto tuto volbu NEPOUŽÍVEJTE na veřejně přístupných počítačích!\\n"');
  document.writeln('             );');
  document.writeln('          }');
  document.writeln('          return(true);');
  document.writeln('       }');
    
  document.writeln('    //-->');
  document.writeln('    </script>');

  document.writeln('  </div>');
    
}

