function getAndSetHeight() {
      // Get natural heights
      var lHeight = $("div.content_row_double").outerHeight();
      var rHeight = $("div.three").outerHeight();

       // Find the maximum height & and add 100 (the height of the picture to it if not Explorer)
      var maxHeight = Math.max(lHeight, rHeight);
		if (! $.browser.msie) {
			// maxHeight = maxHeight + 100;
		}
		// maxHeight = maxHeight + 35;

      $("div.content_row_double").height(maxHeight);
      $("div.three").height(maxHeight);
	  
	  // $("div.content_row span.arrow").height(maxHeight);
	  $("div.one").height(maxHeight);
	  $("div.two").height(maxHeight);

   }


		$().ready(function() {
			$('.content_row p:last').css('margin-bottom','3em');
			
			
			$('.content_row').mouseover(function() {
				$(this).find('.arrow').css('backgroundPosition', "bottom right");
			});
			$('.content_row').mouseout(function() {
				$(this).find('.arrow').css('backgroundPosition', "bottom left");
			});
			
			// disable english flag
			$('a.en').click(function() {
				// $(this).attr ('href', '#');
				return false;
			});
			
			$("a.de, a.en").hover(
				function() { $(this).contents("span:last-child").css({ display: "block" }); },
				function() { $(this).contents("span:last-child").css({ display: "none" }); }
			);
			$("a.de, a.en").mousemove(function(e) {
				var mousex = e.pageX + 10;
				var mousey = e.pageY + 5;
				$(this).contents("span:last-child").css({  top: mousey, left: mousex });
			});

			
			
			// Main navi color animation
			$("ul#navi_top li a.inactive").hover(function(){
				$(this)
				.animate({ color: "#00335c" }, 350);				
			},
			function(){
				$(this)
				.animate({ color: "#fff" }, 500);		
			});
			
			// sub navi color animation			
			$("ul#sub_navi li a.inactive").hover(function(){
				$(this).animate({ color: "#00335c" }, 350);
				$(this).prev('span')
					.css('opacity', 0.1)
					.css('backgroundPosition', "center right")
					.fadeTo(350, 1);
			},
			function(){
				$(this).animate({ color: "#6a767d" }, 500);
				$(this).prev('span')
					.css('opacity', 0.1)
					.css('backgroundPosition', "center left")
					.fadeTo(500, 1);
			});
			
			// new window 
			$('a[rel=external]').attr('target','_blank');  
			
			// 
			getAndSetHeight();

		});
		
		$(window).resize(function() {
			getAndSetHeight();
		});


