(function ($) {
  Drupal.behaviors.analystforum = {
    attach: function(context) {
    
      
      // Add search text to search box.
      $('#search-block-form input.form-text', context).val('Search...').focus(function() {
        $(this).val('').addClass('active');
      }).blur(function() {
      
        if ($(this).val() == '') {
          $(this).val('Search...').removeClass('active');
        }
      });
      
      
      
      // Text for Jobs search box: job title.
      $('#jobs-search-form input.job-title', context).val('job title or skills').focus(function() {
        $(this).val('').addClass('active');
      }).blur(function() {
      
        if ($(this).val() == '') {
          $(this).val('job title or skills').removeClass('active');
        }
      });
      // Text for Jobs search box: location.
      $('#jobs-search-form input.location', context).val('city, state or zip').focus(function() {
        $(this).val('').addClass('active');
      }).blur(function() {
      
        if ($(this).val() == '') {
          $(this).val('city, state or zip').removeClass('active');
        }
      });
      
      
    }
  };
})(jQuery);
;

