var chapter_list = new Array(
  ["Vol.01 Ch.001: Warning of Trouble (and Romance)","v01/c001"],
  ["Vol.01 Ch.002: Warning of a Level Up (and Illusions)","v01/c002"],
  ["Vol.01 Ch.003: Second Warning (of a Fallen Angel)","v01/c003"],
  ["Vol.02 Ch.004: Warning about Dark (and his DNA)","v02/c004"],
  ["Vol.02 Ch.005: Warning about Risa","v02/c005"],
  ["Vol.02 Ch.006: Warning of a Big Gamble (and a Skyscraper)","v02/c006"],
  ["Vol.03 Ch.007: ST.White","v03/c007"],
  ["Vol.03 Ch.008: Wings","v03/c008"],
  ["Vol.03 Ch.009: Mask","v03/c009"],
  ["Vol.04 Ch.010: Extra Story: Glass","v04/c010"],
  ["Vol.04 Ch.011: Stage 2 Vol.1","v04/c011"],
  ["Vol.04 Ch.012: Stage 2 Vol.2","v04/c012"],
  ["Vol.05 Ch.013: Stage 2 Vol.3","v05/c013"],
  ["Vol.05 Ch.014: Stage 2 Vol.4","v05/c014"],
  ["Vol.05 Ch.015: Stage 2 Vol.5","v05/c015"],
  ["Vol.05 Ch.016: Stage 2 Vol.6","v05/c016"],
  ["Vol.05 Ch.017: Stage 2 Vol.7","v05/c017"],
  ["Vol.05 Ch.018: Stage 2 Vol.8","v05/c018"],
  ["Vol.06 Ch.019: Stage 2 Vol.9","v06/c019"],
  ["Vol.06 Ch.020: Stage 2 Vol.10","v06/c020"],
  ["Vol.06 Ch.021: Stage 2 Vol.11","v06/c021"],
  ["Vol.06 Ch.022: Riku And Risa's Side Story","v06/c022"],
  ["Vol.06 Ch.023: Second Hand Of Time Vol.1","v06/c023"],
  ["Vol.06 Ch.024: Second Hand Of Time Vol.2","v06/c024"],
  ["Vol.07 Ch.025: Second Hand Of Time Vol.3","v07/c025"],
  ["Vol.07 Ch.026: Second Hand Of Time Vol.4","v07/c026"],
  ["Vol.07 Ch.027: Second Hand Of Time Vol.5","v07/c027"],
  ["Vol.08 Ch.028: Second Hand Of Time Vol. 7 Part 1","v08/c028"],
  ["Vol.08 Ch.029: Second Hand Of  Time Vol.7 Part 2","v08/c029"],
  ["Vol.08 Ch.030: Second Hand Of Time Vol.7 Part 3","v08/c030"],
  ["Vol.08 Ch.031: Second Hand Of Time Vol.8","v08/c031"],
  ["Vol.08 Ch.032: Second Hand Of Time Vol.9","v08/c032"],
  ["Vol.08 Ch.033: Second Hand Of Time Vol.10","v08/c033"],
  ["Vol.09 Ch.034: Second Hand Of  Time Vol.11","v09/c034"],
  ["Vol.09 Ch.035: Stage 3 Vol.1","v09/c035"],
  ["Vol.09 Ch.036: Stage 3 Vol.2","v09/c036"],
  ["Vol.09 Ch.037: Stage 3 Vol.3","v09/c037"],
  ["Vol.09 Ch.038: Stage 3 Vol.4","v09/c038"],
  ["Vol.09 Ch.039","v09/c039"],
  ["Vol.10 Ch.002","v10/c002"],
  ["Vol.10 Ch.003","v10/c003"],
  ["Vol.10 Ch.004","v10/c004"],
  ["Vol.10 Ch.005","v10/c005"],
  ["Vol.10 Ch.006","v10/c006"],
  ["Vol.10 Ch.007","v10/c007"],
  ["Vol.11 Ch.001","v11/c001"],
  ["Vol.11 Ch.002","v11/c002"],
  ["Vol.11 Ch.003","v11/c003"],
  ["Vol.11 Ch.004","v11/c004"],
  ["Vol.11 Ch.005","v11/c005"],
  ["Vol.11 Ch.006","v11/c006"],
  ["Vol.11 Ch.007: Short Story 01","v11/c007"],
  ["Vol.11 Ch.008: Short Story 02","v11/c008"],
  ["Vol.11 Ch.009: Short Story 03","v11/c009"],
  ["Vol.12 Ch.001.1: Stage 3 Vol. 18","v12/c001.1"],
  ["Vol.12 Ch.001.2: Stage 3 Vol. 18","v12/c001.2"],
  ["Vol.12 Ch.001.3: Stage 3 Vol. 19","v12/c001.3"],
  ["Vol.13 Ch.001: Stage 3 Vol. 20","v13/c001"],
  ["Vol.13 Ch.002: Stage 3 Vol. 21","v13/c002"],
  ["Vol.13 Ch.003: Stage 3 Vol. 22","v13/c003"],
  ["Vol.13 Ch.004: Stage 3 Vol. 23","v13/c004"],
  ["Vol.14 Ch.000: Argentine Special","v14/c000"],
  ["Vol.14 Ch.001","v14/c001"],
  ["Vol.14 Ch.002: Stage 4 Volume 2","v14/c002"],
  ["Vol.14 Ch.003: Stage 4 Volume 3","v14/c003"],
  ["Vol.14 Ch.004: Stage 4 Volume 4","v14/c004"],
  ["Vol.14 Ch.005: Stage 4 Volume 5","v14/c005"],
  ["Vol.14 Ch.006: Stage 4 Volume 6","v14/c006"],
  ["Vol.15 Ch.007: Stage 4 Volume 7","v15/c007"],
  ["Vol.15 Ch.008: Stage 4 Volume 8","v15/c008"],
  ["Vol.15 Ch.009: Stage 4 Volume 9","v15/c009"],
  ["Vol.15 Ch.010: Stage 4 Volume 10","v15/c010"],
  ["Vol.15 Ch.011: Stage 4 Volume 11","v15/c011"],
  ["Vol.15 Ch.012: Stage 4 Volume 12","v15/c012"],
  ["Vol.15 Ch.013: Stage 4 Volume 13","v15/c013"],
  ["Vol.15 Ch.014: Stage 4 Volume 14 Part 1","v15/c014"]
);

var total_chapters = 76;

for (var i = 0; i < chapter_list.length; i++) {
  document.getElementById('top_chapter_list').options[i] = new Option(chapter_list[i][0], chapter_list[i][1]);
  document.getElementById('bottom_chapter_list').options[i] = new Option(chapter_list[i][0], chapter_list[i][1]);
}
document.getElementById('top_chapter_list').value=current_chapter;
document.getElementById('bottom_chapter_list').value=current_chapter;
var current_chapter_index = document.getElementById('top_chapter_list').selectedIndex;

