//-- Generate a random number between 0 and max.
function randomNum(max) {
  var max=44
  var posleft=41
  var postop=33
  var rNum=NaN
  while (isNaN(rNum)) {
    rNum=Math.floor(Math.random()*(max))
  	}
	if (rNum == 0) {
		document.writeln ("Irish song title: When Irish Eyes Are Smiling - #0");
  	}
	else if (rNum == 1) {
		document.writeln ("Irish song title: An Irish Jig");
	}
	else if (rNum == 2) {
		document.writeln ("Irish song title: Danny Boy");
	}
	else if (rNum == 3) {
		document.writeln ("Irish song title: An Irish Jig");
	}
	else if (rNum == 4) {
		document.writeln ("Irish song title: TooRah LooRah La");
	}
	else if (rNum == 5) {
		document.writeln ("Irish song title: Rose of Tralee");
	}
	else if (rNum == 6) {
		document.writeln ("Irish song title: The Boys of Tandernmagee");
	}
	else if (rNum == 7) {
		document.writeln ("Irish song title: The Irish WashWoman");
	}
	else if (rNum == 8) {
		document.writeln ("Irish song title: S&#x0027;Beheag S&#x0027;Mhor");
	}
	else if (rNum == 9) {
		document.writeln ("Irish song title: Our Rural Felicity");
	}
	else if (rNum == 10) {
		document.writeln ("Irish song title: Princess Royal");
	}
	else if (rNum == 11) {
		document.writeln ("Irish song title: Planxty Eleanor Plunket");
	}
	else if (rNum == 12) {
		document.writeln ("Irish song title: Planxty Fanny Poer");
	}
	else if (rNum == 13) {
		document.writeln ("Irish song title: Snowy-Breasted Pearl");
	}
	else if (rNum == 14) {
		document.writeln ("Irish song title: When Irish Eyes Are Smiling - #14");
	}
	else if (rNum == 15) {
		document.writeln ("Irish song title: The Rakes of Mallow");
	}
	else if (rNum == 16) {
		document.writeln ("Irish song title: The King of the Fairy");
	}
	else if (rNum == 17) {
		document.writeln ("Irish song title: Haste to the Wedding");
	}
	else if (rNum == 18) {
		document.writeln ("Irish song title: Green Groves of Erin");
	}
	else if (rNum == 19) {
		document.writeln ("Irish song title: Gary Owens");
	}
	else if (rNum == 20) {
		document.writeln ("Irish song title: The Foggy Dew");
	}
	else if (rNum == 21) {
		document.writeln ("Irish song title: Eamonn an Chniuic");
	}
	else if (rNum == 22) {
		document.writeln ("Irish song title: The Sign of the Bonny Blue Bell");
	}
	else if (rNum == 23) {
		document.writeln ("Irish song title: The Dark Island");
	}
	else if (rNum == 24) {
		document.writeln ("Irish song title: The Mountain Mourne");
	}
	else if (rNum == 25) {
		document.writeln ("Irish song title: The Black Reel");
	}
	else if (rNum == 26) {
		document.writeln ("Irish song title: Carrickfergus");
	}
	else if (rNum == 27) {
		document.writeln ("Song title: Amazing Grace - Bagpipe Edition");
	}
	else if (rNum == 28) {
		document.writeln ("Irish song title: The Lilting Banshee");
	}
	else if (rNum == 29) {
		document.writeln ("Irish song title: Clementine");
	}
	else if (rNum == 30) {
		document.writeln ("Irish song title: Cliffs of Doneen");
	}
	else if (rNum == 31) {
		document.writeln ("Irish song title: Cockles and Mussels");
	}
	else if (rNum == 32) {
		document.writeln ("Irish song title: Comin&#x0027; Through the Rye");
	}
	else if (rNum == 33) {
		document.writeln ("Irish song title: The Currah of Kildare");
	}
	else if (rNum == 34) {
		document.writeln ("Irish song title: The Banks of the Roses");
	}
	else if (rNum == 35) {
		document.writeln ("Irish song title: The Bard of Armagh");
	}
	else if (rNum == 36) {
		document.writeln ("Irish song title: Believe Me, If All Those Endearing Young" +  " Charms");
	}
	else if (rNum == 37) {
		document.writeln ("Irish song title: The Black Velvet Band");
	}
	else if (rNum == 38) {
		document.writeln ("Irish song title: Bold Thady Quill");
	}
	else if (rNum == 39) {
		document.writeln ("Irish song title: Bricklayer&#x0027;s Song");
	}
	else if (rNum == 40) {
		document.writeln ("Irish song title: A Bunch of Thyme");
	}
	else if (rNum == 41) {
		document.writeln ("Irish song title: Whiskey in the Jar");
	}
	else if (rNum == 42) {
		document.writeln ("Irish song title: Boulavogue");
	}
	else {
		document.writeln ("Irish song title: Carrickfergus");
	}

	return rNum
}

var sound = new Array()

sound[0]= "http://www.mybonbon.com/midi-go-round/irisheyes.mid"
sound[1]= "http://www.cyberlodg.com/thelodge/irishjig.mid"
sound[2]= "http://www.contemplator.com/folk3/dboy.mid"
sound[3]= "http://members.aol.com/skyvoyagr/banshee.mid"
sound[4]= "http://members.aol.com/skyvoyagr/tooraloorah.mid"
sound[5]= "http://members.aol.com/skyvoyagr/tralee.mid"
sound[6]= "http://members.aol.com/skyvoyagr/tandern.mid"
sound[7]= "http://members.aol.com/skyvoyagr/washer.mid"
sound[8]= "http://members.aol.com/skyvoyagr/sheebeg.mid"
sound[9]= "http://members.aol.com/skyvoyagr/rural.mid"
sound[10]= "http://members.aol.com/skyvoyagr/princess.mid"
sound[11]= "http://members.aol.com/skyvoyagr/plunkett.mid"
sound[12]= "http://members.aol.com/skyvoyagr/plnxpoer.mid"
sound[13]= "http://members.aol.com/skyvoyagr/pearl.mid"
sound[14]= "http://www.geocities.com/SouthBeach/Marina/4870/MIDI/ieyes.mid"
sound[15]= "http://members.aol.com/skyvoyagr/mallow.mid"
sound[16]= "http://members.aol.com/skyvoyagr/kingfair.mid"
sound[17]= "http://members.aol.com/skyvoyagr/hastewed.mid"
sound[18]= "http://members.aol.com/skyvoyagr/greengrv.mid"
sound[19]= "http://members.aol.com/skyvoyagr/gowen.mid"
sound[20]= "http://members.aol.com/skyvoyagr/foggy.mid"
sound[21]= "http://members.aol.com/skyvoyagr/eamonn.mid"
sound[22]= "http://www.contemplator.com/england/bluebell.mid"
sound[23]= "http://members.aol.com/skyvoyagr/darkisle.mid"
sound[24]= "http://members.aol.com/skyvoyagr/mourne.mid"
sound[25]= "http://members.aol.com/skyvoyagr/blakreel.mid"
sound[26]= "http://ingeb.org/songs/iwishiwa.mid"
sound[27]= "http://members.fortunecity.com/wilsonbruced/amazing_grace-bagpipe.mid"
sound[28]= "http://members.aol.com/skyvoyagr/banshee.mid"
sound[29]= "http://ingeb.org/songs/inacave2.mid"
sound[30]= "http://www.geocities.com/southbeach/marina/4870/MIDI/doneen.mid"
sound[31]= "http://ingeb.org/songs/cockles.mid"
sound[32]= "http://ingeb.org/songs/rye.mid"
sound[33]= "http://ingeb.org/songs/ohthewin.mid"
sound[34]= "http://www.geocities.com/southbeach/marina/4870/MIDI/Roses.mid"
sound[35]= "http://www.geocities.com/southbeach/marina/4870/MIDI/Barmagh.mid"
sound[36]= "http://ingeb.org/songs/charms.mid"
sound[37]= "http://ingeb.org/songs/blackvel.mid"
sound[38]= "http://media.mudcat.org/midi/NELLFLAH.mid"
sound[39]= "http://media.mudcat.org/midi/PRATIGRO.mid"
sound[40]= "http://www.geocities.com/southbeach/marina/4870/MIDI/Thyme.mid"
sound[41]= "http://ingeb.org/songs/kilgary.mid"
sound[42]= "http://www.contemplator.com/ireland/boulavog.mid"
sound[43]= "http://www.contemplator.com/folk3/billyire.mid" 
