﻿$(function() {

    //console.profile()
    //console.time("Javascript execution time");
    DEFAULTINIT.preInit();

    switch ($("body").attr("class")) {
        case "Login":
            LOGIN.init();
            break;
        case "home":
            HOME.init();
            break;
        case "Devices":
            DEVICES.init();
            break;
        case "Forecasting":
            FORECASTING.init();
            break;
        case "ForecastingEditForecast":
            EDITFORECAST.init();
            break;
        case "Roadmap":
            ROADMAP.init();
            break;
        case "DevicesCompareDevices":
            COMPAREDEVICES.init();
            break;
        case "RoadmapDeviceView":
        case "DevicesDeviceView":
            VIEWDEVICE.init();
            break;
        case "ManageUsers":
            MANAGEUSERS.init();
            break;
        case "ManageUsersEditUsers":
            EDITUSER.init();
            break;
        case "MyAccount":
            CHANGEPASSWORD.init();
            break;
        case "ManageDevices":
            MANAGEDEVICES.init();
            break;
        case "ManageDevicesEditDevice":
            EDITDEVICE.init();
            EDITDEVICE.setupSection();
            break;
        case "TargetConnectionsEditTargetConnections":
            EDITTARGETCONNECTIONS.init();
            break;
        case "ForecastingSIC":
            SIC.init();
            break;
        case "ForecastingDeviceListManagement":
            DLM.init();
            break;
        case "ForecastingPricingMonthlyDevicePricing":
            MONTHLYDEVICEPRICING.init();
            break;
        case "ForecastingPricingMonthlyDevicePricingUpdateDevicePricing":
            UPDATEPRICING.init();
            break;
/*
        case "reportingOperatorOperatorMonthly.aspx":
        case "reporting":
            break;
            */
    }

    if ($("body").attr("class").substr(0, 9) === 'reporting') {
        REPORTING.init();
    }
    //console.timeEnd("Javascript execution time");
    //console.profileEnd();
});