//$("#news ol:eq(1)").hide();
//$("#news ol:eq(2)").hide();
$("#news h5:eq(0)").addClass("active");

$("#news h5").click(function(){
    if(!$(this).hasClass("active"))
    {
        $("#news h5").removeClass("active");
        $(this).addClass("active");
        $("#news ol").slideUp("slow");
        $(this).next().slideDown("slow");
    }
    return false;
});

var all = $(".companyList li > a");

$(".companyList li > a").click(function(){
    var _this = $(this);
    if(!_this.hasClass("active"))
    {
        all.removeClass("active");
        all.parent().find('.companyBox').slideUp("slow");
        _this.addClass("active");
        _this.parent().find('.companyBox').slideDown("slow");
//        $(this).next().slideDown("slow");
    }
    else
    {
        _this.removeClass("active");
        _this.parent().find('.companyBox').slideUp("slow");
    }
    return false;
});

