jQuery(document).ready(function() {

    jQuery('.jquerytablist > li > a')
        .click(function(e) {
            jQuery('.jquerytablist > li')
                .removeClass('active');

            jQuery(this)
                .parent()
                .addClass('active');

            var currentTab = jQuery(this).attr('href');
            jQuery('.jqueryTabs div[id$="-tab"]').hide();
            jQuery(currentTab).show();
            return false;
        });

    // clean up to avoid memory leaks in certain versions of IE 6
    jQuery(window).bind('unload', function() {
        jQuery('.jquerytablist > li > a').unbind('click');
    });

});


