//OS Check

var agt=navigator.userAgent.toLowerCase();
// *** PLATFORM ***
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
    //        Win32, so you can't distinguish between Win95 and WinNT.
    var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

    // is this a 16 bit compiled version?
    var is_win16 = ((agt.indexOf("win16")!=-1) ||
               (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) ||
               (agt.indexOf("windows 16-bit")!=-1) );

    var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
                    (agt.indexOf("windows 16-bit")!=-1));
	
	var is_winme = ((agt.indexOf("win 9x 4.90")!=-1));    // new 020128 - abk
    var is_win2k = ((agt.indexOf("windows nt 5.0")!=-1) || (agt.indexOf("windows 2000")!=-1)); // 020214 - dmr
    var is_winxp = ((agt.indexOf("windows nt 5.1")!=-1) || (agt.indexOf("windows xp")!=-1)); // 020214 - dmr

    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
    //       - On Mercury client, the 32-bit version will return "Win98", but
    //         the 16-bit version running on Win98 will still return "Win95".
    var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
    var is_win32 = (is_win95 || is_winnt || is_win98 ||
                    ((is_major >= 4) && (navigator.platform == "Win32")) ||
                    (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

    var is_os2   = ((agt.indexOf("os/2")!=-1) ||
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||
                    (agt.indexOf("ibm-webexplorer")!=-1));

    var is_mac    = (agt.indexOf("mac")!=-1);
    if (is_mac) { is_win = !is_mac; } // dmr - 06/20/2002
    var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) ||
                               (agt.indexOf("68000")!=-1)));
    var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) ||
                                (agt.indexOf("powerpc")!=-1)));


	if (is_win95)
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/yay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/windows.jpg" /></td><td width="266" ');
		document.write('valign="top">You are using Windows 95.</td></tr>');
		
		
		}
		else if ((is_win98) && (!is_winme))
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/yay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/windows.jpg" /></td><td width="266" ');
		document.write('valign="top">You are using Windows 98.</td></tr>');
		}
		else if (is_winme)
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/yay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/windows.jpg" /></td><td width="266" ');
		document.write('valign="top">You are using Windows ME.</td></tr>');
		}
		else if (((is_winnt) || (is_win2k)) && (!is_winxp))
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/yay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/windows.jpg" /></td><td width="266" ');
		document.write('valign="top">You are using Windows 2000.</td></tr>');
		}
		else if (is_winxp)
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/yay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/windows.jpg" /></td><td width="266" ');
		document.write('valign="top">You are using Windows XP.</td></tr>');
		}
		else if (is_mac)
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/yay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/mac_logo.gif" /></td><td width="266" ');
		document.write('valign="top">You are using Windows XP.</td></tr>');
		}
		else
		{
		document.write('<tr><td width="100" valign="top"><div align="center"><img src="/detection/nay.gif" ');
		document.write('/></div></td><td width="150" valign="top">Operating System </td><td width="64" ');
		document.write('valign="top"><img src="/detection/mac_logo.gif" /></td><td width="266" ');
		document.write('valign="top"><strong>Warning:</strong> Selkirk\'s online system does not support the operating system you are currently using. Issues such as pages not displaying, failed logins and video/audio playback errors might occur. Please use a different computer with a supported operating system.</p><p>Selkirk recommends that you use any of the following operating systems:</p><table border="1" cellspacing="0" cellpadding="5"><tr><td><strong>Operating System</strong></td><td><strong>Versions</strong></td></tr><tr><td>Microsoft Windows</td><td>95, 98SE, NT, 2000 and XP</td></tr><tr><td>Macintosh</td><td>OS 9.x, OS.X and up</td></tr></table>.</td></tr>');
		
		
		}