Drupal.behaviors.ams_newsletter_signup = function (context) {
  $("#ams-newsletter-signup-form").find(':input')
  .each(
	function(i) {
	  if (this.name == 'email') {
		email_value = Drupal.settings.ams_newsletter_signup.email;
		$(this).focus(function() {
			if(this.value == email_value) {
				this.value = '';
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
				this.value = email_value;
			}
		});
	}
	if (this.name == 'postal_code') {
		zip_value = Drupal.settings.ams_newsletter_signup.postal_code;
		$(this).focus(function() {
			if(this.value == zip_value) {
				this.value = '';
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
				this.value = zip_value;
			}
		});
	  }
	}
  );
};