// ブラウザのバージョンの最初の数字を抜き出す
var b_versionNum = navigator.appVersion.charAt(0);


// ブラウザの名前の最初の文字を抜き出す
var b_Name = navigator.appName.charAt(0);


// 以下、ブラウザ判定をし、ブラウザに合ったCSSを書き出す

document.writeln("<STYLE TYPE='text/css'><!--");

if(navigator.appVersion.indexOf("Mac") > -1) {
if( b_Name == "M") {
// Macintosh InternetExplorerの場合
document.writeln(".jpn10{font-Size:10px; line-height:16px;}");
document.writeln(".jpn12{font-Size:12px; line-height:14px;}");
document.writeln(".jpn10h{font-Size:9px; line-height:13px;}");
document.writeln(".jpn12h{font-Size:12px; line-height:17px;}");
document.writeln(".jpn16h{font-Size:16px; line-height:18px;}");
}
else {
if( b_versionNum < 5 ) {
// Macintosh NETSCAPE 4.xの場合
document.writeln(".jpn10{font-Size:10px; line-height:16px;}");
document.writeln(".jpn12{font-Size:12px; line-height:14px;}");
document.writeln(".jpn10h{font-Size:9px; line-height:13px;}");
document.writeln(".jpn12h{font-Size:12px; line-height:17px;}");
document.writeln(".jpn16h{font-Size:16px; line-height:18px;}");
}
else {
// Macintosh NETSCAPE 6~の場合
document.writeln(".jpn10{font-Size:10px; line-height:16px;}");
document.writeln(".jpn12{font-Size:12px; line-height:14px;}");
document.writeln(".jpn10h{font-Size:9px; line-height:13px;}");
document.writeln(".jpn12h{font-Size:12px; line-height:17px;}");
document.writeln(".jpn16h{font-Size:16px; line-height:18px;}");
}
}
}
else {
if( b_Name == "M") {
// Windows InternetExplorerの場合
document.writeln(".jpn10{font-Size:11px; line-height:17px;}");
document.writeln(".jpn12{font-Size:12px; letter-spacing:1px; line-height:13px;}");
document.writeln(".jpn10h{font-Size:11px; line-height:12px;}");
document.writeln(".jpn12h{font-Size:12px; letter-spacing:1px; line-height:15px;}");
document.writeln(".jpn16h{font-Size:16px; letter-spacing:1px; line-height:17px;}");
}
else {
if( b_versionNum < 5 ) {
// Windows NETSCAPE 4.xの場合
document.writeln(".jpn10{font-Size:11px;}");
document.writeln(".jpn12{font-Size:12px; line-height:13px;}");
document.writeln(".jpn10h{font-Size:11px; line-height:12px;}");
document.writeln(".jpn12h{font-Size:12px; line-height:15px;}");
document.writeln(".jpn16h{font-Size:16px; line-height:17px;}");
}
else {
// Windows NETSCAPE 6~の場合
document.writeln(".jpn10{font-Size:11px;}");
document.writeln(".jpn12{font-Size:12px; letter-spacing:1px; line-height:13px;}");
document.writeln(".jpn10h{font-Size:11px; line-height:12px;}");
document.writeln(".jpn12h{font-Size:12px; letter-spacing:1px; line-height:15px;}");
document.writeln(".jpn16h{font-Size:16px; letter-spacing:1px; line-height:17px;}");
}
}
}

document.writeln("--></STYLE>");

// ここまで本文