$(document).ready(function() {
   $('.comment').hover(
      function() {
         //var $parents = $(this).parents('li');
         //if($parents.is())
         $(this).parents('li').children('.comment').addClass('hl');
         //$('#comments li:not(:has(.hl))').children('.comment').css('opacity', .3);//.hide(1000);
      }, function() {
         $(this).parents('li').children('.comment').removeClass('hl');
         //$('#comments li').children('.comment').css('opacity', 1);//.show();
      }
   );
      
   $('.comment .reply').click(function() {
      var re = $(this).data('id');
      $('#commentform #form-re .name').val($(this).siblings('.name').text()/*$('#comment-'+re).children('.name').text()*/);
      $('#commentform input[name=re]').val(re);
      $('#form-name input')[0].focus();
   });
      
   $('#commentform textarea').keydown(function (e) {
      if(e.ctrlKey && e.keyCode == 13) {
         if($(this).val() != '') {
            $(this).parents('form').submit();
         }
      }
   });
});
