// JavaScript Document

var popHTML = '<p><a href="#" onclick="openMP3Window();">Open this player</a> in a new window</p>';
var mp3Window;

function openMP3Window(){
	try{ 
	    var currPlayer = document.getElementById('mp3Player');
		currPlayer.innerHTML = '';
	} catch(e){}
	mp3Window = window.open('', 'mp3win', 'height=80, width=160');
	var playerTags = definePlayerTags();
	mp3Window.document.write(playerTags);
	mp3Window.document.close();
	mp3Window.focus();	
			
}