var wm9msg = "We have detected that you do not have a compatible version of the Windows Media Player for this presentation.\\n We require Windows Media version 9 or greater.\\nWould you like to download and install the latest Windows Media Player?"; 
var zfdl="Zip File Download";
var zfinstr = "You can download this zip file by clicking on the underlined link and choosing \"Save As\".  After you have downloaded the file, Unzip it, and then play the content."
var efdl="Exe File Download";
var efinstr = "You can download this exe file by clicking on the underlined link and choosing \"Save As\".  After you have downloaded the file, Double Click on it, and then play the content."
var puinst1 = "To play the content included on this page, it is necessary to install the required ScreenWatch Player Plug-ins for either your RealPlayer or Windows Media player.  This page requires plug-ins for the ";
var puinst2 = " player.  You may download and install them from <a href=\"http://www.screenwatch.com/pages/download.htm?dl\" target=\"_blank\">Here</a>"
var purm = "RealPlayer";
var puwm = "Windows Media Player";
var toclabel = "Table of Contents";
var lbstr = "Good Quality";
var mbstr = "Medium Quality";
var hbstr = "Best Quality";


function embedreal( d, baseproj, avspec )
    {
    d.writeln('<div class="vplayercontrol" > '); // 6 
    d.writeln('<EMBED id="avplayer" SRC="' + mediaurl + '" height="30" width="' + mediawidth + '"  '); // 7 
    d.writeln('CONTROLS=ControlPanel REGION=avplayer CONSOLE=one Autostart="true"> '); // 8 
    d.writeln('</div> '); // 9 
    d.writeln('<div class="playerstatus" > '); // 10 
    d.writeln('<EMBED id="avplayer" SRC="' + mediaurl + '" height="20" width="' + mediawidth + '"  '); // 11 
    d.writeln('CONTROLS=StatusField REGION=avplayer CONSOLE=one Autostart="true"> '); // 12 
 
    d.writeln('<EMBED id="avplayer" SRC="' + mediaurl + '" height="20" width="' + mediawidth + '"  '); // 13 
    d.writeln('CONTROLS="PositionField" REGION=avplayer CONSOLE=one Autostart="true"> '); // 14 
    d.writeln('</div> '); // 15 
    }

//function embedwma( d, baseproj, avspec, issc, highurl, mediaurl, isvideo, mediwidth, mediaheight, controlsheight, vidxpos, scwidth, scheight, scxpos )
function embedwma( d, baseproj, avspec)
    {
    d.writeln('<div class="scdisplay" style="left: '+ scxpos + ';" >'); 
    if( isvideo == 0 && issc )  
        d.writeln(' <OBJECT ID="Ieswplay1" WIDTH=' + scwidth + ' HEIGHT=' + scheight);
    else  
        d.writeln(' <OBJECT ID="Ieswplay1" WIDTH=' + scwidth + ' HEIGHT=' + scheight);  
    d.writeln(' CLASSID="CLSID:2E843840-4966-4C88-8A8B-EDD674055832" ');
    d.writeln(' STANDBY="Loading ScreenWatch Presentation Player..." ');
    d.writeln(' CODEBASE="http://plugins.screenwatch.com/wm/swplay.cab#version=${PVERSION}" > ');
    d.writeln('<PARAM NAME="_Version" VALUE="65536"> '); 
    d.writeln(' <PARAM NAME="_ExtentX" VALUE="4493"> '); 
    d.writeln(' <PARAM NAME="_ExtentY" VALUE="3037"> ');
    d.writeln(' <PARAM NAME="_StockProps" VALUE="0"> ');
    d.writeln(' </OBJECT> '); 
    d.writeln(' </div> '); 
    d.writeln('<div class="playershell" style="left:' + vidxpos + ';" > ');
    d.writeln(' <div id=\\"wmplayer\\" class=\\"vplayerimage\\" > '); 
    d.writeln(' <OBJECT ID="MediaPlayer1" NAME="MediaPlayer1" WIDTH=' + mediawidth + ' '); 
    d.writeln('HEIGHT=' + (mediaheight + controlsheight) ); 
    d.writeln( 'CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" TYPE="application/x-oleobject">  '); 
    if( issc )  
    {  
    d.writeln(' <PARAM NAME="URL" VALUE="' + highurl + '">  '); 
    } 
    else 
    { // no screen, just play the asf file raw  
    d.writeln(' <PARAM NAME="URL" VALUE="' + mediaurl + '">  '); 
    }
    d.writeln('<PARAM NAME="AutoStart" VALUE="true"> '); 
    d.writeln('<PARAM NAME="uiMode" VALUE="full"> '); 
    d.writeln(' <EMBED TYPE="application/x-mplayer2"          PLUGINSPAGE = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="' + baseproj + avspec + '.asf"         NAME="MediaPlayer1"         ');
    d.writeln(' WIDTH=' + mediawidth  ); 
    if( isvideo == 0) 
        mediaheight = 0; 
    d.writeln('HEIGHT=' +  (mediaheight + controlsheight) ); 
    d.writeln(' AUTOSTART=true>  '); 
    d.writeln(' </EMBED>  '); 
    d.writeln(' </OBJECT> ');
    d.writeln(' </div> '); 
    }


function embedreal2(d)
{
if( issc ) 
    { 
    // only show this if realplayer format 
    if( format == 1) 
        { 
        d.writeln('<div class="scdisplay" style="left: '+ scxpos + ';" >'); 
        d.writeln('<EMBED id="scplayer" SRC="' + mediaurl + '" height="' + scheight + '" width="' + scwidth + '"  border="0" '); // 18 
        d.writeln('CONTROLS=ImageWindow REGION=scplayer CONSOLE=one Autostart="true"> '); // 19 
        d.writeln('</div> '); // 20 
        } 
    } 
}

function embedreal3(d)
{
        d.writeln('<div class="vplayerimage" > '); 
        d.writeln('<EMBED id="avplayer" SRC="' + mediaurl +'" height="' + mediaheight + '" width="' + mediawidth + '" '); 
        d.writeln('CONTROLS=ImageWindow REGION=avplayer CONSOLE=one Autostart="true"> '); 
        d.writeln('</div> '); 
}

