%\RequirePackage{ifthen}
%\newboolean{@times}
%\setboolean{@times}{true}
%\DeclareOption{times}{\setboolean{@times}{true}}
%\DeclareOption{notimes}{\setboolean{@times}{false}}
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
%\ExecuteOptions{times}
%\ProcessOptions*
%\LoadClass[11pt]{article}
%\ifthenelse{\boolean{@times}}{\RequirePackage{mathptmx}}{}
%\DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}
\RequirePackage{seg}
\providecommand{\figdir}{.}
\providecommand{\setfigdir}[1]{\renewcommand{\figdir}{#1}}
\providecommand{\fig@file}[1]{\@path/\figdir/#1}
\newcounter{@plots}
\setcounter{@plots}{0}
\DeclareRobustCommand{\fullplot}[4][htbp]{%
  \begin{figure*}[#1]
    \centering
    \includegraphics[#3]{\fig@file{#2}}
    \caption[]{#4}
    \label{fig:\@path-#2}
    \label{fig:#2}
  \end{figure*}}
\DeclareRobustCommand{\sideplot}[4][htbp]{%
  \begin{figure}[#1]
    \centering
    \includegraphics[#3]{\fig@file{#2}}
    \caption[]{#4}
    \label{fig:\@path-#2}
    \label{fig:#2}
  \end{figure}}
\def\plot{\@ifstar{\fullplot}{\sideplot}}
\RequirePackage{subfigure}
\def\next@item#1,#2?{#1}
\def\rest@item#1,#2?{#2}
\newcounter{sub@fig}
\newcommand{\sidemultiplot}[5][htbp]{
  \begin{figure}[#1]
    \centering
    \setcounter{sub@fig}{0}
    \edef\list@i{#3}
    \loop
    \edef\item@i{\expandafter\next@item\list@i,\empty?}
    \edef\list@i{\expandafter\rest@item\list@i,\empty?}
    \ifx\item@i\empty
    \else
    \stepcounter{sub@fig}
    \subfigure[]{\includegraphics[#4]{\fig@file{\item@i}}%
      \label{fig:\@path-\item@i}
      \label{fig:\item@i}}
    \ifthenelse{\value{sub@fig} = #2}{\\ \setcounter{sub@fig}{0}}{}
    \repeat
    \caption{#5}
    \label{fig:\@path-#3}
    \label{fig:#3}
  \end{figure}
}
\newcommand{\fullmultiplot}[5][htbp]{
  \begin{figure*}[#1]
    \centering
    \setcounter{sub@fig}{0}
    \edef\list@i{#3}
    \loop
    \edef\item@i{\expandafter\next@item\list@i,\empty?}
    \edef\list@i{\expandafter\rest@item\list@i,\empty?}
    \ifx\item@i\empty
    \else
    \stepcounter{sub@fig}
    \subfigure[]{\includegraphics[#4]{\fig@file{\item@i}}%
      \label{fig:\@path-\item@i}
      \label{fig:\item@i}}
    \ifthenelse{\value{sub@fig} = #2}{\\ \setcounter{sub@fig}{0}}{}
    \repeat
    \caption{#5}
    \label{fig:\@path-#3}
    \label{fig:#3}
  \end{figure*}
}
\def\multiplot{\@ifstar{\fullmultiplot}{\sidemultiplot}}
\providecommand{\seg@sidetabl}[4][htbp]{
  \begin{table}[#1]
    #4
    \caption{#3}
    \label{tbl:#2}
  \end{table}
}

%\providecommand{\seg@fulltabl}[4][htbp]{
%  \begin{table*}[#1]
%    #4
%    \caption{#3}
%    \label{tbl:#2}
%  \end{table*}
%}
%\def\tabl{\@ifstar{\seg@fulltabl}{\seg@sidetabl}}
%\RequirePackage{natbib}
%\bibpunct[,]{(}{)}{;}{a}{,}{,}
%\DeclareRobustCommand{\refname}{REFERENCES}
%\renewcommand\bibsection{\clearpage\section{\refname}}
%\newcommand{\shortcite}[1]{\citeyearpar{#1}}
%\setlength{\oddsidemargin}{0in}
%\setlength{\evensidemargin}{0in}
%\setlength{\textwidth}{6.5in}
%\setlength{\textheight}{9.0625in}
%\setlength{\parindent}{0em}
%\setlength{\headheight}{0.3125in}
%\setlength{\headsep}{0.125in}
%\setlength{\parskip}{1.5ex plus0.1ex minus0.1ex}
%\setlength{\topsep}{0em}%
%\setlength{\itemsep}{0em}
%\setlength{\topmargin}{-0.5in}
%\setlength{\columnsep}{0.3125in}
%\let\normal@size\normalsize
%\let\seg@small\small
%\let\seg@size\footnotesize
%\renewcommand{\Large}{\protect\seg@size}
%\renewcommand{\normalsize}{\protect\seg@size}
%\renewcommand{\small}{\protect\tiny}
%\renewcommand{\footnotesize}{\protect\tiny}
%\seg@size
%\newcommand{\seg@section}{%
%\@startsection {section}{1}{\z@}%
%{-3.5ex \@plus -1ex \@minus -.2ex}%
%{1ex \@plus .2ex}%
%{\normalfont\Large\bfseries\MakeUppercase}}
%\newcommand{\seg@subsection}[2][]{%
%\begin{minipage}{\columnwidth}
%\textbf{#2}
%\end{minipage}}
%\newcommand{\seg@subsubsection}[2][]{%
%\begin{minipage}{\columnwidth}
%\textit{#2}
%\end{minipage}}
%\newcommand{\seg@subsubsubsection}[2][]{%
%\underline{#2}.--}
%\def\section{\@ifstar{\seg@section*}{\seg@section*}}%
%\def\subsection{\@ifstar{\seg@subsection}{\seg@subsection}}%
%\def\subsubsection{\@ifstar{\seg@subsubsection}{\seg@subsubsection}}
%\def\subsubsubsection{\@ifstar{\seg@subsubsubsection}{\seg@subsubsubsection}}
%\newcommand{\seg@title}{}
%\renewcommand{\title}[1]{\renewcommand{\seg@title}{#1}}
%\providecommand{\seg@address}{}
%\providecommand{\address}[1]{\renewcommand{\seg@address}{\emph{#1}}}
%\providecommand{\seg@email}{.}
%\providecommand{\email}[1]{\renewcommand{\seg@email}{#1}}
%\providecommand{\seg@author}{}
%\renewcommand{\author}[1]{%
%\renewcommand{\seg@author}{%
%\twocolumn[\vspace{0.25in}\normal@size\textbf{\seg@title}%
%\newline\seg@small\textit{#1}\vspace{2ex}]}}
%\renewcommand{\maketitle}{\seg@author}
%\renewenvironment{abstract}{%
%\begin{minipage}[t]{\columnwidth}
%\textbf{SUMMARY\\}\\*}{%
%\end{minipage}\vspace{2ex}}
%\newcommand{\ps@seg}{%
%\renewcommand{\@oddhead}{\hfill\seg@small\textbf{\seg@rhead}\seg@size\hfill}
%\renewcommand{\@evenhead}{\@oddhead}
%\renewcommand{\@oddfoot}{}
%\renewcommand{\@evenfoot}{}}
%\thispagestyle{empty}
%\pagestyle{seg}
%\newcounter{@append}
%\providecommand{\append@name}{A}
%\providecommand{\appendname}[1]{\renewcommand{\append@name}{#1}}
%\renewcommand{\appendix}{%
%  \ifthenelse{\equal{\append@name}{A}}{%
%    \renewcommand{\append@name}{\Alph{@append}}}{}
%  \setcounter{equation}{0}%
%  \renewcommand{\theequation}{\mbox{\append@name-\arabic{equation}}}%
%    \setcounter{figure}{0}%
%    \renewcommand{\thefigure}{\append@name-\arabic{figure}}%
%  \stepcounter{@append}
%}
%\providecommand{\append}[1]{%
%\appendix\section{Appendix \append@name}\section{#1}}
%\RequirePackage{verbatim}
%\RequirePackage{moreverb}
%\endinput