//*****************LIMPIAR INPUTS DE TEXTO********************/

(function(jQuery){
	jQuery.fn.clearField = function() {
	 var currentValue = $(this).val();
	   // en el focus() comparamos si es el mismo por defecto, y si es asi lo vaciamos
	   $(this).focus(function(){
	      if( $(this).val() == currentValue ) {
	         $(this).val('');
	      };
	   });
	   // en el blur, si el usuario dejo el value vacio, lo volvemos a restablecer
	   $(this).blur(function(){
	      if( $(this).val() == '' ) {
	         $(this).val(currentValue);
	      };
	   });

}
})(jQuery);

/*  */
jQuery(function(){

if (jQuery('#cabecera .buscador input[type="text"]').length > 0) {
	jQuery('#cabecera .buscador input[type="text"]').clearField();
}
}); 


