//alert(navigator.appVersion);

document.writeln("<style type='text/css'><!--");
if (navigator.appVersion.indexOf("Mac") > -1) {  //Mac
  if (navigator.appVersion.indexOf('MSIE') > -1) {
    var agent01 = navigator.userAgent.split(";");
    var agent02 = agent01[1].split(" ");
    var ver = agent02[2];
    if (ver <= 5.17) {  //OS9
      document.write(".small {font-size: 70%; line-height: 150%;}");
      document.write(".medium {font-size: 80%; line-height: 150%;}");
      document.write(".large {font-size: 90%; line-height: 150%;}");
    } else {  //OSX
      document.write(".xsmall {font-size: 60%; line-height: 170%;}");
      document.write(".small {font-size: 70%; line-height: 180%;}");
      document.write(".medium {font-size: 70%; line-height: 180%;}");
      document.write(".large {font-size: 80%; line-height: 180%;}");
    }
  } else if (navigator.userAgent.indexOf('Safari') > -1) {  //Safari
    document.write(".xsmall {font-size: 60%;}");
    document.write(".small {font-size: 70%;}");
    document.write(".medium {font-size: 80%; line-height: 200%;}");
    document.write(".large {font-size: 90%;}");
  } else if (navigator.userAgent.indexOf('Firefox') > -1) {  //Firefox
    document.write(".xsmall {font-size: 60%;}");
    document.write(".small {font-size: 70%;}");
    document.write(".medium {font-size: 80%; line-height: 200%;}");
    document.write(".large {font-size: 90%;}");
  } else {
    document.write(".xsmall {font-size: 65%;}");
    document.write(".small {font-size: 75%;}");
    document.write(".medium {font-size: 80%; line-height: 200%;}");
    document.write(".large {font-size: 90%;}");
  }
} else {
  if (navigator.appVersion.indexOf('MSIE') > -1) {  // WIN IE
    document.write(".xsmall {position: relative; font-size: 70%;}");
    document.write(".small {position: relative; font-size: 75%;}");
    document.write(".medium {position: relative; font-size: 80%; line-height: 180%;}");
    document.write(".large {position: relative; font-size: 90%;}");
  } else if (navigator.userAgent.indexOf('Firefox') > -1) {  //Firefox
    document.write(".xsmall {font-size: 70%;}");
    document.write(".small {font-size: 75%;}");
    document.write(".medium {font-size: 80%; line-height: 200%;}");
    document.write(".large {font-size: 90%;}");
  } else {
    document.write(".xsmall {font-size: 65%;}");
    document.write(".small {font-size: 75%;}");
    document.write(".medium {font-size: 80%; line-height: 150%;}");
    document.write(".large {font-size: 90%;}");
  }
}
//input
if (navigator.userAgent.indexOf('Firefox') > -1) {
  document.write("#search_form input#search_window { width: 145px; }");
}
document.writeln("--></style>");

