﻿
App = function () {

    /* Private */

    /* Properties */

    var cmp = {};





    /* Defaults */

    TVI.debug = true;





    /* Methods */

    var init = function () {

        /* Constructor */

        cmp.searchForm = new TVI.Form({

            ID: 'searchBoxContainer',
            validate: false,
            local: true,
            success: function () {
                window.location.href = 'search.aspx?keywords=' + this.field('keywords').val();
            }

        });

    };


    var menu = function (name) {
        TVI.ready(function () {

            $('#' + name).addClass('selected');

        });
    };


    /* Public */

    TVI.apply(cmp, {

        /* Properties */

        test: 'test',

        /* Methods */

        menu: function (name) {

            menu(name);

        }

    });


    TVI.ready(init);


    return cmp;


} ();
