/* ブラウザ、バージョン、OS判定 */
apname = navigator.appName.charAt(0);
ver = navigator.appVersion.charAt(0);
plat = navigator.platform.charAt(0);
if(navigator.appName.indexOf("Netscape")>=0){
  apname="N";
}
if(navigator.appName.indexOf("Microsoft Internet Explorer")>=0){
  apname="M";
}
if(navigator.userAgent.toLowerCase().indexOf("safari")>=0){
  apname="S";
}

/* 暫定値 */
unit = "px";
strLarge = 12;
strLarge2 = 14;
strLarge3 = 20;
strSmall = 12;
strSmall2 = 10;
strSmall3 = 10;
strTD = 12;

/* ブラウザ別にセット */
// Mac Microsoft IE 4.0以上 
	if((plat == "M")&&(apname == "M")&&(ver >= 4)){
	}
	
// Mac Netscape 4.0以上
	if((plat == "M")&&(apname == "N")&&(ver >= 4)){
	}
	
// Mac Safari
	if((plat == "M")&&(apname == "S")){
	}
	
// Win Microsoft IE 4.0以上
	if((plat == "W")&&(apname == "M")&&(ver >= 4)){
		unit = "pt";
		strLarge =11;
		strLarge2 = 12;
		strLarge3 = 18;
		strSmall = 10;
		strSmall2 = 9;
		strSmall3 = 8;
		strTD = 10;
	}
// Win Netscape 4.0以上
	if((plat == "W")&&(apname == "N")&&(ver >= 4)){
		unit = "pt";
		strLarge =11;
		strLarge2 = 12;
		strLarge3 = 18;
		strSmall = 10;
		strSmall2 = 9;
		strSmall3 = 8;
		strTD = 10;
	}
	
/* 書き出し */
document.write("<style type='text/css'>\n");
//document.write("body,td,th {font-family: \"ＭＳ Ｐゴシック\", Osaka, \"ヒラギノ角ゴ Pro W3\";}\n");
document.write(".large { font-size: " + strLarge + unit +";}\n");
document.write(".large2 { font-size: " + strLarge2 + unit +";}\n");
document.write(".large3 { font-size: " + strLarge3 + unit +";}\n");
document.write(".small { font-size: " + strSmall + unit +";}\n");
document.write(".smallT { font-size: " + strSmall + "pt;font-family: 'ＭＳ ゴシック', 'Osaka－等幅';}\n");

document.write(".small2 { font-size: " + strSmall2 + unit +";}\n");
document.write(".small3 { font-size: " + strSmall3 + unit +";}\n");
document.write("TD { font-size: " + strTD + "pt;}\n");

document.write("</style>\n");
document.close();

/*
フォントサイズを追加する(small3を追加)
１．暫定値に適当な変数を追加する(strSmall3 = 8;)
２．ブラウザ別に１で定義した変数を追加する。追加しない場合は暫定値が採用される。
３．書き出しに書き出し文を追加する。場所はスタイルの閉じタグ直前。
	(document.write("SPAN.small3 { font-size: " + strSmall3 + unit +";}\n");)
*/
