now = new Date();
seed = now.getTime();
Mcount = 10;midis = new Array(Mcount);
names = new Array(Mcount);var playing;
midis[0] = "/elvis/welcometomyworld.wav"; // Song # 1
names[0] = "Welcome To My World";
midis[1] = "/elvis/canthelpfallinginlove.wav"; // Song # 2
names[1] = "I Can't Help Falling In Love";
midis[2] = "/elvis/dannyboy.wav"; // Song # 3
names[2] = "Danny Boy";
midis[3] = "/elvis/neverwalkalone.wav"; // Song # 4
names[3] = "You'll Never Walk Alone";
midis[4] = "/elvis/peaceinthevalley.wav"; // Song # 5
names[4] = "Peace In The Valley";
midis[5] = "/elvis/foolsrushin.wav"; // Song # 6
names[5] = "Fools Rush In";
midis[6] = "/elvis/welcometomyworld.wav"; // Song # 7
names[6] = "Welcome To My World ";
midis[7] = "/elvis/americathebeautiful.wav"; // Song # 8
names[7] = "America The Beautiful";
midis[8] = "/elvis/forthegoodtimes.wav"; // Song # 9
names[8] = "For The Good Times";
midis[9] = "/elvis/releaseme.wav"; // Song # 10
names[9] = "Release Me";
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>");
} else {
document.write("<bgsound src=",midis[playing]," loop=1>");
}
}
function Show_Midi(){document.write("<font color='#8cd1f1'>Now playing :</font>&nbsp;&nbsp; ",names[playing]);
}