var chapter_list = new Array(
  ["Vol.01 Ch.001: The Girl from the Sky","v01/c001"],
  ["Vol.01 Ch.002: The Journey's Beginning","v01/c002"],
  ["Vol.01 Ch.003: Keele","v01/c003"],
  ["Vol.01 Ch.004: Relentless Assault at Regulus Dojo!","v01/c004"],
  ["Vol.01 Ch.005: Her Name is Meredy","v01/c005"],
  ["Vol.02 Ch.006: The Real Beginning","v02/c006"],
  ["Vol.02 Ch.007: Nostos Cave","v02/c007"],
  ["Vol.02 Ch.008: Treetop Village","v02/c008"],
  ["Vol.02 Ch.009: Grand Fall","v02/c009"],
  ["Vol.02 Ch.010: Undine","v02/c010"],
  ["Vol.02 Ch.011: And to the Royal Capital...","v02/c011"],
  ["Vol.03 Ch.012: Royal City Inferia","v03/c012"],
  ["Vol.03 Ch.013: Keele's Struggle","v03/c013"],
  ["Vol.03 Ch.014: Seeds of War","v03/c014"],
  ["Vol.03 Ch.015: Goodbye... and...","v03/c015"],
  ["Vol.03 Ch.016: Ras' Appearance!!","v03/c016"],
  ["Vol.03 Ch.017: Greater Wind Craymel, Sylph","v03/c017"],
  ["Vol.04 Ch.018: Reunion","v04/c018"],
  ["Vol.04 Ch.019: Greater Fire Craymel, Efreet","v04/c019"],
  ["Vol.04 Ch.020: Greater Light Craymel, Rem","v04/c020"],
  ["Vol.04 Ch.021: Ras' Reappearance","v04/c021"],
  ["Vol.04 Ch.022: Bridge of Light","v04/c022"],
  ["Vol.04 Ch.023: To an Unknown World...","v04/c023"],
  ["Vol.05 Ch.024: The Town of Imen","v05/c024"],
  ["Vol.05 Ch.025: Reunion with Galenos","v05/c025"],
  ["Vol.05 Ch.026: Battle with Gnome!","v05/c026"],
  ["Vol.05 Ch.027: Chat's Hut","v05/c027"],
  ["Vol.05 Ch.028: The Van Eltia Sets Off!","v05/c028"],
  ["Vol.05 Ch.029: Celsius' Lament","v05/c029"]
);

var total_chapters = 29;

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;

