$(function() {     
   $('#hand > li >img').livequery('click', function (event) {
       $(this).parent().children('img').toggleClass('hide').end().children('input').click(); 
       }); 
   $('#hand').sortable();
   $('#nomdp').blur(function (event) {
       name = $(this).val();
       if (name) {
        $(this).parent().addClass('hide');
        $("#name_rep").removeClass('hide').text(', '+name).click( function() {
            $(this).addClass('hide');
            $("#nomdp").parent().removeClass('hide').end().focus(); 
            });
       }
       });
   $('#gs').ajaxForm();  
   $.taconite.debug = true;
 }
);    
