function test(){
  alert("これはテストです");
}

function write_menu(menu,yn,dateyn){
//「menu」は呼び出し元のページを表すメニュー名
//「h」は、階層位置。HTMLルートは0。
//「yn」は、該当タブにリンクを記述するかしないかを表すパラメータ

//メニューの数を宣言
var l = 10;

//メニューに表示する文字の配列の宣言
menu_str = new Array(l);

//メニュー文字列の初期化
menu_str[0] = "<br> ホーム ";
menu_str[1] = "<br> リハスタ ";
menu_str[2] = "<br> レンタル ";
menu_str[3] = "<br> スクール ";
menu_str[4] = "<br> 修理メンテナンス ";
menu_str[5] = "<br> 特集記事 ";
menu_str[6] = "<br> サウンドファイル ";
menu_str[7] = "<br> 店舗紹介 ";
menu_str[8] = "<br> Q & A ";
menu_str[9] = "<br> サイトマップ ";

//メニューのリンク先の配列の宣言
menu_lnk = new Array(l);

//メニューのリンク先の初期化
menu_lnk[0] = "/";
menu_lnk[1] = "/studio/";
menu_lnk[2] = "/services/rental/";
menu_lnk[3] = "/school/";
menu_lnk[4] = "/services/tech/";
menu_lnk[5] = "/hotitems/";
menu_lnk[6] = "/sound_library/";
menu_lnk[7] = "/about/";
menu_lnk[8] = "/email.html";
menu_lnk[9] = "/smap/";

//最終更新日付の宣言
menu_mod = new Array(l);

//最終更新日付の初期化
//コンテンツがHomeのときは日付を出力
if ( dateyn == "y" ) {
  menu_mod[0] = "";
  menu_mod[1] = "";
  menu_mod[2] = "";
  menu_mod[3] = "";
  menu_mod[4] = "";
  menu_mod[5] = "";
  menu_mod[6] = "";
  menu_mod[7] = "";
  menu_mod[8] = "";
  menu_mod[9] = "";
  menu_mod[10] = "";

//コンテンツの階層が0以外のときは日付を出力しない
}else{
  for (i = 0 ; i < l ; i++ ){
    menu_mod[i] = "";
  }
}

//イメージファイルのディレクトリパス
var img_path = "/img/";

//colspan値
var colspan_value = l * 4 + 1;

//現在位置を配列の要素番号に変換
var cur_num = 0;
while ( menu_str[cur_num] != menu && cur_num < l) {
  cur_num++;
}

//メニューテーブルの開始タグを出力
document.write('<table border="0" cellspacing="0" cellpadding="0">');

//テーブルの１行目を出力
document.write('<tr><td height="3" colspan="',colspan_value,'"><img border="0" src="',img_path,'dummy.gif" width="3" height="3"></td></tr>');

//テーブルの２行目を出力
document.write('<tr><td width=3 height="3"><img border="0" src="',img_path,'dummy.gif" width="3" height="3"></td>\n');

//配列の要素数だけループ
for ( i = 0 ; i < l ; i++ ) {

  //現在位置の変数「menu」と一致していない場合は、リンクあり版を出力
  if ( i != cur_num ) {
    document.write('<td width="3" height="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'tab_off_l.gif" width="3" height="3"></td>\n');
    document.write('<td height="3" bgcolor="#fffff0"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>\n');
    document.write('<td width="3" height="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'tab_off_r.gif" width="3" height="3"></td>');
    document.write('<td width="3" height="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');

  //現在位置の変数「menu」と一致していた場合は、リンク無し版を出力
  }else{
    document.write('<td width="3" height="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'tab_l.gif" width="3" height="3"></td>\n');
    document.write('<td height="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>\n');
    document.write('<td width="3" height="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'tab_r.gif" width="3" height="3"></td>');
    document.write('<td width="3" height="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
  }
}
document.write('</tr>\n');

//３行目、メニュー内容を出力
document.write('<tr><td width=3><img border="0" src="',img_path,'dummy.gif" width="3" height="3"></td>');

//配列の要素数だけループ
for ( i = 0 ; i < l ; i++ ) {

  //現在位置の変数「menu」と一致していない場合は、リンクあり版を出力
  if ( i != cur_num ) {
    document.write('<td width="3" bgcolor="#fffff0"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
    document.write('<td bgcolor="#fffff0" align="center"><b><font size="2"><a href="',menu_lnk[i],'">',menu_str[i],menu_mod[i],'</a></font></b></td>');
    document.write('<td width="3" bgcolor="#fffff0"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
    document.write('<td width="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');

  //現在位置の変数「menu」と一致していた場合は、リンク無し版を出力
  }else{
    document.write('<td width="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');

  //現在位置でもタブリンクありの場合に備えて、
  //リンク開始／終了文字列を作成
    var lnk_start = "";
    var lnk_end = "";
    if ( yn == "y" ) {
      lnk_start = '<a href="' + menu_lnk[i] + '"><font color="#000000">';
      lnk_end = '</font></a>';
      //alert(lnk_start + lnk_end);
    }

  //メニュー文字列を出力
    document.write('<td bgcolor="#ffcc00" align="center"><b><font size="2">',lnk_start,menu_str[i],menu_mod[i],lnk_end,'</font></b></td>');
    document.write('<td width="3" bgcolor="#ffcc00"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
    document.write('<td width="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
  }
}
document.write('</tr>\n');

//４行目を出力
document.write('<tr><td width=3 height="3"><img border="0" src="',img_path,'dummy.gif" width="3" height="3"></td>');

//配列の要素数だけループ
for ( i = 0 ; i < l ; i++ ) {

  //現在位置の変数「menu」と一致していない場合は、リンクあり版を出力
  if ( i != cur_num ) {
    document.write('<td height="3" bgcolor="#fffff0" colspan="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
    document.write('<td width="3" height="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');

  //現在位置の変数「menu」と一致していた場合は、リンク無し版を出力
  }else{
    document.write('<td height="3" bgcolor="#ffcc00" colspan="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
    document.write('<td width="3" height="3"><img border="0" src="',img_path,'dummy.gif" width="1" height="1"></td>');
  }
}

//メニューテーブルの終了タグを出力
document.write("</tr></table>");

}

function write_shortcut(){

//メニューの数を宣言
var l = 37;

//メニューに表示する文字の配列の宣言
menu_str = new Array(l);

//メニュー文字列の初期化
menu_str[0]  = "▼メニューへクイックアクセス▼";
menu_str[1]  = "┣ホーム";
menu_str[2]  = "┃┣ワンポイントアドバイス";
menu_str[3]  = "┃┣WHATS NEW";
menu_str[4]  = "┃┣メールマガジン";
menu_str[5]  = "┃┣フォーラム";
menu_str[6]  = "┃┣ショッピングガイド";
menu_str[7]  = "┃┣店舗紹介";
menu_str[8]  = "┃┗サイトマップ";
menu_str[9]  = "┣オンラインショップ";
menu_str[10]  = "┃┣特集記事";
menu_str[11]  = "┃┣ドラムセット";
menu_str[12]  = "┃┣スネア";
menu_str[13]  = "┃┣シンバル";
menu_str[14]  = "┃┣ヘッド";
menu_str[15]  = "┃┣スナッピー";
menu_str[16]  = "┃┣スティック";
menu_str[17]  = "┃┣ブラシ/その他";
menu_str[18]  = "┃┣フットペダル";
menu_str[19]  = "┃┣ハイハットスタンド";
menu_str[20]  = "┃┣シンバルスタンド";
menu_str[21]  = "┃┣スネアスタンド";
menu_str[22]  = "┃┣スローン";
menu_str[23]  = "┃┣ラック";
menu_str[24]  = "┃┣ホルダー＆アタッチメント";
menu_str[25]  = "┃┣ケース";
menu_str[26]  = "┃┣パーツ/小物";
menu_str[27]  = "┃┣教則/トレーニング";
menu_str[28]  = "┃┣教則本";
menu_str[29]  = "┃┣教則ビデオ＆DVD";
menu_str[30]  = "┃┣パーカッション";
menu_str[31]  = "┃┣中古商品";
menu_str[32]  = "┃┣ジャンク商品";
menu_str[33]  = "┃┗GATEWAYオリジナル";
menu_str[34]  = "┣スクール";
menu_str[35]  = "┣レンタル";
menu_str[36]  = "┣メンテナンス/修理";
menu_str[37]  = "┣レンタルスタジオ";
menu_str[38]  =  "┗Q&A";


//メニューのリンク先の配列の宣言
menu_lnk = new Array(l);

//メニューのリンク先の初期化
menu_lnk[0]  = "";
menu_lnk[1]  = "/";
menu_lnk[2]  = "/onepoint/";
menu_lnk[3]  = "/whats/";
menu_lnk[4]  = "/magazine/magazine.html";
menu_lnk[5]  = "/cgi-bin/bbs/light.cgi";
menu_lnk[6]  = "/shop/guide/";
menu_lnk[7]  = "/about/";
menu_lnk[8]  = "/smap/";
menu_lnk[9]  = "/";
menu_lnk[10]  = "/hotitems/";
menu_lnk[11]  = "/shop/dr/";
menu_lnk[12]  = "/shop/sd/";
menu_lnk[13]  = "/shop/cy/";
menu_lnk[14]  = "/shop/head/";
menu_lnk[15]  = "/shop/snappy/";
menu_lnk[16]  = "/shop/st/";
menu_lnk[17]  = "/shop/bo/";
menu_lnk[18]  = "/shop/fp/";
menu_lnk[19]  = "/shop/hw_hh/";
menu_lnk[20]  = "/shop/hw_cy/";
menu_lnk[21]  = "/shop/hw_sd/";
menu_lnk[22]  = "/shop/hw_is/";
menu_lnk[23]  = "/shop/rc/";
menu_lnk[24]  = "/shop/ha/";
menu_lnk[25]  = "/shop/cs/";
menu_lnk[26]  = "/shop/pp/";
menu_lnk[27]  = "/shop/lt/";
menu_lnk[28]  = "/shop/lt/book/";
menu_lnk[29]  = "/shop/lt/vd/";
menu_lnk[30]  = "/shop/pc/";
menu_lnk[31]  = "/shop/uo/";
menu_lnk[32]  = "/shop/jk/";
menu_lnk[33]  = "/shop/gw/";
menu_lnk[34]  = "/school/";
menu_lnk[35]  = "/services/rental/";
menu_lnk[36]  = "/services/tech/";
menu_lnk[37]  = "/services/studio/";
menu_lnk[38]  = "/email.html";

//選択メニューの出力

document.write('<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>\n');
document.write('<form name="Menu" method="POST"><td><select size="1" name="OP" onChange="Menu_To_Go()">');

for ( i = 0 ; i < l ; i++ ) {
  document.write('<option value="',menu_lnk[i],'">',menu_str[i],'</option>\n');
}

document.write('</select></td></form>');
document.write('<form method="POST"><td align="right">');
document.write('<input type="button" value="第2第4木曜日発行 無料メールマガジン申し込み！" name="B1" onClick="location.href=\'/magazine/magazine.html\'">');
document.write('</td></form></tr></table>');
}

function Menu_To_Go(){
  Sel=document.Menu.OP.selectedIndex;
  Ms=document.Menu.OP.options[Sel].value;
  location.href=Ms;
}

function Customer_Guide(){
//メニュー配列の要素数
var l = 5;

//メニューに表示する文字の配列の宣言
menu_str = new Array(l);

//メニュー文字列の初期化
menu_str[0] = "ご注文方法";
menu_str[1] = "お支払い・お届け";
menu_str[2] = "お客様の個人情報";
menu_str[3] = "法律に基づく表記";
menu_str[4] = "中古商品について";

//メニューのリンク先の配列の宣言
menu_lnk = new Array(l);

//メニューのリンク先の初期化
menu_lnk[0] = '/shop/howto.html" target="_blank';
menu_lnk[1] = '/shop/payment.html" target="_blank';
menu_lnk[2] = '/shop/privacy.html" target="_blank';
menu_lnk[3] = '/shop/legal.html" target="_blank';
menu_lnk[4] = "/shop/workshop/";

  document.write('      <table border="0" width="100%" bgcolor="#333399" cellspacing="0" cellpadding="0">\n');
  document.write('      <tr>\n');
  document.write('        <td width="100%" align="center">\n');
  document.write('          <table border="0" width="100%" cellspacing="0" cellpadding="3">\n');
  document.write('            <tr>\n');
  document.write('              <td width="100%" align="center"><b><font color="#FFFFFF">▼お客様ガイド▼</font></b></td>\n');
  document.write('            </tr>\n');
  document.write('          </table>\n');
  document.write('        </td>\n');
  document.write('      </tr>\n');
  document.write('      <tr>\n');
  document.write('        <td width="100%">\n');
  document.write('          <table border="0" width="100%" cellpadding="3" cellspacing="3">\n');
  for (i=0;i<l;i++){
    document.write('            <tr>\n');
    document.write('              <td width="100%" bgcolor="#E7E7F5" align="center"><b><a href="',menu_lnk[i],'">',menu_str[i],'</a></b></td>\n');
    document.write('            </tr>\n');
  }
  document.write('          </table>\n');
  document.write('        </td>\n');
  document.write('      </tr>\n');
  document.write('    </table>\n');
}



function Category_Menu(menu,yn){

///////////////////////ちょっとオススメ///////////////////////

  document.write('    <table border="0" width="100%" bgcolor="#33CC33" cellspacing="0" cellpadding="3">\n');
  document.write('      <tr>\n');
  document.write('        <td width="100%" align="center"><b><font color="#FFFFFF">★</font>ちょっとオススメ<font color="#FFFFFF">★</font></b></td>\n');
  document.write('      </tr>\n');
  document.write('      <tr>\n');
  document.write('        <td width="100%" align="center">\n');
  document.write('          <table border="0" width="100%" bgcolor="#FFFFFF" cellspacing="0" cellpadding="3">\n');
  document.write('            <tr>\n');
  document.write('              <td width="100%" align="center"><a href="/shop/NHDWLP_LP175withDUALLIST.html">The DUALLISTペダルでタンバリンを鳴らしてみるのはいかが？\n');
  document.write('          <img border="0" src="/shop/DUALLSITwithTAMBOURINE/01.gif" width="120" height="99"></a></td>\n');
  document.write('            </tr>\n');
  document.write('          </table>\n');
  document.write('        </td>\n');
  document.write('      </tr>\n');
  document.write('    </table>\n');
  document.write('    <br>\n');

///////////////////////ちょっとオススメ///////////////////////

//メニューの数を宣言
var l = 18;

//メニューに表示する文字の配列の宣言
menu_str = new Array(l);

//メニュー文字列の初期化
menu_str[0] = "┏ ドラムセット<font size=-1>(4/21)</font>";
menu_str[1] = "┣ スネアドラム<font size=-1>(3/25)</font>";
menu_str[2] = "┣ ハードウェア<font size=-1>(3/25)</font>";
menu_str[3] = "┣ <font color=#808080>ヘッド/スティック</font>";
menu_str[4] = "┣ <font color=#808080>ケース類</font>";
menu_str[5] = "┣ アクセサリ<font size=-1>(3/25)</font>";
menu_str[6] = "┣ <font color=#000000><b>オールド</b></font>";
menu_str[7] = "┃┣ ドラムセット<font size=-1>(2/25)</font>";
menu_str[8] = "┃┣ スネアドラム<font size=-1>(2/25)</font>";
menu_str[9] = "┃┣ <font color=#808080>シンバル</font>";
menu_str[10] = "┃┣ 単品/処分品<font size=-1>(2/27)</font>";
menu_str[11] = "┃┗ <font color=#808080>HW/その他</font>";
menu_str[12] = "┗ <font color=#000000><b>ユーズド</b></font>";
menu_str[13] = "　┣ ドラムセット<font size=-1>(4/1)</font>";
menu_str[14] = "　┣ スネアドラム<font size=-1>(5/13)</font>";
menu_str[15] = "　┣ シンバル<font size=-1>(5/13)</font>";
menu_str[16] = "　┣ 単品/処分品<font size=-1>(5/5)</font>";
menu_str[17] = "　┗ HW/その他<font size=-1>(5/8)</font>";

//メニューのリンク先の配列の宣言
menu_lnk = new Array(l);

//メニューのリンク先の初期化
menu_lnk[0] = "/shop/ncat001.html";
menu_lnk[1] = "/shop/ncat002.html";
menu_lnk[2] = "/shop/ncat003.html";
menu_lnk[3] = "n";
menu_lnk[4] = "n";
menu_lnk[5] = "/shop/ncat006.html";
menu_lnk[6] = "n";
menu_lnk[7] = "/shop/ucat001.html";
menu_lnk[8] = "/shop/ucat002.html";
menu_lnk[9] = "n";
menu_lnk[10] = "/shop/ucat004.html";
menu_lnk[11] = "n";
menu_lnk[12] = "n";
menu_lnk[13] = "/shop/ucat006.html";
menu_lnk[14] = "/shop/ucat007.html";
menu_lnk[15] = "/shop/ucat008.html";
menu_lnk[16] = "/shop/ucat009.html";
menu_lnk[17] = "/shop/ucat010.html";

//現在位置を配列の要素番号に変換
var cur_num = 0;
while ( menu_str[cur_num] != menu && cur_num < l) {
  cur_num++;
}

  document.write('    <table border="0" width="100%" bgcolor="#333399" cellspacing="0" cellpadding="0">\n');
  document.write('      <tr>\n');
  document.write('        <td width="100%" align="center">\n');
  document.write('          <table border="0" width="100%" cellspacing="0" cellpadding="3">\n');
  document.write('            <tr>\n');
  document.write('              <td width="100%" align="center"><b><font color="#FFFFFF">▼商品カテゴリ▼</font></b></td>\n');
  document.write('            </tr>\n');
  document.write('          </table>\n');
  document.write('        </td>\n');
  document.write('      </tr>\n');
  document.write('      <tr>\n');
  document.write('        <td width="100%">\n');
  document.write('          <table border="0" width="100%" cellpadding="3" cellspacing="3">\n');
  document.write('            <tr>\n');
  document.write('              <td width="100%" bgcolor="#E7E7F5"><a href="/shop/hotitems/"><b>★ホットアイテム★</b></a>\n');
  document.write('                <hr noshade size="3" color="#333399">\n');


  for (i=0;i<l;i++){

    //現在位置cur_numの場合は、リンク無し版を出力
    if ( i == cur_num ) {

      //ただし、リンク指定の場合は、リンクを出力
      if ( yn == "y" ) {
        document.write('<span style="background-color: #333399"><a href="',menu_lnk[i],'"><font color="#FFFFFF" >',menu_str[i],'</font></a></span><br>\n');
      }else{
        document.write('<span style="background-color: #333399"><font color="#FFFFFF" >',menu_str[i],'</font></span><br>\n');
      }

    //現在位置でない場合は、リンク有り版を出力
    }else{

      //ただし、リンク文字列が「n」の場合は、リンクなし
      if ( menu_lnk[i] == "n" ) {
        document.write('<font color="red">',menu_str[i],'</font><br>\n');
      }else{
        document.write('<a href="',menu_lnk[i],'">',menu_str[i],'</a><br>\n');
      }
    }
  }
  document.write('              </td>\n');
  document.write('            </tr>\n');
  document.write('          </table>\n');
  document.write('        </td>\n');
  document.write('      </tr>\n');
  document.write('    </table>\n');
}
