var chapter_list = new Array(
  ["Vol.01 Ch.001: The White Witch","v01/c001"],
  ["Vol.01 Ch.002: The Black Knightmare","v01/c002"],
  ["Vol.01 Ch.003: Magic Device Nemo","v01/c003"],
  ["Vol.01 Ch.004: Lake Kawaguchi Incident 1 - The Patriotic Phantom -","v01/c004"],
  ["Vol.01 Ch.005: Incident At Kawaguchiko 2","v01/c005"],
  ["Ch.013: Prison of Happiness III","c013"],
  ["Ch.014: THe Battle at Narita I","c014"],
  ["Ch.015: THe Battle at Narita II","c015"],
  ["Ch.016: THe Battle at Narita III","c016"],
  ["Vol.02 Ch.006: Incident at Kawaguchiko 3","v02/c006"],
  ["Vol.02 Ch.007: White Knight","v02/c007"],
  ["Vol.02 Ch.008: The Disaster at Saitama 1","v02/c008"],
  ["Vol.02 Ch.009: The Disaster at Saitama II -Shoot Cornelia-","v02/c009"],
  ["Vol.02 Ch.010: Disaster at Saitama III - The Black Demon King","v02/c010"],
  ["Vol.03 Ch.011: Prison of Happiness I - Mao the Refrain","v03/c011"],
  ["Vol.03 Ch.012: Prison of Happiness II -Summer Days Of The Past-","v03/c012"],
  ["Vol.03 Ch.013: Prison of Happiness III -Summer Days Of The Past-","v03/c013"],
  ["Vol.03 Ch.014: The Battle At Narita I -The Crumbling Mountain-","v03/c014"],
  ["Vol.03 Ch.015: The Battle At Narita II -The White knight And The Black Demon King-","v03/c015"],
  ["Vol.04 Ch.016: The Battle At Narita III -Contract Termination-","v04/c016"],
  ["Vol.04 Ch.017","v04/c017"],
  ["Vol.04 Ch.018","v04/c018"],
  ["Vol.04 Ch.019","v04/c019"],
  ["Vol.04 Ch.020","v04/c020"],
  ["Vol.05 Ch.021: Demon King Rolo II -The Icy Pursuer-","v05/c021"],
  ["Vol.05 Ch.022: Demon King Rolo III -Artificial Ones-","v05/c022"],
  ["Vol.05 Ch.023: Island Of God I -Emperor Vs Empress-","v05/c023"],
  ["Vol.05 Ch.024: Island Of God II -The Kind And Gentle World-","v05/c024"],
  ["Vol.05 Ch.025: Island Of God III -The Zero-","v05/c025"],
  ["Vol.05 Ch.026: Last Code: Zero Of The Demon King (END)","v05/c026"]
);

var total_chapters = 30;

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;
