new RadioUtils();   // This is needed to declare the static variables
function RadioUtils()
{
	//-----------------------------------------------------------------------------------------------------------
	// Static functions
	//-----------------------------------------------------------------------------------------------------------
	
	RadioUtils.open = open;
	
	//-----------------------------------------------------------------------------------------------------------
	// Functions
	//-----------------------------------------------------------------------------------------------------------
	
	function open(width, height)
	{
		var leftPos = (screen.width - width) / 2;
		var topPos = (screen.height - height) / 2;

		var audioUrl = BASE + '/radio';
		var popupTitle = 'Radio';
		var popupVars = 'width=' + width
			+ ',height=' + height
			+ ',top=' + topPos
			+ ',left=' + leftPos
			+ ',menubar=no,toolbar=0,location=0,resizable=0,scrollbars=0';
		
		window.open(audioUrl, popupTitle, popupVars);
	}
}
