var platname = window.navigator.appVersion;

function Linux(){
        return(platname.lastIndexOf('Linux') != -1 );
        }
function Mac(){
        return(platname.lastIndexOf('Mac') != -1 );
        }
function bit16(){
          return(platname.lastIndexOf('16bit') != -1 );
          }
function Win31(){
          return((platname.lastIndexOf('Windows 3.1') != -1 ) ||
                 (platname.lastIndexOf('Win16') != -1 ) ||
                 (platname.lastIndexOf('Windows 16-bit') != -1 ));
          }
function WinMe(){
          return(platname.lastIndexOf('Win 9[x\d] 4.90') != -1 );
          }
function Win95(){
          return((platname.lastIndexOf('95') != -1 ) && !WinMe());
          }
function Win98(){
          return((platname.lastIndexOf('98') != -1 ) && 
                (!WinMe()));
          }
function Win2k(){
          return((platname.lastIndexOf('Windows NT 5.0') != -1) || 
                 (platname.lastIndexOf('Windows 2000') != -1)  || 
                 ((platname.lastIndexOf('5.0') != -1) && (platname.lastIndexOf('Windows') != -1)));
          }
function WinXP(){
          return((platname.lastIndexOf('Windows NT 5.1') != -1) || 
                 (platname.lastIndexOf('Windows XP') != -1) || 
                 ((platname.lastIndexOf('5.1') != -1) && (platname.lastIndexOf('Windows') != -1)));
          }
function WinNT(){
          return((platname.lastIndexOf('WinNT') != -1) || 
          ((platname.lastIndexOf('Windows NT') != -1) && 
          (!Win2k()) && (!WinXP())));
          }

document.write("<div class=win95>");

if (Mac())  { document.write("Running Windows 95 programs on a Mac: See ");
             document.write("application article.".link("http://askbobrankin.com/run_windows_on_mac.html")); }
  else if (Linux()) { document.write("Running Windows 95 programs in Linux: Use ");
              document.write("Wine (Windows Emulator).".link("http://www.macadamian.com/index.php?option=com_techarticle&task=view&id=9")); }
  else if (bit16()) document.write('Needs Windows 95.');
  else if (Win31()) document.write('Needs Windows 95.');
  else if (Win95()) document.write("Windows 95 application.");
  else if (Win98()) document.write("Windows 98 is backwards compatible with Windows 95.");
  else if (WinMe()) document.write("Windows 98 and Windows Me are backwards compatible with Windows 95.");
  else if (WinNT()) document.write("Windows NT is backwards compatible with Windows 95."); 
  else if (Win2k()) document.write("Windows 2000 and Windows XP are backwards compatible with Windows 95.");
  else if (WinXP()) { document.write("Running Windows 95 programs in Windows XP: See "); 
document.write("application article".link("http://support.microsoft.com/kb/301911")," on ","Compatibility Wizard.".bold()); 
document.write("<p>Windows XP provides a program Compatibility Wizard that configures a program so it runs in an environment similar to a non-Windows XP operating system environment.");
document.write("<ol type=1><li>Click the ","Start".bold()," button, point to ","All Programs &rarr; Accessories".bold(),", and then click ","Program.".bold(),"<\/li>");
document.write("<li>In the Welcome screen, click ","Next.".bold(),"<\/li><li>Follow instructions on the screen.<\/li><\/ol>"); }

document.write("<\/div>");
