    jQuery(document).ready(function() 
    {
        var historyBox = new HistoryBox();
    });
    
    var HistoryBox = function()
    {
        this.setUp();
    };
    HistoryBox.prototype.setUp = function()
    {
        var thisHistoryBox = this;
        
        
        var boxHeight = jQuery("dl#history").height();
        boxHeight = parseInt(boxHeight) - 24;
        
        jQuery("dl#history dd").each(function()
        {
            jQuery(this).css("height", boxHeight + "px");
        });
        
        jQuery("dl#history dt a").each(function()
        {
            jQuery(this).click(function()
            {
                thisHistoryBox.selectTab();
            
                var href = jQuery(this).attr("href");
                jQuery(this).addClass("selected");
                
                jQuery(href).fadeIn();
            });
        });

    };
    HistoryBox.prototype.selectTab = function()
    {
        jQuery("dl#history dt a").each(function()
        {
            jQuery(this).removeClass("selected");
        });
    
        jQuery("dl#history dd").each(function()
        {
            jQuery(this).fadeOut();
        });
    };