var chapter_list = new Array(
  ["Vol.01 Ch.001: Twilight Town","v01/c001"],
  ["Vol.01 Ch.002: The Intruder","v01/c002"],
  ["Vol.01 Ch.003: Beach Flavored Ice Cream","v01/c003"],
  ["Vol.01 Ch.004: The Distant Sound of Crashing Waves","v01/c004"],
  ["Vol.01 Ch.005: No. XIII","v01/c005"],
  ["Vol.01 Ch.006: The Address-less Letter","v01/c006"],
  ["Vol.01 Ch.007: What I Want to Ask","v01/c007"],
  ["Vol.02 Ch.008: Expired Time","v02/c008"],
  ["Vol.02 Ch.009: Breakdown","v02/c009"],
  ["Vol.02 Ch.010: Tears Of A Nobody","v02/c010"],
  ["Vol.02 Ch.011: Running From Nightfall","v02/c011"],
  ["Vol.02 Ch.012: Key to the Door of Light","v02/c012"],
  ["Vol.02 Ch.013: Rendezvous at Hollow Bastion","v02/c013"],
  ["Vol.03 Ch.014","v03/c014"],
  ["Vol.03 Ch.015","v03/c015"],
  ["Vol.03 Ch.016: a painful choice","v03/c016"],
  ["Vol.03 Ch.017: the beast with the stolen heart","v03/c017"],
  ["Vol.03 Ch.018: loves whereabouts","v03/c018"],
  ["Vol.03 Ch.019: vexen's situation","v03/c019"],
  ["Vol.03 Ch.020: Deployment","v03/c020"],
  ["Vol.03 Ch.021: Under the Snow","v03/c021"],
  ["Vol.04 Ch.022: The 'Slightly' bad old geezer","v04/c022"],
  ["Vol.04 Ch.023: Being A Hero is Tough!!","v04/c023"],
  ["Vol.04 Ch.024: Rhapsody of the underworld","v04/c024"],
  ["Vol.04 Ch.025: Let the Hades cup begin!","v04/c025"],
  ["Vol.04 Ch.026: The Heart As It Is","v04/c026"],
  ["Vol.04 Ch.027: Castle of Thorns","v04/c027"],
  ["Vol.04 Ch.028: The Castle Crisis and the Mysterious Door","v04/c028"],
  ["Vol.04 Ch.029: Regain the Glory","v04/c029"],
  ["Vol.04 Ch.030: When we go Through...the Door...","v04/c030"],
  ["Vol.04 Ch.031: Steep out!","v04/c031"],
  ["Vol.05 Ch.032: Seeking out the Genie","v05/c032"],
  ["Vol.05 Ch.033: Battel for the Lamp","v05/c033"],
  ["Vol.05 Ch.034: Kidnapping Kairi","v05/c034"],
  ["Vol.05 Ch.035","v05/c035"],
  ["Vol.05 Ch.036","v05/c036"],
  ["Vol.05 Ch.037: Plastic Friend","v05/c037"]
);

var total_chapters = 37;

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;

