backgroundImage = new Array(16);
backgroundImageNumbers = backgroundImage.length;
for(i = 0; i < backgroundImageNumbers; i++) {
  backgroundImage[i] = new Array(4);
}
backgroundImage[0][0] = "./old/my_own_house/image/first_floor_3d_0.png";
backgroundImage[0][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 一階を真上から見る";
backgroundImage[0][2] = "892";
backgroundImage[0][3] = "600";
backgroundImage[1][0] = "./old/my_own_house/image/second_floor_3d_0.png";
backgroundImage[1][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 二階を真上から見る";
backgroundImage[1][2] = "892";
backgroundImage[1][3] = "600";
backgroundImage[2][0] = "./old/my_own_house/image/roof_floor_3d_0.png";
backgroundImage[2][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 屋階を真上から見る";
backgroundImage[2][2] = "892";
backgroundImage[2][3] = "600";
backgroundImage[3][0] = "./old/my_own_house/image/site_map_3d_0.png";
backgroundImage[3][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 敷地全体を上空から見る";
backgroundImage[3][2] = "892";
backgroundImage[3][3] = "600";
backgroundImage[4][0] = "./old/my_own_house/image/scene_7_0.png";
backgroundImage[4][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 屋外室";
backgroundImage[4][2] = "892";
backgroundImage[4][3] = "600";
backgroundImage[5][0] = "./old/my_own_house/image/scene_7_skeleton.png";
backgroundImage[5][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 屋外室（スケルトン）";
backgroundImage[5][2] = "892";
backgroundImage[5][3] = "600";
backgroundImage[6][0] = "./image/my_own_house/scene_7_20081212154905_1h1m28s_800_600.png";
backgroundImage[6][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 屋外室（レンダリング）";
backgroundImage[6][2] = "800";
backgroundImage[6][3] = "600";
backgroundImage[7][0] = "./image/my_own_house/scene_7_20081211094314_58m18s_800_600.png";
backgroundImage[7][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 屋外室（レンダリング）";
backgroundImage[7][2] = "800";
backgroundImage[7][3] = "600";
backgroundImage[8][0] = "./old/my_own_house/image/scene_5_0.png";
backgroundImage[8][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 西南側外観";
backgroundImage[8][2] = "892";
backgroundImage[8][3] = "600";
backgroundImage[9][0] = "./old/my_own_house/image/scene_5_skeleton.png";
backgroundImage[9][1] = "<a href=\"./?my_own_house\">最新の自邸計画案</a> - 西南側外観（スケルトン）";
backgroundImage[9][2] = "892";
backgroundImage[9][3] = "600";
backgroundImage[10][0] = "./image/chair_in_process_of_evolution/sketch_826_600.png";
backgroundImage[10][1] = "<a href=\"./old/chair_in_process_of_evolution_concept.html\" target=\"main\">進化の過程にある椅子</a> - Sketch";
backgroundImage[10][2] = "826";
backgroundImage[10][3] = "600";
backgroundImage[11][0] = "./image/chair_in_process_of_evolution/curiocase/painting_800_600.png";
backgroundImage[11][1] = "<a href=\"./old/chair_in_process_of_evolution_curiocase_0.html\" target=\"main\">進化の過程にある椅子 Ver.1.0 キュリオケースの機能を持つインスタンス</a>";
backgroundImage[11][2] = "800";
backgroundImage[11][3] = "600";
backgroundImage[12][0] = "./image/2_households_condominium/painting_7_800_600.png";
backgroundImage[12][1] = "<a href=\"./old/2_households_condominium_0.html\" target=\"main\">二世帯集合住宅</a> - 上空より";
backgroundImage[12][2] = "800";
backgroundImage[12][3] = "600";
backgroundImage[13][0] = "./old/chair_in_process_of_evolution/corner/image/compefile2.gif";
backgroundImage[13][1] = "<a href=\"./old/chair_in_process_of_evolution_corner.html\" target=\"main\">進化の過程にある椅子 Ver.2.0 部屋の隅に置くためのインスタンス</a> - 三面図";
backgroundImage[13][2] = "500";
backgroundImage[13][3] = "500";
backgroundImage[14][0] = "./old/chair_in_process_of_evolution/corner/image/compefile3.gif";
backgroundImage[14][1] = "<a href=\"./old/chair_in_process_of_evolution_corner.html\" target=\"main\">進化の過程にある椅子 Ver.2.0 部屋の隅に置くためのインスタンス</a> - 詳細図";
backgroundImage[14][2] = "500";
backgroundImage[14][3] = "500";
backgroundImage[15][0] = "./image/logo_320_240_animation_0.gif";
backgroundImage[15][1] = "手描きのロゴマーク - アニメーション 0";
backgroundImage[15][2] = "320";
backgroundImage[15][3] = "240";

function changeBackgroundImage() {
  backgroundImageNumber = Math.floor(Math.random() * backgroundImageNumbers);
  //document.getElementById("id_body").style.backgroundImage = backgroundImage[backgroundImageNumber][0];
  //document.getElementById("id_body").setAttribute("style", "background-image:url(" + backgroundImage[backgroundImageNumber][0] + ");background-repeat:no-repeat;background-position:" + (160 + (backgroundImage[0][2] - backgroundImage[backgroundImageNumber][2]) / 2) + "px " + (80 + (backgroundImage[0][3] - backgroundImage[backgroundImageNumber][3]) / 2) + "px;background-attachment:scroll;");
  //document.getElementById("id_td").setAttribute("style", "background-image:url(" + backgroundImage[backgroundImageNumber][0] + ");background-repeat:no-repeat;background-position:" + (128 + (backgroundImage[0][2] - backgroundImage[backgroundImageNumber][2]) / 2) + "px center;background-attachment:scroll;background-color:rgb(255,255,255);padding-left:8px;padding-right:8px;;padding-top:8px;padding-bottom:8px;");
  result = Math.floor(Math.random() * 9);
  if(result == 0) {
    backgroundPposition = "96px top";//"left top";
  }
  else if(result == 1) {
    backgroundPposition = "96px center";//"left center";
  }
  else if(result == 2) {
    backgroundPposition = "96px bottom";//"left bottom";
  }
  else if(result == 3) {
    backgroundPposition = "center top";
  }
  else if(result == 4) {
    backgroundPposition = "center center";
  }
  else if(result == 5) {
    backgroundPposition = "center bottom";
  }
  else if(result == 6) {
    backgroundPposition = "right top";
  }
  else if(result == 7) {
    backgroundPposition = "right center";
  }
  else if(result == 8) {
    backgroundPposition = "right bottom";
  }
  document.getElementById("id_td").setAttribute("style", "background-image:url(" + backgroundImage[backgroundImageNumber][0] + ");background-repeat:no-repeat;background-position:" + backgroundPposition + ";background-attachment:scroll;background-color:rgb(255,255,255);padding-left:8px;padding-right:8px;;padding-top:8px;padding-bottom:8px;");
  document.getElementById("id_title").innerHTML = "<a href=\"#\" onclick=\"changeBackgroundImage()\">&raquo;</a> " + backgroundImage[backgroundImageNumber][1];
}

