﻿
App = function () {

    /* Private */

    /* Properties */

    var cmp = {};




    /* Methods */

    var init = function () {

        /* Constructor */

        var contentBlocks = $('.contentBlock');

        for (i = 0; i < contentBlocks.length; i++) {
            switch (i) {
                case 0:
                case 2:
                case 4:
                    var cb = $(contentBlocks)[i];
                    $(cb).addClass("leftColumn");
                    break;
                default:
                    var cb = $(contentBlocks)[i];
                    $(cb).addClass("rightColumn");
                    break;
            }
        }

        var height = 0;

        $(window).load(function () {

            $('.videoBlock LI').each(function () {

                if ($(this).height() > height) {
                    height = $(this).height();
                }

            });

            $('.videoBlock LI').css('height', height);

        });

    };



    /* Public */

    TVI.apply(cmp, {



        /* Properties */

    });


    TVI.ready(init);

    App.menu('home');

    return cmp;


} ();
