
function readTopMenu(){
  menu     = new Array
  link_uri = new Array

  i = 0;
  menu[i]     = "お気楽雑談室";
  link_uri[i] = "http://tenb.bbs.coocan.jp/";

//  i++;
//  menu[i]     = "お気楽雑談室(旧)";
//  link_uri[i] = "../talk/talk.htm";

  i++;
  menu[i]     = "オームの法則＠ランダム";
  link_uri[i] = "../ohm_ar/0000/0000f.html";

  i++;
  menu[i]     = "オームの法則(旧)";
  link_uri[i] = "../ohm/ohm_f.html";

  i++;
  menu[i]     = "平城宮跡花暦";
  link_uri[i] = "../heijo/heijo.htm";

  i++;
  menu[i]     = "<span style='letter-spacing:1.5em;'>関西語</span>";
  link_uri[i] = "../kansai/kansai.htm";

  i++;
  menu[i]     = "リンク＆プロフィール";
  link_uri[i] = "../link.htm";
  }

/*----- writeGroupPadding-----*/

function writeGroupPaddingLeftInNoMore(){
  document.write('<tr style="font-size:0.5em;">');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
    document.write('<td colspan="7" style="background-color:#00ffff;">&nbsp;</td>');
    document.write('<td colspan="2">&nbsp;</td>');
  document.write('</tr>');
  }

function writeGroupPaddingRightInMore(){
  document.write('<tr style="font-size:0.5em;">');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
    document.write('<td>&nbsp;</td>');
    document.write('<td colspan="7" style="background-color:#00ffff;">&nbsp;</td>');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
  document.write('</tr>');
  }

function writeGroupPaddingRightInNoMore(){
  document.write('<tr style="font-size:0.5em;">');
    document.write('<td colspan="2">&nbsp;</td>');
    document.write('<td colspan="7" style="background-color:#00ffff;">&nbsp;</td>');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
  document.write('</tr>');
  }

/*----- writeGroupSpace-----*/

function writeGroupSpaceLeftIn(){
  document.write('<tr style="font-size:0.5em;">');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
    document.write('<td colspan="9">&nbsp;</td>');
  document.write('</tr>');
  }

function writeGroupSpaceLeftInNoMore(){
  document.write('<tr style="font-size:0.5em;">');
    document.write('<td style="background-color:#ffff00">&nbsp;</td>');
    document.write('<td colspan="9">&nbsp;</td>');
  document.write('</tr>');
  }

/*----- writeMenu-----*/

function writeMenuAboveLeftIn(n){
  document.write('<tr>');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
    document.write('<td colspan="7"style="background-color:#00ffff; line-height:150%; text-align:center;">');
      if (link_uri[n] != ""){
        document.write('<a href="' + link_uri[n] + '">');
          document.write(menu[n]);
        document.write('</a>');
        }
      else{
        document.write(menu[n]);
        }
    document.write('</td>');
    document.write('<td colspan="2">&nbsp;</td>');
  document.write('</tr>');
  }

function writeMenuAboveRightIn(n){
  document.write('<tr>');
    document.write('<td colspan="2">&nbsp;</td>');
    document.write('<td colspan="7"style="color:#ff0000; background-color:#00ffff; line-height:150%; text-align:center;">');
      if (link_uri[n] != ""){
        document.write('<a href="' + link_uri[n] + '">');
          document.write(menu[n]);
        document.write('</a>');
        }
      else{
        document.write(menu[n]);
        }
    document.write('</td>');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
  document.write('</tr>');
  }

function writeMenuBelowRightIn(n){
  document.write('<tr>');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
    document.write('<td>&nbsp;</td>');
    document.write('<td colspan="7"style="background-color:#00ffff; line-height:150%; text-align:center;">');
      if (link_uri[n] != ""){
        document.write('<a href="' + link_uri[n] + '">');
          document.write(menu[n]);
        document.write('</a>');
        }
      else{
        document.write(menu[n]);
        }
    document.write('</td>');
    document.write('<td style="background-color:#ffff00;">&nbsp;</td>');
  document.write('</tr>');
  }

function writeMenuHereLeftInNoMore(n){
  document.write('<tr>');
    document.write('<td style="font-size:0.8em; color:#ff0000; background-color:#ffff00;">→</td>');
    document.write('<td colspan="7" style="color:#ff0000; background-color:#ffff00; line-height:150%; text-align:center;">');
      if (link_uri[n] != ""){
        document.write('<a href="' + link_uri[n] + '">');
        }
      document.write('<span style="color:#ff0000">;');
        document.write(menu[n]);
      document.write('</span>');
      if (link_uri[n] != ""){
        document.write('</a>');
        }
    document.write('</td>');
    document.write('<td>&nbsp;</td>');
  document.write('</tr>');
  }

function writeMenuHereRightInMore(n){
  document.write('<tr>');
    document.write('<td style="font-size:0.8em; color:#ff0000; background-color:#ffff00;">↓</td>');
    document.write('<td colspan="8" style="color:#ff0000; background-color:#ffff00; line-height:150%; text-align:center;">');
      if (link_uri[n] != ""){
        document.write('<a href="' + link_uri[n] + '">');
        }
      document.write('<span style="color:#ff0000">;');
        document.write(menu[n]);
      document.write('</span>');
      if (link_uri[n] != ""){
        document.write('</a>');
        }
    document.write('</td>');
    document.write('<td style="font-size:0.8em; color:#ff0000; background-color:#ffff00;">←</td>');
  document.write('</tr>');
  }

/*-----write*Page-----*/

function writeTopPage(){
  document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.write('<tr>');
      document.write('<td colspan="9" style="background-color:#ffff00; text-align:center;"><a href = "../index.htm" style="color:#ff0000; line-height:200%;">トップページ</a></td>');
      document.write('<td style="font-size:0.8em; color:#ff0000; background-color:#ffff00;">↓</td>');
    document.write('</tr>');
    document.write('<tr style="font-size:0.5em;">');
    for (i=0; i<7; i++){
      document.write('<td>&nbsp;&nbsp;</td>');
      }
      document.write('<td width="99%">&nbsp;</td>');
      document.write('<td>&nbsp;&nbsp;</td>');
      document.write('<td style="background-color:#ffff00">&nbsp;</td>');
    document.write('</tr>');
  }


