var chapter_list = new Array(
  ["Vol.01 Ch.000: A Demon to the End","v01/c000"],
  ["Vol.01 Ch.001: Living with a Demon","v01/c001"],
  ["Vol.01 Ch.002: Rebellion at Dawn","v01/c002"],
  ["Vol.01 Ch.003: Truly Serious Circumstances","v01/c003"],
  ["Vol.01 Ch.004: Saotome Makoto","v01/c004"],
  ["Vol.01 Ch.005: I'll Protect You","v01/c005"],
  ["Vol.02 Ch.006: The Desperate Housemaid","v02/c006"],
  ["Vol.02 Ch.007: A Map of One's Self","v02/c007"],
  ["Vol.02 Ch.008: Jump, Rabbit!","v02/c008"],
  ["Vol.02 Ch.009: Nocturne of Fear","v02/c009"],
  ["Vol.02 Ch.010: Fight...!","v02/c010"],
  ["Vol.02 Ch.011: Cold. With Clouds Rolling In","v02/c011"],
  ["Vol.03 Ch.012: The Spontaneous Girl Skilled in Wit and Beauty","v03/c012"],
  ["Vol.03 Ch.013: A Girl's Charm...!?","v03/c013"],
  ["Vol.03 Ch.014: Let's Meet Again in 10 Years","v03/c014"],
  ["Vol.03 Ch.015: The Essential Artery","v03/c015"],
  ["Vol.03 Ch.016: An Impish Holiday?","v03/c016"],
  ["Vol.03 Ch.017: 88 Points","v03/c017"],
  ["Vol.04 Ch.018: I Love You, But I Hate You.","v04/c018"],
  ["Vol.04 Ch.019: It's Summer! It's The Sea! And...","v04/c019"],
  ["Vol.04 Ch.020: For You, My Beloved","v04/c020"],
  ["Vol.04 Ch.021: Evil Breaker (Beginning)","v04/c021"],
  ["Vol.04 Ch.022: Evil Breaker (End)","v04/c022"],
  ["Vol.04 Ch.023: That Lovey Dovey Feeling?","v04/c023"],
  ["Vol.05 Ch.024: Hiro-kun","v05/c024"],
  ["Vol.05 Ch.025: Bursting Speed! The Rabbit-eared Girl","v05/c025"],
  ["Vol.05 Ch.026: An Enamoring Chocolate Valentine","v05/c026"],
  ["Vol.05 Ch.027: I Will Become a Woman","v05/c027"],
  ["Vol.05 Ch.028: Mini Mini Milky","v05/c028"],
  ["Vol.05 Ch.029: Love Sickness","v05/c029"],
  ["Vol.06 Ch.030: Criminals (Part 1)","v06/c030"],
  ["Vol.06 Ch.031: Criminals (Part 2)","v06/c031"],
  ["Vol.06 Ch.032: The Girl of Midsummer","v06/c032"],
  ["Vol.06 Ch.033: Precious Things Are...","v06/c033"],
  ["Vol.06 Ch.034: Before I Lose You","v06/c034"],
  ["Vol.06 Ch.035: In My Arms","v06/c035"]
);

var total_chapters = 36;

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;
