$(function() {
/*  // artist page :: listen links
  var listen_links = $('li.listen a');
  if (listen_links.length > 0) {
    listen_links.click(function() {
      // find flash player container
      var container = $(this).parent().parent().parent().next();
      // show it
      $(container).animate({
        height: '16px'
      }, 1000, 'linear', function() {
        $(container).html('');
        // embed the player into it
        $(container).flash({
          src: 'assets/flash/player.swf?' + $(container).attr('args'), 
          width: 190,
          height: 16, 
          wmode: 'transparent'
        })
      });
      return false;
    })
  }*/
  
  if ($('div#media_player').length > 0) {
  	$('div#media_player').flash(
        { src: 'http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer', 
          width: 303, 
          height: 202, 
          id: 'ytplayer', allowscriptaccess: 'true' }, 
        { version: 8 }
    );
  }
})

function onYouTubePlayerReady(playerId) {
  ytplayer = document.getElementById('ytplayer');
	ytplayer.loadVideoById('glJ0_o80Xuk', 0);
}
