$.fn.lol = function () {
	this.each(function() {
		var texto = $(this).val();
		$(this).unbind('click').click(function(){
			if(jQuery.trim($(this).val()) == texto) { 
				if ($(this).attr('name') == 'clave_visible') {
					$(this).parent().find('input[name=clave]').css({'display':''});
					$(this).parent().find('input[name=clave]').focus();
					$(this).css({'display':'none'});
				} else {
					$(this).val("");
				}
			}
		});
		$(this).unbind('focus').focus(function(){
			if(jQuery.trim($(this).val()) == texto) { 
				if ($(this).attr('name') == 'clave_visible') {
					$(this).parent().find('input[name=clave]').css({'display':''});
					$(this).parent().find('input[name=clave]').focus();
					$(this).css({'display':'none'});
				} else {
					$(this).val("");
				}
			}
		});
		$(this).unbind('blur').blur(function() {
			if ($(this).attr('name') == 'clave') {
				if (jQuery.trim($(this).val()) == "") {
					$(this).parent().find('input[name=clave_visible]').css({'display':''});
					$(this).css({'display':'none'});
				}
			} else {
				if (jQuery.trim($(this).val()) == "") $(this).val(texto);
			}
		});
	});
	return true;
}
