	function videoWindow()
{
		document.writeln('<p align="left">To verify that the version is recent enough, click the play button below.</p>');
		document.writeln('<! HTML INSERT BEGIN /!>');
		document.writeln('<! RealPublisher');
		document.writeln('-- pagelayout="embedded"');
		document.writeln('-- serverpath="http://www.mediascape.com"');
		document.writeln('-- mediafile="http://playstream-real.com:8080/ramgen/mediascape/videotest.rm"');
		document.writeln('-- metafile="http://playstream-real.com:8080/ramgen/mediascape/videotest.rm"');
		document.writeln('');
		document.writeln('/!> ');
		document.writeln('<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=180 width=240 align="top">');
		document.writeln('<param name="controls" value="ImageWindow">');
		document.writeln('<param name="console" value="Clip1">');
		document.writeln('<param name="autostart" value="false">');
		document.writeln('<param name="src" value="http://playstream-real.com:8080/ramgen/mediascape/videotest.rm">');
		document.writeln('<embed type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ImageWindow" height=180 width=240 autostart=false align="top" src="http://playstream-real.com:8080/ramgen/mediascape/videotest.rm">');
		document.writeln('</embed> ');
		document.writeln('</object>');
		document.writeln('<BR><align="left"><object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=25 width=45 align="top">');
		document.writeln('<param name="controls" value="PlayButton">');
		document.writeln('<param name="console" value="Clip1">');
		document.writeln('<embed type="audio/x-pn-realaudio-plugin" console="Clip1" controls="PlayButton" height=25 width=45 autostart=false align="top">');
		document.writeln('</embed> ');
		document.writeln('</object>');
		document.writeln('<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=25 width=35 align="top">');
		document.writeln('<param name="controls" value="StopButton">');
		document.writeln('<param name="console" value="Clip1">');
		document.writeln('<embed type="audio/x-pn-realaudio-plugin" console="Clip1" controls="StopButton" height=25 width=35 autostart=false align="top">');
		document.writeln('</embed> ');
		document.writeln('</object>');
		document.writeln('<! HTML INSERT END /!> ');

		document.writeln('<p align="left">Did the sample video play correctly?</p>');
		document.writeln('<p align="right">If so, <a href="../htdocs/sfhome.html"><B>your browser is verified.</B><img src="rarrow2.gif" width="40" height="30" border="0"></a></p>');
		document.writeln('<p align="left">If the sample video does not play for any reason, then visit the <a href="realplayer_help.html">RealPlayer help site.</a></p>');
}

        var RealMode=0;
        var RealPlayer5=0;
        var RealPlayer4=0;
        var RealPlayerG2=0;

        if (navigator.userAgent.indexOf("MSIE")< 0 ){
        	numPlugins = navigator.plugins.length;
        	for (i = 0; i < numPlugins; i++){
                	plugin = navigator.plugins[i];
                	if (plugin.name.substring(0,10)=="RealPlayer"){
                        	RealMode=1;
                	}
        	}
        }

        document.write('<SCRIPT LANGUAGE=VBScript\> \n');
        document.write('on error resume next \n');
        document.write('RealPlayerG2 = (NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control")))\n');
        document.write('RealPlayer5 = (NOT IsNull(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)")))\n');
        document.write('RealPlayer4 = (NOT IsNull(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)")))\n');
        document.write('</SCRIPT\> \n');

		document.writeln('<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">');
        if ( RealPlayerG2 || RealPlayer5 || RealPlayer4 ) {
            document.writeln("RealPlayer InternetExplorer plug-in is installed. ");
       	document.write('<OBJECT ID="RealPlayerIE" NAME="RealPlayerIE2"CLASSID="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> \n');
		document.write('</OBJECT> \n');
		document.writeln("<BR>InternetExplorer Embedded RealPlayer version " + document.RealPlayerIE.GetVersionInfo());

		videoWindow();

        }else if ( RealMode ){
            document.writeln("RealPlayer Netscape plug-in is installed. ");
        	document.write('<EMBED TYPE="audio/x-pn-realaudio-plugin" NAME="RealPlayerNS" ID="RealPlayerNS2" CONTROLS="HomeCtrl" HEIGHT=0 WIDTH=0> \n');
		document.write('</EMBED> \n');
		document.writeln("<BR>Netscape Embedded RealPlayer version " + document.RealPlayerNS.GetVersionInfo());

		videoWindow();
		
	}else {
            document.writeln("RealPlayer plug-in is NOT installed. ");
		//document.writeln('<p align="left">RealPlayer does not appear to be installed on this browser.</p>');
		document.writeln('<p align="left">For instructions on how to install the RealPlayer plugin, visit the <a href="realplayer_help.html">RealPlayer help site.</a></p>');

      }