midiList = new Array("","music/Track01.mp3","music/Track02.mp3","music/Track03.mp3","music/Track04.mp3","music/Track05.mp3","music/Track06.mp3","music/Track07.mp3","music/Track08.mp3","music/Track09.mp3","music/Track10.mp3");
titleList = new Array("","Come and See The Elephant Man","Somewhere There Must Be Someone","What Could He Know Of A Woman","What Immortal Hand Or Eye","Never Have I Seen Such Loveliness","What Did I Do", "Small People", "She Likes Me", "What Became Of Duty", "The Possibilities Are Unlimited");
creditList = new Array("","Vocals: Tom Wopat, Piano: John Gentry Tennyson","Vocals: Brian Lane Green, Piano: John Gentry Tennyson","Vocals: Malcom Gets & Jodie Langel, Piano: John Gentry Tennyson","Vocals: Malcom Gets & Tom Wopat, Piano: John Gentry Tennyson","Vocals: Brian Lane Green, Piano: John Gentry Tennyson","Instrumental Programming: John Gentry Tennyson", "Instrumental Programming: John Gentry Tennyson", "Instrumental Programming: John Gentry Tennyson", "Instrumental Programming: John Gentry Tennyson", "Instrumental Programming: John Gentry Tennyson");

playerType=1; 
checkBold=0; 	 
checkItalic=1;
checkUnder=0;
fontColor='red';
fontFace='Verdana, Arial, Helvetica';

howMany = midiList.length-1;
date = new Date();
seed = date.getTime();

randomNumber =1;
URL = location.href;
QUERY_POS = URL.indexOf("?") + 1;
QUERY_STRING = URL.substring(QUERY_POS); 
QUERY_POS-=1;
QUERY_POS2=QUERY_POS;
QUERY_POS2+=1;
if(QUERY_POS!=0) newLocation=URL.substring(0,QUERY_POS);
if(QUERY_POS2==0) newLocation=QUERY_STRING;
if(QUERY_STRING > 0) randomNumber=QUERY_STRING;
midi=midiList[randomNumber];
title=titleList[randomNumber];
if(!title){ 
midi=midiList[1];
title=titleList[1];
randomNumber=1;
}

window.defaultStatus="Now playing... "+randomNumber+": "+title;
ns = ((navigator.appName == "Netscape"));
ie = ((navigator.appName == "Microsoft Internet Explorer"));
if(playerType == 1 && ns){ playMIDI = '<EMBED SRC= "' + midi + '" AUTOSTART=TRUE HIDDEN="TRUE"></EMBED><BR>';}
else { playMIDI = '<BGSOUND SRC= "' + midi + '" loop=infinite AUTOSTART=TRUE></BGSOUND>';}

function listMIDI(){
document.write(playMIDI);
for(x=0;x<=howMany; x++){
if(x==0)document.write("<table width='351' border='0' cellspacing='0' cellpadding='0'>");
if(x!=0 && x!=randomNumber && x!=howMany)document.write("<tr><td height='28' class='tracktitle'>" + titleList[x] + " <A HREF=" + newLocation + "?" + x + " class='musicLK'>(play)</A></td><tr>" + "<tr><td height='28' class='trackcredits' style='border-bottom: solid brown 1px;'>" + creditList[x] + "</td></tr>");
if(x==randomNumber)document.write("<tr><td height='28' class='tracktitle'>" + titleList[x] + " <A HREF=" + newLocation + "?" + x + " class='musicLK'>(playing...)</A></td><tr>" + "<tr><td height='28' class='trackcredits' style='border-bottom: solid brown 1px;'>" + creditList[x] + "</td></tr>");
if(x!=0 && x!=randomNumber && x==howMany)document.write("<tr><td height='28' class='tracktitle'>" + titleList[x] + " <A HREF=" + newLocation + "?" + x + " class='musicLK'>(play)</A></td><tr>"  + "<tr><td height='28' class='trackcredits'>" + creditList[x] + "</td></tr>" + "</table>");
}
}