/// playlistButt

var tuneIndexDefaultHeight = new String();
var tuneIndexDefault = new Boolean(true);

function writePlaylistButt() {
	tuneIndexDefaultHeight = document.getElementById("tuneIndex").offsetHeight;
	var finalHTML = '<p><button type="button" id="playListButt" onclick="changeTuneIndexHeight();">Expand Playlist</button></p>';
document.write(finalHTML);
}
writePlaylistButt();

function changeTuneIndexHeight() {
	if (tuneIndexDefault) {
		document.getElementById("tuneIndex").style.maxHeight = "none";
		document.getElementById("playListButt").innerHTML = "Contract Playlist";
		tuneIndexDefault = false;
	}
	else {
		document.getElementById("tuneIndex").style.maxHeight = tuneIndexDefaultHeight + "px";
		document.getElementById("playListButt").innerHTML = "Expand Playlist";
		tuneIndexDefault = true;
	}
}

