$(document).ready(function(){
 
   

/*
// Instantiate jPlayer, attach to 'player' ID.   
$("#player").jPlayer( {

  	 // Do Things when it's ready and done loading...
    ready: function () {
    	
    	// Here's the file we're loading from.
      $(this).setFile("mp3/aintnochimneys.mp3");
      
      // Attach event to display loading information (mandatory, for some reason).
      $(this).onProgressChange( function(lp,ppr,ppa,pt,tt) {
      	// Load info into corresponding element IDs.
  			$("#loading").text(lp+"%");
 		 	$("#playing").text(ppa+"%");
		});
		
		// Autoplay.
		$(this).play();
    },
    
    // Absolute path to supporting SWF file.
    swfPath: "http://www.sneakattackmedia.com/daptone/js",
    
    // Define prefix for jPlayer-specific classes.
    cssPrefix: "player-class"
});
*/



$("#jquery_jplayer").jPlayer({
		ready: function () {
			$(this).setFile("http://www.sneakattackmedia.com/daptone/mp3/aintnochimneys.mp3");
			demoInstanceInfo($(this), $("#jplayer_info"));
		},
		cssPrefix: "different_prefix_example",
		volume: 50,
		swfPath: "/daptone/js"
	})
	.jPlayerId("play", "player_play")
	.jPlayerId("pause", "player_pause")
	.jPlayerId("stop", "player_stop")
	.jPlayerId("loadBar", "player_progress_load_bar")
	.jPlayerId("playBar", "player_progress_play_bar")
	.jPlayerId("volumeMin", "player_volume_min")
	.jPlayerId("volumeMax", "player_volume_max")
	.jPlayerId("volumeBar", "player_volume_bar")
	.jPlayerId("volumeBarValue", "player_volume_bar_value")
	.onProgressChange( function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {
		var myPlayedTime = new Date(playedTime);
		var ptMin = (myPlayedTime.getUTCMinutes() < 10) ? "0" + myPlayedTime.getUTCMinutes() : myPlayedTime.getUTCMinutes();
		var ptSec = (myPlayedTime.getUTCSeconds() < 10) ? "0" + myPlayedTime.getUTCSeconds() : myPlayedTime.getUTCSeconds();
		$("#play_time").text(ptMin+":"+ptSec);

		var myTotalTime = new Date(totalTime);
		var ttMin = (myTotalTime.getUTCMinutes() < 10) ? "0" + myTotalTime.getUTCMinutes() : myTotalTime.getUTCMinutes();
		var ttSec = (myTotalTime.getUTCSeconds() < 10) ? "0" + myTotalTime.getUTCSeconds() : myTotalTime.getUTCSeconds();
		$("#total_time").text(ttMin+":"+ttSec);
	})
	.onSoundComplete( function() {
		$(this).play();
	});
	
	});
