/* 
 * Settings to switch on and off certain parts of the web site.
 *
 */

//
// 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 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 and reports page.  If set to 0,
// an unlimited number of vehicles may be queried.
//
var MAIN_MAXTARGETS_PERQUERY = 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 = false;

//
// 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]
// Example:      ['English'       , ''                , 'English.gif'],
//               ['Español'       , 'spanish'         , 'Spanish.gif']
//
var aTranlationList = [
                        ['English'       , 'English', 	 'English.gif'],
                        ['Español'       , ''       ,	 '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','Lengüeta delimitado  ', 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']
//
var aReports = [
                 ['AfterHours',         'Reporte de Horas Extras', 'afthrsreportdiv',   false,
                  'El Reporte de Horas Extras muestra uso del vehiculo fuera de horas de negocios'],
                 ['Compact',            'Reporte Compacto',        'stopreportdiv',     false,
                  'El Reporte Compacto muestra una version compacta del reporte completo'],
                 ['Complete',           'Reporte Completo',        '',                  true,
                  'El Reporte Completo muestra todos los detalles del vehiculo'],
                 ['Congregation',       'Reporte de Congregación', 'congreportdiv',     false,
                  'El Reporte de Congregacion muestra vehiculos multiples parados dentro del las estipulaciones definidas por el usuario'],
                 ['Consolidated',       'Reporte Consolidado',         'consolreportdiv',    false,
                  ''],
                 ['Engine Hours',       'Reporte de Marcha',       'idletimereportdiv', false,
                  'El Reporte de Horas de Marcha muestra la cantidad de tiempo que el motor del vehiculo ha estado encendido'],
                 ['Event Report',       'Reporte por Eventos',     'eventreportdiv',    false,
                  'El Reporte de Eventos muestra eventos definidos por usuario'],
                 ['Idle Time Report',   'Reporte de Marcha Lenta', 'idletimereportdiv', false,
                  'El Reporte de Marcha Lenta muestra la cantidad de tiempo que el vehiculo ha tenido el motor encendido y no se ha movido.'],
		     ['Last Update Report', 'Reporte de Ultima Ubicacion', '',                  false],
               //['Location',           'Reporte de Localizacion', 'locreportdiv',      false,
                //'El Reporte de Localización muestra cuando los vehiculos se han parado en localizaciones definido por el usuario'],
	       //['Maintenance Report', 'Reporte de Mantenimiento',      '',            false,
		//'El Reporte de Mantenimiento muestra los intervalos ajendados de mantenimiento'],
                 ['Messages Report',    'Reporte de Mensajes',     '',                  false,
                  'El Reporte de Mensaje muestra los mensajes de vehiculos'],
                 ['Mileage',            'Reporte por Kilometraje', 'mileagereportdiv',  false,
                  'El Reporte de Kilometraje muestra el kilometraje del vehiculo'],
                 ['Speed Report',       'Reporte por Velocidad',   'speedreportdiv',    false,
                  'El Reporte de Velocidad muestra cuando el vehiculo ha excedido la velocidad definida por el usuario'],
                 ['Stop',               'Reporte de Parada',       'stopreportdiv',     false,
                  'El Reporte de Parada muestra las paradas de los vehiculos']
               ];

//
// 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 = [
                      ['Sin Mapa', '0'],
                      ['Pequeño',  '325'],
                      ['Mediano',  '450'],
                      ['Grande',   '625']
                    ];

var aMapMapSizes = [
                     ['P', '325', 12, 10],
                     ['M', '450', 16, 14],
                     ['G', '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 milla de ancho',     '1609.344'],
                   [1, '4 millas de ancho',    '6437.376'],
                   [1, '8 millas de ancho',    '12874.752'],
                   [1, '32 millas de ancho',   '51499.008'],
                   [1, '100 millas de ancho',  '160934.4'],
                   [1, '3200 millas de ancho', '5149900.8'],

                   [2, '2 km de ancho',   '2000'],
                   [2, '5 km de ancho',   '5000'],
                   [2, '20 km de ancho',  '20000'],
                   [2, '50 km de ancho',  '50000'],
                   [2, '200 km de ancho', '200000'],
                   [2, '500 km de ancho', '500000'],

                   [3, '1 nm de ancho', '1851.999326'],
                   [3, '4 nm de ancho', '7407.997'],
                   [3, '8 nm de ancho', '14815.995'],
                   [3, '32 nm de ancho', '59263.978'],
                   [3, '100 nm de ancho', '185199.933'],
                   [3, '3200 nm de ancho', '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 = [
                 [101,                  'Exceso de Velocidad'],
                 [113,                  'Panico'],
                 [251,                  'Puerta Abierta'],
                 [252,                  'Puerta Cerrada'],
                 [253,                  'Ignición Encendido'],
                 [254,                  'Ignición Apagado']
                 ];

//
// 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]
// Example:      ['speed'           , 'Display nearby speed sensors?'    , true],
//               ['incidents'       , 'Display nearby traffic incidents?', false]
//
var aGeoObjectList = [];

//
// 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,  'Vehículo',              '{{ALIAS}}'],
                       [1,  'Fecha',                 '{{DATE}}'],
                       [2,  'Tiempo',                '{{TIME}}'],
                       [3,  'Direccion',             '{{ADDRESS}}'],
                       [6,  'Velocidad',             '{{SPEED}}'],
                       [7,  'Curso',                 '{{COURSE}}'],
                       [9,  'Eventos',               '{{EVENT}}'],
                       [15, 'Mensajes',              '{{TEXTMSG}}'],
                       [13, 'Entradas',              '{{INPUTS}}'],
                       [16, 'Geofences'],           
                       [8,  'Altitud',               '{{ALT}}'],
                       [10, 'Satélites',             '{{NUMSATS}}'],
                       [11, 'GPS',                   '{{GPS}}'],
                       [14, 'Salidas'],
                       [17, 'Analogo 1',             '{{ANALOG1}}'],
                       [18, 'Analogo 2',             '{{ANALOG2}}'],
                       [19, 'Analogo 3',             '{{ANALOG3}}'],
                       [20, 'Analogo 4',             '{{ANALOG4}}'],
                       [21, 'HDOP',                  '{{HDOP}}'],
                       [22, 'VDOP',                  '{{VDOP}}'],
                       [23, 'GDOP',                  '{{GDOP}}'],
                       [24, 'PDOP',                  '{{PDOP}}'],
                       [4,  'Latitud',               '{{LAT}}'],
                       [5,  'Longitud',              '{{LON}}'],
                       [25, 'Indice de Subida',      '{{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, 'Predefinido Texto 1',   '{{SPTEXT1}}'],
                       [31, 'Predefinido Texto 2',   '{{SPTEXT2}}'],
                       [33, 'Predefinido Texto 3',   '{{SPTEXT3}}'],
                       [35, 'Identificacion de Conductor', '{{DRIVERID}}'],
                       [36, 'VIN',                   '{{VIN}}'],
                       [37, 'Codigo de Error',       '{{ERRORCODE}}'],
                       [38, 'Odómetro',              '{{ODOMETER}}'],
                       [39, 'Nivel de Combustible',  '{{FUELLEVEL}}'],
                       [40, 'Baterma',               '{{BATTERY}}'],
                       [41, 'Nivel de Aceite',       '{{OILLEVEL}}'],
                       [42, 'Temp de Aceite',        '{{OILTEMP}}'],
                       [43, 'Presion de Aceite',     '{{OILPRESS}}'],
                       [44, 'Nivel de Liquido Ref.', '{{COOLANTLEVEL}}'],
                       [45, 'Temp de Liquido Ref.',  '{{COOLANTTEMP}}'],
                       [46, 'Economia de Combustible', '{{FUELECONOMY}}'],
                       [47, 'Pro de Econ de Combusitble', '{{AVEFUELECONOMY}}'],
                       [48, 'Velocidad de Vehículo', '{{VEHSPEED}}'],
                       [49, 'RPM de Motor',          '{{ENGINERPM}}'],
                       [50, 'Regulerador',           '{{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}}'],
                       [59, 'Baterma Auxiliar'],
                       [60, 'Identificacion de Motor'],
                       [61, 'Horas de Motor',        '{{ENGINEHOURS}}'],
                       [62, 'Recibido'],
                       [63, 'Objetos Cercanos'],
                       [64, 'Condado'],
                       [65, 'Bus Type'],
                       [66, 'Bus Field 1'],
                       [67, 'Bus Field 2'],
                       [68, 'Bus Field 3'],
                       [69, 'Bus Field 4'],
                       [70, 'Bus Field 5'],
                       [71, 'Fuel Rate'],
                       [-1, 'Nombre de la cuenta',   '{{ACCOUNTNAME}}'],
                       [-1, 'Numero telefonico',     '{{PHONENUM}}'],
                       [-1, 'Ultima Actulización',   '{{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 = ["",
                "Airliner.gif",
                "Bus.gif",
                "Car.gif",
                "Chopper.gif",
                "Concrete.gif",
                "Fighter.gif",
                "Flatbed.gif",
                "Forklift.gif",
                "House.gif",
                "Jeep.gif",
                "Semi.gif",
                "Mover.gif",
                "Office.gif",
                "Pin.gif",
                "Plane.gif",
                "Plus.gif",
                "Point.gif",
                "Police.gif",
                "Ship.gif",
                "Taxi.gif",
                "Tow.gif",
                "Towtruck.gif",
                "Truck.gif",
                "Van.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"];
