/**
 *	MP3Player: Support JavaScript for Flash-based MP3 Player
 *	Rob Morgan - http://www.sumo.com.au
 *
 *	Copyright 2007.
 */

var mp3 = {
	openPopup: function(URL) {
		var day = new Date();
		var id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=406,height=316,left = 390,top = 282');");
	},
	popit: function(url) {
		newwindow=window.open(url,'name','height=200,width=150');
		if (window.focus) {newwindow.focus()}
		return false;
	},
	open: function() {
		this.popit('/mp3player/test.html');
	}
}

function openPlayer() {
	var url = '/mp3player/test.html';
	try { var newwindow=window.open(url,'name','height=200,width=150'); } catch(e) { alert(e); }
	if (window.focus) {newwindow.focus()}
	return false;
}

function testalert() {
	alert('noerror');
};