// JavaScript Document
// JavaScript Document

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function mmLoadMenus() {
  if (window.mm_menu_1201134021_0) return;
    window.mm_menu_1201134021_0 = new Menu("root",76,18,"",12,"","","","","left","middle",0,0,100,-5,7,true,false,true,0,true,true);
  mm_menu_1201134021_0.addMenuItem('<table border="0" cellspacing="0" cellpadding="0" class="menumargin"><tr><td><a href="/e/company/index.html"><img src="/images/menu/e01/e01.gif" alt="Corporate Vision" width="148" height="43" border="0" id="Image6" onMouseOver="this.src=\'/images/menu/e01/e01r.gif\'"  onMouseOut="this.src=\'/images/menu/e01/e01.gif\'"></a></td></tr><tr><td><a href="/e/company/outline.html"><img src="/images/menu/e01/e02.gif" alt="Corporate Outline" width="148" height="26" border="0" id="Image7" onMouseOver="this.src=\'/images/menu/e01/e02r.gif\'"  onMouseOut="this.src=\'/images/menu/e01/e02.gif\'"></a></td></tr><tr><td><a href="/e/company/organization.html"><img src="/images/menu/e01/e03.gif" alt="Organaization" width="148" height="26" border="0" id="Image88" onMouseOver="this.src=\'/images/menu/e01/e03r.gif\'"  onMouseOut="this.src=\'/images/menu/e01/e03.gif\'"></a></td></tr><tr><td><a href="/e/company/history.html"><img src="/images/menu/e01/e04.gif" alt="History" width="148" height="26" border="0" id="Image8" onMouseOver="this.src=\'/images/menu/e01/e04r.gif\'"  onMouseOut="this.src=\'/images/menu/e01/e04.gif\'"></a></td></tr><tr><td><a href="/e/company/map/index.html"><img src="/images/menu/e01/e05.gif" alt="Location" width="148" height="36" border="0" id="Image9" onMouseOver="this.src=\'/images/menu/e01/e05r.gif\'"  onMouseOut="this.src=\'/images/menu/e01/e05.gif\'"></a></td></tr></table>',"location='a'");
   mm_menu_1201134021_0.hideOnMouseOut=true;
   mm_menu_1201134021_0.bgColor='';
   mm_menu_1201134021_0.menuBorder=0;
   mm_menu_1201134021_0.menuLiteBgColor='';
   mm_menu_1201134021_0.menuBorderBgColor='';
   
    window.mm_menu_1201142916_0 = new Menu("root",76,18,"",12,"","","","","left","middle",0,0,100,-5,7,true,false,true,0,true,true);
  mm_menu_1201142916_0.addMenuItem('<table border="0" cellspacing="0" cellpadding="0" class="menumargin"><tr><td><a href="/e/services/index.html"><img src="/images/menu/e03/e01.gif" alt="Service Outline" width="148" height="39" border="0" id="Image13" onMouseOver="this.src=\'/images/menu/e03/e01r.gif\'"  onMouseOut="this.src=\'/images/menu/e03/e01.gif\'"></a></td></tr><tr><td><a href="/e/services/index02.html"><img src="/images/menu/e03/e02.gif" alt="Service Menu" width="148" height="36" border="0" id="Image131" onMouseOver="this.src=\'/images/menu/e03/e02r.gif\'"  onMouseOut="this.src=\'/images/menu/e03/e02.gif\'"></a></td></tr></table>');
   mm_menu_1201142916_0.hideOnMouseOut=true;
   mm_menu_1201142916_0.bgColor='#555555';
   mm_menu_1201142916_0.menuBorder=0;
   mm_menu_1201142916_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1201142916_0.menuBorderBgColor='#777777';
      
  window.mm_menu_1201143039_0 = new Menu("root",76,18,"",12,"","","","","left","middle",0,0,100,-5,7,true,false,true,0,true,true);
  mm_menu_1201143039_0.addMenuItem('<table border="0" cellspacing="0" cellpadding="0" class="menumargin"><tr><td><a href="/cgi-bin/eworks/esearch.cgi"><img src="/images/menu/e02/e01.gif" alt="ProjectSearch" width="182" height="43" border="0" id="Image14" onMouseOver="this.src=\'/images/menu/e02/e01r.gif\'"  onMouseOut="this.src=\'/images/menu/e02/e01.gif\'"></a></td></tr><tr><td><a href="/cgi-bin/eworks/esearch.cgi?Mode=SearchList&Type=RetrievalApplication&RetrievalApplication=2"><img src="/images/menu/e02/e02.gif" alt="受賞プロジェクト" width="182" height="26" border="0" id="Image142" onMouseOver="this.src=\'/images/menu/e02/e02r.gif\'"  onMouseOut="this.src=\'/images/menu/e02/e02.gif\'"></a></td></tr><tr><td><a href="/cgi-bin/eworks/esearch.cgi?Mode=SearchList&Type=RetrievalApplication&RetrievalApplication=3"><img src="/images/menu/e02/e04.gif" alt="Marunouchi Project" width="182" height="26" border="0" id="Image143" onMouseOver="this.src=\'/images/menu/e02/e04r.gif\'"  onMouseOut="this.src=\'/images/menu/e02/e04.gif\'"></a></td></tr><tr><td><a href="/cgi-bin/eworks/esearch.cgi?Mode=SearchList&Type=RetrievalApplication&RetrievalApplication=4"><img src="/images/menu/e02/e05.gif" alt="Projects in Progress" width="182" height="36" border="0" id="Image144" onMouseOver="this.src=\'/images/menu/e02/e05r.gif\'"  onMouseOut="this.src=\'/images/menu/e02/e05.gif\'"></a></td></tr></table>');
   mm_menu_1201143039_0.hideOnMouseOut=true;
   mm_menu_1201143039_0.bgColor='#555555';
   mm_menu_1201143039_0.menuBorder=0;
   mm_menu_1201143039_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1201143039_0.menuBorderBgColor='#777777';

mm_menu_1201143039_0.writeMenus();
} // mmLoadMenus()
myBR = Check();


if( navigator.userAgent.indexOf("Mac") > -1 && myBR == "I4"){
	document.write('<script language="JavaScript1.2">mmLoadMenus();</script><table class="menumargin" id="menu" name="menu" width="955" border="0" cellpadding="0" cellspacing="0" style="background-image:url(/images/menu_back.gif); background-repeat:no-repeat;position:absolute;top:60px;"><tr><td align="center" valign="top"><table width="506" border="0" cellpadding="0" cellspacing="0" class="menumargin"><tr><td width="102"><a href="/e/company/index.html"><img src="/images/menu/e01.gif" alt="Company" name="image1" width="102" height="23" border="0" id="Image1" onMouseOver="MM_swapImage(\'image1\',\'\',\'/images/menu/e01r.gif\',1);MM_showMenu(window.mm_menu_1201134021_0,-10,5,null,\'image1\')" onMouseOut="MM_swapImgRestore();MM_startTimeout();"></a></td><td width="101"><a href="/e/services/index.html"><img src="/images/menu/e03.gif" alt="Services" name="image2" width="101" height="23" border="0" id="Image2" onMouseOver="MM_swapImage(\'Image2\',\'\',\'/images/menu/e03r.gif\',1);MM_showMenu(window.mm_menu_1201142916_0,-10,5,null,\'image2\')" onMouseOut="MM_swapImgRestore();MM_startTimeout();"></a></td><td><a href="/cgi-bin/eworks/esearch.cgi"><img src="/images/menu/e02.gif" alt="Project" name="image3" width="101" height="23" border="0" id="Image3" onMouseOver="MM_swapImage(\'Image3\',\'\',\'/images/menu/e02r.gif\',1);MM_showMenu(window.mm_menu_1201143039_0,-10,5,null,\'image3\')" onMouseOut="MM_swapImgRestore();MM_startTimeout();"></a></td></tr></table></td></tr><tr><td align="center" valign="top"></td></tr></table>'); 
}
else{
	var oeTags = '<object style="position:absolute;top:60px;z-index:2;overfllow:hidden;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="955" height="23" id="menu"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/englishmenu.swf" /><param name="quality" value="high" /><param name="salign" value="t" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />'
    + '<embed src="/flash/englishmenu.swf" quality="high" wmode="transparent" bgcolor="#ffffff" '
    + 'width="955" height="23" id="menu" name="menu" salign="t" align="left"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);
}

	var Mac   = navigator.userAgent.indexOf("Mac") != -1   ? true : false;
	function mdown(e) {
	if (navigator.appName == "Microsoft Internet Explorer") {
		//Mac版IE５ではコマンドキーを使ったショートカットでソースを見ることができます。
		if (event.button == 2 || (Mac && (event.ctrlKey || event.keyCode == 91))) {
			alert("It cannot utilize the context menu.");
			return(false);
		}
	  } else if (navigator.appName == "Netscape") {
		if (e.which == 3 || e.modifiers == 2 || e.ctrlKey) {
			alert("It cannot utilize the context menu.");
			return false;
	    }
	  } 
	}

	function noright(){
		alert("It cannot utilize the context menu.");
		return false;
	}


	document.oncontextmenu = noright;

	if (document.all && (Mac || ! document.getElementById)) {
		document.onmousedown = mdown;
		document.onkeydown = mdown;
	} else if (document.layers) {
		window.captureEvents(Event.MOUSEDOWN | Event.modifiers | Event.KEYDOWN);
		window.onmousedown = mdown;
		window.onkeydown = mdown;
	} else if(navigator.userAgent.indexOf("Netscape6")!=-1){
		//onmousedownだとalertが表示されますが、
		//同時にデフォルトのコンテクストメニューも表示されてしまいます。
		//なのでonmouseupを使います
  		document.onmouseup = mdown; 
		document.onkeydown = mdown;
	}
