(function ($) {
    $.fn.vAlign = function() {
        return this.each(function(i){
            var ah = parseInt($(this).css('height'));
            var ph = parseInt($(this).parent().css('height'));
            
            var mh = (ph - ah) / 2;
            $(this).css('margin-top', mh);
        });
    };
})(jQuery);

$(document).ready(function() {

        function makeTall() {
            $(this).find('.ins').show(500);
        }

        function makeShort() {
            var ins = $(this).find('.ins').hide(500);
        }

        var config = {
             sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)
             interval: 200, // number = milliseconds for onMouseOver polling interval
             over: makeTall, // function = onMouseOver callback (REQUIRED)
             timeout: 1000, // number = milliseconds delay before onMouseOut
             out: makeShort // function = onMouseOut callback (REQUIRED)
        };

        /*$('.category_block').hoverIntent( config ).click(function() {
            //window.location = $(this).find('a').attr('href');
        });*/
        

});
