﻿// JavaScript Document
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_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_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 Get_Mail(name)
{
	var mail_info = 'mailto:' + name + '@' + 'j-com.co.jp';
	this.location.href = mail_info;
}

function step1_onmouseover() {
		document.getElementById('top_btn1').innerHTML='<a href="http://www.j-com.co.jp/biz/ketai/index.html" onmouseout="step1_onmouseout();"><img src="images/top_btn1act.gif"></a>';			
}
function step1_onmouseout() {
	document.getElementById('top_btn1').innerHTML='<a href="http://www.j-com.co.jp/biz/ketai/index.html" onmouseover="step1_onmouseover();"><img src="images/top_btn1.gif"></a>';	  
}
function step2_onmouseover() {
		document.getElementById('top_btn2').innerHTML='<a href="http://www.j-com.co.jp/biz/ketai/spec.html" onmouseout="step2_onmouseout();"><img src="images/top_btn2act.gif"></a>';			
}
function step2_onmouseout() {
	document.getElementById('top_btn2').innerHTML='<a href="http://www.j-com.co.jp/biz/ketai/spec.html" onmouseover="step2_onmouseover();"><img src="images/top_btn2.gif"></a>';	  
}
function step3_onmouseover() {
		document.getElementById('top_btn3').innerHTML='<a href="https://ssl.bmobile.ne.jp/contact/houjin_bmoba_siryo.html.php" onmouseout="step3_onmouseout();"><img src="images/top_btn3act.gif"></a>';			
}
function step3_onmouseout() {
	document.getElementById('top_btn3').innerHTML='<a href="https://ssl.bmobile.ne.jp/contact/houjin_bmoba_siryo.html.php" onmouseover="step3_onmouseover();"><img src="images/top_btn3.gif"></a>';	  
}
var path=document.location.href;
var file=path.substring(0,path.lastIndexOf('biz',path.length));
	
function left_menu_over(file,no) {  
  switch (no) {
	  case '1': no1='1on'; no2='2'; no3='3'; no4='4'; no5='5'; no6='6'; no7='7'; no8='8'; break;
		case '2': no1='1'; no2='2on'; no3='3'; no4='4'; no5='5'; no6='6'; no7='7'; no8='8'; break;
		case '3': no1='1'; no2='2'; no3='3on'; no4='4'; no5='5'; no6='6'; no7='7'; no8='8'; break;
		case '4': no1='1'; no2='2'; no3='3'; no4='4on'; no5='5'; no6='6'; no7='7'; no8='8'; break;
		case '5': no1='1'; no2='2'; no3='3'; no4='4'; no5='5on'; no6='6'; no7='7'; no8='8'; break;
		case '6': no1='1'; no2='2'; no3='3'; no4='4'; no5='5'; no6='6on'; no7='7'; no8='8'; break;
		case '7': no1='1'; no2='2'; no3='3'; no4='4'; no5='5'; no6='6'; no7='7on'; no8='8'; break;
		case '8': no1='1'; no2='2'; no3='3'; no4='4'; no5='5'; no6='6'; no7='7'; no8='8on'; break;
		default: no1='1on'; no2='2'; no3='3'; no4='4'; no5='5'; no6='6'; no7='7'; no8='8';		
	}
	document.getElementById('id_sm1').innerHTML='<img src="'+file+'biz2/images/sm'+no1+'.gif" width="180" height="30" onmouseout="left_menu_out(\''+file+'\',\'1\')" border="0" class="left_side_menu" alt="インフィニティケアについて">';
  document.getElementById('id_sm2').innerHTML='<img src="'+file+'biz2/images/sm'+no2+'.gif" width="180" height="23" onmouseout="left_menu_out(\''+file+'\',\'2\')" border="0" class="left_side_menu" alt="データ送信サービス">';
  document.getElementById('id_sm3').innerHTML='<img src="'+file+'biz2/images/sm'+no3+'.gif" width="180" height="22" onmouseout="left_menu_out(\''+file+'\',\'3\')" border="0" class="left_side_menu" alt="Central Policy">';
  document.getElementById('id_sm4').innerHTML='<img src="'+file+'biz2/images/sm'+no4+'.gif" width="180" height="22" onmouseout="left_menu_out(\''+file+'\',\'4\')" border="0" class="left_side_menu" alt="セキュア　PB">';
  document.getElementById('id_sm5').innerHTML='<img src="'+file+'biz2/images/sm'+no5+'.gif" width="180" height="24" onmouseout="left_menu_out(\''+file+'\',\'5\')" border="0" class="left_side_menu" alt="bモバイルBIZ">';
  document.getElementById('id_sm6').innerHTML='<img src="'+file+'biz2/images/sm'+no6+'.gif" width="180" height="22" onmouseout="left_menu_out(\''+file+'\',\'6\')" border="0" class="left_side_menu" alt="インフィニティケアグローバル">';
  document.getElementById('id_sm7').innerHTML='<img src="'+file+'biz2/images/sm'+no7+'.gif" width="180" height="26" onmouseout="left_menu_out(\''+file+'\',\'7\')" border="0" class="left_side_menu" alt="ビジネス携帯電話サービス">';
  document.getElementById('id_sm8').innerHTML='<img src="'+file+'biz2/images/sm'+no8+'.gif" width="180" height="29" onmouseout="left_menu_out(\''+file+'\',\'8\')" border="0" class="left_side_menu" alt="導入事例">';

}
function left_menu_out(file,no) {
	document.getElementById('id_sm1').innerHTML='<img src="'+file+'biz/images/sm1.gif" width="180" height="30" onmouseover="left_menu_over(\''+file+'\',\'1\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm2').innerHTML='<img src="'+file+'biz/images/sm2.gif" width="180" height="23" onmouseover="left_menu_over(\''+file+'\',\'2\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm3').innerHTML='<img src="'+file+'biz/images/sm3.gif" width="180" height="22" onmouseover="left_menu_over(\''+file+'\',\'3\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm4').innerHTML='<img src="'+file+'biz/images/sm4.gif" width="180" height="22" onmouseover="left_menu_over(\''+file+'\',\'4\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm5').innerHTML='<img src="'+file+'biz/images/sm5.gif" width="180" height="24" onmouseover="left_menu_over(\''+file+'\',\'5\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm6').innerHTML='<img src="'+file+'biz/images/sm6.gif" width="180" height="22" onmouseover="left_menu_over(\''+file+'\',\'6\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm7').innerHTML='<img src="'+file+'biz/images/sm7.gif" width="180" height="26" onmouseover="left_menu_over(\''+file+'\',\'7\')" border="0" class="left_side_menu">';
  document.getElementById('id_sm8').innerHTML='<img src="'+file+'biz/images/sm8.gif" width="180" height="29" onmouseover="left_menu_over(\''+file+'\',\'8\')" border="0" class="left_side_menu">';
}
function i_onmouseover(n) {
	var no;
	if(n=='3') {
		no='45';
	}
	else {
		no='44';
	}
	document.getElementById('id_i'+n).innerHTML='<div style="background-image:url(/biz/images/i'+n+'on.gif); width:138px; height:'+no+'px;" onmouseout="i_onmouseout('+n+');"></div>';
}
function i_onmouseout(n) {
	var no;
	if(n=='3') {
		no='45';
	}
	else {
		no='44';
	}
	document.getElementById('id_i'+n).innerHTML='<div style="background-image:url(/biz/images/i'+n+'.gif); width:138px; height:'+no+'px;" onmouseover="i_onmouseover('+n+');"></div>';	
}

