var vNum = navigator.appVersion.charAt(0);
var bName = navigator.appName.charAt(0);
if (bName =="M" && vNum < 4) Location.herf="errer.html";
if (bName =="N" && vNum < 4)  Location.herf="errer.html";

if(navigator.appVersion.indexOf('Mac') > -1)
{
  if( bName =="M")
  {
    // MAC IE
    document.writeln("<link rel='stylesheet' href='http://www.town.wachi.kyoto.jp/files/style_wie.css' type='text/css'>");

  }

  else{

    if( vNum<5){
      // MAC NETSCAPE 4.x
      document.writeln("<link rel='stylesheet' href='http://www.town.wachi.kyoto.jp/files/style_mnn.css' type='text/css'>");

       }

    else{
      // MAC NETSCAPE 6.x
      document.writeln("<link rel='stylesheet' href='http://www.town.wachi.kyoto.jp/files/style_wie.css' type='text/css'>");

    }
  }
}


else{

  if( bName =="M"){
    // WIN IE
    document.writeln("<link rel='stylesheet' href='http://www.town.wachi.kyoto.jp/files/style_wie.css' type='text/css'>");




  }
  else{
    if( vNum<5){
      // WIN NETSCAPE 4.x
      document.writeln("<link rel='stylesheet' href='http://www.town.wachi.kyoto.jp/files/style_wnn.css' type='text/css'>");


    }
    else{
      // WIN NETSCAPE 6.x
      document.writeln("<link rel='stylesheet' href='http://www.town.wachi.kyoto.jp/files/style_wie.css' type='text/css'>");



    }
  }

}

