var chapter_list = new Array(
  ["Vol.01 Ch.001: The Heart's Egg","v01/c001"],
  ["Vol.01 Ch.002: Tea at the royal garden","v01/c002"],
  ["Vol.01 Ch.003: The Third Egg","v01/c003"],
  ["Vol.01 Ch.004: Chips! Syrup! Whipped Cream! leave it to Suu~~","v01/c004"],
  ["Vol.01 Ch.005: I'm the Trump Card!?","v01/c005"],
  ["Vol.02 Ch.006: The X Egg","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.03 Ch.011","v03/c011"],
  ["Vol.03 Ch.012","v03/c012"],
  ["Vol.03 Ch.013","v03/c013"],
  ["Vol.03 Ch.014","v03/c014"],
  ["Vol.04 Ch.015.1","v04/c015.1"],
  ["Vol.04 Ch.015.2","v04/c015.2"],
  ["Vol.04 Ch.016.1","v04/c016.1"],
  ["Vol.04 Ch.016.2","v04/c016.2"],
  ["Vol.04 Ch.017","v04/c017"],
  ["Vol.04 Ch.018","v04/c018"],
  ["Vol.04 Ch.018.5: Omake","v04/c018.5"],
  ["Vol.05 Ch.019","v05/c019"],
  ["Vol.05 Ch.020","v05/c020"],
  ["Vol.05 Ch.021","v05/c021"],
  ["Vol.05 Ch.022","v05/c022"],
  ["Vol.05 Ch.022.5: Omake","v05/c022.5"],
  ["Vol.06 Ch.023","v06/c023"],
  ["Vol.06 Ch.024","v06/c024"],
  ["Vol.06 Ch.025","v06/c025"],
  ["Vol.06 Ch.026","v06/c026"],
  ["Vol.07 Ch.027","v07/c027"],
  ["Vol.07 Ch.027.5: Extra","v07/c027.5"],
  ["Vol.07 Ch.028","v07/c028"],
  ["Vol.07 Ch.029","v07/c029"],
  ["Vol.07 Ch.030","v07/c030"],
  ["Vol.08 Ch.031","v08/c031"],
  ["Vol.08 Ch.032","v08/c032"],
  ["Vol.08 Ch.033","v08/c033"],
  ["Vol.08 Ch.034","v08/c034"],
  ["Vol.09 Ch.035","v09/c035"],
  ["Vol.09 Ch.036","v09/c036"],
  ["Vol.09 Ch.037","v09/c037"],
  ["Vol.09 Ch.038","v09/c038"],
  ["Vol.09 Ch.039","v09/c039"],
  ["Vol.10 Ch.040","v10/c040"],
  ["Vol.10 Ch.041","v10/c041"],
  ["Vol.10 Ch.042","v10/c042"],
  ["Vol.10 Ch.043","v10/c043"],
  ["Vol.10 Ch.044","v10/c044"],
  ["Vol.11 Ch.045","v11/c045"],
  ["Vol.11 Ch.046","v11/c046"]
);

var total_chapters = 51;

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;
