function initAlbumPlayer()
	{
		if($('#jplayer_1').length)
		{
			// Duration has to be entered manually
			var playlist = 
			[
				{
					title:"Better Days",
					artist:"Bensound",
					mp3:"files/bensound-betterdays.mp3",
					duration:"2.33"
				},
				{
					title:"Dubstep",
					artist:"Bensound",
					mp3:"files/bensound-dubstep.mp3",
					duration:"2.04"
				},
				{
					title:"Sunny",
					artist:"Bensound",
					mp3:"files/bensound-sunny.mp3",
					duration:"2.20"
				},
				{
					title:"Better Days",
					artist:"Bensound",
					mp3:"files/bensound-betterdays.mp3",
					duration:"2.33"
				},
				{
					title:"Dubstep",
					artist:"Bensound",
					mp3:"files/bensound-dubstep.mp3",
					duration:"2.04"
				},
				{
					title:"Sunny",
					artist:"Bensound",
					mp3:"files/bensound-sunny.mp3",
					duration:"2.20"
				}
			];

			var options =
			{
				playlistOptions:
				{
					autoPlay:false,
					enableRemoveControls:false
				},
				play: function() // To avoid multiple jPlayers playing together.
				{ 
					$(this).jPlayer("pauseOthers");
				},
				solution: 'html',
				supplied: 'oga, mp3',
				useStateClassSkin: true,
				preload: 'metadata',
				volume: 0.2,
				muted: false,
				backgroundColor: '#000000',
				cssSelectorAncestor: '#jp_container_1',
				errorAlerts: false,
				warningAlerts: false
			};

			var cssSel = 
			{
				jPlayer: "#jplayer_1",
				cssSelectorAncestor: "#jp_container_1",
				play: '.jp-play',
				pause: '.jp-pause',
				stop: '.jp-stop',
				seekBar: '.jp-seek-bar',
				playBar: '.jp-play-bar',
				globalVolume: true,
				mute: '.jp-mute',
				unmute: '.jp-unmute',
				volumeBar: '.jp-volume-bar',
				volumeBarValue: '.jp-volume-bar-value',
				volumeMax: '.jp-volume-max',
				playbackRateBar: '.jp-playback-rate-bar',
				playbackRateBarValue: '.jp-playback-rate-bar-value',
				currentTime: '.jp-current-time',
				duration: '.jp-duration',
				title: '.jp-title',
				fullScreen: '.jp-full-screen',
				restoreScreen: '.jp-restore-screen',
				repeat: '.jp-repeat',
				repeatOff: '.jp-repeat-off',
				gui: '.jp-gui',
				noSolution: '.jp-no-solution'
			};

			var myPlaylist = new jPlayerPlaylist(cssSel,playlist,options);
			
			
			setTimeout(function()
			{
				var items = $('.jp-playlist ul li > div');
				for(var x = 0; x < items.length; x++)
				{
					var item = items[x];
					var dur = playlist[x].duration;
					var durationDiv = document.createElement('div');
					durationDiv.className = "song_duration";
					durationDiv.append(dur);
					item.append(durationDiv);
				}
			},200);
		}
	}
/* 

	5. Init Featured Album Player

	*/
5. Init Featured Album Player
5 . Init Featured Album Player
function initAlbumPlayer()
	{
		if($('#jplayer_1').length)
		{
			var playlist = 
			[
				{
					title:"Better Days",
					artist:"Bensound",
					mp3:"files/bensound-betterdays.mp3",
					duration:"2.33"
				},
				{
					title:"Dubstep",
					artist:"Bensound",
					mp3:"files/bensound-dubstep.mp3",
					duration:"2.04"
				},
				{
					title:"Sunny",
					artist:"Bensound",
					mp3:"files/bensound-sunny.mp3",
					duration:"2.20"
				},
				{
					title:"Better Days",
					artist:"Bensound",
					mp3:"files/bensound-betterdays.mp3",
					duration:"2.33"
				},
				{
					title:"Dubstep",
					artist:"Bensound",
					mp3:"files/bensound-dubstep.mp3",
					duration:"2.04"
				},
				{
					title:"Sunny",
					artist:"Bensound",
					mp3:"files/bensound-sunny.mp3",
					duration:"2.20"
				}
			];
			var options =
			{
				playlistOptions:
				{
					autoPlay:false,
					enableRemoveControls:false
				},
				play: function() 
				{ 
					$(this).jPlayer("pauseOthers");
				},
				solution: 'html',
				supplied: 'oga, mp3',
				useStateClassSkin: true,
				preload: 'metadata',
				volume: 0.2,
				muted: false,
				backgroundColor: '#000000',
				cssSelectorAncestor: '#jp_container_1',
				errorAlerts: false,
				warningAlerts: false
			};
			var cssSel = 
			{
				jPlayer: "#jplayer_1",
				cssSelectorAncestor: "#jp_container_1",
				play: '.jp-play',
				pause: '.jp-pause',
				stop: '.jp-stop',
				seekBar: '.jp-seek-bar',
				playBar: '.jp-play-bar',
				globalVolume: true,
				mute: '.jp-mute',
				unmute: '.jp-unmute',
				volumeBar: '.jp-volume-bar',
				volumeBarValue: '.jp-volume-bar-value',
				volumeMax: '.jp-volume-max',
				playbackRateBar: '.jp-playback-rate-bar',
				playbackRateBarValue: '.jp-playback-rate-bar-value',
				currentTime: '.jp-current-time',
				duration: '.jp-duration',
				title: '.jp-title',
				fullScreen: '.jp-full-screen',
				restoreScreen: '.jp-restore-screen',
				repeat: '.jp-repeat',
				repeatOff: '.jp-repeat-off',
				gui: '.jp-gui',
				noSolution: '.jp-no-solution'
			};
			var myPlaylist = new jPlayerPlaylist(cssSel,playlist,options);
			setTimeout(function()
			{
				var items = $('.jp-playlist ul li > div');
				for(var x = 0; x < items.length; x++)
				{
					var item = items[x];
					var dur = playlist[x].duration;
					var durationDiv = document.createElement('div');
					durationDiv.className = "song_duration";
					durationDiv.append(dur);
					item.append(durationDiv);
				}
			},200);
		}
	}
function initAlbumPlayer ( ) { if ( $ ( '#jplayer_1' ) . length ) { var playlist = [ { title : "Better Days" , artist : "Bensound" , mp3 : "files/bensound-betterdays.mp3" , duration : "2.33" } , { title : "Dubstep" , artist : "Bensound" , mp3 : "files/bensound-dubstep.mp3" , duration : "2.04" } , { title : "Sunny" , artist : "Bensound" , mp3 : "files/bensound-sunny.mp3" , duration : "2.20" } , { title : "Better Days" , artist : "Bensound" , mp3 : "files/bensound-betterdays.mp3" , duration : "2.33" } , { title : "Dubstep" , artist : "Bensound" , mp3 : "files/bensound-dubstep.mp3" , duration : "2.04" } , { title : "Sunny" , artist : "Bensound" , mp3 : "files/bensound-sunny.mp3" , duration : "2.20" } ] ; var options = { playlistOptions : { autoPlay : false , enableRemoveControls : false } , play : function ( ) { $ ( this ) . jPlayer ( "pauseOthers" ) ; } , solution : 'html' , supplied : 'oga, mp3' , useStateClassSkin : true , preload : 'metadata' , volume : 0.2 , muted : false , backgroundColor : '#000000' , cssSelectorAncestor : '#jp_container_1' , errorAlerts : false , warningAlerts : false } ; var cssSel = { jPlayer : "#jplayer_1" , cssSelectorAncestor : "#jp_container_1" , play : '.jp-play' , pause : '.jp-pause' , stop : '.jp-stop' , seekBar : '.jp-seek-bar' , playBar : '.jp-play-bar' , globalVolume : true , mute : '.jp-mute' , unmute : '.jp-unmute' , volumeBar : '.jp-volume-bar' , volumeBarValue : '.jp-volume-bar-value' , volumeMax : '.jp-volume-max' , playbackRateBar : '.jp-playback-rate-bar' , playbackRateBarValue : '.jp-playback-rate-bar-value' , currentTime : '.jp-current-time' , duration : '.jp-duration' , title : '.jp-title' , fullScreen : '.jp-full-screen' , restoreScreen : '.jp-restore-screen' , repeat : '.jp-repeat' , repeatOff : '.jp-repeat-off' , gui : '.jp-gui' , noSolution : '.jp-no-solution' } ; var myPlaylist = new jPlayerPlaylist ( cssSel , playlist , options ) ; setTimeout ( function ( ) { var items = $ ( '.jp-playlist ul li > div' ) ; for ( var x = 0 ; x < items . length ; x ++ ) { var item = items [ x ] ; var dur = playlist [ x ] . duration ; var durationDiv = document . createElement ( 'div' ) ; durationDiv . className = "song_duration" ; durationDiv . append ( dur ) ; item . append ( durationDiv ) ; } } , 200 ) ; } }
5.
5 .
// Duration has to be entered manually // To avoid multiple jPlayers playing together.