/* 
 * 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 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 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 = false;

//
// 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]
// Example:      ['English'       , ''                , 'English.gif'],
//               ['Español'       , 'spanish'         , 'Spanish.gif']
//
var aTranlationList = [
                        ['English'       , '&lang=en'              , 'English.gif'],
                        ['Español'       , 'spanish&lang=es'       , '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],
               //['Compact',              'Reporte Compacto',         'stopreportdiv',     false],
                 ['Complete',             'Reporte Completo',         '',                  true],
                 ['Congregation',         'Reporte de Congregación',  'congreportdiv',     false],
                 ['Engine Hours',         'Reporte de Marcha',        'idletimereportdiv', false],
                 ['Event Report',         'Reporte por Eventos',      'eventreportdiv',    false],
                 ['Idle Time Report',     'Reporte de Marcha Lenta',  'idletimereportdiv', false],
                 ['Last Position Report', 'Reporte de Ultima Ubicacin','',                 false],
               //['Location',             'Reporte de Localizacion',  'locreportdiv',      false],
               //['Maintenance Report',   'Reporte de Mantenimiento', '',                  false],
               //['Messages Report',      'Reporte de Mensajes',      '',                  false],
                 ['Mileage',              'Reporte por Kilometraje',  'mileagereportdiv',  false],
                 ['Speed Report',         'Reporte por Velocidad',    'speedreportdiv',    false],
                 ['Stop',                 'Reporte de Parada',        'stopreportdiv',     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 = [
                      ['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',     '1609.344'],
                   [1, '4 millas',    '6437.376'],
                   [1, '8 millas',    '12874.752'],
                   [1, '32 millas',   '51499.008'],
                   [1, '100 millas',  '160934.4'],
                   [1, '3200 millas', '5149900.8'],

                   [2, '2 km',   '2000'],
                   [2, '5 km',   '5000'],
                   [2, '20 km',  '20000'],
                   [2, '50 km',  '50000'],
                   [2, '200 km', '200000'],
                   [2, '500 km', '500000'],

                   [3, '1 nm', '1851.999326'],
                   [3, '4 nm', '7407.997'],
                   [3, '8 nm', '14815.995'],
                   [3, '32 nm', '59263.978'],
                   [3, '100 nm', '185199.933'],
                   [3, '3200 nm', '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 = [
					[8,					'Ignicisn Encendido'],
					[308,				'Ignicisn Apagado'],
					[17,				'Exceso de Velocidad'],
					[30,				'Un Dia Sin Reportar'],
					[11,				'Registracion de SID']
				 ];

//
// 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... Dsiplay
// 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]
// Example:   [0        , "Vehicle"  ] 
//
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']
                     ];

//
// 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",
		"Arrow.gif",
                "Bus.gif",
                "Trolly.gif",                
                "Car.gif",
                "Convertible.gif",
		"DrkGreen.gif",
                "Limousine.gif",
		"Motorcycle.gif",
                "Hatchback.gif",
                "Hummer.gif",
                "Jeep.gif",
                "SUV.gif",
                "Van.gif",
                "Taxi.gif",
                "Telephone.gif",                                
                "SchBus.gif",
		"SchBusSt.gif", 
		"Plane.gif",
		"Plus.gif",
		"Point.gif",               
                "FireTruck.gif",
                "Police.gif",
		"Roadster.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",
		"Sportster.gif",
		"Arrow.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",
		"sDrkgrn.gif",
                "mAqua.gif",
                "Aqua.gif"];
