var Lyrics = {
  show: function(lyrics_id) {
    $("#"+lyrics_id).toggle();
  }
};

var Players = {
  all: [],
  pause_all: function(not_me) {
    Players.all.each(function() {
      if (!not_me || this.id != not_me) {
        this.pause();
      }
    });
  }
};

var newsletter_input_text = "";

$(function() {
  
  $('.lyrics').hide();
  
  $('.lyrics a.hide').click(function() {
    $(this).parents(".lyrics").hide();
    return false;
  });
  
  Players.all = $(".player object");
  
  newsletter_input_text = $("#newsletter input").val();
  
  $("#newsletter input").focus(function(event) {
    if (this.value == newsletter_input_text) { this.value = ""; }
    $(this).addClass('on');
  }).blur(function(event) {
    if (this.value == "") { 
      this.value = newsletter_input_text;
      $(this).removeClass('on');
    }
  });
  
  $("#contact-form").hide();
  
  $("#contact-link").click(function() {
    $("#contact-form").toggle();
    return false;
  });
  
});
