(function ($) {

$(function () {
    $('#home-columns').each(function () {
        var columns = $(this);
        columns.bind('highlight-column', function (e, hl) {
            columns.find('.column-label-active').removeClass('column-label-active');
            columns.find('#column-label-' + hl.id).addClass('column-label-active');
        });
        columns.bind('highlight-column', function (e, hl) {
            columns.find('.highlight > div').addClass('element-invisible');
            columns.find('#column-highlight-' + hl.id).removeClass('element-invisible');
        });
        
        columns.find('.labels a').mouseover(function () {
            var id = $(this).attr('id').replace('column-label-', '');
            columns.triggerHandler('highlight-column', [ { id: id } ]);
        });
    });
});



})(jQuery);;

