$(document).ready(function() {
  var input_element = $('#aside form input');
      input_element.bind('focus', function(){ 
        if ( $(this).val() == 'Your name' || $(this).val() == 'Your e-mail') {
          $(this).data('temp', $(this).val());
          $(this).val('');
        }
      });
      
      input_element.bind('blur', function(){ 
        $(this).val() == "" ? $(this).val( $(this).data('temp') ) : null;
      });
      
      $('form').bind('submit', function(){
        o = new Object;
        $.each($(this).find('input[type="text"]'), function(index, val) {
         o[val.name] = val.value;
        });

        $.ajax({
          url: '/hfo.php',
          type: 'POST',
          dataType: 'html',
          data: o,
        
          complete: function() { },
          success: function(data) { $('form').replaceWith(data); $('#notify').remove(); },
          error: function(err) { $('#notify').fadeIn(function(){
            var t = $(this);
            setTimeout(function() { t.fadeOut(); }, 9000);
          }).html(err.responseText);  }
        });
        
        return false;
      });
      
});
