function  menu(mode, submode){
	/* 親コンテンツ数 */
	var count = 6 ;
	
	/* 二次元配列の作成 */
	str = new Array(6) ;
	for (var i = 0; i < count; i++){
		str[i] = new Array() ;
	}
	/* トップ */
	str[0][0] = new data("トップ", "index.html", "Web Frontierトップページへ") ;
	
	/* ソフトウェア */
	str[1][0] = new data("ソフトウェア", "_software.html", "ソフトウェアのダウンロードなど") ;
	str[1][1] = new data("ダウンロード", "software/download.html", "ソフトウェアの紹介とダウンロード") ;
	
	/* アドバンス */
	str[2][0] = new data("アドバンス", "_advance.html", "特殊アプリケーション・優遇対策") ;
	str[2][1] = new data("研究機関・技術開発専用アプリケーション", "software/download.html", "研究機関・技術開発専用アプリケーションとダウンロード") ;
	str[2][2] = new data("Delphi入門", "delphi/index.html", "Delphiに関する入門指南書") ;
	
	/* ウェブデザイン */
	str[3][0] = new data("ウェブデザイン", "_webdesign.html", "ウェブ設計お役立ち情報") ;
	str[3][1] = new data("スタイルシートの技", "stylesheet/index.html", "スタイルシートのテクニック集") ;
	str[3][2] = new data("CGIのダウンロード", "cgiscript/index.html", "CGIスクリプトのダウンロード") ;
	
	/* コミュニケーション */
	str[4][0] = new data("コミュニケーション", "_communication.html", "掲示板など") ;
	str[4][1] = new data("お問い合わせ", "sendmail.html", "お問い合わせフォーム") ;
	
	/* サイトマップ */
	str[5][0] = new data("サイトマップ", "sitemap.html", "サイトマップ") ;
	
	/* Menuの作成 */
	document.write("<div id='menubox' class='cleaning-box'><ul id='menu'>") ;
	
	var mode_abs = Math.abs(mode) ;
	
	for(var i = 0; i < count; i++) {
		document.write("<li><a href='" + str[i][0].href + "' title='" + str[i][0].title + "'") ;
		if (mode_abs == i) {
			document.write(" class='first active'") ;
		}
		document.write(">" +str[i][0].text + "</a></li>") ;
	}
	

	document.write("</ul></div>") ;
	
	/* Naviの作成 */
	var str_navi = document.getElementsByTagName("title")[0].innerHTML ;
	
	var tag_submode = "" ;
	
	if (submode != undefined){
		tag_submode = "<a href='" + str[mode][submode].href + "'>" + str[mode][submode].text + "</a> &raquo; " ;
	}
	
	if (mode < 0){
		
		/* この場合はトップからの直接リンク */
		document.write("<div id='navibox'><p><a href='" + str[0][0].href + "'>" + str[0][0].text + "</a> &raquo; " + str_navi +"</p></div>") ;
		
	}else{
		
		if ((str_navi != "") && (str_navi != "Web Frontier")){
			document.write("<div id='navibox'><p><a href='" + str[0][0].href + "'>" + str[0][0].text + "</a> &raquo; <a href='" + str[mode][0].href  + "'>" +   str[mode][0].text + "</a> &raquo; " + tag_submode + str_navi +"</p></div>") ;
		}
	}
}

function data(text, href, title){
	this.text = text ;
	this.href = "file:///C:/Users/Satoshi/Desktop/w3/" + href ;
	this.title = title ;
}