% Licensed to the Apache Software Foundation (ASF) under one or more
% contributor license agreements. See the NOTICE file distributed with
% this work for additional information regarding copyright ownership.
% The ASF licenses this file to You under the Apache License, Version 2.0
% (the ``License''); you may not use this file except in compliance with
% the License. You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an ``AS IS'' BASIS,
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing permissions and
% limitations under the License.

\documentclass[twoside]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{arabtex}
\usepackage{utf8}
\usepackage[utf8]{inputenc} 
\usepackage[russian,english]{babel}
\usepackage{graphicx}
\usepackage{palatino}
\usepackage{color}
\usepackage{mcstyle}
\usepackage{longtable}
\usepackage{epic}
\usepackage{hevea}
\usepackage[bookmarks=true,bookmarksnumbered=true,colorlinks=true,linkcolor=black,urlcolor=blue]{hyperref}
\usepackage{lastpage}

\setlength\parskip{\bigskipamount}
\parindent=0in

% This file contains the things that make each title page unique.
\input{localization.tex}

\ifSmallGuide
% This is a change from woody for reasons I don't fully understand.
% However, now it works.
% OK, I lied before. (How does this keep changing??)
\usepackage[twoside,hmargin={.125in, 1.185in}, twosideshift=0pt, bindingoffset=0pt]{geometry}
\flushbottom
\fi

\fancyhf{}
\fancyhead[C]{\hrule height 1.5pt \vspace{2pt}}
\fancyhead[RO,LE]{\textbf{\client\ \product\ \doctype}}
\fancyhead[LO,RE]{Version \vers}
\fancyfoot[LO,RE]{\scriptsize{{\it \copyright \theyear\ \ourlong\ All Rights Reserved. Confidential and Proprietary.}}}
\fancyfoot[RO,LE]{\scriptsize{Page \thepage\ of \pageref{LastPage}}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
% This has to be there to keep the text from running up into the headers.
\setlength{\headsep}{24pt}

\fancypagestyle{title}{%
\fancyhf{}
\fancyfoot[C]{\scriptsize{{\it \copyright \theyear\ \ourlong\ All Rights Reserved. Confidential and Proprietary.} \\%
Page \thepage\ of \pageref{LastPage}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\begin{document}
\thispagestyle{title}
\begin{center}
\includegraphics[width=300pt]{mclogo}\\
{\LARGE{\textsc{\client\ \product \\
\doctype \\
\ifDraft DRAFT \\ \fi}
Last modified on \today\ \\
%\authname \\
Version \vers \\}}
\vspace{2in}

\ifInQTel
\begin{changemargin}{1in}{1in}
{\it Apache will never, ever have this conditional set.}
\end{changemargin}
\fi

\end{center}
%\begin{flushright}
%\end{flushright}

\ifDraft \pdfinfo{/DRAFT(This document is a draft, and should not be released.)} \fi
\pdfinfo{/VERSION(\vers)}

\pagebreak
\thispagestyle{title}
{\footnotesize You can put all the copyright and legalese stuff here.}
\pagebreak

\fontfamily{phv}\selectfont
\pagestyle{fancy}

%This file contains the list of includes. Even if there is only one 
%body file, we should do an include to it. 
\input{main.tex}

% The SLB/MC Support information must be at the end of every document.
% We include it here, and use \include so that we get the pagebreak.
% Apache will want to change this.
\include{support-contacts}
\end{document}

