var chapter_list = new Array(
  ["Vol.01 Ch.001: Mr. Fredward's Duck","v01/c001"],
  ["Vol.01 Ch.002: God Please Help Me","v01/c002"],
  ["Vol.01 Ch.003: Carnival Girl","v01/c003"],
  ["Vol.01 Ch.004: Companion Animal","v01/c004"],
  ["Vol.02 Ch.005: The Perilous Goddess","v02/c005"],
  ["Vol.02 Ch.006: The Golden Puppy","v02/c006"],
  ["Vol.02 Ch.007: Listening to the Voice of the Sea","v02/c007"],
  ["Vol.02 Ch.007.5: Omake","v02/c007.5"],
  ["Vol.03 Ch.008: Shining Sea","v03/c008"],
  ["Vol.03 Ch.009: Beyond the Endless Dream","v03/c009"],
  ["Vol.03 Ch.010: The Gates Leading to Heaven","v03/c010"],
  ["Vol.04 Ch.011: Searching for Rainbow","v04/c011"],
  ["Vol.04 Ch.012: Voice of a Thousand Songs","v04/c012"],
  ["Vol.04 Ch.013: In the Middle of the Night","v04/c013"],
  ["Vol.04 Ch.014: Here I Am","v04/c014"],
  ["Vol.04 Ch.014.5: Omake","v04/c014.5"],
  ["Vol.05 Ch.015: Night Prayers","v05/c015"],
  ["Vol.05 Ch.016.1: Controlling Everything","v05/c016.1"],
  ["Vol.05 Ch.016.2: Sometime","v05/c016.2"],
  ["Vol.05 Ch.017: Fishing","v05/c017"],
  ["Vol.06 Ch.018.1: King with a Paper Crown","v06/c018.1"],
  ["Vol.06 Ch.018.2: King with a Paper Crown (2)","v06/c018.2"],
  ["Vol.06 Ch.019: Three Dogs Night","v06/c019"],
  ["Vol.06 Ch.020: A HitchHiker","v06/c020"],
  ["Vol.07 Ch.021: The Witches Conference","v07/c021"],
  ["Vol.07 Ch.022: Snow Fairy","v07/c022"],
  ["Vol.07 Ch.023: Anybody Wants to Die?","v07/c023"],
  ["Vol.07 Ch.024: Watermark","v07/c024"],
  ["Vol.08 Ch.025: Bye Bye Blackbird","v08/c025"],
  ["Vol.08 Ch.026: Drawn in Eternity","v08/c026"],
  ["Vol.08 Ch.027: Summer Rain","v08/c027"]
);

var total_chapters = 31;

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;

