/*
 *	この辺はメニュー用の設定
 */
function loadMenus()
{
	if(window.m0)  return;

    window.m0 = new Menu("", 220, 25, "", 12, "#000000","#330099","#ccffcc","#ffffcc","left", "middle", 0, 0, 200, 0, 0, true, true, true, 5, false, false);
	/*window.m0 = new Menu("", 220, 25, "", 11, "#1144bb", "#ffffff", "#c0d0ee", "#3366cc", "left", "middle", 0, 0, 1000, 0, 0, true, true, true, 5, false, false);*/
	m0.addMenuItem("FA関連ソフトウェア開発事業", "location = 'fa.html'");
	m0.addMenuItem("分析系システム(OLAP)開発事業", "location = 'olap.html'");
	m0.addMenuItem("地域情報化関連事業", "location = 'local.html'");
	m0.addMenuItem("技術コンサルティング事業", "location = 'consul.html'");
	m0.addMenuItem("その他ソフトウェア開発事業", "location = 'etc.html'");
    m0.fontWeight="bold";
	m0.hideOnMouseOut = true
	m0.menuBorder = 1;
	m0.menuLiteBgColor = '#ffffff';
	m0.menuBorderBgColor = '#c0d0ee';
	m0.bgColor = '#ffffff';


    window.m1 = new Menu("", 220, 25, "", 12, "#000000","#330099","#ccffcc","#ffffcc","left", "middle", 0, 0, 200, 0, 0, true, true, true, 5, false, false);
	/*window.m1 = new Menu("", 220, 25, "", 11, "#1144bb", "#ffffff", "#c0d0ee", "#3366cc", "left", "middle", 0, 0, 1000, 0, 0, true, true, true, 5, false, false);*/
	m1.addMenuItem("要素技術", "location = 'technology.html'");
	m1.addMenuItem("製品情報 - Webタイマ", "location = 'timer.html'");
	m1.addMenuItem("製品情報 - 交通量調査集計システム", "location = 'trcounter.html'");
	m1.addMenuItem("製品情報 - 顧客分析システム", "location = 'bunseki.html'");
	m1.addMenuItem("開発実績", "location = 'dev.html'");
	m1.addMenuItem("研究室", "location = 'labo.html'");
    m1.fontWeight="bold";
	m1.hideOnMouseOut = true
	m1.menuBorder = 1;
	m1.menuLiteBgColor = '#ffffff';
	m1.menuBorderBgColor = '#c0d0ee';
	m1.bgColor = '#ffffff';


    window.m2 = new Menu("", 220, 25, "", 12, "#000000","#330099","#ccffcc","#ffffcc","left", "middle", 0, 0, 200, 0, 0, true, true, true, 5, false, false);
	/*window.m2 = new Menu("", 220, 25, "", 11, "#1144bb", "#ffffff", "#c0d0ee", "#3366cc", "left", "middle", 0, 0, 1000, 0, 0, true, true, true, 5, false, false);*/
	m2.addMenuItem("ホロニック？", "location = 'holonic.html'");
	m2.addMenuItem("会社概要", "location = 'company.html'");
	m2.addMenuItem("求人情報", "location = 'reqruite.html'");
	m2.addMenuItem("アクセスマップ", "location = 'map.html'");
	m2.addMenuItem("スタッフ紹介", "location = 'staff.html'");
	m2.addMenuItem("社内行事", "location = 'event.html'");
    m2.fontWeight="bold";
	m2.hideOnMouseOut = true
	m2.menuBorder = 1;
	m2.menuLiteBgColor = '#ffffff';
	m2.menuBorderBgColor = '#c0d0ee';
	m2.bgColor = '#ffffff';


	window.writeMenus();
}



function getTableWidth()
{
	var width = getInnerWidth();
	if(width > 760)  return 760;
	return '100%';
}



function getInnerWidth()
{
	var width = 0;
	if(document.layers)  width = window.innerWidth
	if(document.all)	 width = document.body.clientWidth
	return width;
}


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];}
}

