\documentclass{article}
\usepackage{amsmath}
%
% the driver line is not necessary if you
% have aebpro.cfg configured to your driver.
%
\usepackage[%
    web={designv,pro,tight,usesf,usetemplates},
    eforms,graphicxsp={showembeds},aebxmp
]{aeb_pro}
\usepackage{rmannot}
\usepackage{yt4pdf}
\usepackage{multicol}
\usepackage{popupmenu}
\usepackage{picins}

% \textBgColor{lightgray}

\DeclareDocInfo
{
    title=The \texorpdfstring{\textsf{yt4pdf} Package\\[3pt]}{yt4pdf Package: }Demo 2 of You Tube API,
    author=D. P. Story,
    university=Acro\negthinspace\TeX.Net,
    email=dpstory@acrotex.net,
    subject={Live streamed video from YouTube.com},
    keywords={You Tube, AeB, rmannot},
    talksite=\url{http://www.acrotex.net},
    talkdate={\today}
}
\talkdateLabel{Published:}

\def\AcroTeX{Acro\!\TeX}

\makePoster{pdfyt_poster}{pdfyt_poster}
\makePoster{yt_poster}{graphics/yt_icon_sm}

\parindent=0pt\parskip6pt
\rheader{}

\DeclarePageLayout{footskip=15.5pt}

%\previewtrue

\newcommand{\playList}{%
    [(GZ9e3Dy7obA)(Kung-Fu Fighting (Bruce Lee version))]
    [(jhUkGIsKvn0)(Kung-Fu Fighting (Original, must view on YouTube))]
    [(K7H8QghVs9k)(RAF Sculthorpe (Watch for my Mom!))]
    [(7XzdZ4KcI8Y)(Rocket Jump)]
}

%
% Note: popupmenu package version 1.0 (2010/09/18) or later required here.
%
\newcommand{\idTitle}[2]{\item{title={#1},return={[\itemindex,'#2']}}}
\begin{popupmenu}{YTMenu}
    \item{title=Select a You Tube Video, return={[\itemindex,'']}}
    \begin{submenu}{title=Music Videos}
        \idTitle{Kung-Fu Fighting (Bruce Lee version)}{GZ9e3Dy7obA}
        \idTitle{Kung-Fu Fighting (Original, view on You Tube)}{jhUkGIsKvn0}
        \idTitle{Ink Spots - If I didn't care}{rvwfLe6sLis}
        \idTitle{Ink Spots - My Prayer}{h7KJCns5v3g}
    \end{submenu}
    \begin{submenu}{title=Adobe Related Videos}
        \idTitle{Open at Adobe}{eNzrn8-JFSE}
        \idTitle{Lori's Corner Episode \#1}{5y9-EVmreU4}
        \idTitle{Intro to PDF Portfolios}{T9Yzo_hlwP0}
    \end{submenu}
    \begin{submenu}{title=Action Videos}
        \idTitle{Rocket Jump}{7XzdZ4KcI8Y}
        \idTitle{AimBot}{NYGlWjIKoY4}
        \idTitle{Flower Warfare}{031Dshcnso4}
        \idTitle{Modern Warfare: Frozen Crossing Pt. 1}{rzQMGMuD1sU'}
        \idTitle{Modern Warfare: Frozen Crossing Pt. 2}{a08ViuvORRM}
    \end{submenu}
\end{popupmenu}
%
% JS for executing selections of popupmenu
%
\begin{insDLJS}[processMenu]{mymenus}{Menu Data}
\YTMenu
var aChoice;
function processMenu(aMenu) {
    var cChoice = \popUpMenu(aMenu);
    if ( cChoice != null ) {
        aChoice=eval(cChoice);
        if (aChoice[1]=="") return null;
        var thisChoice=aChoice[0];
        if (processMenu.nChoice==undefined) {
            processMenu.nChoice=thisChoice;
            eval("aMenu"+processMenu.nChoice).bMarked=true;
        } else {
            eval("aMenu"+processMenu.nChoice).bMarked=false;
            var oldnChoice=processMenu.nChoice;
            processMenu.nChoice=thisChoice;
            eval("aMenu"+processMenu.nChoice).bMarked=(oldnChoice==processMenu.nChoice)?false:true;
        }
        return aChoice;
    } else return null;
}
function popupYTMenu(rmaName) {
    var aChoice=processMenu(YTMenu);
    var rm=this.getAnnotRichMedia(this.pageNum,rmaName);
    if (aChoice!=null) {
        if (processMenu.lastDescrip==undefined) {
            aebStartPlayer(rm,aChoice[1],!event.shift);
        } else {
            if (processMenu.lastDescrip!=aChoice[1]) {
                aebStartPlayer(rm,aChoice[1],!event.shift);
            }
        }
        processMenu.lastDescrip=aChoice[1];
    }
}
\end{insDLJS}


\begin{document}

\maketitle

\parbox[t]{3in}{\parindent20pt\small
\makebox[\linewidth][c]{\bfseries\normalsize\color{blue}Configuring
Preferences}\\[3pt]
To avoid the security alerts when loading FLV files from You Tube,
configure your preferences as described below.

Start Adobe Reader 9 (or Acrobat~9), and open the \textbf{Preferences}
dialog box (located in the menu system by selecting \textbf{Edit
\texttt{>} Preferences} or using the shortcut \texttt{Ctrl+K}); select
\textbf{Trust Manager} from the left-hand \textbf{Categories} panel. On
the right side of the dialog box, press the button labeled \textbf{Change
Settings}, shown below.\par\vspace*{3pt}\centering
\includegraphics[width=\linewidth]{graphics/trustmanager}}\hfill
\parbox[t]{\linewidth-3in-10pt}{\small
In the \textbf{Manage Internet Access}, make selections as
indicated by the arrows in the figure below. Now exit the dialogs, and try
\textbf{PDF Tube}!\par\vspace*{3pt}\centering
\includegraphics[width=2in]{graphics/manageinternetaccess}}

\newpage

\begin{center}\bfseries\Large\color{blue}
PDF Tube
\end{center}

\DeclareYTName{ytInWindow}
\ytBtnPresets{\BC{.5 0 0}\W{1}\S{S}\textFont{HeBo}}%
{\setlength{\dimen0}{(\linewidth)/6-1bp}\xdef\ytWidth{\the\dimen0}} %-.5bp
\cfooter{\makebox[\linewidth][c]{\kern1bp\ytPlayToggle{\ytWidth}{11bp}\kern1bp\ytStopLoading[\textSize{0}]{\ytWidth}{11bp}\kern1bp
\ytMuteToggle{\ytWidth}{11bp}\kern1bp\ytRewind{\ytWidth}{11bp}\kern1bp
\ytSelect[\textSize{0}]{eNzrn8-JFSE}{\ytWidth}{11bp}\kern1bp\ytOpenWeb[\textSize{0}]{\ytWidth}{11bp}}}

\def\myPBPresets{\CA{YT Menu}\textColor{0 0 1}\W1\BC{}\textSize{0}
    \S{S}\AA{\AAMouseEnter{\JS{popupYTMenu("\ytCurrRMAName")}}}}

\setlength{\pichskip}{3pt}
\parpic(.25in,.25in){%
\parbox{.25in}{\offinterlineskip\resizebox{.25in}{!}
{\ytRmAnnot[windowed,poster=yt_poster,deactivated=pageclose]{ytInWindow}{72bp}{72bp}}}}
\pushButton[\presets{\myPBPresets}]{myYTMenu}{20bp}{5bp}
On this page, the You Tube annotation is icon size and the video is played
in a floating window.

Move the window by dragging its title bar. Resize it by dragging the
lower-right corner. Close the window by clicking on the upper-right
corner.

The \textsf{YT Menu} uses the \textsf{popupmenu} package. Alternatively,
we could just use the combo box that has been used already, but, I thought
we might try something different.

\newpage

\ytRmAnnot[posternote=AcroTeX PDF Tube,deactivated=pageclose]{YouTube1}{571bp/2}{330bp/2}\\
\ytPlayList{GZ9e3Dy7obA}{\playList}\ytComboListPresets{\textSize{9}}%
\ytComboList{(571bp/2)-1bp-33bp}{11bp}\kern1bp\ytComboBtn[\TU{Click to play, shift-click to load thumbnail only}]{33bp}{11bp}

\newpage
\cfooter{}
\begin{minipage}{571bp/2}
\ytRmAnnot[posternote=AcroTeX PDF Tube,deactivated=pageclose]{YouTube2}{571bp/2}{330bp/2}\\
\ytPlayList{GZ9e3Dy7obA}{\playList}\ytComboListPresets{\textSize{9}}%
\ytComboList{(571bp/2)-1bp-33bp}{11bp}\kern1bp\ytComboBtn[\TU{Click to play, shift-click to load thumbnail only}]{33bp}{11bp}
\end{minipage}\hfill
\begin{minipage}{\linewidth-290bp-10bp}\centering
\ytPlayToggle{1in}{11bp}\\[3bp]
\ytStopLoading[\textSize{0}]{1in}{11bp}\\[3bp]
\ytMuteToggle{1in}{11bp}\\[3bp]
\ytRewind{1in}{11bp}\\[3bp]
\ytSelect[\textSize{0}]{eNzrn8-JFSE}{1in}{11bp}\\[6bp]
\ytOpenWeb[\textSize{0}]{1in}{11bp}
\end{minipage}

\newpage

\begin{center}
\begin{minipage}{571bp/2}
\ytRmAnnot[poster=pdfyt_poster,deactivated=pageclose]{YouTube3}{571bp/2}{330bp/2}\\
\ytPlayList{GZ9e3Dy7obA}{\playList}\ytComboListPresets{\textSize{9}}%
\ytComboList{(571bp/2)-1bp-33bp}{11bp}\kern1bp\ytComboBtn[\TU{Click to play, shift-click to load thumbnail only}]{33bp}{11bp}\\[1bp]
{\setlength{\dimen0}{(\linewidth+1bp)/6-1bp}\xdef\ytWidth{\the\dimen0}}%
\ytPlayToggle{\ytWidth}{11bp}\kern1bp\ytStopLoading[\textSize{0}]{\ytWidth}{11bp}\kern1bp
\ytMuteToggle{\ytWidth}{11bp}\kern1bp\ytRewind{\ytWidth}{11bp}\kern1bp
\ytSelect[\textSize{0}]{eNzrn8-JFSE}{\ytWidth}{11bp}\kern1bp
\ytOpenWeb[\textSize{0}\CA{View on Web}]{\ytWidth}{11bp}
\end{minipage}
\end{center}

\end{document}
