//OSを判定しMacintoshの場合
var styleno = 0;
if(navigator.appVersion.indexOf('Mac') >0 || navigator.appVersion.indexOf('PPC')> 0){
	//ブラウザを判定しNetscapeの場合
	if(navigator.appName.charAt(0) == "N"){
		//Versionを判定し、NN4.0xまたはNC4.xの場合
		if(navigator.appVersion.charAt(0) >=4 && navigator.appVersion.charAt(0) < 5){
		var styleno = 'MN4';
		}
		//Versionを判定し、Netscape6以上の場合
		else if(navigator.appVersion.charAt(0) >=5){
		var styleno = 'MN6';
		}
	}
	//ブラウザを判定しInternet Explorerで且つ3.x以上の場合
	else if(navigator.appName.charAt(0) == "M" && navigator.appVersion.charAt(0) >=2){
		var styleno = 'MI';
	}
}
//OSを判定しWindowsの場合で且つ、Netspaceの場合
else if(navigator.appName.charAt(0) == "N"){
		//Versionを判定し、NN4.0xまたはNC4.xの場合
		if(navigator.appVersion.charAt(0) >=4 && navigator.appVersion.charAt(0) < 5){
		var styleno = 'WN4';
		}
		//Versionを判定し、Netscape6以上の場合
		else if(navigator.appVersion.charAt(0) >=5){
		var styleno = 'WN6';
		}
	}
//ブラウザを判定しInternet Explorerの場合
else if(navigator.appName.charAt(0) == "M" && navigator.appVersion.charAt(0) >=2){
		var styleno = 'WI';
}

//ブラウザ毎のスタイルシート出力
document.write('<STYLE TYPE="text/css"><!--');

//Macintosh+Netscape 4.0x or Netscape Communicator 4.x
if(styleno == 'MN4'){
document.write('.body2s { font-size: 9px; font-style: normal; line-height: 10px }');
document.write('.body2 { font-size: 9px; font-style: normal; line-height: 12px }');
document.write('.body3n { font-size: 12px; font-style: normal; line-height: 12px }');
document.write('.body3{ font-size: 12px; font-style: normal; line-height: 14px }');
document.write('.body3h{ font-size: 12px; font-style: normal; line-height: 14px; font-weight:bold }');
document.write('.body4s { font-size: 14px; font-style: normal; line-height: 16px }');
document.write('.body4 { font-size: 14px; font-style: normal; line-height: 21px }');
document.write('.body4h { font-size: 14px; font-style: normal; line-height: 21px; font-weight:bold }');
}

//Macintosh+Netscape 6 upper
else if(styleno == 'MN6'){
document.write('.body2s { font-size: 9px; font-style: normal; line-height: 11px }');
document.write('.body2 { font-size: 9px; font-style: normal; line-height: 12px }');
document.write('.body3n { font-size: 12px; font-style: normal; line-height: 12px }');
document.write('.body3{ font-size: 12px; font-style: normal; line-height: 14px }');
document.write('.body3h{ font-size: 12px; font-style: normal; line-height: 14px; font-weight:bold }');
document.write('.body4s { font-size: 14px; font-style: normal; line-height: 16px }');
document.write('.body4 { font-size: 14px; font-style: normal; line-height: 21px }');
document.write('.body4h { font-size: 14px; font-style: normal; line-height: 21px; font-weight:bold }');
}

//Macintosh+Internet Explorer 3.x upper
else if(styleno == 'MI'){
document.write('.body2s { font-size: 9px; font-style: normal; line-height: 10px }');
document.write('.body2 { font-size: 9px; font-style: normal; line-height: 12px }');
document.write('.body3n { font-size: 12px; font-style: normal; line-height: 12px }');
document.write('.body3{ font-size: 12px; font-style: normal; line-height: 14px }');
document.write('.body3h{ font-size: 12px; font-style: normal; line-height: 14px; font-weight:bold }');
document.write('.body4s { font-size: 14px; font-style: normal; line-height: 16px }');
document.write('.body4 { font-size: 14px; font-style: normal; line-height: 21px }');
document.write('.body4h { font-size: 14px; font-style: normal; line-height: 21px; font-weight:bold }');
document.write('.layout {position:absolute;top:0px;left:0px}');
}
//Windows+Netscape 4.0x or Netscape Communicator 4.x
else if(styleno == 'WN4'){
document.write('.body2s { font-size: 11px; font-style: normal; line-height: 11px }');
document.write('.body2 { font-size: 11px; font-style: normal; line-height: 13px }');
document.write('.body3n { font-size: 12px; font-style: normal; line-height: 12px }');
document.write('.body3{ font-size: 13px; font-style: normal; line-height: 15px }');
document.write('.body3h{ font-size: 13px; font-style: normal; line-height: 15px; font-weight:bold }');
document.write('.body4s { font-size: 15px; font-style: normal; line-height: 17px }');
document.write('.body4 { font-size: 15px; font-style: normal; line-height: 22px }');
document.write('.body4h { font-size: 15px; font-style: normal; line-height: 22px; font-weight:bold }');
}

//Windows+Netscape 6 upper
else if(styleno == 'WN6'){
document.write('.body2s { font-size: 11px; font-style: normal; line-height: 11px }');
document.write('.body2 { font-size: 11px; font-style: normal; line-height: 13px }');
document.write('.body3n { font-size: 12px; font-style: normal; line-height: 12px }');
document.write('.body3{ font-size: 13px; font-style: normal; line-height: 15px }');
document.write('.body3h{ font-size: 13px; font-style: normal; line-height: 15px; font-weight:bold }');
document.write('.body4s { font-size: 15px; font-style: normal; line-height: 17px }');
document.write('.body4 { font-size: 15px; font-style: normal; line-height: 22px }');
document.write('.body4h { font-size: 15px; font-style: normal; line-height: 22px; font-weight:bold }');
}

//Windows+Internet Explorer 3.x upper
else if(styleno == 'WI'){
document.write('.body2s { font-size: 10px; font-style: normal; line-height: 11px }');
document.write('.body2 { font-size: 10px; font-style: normal; line-height: 13px }');
document.write('.body3n { font-size: 12px; font-style: normal; line-height: 12px }');
document.write('.body3{ font-size: 13px; font-style: normal; line-height: 16px }');
document.write('.body3h{ font-size: 13px; font-style: normal; line-height: 15px; font-weight:bold }');
document.write('.body4 { font-size: 15px; font-style: normal; line-height: 17px }');
document.write('.body4s { font-size: 15px; font-style: normal; line-height: 22px }');
document.write('.body4h { font-size: 15px; font-style: normal; line-height: 22px; font-weight:bold }');
}
document.write('.acener { text-align:center }');
document.write('.vmiddle { vertical-align:middle }');
document.write('.aleft { text-align:left; vertical-align:middle}');
document.write('.avcener { text-align:center; vertical-align:middle }');
document.write('.i03 { vertical-align:middle }');
document.write('//--></STYLE>');

//サブメニューのマウスオンロールオーバー
function  swImg(iName,str){
	document.images[iName].src = str;
	}

