$(document).ready(function(){


$("#grid div.layer a").hover(
      function () {
		$(this).find("span.first").css("display","none");
        $(this).find("span.second").show();
		$(this).parent("div.layer:first").css("zIndex","999");	
		$(this).find("span.second").css("display","block");
		$(this).find("span.second strong").css("display","block");
      }, 
      function () {
		  $(this).find("span.first").css("display","block");
		  $(this).find("span.second").css("display","none");
		  $(this).parent("div.layer:first").css("zIndex","1");
		  
		/*$(this).find("span.second").fadeOut("slow",function () {
		$(this).prev("span.first").css("display","block");
		 });*/
		
      }
);


$(".archiv table tr").click(function () { 
var title = $(this).attr("title");

if (title !=" ")
 {
	 window.location = title;
 }

});



$(".archiv table tr").hover(
      function () {
		$(this).addClass("active");
		$(this).find("td").css("cursor","pointer");
      }, 
      function () {
	    $(this).removeClass("active");
      }
);
<!-- END Language Menu on and off on hover -->

$(".lehre table tr.click_tr").click(function () { 
var title = $(this).attr("title");

if (title !=" ")
 {
	 window.location = title;
 }

});

$(".lehre table tr.click_tr").hover(
      function () {
		$(this).addClass("active");
		$(this).find("td").css("cursor","pointer");
      }, 
      function () {
	    $(this).removeClass("active");
      }
);


$(".philosophie").hover(
      function () {
		$(this).find("img").attr("src","images/cloud2.gif");
      }, 
      function () {
	    $(this).find("img").attr("src","images/cloud1.gif");
      }
);
$(".philosophie_en").hover(
      function () {
		$(this).find("img").attr("src","images/cloud2_en.gif");
      }, 
      function () {
	    $(this).find("img").attr("src","images/cloud1_en.gif");
      }
);

});