$(function()
{
    var info = $('#info');
    if (info.length == 0)
        return;
    
    var headers = info.children('h2');
    info.children('div').hide().eq(0).show();
    
    headers.click(function()
    {
        info.children('div').hide();
        if ($(this).hasClass('active'))
        {
            $(this).removeClass('active');
            return;
        }
        headers.removeClass('active');
        $(this).addClass('active');
        $(this).next('div').show();
    })
    
})