canplay = function(){
	tag = $('#jukebox .aud').get(0);
	// Currently canPlayType(type) returns: "no", "maybe" or "probably"
	if (("no" != tag.canPlayType("audio/ogg")) && ("" != tag.canPlayType("audio/ogg"))) return 'ogg';
	if (("no" != tag.canPlayType("audio/mpeg")) && ("" != tag.canPlayType("audio/mpeg"))) return 'mp3';
	
}

var url = document.domain, type = "ogg";
/*set the type*/
type = canplay();

var playlist = [{
	url: "http://" + url + "/test/_music/" + type + "/Immaculate_Machine-Cmon_Sea_Legs." + type,
	title: "Cmon Sea Legs",
	artist: "Immaculate_Machine"
}, {
	url: "http://" + url + "/test/_music/" + type + "/Christian_Kiefer-In_Hindsight_featuring_Bill_Callahan." + type,
	title: "In Hindsight",
	artist: "Christian_Kiefer"
}, {
	url: "http://" + url + "/test/_music/" + type + "/bob+marley-no_woman_no_cry_live." + type,
	title: "No Woman(No Cry)",
	artist: "Bob Marley"
}, {
	url: "http://" + url + "/test/_music/" + type + "/Greg_Ashley_Band-Apple_Pie_and_Genocide." + type,
	title: "Apple Pie and Genocide",
	artist: "Greg_Ashley_Band"
}, {
	url: "http://" + url + "/test/_music/" + type + "/Jay_Nash-Over_You." + type,
	title: "Over You",
	artist: "Jay_Nash"
}, {
	url: "http://" + url + "/test/_music/" + type + "/Cousin_Cole-Im_On_Fire_Cousin_Coles_Bad_Desire_Remix." + type,
	title: "Im on Fire(Cousin Code Bad Desire Remix)",
	artist: "Cousin_Cole"
},{
	url: "http://" + url + "/test/_music/" + type + "/bob+marley-redemption_song." + type,
	title: "Redemption Song",
	artist: "Bob Marley"
},{
	url: "http://" + url + "/test/_music/" + type + "/Sean_Rowe-Wrong_Side_of_the_Bed." + type,
	title: "Wrong Side of the Bed",
	artist: "Sean_Rowe"
}];
