//'.tabs-header' doesn't hide overflow with '.stub' in ie6-7. So we need to set its width in real time.
function updateStub(){
    var static_w = 0,
        stub_h = parseInt($(".tab-group .tabs-headers h2").eq(0).css('height'))+
                 parseInt($(".tab-group .tabs-headers h2").eq(0).css('padding-top'))+
                 parseInt($(".tab-group .tabs-headers h2").eq(0).css('padding-bottom')),
        $hs = $(".tab-group .tabs-headers h2"),
        q = $hs.length;

    for(i=0;i<q;i++){
        static_w += $hs.eq(i).outerWidth();
    }    
    $(".tab-group .tabs-headers h2.last .stub").css({'width': ($('.tab-group .tab.active').outerWidth() - static_w+2/*ie6*/)+'px',
                                                     'height':  stub_h+"px"});
}
$(function(){
    updateStub();    
    $(".tab-group .tabs-headers h2").click(function(){
        updateStub();        
    });
});
