/**
 * fw_menu 24OCT2000 Version 4.0
 * John Ahlquist, October 2000
 * Copyright (c) 2000 Macromedia, Inc.
 *
 * based on menu.js
 * by gary smith, July 1997
 * Copyright (c) 1997-1999 Netscape Communications Corp.
 *
 * Netscape grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided "AS IS," without a warranty of any kind.
 */
function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",215,33,"Osaka, MS Gothic",12,"#666666","#000000","#ffffff","#dcdeed");
  fw_menu_0.addMenuItem("マイコンカルテシステム<br><b>MKS</b>","location='html/micom_01.htm'");
  fw_menu_0.addMenuItem("空床情報をリアルに管理<br><b>病床NAVI</b> ","location='html/navi.htm'");
  fw_menu_0.addMenuItem("カルテ個人情報の流出防止<br><b>病院名札IDｾｷｭﾘﾃｨｼｽﾃﾑ</b> ","location='html/nafuda_hosp.htm'");
  fw_menu_0.hideOnMouseOut=true;

  window.fw_menu_1 = new Menu("root",215,33,"Osaka, MS Gothic",12,"#666666","#000000","#ffffff","#ffebc0");
  fw_menu_1.addMenuItem("職場のPCセキュリティ<br><b>名札IDｾｷｭﾘﾃｨｼｽﾃﾑ</b>","location='html/nafuda.htm'");
  fw_menu_1.hideOnMouseOut=true;

  window.fw_menu_2 = new Menu("root",215,33,"Osaka, MS Gothic",12,"#666666","#000000","#ffffff","#bdf3c4");
  fw_menu_2.addMenuItem("<B>インテリジェント<BR>張力制御システム</B>","location='html/itcs.htm'");
  fw_menu_2.addMenuItem("<B>超寿命ハイパワーLEDモジュール</B>","location='html/led.htm'");
  fw_menu_2.addMenuItem("<B>野生動物被害対策システム<BR>スマートセンサー</B>","location='html/smart.htm'");
  fw_menu_2.hideOnMouseOut=true;

  window.fw_menu_3 = new Menu("root",215,33,"Osaka, MS Gothic",12,"#666666","#000000","#ffffff","#DACFE7");
  fw_menu_3.addMenuItem("世界最小VGA<br><b>C-MOSカメラモジュール</b>","location='html/pixelimage/index.html'");
  fw_menu_3.addMenuItem("世界最小ボードコンピュータ<br><b>VISUAL THUNDER</b>","location='html/pixelimage/VT.html'");
  fw_menu_3.hideOnMouseOut=true;

  window.fw_menu_4 = new Menu("root",215,33,"Osaka, MS Gothic",12,"#666666","#000000","#ffffff","#dfff9e");
  fw_menu_4.addMenuItem("各社給与パッケージ連動<br><b>名札ID勤怠管理システム</b>","location='html/nid_kintai.htm'");
  fw_menu_4.hideOnMouseOut=true;

  window.fw_menu_5 = new Menu("root",215,33,"Osaka, MS Gothic",12,"#666666","#000000","#ffffff","#f3f5ae");
  fw_menu_5.addMenuItem("<br><b>組込みシステム・電子回路設計</b>","location='html/electro.htm'");
  fw_menu_5.addMenuItem("<br><b>システム構築(SI)事業</b>","location='html/system.htm'");
  fw_menu_5.addMenuItem("IT資産の維持・改善のために<br><b>各種ご相談窓口</b>","location='html/soudan.htm'");
  fw_menu_5.hideOnMouseOut=true;

  fw_menu_5.writeMenus();
} // fwLoadMenus()


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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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 FW_popMenu(index, child) {
	if ( document.body.clientWidth <= 775 ){
		startLeft = 0;
	}else{
		startLeft = ( document.body.clientWidth - 775 ) / 2;
	}

	if ( index == 0 ){
		window.FW_showMenu(window.fw_menu_0,startLeft + 40,169);
	}else if ( index == 1 ){
		window.FW_showMenu(window.fw_menu_1,startLeft + 40,195);
	}else if ( index == 2 ){
		window.FW_showMenu(window.fw_menu_2,startLeft + 40,219);
	}else if ( index == 3 ){
		window.FW_showMenu(window.fw_menu_3,startLeft + 40,244);
	}else if ( index == 4 ){
		window.FW_showMenu(window.fw_menu_4,startLeft + 40,269);
	}else if ( index == 5 ){
		window.FW_showMenu(window.fw_menu_5,startLeft + 40,351);
	}else if ( index == 6 ){
		window.FW_showMenu(window.fw_menu_6,startLeft + 40,376);
	}
}
