<SCRIPT LANGUAGE = "JavaScript">
/*Written by Jeremy Rosenberg.
I ask one thing. Please do NOT erase my
name from this script. It took me a long time to
figure this out! Thanks.*/
now = new Date();
seed = now.getTime();
Mcount = 5;
midis = new Array(Mcount);
names = new Array(Mcount);
var playing;
midis[0] = "FirstMidi.mid";
names[0] = "001";
midis[1] = "SecondMidi.mid";
names[1] = "002";
midis[2] = "ThirdMidi.mid";
names[2] = "003";
midis[3] = "FourthMidi.mid";
names[3] = "004";
midis[4] = "FifthMidi.mid";
names[4] = "005";
function random(num)
 {
   ia=9301;
   ic=49297;
   im=233280;
   seed = (seed*ia+ic) % im;
   return Math.ceil( (seed/(im*1.0)) * num);
   }
function Play_Midi()
 {
 playing = random(Mcount) - 1;
 if (navigator.appName == "Netscape") {
     document.write("<embed src=",midis[playing]," hidden=true autostart=true
loop=true loop=infinite>");
 } else {
     document.write("<bgsound src=",midis[playing]," loop=true
loop=infinite>");
 }
}
function Show_Midi()
 {
 document.write("Now playing : ",names[playing]);
}
</SCRIPT>
