/**
 * Menu,Footer etc
 * 
 * CODE : UTF-8
 * 
 * 2011.08.xx AGILE corp.
 * 
 */

  agent = navigator.userAgent;
  ag = 0;
  if( agent.indexOf("Mozilla/2") == 0 ) { ag = 1; }

  function chgimg( iname, idata ) {
    if( document.images ) {
      if( ag != 1 ) {
        /* iname.src = idata; */
        document.all.item( iname ).src = idata;
      }
    }
  }


  /* ヘッダー */
  function hedder() {
    document.writeln('  <div style="padding:0 25px;">' );
    document.writeln('    <table width="850" border="0" cellpadding="0" cellspacing="0">' );
    document.writeln('      <tr>' );
    document.writeln('        <td widthj="180" align="right" valign="top" style="padding:72px 0px 0 0;">' );
    document.writeln('          <img src="image/kaisekiryouri.png" wight="78" height="20" border="0" alt="会席料理" title="会席料理">' );
    document.writeln('        </td>' );
    document.writeln('        <td width="270" align="center" valign="top">' );
    document.writeln('          <img src="image/logo200.png" wight="200" height="130" border="0" alt="料亭 すし市場 結婚式場 なか安" title="料亭 すし市場 結婚式場 なか安">' );
    document.writeln('        </td>' );
    document.writeln('        <td width="400" align="center" valign="top">' );
    document.writeln('          <img src="image/01.png" wight="250" height="130" border="0" alt="" title="">' );
    document.writeln('        </td>' );
    document.writeln('      </tr>' );
    document.writeln('    </table>' );
    document.writeln('  </div>' );
  }

  /* 上部メニュー */
  function top_menu() {
    document.writeln('  <div style="padding:0 25px;">' );
    document.writeln('    <table width="850" border="0" cellpadding="0" cellspacing="0">' );
    document.writeln('      <tr>' );
    document.writeln('        <td align="right" valign="top" style="background: url(\'image/menu_bg0.gif\') repeat-x scroll left top;">' );
    document.writeln('          <img src="image/null.gif" width="1" height="1" border="0" alt="" title=""' );
    document.writeln('        ></td>' );
    document.writeln('      </tr>' );
    document.writeln('      <tr>' );
    document.writeln('        <td align="right" valign="top" style="background: url(\'image/menu_bg1.gif\') repeat-x scroll left 19px;">' );
//  document.writeln('          <img name="bb" src="image/bba.gif" width="71" height="30" border="0" style="margin:0 1px 1px 0;" alt="" title=""' );
    document.writeln('          <img name="bb" src="image/bba.gif" width="293" height="30" border="0" style="margin:0 1px 1px 0;" alt="" title=""' );
    document.writeln('          ><a href="index.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b0\',\'image/b0b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b0\',\'image/b0a.gif\');"><img name="b0" src="image/b0a.gif" width="110" height="30" border="0" style="margin:0 1px 1px 0;" alt="ホーム" title="ホーム"></a' );
    document.writeln('          ><a href="gohouji.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b1\',\'image/b1b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b1\',\'image/b1a.gif\');"><img name="b1" src="image/b1a.gif" width="110" height="30" border="0" style="margin:0px 1px 1px 0;" alt="ご法事" title="ご法事"></a' );
    document.writeln('          ><a href="gokeiji.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b2\',\'image/b2b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b2\',\'image/b2a.gif\');"><img name="b2" src="image/b2a.gif" width="110" height="30" border="0" style="margin:0 1px 1px 0;" alt="ご慶事" title="ご慶事"></a' );
/*
    document.writeln('          ><a href="goenkai.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b3\',\'image/b3b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b3\',\'image/b3a.gif\');"><img name="b3" src="image/b3a.gif" width="110" height="30" border="0" style="margin:0 1px 1px 0;" alt="ご宴会・ご接待" title="ご宴会・ご接待"></a' );
    document.writeln('          ><a href="catering.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b4\',\'image/b4b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b4\',\'image/b4a.gif\');"><img name="b4" src="image/b4a.gif" width="110" height="30" border="0" style="margin:0 1px 1px 0;" alt="ケータリング・出前" title="ケータリング・出前"></a' );
*/
    document.writeln('          ><a href="sushiichiba.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b5\',\'image/b5b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b5\',\'image/b5a.gif\');"><img name="b5" src="image/b5a.gif" width="110" height="30" border="0" style="margin:0 1px 1px 0;" alt="すし市場" title="すし市場"></a' );
    document.writeln('          ><a href="access.html" class="menu"' );
    document.writeln('             onMouseOver="chgimg(\'b6\',\'image/b6b.gif\');"' );
    document.writeln('             onMouseOut ="chgimg(\'b6\',\'image/b6a.gif\');"><img name="b6" src="image/b6a.gif" width="110" height="30" border="0" style="margin:0 1px 1px 0;" alt="アクセス" title="アクセス"></a' );
    document.writeln('          >' );
    document.writeln('        </td>' );
    document.writeln('      </tr>' );
    document.writeln('    </table>' );
    document.writeln('  </div>' );
}

  /* フッター */
  function footer() {
    document.writeln('  <div style="padding:0 25px;">' );
    document.writeln('    <table width="850" border="0" cellpadding="0" cellspacing="0">' );
    document.writeln('      <tr>' );
    document.writeln('        <td align="right" class="footer">' );
    document.writeln('          <a href="#top" class="footer_menu">&uArr; ページ先頭へ戻る</a>' );
    document.writeln('        </td>' );
    document.writeln('      </tr>' );
    document.writeln('      <tr>' );
    document.writeln('        <td align="center" class="footer">' );
    document.writeln('          <a href="index.html" class="footer_menu">ホーム</a>&nbsp;|&nbsp;' );
    document.writeln('          <a href="gohouji.html" class="footer_menu">ご法事</a>&nbsp;|&nbsp;' );
    document.writeln('          <a href="gokeiji.html" class="footer_menu">ご慶事</a>&nbsp;|&nbsp;' );
//  document.writeln('          <a href="goenkai.html" class="footer_menu">ご宴会・ご接待</a>&nbsp;|&nbsp;' );
//  document.writeln('          <a href="catering.html" class="footer_menu">ケータリング・出前</a>&nbsp;|&nbsp;' );
    document.writeln('          <a href="sushiichiba.html" class="footer_menu">すし市場</a>&nbsp;|&nbsp;' );
    document.writeln('          <a href="access.html" class="footer_menu">アクセス</a>' );
    document.writeln('        </td>' );
    document.writeln('      </tr>' );
    document.writeln('      <tr>' );
    document.writeln('        <td class="footer">' );
    document.writeln('          <span style="font-size:15px;">会席料理 なか安</span> 東京都八王子市暁町1-36-6 TEL：042-623-2222　／&nbsp;' );
    document.writeln('          <span style="font-size:15px;">すし市場 なか安 青梅店</span> 東京都青梅市新町3-17-10 TEL：0428-32-2255' );
    document.writeln('        </td>' );
    document.writeln('      </tr>' );
    document.writeln('      <tr>' );
    document.writeln('        <td align="right" valign="top" style="background: url(\'image/menu_bg0.gif\') repeat-x scroll left top;">' );
    document.writeln('          <img src="image/null.gif" width="1" height="1" border="0" alt="" title=""' );
    document.writeln('        ></td>' );
    document.writeln('      </tr>' );
    document.writeln('      <tr>' );
    document.writeln('        <td align="right" class="footer">' );
    document.writeln('          Copyright(C) なか安. All rights reserved. www.nakayasu.jp' );
    document.writeln('        </td>' );
    document.writeln('      </tr>' );
    document.writeln('    </table>' );
    document.writeln('  </div>' );
}

