/* Project : refonte ccmbenchmark */
/* Author : Maud CLAIR*/

(function($j){
         
    $(document).ready(function(){
    

        // GESTION DU FOCUS    
        $('input.focus, textarea.focus').each(
            function(){
                var valeur = $(this).val();
                // Lorsque l'on clique sur l'item
                $(this).bind('focus', function(){
                    if(this.value == valeur)this.value = '';	
                });
                // Lorsque l'on quitte l'item
                $(this).bind('blur', function() { 
                    if(this.value == '') this.value = valeur; 
                });

            });

        // AUTORESIZE POUR LES TEXTAREA
        $('textarea.autoresize').autoResize({
            // Quite slow animation:
            animateDuration : 100,
            // More extra space:
            extraSpace : 0
        });

    });
                
})(jQuery);



