function pause()
{
	var a = document.getElementById('play');
	if (a.className == "play")
	{
		a.className = 'pause';
		wmpFinish();
	}
	else
	{
		a.className = 'play';
		wmpStart();		
	}		
	return false;
}

/* новый код 28,03,2008*/
function Play()
{
	var button = document.getElementById('button');
	if (button.className == 'play')
	{
		button.className = 'pause';
		wmpStart();
	}
	else
	{
		button.className = 'play';
		wmpFinish();

	}
	return false;
}
	
var flashtest = false;
var ietest = false;

function CheckFlash(){
	if (navigator.userAgent.indexOf('MSIE') != -1) {
		flashtest = true;
		ietest = true;
	} else {
		for (var p =0; p< navigator.plugins.length; p++) {
			var d = navigator.plugins[p].name.toLowerCase().indexOf('flash');
			if (d > -1) {
				flashtest = true; break;
			}
		}
	}
}

function OpenPlayer(radio_id){
	if (radio_id){
		var radioOpen = window.open('player.aspx?radio_id=' + radio_id,'radio','resizable=no,width=405,height=200');
		if (radioOpen){
			radioOpen.focus();
		} else {
			alert('Для прослушивания радио Вам необходимо отключить блокирование всплывающих окон для этого сайта');
		}
	}
	return false;
}

