cmxConfig = {
    //  Edit this to set your required configuration
    "Custom": {
        "StandardMenu": true,   // Set to true or false
        "Dropdown": true,       // set to true or false
        "Theme": "",            // Set to the name of an existing theme WITHOUT 'css'
        "Logo": "",             // Set to the absolute or relative path and name of the image to use OR 'None'
        "BannerImage": "",      //  As above or leave blank
        "BannerPosition":"center center",   // Use allowable css values including units
    },
    "DataPath": "",             // Set to the absolute or relative path of your data
    "Geometry": {
        "StaticHead": true,     // true or false accepted
        "StaticFoot": true,     // true or false accepted
        "PaddingTop": 2,        // Numeric value only
        "PaddingBottom": 1,     // Numeric value only
        "Units": "em",          // Accepts any valid css unit 
    },
    "Gull": {
        "Animation": "",        // Blank, Expand, 'Enter left', 'Enter right' or Drop only
        "Speed": 5,             // Positive numeric values only
        "OnTop": true,          // true or false
    },
    "Panels": {
        "Shadows": "",          // Balnck, Basic or Enhanced only
        "VariableHeights": false,// true or false
    },
    "Menu": "json/ows-menu.js", // Relative path and name of menu script.
    "NOAAPath": "",             // Absolute or relative path to your NOAA Reports
}
//  You are advised to leave these blank.
cmxSession = {
    "Records": {
        "Monthly": "",  // Numeric representing to month to show - zero based
        "All": ""       // As above and 'ThisYear', 'ThisMonth' or 'Alltime'
    },
    "Charts": {         // ONLY CHOOSE CHARTS FOR WHICH YOU HAVE DATA OR LEAVE BLANK.
        "Trends": "",   // One of: temp, press, wind, windDir, rain, dailyrain, humidity, solar, sunhours, and sensor dependant
        "Historic":""   // One of: Temp. Press, Wind, WindDir, Rain, Humidity, Solar, DegDays, TempSum, ChillHrs, Snow
    }
}
// Modify for language compatibility
const monthName   = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
const dayName     = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];

//  Do NOT  edit any of these.
const activePages = ['index', 'today', 'todayVyest', 'template1', 'template2'];

let cmxData;
let HTMLMenu = '';
let initialLoad = true;
let dataPath = cmxConfig.DataPath + (cmxConfig.DataPath.at(-1) == '/' ? '' : '/');
const rptPath = cmxConfig.NOAAPath + ( cmxConfig.NOAAPath.at(-1) == '/' ? '' : '/');
