/*
============================================================
	font size
============================================================
*/
var _agent = navigator.userAgent.toLowerCase();
document.write ();

var _win = (_agent.indexOf('win') != -1);
var _mac = (_agent.indexOf('mac') != -1);

var _major = parseInt(navigator.appVersion);
var _minor = parseFloat(navigator.appVersion);

var _ns = ((_agent.indexOf('mozilla') != -1) && (_agent.indexOf('compatible') == -1));
var _ns2 = (_ns && (_major == 2));
var _ns3 = (_ns && (_major == 3));
var _nav = (_ns && ((_agent.indexOf(';nav') != -1) || (_agent.indexOf('; nav') != -1)));
var _nav3 = (_ns && _nav && (_major == 3));
var _nav4 = (_ns && _nav && (_major == 4));
var _ns4 = (_ns && (_major == 4));
var _ns4up = (_ns && (_major >= 4));
var _ns6 = (_ns && (_major == 5));
var _ns6up = (_ns && (_major >= 5));
var _ns61 = (_ns6 && (_agent.indexOf('netscape6/6.1') != -1));
var _ns62 = (_ns6 && (_agent.indexOf('netscape6/6.2') != -1));
var _ns7b1 = (_ns6 && (_agent.indexOf('netscape/7.0b1') != -1));

/* mozilla */
var _moz = (_ns6 && (_agent.indexOf('netscape') == -1));

/* internet explorer */
var _ie = (_agent.indexOf('msie') != -1);
var _ie3 = (_ie && (_major < 4));
var _ie4 = (_ie && (_major == 4) && (_agent.indexOf('msie 5') == -1));
var _ie4up = (_ie && (_major >= 4));
var _ie45 = (_ie && (_minor == 4.5));
var _ie5 = (_ie && (_major == 4) && (_agent.indexOf('msie 5') != -1));
var _ie5up = (_ie && !_ie3 && !_ie4);
var _ie6 = (_ie && (_major == 4) && (_agent.indexOf('msie 6') != -1));

/* america online */
var _aol = (_agent.indexOf('aol') != -1);
var _aol3 = (_aol && _ie3);
var _aol4 = (_aol && _ie4);

/* opera */
var _opera = (_agent.indexOf('opera') != -1);
var _opera5 = (_opera && (_major == 5));
var _opera6 = (_opera && (_major == 6));
var _opera7 = (_opera && (_major == 7));
var _opera8 = (_opera && (_major == 8));
var _opera9 = (_opera && (_major == 9));

/* iCab (mac only) */
var _icab = (_agent.indexOf('icab') != -1);

/* web tv */
var _webtv = (_agent.indexOf('webtv') != -1);

/* omniweb */
var _omniweb = (_agent.indexOf('omniweb') != -1);

/* cookie path */
var p = "/";

var textSize = getCookie ("totalSize") * 2;
//alert(textSize);
var fontSize = new Array ();

document.open ();
if (_win) {
	flag = "win ";
	if (_ns6) {
			flag += "ns6";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 26;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: Arial, sans-serif; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: Arial, sans-serif; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: Arial, sans-serif; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: Arial, sans-serif; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: Arial, sans-serif; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: Arial, sans-serif; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: Arial, sans-serif; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: Arial, sans-serif; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: ＭＳ ゴシック; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: ＭＳ ゴシック; font-size: " + fontSize[6] + "px; line-height: 110%; }")
			document.write ("--></style>");
	} else if (_ns4 || _ns4up || _nav) {
			flag += "ns4";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 26;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: Arial, sans-serif; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: Arial, sans-serif; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: Arial, sans-serif; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: Arial, sans-serif; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: Arial, sans-serif; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: Arial, sans-serif; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: Arial, sans-serif; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: Arial, sans-serif; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: ＭＳ ゴシック; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: ＭＳ ゴシック; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
			//alert("ns4");
	} else if (_opera) {
			flag += "opera";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 26;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: ＭＳＰ ゴシック, sans-serif; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: ＭＳ ゴシック; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: ＭＳ ゴシック; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
			//alert("opera");
		} else if (_ie4 || _ie4up || _ie5 || _ie5up) {
			flag += "ie";
			fontSize[1] = 9;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 26;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: Arial, ＭＳ ゴシック, sans-serif; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: ＭＳ ゴシック; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: ＭＳ ゴシック; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
	} else {
		flag = _poor + ' browser ';
		//alert(flag);
	}
} else if (_mac) {
	flag = "mac ";
	if (_ns6) {
			flag += "ns6";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 24;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[5] + "px; line-height: 110%; }")
			document.write (".ntxt6j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[6] + "px; line-height: 110%; }")
			document.write ("--></style>");
		//alert(_rich);
	} else if (_ns4 || _ns4up || _nav) {
			flag += "ns4";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 24;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
	} else if (_ie5 || _ie5up) {
			flag += "ie5";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 24;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
	} else if (_ie4 || _ie45 || _ie4up) {
			flag += "ie4";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 24;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
		alert(_poor + ' browser ');
	} else if (_ns2 || _ns3 || _ie3) {
		flag = _poor + ' browser ';
		alert(flag);
	} else if (_opera) {
			flag += "opera";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 14;
			fontSize[4] = 16;
			fontSize[5] = 24;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
	} else if (_icab) {
			flag += "icab";
			fontSize[1] = 10;
			fontSize[2] = 12;
			fontSize[3] = 15;
			fontSize[4] = 16;
			fontSize[5] = 24;
			fontSize[6] = 14;
			setSize ();
			document.write ("<style type='text/css'><!--")
			document.write (".txt1j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; line-height: 150%; }")
			document.write (".txt2j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 135%; }")
			document.write (".txt3j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 135%; }")
			document.write (".txt4j  { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 135%; }")
			document.write (".ntxt1j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[1] + "px; }")
			document.write (".ntxt2j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[2] + "px; line-height: 110%; }")
			document.write (".ntxt3j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[3] + "px; line-height: 110%; }")
			document.write (".ntxt4j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[4] + "px; line-height: 100%; }")
			document.write (".ntxt5j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[5] + "px; line-height: 100%; }")
			document.write (".ntxt6j { font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Osaka'; font-size: " + fontSize[6] + "px; line-height: 100%; }")
			document.write ("--></style>");
	} else {
		flag = _poor + ' browser ';
		alert (flag);
	}
} else {
	flag = _poor + ' platform ';
}
document.close ();


//	テキストサイズ変更
function changeTxt (changeStatus) {
	var changeSize = getCookie ("totalSize");

	if (changeStatus == "up") {
		changeSize ++;

	}else if (changeStatus == "down") {
		changeSize --;

	}else if (changeStatus == "reset") {
		changeSize = 0;
	}

/*
	limitDay = 30;
	t = new Date;
	t.setTime(t.getTime() + limitDay * 24 * 60 * 60 * 1000);
	document.cookie = "totalSize=" + changeSize + '; path=' + p + '; expires=' + t.toGMTString();
*/
	document.cookie = "totalSize=" + changeSize + '; path=' + p;

	if (document.all) {
		var coll = document.all;
	} else if (document.getElementsByTagName ("*")) {
		var coll = document.getElementsByTagName ("*");
	} else {
		location.reload();
		return;
	}

	var chgFontSize = new Array ();
	for(var i = 1; i <= 6; i ++) {
		if (changeStatus == "reset") {
			chgFontSize[i] = fontSize[i] - textSize;
		} else {
			chgFontSize[i] = fontSize[i] - textSize + changeSize * 2;
			if (chgFontSize[i] < 2) {
				chgFontSize[i] = 2;
			}
		}
	}

	for (var i = 0, j = coll.length; i < j; i ++){
		var txtClass = coll[i].className;
		if (txtClass) {
			if (txtClassArray = txtClass.match (/txt(\d)j/)) {
				if (txtClassArray[1] <= 6) {
					coll[i].style.fontSize = chgFontSize[txtClassArray[1]] + "px";
				}
			}
		}
	}
}


//	Cookieの値取得
function getCookie (key) {
	tmp = document.cookie + "; path=" + p;
	tmp1 = tmp.indexOf (key, 0);
	if (tmp1 != -1) {
		tmp = tmp.substring (tmp1, tmp.length);
		start = tmp.indexOf ("=", 0) + 1;
		end = tmp.indexOf (";", start);
		return (unescape (tmp.substring (start, end)));
	} else {
		return ("");
	}
}


// フォントサイズ決定
function setSize () {
	for (i = 1; i <= 6; i ++) {
		fontSize[i] += textSize;
		if (fontSize[i] < 2) {
			fontSize[i] = 2;
		}
	}
}
