// Ajax to place lyrics without a refresh
// so that the player isn't interrupted
$(document).ready(function () {
	$('ul#songList li a').click(function() {
		var song = $(this).attr('value');
		$.ajax({
			type: "POST",
			url: "/lyrics.php",
			data: 'song=' + song,
			success: function(resp) {
				$('#lyrics').fadeOut('slow', function() {
					$('#lyrics').html(resp).fadeIn('slow');
				});
			}
		});	
		return false;
	});
});

