//ブラウザ

//　ブラウザ名取得

function getBrowserName() {
	var aName  = navigator.appName.toUpperCase();
	var uName  = navigator.userAgent.toUpperCase();

	if (uName.indexOf("OPERA") >= 0)     return "Opera";
	if (aName.indexOf("NETSCAPE") >= 0)  return "Netscape";
	if (aName.indexOf("MICROSOFT") >= 0) return "Explorer";
	return "";
}

//　ブラウザバージョン取得
function getBrowserVersion() {
	var browser = getBrowserName();
	var version = 0;
	var s = 0;
	var e = 0;
	var appVer  = navigator.appVersion;
	if (browser == "Netscape") {
		s = appVer.indexOf(" ",0);
		version = eval(appVer.substring(0,s));
		if (version >= 5) version++;
	}
	if (browser == "Explorer") {
		appVer  = navigator.userAgent;
		s = appVer.indexOf("MSIE ",0) + 5;
		e = appVer.indexOf(";",s);
		version = eval(appVer.substring(s,e));
	}
	//if (browser == "Opera")
	//{
	//      appVer  = navigator.userAgent;
	//      s = appVer.indexOf("MSIE ",0) + 5;
	//      e = appVer.indexOf(";",s);
	//      version = eval(appVer.substring(s,e));
	//}

	return version;
}

//　Macintosh           　->  MacOS
//　Windows95/98/NT/2000  ->　Windows
//　UNIX                  ->　UNIX
function getOSType() {
	var RetCode = "";
	var uAgent  = navigator.userAgent.toUpperCase();
	if (uAgent.indexOf("MAC") >= 0) RetCode = "MacOS";
	if (uAgent.indexOf("WIN") >= 0) RetCode = "Windows";
	if (uAgent.indexOf("X11") >= 0) RetCode = "UNIX";
	return RetCode;
}

//---------------------------------------------------------------------------------------------------------------------------------------------
function product_M_xy1() {
	var browser = getBrowserName();
	var version = getBrowserVersion();
	var os      = getOSType();
//------------------------------------------------------------Netscapeは全OS共通
	if (browser == "Netscape" && version <= 5) {
		document.write(" <MAP name=m_kdindex_menyu1><IMG name=kdindex_menyu1 src=image3/menyu_pro_3.gif width=78 height=24 border=0 usemap=#m_kdindex_menyu1><AREA shape=rect coords=0,0,78,24 href=kdindex.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_0,460,110);></MAP>");
	}
	else if (browser == "Netscape" && version <= 6.0) {
		document.write(" <MAP name=m_kdindex_menyu1><IMG name=kdindex_menyu1 src=image3/menyu_pro_3.gif width=78 height=24 border=0 usemap=#m_kdindex_menyu1><AREA shape=rect coords=0,0,78,24 href=kdindex.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_0,460,110);></MAP>");
	}
//------------------------------------------------------------Opera
	if (browser == "Opera") {
		document.write("<A href=kdindex.htm><IMG name=kdindex_menyu1 src=image3/menyu_pro_3.gif width=78 height=24 border=0 usemap=#m_kdindex_menyu1></A>");
	}
//------------------------------------------------------------Windows IE
	if (os == "Windows") {
		if (browser == "Explorer") {
			document.write(" <MAP name=m_kdindex_menyu1><IMG name=kdindex_menyu1 src=image3/menyu_pro_3.gif width=78 height=24 border=0 usemap=#m_kdindex_menyu1><AREA shape=rect coords=0,0,78,24 href=kdindex.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_0,455,126);></MAP>");
		}
	}
//-------------------------------------------------------------MacOS IE
	if (os == "MacOS") {
		if (browser == "Explorer") {
			document.write("<A href=kdindex.htm><IMG name=kdindex_menyu1 src=image3/menyu_pro_3.gif width=78 height=24 border=0 usemap=#m_kdindex_menyu1></A>");
		}
	}
}

//------------------------------------------------------------------------------------------------------------------------------------------------
function product_M_xy2() {
	var browser = getBrowserName();
	var version = getBrowserVersion();
	var os      = getOSType();
//--------------------------------------------------------------Netscapeは全OS共通
	if (browser == "Netscape" && version <= 5) {
		document.write("<MAP name=m_kdindex_menyu2><IMG name=kdindex_menyu2 src=image3/index_menyu_downp.gif width=162 height=25 border=0 usemap=#m_kdindex_menyu2><AREA shape=rect coords=0,0,162,25 href=kdpaper.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_1,100,400);></MAP>");
	}
	else if (browser == "Netscape" && version <= 6.0) {
		document.write("<MAP name=m_kdindex_menyu2><IMG name=kdindex_menyu2 src=image3/index_menyu_downp.gif width=162 height=25 border=0 usemap=#m_kdindex_menyu2><AREA shape=rect coords=0,0,162,25 href=kdpaper.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_1,195,400);></MAP>");
	}
//---------------------------------------------------------------Windows IE
	if (os == "Windows") {
		if (browser == "Explorer") { //Windows IE
			document.write("<MAP name=m_kdindex_menyu2><IMG name=kdindex_menyu2 src=image3/index_menyu_downp.gif width=162 height=25 border=0 usemap=#m_kdindex_menyu2><AREA shape=rect coords=0,0,162,25 href=kdpaper.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_1,190,400);></MAP>");
		}
	}
//----------------------------------------------------------------MacOS IE
	if (os == "MacOS") {
		if (browser == "Explorer") {
			document.write("<A href=kdpaper.htm><IMG name=kdindex_menyu2 src=image3/index_menyu_downp.gif width=162 height=25 border=0 usemap=#m_kdindex_menyu2></A><BR>");
		}
	}
}
//--------------------------------------------------------------------------------------------------------------------------------------------------

//---------------------------------------------------------------------------------------------------------------------------------------------
function product_M_xy3() {
	var browser = getBrowserName();
	var version = getBrowserVersion();
	var os      = getOSType();
//------------------------------------------------------------Netscapeは全OS共通
	if (browser == "Netscape"  &&  version <= 5) {
		document.write(" <MAP name=m_kdindex_menyu3><IMG name=kdindex_menyu3 src=image3/menyu_home_2.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3><AREA shape=rect coords=0,0,78,24 href=index.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_2,20,160);></MAP>");
	}
	else if (browser == "Netscape"  &&  version <= 6.0) {
		document.write(" <MAP name=m_kdindex_menyu3><IMG name=kdindex_menyu3 src=image3/menyu_home_2.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3><AREA shape=rect coords=0,0,78,24 href=index.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_2,20,160);></MAP>");
	}
//------------------------------------------------------------Opera
	if (browser == "Opera") {
		document.write("<A href=index.htm><IMG name=kdindex_menyu3 src=image3/menyu_home_2.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3 onMouseover=\"this.src='image3/menyu_home.gif'\" onMouseout=\"this.src='image3/menyu_home_2.gif'\"></A>");
	}
//------------------------------------------------------------Windows IE
	if (os == "Windows") {
		if (browser == "Explorer") {
			document.write(" <MAP name=m_kdindex_menyu3><IMG name=kdindex_menyu3 src=image3/menyu_home_2.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3><AREA shape=rect coords=0,0,79,24 href=index.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_2,20,160);></MAP>");
		}
	}
//-------------------------------------------------------------MacOS IE
	if (os == "MacOS") {
		if (browser == "Explorer") {
			document.write("<A href=kdindex.htm><IMG name=kdindex_menyu3 src=image3/menyu_home_2.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3></A>");
		}
	}
}

function fwLoadMenus() {
	if (window.fw_menu_0) return;
	window.fw_menu_0 = new Menu("root",270,19,"MS UI Gothic, Osaka",12,"#ffffff","#000000","#FF6600","#cccccc");
	fw_menu_0.addMenuItem("■KDコンバート全製品概略図","location='kdconv.htm'");
	fw_menu_0.addMenuItem("■受託開発･カスタマイズ","location='kdjutaku.htm'");
	fw_menu_0.addMenuItem("---- アプリケーション・用途別インディックス -----");
	fw_menu_0.addMenuItem("■ラスター出力関連の変換ソフト","location='ras_out.htm'");
	fw_menu_0.addMenuItem("■新旧図面比較機能付きソフト","location='hikaku.htm'");
	fw_menu_0.addMenuItem("■DocuWorks関連の変換ソフト","location='docuworks.htm'");
	fw_menu_0.addMenuItem("■PDF/PostScript(Acrobat)関連の変換ソフト","location='acrobat.htm'");
	fw_menu_0.addMenuItem("■DWG/DXF/SXF関連の変換ソフト","location='autocad.htm'");
	fw_menu_0.addMenuItem("■Microsoft関連の変換ソフト","location='office.htm'");
	fw_menu_0.addMenuItem("■印刷関連の変換ソフト","location='printer.htm'");
	fw_menu_0.addMenuItem("■HP-GL,HP-GL2関連の変換ソフト","location='hpgl.htm'");
	fw_menu_0.addMenuItem("■監視付きソフト","location='watch.htm'");
	fw_menu_0.addMenuItem("■ビューア製品","location='view.htm'");
	fw_menu_0.addMenuItem("■KDdriver関連の変換ソフト","location='KDdriver_conne.htm'");
	fw_menu_0.addMenuItem("■PDF/XDW/HP-GL2データ編集ソフト","location='mg.htm'");
	fw_menu_0.addMenuItem("■バーコード関連の変換ソフト","location='barcode.htm'");
	fw_menu_0.addMenuItem("■TEXT抽出・合成関連の変換ソフト","location='text_out.htm'");
	fw_menu_0.addMenuItem("■DICOM関連の変換ソフト","location='dicom.htm'");
	fw_menu_0.addMenuItem("■自動認識関連の変換ソフト","location='auto_reco.htm'");
	fw_menu_0.addMenuItem("------- KDコンバートシリーズ製品別-------");
	fw_menu_0.addMenuItem("■KDrasterコンバート(ラスター/ラスター変換)","location='kdrasras.htm'");
	fw_menu_0.addMenuItem("■KDrasterコンバート(ベクター/ラスター変換)","location='kdvecras.htm'");
	fw_menu_0.addMenuItem("■KDprintコンバート","location='kdprint.htm'");
	fw_menu_0.addMenuItem("■KDcadコンバート","location='kdcad.htm'");
	fw_menu_0.addMenuItem("■RS2BAR/RS3BAR(ラスター/バーコード変換)","location='rs2bar.htm'");
	fw_menu_0.addMenuItem("■RS2OCR(イメージデータの文字をOCR処理)","location='rs2ocr.htm'");
	fw_menu_0.addMenuItem("■KDdriver for Windows","location='kddriver.htm'");
	fw_menu_0.addMenuItem("■KDdriver_long for Windows","location='kddriver_long.htm'");
	fw_menu_0.addMenuItem("■KDtext_driver for Windows","location='kdtext_driver.htm'");
	fw_menu_0.addMenuItem("■KDdriver for LINUX ","location='kddriver_LINUX.htm'");
	fw_menu_0.addMenuItem("■KDauto_trans(自動監視･自動変換)","location='kdauto.htm'");
	fw_menu_0.addMenuItem("■KDCONV_DIR(階層構造一括変換)","location='kdconv_dir.htm'");
	fw_menu_0.addMenuItem("■KDCONV_GUI(画面付き階層構造一括変換)","location='kdconv_gui.htm'");
	fw_menu_0.addMenuItem("■KDwin_batch(GUI化アプリケーション)","location='kdwin_batch.htm'");
	fw_menu_0.addMenuItem("■KDdifferコンバート","location='kddiff.htm'");
	fw_menu_0.addMenuItem("■KDauto_differコンバート","location='kdatdiff.htm'");
	fw_menu_0.addMenuItem("■KDexcel_differコンバート","location='kdexceldiff.htm'");
	fw_menu_0.addMenuItem("■KDprintout for driver","location='kdprintout.htm'");
	fw_menu_0.addMenuItem("■KDsemiauto_print for windows","location='kdsemiauto_print.htm'");
	fw_menu_0.addMenuItem("■KDreader for Windows","location='kdreader.htm'");
	fw_menu_0.addMenuItem("■KDreader for LINUX","location='kdreader_linux.htm'");
	fw_menu_0.addMenuItem("■KDviewIG/IG2 for Windows","location='kdviewIG.htm'");
	fw_menu_0.addMenuItem("■KDviewVC/VC2 for Windows","location='kdviewVC.htm'");
	fw_menu_0.addMenuItem("■KDviewDF/DF2 for Windows","location='kdviewDF.htm'");
	fw_menu_0.addMenuItem("■KDviewDF for LINUX","location='kdviewDF_linux.htm'");
	fw_menu_0.addMenuItem("■KDraster_libライブラリ","location='kdraslib.htm'");
	fw_menu_0.addMenuItem("■KDcad_libライブラリ","location='kdcadlib.htm'");
	fw_menu_0.addMenuItem("■KDplug_in for Acrobat","location='kdplugin_acrobat.htm'");
	fw_menu_0.addMenuItem("■KDplug_in for DocuWorks","location='kdplugin_docuworks.htm'");
	fw_menu_0.hideOnMouseOut = true;

	if (window.fw_menu_1) return;
	window.fw_menu_1 = new Menu("root",200,19,"MS UI Gothic, Osaka",12,"#ffffff","#000000","#cc33cc","#cccccc");
	fw_menu_1.addMenuItem("■注文書","location='./pdf/chumon.pdf'");
	fw_menu_1.addMenuItem("■デモ版の借用用紙","location='./pdf/shakuyo.pdf'");
	fw_menu_1.addMenuItem("■保守契約申込書","location='./pdf/hoshu.pdf'");
	fw_menu_1.addMenuItem("■エンドユーザー情報申込書","location='./pdf/enduser.pdf'");
	fw_menu_1.addMenuItem("■横浜本社地図","location='./pdf/map.pdf'");
	fw_menu_1.addMenuItem("■松山事業所地図","location='./pdf/matuyama_map.pdf'");
	fw_menu_1.hideOnMouseOut = true;

	if (window.fw_menu_2) return;
	window.fw_menu_2 = new Menu("root",280,19,"MS UI Gothic, Osaka",12,"#ffffff","#000000","#FF6600","#cccccc");
	fw_menu_2.addMenuItem("■製品総合インディックス","location='kdindex.htm'");
	fw_menu_2.addMenuItem("■見積り依頼・お問合せ・サポート申し込み","location='kduseindex.htm'");
	fw_menu_2.addMenuItem("■ソフトウェアの検証(デモ版依頼)","location='kddemo_veri.htm'");
	fw_menu_2.addMenuItem("■用紙のダウンロード","location='kdpaper.htm'");
	fw_menu_2.addMenuItem("■ラスター出力関連製品","location='ras_out.htm'");
	fw_menu_2.addMenuItem("■PDF/PostScript関連製品","location='acrobat.htm'");
	fw_menu_2.addMenuItem("■印刷関連製品","location='printer.htm'");
	fw_menu_2.addMenuItem("■ビュワー製品","location='view.htm'");
	fw_menu_2.addMenuItem("■バーコード関連製品","location='barcode.htm'");
	fw_menu_2.addMenuItem("■自動認識関連製品","location='auto_reco.htm'");
	fw_menu_2.addMenuItem("■KDprintコンバート","location='kdprint.htm'");
	fw_menu_2.addMenuItem("■新旧図面・文章比較製品","location='hikaku.htm'");
	fw_menu_2.addMenuItem("■Microsoft関連製品","location='office.htm'");
	fw_menu_2.addMenuItem("■KP-GL,HP-GL2関連製品","location='hpgl.htm'");
	fw_menu_2.addMenuItem("■KDdriver関連製品","location='KDdriver_conne.htm'");
	fw_menu_2.addMenuItem("■テキスト抽出・合成関連製品","location='text_out.htm'");
	fw_menu_2.addMenuItem("■LINUX対応ソフト","location='linux_soft.htm'");
	fw_menu_2.addMenuItem("■KDcadコンバート","location='kdcad.htm'");
	fw_menu_2.addMenuItem("■DocuWorks/ApeosWare Flow Service関連製品","location='docuworks.htm'");
	fw_menu_2.addMenuItem("■DXF/DWG/SXF関連製品","location='autocad.htm'");
	fw_menu_2.addMenuItem("■監視付き製品","location='watch.htm'");
	fw_menu_2.addMenuItem("■データ編集製品(PDF/XDW/HP-GL2)","location='mg.htm'");
	fw_menu_2.addMenuItem("■DICOM関連製品","location='dicom.htm'");
	fw_menu_2.addMenuItem("■スキャナ、複合機と連携した製品","location='machines.htm'");
	fw_menu_2.hideOnMouseOut = true;

	fw_menu_0.writeMenus();
	fw_menu_1.writeMenus();
	fw_menu_2.writeMenus();
} // fwLoadMenus()
