// These variables are global to the included page
	var bMSIE = false;
	var bMSIE4, bMSIE5, bMSIE55, bMSIE6;
	var bNetscape = false, bNetscape_2 = false, bNetscape_3 = false,bNetscape_4 = false, bNetscape_5 = false, bNetscape_6 = false;
	
 // These variables can be used globally by the included page.
	var bWin16 = false; // includes Win31 and WinNT 3.51
	var bWin95 = false;
	var bWin98 = false;
	var bWinNT = false;
	var bWinXP = false;
	var bMac = false, bMac68K = false, bMacPPC = false;
	var bMSSun = false;
	
	var UserMessage = "";
	var OSmessage = "";
	var CompleteMessage = "";

	function browser()
	{
	    var ua = window.navigator.userAgent;
	    var an = window.navigator.appName;
	
	    // Is it IE?
	    bMSIE = (ua.indexOf("MSIE")>=1);
		    if (bMSIE)
		    {
		       bMSIE4 = (ua.indexOf("MSIE 4.0")>=1);
		       bMSIE5 = (ua.indexOf("MSIE 5.0")>=1);
		       bMSIE55 = (ua.indexOf("MSIE 5.5")>=1);
		       bMSIE6 = (ua.indexOf("MSIE 6.0")>=1);
// IE4		       
		       if(bMSIE4>=1)
		      	{
			BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px' class='FailIt'></span><span class='theBrwMessage'>You are using Internet Explorer 4.0 *.  This version of Internet Explorer is NOT compatible with the advanced uses of code on this site.</span>";
		      	}
// IE5
		      if(bMSIE5>=1)
		      	{ 
			BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px'class=' FailIt'></span><span class='theBrwMessage'>You are using Internet Explorer 5.0 *.  This version of Internet Explorer is NOT compatible with the advanced uses of code on this site.</span>";
		      	}
// IE5.5
		       if(bMSIE55>=1)
		      	{
			BrowserMessage = "<span id='OKmaybe' style='width:100%; text-align: center; display:block; margin-bottom:5px' class='OKmaybe'></span><span class='theBrwMessage'>You are using Internet Explorer 5.5 *.  This version of Internet Explorer IS compatible with the advanced uses of code on this site.  However, we advise that you upgrade to the latest version of Internet Explorer 6.0+ and Windows Media Player 9.0 .</span>";
		      	}
//IE6
		     	 if(bMSIE6>=1)
		      	{
			BrowserMessage = "<span id='OKtotal' style='width:100%; text-align: center; display:block; margin-bottom:5px' class='OKtotal'></span><span class='theBrwMessage'>You are using Internet Explorer 6.0 which is completely compatible with the advanced uses of code on this site.   Please be sure you have installed<span style='font-size:14pt; color:blue; display:block; width: 100%; text-align:center'>&nbsp;Windows Media Player version 9.0&nbsp;</span></span>";
		      	}		      
		    }
		    else if (an == "Netscape")
		    {
		        bNetscape = true;
		        appVer = parseInt(navigator.appVersion);
//		        alert("appVer = "+appVer)
		        if (ua.indexOf("Netscape6")>=1)
		        	{
		           	 bNetscape_6 = true;
		           	 BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theBrwMessage'>You are using Netscape 6.0 as your browser. &nbsp;This website is coded to take advantage of the capabilities of Internet Explorer 5.5+ (version 6.0+ is strongly recommended).</span>";
		           	 }		        
		        
		        else if (appVer >= 5 && ua.indexOf("Netscape6")<1)
		        	{
		           	 bNetscape_5 = true;
		           	 BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theBrwMessage'>You are using Netscape 5.0 as your browser. &nbsp;This website is coded to take advantage of the capabilities of Internet Explorer 5.5+ (version 6.0+ is strongly recommended).</span>";
		           	 }
		        
		       else if (appVer >= 4)
		        	{
		           	 bNetscape_4 = true;
		           	 BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theBrwMessage'>You are using Netscape 4.0 as your browser. &nbsp;This website is coded to take advantage of the capabilities of Internet Explorer5.5+ (version 6.0+ is strongly recommended).</span>"
		           	 }
		        else if (appVer >= 3)
		        	{
		            	bNetscape_3 = true;
		            	BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theBrwMessage'>You are using Netscape 3.0 as your browser. &nbsp;Your browser is NOT COMPATIBLE.  This website is coded to take advantage of the capabilities of Internet Explorer5.5+ (version 6.0+ is strongly recommended).</span>";
		            	}
		        else
		        	{
		            	bNetscape_2 = true;
		            	BrowserMessage = "<span id='FAILit' style='width:100%; text-align: center; display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theBrwMessage'>You are using Netscape 2.0 as your browser. &nbsp;Your browser is NOT COMPATIBLE.  This website is coded to take advantage of the capabilities of Internet Explorer5.5+ (version 6.0+ is strongly recommended).</span>";
		            	}	            
		    }		    
//Now check the OS
	os();
	}
	
	
// Call the browser() function before you call this one!
	
	function os()
	{
	    var ua = navigator.userAgent;

		   if (bMSIE)
			   {

//			   alert("checking which version of Windows... .under Explorer= "+ua);
 //IE supported OS's
			      bWin95 = (ua.indexOf("Windows 95")>=1);
			      bWin98 = (ua.indexOf("Windows 98")>=1);
			      bWinNT = (ua.indexOf("Windows NT")>=1);
			      bWin2K = (ua.indexOf("Windows NT 5.0")>=1);
			      bWinXP = (ua.indexOf("Windows NT 5.1")>=1);
			      bWin16 = (ua.indexOf("Windows 3.1")>=1);
			      bMac = (ua.indexOf("Mac")>=1);
			      bMac68K = (ua.indexOf("Mac_68000")>=1);
			      bMacPPC = (ua.indexOf("Mac_PowerPC")>=1);
			      bMSSun = (ua.indexOf("SunOS")>=1);
			   }

		   else if (bNetscape)
			   {
//			      alert("checking which version of Windows... .under Netscape= "+ua);
			      // NSCP supporte OS's
			      bWin95 = (ua.indexOf("Win95")>=1);
			      bWin98 = (ua.indexOf("Win98")>=1);
			      bWinNT = (ua.indexOf("WinNT")>=1);
			      bWinXP = (ua.indexOf("Windows NT 5.1")>=1);
			      bWin2K = (ua.indexOf("WinNT 5.0")>=1);
			      bWin16 = (ua.indexOf("Win16")>=1);
			      bMac = (ua.indexOf("Mac")>=1);
			      if (bMac)
				      {
				         bMac68K = (ua.indexOf("68K")>=1);
				         bMacPPC = (ua.indexOf("PPC")>=1);
				      }
			   }
		if(bWinXP>=1)
		{
		OSmessage = "<span id='osTest' style='width:100%; text-align: center; display:block; margin-bottom:5px text-align:center' class='OKtotal'>HI</span><span class='theOsMessage'>Your Operating System is WinXP.  By default, WinXP installs Windows Media Player for WinXP (version 8.0+) which should be upgraded to Windows Media Player version 9.0.  Direct download links to upgrade your software are available below</span>"
		}
/*
		else if(bWin98>=1)
		{
		OSmessage = "<span id='osTest' style='display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theOsMessage'>Your Operating System is Win98 which is supports 'Streaming Multimedia' productions.  However, Win98 does NOT automatically install Windows Media Player 7.0+.  Please check your version of Media Player.  Use the Media Player Download link below to upgrade if you have version 6.4 installed or if you are unsure which version is installed.</span>";
		}
		else if(bWin2K>=1)
		{
		OSmessage = "<span id='osTest' style='display:block; margin-bottom:5px text-align:center' class='OKmaybe'></span><span class='theOsMessage'>Your Operating System is Win2000. You ARE compatible.  However, Win2000 does NOT automatically install Windows Media Player 7.0+.  Please check your version of Media Player.  Use the Media Player Download link below to upgrade if you have version 6.4 installed or if you are unsure which version is installed.</span>";
		}
*/
		else
		{
		OSmessage = "<span id='osTest' style='display:block; margin-bottom:5px text-align:center' class='FAILit'></span><span class='theOsMessage'>Your Operating System is not compatible with Windows Media Player 7.0+.  Your version of Media player does not support 'Skins' or our Skins-based 'Streaming Multimedia' productions.  You will have to access this site from a machine running Win98 or Win2000 or WinXP in order to watch our 'Streaming Multimedia' productions.</span>";
		}
	CompleteMessage = OSmessage+BrowserMessage+"<br> Please pardon the slight intrusion of this system compatibility check.<br>nThank You!";
	return false;
	}

	function rejectNetscp()
	{
	if(bNetscape==true)
		{
		alert("Your browser is Netscape.  With apologies, Netscape is not fully compatible with the the coding we use for 'streaming multimedia' and other advanced webpage design features.  Please use Internet Explorer 5.5+, at minimum, to enter PremierePro HELP website.  (We strongly encourage using the most recent version, Internet Explorer 6.0+");
		GoToIE = window.open("http://www.microsoft.com/windows/ie/default.asp","_blank","height=600,width=700,status=0,menubar=0,scrollbars=1,resizable=1,top=400,left=400");
		return false;
		}
	}
	
	var UserSysWin;
	function addWinsPop()
	{
	var WinWide2 = screen.availWidth;
	var WinHigh2 = screen.availHeight;
	var DoWidth2 = WinWide2*.25;
	var DoHeight2 = WinHigh2*.8;
	var DoTop2 = 5;
	var DoLeft2 = 5;
	if(UserSysWin)
		{
		UserSysWin.close();
		clearTimeout(DoTestWinClose);
		}
	UserSysWin = window.open("UserSysInfo.html","_blank","height="+DoHeight2+",width="+DoWidth2+",status=0,menubar=0,scrollbars=1,resizable=1,top="+DoTop2+",left=="+DoLeft2); 
	DoTestWinClose = setTimeout(closeTestWin,10000)
	}

	function closeTestWin()
	{
	clearTimeout(DoTestWinClose);
	UserSysWin.close();
	}

