//* 共通分

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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 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_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var pop1;
function MM_openBrWindowEX(theURL) { //v2.0 拡大写真表示用
  pop1 = window.open(theURL,'expand','status=yes,scrollbars=yes,resizable=yes,width=880,height=660');
  pop1.focus();
}

var pop2;
function MM_openBrWindowKiyaku(theURL) { //v2.0
  pop2 = window.open(theURL,'kiyaku','status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=580,height=600');
  pop2.focus();
}


function MM_DisplayLayers() { //v6.0
  var i,p,v,obj,args=MM_DisplayLayers.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=='s')?'block':(v=='h')?'none':v; }
    obj.display=v; }
}


// カスタム
function MM_goPageTop() {
  window.scrollTo(0,0);
}

function MM_POProot() {
  if (top.opener){
    (window.open('','_top').opener=top).close();
  } else {
    location.href = "/";
  }
}


// 共通コンポーネント表示用

var url = document.URL.toLowerCase();
var urls = url.split("/");
var dir,sdir,sbdir,flg;
var baseurl = "http://e-kazoku.net";

if(url.indexOf("https://")>=0){
    flg = true;
} else {
    flg = false;
}
if(urls.length>=4){
    dir = urls[3];
} else {
    dir = "";
}
if(urls.length>=5){
    sdir = urls[4];
} else {
    sdir = "";
}
//alert("dir="+dir+"\nsdir="+sdir+"\nflg="+flg);


function DispGnavi(indexflg) {
var html = '    <!-- grobal navi -->';
   html += '    <ul id="unavi">';
 if(flg){
   html += '      <li><a href="'+baseurl+'/" onmouseover="MM_swapImage(\'gnhome\',\'\',\'/common/images/gn_home_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_home.gif" alt="ホーム" name="gnhome" width="106" height="36" id="gnhome" /></a></li>';
   html += '      <li><a href="'+baseurl+'/kazokunp/" onmouseover="MM_swapImage(\'gnnp\',\'\',\'/common/images/gn_np_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_np.gif" alt="家族新聞" name="gnnp" width="118" height="36" id="gnnp" /></a></li>';
   html += '      <li><a href="http://help.e-kazoku.net/" onmouseover="MM_swapImage(\'gnshahoqa\',\'\',\'/common/images/gn_shahoqa_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_shahoqa.gif" alt="社会保障Q&amp;A" name="gnshahoqa" width="138" height="36" id="gnshahoqa" /></a></li>';
   html += '      <li><a href="'+baseurl+'/kouryouhi/" onmouseover="MM_swapImage(\'gnshaho\',\'\',\'/common/images/gn_shaho_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_shaho.gif" alt="高額療養・介護費、医療費控除支援費（社会保障徹底活用）" name="gnshaho" width="154" height="36" id="gnshaho" /></a></li>';
   html += '      <li><a href="'+baseurl+'/topics/" onmouseover="MM_swapImage(\'gnnews\',\'\',\'/common/images/gn_news_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_news.gif" alt="新着情報" name="gnnews" width="104" height="36" id="gnnews" /></a></li>';
   html += '      <li><a href="'+baseurl+'/opinion/" onmouseover="MM_swapImage(\'gnreq\',\'\',\'/common/images/gn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_req.gif" alt="ご意見一覧" name="gnreq" width="109" height="36" id="gnreq" /></a></li>';
   html += '      <li><a href="'+baseurl+'/faq/" onmouseover="MM_swapImage(\'gnfaq\',\'\',\'/common/images/gn_faq_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_faq.gif" alt="ご質問・回答一覧" name="gnfaq" width="147" height="36" id="gnfaq" /></a></li>';
 } else {
  if(dir==""||dir=="index.asp"){
   html += '      <li><img src="/common/images/gn_home_over.gif" alt="ホーム" name="gnhome" width="106" height="36" id="gnhome" /></li>';
  } else {
   html += '      <li><a href="/" onmouseover="MM_swapImage(\'gnhome\',\'\',\'/common/images/gn_home_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_home.gif" alt="ホーム" name="gnhome" width="106" height="36" id="gnhome" /></a></li>';
  }
  if(dir=="kazokunp"){
   html += '      <li><img src="/common/images/gn_np_over.gif" alt="家族新聞" name="gnnp" width="118" height="36" id="gnnp" /></li>';
  } else {
   html += '      <li><a href="/kazokunp/" onmouseover="MM_swapImage(\'gnnp\',\'\',\'/common/images/gn_np_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_np.gif" alt="家族新聞" name="gnnp" width="118" height="36" id="gnnp" /></a></li>';
  }
   html += '      <li><a href="http://help.e-kazoku.net/" onmouseover="MM_swapImage(\'gnshahoqa\',\'\',\'/common/images/gn_shahoqa_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_shahoqa.gif" alt="社会保障Q&amp;A" name="gnshahoqa" width="138" height="36" id="gnshahoqa" /></a></li>';
   html += '      <li><a href="/kouryouhi/" onmouseover="MM_swapImage(\'gnshaho\',\'\',\'/common/images/gn_shaho_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_shaho.gif" alt="高額療養・介護費、医療費控除支援費（社会保障徹底活用）" name="gnshaho" width="154" height="36" id="gnshaho" /></a></li>';
  if(dir=="news"||dir=="topics"){
   html += '      <li><img src="/common/images/gn_news_over.gif" alt="新着情報" name="gnnews" width="104" height="36" id="gnnews" /></li>';
  } else {
   html += '      <li><a href="/topics/" onmouseover="MM_swapImage(\'gnnews\',\'\',\'/common/images/gn_news_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_news.gif" alt="新着情報" name="gnnews" width="104" height="36" id="gnnews" /></a></li>';
  }
  if(dir=="opinion"){
   html += '      <li><img src="/common/images/gn_req_over.gif" alt="ご意見一覧" name="gnreq" width="109" height="36" id="gnreq" /></li>';
  } else {
   html += '      <li><a href="/opinion/" onmouseover="MM_swapImage(\'gnreq\',\'\',\'/common/images/gn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_req.gif" alt="ご意見一覧" name="gnreq" width="109" height="36" id="gnreq" /></a></li>';
  }
  if(dir=="faq"){
   html += '      <li><img src="/common/images/gn_faq_over.gif" alt="ご質問・回答一覧" name="gnfaq" width="147" height="36" id="gnfaq" /></li>';
  } else {
   html += '      <li><a href="/faq/" onmouseover="MM_swapImage(\'gnfaq\',\'\',\'/common/images/gn_faq_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/gn_faq.gif" alt="ご質問・回答一覧" name="gnfaq" width="147" height="36" id="gnfaq" /></a></li>';
  }
 }
   html += '    </ul>';
   document.write(html);
}

function DispTopnavi(indexflg) {
var html = '            <ul id="bf" style="float:right;">';

if(dir=="auth"){
} else {
 if(flg){
   html += '              <li><a href="'+baseurl+'/target/23.asp" onmouseover="MM_swapImage(\'bf01\',\'\',\'/common/images/bf_23_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_23.gif" alt="赤ちゃんのママ・パパの方へ" name="bf01" width="156" height="28" id="bf01" /></a></li>';
   html += '              <li><a href="'+baseurl+'/target/56.asp" onmouseover="MM_swapImage(\'bf02\',\'\',\'/common/images/bf_56_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_56.gif" alt="お孫さんの祖父・祖母の方へ" name="bf02" width="158" height="28" id="bf02" /></a></li>';
   html += '              <li><a href="'+baseurl+'/target/company.asp" onmouseover="MM_swapImage(\'bf03\',\'\',\'/common/images/bf_cp_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_cp.gif" alt="企業の方へ" name="bf03" width="62" height="28" id="bf03" /></a></li>';
   html += '              <li><a href="'+baseurl+'/target/medical.asp" onmouseover="MM_swapImage(\'bf04\',\'\',\'/common/images/bf_med_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_med.gif" alt="医療介護分野の方へ" name="bf04" width="114" height="28" id="bf04" /></a></li>';
   html += '              <li><a href="'+baseurl+'/target/region.asp" onmouseover="MM_swapImage(\'bf05\',\'\',\'/common/images/bf_ti_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_ti.gif" alt="地域活動参加の方へ" name="bf05" width="114" height="28" id="bf05" /></a></li>';
 } else {
  if(dir=="target"&&sdir=="23.asp"){
   html += '              <li><a href="/target/23.asp"><img src="/common/images/bf_23_over.gif" alt="赤ちゃんのママ・パパの方へ" name="bf01" width="156" height="28" id="bf01" /></a></li>';
  } else {
   html += '              <li><a href="/target/23.asp" onmouseover="MM_swapImage(\'bf01\',\'\',\'/common/images/bf_23_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_23.gif" alt="赤ちゃんのママ・パパの方へ" name="bf01" width="156" height="28" id="bf01" /></a></li>';
  }
  if(dir=="target"&&sdir=="56.asp"){
   html += '              <li><a href="/target/56.asp"><img src="/common/images/bf_56_over.gif" alt="お孫さんの祖父・祖母の方へ" name="bf02" width="158" height="28" id="bf02" /></a></li>';
  } else {
   html += '              <li><a href="/target/56.asp" onmouseover="MM_swapImage(\'bf02\',\'\',\'/common/images/bf_56_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_56.gif" alt="お孫さんの祖父・祖母の方へ" name="bf02" width="158" height="28" id="bf02" /></a></li>';
  }
  if(dir=="target"&&sdir=="company.asp"){
   html += '              <li><a href="/target/company.asp"><img src="/common/images/bf_cp_over.gif" alt="企業の方へ" name="bf03" width="62" height="28" id="bf03" /></a></li>';
  } else {
   html += '              <li><a href="/target/company.asp" onmouseover="MM_swapImage(\'bf03\',\'\',\'/common/images/bf_cp_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_cp.gif" alt="企業の方へ" name="bf03" width="62" height="28" id="bf03" /></a></li>';
  }
  if(dir=="target"&&sdir=="medical.asp"){
   html += '              <li><a href="/target/medical.asp"><img src="/common/images/bf_med_over.gif" alt="医療介護分野の方へ" name="bf04" width="114" height="28" id="bf04" /></a></li>';
  } else {
   html += '              <li><a href="/target/medical.asp" onmouseover="MM_swapImage(\'bf04\',\'\',\'/common/images/bf_med_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_med.gif" alt="医療介護分野の方へ" name="bf04" width="114" height="28" id="bf04" /></a></li>';
  }
  if(dir=="target"&&sdir=="region.asp"){
   html += '              <li><a href="/target/region.asp"><img src="/common/images/bf_ti_over.gif" alt="地域活動参加の方へ" name="bf05" width="114" height="28" id="bf05" /></a></li>';
  } else {
   html += '              <li><a href="/target/region.asp" onmouseover="MM_swapImage(\'bf05\',\'\',\'/common/images/bf_ti_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/bf_ti.gif" alt="地域活動参加の方へ" name="bf05" width="114" height="28" id="bf05" /></a></li>';
  }
 }
}
   html += '            </ul>';
   document.write(html);
}

//初期版
function DispSubnaviDef(indexflg) {
var html = '       <!-- sub navi -->';

   html += '       <ul id="mn">';
 if(dir=="aisatsu"){
   html += '         <li><a href="/aisatsu/"><img src="/common/images/mn_aisatsu_over.gif" alt="ごあいさつ" name="mn1" width="225" height="45" id="mn1"></a></li>';
 } else {
   html += '         <li><a href="/aisatsu/" onmouseover="MM_swapImage(\'mn1\',\'\',\'/common/images/mn_aisatsu_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_aisatsu.gif" alt="ごあいさつ" name="mn1" width="225" height="45" id="mn1"></a></li>';
 }
 if(dir=="edoukyo"){
   html += '         <li><a href="/edoukyo/"><img src="/common/images/mn_edou_over.gif" alt="遠居でもe-同居、毎朝顔を見て、「おはよう！」" name="mn2" width="225" height="45" id="mn2"></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbtop" width="225" height="6" id="mnsbtop"></li>';
  if(sdir=="sub1.asp"){
   html += '         <li><a href="/edoukyo/sub1.asp"><img src="/common/images/mn_sb_edou1_over.gif" alt="孫誕生は家族の絆を強める最大のチャンス" name="mnsbedou1" width="225" height="34" id="mnsbedou1"></a></li>';
  } else {
   html += '         <li><a href="/edoukyo/sub1.asp" onmouseover="MM_swapImage(\'mnsb1\',\'\',\'/common/images/mn_sb_edou1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou1.gif" alt="孫誕生は家族の絆を強める最大のチャンス" name="mnsb1" width="225" height="34" id="mnsb1"></a></li>';
  }
  if(sdir=="sub2.asp"){
   html += '         <li><a href="/edoukyo/sub2.asp"><img src="/common/images/mn_sb_edou2_over.gif" alt="遠居でもe-同居「大家族」ネット+テレビ・・・夢" name="mnsbedou2" width="225" height="34" id="mnsbedou2"></a></li>';
  } else {
   html += '         <li><a href="/edoukyo/sub2.asp" onmouseover="MM_swapImage(\'mnsb2\',\'\',\'/common/images/mn_sb_edou2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou2.gif" alt="遠居でもe-同居「大家族」ネット+テレビ・・・夢" name="mnsb2" width="225" height="34" id="mnsb2"></a></li>';
  }
  if(sdir=="sub3.asp"){
   html += '         <li><a href="/edoukyo/sub3.asp"><img src="/common/images/mn_sb_edou3_over.gif" alt="ネット+テレビ最新情報" name="mnsbedou3" width="225" height="34" id="mnsbedou3"></a></li>';
  } else {
   html += '         <li><a href="/edoukyo/sub3.asp" onmouseover="MM_swapImage(\'mnsb3\',\'\',\'/common/images/mn_sb_edou3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou3.gif" alt="ネット+テレビ最新情報" name="mnsb3" width="225" height="34" id="mnsb3"></a></li>';
  }
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbend" width="225" height="11" id="mnsbend"></li>';
 } else {
   html += '         <li><a href="/edoukyo/" onmouseover="MM_swapImage(\'mn2\',\'\',\'/common/images/mn_edou_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_edou.gif" alt="遠居でもe-同居、毎朝顔を見て、「おはよう！」" name="mn2" width="225" height="45" id="mn2"></a></li>';
 }
 if(dir=="baby-mago"){
   html += '         <li><a href="/baby-mago/"><img src="/common/images/mn_growth_over.gif" alt="赤ちゃん（孫）と発達" name="mn3" width="225" height="45" id="mn3"></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbtop" width="225" height="6" id="mnsbtop"></li>';
  if(sdir=="sub1.asp"){
   html += '         <li><a href="/baby-mago/sub1.asp"><img src="/common/images/mn_sb_ma1_over.gif" alt="０ヵ月から発達サポート・・・世界の医学情報" name="mnsbma1" width="225" height="34" id="mnsbma1"></a></li>';
  } else {
   html += '         <li><a href="/baby-mago/sub1.asp" onmouseover="MM_swapImage(\'mnsb1\',\'\',\'/common/images/mn_sb_ma1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma1.gif" alt="０ヵ月から発達サポート・・・世界の医学情報" name="mnsb1" width="225" height="34" id="mnsb1"></a></li>';
  }
  if(sdir=="sub2.asp"){
   html += '         <li><a href="/baby-mago/sub2.asp"><img src="/common/images/mn_sb_ma2_over.gif" alt="世界の発達医学センター実現と瀬川昌也医師" name="mnsbma2" width="225" height="34" id="mnsbma2"></a></li>';
  } else {
   html += '         <li><a href="/baby-mago/sub2.asp" onmouseover="MM_swapImage(\'mnsb2\',\'\',\'/common/images/mn_sb_ma2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma2.gif" alt="世界の発達医学センター実現と瀬川昌也医師" name="mnsb2" width="225" height="34" id="mnsb2"></a></li>';
  }
  if(sdir=="sub3.asp"){
   html += '         <li><a href="/baby-mago/sub3.asp"><img src="/common/images/mn_sb_ma3_over.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbma3" width="225" height="34" id="mnsbma3"></a></li>';
  } else {
   html += '         <li><a href="/baby-mago/sub3.asp" onmouseover="MM_swapImage(\'mnsb3\',\'\',\'/common/images/mn_sb_ma3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma3.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsb3" width="225" height="34" id="mnsb3"></a></li>';
  }
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbend" width="225" height="11" id="mnsbend"></li>';
 } else {
   html += '         <li><a href="/baby-mago/" onmouseover="MM_swapImage(\'mn3\',\'\',\'/common/images/mn_growth_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_growth.gif" alt="赤ちゃん（孫）と発達" name="mn3" width="225" height="45" id="mn3"></a></li>';
 }
 if(dir=="familynet"){
   html += '         <li><a href="/familynet/"><img src="/common/images/mn_enkyori_over.gif" alt="ファミリーねっと −家族の継続−" name="mn4" width="225" height="45" id="mn4"></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbtop" width="225" height="6" id="mnsbtop"></li>';
  if(sdir=="sub1.asp"){
   html += '         <li><a href="/familynet/sub1.asp"><img src="/common/images/mn_sb_fa1_over.gif" alt="家族・一族コミュニケーション（ネット＋テレビ）" name="mnsbfa1" width="225" height="34" id="mnsbfa1"></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub1.asp" onmouseover="MM_swapImage(\'mnsb1\',\'\',\'/common/images/mn_sb_fa1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa1.gif" alt="家族・一族コミュニケーション（ネット＋テレビ）" name="mnsb1" width="225" height="34" id="mnsb1"></a></li>';
  }
  if(sdir=="sub2.asp"){
   html += '         <li><a href="/familynet/sub2.asp"><img src="/common/images/mn_sb_fa2_over.gif" alt="「発達医学」医師・医療機関情報" name="mnsbfa2" width="225" height="34" id="mnsbfa2"></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub2.asp" onmouseover="MM_swapImage(\'mnsb2\',\'\',\'/common/images/mn_sb_fa2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa2.gif" alt="「発達医学」医師・医療機関情報" name="mnsb2" width="225" height="34" id="mnsb2"></a></li>';
  }
  if(sdir=="sub3.asp"){
   html += '         <li><a href="/familynet/sub3.asp"><img src="/common/images/mn_sb_fa3_over.gif" alt="家族新聞・社会保障徹底活用" name="mnsbfa3" width="225" height="34" id="mnsbfa3"></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub3.asp" onmouseover="MM_swapImage(\'mnsb3\',\'\',\'/common/images/mn_sb_fa3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa3.gif" alt="家族新聞・社会保障徹底活用" name="mnsb3" width="225" height="34" id="mnsb3"></a></li>';
  }
  if(sdir=="sub4.asp"){
   html += '         <li><a href="/familynet/sub4.asp"><img src="/common/images/mn_sb_fa4_over.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbfa4" width="225" height="34" id="mnsbfa4"></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub4.asp" onmouseover="MM_swapImage(\'mnsb4\',\'\',\'/common/images/mn_sb_fa4_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa4.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsb4" width="225" height="34" id="mnsb4"></a></li>';
  }
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbend" width="225" height="11" id="mnsbend"></li>';
 } else {
   html += '         <li><a href="/familynet/" onmouseover="MM_swapImage(\'mn4\',\'\',\'/common/images/mn_enkyori_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_enkyori.gif" alt="ファミリーねっと −家族の継続−" name="mn4" width="225" height="45" id="mn4"></a></li>';
 }
 if(dir=="annai"){
   html += '         <li><a href="/annai/"><img src="/common/images/mn_muryou_over.gif" alt="無料・割引サービスのご案内・試行事業のご案内" name="mn5" width="225" height="45" id="mn5"></a></li>';
 } else {
   html += '         <li><a href="/annai/" onmouseover="MM_swapImage(\'mn5\',\'\',\'/common/images/mn_muryou_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_muryou.gif" alt="無料・割引サービスのご案内・試行事業のご案内" name="mn5" width="225" height="45" id="mn5"></a></li>';
 }

 //if(flg=="false"){
 // if(dir=="inquiry"){
 //  html += '         <li><a href="https://e-kazoku.net/inquiry/"><img src="/common/images/mn_req_over.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6"></a></li>';
 // } else {
 //  html += '         <li><a href="https://e-kazoku.net/inquiry/" onmouseover="MM_swapImage(\'mn6\',\'\',\'/common/images/mn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_req.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6"></a></li>';
 // }
 //} else {
  if(dir=="inquiry"){
   html += '         <li><a href="/inquiry/"><img src="/common/images/mn_req_over.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6"></a></li>';
  } else {
   html += '         <li><a href="/inquiry/" onmouseover="MM_swapImage(\'mn6\',\'\',\'/common/images/mn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_req.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6"></a></li>';
  }
 //}

 //if(flg=="false"){
 // if(dir=="member"){
 //  html += '         <li><a href="https://e-kazoku.net/member/entry.asp"><img src="/common/images/mn_reg_over.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7"></a></li>';
 // } else {
 //  html += '         <li><a href="https://e-kazoku.net/member/entry.asp" onmouseover="MM_swapImage(\'mn7\',\'\',\'/common/images/mn_reg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_reg.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7"></a></li>';
 // }
 //} else {
  if(dir=="member"){
   html += '         <li><a href="/member/entry.asp"><img src="/common/images/mn_reg_over.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7"></a></li>';
  } else {
   html += '         <li><a href="/member/entry.asp" onmouseover="MM_swapImage(\'mn7\',\'\',\'/common/images/mn_reg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_reg.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7"></a></li>';
  }
 //}

 if(dir=="message"){
   html += '         <li><a href="/message/"><img src="/common/images/mn_msg_over.gif" alt="親世代へのメッセージ … 自ら幸福追求行動を" name="mn8" width="225" height="45" id="mn8"></a></li>';
 } else {
   html += '         <li><a href="/message/" onmouseover="MM_swapImage(\'mn8\',\'\',\'/common/images/mn_msg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_msg.gif" alt="親世代へのメッセージ … 自ら幸福追求行動を" name="mn8" width="225" height="45" id="mn8"></a></li>';
 }

   html += '       </ul>';

   document.write(html);
}


//全表示版
function DispSubnavi(indexflg) {
var html = '       <!-- sub navi -->';

   html += '       <ul id="mn">';

if(flg){
   html += '         <li><a href="'+baseurl+'/aisatsu/" onmouseover="MM_swapImage(\'mn1\',\'\',\'/common/images/mn_aisatsu_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_aisatsu.gif" alt="ごあいさつ" name="mn1" width="225" height="45" id="mn1" /></a></li>';
   html += '         <li><a href="'+baseurl+'/edoukyo/" onmouseover="MM_swapImage(\'mn2\',\'\',\'/common/images/mn_edou_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_edou.gif" alt="遠居でもe-同居、毎朝顔を見て、「おはよう！」" name="mn2" width="225" height="45" id="mn2" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbedoutop" width="225" height="6" id="mnsbedoutop" /></li>';
   html += '         <li><a href="'+baseurl+'/edoukyo/sub1.asp" onmouseover="MM_swapImage(\'mnsbedou1\',\'\',\'/common/images/mn_sb_edou1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou1.gif" alt="孫誕生は家族の絆を強める最大のチャンス" name="mnsbedou1" width="225" height="34" id="mnsbedou1" /></a></li>';
   html += '         <li><a href="'+baseurl+'/edoukyo/sub2.asp" onmouseover="MM_swapImage(\'mnsbedou2\',\'\',\'/common/images/mn_sb_edou2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou2.gif" alt="遠居でもe-同居「大家族」ネット+テレビ・・・夢" name="mnsbedou2" width="225" height="34" id="mnsbedou2" /></a></li>';
   html += '         <li><a href="'+baseurl+'/edoukyo/sub3.asp" onmouseover="MM_swapImage(\'mnsbedou3\',\'\',\'/common/images/mn_sb_edou3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou3.gif" alt="ネット+テレビ最新情報" name="mnsbedou3" width="225" height="34" id="mnsbedou3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbedouend" width="225" height="11" id="mnsbedouend" /></li>';
   html += '         <li><a href="'+baseurl+'/baby-mago/" onmouseover="MM_swapImage(\'mn3\',\'\',\'/common/images/mn_growth_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_growth.gif" alt="赤ちゃん（孫）と発達" name="mn3" width="225" height="45" id="mn3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbmatop" width="225" height="6" id="mnsbmatop" /></li>';
   html += '         <li><a href="'+baseurl+'/baby-mago/sub1.asp" onmouseover="MM_swapImage(\'mnsbma1\',\'\',\'/common/images/mn_sb_ma1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma1.gif" alt="０ヵ月から発達サポート・・・世界の医学情報" name="mnsbma1" width="225" height="34" id="mnsbma1" /></a></li>';
   html += '         <li><a href="'+baseurl+'/baby-mago/sub2.asp" onmouseover="MM_swapImage(\'mnsbma2\',\'\',\'/common/images/mn_sb_ma2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma2.gif" alt="世界の発達医学センター実現と瀬川昌也医師" name="mnsbma2" width="225" height="34" id="mnsbma2" /></a></li>';
   html += '         <li><a href="'+baseurl+'/baby-mago/sub3.asp" onmouseover="MM_swapImage(\'mnsbma3\',\'\',\'/common/images/mn_sb_ma3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma3.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbma3" width="225" height="34" id="mnsbma3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbmaend" width="225" height="11" id="mnsbmaend" /></li>';
   html += '         <li><a href="'+baseurl+'/familynet/" onmouseover="MM_swapImage(\'mn4\',\'\',\'/common/images/mn_enkyori_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_enkyori.gif" alt="ファミリーねっと −家族の継続−" name="mn4" width="225" height="45" id="mn4" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbfatop" width="225" height="6" id="mnsbfatop" /></li>';
   html += '         <li><a href="'+baseurl+'/familynet/sub1.asp" onmouseover="MM_swapImage(\'mnsbfa1\',\'\',\'/common/images/mn_sb_fa1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa1.gif" alt="家族・一族コミュニケーション（ネット＋テレビ）" name="mnsbfa1" width="225" height="34" id="mnsbfa1" /></a></li>';
   html += '         <li><a href="'+baseurl+'/familynet/sub2.asp" onmouseover="MM_swapImage(\'mnsbfa2\',\'\',\'/common/images/mn_sb_fa2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa2.gif" alt="「発達医学」医師・医療機関情報" name="mnsbfa2" width="225" height="34" id="mnsbfa2" /></a></li>';
   html += '         <li><a href="'+baseurl+'/familynet/sub3.asp" onmouseover="MM_swapImage(\'mnsbfa3\',\'\',\'/common/images/mn_sb_fa3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa3.gif" alt="家族新聞・社会保障徹底活用" name="mnsbfa3" width="225" height="34" id="mnsbfa3" /></a></li>';
   html += '         <li><a href="'+baseurl+'/familynet/sub4.asp" onmouseover="MM_swapImage(\'mnsbfa4\',\'\',\'/common/images/mn_sb_fa4_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa4.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbfa4" width="225" height="34" id="mnsbfa4" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbfaend" width="225" height="11" id="mnsbfaend" /></li>';
   html += '         <li><a href="'+baseurl+'/annai/" onmouseover="MM_swapImage(\'mn5\',\'\',\'/common/images/mn_muryou_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_muryou.gif" alt="無料・割引サービスのご案内・試行事業のご案内" name="mn5" width="225" height="45" id="mn5" /></a></li>';
   html += '         <li><a href="/inquiry/" onmouseover="MM_swapImage(\'mn6\',\'\',\'/common/images/mn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_req.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6" /></a></li>';
   html += '         <li><a href="/member/entry.asp" onmouseover="MM_swapImage(\'mn7\',\'\',\'/common/images/mn_reg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_reg.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7" /></a></li>';
   html += '         <li><a href="'+baseurl+'/message/" onmouseover="MM_swapImage(\'mn8\',\'\',\'/common/images/mn_msg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_msg.gif" alt="親世代へのメッセージ … 自ら幸福追求行動を" name="mn8" width="225" height="45" id="mn8" /></a></li>';
} else {
 if(dir=="aisatsu"){
   html += '         <li><a href="/aisatsu/"><img src="/common/images/mn_aisatsu_over.gif" alt="ごあいさつ" name="mn1" width="225" height="45" id="mn1" /></a></li>';
 } else {
   html += '         <li><a href="/aisatsu/" onmouseover="MM_swapImage(\'mn1\',\'\',\'/common/images/mn_aisatsu_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_aisatsu.gif" alt="ごあいさつ" name="mn1" width="225" height="45" id="mn1" /></a></li>';
 }
 if(dir=="edoukyo"){
   html += '         <li><a href="/edoukyo/"><img src="/common/images/mn_edou_over.gif" alt="遠居でもe-同居、毎朝顔を見て、「おはよう！」" name="mn2" width="225" height="45" id="mn2" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbedoutop" width="225" height="6" id="mnsbedoutop" /></li>';
  if(sdir=="sub1.asp"){
   html += '         <li><a href="/edoukyo/sub1.asp"><img src="/common/images/mn_sb_edou1_over.gif" alt="孫誕生は家族の絆を強める最大のチャンス" name="mnsbedou1" width="225" height="34" id="mnsbedou1" /></a></li>';
  } else {
   html += '         <li><a href="/edoukyo/sub1.asp" onmouseover="MM_swapImage(\'mnsbedou1\',\'\',\'/common/images/mn_sb_edou1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou1.gif" alt="孫誕生は家族の絆を強める最大のチャンス" name="mnsbedou1" width="225" height="34" id="mnsbedou1" /></a></li>';
  }
  if(sdir=="sub2.asp"){
   html += '         <li><a href="/edoukyo/sub2.asp"><img src="/common/images/mn_sb_edou2_over.gif" alt="遠居でもe-同居「大家族」ネット+テレビ・・・夢" name="mnsbedou2" width="225" height="34" id="mnsbedou2" /></a></li>';
  } else {
   html += '         <li><a href="/edoukyo/sub2.asp" onmouseover="MM_swapImage(\'mnsbedou2\',\'\',\'/common/images/mn_sb_edou2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou2.gif" alt="遠居でもe-同居「大家族」ネット+テレビ・・・夢" name="mnsbedou2" width="225" height="34" id="mnsbedou2" /></a></li>';
  }
  if(sdir=="sub3.asp"){
   html += '         <li><a href="/edoukyo/sub3.asp"><img src="/common/images/mn_sb_edou3_over.gif" alt="ネット+テレビ最新情報" name="mnsbedou3" width="225" height="34" id="mnsbedou3" /></a></li>';
  } else {
   html += '         <li><a href="/edoukyo/sub3.asp" onmouseover="MM_swapImage(\'mnsbedou3\',\'\',\'/common/images/mn_sb_edou3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou3.gif" alt="ネット+テレビ最新情報" name="mnsbedou3" width="225" height="34" id="mnsbedou3" /></a></li>';
  }
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbedouend" width="225" height="11" id="mnsbedouend" /></li>';
 } else {
   html += '         <li><a href="/edoukyo/" onmouseover="MM_swapImage(\'mn2\',\'\',\'/common/images/mn_edou_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_edou.gif" alt="遠居でもe-同居、毎朝顔を見て、「おはよう！」" name="mn2" width="225" height="45" id="mn2"></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbedoutop" width="225" height="6" id="mnsbedoutop" /></li>';
   html += '         <li><a href="/edoukyo/sub1.asp" onmouseover="MM_swapImage(\'mnsbedou1\',\'\',\'/common/images/mn_sb_edou1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou1.gif" alt="孫誕生は家族の絆を強める最大のチャンス" name="mnsbedou1" width="225" height="34" id="mnsbedou1" /></a></li>';
   html += '         <li><a href="/edoukyo/sub2.asp" onmouseover="MM_swapImage(\'mnsbedou2\',\'\',\'/common/images/mn_sb_edou2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou2.gif" alt="遠居でもe-同居「大家族」ネット+テレビ・・・夢" name="mnsbedou2" width="225" height="34" id="mnsbedou2" /></a></li>';
   html += '         <li><a href="/edoukyo/sub3.asp" onmouseover="MM_swapImage(\'mnsbedou3\',\'\',\'/common/images/mn_sb_edou3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_edou3.gif" alt="ネット+テレビ最新情報" name="mnsbedou3" width="225" height="34" id="mnsbedou3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbedouend" width="225" height="11" id="mnsbedouend" /></li>';
 }
 if(dir=="baby-mago"){
   html += '         <li><a href="/baby-mago/"><img src="/common/images/mn_growth_over.gif" alt="赤ちゃん（孫）と発達" name="mn3" width="225" height="45" id="mn3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbmatop" width="225" height="6" id="mnsbmatop" /></li>';
  if(sdir=="sub1.asp"){
   html += '         <li><a href="/baby-mago/sub1.asp"><img src="/common/images/mn_sb_ma1_over.gif" alt="０ヵ月から発達サポート・・・世界の医学情報" name="mnsbma1" width="225" height="34" id="mnsbma1" /></a></li>';
  } else {
   html += '         <li><a href="/baby-mago/sub1.asp" onmouseover="MM_swapImage(\'mnsbma1\',\'\',\'/common/images/mn_sb_ma1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma1.gif" alt="０ヵ月から発達サポート・・・世界の医学情報" name="mnsbma1" width="225" height="34" id="mnsbma1" /></a></li>';
  }
  if(sdir=="sub2.asp"){
   html += '         <li><a href="/baby-mago/sub2.asp"><img src="/common/images/mn_sb_ma2_over.gif" alt="世界の発達医学センター実現と瀬川昌也医師" name="mnsbma2" width="225" height="34" id="mnsbma2" /></a></li>';
  } else {
   html += '         <li><a href="/baby-mago/sub2.asp" onmouseover="MM_swapImage(\'mnsbma2\',\'\',\'/common/images/mn_sb_ma2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma2.gif" alt="世界の発達医学センター実現と瀬川昌也医師" name="mnsbma2" width="225" height="34" id="mnsbma2" /></a></li>';
  }
  if(sdir=="sub3.asp"){
   html += '         <li><a href="/baby-mago/sub3.asp"><img src="/common/images/mn_sb_ma3_over.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbma3" width="225" height="34" id="mnsbma3" /></a></li>';
  } else {
   html += '         <li><a href="/baby-mago/sub3.asp" onmouseover="MM_swapImage(\'mnsbma3\',\'\',\'/common/images/mn_sb_ma3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma3.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbma3" width="225" height="34" id="mnsbma3" /></a></li>';
  }
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbmaend" width="225" height="11" id="mnsbmaend" /></li>';
 } else {
   html += '         <li><a href="/baby-mago/" onmouseover="MM_swapImage(\'mn3\',\'\',\'/common/images/mn_growth_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_growth.gif" alt="赤ちゃん（孫）と発達" name="mn3" width="225" height="45" id="mn3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbmatop" width="225" height="6" id="mnsbmatop" /></li>';
   html += '         <li><a href="/baby-mago/sub1.asp" onmouseover="MM_swapImage(\'mnsbma1\',\'\',\'/common/images/mn_sb_ma1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma1.gif" alt="０ヵ月から発達サポート・・・世界の医学情報" name="mnsbma1" width="225" height="34" id="mnsbma1" /></a></li>';
   html += '         <li><a href="/baby-mago/sub2.asp" onmouseover="MM_swapImage(\'mnsbma2\',\'\',\'/common/images/mn_sb_ma2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma2.gif" alt="世界の発達医学センター実現と瀬川昌也医師" name="mnsbma2" width="225" height="34" id="mnsbma2" /></a></li>';
   html += '         <li><a href="/baby-mago/sub3.asp" onmouseover="MM_swapImage(\'mnsbma3\',\'\',\'/common/images/mn_sb_ma3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_ma3.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbma3" width="225" height="34" id="mnsbma3" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbmaend" width="225" height="11" id="mnsbmaend" /></li>';
 }
 if(dir=="familynet"){
   html += '         <li><a href="/familynet/"><img src="/common/images/mn_enkyori_over.gif" alt="ファミリーねっと −家族の継続−" name="mn4" width="225" height="45" id="mn4" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbfatop" width="225" height="6" id="mnsbfatop" /></li>';
  if(sdir=="sub1.asp"){
   html += '         <li><a href="/familynet/sub1.asp"><img src="/common/images/mn_sb_fa1_over.gif" alt="家族・一族コミュニケーション（ネット＋テレビ）" name="mnsbfa1" width="225" height="34" id="mnsbfa1" /></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub1.asp" onmouseover="MM_swapImage(\'mnsbfa1\',\'\',\'/common/images/mn_sb_fa1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa1.gif" alt="家族・一族コミュニケーション（ネット＋テレビ）" name="mnsbfa1" width="225" height="34" id="mnsbfa1" /></a></li>';
  }
  if(sdir=="sub2.asp"){
   html += '         <li><a href="/familynet/sub2.asp"><img src="/common/images/mn_sb_fa2_over.gif" alt="「発達医学」医師・医療機関情報" name="mnsbfa2" width="225" height="34" id="mnsbfa2" /></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub2.asp" onmouseover="MM_swapImage(\'mnsbfa2\',\'\',\'/common/images/mn_sb_fa2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa2.gif" alt="「発達医学」医師・医療機関情報" name="mnsbfa2" width="225" height="34" id="mnsbfa2" /></a></li>';
  }
  if(sdir=="sub3.asp"){
   html += '         <li><a href="/familynet/sub3.asp"><img src="/common/images/mn_sb_fa3_over.gif" alt="家族新聞・社会保障徹底活用" name="mnsbfa3" width="225" height="34" id="mnsbfa3" /></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub3.asp" onmouseover="MM_swapImage(\'mnsbfa3\',\'\',\'/common/images/mn_sb_fa3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa3.gif" alt="家族新聞・社会保障徹底活用" name="mnsbfa3" width="225" height="34" id="mnsbfa3" /></a></li>';
  }
  if(sdir=="sub4.asp"){
   html += '         <li><a href="/familynet/sub4.asp"><img src="/common/images/mn_sb_fa4_over.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbfa4" width="225" height="34" id="mnsbfa4" /></a></li>';
  } else {
   html += '         <li><a href="/familynet/sub4.asp" onmouseover="MM_swapImage(\'mnsbfa4\',\'\',\'/common/images/mn_sb_fa4_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa4.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbfa4" width="225" height="34" id="mnsbfa4" /></a></li>';
  }
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbfaend" width="225" height="11" id="mnsbfaend" /></li>';
 } else {
   html += '         <li><a href="/familynet/" onmouseover="MM_swapImage(\'mn4\',\'\',\'/common/images/mn_enkyori_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_enkyori.gif" alt="ファミリーねっと −家族の継続−" name="mn4" width="225" height="45" id="mn4" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_top.gif" alt="" name="mnsbfatop" width="225" height="6" id="mnsbfatop" /></li>';
   html += '         <li><a href="/familynet/sub1.asp" onmouseover="MM_swapImage(\'mnsbfa1\',\'\',\'/common/images/mn_sb_fa1_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa1.gif" alt="家族・一族コミュニケーション（ネット＋テレビ）" name="mnsbfa1" width="225" height="34" id="mnsbfa1" /></a></li>';
   html += '         <li><a href="/familynet/sub2.asp" onmouseover="MM_swapImage(\'mnsbfa2\',\'\',\'/common/images/mn_sb_fa2_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa2.gif" alt="「発達医学」医師・医療機関情報" name="mnsbfa2" width="225" height="34" id="mnsbfa2" /></a></li>';
   html += '         <li><a href="/familynet/sub3.asp" onmouseover="MM_swapImage(\'mnsbfa3\',\'\',\'/common/images/mn_sb_fa3_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa3.gif" alt="家族新聞・社会保障徹底活用" name="mnsbfa3" width="225" height="34" id="mnsbfa3" /></a></li>';
   html += '         <li><a href="/familynet/sub4.asp" onmouseover="MM_swapImage(\'mnsbfa4\',\'\',\'/common/images/mn_sb_fa4_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_sb_fa4.gif" alt="医師との信頼関係の醸成と受診の仕方" name="mnsbfa4" width="225" height="34" id="mnsbfa4" /></a></li>';
   html += '         <li><img src="/common/images/mn_sb_end.gif" alt="" name="mnsbfaend" width="225" height="11" id="mnsbfaend" /></li>';
 }
 if(dir=="annai"){
   html += '         <li><a href="/annai/"><img src="/common/images/mn_muryou_over.gif" alt="無料・割引サービスのご案内・試行事業のご案内" name="mn5" width="225" height="45" id="mn5" /></a></li>';
 } else {
   html += '         <li><a href="/annai/" onmouseover="MM_swapImage(\'mn5\',\'\',\'/common/images/mn_muryou_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_muryou.gif" alt="無料・割引サービスのご案内・試行事業のご案内" name="mn5" width="225" height="45" id="mn5" /></a></li>';
 }

 //if(flg=="false"){
 // if(dir=="inquiry"){
 //  html += '         <li><a href="https://e-kazoku.net/inquiry/"><img src="/common/images/mn_req_over.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6"></a></li>';
 // } else {
 //  html += '         <li><a href="https://e-kazoku.net/inquiry/" onmouseover="MM_swapImage(\'mn6\',\'\',\'/common/images/mn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_req.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6"></a></li>';
 // }
 //} else {
  if(dir=="inquiry"){
   html += '         <li><a href="/inquiry/"><img src="/common/images/mn_req_over.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6" /></a></li>';
  } else {
   html += '         <li><a href="/inquiry/" onmouseover="MM_swapImage(\'mn6\',\'\',\'/common/images/mn_req_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_req.gif" alt="ご質問・ご意見" name="mn6" width="225" height="45" id="mn6" /></a></li>';
  }
 //}

 //if(flg=="false"){
 // if(dir=="member"){
 //  html += '         <li><a href="https://e-kazoku.net/member/entry.asp"><img src="/common/images/mn_reg_over.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7"></a></li>';
 // } else {
 //  html += '         <li><a href="https://e-kazoku.net/member/entry.asp" onmouseover="MM_swapImage(\'mn7\',\'\',\'/common/images/mn_reg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_reg.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7"></a></li>';
 // }
 //} else {
  if(dir=="member"){
   html += '         <li><a href="/member/entry.asp"><img src="/common/images/mn_reg_over.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7" /></a></li>';
  } else {
   html += '         <li><a href="/member/entry.asp" onmouseover="MM_swapImage(\'mn7\',\'\',\'/common/images/mn_reg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_reg.gif" alt="お申込・会員登録" name="mn7" width="225" height="45" id="mn7" /></a></li>';
  }
 //}

 if(dir=="message"){
   html += '         <li><a href="/message/"><img src="/common/images/mn_msg_over.gif" alt="親世代へのメッセージ … 自ら幸福追求行動を" name="mn8" width="225" height="45" id="mn8" /></a></li>';
 } else {
   html += '         <li><a href="/message/" onmouseover="MM_swapImage(\'mn8\',\'\',\'/common/images/mn_msg_over.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/common/images/mn_msg.gif" alt="親世代へのメッセージ … 自ら幸福追求行動を" name="mn8" width="225" height="45" id="mn8" /></a></li>';
 }

}
   html += '       </ul>';

   document.write(html);
}


//* index利用分
function SendFormLogin(add) {
    document.form1.target = "_self";
    document.form1.method = "POST";
//  document.form1.action = "https:/e-kazoku.net/utils/com_auth.asp?target="+add;
    document.form1.action = "/utils/com_auth.asp?target="+add;
    document.form1.submit();
}

function LogOff() {
//  location.href = "https:/e-kazoku.net/utils/com_logout.asp";
    location.href = "/utils/com_logout.asp";
}


//* 写真・コメント編集Navi (2007/03/25)
var eflg;
// 'def':通常モード,'navi':ナビモード
var emode ='def';

function PhotoEditNavi(step,flg) {
   if (step=='') {
     window.alert("[Error]STEPフラグ未定");
     return(false);
   } else {
     emode ='navi';
     if (flg=='') {
       flg = eflg;
     }
     eflg = flg;
     if (step=='1') {
       MM_DisplayLayers('step1','','s','step1add','','s','step2add','','h','step2exchg','','h','step2mainchg','','h','step2del','','h','step2a','','h','step2b','','h','fami','','h','step3add','','h','step3exchg','','h','step3mainchg','','h','step3del','','h');
       return(true);
     } else if (step=='2') {
       // window.alert("FLG="+eflg);
       if (eflg=='EXCHG') {
         MM_DisplayLayers('step1','','h','step1add','','h','step2add','','s','step2exchg','','s','step2mainchg','','h','step2del','','h','step2a','','s','step2b','','s','fami','','s','step3add','','h','step3exchg','','h','step3mainchg','','h','step3del','','h');
       } else if (flg=='MAINCHG') {
         MM_DisplayLayers('step1','','h','step1add','','h','step2add','','s','step2exchg','','h','step2mainchg','','s','step2del','','h','step2a','','s','step2b','','s','fami','','h','step3add','','h','step3exchg','','h','step3mainchg','','h','step3del','','h');
         //document.all.IMG01.style.border = '1';
         //document.all.IMG01.style.borderstyle = 'dotted';
         //document.all.IMG01.style.bordercolor = 'red';
       } else if (flg=='DEL') {
         MM_DisplayLayers('step1','','h','step1add','','h','step2add','','s','step2exchg','','h','step2mainchg','','h','step2del','','s','step2a','','s','step2b','','s','fami','','s','step3add','','h','step3exchg','','h','step3mainchg','','h','step3del','','h');
       }
       return(true);
     } else if (step=='3') {
       if (eflg =='DEL') {
        if (document.form_photo.photo_no.value=='') {
          window.alert("削除する写真を選択ください。");
          return(false);
        }
       } else if (eflg =='MAINCHG') {
        if (document.form_photo.photo_no.value=='') {
          window.alert("メインに指定する写真を選択ください。");
          return(false);
        } else if (document.form_photo.photo_no.value=='1') {
          window.alert("選んだ写真は既にメイン写真です。");
          return(false);
        }
       } else if (eflg =='EXCHG') {
        if (document.form_photo.photo_no.value=='') {
          window.alert("編集したい写真を指定ください。");
          return(false);
        }
       }
       // window.alert("FLG="+eflg);
       if (eflg=='EXCHG') {
         MM_DisplayLayers('step1','','h','step1add','','h','step2add','','h','step2exchg','','h','step2mainchg','','h','step2del','','h','step2a','','h','step2b','','h','fami','','h','step3add','','s','step3exchg','','s','step3mainchg','','h','step3del','','h');
       } else if (flg=='MAINCHG') {
         MM_DisplayLayers('step1','','h','step1add','','h','step2add','','h','step2exchg','','h','step2mainchg','','h','step2del','','h','step2a','','h','step2b','','h','fami','','h','step3add','','s','step3exchg','','h','step3mainchg','','s','step3del','','h');
       } else if (flg=='DEL') {
         MM_DisplayLayers('step1','','h','step1add','','h','step2add','','h','step2exchg','','h','step2mainchg','','h','step2del','','h','step2a','','h','step2b','','h','fami','','h','step3add','','s','step3exchg','','h','step3mainchg','','h','step3del','','s');
       }
       return(true);
     } else {
       window.alert("[Error]STEPフラグ範囲外");
       return(false);
     }
   }
}


//* photo_edit利用分

function PhotoSelect(kcd,m,img,alt) {
  if (kcd!='01010101'&&m=='0') {
    window.alert("主利用者のみ、写真の登録・編集が可能です。");
    return;
  }

  document.form_photo.photo_no.value = m;
  document.form_photo.img_no.value   = img;
  if (emode=='def') {
    document.form_photo.button_main.disabled = false;
  }
  //document.form_photo.com_family.disabled = true;

  var i;
  for (i=0; i<6; i+=1){
   if (m==i) {
     MM_showHideLayers('LayerIMG0'+i,'','show');
     if (i=='0') {
       if (emode=='def') {
         document.form_photo.button_main.disabled = true;
         //document.form_photo.com_family.disabled = false;
       } else {
         //document.form_photo.com_family.disabled = false;
         // MM_showHideLayers('famiALT','','show');
         MM_showHideLayers('famiALT','','hide');
       }
     } else if (i=='1') {
       if (emode=='def') {
         document.form_photo.button_main.disabled = true;
       } else {
         MM_showHideLayers('famiALT','','hide');
       }
     }
     document.form_photo.com_alt.value = alt;
   } else {
     MM_showHideLayers('LayerIMG0'+i,'','hide');
   }
  }

}

function PhotoEditSend(flg) {
 if (flg =='DEL') {
  if (document.form_photo.photo_no.value=='') {
    window.alert("削除する写真を選択ください。");
  } else {
   if (window.confirm("選択した写真と説明を削除します。よろしいですか？")) {
    document.form_photo.mode.value = flg;
    if (emode=='navi') {
      document.form_photo.emode.value = emode;
    }
    document.form_photo.submit();
   }
  }
 } else if (flg =='MAINCHG') {
  if (document.form_photo.photo_no.value=='') {
    window.alert("メインに指定する写真を選択ください。");
  } else {
    document.form_photo.mode.value = flg;
    if (emode=='navi') {
      document.form_photo.emode.value = emode;
    }
    document.form_photo.submit();
  }
 } else if (flg =='EXCHG') {
  if (document.form_photo.photo_no.value=='') {
    window.alert("編集したい写真を指定ください。");
  } else if (document.form_photo.file.value=='' && document.form_photo.com_alt.value!='') {
    document.form_photo.mode.value = 'COMCHG';
    if (emode=='navi') {
      document.form_photo.emode.value = emode;
    }
    document.form_photo.submit();
  } else if (document.form_photo.file.value!='' && document.form_photo.com_alt.value=='') {
    document.form_photo.mode.value = flg;
    if (emode=='navi') {
      document.form_photo.emode.value = emode;
    }
    document.form_photo.submit();
  } else {
    window.alert("今表示されている写真とコメントが削除され、選択した写真とコメントに変更します。");
    document.form_photo.mode.value = flg;
    if (emode=='navi') {
      document.form_photo.emode.value = emode;
    }
    document.form_photo.submit();
  }
 } else if (flg =='COMCHG') {
  if (document.form_photo.photo_no.value=='') {
    window.alert("説明文を変更したい写真を選択ください。");
  } else if (document.form_photo.com_alt.value=='') {
    window.alert("説明文を入力ください。");
  } else {
    document.form_photo.mode.value = flg;
    if (emode=='navi') {
      document.form_photo.emode.value = emode;
    }
    document.form_photo.submit();
  }
 }
}


//* comment_edit利用分

function CommentEditSend(kcd,flg) {
 if (flg =='DEL') {

 } else if (flg =='UPDATE') {
  if (kcd=='01010101') {
   if (document.form_comme.wakeup.value=='') {
     window.alert("「起床時間」が未選択です。");
     return(false);
   } else if (document.form_comme.breakfast.value=='') {
     window.alert("「朝食時間」が未選択です。");
     return(false);
   } else if (document.form_comme.walking.value=='') {
     window.alert("「一日歩数」が未選択です。");
     return(false);
   } else if (document.form_comme.kaiwa.value=='') {
     window.alert("「会話相手人数」が未選択です。");
     return(false);
   } else if (document.form_comme.comment.value=='') {
     window.alert("「ひとこと」が未入力です。");
     return(false);
   } else if (document.form_comme.comment.value.length > 19 ) {
     window.alert("「ひとこと」の文字数は19字までです。");
     return(false);
   } else {
     return(true);
   }
  } else {
   if (document.form_comme.comment.value=='') {
     window.alert("「ひとこと」が未入力です。");
     return(false);
   } else if (document.form_comme.comment.value.length > 19 ) {
     window.alert("「ひとこと」の文字数は19字までです。");
     return(false);
   } else {
     return(true);
   }
  }
 }
}


function updateMess(msg){
  window.alert(msg);
}


//* Sumcomment_edit利用分

function SumCommentEditSend(flg) {
 if (flg =='DEL') {

 } else if (flg =='UPDATE') {
   if (document.form_sumcomme.SUMCOM.value=='') {
     window.alert("「まとめコメント」が未入力です。");
     return(false);
   } else if (document.form_sumcomme.SUMCOM.value.length>200) {
     window.alert("「まとめコメント」の文字数は200文字以内です。");
     return(false);
   } else {
     if (window.confirm("家族メンバーに通知メールを送信しますか？")) {
       document.form_sumcomme.SMAIL_FLG.value = 'true' ;
       return(true);
     } else {
       document.form_sumcomme.SMAIL_FLG.value = 'false' ;
       return(true);
     }
   }
 }
}


//* Rescomment_edit利用分

function ResCommentEditSend(flg) {
 if (flg =='DEL') {

 } else if (flg =='UPDATE') {
   if (document.form_rescomme.RESCOM.value=='') {
     window.alert("「返答コメント」が未入力です。");
     return(false);
   } else if (document.form_rescomme.RESCOM.value.length>19) {
     window.alert("「返答コメント」の文字数は19文字以内です。");
     return(false);
   } else {
     return(true);
   }
 }
}


function MovEditSend(flg) {
 if (flg =='DEL') {
   if (window.confirm("動画と説明を削除します。よろしいですか？")) {
    document.form_mov.mode.value = flg;
    if (emode=='navi') {
      document.form_mov.emode.value = emode;
    }
	$(document.body).startWaiting('bigWaiting');
    document.form_mov.submit();
   }
 } else if (flg =='EXCHG') {
  if (document.form_mov.file.value=='' && document.form_mov.alt.value!='') {
    document.form_mov.mode.value = 'COMCHG';
    if (emode=='navi') {
      document.form_mov.emode.value = emode;
    }
	$(document.body).startWaiting('bigWaiting');
    document.form_mov.submit();
  } else if (document.form_mov.file.value!='' && document.form_mov.alt.value=='') {
    document.form_mov.mode.value = flg;
    if (emode=='navi') {
      document.form_mov.emode.value = emode;
    }
	$(document.body).startWaiting('bigWaiting');
    document.form_mov.submit();
  } else if (document.form_mov.file.value=='' && document.form_mov.alt.value=='') {
    window.alert("「動画ファイル」と「説明文」が指定されていません。");
    return(false);
  } else {
    window.alert("今表示されている動画と説明が削除され、新たな動画と説明に変更します。");
    document.form_mov.mode.value = flg;
    if (emode=='navi') {
      document.form_mov.emode.value = emode;
    }
	$(document.body).startWaiting('bigWaiting');
    document.form_mov.submit();
  }
 } else if (flg =='COMCHG') {
  if (document.form_mov.alt.value=='') {
    window.alert("説明文を入力ください。");
  } else {
    document.form_mov.mode.value = flg;
    if (emode=='navi') {
      document.form_mov.emode.value = emode;
    }
	$(document.body).startWaiting('bigWaiting');
    document.form_mov.submit();
  }
 }
}

//* Sumcomment_edit_adm利用分

function SumCommentEditSendAdm(flg) {
 if (flg =='DEL') {

 } else if (flg =='UPDATE') {
   if (document.form_sumcomme.OUTCOM.value=='') {
     window.alert("「まとめコメント」が未入力です。");
     return(false);
   } else if (document.form_sumcomme.OUTCOM.value.length>400) {
     window.alert("「まとめコメント」の文字数は400文字以内です。");
     return(false);
   } else {
   //  if (window.confirm("家族メンバーに通知メールを送信しますか？")) {
   //    document.form_sumcomme.SMAIL_FLG.value = 'true' ;
   //    return(true);
   //  } else {
       document.form_sumcomme.SMAIL_FLG.value = 'false' ;
       return(true);
   //  }
   }
 }
}


//* comment_edit_adm利用分

function CommentEditSendAdm(kcd,flg) {
 if (flg =='DEL') {

 } else if (flg =='UPDATE') {
  if (kcd=='01010101') {
   if (document.form_comme.sche.value=='') {
     window.alert("「スケジュール」が未入力です。");
     return(false);
   } else if (document.form_comme.sche.value.length > 19 ) {
     window.alert("「スケジュール」の文字数は19字までです。");
     return(false);
   } else {
     return(true);
   }
  }
 }
}


function roading() {
	// optinal argument: can be name of a CSS class
	$(document.body).startWaiting('bigWaiting');
	window.setTimeout(document.body.stopWaiting.bind(document.body), 90000);
}


