$(function(){
    var container = $('#list1b');
    if (container.is(':visible')){
        var headers = $('#list1b a.accord_header');
        if (headers.is(':visible')){
            headers.click(function(){
/*
                var tab = $(this);
                if (!tab.is('.current')){
                    window.location.href = tab.attr('href');
                    return false;
                }
*/
window.location.href = $(this).attr('href');
return false;
            });
            var index = null;
            $('#list1b a.accord_header').each(function(i){
                var tab = $(this);
                var id = tab.attr('id');
                if (id && id === 'active_subcat'){
                    index = i;
                    return false;
                }
            });
            container.tabs('#list1b div.accord_pane',{
                tabs: 'a.accord_header',
                effect: 'slide',
                initialIndex: index
            });
        }
    }
});
