function changebackimage(docname, classname)
{
  document.all(docname).className = classname;
}
function changemenutitle(num)
{
  document.all("m0").innerText = "TOP";
  document.all("m1").innerText = "基本操作";
  document.all("m2").innerText = "ツール";
  document.all("m3").innerText = "BBS";
  document.all("m4").innerText = "Battle.Net";
  document.all("m5").innerText = "リンク集";
  document.all("m6").innerText = "Human";
  document.all("m7").innerText = "Undead";
  document.all("m8").innerText = "NightElf";
  document.all("m9").innerText = "Orc";
  document.all("m10").innerText = "Human";
  document.all("m11").innerText = "Undead";
  document.all("m12").innerText = "NightElf";
  document.all("m13").innerText = "Orc";
  document.all("m14").innerText = "Item";
  document.all("m15").innerText = "Creep";
  document.all("m16").innerText = "Neutral Building";
  document.all("m17").innerText = "Map";
  document.all("m18").innerText = "Human";
  document.all("m19").innerText = "Undead";
  document.all("m20").innerText = "NightElf";
  document.all("m21").innerText = "Orc";
  document.all("m22").innerText = "Neutral";

  document.all("m"+num).style.background = "#404040";

}
function changemenu(num)
{
  var num;
  var strpath;

  if (num >= 200) {
    num = num - 200;
    strpath = "../../";
  } else if (num >= 100) {
    num = num - 100;
    strpath = "";
  } else
    strpath = "../";

  switch (num) {
    case 0:
      _HpbJumpURL(strpath + 'index.html');
      break;
    case 1:
      _HpbJumpURL(strpath + 'Basic/index.html');
      break;
    case 2:
      _HpbJumpURL(strpath + 'Etc/tools.html');
      break;
    case 3:
      _HpbJumpURL(strpath + 'cgi-bin/bbs/wforum.cgi');
      break;
    case 4:
      _HpbJumpURL(strpath + 'Etc/battlenet.html');
      break;
    case 5:
      _HpbJumpURL(strpath + 'Etc/link.html');
      break;
    case 6:
      _HpbJumpURL(strpath + 'Human/index.html');
      break;
    case 7:
      _HpbJumpURL(strpath + 'Undead/index.html');
      break;
    case 8:
      _HpbJumpURL(strpath + 'NightElf/index.html');
      break;
    case 9:
      _HpbJumpURL(strpath + 'Orc/index.html');
      break;
    case 10:
      _HpbJumpURL(strpath + 'Human/indexh.html');
      break;
    case 11:
      _HpbJumpURL(strpath + 'Undead/indexh.html');
      break;
    case 12:
      _HpbJumpURL(strpath + 'NightElf/indexh.html');
      break;
    case 13:
      _HpbJumpURL(strpath + 'Orc/indexh.html');
      break;
    case 14:
      _HpbJumpURL(strpath + 'Item/index.html');
      break;
    case 15:
      _HpbJumpURL(strpath + 'Neutral/index.html');
      break;
    case 16:
      _HpbJumpURL(strpath + 'Neutral/indexh.html');
      break;
    case 17:
      _HpbJumpURL(strpath + 'Map/index.html');
      break;
    case 18:
      _HpbJumpURL(strpath + 'Humanx/index.html');
      break;
    case 19:
      _HpbJumpURL(strpath + 'Undeadx/index.html');
      break;
    case 20:
      _HpbJumpURL(strpath + 'NightElfx/index.html');
      break;
    case 21:
      _HpbJumpURL(strpath + 'Orcx/index.html');
      break;
    case 22:
      _HpbJumpURL(strpath + 'Neutralx/index.html');
      break;
  }
}
