var chapter_list = new Array(
  ["Vol.01 Ch.001: The Warm Prison","v01/c001"],
  ["Vol.01 Ch.002: Will to Fate","v01/c002"],
  ["Vol.01 Ch.003: Proof of Murderous Intent","v01/c003"],
  ["Vol.01 Ch.004: Crisis (Shin-Lu)","v01/c004"],
  ["Vol.01 Ch.005: The Spent Arrow","v01/c005"],
  ["Vol.01 Ch.006: After the Banquet","v01/c006"],
  ["Vol.02 Ch.007: Light and Darkness","v02/c007"],
  ["Vol.02 Ch.008: Wild Impulse","v02/c008"],
  ["Vol.02 Ch.009: Curse and Fortune","v02/c009"],
  ["Vol.02 Ch.010: Puritan's Donkey","v02/c010"],
  ["Vol.02 Ch.011: Hidden Ability","v02/c011"],
  ["Vol.02 Ch.012: Surface Tension","v02/c012"],
  ["Vol.03 Ch.013: The Enamored Soul","v03/c013"],
  ["Vol.03 Ch.014: Omen of Tragedy","v03/c014"],
  ["Vol.03 Ch.015","v03/c015"],
  ["Vol.03 Ch.016","v03/c016"],
  ["Vol.03 Ch.017","v03/c017"],
  ["Vol.04 Ch.018","v04/c018"],
  ["Vol.04 Ch.019","v04/c019"],
  ["Vol.04 Ch.020: Inconsistent Feelings","v04/c020"],
  ["Vol.04 Ch.021: Training","v04/c021"],
  ["Vol.04 Ch.022: An Illuminating Place","v04/c022"],
  ["Vol.04 Ch.022.1: Interlude","v04/c022.1"],
  ["Vol.05 Ch.023: Continuous Shaking","v05/c023"],
  ["Vol.05 Ch.024: Waking Nightmare","v05/c024"],
  ["Vol.05 Ch.025: Heavenly Sound","v05/c025"],
  ["Vol.05 Ch.026: Fire Red Flower","v05/c026"],
  ["Vol.05 Ch.027: Churning Darkness","v05/c027"],
  ["Vol.05 Ch.028: Water Surfaces Reflection","v05/c028"],
  ["Vol.05 Ch.028.5: Special: To the Sea!","v05/c028.5"],
  ["Vol.06 Ch.029: Similar Vessel","v06/c029"],
  ["Vol.06 Ch.030: Cold Flame","v06/c030"],
  ["Vol.06 Ch.031: Answer","v06/c031"],
  ["Vol.06 Ch.032: Explanation of Death","v06/c032"],
  ["Vol.06 Ch.033: Fetters","v06/c033"],
  ["Vol.07 Ch.034.1: Canon","v07/c034.1"],
  ["Vol.07 Ch.034.2: Individual Return","v07/c034.2"],
  ["Vol.07 Ch.035: A Matter Of Ability","v07/c035"],
  ["Vol.07 Ch.036: Minion","v07/c036"]
);

var total_chapters = 39;

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;

