// browser detection, loads different style sheet 
// for IE to compensate for one instance of box-model
// difference (in sidebar), suppresses
// loading of stylesheet in pre-NN6 browsers, and
// also compensates for the ability of Opera to announce
// itself as IE....
var cssFile;
if ((navigator.appName == "Microsoft Internet Explorer") 
    && !(navigator.userAgent.indexOf("Opera") != -1)) {
  cssFile = "/styles/ie-main.css";
  document.write("<link rel='stylesheet' type='text/css' href='" + cssFile + "' />");
} else if ((navigator.appName == "Netscape")
           && (parseFloat(navigator.appVersion) < 5)) {
  // no op, load no style sheet if old Netscape is detected
} else {
  cssFile = "/styles/main.css";
  document.write("<link rel='stylesheet' type='text/css' href='" + cssFile + "' />");
}

