\ProvidesPackage{beamerbasetemplates}[2004/02/24 ver 2.01]
\NeedsTeXFormat{LaTeX2e}[1995/12/01]


\mode<presentation>


\RequirePackage{pgfshade}
\RequirePackage{beamerbaseboxes}



% Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
%
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN
% archives in directory macros/latex/base/lppl.txt.

%
% Title and part page templates
%

\newcommand{\beamertemplatelargetitlepage}{
  \usetitlepagetemplate{
    \vbox{}
    \vfill
    \begin{centering}
      {\Large\structure{\inserttitle}}\par
      \ifx\insertsubtitle\@empty\else\vskip0.25em{\structure{\insertsubtitle}}\par\fi
      \vskip1em\par
      \normalsize\insertauthor\vskip1em\par
      {\scriptsize\insertinstitute\par}\par\vskip1em
      \insertdate\par\vskip1.5em
      \inserttitlegraphic\par
    \end{centering}
    \vfill
  }
}

\newcommand{\beamertemplateboldtitlepage}{
  \usetitlepagetemplate{
    \vbox{}
    \vfill
    \begin{centering}
      {\large\structure{\textbf{\inserttitle}}}\par
      \ifx\insertsubtitle\@empty\else\vskip0.25em{\structure{\insertsubtitle}}\par\fi
      \vskip1em\par
      \normalsize\insertauthor\vskip1em\par
      {\scriptsize\insertinstitute\par}\par\vskip1em
      \insertdate\par\vskip1.5em
      \inserttitlegraphic\par
    \end{centering}
    \vfill
  }
} 

\newcommand{\beamertemplatelargepartpage}{
  \usepartpagetemplate{
    \begin{centering}
      \Large\structure{\partname~\insertromanpartnumber}
      \vskip1em\par
      \insertpart\par
    \end{centering}
  }
}

\newcommand{\beamertemplateboldpartpage}{
  \usepartpagetemplate{
    \begin{centering}
      \large\structure{\partname~\insertromanpartnumber}
      \vskip1em\par
      \textbf{\insertpart}\par
    \end{centering}
  }
}


%
% Frame title templates
%

\newcommand{\beamertemplateboldcenterframetitle}{
  \useframetitletemplate{%
    \vskip0.25em%
    \begin{centering}
      \structure{\textbf{\insertframetitle}}
      \par
      {\footnotesize\structure{\textbf{\insertframesubtitle}}\par}
    \end{centering}
  }
}

  
\newcommand{\beamertemplateboldframetitle}{
  \useframetitletemplate{%
    \vskip0.25em%
    {\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
     \rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\leavevmode
      \color{beamerstructure}
      \Large\bfseries\insertframetitle\par%
      {\footnotesize\structure{\textbf{\insertframesubtitle}}\par}}%
    }
}
\newcommand{\beamertemplatelargeframetitle}{
  \useframetitletemplate{%
    \vskip0.25em%
    {\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
     \rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\leavevmode
      \color{beamerstructure}
      \Large\insertframetitle\par%
      {\footnotesize\structure{\insertframesubtitle}\par}%
    }%
  }
}
  

%
% Side bars
%
\newcommand{\beamertemplaterightsidebarlogonavigation}{
  \userightsidebartemplate{0cm}{%
    \vfill%
    \llap{\insertlogo\hskip0.1cm}%
    \vskip2pt%
    \llap{\insertnavigationsymbols\hskip0.1cm}%
    \vskip2pt}
}
 



%
% Table of contents templates
%

\newcommand{\beamertemplateplaintoc}{
  \usetemplatetocsection[20!averagebackgroundcolor]
    {\large\color{beamerstructure}\inserttocsection}

  \usetemplatetocsubsection[20!averagebackgroundcolor]
    {\leavevmode\leftskip=1.5em\color{black}\inserttocsubsection\par}
}

\newcommand{\beamertemplatenumberedsubsectiontoc}{
  \usetemplatetocsection[20!averagebackgroundcolor]
    {\leavevmode\leftskip=2em\color{beamerstructure}\inserttocsection}

  \usetemplatetocsubsection[20!averagebackgroundcolor]
    {\leavevmode\leftskip=2em\color{black}\rlap{\hskip-2em\inserttocsectionnumber.\inserttocsubsectionnumber}\inserttocsubsection\par}
}

\newcommand{\beamertemplatenumberedsectiontoc}{
  \usetemplatetocsection[20!averagebackgroundcolor]
  {\leavevmode\color{beamerstructure}\inserttocsectionnumber. \inserttocsection\par}

  \usetemplatetocsubsection[20!averagebackgroundcolor]
  {\leavevmode\leftskip=2.5em\color{black}\inserttocsubsection\par}
}

\@ifundefined{pgfex}{\newdimen\pgfex}{}

\newcommand{\beamertemplatenumberedcirclesectiontoc}{
  \usetemplatetocsection[20!averagebackgroundcolor]
  {\leavevmode\leftskip=.5em\color{beamerstructure}%
    \llap{\pgfex=1ex\begin{pgfpicture}{-1ex}{0ex}{1ex}{2ex}
      \color{beamerstructure!50!averagebackgroundcolor}
      \pgfcircle[fill]{\pgfpoint{0pt}{.75\pgfex}}{1.2\pgfex}
      \pgfbox[center,base]{\color{white}\inserttocsectionnumber}
    \end{pgfpicture}\kern1.5ex}\inserttocsection\par}

  \usetemplatetocsubsection[20!averagebackgroundcolor]
  {\leavevmode\leftskip=2em\color{black}\inserttocsubsection\par}
}


\newcommand{\beamertemplatenumberedballsectiontoc}{
  \pgfdeclareradialshading{tocsphere}{\pgfpoint{-0.5ex}{0.6ex}}%
  {color(0cm)=(beamerstructure!35!white);
    color(0.44ex)=(beamerstructure!75!white);
    color(0.88ex)=(beamerstructure!70!black!90!averagebackgroundcolor);
    color(1.2ex)=(beamerstructure!50!black!90!averagebackgroundcolor);
    color(1.3ex)=(averagebackgroundcolor)}

  \begin{colormixin}{20!averagebackgroundcolor}
  \pgfdeclareradialshading{tocsphereshaded}{\pgfpoint{-0.5ex}{0.6ex}}%
  {color(0cm)=(beamerstructure!35!white);
    color(0.44ex)=(beamerstructure!75!white);
    color(0.88ex)=(beamerstructure!70!black!90!averagebackgroundcolor);
    color(1.2ex)=(beamerstructure!50!black!90!averagebackgroundcolor);
    color(1.3ex)=(averagebackgroundcolor)}
  \end{colormixin}
  \pgfaliasshading{tocsphere.!20opaque}{tocsphereshaded}
  \pgfaliasshading{tocsphere.!20!averagebackgroundcolor}{tocsphereshaded}

  \begin{colormixin}{15!averagebackgroundcolor}
  \pgfdeclareradialshading{tocsphereshaded}{\pgfpoint{-0.5ex}{0.6ex}}%
  {color(0cm)=(beamerstructure!35!white);
    color(0.44ex)=(beamerstructure!75!white);
    color(0.88ex)=(beamerstructure!70!black!90!averagebackgroundcolor);
    color(1.2ex)=(beamerstructure!50!black!90!averagebackgroundcolor);
    color(1.3ex)=(averagebackgroundcolor)}
  \end{colormixin}
  \pgfaliasshading{tocsphere.!15opaque}{tocsphereshaded}

  \begin{colormixin}{10!averagebackgroundcolor}
  \pgfdeclareradialshading{tocsphereshaded}{\pgfpoint{-0.5ex}{0.6ex}}%
  {color(0cm)=(beamerstructure!35!white);
    color(0.44ex)=(beamerstructure!75!white);
    color(0.88ex)=(beamerstructure!70!black!90!averagebackgroundcolor);
    color(1.2ex)=(beamerstructure!50!black!90!averagebackgroundcolor);
    color(1.3ex)=(averagebackgroundcolor)}
  \end{colormixin}
  \pgfaliasshading{tocsphere.!10opaque}{tocsphereshaded}

  \begin{colormixin}{5!averagebackgroundcolor}
  \pgfdeclareradialshading{tocsphereshaded}{\pgfpoint{-0.5ex}{0.6ex}}%
  {color(0cm)=(beamerstructure!35!white);
    color(0.44ex)=(beamerstructure!75!white);
    color(0.88ex)=(beamerstructure!70!black!90!averagebackgroundcolor);
    color(1.2ex)=(beamerstructure!50!black!90!averagebackgroundcolor);
    color(1.3ex)=(averagebackgroundcolor)}
  \end{colormixin}
  \pgfaliasshading{tocsphere.!5opaque}{tocsphereshaded}

  \begin{colormixin}{2!averagebackgroundcolor}
  \pgfdeclareradialshading{tocsphereshaded}{\pgfpoint{-0.5ex}{0.6ex}}%
  {color(0cm)=(beamerstructure!35!white);
    color(0.44ex)=(beamerstructure!75!white);
    color(0.88ex)=(beamerstructure!70!black!90!averagebackgroundcolor);
    color(1.2ex)=(beamerstructure!50!black!90!averagebackgroundcolor);
    color(1.3ex)=(averagebackgroundcolor)}
  \end{colormixin}
  \pgfaliasshading{tocsphere.!2opaque}{tocsphereshaded}

  
  \usetemplatetocsection[20!averagebackgroundcolor]
  {\leavevmode\leftskip=1em\color{beamerstructure}%
    \llap{%
      \begin{pgfpicture}{-1ex}{-0.7ex}{1ex}{1ex}
        \pgfbox[center,center]{\pgfuseshading{tocsphere}}
        \pgfbox[center,center]{\color{white!90!beamerstructure}\scriptsize\textbf{\inserttocsectionnumber}}
      \end{pgfpicture}%
      \kern1.5ex}%
    \inserttocsection\par}
  
  \usetemplatetocsubsection[20!averagebackgroundcolor]
    {\leavevmode\leftskip=2em\color{black}\llap{\raise0.1ex\hbox{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}\kern1ex}\inserttocsubsection\par}
}

\newcommand{\beamertemplateballtoc}{
  \usetemplatetocsection[20!averagebackgroundcolor]
    {\leavevmode\color{beamerstructure}\raise0.1ex\hbox{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}\ \inserttocsection\par}

  \usetemplatetocsubsection[20!averagebackgroundcolor]
    {\leavevmode\leftskip=1.5em\color{black}\raise0.2ex\hbox{\pgfuseshading{bmb@cs\bmb@scheme smallsphere}}\ \inserttocsubsection\par}
}


%
% Item templates
%

\newcommand{\beamertemplatedotitem}{%
  \useitemizeitemtemplate{\small\raise0.5pt\hbox{\color{beamerstructure}\textbullet}}
  \usesubitemizeitemtemplate{\footnotesize\raise0.5pt\hbox{\color{beamerstructure}\textbullet}}
  \usesubsubitemizeitemtemplate{\footnotesize\raise0.5pt\hbox{\color{beamerstructure}\textbullet}}
  }

\newcommand{\beamertemplateballitem}{%
  \useitemizeitemtemplate{\raise0.2pt\hbox{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}}
  \usesubitemizeitemtemplate{\raise0.2pt\hbox{\pgfuseshading{bmb@cs\bmb@scheme smallsphere}}}
  \usesubsubitemizeitemtemplate{\raise0.2pt\hbox{\pgfuseshading{bmb@cs\bmb@scheme smallsphere}}}

  \useenumerateitemtemplate{
    \color{beamerstructure}%
    \begin{pgfpicture}{-1ex}{-0.65ex}{1ex}{1ex}
      \begin{pgfmagnify}{1.75}{1.75}
        \pgfbox[center,center]{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}
      \end{pgfmagnify}
      \pgfputat{\pgfpoint{0pt}{0.5pt}}
        {\pgfbox[center,center]{\color{white}\tiny\textbf{\insertenumlabel}}}
    \end{pgfpicture}}
  \usesubenumerateitemtemplate{%
    \color{beamerstructure}%
    \begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
      \begin{pgfmagnify}{1.4}{1.4}
        \pgfbox[center,center]{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}
      \end{pgfmagnify}
      \pgfbox[center,center]{\color{white}\tiny\insertsubenumlabel}
    \end{pgfpicture}}
  \usesubsubenumerateitemtemplate{%
    \color{beamerstructure}%
    \begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
      \begin{pgfmagnify}{1.4}{1.4}
        \pgfbox[center,center]{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}
      \end{pgfmagnify}
      \pgfbox[center,center]{\color{white}\tiny\insertsubsubenumlabel}
    \end{pgfpicture}}
  \useenumerateitemminitemplate{%
    \color{beamerstructure}%
    \begin{pgfpicture}{-1ex}{-0.65ex}{1ex}{1ex}
      \begin{pgfmagnify}{1.75}{1.75}
        \pgfbox[center,center]{\pgfuseshading{bmb@cs\bmb@scheme bigsphere}}
      \end{pgfmagnify}
      \pgfputat{\pgfpoint{0pt}{0.5pt}}
        {\pgfbox[center,center]{\color{white}\tiny\textbf{\insertenumlabel}}}
    \end{pgfpicture}}

  \AtBeginDocument{\beamertemplatesetupshadings}
}

\newcommand{\beamertemplatetriangleitem}{%
  \useitemizeitemtemplate{\scriptsize\raise1.25pt\hbox{\color{beamerstructure}$\blacktriangleright$}}
  \usesubitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{beamerstructure}$\blacktriangleright$}}
  \usesubsubitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{beamerstructure}$\blacktriangleright$}}
  }


%
% Enumerate Item templates
%

\newcommand{\beamertemplateenumeratealpha}{
  \useenumerateitemtemplate{\color{beamerstructure}\insertenumlabel.}
  \usesubenumerateitemtemplate{\color{beamerstructure}\insertenumlabel.\insertsubenumlabel}
  \usesubsubenumerateitemtemplate{\color{beamerstructure}\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel}
  }
  
%
% Head templates
%

\newcommand{\beamertemplateheadempty}{\useheadtemplate{}}


%
% Headline stuff
%

\newcommand{\beamertemplatelightsectionheads}
{
  \usesectionheadtemplate
  {\hfill\color{white}\tiny\textbf{\insertsectionhead}}
  {\hfill\color{white!50!beamerstructure}\tiny\textbf{\insertsectionhead}}

  \usesubsectionheadtemplate
  {\color{white}\tiny\textbf{\insertsubsectionhead}}
  {\color{white!50!beamerstructure}\tiny\textbf{\insertsubsectionhead}}
}

\newcommand{\beamertemplatedarksectionheads}
{
  \usesectionheadtemplate
  {\color{beamerstructure}\tiny\insertsectionhead}
  {\color{beamerstructure!50!averagebackgroundcolor}\tiny\insertsectionhead}

  \usesubsectionheadtemplate
  {\color{beamerstructure}\tiny\insertsubsectionhead}
  {\color{beamerstructure!50!averagebackgroundcolor}\tiny\insertsubsectionhead}
}



%
% Foot templates
%

\newcommand{\beamertemplatefootempty}{\usefoottemplate{}}

\newcommand{\beamertemplatefootpagenumber}{%
  \usefoottemplate{%
  \hfil\tiny{\color{black!50!averagebackgroundcolor}\insertpagenumber}}}

%
% Mini navigation bar frame templates
%

\newcommand{\beamertemplatesphereminiframe}{
  \pgfdeclareradialshading{minispherehilight}{\pgfpoint{-0.63pt}{0.77pt}}%
  {color(0cm)=(white);
    color(0.56pt)=(white);
    color(1.12pt)=(beamerstructure!25);
    color(1.54pt)=(beamerstructure!30!black);
    color(1.82pt)=(averagebackgroundcolor)}
  \pgfdeclareradialshading{minispheresemidull}{\pgfpoint{-0.63pt}{0.77pt}}%
  {color(0cm)=(beamerstructure!15);
    color(0.56pt)=(beamerstructure!50);
    color(1.12pt)=(beamerstructure!70!black);
    color(1.54pt)=(beamerstructure!50!black);
    color(1.82pt)=(averagebackgroundcolor)}
  \begin{colormixin}{25!averagebackgroundcolor}
  \pgfdeclareradialshading{minispheredull}{\pgfpoint{-0.63pt}{0.77pt}}%
  {color(0cm)=(beamerstructure!15);
    color(0.56pt)=(beamerstructure!50);
    color(1.12pt)=(beamerstructure!70!black);
    color(1.54pt)=(beamerstructure!50!black);
    color(1.82pt)=(averagebackgroundcolor)}
  \end{colormixin}
  \def\beamer@sphereradius{0.05cm}
  \useminislidetemplate
  {\pgfuseshading{minispherehilight}}
  {\pgfuseshading{minispheresemidull}}
  {\pgfuseshading{minispheredull}}
  {.14cm}{.03cm}
}

\newcommand{\beamertemplatesphereminiframeinverted}{
  \pgfdeclareradialshading{minispherehilight}{\pgfpoint{-0.63pt}{0.77pt}}%
  {color(0cm)=(white);
    color(0.56pt)=(beamerstructure!25);
    color(1.12pt)=(beamerstructure!30);
    color(1.54pt)=(beamerstructure!30!black);
    color(1.82pt)=(black)}
  \pgfdeclareradialshading{minispheresemidull}{\pgfpoint{-0.63pt}{0.77pt}}%
  {color(0cm)=(beamerstructure!15);
    color(0.56pt)=(beamerstructure!50);
    color(1.12pt)=(beamerstructure!70!black);
    color(1.54pt)=(beamerstructure!50!black);
    color(1.82pt)=(black)}
  \begin{colormixin}{25!beamerstructure}
  \pgfdeclareradialshading{minispheredull}{\pgfpoint{-0.63pt}{0.77pt}}%
  {color(0cm)=(beamerstructure!15);
    color(0.56pt)=(beamerstructure!50);
    color(1.12pt)=(beamerstructure!70!black);
    color(1.54pt)=(beamerstructure!50!black);
    color(1.82pt)=(black)}
  \end{colormixin}
  \def\beamer@sphereradius{0.05cm}
  \useminislidetemplate
  {\pgfuseshading{minispherehilight}}
  {\pgfuseshading{minispheresemidull}}
  {\pgfuseshading{minispheredull}}
  {.14cm}{.03cm}
}

\newcommand{\beamertemplatecircleminiframe}{
  \def\beamer@sphereradius{0.05cm}
  \useminislidetemplate
  {%
    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
      \color{beamerstructure}
      \pgfcircle[fillstroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
    \end{pgfpicture}%
  }
  {%
    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
      \color{beamerstructure}
      \pgfcircle[stroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
    \end{pgfpicture}%
  }
  {%
    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
      \color{beamerstructure!50!averagebackgroundcolor}
      \pgfcircle[stroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
    \end{pgfpicture}%
  }
  {.14cm}{.03cm}
}

\newcommand{\beamertemplatecircleminiframeinverted}{
  \def\beamer@sphereradius{0.05cm}
  \useminislidetemplate
  {%
    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
      \color{white}
      \pgfcircle[fillstroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
    \end{pgfpicture}%
  }
  {%
    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
      \color{white}
      \pgfcircle[stroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
    \end{pgfpicture}%
  }
  {%
    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
      \color{beamerstructure!50!averagebackgroundcolor}
      \pgfcircle[stroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
    \end{pgfpicture}%
  }
  {.14cm}{.03cm}
}

\newcommand{\beamertemplateboxminiframe}{
  \useminislidetemplate{%
    \begin{pgfpicture}{0pt}{0pt}{.1cm}{.1cm}
      \color{beamerstructure}
      \pgfrect[fillstroke]{\pgforigin}{\pgfpoint{\the\boxsize}{\the\boxsize}}
    \end{pgfpicture}%
  }  
  {%
    \begin{pgfpicture}{0pt}{0pt}{.1cm}{.1cm}
      \color{beamerstructure}
      \pgfrect[stroke]{\pgforigin}{\pgfpoint{\the\boxsize}{\the\boxsize}}
    \end{pgfpicture}%
  }
  {%
    \begin{pgfpicture}{0pt}{0pt}{.1cm}{.1cm}
      \color{beamerstructure!50!averagebackgroundcolor}
      \pgfrect[stroke]{\pgforigin}{\pgfpoint{\the\boxsize}{\the\boxsize}}
    \end{pgfpicture}%
  }
  {.1cm}{.05cm}
  }

\newcommand{\beamertemplateticksminiframe}{
  \useminislidetemplate
  {%
    \color{beamerstructure}%
    \hskip-0.4pt\vrule height\boxsize width1.2pt%
  }  
  {%
    \color{beamerstructure}%
    \vrule height\boxsize width0.4pt%
  }
  {%
    \color{beamerstructure!50!averagebackgroundcolor}%
    \vrule height\boxsize width0.4pt%
  }
  {.1cm}{.05cm}}


%
% Background templates
%

\newcommand{\beamertemplatesolidbackgroundcolor}[1]{
  \usebackgroundtemplate{\color{#1}\vrule width \paperwidth height\paperwidth}
  \beamersetaveragebackground{#1}
  }

\newcommand{\beamertemplateshadingbackground}[2]{
  \pgfdeclareverticalshading{background}{\the\paperwidth}%
  {color(0cm)=(#1); color(\the\paperheight)=(#2)}

  \usebackgroundtemplate{\pgfuseshading{background}}%
  \colorlet{beamer@backgroundshadestart}{#1}%
  \colorlet{beamer@backgroundshadeend}{#2}%
  \beamersetaveragebackground{beamer@backgroundshadestart!50!beamer@backgroundshadeend}%
  }
  
\newcommand{\beamertemplategridbackground}[1][0.5cm]{
  \usebackgroundtemplate{%
  \begin{pgfpicture}{0cm}{0cm}{\the\paperwidth}{\the\paperheight}
    \color{black!10!white}
    \pgfgrid[stepx=#1,stepy=#1]{\pgforigin}{\pgfpoint{\the\paperwidth}{\the\paperheight}}
  \end{pgfpicture}%    
  }}

\mode
<article>
{
  \newcommand{\beamertemplatesolidbackgroundcolor}[1]{}
  \newcommand{\beamertemplateshadingbackground}[2]{}
  \newcommand{\beamertemplategridbackground}{}
}


%
% Bibliography templates
%

\pgfdeclareimage[width=14pt,height=12pt]{beamericonbook}{beamericonbook}
\pgfdeclareimage[width=14pt,height=12pt]{beamericonbookshaded}{beamericonbook.20}
\pgfaliasimage{beamericonbook.!20opaque}{beamericonbookshaded}
\pgfaliasimage{beamericonbook.!15opaque}{beamericonbookshaded}
\pgfaliasimage{beamericonbook.!10opaque}{beamericonbookshaded}
\pgfaliasimage{beamericonbook.!5opaque}{beamericonbookshaded}
\pgfaliasimage{beamericonbook.!2opaque}{beamericonbookshaded}
\pgfdeclareimage[width=11pt,height=14pt]{beamericonarticle}{beamericonarticle}
\pgfdeclareimage[width=11pt,height=14pt]{beamericonarticleshaded}{beamericonarticle.20}
\pgfaliasimage{beamericonarticle.!20opaque}{beamericonarticleshaded}
\pgfaliasimage{beamericonarticle.!15opaque}{beamericonarticleshaded}
\pgfaliasimage{beamericonarticle.!10opaque}{beamericonarticleshaded}
\pgfaliasimage{beamericonarticle.!5opaque}{beamericonarticleshaded}
\pgfaliasimage{beamericonarticle.!2opaque}{beamericonarticleshaded}

\newcommand{\beamertemplatebookbibitems}{
  \usebibitemtemplate{\lower2pt\hbox{\pgfuseimage{beamericonbook}}}
}

\newcommand{\beamertemplatearticlebibitems}{
  \usebibitemtemplate{\lower3.5pt\hbox{\hskip2pt\pgfuseimage{beamericonarticle}\hskip1pt}}
}

\newcommand{\beamertemplatetextbibitems}{
  \usebibitemtemplate{\color{beamerstructure}\insertbiblabel}
}

\newcommand{\beamertemplatearrowbibitems}{
  \usebibitemtemplate{\color{beamerstructure}\scriptsize\raise1.25pt\hbox{$\blacktriangleright$}}
}

\mode
<article>
{
  \newcommand{\beamertemplatebookbibitems}{}
  \newcommand{\beamertemplatearticlebibitems}{}
  \newcommand{\beamertemplatetextbibitems}{}
  \newcommand{\beamertemplatearrowbibitems}{}  
}


%
% Captions
%

\newcommand{\beamertemplatecaptionwithnumber}{
\usecaptiontemplate{%
  {\small\structure{\insertcaptionname~\insertcaptionnumber:}
    \insertcaption}}}

\newcommand{\beamertemplatecaptionownline}{
\usecaptiontemplate{%
  {\small%
    \begin{minipage}{\textwidth}
      \structure{\insertcaptionname}\\
      \insertcaption
    \end{minipage}}}}



%
% Commands for making covered items transparent
%
\newcommand{\beamertemplatetransparentcovereddynamic}{
  \beamersetuncovermixins
  {\opaqueness<1>{15}\opaqueness<2>{10}\opaqueness<3>{5}\opaqueness<4->{2}}%
  {\opaqueness<1>{15}\opaqueness<2>{10}\opaqueness<3>{5}\opaqueness<4->{2}}}

\newcommand{\beamertemplatetransparentcovereddynamicmedium}{
  \beamersetuncovermixins
  {\opaqueness<1>{10}\opaqueness<2->{5}}%
  {\opaqueness<1>{10}\opaqueness<2>{5}}}

\newcommand{\beamertemplatetransparentcovered}{
  \beamersetuncovermixins%
  {\opaqueness<1->{15}}
  {\opaqueness<1->{15}}}

\newcommand{\beamertemplatetransparentcoveredmedium}{
  \beamersetuncovermixins%
  {\opaqueness<1->{10}}
  {\opaqueness<1->{10}}}

\newcommand{\beamertemplatetransparentcoveredhigh}{
  \beamersetuncovermixins%
  {\opaqueness<1->{5}}
  {\opaqueness<1->{5}}}

\newcommand{\beamertemplatetransparentcoveredhighest}{
  \beamersetuncovermixins%
  {\opaqueness<1->{2}}
  {\opaqueness<1->{2}}}


\mode
<article>
{
  \def\beamertemplatetransparentcovereddynamic{}
  \def\beamertemplatetransparentcovereddynamicmedium{}
  \def\beamertemplatetransparentcovered{}
  \def\beamertemplatetransparentcoveredmedium{}
  \def\beamertemplatetransparentcoveredhigh{}
  \def\beamertemplatetransparentcoveredhighest{}
}




%
% Buttons
%

\newdimen\beamer@dima%
\newdimen\beamer@dimb%
\newdimen\beamer@blockheadheight%

\newcommand{\beamertemplateoutlinebuttons}
{\usebuttontemplate{%
  \color{beamerstructure}
  \setbox\beamer@tempbox=\hbox{\tiny\insertbuttontext}%
  \ht\beamer@tempbox=6pt%
  \dp\beamer@tempbox=0pt%
  \setbox\beamer@tempbox=\vbox{\box\beamer@tempbox\vskip2pt}%
  \beamer@tempdim=\wd\beamer@tempbox%
  \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2pt
  \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4pt
  \begin{pgfpicture}{-4pt}{0pt}{\the\beamer@tempdim}{8pt}
    \color{beamerstructure!50!averagebackgroundcolor}
    \pgfsetlinewidth{0.8pt}
    \pgfqmoveto{0}{0}
    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8pt}}
    \pgfcurveto%
    {\pgfpoint{\the\beamer@dima}{8pt}}%
    {\pgfpoint{\the\beamer@dimb}{6.2pt}}%
    {\pgfpoint{\the\beamer@dimb}{4pt}}
    \pgfcurveto%
    {\pgfpoint{\the\beamer@dimb}{1.8pt}}%
    {\pgfpoint{\the\beamer@dima}{0pt}}%
    {\pgfpoint{\the\beamer@tempdim}{0pt}}
    \pgfclosepath
    \pgfstroke
  \end{pgfpicture}%
  \hskip-\beamer@tempdim%
  \box\beamer@tempbox%
  \kern4pt}}

\newcommand{\beamertemplatesolidbuttons}
{\usebuttontemplate{%
  \setbox\beamer@tempbox=\hbox{{\tiny\color{white}\insertbuttontext}}%
  \ht\beamer@tempbox=6pt%
  \dp\beamer@tempbox=0pt%
  \setbox\beamer@tempbox=\vbox{\box\beamer@tempbox\vskip2pt}%
  \beamer@tempdim=\wd\beamer@tempbox%
  \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2bp
  \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4bp
  \begin{pgfpicture}{-4bp}{0bp}{\the\beamer@tempdim}{8bp}
    \color{beamerstructure!50!averagebackgroundcolor}
    \pgfsetlinewidth{0.8bp}
    \pgfqmoveto{0}{0}
    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8bp}}
    \pgfcurveto%
    {\pgfpoint{\the\beamer@dima}{8bp}}%
    {\pgfpoint{\the\beamer@dimb}{6.2bp}}%
    {\pgfpoint{\the\beamer@dimb}{4bp}}
    \pgfcurveto%
    {\pgfpoint{\the\beamer@dimb}{1.8bp}}%
    {\pgfpoint{\the\beamer@dima}{0bp}}%
    {\pgfpoint{\the\beamer@tempdim}{0bp}}
    \pgffill
  \end{pgfpicture}%
  \hskip-\beamer@tempdim%
  \box\beamer@tempbox%
  \kern4pt}}


\newcommand{\beamertemplatenavigationsymbolsempty}{
  \usenavigationsymbolstemplate{}}

\newcommand{\beamertemplatenavigationsymbolsframe}{
  \usenavigationsymbolstemplate{\insertframenavigationsymbols}}

\newcommand{\beamertemplatenavigationsymbolsvertical}{%
  \usenavigationsymbolstemplate{
  \vbox{%
  \hbox{\insertslidenavigationsymbol}
  \hbox{\insertframenavigationsymbol}
  \hbox{\insertsubsectionnavigationsymbol}
  \hbox{\insertsectionnavigationsymbol}
  \hbox{\insertdocnavigationsymbol}
  \hbox{\insertbackfindforwardnavigationsymbol}}}}

\newcommand{\beamertemplatenavigationsymbolshorizontal}{%
  \usenavigationsymbolstemplate{\hbox{%
  \hbox{\insertslidenavigationsymbol}
  \hbox{\insertframenavigationsymbol}
  \hbox{\insertsubsectionnavigationsymbol}
  \hbox{\insertsectionnavigationsymbol}
  \hbox{\insertdocnavigationsymbol}
  \hbox{\insertbackfindforwardnavigationsymbol}}}}


%
% Blocks
%

\newcommand{\beamertemplateboldblocks}{
  \useblocktemplate{\medskip{\color{beamerstructure}\textbf{\insertblockname}}\par}{\medskip}
  \usealertblocktemplate{\medskip{\alert{\textbf{\insertblockname}}}\colorlet{beamerstructure}{beameralert}\par}{\medskip}
  \useexampleblocktemplate{\medskip\begingroup{\color{beamerstructure!50!green}\textbf{\insertblockname}}\par%
    \color{black!50!green}\colorlet{beamerstructure}{beamerstructure!50!green}}{\endgroup\medskip}
}

\newcommand{\beamertemplatelargeblocks}{
  \useblocktemplate{\medskip{\color{beamerstructure}\normalfont\large{\insertblockname}}\par}{\medskip}
  \usealertblocktemplate{\medskip{\alert{\normalfont\large{\insertblockname}}}\colorlet{beamerstructure}{beameralert}\par}{\medskip}
  \useexampleblocktemplate{\medskip\begingroup{\color{beamerstructure!50!green}\normalfont\large{\insertblockname}}\par%
    \color{black!50!green}\colorlet{beamerstructure}{beamerstructure!50!green}}{\endgroup\medskip}
}


\newcommand{\beamertemplatesetupshadings}{
  \beamerboxessetupshadows
  \beamerboxesdeclarecolorscheme{block}{beamerstructure!75!averagebackgroundcolor}{beamerstructure!10!averagebackgroundcolor}
  \beamerboxesdeclarecolorscheme{alert}{beameralert!75!averagebackgroundcolor}{beameralert!10!averagebackgroundcolor}
  \beamerboxesdeclarecolorscheme{example}{beamerexample!75!averagebackgroundcolor}{beamerexample!10!averagebackgroundcolor}
}

\newcommand{\beamertemplateroundedblocks}{
  \AtBeginDocument{\beamertemplatesetupshadings}

  \useblocktemplate{\medskip\begin{beamerboxesrounded}[scheme=block]{\normalfont\color{white}\insertblockname}\raggedright}%
    {\end{beamerboxesrounded}\smallskip}
  \usealertblocktemplate{\medskip\begin{beamerboxesrounded}[scheme=alert]{\normalfont\color{white}\insertblockname}\raggedright}%
    {\end{beamerboxesrounded}\smallskip}
  \useexampleblocktemplate{\medskip\begin{beamerboxesrounded}[scheme=example]{\normalfont\color{white}\insertblockname}\raggedright}%
    {\end{beamerboxesrounded}\smallskip}
}

\newcommand{\beamertemplateshadowblocks}{
  \AtBeginDocument{\beamertemplatesetupshadings}

  \useblocktemplate{\medskip\begin{beamerboxesrounded}[shadow=true,scheme=block]{\normalfont\color{white}\insertblockname}\raggedright}%
    {\end{beamerboxesrounded}}
  \usealertblocktemplate{\medskip\begin{beamerboxesrounded}[shadow=true,scheme=alert]{\normalfont\color{white}\insertblockname}\raggedright}%
    {\end{beamerboxesrounded}}
  \useexampleblocktemplate{\medskip\begin{beamerboxesrounded}[shadow=true,scheme=example]{\normalfont\color{white}\insertblockname}\raggedright}%
    {\end{beamerboxesrounded}}
}


%
% Note templates
%

\newcommand{\beamertemplatenoteplain}{
  \usetemplatenote{\small\insertnote}}

\newcommand{\beamertemplatenotecompress}{
\usetemplatenote{\tiny
  \let\\=\relax%
  \insertvrule{0.125\paperheight}{white!90!black}%
  \vskip-0.125\paperheight
  \nointerlineskip
  \vbox{\hfill\insertslideintonotes{0.125}\hskip-\Gm@rmargin\hskip0pt%
    \vskip-0.125\paperheight\nointerlineskip}%
  \nointerlineskip
  \vbox to .125\paperheight{
  \setbox\beamer@tempbox=\hbox{\hbox{\insertsection}}%
  \ht\beamer@tempbox=1em
  \box\beamer@tempbox
  \nointerlineskip
  \setbox\beamer@tempbox=\hbox{\hbox{\quad\insertsubsection}}%
  \ht\beamer@tempbox=1em
  \box\beamer@tempbox
  \nointerlineskip
  \setbox\beamer@tempbox=\hbox{\hbox{\quad\quad\insertshortframetitle}}%
  \ht\beamer@tempbox=1em
  \box\beamer@tempbox
  \vfil
  }\vskip0.5em
  \small
  \nointerlineskip
  \insertnote
}
}



%
% Theorem templates
%

\newcommand\beamertemplatetheoremsamslike{
  \usetheoremtemplate{\begin{\inserttheoremblockenv}
    {%
      \inserttheoremheadfont
      \inserttheoremname
      \inserttheoremnumber
      \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
      \inserttheorempunctuation
    }%
  }{\end{\inserttheoremblockenv}}
}

\newcommand\beamertemplatetheoremsnumbered{
  \usetheoremtemplate{%
    \begin{\inserttheoremblockenv}
    {%
      \inserttheoremname
      \inserttheoremnumber
      \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
    }%
  }{\end{\inserttheoremblockenv}}
}
\newcommand\beamertemplatetheoremsunnumbered{
  \usetheoremtemplate{%
    \begin{\inserttheoremblockenv}
    {%
      \inserttheoremname
      \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
    }%
  }{\end{\inserttheoremblockenv}}
}

\newcommand\beamertemplatetheoremssimple{
  \usetheoremtemplate{%
    \normalfont
    \begin{\inserttheoremblockenv}
    {%
      \inserttheoremname
      \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
    }%
  }{\end{\inserttheoremblockenv}}
}

%
% Continutation templates
%
\newcommand\beamertemplatecontinuationroman{
  \usecontinuationtemplate{ \insertcontinuationcountroman}
}

\newcommand\beamertemplatecontinuationtext{
  \usecontinuationtemplate{ \expandafter\ifnum\insertcontinuationcount>1\insertcontinuationtext\fi}
}



%
% Forget about certain template installation commands once the
% document has started, since this saves space and since we do not
% want these to change during a talk.
%

\@onlypreamble\beamertemplatetheoremsamslike
\@onlypreamble\beamertemplatetheoremsnumbered
\@onlypreamble\beamertemplatetheoremsunnumbered
\@onlypreamble\beamertemplatetheoremssimple
\@onlypreamble\beamertemplatenoteplain
\@onlypreamble\beamertemplatenotecompress
\@onlypreamble\beamertemplateoutlinebuttons
\@onlypreamble\beamertemplatesolidbuttons
\@onlypreamble\beamertemplateboldblocks
\@onlypreamble\beamertemplatelargeblocks
\@onlypreamble\beamertemplateroundedblocks
\@onlypreamble\beamertemplateshadowblocks
\@onlypreamble\beamertemplateticksminiframe
\@onlypreamble\beamertemplateticksminiframe
\@onlypreamble\beamertemplateboxminiframe
\@onlypreamble\beamertemplatecircleminiframeinverted
\@onlypreamble\beamertemplatecircleminiframe
\@onlypreamble\beamertemplatesphereminiframeinverted
\@onlypreamble\beamertemplatesphereminiframe
\@onlypreamble\beamertemplateballtoc
\@onlypreamble\beamertemplatenumberedballsectiontoc
\@onlypreamble\beamertemplatenumberedcirclesectiontoc
\@onlypreamble\beamertemplatenumberedsectiontoc
\@onlypreamble\beamertemplatenumberedsubsectiontoc
\@onlypreamble\beamertemplateplaintoc
\@onlypreamble\beamertemplateboldtitlepage
\@onlypreamble\beamertemplatelargetitlepage

\mode
<all>

