﻿
//タブ画像フォルダのパス
var tabPath = '/med/jp/Image/01TopPage/images/';

var nowMenu = 'message';

/****************************************************************
  関数名：App_ftab_Hnko
  引数１：メニュー項目
  引数２：製品情報改訂BodyID
  引数３：メッセージBodyID
  戻り値：なし
  用途　：タブの表示変更
****************************************************************/
function App_ftab_Hnko(App_p_SlctMenu,seihKaitBodyID,messageBodyID){
  
  //現在選択中のタブがクリックされた場合、何もしないで戻る
  if(nowMenu == App_p_SlctMenu){
    return false;
  }
  
  else{
    
    
    //製品情報改訂
    if(App_p_SlctMenu == 'seihinkaitei'){
      document.getElementById('App_btnSeihKait').style.background = 'url(' + tabPath + 'tab_basic_ac.gif)';
      document.getElementById('App_btnSeihKait').style.cursor = 'default';
      document.getElementById('App_imgRssSeihKait').src = tabPath + 'tab_in_rss_ac.gif';
      document.getElementById('App_rssSeihKait').style.top = '12px'
      document.getElementById(seihKaitBodyID).style.display="inline";
      seihKait();
      nowMenu = App_p_SlctMenu;
    }else{
      document.getElementById('App_btnSeihKait').style.background = 'url(' + tabPath + 'tab_basic.gif)';
      document.getElementById('App_btnSeihKait').style.cursor = 'pointer';
      document.getElementById('App_imgRssSeihKait').src = tabPath + 'tab_in_rss.gif';
      document.getElementById('App_rssSeihKait').style.top = '14px'
      document.getElementById(seihKaitBodyID).style.display="none";
    }
    
    //メッセージ
    if(App_p_SlctMenu == 'message'){
      document.getElementById('App_btnMsg').style.background = 'url(' + tabPath + 'tab_message_ac.gif)';
      document.getElementById('App_btnMsg').style.cursor = 'default';
      document.getElementById('App_imgRssMsg').src = tabPath + 'tab_in_rss_ac.gif';
      document.getElementById('App_rssMsg').style.top = '12px'
      document.getElementById(messageBodyID).style.display="inline";
      nowMenu = App_p_SlctMenu;
    }else{
      document.getElementById('App_btnMsg').style.background = 'url(' + tabPath + 'tab_message.gif)';
      document.getElementById('App_btnMsg').style.cursor = 'pointer';
      document.getElementById('App_imgRssMsg').src = tabPath + 'tab_in_rss.gif';
      document.getElementById('App_rssMsg').style.top = '14px'
      document.getElementById(messageBodyID).style.display="none";
    }
  }
  
}


