﻿(function ($) {
    $.fn.equalHeights = function (minHeight, maxHeight) {
        tallest = (minHeight) ? minHeight : 0;
        this.each(function () {
            if ($(this).height() > tallest) {
                tallest = $(this).height();
            }
        });
        if ((maxHeight) && tallest > maxHeight) tallest = maxHeight;
        return this.each(function () {
            $(this).height(tallest).css("overflow", "auto");
        });
    }
})(jQuery);

$(document).ready(function () {

    $('.blog ul li').click(function () {
        window.location = $(this).find('a').attr('href'); return false;
    });

    $(".blog img").css({ 'opacity': '0.3' });
    $('.blog .post').hover(
    function () {
        $(this).find('img').stop().fadeTo(500, 1);
    },
    function () {
        $(this).find('img').stop().fadeTo(500, 0.3);
    })

    $(".column").equalHeights();

});
