$(document).ready(function(){	var playItem = 0;	var myPlayList3 = [					{name:"For Free",mp3:"http://paydaymillionaire.com/music/for-free/01_For_Free.mp3"},		{name:"Just Like Arthur Lee Did",mp3:"http://paydaymillionaire.com/music/for-free/02_Just_Like_Arthur_Lee_Did.mp3"},		{name:"Around The Mall",mp3:"http://paydaymillionaire.com/music/for-free/03_Around_The_Mall.mp3"},		{name:"Confide",mp3:"http://paydaymillionaire.com/music/for-free/04_Confide.mp3"},		{name:"Caribbean",mp3:"http://paydaymillionaire.com/music/for-free/05_Caribbean.mp3"},		{name:"Sad City Worker",mp3:"http://paydaymillionaire.com/music/for-free/06_Sad_City_Worker.mp3"},		{name:"Ghost Wars",mp3:"http://paydaymillionaire.com/music/for-free/07_Ghost_Wars.mp3"},		{name:"The Idea Of You",mp3:"http://paydaymillionaire.com/music/for-free/08_The_Idea_of_You.mp3"},		{name:"They Were Filming Outside My Building",mp3:"http://paydaymillionaire.com/music/for-free/09_They_Were_Filming_Outside_My_Building.mp3"},		{name:"History",mp3:"http://paydaymillionaire.com/music/for-free/10_History.mp3"},		{name:"I Gotta Timeline",mp3:"http://paydaymillionaire.com/music/for-free/11_I_Gotta_Timeline.mp3"},		{name:"So We Wait",mp3:"http://paydaymillionaire.com/music/for-free/12_So_We_Wait.mp3"}	];	// Local copy of jQuery selectors, for performance.	var jpPlayTime = $("#jplayer_play_time3");	var jpTotalTime = $("#jplayer_total_time3");	$("#jquery_jplayer3").jPlayer({		ready: function() {			displayPlayList();			playListInit(false); // Parameter is a boolean for autoplay.		},		oggSupport: false,		customCssIds: true	})	.jPlayer("cssId", "play", "jplayer_play3")	.jPlayer("cssId", "pause", "jplayer_pause3")	.jPlayer("cssId", "stop", "jplayer_stop3")	.jPlayer("cssId", "loadBar", "jplayer_load_bar3")	.jPlayer("cssId", "playBar", "jplayer_play_bar3")	.jPlayer("cssId", "volumeMin", "jplayer_volume_min3")	.jPlayer("cssId", "volumeMax", "jplayer_volume_max3")	.jPlayer("cssId", "volumeBar", "jplayer_volume_bar3")	.jPlayer("cssId", "volumeBarValue", "jplayer_volume_bar_value3")	.jPlayer("onProgressChange", function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {		jpPlayTime3.text($.jPlayer.convertTime(playedTime));		jpTotalTime3.text($.jPlayer.convertTime(totalTime));	})	.jPlayer("onProgressChange", function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {		jpPlayTime.text($.jPlayer.convertTime(playedTime));		jpTotalTime.text($.jPlayer.convertTime(totalTime));		//demoStatusInfo(this.element, jpStatus); // This displays information about jPlayer's status in the demo page	})	.jPlayer("onSoundComplete", function() {		playListNext();	});	$("#jplayer_previous3").click( function() {		playListPrev();		return false;	});	$("#jplayer_next3").click( function() {		playListNext();		return false;	});		//PAUSING OTHER PLAYER		$("#jplayer_play3").click( pausePlayer3 );	$("#jplayer_load_bar3").click( pausePlayer3 );	$("#jplayer_play_bar3").click( pausePlayer3 );	function pausePlayer3(e) {        $("#jquery_jplayer").jPlayer("pause");  // Pause the other player        $("#jquery_jplayer2").jPlayer("pause");  // Pause the other player	}	function displayPlayList() {		for (i=0; i < myPlayList3.length; i++) {			$("#jplayer_playlist3 ul").append("<li id='jplayer_playlist3_item_"+i+"'>"+ myPlayList3[i].name +"</li>");			$("#jplayer_playlist3_item_"+i).data( "index", i ).click( function() {				var index = $(this).data("index");				if (playItem != index) {					playListChange( index );				} else {					$("#jquery_jplayer3").jPlayer("play");				}			});		}	}	function playListInit(autoplay) {		if(autoplay) {			playListChange( playItem );		} else {			playListConfig( playItem );		}	}	function playListConfig( index ) {		$("#jplayer_playlist3_item_"+playItem).removeClass("jplayer_playlist_current");		$("#jplayer_playlist3_item_"+index).addClass("jplayer_playlist_current");		playItem = index;		$("#jquery_jplayer3").jPlayer("setFile", myPlayList3[playItem].mp3);	}	function playListChange( index ) {		playListConfig( index );		$("#jquery_jplayer3").jPlayer("play");		$("#jquery_jplayer").jPlayer("pause"); // Pause the other player		$("#jquery_jplayer2").jPlayer("pause"); // Pause the other player	}	function playListNext() {		var index = (playItem+1 < myPlayList3.length) ? playItem+1 : 0;		playListChange( index );	}	function playListPrev() {		var index = (playItem-1 >= 0) ? playItem-1 : myPlayList3.length-1;		playListChange( index );	}	});
