// Determine which version of plugin is being used.
var RealMode=0;
var RealPlayer5=0;
var RealPlayer4=0;
var RealPlayerG2=0;
var FlashMode=0;
var flash=0;
if (navigator.userAgent.indexOf("MSIE")<0 )
{
	numPlugins = navigator.plugins.length;
	for (i = 0; i < numPlugins; i++)
	{
  		plugin = navigator.plugins[i];
//alert(plugin.name.substring(0,10));
		if (plugin.name.substring(0,10)=="RealPlayer")
		{
			RealMode=1;
		}
		if (plugin.name.substring(0,15)=="Shockwave Flash")
		{
			FlashMode=1;
		}
	}
}
if(navigator.userAgent.indexOf("Win")<0)	// If OS is Mac, force RealMode to 1
{
	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('flash = (NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash")))\n');
document.write('</SCRIPT\> \n');

if (RealMode || RealPlayerG2 || RealPlayer5 || RealPlayer4)
{
//	alert("RealPlayer plug-in is installed.");
//	if( RealPlayerG2 )
//		alert("RealPlayerG2 plug-in is installed.");
//	if( RealPlayer5 )
//		alert("RealPlayer5 plug-in is installed.");
//	if( RealPlayer4 )
//		alert("RealPlayer4 plug-in is installed.");	
}
else 
{
//	alert("RealPlayer plug-in is not installed.");
}
if (FlashMode || flash)
{
//	alert("Flash plug-in is installed.");
}
else 
{
//	alert("Flash plug-in is not installed.");
}
RealMode = RealMode | RealPlayerG2 | RealPlayer5 | RealPlayer4;
FlashMode = FlashMode | flash;

