/* © copyright 2001 - Robin Nicholl - robin@studioalias.com */

/* Choose appropriate stylesheets for Mac or PC */

<!--
function whichstyle() {

  var isMac = navigator.userAgent.indexOf("Mac");
  // note: IE5 reports as 4.0, so must check for this string
  var IEversion = navigator.appVersion.indexOf("MSIE 5");
  var isNetscape = navigator.appName.indexOf("Netscape");
  var nnVersion = parseFloat(navigator.appVersion);

  // see if it's Mac or PC
  if (isMac>=0) {

    // it's a Mac
    // check for Netscape or Explorer
    if (isNetscape >= 0) {
      // it's Netscape
      // note: Netscape 6 reports as 5.0
      if (nnVersion >= 5) {
        // use PC stylesheet for Netscape 6
        document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1pc.css">');
      } else {
        // use Mac stylesheet for Netscape 4.x
        document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1.css">');
      }
    } else {
      // it's Explorer
      // see if it's IE 5
      if (IEversion >= 0) {
        // use the PC stylesheet for Explorer 5.x
        document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1pc.css">');
      } else {
        // use the Mac stylesheet if it's Explorer 4.x
        document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1.css">');
      }
    }

  } else {
    // it's a PC
    // check for Netscape or Explorer
    if (isNetscape >= 0) {
      // note: Netscape 6 reports as 5.0
      if (nnVersion >= 5) {
        // use the PC stylesheet for Netscape 6
        document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1pc.css">');
      } else {
        // use special stylesheet for Netscape 4.x
        document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1pcnn.css">');
      }
    } else {
    // use the PC stylesheet if it's Explorer
      document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="_/styles/style_1pc.css">');
    }
  }
}

whichstyle()

//-->