<!--//

function Menu(strLayer, fType, name, num)
{
	//NNの場合
	if (document.layers)
	{
		if (fType)
		{
			//表示
			document.layers[strLayer].visibility = "show";
		}
		else
		{
			//非表示
			document.layers[strLayer].visibility = "hide";	
		}
	}
	//IEとNC6の場合
	if (document.getElementById)
	{	
		if (fType)
		{	
			//表示
			document.getElementById(strLayer).style.visibility="visible";
		}
		else
		{
			//非表示
			document.getElementById(strLayer).style.visibility="hidden";
		}
	}

    //ボタン画像の差し替え
	if(document.images)document.images[name].src = imgCh[num].src;
	
}

//はじめの表示を非表示にします。HTMLで記述したレイヤー文記述します。
function SetDefault()
{
	Menu('lyLayer1', false);
	Menu('lyLayer2', false);
	ResetLayer('lyLayer1');
	ResetLayer('lyLayer2');
}

//Netscapeの場合、レイヤーが少し下になって、サブメニューが見えなくなるので上にずらします。
//必要なければ削除してください。
function ResetLayer(strLayer)
{
	//NNの場合
	if (navigator.appName=="Netscape")
	{
		//NN4
		if(document.layers)
		{
			//document.layers[strLayer].left = 必要であれば数字をいれる;
			document.layers[strLayer].top = 28;	//TOPの位置。
		}
		//NN6
		else
		{
			//document.getElementById(strLayer).style.left = 必要であれば数字をいれる;
			document.getElementById(strLayer).style.top = 28;	//TOPの位置。
		}
	}
}

/* 画像差し替えの画像リスト */
if(document.images){
	var imgCh=new Array();
	imgCh[0] = new Image(),imgCh[0].src="image/menu/top_page.gif";
	imgCh[1] = new Image(),imgCh[1].src="image/menu/top_page_j.gif";
	imgCh[2] = new Image(),imgCh[2].src="image/menu/products.gif";
	imgCh[3] = new Image(),imgCh[3].src="image/menu/products_j.gif";
	imgCh[4] = new Image(),imgCh[4].src="image/menu/ets.gif";
	imgCh[5] = new Image(),imgCh[5].src="image/menu/ets_j.gif";
	imgCh[6] = new Image(),imgCh[6].src="image/menu/vss.gif";
	imgCh[7] = new Image(),imgCh[7].src="image/menu/vss_j.gif";
	imgCh[8] = new Image(),imgCh[8].src="image/menu/ets_for_muffler.gif";
	imgCh[9] = new Image(),imgCh[9].src="image/menu/ets_for_muffler_j.gif";
	imgCh[10] = new Image(),imgCh[10].src="image/menu/jointed_terminal.gif";
	imgCh[11] = new Image(),imgCh[11].src="image/menu/jointed_terminal_j.gif";
	imgCh[12] = new Image(),imgCh[12].src="image/menu/shopping.gif";
	imgCh[13] = new Image(),imgCh[13].src="image/menu/shopping_j.gif";
	imgCh[14] = new Image(),imgCh[14].src="image/menu/monsters.gif";
	imgCh[15] = new Image(),imgCh[15].src="image/menu/monsters_j.gif";
	imgCh[16] = new Image(),imgCh[16].src="image/menu/monitor_wanted.gif";
	imgCh[17] = new Image(),imgCh[17].src="image/menu/monitor_wanted_j.gif";
	imgCh[18] = new Image(),imgCh[18].src="image/menu/faq.gif";
	imgCh[19] = new Image(),imgCh[19].src="image/menu/faq_j.gif";
	imgCh[20] = new Image(),imgCh[20].src="image/menu/inquiry.gif";
	imgCh[21] = new Image(),imgCh[21].src="image/menu/inquiry_j.gif";
	imgCh[22] = new Image(),imgCh[22].src="image/menu/present.gif";
	imgCh[23] = new Image(),imgCh[23].src="image/menu/present_j.gif";
	imgCh[24] = new Image(),imgCh[24].src="image/menu/links.gif";
	imgCh[25] = new Image(),imgCh[25].src="image/menu/links_j.gif";

	imgCh[30] = new Image(),imgCh[30].src="image/menu/introduction.gif";
	imgCh[31] = new Image(),imgCh[31].src="image/menu/introduction_j.gif";
	imgCh[32] = new Image(),imgCh[32].src="image/menu/whats_ets.gif";
	imgCh[33] = new Image(),imgCh[33].src="image/menu/whats_ets_j.gif";
	imgCh[34] = new Image(),imgCh[34].src="image/menu/variety.gif";
	imgCh[35] = new Image(),imgCh[35].src="image/menu/variety_j.gif";
	imgCh[36] = new Image(),imgCh[36].src="image/menu/spec.gif";
	imgCh[37] = new Image(),imgCh[37].src="image/menu/spec_j.gif";
	imgCh[38] = new Image(),imgCh[38].src="image/menu/application.gif";
	imgCh[39] = new Image(),imgCh[39].src="image/menu/application_j.gif";
	imgCh[40] = new Image(),imgCh[40].src="image/menu/instructions.gif";
	imgCh[41] = new Image(),imgCh[41].src="image/menu/instructions_j.gif";
	imgCh[42] = new Image(),imgCh[42].src="image/menu/demo.gif";
	imgCh[43] = new Image(),imgCh[43].src="image/menu/demo_j.gif";
	imgCh[44] = new Image(),imgCh[44].src="image/menu/tools.gif";
	imgCh[45] = new Image(),imgCh[45].src="image/menu/tools_j.gif";
	imgCh[46] = new Image(),imgCh[46].src="image/menu/terms.gif";
	imgCh[47] = new Image(),imgCh[47].src="image/menu/terms_j.gif";
	imgCh[48] = new Image(),imgCh[48].src="image/menu/one_off.gif";
	imgCh[49] = new Image(),imgCh[49].src="image/menu/one_off_j.gif";

	imgCh[54] = new Image(),imgCh[54].src="image/actual_effect.gif";
	imgCh[55] = new Image(),imgCh[55].src="image/users_voice.gif";
	imgCh[56] = new Image(),imgCh[56].src="image/actual_effect.gif";
	imgCh[57] = new Image(),imgCh[57].src="image/users_voice.gif";
	imgCh[58] = new Image(),imgCh[58].src="image/application-2.gif";
	imgCh[59] = new Image(),imgCh[59].src="image/application_list.gif";
	imgCh[60] = new Image(),imgCh[60].src="monsters/monsters_castle_enter_off.gif";
	imgCh[61] = new Image(),imgCh[61].src="monsters/monsters_castle_enter_over.gif";

	imgCh[70] = new Image(),imgCh[70].src="image/menu/shop_howtobuy.gif";
	imgCh[71] = new Image(),imgCh[71].src="image/menu/shop_howtobuy_j.gif";
	imgCh[72] = new Image(),imgCh[72].src="image/menu/shop_howtopay.gif";
	imgCh[73] = new Image(),imgCh[73].src="image/menu/shop_howtopay_j.gif";
	imgCh[74] = new Image(),imgCh[74].src="image/menu/shop_postage.gif";
	imgCh[75] = new Image(),imgCh[75].src="image/menu/shop_postage_j.gif";
	imgCh[76] = new Image(),imgCh[76].src="image/menu/shop_cart.gif";
	imgCh[77] = new Image(),imgCh[77].src="image/menu/shop_cart_j.gif";

	imgCh[80] = new Image(),imgCh[80].src="image/ets_sm/sm_introduction.gif";
	imgCh[81] = new Image(),imgCh[81].src="image/ets_sm/sm_introduction_on.gif";
	imgCh[82] = new Image(),imgCh[82].src="image/ets_sm/sm_whatsets.gif";
	imgCh[83] = new Image(),imgCh[83].src="image/ets_sm/sm_whatsets_on.gif";
	imgCh[84] = new Image(),imgCh[84].src="image/ets_sm/sm_variety.gif";
	imgCh[85] = new Image(),imgCh[85].src="image/ets_sm/sm_variety_on.gif";
	imgCh[86] = new Image(),imgCh[86].src="image/ets_sm/sm_spec.gif";
	imgCh[87] = new Image(),imgCh[87].src="image/ets_sm/sm_spec_on.gif";
	imgCh[88] = new Image(),imgCh[88].src="image/ets_sm/sm_application.gif";
	imgCh[89] = new Image(),imgCh[89].src="image/ets_sm/sm_application_on.gif";
	imgCh[90] = new Image(),imgCh[90].src="image/ets_sm/sm_instructions.gif";
	imgCh[91] = new Image(),imgCh[91].src="image/ets_sm/sm_instructions_on.gif";
	imgCh[92] = new Image(),imgCh[92].src="image/ets_sm/sm_demo.gif";
	imgCh[93] = new Image(),imgCh[93].src="image/ets_sm/sm_demo_on.gif";
	imgCh[94] = new Image(),imgCh[94].src="image/ets_sm/sm_tools.gif";
	imgCh[95] = new Image(),imgCh[95].src="image/ets_sm/sm_tools_on.gif";	
	imgCh[96] = new Image(),imgCh[96].src="image/ets_sm/sm_terms.gif";
	imgCh[97] = new Image(),imgCh[97].src="image/ets_sm/sm_terms_on.gif";
	imgCh[98] = new Image(),imgCh[98].src="image/ets_sm/sm_oneoff.gif";
	imgCh[99] = new Image(),imgCh[99].src="image/ets_sm/sm_oneoff_on.gif";
	imgCh[100] = new Image(),imgCh[100].src="image/ets_sm/how_to_buy.gif";
	imgCh[101] = new Image(),imgCh[101].src="image/ets_sm/how_to_buy_on.gif";
	imgCh[102] = new Image(),imgCh[102].src="image/ets_sm/how_good.gif";
	imgCh[103] = new Image(),imgCh[103].src="image/ets_sm/how_good_on.gif";

}

/* ボタン画像の差し替え */
function chBttn(name,num){
	if(document.images)document.images[name].src = imgCh[num].src;
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

// フォーム送信してページを開く
function openpage_submit(w1){
	document.forms['fm'].action = w1;
	document.forms['fm'].submit();
}
// フォーム送信してページを開く3
function openpage_submit3(w3){
	document.forms['fm3'].action = w3;
	document.forms['fm3'].submit();
}
// ページの移動
function openpage(w1){
    var WO1;
    WO1=window.open(" ");
    WO1.location.href=w1;
}

//-->
