﻿
App.News = function() {

    /* Private */

    /* Properties */

    var cmp = {};





    /* Methods */

    var init = function() {

        /* Constructor */

        // Rollovers for news items
        $('.newsItem').hover(function() {
            $(this).addClass('active');
        }, function() {
            $(this).removeClass('active');
        });


        // Big target effect for news articles
        TVI.event('.newsItem', 'click', function() {

            // Get the link and redirect
            var link = $(this).find('A').attr('href');
            window.location = link;
        });

    };





    /* Public */

    TVI.apply(cmp, {

        /* Properties */

        test: 'test',

        /* Methods */

        test: function() {

            /* Test function  */

        }

    });


    TVI.ready(init);


    return cmp;


} ();
