var brow = (window.opera?4:(window.external?3:(window.controllers?1:(document.layers?2:0))));
var ie5  = (navigator.appName.indexOf('Microsoft Internet Explorer')>=0 && document.getElementById)?1:0;
_dom = document.all?(document.getElementById?2:1):(document.getElementById?4:(document.layers?3:0));

// brow: 1=NN6+（Mozilla）,  2=NN4,  3=IE,  4=Op,  0=others
function submenu ()
{
	document.write('<DIV style="top : 77px;left : 140px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:125px"');
	document.write(' id="S1" onmouseover="menu(\'S1\', \'SUB_1\', true); changeImages(\'top_09\', \'../template/top_49.gif\'); return true;" onmouseout="menu(\'S1\', \'SUB_1\', false); changeImages(\'top_09\', \'../template/top_09.gif\'); return true;"');
	document.write('<TABLE cellpadding="3" cellspacing="0" width="100%" class="submenu">');
	document.write('<TR><TD>');
	document.write('<TABLE cellpadding="4" cellspacing="0" width="100%">');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/vision.html"><FONT color=#787878>当社のビジョン</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/data.html"><FONT color=#787878>企業データ</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/access.html"><FONT color=#787878>問い合わせ</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</DIV>');

	document.write('<DIV style="top : 77px;left : 233px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:125px"');
	document.write(' id="S2" onmouseover="menu(\'S2\', \'SUB_2\', true); changeImages(\'top_10\', \'../template/top_50.gif\'); return true;" onmouseout="menu(\'S2\', \'SUB_2\', false); changeImages(\'top_10\', \'../template/top_10.gif\'); return true;"');
	document.write('<TABLE cellpadding="3" cellspacing="0" width="100%" class="submenu">');
	document.write('<TR><TD>');
	document.write('<TABLE cellpadding="4" cellspacing="0" width="100%">');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../info/info.html"><FONT color=#787878>お知らせ</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../info/mainte.html"><FONT color=#787878>メンテナンス情報</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../info/press.html"><FONT color=#787878>プレスリリース</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</DIV>');

	document.write('<DIV style="top : 77px;left : 347px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:125px"');
	document.write(' id="S3" onmouseover="menu(\'S3\', \'SUB_3\', true); changeImages(\'top_11\', \'../template/top_51.gif\'); return true;" onmouseout="menu(\'S3\', \'SUB_3\', false); changeImages(\'top_11\', \'../template/top_11.gif\'); return true;"');
	document.write('<TABLE cellpadding="3" cellspacing="0" width="100%" class="submenu">');
	document.write('<TR><TD>');
	document.write('<TABLE cellpadding="4" cellspacing="0" width="100%">');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/top.html"><FONT color=#787878>機能紹介</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/function.html"><FONT color=#787878>機能一覧</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/webdemo.html"><FONT color=#787878>製品デモ</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/service.html"><FONT color=#787878>サービス内容</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../template/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/price.html"><FONT color=#787878>価格体系</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</DIV>');

	document.write('<DIV style="top : 77px;left : 440px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:125px"');
	document.write(' id="S4" onmouseover="menu(\'S4\', \'SUB_4\', true); changeImages(\'top_12\', \'../template/top_52.gif\'); return true;" onmouseout="menu(\'S4\', \'SUB_4\', false); changeImages(\'top_12\', \'../template/top_12.gif\'); return true;"');
	document.write('</DIV>');

	document.write('<DIV style="top : 77px;left : 520px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:125px"');
	document.write(' id="S5" onmouseover="menu(\'S5\', \'SUB_5\', true); changeImages(\'top_13\', \'../template/top_53.gif\'); return true;" onmouseout="menu(\'S5\', \'SUB_5\', false); changeImages(\'top_13\', \'../template/top_13.gif\'); return true;"');
	document.write('</DIV>');
}

function getPath(tmp)
{
	if(brow==1 || brow==4)	return document.getElementById(tmp);
	if(brow==2)		return document.layers[tmp];
	if(brow==3)		return document.all[tmp];
	return document.getElementById(tmp);
}

function getLeft(obj)
{
	var tmp = getPath(obj);
	//if(brow==1 || brow==4)	return tmp.offsetLeft;
	//if(brow==2)				return tmp.left;
	//if(brow==3)				return ie5?tmp.offsetLeft:tmp.offsetLeft?tmp.offsetLeft:tmp.style.pixelLeft;

	if(_dom==4 || _dom==2) return tmp.offsetLeft;
	if(_dom==1)            return tmp.style.pixelLeft;
	if(_dom==3)            return tmp.left;

	return tmp.left;
}

function menu(lyr,obj,type)
{
	var lyrPath = getPath(lyr);
	var objLeft = getLeft(obj);
	if (type == true) {
		if(brow==1 || brow==2 || brow==4){
			lyrPath.style.pixelLeft = objLeft;
			lyrPath.style.left = objLeft + 'px';
		}
		else if(brow == 3){
			lyrPath.style.pixelLeft = objLeft;
			lyrPath.style.left = objLeft + 'px';
		}
		else {
			lyrPath.style.pixelLeft = objLeft;
			lyrPath.style.left = objLeft + 'px';
		}
		lyrPath.style.visibility = 'visible';
	} else {
		lyrPath.style.visibility = 'hidden';
	}
}
