\documentclass{article}

\usepackage[screen,panelright]{pdfscreen}

\usepackage[pdftex]{eforms}

\usepackage[filename=tooltipy]{fancytooltips}

% \buttontipwidth=3in
% \buttontipheight=3in
% \def\delayinterval{50}
% \def\TooltipExtratext{}
% \definecolor{tooltipcolor}{rgb}{1,0,0}

\panelwidth=0.73in
\setlength\buttonwidth{.9\panelwidth}
\setlength\smallbuttonwidth{.45\panelwidth}
\addtolength{\smallbuttonwidth}{-1.2pt}

\margins{0.1in}{0.1in}{0.1in}{0.1in}
\urlid{www.mendelu.cz/user/marik}
\screensize{4in}{5.2in}
\definecolor{buttonbackground}{gray}{.6}
\definecolor{buttonshadow}{gray}{.2}
\emblema{logomu.pdf}

% \definecolor{panelbackground}{rgb}{1,1,0.9}
\definecolor{lightyellow}{rgb}{1,1,0.9}
\backgroundcolor{lightyellow}
\makeatletter

%%% uprava panelu tak abych do praveho horniho rohu kazde stranky
%%% vpasoval tlacitko s animacemi. Bude se jmenovat porad stejne, ale
%%% zda se ze to nevadi.
%%%
%%% This is a trick which puts \frametip on every page
 
\def\@@logo#1{%
  \hfill\frametip  \\%%%%% tady je to tlacitko
  \global\setbox0=\hbox{
    \includegraphics{#1}}%
  \ifdim\ht0>\wd0%
  \includegraphics[height=0.9\hsize]{#1}%
  \else%
  \ifdim\wd0>\ht0%
  \includegraphics[width=0.9\hsize]{#1}%
  \else%
  \ifdim\wd0=\ht0%%
  \includegraphics[width=0.9\hsize]{#1}%
  \fi\fi\fi
}


\def\panel{%
       \begin{minipage}[t][\paperheight][c]{\panelwidth}%
       \normalsfcodes%
       \centering%
        %\null
	\vspace*{3pt}%\vfill%
        \ifx\@emblema\@empty\relax\else%
        \@@logo{\@emblema}\par\vfill\fi%
	\ifx\logoB\undefined\else\logoB\fi
     \if@paneltoc%
      \@panel@toc\par\vfill\else\relax\fi%
       \color{blue}%
   \NavigationPanel%
   \par%\vfill
   %\null
   \vspace*{1pt}%
   \end{minipage}%
}


%%% odstaranim polozku Contents z panelu
%%% we remove the contents from panel

\def\NavigationPanel{\normalsfcodes%
     \href{\@urlid}{\addButton{\buttonwidth}{\@Panelhomepagename}}\\ \pfill
     \Acrobatmenu{Print}{\addButton{\buttonwidth}{Print}}\\\pfill
     \Acrobatmenu{FirstPage}{\addButton{\buttonwidth}{\FBlack\@Paneltitlepagename}}\\\pfill
     \Acrobatmenu{FirstPage}{\addButton{\smallbuttonwidth}{\FBlack\scalebox{.8}[1.4]{\btl\btl}}}\hspace*{-2pt}
     \Acrobatmenu{LastPage}{\addButton{\smallbuttonwidth}{\LBlack\scalebox{.8}[1.4]{\rtl\rtl}}}\\\pfill
     \Acrobatmenu{PrevPage}{\addButton{\smallbuttonwidth}{\FBlack\scalebox{.8}[1.4]{\btl}}}\hspace*{-2pt}
     \Acrobatmenu{NextPage}{\addButton{\smallbuttonwidth}{\LBlack\scalebox{.8}[1.4]{\rtl}}}\\\pfill
     \Acrobatmenu{GoToPage}{\addButton{\buttonwidth}{\@Panelpagename\space
       \textcolor{red}{\thepage}\space\@Panelofname\space
       \textcolor{red}{\ScreenLastPage}}}\\\pfill
     \Acrobatmenu{GoBack}{\addButton{\buttonwidth}{\@Panelgobackname}}\\\pfill
     \Acrobatmenu{FullScreen}{\addButton{\buttonwidth}{\@Panelfullscreenname}}\\\pfill
     \Acrobatmenu{Close}{\addButton{\buttonwidth}{\@Panelclosename}}\\\pfill
     \Acrobatmenu{Quit}{\addButton{\buttonwidth}{\@Panelquitname}}\\
}

\makeatother


\let\rmdefault\sfdefault


\usepackage{amsmath}
\usepackage[shadein]{shadethm}

\newshadetheorem{definice}{Definice}

\usepackage{graphicx}

\begin{document}


\parindent 0 pt

\begin{itemize}
\item The blue text is active button. If you move mouse to this button
  with Shift key down or if you press this button, tooltip appears. Is
  you move your mouse out or if you close the page, the tooltip
  disappears.
\item The first links are tooltips, the third one is animated tooltip.
  have a fun
\end{itemize}
\begin{definice}
  This is definition of  \tooltip{rank}{hodnost}. bla bla bla.
\end{definice}


\begin{definice}
  This is definition of \tooltip{derivative}{derivace}. 
\end{definice}

This is a geometric  \tooltipanim{idea}{3}{27} which is behind the definition of derivative.

\newpage
Page 2

Here we speak more about \tooltip{rank}{hodnost}
\newpage
Page 3 
\TooltipHidden
\end{document}
