// Exemple formulaire
	(function($) {
		//Définition du plugin
   		$.fn.form_exemple = function(userExemple, userGetSpanExemple) {   
       
        	// définition des paramètres par défaut
			var defaults = {
				exemple: "",
				getSpanExemple: false
			};  
			var options = {
				exemple: userExemple,
				getSpanExemple: userGetSpanExemple
			};  

        	var opts = $.extend(defaults, options);
			
			function set_exemple() {
				
				if (opts.getSpanExemple) {
					opts.exemple = $(this).next().text();
					$(this).next().remove();
				}
				
				if( $(this).val() == "" ) {
				    if( $(this).is('textarea') ) {
				        $(this).html(opts.exemple);
				    } else {
				        $(this).val(opts.exemple);
				    }
				}
				
				$(this).bind('focus', function(){
					if ( $(this).val() == opts.exemple ) {
						$(this).val('');
					}
				});
				
					$(this).bind('blur', function(){
						if ( $(this).val() == "" ) {
							$(this).val(opts.exemple);
						}
					});
			}
		
			$(this).each(set_exemple);   

			// interface fluide
			 return $(this);
    	};   
	})(jQuery);
	