// Each set of songs has an ID, it can be a string or number.
// For each set of songs create an array of song titles, lyric file names and mp3 file names.
// The arrays should have the same number of items in them.
// Use an empty string "" if there is no data for an element.
// Use the switch statment to assign the specific arrays to the generic.
// Pass the ID when calling from the base page

// Whispers in the Wind ID = 0
var aWITWLyrics = new Array (
			"whisperslyrics.htm#lyrics0",
			"whisperslyrics.htm#lyrics1",
			"whisperslyrics.htm#lyrics2",
			"whisperslyrics.htm#lyrics3",
			"whisperslyrics.htm#lyrics4",
			"whisperslyrics.htm#lyrics5",
			"whisperslyrics.htm#lyrics6",
			"whisperslyrics.htm#lyrics7",
			"whisperslyrics.htm#lyrics8",
			"whisperslyrics.htm#lyrics9",
			"whisperslyrics.htm#lyrics10",
			"whisperslyrics.htm#lyrics11",
			"whisperslyrics.htm#lyrics12");

var aWITWTitles = new Array (
			"Talk Radio (3:32)",
			"Dear Walter (3:43)",
			"Lizzie (3:52)",
			"Whispers in the Wind (Butterfly) (3:24)",
			"Muddy World (2:11)",
			"Barbtail Nag (3:30)",
			"Strong Man Charade (6:23)",
			"FishBoat (2:39)",
			"Last Day of May (4:42)",
			"Furrows In The Wind (4:24)",
			"Stevie's Song (3:20)",
			"Charlie Pike (3:21)",
			"Lullabye (4:06)");

var aWITWMP3 = new Array (
			"witw1.mp3",
			"witw2.mp3",
			"witw3.mp3",
			"witw4.mp3",
			"witw5.mp3",
			"witw6.mp3",
			"witw7.mp3",
			"witw8.mp3",
			"witw9.mp3",
			"witw10.mp3",
			"witw11.mp3",
			"witw12.mp3",
			"witw13.mp3");

// Romancing the Moon ID = 1
var aRTMLyrics = new Array (
			"romancinglyrics.htm#lyrics0",
			"romancinglyrics.htm#lyrics1",
			"romancinglyrics.htm#lyrics2",
			"romancinglyrics.htm#lyrics3",
			"romancinglyrics.htm#lyrics4",
			"romancinglyrics.htm#lyrics5",
			"romancinglyrics.htm#lyrics6",
			"romancinglyrics.htm#lyrics7",
			"romancinglyrics.htm#lyrics8",
			"romancinglyrics.htm#lyrics9",
			"romancinglyrics.htm#lyrics10");

var aRTMTitles = new Array (
			"Romancing the Moon (4:31)",
			"Roller Coaster (3:21)",
			"Ricky The Kid (4:10)",
			"Four Boats Down (3:18)",
			"Jacinta's Song (4:13)",
			"Blue Moon (2:47)",
			"Damien (4:10)",
			"Dream Chaser (2:52)",
			"Love Song (3:13)",
			"Scare Crow (4:16)",
			"The Thief (3:58)");

var aRTMMP3 = new Array (
			"rtm1.mp3",
			"rtm2.mp3",
			"rtm3.mp3",
			"rtm4.mp3",
			"rtm5.mp3",
			"rtm6.mp3",
			"rtm7.mp3",
			"rtm8.mp3",
			"rtm9.mp3",
			"rtm10.mp3",
			"rtm11.mp3");

// Mill Town Boy ID = 2
var aMTBLyrics = new Array (
			"milltownlyrics.htm#lyrics0",
			"milltownlyrics.htm#lyrics1",
			"milltownlyrics.htm#lyrics2",
			"milltownlyrics.htm#lyrics3",
			"milltownlyrics.htm#lyrics4",
			"milltownlyrics.htm#lyrics5",
			"milltownlyrics.htm#lyrics6",
			"milltownlyrics.htm#lyrics7",
			"milltownlyrics.htm#lyrics8",
			"milltownlyrics.htm#lyrics9",
			"milltownlyrics.htm#lyrics10",
			"milltownlyrics.htm#lyrics11",
			"milltownlyrics.htm#lyrics12");

var aMTBTitles = new Array (
			"Pet The Cat (2:52)",
			"Marlene (4:03)",
			"History (3:39)",
			"Highway (3:39)",
			"Hard Knocks (4:21)",
			"Shine Boy (4:25)",
			"Mill Town Boy (4:12)",
			"Here I Am (3:57)",
			"Careful of The Devil (4:17)",
			"Winter Sun (4:18)",
			"Never Too Late (4:01)",
			"Feather (4:21)",
			"Progress Is A Slow Train (3:09)");

var aMTBMP3 = new Array (
			"mtb1.mp3",
			"mtb2.mp3",
			"mtb3.mp3",
			"mtb4.mp3",
			"mtb5.mp3",
			"mtb6.mp3",
			"mtb7.mp3",
			"mtb8.mp3",
			"mtb9.mp3",
			"mtb10.mp3",
			"mtb11.mp3",
			"mtb12.mp3",
			"mtb13.mp3");
var sMP3Dir = "";
var sLyricsDir = "";
var aLyrics = new Array (0);
var aTitles = new Array (0);
var aMP3 = new Array (0);

function writesonglist(ID) {
	switch (ID) {
		case 0:
			sMP3Dir = "/mp3/whispers/";
			sLyricsDir = "lyrics/whispers/";
			aLyrics = aWITWLyrics;
			aTitles = aWITWTitles;
			aMP3 = aWITWMP3;
			break;
		case 1:
			sMP3Dir = "/mp3/romance/";
			sLyricsDir = "lyrics/romance/"
			aLyrics = aRTMLyrics;
			aTitles = aRTMTitles;
			aMP3 = aRTMMP3;
			break;
		case 2:
			sMP3Dir = "/mp3/milltown/";
			sLyricsDir = "lyrics/milltown/"
			aLyrics = aMTBLyrics;
			aTitles = aMTBTitles;
			aMP3 = aMTBMP3;
			break;
		default:
			break;
	}

	document.write("<p class=\"title\">Song List</p>");
	document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"8\">");
	for(i=0;i<aTitles.length;i++) {
		document.write("<tr><td><object type=\"application/x-shockwave-flash\"");
		document.write("data=\"http://www.folkmichaeltroy.com/mp3/mtplayer.swf?b_fgcolor=60779B&song_url=http://www.folkmichaeltroy.com" + sMP3Dir + aMP3[i] + "&\"");
		document.write("width=\"18\" height=\"18\">");
		document.write("<param name=\"movie\"");
		document.write("value=\"http://www.folkmichaeltroy.com/mp3/mtplayer.swf?b_fgcolor=60779B&song_url=http://www.folkmichaeltroy.com" + sMP3Dir + aMP3[i] + "&\" />");
		document.write("<param name=\"wmode\" value=\"transparent\" />");
		document.write("<img src=\"noflash.gif\"");
		document.write("width=\"18\" height=\"18\" alt=\"\" />");
		document.write("</object></td>");
		document.write("<td width=\"275\">" + aTitles[i] + "</td>");
		document.write("<td><a class=\"nyroModal\" href=\"" + sLyricsDir + aLyrics[i] + "\">[lyrics]</a></td></tr>");
	};
	document.write("</table>");
}
