$(function(){
	DD_roundies.addRule('#c, #s, #h-nav a', 6, true);
	
	$(".b-concert a").colorbox({width:"80%", height:"80%", iframe:true});
	$("a[rel=lightbox[maxigallery]]").colorbox();
	
	$('.tpl-press-kit').parent().addClass('tpl-press-kit-html');
	
	$('.b-track-list a').each(function(){
		$(this).attr('title', 'Click to play/stop track...');
	});
	$('.b-track-list a').click(function() {
		var sMP3 = $(this).attr('href');
		
		if($(this).hasClass('played')){
			$("#jpId").jPlayer("stop");
			$(this).removeClass('played');
		} else {
			$('.b-track-list a').removeClass('played')
			$("#jpId").jPlayer( "clearFile" ).jPlayer("setFile", sMP3).jPlayer("play");
			$(this).addClass('played')
		}
		
		return false;
	});
	
	$("#jpId").jPlayer( {
		swfPath: "/assets/templates/a/js/"
	});
				
//$("#jpId").jPlayer( {
//    ready: function () {
//      this.element.jPlayer("setFile", "/assets/files/mp3/4-brothers/Loreena McKennitt - An Ancient Muse - 01 - Incantation.mp3").jPlayer("play"); // Auto-Plays the file
//    },
//    swfPath: "/assets/templates/a/js/"
//});

});
