/*
 上部リンクを表示
 */
function ShowMenuBar(){
  var home = 'http://www.actworks.biz/blog/';
  var links = {
    'お手軽構造計算soft': home + 'products/bigin_soft/',
    '断面性能算出soft': home + 'products/iz_write/',
    'お問合せ': home + 'support/inquiry/',
    '会社案内': home + 'company_s/',
    '特商法の表記': home + 'law_s/',
    '過去の仕事': home + 'past/',
  };

  
  document.write('<div class="menubar"><nobr><ul><li><a href="' + home + '">　トップページ</a></li>');
  for (key in links) {
    if (links[key].indexOf(home) != -1) {
      document.write('<li>｜<a href="' + links[key] + '">' + key + '</a></li>');
    }
    else {
      document.write('<li>｜<a href="' + links[key] + '" target="_blank">' + key + '</a></li>');
    }
  }
  document.write('</ul></nobr><div class="hor_line"></div></div>');
}


/*
 下部リンクを表示
 */
function ShowFootMenuBar(){
  var home = 'http://www.actworks.biz/blog/';
  var links = {
    'お手軽構造計算soft': home + 'products/bigin_soft/',
    '断面性能算出soft': home + 'products/iz_write/',
    'お問合せ': home + 'support/inquiry/',
    '会社案内': home + 'company_s/',
    '特商法の表記': home + 'law_s/',
    '過去の仕事': home + 'past/',
  };

  
  document.write('<div class="menubar_f"><nobr><ul><li><a href="' + home + '">　トップページ</a></li>');
  for (key in links) {
    if (links[key].indexOf(home) != -1) {
      document.write('<li>｜<a href="' + links[key] + '">' + key + '</a></li>');
    }
    else {
      document.write('<li>｜<a href="' + links[key] + '" target="_blank">' + key + '</a></li>');
    }
  }
  document.write('</ul></nobr><div class="hor_line"></div></div>');
}


/*インラインフレームの高さを自動調節
 参考URL：http://shin-ishimaru.cocolog-nifty.com/blog/2007/06/iframe_abbd.html
 */
function GetHeight(id, name){
  var app = navigator.appName.charAt(0);
  
  if (navigator.userAgent.indexOf('Safari') != -1) {
    document.getElementById(id).height = parent.frames[name].document.body.scrollHeight + 15;
  }
  else 
    if (app == 'N') {
      document.getElementById(id).height = parent.frames[name].document.height + 15;
    }
    else {
      document.getElementById(id).height = parent.frames[name].document.body.scrollHeight + 15;
    }
}


/*
 ヘッダー内の文言を表示
 */
function ShowInfoText(){
  document.write('<div class="info"><p>実務家が使う お手軽 構造計算soft</p></div>');
  };

