xLocalPics = x[MUSIC] + "images/"
xMIDI = x[MUSIC] + "MIDI/"
xMP3 = x[MUSIC] + "MP3/"

function makeMIDILink(file, title) {
	return ("<div class='fileLink'><a href=\"" + xMIDI + file + ".mid\" target=\"_new\">" + dotIcon + "</a> " + title + " (MIDI)</div>")
}

function makeMP3Link() {
	return ("<div class='fileLink'><a href=\"" + xMP3 + "/" + getId() + ".mp3\" target=\"_new\">" + dotIcon + "</a> MP3 Excerpt</div>")
}

function makeSongHeader(title, info) {
	return ('<div class="boxHeadSpan"><div class="boxHeadSignLeft"><div class="boxHeadLeft"></div><div class="boxHeadMiddle">'
		+ title + '</div><div class="boxHeadRight"></div></div></div><div class="boxBody">'
		+ '<p class="tiny">' + info + '</p>');
}





function getId() {
	url = parent.location.href
	id = url.substring(url.lastIndexOf("/") + 1, url.lastIndexOf(".jsp"))
	return (id)
}