// If the userAgent is Macintosh, use the Macintosh style sheet (we don't forget Mac users).
if (navigator.userAgent.indexOf('Mac') != -1){
  document.write('<link rel="stylesheet" href="/mac.css">');
// Otherwise, use the Windows style sheet.
}else{
  document.write('<link rel="stylesheet" href="/win.css">');
}