<!--
$(function(){
	var playItem = 0,
		title=$('.jp-interface .jp-title'),
		jPlayer=$("#jplayer"),
		myPlayList = [
			{name:"Club Handle Me",mp3:"audio/club_cant_handle_me.mp3",ogg:"audio/club_cant_handle_me.ogg"},
			{name:"Soul Sister",mp3:"audio/train_hey_soul_sister.mp3",ogg:"audio/hey_soul_siter.ogg"},
			{name:"Adele Rolling in The Deep",mp3:"audio/adele-rolling_in_the_deep.mp3",ogg:"audio/rolling_in_the_deep.ogg"},
			{name:"Mars Grenade",mp3:"audio/bruno_mars-grenade.mp3",ogg:"audio/mars-grenade.ogg"},
			{name:"The Lazy song",mp3:"audio/the_lazy_song.mp3",ogg:"audio/the_lazy_song.mp3.ogg"},
			{name:"Black Plant",mp3:"audio/black_plant.mp3",ogg:"audio/black_plant.ogg"},
			{name:"Hidden",mp3:"audio/hidden.mp3",ogg:"audio/hidden.ogg"},
			{name:"The Separation",mp3:"audio/separation.mp3",ogg:"audio/separation.ogg"}
		],		
		jPlay=function(idx){
			if(typeof idx==typeof 0)
				jPlayer.jPlayer("setMedia",myPlayList[idx]).jPlayer('play')
			if(typeof idx==typeof '')
				jPlayer.jPlayer("setMedia",myPlayList[playItem=idx=='next'?(++playItem<myPlayList.length?playItem:0):(--playItem>=0?playItem:myPlayList.length-1)]).jPlayer('play')					
			title.text(myPlayList[playItem].name)
			Cufon.refresh()
		}

	jPlayer.jPlayer({
		ready: function() {
			jPlay(playItem)
		},
		ended:function(){
			jPlay('next')
		}
	})
	
	$(".jp-prev,.jp-next")
		.click( function() { 
			jPlay($(this).is('.jp-next')?'next':'prev')
			return false;
		})
	
});
-->
