/* JSSS definition for fonts */

/* earlymusic-tokyo.comのWebデザインは */
/* アップルデザインスタイルシート2002をもとにMac OS X */
/*ヒラギノフォントファミリー使用環境に最適化しております。 */
/* 詳しくは http://www.apple.co.jp/help/design/index.html をご覧下さい。 */

canUseHiragino=false;
isSafari=false;
if ((navigator.userAgent.indexOf('MSIE 5.12') != -1) ||(navigator.userAgent.indexOf('MSIE 5.2') != -1) || ((navigator.userAgent.indexOf('Mozilla') != -1) && (navigator.userAgent.indexOf('Mac OS X') != -1))) {
	canUseHiragino=true;
	if (navigator.userAgent.indexOf('AppleWebKit') != -1){
		isSafari=true;
	}
}

if(navigator.userAgent.indexOf('MSIE 5.14') != -1){
	if (navigator.plugins) {
		for (i=0; i < navigator.plugins.length; i++ ) {
			if (navigator.plugins[i].name.indexOf("QuickTime") >= 0 && navigator.plugins[i].filename.indexOf('.plugin')!=-1){
				canUseHiragino=true;
			}
		}
	}
}


if(canUseHiragino){
	document.writeln('<style type="text/css">');
	document.writeln('<!--');
	if (isSafari){
	/* Standard elements */
	document.writeln('body { margin: 0px; background-color: #ffffff; font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; }');
	document.writeln('table, td { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; }');

	/* Standard fonts */
	document.writeln('.K10, .K11, .K10M, .G9, .V9, .K12, .G10, .V10, .K14, .G12, .V12, .K18, .L14, .K24, .L18, .L24 { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; }');
	document.writeln('.KB10, .KB10M, .KB12, .KB14, .KB15, .KB16, .KB18, .KB24 { font-family: "Hiragino Kaku Gothic Pro"; font-weight: bold; }');
	document.writeln('.KEB24 { font-family: "Hiragino Kaku Gothic Std"; font-weight: bolder; }');

	/* For localization */
	document.writeln('.G9G, .G10G, .L10G, .L12G, .L14G, .L18G { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; color: #76797c; }');
	document.writeln('.G10W, .L10W, .L12W, .L14W, .L18W, .L24W { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; color: #ffffff; }');
	document.writeln('.T13, .INTRO { font-family: "Hiragino Mincho Pro"; font-weight: normal; }');
	document.writeln('.TITLE { font-family: "Hiragino Kaku Gothic Pro"; font-weight: bold; }');
	
	/* For Mincho style page */
	document.writeln('.M12, .M14 { font-family: "Hiragino Mincho Pro"; font-weight: normal; }');
	document.writeln('.MB12, .MB18, .MB24 { font-family: "Hiragino Mincho Pro"; font-weight: bold; }');

	/* Maru gothic styles */
	document.writeln('.R10, .R12, .R14 { font-family: "Hiragino Maru Gothic Pro"; font-weight: normal; }');
	} else {
	/* Standard elements */
	document.writeln('body { margin: 0px; background-color: #ffffff; font-family: "ヒラギノ角ゴ Pro W3"; font-weight: normal; }');
	document.writeln('table, td { font-family: "ヒラギノ角ゴ Pro W3"; font-weight: normal; }');
	/* Standard fonts */
	document.writeln('.K10, .K11, .K10M, .G9, .V9, .K12, .G10, .V10, .K14, .G12, .V12, .K18, .L14, .K24, .L18, .L24 { font-family: "ヒラギノ角ゴ Pro W3"; font-weight: normal; }');
	document.writeln('.KB10, .KB10M, .KB12, .KB14, .KB15, .KB16, .KB18, .KB24 { font-family: "ヒラギノ角ゴ Pro W6"; font-weight: normal; }');
	document.writeln('.KEB24 { font-family: "ヒラギノ角ゴ Std W8"; font-weight: normal; }');

	/* For localization */
	document.writeln('.G9G, .G10G, .L10G, .L12G, .L14G, .L18G { font-family: "ヒラギノ角ゴ Pro W3"; font-weight: normal; color: #76797c; }');
	document.writeln('.G10W, .L10W, .L12W, .L14W, .L18W, .L24W { font-family: "ヒラギノ角ゴ Pro W3"; font-weight: normal; color: #ffffff; }');
	document.writeln('.T13, .INTRO { font-family: "ヒラギノ明朝 Pro W3"; font-weight: normal; }');
	document.writeln('.TITLE { font-family: "ヒラギノ角ゴ Pro W6"; font-weight: normal; }');

	/* For Mincho style page */
	document.writeln('.M12, .M14 { font-family: "ヒラギノ明朝 Pro W3"; font-weight: normal; }');
	document.writeln('.MB12, .MB14, .MB18, .MB24 { font-family: "ヒラギノ明朝 Pro W6"; font-weight: normal; }');	
	/* Maru gothic styles */
	document.writeln('.R10, .R12, .R14{ font-family: "ヒラギノ丸ゴ Pro W4"; font-weight: normal; }');
	}
	document.writeln('-->');
	document.writeln('</style>');
}
