\usepackage{html}
\RequirePackage{url}  %added May 30, 2001
\newcommand{\old}[1]{}
\newcommand{\oldnew}[2]{#2}
\newcommand{\newold}[2]{#1}
\newcommand{\newd}[2]{#2} 
\newcommand{\new}[2]{#2} 
 %For including a new text: the first parametr should be, e.g., yymm}
 %The commands with an old part can include the date in the old text}

\begin{htmlonly}
 \renewcommand{\emph}[1]
  {\begin{rawhtml}<em>\end{rawhtml}%
#1
\begin{rawhtml}</em>\end{rawhtml}}
 \renewcommand{\uv}[1]{,,#1``}
 \renewcommand{\clqq}{,,}
 \renewcommand{\crqq}{``}
 \renewcommand{\cdot}{\ .\ }
 \renewcommand{\times}{\begin{rawhtml}×\end{rawhtml}}
 \newcommand{\mtimes}{\begin{rawhtml}×\end{rawhtml}}
 \newcommand{\pa}[1]{\par\textbf{#1}}
 \newcommand{\degC}{~°C}
 \newcommand{\dg}{°}
 \newcommand{\ast}{*}
% \renewcommand{\backlash}{\relax}
 \renewcommand{\rightarrow}{-->}
\newcommand{\www}[2]  {\htmladdnormallink{#1}{#2}}
\newcommand{\wwwt}[2] {\htmladdnormallink{#1}{#2}}
\newcommand{\wwws}[1] {\htmladdnormallink{#1}{#1}} 
\newcommand{\wwwm}[1] {e-mail \wwwmt{#1}}
\newcommand{\wwwmt}[1]{\htmladdnormallink{#1}{mailto:#1}}
\newcommand{\mylabel}[2]{\label{#1}{#2}}
\newcommand  {\myref}[2]{\hyperref{#2}{#2}{}{#1}}
\newcommand{\nolinkurl}[1]{\texttt{#1}}
\end{htmlonly}
%begin{latexonly}
\ifx\pdfoutput\undefined
 \newcommand{\www}[2]  %{\begingroup\standardhyphens\href{#2}{#1}\endgroup}
                    {\url{#1}}
 \newcommand{\wwwt}[2] {#1}
 \newcommand{\file}[1]{\url{#1}}		    
\else 
 \newcommand{\www}[2]  %{\begingroup\standardhyphens\href{#2}{#1}\endgroup}
                    {\href{#2}{\nolinkurl{#1}}}
                              % nolinkurl is the name hyperref introduces
			        % as a new name for the \url of the url.sty
				% -- \url has another meaning in hyperref            
 \newcommand{\wwwt}[2] {\href{#2}{#1}} %for texts instead of urls
 \newcommand{\file}[1]{\nolinkurl{#1}}		    
\fi
\newcommand{\wwws}[1] {\www{#1}{#1}} 
\newcommand{\wwwm}[1] {e-mail \wwwmt{#1}}
\newcommand{\wwwmt}[1]{\www{#1}{mailto:#1}}
\newcommand{\mtimes}{\ensuremath{\times}}
\def\http#1{%\begingroup%
            %  \catcode`\~=13\def~{\~{}}%
              %\catcode`\_=13\def_{\_{}}% %spoils even the ~ definition!
              \wwws{http://#1}%
            % \endgroup
	     }
\def\ftp#1{%\begingroup%
            %  \catcode`\~=13\def~{\~{}}%
              %\catcode`\_=13\def_{\_{}}% %spoils even the ~ definition!
              \wwws{ftp://#1}%
            % \endgroup
	    }
\def\httpw#1{%\begingroup%
             % \catcode`\~=13\def~{\~{}}%
              %\catcode`\_=13\def_{\_{}}% %spoils even the ~ definition!
              \www{#1}{http://#1}%
             %\endgroup
	     }
\newcommand{\httpc}[1]{\\ \centerline{\http{#1}}}
\newcommand{\httpcp}[1]{\\ \centerline{(\http{#1})}}
\newcommand{\mygraphics}[2]{\includegraphics[#1]{#2}}
%end{latexonly}

\newcommand{\h}[1]{\www{#1}{http://#1}}
\newcommand{\hw}[1]{\h{www.#1}}
\newcommand{\w}[1]{\www{#1}{http://www.#1}}
\newcommand{\iemph}[1]{\emph{#1}\index{#1}}
\newcommand{\iemphe}[1]{\emph{#1}\index{#1|emph}}
\newcommand{\ind}[1]{#1\index{#1}}
\newcommand{\inde}[1]{#1\index{#1|emph}}
\newcommand{\m}{\,\textrm{m}}
\newcommand{\mm}{\,\textrm{mm}}
\newcommand{\cm}{\,\textrm{cm}}
\newcommand{\dm}{\,\textrm{dm}}
\newcommand{\msp}{\textrm{m\ensuremath{^2}}}
\newcommand{\mcp}{\textrm{m\ensuremath{^3}}}
\newcommand{\ms}{\,\msp}
\newcommand{\mc}{\,\mcp}
\newcommand{\pms}{/\msp}
\newcommand{\pmc}{/\mcp}
\newcommand{\COdva}{CO\ensuremath{_2}}
\newcommand{\mgmc}{\,mg\pmc}
\newcommand{\kgmc}{\,kg\pmc}
\newcommand{\MJmc}{\,MJ\pmc}
\newcommand{\WsqmK}{\,W/(\msp{}K)}
\newcommand{\Wsqm}{\,W\pms}
\newcommand{\kWhsqm}{\,kWh\pms}
\newcommand{\kWhsqma}{\,kWh/(\msp{}a)}
\newcommand{\cdpms}{\,\textrm{cd\pms}}
\newcommand{\httpme}[1]
 {\h{astro.sci.muni.cz/pub/hollan/e_papers/#1}}
\newcommand{\httpma}[1]
 {\h{astro.sci.muni.cz/pub/hollan/a_papers/#1}}
\newcommand{\httpmp}
 {\h{astro.sci.muni.cz/pub/hollan/programmes}}
\newcommand{\httpml}[1]
 {\h{astro.sci.muni.cz/pub/hollan/lighting/#1}}
\newcommand{\light}[2]
 {\wwwt{#2}{http://astro.sci.muni.cz/pub/hollan/lighting/#1}}
\newcommand{\ekodum}{\h{amper.ped.muni.cz/ekodum}}
\newcommand{\Ekodum}
 {\wwwmt{ekodum@fsv.cvut.cz} (archiv viz \hw{fsv.cvut.cz/lists/ekodum}) }
\newcommand{\energ}{\h{amper.ped.muni.cz/energ}}
\newcommand{\sbk}{\h{amper.ped.muni.cz/sbk}}
\newcommand{\amper}[1]{\h{amper.ped.muni.cz/#1}}
\newcommand{\ampsv}[1]{\h{amper.ped.muni.cz/svetlo/#1}}
\newcommand{\ampjl}[1]{\h{amper.ped.muni.cz/jenik/letters/#1}}
\newcommand{\astrov}[0]{\standardhyphens\amper{astro-v}\splithyphens}
\newcommand{\cassv}[1]{\h{svetlo.astro.cz/#1}}
\newcommand{\svetlaren}[1]{\h{groups.yahoo.com/group/svetlaren/#1}}
\newcommand{\rady}[0]{\h{rady.astronomy.cz}}
\newcommand{\aee}{\hw{aee.at}}
\newcommand{\phytoenergy}
 {\wwwmt{phytoenergy@yahoogroups.com}
  (viz \h{groups.yahoo.com/group/phytoenergy/})}
\newcommand{\EkoWATT}{\hw{ekowatt.cz}}
\newcommand{\JH}
 {\wwwt{Jan Hollan}{http://astro.sci.muni.cz/pub/hollan},
 \wwwt{Hvìzdárna a planetárium M. Koperníka v Brnì}{http://www.hvezdarna.cz}}
\newcommand{\JHe}
 {\wwwt{Jan Hollan}{http://astro.sci.muni.cz/pub/hollan},
 \wwwt{N. Copernicus Observatory and Planetarium in Brno}{http://www.hvezdarna.cz}}
\newcommand{\PP}
 {\wwwt{Petr Pravec}{http://www.asu.cas.cz/~ppravec},
 \wwwt{Astronomical Institute of the Academy of Sciences of the Czech
 Republic}{http://www.asu.cas.cz}}
\newcommand{\JHet}
 {\wwwt{Jan Hollan}{http://astro.sci.muni.cz/pub/hollan}, \\
 \wwwt{N. Copernicus Observatory and Planetarium in Brno}{http://www.hvezdarna.cz}}
\newcommand{\hvee}
 {\wwwt{N. Copernicus Observatory and Planetarium in Brno}{http://www.hvezdarna.cz}}
\newcommand{\PPt}
 {\wwwt{Petr Pravec}{http://www.asu.cas.cz/~ppravec}, \\
 \wwwt{\parbox{\textwidth}{\centering 
 Astronomical Institute of the Academy of Sciences \\
 of the Czech Republic}}{http://www.asu.cas.cz}}
\newcommand{\hvebr}
 {\wwwt{Hvìzdárna a planetárium M. Koperníka v Brnì}{http://www.hvezdarna.cz}}
\newcommand{\hvepr}
 {\wwwt{©tefánikova hvìzdárna, Petøín}{http://www.observatory.cz}}
\newcommand{\JHp}
 {\wwwt{Jan Hollan}{http://astro.sci.muni.cz/pub/hollan}}
\newcommand{\JHV}
 {\wwwt{Jan Hollan}{http://astro.sci.muni.cz/pub/hollan},
 \wwwt{Veronica}{http://www.veronica.cz}}
\newcommand{\authjenhv}
 {\author {\JH}}
\newcommand{\authJHPP}
 {\author {\JHe \\ \PP}}
\newcommand{\authJHPPt}
 {\author {\JHet \\ \PPt}}
\newcommand{\authjenve}
 {\author {\JHV}}


\begin{htmlonly}
\newcommand{\http}[1]{\wwws{http://#1}}
\newcommand{\ftp}[1]{\wwws{ftp://#1}}
\newcommand{\httpw}[1]{\www{#1}{http://#1}}
\newcommand{\httpc}[1]{\http{#1}}   % no need to center, enough conspicuous
\newcommand{\httpcp}[1]{(\http{#1})}
\renewcommand{\bi}{\begin{itemize}}
\renewcommand{\be}{\begin{enumerate}}
\renewcommand{\bie}{\begin{itemize}}
\renewcommand{\bee}{\begin{enumerate}}
\renewcommand{\ei}{\end{itemize}}
\renewcommand{\en}{\end{enumerate}}
\renewenvironment{itemize}
 {
  \begin{rawhtml}
  <ul>
  \end{rawhtml}
 }
 {
  \begin{rawhtml}
  </ul>
  \end{rawhtml}
 }
\renewenvironment{enumerate}
 {
  \begin{rawhtml}
  <ol>
  \end{rawhtml}
 }
 {
  \begin{rawhtml}
  </ol>
  \end{rawhtml}
 }
\renewcommand{\item}{
\begin{rawhtml}
<li>
\end{rawhtml}
 }
\newcommand{\CS}{CS}
\newcommand{\CSTUG}{CSTUG}
\newcommand{\CSTeX}{CS\TeX}
\newcommand{\CSED}{CSED}
\renewcommand{\parbox}[2]
 {\begin{rawhtml}
   <td>
  \end{rawhtml}
  #2
  \begin{rawhtml}
   </td>
  \end{rawhtml}
 } 
\newcommand{\mygraphics}[2]
 {\begin{rawhtml}
   <img src=
  \end{rawhtml}
  "#2.png" alt="#2.png"
  \begin{rawhtml}
   >
  \end{rawhtml}
 } 
\renewcommand{\,}{~}
\newcommand{\ms}{~m\begin{rawhtml}<sup>2</sup>\end{rawhtml}}
\newcommand{\mc}{~m\begin{rawhtml}<sup>3</sup>\end{rawhtml}}
\newcommand{\msp}{m\begin{rawhtml}<sup>2</sup>\end{rawhtml}}
\newcommand{\mcp}{m\begin{rawhtml}<sup>3</sup>\end{rawhtml}}
\newcommand{\pmc}{/m\begin{rawhtml}<sup>3</sup>\end{rawhtml}}
\newcommand{\pms}{/m\begin{rawhtml}<sup>2</sup>\end{rawhtml}}
\newcommand{\COdva}{CO\begin{rawhtml}<sub>2</sub>\end{rawhtml}}
\newcommand{\mgmc}{~mg\pmc}
\newcommand{\MJmc}{~MJ\pmc}
\end{htmlonly}
