
// vidage des champs
$.fn.clearField = function (settings) {
    settings = jQuery.extend(
		{
			initText:    ''
		}, settings
	);
	
	return this.each ( function () {
        $field = $(this);
        
        $field.focus ( function () {
            if ( this.value == settings.initText )
                this.value = '';
        });
        
        $field.blur ( function () {
            if ( this.value == '' )
                this.value = settings.initText;
        });
    });
}

$( function () {
	$('#recherche').clearField ({ initText: 'Vous recherchez' });
});
