//　Macintosh           　->  MacOS
//　Windows95/98/NT/2000/XP  ->　Windows
//　UNIX                  ->　UNIX

function getOSType() {
    var uAgent  = navigator.userAgent.toUpperCase();
    if (uAgent.indexOf("MAC") >= 0) return "MacOS";
    if (uAgent.indexOf("WIN") >= 0) return "Windows";
    if (uAgent.indexOf("X11") >= 0) return "UNIX";
    return "";
}

//　Netscape Navigator ->  Netscape
//　Internet Explorer  ->　Explorer
//　Safari  ->　Safari
//　Opera  ->　Opera

function getBrowserName() {
    var aName  = navigator.appName.toUpperCase();
    var uName = navigator.userAgent.toUpperCase();
    if (uName.indexOf("SAFARI") >= 0)  return "Safari";
    if (uName.indexOf("OPERA") >= 0)  return "Opera";
    if (aName.indexOf("NETSCAPE") >= 0)  return "Netscape";
    if (aName.indexOf("MICROSOFT") >= 0) return "Explorer";
    return "";
}

function getBrowserVersion() {
	var browser = getBrowserName();
	var version = 0;
	var s = 0;
	var e = 0;
	var appVer  = navigator.appVersion;
	var uName  = navigator.userAgent.toUpperCase();
	if (browser == "Safari") {
		version = eval(appVer.substring(0,3)) - 4;
	}
	if (browser == "Opera") {
		s = uName.indexOf("OPERA ",0) + 6;
		e = uName.indexOf(" ",s);
		version = eval(uName.substring(s,e));
	}
	if (browser == "Netscape") {
		s = appVer.indexOf(" ",0);
		version = eval(appVer.substring(0,s));
		if (version >= 5) version++;
	}
	if (browser == "Explorer") {
		appVer  = navigator.userAgent;
		s = appVer.indexOf("MSIE ",0) + 5;
		e = appVer.indexOf(";",s);
		version = eval(appVer.substring(s,e));
	}
	return version;
}



document.writeln("<STYLE TYPE='text/css'><!--");
os      = getOSType();
browser = getBrowserName();
version = getBrowserVersion();
if(os == "MacOS"){
	if(browser == "Explorer"){
		// MAC IE
 	//document.writeln("input, select, textarea{ font-size:x-medium; }");
		document.writeln(".j10 { font-Size:11px; line-height:16px }");
		document.writeln(".j10n { font-Size:11px;line-height:11px }");
		document.writeln(".j12 { font-Size:12px; line-height:16px }");
		document.writeln(".j12n { font-Size:12px; line-height:12px }");
		document.writeln(".j12t { font-Size:12px; line-height:20px }");
		
	 document.writeln("A.j10_gr_or { font-Size:11px;line-height:11px; text-decoration: none }");
 	document.writeln("A.j10_gr_or:link { color: #666666; }");
 	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	 document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
		document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
 	document.writeln("A.j12_gy_or:link { color: #666666; }");
 	document.writeln("A.j12_gy_or:visited { color: #666666; }");
	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
		document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
 	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
 	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	} else if(browser == "Netscape") {
		if(version < 5) {
			// MAC NETSCAPE 4.x
			document.writeln(".j10 {font-Size:10px; line-height:16px}"); 
			document.writeln(".j10n {font-Size:10px;line-height:13px}");
			document.writeln(".j12 {font-Size:12px; line-height:15px}");
			document.writeln(".j12n {font-Size:12px; line-height:13px}");
			document.writeln(".j12t {font-Size:12px; line-height:18px}");
			
	  document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");

		} else {
			// MAC NETSCAPE 6.x以上
			document.writeln(".j10 { font-Size:10px; line-height:150%; }");
			document.writeln(".j10n { font-Size:10px; line-height:110%;}");
			document.writeln(".j12 { font-Size:12px; line-height:130%; }");
			document.writeln(".j12n { font-Size:12px; line-height:120%; }");
			document.writeln(".j12t { font-Size:12px; line-height:150%; }");
			
	  document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	  document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
 	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
 	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
		}
		
 } else if(browser == "Safari") {
			// MAC NETSCAPE 6.xと同様
			document.writeln(".j10 { font-Size:10px; line-height:150%; }");
			document.writeln(".j10n { font-Size:10px; line-height:110%;}");
			document.writeln(".j12 { font-Size:12px; line-height:130%; }");
			document.writeln(".j12n { font-Size:12px; line-height:120%; }");
			document.writeln(".j12t { font-Size:12px; line-height:150%; }");
			
	  document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	  document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
 	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
 	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
				
	} else if (browser == "Opera") {
				// MAC NETSCAPE 6.xと同様
			document.writeln(".j10 { font-Size:10px; line-height:150%; }");
			document.writeln(".j10n { font-Size:10px; line-height:110%;}");
			document.writeln(".j12 { font-Size:12px; line-height:130%; }");
			document.writeln(".j12n { font-Size:12px; line-height:120%; }");
			document.writeln(".j12t { font-Size:12px; line-height:150%; }");
			
	 	document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	  document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
 	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
 	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
 } else {
    //その他ブラウザ NETSCAPE 6.xと同様
			document.writeln(".j10 { font-Size:10px; line-height:150%; }");
			document.writeln(".j10n { font-Size:10px; line-height:110%;}");
			document.writeln(".j12 { font-Size:12px; line-height:130%; }");
			document.writeln(".j12n { font-Size:12px; line-height:120%; }");
			document.writeln(".j12t { font-Size:12px; line-height:150%; }");
			
			document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	  document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
 	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
 	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
	}
	
} else {
	if(browser == "Explorer"){
		// WIN IE
		document.writeln(".j10 { font-Size:11px; line-height:16px }");
		document.writeln(".j10n { font-Size:11px;line-height:13px }");
		document.writeln(".j12 { font-Size:12px; line-height:15px; letter-spacing:1px }");
		document.writeln(".j12n { font-Size:12px; line-height:14px }");
		document.writeln(".j12t { font-Size:12px; line-height:20px }");
		
	 document.writeln("A.j10_gr_or { font-Size:11px;line-height:13px; text-decoration: none }");
 	document.writeln("A.j10_gr_or:link { color: #666666; }");
 	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	 document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
		document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
 	document.writeln("A.j12_gy_or:link { color: #666666; }");
 	document.writeln("A.j12_gy_or:visited { color: #666666; }");
	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
		document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
 	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
 	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
	} else {
		if(version < 5) {
			// WIN NETSCAPE 4.x
			document.writeln(".j10n { font-Size:x-small; line-height:110%;}");
			document.writeln(".j10 { font-Size:x-small; line-height:150%; }");
			document.writeln(".j12 { font-Size:small; line-height:130%; }");
			document.writeln(".j12L { font-Size:small; line-height:150%; }");
			document.writeln(".j14 { font-Size:medium; line-height:150%; }");
			
			document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	  document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
 	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
 	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
		} else {
			// WIN NETSCAPE 6.x~
			document.writeln(".j10 { font-Size:10px; line-height:150%; }");
			document.writeln(".j10n { font-Size:10px; line-height:110%;}");
			document.writeln(".j12 { font-Size:12px; line-height:130%; }");
			document.writeln(".j12n { font-Size:12px; line-height:120%; }");
			document.writeln(".j12t { font-Size:12px; line-height:150%; }");
			
			document.writeln("A.j10_gr_or { font-Size:10px;line-height:11px; text-decoration: none }");
  	document.writeln("A.j10_gr_or:link { color: #666666; }");
  	document.writeln("A.j10_gr_or:visited { color: #666666; }");
	  document.writeln("A.j10_gr_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gy_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gy_or:link { color: #666666; }");
  	document.writeln("A.j12_gy_or:visited { color: #666666; }");
 	 document.writeln("A.j12_gy_or:hover { color: #FF9900; text-decoration: underline }");
		
	 	document.writeln("A.j12_gr_or { font-Size:12px;line-height:16px; text-decoration: none }");
  	document.writeln("A.j12_gr_or:link { color: #99CC00; }");
  	document.writeln("A.j12_gr_or:visited { color: #99CC00; }");
 	 document.writeln("A.j12_gr_or:hover { color: #FF9900; text-decoration: underline }");
		}
	}
}
	
 document.writeln("--></STYLE>");

