$(function() {
  var fontsize_small = "85%",
      fontsize_medium = "100%",
      fontsize_large = "120%";

  $("#rfontsize .fontS").click(function (){
    $("#content").css("font-size", fontsize_small);
    $("#footer").css("font-size", fontsize_small);
    return false;
  });
  $("#rfontsize .fontM").click(function (){
    $("#content").css("font-size", fontsize_medium);
    $("#footer").css("font-size", fontsize_medium);
    return false;
  });
  $("#rfontsize .fontL").click(function (){
    $("#content").css("font-size", fontsize_large);
    $("#footer").css("font-size", fontsize_large);
    return false;
  });

  $("#gnavi li").each(
    function (){
      $(this).hover(
        function (){
          $(this).children("ul").show();
        },
        function (){
          $(this).children("ul").hide();
        }
      );
    }
  );

if(!jQuery.support.opacity)
{
  if(!jQuery.support.style)
  {
    $("table.balloon_comment img.img_png").each(
      function (){
        if ($(this).attr("src") == "/voice/img/user_bln-up.png")
        {
          $(this).css("vertical-align", "bottom");
        }
        if ($(this).attr("src") == "/voice/img/user_bln-btm.png")
        {
          $(this).css("vertical-align", "top");
        }
        if ($(this).attr("src") == "/voice/img/mgrg_bln_up.png")
        {
          $(this).css("vertical-align", "bottom");
        }
        if ($(this).attr("src") == "/voice/img/mgrg_bln-btm.png")
        {
          $(this).css("vertical-align", "top");
        }
      }
    );
  }
}
});

