var chapter_list = new Array(
  ["Vol.01 Ch.001","v01/c001"],
  ["Vol.01 Ch.002","v01/c002"],
  ["Vol.01 Ch.003","v01/c003"],
  ["Vol.01 Ch.005.5: Extra Chapter 1","v01/c005.5"],
  ["Vol.01 Ch.005.6: Extra Chapter 2","v01/c005.6"],
  ["Vol.02 Ch.004","v02/c004"],
  ["Vol.02 Ch.005","v02/c005"],
  ["Vol.02 Ch.006","v02/c006"],
  ["Vol.02 Ch.007","v02/c007"],
  ["Vol.02 Ch.008","v02/c008"],
  ["Vol.02 Ch.009","v02/c009"],
  ["Vol.02 Ch.010","v02/c010"],
  ["Vol.02 Ch.010.5: Extra Chapter 3","v02/c010.5"],
  ["Vol.03 Ch.011","v03/c011"],
  ["Vol.03 Ch.012","v03/c012"],
  ["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.04 Ch.017","v04/c017"],
  ["Vol.04 Ch.018","v04/c018"],
  ["Vol.04 Ch.019","v04/c019"],
  ["Vol.04 Ch.020","v04/c020"],
  ["Vol.04 Ch.021","v04/c021"],
  ["Vol.04 Ch.022","v04/c022"],
  ["Vol.04 Ch.023","v04/c023"],
  ["Vol.05 Ch.024","v05/c024"],
  ["Vol.05 Ch.025","v05/c025"],
  ["Vol.05 Ch.026","v05/c026"],
  ["Vol.05 Ch.027","v05/c027"],
  ["Vol.05 Ch.028","v05/c028"],
  ["Vol.05 Ch.029","v05/c029"],
  ["Vol.05 Ch.030","v05/c030"],
  ["Vol.06 Ch.031","v06/c031"],
  ["Vol.06 Ch.032","v06/c032"],
  ["Vol.06 Ch.033","v06/c033"],
  ["Vol.06 Ch.034","v06/c034"],
  ["Vol.06 Ch.035","v06/c035"],
  ["Vol.06 Ch.036","v06/c036"],
  ["Vol.06 Ch.037","v06/c037"],
  ["Vol.07 Ch.038","v07/c038"],
  ["Vol.07 Ch.039","v07/c039"],
  ["Vol.07 Ch.040","v07/c040"],
  ["Vol.07 Ch.041","v07/c041"],
  ["Vol.07 Ch.042","v07/c042"],
  ["Vol.07 Ch.043","v07/c043"],
  ["Vol.07 Ch.044","v07/c044"],
  ["Vol.08 Ch.045","v08/c045"],
  ["Vol.08 Ch.046","v08/c046"],
  ["Vol.08 Ch.047","v08/c047"],
  ["Vol.08 Ch.048","v08/c048"],
  ["Vol.08 Ch.049","v08/c049"],
  ["Vol.08 Ch.050","v08/c050"],
  ["Vol.08 Ch.051","v08/c051"],
  ["Vol.09 Ch.052","v09/c052"],
  ["Vol.09 Ch.053","v09/c053"],
  ["Vol.09 Ch.054","v09/c054"],
  ["Vol.09 Ch.055","v09/c055"],
  ["Vol.09 Ch.056","v09/c056"],
  ["Vol.09 Ch.057","v09/c057"]
);

var total_chapters = 60;

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;

