if (navigator.appName.indexOf("Explorer") != -1)
  {
    if (navigator.appVersion.indexOf("Windows") != -1)
{
//URL to MSIE Win CSS
document.write('<link rel=stylesheet href="../styles/ie_win.css" type="text/css">');
}
    else  // MSIE is only for Windows and MacOS
    {
//URL to MSIE Mac CSS
      document.write('<link rel=stylesheet href="styles/ie_mac.css" type="text/css">');
}
  }

  else if (navigator.appName.indexOf("Netscape") != -1)
  {
if (navigator.appVersion.indexOf("Win") != -1)    // Netscape specific navigator.appVersion
{                                      //URL to Netscape Win CSS
document.write('<link rel=stylesheet href="styles/netscape_win.css" type="text/css">');
    }
else if (navigator.appVersion.indexOf("Macintosh") != -1)
    {
//URL to Netscape Mac CSS
      document.write('<link rel=stylesheet href="styles/netscape_mac.css" type="text/css">');
}
    else  // Netscape on a Linux/Unix platform
    {
//URL to Netscape Unix/Linux CSS
document.write('<link rel=stylesheet href="styles/netscape_linux.css" type="text/css">');
    }
  }
else  // Browser is not MSIE or Netscape - generic style sheet
    {
//URL to Generic CSS
      document.write('<link rel=stylesheet href="styles/generic.css" type="text/css">');
    }