<!--
$(function(){
	var playItem = 0,
		title=$('.jp-interface .jp-title'),
		jPlayer=$("#jplayer"),
		myPlayList = [
			{name:"James Blake - Limit To Your Love",mp3:"audio/James Blake - Limit To Your Love.mp3",ogg:"audio/James Blake - Limit To Your Love.ogg"},
			{name:"I'm All Over It",mp3:"audio/I'm All Over It.mp3",ogg:"audio/I'm All Over It.ogg"},
			{name:"fenech-soler-lies",mp3:"audio/fenech-soler-lies.mp3",ogg:"audio/fenech-soler-lies.ogg"},
                        {name:"Crystal Castles - Not In Love ft. Robert Smith of The Cure",mp3:"audio/Crystal Castles - Not In Love ft. Robert Smith of The Cure.mp3",ogg:"audio/Crystal Castles - Not In Love ft. Robert Smith of The Cure.ogg"},
			{name:"Everybody's Free (To Wear Sunscreen) [Edit]",mp3:"audio/Everybody's Free (To Wear Sunscreen) [Edit].mp3",ogg:"audio/Everybody's Free (To Wear Sunscreen) [Edit].ogg"},
			{name:"Road Trippin",mp3:"audio/Road Trippin.mp3",ogg:"audio/Road Trippin.ogg"},
                        {name:"Has It Come to This-",mp3:"audio/Has It Come to This-.mp3",ogg:"audio/Has It Come to This-.ogg"},
			{name:"Jamie Woon - Night Air",mp3:"audio/Jamie Woon - Night Air.mp3",ogg:"audio/Jamie Woon - Night Air.ogg"},
			{name:"just jack-glory days",mp3:"audio/just jack-glory days.mp3",ogg:"audio/just jack-glory days.ogg"},
			{name:"Praise You",mp3:"audio/Praise You.mp3",ogg:"audio/Praise You.ogg"},
			{name:"Magnetic Man feat. Katy B. - Perfect Stranger Steve Angello Remix",mp3:"audio/Magnetic Man feat. Katy B. - Perfect Stranger Steve Angello Remix.mp3",ogg:"audio/Magnetic Man feat. Katy B. - Perfect Stranger Steve Angello Remix.ogg"},
                        {name:"Swedish House Mafia Ft. Tinie Tempah - Miami 2 Ibiza GTM Remix",mp3:"audio/Swedish House Mafia Ft. Tinie Tempah - Miami 2 Ibiza GTM Remix.mp3",ogg:"audio/Swedish House Mafia Ft. Tinie Tempah - Miami 2 Ibiza GTM Remix.ogg"},
			{name:"Moving to New York",mp3:"audio/Moving to New York.mp3",ogg:"audio/Moving to New York.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;
		})
	
});
-->
