var vNum = navigator.appVersion.charAt(0);
var bName = navigator.appName.charAt(0);
var vNum2 = navigator.userAgent;

document.writeln("<STYLE TYPE='text/css'><!--");
if(navigator.appVersion.indexOf("Mac") > -1)
{
  if( bName == "M")
   {
   if( vNum2.match(/MSIE 5.2/) )
    {
      // MAC IE5.2
     document.writeln("h1{font-size:80%;}");
     document.writeln("h2{font-size:80%;}");
     document.writeln("h3{font-size:80%;}");
     document.writeln(".ltx{font-size:110%; line-height:150%}");
     document.writeln(".mtx{font-size:80%; line-height:150%}");
     document.writeln(".stx{font-size:70%; line-height:150%}");
     document.writeln(".l{font-size:110%}");
     document.writeln(".m{font-size:80%}");
     document.writeln(".s{font-size:70%}");
    }
    else
    {
    // MAC IE
    document.writeln("h1{font-size:80%;}");
    document.writeln("h2{font-size:80%;}");
    document.writeln("h3{font-size:80%;}");
    document.writeln(".ltx{font-size:110%; line-height:140%}");
    document.writeln(".mtx{font-size:80%; line-height:140%}");
    document.writeln(".stx{font-size:70%; line-height:140%}");
    document.writeln(".l{font-size:110%}");
    document.writeln(".m{font-size:80%}");
    document.writeln(".s{font-size:70%}");
    }
   }
    else
    {
    if( vNum < 5 )
    {
      // MAC NETSCAPE 4.x
    document.writeln("h1{font-size:120%;}");
    document.writeln("h2{font-size:120%;}");
    document.writeln("h3{font-size:120%;}");
    document.writeln(".ltx{font-size:140%; line-height:160%}");
    document.writeln(".mtx{font-size:120%; line-height:140%}");
    document.writeln(".stx{font-size:100%; line-height:140%}");
    document.writeln(".l{font-size:140%}");
    document.writeln(".m{font-size:120%}");
    document.writeln(".s{font-size:100%}");
    }
    else
    {
      // MAC NETSCAPE 6.x~
     document.writeln("h1{font-size:80%;}");
     document.writeln("h2{font-size:80%;}");
     document.writeln("h3{font-size:80%;}");
     document.writeln(".ltx{font-size:110%; line-height:150%}");
     document.writeln(".mtx{font-size:80%; line-height:150%}");
     document.writeln(".stx{font-size:70%; line-height:150%}");
     document.writeln(".l{font-size:110%}");
     document.writeln(".m{font-size:80%}");
     document.writeln(".s{font-size:70%}");
    }
   }

}
else
{
  if( bName == "M")
  {
    // WIN IE
    document.writeln("h1{font-size:100%;}");
    document.writeln("h2{font-size:100%;}");
    document.writeln("h3{font-size:80%;}");
    document.writeln(".ltx{font-size:100%; line-height:150%;}");
    document.writeln(".mtx{font-size:80%; line-height:150%;}");
    document.writeln(".stx{font-size:70%; line-height:150%;}");
    document.writeln(".l{font-size:100%}");
    document.writeln(".m{font-size:80%}");
    document.writeln(".s{font-size:70%}");
  }
  else
  {
    if( vNum < 5 )
    {
      // WIN NETSCAPE 4.x
    document.writeln("h1{font-size:120%;}");
    document.writeln("h2{font-size:120%;}");
    document.writeln("h3{font-size:105%;}");
    document.writeln(".ltx{font-size:120%; line-height:160%}");
    document.writeln(".mtx{font-size:105%; line-height:150%}");
    document.writeln(".stx{font-size:98%; line-height:150%}");
    document.writeln(".l{font-size:120%}");
    document.writeln(".m{font-size:105%}");
    document.writeln(".s{font-size:98%}");
    }
    else
    {
      // WIN NETSCAPE 6.x~
    document.writeln("h1{font-size:100%;}");
    document.writeln("h2{font-size:100%;}");
    document.writeln("h3{font-size:80%;}");
    document.writeln(".ltx{font-size:100%; line-height:150%}");
    document.writeln(".mtx{font-size:80%; line-height:150%}");
    document.writeln(".stx{font-size:70%; line-height:160%}");
    document.writeln(".l{font-size:100%}");
    document.writeln(".m{font-size:80%}");
    document.writeln(".s{font-size:70%}");
    }
  }
}
 document.writeln("--></STYLE>");

