/* ブラウザ、バージョン、OS判定 */
apname = navigator.appName.charAt(0);
ver = navigator.appVersion.charAt(0);
plat = navigator.platform.charAt(0);

/* 暫定値 */
strMedium = "12pt;";
strLarge = "14pt;";
strLarge2 = "18pt;";
strSmall = "10pt;"
strBody = strMedium;
strTD = strMedium;
strHeight = "105%;";
/* ブラウザ別にセット */
// Mac Microsoft IE 4.0以上 
	if((plat == "M")&&(apname == "M")&&(ver >= 4)){
	}
	
// Mac Netscape 4.0以上
	if((plat == "M")&&(apname == "N")&&(ver >= 5)){
	}
	
// Win Microsoft IE 4.0以上
	if((plat == "W")&&(apname == "M")&&(ver >= 4)){
		strMedium = "x-small;";
		strLarge = "small;";
		strLarge2 = "medium;";
		strSmall = "xx-small;"
		strBody = strMedium;
		strTD = strMedium;
		strHeight = "110%;";

	}
// Win Netscape 4.0以上
	if((plat == "W")&&(apname == "N")&&(ver >= 6)){
		strMedium = "small;";
		strLarge = "medium;";
		strLarge2 = "large;";
		strSmall = "x-small;"
		strBody = strMedium;
		strTD = strMedium;
		strHeight = "110%;";
	}else {
		if((plat == "W")&&(apname == "N")&&(ver >= 4)){
			strMedium = "small;";
			strLarge = "medium;";
			strLarge2 = "medium;";
			strSmall = "x-small;"
			strBody = strMedium;
			strTD = strMedium;
			strHeight = "110%;";
		}
	}
	
/* 書き出し */
document.write("<style type='text/css'>\n");
document.write("BODY { color: '#000000';\n");
document.write(" font-size: " + strBody + "}\n");
document.write("TD { font-size: " + strTD + "}\n");

document.write(".small { line-height: " + strHeight + " font-size: " + strSmall + "}\n");
document.write(".large { line-height: " + strHeight + " font-size: " + strLarge + "}\n");
document.write(".large2 { line-height: " + strHeight + " font-size: " + strLarge2 + "}\n");

document.write("</style>\n");
document.close();

/*
フォントサイズを追加する(small3を追加)
１．暫定値に適当な変数を追加する(strSmall3 = 8;)
２．ブラウザ別に１で定義した変数を追加する。追加しない場合は暫定値が採用される。
３．書き出しに書き出し文を追加する。場所はスタイルの閉じタグ直前。
	(document.write("SPAN.small3 { font-size: " + strSmall3 + "pt;}\n");)
*/
