var navi = new Array();
//-------------------------------------------------------------------

navi[0] = new Array(
	'ホーム[>]/index.html'
);

navi[1] = new Array(
	'製品情報[>]/products/index.html',
	'Arrayプロダクトファミリー[>]/products/index.html',
	'Array SPX[>]/products/spx.html',
//--	'Array TMX[>]/products/tmx.html',   --
	'Array APV[>]/products/apv.html'
);

navi[2] = new Array(
	'ソリューション[>]/solutions/index.html',
	'革新的ソリューション[>]/solutions/index.html',
	'セキュアアクセス[>]/solutions/access.html',
	'ケーススタディ[>]/solutions/casestudy.html'
);

navi[3] = new Array(
	'サポート[>]/support/index.html',
	'サポート関連情報[>]/support/index.html',
	'技術的なお問い合わせ[>]/support/accessinfo.html',
	'サポートプログラム（US）[>]http://www.arraynetworks.net/entry.asp?PageID=124'
);

navi[4] = new Array(
	'パートナー[>]/partner/index.html',
	'パートナーリスト[>]/partner/index.html',
	'パートナーページ[>]/partner/distributor.html'
);

navi[5] = new Array(
	'会社情報[>]/company/index.html',
	'会社案内[>]/company/index.html',
	'会社概要[>]/company/about.html',
	'プレスリリース[>]/company/press.html',
	'人材募集[>]/company/recruit.html'
);

navi[6] = new Array(
	'お問い合わせ[>]/contact/index.html'
);

//-------------------------------------------------------------------

function DDMenu(dir){
	var dir;
	var MN = navi.length;
	document.write('<div id="menubar"><ul>');
	for ( var i=0; i<MN; i++ ){
		document.write('<li class="base">' + setLINK(navi[i][0],dir) );
		var SN = navi[i].length;
		if ( SN > 1 ){
				document.write('<ul>');
				for ( var n=1; n<SN; n++ ){
						document.write('<li>' + setLINK(navi[i][n],dir) + '</li>');
				}
				document.write('</ul>');
		}
	}
	document.write('</ul></div>');
}

function setLINK(tar,dir){
	var tar;
	var sep = tar.indexOf('[>]');
	var tit = tar.substring( 0, sep );
	var url = tar.substring( sep + 3, tar.length);
	if ( url.charAt(0) !== '/' ){ dir = ''; }
	var tag;
	if ( sep != -1 ){
		tag = '<a href="' + dir + url + '">' + tit + '</a>';
	}else{
		tag = '<a href="#">' + tar + '</a>';
	}
	return tag;
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot_0 = document.getElementById("menubar");
		navRoot = navRoot_0.childNodes[0];
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace (" over", "");
				}
			}
		}
	}
}
window.onload=startList;
