/*тут небольшие скрипты*/

$(document).ready(function() {
    $(".team tr:even, .type_a tr:even, .t_m_a_tabs_block_table tr:odd, .type_b tr:odd").css("background-color", "#e3ecf5");

    $(".team tr, .type_a tr, .t_m_a_tabs_block_table tr, .type_b tr").hover(
      function () {
        $(this).css("background-color", "#badaff");
      },
      function () {
        $(".team tr:even").css("background-color", "#e3ecf5");
        $(".type_a tr:even").css("background-color", "#e3ecf5");
        $(".t_m_a_tabs_block_table tr:odd").css("background-color", "#e3ecf5");
        $(".type_b tr:odd").css("background-color", "#e3ecf5");

        $(".team tr:odd").css("background-color", "#fff");
        $(".type_a tr:odd").css("background-color", "#fff");
        $(".t_m_a_tabs_block_table tr:even").css("background-color", "#fff");
        $(".type_b tr:even").css("background-color", "#fff");
      }
    );

    $(".b_head:has(.b_head_minus)").click(function () {
        $(this).next("*").slideToggle("fast");
        $(this).contents().find("span").toggleClass("b_head_plus");
        return false;
      });

      $(".p_m_list li a").click(function () {
          if ($(this).hasClass("p_m_l_minus")) {
              $(this).next("table").slideUp("fast");
              $(this).removeClass("p_m_l_minus");
              $(this).addClass("p_m_l_plus");
          } else {
              $(this).next("table").css("display","table");
              $(this).removeClass("p_m_l_plus");
              $(this).addClass("p_m_l_minus");
          }
          return false;
      });

});

function ShowMainNews(id)
{
    $('ul.news_content').hide();
    $('#'+id).show();
    $('ul.news_head li strong').hide();
    $('ul.news_head li a').show();

    $('#'+id+'_li strong').show();
    $('#'+id+'_li a').hide();
}

function ShowRightNews(id)
{
    $('div.right_news_div').hide();
    $('#'+id).show();
    $('ul.r_n_l_list_head li strong').hide();
    $('ul.r_n_l_list_head li a').show();

    $('#'+id+'_li strong').show();
    $('#'+id+'_li a').hide();
}