var navi_url = "http://www.rohto.co.jp";

//　Get Browser Name
//　Netscape Navigator ->  Netscape
//　Internet Explorer  ->　Explorer
function getBrowserName() {
  var aName  = navigator.appName.toUpperCase();
  var uName  = navigator.userAgent.toUpperCase();
  if (aName.indexOf("NETSCAPE") >= 0)       return "Netscape";
  if (uName.indexOf("OPERA") >= 0)       return "Netscape";
  if (aName.indexOf("MICROSOFT") >= 0)      return "Explorer";
  return "";
  }
//　Get Browser Version
function getBrowserVer() {
  var browser = getBrowserName();
  var version = 0;
  var s = 0;
  var e = 0;
  var appVer  = navigator.appVersion;
  if (browser == "Explorer") {
    appVer  = navigator.userAgent;
    s = appVer.indexOf("MSIE ",0) + 5;
    e = appVer.indexOf(";",s);
    version = eval(appVer.substring(s,e));
    }
  else {
    s = appVer.indexOf(" ",0);
    version = eval(appVer.substring(0,s));
    if (version >= 5) version++;
    }
  return version;
  }
//　Get OS Name
//　Macintosh              　->  MacOS
//　Windows95/98/NT/2000/XP  ->　Windows
function getOS() {
  var uAgent  = navigator.userAgent.toUpperCase();
  if (uAgent.indexOf("MAC") >= 0)           return "MacOS";
  if (uAgent.indexOf("WIN") >= 0)           return "Windows";
  return "";
  }

if(getOS() == "Windows"){
  if(getBrowserName() != "Explorer"){
    document.write('<LINK rel=stylesheet href='+navi_url+'/global/style/base_ns.css type=text/css>');
    document.write('<LINK rel=stylesheet href='+navi_url+'/global/style/rh_ns.css type=text/css>');
    }
  }
else if(getOS() == "MacOS"){
  document.write('<LINK rel=stylesheet href='+navi_url+'/global/style/base_macie.css type=text/css>');
  document.write('<LINK rel=stylesheet href='+navi_url+'/global/style/rh_macie.css type=text/css>');
  }

//　Sub Window
function popUp(url) {
  sealWin=window.open(url,'win','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=500,height=450');
  self.name = "mainWin";
  sealWin.focus();
  }

//　PullDown Menu

Timer = 1;
function Pin(i) {
	var clmenu = new Array(1);
	clmenu[0] = "mes01";
	for(pair=0; pair<1; pair++){
		oElement = document.getElementById(clmenu[pair]);
		oElement.style.display = "none"; 
		}
	clearTimeout(Timer) ;
	oElement = document.getElementById([i]);
	oElement.style.display = "block"; 
	}
function Pout(i) {
	oElement = document.getElementById([i]);
	Timer = setTimeout('oElement.style.display="none"',600);
	}
	
function Pmenu(){
	document.write('<div style="position:relative" align="left">');
	document.write('<div class="position01" id="mes01">');
	document.write('<div class="p_menu01"><a href="'+navi_url+'/global/cn/lycee/index.htm" onmouseout="Pout(\'mes01\')" onmouseover="Pin(\'mes01\')">乐敦 Lycée</a></div>');
	document.write('<div class="p_menu01"><a href="'+navi_url+'/global/cn/zi/index.htm" onmouseout="Pout(\'mes01\')" onmouseover="Pin(\'mes01\')">乐敦 Zi</a></div>');
	document.write('<div class="p_menu01"><a href="'+navi_url+'/global/cn/c3/index.htm" onmouseout="Pout(\'mes01\')" onmouseover="Pin(\'mes01\')">乐敦 C Cube</a></div>');
	document.write('<!--// <div class="p_menu01"><a href="'+navi_url+'/global/cn/hadalabo/index.htm" onmouseout="Pout(\'mes01\')" onmouseover="Pin(\'mes01\')">肌研</a></div> //-->');
	document.write('</div>');
	document.write('</div>');
	}
