var chap_array = new Array(
    ["37 - A Hidden Tangle of Hanaikada",'37/00-cover'],

    ["36",'36/01'],

    ["35 - Wood from a Rotted Tree 2",'35/01'],

    ["34 - Wood from a Rotten Tree 1",'34/01'],

    ["33 - Solitary, A Grim Spectre",'33/01'],

    ["32 - Mist on the Violets Part 2",'32/01'],

    ["31 - Mist on the Violets",'31/00-cover'],

    ["30 - Still Water Attracts Floating Weeds",'30/01'],

    ["29 - Butterfly's Dream Part 5",'29/01'],

    ["28 - Butterfly's Dream Part 4",'28/01'],

    ["27 - Butterfly's Dream Part 3",'27/01'],

    ["26 - Butterfly's Dream Part 2",'26/01'],

    ["25 - Butterfly's Dream",'25/01'],

    ["24 - Crimson Yuzuriha",'24/01'],

    ["23 - A Cold Mountain Wind Through a Bamboo Fence",'23/01'],

    ["22 - Occasionally to Wakubara",'22/01'],

    ["21 - Two Sides of the Konotegashiwa",'21/01'],

    ["20 - A Lush, Dark Forest",'20/01'],

    ["19 - And the Sun is Hidden",'19/00'],

    ["18 - Mid-Spring - Part 3",'18/01'],

    ["17 - Mid-Spring - Part 2",'17/01'],

    ["16 - Mid-Spring",'16/01'],

    ["15 - Morning Storm",'15/01'],

    ["14 - Moonless Dawn",'14/01'],

    ["13 - Miotsukushi",'13/01'],

    ["12 - No One Knows",'12/01'],

    ["11 - Dawn and Awakening",'11/01'],

    ["10 - Faded Flowers",'10/01'],

    ["9 - Coming into Bloom",'9/01'],

    ["8 - The Dog God and the Holy Princess",'8/00'],

    ["7 - Turn Back or Keep Going",'7/01'],

    ["6 - A Ghostly Journey",'6/01'],

    ["5 - The Miko's Song",'5/01'],

    ["4 - Not Quite a YaKou",'4/01'],

    ["3 - The Voice that Speaks to Dogs",'3/01'],

    ["2 - The Distant Capital",'2/01'],

    ["1 - Rainy Night Moon",'1/00']
);
for (var i=0; i<chap_array.length; i++) {
    document.getElementById('id_chapter_1').options[i] = new Option(chap_array[i][0],chap_array[i][1]);
    if (document.getElementById('id_chapter_2')) {
        document.getElementById('id_chapter_2').options[i] = new Option(chap_array[i][0],chap_array[i][1]);
    }
}
