﻿// JavaScript Document

var contents = [
{ src:"/image_contents/b_home01.gif", link:"/index.html", alt:"HOMEへ" },
{ src:"/image_contents/b_new01.gif", link:"/new/index.html", alt:"最新情報へ" },
{ src:"/image_contents/b_menu01.gif", link:"/menu_main.html", alt:"メニュー案内へ" },
{ src:"/image_contents/b_enkai01.gif", link:"/enkai.html", alt:"リンク集へ" },
{ src:"/image_contents/b_shop01.gif", link:"/shop_main.html", alt:"店舗案内へ" },
{ src:"/image_contents/b_fc01.gif", link:"/fctenpo.html", alt:"ＦＣ店舗紹介へ" },
{ src:"/image_contents/b_recruit01.gif", link:"/saiyou_00.html", alt:"採用情報へ" },
{ src:"/image_contents/b_company01.gif", link:"/kaisya.html", alt:"会社案内へ" },
{ src:"/image_contents/b_foods01.gif", link:"/syokuzai.html", alt:"食材情報募集へ" },
{ src:"/image_contents/b_tenant01.gif", link:"/tenpobukken.html", alt:"備長炭火焼き鳥 炭火焼 串八珍のページヘ" }
];

var shop_lists = [
{ src:"/image_logo/logo_kushihacchin01_off.gif", link:"/main_01_1kushihacchin.html", alt:"備長炭火焼き鳥 炭火焼 串八珍のページ" },
{ src:"/image_logo/logo_kushihacchin02_off.gif", link:"/main_01_2kushihacchin.html", alt:"備長炭火焼き鳥 やきとり 元祖 串八珍のページ" },
{ src:"/image_logo/logo_sushinoya_off.gif", link:"/main_02sushinoya.html", alt:"寿司居酒屋 海鮮魚市 鮨乃家のページ" },
{ src:"/image_logo/logo_arigatei_off.gif", link:"/main_03arigatei.html", alt:"炭火焼肉と豚塩ホルモン ありが亭のページ" },
{ src:"/image_logo/logo_xian_off.gif", link:"/main_05xian.html", alt:"中国西安料理と刀削麺、火鍋　ＸＩ´ＡＮ(シーアン)・刀削麺荘のページ" },
{ src:"/image_logo/logo_uohachi_off.gif", link:"/main_06uohachi.html", alt:"漁港直送、酒場　魚八のページ" },
{ src:"/image_logo/logo_dic_off.gif", link:"/dic_main.html", alt:"食材事典のページ" }
];

create_contents();
create_space();
create_shop_list();




/*-------------------------------------------------------------------*/

function create_contents(){
  document.write('<table summary="contents" style="width:770px; background-color:#341b0d;" border="0" cellspacing="0" cellpadding="0">\n');
  document.write('<tr>\n');
  document.write('<td class="tdd-brown">');
  for( var i=0,content; content=contents[i]; i++ ){
    if( String(location.pathname) == content.link ){
      document.write('<a href="'+content.link+'"><img src="'+content.src.replace('01.gif','02.gif')+'" alt="'+content.alt+'" width="77" height="16" style="border-style:none;" ></a>\n');
    } else {
      document.write('<a href="'+content.link+'"><img src="'+content.src+'" alt="'+content.alt+'" width="77" height="16" style="border-style:none;" onmouseover="this.src=String(this.src).replace(\'01.gif\',\'02.gif\');" onmouseout="this.src=String(this.src).replace(\'02.gif\',\'01.gif\');"></a>\n');
    }
    document.write('<img src="/gif/spacer.gif" alt="space" width="3" height="1">\n');
    if( !((i+1)%7) ){
      document.write('</td>\n');
      document.write('</tr>\n');
      document.write('<tr>\n');
      document.write('<td class="tdd-brown"><img src="/gif/spacer.gif" alt="space" width="1" height="5"></td>\n');
      document.write('</tr>\n');
      document.write('<tr>\n');
      document.write('<td class="tdd-brown">');
    }
  }
  document.write('</td>\n');
  document.write('</tr>\n');
  document.write('</table>\n');
}

function create_space(){
  // ◆space&line start◆
  document.write('<table summary="line" style="width:770;" border="0" cellspacing="0" cellpadding="0">\n');
  document.write('<tbody>\n');
  // ◆◆space4 start◆◆
  document.write('<tr>\n');
  document.write('<td class="tdd-brown"><img src="/gif/spacer.gif" alt="space" width="1" height="5"></td>\n');
  document.write('</tr>\n');
  // ◆◆space4 end◆◆
  document.write('<tr>\n');
  // ◆◆line start◆◆
  document.write('<td class="tdd-brown"><img src="/gif/navi_f.gif" alt="navi_f" width="770" height="6"></td>\n');
  // ◆◆line end◆◆
  document.write('</tr>\n');
  // ◆◆space5 start◆◆
  document.write('<tr>\n');
  document.write('<td class="tdd-brown"><img src="/gif/spacer.gif" alt="space" width="1" height="5"></td>\n');
  document.write('</tr>\n');
  // ◆◆space5 end◆◆
  document.write('</tbody>\n');
  document.write('</table>\n');
  // ◆space&line end◆
}

function create_shop_list(){
  document.write('<table summary="line" style="width:770px;" border="0" cellspacing="0" cellpadding="0">\n');
  document.write('<tr>\n');
  document.write('<td class="tdd-brown">');
  for( var i=0,shop_list; shop_list=shop_lists[i]; i++ ){
    if( String(location.pathname) == shop_list.link ){
      document.write('<a href="'+shop_list.link+'" title="'+shop_list.alt+'へ"><img src="'+shop_list.src.replace('off.gif','on.gif')+'" alt="'+shop_list.alt+'" width="70" height="42" border="0"></a>\n');
    } else {
      document.write('<a href="'+shop_list.link+'" title="'+shop_list.alt+'へ"><img src="'+shop_list.src+'" alt="'+shop_list.alt+'" width="70" height="42" border="0" onmouseover="this.src=String(this.src).replace(\'off.gif\',\'on.gif\');" onmouseout="this.src=String(this.src).replace(\'on.gif\',\'off.gif\');"></a>\n');
    }
    document.write('<img src="/gif/spacer.gif" alt="space" width="5" height="1">\n');
  }
  document.write('</td>\n');
  document.write('</tr>\n');
  document.write('</table>\n');
}