/* 
 * Settings to switch on and off certain parts of the web site.
 *
 */
//
// If true the EULA will be shown after the user logs in and the user
// will not be allowed to use the tracking service until they agree to
// the EULA; otherwise, the EULA will not be shown and the user will be
// able to use the site without any agreement.
//
var MAIN_SHOWEULA = false;

//
// If true the address lookup and entry fields will change to allow
// for non US addresses; otherwise, the US style address fields will
// be used.
//
var ADDRESS_NONUSMAPS = false;

//
// If true the address lookup and entry fields will change to allow
// for a country to be entered instead of the postal code/zip; otherwise,
// the postal code/zip field will be used.
//
var ADDRESS_COUNTRY = false;

//
// If true the users accounting status (if avaliable) will be shown 
// at the top of the main, my settings, and map pages; otherwise, the
// account status will be hidden.
//
var ACCOUNTSTATUS_DISPLAY = true;

//
// If true the user will be able to click the "Forgot your password?"
// link to retrieve their password; otherwise, the link will be hidden.
//
var LOGON_FORGOTPASSWORD_ENABLED = true;

//
// If true the address lookup page will be visible; otherwise,
// the page will be hidden.
//
var MAIN_ADDRESSLOOKUP_ENABLED = true;

//
// If true the reports page will be visible; otherwise,
// the page will be hidden.
//
var MAIN_REPORT_ENABLED = true;

//
// If true the scheduled reports interface will be visible; otherwise,
// the interface will be hidden.
//
var MAIN_SCHEDULED_REPORTS = true;

//
// If true users will be allowed to send OTA commands to multiple vehicles
// at a time; otherwise, the users will only be able to send OTA commands
// to one vehicle at a time.
//
var MAIN_OTACOMMAND_MULTIVEH = false;

//
// The maximum number of vehicles that can be queried at one time.
// This pertains to the tracking page.  If set to 0,
// an unlimited number of vehicles may be queried.
//
var MAIN_MAXTARGETS_PERTRACKQUERY = 50;

//
// The maximum number of vehicles that can be queried at one time.
// This pertains to the reports page.  If set to 0,
// an unlimited number of vehicles may be queried.
//
var MAIN_MAXTARGETS_PERREPORTQUERY = 50;

//
// If true the user will be able to set up accounting information
// on their my settings pages; otherwise, the accounting information
// will be hidden.
//
var ACCOUNT_ACCOUNTING_ENABLED = true;

//
// If true the user will be able to see their account name on the 
// on the my settings pages; otherwise, the account name will be
// hidden.
//
var ACCOUNT_ACCOUNTNAME_ENABLED = true;

//
// If true the attributes column header will be visible on the 
// account/settings pages; otherwise, the attibutes column header
// will be hidden.
//
// NOTE: To disable attributes completely you must set the 
// "use vehicle attributes" flag in the rtisa.ini file to "no". 
//
var ACCOUNT_ATTRIBUTES_ENABLED = true;

//
// If true input settings will be shown on the my settings display
// screen.  Otherwise, the input settings will be hidden.
//
var ACCOUNT_INPUTS_ENABLED = true;

//
// If true output settings will be shown on the my settings display
// screen.  Otherwise, the output settings will be hidden.
//
var ACCOUNT_OUTPUTS_ENABLED = true;

//
// If true the "Create Geofence" option will be visible on the 
// map's right-click menu and the Delete Geofence list box on the
// account/settings pages.  Otherwise, the geofence options will 
// be hidden.
//
var ACCOUNT_GEOFENCES_ENABLED = true;

//
// If true the user will be able to set up vehicle maintenance settings;
// otherwise, the vehicle maintenance settings will be disabled.
//
var ACCOUNT_MAINTENANCE_ENABLED = true;

//
// If true the user will be able to set up email notifications;
// otherwise, the email notifications will be disabled.
//
var ACCOUNT_NOTIFICATIONS_EMAIL_ENABLED = true;

//
// If true the user will be able to set up telephone notifications;
// otherwise, the email notifications will be disabled.
//
var ACCOUNT_NOTIFICATIONS_PHONE_ENABLED = false;

//
// If greater than 0, the map and text popup windows will refresh 
// after the given number of seconds. If 0, the map and text popup
// windows will not be refreshed. WARNING: DO NOT ENABLE WITHOUT
// HAVING SERIOUS DISCUSSION WITH DEVELOPMENT STAFF!!!
//
var POPUP_REFRESH_INTERVAL = 0;

//
// HTML Translation Array
// The following translation selections will be presented on the sign in
// page.  The Image will be shown with the name as the mouse over text.
// When clicked the link will take the user to rtisa.dll?r=foldername, where
// foldername will be replaced with the translation folder.
//
//               [Translation Name, Translation Folder, Tranlation Image, Language]
// Example:      ['English'       , ''                , 'English.gif',    'en'],
//               ['Espaņol'       , 'spanish'         , 'Spanish.gif',    'es']
//
var aTranlationList = [
                        ['English', '',        'English.gif'],
                        ['Espaņol', 'spanish', 'Spanish.gif']
                      ];

//
// Report Format Array
// The report format list that will appear on the main page.
//
//               [Format, Display Name     , Selected
// Example:      ['HTML', 'HTML',          , true],
//               ['XLS' , 'Microsoft Excel', false]
//
var aReportFormats = [
                       ['HTML',   'HTML',              true],
                       ['XLS',    'Microsoft Excel  ', false],
                       ['TAB-TXT','Tab Delimited',     false]
                     ];
           
//
// Report Array
// The report list that will appear on the main page.
//
//               [Report Name, Display Name     , Parameters Layer Name (if any), Selected, Report Description]
// Example:      ['Complete', 'Complete Report', ''             , true, 
//                'The Complete Report details all vehicle data'],
//               ['Stop'    , 'Stop Report'    , 'stopreportdiv', false,
//                'The Stop Report details all vehicle stops']
//
// NOTE: Report name will be the report type's XML tag for built-in reports and the actual report name
//       for user defined reports.
//
var aReports = [
                 ['AfterHours',           'After Hours Report',   'afthrsreportdiv',    false],
                 ['Proximity',            'Area Report',          'proximityreportdiv', false],
                 ['Compact',              'Compact Report',       'stopreportdiv',      false],
                 ['Complete',             'Complete Report',      'completereportdiv',  true],
                 ['Congregation',         'Congregation Report',  'congreportdiv',      false],
                 ['Consolidated',         'Consolidated Report',  'consolreportdiv',    false],
                 //['DOT',                  'DOT Report',           'dotreportdiv',       false],
                 ['Engine Hours',         'Engine Hours Report',  'idletimereportdiv',  false],
                 ['Event Report',         'Event Report',         'eventreportdiv',     false],
                 //['Fuel',                 'Fuel Report',          'idletimereportdiv',  false],
                 //['FuelSummary',          'Fuel Summary Report',  'idletimereportdiv',  false],
                 ['Idle Time Report',     'Idle Time Report',     'idletimereportdiv',  false],
                 ['Last Update Report',   'Last Updated Report',  '',                   false],
                 ['Location',             'Location Report',      'locreportdiv',       false],
                 //['Lot',                  'Lot Deviation Report', 'lotreportdiv',       false],
                 //['Maintenance Report',   'Maintenance Report',   '',                   false],
                 ['Messages Report',      'Messages Report',      '',                   false],
                 ['Mileage',              'Mileage Report',       'mileagereportdiv',   false],
                 ['Shift Report',         'Shift Report',         'idletimereportdiv',  false],
                 ['Speed Report',         'Speed Report',         'speedreportdiv',     false],
                 ['Stop',                 'Stop Report',          'stopreportdiv',      false],
                 ['Summary Report',       'Summary Report',       'stopreportdiv',      false],
                 ['Trip',                 'Trip Report',          'idletimereportdiv',  false]
               ];

//
// Map Size Array
// The map sizes that will appear on the main page (aMainMapSizes) and the
// map page (aMapMapSizes).
//
// Button Width and Height only used on MapMapSizes
//
//               [Map Size Name, Map Size Width (pixels), Button Width (pixels), Button Height (pixels)]
// Example:      ['Small', '325'],
//               ['Medium','450']
//
var aMainMapSizes = [
                      ['None',   '0'  ],
                      ['Small',  '325'],
                      ['Medium', '450'],
                      ['Large',  '625']
                    ];

var aMapMapSizes = [
                     ['S', '325', 12, 10],
                     ['M', '450', 16, 14],
                     ['L', '625', 20, 18]
                   ];

//
// Zoom Array
// The zoom levels that will appear on the main page (aMainZooms) and the
// map page (aMapZooms).
//
//  Zoom Type: 1 - Statute, 2 - Metric, 3 - Nautical
//               [Zoom Type, Zoom Name,      Zoom Level(in meters)]
// Example:      [1,         '1 Mile',       '1609.344'],
//               [2,         '5 Kilometers', '5000.000']
//
var aMainZooms = [
                   [1, '1 mile wide',     '1609.344'],
                   [1, '4 miles wide',    '6437.376'],
                   [1, '8 miles wide',    '12874.752'],
                   [1, '32 miles wide',   '51499.008'],
                   [1, '100 miles wide',  '160934.4'],
                   [1, '3200 miles wide', '5149900.8'],

                   [2, '2 kilometers wide',   '2000'],
                   [2, '5 kilometers wide',   '5000'],
                   [2, '20 kilometers wide',  '20000'],
                   [2, '50 kilometers wide',  '50000'],
                   [2, '200 kilometers wide', '200000'],
                   [2, '500 kilometers wide', '500000'],

                   [3, '1 nm wide', '1851.999326'],
                   [3, '4 nm wide', '7407.997'],
                   [3, '8 nm wide', '14815.995'],
                   [3, '32 nm wide', '59263.978'],
                   [3, '100 nm wide', '185199.933'],
                   [3, '3200 nm wide', '5926397.8']
                 ];

var aMapZooms = [
                  [1, '1',   '1609.344'],
                  [1, '2',   '3218.688'],
                  [1, '4',   '6437.376'],
                  [1, '8',   '12874.752'],
                  [1, '16',  '25749.504'],
                  [1, '32',  '51499.008'],
                  [1, '100', '160934.4'],
                  [1, '3200','5149900.8'],

                  [2, '2',   '2000'],
                  [2, '5',   '5000'],
                  [2, '20',  '20000'],
                  [2, '50',  '50000'],
                  [2, '200', '200000'],
                  [2, '500', '500000'],
                  [2, '2000','2000000'],
                  [2, '5000','5000000'],

                  [3, '1',   '1851.999326'],
                  [3, '2',   '3704'],
                  [3, '4',   '7407.997'],
                  [3, '8',   '14815.995'],
                  [3, '16',  '29632'],
                  [3, '32',  '59263.978'],
                  [3, '100', '185199.933'],
                  [3, '3200','5926397.8']
                ];

//
// Events Array
// The event labels that will appear on the main page event list and the
// account page event notification list, whether or not the user has the
// events defined.
//
//               [Event Number (value), Event Name (text)]
// Example:      [101,                  'Speeding'],
//               [102,                  'Left Geofence']
//
var aEventList = [];

//
// GeoObjects Array
// Some systems may allow display of the nearest geoobjects (traffic incidents, 
// road work, etc.) information on the maps. The GeoObject list be used to create check
// boxes in the options section of the main page.  If these check boxes are checked when
// the user gets a map, the created map will include the nearest geoobjects that are within
// the current map coverage area.
//
//               [GeoObject Category, GeoObject Display Name, Checked By Default, Description]
// Example:      ['speed'           , 'Display nearby speed sensors?'    , true],
//               ['incidents'       , 'Display nearby traffic incidents?', false]
//
var aGeoObjectList = [
                     //  ['speed'           , 'Speed Sensors'    , false, 
                     //   'Show nearby speed sensors when zoomed below 1 mile. *Not available in all areas.'],
                     //  ['speed trap'      , 'Saftey Zones'     , false, 
                     //   'Show nearby saftey zones when zoomed below 100 mile. *Not available in all areas.'],
                     //  ['incidents'       , 'Traffic Incidents', false,
                     //   'Show nearby traffic incidents when zoomed below 100 miles. *Not available in all areas.'],
                     //  ['camera'          , 'Traffic Cameras'  , false,
                     //   'Show nearby traffic cameras when zoomed below 100 miles. *Not available in all areas.']
                     ];

//
// Available Columns Array
// Columns that will appear in the available columns listbox on the MySettings... Display
// page.  The Inputs (13) and Geofence (16) columns will be overridden by the 
// ACCOUNT_INPUTS_ENABLED and ACCOUNT_GEOFENCES_ENABLED flags.
//
//            [Column ID, Column Name, Keyword Name (if any)]
// Example:   [0        , 'Vehicle',   '{{ALIAS}}'] 
//
var aAvailColsList = [
                       [0,  'Vehicle',             '{{ALIAS}}'],
                       [1,  'Date',                '{{DATE}}'],
                       [2,  'Time',                '{{TIME}}'],
                       [3,  'Address',             '{{ADDRESS}}'],
                       [6,  'Speed',               '{{SPEED}}'],
                       [7,  'Course',              '{{COURSE}}'],
                       [9,  'Event',               '{{EVENT}}'],
                       [15, 'Messages',            '{{TEXTMSG}}'],
                       [13, 'Inputs',              '{{INPUTS}}'],
                       [16, 'Geofences'],          
                       [8,  'Altitude',            '{{ALT}}'],
                       [10, 'Satellites',          '{{NUMSATS}}'],
                       [11, 'GPS',                 '{{GPS}}'],           
                       [14, 'Outputs'],            
                       [17, 'Analog 1',            '{{ANALOG1}}'],
                       [18, 'Analog 2',            '{{ANALOG2}}'],
                       [19, 'Analog 3',            '{{ANALOG3}}'],
                       [20, 'Analog 4',            '{{ANALOG4}}'],
                       [21, 'HDOP',                '{{HDOP}}'],
                       [22, 'VDOP',                '{{VDOP}}'],
                       [23, 'GDOP',                '{{GDOP}}'],
                       [24, 'PDOP',                '{{PDOP}}'],
                       [4,  'Latitude',            '{{LAT}}'],
                       [5,  'Longitude',           '{{LON}}'],
                       [25, 'Rate of Climb',       '{{ROC}}'],
                       [26, 'Custom 1',            '{{SP1}}'],
                       [34, 'Custom 2',            '{{SP2}}'],
                       [27, 'Custom 3',            '{{SP3}}'],
                       [28, 'Custom 4',            '{{SP4}}'],
                       [29, 'Custom 5',            '{{SP6}}'],
                       [30, 'Custom 6',            '{{SP7}}'],
                       [32, 'Custom Text 1',       '{{SPTEXT1}}'],
                       [31, 'Custom Text 2',       '{{SPTEXT2}}'],
                       [33, 'Custom Text 3',       '{{SPTEXT3}}'],
                       [35, 'Driver ID',           '{{DRIVERID}}'],
                       [36, 'VIN',                 '{{VIN}}'],
                       [37, 'Error Code',          '{{ERRORCODE}}'],
                       [38, 'Odometer',            '{{ODOMETER}}'],
                       [39, 'Fuel Level',          '{{FUELLEVEL}}'],
                       [40, 'Battery',             '{{BATTERY}}'],
                       [41, 'Oil Level',           '{{OILLEVEL}}'],
                       [42, 'Oil Temperature',     '{{OILTEMP}}'],
                       [43, 'Oil Pressure',        '{{OILPRESS}}'],
                       [44, 'Coolant Level',       '{{COOLANTLEVEL}}'],
                       [45, 'Coolant Temp',        '{{COOLANTTEMP}}'],
                       [46, 'Fuel Economy',        '{{FUELECONOMY}}'],
                       [47, 'Fuel Economy (Avg)',  '{{AVEFUELECONOMY}}'],
                       [48, 'Vehicle Speed',       '{{VEHSPEED}}'],
                       [49, 'Engine RPM',          '{{ENGINERPM}}'],
                       [50, 'Throttle Position',   '{{THROTTLEPOS}}'],
                       [51, 'Sensor 1',            '{{SENSOR1}}'],
                       [52, 'Sensor 2',            '{{SENSOR2}}'],
                       [53, 'Sensor 3',            '{{SENSOR3}}'],
                       [54, 'Sensor 4',            '{{SENSOR4}}'],
                       [55, 'Sensor 5',            '{{SENSOR5}}'],
                       [56, 'Sensor 6',            '{{SENSOR6}}'],
                       [57, 'Sensor 7',            '{{SENSOR7}}'],
                       [58, 'Sensor 8',            '{{SENSOR8}}'],
                       [75, 'Sensor 9',            '{{SENSOR9}}'],
                       [76, 'Sensor 10',           '{{SENSOR10}}'],
                       [59, 'Aux Battery'],
                       [60, 'Engine ID'],
                       [61, 'Engine Hours',        '{{ENGINEHOURS}}'],
                       [62, 'Received'],
                       [63, 'Nearest Objects'],
                       [64, 'County'],
                       [65, 'Bus Type'],
                       [66, 'Bus Field 1'],
                       [67, 'Bus Field 2'],
                       [68, 'Bus Field 3'],
                       [69, 'Bus Field 4'],
                       [70, 'Bus Field 5'],
                       [71, 'Street'],
                       [72, 'City'],
                       [73, 'State'],
                       [74, 'Postal Code'],
                       [-1, 'Account Name',        '{{ACCOUNTNAME}}'],
                       [-1, 'Phone Number',        '{{PHONENUM}}'],
                       [-1, 'Server Time',         '{{SERVERTIME}}']
                     ];

//
// Icon Array
// Icons used to create the Icon picker page.  The first item in the list
// should be left blank to let users set the icon to be nothing.
//
//
var IconList = ["",
                "Ambulance.gif",
                "Bus.gif",
                "Trolly.gif",                
                "Car.gif",
                "Convertible.gif",
                "Limousine.gif",
                "Hatchback.gif",
                "Hummer.gif",
                "Jeep.gif",
                "SUV.gif",
                "Van.gif",
                "Taxi.gif",
                "Telephone.gif",                                
                "SchBus.gif",                
                "FireTruck.gif",
                "Police.gif",
                "FreightCar.gif",
                "House.gif",
                "Office.gif",
                "Cruiser.gif",
                "Moped.gif",
                "MotorBike.gif",
                "Motorhome.gif",
                "Mover.gif",
                "RacingBike.gif",
                "Ship.gif",
                "Airliner.gif",
                "Chopper.gif",
                "Fighter.gif",
                "Concrete.gif",
                "Tanker.gif",
                "Towtruck.gif",
                "Truck.gif",
                "Crane.gif",                
                "Excavator.gif",                
                "Tractor.gif",
                "Dumper.gif",
                "Semi.gif",
                "Flatbed.gif",
                "Forklift.gif",                
                "Bicycle.gif",
                "Pin.gif",
                "BluePin.gif",
                "GreenPin.gif",
                "RedPin.gif",
                "Bullet.gif",                
                "sBlack.gif",
                "mBlack.gif",
                "Black.gif",
                "sDrkgray.gif",
                "mDrkgray.gif",
                "Drkgray.gif",
                "sGray.gif",
                "mGray.gif",
                "Gray.gif",
                "sWhite.gif",
                "mWhite.gif",
                "White.gif",
                "sGreen.gif",
                "mGreen.gif",
                "Green.gif",
                "sYellow.gif",
                "mYellow.gif",
                "Yellow.gif",
                "sPurple.gif",
                "mPurple.gif",
                "Purple.gif",
                "sMaroon.gif",
                "mMaroon.gif",
                "Maroon.gif",
                "sPink.gif",
                "mPink.gif",
                "Pink.gif",
                "sRed.gif",
                "mRed.gif",
                "Red.gif",
                "sBlue.gif",
                "mBlue.gif",
                "Blue.gif",
                "sAqua.gif",
                "mAqua.gif",
                "Aqua.gif"];
