jQuery(document).ready(function(){
  
  //console.log("document ready");

  jQuery("body.s-category-releases #cover a").fancybox({

    'callbackOnShow': function() {
      // Flash MP3 player buttons sit on top of FancyBox,
      // so hide them when FancyBox is triggered 
      jQuery("span.audio").hide(10);
    },
    'callbackOnClose': function() {
      // Show MP3 player buttons again after FancyBox closes
      jQuery("span.audio").show(600);
    }
  });  
  
  if (typeof initAudio == 'function') {
    initAudio();
  }
  
  jQuery("#branding").click(function () {
    location.href="/";
  });
  
});
