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;

// brow: 1=NN6+（Mozilla）,  2=NN4,  3=IE,  4=Op,  0=others
function submenu ()
{
	document.write('<DIV style="top : 93px;left : 140px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:160px"');
	document.write(' id="S1" onmouseover="menu(\'S1\', \'SUB_1\', true)" onmouseout="menu(\'S1\', \'SUB_1\', false)"');
	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="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/top.html"><FONT color=white>社長の挨拶</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/data.html"><FONT color=white>企業データ</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/org.html"><FONT color=white>組織図</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/license.html"><FONT color=white>取得認定／事業許可</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/history.html"><FONT color=white>会社沿革</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../company/env.html"><FONT color=white>環境への取り組み</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="https://www.anchor-net.co.jp/company/access.html"><FONT color=white>問い合わせ</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 : 93px;left : 233px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:130px"');
	document.write(' id="S2" onmouseover="menu(\'S2\', \'SUB_2\', true)" onmouseout="menu(\'S2\', \'SUB_2\', false)"');
	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="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/top.html"><FONT color=white>OA機器買取</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/data.html"><FONT color=white>データ消去</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/reduce.html"><FONT color=white>OA機器処理</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../service/resale.html"><FONT color=white>OA機器販売</FONT></A></TD></TR></TABLE></TD></TR>');
//	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="https://www.anchor-net.co.jp/service/kiyaku.html"><FONT color=white>リファビッシュ</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 : 93px;left : 347px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:130px"');
	document.write(' id="S3" onmouseover="menu(\'S3\', \'SUB_3\', true)" onmouseout="menu(\'S3\', \'SUB_3\', false)"');
	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="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../revinfo/top.html"><FONT color=white>買取品目一覧</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../revinfo/build.html"><FONT color=white>買取強化品</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../revinfo/howto.html"><FONT color=white>買取方法</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 : 93px;left : 440px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:130px"');
	document.write(' id="S4" onmouseover="menu(\'S4\', \'SUB_4\', true)" onmouseout="menu(\'S4\', \'SUB_4\', false)"');
	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="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../sell/top.html"><FONT color=white>卸売販売</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../sell/retail.html"><FONT color=white>小売販売</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 : 93px;left : 520px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:130px"');
	document.write(' id="S5" onmouseover="menu(\'S5\', \'SUB_5\', true)" onmouseout="menu(\'S5\', \'SUB_5\', false)"');
	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="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../recruit/top.html#1"><FONT color=white>募集要項</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('<TR><TD><TABLE cellpadding="3" cellspacing="0"><TR><TD><IMG src="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../recruit/top.html#2"><FONT color=white>福利厚生</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 : 93px;left : 615px;');
	document.write('  position : absolute;');
	document.write('  z-index : 2;');
	document.write('  visibility : hidden; width:130px"');
	document.write(' id="S6" onmouseover="menu(\'S6\', \'SUB_6\', true)" onmouseout="menu(\'S6\', \'SUB_6\', false)"');
	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="../submenu/mrk1.gif" border="0"></TD><TD nowrap><A href="../smap/top.html"><FONT color=white>サイトマップ</FONT></A></TD></TR></TABLE></TD></TR>');
	document.write('</TABLE>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</DIV>');
}

function getPath(tmp)
{
//	if(brow==1 || brow==4 || brow==3)	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 || brow==3)	return tmp.offsetLeft;
//	if(brow==2)		return tmp.left;
//	if(brow==3)		return ie5?tmp.offsetLeft:tmp.pixelLeft;
//	return tmp.left;
	return tmp.offsetLeft;
}

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

