dofile ("./Sounds/events_id.lua")
events_files = {
            [wsRepWingmenCopy]                          = "Copy",
            [wsRepWingmenNegative]                      = "Negative",
            [wsRepWingmenAttackingGroundTarget]         = "AttackGroundTarget",            
            [wsRepWingmenCopyRejoin]                    = "CopyRejoin",
            [wsRepWingmenRejoin]                    	= "Rejoin",
            [wsRepWingmenRoger]                         = "Roger",
            [wsRepWingmenAffirm]                        = "Affirm",
            [wsRepWingmenUnable]                        = "Unable",
            [wsRepWingmenIamHit]                        = "IamHit",      
            [wsRepWingmenIveTakenDamage]                = "IamHit",       
            [wsRepWingmenEjecting]                      = "Ejecting",
            [wsRepWingmenEjecting_2]                    = "IamPunchingOut",          
            [wsRepWingmenMissileAway]                   = "MissileAway",
            [wsRepWingmenGuns]                          = "Guns", 
            [wsRepWingmenEngagedDefensive]              = "EngagedDefensive",
            [wsRepWingmenEngagingTarget]                = "AttackingTarget",   
            [wsRepWingmenAttackingAirDefenses]	        = "AttackingAirDefenses",      
            [wsRepWingmenBailOut]                       = "BailOut",
            [wsRepWingmenTargetDestroyed]               = "ObjectHit",--варианты убийства
            [wsRepWingmenBanditDestroyed]               = "TargetDestroyed",--варианты убийства
			[wsRepWingmen_WHTargetHit]					= "TargetHit",--варианты убийства
			[wsRepWingmen_WHObjectHit] 					= "ObjectHit",--варианты убийства 
			[wsRepWingmen_WHGoodHits]  					= "GoodHits",--варианты убийства
			
			[wsRepWingmenProcessTargetDesignation]		= "AttackDatalinkTarget",
			[wsRepWingmenOnPosition]					= "ArriveToPoint",			
           
            [wsRepWingmenRequestPermissionToAttack]     = "RequestPermissionToAttack",   
            [wsRepWingmenBombsAway]                     = "BombsGone",
            [wsRepWingmenRockets]                       = "RocketsGone",
            [wsRepWingmenRunningIn]                     = "RunningIn",            
            [wsRepWingmenWinchester]		            = "Winchester",            
            [wsRepWingmenTallyBandit]                   = "TalleyBandit",
            [wsRepWingmenSAMLaunch]                     = "SamLaunch",
            [wsRepWingmenMudSpike]                      = "MudSpike",           
            [wsRepWingmenSpike]                         = "SpikeUnknown",   
            
            [wsRepWingmenReturningToBase]               = "ReturnToBase",
            [wsRepWingmenBingo]                         = "BingoFuel",
            [wsRepWingmenHelReconEndFound]              = "ReconComplete",
            [wsRepWingmenHelReconEndNotFound]	        = "ReconCompleteTargetNotFound",
            [wsRepWingmenHelOccupFormLeft]	            = "InPositionLeft",
            [wsRepWingmenHelOccupFormRight]	            = "InPositionRight",
            [wsRepWingmenHelOccupFormBehind]	        = "InPositionBehind",
            [wsRepWingmenHelLaunchAbortTask]	        = "ImUnderAttackTaskCanceled",           
            [ws_WHRange]	                            = "Range",    
            [ws_WHBearing]	                            = "Bearing",          
            [PHRASES_ARMORTARGET]                       = "ArmorTarget",
            [PHRASES_SAMSITETARGET]                     = "SAMTarget",
            [PHRASES_POINTTARGET]                       = "PointTarget",

            
                                        
            [wsRepWingmenCheckSix]			            = "CheckSix",
            [wsRepWingmenFollowScanMode]	            = "ProceedReconScanMode",         
            [wsRepWingmenHelReconBearing]               = "Contact", 
            [wsRepWingmenWheelsUp]			            = "WheelsUp",
                        
                        
            [wsRepWingmenFoxFrom]                       ="FoxFrom",
            [wsRepWingmenFox1]                          ="Fox1",
            [wsRepWingmenFox2]                          ="Fox2",
            [wsRepWingmenFox3]                          ="Fox3",
  



            [wsRepWingmenMissileLaunch]                 ="MissileLaunch",
            [wsRepWingmenAttackingVehicles]             ="AttackGroundTarget",
            [wsRepWingmenAttackingShip]                 ="AttackingTarget",--"AttackingShip",
            [wsRepWingmenSplashMyBandit]                ="SplashOne",
            [wsRepWingmenContactBearingForMiles]        ="ContactBearing",
			[wsRepWingmenReconBearing]					="Contact",
            [wsRepWingmenBugout]                        ="BailOut",
            [wsRepWingmenGoingSeed]			            ="AttackSAM",
            [wsRepWingmenAttackingTarget]	            ="AttackingTarget",
            [wsRepWingmenAttackingPrimary]	            ="AttackingPrimary",
            [wsRepWingmenRadarOff]			            ="RadarOff",
            [wsRepWingmenRadarOn]			            ="RadarOn",
            [wsRepWingmenMusicOff]			            ="MusicOff",
            [wsRepWingmenMusicOn]			            ="MusicOn",
            [wsRepWingmenEngagingBandit]	            ="EngagingBandit",
            [wsRepWingmenRolling]			            ="Rolling",


            
            
            ---------------------------------------------------------------------------------------------------------------------
            [wsRepAWACSVectorToNearestBandit]   ="NoTankerAvailable",
            [wsRepAWACSBanditBearingForMiles]   ="BanditsBearing",
            [wsRepAWACSPopUpGroup]          ="PopUpGroupBearing",
            [wsRepAWACSContactIsFriendly]   ="ContactIsFriendly",
            [wsRepAWACSContactIsHostile]    ="ContactIsHostile",
            [wsRepAWACSHomeBearing]			="HomeBearing",
            [wsRepAWACSTankerBearing]		="TankerBearing",
            [wsRepAWACSClean]				="Clean",
            [wsRepAWACSMerged]				="Merged",
            [wsRepAWACSNoTankerAvailable]   ="NoTankerAvailable",
            [wsRepTankerClearedPreContact]	="ClearedPreContact",
            [wsRepTankerClearedContact]		="ClearedContact",
            [wsRepTankerDisconnectNow]		="DisconnectNow",
            [wsRepTankerChicksInTow]		="ChicksInTow",
            [wsRepTankerBreakawayBreakaway]	="BreakawayBreakaway",
            
            --------------------------------------------------------------------------------------------------------
            [wsRepATCHoldPosition]              ="HoldPosition",
            [wsRepATCTrafficBearing]            ="TrafficBearing", 
            [wsRepATCYouAreAboveGlidePath]      ="YouAreAboveGlidePath",
            [wsRepATCYouAreOnGlidePath]         ="YouAreOnGlidePath",
            [wsRepATCYouAreBelowGlidePath]      ="YouAreBelowGlidePath",
            [wsRepATCClearedForVisual]          ="ClearedForVisualContactTower",      
            
            [wsRepATCAzimuth]				    ="TowerADFYourHeading",           
            [wsRepATCClearedForEngineStartUp]   ="TowerClearedToStartUp",
            [wsRepATCEngineStartUpDenied]       ="TowerUnableClearStartUp",
            [wsRepATCClearedToTaxiRunWay]       ="TowerClearedTaxi",
            [wsRepATCTaxiDenied]			    ="TowerUnableClearTaxi", 
            [wsRepGoSecondary]				    ="TowerBingo",
            [wsRepATCYouAreClearedForTO]        ="TowerClearedTakeoff",
            [wsRepATCTakeoffDenied]			    ="TowerUnableClearTakeoff",
            [wsRepATCYouAreClearedForLanding]   ="TowerClearedToLand",        
            [wsRepATCTaxiToParkingArea]         ="TowerTaxiToParking",
            [wsRepATCGoAround]                  ="TowerGoAround",
            [wsRepATCHoldForTraffic]            ="HoldForTraffic",
            [wsRepATCOrbitForSpacing]           ="OrbitForSpacing",
            [wsRepATCHomeBearing]               ="TowerFlyHeading",
            [wsRepATCFlyHeading]                ="TowerFlyHeading",
            [wsRepATCClearedControlHover]       ="TowerClearedControlHover",
            [wsRepATCControlHoverDenied]        ="TowerUnableClearControlHover",
            [wsRepATCCheckLandingGear]          ="TowerCheckLandingGear",

            
            [ws_HTowerWindAtStart]              = "TowerWindAtStart",
            [ws_HTowerClimbTo300AtQFE]          = "TowerClimbTo300AtQFE",
            [ws_HTowerRange]                    = "TowerRange", 
            [ws_HTowerQFE]                      = "TowerQFE", 
            [ws_HTowerPoint]                    = "TowerPoint", 
            [ws_HTowerToPatternAltitude]        = "TowerToPatternAltitude", 
            [ws_HTowerRunwayNumber]             = "TowerRunwayNumber", 
            [ws_HTowerWind]                     = "TowerWind", 
            [ws_HTowerWindSpeed]                = "TowerWindSpeed", 
            [ws_HTowerMetersPerSecond]          = "TowerMetersPerSecond", 
            

            
            -----------------------------------------------------------------------------------------------------------------------------------------------------
            [wsRepBettyLeftEngineFire]      ="LeftEngineFire",
            [wsRepBettyRightEngineFire]     ="RightEngineFire",
            [wsRepBettyMaximumAOA]          ="MaximumAngleOfAttack",
            [wsRepBettyAOAOverLimit]        ="AngleOfAttackOverLimit",
            [wsRepBettyMaximumG]            ="MaximumG",
            [wsRepBettyGearDown]            ="GearDown",
            [wsRepBettyGearUp]              ="GearUp",
            [wsRepBettyMaximumSpeed]        ="MaximumSpeed",
            [wsRepBettyMinimumSpeed]        ="MinimumSpeed",
            [wsRepBettyMissile3Low]         ="Missile3OClockLow",
            [wsRepBettyMissile3High]        ="Missile3OClockHigh",
            [wsRepBettyMissile6Low]         ="Missile6OClockLow",
            [wsRepBettyMissile6High]        ="Missile6OClockHigh",
            [wsRepBettyMissile9Low]         ="Missile9OClockLow",
            [wsRepBettyMissile9High]        ="Missile9OClockHigh",
            [wsRepBettyMissile12Low]        ="Missile12OClockLow",
            [wsRepBettyMissile12High]       ="Missile12OClockHigh",
            [wsRepBettyBingoFuel]           ="Bingo",
            [wsRepBettyAttitudeIndicatorFailure]="AttitudeIndicationFailure",
            [wsRepBettyRadarFailure]        ="RadarFailure",
            [wsRepBettyEOSFailure]          ="EOSFailure",
            [wsRepBettySystemsFailure]      ="SystemsFailure",
            [wsRepBettyTWSFailure]          ="TWSFailure",
            [wsRepBettyMLWSFailure]         ="MLWSFailure",
            [wsRepBettyECMFailure]          ="ECMFailure",
            [wsRepBettyNCSFailure]          ="NCSFailure",
            [wsRepBettyACSFailure]          ="ACSFailure",
            [wsRepBettyThrottleBackLeftEngine]  ="ThrottleBackLeftEngine",
            [wsRepBettyThrottleBackRightEngine] ="ThrottleBackRightEngine",
            [wsRepBettyPower]               ="Power",
            [wsRepBettyHydrolicsFailure]    ="HydrolicsFailure",
            [wsRepBettyEject]				="Eject",
            [wsRepBettyGOverLimit]          ="GOverLimit",
            [wsRepBettyFuel1500]            ="Fuel1500",
            [wsRepBettyFuel800]             ="Fuel800",
            [wsRepBettyFuel500]             ="Fuel500",
            [wsRepBettyPullUp]              ="PullUp",
            [wsRepBettyLaunchAuthorised]    ="LaunchAuthorised",
            [wsRepBettyMissileMissile]      ="MissileMissile",
            [wsRepBettyShootShoot]          ="ShootShoot",
            [wsRepBettyFlightControls]      ="FlightControls",
            [wsRepBettyWarningWarning]      ="WarningWarning",
            [wsRepBettyMessageBegin]        ="MessageBegin",
            [wsRepBettyMessageEnd]          ="MessageEnd",
            [wsRepBettyGearDownSingle]      ="GearDown_single",

            [wsRepALMAZ_IS_READY]						="IS_READY",
            [wsRepALMAZ_WATCH_EKRAN]					="WATCH_EKRAN",
            [wsRepALMAZ_THREAT]							="THREAT",
            [wsRepALMAZ_CHECK_OIL_PRESS_LEFT_TRANSM]	="CHECK_OIL_PRESS_LEFT_TRANSM",
            [wsRepALMAZ_CHECK_OIL_PRESS_RIGHT_TRANSM]	="CHECK_OIL_PRESS_RIGHT_TRANSM",
            [wsRepALMAZ_LEFT_ENG_FIRE]					="LEFT_ENG_FIRE",
            [wsRepALMAZ_RIGHT_ENG_FIRE]					="RIGHT_ENG_FIRE",
            [wsRepALMAZ_APU_FIRE]						="APU_FIRE",
            [wsRepALMAZ_HYDRO_FIRE]						="HYDRO_FIRE",
            [wsRepALMAZ_FAN_FIRE]						="FAN_FIRE",
            [wsRepALMAZ_LEFT_ENG_TORQUE]				="LEFT_ENG_TORQUE",
            [wsRepALMAZ_RIGHT_ENG_TORQUE]				="RIGHT_ENG_TORQUE",
            [wsRepALMAZ_DANGER_ENG_VIBR]				="DANGER_ENG_VIBR",
            [wsRepALMAZ_DATA]							="DATA",
            [wsRepALMAZ_MAIN_HYDRO]						="MAIN_HYDRO",
            [wsRepALMAZ_COMMON_HYDRO]					="COMMON_HYDRO",
            [wsRepALMAZ_LOWER_GEAR]						="LOWER_GEAR",
            [wsRepALMAZ_CHECK_MAIN_TRANSM]				="CHECK_MAIN_TRANSM",
            [wsRepALMAZ_TURN_ON_BACKUP_TRANSP]			="TURN_ON_BACKUP_TRANSP",
            [wsRepALMAZ_ELEC_ON_ACCUM]					="ELEC_ON_ACCUM",
            [wsRepALMAZ_USE_TV]							="USE_TV",
            [wsRepALMAZ_USE_MANUAL_ATTACK_KI_TV]		="USE_MANUAL_ATTACK_KI_TV",
            [wsRepALMAZ_FAILURE_WCS_ROCKET]				="FAILURE_WCS_ROCKET",
            [wsRepALMAZ_GUN_ACTUATOR_FAILURE]			="GUN_ACTUATOR_FAILURE",
            [wsRepALMAZ_MIN_FUEL]						="MIN_FUEL",
            [wsRepALMAZ_TURN_ON_ROTOR_ANTIICE]			="TURN_ON_ROTOR_ANTIICE",
            [wsRepALMAZ_RADIO_ALT]						="RADIO_ALT",
            [wsRepALMAZ_INS]							="INS",
            [wsRepALMAZ_TURN_ON_GRID_USE_FIXED_GUN]		="TURN_ON_GRID_USE_FIXED_GUN",
            [wsRepALMAZ_TURN_ON_DC_AC_CONVERT]			="TURN_ON_DC_AC_CONVERT",
            [wsRepALMAZ_CHECK_LEFT_TRANSM]				="CHECK_LEFT_TRANSM",
            [wsRepALMAZ_CHECK_RIGHT_TRANSM]				="CHECK_RIGHT_TRANSM",
            [wsRepALMAZ_ACTUATOR_OIL_PRESSURE]			="ACTUATOR_OIL_PRESSURE",
            [wsRepALMAZ_FAILURE_LEFT_PROBE_HEATER]		="FAILURE_LEFT_PROBE_HEATER",
            [wsRepALMAZ_FAILURE_RIGHT_PROBE_HEATER]		="FAILURE_RIGHT_PROBE_HEATER",
            [wsRepALMAZ_DNS]							="DNS",
            [wsRepALMAZ_FAILURE_NAV_POSITION]			="FAILURE_NAV_POSITION",
            [wsRepALMAZ_GENERATOR_FAILURE]				="GENERATOR_FAILURE",
            [wsRepALMAZ_DC_RECTIF_FAILURE]				="DC_RECTIF_FAILURE",
            [wsRepALMAZ_ENG_DIGITAL_CONTROL_FAILURE]	="ENG_DIGITAL_CONTROL_FAILURE",
            [wsRepALMAZ_LOW_COCKPIT_PRESSURE]			="LOW_COCKPIT_PRESSURE",
            [wsRepALMAZ_NO_HYDRO_PRESSURE]				="NO_HYDRO_PRESSURE",
            [wsRepALMAZ_FAILURE_AIRCOND]				="FAILURE_AIRCOND",
            [wsRepALMAZ_FAILURE_ROTOR_ANTIICE]			="FAILURE_ROTOR_ANTIICE",
            [wsRepALMAZ_NO_MOV_GUN_STOP]				="NO_MOV_GUN_STOP",

            [wsRepA10_VMU_Alert]			="A10_VMU_Alert",
            [wsRepA10_VMU_Altitude]			="A10_VMU_Altitude",
            [wsRepA10_VMU_WarningAutopilot]	="A10_VMU_APdiseng",
            [wsRepA10_VMU_Ceiling]			="A10_VMU_Ceiling",
            [wsRepA10_VMU_IFF]				="A10_VMU_IFF",
            [wsRepA10_VMU_Obstacle]			="A10_VMU_Obstacle",
            [wsRepA10_VMU_Pullup]			="A10_VMU_Pullup",
            [wsRepA10_VMU_Speedbreak]		="A10_VMU_Speedbrk",
 
            [wsRepHumanInbound]                         ="Inbound",
            [wsRepHumanRequestAzimuth]		            ="IamLost",
            [wsRepHumanRequestLanding]		            ="ReadyToLandingRunway",
            
            [ws_HInboundTo]                      		="InboundTo",
			[ws_HOnlyInbound]							="OnlyInbound",
			
            [wsRepHumanEngageMyTarget]                  ="EngageMyTarget", -- Attack my target
			[wsRepHumanEngageMyTarget2]                 ="EngageMyTarget", -- Attack my target2
            [wsRepHumanEngageBandits]                   ="EngageBandits",
            [wsRepHumanEngageAirDefenses]               ="EngageAirDefenses",	-- приказ ведомому] "Атакуй ПВО"
            [wsRepHumanEngageGroundTargets]             ="EngageGroundTargets",  -- приказ ведомому] "Атакуй наземную цель"
            [wsRepHumanEngageNavalTargets]              ="EngageNavalTargets",
            [wsRepHumanEngageMissionObjective]          ="EngageMissionObjective",
            [wsRepHumanCoverMe]                         ="CoverMe",
            [wsRepHumanRadarOn]                         ="SetRadarOn",		-- Включить все радары
            [wsRepHumanRadarOff]                        ="SetRadarOff",		-- Выключить все радары
            [wsRepHumanPincerHigh]                      ="PincerHigh",
            [wsRepHumanPincerLow]                       ="PincerLow",
            [wsRepHumanPincerRight]                     ="PincerRight",
            [wsRepHumanPincerLeft]                      ="PincerLeft",
            [wsRepHumanGoCombatSpread]                  ="GoCombatSpread",
            [wsRepHumanGoFingerFour]                    ="GoFingerFour",
            [wsRepHumanGoWall]                          ="GoWall",
            [wsRepHumanGoTrail]                         ="GoTrail",
            [wsRepHumanHelGoHeavy]	                    ="FormationHavy",
            [wsRepHumanHelGoCombatCruise]	            ="FormationCombatCruise",
            [wsRepHumanHelGoCombatSpread]	            ="FormationCombatSpread",
            [wsRepHumanHelGoTrail]	                    ="FormationTrail",
            [wsRepHumanHelGoOverwatch]	                ="FormationOverwatch",
            [wsRepHumanHelGoLeft]	                    ="FormationLeft",
            [wsRepHumanHelGoRight]	                    ="FormationRight",
            [wsRepHumanHelGoTight]	                    ="FormationTight",
            [wsRepHumanHelGoCombat]	                    ="FormationCruise",
            [wsRepHumanHelGoFloat]	                    ="FormationFloat",
            [wsRepHumanHelReconnaissance_01]	        ="ReconTo",
            [wsRepHumanHelReconnaissance_02]	        ="ReconTo",
            [wsRepHumanHelReconnaissance_03]	        ="ReconTo",
            [wsRepHumanHelReconnaissance_05]	        ="ReconTo",
            [wsRepHumanHelReconnaissance_08]	        ="ReconTo",
            [wsRepHumanHelReconnaissance_10]	        ="ReconTo",
            [wsRepHumanRejoinFormation]                 ="RejoinFormation",
            [wsRepHumanTightFormation]                  ="TightFormation",
            [wsRepHumanLooseFormation]                  ="LooseFormation",
            [wsRepHumanReturnToBase]                    ="ReturnToBase",
            [wsRepHumanGoRefueling]                     ="GoRefueling",
            [wsRepHumanCloseFormation]                  ="CloseFormation",
            [wsRepHumanOpenFormation]                   ="OpenFormation",
            [wsRepHumanFulfilTheTaskAndJoinUp]          ="FulfilTheTaskAndJoinUp",
            [wsRepHumanFulfilTheTaskAndReturnToBase]    ="FulfilTheTaskAndReturnToBase",
            [wsRepHumanJettisonWeapons]                 ="JettisonWeapons",
            [wsRepHumanVectorToAirfield]                ="VectorToAirfield",
            [wsRepHumanEngageMyBandit]                  ="EngageMyBandit",
            [wsRepHumanSmokeOn]                         ="SmokeOn",
            [wsRepHumanSmokeOff]                        ="SmokeOff",
            [wsRepHumanVectorToDirection]               ="FollowToRoute",
            [wsRepHumanDisturberOn]                     ="DisturberOn",		-- Ставить помехи
            [wsRepHumanDisturberOff]                    ="DisturberOff",		-- Выключить все постановшики помех
            [wsRepHumanJoinUp]                          ="JoinUp",           -- приказ ведомому] "Собраться"
            [wsRepHumanRayTarget]                       ="RayTarget",		-- приказ ведомому] "Облучи цель", data_i - ID цели
            [wsRepHumanFindAirTarget]                   ="FindAirTarget",	-- приказ ведомому] "Найди воздушную цель"
            [wsRepHumanGotoAirdrome]                    ="GotoAirdrome"	,	-- приказ ведомому] "Вернись на аэродром" data_i - ID аэродрома
            [wsRepHumanMyEnemyAttack]                   ="MyEnemyAttack",	-- приказ ведомому] "Атакуй моего врага"    

            
            [wsRepHumanHel_Use_Turbo_Gear]	            = "SetTurbogearOn",
            [wsRepHumanHel_Regular_Launch]	            = "SetTurbogearOff",
            [wsRepHumanGroundElecPowerOn]	            = "SetGroundPowerOn",
            [wsRepHumanGroundElecPowerOff]	            = "SetGroundPowerOff",          
            [wsRepHumanHel_Refueling_25]	            = "RequestRefuel",
            [wsRepHumanHel_Refueling_50]	            = "RequestRefuel",
            [wsRepHumanHel_Refueling_Maximum_Combat]	= "RequestRefuel",
            [wsRepHumanHel_Refueling_Maximum_Ferry]	    = "RequestRefuel",
            [wsRepHumanHel_Setup_HMS]	                = "SetHMDOn",
            [wsRepHumanHel_Setup_NVG]	                = "SetNVGOn",
            [wsRepHuman_Refueling_Start]	            = "RequestRefuel", 
			[wsRepHuman_Refueling_End]		            = "BreakRefueling", 
			
	--расширенные команды управления ведомыми
			[wsRepHumanEngageDlinkTarget] 		="EngageDatalinkTarget",
			[wsRepHumanEngageDlinkTargets] 		="EngageDatalinkTargets",
			[wsRepHumanEngageDlinkTargetByType] ="EngageDatalinkTarget",
			[wsRepHumanEngageDlinkTargetsByType]="EngageDatalinkTargets",
            [wsRepHumanGoToPoint]				="FollowToDatalink",
            [wsRepHumanMakeReconnaissance]  	="ReconToDatalink",
            [wsRepHumanHold]                	="Anchor",
	-- ATC
            [wsRepRequestEnginesLaunch]         ="RequestToStartUp",
            [wsRepHumanRequestTaxiToRunway]     ="RequestToTaxi",
            [wsRepHumanRequestTakeOff]          ="RequestTakeoff",
            [wsRepHumanRequestControlHover]     ="RequestToConrtolHover",
	-- AWACS
            [wsRepHumanVectorToNearestBandit]   ="VectorToNearestBandit",
            [wsRepHumanVectorToHomeplate]       ="VectorToHomeplate",
            [wsRepHumanVectorToTanker]          ="VectorToTanker",
            [wsRepHumanDeclare]                 ="Declare",
	--GROUND SERVICE
    
            [wsRepGroundServiceCopy]          = "GCCopy",
            [wsRepGroundServiceNegative]      = "GCUnableToComply",
            [wsRepGroundServiceReloadDone]    = "GCRearmedDone",
            [wsRepGroundServiceRefuelDone]    = "GCRefuelDone",       
            [wsRepGroundServiceHMSDone]       = "GCHMSMounted",       
            [wsRepGroundServiceNVGDone]       = "GCNVGMounted",      
            [wsRepGroundServiceGroundPowerOn] = "GCGroundPowerOn",    
            [wsRepGroundServiceGroundPowerOff]= "GCGroundPowerOff",   
            [wsRepGroundServiceTurboGearOn]   = "GCTurbogearOn",      
            [wsRepGroundServiceTurboGearOff]  = "GCTurbogearOff",     
            [wsRepGroundServiceStop]          = "GCWhatAreYouDoing",  
            [wsRepGroundServiceNull]          = "Ground_service_null",
            [wsRepGroundServiceMaximum]       = "Ground_service_maximum",
            
            [PHRASES_ZERO]                  ="Zero",
            [PHRASES_ONE]                   ="One",
            [PHRASES_TWO]                   ="Two",
            [PHRASES_THREE]                 ="Three",
            [PHRASES_FOUR]                  ="Four",
            [PHRASES_FIVE]                  ="Five",
            [PHRASES_SIX]                   ="Six",
            [PHRASES_SEVEN]                 ="Seven",
            [PHRASES_EIGHT]                 ="Eight",
            [PHRASES_NINE]                  ="Nine",

			[PHRASES_ONE_O_CLOCK]	        = "OneOClock",
			[PHRASES_TWO_O_CLOCK]	        = "TwoOClock",
			[PHRASES_THREE_O_CLOCK]	    	= "ThreeOClock",
			[PHRASES_FOUR_O_CLOCK]	    	= "FourOClock",
			[PHRASES_FIVE_O_CLOCK]	    	= "FiveOClock",
			[PHRASES_SIX_O_CLOCK]	        = "SixOClock",
			[PHRASES_SEVEN_O_CLOCK]	    	= "SevenOClock",
			[PHRASES_EIGHT_O_CLOCK]	    	= "EightOClock",
			[PHRASES_NINE_O_CLOCK]	    	= "NineOClock",
			[PHRASES_TEN_O_CLOCK]	        = "TenOClock",
			[PHRASES_ELEVEN_O_CLOCK]	    = "ElevenOClock",
			[PHRASES_TWELVE_O_CLOCK]	    = "TwelveOClock",

            [PHRASES_BEARING]               ="Bearing",
            [PHRASES_FOR]                   ="For",
            [PHRASES_MILES]                 ="Miles",
            [PHRASES_LEFT]					="Left",
            [PHRASES_RIGHT]					="Right",
            [PHRASES_ATHEIGHT]				="TakeHeight",
            [PHRASES_WIND_BEARING]			="Wind_Bearing",
            [PHRASES_WIND_SPEED]			="Wind_Speed",	
            [PHRASES_PRESSURE]				="Pressure",
            [PHRASES_ANGLESLOW]             ="AngelsLow",
            [PHRASES_ANGLESMEDIUM]          ="AngelsMedium",
            [PHRASES_ANGLESHIGH]            ="AngelsHigh",
            [PHRASES_HOT]                   ="Hot",
            [PHRASES_COLD]                  ="Cold",
            [PHRASES_FLANKING]              ="Flanking",
            [PHRASES_CALLNAME0]             ="CallNameEnfield",
            [PHRASES_CALLNAME1]             ="CallNameSpringfield",
            [PHRASES_CALLNAME2]             ="CallNameUzi",
            [PHRASES_CALLNAME3]             ="CallNameColt",
            [PHRASES_CALLNAME4]             ="CallNameDodge",
            [PHRASES_CALLNAME5]             ="CallNameFord",
            [PHRASES_CALLNAME6]             ="CallNameChevy",
            [PHRASES_CALLNAME7]             ="CallNamePontiac",
            [PHRASES_CALLNAME8]             ="CallNameEight",
            [PHRASES_CALLNAME9]             ="CallNameNine",
			
			[PHRASES_CALLNAME_AWACS]		="CallNameAWACS",
			[PHRASES_CALLNAME_TANKER] 		="CallNameTanker",			
			
            [PHRASES_CALLSIGN1]             ="CallsignOne",
            [PHRASES_CALLSIGN2]             ="CallsignTwo",
            [PHRASES_CALLSIGN3]             ="CallsignThree",
            [PHRASES_CALLSIGN4]             ="CallsignFour",			
							
			[WINGMAN_CALM   + PHRASES_CALLSIGN1]   = "CallsignOne",
			[WINGMAN_BRIGHT + PHRASES_CALLSIGN1]   = "CallsignOne",
			[WINGMAN_LOUD   + PHRASES_CALLSIGN1]   = "CallsignOne",
			
            [WINGMAN_CALM   + PHRASES_CALLSIGN2]   = "WingmanTwoCalm",
			[WINGMAN_BRIGHT + PHRASES_CALLSIGN2]   = "WingmanTwoBright",
			[WINGMAN_LOUD   + PHRASES_CALLSIGN2]   = "WingmanTwoLoud",
			
            [WINGMAN_CALM   + PHRASES_CALLSIGN3]   = "WingmanThreeCalm",
			[WINGMAN_BRIGHT + PHRASES_CALLSIGN3]   = "WingmanThreeBright",
			[WINGMAN_LOUD   + PHRASES_CALLSIGN3]   = "WingmanThreeLoud",

            [WINGMAN_CALM   + PHRASES_CALLSIGN4]   = "WingmanFourCalm",
			[WINGMAN_BRIGHT + PHRASES_CALLSIGN4]   = "WingmanFourBright",
			[WINGMAN_LOUD   + PHRASES_CALLSIGN4]   = "WingmanFourLoud",
			
			
            [PHRASES_DELIMETER]				="DELIMETER",
            [PHRASES_COLON]					="COLON",
 
            [PHRASES_1_KM]                  ="OneKm",
            [PHRASES_2_KM]                  ="TwoKm",
            [PHRASES_3_KM]                  ="ThreeKm",
            [PHRASES_5_KM]                  ="FiveKm",
            [PHRASES_8_KM]                  ="EightKm",
            [PHRASES_10_KM]                 ="TenKm",
            [PHRASES_AZIMUTH]               ="Bearing",

            [PHRASES_TO_TWO]                ="ToTwo",
            [PHRASES_TO_THREE]              ="ToThree",
            [PHRASES_TO_FOUR]               ="ToFour",
            [PHRASES_TO_WING]               ="ToFlight",

            
            [PHRASES_DECIMAL_POINT] 		= "TowerPoint", -- fix name 

            [ALMAZ_BOARD]					="BOARD",
            [ALMAZ_DIGITS_0_BEGIN]			="NUM_0_begin",
            [ALMAZ_DIGITS_20_BEGIN]			="NUM_20_begin",
            [ALMAZ_DIGITS_30_BEGIN]			="NUM_30_begin",
            [ALMAZ_DIGITS_40_BEGIN]			="NUM_40_begin",
            [ALMAZ_DIGITS_50_BEGIN]			="NUM_50_begin",
            [ALMAZ_DIGITS_60_BEGIN]			="NUM_60_begin",
            [ALMAZ_DIGITS_70_BEGIN]			="NUM_70_begin",
            [ALMAZ_DIGITS_80_BEGIN]			="NUM_80_begin",
            [ALMAZ_DIGITS_90_BEGIN]			="NUM_90_begin",
            [ALMAZ_DIGITS_100_BEGIN]		="NUM_100_begin",
            [ALMAZ_DIGITS_200_BEGIN]		="NUM_200_begin",
            [ALMAZ_DIGITS_300_BEGIN]		="NUM_300_begin",
            [ALMAZ_DIGITS_400_BEGIN]		="NUM_400_begin",
            [ALMAZ_DIGITS_500_BEGIN]		="NUM_500_begin",
            [ALMAZ_DIGITS_600_BEGIN]		="NUM_600_begin",
            [ALMAZ_DIGITS_700_BEGIN]		="NUM_700_begin",
            [ALMAZ_DIGITS_800_BEGIN]		="NUM_800_begin",
            [ALMAZ_DIGITS_900_BEGIN]		="NUM_900_begin",
            [ALMAZ_DIGITS_0_END]			="NUM_0_end",
            [ALMAZ_DIGITS_1_END]			="NUM_1_end",
            [ALMAZ_DIGITS_2_END]			="NUM_2_end",
            [ALMAZ_DIGITS_3_END]			="NUM_3_end",
            [ALMAZ_DIGITS_4_END]			="NUM_4_end",
            [ALMAZ_DIGITS_5_END]			="NUM_5_end",
            [ALMAZ_DIGITS_6_END]			="NUM_6_end",
            [ALMAZ_DIGITS_7_END]			="NUM_7_end",
            [ALMAZ_DIGITS_8_END]			="NUM_8_end",
            [ALMAZ_DIGITS_9_END]			="NUM_9_end",
            [ALMAZ_DIGITS_10_END]			="NUM_10_end",
            [ALMAZ_DIGITS_11_END]			="NUM_11_end",
            [ALMAZ_DIGITS_12_END]			="NUM_12_end",
            [ALMAZ_DIGITS_13_END]			="NUM_13_end",
            [ALMAZ_DIGITS_14_END]			="NUM_14_end",
            [ALMAZ_DIGITS_15_END]			="NUM_15_end",
            [ALMAZ_DIGITS_16_END]			="NUM_16_end",
            [ALMAZ_DIGITS_17_END]			="NUM_17_end",
            [ALMAZ_DIGITS_18_END]			="NUM_18_end",
            [ALMAZ_DIGITS_19_END]			="NUM_19_end",
            [ALMAZ_DIGITS_20_END]			="NUM_20_end",
            [ALMAZ_DIGITS_30_END]			="NUM_30_end",
            [ALMAZ_DIGITS_40_END]			="NUM_40_end",
            [ALMAZ_DIGITS_50_END]			="NUM_50_end",
            [ALMAZ_DIGITS_60_END]			="NUM_60_end",
            [ALMAZ_DIGITS_70_END]			="NUM_70_end",
            [ALMAZ_DIGITS_80_END]			="NUM_80_end",
            [ALMAZ_DIGITS_90_END]			="NUM_90_end",
            [ALMAZ_DIGITS_100_END]			="NUM_100_end",
            [ALMAZ_DIGITS_200_END]			="NUM_200_end",
            [ALMAZ_DIGITS_300_END]			="NUM_300_end",
            [ALMAZ_DIGITS_400_END]			="NUM_400_end",
            [ALMAZ_DIGITS_500_END]			="NUM_500_end",
            [ALMAZ_DIGITS_600_END]			="NUM_600_end",
            [ALMAZ_DIGITS_700_END]			="NUM_700_end",
            [ALMAZ_DIGITS_800_END]			="NUM_800_end",
            [ALMAZ_DIGITS_900_END]			="NUM_900_end",
            [ALMAZ_MESSAGE_BEGIN]			="MESSAGE_BEGIN",
            [ALMAZ_MESSAGE_END]				="MESSAGE_END",
            
            
            [VOICE_ASSOCIATION_LEADER]          = "LEADER",
            [VOICE_ASSOCIATION_WINGMAN]         = "WINGMAN",
            [VOICE_ASSOCIATION_APPROACH]        = "TOWER",
            [VOICE_ASSOCIATION_TOWER]           = "TOWER",
            [VOICE_ASSOCIATION_AWACS]           = "AWACS",
            [VOICE_ASSOCIATION_TANKER]          = "TANKER",
            [VOICE_ASSOCIATION_BETTY]           = "BETTY",
        	[VOICE_ASSOCIATION_ALMAZ]           = "ALMAZ",
        	[VOICE_ASSOCIATION_A10_VMU]         = "A10_VMU",
        	[VOICE_ASSOCIATION_GROUND_SERVICE]  = "GROUND_SERVICE",
			
			[VOICE_SUB_ASSOCIATION_NULL]		= "",
			[VOICE_SUB_ASSOCIATION_LOCK_ON]		= "LOCK_ON",
			[VOICE_SUB_ASSOCIATION_KA_50]		= "KA_50"
}

for command = wsRepHumanHel_LoadMin,wsRepHumanHel_LoadMax do
	events_files[command]               = "RequestRearm" -- TODO fill reloading
end

dofile ('./Scripts/Database/wsTypes.lua')

CALLSIGN_VOID 		= -1
CALLSIGN_AIRDROME 	= 0
CALLSIGN_HELIPORT	= 1
CALLSIGN_CARRIER	= 2
CALLSIGN_AWACS		= 3
CALLSIGN_TANKER		= 4

maxCallsignsInNamespace = 50

callsigns = {
	[CALLSIGN_AIRDROME] = {
		[Khersones]             =  "HelipadOtkrytka",--TODO : FIXME
		[Saki]                  =  "HelipadVetka",--TODO : FIXME
		[Simpheropol]           =  "HelipadUynga",--TODO : FIXME
		[Razdolnoe]             =  "HelipadShpora",--TODO : FIXME
		[Dzhankoy]              =  "HelipadKalitka",--TODO : FIXME
		[Kirovskoe]             =  "HelipadTorba",--TODO : FIXME
		[Kerch]                 =  "HelipadKaemka",--TODO : FIXME
		[Belbek]                =  "HelipadSkala",--TODO : FIXME
		[Krasnogvardeyskoye]    =  "HelipadOtkrytka",--TODO : FIXME
		[Octyabrskoe]           =  "HelipadShpora",--TODO : FIXME
		[Gvardeyskoe]           =  "HelipadVetka",--TODO : FIXME
		[Anapa]                 =  "AirdromeAnapa",--TODO : FIXME
		[Krasnodar]             =  "AirdromeKrasnodarCenter",
		[Novorossiysk]          =  "AirdromeNovorossiysk",
		[Krymsk]                =  "AirdromeKrymsk",
		[Maykop]                =  "AirdromeMaikopKhanskaya",
		[Gelendzhik]            =  "AirdromeGelendzhik",
		[Sochi]                 =  "AirdromeSochi",
		[Krasnodar_P]           =  "AirdromeKrasnodarPashkowsky",
		[Sukhumi]               =  "AirdromeSukhumi",
		[Gudauta]               =  "AirdromeGudauta",
		[Batumi]                =  "AirdromeBatumi",
		[Tskhakaya]             =  "AirdromeTskhakaya",
		[Kobuleti]              =  "AirdromeKobuleti",
		[Kutaisi]               =  "AirdromeKutaisi",
		[MinVody]               =  "AirdromeMinvody",
		[Nalchick]              =  "AirdromeNalchik",  
	},
	[CALLSIGN_HELIPORT] = {
		"HelipadOtkrytka",
		"HelipadVetka",
		"HelipadUynga",
		"HelipadShpora",
		"HelipadKalitka",
		"HelipadTorba",
		"HelipadKaemka",
		"HelipadPodkova",
		"HelipadSkala",
		"HelipadKapel",
	},
	[CALLSIGN_CARRIER] = {
		"Salamander"
	},
	[CALLSIGN_AWACS] = {
		"Overlord"
	},
	[CALLSIGN_TANKER] = {
		"Texaco"
	}
}

for callsignListIndex, callsignsList in pairs(callsigns) do
	for callsignIndex, callsign in pairs(callsignsList) do
		local phraseIndex = PHRASES_CALLSIGN_MIN + callsignListIndex * maxCallsignsInNamespace + callsignIndex
		if callsignListIndex > CALLSIGN_AIRDROME then
			phraseIndex = phraseIndex - 1
		end
		events_files[phraseIndex] = callsign
		counter.current = math.max(counter.current, phraseIndex)
	end
end
