<!--
$(function(){
	var playItem = 0,
		title=$('.jp-interface .jp-title'),
		jPlayer=$("#jplayer"),
		myPlayList = [
			{name:"Overdrive - Winterse 50 Tips!",mp3:"audio/winterse50tips.mp3",ogg:"audio/winterse50tips.ogg"},
			{name:"Ilse DeLange - DOLUV2LUVU",mp3:"audio/doluv2luvu.mp3",ogg:"audio/doluv2luvu.ogg"},
			{name:"Snoop Dogg & Wiz Khalifa - Young, Wild...",mp3:"audio/youngwildfree.mp3",ogg:"audio/youngwildfree.ogg"},
			{name:"Gotye Ft. Kimbra - Somebody That I...",mp3:"audio/somebodyiusedtoknow.mp3",ogg:"audio/somebodyiusedtoknow.ogg"}
		],		
		jPlay=function(idx){
			if(typeof idx==typeof 0)
				jPlayer.jPlayer("setMedia",myPlayList[idx]).jPlayer('stop')
			if(typeof idx==typeof '')
				jPlayer.jPlayer("setMedia",myPlayList[playItem=idx=='next'?(++playItem<myPlayList.length?playItem:0):(--playItem>=0?playItem:myPlayList.length-1)]).jPlayer('stop')					
			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;
		})
	
});
-->
