
// Content: js dashboard page
//
// Singleton instance used to represent the Page object for the dashboard page
// This instance is globally accessible
//
// Dependencies: dashboard_ott.js
//
var Page = new function()
{
    ///////////////////////////////////
    // Page Definition
    /////////////////////////////////// 

    //
    // Public data members
    //
    this.dashboard  = null;     // Reference to Dashboard_OTT instance managed by the Page instance
    this.locale     = null;     // Object containing all localization data which should be accessible
                                // anywhere in the page, like country code, language code, etc.

    
    //
    // Public methods
    //
    this.Init       = null;     // This method is called in the window.onload event handler and sets up the dashboard object
    
    
    ///////////////////////////////////
    // Page Implementation
    /////////////////////////////////// 
    this.Init = function()
    {
        //
        // Create a Dashboard instance, true indicates that this instance will be using 
        // postback functionality (search criteria send to result page by use of query string)
        // instead of AJAX
        //
        this.dashboard = new Dashboard_OTT(true);
    }
    
    
    ///////////////////////////////////
    // Page Constructor
    /////////////////////////////////// 
    
    //
    // COUNTRY_CODE and LANGUAGE_CODE (including the $ sign) are resolved during publishing
    //
    this.locale = {
        countryCode: "es".toLowerCase(),
        languageCode: "es".toLowerCase()
    }
}