var chapter_list = new Array(
  ["Ch.001: The Backlit Mademoiselle","c001"],
  ["Ch.002: Piece of Love","c002"],
  ["Ch.003: That Heart, Flow at the Pure Star","c003"],
  ["Ch.004: God, the Rosary, and a Wish","c004"],
  ["Ch.005: A Diorama of the Sky and the Sea","c005"],
  ["Ch.006: Sentimental Laybrinth","c006"],
  ["Ch.007: The Evening Before the Revolution","c007"],
  ["Ch.008: Real Heart","c008"],
  ["Ch.008.1: Miyako Special","c008.1"],
  ["Ch.009: To be Loved by You...","c009"],
  ["Ch.010: I'll become a wild rose","c010"],
  ["Ch.011: Right Beside You","c011"],
  ["Ch.012: For Instance, To Be A Fish Swimming In A Forest By The Sea","c012"],
  ["Ch.013: Three Pushes Until the Truth","c013"],
  ["Ch.014: Eating a Poppy Seed, Floating in Kindness?","c014"],
  ["Ch.015: The Boy of White- Should Be Able to Fly to the Sky As Well","c015"],
  ["Ch.016: At the End of a Prayer","c016"],
  ["Ch.017: In the Fate that was Settled","c017"],
  ["Ch.018: Cursed Lovers","c018"],
  ["Ch.019: Goodbye- Wandering Fish of the Universe","c019"],
  ["Ch.020: Fin Fish","c020"],
  ["Ch.021: Purity, Sacred Eyes, the Reason...","c021"],
  ["Ch.022: Don't Tremble, No Matter What...","c022"],
  ["Ch.023: The Wind is Born","c023"],
  ["Ch.024: Where Light Glitters, Shadows Gather","c024"],
  ["Ch.025: Minazuki-kun Tries Hard","c025"],
  ["Ch.026: Fading Feelings","c026"],
  ["Ch.027: Well, Actually...","c027"],
  ["Ch.028: Promise","c028"],
  ["Ch.029: Wishing on a Shooting Star","c029"],
  ["Ch.030: End- Let's Fly Into the Endless World, Until We Meet at the End of the World","c030"],
  ["Ch.030.1: Silk Road Part 1 (sidestory)","c030.1"],
  ["Ch.030.2: Silk Road Part 2 (sidestory)","c030.2"],
  ["Vol.07 Ch.030.3: Memories of the Fish, Rebirth of the Moon (side story)","v07/c030.3"]
);

var total_chapters = 34;

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;

