/* JSSS definition for fonts modified by HO */

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, .K12, .K14, .K18, .L14, .K24, .L18, .L24 { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; }');
	document.writeln('.KB10, .KB12, .KB14, .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('.L10G, .L12G, .L14G, .L18G { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; color: #76797c; }');
	document.writeln('.LB14G, .LB24G { font-family: "Hiragino Kaku Gothic Pro"; font-weight: bold; color: #76797c; }');
	document.writeln('.L10W, .L12W, .L14W, .L18W, .L24W { font-family: "Hiragino Kaku Gothic Pro"; font-weight: normal; color: #ffffff; }');
	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: "ƒqƒ‰ƒMƒmŠpƒS Pro W3"; font-weight: normal; }');
	document.writeln('table, td { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W3"; font-weight: normal; }');
	/* Standard fonts */
	document.writeln('.K10, .K12, .K14, .K18, .L14, .K24, .L18, .L24 { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W3"; font-weight: normal; }');
	document.writeln('.KB10, .KB12, .KB14, .KB18, .KB24 { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W6"; font-weight: normal; }');
	document.writeln('.KEB24 { font-family: "ƒqƒ‰ƒMƒmŠpƒS Std W8"; font-weight: normal; }');

	/* For localization */
	document.writeln('.L10G, .L12G, .L14G, .L18G { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W3"; font-weight: normal; color: #76797c; }');
	document.writeln('.LB14G, .LB24G { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W6"; font-weight: normal; color: #76797c; }');
	document.writeln('.L10W, .L12W, .L14W, .L18W, .L24W { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W3"; font-weight: normal; color: #ffffff; }');
	document.writeln('.T13, .INTRO { font-family: "ƒqƒ‰ƒMƒm–¾’© Pro W3"; font-weight: normal; }');
	document.writeln('.TITLE { font-family: "ƒqƒ‰ƒMƒmŠpƒS Pro W6"; font-weight: normal; }');

	/* For Mincho style page */
	document.writeln('.M12, .M14 { font-family: "ƒqƒ‰ƒMƒm–¾’© Pro W3"; font-weight: normal; }');
	document.writeln('.MB12, .MB14, .MB18, .MB24 { font-family: "ƒqƒ‰ƒMƒm–¾’© Pro W6"; font-weight: normal; }');	
	/* Maru gothic styles */
	document.writeln('.R10, .R12, .R14{ font-family: "ƒqƒ‰ƒMƒmŠÛƒS Pro W4"; font-weight: normal; }');
	}
	document.writeln('-->');
	document.writeln('</style>');
}