/* What this program should do:
 *
 * Print out the canticle strips in a random order.
 */

var text = [
"<p><a href=canticle/cant1.htm>THEY CARRY ARMS TO THE FIELD OF ERENOCH</a>",
"<p><a href=canticle/cant2.htm>KINGS GO TO BATTLE THE HIGH KING ON</a>",
"<p><a href=canticle/cant3.htm>HR&Ouml;C AND THREE MESSENGERS MEET AT</a>",
"<p><a href=canticle/cant4.htm>BUT KING RIORDAN OF TAMBRELAIN DOES</a>",
"<p><a href=canticle/cant5.htm>E THEMECHA AND SURVIVORS GO INTO HIDING</a>",
"<p><a href=canticle/cant6.htm>KING FLARINS REARGUARD IS OVERCOME NE</a>",
"<p><a href=canticle/cant7.htm>KING CHANIC AND DUX RATHGARN ARE OV</a>",
"<p><a href=canticle/cant8.htm>HERE THE FIRST KING ARTAX FALLS</a>",
"<p><a href=canticle/cant9.htm>KING ALBIDAR BEARS NEWS TO EPIME</a>",
"<p><a href=canticle/cant10.htm>HERE THEOBALT SEALS THE WARD AND IS ENTOMBED W</a>",
"<p><a href=canticle/cant11.htm>TYNWUDU AND HEGWIN BROKEN HERE BY GUARDIANS</a>",
"<p><a href=canticle/cant12.htm>HERE ARE THE GUARDS AND WARDS ENGRAILED WITH SPIRIT</a>",
"<p><a href=canticle/cant13.htm>SEVEN MASTERS OATHBIND AND BECOME THEIR SIGILS</a>",
"<p><a href=canticle/cant14.htm>AND WISEFOLK CONVERSE ON DANGEROUS MAGIC HERE</a>",
"<p><a href=canticle/cant15.htm>G ALBIDAR CALLS THE MOUNTAIN DOWN UPON</a>"
];

var index = 0;
var randomtext = new Array(15);



// randomtext[0] = text[index];
// text[index] = text[14];

for (count=0 ; count < 15 ; count++) {

    index = Math.floor(Math.random() * (15-count));
    randomtext[count] = text[index];
    text[index] = text[(14-count)];

    document.write (randomtext[count]);

}


