$(document).ready(function(){
   var dkit = $('#h2h').find('ul.dkitmodule');
   if (dkit) {
      var holdmeopen = $('ul.dkitmodule li.active').height();
      if (holdmeopen && dkit.height((holdmeopen - 15) + 'px').children) {
         dkit.children('li').css({position: 'absolute'});
      }

      dkit.children('li').children('h4').children('a').click(function() {
         $(this).parent('h4').parent('li').parent('ul.dkitmodule').children('li').children('div').animate({opacity: 'hide'}, 400);
         $(this).parent('h4').parent('li').parent('ul.dkitmodule').children('li').removeClass('active');
         $(this).parent('h4').parent('li').addClass('active');

         var that = $(this);
         setTimeout(function () {
            that.parent('h4').parent('li').children('div').animate({opacity: 'show'}, 400);
         }, 400);
         setTimeout(function () {
            var holdmeopen = $('ul.dkitmodule li.active').height();
            $('#h2h').find('ul.dkitmodule').css({position: 'relative'}).animate({height: holdmeopen + 'px'}, 400);
         }, 400);
         return false;
      });
   }
});
