%% Transition commands for use with hyperref.
%% Thanks to Marc van Dongen <dongen@cs.ucc.ie> for preparing this.
\newcommand{\pagetransition}[1]{%
  \hypersetup{pdfpagetransition={#1}}
}

\newcommand{\HOSplit}[0]{%
  \pagetransition{Split /Dm /H /M /O}
}

\newcommand{\HISplit}[0]{%
  \pagetransition{Split /Dm /H /M /I}
}

\newcommand{\VOSplit}[0]{%
  \pagetransition{Split /Dm /V /M /O}
}

\newcommand{\VISplit}[0]{%
  \pagetransition{Split /Dm /V /M /I}
}

\newcommand{\HBlinds}[0]{%
  \pagetransition{Blinds /Dm /H}
}

\newcommand{\VBlinds}[0]{%
  \pagetransition{Blinds /Dm /V}
}

\newcommand{\OBox}[0]{%
  \pagetransition{Box /M /O}
}

\newcommand{\IBox}[0]{%
  \pagetransition{Box /M /I}
}

% argument must be number from 0 to 360
\newcommand{\Wipe}[1]{%
  \pagetransition{Wipe /Di #1}
}

\newcommand{\Dissolve}[0]{%
  \pagetransition{Dissolve}
}

% argument must be number 0, 270 or 315
\newcommand{\pageTransitionGlitter}[1]{%
  \pagetransition{Glitter /Di #1}
}

\newcommand{\Replace}[0]{%
  \pagetransition{Replace}
}
