                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
	RealOneInst = 'undetermined';
	
	var agt=navigator.userAgent.toLowerCase();
	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
	                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
	                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	if (is_nav) {
		IERPCtl = 0;
	}
	
	document.write('<OBJECT ID="IERPCtl" WIDTH=0 HEIGHT=0 CLASSID="CLSID:FDC7A535-4070-4B92-A0EA-D9994BCC0DC5"></OBJECT>');
	
	if (navigator.plugins) {
		if ((navigator.userAgent.charAt(8)) >= ('3'))
		{
		var nPlayerInstalled=2;
		var i=0;
		while (navigator.plugins[i])
			{
			if ((navigator.plugins[i].name) == 'RealOne Player Version Plugin')
				{
					nPlayerInstalled=1;
					szPlayerVersion=navigator.plugins[i].description;
					break;
				}
			i++;
			}
	
			if ( nPlayerInstalled == 2 )
			{
				var nRPVersion = IERPCtl.RealPlayerVersion;
				if ( nRPVersion == null )
				{
				nPlayerInstalled=2;
				} else {
				nPlayerInstalled=1;
				}
			}
		}	
		if (nPlayerInstalled == 1)
		{
		RealOneInst = 'installed';
		} 
		if (nPlayerInstalled == 2)
		{
		RealOneInst = 'notinstalled';
		}
	} else {
	RealOneInst = 'undetermined';
	}
	if (RealOneInst == 'installed') {
		if (agt.indexOf(" (r1 ") != -1) {
			RealOneInst = 'using';
		}
	}
var vidparam = "";
 
//	return RealOneInst;




//RealOne channel 2pan Detection Launcher.  Takes the URL of the video location
//url == vidurl passed from the script
function LaunchRealChannel(url) {

closetime = 2;
fullurl =  url + '.ram';
popoffmac = url + '/index.html';

//if (MacPPC && netscapeDOM) {
if (RealOneInst == 'installed'){
win3=window.open(fullurl,'PressPass','toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=1,height=1');
if (closetime) setTimeout("win3.close();", closetime*1000);}
else if (RealOneInst == 'using'){
win3=window.open(fullurl,'PressPass','toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=1,height=1');
if (closetime) setTimeout("win3.close();", closetime*1000);}
else {
window.open(popoffmac,'Popoff','toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=626,height=339'); }


}

