$(document).ready(function() {
  // Hover over for results page WLS bubble (easter egg)
  $(".bubble-link").each(function() {
    $(this).hover(
      function() {
        $(this).next().show();
        $(this).next().removeClass("hidden");
        // $(this).next().css('zIndex', 2000);
        // $(this).next().css('z-index', 2000);
      },
      function() {
        $(this).next().hide();
      }
    );
  })
  
  // Make sure the bubble doesn't go away if the mouse is over the bubble
  $(".bubble").each(function() {
    $(this).hover(
      function() {
        $(this).show();
        $(this).removeClass("hidden");
        // $(this).css('zIndex', 2000);
        // $(this).css('z-index', 2000);
      },
      function() {
        $(this).hide();
      }
    );
  })

  // Kill the default action for the results WLS link since we're just showing the bubble
  $(".bubble-link").each(function() {
    $(this).click(function(e) { 
      e.preventDefault();
      return false;
    });
  });

});