% This is file `turnthepage.sty' v1.3a by Merciadri Luca.
% Thanks to Marc van Dongen and Martin Muench for their help.

\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{turnthepage}[2011/03/24 v1.3a
            Loading turnthepage package (LM)]

\DeclareOption{short}{\providecommand{\turnp@geoption}{short}}
\DeclareOption{english}{\providecommand{\turnp@geoption}{english}}
\DeclareOption{francais}{\providecommand{\turnp@geoption}{francais}}
\DeclareOption{nederlands}{\providecommand{\turnp@geoption}{nederlands}}
\DeclareOption{deutsch}{\providecommand{\turnp@geoption}{deutsch}}

\ProcessOptions

\ifx\turnp@geoption\undefined
 \providecommand{\turnp@geoption}{ }
\fi

\newif\ifetex
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname eTeXversion\endcsname\relax
 \etexfalse
\else
 \etextrue
\fi

\ifetex
 \PackageInfo{turnthepage}{e-TeX found, loading package turnpageetex.}
 \RequirePackage[\turnp@geoption]{turnpageetex}
\else
 \PackageInfo{turnthepage}{e-TeX not found, loading package turnpagewoetex.}
 \RequirePackage[\turnp@geoption]{turnpagewoetex}
\fi