	//****************************************************************************************
	// ValidBrowser 
	// Checks to see if the browser is MSIE or Netscape Navigator. 
	//				If the the platform is a Mac, and the browser is IE then the 
	//				version must be "5.0". For any other case, the minimum browser 
	//				requirement is "4.0".
	//****************************************************************************************
	function ValidBrowser() 
		{// If the Browser is either MSIE or Netscape ...
		if (navigator.appName == "Microsoft Internet Explorer" || navigator.appName == "Netscape")
			  {// If the Browser is MSIE ...
				if (navigator.appName == "Microsoft Internet Explorer")
					{// and the Platform is a Mac...
					if (navigator.platform.indexOf("MacPPC") != -1 )
						{// and it is compatible with MSIE 5.0...
						if (navigator.appVersion.indexOf("MSIE 5.0") != -1 )
							{
							return true;
							}
						else
							{
							return false
							}	
						}
					else
						// If the Browser is MSIE, the Platform is not a Mac,
						// and the Version >=4...
						if (parseFloat(navigator.appVersion) >= 5)
							{
							return true;
							}
						else
							{
							return false
							}						
					}
				else
					{//If the Browser is Netscape and the Version >=4...
						if (parseFloat(navigator.appVersion) >= 6)
							{
							return true;
							}
						else
							{
							return false
							}				
					}	
			  }
		else
			{//The browser is neither MSIE nor Netscape...Sorry...
			return false;
			} 
		} 
	
		
	//****************************************************************************************
	//	RealPlayerEnabled
	//	Checks for the plugin in (Netscape) or the Real Player control in IE
	//****************************************************************************************
	function RealPlayerEnabled() 
		{
		// If the Browser name is MSIE on a Mac and is a valid version 
		//then assume they are Real Player enabled...		
			if ((navigator.appName.indexOf("Microsoft Internet Explorer") != -1 ) && (navigator.userAgent.indexOf("Mac") != -1))
				{
				if (ValidBrowser)				
					{
					return true;
					}
				else
					{
					return false;
					}	
				}
		
		
			// If the Browser name is MSIE (not on a Mac) then use VBScript to test for Real Player
			if ((navigator.appName.indexOf("Microsoft Internet Explorer") != -1 ) && (navigator.userAgent.indexOf("Mac") == -1))
				{
				document.write('<SCR');
				document.write('IPT LANGUAGE=VBScript> \n');
				document.write('on error resume next \n');
				document.write('Dim RealPlayerG2, RealPlayer5, RealPlayer4, FoundRealPlayer \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('if (RealPlayerG2 or RealPlayer5 or RealPlayer4) then \n');
				document.write('FoundRealPlayer = true \n');
				document.write('else \n');
				document.write('FoundRealPlayer = false \n');
				document.write('end if \n');
				document.write('</SCR');
				document.write('IPT> \n');
				return FoundRealPlayer;
				}						
			else
				{
				// If the Browser name is Netscape then call detectPlugin...
				if ((navigator.appName.indexOf("Netscape") != -1) || navigator.userAgent.indexOf("Mac") != -1 )
					{
					if (detectRealPlayer()== true)
						{
						return true;
						}
					else
						{
						return false;
						}	
					}
				}	
		}			
	
	//****************************************************************************************
	//	detectRealPlayer
	// Searches for the existence of the Real Player plugin passed in if the browser is Netscape
	//****************************************************************************************	
		
	function detectRealPlayer()
		{
		var strPluginListing;
		var numbPlugins = navigator.plugins.length;
		for (i = 0; i < numbPlugins; i++)
			{
			plugin = navigator.plugins[i];
			strPluginListing = (strPluginListing + '\n' + plugin.description + '\n\n');					
			}		  
		if (strPluginListing.indexOf("RealPlayer") != -1)
			{
			return true;
			}
		 else
			{
			return false;
			}
		}	
		

