%
% AcroTeX Presentation Bundle
%
\DeclareOption{structure}{\viewStructure}
\DeclareOption{page}{\viewPage}

\newcommand{\viewStructure}{\includecomment{viewstructure}\excludecomment{viewpage}}
\newcommand{\viewPage}{\excludecomment{viewstructure}\includecomment{viewpage}}

\ProcessOptions

%
% Some definitions to create the special effects of this document, do not change.
%
\begin{viewpage}
\let\fbox=\relax
\end{viewpage}
\begin{viewstructure}
\setlength{\fboxsep}{0pt}
\let\oldfbox\fbox
\def\fbox#1{\oldfbox{\strut#1}}
\renewcommand{\topTitlePage}{%
    \noindent\colorbox{webyellow}{\makebox[\linewidth][\halignuniversity]{%\noindent
    \colorbox{webgray}{\parbox{\hproportionwebuniversity\linewidth}%
    {\sectionUniversity{\webuniversity}}}}}%
    \par\ifeqforpaper\else\minimumskip\fi
        \vspace{\stretch{1}}%
    \noindent\colorbox{webyellow}{\makebox[\linewidth][\haligntitle]%
        {\colorbox{webgray}{\parbox{\hproportionwebtitle\linewidth}%
        {\sectionTitle{\webtitle}}}}}
        \par\ifeqforpaper\vspace{2\baselineskip}\else
        \minimumskip\vspace{\stretch{1}}\fi
    \noindent\colorbox{webyellow}{\makebox[\linewidth][\halignauthor]%
        {\colorbox{webgray}{\parbox{\hproportionwebauthor\linewidth}%
        {\sectionAuthor{\webauthor}}}}}
        \par\ifeqforpaper\vspace{2\baselineskip}\else
        \minimumskip\vspace{\stretch{1}}\fi
}
\renewcommand\maketitle
{%
    \thispagestyle{empty}%
    \ifeqforpaper\vspace*{2\baselineskip}\else
    \colorbox{blue}{\vbox to\titleauthorproportion\textheight\bgroup\fi
    \topTitlePage
    \ifeqforpaper\else\egroup}\fi % end of \vbox for title and author
    \leavevmode\optionalpagematter
    \par\vspace{\stretch{1}}
    \par\ifeqforpaper\else\minimumskip\fi\vspace{\stretch{1}}
    \vfill\noindent\begingroup\color{black}\trailerFontSize\titlepageTrailer
    \par\endgroup
    \newpage
}
\end{viewstructure}
