var thePlayer = '';

function loadwmwatch(url) {
	if (!thePlayer.closed && thePlayer.location) {
		thePlayer.close();
		thePlayer = window.open(url,'mediaplayer','scrollbars=no,menubar=no,height=395,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	} else {
		thePlayer = window.open(url,'mediaplayer','scrollbars=no,menubar=no,height=395,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	}
}
function loadwmlisten(url) {
	if (!thePlayer.closed && thePlayer.location) {
		thePlayer.close();
		thePlayer = window.open(url,'mediaplayer','scrollbars=no,menubar=no,height=250,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	} else {
		thePlayer = window.open(url,'mediaplayer','scrollbars=no,menubar=no,height=250,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	}
}
function loadrmwatch(url) {
	if (!thePlayer.closed && thePlayer.location) {
		thePlayer.close();
		thePlayer = window.open(url,'mediaplayer','scrollbars=auto,menubar=no,height=395,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	} else {
		thePlayer = window.open(url,'mediaplayer','scrollbars=auto,menubar=no,height=395,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	}
}
function loadrmlisten(url) {
	if (!thePlayer.closed && thePlayer.location) {
		thePlayer.close();
		thePlayer = window.open(url,'mediaplayer','scrollbars=auto,menubar=no,height=280,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	} else {
		thePlayer = window.open(url,'mediaplayer','scrollbars=auto,menubar=no,height=280,width=500,resizable=no,toolbar=no,location=no,status=no');
		thePlayer.focus();
	}
}
