//------------------------------//
//  JavaScript menu Ver.2       //
//  Bandai Visual               //
//  by A.K (2003/07/29)         //
//------------------------------//

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function hl(){
	koko=location.href;
	bool=koko.indexOf("#",0);
	if(bool != -1){
		num=koko.split("#");
		obj=document.all("lay" + num[1]);
		obj.style.backgroundColor = "#eeeeee";
	}
}

function pre(){
	MM_preloadImages(
	'/e/menu/home_on.gif',
	'/e/menu/home.gif',
	'/e/menu/about.gif',
	'/e/menu/about_on.gif',
	/*
	'/e/menu/ir.gif',
	'/e/menu/ir_on.gif',
	*/
	'/e/menu/faq.gif',
	'/e/menu/faq_on.gif',
	'/e/menu/disclaimer.gif',
	'/e/menu/disclaimer_on.gif',
	'/e/menu/map.gif',
	'/e/menu/map_on.gif',
	'/e/menu/about_top_on.gif',
	'/e/menu/about_profile_on.gif',
	'/e/menu/about_history_on.gif',
	'/e/menu/about_business_on.gif',
	'/e/menu/about_titles_on.gif',
	
	'/e/menu/ir_contact_on.gif',
	'/e/menu/ir_press_on.gif'
	/*
	'/e/menu/ir_financials_on.gif',
	'/e/menu/ir_stock_on.gif',
	'/e/menu/ir_cal_on.gif',
	'/e/menu/ir_contact_on.gif',
	'/e/menu/ir_press_on.gif'
	*/
	);
	}
	
	function menu_write(num1,num2){
	loc = new Array();
	/*
	loc[0]="";
	loc[1]="home";
	loc[2]="about";
	loc[3]="ir";
	loc[4]="faq";
	loc[5]="disclaimer";
	loc[6]="map";
	*/
	
	loc[0]="";
	loc[1]="home";
	loc[2]="about";
	loc[3]="ir";
	loc[4]="faq";
	loc[5]="disclaimer";
	loc[6]="map";
	
	for(r=0;r<loc.length;r++){
		if(r==num1){
		loc[r] += "_on";
		}
	}
	
	
	visi = new Array();
	visi[0]="";
	visi[1]="hidden";
	visi[2]="hidden";
	visi[3]="hidden";
	visi[4]="hidden";
	visi[5]="hidden";
	visi[6]="hidden";
	
	for(r=0;r<visi.length;r++){
		if(r==num1){
		visi[r] = "visible";
		}
	}
	
	loc2 = new Array();
	loc2[0]="";
	loc2[1]="about_top";
	loc2[2]="about_profile";
	loc2[3]="about_history";
	loc2[4]="about_business";
	loc2[5]="about_titles";
	loc2[6]="ir_contact";
	
	/*
	loc2[6]="ir_financials";
	loc2[7]="ir_stock";
	loc2[8]="ir_cal";
	loc2[9]="ir_contact";
	loc2[10]="ir_press";
	*/
	
	for(r=0;r<loc2.length;r++){
		if(r==num2){
		loc2[r] += "_on";
		}
	}
	
	document.write("<table width=\"100%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("  <tr> ");
	document.write("    <td background=\"/e/menu/menu_bg.gif\">");
	document.write("<table width=\"612\" height=\"110\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
	
	// Japanese
	document.write("        <tr> ");
	document.write("          <td height=\"56\" colspan=\"4\" rowspan=\"2\"><a name=\"top\"></a><img name=\"menu3_r1_c1\" src=\"/e/menu/bv_logo.gif\" width=\"349\" height=\"56\" border=\"0\" alt=\"\"></td>");
	document.write("          <td height=\"26\"><br></td>");
	document.write("          <td height=\"26\"><a href=\"/\"><img name=\"menu3_r1_c7\" src=\"/e/menu/etc_jp.gif\" width=\"102\" height=\"26\" border=\"0\" alt=\"\"></a></td>");
	document.write("        </tr>");
	document.write("        <tr>");
	document.write("          <td height=\"30\"><img name=\"menu3_r2_c5\" src=\"/e/menu/white.gif\" width=\"102\" height=\"30\" border=\"0\" alt=\"\"></td>");
	document.write("          <td height=\"30\"><img name=\"menu3_r2_c5\" src=\"/e/menu/white.gif\" width=\"102\" height=\"30\" border=\"0\" alt=\"\"></td>");
	document.write("        </tr>");
	document.write("        <tr> ");
	
	
	// home
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/index.html\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home_on.gif','menu3_r3_c2','','/e/menu/about.gif','menu3_r3_c3','','/e/menu/ir.gif','menu3_r3_c4','','/e/menu/faq.gif','menu3_r3_c5','','/e/menu/disclaimer.gif','menu3_r3_c6','','/e/menu/map.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','show','com','','hide','ir','','hide','press','','hide','disclaimer','','hide','map','','hide','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c1\" src=\"/e/menu/");
	document.write(loc[1]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	
	
	// 会社案内
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/about/\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home.gif','menu3_r3_c2','','/e/menu/about_on.gif','menu3_r3_c3','','/e/menu/ir.gif','menu3_r3_c4','','/e/menu/faq.gif','menu3_r3_c5','','/e/menu/disclaimer.gif','menu3_r3_c6','','/e/menu/map.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','hide','com','','show','ir','','hide','press','','hide','disclaimer','','hide','map','','hide','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c2\" src=\"/e/menu/");
	document.write(loc[2]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	
	
	// ＩＲ情報
	/*
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/ir/\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home.gif','menu3_r3_c2','','/e/menu/about.gif','menu3_r3_c3','','/e/menu/ir_on.gif','menu3_r3_c4','','/e/menu/faq.gif','menu3_r3_c5','','/e/menu/disclaimer.gif','menu3_r3_c6','','/e/menu/map.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','hide','com','','hide','ir','','show','press','','hide','disclaimer','','hide','map','','hide','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c3\" src=\"/e/menu/");
	document.write(loc[3]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	*/
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/ir/press.html\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home.gif','menu3_r3_c2','','/e/menu/about.gif','menu3_r3_c3','','/e/menu/ir_on.gif','menu3_r3_c4','','/e/menu/faq.gif','menu3_r3_c5','','/e/menu/disclaimer.gif','menu3_r3_c6','','/e/menu/map.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','hide','com','','hide','ir','','show','press','','hide','disclaimer','','hide','map','','hide','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c3\" src=\"/e/menu/");
	document.write(loc[3]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	
	
	// プレスリリース
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/faq/\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home.gif','menu3_r3_c2','','/e/menu/about.gif','menu3_r3_c3','','/e/menu/ir.gif','menu3_r3_c4','','/e/menu/faq_on.gif','menu3_r3_c5','','/e/menu/disclaimer.gif','menu3_r3_c6','','/e/menu/map.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','hide','com','','hide','ir','','hide','press','','show','disclaimer','','hide','map','','hide','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c4\" src=\"/e/menu/");
	document.write(loc[4]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	
	
	// リクルート
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/disclaimer.html\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home.gif','menu3_r3_c2','','/e/menu/about.gif','menu3_r3_c3','','/e/menu/ir.gif','menu3_r3_c4','','/e/menu/faq.gif','menu3_r3_c5','','/e/menu/disclaimer_on.gif','menu3_r3_c6','','/e/menu/map.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','hide','com','','hide','ir','','hide','press','','hide','disclaimer','','show','map','','hide','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c5\" src=\"/e/menu/");
	document.write(loc[5]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	
	
	// 商品情報
	document.write("<td height=\"27\">");
	document.write("<a href=\"/e/map.html\" onMouseOver=\"MM_swapImage('menu3_r3_c1','','/e/menu/home.gif','menu3_r3_c2','','/e/menu/about.gif','menu3_r3_c3','','/e/menu/ir.gif','menu3_r3_c4','','/e/menu/faq.gif','menu3_r3_c5','','/e/menu/disclaimer.gif','menu3_r3_c6','','/e/menu/map_on.gif','menu3_r3_c7','','/e/menu/shop.gif',1);");
	document.write(" MM_showHideLayers('home','','hide','com','','hide','ir','','hide','press','','hide','disclaimer','','hide','map','','show','shop','','hide')\">");
	document.write("<img name=\"menu3_r3_c6\" src=\"/e/menu/");
	document.write(loc[6]);
	document.write(".gif\" width=\"102\" height=\"27\" border=\"0\" alt=\"\"></a>");
	document.write("</td>");
	
	document.write("        </tr>");
	document.write("        <tr> ");
	
	
	// sub_HOME //
	document.write("          <td height=\"27\" colspan=\"7\"><div style=\"position:absolute; width:612px; height:27px; top: 83px;\">");
	document.write("<div id=\"home\" style=\"position:absolute; width:612px; height:27px; z-index:1; visibility:");
	document.write(visi[1]);
	document.write(";\">");
	document.write("<img src=\"/e/menu/sub_bar.gif\" width=\"102\" height=\"27\">");
	document.write("</div>");
	
	
	// sub_ABOUT //
	document.write("<div id=\"com\" style=\"position:absolute; width:612px; height:27px; z-index:2; visibility:");
	document.write(visi[2]);
	document.write(";\">");
	document.write("<a href=\"/e/about/\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('com1','','/e/menu/about_top_on.gif',1)\">");
	document.write("<img src=\"/e/menu/");
	document.write(loc2[1]);// ---- //
	document.write(".gif\" name=\"com1\" width=\"102\" height=\"27\" border=\"0\"></a>");
	document.write("<a href=\"/e/about/profile.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('com2','','/e/menu/about_profile_on.gif',1)\">");
	document.write("<img name=\"com2\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[2]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	document.write("<a href=\"/e/about/history.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('com3','','/e/menu/about_history_on.gif',1)\">");
	document.write("<img name=\"com3\" border=\"0\" src=\"/e/menu/")
	document.write(loc2[3]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	document.write("<a href=\"/e/about/business.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('com4','','/e/menu/about_business_on.gif',1)\">");
	document.write("<img name=\"com4\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[4]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	document.write("<a href=\"/e/about/titles.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('com5','','/e/menu/about_titles_on.gif',1)\">");
	document.write("<img name=\"com5\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[5]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	
	document.write("<a href=\"/e/ir/contact.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('com6','','/e/menu/ir_contact_on.gif',1)\">");
	document.write("<img name=\"com6\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[6]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	
	document.write("</div>");
	
	
	// sub_IR //
	/*
	document.write("<div id=\"ir\" style=\"position:absolute; width:612px; height:27px; z-index:3; visibility:");
	document.write(visi[3]);
	document.write(";\">");
	
	document.write("<a href=\"/e/ir/press.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('ir5','','/e/menu/ir_press_on.gif',1)\">");
	document.write("<img name=\"ir5\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[10]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	
	document.write("<a href=\"/e/ir/\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('ir1','','/e/menu/ir_financials_on.gif',1)\">");
	document.write("<img name=\"ir1\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[6]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	
	document.write("<a href=\"/e/ir/stock.html\" onMouseOver=\"MM_swapImage('ir2','','/e/menu/ir_stock_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\">");
	document.write("<img name=\"ir2\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[7]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	document.write("<a href=\"/e/ir/calendar.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('ir3','','/e/menu/ir_cal_on.gif',1)\">");
	document.write("<img name=\"ir3\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[8]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	document.write("<a href=\"/e/ir/contact.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('ir4','','/e/menu/ir_contact_on.gif',1)\">");
	document.write("<img name=\"ir4\" border=\"0\" src=\"/e/menu/");
	document.write(loc2[9]);// ---- //
	document.write(".gif\" width=\"102\" height=\"27\"></a>");
	document.write("</div>");
	*/
	// sub_PressRelease //
	document.write("<div id=\"ir\" style=\"position:absolute; width:612px; height:27px; z-index:3; visibility:");
	document.write(visi[3]);
	document.write(";\">");
	document.write("<img src=\"/e/menu/sub_bar.gif\" width=\"102\" height=\"27\">");
	document.write("</div>");
	
	
	// sub_FAQ //
	document.write("<div id=\"press\" style=\"position:absolute; width:612px; height:27px; z-index:4; visibility:");
	document.write(visi[4]);
	document.write(";\">");
	document.write("<img src=\"/e/menu/sub_bar.gif\" width=\"102\" height=\"27\">");
	document.write("</div>");
	
	
	// sub_DISCLAIMER //
	document.write("<div id=\"disclaimer\" style=\"position:absolute; width:612px; height:27px; z-index:5; visibility:");
	document.write(visi[5]);
	document.write(";\">");
	document.write("<img src=\"/e/menu/sub_bar.gif\" width=\"102\" height=\"27\">");
	document.write("</div>");
	
	
	// sub_map //
	document.write("<div id=\"map\" style=\"position:absolute; width:612px; height:27px; z-index:6; visibility:");
	document.write(visi[6]);
	document.write(";\">");
	document.write("<img src=\"/e/menu/sub_bar.gif\" width=\"102\" height=\"27\">");
	document.write("</div>");
	
	
	
	document.write("            </div></td>");
	document.write("        </tr>");
	document.write("      </table>");
	document.write("    </td>");
	document.write("  </tr>");
	document.write("</table>");
	
	document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("  <tr> ");
	document.write("    <td height=\"16\" background=\"/e/menu/up_bg.gif\"><img src=\"/e/menu/up_bg.gif\" width=\"16\" height=\"26\"></td>");
	document.write("  </tr>");
	document.write("</table>");
	
}

