var $j = jQuery.noConflict();

$j(function(){

    $j(".archive .hentry").hover(function(){
    	$j(this).stop().animate({
    		opacity: ".85"
    	}, 300);
    }, function() {
    	$j(this).stop().animate({
    		opacity: "1.0"
    	}, 300);
    });

});

$j(document).ready(function() {
    $j('#cat').selectbox();
    $j('.tags span').each(function(index) {
		if ($j(this).width() > $j(this).parent().width()) {
			$j(this).parent().addClass("expander");
		}
  });
  
  $j(".expander span").hover(
  function () {
    $j(this).parent().addClass("expandalong");
    $j(this).parent().siblings().addClass("expandalong");
  }, 
  function () {
    $j(this).parent().removeClass("expandalong");
    $j(this).parent().siblings().removeClass("expandalong");
  }
);


$j(".archive .hentry:nth-child(3n)").addClass("jq_hentry");
$j(".category .hentry:nth-child(3n)").addClass("jq_hentry");

$j(".post-image").hover(
  function () {
    $j(this).children(".vimeo-overlay-sm").fadeTo('fast', .85);
    $j(this).children(".vimeo-overlay-lg").fadeTo('fast', .85);
  }, 
  function () {
    $j(this).children(".vimeo-overlay-sm").fadeTo('fast', .4);
    $j(this).children(".vimeo-overlay-lg").fadeTo('fast', .4);
  }
);

$j(".side-image").hover(
  function () {
    $j(this).children(".vimeo-overlay-sm").fadeTo('fast', .85);
    $j(this).children(".vimeo-overlay-lg").fadeTo('fast', .85);
  }, 
  function () {
    $j(this).children(".vimeo-overlay-sm").fadeTo('fast', .4);
    $j(this).children(".vimeo-overlay-lg").fadeTo('fast', .4);

  }
);




});

