\usetheme{Rochester}

\RequirePackage{pgf}

\pgfdeclareimage[width=1.0\paperwidth]{wiki-header}{wiki-header}

\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamercovered{transparent}

\beamer@headheight=0.13\paperwidth

\definecolor{oxygenorange}{HTML}{003377}
\definecolor{oxygengray}{HTML}{222222}
\definecolor{oxygenlightgray}{HTML}{ffffff}
\definecolor{oxygenblue}{HTML}{003377}
\setbeamercolor*{Title bar}{fg=white}
\setbeamercolor*{Location bar}{fg=oxygenorange,bg=oxygenlightgray}
\setbeamercolor*{frametitle}{parent=Title bar}
\setbeamercolor*{block title}{bg=white,fg=oxygenblue}
\setbeamercolor*{block body}{bg=white,fg=oxygengray}
\setbeamercolor*{normal text}{bg=white,fg=oxygengray}
\setbeamercolor*{section in head/foot}{bg=oxygenblue,fg=white}
\setbeamercolor{alerted text}{fg=oxygenblue}

\usecolortheme[named=oxygenorange]{structure}

\setbeamerfont{section in head/foot}{size=\tiny,series=\normalfont}
\setbeamerfont{frametitle}{size=\Large}
\setbeamertemplate{items}[circle] 

%\setbeamertemplate{headline}
\setbeamertemplate{frametitle}
{
  \vskip-0.25\beamer@headheight
  \vskip-\baselineskip
  \vskip-0.3cm
  \hskip0.1cm\usebeamerfont*{frametitle}\insertframetitle
  %\vskip0.1em
  \hskip0.4cm\usebeamerfont*{framesubtitle}\insertframesubtitle
  %\vskip 0.5cm
}

\setbeamertemplate{headline}
{
  \pgfuseimage{wiki-header}
  \vskip -1.5cm
  \linethickness{0pt}

  \framelatex{
  \begin{beamercolorbox}[wd=\paperwidth,ht=0.3\beamer@headheight]{Title bar}
    \usebeamerfont{section in head/foot}%
    \insertsectionnavigationhorizontal{.1\textwidth}{\hskip 6.5cm}{}%
  \end{beamercolorbox}}

  \framelatex{
    \begin{beamercolorbox}[wd=\paperwidth,ht=0.7\beamer@headheight]{Title bar}
    \end{beamercolorbox}
  }
}

\setbeamertemplate{footline}
{
  \linethickness{0pt}
  \framelatex{
  \begin{beamercolorbox}[leftskip=.3cm,wd=\paperwidth,ht=0.3\beamer@headheight,sep=0.1cm]{Location bar}
    \usebeamerfont{section in head/foot}%
    \insertshortauthor~|~\insertshorttitle
    \hfill
    \insertframenumber/\inserttotalframenumber
  \end{beamercolorbox}}
}

