function protectLinks()
{
	Event.observe(window, 'load', function(){
		$$('a').each(function(element) {
			if (element.href.indexOf('#') == -1)
			{
				Event.observe(element, 'click', function(){
					$('player').update('');
				});
			}
		});
	});
}

function openPlaylist(id)
{
	window.open(
		'/request/jukebox.php?id=' + id,
		'jukebox',
		'width=480,height=390'
	);
}
