$(function(){
	$(".post").hover(
	  function () {
	    $(this).addClass("hoverpost");
	  }, 
	  function () {
	    $(this).removeClass("hoverpost");
	  }
	);
	$(".post").click(function(){
		//$(this).addClass("activestate");
		gotohref = $(this).find("h2 a").attr("href");
		window.location = gotohref;
		
	});
	
	$('#main a').filter(function() {
	
	    return this.hostname && this.hostname !== location.hostname;
	
	  }).attr("target","_blank");
	  
	  
	//$("a[@href^='http']").attr('target','_blank');
	
	$(".one-img").hover(
	  function () {
	  
	  	$(this).find(".img-descr").fadeIn('fast', function() {
	  	       // Animation complete
	  	     });
	  	
	  
	  	//$(this).find(".img-descr").show("slow");
	    //$(this).addClass("hoverimg");
	  }, 
	  function () {
	  $(this).find(".img-descr").fadeOut('fast', function() {
	         // Animation complete
	       });
	   //$(this).removeClass("hoverimg");
	  }
	);
	
	$('iframe').mouseenter(function() {
	  $("#movietekst").show();
	});	
		
	$('iframe').mouseleave(function() {
	   $("#movietekst").hide();
	});
}); // end document ready
