%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Margins and such
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setlength{\textwidth}{9in}
\setlength{\unitlength}{.125in}
\setlength{\topmargin}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\topskip}{0in}
\setlength{\footskip}{0in}
\setlength{\textheight}{6.5in}
%\setlength{\oddsidemargin}{0.5in}
%\setlength{\evensidemargin}{0.5in}

\psset{unit=.125in}
\pagestyle{empty}
\renewcommand{\arraystretch}{1.8}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% color definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newrgbcolor{darkblue}    {0 0 0.4}
\newcmykcolor{lightorange}{0 0.20 0.84 0}
\newcmykcolor{lightyellow}{0 0 0.25 0}
\newcmykcolor{yellow}{0 0 0.5 0}
\newrgbcolor{lightred}    {1 .8 .8}
\newrgbcolor{lightblue}   {.8 .8 1}
\newrgbcolor{lightgreen}  {.8 1 .8}
\newrgbcolor{verylightgreen}  {.9 1 .9}
\newrgbcolor{verylightred}  {1 .9 .9}
\newrgbcolor{darkgreen}   {0 0.5 0}
\definecolor{lightorange}{cmyk}{0,0.20,0.84,0}
\definecolor{lightyellow}{cmyk}{0,0,0.25,0}
\definecolor{darkblue}{rgb}{0,0,0.4}
\definecolor{darkgreen}{rgb}{0,0.5,0}

\newcmykcolor{yellow}		{0 0 0.5 0}
\newcmykcolor{verylightorange}  {0 0.10 0.84 0}
\newcmykcolor{magenta}		{0 1 0 0}
\newcmykcolor{hellrosa}		{0 0.15 0 0}
\newcmykcolor{hellblau}		{0.1 0 0 0}
\newcmykcolor{hellgrau}		{0 0 0 0.25}
\newrgbcolor{lightcyan}{0.8 1 1}
\newrgbcolor{hotpink}{1 0.4 0.8}
\newrgbcolor{magenta}{1 0 1}
\newrgbcolor{redyellow}{1 0.75 0}
\newrgbcolor{cyanblueii}{0 .75 1}
\newrgbcolor{bluemagentaii}{.25 0 1}
\newrgbcolor{cyanblueiv}{0 .25 1}
\newrgbcolor{verylightblue}{.85 .9 1}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% fonts for emphasis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\slidedef}[1]{{\blue #1}}
\newcommand{\slideemph}[1]{{\bf #1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% useful characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\DOT}[1]
{\psellipse[unit=0.18cm,fillstyle=solid,fillcolor=#1](0,1)(1,1)}

\newcommand{\ARROW}[1]
{\pspolygon[unit=0.24cm,linearc=.1,fillstyle=solid,fillcolor=#1]
(0,0)(0,2)(2,2)(2,3)(3.5,1)(2,-1)(2,0)\rule{0.5cm}{0cm}\hspace{2ex}}

\DeclareFontFamily{U}{pzdr}{}{}
\DeclareFontShape{U}{pzdr}{m}{n}{ <-> pzdr}{}
\def\PFEIL{\ \lower0.3ex\hbox{%
     \Large\fontencoding{U}\fontfamily{pzdr}\selectfont\char'340}\ \hspace{1ex}}
\def\UPFEIL{\qquad \hspace{2.2ex}}

\def\FINGER{\ \lower0.3ex\hbox{%
     \fontsize{30pt}{20pt}\fontencoding{U}\fontfamily{pzdr}\selectfont%
             \char'053} \hspace{1ex}}
\def\UFINGER{\qquad \hspace{2ex}}

\def\STERN{\ \hbox{%
     \fontsize{20pt}{20pt}\fontencoding{U}\fontfamily{pzdr}\selectfont%
             \char'133} \hspace{1ex}}
\def\USTERN{\qquad \hspace{1ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% framed boxes etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\FRAMEBOX}[1]{
\psframebox[fillcolor=lightyellow,fillstyle=solid,shadow=false,shadowcolor=black,shadowsize=6pt]{#1}}

\newcommand{\FRAMEBOXR}[1]{
\FRAMEBOXRIC{lightyellow}{#1}}

\newcommand{\FRAMEBOXRC}[2]{
\psframebox[fillcolor=lightyellow,linecolor=#1,linewidth=2pt,framearc=0.2,framesep=5pt,fillstyle=solid,shadow=false]{#2}}

\newcommand{\FRAMEBOXRIC}[2]{
\psframebox[fillcolor=#1,linewidth=2pt,framearc=0.2,framesep=5pt,fillstyle=solid,shadow=false]{#2}}

\newcommand{\SHADOWBOX}[1]{
\psframebox[fillcolor=lightyellow,fillstyle=solid,shadow=true,shadowcolor=black,shadowsize=6pt]{#1}}

\newcommand{\pane}[4]{%
  \psframebox[framesep=0.5cm,framearc=.2,linewidth=2pt,linecolor=#2,
              fillstyle=solid,fillcolor=#1]
             {\begin{minipage}{#3}%
                 #4%
              \end{minipage}}
  }

\newcommand{\panec}[4]{%
  \psframebox[framesep=0.5cm,framearc=.2,linewidth=2pt,linecolor=#2,
              fillstyle=solid,fillcolor=#1]
             {\begin{minipage}{#3}%
                 \begin{center}%
                 #4%
                 \end{center}%
              \end{minipage}}
  }

\newcommand{\stdpane}[2]{\pane{lightyellow}{darkblue}{#1}{#2}}
\newcommand{\stdpanec}[2]{\panec{lightyellow}{darkblue}{#1}{#2}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% list of bullets
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{bullist}[2]{%
  \begin{list}{{\pscirclebox[fillstyle=solid, fillcolor=#1,linecolor=#2]
    {\rule{0in}{.125in}}}}{%
  \setlength{\leftmargin}{0.5in}
  \setlength{\labelwidth}{0.5in}
  \setlength{\labelsep}{0.2in}
  \setlength{\itemsep}{.125in}
  \setlength{\topsep}{0in}
  \setlength{\parskip}{0.2in}
  }}{\end{list}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% slide environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\LOGO}{}
\newcounter{subslide}

\newenvironment{barslide}[1][]{
\begin{slide}
  \setcounter{subslide}{0}
  \pspicture(0,0)(0,0) 
  \rput[l](-2,3){\psframebox[fillstyle=gradient,
    gradbegin=darkblue, gradend=darkblue,
    gradangle=90,linewidth=0pt,boxsep=true,linestyle=none,
    gradmidpoint=1]{
      \makebox[9.5in][s]{\rule{0in}{.4in}\hspace{\fill}}}}
  \rput[l](8,3){\color{lightorange}{\Large #1}}
 
  \rput(2,3){\pscirclebox[fillstyle=solid, fillcolor=lightorange,
    linecolor=darkblue] {{\color{darkblue} 
	     \psset{unit=1.05mm}
	     \LOGO
		}}}
  \endpspicture
  \begin{center}
  }{
  \end{center}
  \pspicture(0,0)(0,0) 
  \rput[l](-1,3){\psframebox[fillstyle=gradient,
    gradbegin=darkblue, gradend=darkblue,
    gradangle=90,linewidth=0pt,boxsep=true,linestyle=none,
    gradmidpoint=0]{
      \makebox[9.5in][s]{
        \hspace{\fill}
        \rule{0in}{.125in}}}}
  \rput(73,3){
    \pscirclebox[fillstyle=solid, fillcolor=lightorange,
    linecolor=darkblue] {{\color{darkblue} \arabic{slide}}}}
  \endpspicture
\end{slide}
}

\newenvironment{barslide*}[1][]{
\begin{slide}
  \addtocounter{slide}{-1}
  \stepcounter{subslide}
  \pspicture(0,0)(0,0) 
  \rput[l](-2,3){\psframebox[fillstyle=gradient,
    gradbegin=darkblue, gradend=darkblue,
    gradangle=90,linewidth=0pt,boxsep=true,linestyle=none,
    gradmidpoint=1]{
      \makebox[9.5in][s]{\rule{0in}{.4in}\hspace{\fill}}}}
  \rput[l](8,3){\color{lightorange}{\Large #1}}
 
  \rput(2,3){\pscirclebox[fillstyle=solid, fillcolor=lightorange,
    linecolor=darkblue] {{\color{darkblue} 
	     \psset{unit=1.05mm}
	     \LOGO
		}}}
  \endpspicture
  \begin{center}
  }{
  \end{center}
  \pspicture(0,0)(0,0) 
  \rput[l](-1,3){\psframebox[fillstyle=gradient,
    gradbegin=darkblue, gradend=darkblue,
    gradangle=90,linewidth=0pt,boxsep=true,linestyle=none,
    gradmidpoint=0]{
      \makebox[9.5in][s]{
        \hspace{\fill}
        \rule{0in}{.125in}}}}
  \rput(73,3){
    \pscirclebox[fillstyle=solid, fillcolor=lightorange,
    linecolor=darkblue] {{\color{darkblue} \tiny \arabic{slide} \alph{subslide}}}}
  \endpspicture
\end{slide}
}

