(function($) {
	
	$.fn.filterText = function(ff,c){		
		return this.each(function(){
			if (ff.length == 0){
 				jQuery(this).show();
 			}else{
 				tt = $(this).text();
 				if(c == 'i'){
 					ff = ff.toLowerCase();
 					tt = tt.toLowerCase();
 				}
 				if(tt.match(ff)){
    	  			jQuery(this).show();
    	  		}else{
    	  			jQuery(this).hide();
    	  		}
 			}
		});
	}
	
	$.fn.cancelFilter = function(){	
		return this.each(function(){
			jQuery(this).show();
		});
	}
})(jQuery);