var chapter_list = new Array(
  ["Vol.01 Ch.001","v01/c001"],
  ["Vol.01 Ch.002","v01/c002"],
  ["Vol.01 Ch.003","v01/c003"],
  ["Vol.01 Ch.004","v01/c004"],
  ["Vol.01 Ch.005","v01/c005"],
  ["Vol.01 Ch.006","v01/c006"],
  ["Vol.01 Ch.007","v01/c007"],
  ["Vol.01 Ch.008","v01/c008"],
  ["Vol.01 Ch.009","v01/c009"],
  ["Vol.01 Ch.010","v01/c010"],
  ["Vol.01 Ch.011: A Fan to Change One's Mind","v01/c011"],
  ["Vol.01 Ch.012: Who's the Real Thief?","v01/c012"],
  ["Vol.01 Ch.013: A Ghost Story","v01/c013"],
  ["Vol.01 Ch.014: A Substitute Television","v01/c014"],
  ["Vol.01 Ch.015: An Absconding Scroll","v01/c015"],
  ["Vol.01 Ch.016: Nobita's Iron Body","v01/c016"],
  ["Vol.01 Ch.017: Spying Vines","v01/c017"],
  ["Vol.01 Ch.018: 22","v01/c018"],
  ["Vol.02 Ch.001: 7","v02/c001"],
  ["Vol.02 Ch.008: 14","v02/c008"],
  ["Vol.02 Ch.015: 21","v02/c015"],
  ["Vol.03 Ch.001","v03/c001"],
  ["Vol.03 Ch.002","v03/c002"],
  ["Vol.03 Ch.003","v03/c003"],
  ["Vol.03 Ch.004","v03/c004"],
  ["Vol.03 Ch.005","v03/c005"],
  ["Vol.03 Ch.006","v03/c006"],
  ["Vol.03 Ch.007","v03/c007"],
  ["Vol.03 Ch.008","v03/c008"],
  ["Vol.03 Ch.009","v03/c009"],
  ["Vol.03 Ch.010","v03/c010"],
  ["Vol.03 Ch.011","v03/c011"],
  ["Vol.03 Ch.012","v03/c012"],
  ["Vol.03 Ch.013","v03/c013"],
  ["Vol.03 Ch.014: Sneezing Powder","v03/c014"],
  ["Vol.03 Ch.015: Hologram Machine","v03/c015"],
  ["Vol.03 Ch.016: Super Speed Goggles","v03/c016"],
  ["Vol.03 Ch.017: A Fear Maker Machine","v03/c017"],
  ["Vol.03 Ch.018: Petter","v03/c018"],
  ["Vol.03 Ch.019: Shyara Gum","v03/c019"],
  ["Vol.03 Ch.020: Muscle Control","v03/c020"],
  ["Vol.03 Ch.021: A Cockroach Doll","v03/c021"],
  ["Vol.04 Ch.001: A Million Volt Man","v04/c001"],
  ["Vol.04 Ch.002: Taking Scoop Pictures With &quot;Chance Camera&quot;","v04/c002"],
  ["Vol.04 Ch.003: A Fake Scribble Pen","v04/c003"],
  ["Vol.04 Ch.004: Mini Santa","v04/c004"],
  ["Vol.04 Ch.005: The Treasure Hunting Paper","v04/c005"],
  ["Vol.04 Ch.006: A Child of Wind Band","v04/c006"],
  ["Vol.04 Ch.007: A Robot Pet Dog","v04/c007"],
  ["Vol.04 Ch.008: A Part Time Job for A Yeti","v04/c008"],
  ["Vol.04 Ch.009: TeleTelePhone","v04/c009"],
  ["Vol.04 Ch.010: Image Gum","v04/c010"],
  ["Vol.04 Ch.011: A Misfortune Forecast Machine","v04/c011"],
  ["Vol.04 Ch.012: An Animal Training Shop","v04/c012"],
  ["Vol.04 Ch.013: A Paper Plane","v04/c013"],
  ["Vol.04 Ch.014: Traffic Mark Stickers","v04/c014"],
  ["Vol.04 Ch.015","v04/c015"],
  ["Vol.04 Ch.016","v04/c016"],
  ["Vol.04 Ch.017: A Comrade Badge","v04/c017"],
  ["Vol.04 Ch.018: A Human Task Switch","v04/c018"],
  ["Vol.04 Ch.019: All Purpose Glasses","v04/c019"],
  ["Vol.04 Ch.020: Doraemon and Dorami-chan","v04/c020"],
  ["Vol.05 Ch.001","v05/c001"],
  ["Vol.05 Ch.002","v05/c002"],
  ["Vol.05 Ch.003: A Secret Story","v05/c003"],
  ["Vol.05 Ch.004: Air Conditioner Photo","v05/c004"],
  ["Vol.05 Ch.005: The Famous Singer, Tsubasa-chan, Has A Secret!?","v05/c005"],
  ["Vol.05 Ch.006: A Falling Star Catcher","v05/c006"],
  ["Vol.05 Ch.007: Obedience Hat","v05/c007"],
  ["Vol.05 Ch.008: A Great Shell Set","v05/c008"],
  ["Vol.05 Ch.009: A Snow in March","v05/c009"],
  ["Vol.05 Ch.010: A Magic Map","v05/c010"],
  ["Vol.05 Ch.011: A Care-Giver Robot","v05/c011"],
  ["Vol.05 Ch.012: A Fake Telephone Adapter","v05/c012"],
  ["Vol.05 Ch.013: Ignorant Bus","v05/c013"],
  ["Vol.05 Ch.014: Traffic Protection Time","v05/c014"],
  ["Vol.05 Ch.015: Firecracker Paper","v05/c015"],
  ["Vol.05 Ch.016: Combine Glue For Hiking","v05/c016"],
  ["Vol.05 Ch.017: Pencil Missile And Counter Attack Radar","v05/c017"],
  ["Vol.05 Ch.018: An Ultra Super Deluxe Pill","v05/c018"],
  ["Vol.05 Ch.019: A Confession Hat","v05/c019"],
  ["Vol.05 Ch.020: 45 Years Later","v05/c020"]
);

var total_chapters = 82;

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;
