var isIE = (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent));
jQuery(document).ready(function() {
    $("#status > li > a").each(function() {
        var i = 0;
        
        $(this).bind("click", function() {
            showStatus($(this).attr("id"), 500);
        });

    });
    
    $(".full_status").each(function() {
        $(this).css('display', 'none');
    });
    
    $("#live_status .back").each(function() {
        $(this).bind("click", function() {
            showList($(this).parent().attr("id"));
        });
    });
});

function showStatus(id, spd)
{
    var livestatus = $("#live_" + id);
    var status = $("#live_status .event_style");
    
    if(!isIE)
    {
        status.fadeOut(spd);
        livestatus.fadeIn(spd);
    } else {
        livestatus.show();
        status.hide();
    }
}

function showList(id)
{
    var livestatus = $("#" + id);
    var status = $("#live_status .event_style");
    
    if(!isIE)
    {
        livestatus.fadeOut("slow");
        status.fadeIn("slow");
    } else {
        livestatus.hide();
        status.show();
    }
}