function open_win() {
	window.open("http://www.radiovibezone.com/painel/enviar.php","PedidosVibeZone","width=220, height=260, left=100, top=150, resizable=no")
}

/* Se o browser for Internet Explorer */
	if(-1 != navigator.userAgent.indexOf("MSIE")) {
		document.write('<OBJECT id="WMPlay"');
		document.write(' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
    }

/* Se o browser for o Firefox */
    else if(-1 != navigator.userAgent.indexOf("Firefox")) {
		document.write('<OBJECT id="WMPlay"'); 
        document.write(' type="application/x-ms-wmp" '); 
    } 
  
/* Se o browser for o Safari */
	else if(-1 != navigator.userAgent.indexOf("Safari")) {
		document.write('<OBJECT id="WMPlay"'); 
        document.write(' type="application/x-ms-wmp" '); 
    } 

/* Se o browser for o Opera */
	else if(-1 != navigator.userAgent.indexOf("Opera")) {
		document.write('<OBJECT id="WMPlay"');
		document.write(' type="application/x-ms-wmp" '); 
	} 

/* escreve as linhas do player */
	document.write(' width="0" height="0" border="0">');
	document.write('<PARAM name="autoStart" value="1"/>');

/* Defina o Url do Streaming */
	document.write('<PARAM name="url" value="http://radios.lobohost.com.br:8270"/>');
	document.write('<param name="TransparentAtStart" value="none">');
	document.write('<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">');
	document.write('<param name="AudioStream" value="1">');

/* Define o volume do player como 70 só vai até 100 */	
	document.write('<param name="Volume" value="70">');
	document.write('<param name="uiMode" value="mini">');
	document.write('<param name="Enabled" value="true" >');
	document.write('<param name="EnableContextMenu" value="true" >');
	document.write('<param name="EnablePositionControls" 	value="true">'); 
	document.write('<param name="EnableFullScreenControls" 	value="false">');
	document.write('<param name="ShowAudioControls" 	value="true">');	 	 
	document.write('<param name="ShowControls" value="true">');
	document.write('<param name="ShowDisplay" value="true">');
	document.write('<param name="ShowStatusBar" value="true">');
	document.write('<param name="AutoSize" value="true">');
	document.write('<param name="BufferingTime" value="5">');
	document.write('</OBJECT>'); 

<!-- Função dos botões, play, stop, volume + , volume - e mudo -->
	function Play() {
		document.getElementById('WMPlay').settings.invokeURLs = false;
		document.getElementById('WMPlay').controls.play();
	}
	function Stop() {
		document.getElementById('WMPlay').settings.invokeURLs = false;
		document.getElementById('WMPlay').controls.stop();
	}
	function volume_up() {
		document.getElementById('WMPlay').settings.invokeURLs = false;
		document.getElementById('WMPlay').settings.volume = document.getElementById('WMPlay').settings.volume + 20
	}

/* Diminui o volume do player de 10 em 10 */
	function volume_down() {
		document.getElementById('WMPlay').settings.invokeURLs = false;
		document.getElementById('WMPlay').settings.volume = document.getElementById('WMPlay').settings.volume - 20;
	}
	function mute() {
		document.getElementById('WMPlay').settings.invokeURLs = false;
		/* Se o botão mudo do player estiver "ativo == true" muda o valor mute para false, ele desabilita o mudo do player e o som volta a tocar */
		if(document.getElementById('WMPlay').settings.mute == true)
			document.getElementById('WMPlay').settings.mute = false
		else
			document.getElementById('WMPlay').settings.mute = true
	}
