function player_status()
{
	var mp = document.getElementById('mp');
	var state = mp.playState;
	var texto = "Aguarde...";

	if (state == 0) texto = "Parado";
	if (state == 1) texto = "Pausado";
	if (state == 3) texto = "NO AR - <span>FM Play, o sucesso toca aqui</span>";
	if (state == 6) texto = "Armazenando";
	if (state == 7) texto = "Aguarde...";

	$("#status").html(texto);
}

function volume()
{
	var mp = document.getElementById('mp');
	mp.settings.volume = Number($("#sliderValue1").val());
}

$(function() {
	var mp = document.getElementById('mp');

	$("#play a").click(function() {
		mp.controls.play();
	});
	$("#stop a").click(function() {
		mp.controls.stop();
	});

	tmrstatus = setInterval("player_status();", 200);
	tmrvolume = setInterval("volume();", 100);
});

var A_TPL = {
	'b_vertical' : false,
	'b_watch': true,
	'n_controlWidth': 65,
	'n_controlHeight': 21,
	'n_sliderWidth': 8,
	'n_sliderHeight': 23,
	'n_pathLeft' : 1,
	'n_pathTop' : 0,
	'n_pathLength' : 56,
	's_imgControl': '_img/bg_volume.jpg',
	's_imgSlider': '_img/bt_volume.jpg',
	'n_zIndex': 1
}
var A_INIT1 = {
	's_form' : 0,
	's_name': 'sliderValue1',
	's_name2': 'percentual',
	'n_minValue' : 0,
	'n_maxValue' : 100,
	'n_value' : 70,
	'n_step' : 1
}
