var app = navigator.appName.charAt(0);
var browser = navigator.appName;
var version = navigator.appVersion;
var versionNum = parseFloat(version);
if (navigator.appVersion.indexOf('Mac',0) != -1) {
	if (app == "N" && versionNum < 5) {
		document.write('<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="../css/macnn4.css">');
	} else {
		document.write('<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="../css/ie.css">');
	}
} else if (navigator.appVersion.indexOf('Win',0) != -1) {
	if (app == "N" && versionNum < 5) {
		document.write('<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="../css/nn4.css">');
	} else {
		document.write('<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="../css/ie.css">');
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);