//flatheight
$(function() {
    $('.post').flatHeights();
});

// RollOver
$(function () {
    $.rollover = {
        init: function () {
            $('a img,input[src]')
                .bind('mouseover', this.over)
                .bind('mouseout',  this.out)
                .each(this.preload);
        },
        over : function () {
            this.setAttribute('src', this.getAttribute('src').replace('_off.', '_on.'));
        },
        out : function () {
            this.setAttribute('src', this.getAttribute('src').replace('_on.', '_off.'));
        },

        preload : function () {
            new Image().src = this.getAttribute('src').replace('_off.', '_on.');
        }
    };
    $.rollover.init();
});
