var chapter_list = new Array(
  ["Vol.01 Ch.001: Domina","v01/c001"],
  ["Vol.01 Ch.002: Split Friendship","v01/c002"],
  ["Vol.01 Ch.003: My Home","v01/c003"],
  ["Vol.01 Ch.004: God's Chosen","v01/c004"],
  ["Vol.01 Ch.005: Messenger from the Underworld","v01/c005"],
  ["Vol.01 Ch.006","v01/c006"],
  ["Vol.01 Ch.007","v01/c007"],
  ["Vol.02 Ch.008","v02/c008"],
  ["Vol.02 Ch.009","v02/c009"],
  ["Vol.02 Ch.010","v02/c010"],
  ["Vol.02 Ch.011","v02/c011"],
  ["Vol.02 Ch.012","v02/c012"],
  ["Vol.02 Ch.012.5: extra","v02/c012.5"],
  ["Vol.03 Ch.013","v03/c013"],
  ["Vol.03 Ch.014","v03/c014"],
  ["Vol.03 Ch.015","v03/c015"],
  ["Vol.03 Ch.016","v03/c016"],
  ["Vol.03 Ch.017","v03/c017"],
  ["Vol.03 Ch.018","v03/c018"],
  ["Vol.03 Ch.019","v03/c019"],
  ["Vol.03 Ch.020: Quickening","v03/c020"],
  ["Vol.03 Ch.021: Summons","v03/c021"],
  ["Vol.03 Ch.022: Destruction","v03/c022"],
  ["Vol.04 Ch.023: Still Unseen Light","v04/c023"],
  ["Vol.04 Ch.024: A savior?","v04/c024"],
  ["Vol.04 Ch.025: Unsolvable feelings","v04/c025"],
  ["Vol.04 Ch.026: Flash","v04/c026"],
  ["Vol.04 Ch.027: Toto's Answer","v04/c027"],
  ["Vol.04 Ch.028: Return Path","v04/c028"],
  ["Vol.04 Ch.029: Toto*the*Black","v04/c029"],
  ["Vol.05 Ch.030: Swaying World","v05/c030"],
  ["Vol.05 Ch.031: I'm you and you're me","v05/c031"],
  ["Vol.05 Ch.032: Assigned Roles","v05/c032"],
  ["Vol.05 Ch.033: Legend of Mana","v05/c033"],
  ["Vol.05 Ch.033.5: Extras","v05/c033.5"]
);

var total_chapters = 35;

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;

