function initPlayer() {
	var so = new SWFObject("swf/playerMultipleList.swf", "rm hubbert", "220", "130", "3", "#9DD0E3");  
	so.addVariable("autoPlay","no");	
	so.addVariable("playlistPath","playlist/playlist.xml");
	so.addVariable("overColor","#3692AF");
	so.addVariable("playerSkin","1");
	so.write("flashPlayer");
}

function initPlayerLink() {
	pl = document.getElementById('popup_link');
	if(pl) {
		UbiEvent.addEvent(pl, 'click', openPlayerWindow, false);
	}
}

function openPlayerWindow(e) {
	
	window.open('popup.html','rm hubbert :: listen','width=330,height=270,scrollbars=no,status=no,toolbar=no,menubar=no,directories=no');
	
	if(window.event) {
		window.event.cancelBubble = true;
		window.event.returnValue = false;
	}
	if(e && e.stopPropagation && e.preventDefault) {
		e.stopPropagation();
		e.preventDefault();
	}
}

UbiEvent.addEvent(window, 'unload', EventCache.flush, false);
UbiEvent.addEvent(window, 'load', UbiStyleSwitch.init, false);
UbiEvent.addEvent(window, 'load', initPlayer, false);
UbiEvent.addEvent(window, 'load', initPlayerLink, false);