\usepackage[T2A]{fontenc}       %поддержка кириллицы
\usepackage[koi8-r]{inputenc}
\usepackage[english,russian]{babel}
\graphicspath{{./pic/}{./04/}}
\usetheme{Boadilla}
\usefonttheme{structurebold}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}

\newenvironment{pict}%
    {\begin{figure}[!h]\begin{center}\noindent}%
    {\end{center}\end{figure}}

\setbeamercolor{color1}{bg=blue!50!black,fg=white}
\setbeamercolor{normal text}{bg=blue!20!black,fg=cyan!70!white}
\setbeamercolor{frametitle}{fg=red,bg=blue!40!black}
\setbeamercolor{title}{fg=red,bg=blue!40!black}
\setbeamercolor{block title}{fg=cyan,bg=blue!40!black}
\newenvironment{defin}{\begin{beamercolorbox}[shadow=true, rounded=true]{color1}}%
{\end{beamercolorbox}}
\newcommand{\img}[2][]{\begin{pict}\includegraphics[width=#1\columnwidth]{#2}\end{pict}}
\newcommand{\smimg}[2][]{\includegraphics[width=#1\columnwidth]{#2}}
\logo{\includegraphics[width=1cm,height=1cm,keepaspectratio]{saologo.jpg}}

\def\daterussian{ % fix for iюня and iюля
  \def\today{\number\day~\ifcase\month\or
   \cyrya\cyrn\cyrv\cyra\cyrr\cyrya\or
   \cyrf\cyre\cyrv\cyrr\cyra\cyrl\cyrya\or
   \cyrm\cyra\cyrr\cyrt\cyra\or
   \cyra\cyrp\cyrr\cyre\cyrl\cyrya\or
   \cyrm\cyra\cyrya\or
   \cyri\cyryu\cyrn\cyrya\or
   \cyri\cyryu\cyrl\cyrya\or
   \cyra\cyrv\cyrg\cyru\cyrs\cyrt\cyra\or
   \cyrs\cyre\cyrn\cyrt\cyrya\cyrb\cyrr\cyrya\or
   \cyro\cyrk\cyrt\cyrya\cyrb\cyrr\cyrya\or
   \cyrn\cyro\cyrya\cyrb\cyrr\cyrya\or
   \cyrd\cyre\cyrk\cyra\cyrb\cyrr\cyrya\fi
   \space \number\year~\cyrg.}}

\author[Емельянов Э.В.]{Емельянов Эдуард Владимирович}
\institute[САО РАН]{Специальная астрофизическая обсерватория РАН\\
	{\tiny Лаборатория обеспечения наблюдений}\\
}

\newenvironment{lightframe}{\bgroup\setbeamercolor{normal text}%
{bg=blue}\begin{frame}}{\end{frame}\egroup}
\newenvironment{blueframe}{\bgroup\setbeamercolor{normal text}%
{bg=cyan!70!white}\begin{frame}}{\end{frame}\egroup}
