\documentclass[titlepage]{article}
\usepackage{pdftalkPJG20}
\usepackage{graphicx}
\usepackage{amsmath}

\pagestyle{plain}

\definecolor{hi}{rgb}{1,1,.3}

\renewenvironment{slide}[1]
%before
{\begin{flushleft}\sffamily\large\bfseries
\textcolor{hi}{#1}
\end{flushleft}\sf\raggedright}
%after
{\newpage}

\newcommand{\heading}[1]{
\begin{flushleft}\sffamily\large\bfseries
\textcolor{hi}{#1}
\end{flushleft}}

\newcommand{\subheading}[1]{
\begin{flushleft}\sffamily\bfseries
#1
\end{flushleft}}

\definecolor{darkred}{rgb}{0.85,0,0}
\newcommand{\red}[1]{\textcolor{darkred}{#1}}
\definecolor{blue}{rgb}{0,0,1}
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
\definecolor{faint}{rgb}{.8,.8,.8}
\newcommand{\faint}[1]{\textcolor{faint}{#1}}
\definecolor{black}{rgb}{0,0,0}
\newcommand{\black}[1]{\textcolor{black}{#1}}

\newcommand{\mycolors}[3]
{\pagecolor{#1}
\color{#2}
\definecolor{hi}{rgb}{#3}}

% Example usage:
% \mycolors{white}{black}{1,.4,.4}
% \mycolors{bg}{fg}{1,1,.5} (as set initially by pdftalk.sty)

\definecolor{pink}{rgb}{1,.7,.7}
\definecolor{lightgreen}{rgb}{.7,1,.7}


\begin{document}
\mycolors{white}{black}{.1,.1,1}

% Use the \titleslide command show the title
% It takes 3 arguments. (use {} if you don't want to show anything)


\titleslide{\red{Title of talk}}
{Authors}
{Institution\\[18pt]
Email}

\pagestyle{plain}


\BS{Title of slide 1}

Ordinary text, with maths inline: $\beta_1<0$ or displayed:
$$
\widehat{p}_{\rm HM}(y|u,X) = 
\left[ \frac{1}{N} \sum_{t=1}^N p(y|X,u,\beta^{(t)},z^{(t)})^{-1} \right]^{-1}
$$
And then some more text.

\ES

\BS{Title of slide 2}

Our complete model combines the strand and disease models, linked though the
unobserved alleles $\{z_{ij}\}$.

\heading{Heading in middle of slide}

We observe the SNP data $X$ and disease indicators $y$, and wish to make
inference primarily about the location $u$ of the causal gene, and also
the  regression parameters $\beta$.

\ES

\BS{Slide 3}
\begin{center}
\resizebox{225pt}{!}{\includegraphics{Fig1}}
\end{center}

Text below picture.
\ES

\BS{Slide 4}
\parbox{91pt}{\raggedleft Text to left of picture}
\hfill
\parbox{180pt}{\resizebox{175pt}{!}{\includegraphics{Fig2}}}
\ES

\end{document}
