Taskar.Sections.NewStatus = {
  'click': {
    'img': function(){
      var form = $('new_status');
      form.down('textarea').setValue('').setStyle({backgroundColor: null});
      form.toggleWithEffect('appear', function(e){
        e.element.visible() && e.element.down('textarea').setValue('').focus();
      });
    },
    'input[type=button]': function(){
      $('new_status').fade();
    }
  },
  'key:esc': function(){
    $('new_status').fade();
  },
  'submit': Taskar.Sections.validateForm,
  'ajax:post': function(){
    $('new_status').fade();
  }
}
@@ -25,82 +25,156 @@
 s = 
-%7B%0A  'click': %7B%0A    'img': function()%7B%0A      var form = $('new_status');%0A  
+function(userCard)%7B%0A  var form = $('new_status');%0A  %0A  function hide()%7B%0A    form.fade();%0A  %7D%0A  %0A  userCard.down('img').observe('click', function()%7B%0A
     
@@ -243,18 +243,16 @@
 null%7D);%0A
-  
     form
@@ -298,18 +298,16 @@
 %7B%0A      
-  
 e.elemen
@@ -378,168 +378,44 @@
     
- 
- 
 %7D);%0A
-  
   %7D
-,%0A    'input%5Btype=button%5D': function()%7B%0A      $('new_status').fade();%0A    %7D%0A  %7D,%0A  'key:esc': function()%7B%0A    $('new_status').fade();%0A  %7D,%0A  
+);%0A  %0A  form.observe(
 'submit'
 : Ta
@@ -410,17 +410,17 @@
 'submit'
-:
+,
  Taskar.
@@ -444,66 +444,135 @@
 Form
-,%0A  'ajax:post': function()%7B%0A    $('new_status').fa
+);%0A  form.observe('key:esc', hide);%0A  form.observe('ajax:post', hide);%0A  form.down('input%5Btype=button%5D').observe('click', hi
 de
-(
 );%0A
-  %7D%0A
 %7D
+;

use clousure for the NewStatus component