﻿
App.Help = function () {

    /* Private */

    /* Properties */



    /* Methods */

    var init = function () {

        /* Constructor */


        //handle row hover
        TVI.event('#questionsGrid .row', 'mouseenter', function () { $(this).addClass('gridRowHover'); });
        TVI.event('#questionsGrid .row', 'mouseleave', function () { $(this).removeClass('gridRowHover'); });

        
        TVI.event('#questionsGrid .row', 'click', function () { 

            var open = $(this).hasClass('openRow');
            
            $('#questionsGrid .row').removeClass('openRow');
            $('#questionsGrid .openPanel').hide();

            if (!open){
        
                $(this).addClass('openRow');
                $(this).next().show();
            
            }
            
        });

        App.menu('help');

    };




    /* Public */


    TVI.ready(init);


} ();
