//ブラウザ

//　ブラウザ名取得

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=image4/index_conv.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu1><AREA shape=rect coords=0,0,150,25 href=kdindex.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_0,185,200);></MAP><BR>");
	}
	else if (browser == "Netscape" && version <= 6.0) {
		document.write(" <MAP name=m_kdindex_menyu1><IMG name=kdindex_menyu1 src=image4/index_conv.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu1><AREA shape=rect coords=0,0,150,25 href=kdindex.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_0,185,150);></MAP><BR>");
	}
//------------------------------------------------------------Opera
	if (browser == "Opera") {
		document.write("<A href=kdindex.htm><IMG name=kdindex_menyu1 src=image4/index_conv.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu1 onMouseover=\"this.src='image4/index_conv_b.gif'\" onMouseout=\"this.src='image4/index_conv.gif'\"></A><BR>");
	}
//------------------------------------------------------------Windows IE
	if (os == "Windows") {
		if (browser == "Explorer") {
			document.write(" <MAP name=m_kdindex_menyu1><IMG name=kdindex_menyu1 src=image4/index_conv.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu1><AREA shape=rect coords=0,0,150,25 href=kdindex.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_0,185,200);></MAP><BR>");
		}
	}
//-------------------------------------------------------------MacOS IE
	if (os == "MacOS") {
		if (browser == "Explorer") {
			document.write("<A href=kdindex.htm><IMG name=kdindex_menyu1 src=image4/index_conv.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu1></A><BR>");
		}
	}
}



//------------------------------------------------------------------------------------------------------------------------------------------------
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=image4/index_down.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu2><AREA shape=rect coords=0,0,150,25 href=kdpaper.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_1,185,500);></MAP><BR>");
	}
	else if (browser == "Netscape" && version <= 6.0) {
		document.write("<MAP name=m_kdindex_menyu2><IMG name=kdindex_menyu2 src=image4/index_down.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu2><AREA shape=rect coords=0,0,150,25 href=kdpaper.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_1,185,500);></MAP><BR>");
	}
//---------------------------------------------------------------Opera
	if (browser == "Opera") {
		document.write("<A href=kdpaper.htm><IMG name=kdindex_menyu2 src=image4/index_down.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu2 onMouseover=\"this.src='image4/index_down_b.gif'\" onMouseout=\"this.src='image4/index_down.gif'\"></A><BR>");
	}
//---------------------------------------------------------------Windows IE
	if (os == "Windows") {
		if (browser == "Explorer") { //Windows IE
			document.write("<MAP name=m_kdindex_menyu2><IMG name=kdindex_menyu2 src=image4/index_down.gif width=150 height=25 border=0 usemap=#m_kdindex_menyu2><AREA shape=rect coords=0,0,150,25 href=kdpaper.htm onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_1,185,525);></MAP><BR>");
		}
	}
//----------------------------------------------------------------MacOS IE
	if (os == "MacOS") {
		if (browser == "Explorer") {
			document.write("<A href=kdpaper.htm><IMG name=kdindex_menyu2 src=image4/index_down.gif width=150 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.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3><AREA shape=rect coords=0,0,150,25 onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_2,20,220);></MAP>");
	}
	else if (browser == "Netscape" && version <= 6.0) {
		document.write(" <MAP name=m_kdindex_menyu3><IMG name=kdindex_menyu3 src=image3/menyu_home.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3><AREA shape=rect coords=0,0,150,25 onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_2,20,220);></MAP>");
	}
//------------------------------------------------------------Opera
	if (browser == "Opera") {
		document.write("<IMG name=kdindex_menyu3 src=image3/menyu_home.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3 onMouseover=\"this.src='image3/menyu_home.gif'\" onMouseout=\"this.src='image3/menyu_home.gif'\">");
	}
//------------------------------------------------------------Windows IE
	if (os == "Windows") {
		if (browser == "Explorer") {
			document.write(" <MAP name=m_kdindex_menyu3><IMG name=kdindex_menyu3 src=image3/menyu_home.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3><AREA shape=rect coords=0,0,150,25 onmouseout=FW_startTimeout(); onmouseover=window.FW_showMenu(window.fw_menu_2,20,220);></MAP>");
		}
	}
//-------------------------------------------------------------MacOS IE
	if (os == "MacOS") {
		if (browser == "Explorer") {
			document.write("<IMG name=kdindex_menyu3 src=image3/menyu_home.gif width=79 height=24 border=0 usemap=#m_kdindex_menyu3>");
		}
	}
}



function fwLoadMenus() {
	if (window.fw_menu_0) return;
	window.fw_menu_0 = new Menu("root",280,19,"MS UI Gothic, Osaka",12,"#ffffff","#000000","#FF6600","#cccccc");
	fw_menu_0.addMenuItem(" ■KDコンバート全製品インディックス","location='kdindex.htm'");
	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("■デモ版の借用用紙","alert:Confirm5('sup')");
	fw_menu_1.addMenuItem("■KDdriver2000申請書","location='./pdf/driver_sinsei_2000.pdf'");
	fw_menu_1.addMenuItem("■KDdriverXP(32bit)申請書","location='./pdf/driver_sinsei_XP.pdf'");
	fw_menu_1.addMenuItem("■KDdriverXP(64bit)申請書","location='./pdf/driver_sinsei_XP_64.pdf'");
	fw_menu_1.addMenuItem("■KDdriverVista(32bit)申請書","location='./pdf/driver_sinsei_Vista.pdf'");
	fw_menu_1.addMenuItem("■KDdriverVista(64bit)申請書","location='./pdf/driver_sinsei_Vista_64.pdf'");
	fw_menu_1.addMenuItem("■KDdriver for Linux申請書","location='./pdf/driver_sinsei_LINUX.pdf'");
	fw_menu_1.addMenuItem("■KDdriver搭載製品申込書","location='./pdf/sinseisyo.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",320,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()



function Confirm5(Key) {
    flg = confirm("デモ版の申請はWEB上からも\n可能です。申請を行いますか？\n(OK：申請、ｷｬﾝｾﾙ：いいえ)");
	if (flg == true) { 
		location.href = "http://www.kernelcomputer.co.jp/kddemo_veri.htm";
	} else { 
		location.href = "http://www.kernelcomputer.co.jp/pdf/shakuyo.pdf";
	}
	return true;
}

