\RequirePackage{epsfig}
\newcommand{\pdfbox}[1]{%
\ifx\pdfoutput\undefined
\epsfbox{#1.eps}
\else
\epsfbox{#1.png}
\fi}
