// JavaScript Document
$(document).ready(function(){
	soundManager.url = '../jquery/soundmanager/swf/';
	soundManager.flashVersion = 9; //Possibilita o "loop" ser definido
	
	soundManager.debugMode = false; //Desabilita o debug no navegador
	var s;

	
	$('#music-pause').click(function(){
		s.pause();
	});
	
	$('#music-play-resume').click(function(){
		s.resume();
	});
	
	$('#radio-jc-v1-close').click(function(){
		s.stop();
		$('#radio-jc-v1').css('display', 'none');
		$(this).css('display', 'none');
	});
	
	soundManager.onready(function(oStatus) {
	  if (oStatus.success) {
		s = soundManager.createSound({
			id: 'Sound Radio JC',
			url: '../musics/ChopinBalladeOp23.mp3',
			autoPlay: true,
			loops: 100,
		    volume: 80
		});
	  } else {
		alert('Oh snap, SM2 could not start.');
	  }
	});
});

	/*threeSixtyPlayer.config = {
	  playNext: true, // stop after one sound, or play through list until end
	  autoPlay: true, // start playing the first sound right away
	  loadRingColor: '#ccc',// amount of sound which has loaded
	  playRingColor: '#000', // amount of sound which has played
	  backgroundRingColor: '#eee', // "default" color shown underneath everything else
	  imageRoot: '', // path to prepend for empty.gif used for play/pause button
	  animDuration: 500,
	  animTransition: Animator.tx.bouncy // http://www.berniecode.com/writing/animator.html
	}*/
