var chapter_list = new Array(
  ["Vol.01 Ch.001: Judgement 1: Defense Devil","v01/c001"],
  ["Vol.01 Ch.002: Judgement 2: Apple Tree [Part 1]","v01/c002"],
  ["Vol.01 Ch.003: Judgement 2: Apple Tree [Part 2]","v01/c003"],
  ["Vol.01 Ch.004: Judgement 2: Apple Tree [Part 3]","v01/c004"],
  ["Vol.01 Ch.005: Judgement 2: Apple Tree [Part 4]","v01/c005"],
  ["Vol.01 Ch.006: Judgement 2: Apple Tree [Part 5]","v01/c006"],
  ["Vol.01 Ch.007: Judgement 3: Hero [Part 1]","v01/c007"],
  ["Vol.01 Ch.008: Judgement 3: Hero [Part 2]","v01/c008"],
  ["Vol.01 Ch.009: Judgement 3: Hero [Part 3]","v01/c009"],
  ["Vol.01 Ch.010: Judgement 3: Hero [Part 4]","v01/c010"],
  ["Vol.01 Ch.011: Judgement 3: Hero [Part 5]","v01/c011"],
  ["Vol.01 Ch.012: Judgement 3: Hero [Part 6]","v01/c012"],
  ["Vol.01 Ch.013: Judgement 3: Hero [Part 7]","v01/c013"],
  ["Vol.01 Ch.014: Judgement 3: Hero [Part 8]","v01/c014"],
  ["Vol.01 Ch.015: Judgement 4: Mysterious Woman [Part 1]","v01/c015"],
  ["Vol.01 Ch.016: Judgement 4: Mysterious Woman [Part 2]","v01/c016"],
  ["Vol.01 Ch.017: Judgement 4: Mysterious Woman [Part 3]","v01/c017"],
  ["Vol.01 Ch.018: Judgement 4: Mysterious Woman [Part 4]","v01/c018"],
  ["Vol.01 Ch.019: Judgement 4: Mysterious Woman [Part 5]","v01/c019"],
  ["Vol.02 Ch.020: Judgement 5: Kucabara's Wisdom [Part 1]","v02/c020"],
  ["Vol.02 Ch.021: Judgement 5: Kucabara's Wisdom [Part 2]","v02/c021"],
  ["Vol.02 Ch.022: Judgement 5: Kucabara's Wisdom [Part 3]","v02/c022"],
  ["Vol.02 Ch.023: Judgement 5: Kucabara's Wisdom [Part 4]","v02/c023"],
  ["Vol.02 Ch.024: Judgement 5: Kucabara's Wisdom [Part 5]","v02/c024"],
  ["Vol.02 Ch.025: Judgement 5: Kucabara's Wisdom [Part 6]","v02/c025"],
  ["Vol.02 Ch.026: Judgement 6: The Key To The Demon World [Part 1]","v02/c026"],
  ["Vol.02 Ch.027: Judgement 6: The Key To The Demon World [Part 2]","v02/c027"],
  ["Vol.02 Ch.028: Judgement 6: The Key To The Demon World [Part 3]","v02/c028"],
  ["Vol.02 Ch.029: Judgement 6: The Key To The Demon World [Part 4]","v02/c029"]
);

var total_chapters = 29;

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;
