$(document).ready(function () {

  $("#categories li a.active:eq(1), #categories li a.active:eq(2), #categories li a.active:eq(3)").removeClass("active");

/* 	$('.post a img').parent().attr("rel", "gallery").fancybox({
		'padding'		: 20,
		'overlayOpacity': 0.7,
		'overlayColor'	: '#000'
	});
 */

  $(".b-teaser img").click(function () {
    var dest = $(this).parents(".post_content_left").find("h1 a").attr("href");

    window.location = dest;
  });
  
  $(".b-favorite").hover(function () {
    $(this).find(".b-favorite-link").show();
  }, function () {
    $(this).find(".b-favorite-link").hide();
  });
 

});
