mac = (navigator.userAgent.indexOf('Mac') != -1)?true:false;
ie = (navigator.userAgent.indexOf('MSIE') != -1)?true:false;
netscape = (navigator.appName.indexOf('Netscape') != -1)?true:false;
ie5 = (navigator.userAgent.indexOf('MSIE 5') != -1)?true:false;
nn6 = (navigator.userAgent.indexOf('Netscape6') != -1)?true:false;

document.write("<STYLE TYPE='text/css'><!--");

if(ie){
	if(mac){
		if(ie5){
			//MacIE5
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:10px;line-height:13px;}");
			document.write(".textxs{font-size:9px;line-height:10px;}");
		}
		else{
			//MacIE4(ただし4.0はline-height無効)
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:10px;line-height:13px;}");
			document.write(".textxs{font-size:9px;line-height:10px;}");
		}
	}
	else{
		//WinIE
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:11px;line-height:14px;}");
			document.write(".textxs{font-size:10px;line-height:12px;}");
	}
}

if(netscape){
	if(nn6){
		if(mac){
			//MacNN6
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:10px;line-height:14px;}");
			document.write(".textxs{font-size:9px;line-height:10px;}");
		}
		else{
			//Mac以外のNN6
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:11px;line-height:14px;}");
			document.write(".textxs{font-size:9px;line-height:10px;}");
		}
	}
	else{
		if(mac){
			//MacNN4
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:10px;line-height:14px;}");
			document.write(".textxs{font-size:9px;line-height:10px;}");
		}
		else{
			//MacNN6,4以外のappName[Netscape]
			document.write(".text{font-size:12px;line-height:16px;}");
			document.write(".texts{font-size:11px;line-height:14px;}");
			document.write(".textxs{font-size:9px;line-height:10px;}");
		}
	}
}
document.write("--></STYLE>");


