$(document).ready(function() {

  $(".banner, .informaionBlog img, .staffBlog img").hover(
    function() {
      $(this).css("filter", "Alpha(opacity=100)");
    },
    function() {
      $(this).css("filter", "Alpha(opacity=70)");
    }
  );


  $(".staffBox, .staffBox2").hover(
    function() {
      $(this).css("backgroundColor", "#ffffff");
    },
    function() {
      $(this).css("backgroundColor", "#000000");
    }
  );

  $(".imageBlock .thumbnail").mouseover(
    function() {
      if ($(this).attr("src") != "image/diana_1.jpg") {
        $(".preview").attr("src", $(this).attr("src"));
      }
    }
  );
  $(".event .thumbnail").mouseover(
    function() {
      $(".preview").attr("src", $(this).attr("src"));
    }
  );
  $(".event .thumbnail2").mouseover(
    function() {
      $(".preview").attr("src", $(this).attr("src"));
    }
  );
  $(".event .thumbnail3").mouseover(
    function() {
      $(".preview").attr("src", $(this).attr("src"));
    }
  );

  $(".subMenu td").hover(
    function() {
      $(this).css("backgroundColor", "#ffffff");
      $(this).css("color", "#000000");
    },
    function() {
      $(this).css("backgroundColor", "#333333");
      $(this).css("color", "#cccccc");
    }
  );
  $(".subMenu td:eq(0)").click(
    function() {
      $(".introduction:eq(0)").slideUp();
      $(".introduction:eq(1)").slideUp();
      $(".introduction:eq(2)").slideUp();
      $(".introduction:eq(0)").slideDown();
    }
  );
  $(".subMenu td:eq(1)").click(
    function() {
      $(".introduction:eq(0)").slideUp();
      $(".introduction:eq(1)").slideUp();
      $(".introduction:eq(2)").slideUp();
      $(".introduction:eq(1)").slideDown();
    }
  );
  $(".subMenu td:eq(2)").click(
    function() {
      $(".introduction:eq(0)").slideUp();
      $(".introduction:eq(1)").slideUp();
      $(".introduction:eq(2)").slideUp();
      $(".introduction:eq(2)").slideDown();
    }
  );

});

