$.fn.slideFadeToggle  = function(speed, easing, callback) {
        return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
};

$(function() {

    var $el, $parentWrap, $otherWrap,
        $allCells = $("dd"),
        $allTitles = $("dt");
        
    $allCells.css({
        position: "relative",
        top: 0,
        left: 0,
        display: "none"    
    });

    $("dt").live("click", function() {
    
        $el = $(this);
        
        if (!$el.hasClass("current")) {
        
            $parentWrap = $el.parent().parent();
            $otherWraps = $(".tarp-wrap div").not($parentWrap);
            
            $allCells.slideUp().fadeOut();
            $el.next().slideFadeToggle(); 
            
            $parentWrap.animate({
                width: 350
            });
            
            $otherWraps.animate({
                width: 140
            });
            
            $allTitles.removeClass("current");
            $el.addClass("current");  
        
        }
        
    });
    
});
