%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%									CopyLeft Gregory Trullemans									  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%																								  %
% Some parts of this theme are based on the 'diepentheme' by Guido Diepen <diepen@cs.uu.nl>       %
%																								  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% link to the backgroundimage : image should be in the same directory as the other files
\def\blackboard@backgroundimagefile{slide.png}
\DeclareOptionBeamer{backgroundimagefile}{\def\blackboard@backgroundimagefile{#1}}
\ProcessOptionsBeamer

\mode<presentation>

\pgfdeclareimage[interpolate=true, height=\the\paperheight, width=\the\paperwidth]{backgroundImage}{\blackboard@backgroundimagefile}

% Stretch background image over the entire page
\setbeamertemplate{background}{
	\ifnum\c@framenumber=1 	%First slide
		\includegraphics[width=\paperwidth,height=\paperheight]{first.png}
	\else					%Other slides
		\includegraphics[width=\paperwidth,height=\paperheight]{slide.png}
	\fi
}

% Use a small bulletpoint for a list
\setbeamertemplate{itemize items}{\usebeamercolor[fg]{item}\small{•}}
\setbeamertemplate{itemize itemize item}{\usebeamercolor[fg]{item}\small{*-}}

\defbeamertemplate*{frametitle}{ffg theme}[1][right]
{
  \begin{beamercolorbox}{frametitle}
	  \vskip5pt
	  \insertframetitle \\
	  \usebeamerfont{framesubtitle}\insertframesubtitle
  \end{beamercolorbox}
}
