$.fn.placeholder = function() {
	
	if (this[0] && 'placeholder' in document.createElement('input')) return;

	return $(this).each(function() {
			$(this).data('placeholder', $(this).attr('placeholder'));
		
		}).live('focusin', function() {
			if ($(this).val() === $(this).data('placeholder')) {
				$(this).val('');
			}
			
		}).live('focusout', function() {
			if ($(this).val() === '') {
				$(this).val($(this).data('placeholder'));
			}
		}).focusout();
	
}