/*
  Title _ bbb Common Script
  Author _ Choojiho(chubo@gmail.com)
  Date _ 2008. 6. 11
*/
$(document).ready(function(){

  /* GNB */
  $("#mnb > ul >li > a").focus(function(){
      $(this).parent().parent().children("li").css( {position: "relative", height: "28px"} );
      $(this).parent().parent().children("li").children("ul").hide();
      $(this).parent().children("ul").show();
  });

  $("#mnb > ul >li > a").mouseover(function(){
      $(this).parent().parent().children("li").css( {position: "relative", height: "28px"} );
      $(this).parent().parent().children("li").children("ul").hide();
      $(this).parent().children("ul").show();
  });

  $(".tb_list tbody tr:even").addClass("odd");

  $(".ss_faq .section li p.question").click(function(){ /* FAQ */
    $(".ss_faq .section li .answer").hide();
    $(".ss_faq .section li a").removeClass("on");
    $(this).parent().children("a").addClass("on");
    idx = $(this).parent().children("a").attr("href");
    $(idx).show();
    return false;
  });

  $(".member_list:first table").show();
  $(".member_list:first a").addClass("on");
  $(".member_list h4").click(function(){
    $(".member_list table").hide();
    $(".member_list a").removeClass("on");
    $(this).next().next().show();
    $(this).next().addClass("on");
  });

});
