\ProvidesPackage{beamerthemeDAG} % this style was created by Thomas Deselaers

\makeatletter
\let\oldalltt\alltt
\def\alltt{\@ifnextchar[\alltt@i \alltt@ii}
\def\alltt@i[#1]{\oldalltt[#1]\tiny}
\def\alltt@ii{\oldalltt\tiny}
\makeatother

\makeatletter
\let\oldvb\verbatim
\def\verbatim{\oldvb\tiny}
\makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\selectcolormodel{cmyk}
\mode<presentation>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useinnertheme[shadow=true]{rounded}
\useoutertheme{shadow}
%\usecolortheme{orchid}
%\usecolortheme{whale}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% custom colors
\definecolor{i6blue}{cmyk}{1,0.305,0,0.06}
\definecolor{i6bluedark}{rgb}{0.0156,0.2578,0.5625}
% http://www.colorsontheweb.com/colorwizard.asp#wizard, used start set: #0066cc
\definecolor{i6bluescheme1}{HTML}{0066cc}
\definecolor{i6bluescheme2}{HTML}{001933}
\definecolor{i6bluescheme3}{HTML}{65B2FF}
\definecolor{i6bluescheme4}{HTML}{666666}

\definecolor{tddarkblue}{HTML}{0011BB}
\definecolor{tdlightgray}{HTML}{CCCCCC}
\definecolor{tdlightblue}{HTML}{0060FF}

% headline colors and fonts
\setbeamercolor{headline}{fg=white,bg=tddarkblue}
\setbeamercolor{title in headline}{fg=white}
\setbeamercolor{author in headline}{fg=tdlightgray}
\setbeamercolor{institute in headline}{fg=tdlightgray}
\setbeamercolor{logo in headline}{fg=black,bg=white}
\setbeamercolor{separation line}{bg=white}

% footline colors and fonts
\setbeamercolor{footline}{fg=white,bg=tddarkblue}
\setbeamerfont{footline}{size=\small}
%\setbeamerfont{verbatim}{size=\tiny}
%\setbeamerfont{alltt}{size=\tiny}
% body colors and fonts
\setbeamercolor*{normal text}{fg=white,bg=tddarkblue}
\setbeamerfont{normal text}{size=\footnotesize}

% block environment
\setbeamercolor*{block body}{bg=white,fg=black}
\setbeamerfont{block body}{size=\tiny}
\setbeamercolor*{block title}{fg=blue,bg=tdlightgray}
\setbeamerfont{block title}{size=\large,series=\bf}

% example environment
\setbeamercolor*{example title}{fg=white,bg=i6bluescheme1}
\setbeamerfont{example title}{size=\large,series=\bf}

\setbeamertemplate{itemize items}[triangle]
\setbeamertemplate{navigation symbols}{}  % no navigation on a poster

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{block begin}{
  \vskip.75ex
  \begin{beamercolorbox}[leftskip=1cm,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}\insertblocktitle
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.75pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[colsep*=.75ex,sep=.75ex,vmode]{block body}%
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
  \setbeamertemplate{block end}{
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}{
  \leavevmode

  \begin{beamercolorbox}[wd=\paperwidth]{headline}
    \begin{columns}[T]
      \begin{column}{.15\paperwidth}
        \vskip1.5cm
        \begin{center}
          \includegraphics[width=.85\linewidth]{/Users/pschofield/Pictures/daglogo.jpg}
        \end{center}
      \end{column}
      \begin{column}{.45\paperwidth}
        \vskip1.5cm
        \usebeamercolor{title in headline}{\color{fg}\huge{\insertshorttitle}\\[1.1ex]}
          \usebeamercolor{title in headline}{\color{fg}\huge{\inserttitle}\\[1.1ex]}
      \end{column}
      \begin{column}{.25\paperwidth}
        \vskip1.5cm
        \begin{center}
          \raggedleft
          \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1.1ex]}
          \usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1.1ex]}
        \end{center}
      \end{column}
      \begin{column}{.15\paperwidth}
        \vskip1.5cm
        \begin{center}
          \includegraphics[width=.85\linewidth]{/Users/pschofield/Pictures/uodlogo.pdf}
        \end{center}
        \vskip1.5cm
      \end{column}
    \end{columns}
  \end{beamercolorbox}

  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
    \rule{0pt}{2pt}
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footline}{
  \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
    \rule{0pt}{6pt}
  \end{beamercolorbox}

  \begin{beamercolorbox}[ht=1\baselineskip,leftskip=1cm]{footline}%
    Data Analysis Group, Barton Lab, Computational Biology, \hfill -- \hfill
    \texttt{p.schofield@dundee.ac.uk} \hfill --\hfill
    \texttt{http://www.compbio.dundee.ac.uk/user/pschofield}
  \end{beamercolorbox}

  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot}
    \rule{0pt}{2pt}
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<all>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "poster"
%%% TeX-PDF-mode: t
%%% End:
