jQuery(document).ready(function() {

	// Create an array of default values
	textInputs = jQuery('.email-input');
	var defaultValue = new Array();

	jQuery('.email-input').each(function(i) {
	 defaultValue[i] = textInputs[i].value;
	});

	// Bind blur and focus events to each input
	jQuery('.email-input').each(function(i) {
		jQuery(this).bind("focus", function() {
			if ( jQuery(this).attr("value") == defaultValue[i] ) {
				jQuery(this).attr("value", "");
				jQuery(this).addClass("focus");
			};
		});
	   jQuery(this).bind("blur", function(){
			if ( jQuery(this).attr("value") == "" ) {
				jQuery(this).removeClass("focus");
				jQuery(this).attr("value", defaultValue[i]);
			};
	   });
	});
});