
<ui>
	<css name="$TextNano">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextSecondary">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextSecondaryNoFilter">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextSecondaryBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextDefault">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextDefaultBold">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextHeaderBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextHeader">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="19"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextHeaderWhite">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="19"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextHeaderHugeWhite">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="30"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextHeaderBigDefault">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextHeaderBigTeamKiller">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF96CA"/>
	</css>
	<css name="$TextHeaderBigNegative">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF6600"/>
	</css>
	<css name="$TextHeaderBigWhite">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextAccent">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextAccentBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextAccentSecond">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="60"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextHeaderUnready">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="25"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF9933"/>
	</css>
	<css name="$TextDefaultWhite">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextSmallCompareNegative">
		<fontFamily value="$WWSDefaultFont"/>
		<textColor value="0xFF6600"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$TextSmallWhite">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextSmallGold">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextDefaultExpSmall">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextSmallNegative">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF6600"/>
	</css>
	<css name="$TextTurquoiseQuests">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0x00cccc"/>
	</css>
	<css name="$TextLargeHeader">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="21"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextLargeHeaderBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="21"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextLargeHeaderBlack">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="21"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextThumbelina">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="7"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextAccentWhite">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="25"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextDefaultTech">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0x9CBABA"/>
	</css>
	<css name="$BlackLabel">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$ZurichCondensedBold"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextHeaderWhiteBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="19"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$ResultsReward">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="60"/>
		<letterSpacing value="-3"/>
		<marginRight value="2px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextAccentGreyBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<textColor value="0xDDDDDD"/>
		<fontSize value="60"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$TextAccentBoldAccountLevel1">
		<fontFamily value="$WWSDefaultFontBold"/>
		<textColor value="0xFFFFFF"/>
		<fontSize value="36"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$TextAccentBoldAccountLevel2">
		<fontFamily value="$WWSDefaultFontBold"/>
		<textColor value="0xFFFFFF"/>
		<fontSize value="30"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$TextMouseDisable">
		<mouseChildren value="false"/>
		<selectable value="false"/>
		<mouseEnabled value="false"/>
	</css>
	<css name="$MouseEnable">
		<hitTest value="true"/>
		<mouseChildren value="true"/>
		<mouseEnabled value="true"/>
	</css>
	<css name="$FontFamilyDefault">
		<fontFamily value="$WWSDefaultFont"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$FontFamilyDefaultBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$Bold">
		<fontFamily value="$WWSDefaultFontBold"/>
	</css>
	<css name="$FontColorDefault">
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$FontColorGrey">
		<textColor value="0xDDDDDD"/>
	</css>
	<css name="$FontColorStrongGrey">
		<textColor value="0x636363"/>
	</css>
	<css name="$FontColorWhite">
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$FontColorBlueish">
		<textColor value="0x9CBABA"/>
	</css>
	<css name="$FontColorStrongBlueish">
		<textColor value="0x758b8b"/>
	</css>
	<css name="$FontColorDarkBlueish">
		<textColor value="0x2B393A"/>
	</css>
	<css name="$FontColorSpecialButton">
		<textColor value="0xFFE8D3"/>
	</css>
	<css name="$FontColorTurquoise">
		<textColor value="0x00cccc"/>
	</css>
	<css name="$FontColorBuoyancy">
		<textColor value="0x13C9F7"/>
	</css>
	<css name="$FontColorHealth">
		<textColor value="0x4ce8aa"/>
	</css>
	<css name="$FontColorGolden">
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$FontColorGold">
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$FontColorFreeExp">
		<textColor value="0xCCFF99"/>
	</css>
	<css name="$FontColorExp">
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$FontColorUnready">
		<textColor value="0xFF9933"/>
	</css>
	<css name="$FontColorAlmostBlack">
		<textColor value="0x08222a"/>
	</css>
	<css name="$FontColorTeamkiller">
		<textColor value="0xFF96CA"/>
	</css>
	<css name="$FontColorTTK">
		<textColor value="0xc8751c"/>
	</css>
	<css name="$FontColorParty">
		<textColor value="0x00cccc"/>
	</css>
	<css name="$FontColorDefaultButtonUp">
		<textColor value="0xc7e2e2"/>
	</css>
	<css name="$FontColorComparePositive">
		<textColor value="0x4CE8AA"/>
	</css>
	<css name="$FontColorCompareNegative">
		<textColor value="0xFF6600"/>
	</css>
	<css name="$FontColorMercenaries">
		<textColor value="0x4ce8aa"/>
	</css>
	<css name="$FontSizeThumbelina">
		<fontSize value="7"/>
	</css>
	<css name="$FontSizeNano">
		<fontSize value="11"/>
	</css>
	<css name="$FontSizeSmall">
		<fontSize value="13"/>
	</css>
	<css name="$FontSizeDefault">
		<fontSize value="15"/>
	</css>
	<css name="$FontSizeLarge">
		<fontSize value="17"/>
	</css>
	<css name="$FontSizeHeader6">
		<fontSize value="19"/>
	</css>
	<css name="$FontSizeHeader5">
		<fontSize value="21"/>
	</css>
	<css name="$FontSizeHeader4">
		<fontSize value="23"/>
	</css>
	<css name="$FontSizeHeader3">
		<fontSize value="25"/>
	</css>
	<css name="$FontSizeHeader2">
		<fontSize value="30"/>
	</css>
	<css name="$FontSizeHeader1">
		<fontSize value="36"/>
	</css>
	<css name="$FontAccentSize2">
		<fontSize value="50"/>
	</css>
	<css name="$FontAccentSize1">
		<fontSize value="60"/>
	</css>
	<css name="$LetterSpacingSmall">
		<letterSpacing value="0.8"/>
	</css>
	<css name="$InvertedTextEffect">
		<dropShadowFilter value="0 90 0xffffff 1.0 3.0 3.0 0.3"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$FontGlowFilterBright">
		<dropShadowFilter value="1 90 0xffffff 0.3 5.0 3.0 0.9 2"/>
	</css>
	<css name="$BlockGlowFilterBright">
		<dropShadowFilter value="1 90 0xffffff 0.3 4.0 3.0 0.2 2"/>
	</css>
	<css name="$GlowDisabler">
		<dropShadowFilter value="0 0 0x000000 0 0 0 0 0"/>
	</css>
	<css name="$DropShadowDisabler">
		<dropShadowFilter value="0 0 0x000000 0 0 0 0 0"/>
	</css>
	<css name="$FontDropShadowFilter1">
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<css name="$FontDropShadowFilterStrong">
		<dropShadowFilter value="1 90 0x08222a 0.8 3 3 1.5"/>
	</css>
	<css name="$FontDropShadowWhite">
		<dropShadowFilter value="0 90 0xffffff 1.0 3.0 3.0 0.3"/>
	</css>
	<css name="$BlockDropShadowFilter1">
		<dropShadowFilter value="5 110 0x000000 0.6 6 6 0.6"/>
	</css>
	<css name="$BlockDropShadowFilter2">
		<dropShadowFilter value="3 110 0x000000 0.6 6 6 0.6"/>
	</css>
	<css name="$ComplaintMenuListItemBattleMargins">
		<marginLeft value="2px"/>
		<marginRight value="2px"/>
	</css>
	<css name="$ComplaintMenuListItemPostbattleMargins">
		<marginLeft value="1px"/>
		<marginRight value="1px"/>
	</css>
	<block className="UIListPlayerContextMenu">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'dynamicDivisionsData'; 'id'; _selfPlayer.divisionId; 'selfPlayerDivisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; _player.name; 'playerInvitationData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'VoiceChatState'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'evaluationLimits'"/>
		<bind name="primaryEntityDH" value="'entityAccountBattle'; CC.avatar; _player.id"/>
		<bind name="watchDH" value="'entityAccountBattleDbId'; [];  entityAccountBattle.accountSimple.dbId"/>
		<bind name="primaryEntityDH" value="'playerEntity'; CC.accountSimple; _playerDbId ? _playerDbId : entityAccountBattleDbId"/>
		<bind name="watchDH" value="'isTextChatMuted'; ['playerEntity.avatar.evMuteChanged']; playerEntity.avatar.mute"/>
		<bind name="watchDH" value="'isBotAvatar'; []; playerEntity.avatar.isBot"/>
		<bind name="watchDH" value="'accountDbId'; [];  playerEntity.accountSimple.dbId"/>
		<bind name="watchDH" value="'groupIdsOfAccount'; ['playerEntity.elementInGroups.evGroupsChanged']; playerEntity.elementInGroups.groupIds"/>
		<bind name="watchDH" value="'isIgnored';['playerEntity.contact.evIsIgnoredChanged']; !!playerEntity.contact.isIgnored"/>
		<bind name="watchDH" value="'canAddGroupEntitiesId'; ['playerEntity.elementInGroups.evCanAddGroupEntitiesChanged', 'dataHub.chat.ref.chat.evRosterChanged']; (playerEntity.elementInGroups) ? playerEntity.elementInGroups.canAddGroupEntitiesId : chat.canAddGroupEntitiesId"/>
		<bind name="watchDH" value="'playerEntityId'; []; playerEntity.id"/>
		<bind name="watch" value="'isInSameDivisionOnStart'; _isInPBS ? _isInSameDivisionOnStart : _player.isInSameDivisionOnStart"/>
		<bind name="watch" value="'isBot'; _isInPBS ? _isBot  : isBotAvatar"/>
		<bind name="serverTime" value="'serverTime'"/>
		<bind name="timeFormat" value="(_player.inviteCooldown - serverTime); 'mm:ss'; 'cooldownTimeText'"/>
		<bind name="watch" value="'isEnemyPlayer'; (_player.relation == 2)"/>
		<bind name="watch" value="'isFreePlacesInDivision'; ((selfPlayerDivisionData[0].staff.length + selfPlayerDivisionData[0].inPortParticipantsCount) &lt; 3)"/>
		<bind name="watch" value="'isDynamicDivisionsEnabled'; (((_battleType == BattleTypes.COOPERATIVE_BATTLE) || (_battleType == BattleTypes.RANDOM_BATTLE)) &amp;&amp;
												slimClientData.isFull)"/>
		<bind name="watch" value="'invitationDisableReason'; (_player.isLeaver)						? 'IDS_INVITATION_DISABLE_REASON_PLAYER_IS_OUT_OF_BATTLE':
											(_player.division != 0)					? 'IDS_INVITATION_DISABLE_REASON_ALREADY_IN_DIVISION' :
											!(_selfPlayer.isAlive)					? 'IDS_DIVISION_MANAGEMENT_LOCKED_FOR_DESTROYED' :
											!(_player.isAlive)						? 'IDS_INVITATION_DISABLE_REASON_DESTROYED' :
											!(isFreePlacesInDivision)				? 'IDS_INVITATION_DISABLE_REASON_NO_FREE_PLACES' :
											!(_player.invitationsEnabled)			? 'IDS_INVITATION_DISABLE_REASON_INVITATIONS_DISABLED' :
											(_player.inviteCooldown &gt; serverTime)	? (tr('IDS_WAIT_TIMEOUT_TO_INVITE_TO_DIVISION')+' '+cooldownTimeText)
																					: 'no_reason'"/>
		<bind name="watch" value="'isDivisionControlsEnable';	isDynamicDivisionsEnabled &amp;&amp;
												(_isInPBS != true) &amp;&amp;
												!(isEnemyPlayer) &amp;&amp;
												!(isBot) &amp;&amp;
												((_selfPlayer.isDivisionCommander) || (_selfPlayer.divisionId == 0))"/>
		<bind name="watch" value="'canBeInChat';	((_battleType == BattleTypes.CLAN_BATTLE) &amp;&amp; VoiceChatState.enabled &amp;&amp; !(isEnemyPlayer)) ||
								((_player.isInSameDivision &amp;&amp; VoiceChatState.enabled) &amp;&amp; ((_battleType == BattleTypes.RANDOM_BATTLE) ||
																						 (_battleType == BattleTypes.COOPERATIVE_BATTLE) ||
																						 (_battleType == BattleTypes.PVE_BATTLE)))"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'MenuTooltipBackground'; {_isInBattle: _isBattleStats}"/>
		</block>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="class" value="_isBattleStats ? '$ComplaintMenuListItemBattleMargins' : '$ComplaintMenuListItemPostbattleMargins'"/>
			<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
			<bind name="watchDH" value="'clanId'; 	['selfPlayerEntity.clanman.evClanIdChanged']; selfPlayerEntity.clanman.clanId"/>
			<bind name="watchDH" value="'role'; 		['selfPlayerEntity.clanman.evRoleChanged']; selfPlayerEntity.clanman.role"/>
			<bind name="watchDH" value="'isFull'; 	['clanEntity.clanExtended.evIsFullChanged']; clanEntity.clanExtended.isFull"/>
			<bind name="primaryEntityDH" value="'clanEntity'; CC.clan; clanId"/>
			<bind name="watchDH" value="'clanTag'; ['clanEntity.clan.evTagChanged']; clanEntity.clan.tag"/>
			<bind name="watchDH" value="'clanName'; ['clanEntity.clanExtended.evNameChanged']; clanEntity.clanExtended.name"/>
			<bind name="watch" value="'haveOwnClan'; 			clanEntity != null"/>
			<bind name="watch" value="'canInvite'; 				(role == 'executive_officer' || role == 'recruitment_officer' || role == 'commander')"/>
			<bind name="watch" value="'alreadyInYourClan'; 		(playerEntity.clanman != null) &amp;&amp; (playerEntity.clanman.clanId == selfPlayerEntity.clanman.clanId)"/>
			<bind name="watch" value="'alreadyInAnotherClan'; 	(playerEntity.clanman != null) &amp;&amp; (playerEntity.clanman.clanId != selfPlayerEntity.clanman.clanId)"/>
			<bind name="watch" value="'noFreePlacesInClan'; 		isFull"/>
			<block>
				<bind name="visible" value="(haveOwnClan &amp;&amp; canInvite &amp;&amp; !alreadyInYourClan)"/>
				<bind name="action" value="'click'; 'ClanProxy.sendInvite'; { playerDBID: accountDbId }"/>
				<bind name="style" value="'alpha'; (alreadyInAnotherClan || noFreePlacesInClan) ? 0.5 : 1"/>
				<bind name="tooltip" value="'SimpleWarningTooltip'; (alreadyInAnotherClan || noFreePlacesInClan) ? { _text: 	noFreePlacesInClan 		? 'IDS_CLAN_INVITATION_DENY_REASON_CLAN_IS_FULL':
																											alreadyInAnotherClan 	? 'IDS_CLAN_INVITATION_DENY_REASON_PLAYER_ALREADY_IN_CLAN'
																																	: '', 
																									_isInBattle: _isBattleStats} 
																								: null"/>
				<style>
					<backgroundColor value="0x01000000"/>
				</style>
				<styleClass value="$ContextMenuListItem"/>
				<block>
					<styleClass value="$Fullsize"/>
					<block className="MenuItem">
						<styleClass value="$Fullsize"/>
						<block className="dock_submenu_item" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$ContextMenuListItemContent"/>
							<bind name="text" value="'IDS_INVITATION_TO_CLAN'"/>
						</block>
					</block>
					<bind name="style" value="'hitTest'; (alreadyInAnotherClan || noFreePlacesInClan) ? false : true"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="isDivisionControlsEnable"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<bind name="visible" value="_selfPlayer.isDivisionCommander &amp;&amp; _player.isInSameDivision"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="style" value="'alpha'; (_selfPlayer.isAlive) ? 1 : 0.5"/>
					<block>
						<styleClass value="$ContextMenuListItem"/>
						<block className="MenuItem">
							<styleClass value="$Fullsize"/>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$FullsizeAbsolute"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$ContextMenuListItemContent"/>
								<bind name="text" value="'IDS_APPOINT_PLAYER_TO_COMMANDER'"/>
							</block>
						</block>
						<bind name="action" value="'click'; 'changeCommander'; {playerId: _player.id}"/>
					</block>
					<block>
						<styleClass value="$ContextMenuListItem"/>
						<block className="MenuItem">
							<styleClass value="$Fullsize"/>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$FullsizeAbsolute"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$ContextMenuListItemContent"/>
								<bind name="text" value="'IDS_EXCLUDE_PLAYER_OUT_OF_DIVISION'"/>
							</block>
						</block>
						<bind name="action" value="'click'; 'kickPlayerFromDivision'; {playerId: _player.id}"/>
					</block>
					<block>
						<bind name="visible" value="!(_selfPlayer.isAlive)"/>
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<backgroundColor value="0x0100000"/>
						</style>
						<bind name="tooltip" value="'SimpleWarningTooltip'; !(_selfPlayer.isAlive) ? {_text: tr('IDS_DIVISION_MANAGEMENT_LOCKED_FOR_DESTROYED'), _isInBattle: _isBattleStats} : null"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="!(_player.isInSameDivision)"/>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<bind name="visible" value="(!(_player.isInSameDivision) &amp;&amp; !(playerInvitationData))"/>
						<bind name="style" value="'alpha'; (invitationDisableReason == 'no_reason') ? 1 : 0.5"/>
						<bind name="tooltip" value="'SimpleWarningTooltip'; (invitationDisableReason != 'no_reason') ? {_text: invitationDisableReason, _isInBattle: _isBattleStats} : null"/>
						<style>
							<backgroundColor value="0x01000000"/>
						</style>
						<styleClass value="$ContextMenuListItem"/>
						<block>
							<styleClass value="$Fullsize"/>
							<bind name="style" value="'hitTest';  (invitationDisableReason == 'no_reason') ? true : false"/>
							<block className="MenuItem">
								<styleClass value="$Fullsize"/>
								<block className="dock_submenu_item" type="native">
									<styleClass value="$FullsizeAbsolute"/>
								</block>
								<block type="text">
									<styleClass value="$TextDefault"/>
									<styleClass value="$MiddleVAligned"/>
									<styleClass value="$ContextMenuListItemContent"/>
									<bind name="text" value="'IDS_INVITE_IN_DIVISION'"/>
								</block>
							</block>
						</block>
						<bind name="action" value="'click'; (invitationDisableReason == 'no_reason') ? 'inviteToDivision' : ''; {playerId: _player.id, playerName: _player.name, inviteType: InviteType.COMMON}"/>
					</block>
					<block>
						<bind name="visible" value="!!(playerInvitationData)"/>
						<styleClass value="$ContextMenuListItem"/>
						<block className="MenuItem">
							<styleClass value="$Fullsize"/>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$FullsizeAbsolute"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$ContextMenuListItemContent"/>
								<bind name="text" value="'IDS_RECALL_INVITATION'"/>
							</block>
						</block>
						<bind name="action" value="'click'; 'revokeInvitationToDivision'; {id: playerInvitationData.id}"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginTop value="3px"/>
						<marginBottom value="2px"/>
						<marginLeft value="-2px"/>
						<marginRight value="-2px"/>
					</style>
					<block className="HorizontalDivider">
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<width value="100%"/>
							<height value="3px"/>
						</style>
						<block className="divider_h" type="native">
							<styleClass value="$Fullsize"/>
						</block>
					</block>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="!(_isBattleLoading) &amp;&amp; !(isBot)"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="name" value="'id_complain'"/>
					<bind name="instance" value="'PlayerMenuItemExpanded'; 	{ 	_text: 'IDS_COMPLAIN', _battleType: _battleType, _isInBattle: _isBattleStats,
																_wantPraisePlayer: false, _evaluationLimitsComplain: evaluationLimits.complain,
																_player: _player, _isInPBS: _isInPBS, _playerDbId: _playerDbId, _arenaId: _arenaId, _isInSameDivisionOnStart: isInSameDivisionOnStart, _complaintsAvailable: _complaintsAvailable,
																_sortedBy: isEnemyPlayer ? 'team.enemy.complaint.sorted' : 'team.ally.complaint.sorted', 
															 }"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="name" value="'id_praise'"/>
					<bind name="instance" value="'PlayerMenuItemExpanded'; 	{ 	_text: 'IDS_PRAISE', _battleType: _battleType, _isInBattle: _isBattleStats, 
																_wantPraisePlayer: true, _evaluationLimitsPraise: evaluationLimits.praise,
																_player: _player, _isInPBS: _isInPBS, _playerDbId: _playerDbId, _arenaId: _arenaId, _isInSameDivisionOnStart: isInSameDivisionOnStart, _complaintsAvailable: _complaintsAvailable,
																_sortedBy: isEnemyPlayer ? 'team.enemy.praise.sorted' : 'team.ally.praise.sorted'
															 }"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="(_isBattleStats == true) &amp;&amp; !(isBot)"/>
				<bind name="name" value="'id_mute'"/>
				<style>
					<width value="100%"/>
				</style>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="action" value="'buttonClick'; isTextChatMuted ? 'unmuteUser' : 'muteUser'; {id: _player.id}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="7px"/>
						<hitTest value="false"/>
					</style>
					<block className="icon_text_chat_small" type="native">
						<style>
							<top value="6px"/>
							<marginRight value="4px"/>
						</style>
						<bind name="gotoAndStop!" value="(isTextChatMuted ? 'muted' : 'on')"/>
					</block>
					<block type="text">
						<style>
							<width value="100%"/>
							<marginBottom value="3px"/>
							<hitTest value="false"/>
							<marginRight value="4px"/>
							<leading value="-3"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="class" value="isTextChatMuted	? '$FontColorUnready'
													: '$FontColorWhite'"/>
						<bind name="text" value="isTextChatMuted ? 'IDS_UNMUTE_PLAYER_TEXT_CHAT' : 'IDS_MUTE_PLAYER_TEXT_CHAT'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="(canBeInChat &amp;&amp; !(_isInPBS) &amp;&amp; !(isBot))"/>
				<bind name="name" value="'id_mute_voice'"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="watch" value="'voiceChatMenuText'; 	!(_player.isInVoiceChat) 	? 'IDS_PLAYER_IS_NOT_AVAILABLE_IN_VOICE_CHAT' :
												_player.isMuted				? 'IDS_UNMUTE_PLAYER_VOICE_CHAT'
																			: 'IDS_MUTE_PLAYER_VOICE_CHAT'"/>
				<bind name="watch" value="'state'; 	!(_player.isInVoiceChat)	? 'disabled' :
									_player.isMuted				? 'muted'
																: 'speak'"/>
				<bind name="style" value="'alpha'; !(_player.isInVoiceChat)	? 0.9 : 1"/>
				<bind name="style" value="'hitTest'; !(_player.isInVoiceChat)	? false : true"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="action" value="'buttonClick'; 'toggleVoice'; {playerName: _player.pureName, nickName: _player.name}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="7px"/>
						<hitTest value="false"/>
					</style>
					<block className="icon_voice_chat_small" type="native">
						<style>
							<marginTop value="6px"/>
							<marginRight value="4px"/>
						</style>
						<bind name="gotoAndStop!" value="state"/>
					</block>
					<block type="text">
						<style>
							<width value="100%"/>
							<marginBottom value="3px"/>
							<hitTest value="false"/>
							<marginRight value="4px"/>
							<leading value="-3"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="class" value="	!(_player.isInVoiceChat)	? '$FontColorUnready' :
									_player.isMuted				? '$FontColorUnready'
																: '$FontColorWhite'"/>
						<bind name="text" value="voiceChatMenuText"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="!(isBot) &amp;&amp; ((canBeInChat &amp;&amp; _isBattleLoading) || !_isBattleLoading)"/>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="2px"/>
					<marginLeft value="-2px"/>
					<marginRight value="-2px"/>
				</style>
				<block className="HorizontalDivider">
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<width value="100%"/>
						<height value="3px"/>
					</style>
					<block className="divider_h" type="native">
						<styleClass value="$Fullsize"/>
					</block>
				</block>
			</block>
			<bind name="dataRefDH" value="'contactsGroups'; 'dataHub.chat.ref.chat.contactsGroups.ref.items'"/>
			<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
			<bind name="var" value="{isChatServerAvailable: false}"/>
			<bind name="watchDH" value="'isChatServerAvailable'; ['chat.evConnected', 'chat.evDisConnected']; chat.isConnected"/>
			<block>
				<bind name="visible" value="!(isBot)"/>
				<style>
					<backgroundColor value="0x01000000"/>
					<width value="100%"/>
				</style>
				<bind name="style" value="'alpha'; isChatServerAvailable ? 1 : 0.5"/>
				<bind name="tooltip" value="'SimpleWarningTooltip'; !(isChatServerAvailable) ? {_text: tr('IDS_CONTACT_DISABLE_REASON_SERVER_CHAT_DISABLED'), _isInBattle: _isBattleStats} : null"/>
				<block>
					<styleClass value="$ContextMenuListItem"/>
					<bind name="visible" value="((groupIdsOfAccount==null) &amp;&amp; !(isIgnored))"/>
					<bind name="style" value="'hitTest';  isChatServerAvailable ? true : false"/>
					<block className="MenuItem">
						<styleClass value="$Fullsize"/>
						<block className="dock_submenu_item" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$ContextMenuListItemContent"/>
							<bind name="text" value="'IDS_ADD_TO_CONTACTS'"/>
						</block>
					</block>
					<bind name="action" value="'click'; 'addContact'; {dbId: accountDbId}"/>
				</block>
				<block>
					<styleClass value="$ContextMenuListItem"/>
					<bind name="visible" value="((groupIdsOfAccount!=null) &amp;&amp; !(isIgnored))"/>
					<bind name="style" value="'hitTest';  isChatServerAvailable ? true : false"/>
					<block className="MenuItemWithAction">
						<styleClass value="$Fullsize"/>
						<block className="dock_submenu_item" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$ContextMenuListItemContent"/>
							<bind name="text" value="'IDS_REMOVE_FROM_CONTACTS'"/>
						</block>
						<bind name="action" value="'click'; 'removeContact'; {dbId: accountDbId}"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="!(isIgnored) &amp;&amp; ((canAddGroupEntitiesId.length &gt; 0) &amp;&amp; (contactsGroups.length &gt; 1))"/>
					<bind name="style" value="'hitTest'; isChatServerAvailable ? true : false"/>
					<styleClass value="$ContextMenuListItem"/>
					<block className="MenuItem">
						<styleClass value="$Fullsize"/>
						<block className="dock_submenu_item" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$ContextMenuListItemContent"/>
							<bind name="text" value="'IDS_ADD_TO_GROUP'"/>
						</block>
					</block>
					<block className="button_expand_h" type="native">
						<style>
							<position value="absolute"/>
							<right value="6px"/>
						</style>
						<styleClass value="$MouseDisable"/>
						<styleClass value="$MiddleVAligned"/>
					</block>
					<bind name="tooltip" value="'MoveToGroupContextSubMenu'; {_entityAccountId: playerEntityId, canAddGroupEntitiesId: canAddGroupEntitiesId, _dropDown: false, _isInBattle: _isBattleStats}; 7"/>
				</block>
				<block>
					<styleClass value="$ContextMenuListItem"/>
					<bind name="style" value="'hitTest'; isChatServerAvailable ? true : false"/>
					<block className="MenuItem">
						<styleClass value="$Fullsize"/>
						<block className="dock_submenu_item" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$ContextMenuListItemContent"/>
							<bind name="text" value="(!isIgnored) ? 'IDS_IGNORE_PLAYER' : 'IDS_NOT_IGNORE_PLAYER'"/>
						</block>
					</block>
					<bind name="action" value="'click'; 'userIgnoreContact'; {dbId: accountDbId, ignore: !(isIgnored)}"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(isBot == true)"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<style>
					<width value="100%"/>
					<marginLeft value="7px"/>
					<marginBottom value="3px"/>
					<hitTest value="false"/>
					<marginRight value="4px"/>
					<leading value="-3"/>
					<alpha value="0.7"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="'IDS_NO_AVAILABLE_ACTIONS'"/>
			</block>
		</block>
	</block>
	<block className="PlayerMenuItemExpanded">
		<styleClass value="$ContextMenuListItem"/>
		<block className="MenuItem">
			<styleClass value="$Fullsize"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<bind name="text" value="_text"/>
			</block>
		</block>
		<block className="button_expand_h" type="native">
			<style>
				<position value="absolute"/>
				<right value="6px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MouseDisable"/>
		</block>
		<bind name="tooltip" value="'PlayerSubMenu'; {	_battleType: _battleType, _isInBattle: _isInBattle, _sortedBy: _sortedBy, _player: _player,
										_isInPBS: _isInPBS, _playerDbId: _playerDbId, _arenaId: _arenaId, _wantPraisePlayer: _wantPraisePlayer,
										_evaluationLimitsComplain: _evaluationLimitsComplain, _evaluationLimitsPraise: _evaluationLimitsPraise,
										_isInSameDivisionOnStart: _isInSameDivisionOnStart, _complaintsAvailable: _complaintsAvailable};
										TooltipBehaviour.submenu"/>
	</block>
	<block className="PlayerSubMenu">
		<bind name="watch" value="'isEvaluationDisabledReason';	(_battleType == BattleTypes.CLAN_BATTLE) 		? _wantPraisePlayer		? 'IDS_PRAISE_DISABLED_FOR_CLAN_BATTLES' 
																														: 'IDS_COMPLAIN_DISABLED_FOR_CLAN_BATTLES' 
																								: 
												(_battleType == BattleTypes.TRAINING_BATTLE)							? 'IDS_CUSTOM_ROOM' :
												(_evaluationLimitsComplain == 0) || (_evaluationLimitsPraise == 0)		? 'IDS_DAY_LIMIT_IS_OFF' :
												_isInSameDivisionOnStart						? _wantPraisePlayer 	? 'IDS_PRAISE_DISABLED_FOR_DIVISION_MEMBERS'
																														: 'IDS_COMPLAIN_DISABLED_FOR_DIVISION_MEMBERS' :
												!(_complaintsAvailable)							? _wantPraisePlayer		? 'IDS_PRAISE_TIMEOUT'
																														: 'IDS_COMPLAIN_TIMEOUT'
																								: false"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<style>
			<width value="270px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'MenuTooltipBackground'; { _isInBattle: _isInBattle }"/>
		</block>
		<block>
			<bind name="collectionRepeatDH" value="CC.playerEvaluationInfo; 'PlayerSubMenuItem'; _sortedBy; 
									{ 	_isEvaluationDisabledReason: isEvaluationDisabledReason, _isInPBS: _isInPBS,
									 	_playerDbId: _playerDbId, _arenaId: _arenaId, _player: _player}"/>
		</block>
		<block>
			<bind name="instance" value="'WarningsAndDisableReasons'; { 	_evaluationLimitsComplain: _evaluationLimitsComplain, 
														_evaluationLimitsPraise: _evaluationLimitsPraise, 
														_isEvaluationDisabledReason: isEvaluationDisabledReason }"/>
		</block>
	</block>
	<block className="PlayerSubMenuItem">
		<bind name="dataRefDH" value="'infoEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'evaluationType'; 	[]; infoEntity.playerEvaluationInfo.evaluationType"/>
		<bind name="watchDH" value="'evaluationTopic'; 	[]; infoEntity.playerEvaluationInfo.evaluationTopic"/>
		<bind name="watchDH" value="'messageIDS'; 		[]; infoEntity.playerEvaluationInfo.messageIDS"/>
		<style>
			<width value="270px"/>
		</style>
		<styleClass value="$ContextMenuListItem"/>
		<bind name="name" value="'id_' + messageIDS"/>
		<bind name="style" value="'alpha'; _isEvaluationDisabledReason ? 0.5 : 1"/>
		<bind name="action" value="'buttonClick'; 'sendEvaluation'; _isInPBS ? {type: evaluationType, topic: evaluationTopic, accountDBID: _playerDbId, arenaId: _arenaId}
															: {type: evaluationType, topic: evaluationTopic, nickname: _player.name, arenaId: _arenaId}"/>
		<block className="dock_submenu_item" type="native">
			<bind name="style" value="'hitTest'; _isEvaluationDisabledReason ? false : true"/>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<maxWidth value="252"/>
				<marginLeft value="6px"/>
			</style>
			<bind name="text" value="messageIDS"/>
		</block>
	</block>
	<block className="WarningsAndDisableReasons">
		<bind name="watch" value="'isEvaluationDisabledReason'; 	_isEvaluationDisabledReason "/>
		<bind name="watch" value="'disableReasonComplain'; 		(_evaluationLimitsComplain &gt; 0) &amp;&amp; !(_isEvaluationDisabledReason)"/>
		<bind name="watch" value="'disableReasonPraise'; 		(_evaluationLimitsPraise &gt; 0) &amp;&amp; !(_isEvaluationDisabledReason) "/>
		<bind name="watch" value="'warningTextClass'; 	(disableReasonComplain || disableReasonPraise) 	? '$FontColorUnready' : 
										isEvaluationDisabledReason 						? '$FontColorCompareNegative'
																						: '$None'"/>
		<bind name="watch" value="'warningText'; 		disableReasonComplain 							? (tr('IDS_DAY_LIMIT') + ' ' + _evaluationLimitsComplain) :
										disableReasonPraise 							? (tr('IDS_DAY_LIMIT') + ' ' + _evaluationLimitsPraise) :
										isEvaluationDisabledReason 						? isEvaluationDisabledReason
																						: ''"/>
		<style>
			<marginLeft value="9px"/>
			<marginBottom value="6px"/>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="visible" value="disableReasonComplain || disableReasonPraise"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="4px"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="visible" value="isEvaluationDisabledReason"/>
			<block className="icon_warning_red" type="native">
				<style>
					<marginTop value="4px"/>
				</style>
			</block>
		</block>
		<block type="text">
			<params>
				<param name="name" value="warningsAndDisableReasons"/>
			</params>
			<style>
				<maxWidth value="240"/>
				<marginLeft value="1px"/>
			</style>
			<styleClass value="$TextDefault"/>
			<bind name="class" value="warningTextClass"/>
			<bind name="text" value="warningText"/>
		</block>
	</block>
	<block className="UIListVoiceTextChatIcons">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'VoiceChatState'"/>
		<bind name="primaryEntityDH" value="'playerEntity'; CC.avatar; _playerId"/>
		<bind name="watchDH" value="'pureName';			[]; playerEntity.avatar.pureName"/>
		<bind name="watchDH" value="'isTextChatMuted'; ['playerEntity.avatar.evMuteChanged']; playerEntity.avatar.mute"/>
		<bind name="watchDH" value="'relation'; 			['playerEntity.relation.evChanged']; playerEntity.relation.value"/>
		<bind name="watch" value="'isSelf'; (relation == 0)"/>
		<bind name="watch" value="'playerCanBeInChat';	((_battleType == BattleTypes.CLAN_BATTLE) &amp;&amp; VoiceChatState.enabled) ||
										((_isInSameDivision &amp;&amp; VoiceChatState.enabled) &amp;&amp;	((_battleType == BattleTypes.RANDOM_BATTLE) ||
																							(_battleType == BattleTypes.COOPERATIVE_BATTLE) ||
																							(_battleType == BattleTypes.PVE_BATTLE)))"/>
		<bind name="watch" value="'selfCanBeInChat';	((_battleType == BattleTypes.CLAN_BATTLE) &amp;&amp; isSelf) ||
									((isSelf &amp;&amp; _selfPlayerDivisionId) &amp;&amp;  ((_battleType == BattleTypes.RANDOM_BATTLE) ||
																			(_battleType == BattleTypes.COOPERATIVE_BATTLE) ||
																			(_battleType == BattleTypes.PVE_BATTLE)))"/>
		<bind name="watch" value="'canBeInChat'; (playerCanBeInChat || selfCanBeInChat)"/>
		<bind name="name" value="isTextChatMuted ? 'mute_' + pureName
								: 'not_mute_' + pureName"/>
		<block>
			<bind name="visible" value="canBeInChat"/>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="canBeInChat &amp;&amp; isTextChatMuted &amp;&amp; (_isSpeaking || _isVoiceChatMuted || !(_isInVoiceChat)); 0.15; {alpha: 1, top: 9}; {alpha: 1, top: 3}; {alpha: 1, top: 9}; 1"/>
			<bind name="watch" value="'state';	!(_isInVoiceChat)	? 'disabled' :
								_isVoiceChatMuted	? 'muted' :
								_isSpeaking			? 'speak'
													: null"/>
			<block>
				<bind name="transition" value="state; 0.1; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1"/>
				<block className="icon_voice_chat_small" type="native">
					<bind name="gotoAndStop!" value="state"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="canBeInChat &amp;&amp; isTextChatMuted &amp;&amp; (_isSpeaking || _isVoiceChatMuted || !(_isInVoiceChat)); 0.15; {alpha: 1, top: 8}; {alpha: 1, top: 14}; {alpha: 1, top: 8}; 1"/>
			<block>
				<bind name="transition" value="isTextChatMuted; 0.1; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1"/>
				<block className="icon_text_chat_small" type="native">
					<bind name="gotoAndStop!" value="'muted')"/>
				</block>
			</block>
		</block>
	</block>
	<css name="$DefaultTooltipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: 6,
		bottomOffset: 26
	}"/>
	</css>
	<css name="$DefaultInstantTooltipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.06,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.06,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: 6,
		bottomOffset: 26
	}"/>
	</css>
	<css name="$DefaultMenuBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.07,
		appearOffset: 10.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: 10.0,
		tinyOffset: 0,
		rightOffset: 0,
		bottomOffset: 0
	}"/>
	</css>
	<css name="$DefaultSubMenuBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.15,
		appearOffset: 0.0,
		disappearDelay: 0.35,
		disappearDuration: 0.1,
		disappearOffset: 5.0,
		tinyOffset: 0,
		rightOffset: 0,
		bottomOffset: 0
	}"/>
	</css>
	<css name="$VerticalInfotipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: 0,
		bottomOffset: 0
	}"/>
	</css>
	<css name="$VerticalInfotipBehaviourCenter">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: -8,
		bottomOffset: 0,
		screenBottomOffset: 26,
		isTipCenter: true
	}"/>
	</css>
	<css name="$VerticalInfotipBehaviourCenterUpper">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: -8,
		bottomOffset: 0,
		isTipCenter: true,
		fixedDirectionUp: true
	}"/>
	</css>
	<css name="$HorizontalInfotipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 0,
		rightOffset: -10,
		bottomOffset: 0,
		isTipCenter: true
	}"/>
	</css>
	<css name="$FightButtonTooltipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.0,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: 6,
		bottomOffset: 26
	}"/>
	</css>
	<css name="$WarningTooltipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: 6,
		bottomOffset: 26
	}"/>
	</css>
	<css name="$ModuleTreeTooltipBehaviour">
		<userData value="{
		appearDelay: 0.05,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 2,
		rightOffset: 6,
		bottomOffset: 26
	}"/>
	</css>
	<css name="$SmallListItem">
		<width value="100%"/>
		<height value="18px"/>
	</css>
	<css name="$SmallListItemValue">
		<position value="absolute"/>
		<right value="0px"/>
	</css>
	<css name="$DefaultTooltipWidth">
		<width value="300px"/>
	</css>
	<block className="EmptyLine"/>
	<block className="MouseInstructionTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block>
			<bind name="visible" value="_multiParagraphArray.length &gt; 0"/>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<style>
				<marginTop value="9px"/>
			</style>
			<bind name="style" value="'marginBottom'; _marginBottomParagraphs 												? _marginBottomParagraphs :
									(_multiParagraphArray.length &gt; 0) &amp;&amp; (_mouseInstructions.length &gt; 0)	? '0px'
																											: '5px'"/>
			<bind name="repeat" value="_multiParagraphArray; 'RepeatParagraphItem'; {_maxWidth: _maxWidth, _marginBottom: _marginBottom}"/>
		</block>
		<block>
			<bind name="visible" value="(_multiParagraphArray.length &gt; 0) &amp;&amp; (_mouseInstructions.length &gt; 0)"/>
			<style>
				<width value="100%"/>
			</style>
			<block className="HorizontalDivider">
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<width value="100%"/>
					<height value="3px"/>
				</style>
				<block className="divider_h" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="_mouseInstructions.length &gt; 0"/>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<bind name="repeat" value="_mouseInstructions; 'MouseInstructionRepeater'; {_maxWidth: _maxWidth, _lastIndex: _mouseInstructions.length - 1}"/>
		</block>
	</block>
	<block className="SimpleTooltip">
		<block className="SimpleTooltipTemplate">
			<styleClass value="$DefaultTooltipBehaviour"/>
			<block className="DeclareBlurLayer">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="transparentPixel" type="native">
					<bind name="blurLayer" value="0"/>
				</block>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block className="BlurMap">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<height value="100%"/>
					<hitTest value="false"/>
				</style>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="mc_blurmap5" type="native">
					<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
					<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
					<style>
						<width value="100%"/>
						<height value="100%"/>
					</style>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block className="hint_panel" type="native">
				<style>
					<position value="absolute"/>
				</style>
				<styleClass value="$Fullsize"/>
			</block>
			<block type="text">
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="style" value="'leading'; tooltipText.length &gt; 40 ? 0 : -3"/>
				<style>
					<maxWidth value="300"/>
				</style>
				<bind name="text" value="tooltipText"/>
			</block>
		</block>
	</block>
	<block className="SubTextTooltip">
		<block className="SubTextTooltipTemplate">
			<styleClass value="$DefaultTooltipBehaviour"/>
			<block className="DeclareBlurLayer">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="transparentPixel" type="native">
					<bind name="blurLayer" value="0"/>
				</block>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block className="BlurMap">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<height value="100%"/>
					<hitTest value="false"/>
				</style>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="mc_blurmap5" type="native">
					<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
					<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
					<style>
						<width value="100%"/>
						<height value="100%"/>
					</style>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block className="hint_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<style>
						<leading value="-3"/>
						<maxWidth value="260"/>
					</style>
					<bind name="text" value="tooltipText"/>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<style>
						<marginTop value="3px"/>
						<leading value="-3"/>
						<maxWidth value="260"/>
					</style>
					<bind name="text" value="tooltipSubText"/>
				</block>
			</block>
		</block>
	</block>
	<block className="SimpleWarningTooltip">
		<styleClass value="$WarningTooltipBehaviour"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="5px"/>
					<marginRight value="2px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<style>
					<maxWidth value="240"/>
					<leading value="-3"/>
				</style>
				<bind name="text" value="_text"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="MultipleWarningsTooltip">
		<styleClass value="$WarningTooltipBehaviour"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="5px"/>
					<marginRight value="2px"/>
				</style>
			</block>
			<block>
				<bind name="repeat" value="_warningsArr; 'SimpleWarningText'; {}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="SimpleWarningText">
		<block type="text">
			<styleClass value="$TextDefault"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<style>
				<maxWidth value="240"/>
				<leading value="-3"/>
			</style>
			<bind name="text" value="$value"/>
		</block>
	</block>
	<block className="StartButtonWarningsTooltip">
		<styleClass value="$WarningTooltipBehaviour"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="5px"/>
					<marginRight value="2px"/>
				</style>
			</block>
			<block>
				<params>
					<param name="name" value="MultipleWarningsTooltip"/>
				</params>
				<bind name="repeat" value="_warningsArr; 'StartButtonWarningText'; {}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="StartButtonWarningText">
		<bind name="firstEntityDH" value="'clanCurrentSeasonEntity'; CC.clanBattleSeason; 'current'"/>
		<bind name="watchDH" value="'cbs_primeTimeStartTime'; ['clanCurrentSeasonEntity.clanBattleSeason.evChanged']; clanCurrentSeasonEntity.clanBattleSeason.primeTimeStartTime"/>
		<bind name="watchDH" value="'cbs_primeTimeFinishTime'; ['clanCurrentSeasonEntity.clanBattleSeason.evChanged']; clanCurrentSeasonEntity.clanBattleSeason.primeTimeFinishTime"/>
		<bind name="countdown" value="cbs_primeTimeStartTime; 'startPrimeTimeText'; 'HIGHEST,WITH_DAYS'; 'timeoutEvent'"/>
		<bind name="countdown" value="cbs_primeTimeFinishTime; 'finishPrimeTimeText'; 'HIGHEST,WITH_DAYS'; 'timeoutEvent'"/>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<style>
				<maxWidth value="240"/>
				<leading value="-3"/>
			</style>
			<bind name="text" value="$value == 'IDS_CLAN_BATTLES_PRIMETIME_STARTS_IN'	?	subst('IDS_CLAN_BATTLES_PRIMETIME_STARTS_IN', [], {timeLeft: startPrimeTimeText}) 
																		:	$value"/>
		</block>
	</block>
	<block className="TooltipBackground">
		<styleClass value="$FullsizeAbsolute"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'DeclareBlurLayer'; _isInBattle ?  null : {}"/>
			<bind name="instance" value="'BlurMap'; _isInBattle ? null : {}"/>
		</block>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="(optionData.contrast == true || _isInBattle == true)"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="!(_isInBattle)"/>
			<block className="hint_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
		</block>
	</block>
	<block className="TimerTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block type="text">
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<styleClass value="$TextHeader"/>
			<bind name="class" value="'$FontSizeHeader4'"/>
			<bind name="pureText" value="_text"/>
		</block>
	</block>
	<block className="PlayerTooltipInvitationCountdown">
		<bind name="countdown" value="_expirationTime; 'countdownText'; 'mm:ss'"/>
		<style>
			<width value="100%"/>
		</style>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="4px"/>
				<marginLeft value="7px"/>
				<marginRight value="4px"/>
				<marginBottom value="3px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginRight value="6px"/>
				</style>
				<block>
					<style>
						<marginLeft value="4px"/>
					</style>
					<bind name="instance" value="'FormationPlayerIcon'; {_isEmptySlot: true, _formationType: _formationType}"/>
				</block>
				<block type="text">
					<style>
						<marginLeft value="4px"/>
						<maxWidth value="158"/>
						<leading value="-3"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontColorWhite'"/>
					<bind name="text" value="_text"/>
				</block>
				<block type="text">
					<style>
						<top value="-4px"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<styleClass value="$AlignRight"/>
					<bind name="class" value="'$FontSizeHeader6'"/>
					<bind name="pureText" value="'-' + countdownText"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="DropdownInfotip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'shipOverview'"/>
		<bind name="transition" value="shipOverview.enabled; shipOverview.enabled ? 0.4 : 0.25; {alpha: 1}; {alpha: 0}; {alpha: 1}; 2; !(shipOverview.enabled) &amp;&amp; !(inPort) ? 0.15 : 0.5"/>
		<bind name="style" value="'hitTest'; !(shipOverview.enabled)"/>
		<style>
			<width value="1px"/>
		</style>
		<bind name="style" value="'width'; _width ? _width : '100px'"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
			<block className="DeclareBlurLayer">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="transparentPixel" type="native">
					<bind name="blurLayer" value="0"/>
				</block>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block className="BlurMap">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<height value="100%"/>
					<hitTest value="false"/>
				</style>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="mc_blurmap5" type="native">
					<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
					<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
					<style>
						<width value="100%"/>
						<height value="100%"/>
					</style>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
		</block>
		<block className="dock_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-9px"/>
				<marginRight value="-14px"/>
				<marginBottom value="-19px"/>
				<marginLeft value="-14px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="_dropdownContentElement; { _menuScope: _menuScope }"/>
		</block>
	</block>
	<block className="InstructionParagraph">
		<style>
			<width value="100%"/>
		</style>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<style>
				<width value="100%"/>
				<alpha value="0.9"/>
			</style>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 220"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="InstructionMultiParagraph">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
		</style>
		<block className="icon_instruction" type="native">
			<bind name="gotoAndStop!" value="_type"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="-3px"/>
			</style>
			<bind name="repeat" value="_instructionArray; 'InstructionParagraph'"/>
		</block>
	</block>
	<block className="InstructionWarning">
		<style>
			<flow value="horizontal"/>
		</style>
		<block className="icon_warning_orange" type="native"/>
		<block type="text">
			<style>
				<marginTop value="-5px"/>
				<marginLeft value="4px"/>
			</style>
			<styleClass value="$WarningTextOrange"/>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 180"/>
			<bind name="text" value="_instructionText"/>
		</block>
	</block>
	<block className="MouseInstruction">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="visible" value="_type!='no_icon'"/>
			<block className="icon_mouse" type="native">
				<bind name="gotoAndStop!" value="_type"/>
			</block>
		</block>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="style" value="'marginLeft'; (_type=='no_icon') ? '0px' : '4px'"/>
			<style>
				<marginTop value="-2px"/>
			</style>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 180"/>
			<bind name="text" value="_instructionText"/>
		</block>
	</block>
	<block className="MouseInstructionRepeater">
		<bind name="style" value="'marginBottom'; $index != _lastIndex ? '6px' : '0px'"/>
		<bind name="instance" value="'MouseInstruction'; _type == 'warning' ? null : { _type: _type, _instructionText: _instructionText, _maxWidth: _maxWidth}"/>
		<bind name="instance" value="'InstructionWarning'; _type == 'warning' ? {_instructionText: _instructionText, _maxWidth: _maxWidth} : null"/>
	</block>
	<block className="InstructionBigTech">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="style" value="'leading'; _leading ? _leading : 0"/>
			<style>
				<textAlign value="center"/>
			</style>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 500"/>
			<bind name="text" value="_instructionText"/>
		</block>
	</block>
	<block className="DockTopMenuLinkText">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<block type="text">
			<styleClass value="$TextDockNano"/>
			<bind name="class" value="rollOver &amp;&amp; !(mouseDown) ? '$FontColorDefault' : '$None'"/>
			<bind name="text" value="_label"/>
		</block>
	</block>
	<block className="EmptyStatusParagraph">
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="_sizeClass ? _sizeClass : '$FontSizeLarge'"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<style>
				<textAlign value="center"/>
			</style>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 250"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="InvertableTextLine">
		<block type="text">
			<bind name="name" value="_name"/>
			<bind name="class" value="_invert ? _normalClass : _invertedClass"/>
			<style>
				<position value="absolute"/>
				<alpha value="0.35"/>
				<top value="1px"/>
			</style>
			<bind name="style" value="'multiline'; _width ? false : true"/>
			<bind name="style" value="'width'; _width ? _width : 'auto'"/>
			<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
			<bind name="text" value="_text"/>
		</block>
		<block type="text">
			<bind name="class" value="_invert ? _normalClass : _invertedClass"/>
			<style>
				<position value="absolute"/>
				<alpha value="0.1"/>
				<top value="-1px"/>
			</style>
			<bind name="style" value="'multiline'; _width ? false : true"/>
			<bind name="style" value="'width'; _width ? _width : 'auto'"/>
			<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
			<bind name="text" value="_text"/>
		</block>
		<block type="text">
			<bind name="class" value="_invert ? _normalClass : _invertedClass"/>
			<style>
				<position value="absolute"/>
				<alpha value="0.2"/>
				<left value="1px"/>
			</style>
			<bind name="style" value="'multiline'; _width ? false : true"/>
			<bind name="style" value="'width'; _width ? _width : 'auto'"/>
			<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
			<bind name="text" value="_text"/>
		</block>
		<block type="text">
			<bind name="class" value="_invert ? _normalClass : _invertedClass"/>
			<style>
				<position value="absolute"/>
				<alpha value="0.2"/>
				<left value="-1px"/>
			</style>
			<bind name="style" value="'multiline'; _width ? false : true"/>
			<bind name="style" value="'width'; _width ? _width : 'auto'"/>
			<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
			<bind name="text" value="_text"/>
		</block>
		<block type="text">
			<bind name="class" value="_invert ? _invertedClass : _normalClass"/>
			<bind name="style" value="'multiline'; _width ? false : true"/>
			<bind name="style" value="'width'; _width ? _width : 'auto'"/>
			<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="ResizeFrame">
		<styleClass value="$FullsizeAbsolute"/>
		<block>
			<bind name="visible" value="!(restrict.up)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_UP'"/>
			<style>
				<position value="absolute"/>
				<width value="100%"/>
				<height value="6px"/>
				<top value="-3px"/>
				<backgroundColor value="0x01ff0000"/>
			</style>
			<params>
				<param name="name" value="grip_top"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.down)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_DOWN'"/>
			<style>
				<position value="absolute"/>
				<width value="100%"/>
				<height value="6px"/>
				<bottom value="-3px"/>
				<backgroundColor value="0x01ff0000"/>
			</style>
			<params>
				<param name="name" value="grip_bottom"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.left)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_LEFT'"/>
			<style>
				<position value="absolute"/>
				<width value="6px"/>
				<height value="100%"/>
				<left value="-3px"/>
				<backgroundColor value="0x01ff0000"/>
			</style>
			<params>
				<param name="name" value="grip_left"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.right)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_RIGHT'"/>
			<style>
				<position value="absolute"/>
				<width value="6px"/>
				<height value="100%"/>
				<right value="-3px"/>
				<backgroundColor value="0x01ff0000"/>
			</style>
			<params>
				<param name="name" value="grip_right"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.up || restrict.left)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_UP_LEFT'"/>
			<style>
				<position value="absolute"/>
				<width value="12px"/>
				<height value="12px"/>
				<top value="-5px"/>
				<left value="-5px"/>
				<backgroundColor value="0x0100ff00"/>
			</style>
			<params>
				<param name="name" value="grip_top_left"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.up || restrict.right)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_UP_RIGHT'"/>
			<style>
				<position value="absolute"/>
				<width value="12px"/>
				<height value="12px"/>
				<top value="-5px"/>
				<right value="-5px"/>
				<backgroundColor value="0x0100ff00"/>
			</style>
			<params>
				<param name="name" value="grip_top_right"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.down || restrict.left)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_DOWN_LEFT'"/>
			<style>
				<position value="absolute"/>
				<width value="12px"/>
				<height value="12px"/>
				<bottom value="-5px"/>
				<left value="-5px"/>
				<backgroundColor value="0x0100ff00"/>
			</style>
			<params>
				<param name="name" value="grip_bottom_left"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="!(restrict.down || restrict.right)"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_DOWN_RIGHT'"/>
			<style>
				<position value="absolute"/>
				<width value="12px"/>
				<height value="12px"/>
				<bottom value="-5px"/>
				<right value="-5px"/>
				<backgroundColor value="0x0100ff00"/>
			</style>
			<params>
				<param name="name" value="grip_bottom_right"/>
			</params>
		</block>
	</block>
	<css name="$WarningTextRed">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF6600"/>
	</css>
	<css name="$WarningTextOrange">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="15"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF9933"/>
	</css>
	<block className="WarningMessage">
		<bind name="appear" value="'addedToStage'; 0.15; _delay; {alpha: 0, top: _startTop ? _startTop : 10}; {alpha: 1, top: 0}; 2"/>
		<block type="text">
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 280"/>
			<bind name="class" value="_highWarning ? '$WarningTextRed' : '$WarningTextOrange'"/>
			<style>
				<textAlign value="center"/>
			</style>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="WrongTextInputNotification">
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: _startTop ? _startTop : 10}; {alpha: 1, top: 0}; 2"/>
		<style>
			<width value="100%"/>
			<marginRight value="-1px"/>
			<marginLeft value="-1px"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="1px"/>
				<marginBottom value="0px"/>
			</style>
			<block className="DeclareBlurLayer">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="transparentPixel" type="native">
					<bind name="blurLayer" value="0"/>
				</block>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block className="BlurMapCustom">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<hitTest value="false"/>
				</style>
				<bind name="visible" value="optionData.blurEnabled"/>
				<block className="mc_blurmap3" type="native">
					<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
					<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
					<styleClass value="$Fullsize"/>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
		</block>
		<block className="notification_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="8px"/>
				<marginBottom value="7px"/>
			</style>
			<bind name="instance" value="'WarningMessage'; true	? { _delay: 0.07, _startTop: _startTop, _messageHiglight: _messageHiglight, _maxWidth: _maxWidth, _text: _text}
												: null"/>
		</block>
		<bind name="dispatch" value="'click'; 'hideWrongMessageEv'; {}"/>
	</block>
	<block className="MultiParagraphHelpTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="330px"/>
		</style>
		<bind name="style" value="'width'; _width ? _width : '330px'"/>
		<block className="DeclareBlurLayer">
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<bind name="visible" value="optionData.blurEnabled"/>
			<block className="transparentPixel" type="native">
				<bind name="blurLayer" value="0"/>
			</block>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block className="BlurMap">
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<style>
				<position value="absolute"/>
				<width value="100%"/>
				<height value="100%"/>
				<hitTest value="false"/>
			</style>
			<bind name="visible" value="optionData.blurEnabled"/>
			<block className="mc_blurmap5" type="native">
				<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
				<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
				<style>
					<width value="100%"/>
					<height value="100%"/>
				</style>
				<bind name="blurMap" value="0"/>
			</block>
		</block>
		<block className="GUIContrast">
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<styleClass value="$FullsizeAbsolute"/>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
		</block>
		<block className="hint_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="watch" value="'iconType'; _iconType ? _iconType : 'question'"/>
			<block className="icon_question_mark" type="native">
				<bind name="visible" value="iconType == 'question'"/>
				<style>
					<marginRight value="6px"/>
					<marginTop value="4px"/>
				</style>
			</block>
			<block className="icon_info_big" type="native">
				<bind name="visible" value="iconType == 'info'"/>
				<style>
					<marginRight value="6px"/>
					<marginTop value="4px"/>
				</style>
			</block>
			<block className="mc_icon_ship" type="native">
				<bind name="visible" value="iconType == 'ship' &amp;&amp; _shipType != 'premiumShip'"/>
				<style>
					<marginRight value="6px"/>
					<marginTop value="10px"/>
				</style>
				<bind name="style" value="'marginLeft'; _shipType == 'Destroyer' ? '-2px' : '2px'"/>
				<bind name="gotoAndStop!" value="_shipType"/>
			</block>
			<block type="text">
				<style>
					<top value="1px"/>
				</style>
				<bind name="style" value="'maxWidth'; _width ? _width - 60 : 270"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="class" value="_shipType == 'premiumShip' ? '$FontColorGolden' : '$FontColorWhite'"/>
				<bind name="text" value="_tooltipHeader"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block>
				<style>
					<marginLeft value="12px"/>
					<marginRight value="12px"/>
					<marginTop value="9px"/>
					<marginBottom value="3px"/>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_multiParagraphArray; 'RepeatParagraphItem'; {_maxWidth: _width - 24}"/>
			</block>
		</block>
	</block>
	<block className="RepeatParagraphItem">
		<bind name="style" value="'marginBottom'; _marginBottom ? _marginBottom : '6px'"/>
		<bind name="class" value="_middleAligned ? '$MiddleAligned' : ''"/>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="_class"/>
			<bind name="style" value="'leading'; _leading ? _leading : 0"/>
			<bind name="style" value="'textAlign'; _textAlign ? _textAlign : 'left'"/>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 300"/>
			<bind name="text" value="(_toUpperCase ? toUpperCase(tr(_paragraphText)) : _paragraphText)"/>
			<bind name="substitute" value="	_substitute.mapName ? _substitute.mapName : '';
							_substitute.imageOffset ? _substitute.imageOffset : 0;
							_substitute.map ? _substitute.map : {}"/>
		</block>
	</block>
	<block className="GUIContrast">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<styleClass value="$FullsizeAbsolute"/>
		<block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="optionData.contrast"/>
		</block>
	</block>
	<block className="CheckBox">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="watch" value="'isEnabled'; _disabled != true"/>
		<block className="checkbox_no_label" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="enabled" value="isEnabled"/>
			<bind name="selected" value="switchProperty"/>
		</block>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<style>
				<marginLeft value="23px"/>
				<marginTop value="-3px"/>
				<hitTest value="false"/>
			</style>
			<bind name="style" value="'maxWidth'; _maxTfWidth ? _maxTfWidth : 300"/>
			<bind name="transition" value="(rollOver &amp;&amp; !mouseDown) &amp;&amp; isEnabled; 0.15; {alpha: 0.8}; {alpha: 1}; {alpha: 0.8}; 2"/>
			<bind name="text" value="label"/>
		</block>
	</block>
	<block className="IconSlimClient">
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: _isEventLike ? 'IDS_ENTER_IN_FULL_VERSION_FOR_ANNOUNCE_SHIPS' : 'IDS_ENTER_IN_FULL_VERSION_FOR_SHIPS'}"/>
		<block className="game_downloading" type="native"/>
	</block>
	<block className="ShipTitleWithIconAndSilhouette">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; _shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'shipInfo'; ['shipEntity.ship.evUpdate', 'shipEntity.ship.evCurrentSkinChanged']; shipEntity.ship"/>
		<bind name="watchDH" value="'shipInfo' + 'Slim'; ['shipEntity.slimClientComponent.evUpdate']; shipEntity.slimClientComponent"/>
		<block>
			<block>
				<bind name="instance" value="'ShipTitleWithIconAndLevel'; {_shipID : _shipID}"/>
			</block>
			<block>
				<style>
					<width value="122px"/>
					<height value="22px"/>
					<marginLeft value="12px"/>
					<marginTop value="-2px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathTinyIcon"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ShipTitleWithIconAndLevel">
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; _shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; _shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'shipInfo'; ['shipEntity.ship.evUpdate', 'shipEntity.ship.evCurrentSkinChanged']; shipEntity.ship"/>
		<bind name="watchDH" value="'shipInfo' + 'Slim'; ['shipEntity.slimClientComponent.evUpdate']; shipEntity.slimClientComponent"/>
		<bind name="watchDH" value="'upgradableShipInfo'; ['shipEntity.upgradableShipInfo.evUpdate']; shipEntity.upgradableShipInfo"/>
		<block>
			<style>
				<height value="27px"/>
			</style>
			<block className="icon_wreath" type="native">
				<styleClass value="$MouseDisable"/>
				<style>
					<position value="absolute"/>
					<top value="-1px"/>
				</style>
				<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
				<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
								shipInfo.isPremium 	? 'premium'
													: 'elite'"/>
			</block>
			<block>
				<style>
					<marginLeft value="5px"/>
					<marginTop value="7px"/>
				</style>
				<block className="icon_ship" type="native">
					<styleClass value="$MouseDisable"/>
					<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial 	? shipInfo.subtype + '_P'
																				: shipInfo.subtype"/>
				</block>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="-2px"/>
				</style>
				<block type="text">
					<styleClass value="$FontShipnameWhite"/>
					<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial	? '$FontShipnameGolden'
																		: '$FontShipnameWhite'"/>
					<bind name="text" value="shipInfo.levelRome + ' ' + toUpperCase(tr(shipInfo.nameIDS))"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CharCounter">
		<bind name="transition" value="_string.length &gt; 0; 0.15; {alpha: 0, top:10}; {alpha: 1, top:0}; {alpha: 0, top:10}; 1; 0"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CHARS_LEFT'}"/>
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<bind name="class" value="_string.length &gt; _maxChars ? '$FontColorUnready' : '$FontColorDefault'"/>
			<bind name="style" value="'alpha'; _string.length &gt; _maxChars ? 1 : 0.6"/>
			<bind name="text" value="_maxChars - _string.length"/>
		</block>
	</block>
	<block className="BusyIndicator">
		<bind name="fade" value="_showBusyIndicator; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; 0.3"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<block className="indicator_busy_small" type="native"/>
		</block>
		<block type="text">
			<bind name="visible" value="_label.length &gt; 0"/>
			<styleClass value="$TextDefaultTech"/>
			<bind name="class" value="'$Bold'"/>
			<style>
				<marginLeft value="6px"/>
				<marginTop value="-2px"/>
			</style>
			<bind name="text" value="toUpperCase(tr(_label))"/>
		</block>
	</block>
	<block className="FormationPlayerIcon">
		<style>
			<width value="15px"/>
		</style>
		<block className="formation_player_status" type="native">
			<style>
				<marginTop value="3px"/>
			</style>
			<bind name="gotoAndStop!" value="_isEmptySlot				?	('empty_slot_' + _formationType) :
							isOtherDivision				?	(isCommander	? 'player_ready_other_division_commander'
																			: 'player_ready_other_division') :
							isInBattle &amp;&amp; _isWardog		?	('player_in_battle_' + _formationType + '_merc') :
							isInBattle					?	('player_in_battle_' + _formationType) :
							_isWardog &amp;&amp; isReady		?	('player_ready_' + _formationType + '_merc') :
							_isWardog &amp;&amp; !isReady		?	('player_not_ready_' + _formationType + '_merc') :
							isCommander &amp;&amp; isReady		?	('commander_' + _formationType) :
							isCommander &amp;&amp; !isReady		?	('commander_not_ready_' +_formationType) :
							!isCommander &amp;&amp; isReady		?	('player_ready_' + _formationType) :
							!isCommander &amp;&amp; !isReady	?	('player_not_ready_' + _formationType)
														:	'empty_slot_division'"/>
		</block>
	</block>
	<css name="$TextBackBtn">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0x9CBABA"/>
	</css>
	<block className="BackButton">
		<style>
			<height value="30px"/>
		</style>
		<block className="button_dock" type="native">
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: _text}"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="dispatch" value="'buttonClick'; _event	 ? _event  : null; _eventData	 ? _eventData : {}"/>
			<bind name="action" value="'buttonClick'; _action	 ? _action : null; _actionParams ? _actionParams : {}"/>
			<bind name="request" value="'buttonClick'; _request ? _request : null; _requestParams ? _requestParams : {}"/>
			<params>
				<param name="focusable" value="false"/>
			</params>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<hitTest value="false"/>
			</style>
			<block className="icon_navigate" type="native">
				<bind name="gotoAndStop!" value="'left'"/>
				<style>
					<marginLeft value="6px"/>
				</style>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<marginLeft value="2px"/>
					<marginRight value="7px"/>
				</style>
				<block>
					<style>
						<marginTop value="-4px"/>
					</style>
					<block type="text">
						<styleClass value="$TextBackBtn"/>
						<bind name="class" value="'$FontColorAlmostBlack'"/>
						<style>
							<position value="absolute"/>
							<alpha value="0.4"/>
							<top value="1px"/>
						</style>
						<bind name="text" value="_text"/>
					</block>
					<block type="text">
						<styleClass value="$TextBackBtn"/>
						<bind name="class" value="'$FontColorAlmostBlack'"/>
						<style>
							<position value="absolute"/>
							<alpha value="0.2"/>
							<top value="-1px"/>
						</style>
						<bind name="text" value="_text"/>
					</block>
					<block type="text">
						<styleClass value="$TextBackBtn"/>
						<bind name="class" value="'$FontColorAlmostBlack'"/>
						<style>
							<position value="absolute"/>
							<alpha value="0.2"/>
							<left value="1px"/>
						</style>
						<bind name="text" value="_text"/>
					</block>
					<block type="text">
						<styleClass value="$TextBackBtn"/>
						<bind name="class" value="'$FontColorAlmostBlack'"/>
						<style>
							<position value="absolute"/>
							<alpha value="0.2"/>
							<left value="-1px"/>
						</style>
						<bind name="text" value="_text"/>
					</block>
					<block type="text">
						<styleClass value="$TextBackBtn"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="_text"/>
					</block>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ScoreRatioCounter">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: _tooltipTextPlayerResult }"/>
			<bind name="style" value="'alpha'; (_playerPointsCounter == 0) ? 0.5 : 1"/>
			<block type="text">
				<bind name="class" value="'$TextHeaderWhiteBold'"/>
				<bind name="text" value="_playerPointsCounter"/>
			</block>
		</block>
		<block>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: _tooltipTextTotalResult }"/>
			<style>
				<alpha value="0.7"/>
			</style>
			<block type="text">
				<style>
					<marginTop value="1px"/>
				</style>
				<bind name="class" value="'$TextHeaderBold'"/>
				<bind name="text" value="'/'"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="2px"/>
					<marginLeft value="-1px"/>
				</style>
				<bind name="class" value="'$TextHeaderBold'"/>
				<bind name="text" value="_totalPointsCounter"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="PlayerNameAndClanTag">
		<bind name="style" value="'width'; 	_blockWidth 	? _blockWidth 	: '100%'"/>
		<bind name="style" value="'height'; 	_blockHeight 	? _blockHeight 	: '28px'"/>
		<style>
			<hitTest value="false"/>
		</style>
		<bind name="watch" value="'haveClanTag'; (_clanTag != null) &amp;&amp; (_clanTag != '') &amp;&amp; (_clanTag != 'undefined')"/>
		<bind name="watch" value="'isColoredClanTag'; haveClanTag &amp;&amp; (_color != null &amp;&amp; _color != '' &amp;&amp; _color != 'undefined' &amp;&amp; _color != '0xffundefined')"/>
		<bind name="watch" value="'playerName'; 	isColoredClanTag 	?	_playerName :
								haveClanTag			?	('[' + _clanTag + ']' + _playerName)
													: 	_playerName"/>
		<bind name="watch" value="'fontColor'; 	_isSelf 	? 	_ttkStatus 			? '$FontColorTTK' :
												_tkStatus 			? '$FontColorTeamkiller'
																	: '$FontColorGolden':
								_isAlive 	?  	_ttkStatus 			? '$FontColorTTK' :
												_tkStatus 			? '$FontColorTeamkiller':
												_isInSameDivision 	? '$FontColorGolden' 
																	: '$FontColorWhite'
											: '$FontColorAlmostBlack'"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="style" value="'right'; _right"/>
			<block>
				<bind name="visible" value="(isColoredClanTag == true)"/>
				<block type="text">
					<styleClass value="$TextDefaultNM"/>
					<bind name="style" value="'fontSize'; _fontSize ? _fontSize : 15"/>
					<bind name="class" value="_isSelf ? '$Bold' : '$None'"/>
					<bind name="style" value="'textColor'; _color"/>
					<bind name="text" value="tr('[' + _clanTag + ']')"/>
				</block>
			</block>
			<block type="text">
				<style>
					<multiline value="false"/>
					<marginLeft value="3px"/>
				</style>
				<bind name="style" value="'maxWidth'; _playerNameMaxWidth ? _playerNameMaxWidth : 200"/>
				<styleClass value="$TextDefaultNM"/>
				<bind name="style" value="'fontSize'; _fontSize ? _fontSize : 15"/>
				<bind name="class" value="_isSelf 	? '$Bold' : '$None'"/>
				<bind name="class" value="(!(_isAlive) &amp;&amp; !(_isSelf)) ? '$FontDropShadowWhite' : '$None'"/>
				<bind name="class" value="fontColor"/>
				<bind name="text" value="playerName"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<css name="$Fullsize">
		<width value="100%"/>
		<height value="100%"/>
	</css>
	<css name="$FullsizeAbsolute">
		<width value="100%"/>
		<position value="absolute"/>
		<height value="100%"/>
	</css>
	<css name="$FullWidth">
		<width value="100%"/>
	</css>
	<css name="$MiddleAligned">
		<marginLeft value="-50%"/>
		<left value="50%"/>
	</css>
	<css name="$MiddleAlignedAbsolutely">
		<position value="absolute"/>
		<marginLeft value="-50%"/>
		<left value="50%"/>
	</css>
	<css name="$MiddleVAligned">
		<top value="50%"/>
		<marginTop value="-50%"/>
	</css>
	<css name="$EyeLevelVAligned">
		<top value="720:360,2160:900ah"/>
		<marginTop value="-50%"/>
	</css>
	<css name="$MiddleVAlignedAbsolutely">
		<position value="absolute"/>
		<top value="50%"/>
		<marginTop value="-50%"/>
	</css>
	<css name="$MiddleVHAbsolutely">
		<position value="absolute"/>
		<top value="50%"/>
		<marginLeft value="-50%"/>
		<marginTop value="-50%"/>
		<left value="50%"/>
	</css>
	<css name="$AlignRight">
		<position value="absolute"/>
		<right value="0"/>
	</css>
	<css name="$MouseDisable">
		<hitTest value="false"/>
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
	</css>
	<css name="$InfoLineBoundaries">
		<marginTop value="6px"/>
		<marginBottom value="6px"/>
	</css>
	<css name="$InfoBlockHorizontalIndent">
		<width value="100%"/>
		<marginLeft value="12px"/>
		<marginRight value="12px"/>
	</css>
	<css name="$InfoBlockIndent">
		<width value="100%"/>
		<marginTop value="9px"/>
		<marginLeft value="12px"/>
		<marginBottom value="9px"/>
		<marginRight value="12px"/>
	</css>
	<css name="$InfoBlockHorizontalIndentNoWidth">
		<marginLeft value="12px"/>
		<marginRight value="12px"/>
	</css>
	<css name="$DockPanelMargins">
		<marginLeft value="13px"/>
		<marginRight value="13px"/>
	</css>
	<css name="$InfoBlockIndentNoWidth">
		<marginBottom value="9px"/>
		<marginTop value="9px"/>
		<marginLeft value="12px"/>
		<marginRight value="12px"/>
	</css>
	<css name="$ShipTechStats">
		<width value="312px"/>
		<top value="32px"/>
		<position value="absolute"/>
		<right value="10px"/>
		<height value="100%"/>
	</css>
	<css name="$TextInputEnterButton">
		<right value="2px"/>
		<top value="50%"/>
		<height value="25px"/>
		<width value="52px"/>
		<position value="absolute"/>
		<marginTop value="-11px"/>
	</css>
	<css name="$TextAreaEnterButton">
		<position value="absolute"/>
		<height value="25px"/>
		<right value="2px"/>
		<width value="52px"/>
		<bottom value="0px"/>
	</css>
	<css name="$DefaultScrollBar">
		<wheelScrollSpeed value="15"/>
		<scrollbarController value="lesta.unbound.style.UbScrollingControllerModern"/>
		<scrollArea value="ModernScrollArea"/>
		<scrollbar value="ModernScrollBar"/>
		<scrollbarTrackMode value="scrollToCursor"/>
	</css>
	<css name="$None"/>
	<css name="$PxHorizontalCorrection">
		<marginLeft value="1px"/>
		<marginRight value="1px"/>
	</css>
	<css name="$PxIndent">
		<marginTop value="1px"/>
		<marginBottom value="1px"/>
		<marginLeft value="1px"/>
		<marginRight value="1px"/>
	</css>
	<css name="$BottomMenu">
		<position value="absolute"/>
		<bottom value="0px"/>
		<width value="100%"/>
		<height value="30px"/>
	</css>
	<block className="HorizontalDivider">
		<styleClass value="$PxHorizontalCorrection"/>
		<style>
			<width value="100%"/>
			<height value="3px"/>
		</style>
		<block className="divider_h" type="native">
			<styleClass value="$Fullsize"/>
		</block>
	</block>
	<block className="VerticalDivider">
		<style>
			<height value="100%"/>
			<width value="3px"/>
		</style>
		<block className="divider_v" type="native">
			<styleClass value="$Fullsize"/>
		</block>
	</block>
	<block className="TableDivider">
		<style>
			<backgroundImage value="symbol:dotted_line"/>
			<backgroundRepeatX value="true"/>
			<width value="100%"/>
			<height value="1px"/>
			<alpha value="0.1"/>
		</style>
	</block>
	<block className="Underline">
		<bind name="style" value="'backgroundColor'; (rollOver &amp;&amp; !mouseDown) ? '0xFFFFFFFF' : '0x00856933'"/>
		<bind name="transition" value="(rollOver &amp;&amp; !mouseDown) == true; 0.3; {scaleX : 0, alpha : 0}; {scaleX : 1, alpha :1}"/>
		<style>
			<backgroundColor value="0xFFFFFFFF"/>
			<position value="absolute"/>
			<height value="1px"/>
			<width value="100%"/>
			<bottom value="0px"/>
			<marginLeft value="2px"/>
			<marginRight value="2px"/>
		</style>
	</block>
	<block className="BlurMap">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<style>
			<position value="absolute"/>
			<width value="100%"/>
			<height value="100%"/>
			<hitTest value="false"/>
		</style>
		<bind name="visible" value="optionData.blurEnabled"/>
		<block className="mc_blurmap5" type="native">
			<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
			<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
			<style>
				<width value="100%"/>
				<height value="100%"/>
			</style>
			<bind name="blurMap" value="0"/>
		</block>
	</block>
	<block className="BlurMapNotifications">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="visible" value="optionData.blurEnabled"/>
		<style>
			<position value="absolute"/>
			<width value="100%"/>
			<height value="100%"/>
		</style>
		<block className="mc_blurmap5_feather" type="native">
			<bind name="fade" value="_start; 0.3; {alpha: 0, top: 10}; {alpha: 1, top:0 }; {alpha: 0, top: -20}; 1; 0.15"/>
			<style>
				<width value="100%"/>
				<height value="100%"/>
			</style>
			<bind name="blurMap" value="0"/>
		</block>
	</block>
	<block className="DeclareBlurLayer">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="visible" value="optionData.blurEnabled"/>
		<block className="transparentPixel" type="native">
			<bind name="blurLayer" value="0"/>
		</block>
		<style>
			<position value="absolute"/>
		</style>
	</block>
	<css name="$ContextMenuListItem">
		<width value="100%"/>
		<height value="29px"/>
	</css>
	<css name="$ContextMenuListItemContent">
		<width value="198px"/>
		<marginLeft value="6px"/>
		<marginRight value="6px"/>
	</css>
	<css name="$ContextMenuDimentions">
		<width value="210px"/>
	</css>
	<block className="DropShadow">
		<styleClass value="$FullsizeAbsolute"/>
		<styleClass value="$MouseDisable"/>
		<block className="drop_shadow" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-2px"/>
				<marginRight value="-6px"/>
				<marginBottom value="-10px"/>
				<marginLeft value="-6px"/>
			</style>
		</block>
	</block>
	<block className="EmptyItem">
		<bind name="visible" value="false"/>
	</block>
	<block className="DottedLine">
		<style>
			<backgroundImage value="symbol:dotted_line"/>
			<backgroundRepeatX value="true"/>
			<width value="100%"/>
			<height value="1px"/>
			<alpha value="0.5"/>
		</style>
	</block>
	<block className="PlayerContactItemWithRollover">
		<bind name="firstEntityDH" value="'dockStateEntity'; CC.dockState"/>
		<bind name="watchDH" value="'dockStateName'; ['dockStateEntity.dockState.evUpdate']; dockStateEntity.dockState.stateName"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'selfPlayerDbId'; 		[]; selfPlayerEntity.accountSimple.dbId"/>
		<bind name="watchDH" value="'selfPlayerName'; 		['selfPlayerEntity.accountName.evChanged']; selfPlayerEntity.accountName.name"/>
		<bind name="watchDH" value="'selfPlayerNickName'; 	['selfPlayerEntity.accountName.evChanged']; selfPlayerEntity.accountName.nickName"/>
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="watchDH" value="'accountOnline'; ['entityAccount.accountStatus.evOnlineChanged']; entityAccount.accountStatus.online"/>
		<bind name="watchDH" value="'accountLevel'; ['entityAccount.accountLevel.evLevelChanged']; entityAccount.accountLevel.level"/>
		<bind name="watchDH" value="'groupIdsOfAccount'; ['entityAccount.elementInGroups.evGroupsChanged']; entityAccount.elementInGroups.groupIds"/>
		<bind name="watchDH" value="'isIgnored';['entityAccount.contact.evIsIgnoredChanged']; !!entityAccount.contact.isIgnored"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'pureName'; entityAccount.accountName.name; 'playerInDivision'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'name'; entityAccount.accountName.name; 'playerInvitedToDivision'"/>
		<bind name="watch" value="'isInDivision'; (playerInDivision.length == 0) ? false : true"/>
		<bind name="watchDH" value="'isSelf'; []; entityAccount.accountSimple.isSelfPlayer"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="levelToFeature" value="accountLevel; 19; 'clubBattleFeatureUnLocked'"/>
		<bind name="watch" value="'isInYourParty'; ((divisionEntranceData.divisionType == 'party') &amp;&amp; (playerInDivision.length &gt; 0)) ? true : false"/>
		<bind name="watch" value="'isInvitedToYourParty'; ((divisionEntranceData.divisionType == 'party') &amp;&amp; (playerInvitedToDivision.length &gt; 0)) ? true : false"/>
		<bind name="contains" value="clubMembers; $item == _entityAccountId; 'isClubMember'; false; [_entityAccountId]"/>
		<bind name="collectionDH" value="CC.club; 'playersClubs'"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'clubsVoted'; ['clubsCommonEntity.clubsCommon.evClubsVotedChanged']; clubsCommonEntity.clubsCommon.clubsVoted"/>
		<bind name="watch" value="'isVoteInCurClub';	(clubsVoted[0] == entityClub.club.id) ||
									(clubsVoted[1] == entityClub.club.id) ||
									(clubsVoted[2] == entityClub.club.id) ? true : false"/>
		<bind name="watch" value="'actionDenyReason';	(_playerContext.type == 'inviteToClub')		?	!(clubBattleFeatureUnLocked)	? 'IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_LOW_LEVEL' :
																						isInvitationSent					? 'IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_ALREADY_INVITED' :
																						isClubMember					? 'IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_ALREADY_IN_CLUB' :
																						(isVoteInCurClub &amp;&amp; (selfPlayerDbId != _playerContext.clubLeaderDbId)) ? tr('IDS_UNABLE_TO_START_VOTE_TILL_CURRENT_NOT_FINISHED')
																														: 'no_reason' :
										(_playerContext.type == 'inviteToDivision') ?	!(accountOnline)	? 'IDS_INVITE_TO_DIVISION_ACTION_DENY_REASON_OFFLINE'
																											: 'no_reason' :
										(_playerContext.type == 'inviteToParty')	?	!(clubBattleFeatureUnLocked)	? 'IDS_INVITE_TO_PARTY_ACTION_DENY_REASON_LOW_LEVEL' :
																						!(accountOnline)				? 'IDS_INVITE_TO_PARTY_ACTION_DENY_REASON_OFFLINE' :
																						isInvitedToYourParty			? 'IDS_INVITE_TO_PARTY_ACTION_DENY_REASON_ALREADY_INVITED' :
																						isInYourParty					? 'IDS_INVITE_TO_PARTY_ACTION_DENY_REASON_ALREADY_IN_PARTY'
																														: 'no_reason'
																					: 'no_reason'"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="watch" value="'isSelfPlayerWardog';  (divisionData.creatorInfo.clubId != null )	? (	(clubs[0].club.id == divisionData.creatorInfo.clubId)	? false :
																						(clubs[1].club.id == divisionData.creatorInfo.clubId)	? false :
																						(clubs[2].club.id == divisionData.creatorInfo.clubId)	? false
																																				: true)
																					: false"/>
		<bind name="watch" value="'isWardog'; (isInYourParty &amp;&amp; !(isClubMember) &amp;&amp; !(isSelfPlayerWardog)) || (isSelf &amp;&amp; isSelfPlayerWardog)"/>
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="style" value="'alpha'; accountOnline ? 1 : 0.5"/>
		<block>
			<bind name="visible" value="isSelf"/>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-1px"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="gotoAndStop!" value="'down'"/>
			</block>
		</block>
		<block className="dock_submenu_item_bg" type="native">
			<bind name="transition" value="(mouseDown &amp;&amp; !isSelf); 0.03; {alpha: 1}; {alpha: 0.7}"/>
			<bind name="transition" value="(rollOver || contactContextMenuVisible); 0.15; {alpha: 0}; {alpha: 1.0}"/>
			<styleClass value="$PxHorizontalCorrection"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="menu" value="'ContactContextMenu';	!(isSelf) 	? {	_entityAccountId: _entityAccountId, _currentGroupId: _currentGroupId, _actionDenyReason: actionDenyReason,
															_playerContext: _playerContext, _inviteType: InviteType.COMMON, _isWardog: isWardog}
														: null; null; 'contactContextMenuVisible'"/>
			<bind name="tooltip" value="'ContactInfoTooltip'; {_entityAccountId: _entityAccountId, _playerContext: _playerContext, _actionDenyReason: actionDenyReason, _isWardog: isWardog}"/>
			<bind name="clickSplit"/>
			<bind name="watch" value="'isActionEnabled'; (!(isSelf) &amp;&amp; (actionDenyReason == 'no_reason'))"/>
			<bind name="var" value="{showBusyIndicator: false, isInvitationSent: false}"/>
			<bind name="catch" value="'evPlayerInvitationToClub'"/>
			<bind name="catch" value="'evPlayerInvitationToClubRevoked'"/>
			<bind name="dispatch" value="'left_click';	((_playerContext.type == 'inviteToClub') &amp;&amp; (actionDenyReason == 'no_reason')) ? 'evPlayerInvitationToClub' : null; {showBusyIndicator: true} "/>
			<bind name="entityDH" value="'entityClub'; _playerContext.clubEntityId"/>
			<bind name="watchDH" value="'invitedPlayers'; ['entityClub.club.evInvitedClubmansChanged']; entityClub.club.invitedClubmans"/>
			<bind name="contains" value="invitedPlayers; ($item.accountEntityId == entityAccount.id); 'isInvitationSent'"/>
			<bind name="changeDispatch" value="isInvitationSent; 'evPlayerInvitationToClub'; {showBusyIndicator: false}"/>
			<bind name="watchDH" value="'clubMembers'; ['entityClub.club.evMembersChanged']; entityClub.club.members"/>
			<bind name="action" value="'left_click';	(isActionEnabled == false)						? '' :
									(_playerContext.type == 'startPrivateChat')		? 'openChannelForPrivateMessages' :
									(_playerContext.type == 'inviteToChannel')		? 'sendChannelInvite' :
									(_playerContext.type == 'inviteToClub')			? 'inviteUserToClub' :
									(_playerContext.type == 'inviteToParty')		? 'inviteToDivision' :
									(_playerContext.type == 'inviteToPartyFromClubMembersList')	? 'inviteToDivision' :
									(_playerContext.type == 'inviteToDivision')		? 'inviteToDivision' :
									(_playerContext.type == 'clubMembersList')		? 'openChannelForPrivateMessages' :
									(_playerContext.type == 'contactsClubMembers')	? 'openChannelForPrivateMessages' :
									(_playerContext.type == 'invitedToClubPlayers')	? 'openChannelForPrivateMessages' :
									(_playerContext.type == 'channelParticipants')	? 'openChannelForPrivateMessages'
																					: '';
									(isActionEnabled == false)						? {} :
									(_playerContext.type == 'startPrivateChat')		? {dbId: entityAccount.accountSimple.dbId} :
									(_playerContext.type == 'inviteToChannel')		? {channelId: _playerContext.channelId, inviteDbId: entityAccount.accountSimple.dbId} :
									(_playerContext.type == 'inviteToClub')			? {clubId: _playerContext.clubId, playerName: entityAccount.accountName.name, userId: entityAccount.accountSimple.dbId} :
									(_playerContext.type == 'inviteToParty')		? {playerId: entityAccount.accountSimple.dbId, playerName: entityAccount.accountName.name, inviteType: InviteType.COMMON} :
									(_playerContext.type == 'inviteToPartyFromClubMembersList')	? {playerId: entityAccount.accountSimple.dbId, playerName: entityAccount.accountName.name, inviteType: InviteType.COMMON} :
									(_playerContext.type == 'inviteToDivision')		? {playerId: entityAccount.accountSimple.dbId, playerName: entityAccount.accountName.name, inviteType: InviteType.COMMON} :
									(_playerContext.type == 'clubMembersList')		? {dbId: entityAccount.accountSimple.dbId} :
									(_playerContext.type == 'contactsClubMembers')	? {dbId: entityAccount.accountSimple.dbId} :
									(_playerContext.type == 'invitedToClubPlayers')	? {dbId: entityAccount.accountSimple.dbId} :
									(_playerContext.type == 'channelParticipants')	? {dbId: entityAccount.accountSimple.dbId}
																					: {}"/>
			<block>
				<bind name="transition" value="(mouseDown &amp;&amp; !isSelf); 0.03; {alpha: 1}; {alpha: 0.7}"/>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'marginLeft'; _isShort ? '2px'
												: _isClubMembersList	? '6px'
																		: '16px'"/>
				<block>
					<styleClass value="$Fullsize"/>
					<bind name="instance" value="'PlayerContactItem'; {_entityAccountId: _entityAccountId, _playerContext: _playerContext, _isShort: _isShort, _isWardog: isWardog, _nickNameWidth: _nickNameWidth}"/>
				</block>
				<block>
					<styleClass value="$AlignRight"/>
					<block>
						<bind name="visible" value="	!(isSelf) &amp;&amp;
									(_playerContext.type != 'invitedToClubPlayers')"/>
						<style>
							<marginTop value="4px"/>
						</style>
						<bind name="style" value="'marginRight'; (_isShort || isLeaderMarkerVisible) ? '6px' : '10px'"/>
						<bind name="transition" value="rollOver; 0.3; {alpha: 0}; {alpha: 1.0}; {alpha: 0}; 1; 0.07"/>
						<bind name="watch" value="'isAddToContactsBtnVisible';	(_playerContext.type != 'clubMembersList') &amp;&amp;
																(groupIdsOfAccount==null) &amp;&amp;
																!(isIgnored)"/>
						<block>
							<style>
								<marginTop value="1px"/>
								<marginRight value="3px"/>
							</style>
							<bind name="instance" value="'BusyIndicator'; showBusyIndicator ? { _showBusyIndicator: showBusyIndicator } : null"/>
						</block>
						<block>
							<bind name="visible" value="isAddToContactsBtnVisible"/>
							<style>
								<marginRight value="4px"/>
							</style>
							<block className="button_add_contact" type="native"/>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_ADD_TO_CONTACTS'}"/>
							<bind name="action" value="'click'; 'addContact'; {dbId: entityAccount.accountSimple.dbId}"/>
						</block>
						<style>
							<marginRight value="4px"/>
						</style>
						<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'playersInDivision'"/>
						<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'playersInvitedToDivision'"/>
						<bind name="watch" value="'freePlaces'; (divisionData.maxPlayersInDivision - playersInDivision.length - playersInvitedToDivision.length)"/>
						<bind name="watch" value="'isSelfInParty'; ((divisionEntranceData.divisionType == 'party') &amp;&amp; (divisionData.divisionExist)) ? true : false"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
						<bind name="watch" value="'isInviteToDivisionBtnVisible'; (	slimClientData.isFull &amp;&amp;
																	(freePlaces &gt; 0) &amp;&amp;
																	accountOnline &amp;&amp;
																	!(_isShort) &amp;&amp;
																	!(isInDivision) &amp;&amp;
																	(dockStateName != 'balancer') &amp;&amp;
																	(_playerContext.type != 'clubMembersList') &amp;&amp;
																	(_playerContext.type != 'inviteToClub') &amp;&amp;
																	(_playerContext.type != 'contactsClubMembers') &amp;&amp;
																	(_playerContext.type != 'inviteToPartyFromClubMembersList') &amp;&amp;
																	!(isSelfInParty))"/>
						<block>
							<bind name="visible" value="isInviteToDivisionBtnVisible"/>
							<style>
								<marginRight value="4px"/>
							</style>
							<block className="button_division_invite" type="native">
								<bind name="watch" value="'isInvitedToDivision'; entityAccount.playerInvitedToPrebattleInfo != null"/>
								<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'name'; entityAccount.accountName.name; 'sentInvitationData'"/>
								<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'invitationsToDivision'; 'playerName'; entityAccount.accountName.name; 'receivedInvitationData'"/>
								<bind name="enabled" value="(sentInvitationData.length == 0) &amp;&amp; (receivedInvitationData.length == 0) &amp;&amp; !isInvitedToDivision"/>
								<bind name="action" value="'buttonClick'; 'inviteToDivision'; {playerId: entityAccount.accountSimple.dbId, playerName: entityAccount.accountName.name, inviteType: InviteType.COMMON}"/>
							</block>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: isInvitedToDivision ? 'IDS_INVITED_IN_DIVISION_ALREADY' : 'IDS_INVITE_IN_DIVISION'}"/>
						</block>
						<block>
							<block className="button_chat_small" type="native"/>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_SEND_MESSAGE'}"/>
							<bind name="action" value="'click'; 'openChannelForPrivateMessages'; {dbId: entityAccount.accountSimple.dbId}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="watch" value="'isLeaderMarkerVisible';	((_playerContext.type == 'clubMembersList')
															|| (_playerContext.type == 'contactsClubMembers')
															|| (_playerContext.type == 'inviteToPartyFromClubMembersList')
															|| (_playerContext.type == 'channelParticipants' &amp;&amp; _playerContext.channelTypeIdent == 'club')) &amp;&amp;
															(entityAccount.accountSimple.dbId == _playerContext.clubLeaderDbId)"/>
						<block>
							<bind name="visible" value="isLeaderMarkerVisible"/>
							<style>
								<marginLeft value="-1px"/>
								<marginRight value="5px"/>
								<marginTop value="7px"/>
							</style>
							<block className="icon_club_leader" type="native"/>
							<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: isSelf 	?	[{_paragraphText: 'IDS_YOU_ARE_CLUB_LEADER'},
																										{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_0'},
																										{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_1'},
																										{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_2'}]
																									: 	[{_paragraphText: 'IDS_CLUB_LEADER_HINT'},
																										{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_0'},
																										{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_1'}],
																			_marginBottom: '4px'}"/>
						</block>
						<bind name="watch" value="'isRevokeInvitationBtnVisible'; 	(_playerContext.type == 'invitedToClubPlayers') &amp;&amp;
																	(_playerContext.invatorDbId == selfPlayerDbId) &amp;&amp;
																	rollOver"/>
						<block>
							<bind name="visible" value="isRevokeInvitationBtnVisible"/>
							<bind name="dispatch" value="'buttonClick'; _playerContext.type == 'invitedToClubPlayers' ? 'evPlayerInvitationToClubRevoked' : null; {showBusyIndicator: true} "/>
							<block>
								<bind name="visible" value="!showBusyIndicator"/>
								<style>
									<marginTop value="3px"/>
									<marginRight value="7px"/>
								</style>
								<block className="button_cross" type="native">
									<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_RECALL_INVITATION'}"/>
									<bind name="action" value="'buttonClick'; 'cancelClubInvitation'; {clubId: _playerContext.clubId, userId: entityAccount.accountSimple.dbId}"/>
								</block>
							</block>
							<block>
								<bind name="fade" value="showBusyIndicator; 0.15; {alpha: 0}; {alpha: 1}"/>
								<style>
									<marginTop value="4px"/>
									<marginRight value="4px"/>
								</style>
								<bind name="instance" value="'BusyIndicator'; showBusyIndicator ? { _showBusyIndicator: showBusyIndicator } : null"/>
							</block>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ContactInfoTooltipRankHeader">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$MouseDisable"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginLeft value="4px"/>
					<marginTop value="6px"/>
				</style>
				<bind name="instance" value="'PlayerRankIcon'; {_rankId: _rank, _small: true}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginLeft value="3px"/>
					<marginRight value="6px"/>
					<marginTop value="4px"/>
				</style>
				<block type="text">
					<style>
						<maxWidth value="160"/>
					</style>
					<styleClass value="$TextHeaderWhite"/>
					<bind name="text" value="_nickName"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="class" value="	_isWardog	? '$FontColorMercenaries' :
								_isSelf 	? '$FontColorGolden'
											: '$FontColorWhite'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-4px"/>
						<maxWidth value="160"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="_rank == 1 	? subst('IDS_RANK_X_SEASON_Y',[], {rank: tr('IDS_RANK_SEA_WOLF'), season: tr(_title)})
										: subst('IDS_RANK_X_IN_SEASON_Y',[], {rank: _rank - 1, season: tr(_title)})"/>
					<bind name="class" value="'$FontColorBlueish'"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ContactInfoTooltipAccountHeader">
		<style>
			<width value="100%"/>
		</style>
		<block className="dock_submenu_item" type="native">
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="icons_account_level_outer" type="native">
					<style>
						<width value="70px"/>
						<height value="70px"/>
					</style>
					<block type="text">
						<style>
							<marginTop value="15px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextAccentBoldAccountLevel2"/>
						<bind name="text" value="format(_accountLevel, -1)"/>
					</block>
				</block>
				<block type="text">
					<style>
						<maxWidth value="160"/>
						<marginLeft value="-6px"/>
						<marginTop value="8px"/>
						<marginRight value="6px"/>
					</style>
					<styleClass value="$TextHeaderWhite"/>
					<bind name="class" value="	_isWardog	? '$FontColorMercenaries' :
								_isSelf 	? '$FontColorGolden'
											: '$FontColorWhite'"/>
					<bind name="text" value="_nickName"/>
					<bind name="class" value="'$Bold'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="PlayerContactItem">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'pureName'; pureName; 'playerInDivision'"/>
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="watchDH" value="'nickName'; 			['entityAccount.accountName.evChanged']; entityAccount.accountName.nickName"/>
		<bind name="watchDH" value="'pureName'; 			['entityAccount.accountName.evChanged']; entityAccount.accountName.name"/>
		<bind name="watchDH" value="'clubsMembership'; 	['entityAccount.clubman.evClubsMembershipChanged']; entityAccount.clubman.clubsMembership"/>
		<bind name="watchDH" value="'accountOnline'; 	['entityAccount.accountStatus.evOnlineChanged']; entityAccount.accountStatus.online"/>
		<bind name="watchDH" value="'inBattle'; 			['entityAccount.accountStatus.evInBattleChanged']; entityAccount.accountStatus.inBattle"/>
		<bind name="watchDH" value="'accountLevel'; 		['entityAccount.accountLevel.evLevelChanged']; entityAccount.accountLevel.level"/>
		<bind name="watchDH" value="'rank'; 				['entityAccount.accountRank.evRankChanged']; entityAccount.accountRank.rank"/>
		<bind name="watchDH" value="'clanId'; 			['entityAccount.clanman.evClanIdChanged']; entityAccount.clanman.clanId"/>
		<bind name="watchDH" value="'isSelf'; 			[]; entityAccount.accountSimple.isSelfPlayer"/>
		<bind name="entityDH" value="'entityClub'; _playerContext.clubEntityId"/>
		<bind name="watchDH" value="'isSelfPlayerCurPartyMember';['entityClub.party.evUpdate']; entityClub.party.isMember"/>
		<bind name="watchDH" value="'playerPrebattleClubId'; 	['entityAccount.prebattlePlayer.evClubIdChanged']; entityAccount.prebattlePlayer.clubId"/>
		<bind name="watchDH" value="'isPartyReady'; 				['entityAccount.prebattlePlayer.evStateChanged']; entityAccount.prebattlePlayer.isReady"/>
		<bind name="watchDH" value="'isPartyCommander'; 			['entityAccount.prebattlePlayer.evIsCommanderChanged']; entityAccount.prebattlePlayer.isCommander"/>
		<bind name="watchDH" value="'inPartyBattle'; 			['entityAccount.prebattlePlayer.evIsInBattleChanged']; entityAccount.prebattlePlayer.isInBattle"/>
		<bind name="primaryEntityDH" value="'clanEntity'; CC.clan; clanId"/>
		<bind name="primaryEntityDH" value="'clanExtendedEntity'; CC.clanExtended; clanId"/>
		<bind name="watchDH" value="'clanTag'; 	['clanEntity.clan.evTagChanged']; clanEntity.clan.tag"/>
		<bind name="watchDH" value="'color'; 	['clanExtendedEntity.clanExtended.evColorChanged']; clanExtendedEntity.clanExtended.color"/>
		<bind name="watchDH" value="'league'; 	['clanExtendedEntity.clanExtended.evLeagueChanged']; clanExtendedEntity.clanExtended.league"/>
		<bind name="watch" value="'clanTagColor'; ('0xff' + color)"/>
		<bind name="watch" value="'isPlayerInParty'; (entityAccount.prebattlePlayer &amp;&amp; (playerPrebattleClubId != -1))"/>
		<bind name="watch" value="'isInCurClubChannelParty'; (_playerContext.type == 'channelParticipants')			&amp;&amp;
											(_playerContext.channelTypeIdent == 'club')				&amp;&amp;
											(entityClub.club.id == playerPrebattleClubId)			&amp;&amp;
											(isSelfPlayerCurPartyMember)			? true
																					: false"/>
		<bind name="watch" value="'isInDivision'; ((divisionEntranceData.divisionType == 'division') &amp;&amp; (playerInDivision.length &gt; 0)) ? true : false"/>
		<bind name="watch" value="'isInParty'; ((divisionEntranceData.divisionType == 'party') &amp;&amp; (playerInDivision.length &gt; 0)) ? true : false"/>
		<bind name="watch" value="'isInFormation'; (playerInDivision.length &gt; 0)"/>
		<bind name="watch" value="'isReady'; isPlayerInParty				? isPartyReady :
							playerInDivision[0].isReady ? true
														: false"/>
		<bind name="watch" value="'isCommander'; isPlayerInParty					? isPartyCommander : 
								playerInDivision[0].isCommander	? true
																: false"/>
		<bind name="watch" value="'isInFormationBattle'; (isPlayerInParty || isInDivision || isInParty) &amp;&amp;
										(playerInDivision[0].isInBattle || inPartyBattle || inBattle)	? true
																										: false"/>
		<bind name="watchDH" value="'invitedPartyClubmans'; ['entityClub.party.evUpdate']; entityClub.party.invitedClubmans"/>
		<bind name="watch" value="'isInvitedToDivision'; entityAccount.playerInvitedToPrebattleInfo != null"/>
		<bind name="watchDH" value="'inviteExpirationTime'; ['entityAccount.playerInvitedToPrebattleInfo.evChanged']; entityAccount.playerInvitedToPrebattleInfo.expirationTime"/>
		<bind name="var" value="{wantedInDivision: false}"/>
		<bind name="style" value="'alpha'; _isOfflineAlpha	? accountOnline ? 1
															: 0.5
											: 1"/>
		<block>
			<style>
				<hitTest value="false"/>
			</style>
			<block>
				<bind name="visible" value="(!(accountOnline) || (inBattle &amp;&amp; !(isInFormationBattle)) || wantedInDivision || (_playerContext.type == 'invitedToClubPlayers'))"/>
				<style>
					<marginLeft value="3px"/>
					<marginTop value="5px"/>
				</style>
				<bind name="var" value="{isClubMemberLongOffline: false}"/>
				<bind name="instance" value="'CalcLongOffline'; (!(accountOnline) &amp;&amp; (_playerContext.type == 'clubMembersList') &amp;&amp; (entityAccount.accountSimple.dbId != _playerContext.clubLeaderDbId)) ? {_entityAccountId: _entityAccountId} : ''"/>
				<bind name="catch" value="'isClubMemberLongOfflineChanged'"/>
				<bind name="changeDispatch" value="accountOnline; 'isClubMemberLongOfflineChanged'; {isClubMemberLongOffline: false}"/>
				<block className="icon_player_status" type="native">
					<bind name="gotoAndStop!" value="isClubMemberLongOffline							? 'long_offline' :
									(_playerContext.type == 'invitedToClubPlayers')	? 'invited' :
									wantedInDivision								? 'wanted_in_division' :
									inBattle										? 'in_battle'
																					: 'not_ready'"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="isInDivision || isInvitedToDivision ? true : false"/>
				<style>
					<marginLeft value="10px"/>
				</style>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="9px"/>
						<marginLeft value="-12px"/>
					</style>
					<bind name="instance" value="'VoiceChatDockIcon'; (accountOnline &amp;&amp; isInFormation)	? {_playerName: pureName, _isSelf: isSelf}
																						: null"/>
				</block>
				<block>
					<style>
						<marginTop value="4px"/>
					</style>
					<bind name="instance" value="'FormationPlayerIcon';	{_isEmptySlot: isInvitedToDivision, isCommander: isCommander, isReady: isReady, isInBattle: isInFormationBattle,
																			_formationType: divisionEntranceData.divisionType, _isWardog: _isWardog} "/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="(!(_isShort || isInDivision || (accountLevel &lt;= 0)))"/>
				<block>
					<style>
						<marginTop value="2px"/>
					</style>
					<bind name="visible" value="rank != 0"/>
					<bind name="instance" value="'IconRankSmall'; {_rankId: rank}"/>
				</block>
				<block>
					<bind name="visible" value="rank == 0"/>
					<block type="text">
						<bind name="name" value="'playerContactLevel_' + nickName"/>
						<styleClass value="$TextSmallWhite"/>
						<style>
							<marginLeft value="4px"/>
							<marginTop value="6px"/>
						</style>
						<bind name="text" value="accountLevel"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block type="text">
				<bind name="name" value="'playerContactName_' + nickName"/>
				<bind name="watch" value="'_tfWidth' ; 	_nickNameWidth	? _nickNameWidth :
										_isShort		? 132
														: 235"/>
				<bind name="style" value="'width';	_notTrancated	? 'auto' :
									(!(accountOnline) || inBattle || wantedInDivision)	? isInDivision	? _tfWidth - 37 + 'px'
																										: _tfWidth - 20 + 'px'
																						: isInDivision	? _tfWidth - 20 + 'px'
																										: _tfWidth + 'px'"/>
				<style>
					<marginTop value="2px"/>
					<marginLeft value="2px"/>
					<multiline value="false"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="class" value=" (_playerContext.channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'party' &amp;&amp; _isWardog) 	? '$FontColorMercenaries' :
							(isSelf || (isInDivision &amp;&amp; divisionEntranceData.divisionType == 'division'))								? '$FontColorGolden'
																																		: '$FontColorWhite'"/>
				<bind name="class" value=" isSelf ? '$Bold' : '$None'"/>
				<bind name="text" value="_playerContext.channelTypeIdent == 'clan' ? pureName : nickName"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CalcLongOffline">
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="watchDH" value="'lastGameDate'; ['entityAccount.accountStatus.evOnlineChanged']; entityAccount.account.lastGameData"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="serverTime" value="'serverTime'"/>
		<bind name="watch" value="'_isClubMemberLongOffline'; ((serverTime - lastGameDate) &gt; clubsCommonEntity.clubsCommon.maxOfflineTime)"/>
		<bind name="changeDispatch" value="_isClubMemberLongOffline; 'isClubMemberLongOfflineChanged'; {isClubMemberLongOffline: _isClubMemberLongOffline}"/>
	</block>
	<block className="ContactInfoTooltip">
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="watchDH" value="'inBattle'; ['entityAccount.accountStatus.evInBattleChanged']; entityAccount.accountStatus.inBattle"/>
		<bind name="watchDH" value="'accountOnline'; ['entityAccount.accountStatus.evOnlineChanged']; entityAccount.accountStatus.online"/>
		<bind name="watchDH" value="'accountLevel'; ['entityAccount.accountLevel.evLevelChanged']; entityAccount.accountLevel.level"/>
		<bind name="watchDH" value="'rank'; ['entityAccount.accountRank.evRankChanged']; entityAccount.accountRank.rank"/>
		<bind name="watchDH" value="'pureName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.name"/>
		<bind name="watchDH" value="'nickName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.nickName"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'pureName'; entityAccount.accountName.name; 'playerInDivision'"/>
		<bind name="watch" value="'isInDivision'; ((divisionEntranceData.divisionType == 'division') &amp;&amp; (playerInDivision.length &gt; 0)) ? true : false"/>
		<bind name="watch" value="'isInParty'; ((divisionEntranceData.divisionType == 'party') &amp;&amp; (playerInDivision.length &gt; 0)) ? true : false"/>
		<bind name="watch" value="'isInFormation'; (playerInDivision.length &gt; 0)"/>
		<bind name="watchDH" value="'isSelf'; []; entityAccount.accountSimple.isSelfPlayer"/>
		<bind name="watch" value="'playerTooltipItem'; rank == 0 ? 0 : 1"/>
		<bind name="entityDH" value="'entityClub'; _playerContext.clubEntityId"/>
		<bind name="watchDH" value="'isSelfPlayerCurPartyMember'; ['entityClub.party.evUpdate']; entityClub.party.isMember"/>
		<bind name="watchDH" value="'playerPrebattleClubId'; ['entityAccount.prebattlePlayer.evClubIdChanged']; entityAccount.prebattlePlayer.clubId"/>
		<bind name="watchDH" value="'isPartyReady'; ['entityAccount.prebattlePlayer.evStateChanged']; entityAccount.prebattlePlayer.isReady"/>
		<bind name="watchDH" value="'isPartyCommander'; ['entityAccount.prebattlePlayer.evIsCommanderChanged']; entityAccount.prebattlePlayer.isCommander"/>
		<bind name="watchDH" value="'inPartyBattle'; ['entityAccount.prebattlePlayer.evIsInBattleChanged']; entityAccount.prebattlePlayer.isInBattle"/>
		<bind name="watch" value="'isPlayerInParty'; (entityAccount.prebattlePlayer &amp;&amp; (playerPrebattleClubId != -1))"/>
		<bind name="watch" value="'isInCurClubChannelParty'; (_playerContext.type == 'channelParticipants')			&amp;&amp;
											(_playerContext.channelTypeIdent == 'club')				&amp;&amp;
											(entityClub.club.id == playerPrebattleClubId)			&amp;&amp;
											(isSelfPlayerCurPartyMember)							? true
																									: false"/>
		<bind name="watch" value="'isReady'; isPlayerInParty				? isPartyReady :
							playerInDivision[0].isReady ? true
														: false"/>
		<bind name="watch" value="'isCommander'; isPlayerInParty					? isPartyCommander : 
								playerInDivision[0].isCommander	? true
																: false"/>
		<bind name="watch" value="'isInFormationBattle'; (isPlayerInParty || isInDivision || isInParty) &amp;&amp;
										(playerInDivision[0].isInBattle || inPartyBattle || inBattle)	? true
																										: false"/>
		<bind name="watchDH" value="'invitedPartyClubmans'; ['entityClub.party.evUpdate']; entityClub.party.invitedClubmans"/>
		<bind name="watch" value="'isInvitedToCurClubParty'; isIn(_entityAccountId, invitedPartyClubmans)"/>
		<bind name="watchDH" value="'inviteExpirationTime'; ['entityAccount.playerInvitedToPrebattleInfo.evChanged']; entityAccount.playerInvitedToPrebattleInfo.expirationTime"/>
		<bind name="watchDH" value="'expirationTime'; ['entityAccount.playerInvitedToPrebattleInfo.evChanged']; entityAccount.playerInvitedToPrebattleInfo.expirationTime"/>
		<bind name="watch" value="'isInvitedToDivision'; entityAccount.playerInvitedToPrebattleInfo != null"/>
		<bind name="countdown" value="expirationTime; 'countdownText'; 'mm:ss'"/>
		<bind name="var" value="{wantedInDivision: false}"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="245px"/>
		</style>
		<block className="DeclareBlurLayer">
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<bind name="visible" value="optionData.blurEnabled"/>
			<block className="transparentPixel" type="native">
				<bind name="blurLayer" value="0"/>
			</block>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block className="BlurMap">
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<style>
				<position value="absolute"/>
				<width value="100%"/>
				<height value="100%"/>
				<hitTest value="false"/>
			</style>
			<bind name="visible" value="optionData.blurEnabled"/>
			<block className="mc_blurmap5" type="native">
				<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
				<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
				<style>
					<width value="100%"/>
					<height value="100%"/>
				</style>
				<bind name="blurMap" value="0"/>
			</block>
		</block>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="optionData.contrast"/>
		</block>
		<block className="hint_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="child" value="playerTooltipItem; {_rank: rank, _title: rankedBattlesSeason.title, _nickName: nickName,
										 _accountLevel: accountLevel, _isSelf: isSelf, _isWardog: _isWardog,
										 _entityAccountId: _entityAccountId }; 'ContactInfoTooltipAccountHeader'; 'ContactInfoTooltipRankHeader'"/>
		</block>
		<block>
			<bind name="visible" value="(!(accountOnline) &amp;&amp; !(isClubMemberLongOffline)) || (inBattle &amp;&amp; !(isInFormationBattle))"/>
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<block className="HorizontalDivider">
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<width value="100%"/>
					<height value="3px"/>
				</style>
				<block className="divider_h" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="4px"/>
					<marginBottom value="-4px"/>
					<marginLeft value="10px"/>
					<marginRight value="5px"/>
				</style>
				<block>
					<block className="icon_player_status" type="native">
						<bind name="gotoAndStop!" value=" inBattle	? 'in_battle'
													: 'not_ready'"/>
					</block>
				</block>
				<block type="text">
					<bind name="style" value="'alpha'; (!(accountOnline) || inBattle) ? 0.6 : 1"/>
					<style>
						<marginLeft value="1px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value=" inBattle	? tr('IDS_IN_BATTLE')
										: tr('IDS_PLAYER_IS_OFFLINE_C')"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ContactInfoTooltipWantInFormation'; _playerContext.isFormationSeeker ? {_playerContext: _playerContext} : null"/>
		</block>
		<bind name="var" value="{isClubMemberLongOffline: false}"/>
		<bind name="instance" value="'CalcLongOffline'; (!(accountOnline) &amp;&amp; (_playerContext.type == 'clubMembersList') &amp;&amp; (entityAccount.accountSimple.dbId != _playerContext.clubLeaderDbId)) ? {_entityAccountId: _entityAccountId} : ''"/>
		<bind name="catch" value="'isClubMemberLongOfflineChanged'"/>
		<bind name="changeDispatch" value="accountOnline; 'isClubMemberLongOfflineChanged'; {isClubMemberLongOffline: false}"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ContactInfoTooltipLongOffline'; isClubMemberLongOffline ? {} : null"/>
		</block>
		<bind name="watch" value="'isFormationStatusVisible';	(isSelfPlayerCurPartyMember &amp;&amp; isInParty)
												|| isInDivision
												|| isInCurClubChannelParty
												|| (_playerContext.channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'party')
												|| (_playerContext.type == 'clubMemberPartyPlayer' &amp;&amp; _playerContext.isInvitation != true)"/>
		<block>
			<bind name="visible" value="isFormationStatusVisible &amp;&amp; !(_playerContext.isInvitation)"/>
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<block className="HorizontalDivider">
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<width value="100%"/>
					<height value="3px"/>
				</style>
				<block className="divider_h" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="4px"/>
					<marginBottom value="-4px"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
				</style>
				<block>
					<style>
						<marginLeft value="4px"/>
					</style>
					<bind name="instance" value="'FormationPlayerIcon'; {_isEmptySlot: _playerContext.isInvitation, isCommander: isCommander, isReady: isReady,
														isInBattle: isInFormationBattle, _formationType: isPlayerInParty ? 'party' : divisionEntranceData.divisionType, _isWardog: _isWardog}"/>
				</block>
				<block type="text">
					<style>
						<marginLeft value="4px"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="isPlayerInParty									? '$FontColorWhite' :
							 (divisionEntranceData.divisionType == 'division') 	? '$FontColorGolden'
																				: '$FontColorWhite'"/>
					<bind name="watch" value="'playerRoleStr'; 	isCommander	? tr('IDS_DIVISION_COMMANDER_C')
															: tr('IDS_IN_DIVISION')"/>
					<bind name="watch" value="'playerStatusStr'; isInFormationBattle	? tr('IDS_IN_BATTLE')
																	: isReady	? tr('IDS_READY')
																				: tr('IDS_NOT_READY')"/>
					<bind name="text" value="playerRoleStr + '. ' + playerStatusStr"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'PlayerTooltipInvitationCountdown'; isInvitedToDivision ? { _expirationTime: expirationTime, _formationType: 'division',
																					_text: 'IDS_INVITED_IN_DIVISION'} : null"/>
		</block>
		<block>
			<bind name="visible" value="isFormationStatusVisible"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ContactInfoTooltipVoiceChatStatus'; (accountOnline &amp;&amp; isInFormation)	? {_isSelf: isSelf, _playerName: pureName}
																								: null"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ContactInfoTooltipActionDenyReason'; _actionDenyReason != 'no_reason' ? {_actionDenyReason: _actionDenyReason} : null"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="style" value="'marginBottom'; isSelf ? '6px' : '0px'"/>
			<bind name="instance" value="'ContactInfoTooltipInvitation'; (_playerContext.type == 'invitedToClubPlayers') ? {} : null"/>
		</block>
		<block>
			<bind name="visible" value="!(isSelf)"/>
			<style>
				<width value="100%"/>
			</style>
			<block className="HorizontalDivider">
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<width value="100%"/>
					<height value="3px"/>
				</style>
				<block className="divider_h" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginLeft value="10px"/>
					<marginRight value="8px"/>
				</style>
				<block>
					<bind name="visible" value="_actionDenyReason == 'no_reason'"/>
					<style>
						<width value="100%"/>
						<marginBottom value="5px"/>
						<marginTop value="7px"/>
					</style>
					<bind name="instance" value="'MouseInstruction'; {_type: 'left',	_instructionText:	(_playerContext.type == 'startPrivateChat')		? 'IDS_HINT_LEFT_CLICK_TO_START_CHAT' :
																						(_playerContext.type == 'inviteToChannel')		? 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_CHANNEL' :
																						(_playerContext.type == 'inviteToClub')			? 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_CLUB' :
																						(_playerContext.type == 'inviteToParty')		? 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_PARTY' :
																						(_playerContext.type == 'inviteToPartyFromClubMembersList') ? 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_PARTY' :
																						(_playerContext.type == 'inviteToDivision')		? 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_DIVISION' :
																						(_playerContext.type == 'clubMembersList')		? 'IDS_HINT_LEFT_CLICK_TO_START_CHAT' :
																						(_playerContext.type == 'clubMemberPartyPlayer')? 'IDS_HINT_LEFT_CLICK_TO_START_CHAT' :
																						(_playerContext.type == 'contactsClubMembers')	? 'IDS_HINT_LEFT_CLICK_TO_START_CHAT' :
																						(_playerContext.type == 'invitedToClubPlayers')	? 'IDS_HINT_LEFT_CLICK_TO_START_CHAT' :
																						(_playerContext.type == 'channelParticipants')	? 'IDS_HINT_LEFT_CLICK_TO_START_CHAT'
																																		: ('NO INSTRUCTION FOR SUCH _playerContext.type: ' + _playerContext.type),
													_maxWidth: 220}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginBottom value="6px"/>
					</style>
					<bind name="style" value="'marginTop'; (_actionDenyReason == 'no_reason') ? '0px' : '7px'"/>
					<bind name="instance" value="'MouseInstruction'; {_type: 'right', _instructionText: 'IDS_HINT_RIGHT_CLICK_FOR_CONTEXT_MENU', _maxWidth: 220}"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ContactInfoTooltipWantInFormation">
		<style>
			<width value="100%"/>
		</style>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="6px"/>
				<marginBottom value="8px"/>
				<marginLeft value="10px"/>
				<marginRight value="5px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginTop value="2px"/>
					</style>
					<block className="icon_player_status" type="native">
						<bind name="gotoAndStop!" value="'wanted_in_division'"/>
					</block>
				</block>
				<block type="text">
					<style>
						<marginLeft value="4px"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="'IDS_WANT_IN_DIVISION'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block type="text">
				<bind name="visible" value="_playerContext.seekerComment ? true : false"/>
				<style>
					<width value="100%"/>
					<marginTop value="1px"/>
				</style>
				<bind name="class" value="'$FontColorBlueish'"/>
				<styleClass value="$TextHeader"/>
				<bind name="text" value="tr('IDS_LEFT_QUOTE') + _playerContext.seekerComment + tr('IDS_RIGHT_QUOTE')"/>
			</block>
		</block>
	</block>
	<block className="ContactInfoTooltipActionDenyReason">
		<style>
			<width value="100%"/>
		</style>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginLeft value="10px"/>
				<marginRight value="8px"/>
				<marginTop value="6px"/>
				<marginBottom value="5px"/>
			</style>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="5px"/>
					<marginRight value="4px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<style>
					<maxWidth value="210"/>
				</style>
				<bind name="text" value="_actionDenyReason"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ContactInfoTooltipLongOffline">
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="timeFormat" value="clubsCommonEntity.clubsCommon.maxOfflineTime; 'HIGHEST'; 'maxOfflineTimeFormatted'; true"/>
		<style>
			<width value="100%"/>
		</style>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="4px"/>
				<marginBottom value="3px"/>
				<marginLeft value="6px"/>
				<marginRight value="5px"/>
			</style>
			<block>
				<style>
					<marginLeft value="4px"/>
				</style>
				<block className="icon_player_status" type="native">
					<bind name="gotoAndStop!" value="'long_offline'"/>
				</block>
			</block>
			<block type="text">
				<style>
					<marginLeft value="1px"/>
				</style>
				<style>
					<maxWidth value="210"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="subst('IDS_PLAYER_LONG_OFFLINE', [], {maxOfflineTime: maxOfflineTimeFormatted})"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ContactInfoTooltipInvitation">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="4px"/>
				<marginBottom value="-4px"/>
				<marginLeft value="6px"/>
				<marginRight value="5px"/>
			</style>
			<block>
				<style>
					<marginLeft value="4px"/>
				</style>
				<block className="icon_player_status" type="native">
					<bind name="gotoAndStop!" value="'invited'"/>
				</block>
			</block>
			<block type="text">
				<style>
					<marginLeft value="1px"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorDefault'"/>
				<text value="IDS_INVITED_TO_CLUB"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ContactInfoTooltipVoiceChatStatus">
		<bind name="primaryEntityDH" value="'selfVoiceChatEntity'; CC.voiceChat; 0"/>
		<bind name="watchDH" value="'selfVoiceChatEnabled'; ['selfVoiceChatEntity.voiceChat.evEnabledChanged']; selfVoiceChatEntity.voiceChat.enabled"/>
		<bind name="primaryEntityDH" value="'playerVoiceChatEntity'; CC.playerVoiceState; _playerName"/>
		<bind name="watch" value="'playerVoiceChatIsEnabled'; (playerVoiceChatEntity != null)"/>
		<bind name="watchDH" value="'playerVoiceChatIsMuted'; ['playerVoiceChatEntity.playerVoiceState.evIsMutedChanged']; playerVoiceChatEntity.playerVoiceState.isMuted"/>
		<bind name="watch" value="'voiceChatStatusText';	_isSelf						?	selfVoiceChatEnabled	? 	'IDS_VOICE_CHAT_ENABLED'
																								:	'IDS_VOICE_CHAT_DISABLED' :
										!(playerVoiceChatIsEnabled)	?	'IDS_PLAYER_IS_NOT_AVAILABLE_IN_VOICE_CHAT'	:
										playerVoiceChatIsMuted		?	'IDS_PLAYER_IS_MUTED_IN_VOICE_CHAT'
																	:	'IDS_PLAYER_IS_AVAILABLE_IN_VOICE_CHAT'"/>
		<bind name="watch" value="'state';	_isSelf 					? !(selfVoiceChatEnabled)	? 'disabled'
																					: 'speak' :
							!(playerVoiceChatIsEnabled) ? 'disabled' :
							playerVoiceChatIsMuted		? 'muted'
														: 'speak'"/>
		<bind name="visible" value="(_isSelf || selfVoiceChatEnabled)"/>
		<style>
			<width value="100%"/>
		</style>
		<block className="HorizontalDivider">
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
			<block className="divider_h" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginLeft value="10px"/>
				<marginRight value="8px"/>
				<marginTop value="4px"/>
				<marginBottom value="2px"/>
			</style>
			<block className="icon_voice_chat_small" type="native">
				<style>
					<marginTop value="6px"/>
					<marginRight value="4px"/>
				</style>
				<bind name="gotoAndStop!" value="state"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="(state == 'speak' ? '$FontColorWhite' : '$FontColorUnready')"/>
				<style>
					<maxWidth value="210"/>
				</style>
				<bind name="text" value="voiceChatStatusText"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ContactContextMenu">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'shipOverview'"/>
		<bind name="transition" value="shipOverview.enabled; shipOverview.enabled ? 0.4 : 0.25; {alpha: 1}; {alpha: 0}; {alpha: 1}; 2; !(shipOverview.enabled) &amp;&amp; !(inPort) ? 0.15 : 0.5"/>
		<bind name="style" value="'hitTest'; !(shipOverview.enabled)"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<bind name="firstEntityDH" value="'dockStateEntity'; CC.dockState"/>
		<bind name="watchDH" value="'dockStateName'; ['dockStateEntity.dockState.evUpdate']; dockStateEntity.dockState.stateName"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'selfPlayerDbId'; 		[]; selfPlayerEntity.accountSimple.dbId"/>
		<bind name="watchDH" value="'selfPlayerName'; 		['selfPlayerEntity.accountName.evChanged']; selfPlayerEntity.accountName.name"/>
		<bind name="watchDH" value="'selfPlayerNickName'; 	['selfPlayerEntity.accountName.evChanged']; selfPlayerEntity.accountName.nickName"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'isSelfPlayerCommander'; ['selfPlayerEntity.preBattlePlayerSimple.evIsCommanderChanged']; selfPlayerEntity.preBattlePlayerSimple.isCommander"/>
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="watchDH" value="'isSelf'; []; entityAccount.accountSimple.isSelfPlayer"/>
		<bind name="watchDH" value="'prebattleInvitedPlayerId'; []; entityAccount.playerInvitedToPrebattleInfo.id"/>
		<bind name="watchDH" value="'prebattlePlayerId'; []; entityAccount.preBattlePlayerSimple.id"/>
		<bind name="watch" value="'isInvitedToPrebattle'; (entityAccount.playerInvitedToPrebattleInfo != null)"/>
		<bind name="watch" value="'isInPrebattle'; (entityAccount.preBattlePlayerSimple != null &amp;&amp; !(isInvitedToPrebattle))"/>
		<bind name="dataRefDH" value="'accountDbId'; 'entityAccount.accountSimple.dbId'"/>
		<bind name="dataRefDH" value="'contactsGroups'; 'dataHub.chat.ref.chat.contactsGroups.ref.items'"/>
		<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
		<bind name="watchDH" value="'nickName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.nickName"/>
		<bind name="watchDH" value="'pureName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.name"/>
		<bind name="watchDH" value="'accountOnline'; ['entityAccount.accountStatus.evOnlineChanged']; entityAccount.accountStatus.online"/>
		<bind name="watchDH" value="'groupIdsOfAccount'; ['entityAccount.elementInGroups.evGroupsChanged']; entityAccount.elementInGroups.groupIds"/>
		<bind name="watchDH" value="'isIgnored';['entityAccount.contact.evIsIgnoredChanged']; !!entityAccount.contact.isIgnored"/>
		<bind name="watchDH" value="'canAddGroupEntitiesId'; ['entityAccount.elementInGroups.evCanAddGroupEntitiesChanged', 'dataHub.chat.ref.chat.evRosterChanged']; (entityAccount.elementInGroups) ? entityAccount.elementInGroups.canAddGroupEntitiesId : chat.canAddGroupEntitiesId"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'pureName'; entityAccount.accountName.name; 'playerInDivision'"/>
		<bind name="watch" value="'isInFormation'; (playerInDivision.length == 0) ? false : true"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'name';  entityAccount.accountName.name; 'sentInvitationData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'invitationsToDivision'; 'playerName';  entityAccount.accountName.name; 'receivedInvitationData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="watchDH" value="'clubsMembership'; ['entityAccount.clubman.evClubsMembershipChanged']; entityAccount.clubman.clubsMembership"/>
		<bind name="entityDH" value="'entityClub'; _playerContext.clubEntityId"/>
		<bind name="watchDH" value="'clubMembers'; ['entityClub.club.evMembersChanged']; entityClub.club.members"/>
		<bind name="collectionDH" value="CC.club; 'playersClubs'"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'clubsVoted'; ['clubsCommonEntity.clubsCommon.evClubsVotedChanged']; clubsCommonEntity.clubsCommon.clubsVoted"/>
		<bind name="watch" value="'isVoteInCurClub';	(clubsVoted[0] == entityClub.club.id) ||
									(clubsVoted[1] == entityClub.club.id) ||
									(clubsVoted[2] == entityClub.club.id) ? true : false"/>
		<block className="MenuBg">
			<styleClass value="$FullsizeAbsolute"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<block className="DeclareBlurLayer">
					<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
					<bind name="visible" value="optionData.blurEnabled"/>
					<block className="transparentPixel" type="native">
						<bind name="blurLayer" value="0"/>
					</block>
					<style>
						<position value="absolute"/>
					</style>
				</block>
				<block className="BlurMap">
					<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<height value="100%"/>
						<hitTest value="false"/>
					</style>
					<bind name="visible" value="optionData.blurEnabled"/>
					<block className="mc_blurmap5" type="native">
						<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
						<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
						<style>
							<width value="100%"/>
							<height value="100%"/>
						</style>
						<bind name="blurMap" value="0"/>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="!(false)"/>
				<block className="hint_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="false"/>
				<block className="dock_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginBottom value="-19px"/>
						<marginRight value="-14px"/>
						<marginLeft value="-14px"/>
						<marginTop value="-9px"/>
					</style>
				</block>
			</block>
		</block>
		<bind name="primaryEntityDH" value="'clanEntity'; CC.clan; selfPlayerEntity.clanman.clanId"/>
		<bind name="watchDH" value="'clanTag'; ['clanEntity.clan.evTagChanged']; clanEntity.clan.tag"/>
		<bind name="watchDH" value="'clanName'; ['clanEntity.clanExtended.evNameChanged']; clanEntity.clanExtended.name"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="firstEntityDH" value="'clanInviteeEntity'; CC.clanInvitee"/>
		<bind name="watchDH" value="'role'; ['selfPlayerEntity.clanman.evRoleChanged']; selfPlayerEntity.clanman.role"/>
		<bind name="watchDH" value="'isFull'; ['clanEntity.clanExtended.evIsFullChanged']; clanEntity.clanExtended.isFull"/>
		<bind name="watch" value="'haveOwnClan'; 			clanEntity != null"/>
		<bind name="watch" value="'canInvite'; 				(role == 'executive_officer' || role == 'recruitment_officer' || role == 'commander')"/>
		<bind name="watch" value="'notInBalancer'; 			(dockStateName != 'balancer')"/>
		<bind name="watch" value="'alreadyInYourClan'; 		(entityAccount.clanman != null) &amp;&amp; (entityAccount.clanman.clanId == selfPlayerEntity.clanman.clanId)"/>
		<bind name="watch" value="'alreadyInAnotherClan'; 	(entityAccount.clanman != null) &amp;&amp; (entityAccount.clanman.clanId != selfPlayerEntity.clanman.clanId)"/>
		<bind name="watch" value="'noFreePlacesInClan'; 		isFull"/>
		<block>
			<bind name="visible" value="(haveOwnClan &amp;&amp; canInvite &amp;&amp; notInBalancer &amp;&amp; !alreadyInYourClan)"/>
			<bind name="action" value="'click'; 'ClanProxy.sendInvite'; { playerDBID: accountDbId }"/>
			<bind name="style" value="'alpha'; (alreadyInAnotherClan || noFreePlacesInClan) ? 0.5 : 1"/>
			<bind name="tooltip" value="'SimpleWarningTooltip'; (alreadyInAnotherClan || noFreePlacesInClan) ? { _text: 	noFreePlacesInClan 		? 'IDS_CLAN_INVITATION_DENY_REASON_CLAN_IS_FULL':
																										alreadyInAnotherClan 	? 'IDS_CLAN_INVITATION_DENY_REASON_PLAYER_ALREADY_IN_CLAN'
																																: ''}
																							: null"/>
			<style>
				<width value="100%"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<styleClass value="$ContextMenuListItem"/>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'hitTest'; (alreadyInAnotherClan || noFreePlacesInClan) ? false : true"/>
				<block className="MenuItem">
					<styleClass value="$Fullsize"/>
					<block className="dock_submenu_item" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$ContextMenuListItemContent"/>
						<bind name="text" value="'IDS_INVITATION_TO_CLAN'"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="(isSelfPlayerCommander &amp;&amp; (isInPrebattle || isInvitedToPrebattle) &amp;&amp; dockStateName != 'balancer')"/>
			<block>
				<bind name="visible" value="(isInvitedToPrebattle == true)"/>
				<styleClass value="$ContextMenuListItem"/>
				<block className="MenuItem">
					<styleClass value="$Fullsize"/>
					<block className="dock_submenu_item" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$ContextMenuListItemContent"/>
						<bind name="text" value="'IDS_RECALL_INVITATION'"/>
					</block>
				</block>
				<bind name="action" value="'click'; 'revokeInvitationToDivision'; {id: prebattlePlayerId}"/>
			</block>
			<block>
				<bind name="visible" value="(isInPrebattle == true)"/>
				<styleClass value="$ContextMenuListItem"/>
				<block className="MenuItem">
					<styleClass value="$Fullsize"/>
					<block className="dock_submenu_item" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$ContextMenuListItemContent"/>
						<bind name="text" value="'IDS_EXCLUDE_PLAYER_OUT_OF_DIVISION'"/>
					</block>
				</block>
				<bind name="request" value="'buttonClick'; 'kickPlayerFromDivision'; {	playerId: prebattlePlayerId, name: nickName,
																		subtitle: 'IDS_EXCLUDE_PLAYER_OUT_OF_DIVISION'}"/>
			</block>
			<block>
				<bind name="visible" value="(isInPrebattle == true)"/>
				<styleClass value="$ContextMenuListItem"/>
				<block className="MenuItem">
					<styleClass value="$Fullsize"/>
					<block className="dock_submenu_item" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$ContextMenuListItemContent"/>
						<bind name="text" value="'IDS_APPOINT_PLAYER_TO_COMMANDER'"/>
					</block>
				</block>
				<bind name="action" value="'buttonClick'; 'changeCommander'; {playerId: prebattlePlayerId}"/>
				<bind name="dispatch" value="'buttonClick'; 'Tooltip.Close'; null"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="2px"/>
					<marginBottom value="3px"/>
				</style>
				<block className="HorizontalDivider">
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<width value="100%"/>
						<height value="3px"/>
					</style>
					<block className="divider_h" type="native">
						<styleClass value="$Fullsize"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="_playerContext.type == 'inviteToChannel'"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_INVITE_PLAYER_TO_CHANNEL'"/>
				</block>
			</block>
			<bind name="action" value="'click'; 'sendChannelInvite'; {channelId: _playerContext.channelId, inviteDbId: accountDbId}"/>
		</block>
		<block>
			<bind name="visible" value="_playerContext.type == 'inviteToClub'"/>
			<bind name="style" value="'alpha'; (_actionDenyReason == 'no_reason') ? 1 : 0.5"/>
			<bind name="tooltip" value="'SimpleWarningTooltip'; (_actionDenyReason != 'no_reason') ? {_text: _actionDenyReason} : null"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<styleClass value="$ContextMenuListItem"/>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'hitTest';  (_actionDenyReason == 'no_reason') ? true : false"/>
				<block className="MenuItem">
					<styleClass value="$Fullsize"/>
					<block className="dock_submenu_item" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$ContextMenuListItemContent"/>
						<bind name="text" value="'IDS_INVITE_TO_CLUB'"/>
					</block>
				</block>
			</block>
			<bind name="action" value="'click'; (_actionDenyReason == 'no_reason') ? 'inviteUserToClub' : '' ; {clubId: _playerContext.clubId, playerName: pureName, userId: accountDbId}"/>
		</block>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_SEND_MESSAGE'"/>
				</block>
			</block>
			<bind name="action" value="'click'; 'openChannelForPrivateMessages'; {dbId: accountDbId}"/>
		</block>
		<block>
			<bind name="feature" value="19;	''"/>
			<bind name="watch" value="'isInvitedToClubItemVisible';	(feature_19 != 'locked') &amp;&amp;
													(_playerContext.type != 'inviteToChannel') &amp;&amp;
													(_playerContext.type != 'inviteToClub')	&amp;&amp;
													(playersClubs.length &gt; 0)	? true
																				: false"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'InviteToClubContextMenuItem'; isInvitedToClubItemVisible ? {_entityAccountId: _entityAccountId} : null"/>
		</block>
		<block>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'playersInDivision'"/>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'playersInvitedToDivision'"/>
			<bind name="watch" value="'freePlaces'; (divisionData.maxPlayersInDivision - playersInDivision.length - playersInvitedToDivision.length)"/>
			<bind name="visible" value=" slimClientData.isFull &amp;&amp;
						accountOnline &amp;&amp;
						!(isInFormation) &amp;&amp;
						(dockStateName != 'balancer') &amp;&amp;
						(_playerContext.type != 'inviteToClub') &amp;&amp;
						!isInvitedToPrebattle &amp;&amp;
						(freePlaces &gt; 0)"/>
			<bind name="style" value="'alpha'; ((sentInvitationData.length == 0) &amp;&amp; (receivedInvitationData.length == 0)) ? 1 : 0.5 "/>
			<bind name="style" value="'hitTest'; ((sentInvitationData.length == 0) &amp;&amp; (receivedInvitationData.length == 0))"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItemWithAction">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_INVITE_IN_DIVISION'"/>
				</block>
				<bind name="action" value="'click'; 'inviteToDivision'; {playerId: accountDbId, playerName: pureName, inviteType: _inviteType}"/>
			</block>
		</block>
		<bind name="watchDH" value="'groupIdsOfAccount'; ['entityAccount.elementInGroups.evGroupsChanged']; entityAccount.elementInGroups.groupIds"/>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<bind name="visible" value="((groupIdsOfAccount==null) &amp;&amp; !(isIgnored))"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_ADD_TO_CONTACTS'"/>
				</block>
			</block>
			<bind name="action" value="'click'; 'addContact'; {dbId: accountDbId}"/>
		</block>
		<block>
			<bind name="visible" value="!(isIgnored) &amp;&amp; ((canAddGroupEntitiesId.length &gt; 0) &amp;&amp; (contactsGroups.length &gt; 1))"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_ADD_TO_GROUP'"/>
				</block>
			</block>
			<block className="button_expand_h" type="native">
				<style>
					<position value="absolute"/>
					<right value="6px"/>
				</style>
				<styleClass value="$MouseDisable"/>
				<styleClass value="$MiddleVAligned"/>
			</block>
			<bind name="tooltip" value="'MoveToGroupContextSubMenu'; {_entityAccountId: _entityAccountId, canAddGroupEntitiesId: canAddGroupEntitiesId, _dropDown: false}; 7"/>
		</block>
		<block>
			<bind name="visible" value="((_currentGroupId != null) &amp;&amp; !(isIgnored))"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItemWithAction">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_REMOVE_FROM_GROUP'"/>
				</block>
				<bind name="action" value="'click'; 'removeContactFromGroup'; {dbId: entityAccount.accountSimple.dbId, fromGroupId: _currentGroupId}"/>
			</block>
		</block>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="(!isIgnored) ? 'IDS_IGNORE_PLAYER' : 'IDS_NOT_IGNORE_PLAYER'"/>
				</block>
			</block>
			<bind name="action" value="'click'; 'userIgnoreContact'; {dbId: accountDbId, ignore: !(isIgnored)}"/>
		</block>
		<block>
			<bind name="visible" value="((groupIdsOfAccount!=null) &amp;&amp; !(isIgnored))"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItemWithAction">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_REMOVE_FROM_CONTACTS'"/>
				</block>
				<bind name="action" value="'click'; 'removeContact'; {dbId: accountDbId}"/>
			</block>
		</block>
		<block>
			<bind name="primaryEntityDH" value="'selfVoiceChatEntity'; CC.voiceChat; 0"/>
			<bind name="watchDH" value="'selfVoiceChatEnabled'; ['selfVoiceChatEntity.voiceChat.evEnabledChanged']; selfVoiceChatEntity.voiceChat.enabled"/>
			<bind name="instance" value="'VoiceChatContextMenuItem'; ((selfVoiceChatEnabled || isSelf) &amp;&amp; isInFormation) ? {_isSelf: isSelf, _playerName: pureName, _nickName: nickName} : null"/>
		</block>
		<block>
			<bind name="visible" value="	(_playerContext.type == 'clubMembersList') ||
						(_playerContext.type == 'contactsClubMembers') ||
						(_playerContext.type == 'inviteToPartyFromClubMembersList') ||
						((_playerContext.type == 'clubMemberPartyPlayer') &amp;&amp; (!_isWardog)) ||
						(_playerContext.type == 'channelParticipants' &amp;&amp; _playerContext.channelTypeIdent == 'club')"/>
			<style>
				<width value="100%"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="tooltip" value="'SimpleWarningTooltip'; (dockStateName == 'balancer') ? {_text: tr('IDS_CONTEXT_ACTION_NOT_AVAILABLE_IN_MATCHMAKER')} : null"/>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="2px"/>
				</style>
				<block className="HorizontalDivider">
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<width value="100%"/>
						<height value="3px"/>
					</style>
					<block className="divider_h" type="native">
						<styleClass value="$Fullsize"/>
					</block>
				</block>
			</block>
			<block>
				<bind name="style" value="'hitTest'; (dockStateName == 'balancer') ? false : true"/>
				<bind name="style" value="'alpha'; (dockStateName == 'balancer') ? 0.5 : 1"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<bind name="visible" value="accountDbId != _playerContext.clubLeaderDbId"/>
					<styleClass value="$ContextMenuListItem"/>
					<style>
						<backgroundColor value="0x01000000"/>
					</style>
					<bind name="tooltip" value="'SimpleWarningTooltip'; isVoteInCurClub ? {_text: tr('IDS_UNABLE_TO_START_VOTE_TILL_CURRENT_NOT_FINISHED')} : null"/>
					<block>
						<styleClass value="$Fullsize"/>
						<bind name="style" value="'hitTest'; !(isVoteInCurClub) ? true : false"/>
						<bind name="style" value="'alpha'; !(isVoteInCurClub) ? 1 : 0.5"/>
						<block className="MenuItemWithAction">
							<styleClass value="$Fullsize"/>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$FullsizeAbsolute"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$ContextMenuListItemContent"/>
								<bind name="text" value="'IDS_KICK_PLAYER_FROM_CLUB'"/>
							</block>
							<bind name="action" value="'click'; 'kickClubMember'; {clubId: _playerContext.clubId, accountId: accountDbId, price: 0, playerName: pureName}"/>
						</block>
					</block>
				</block>
				<block>
					<bind name="visible" value="accountDbId == _playerContext.clubLeaderDbId"/>
					<styleClass value="$ContextMenuListItem"/>
					<style>
						<backgroundColor value="0x01000000"/>
					</style>
					<bind name="tooltip" value="'SimpleWarningTooltip';	(clubMembers.length &lt; VoteTypes.MIN_MEMBERS_TO_RIOT) ? {_text: tr('IDS_DEPOSE_CLUB_LEADER_HINT')} :
														isVoteInCurClub 									 ? {_text: tr('IDS_UNABLE_TO_START_VOTE_TILL_CURRENT_NOT_FINISHED')}
																											 : null"/>
					<block>
						<styleClass value="$Fullsize"/>
						<bind name="style" value="'hitTest'; ((clubMembers.length &gt;= VoteTypes.MIN_MEMBERS_TO_RIOT) &amp;&amp; !(isVoteInCurClub)) ? true : false"/>
						<bind name="style" value="'alpha'; ((clubMembers.length &gt;= VoteTypes.MIN_MEMBERS_TO_RIOT) &amp;&amp; !(isVoteInCurClub)) ? 1 : 0.5"/>
						<block className="MenuItemWithAction">
							<styleClass value="$Fullsize"/>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$FullsizeAbsolute"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$ContextMenuListItemContent"/>
								<bind name="text" value="'IDS_DEPOSE_CLUB_LEADER'"/>
							</block>
							<bind name="action" value="'click'; 'kickClubLeaderWindow'; {clubEntityId: _playerContext.clubEntityId, clubId: _playerContext.clubId, accountId: accountDbId, playerName: pureName}"/>
						</block>
					</block>
				</block>
				<block>
					<bind name="visible" value="selfPlayerDbId == _playerContext.clubLeaderDbId"/>
					<styleClass value="$ContextMenuListItem"/>
					<block>
						<styleClass value="$Fullsize"/>
						<block className="MenuItemWithAction">
							<styleClass value="$Fullsize"/>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$FullsizeAbsolute"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$ContextMenuListItemContent"/>
								<bind name="text" value="'IDS_CHANGE_CLUB_LEADER'"/>
							</block>
							<bind name="action" value="'click'; 'changeClubLeaderWindow'; {clubEntityId: _playerContext.clubEntityId, entityAccountId: _entityAccountId}"/>
						</block>
					</block>
				</block>
			</block>
		</block>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<block>
			<bind name="visible" value="realmConstants.showProfileInBrowser &amp;&amp; (dockStateName != 'balancer')"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_PROFILE'"/>
				</block>
			</block>
			<bind name="request" value="'click'; 'showPlayerStats'; { playerId: accountDbId + '',  url: 'playerStats' }"/>
		</block>
	</block>
	<block className="VoiceChatContextMenuItem">
		<bind name="primaryEntityDH" value="'playerVoiceChatEntity'; CC.playerVoiceState; _playerName"/>
		<bind name="watch" value="'playerVoiceChatIsEnabled'; (playerVoiceChatEntity != null)"/>
		<bind name="watchDH" value="'playerVoiceChatIsMuted'; ['playerVoiceChatEntity.playerVoiceState.evIsMutedChanged']; playerVoiceChatEntity.playerVoiceState.isMuted"/>
		<bind name="watch" value="'voiceChatMenuText'; 	!(playerVoiceChatIsEnabled) ? 'IDS_PLAYER_IS_NOT_AVAILABLE_IN_VOICE_CHAT' :
										playerVoiceChatIsMuted		? 'IDS_UNMUTE_PLAYER_VOICE_CHAT'
																	: 'IDS_MUTE_PLAYER_VOICE_CHAT'"/>
		<bind name="watch" value="'state'; 	!(playerVoiceChatIsEnabled)	? 'disabled' :
							playerVoiceChatIsMuted		? 'muted'
														: 'speak'"/>
		<bind name="style" value="'alpha'; !(playerVoiceChatIsEnabled)	? 0.9 : 1"/>
		<bind name="style" value="'hitTest'; !(playerVoiceChatIsEnabled)	? false : true"/>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<bind name="action" value="'buttonClick'; 'toggleVoice'; {playerName: _playerName, nickName: _nickname}"/>
		</block>
		<block>
			<style>
				<hitTest value="false"/>
			</style>
			<styleClass value="$ContextMenuListItemContent"/>
			<block className="icon_voice_chat_small" type="native">
				<style>
					<marginTop value="6px"/>
					<marginRight value="4px"/>
				</style>
				<bind name="gotoAndStop!" value="state"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="	!(playerVoiceChatIsEnabled)	? '$FontColorUnready' :
							playerVoiceChatIsMuted		? '$FontColorUnready'
														: '$FontColorWhite'"/>
				<style>
					<width value="100%"/>
					<marginBottom value="3px"/>
					<hitTest value="false"/>
					<leading value="-3"/>
				</style>
				<bind name="text" value="voiceChatMenuText"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="MoveToGroupContextSubMenu">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'shipOverview'"/>
		<bind name="transition" value="shipOverview.enabled; shipOverview.enabled ? 0.4 : 0.25; {alpha: 1}; {alpha: 0}; {alpha: 1}; 2; !(shipOverview.enabled) &amp;&amp; !(inPort) ? 0.15 : 0.5"/>
		<bind name="style" value="'hitTest'; !(shipOverview.enabled)"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'MenuTooltipBackground'; { _isInBattle: _isInBattle }"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="canAddGroupEntitiesId; 'MoveToGroupContextMenuItem'; {_entityAccountId: _entityAccountId, _currentGroupId: _currentGroupId}"/>
		</block>
	</block>
	<block className="MoveToGroupContextMenuItem">
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="dataRefDH" value="'accountDbId'; 'entityAccount.accountSimple.dbId'"/>
		<bind name="entityDH" value="'group'; $value"/>
		<bind name="visible" value="(group.groupOfElements.groupId != 1)"/>
		<styleClass value="$ContextMenuListItem"/>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="group.groupOfElements.name"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<bind name="action" value="'click'; 'addContactToGroupGroup'; {dbId: accountDbId, toGroupId: group.groupOfElements.groupId, fromGroupId: _currentGroupId}"/>
	</block>
	<block className="InviteToClubContextMenuItem">
		<bind name="firstEntityDH" value="'dockStateEntity'; CC.dockState"/>
		<bind name="watchDH" value="'dockStateName'; ['dockStateEntity.dockState.evUpdate']; dockStateEntity.dockState.stateName"/>
		<bind name="style" value="'alpha'; (dockStateName == 'balancer') ? 0.5 : 1"/>
		<bind name="tooltip" value="'SimpleWarningTooltip'; (dockStateName == 'balancer') ? {_text: tr('IDS_CONTEXT_ACTION_NOT_AVAILABLE_IN_MATCHMAKER')} : null"/>
		<styleClass value="$ContextMenuListItem"/>
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="style" value="'hitTest';	(dockStateName == 'balancer') ? false : true"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_INVITE_TO_CLUB'"/>
				</block>
			</block>
			<block className="button_expand_h" type="native">
				<bind name="visible" value="(dockStateName == 'balancer') ? false : true"/>
				<style>
					<position value="absolute"/>
					<right value="6px"/>
				</style>
				<styleClass value="$MouseDisable"/>
				<styleClass value="$MiddleVAligned"/>
			</block>
			<bind name="tooltip" value="'InviteToClubContextSubMenu'; {_entityAccountId: _entityAccountId, _dropDown: (_dropDown ? _dropDown : false)}; 7"/>
		</block>
	</block>
	<block className="InviteToClubContextSubMenu">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'shipOverview'"/>
		<bind name="transition" value="shipOverview.enabled; shipOverview.enabled ? 0.4 : 0.25; {alpha: 1}; {alpha: 0}; {alpha: 1}; 2; !(shipOverview.enabled) &amp;&amp; !(inPort) ? 0.15 : 0.5"/>
		<bind name="style" value="'hitTest'; !(shipOverview.enabled)"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<block className="MenuBg">
			<styleClass value="$FullsizeAbsolute"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<block className="DeclareBlurLayer">
					<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
					<bind name="visible" value="optionData.blurEnabled"/>
					<block className="transparentPixel" type="native">
						<bind name="blurLayer" value="0"/>
					</block>
					<style>
						<position value="absolute"/>
					</style>
				</block>
				<block className="BlurMap">
					<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<height value="100%"/>
						<hitTest value="false"/>
					</style>
					<bind name="visible" value="optionData.blurEnabled"/>
					<block className="mc_blurmap5" type="native">
						<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
						<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1}; {alpha: 0}"/>
						<style>
							<width value="100%"/>
							<height value="100%"/>
						</style>
						<bind name="blurMap" value="0"/>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="!(_dropDown)"/>
				<block className="hint_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="_dropDown"/>
				<block className="dock_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginBottom value="-19px"/>
						<marginRight value="-14px"/>
						<marginLeft value="-14px"/>
						<marginTop value="-9px"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="clubs; 'InviteToClubContextSubMenuItem'; {_entityAccountId: _entityAccountId}"/>
		</block>
	</block>
	<block className="InviteToClubContextSubMenuItem">
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="dataRefDH" value="'maxClubsCapacity'; 'clubsCommonEntity.clubsCommon.maxClubsCapacity'"/>
		<bind name="watchDH" value="'clubsVoted'; ['clubsCommonEntity.clubsCommon.evClubsVotedChanged']; clubsCommonEntity.clubsCommon.clubsVoted"/>
		<bind name="dataRefDH" value="'entityClub'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'clubName';['entityClub.club.evNameChanged']; entityClub.club.name"/>
		<bind name="watchDH" value="'leaderDbId';['entityClub.club.evleaderIdChanged']; entityClub.club.leaderId"/>
		<bind name="watchDH" value="'clubMembers'; ['entityClub.club.evMembersChanged']; entityClub.club.members"/>
		<bind name="watchDH" value="'invitedPlayers'; ['entityClub.club.evInvitedClubmansChanged']; entityClub.club.invitedClubmans"/>
		<bind name="entityDH" value="'entityAccount'; _entityAccountId"/>
		<bind name="dataRefDH" value="'accountDbId'; 'entityAccount.accountSimple.dbId'"/>
		<bind name="watchDH" value="'accountLevel'; ['entityAccount.accountLevel.evLevelChanged']; entityAccount.accountLevel.level"/>
		<bind name="contains" value="clubMembers; ($item == _entityAccountId); 'isClubMember'"/>
		<bind name="contains" value="invitedPlayers; ($item.accountEntityId == _entityAccountId); 'isInvitedToClub'"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'selfPlayerDbId'; 		[]; selfPlayerEntity.accountSimple.dbId"/>
		<bind name="watchDH" value="'selfPlayerName'; 		['selfPlayerEntity.accountName.evChanged']; selfPlayerEntity.accountName.name"/>
		<bind name="watchDH" value="'selfPlayerNickName'; 	['selfPlayerEntity.accountName.evChanged']; selfPlayerEntity.accountName.nickName"/>
		<bind name="levelToFeature" value="accountLevel; 19; 'clubBattleFeatureUnLocked'"/>
		<bind name="watch" value="'isVoteInCurClub';	(clubsVoted[0] == entityClub.club.id) ||
									(clubsVoted[1] == entityClub.club.id) ||
									(clubsVoted[2] == entityClub.club.id) ? true : false"/>
		<bind name="watch" value="'inviteToClubDenyReason';	(isVoteInCurClub &amp;&amp; (selfPlayerDbId != leaderDbId)) ? tr('IDS_UNABLE_TO_START_VOTE_TILL_CURRENT_NOT_FINISHED') :
											(maxClubsCapacity &lt;= (clubMembers.length + invitedPlayers.length)) ? tr('IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_NO_FREE_PLACE') :
											!(clubBattleFeatureUnLocked)	? tr('IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_LOW_LEVEL') :
											isClubMember					? tr('IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_ALREADY_IN_CLUB') :
											isInvitedToClub					? tr('IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_ALREADY_INVITED')
																			: 'no_reason'"/>
		<styleClass value="$ContextMenuListItem"/>
		<bind name="style" value="'alpha'; (inviteToClubDenyReason == 'no_reason') ? 1 : 0.5"/>
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<block>
			<bind name="style" value="'hitTest'; (inviteToClubDenyReason == 'no_reason')"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="MenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="clubName"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<bind name="tooltip" value="'SimpleWarningTooltip'; (inviteToClubDenyReason != 'no_reason') ? {_text: inviteToClubDenyReason} : null"/>
		<bind name="action" value="'click'; (inviteToClubDenyReason == 'no_reason') ? 'inviteUserToClub' : '' ; {clubId: entityClub.club.id, playerName: entityAccount.accountName.name, userId: accountDbId}"/>
	</block>
	<block className="VoiceChatDockIcon">
		<bind name="primaryEntityDH" value="'selfVoiceChatEntity'; CC.voiceChat; 0"/>
		<bind name="watchDH" value="'selfVoiceChatEnabled'; ['selfVoiceChatEntity.voiceChat.evEnabledChanged']; selfVoiceChatEntity.voiceChat.enabled"/>
		<bind name="primaryEntityDH" value="'playerVoiceChatEntity'; CC.playerVoiceState; _playerName"/>
		<bind name="watchDH" value="'playerVoiceChatIsMuted'; ['playerVoiceChatEntity.playerVoiceState.evIsMutedChanged']; playerVoiceChatEntity.playerVoiceState.isMuted"/>
		<bind name="watchDH" value="'playerVoiceChatIsSpeaking'; ['playerVoiceChatEntity.playerVoiceState.evIsSpeakingChanged']; playerVoiceChatEntity.playerVoiceState.isSpeaking"/>
		<bind name="watch" value="'playerVoiceChatIsEnabled'; playerVoiceChatEntity != null"/>
		<bind name="watch" value="'isChatEnabled'; _isSelf	? selfVoiceChatEnabled
											: (selfVoiceChatEnabled ? playerVoiceChatIsEnabled : true))"/>
		<bind name="watch" value="'state';	!(isChatEnabled)			? 'disabled' :
							playerVoiceChatIsMuted		? 'muted' :
							playerVoiceChatIsSpeaking	? 'speak'
														: null"/>
		<bind name="transition" value="state; 0.1; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1"/>
		<block className="icon_voice_chat_small" type="native">
			<bind name="gotoAndStop!" value="state"/>
		</block>
	</block>
	<block className="MenuTooltipBackground">
		<styleClass value="$FullsizeAbsolute"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'DeclareBlurLayer'; _isInBattle ?  null : {}"/>
			<bind name="instance" value="'BlurMap'; _isInBattle ? null : {}"/>
		</block>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="(optionData.contrast == true || _isInBattle == true)"/>
			<style>
				<marginTop value="-2px"/>
				<marginBottom value="-2px"/>
			</style>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="!(_isInBattle)"/>
			<style>
				<marginTop value="-1px"/>
				<marginBottom value="-1px"/>
			</style>
			<block className="hint_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
		</block>
	</block>
	<block className="TeamStructure">
		<bind name="controller" value="lesta.dialogs.battle_window_controllers.uss_controllers.ControllerBattleStats"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'gameInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="firstEntityDH" value="'prefs'; CC.prefsMarker"/>
		
		<bind name="collectionDH" value="CC.userPrefs; 'userPrefsCollection'"/>
		<bind name="entityDH" value="'userPrefsEntity'; userPrefsCollection[0].id"/>
		<bind name="watchDH" value="'userPrefs'; ['userPrefsEntity.userPrefs.evUserPrefsChanged']; userPrefsEntity.userPrefs.userPrefs"/>
		
		<bind name="watchDH" value="'earsConfigEnabled'; ['prefs.prefsBattle.evUpdate']; prefs.prefsBattle.enableEars"/>
		<bind name="watch" value="'enableEars';	(earsConfigEnabled &amp;&amp;
								(gameInfo.battleType != BattleTypes.INTRO_MISSION) &amp;&amp;
								(gameInfo.battleType != BattleTypes.PVE_BATTLE))"/>
		<bind name="watch" value="'isDynamicDivisionsEnabled'; (((gameInfo.battleType == BattleTypes.COOPERATIVE_BATTLE) || (gameInfo.battleType == BattleTypes.RANDOM_BATTLE)) &amp;&amp;
												slimClientData.isFull)"/>
		
		<bind name="watch" value="'langRU'; (userPrefs.elementsGroupExpand.langRU == null)? ((tr('IDS_MENU_SETTINGS') == 'НАСТРОЙКИ') ? true : false) : userPrefs.elementsGroupExpand.langRU"/>
		<bind name="instance" value="'EarsSettings';{userPrefs:userPrefs}"/>
		<block type="text">
			<bind name='text' value="langRU ? 'Настройка панелей' : 'Team lineups settings'"/> 
			<styleClass value="$TextDefault"/>
			<style>
				<position value="absolute"/>
				<top value="35"/>
				<left value="30"/>
			</style>
		</block>
		<block className="button_settings_small" type="native">
			<bind name="watch" value=" 'showSettingsBox'; (userPrefs.elementsGroupExpand.showSettingsBox == null) ? false : userPrefs.elementsGroupExpand.showSettingsBox "/>
			<bind name="catch" value="'switchshowSettingsBox'; { showSettingsBox: !showSettingsBox }; 'saveshowSettingsBox'"/>
			<bind name="action" value="'saveshowSettingsBox' ; 'setUserPref' ; {value: showSettingsBox, name: 'elementsGroupExpand', subName: 'showSettingsBox'}"/>
			<bind name="dispatch" value="'click'; 'switchshowSettingsBox'"/>
			<style>
				<left value="5px"/>
				<top value="35px"/>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'EarsContent'; enableEars ? {_selfPlayer: selfPlayer, _isDynamicDivisionsEnabled: isDynamicDivisionsEnabled} : null"/>
		</block>
	</block>
	<block className="EarsContent">
		<bind name="firstEntityDH" value="'mouseEntity'; CC.mouse"/>
		<bind name="watchDH" value="'isCursorActive'; ['mouseEntity.mouse.evActiveChanged']; mouseEntity.mouse.active"/>
		<bind name="changeDispatch" value="isCursorActive; 'Tooltip.Close'; {}; 1; false"/>
		<style>
			<width value="100%"/>
			<height value="100%"/>
		</style>
		<block>
			<style>
				<left value="0px"/>
				<top value="67px"/>
				<position value="absolute"/>
			</style>
			<bind name="collectionRepeatDH" value="CC.avatar; 'TeamStructureRendererAllies'; 'team.ally.sortedAlive'; {_selfPlayer: _selfPlayer, _isDynamicDivisionsEnabled: _isDynamicDivisionsEnabled}"/>
		</block>
		<block>
			<style>
				<right value="0px"/>
				<top value="67px"/>
				<position value="absolute"/>
			</style>
			<bind name="collectionRepeatDH" value="CC.avatar; 'TeamStructureRendererEnemies'; 'team.enemy.sortedAlive'; {_selfPlayer: _selfPlayer}"/>
		</block>
	</block>
	<block className="EarsSettings">
        <bind name="visible" value="showSettingsBox"/>
        <bind name="var" value="{showStats:false}"/>  <!-- showStats -->
		<bind name='file' value="'scriptsExist';'../../scripts/client/mods/ml-lastomer.pyc'"/>
		
		<bind name="collectionDH" value="CC.userPrefs; 'userPrefsCollection'"/>
        <bind name="entityDH" value="'userPrefsEntity'; userPrefsCollection[0].id"/>
        <bind name="watchDH" value="'userPrefs'; ['userPrefsEntity.userPrefs.evUserPrefsChanged']; userPrefsEntity.userPrefs.userPrefs"/>
        
        <bind name="draggable" value="'SBDragZone'; 'IMPosition'; 'SB'"/>
        <bind name="watch" value="'SBPositionX'; (userPrefs.IMPositionX.SB == null)  ? (stageSize.x / 3) :  userPrefs.IMPositionX.SB"/>
        <bind name="watch" value="'SBPositionY'; (userPrefs.IMPositionY.SB == null)  ? (stageSize.y / 5) :  userPrefs.IMPositionY.SB"/>
        <bind name="left" value="SBPositionX"/>
        <bind name="top" value="SBPositionY"/> 
               
        <bind name="watch" value=" 'showSettingsBox'; (userPrefs.elementsGroupExpand.showSettingsBox == null) ? true : userPrefs.elementsGroupExpand.showSettingsBox "/> 
        <bind name="catch" value="'switchshowSettingsBox'; { showSettingsBox: !showSettingsBox }; 'saveshowSettingsBox'"/>
		
		<bind name="appear" value="'addedToStage'; 0.6; 0; {alpha: 0}; {alpha: 1}"/>
        <style>
            <position value="absolute"/>
            <backgroundColor value="0x33001000"/>
        </style>
        
        <bind name="instance" value="'DropShadow'; {}"/>
        
        <block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="showSettingsBox"/>
			<style>
				<marginTop value="-2px"/>
				<marginBottom value="-2px"/>
			</style>
		</block>

        <block> 
            <style>
                <marginBottom value="3px"/>
                <marginTop value="2px"/>
                <marginRight value="5px"/>
                <marginLeft value="5px"/>
            </style>
            <block className="captionMenu">
                <block type="text">
                    <bind name='text' value="langRU ? 'Настройки панелей команд' : 'Team lineups settings'"/>
                    <styleClass value="$TextDefaultBold"/>
                    <style>
                        <fontSize value="18"/>
                    </style>
                </block>
                <block>
                    <style>
                        <position value="absolute"/>
                        <right value="5px"/>
                        <marginTop value="5px"/>
                    </style>
                    <block className="button_close" type="native">
                        <bind name="dispatch" value="'click'; 'switchshowSettingsBox'"/>
                    </block>
                </block>
				<bind name="style" value="'width'; (((staticTTX || !earsEnabled) ? 270 : 545) + 'px')"/>
                
                <bind name="instance" value="'HorizontalDivider'; {}"/>
                <params>
                    <param name="name" value="SBDragZone"/>
                </params>
			</block>
			
			<block className="Loc_Tab">
				<bind name="style" value="'marginLeft'; (((staticTTX || !earsEnabled) ? 168 : 443) + 'px')"/>
				<style>
					<marginLeft value="168"/>
                    <marginTop value="3px"/>
                    <marginBottom value="0px"/>
				</style>
				<bind name="watch" value="'langRU'; (userPrefs.elementsGroupExpand.langRU == null)? ((tr('IDS_MENU_SETTINGS') == 'НАСТРОЙКИ') ? true : false) : userPrefs.elementsGroupExpand.langRU"/>
                <bind name="catch" value="'switchLangRU'"/>
				<bind name="changeDispatch" value="langRU; 'saveLangRU'"/>				
                <bind name="action" value="'saveLangRU' ; 'setUserPref' ; {value: langRU, name: 'elementsGroupExpand', subName: 'langRU'}"/>
                <block className="tab_bar_bg" type="native">
					<style>
						<widthByChildren value="true"/>
						<heightByChildren value="true"/>
					</style>
					<block>
                    <style>
						<marginRight value="2px"/>
						<flow value="horizontal"/>
					</style>
						<block className="MainTabSmall">
							<block className="tab_bar_item_small" type="native">
								<style>
									<width value="50"/>
									<height value="25"/>											
								</style>
								<bind name="selected" value="langRU"/>
								<bind name="dispatch" value="'buttonClick'; 'switchLangRU'; {langRU: true}"/>
								<bind name="label" value="'RUS'"/>
							</block>
						</block>
						<block className="MainTabSmall">
							<block className="tab_bar_item_small" type="native">
								<style>
									<width value="50"/>
									<height value="25"/>
								</style>
								<bind name="selected" value="!langRU"/>
								<bind name="dispatch" value="'buttonClick'; 'switchLangRU'; {langRU: false}"/>
								<bind name="label" value="'ENG'"/>
							</block>
						</block>
					</block>
				</block>
			</block>
			
			<block className="showRows">
				<style>
					<marginTop value="6px"/>
					<marginBottom value="0px"/>
				</style>
				<bind name="watch" value="'earsEnabled'; (userPrefs.elementsGroupExpand.earsEnabled == null) ? true : userPrefs.elementsGroupExpand.earsEnabled "/>
				<bind name="catch" value="'switchEarsEnabled'; { earsEnabled: !earsEnabled }; 'saveEarsEnabled'"/>
				<bind name="action" value="'saveEarsEnabled' ; 'setUserPref' ; {value: earsEnabled, name: 'elementsGroupExpand', subName: 'earsEnabled'}"/>
                           
				<bind name="instance" value="'CheckBox'; {switchProperty: earsEnabled, label: (langRU ? 'Отображать панели' : 'Show team lineups'), _maxTfWidth: 250}"/>
				<bind name="dispatch" value="'click'; 'switchEarsEnabled'"/>
			</block>
			
			<block className="full_tab_settings">	
				<bind name="visible" value="earsEnabled"/>
				<style>
					<flow value="horizontal"/>
					<widthByChildren value="true"/>
					<heightByChildren value="true"/>
				</style>
				<block className="main_tab_settings">>
					<block className="Type_Specifications">
						<!--<bind name="visible" value="false"/>-->
						<block type="text">
							<bind name='text' value="langRU ? 'Тип ТТХ:' : 'Type specifications:'"/>
							<styleClass value="$TextDefault"/>
						</block>
						<style>
							<marginLeft value="25px"/>
							<marginTop value="0px"/>
							<marginBottom value="3px"/>
						</style>
						<bind name="watch" value="'staticTTX'; (userPrefs.elementsGroupExpand.staticTTX == null)? true : userPrefs.elementsGroupExpand.staticTTX"/>
						<bind name="catch" value="'switchStaticTTX'"/>
						<bind name="changeDispatch" value="staticTTX; 'saveStaticTTX'"/>				
						<bind name="action" value="'saveStaticTTX' ; 'setUserPref' ; {value: staticTTX, name: 'elementsGroupExpand', subName: 'staticTTX'}"/>
						<block className="tab_bar_bg" type="native">
							<style>
								<widthByChildren value="true"/>
								<heightByChildren value="true"/>
							</style>
							<block>
								<style>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="120"/>
											<height value="25"/>											
										</style>
										<bind name="selected" value="staticTTX"/>
										<bind name="dispatch" value="'buttonClick'; 'switchStaticTTX'; {staticTTX: true}"/>
										<bind name="label" value="langRU ? 'Статические ТТХ' : 'Static specifications'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="120"/>
											<height value="25"/>
										</style>
										<bind name="selected" value="!staticTTX"/>
										<bind name="dispatch" value="'buttonClick'; 'switchStaticTTX'; {staticTTX: false}"/>
										<bind name="label" value="langRU ? 'Динамические ТТХ' : 'dynamic specifications'"/>
									</block>
								</block>
							</block>
						</block>
					</block>

					<block className="earsPreferences">
						
				
						<block className="var_Icons">
							<bind name="visible" value="staticTTX"/>
							<block type="text">
								<bind name='text' value="langRU ? 'Варианты иконок:' : 'Version of icons:'"/>
								<styleClass value="$TextDefault"/>
							</block>
							<style>
								<marginLeft value="25"/>
								<marginTop value="0px"/>
								<marginBottom value="3px"/>
							</style>
							<bind name="watch" value="'varIcons'; ((userPrefs.chatBoxWidth.varIcons != 1) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 2) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 3) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 4) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 5) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 6) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 7)) ? 2 : userPrefs.chatBoxWidth.varIcons"/>
							<bind name="catch" value="'switchVarIcons'"/>
							<bind name="changeDispatch" value="varIcons; 'saveVarIcons'"/>				
							<bind name="action" value="'saveVarIcons' ; 'setUserPref' ; {value: varIcons, name: 'chatBoxWidth', subName: 'varIcons'}"/>
							<block className="tab_bar_bg" type="native">
								<style>
									<widthByChildren value="true"/>
									<heightByChildren value="true"/>
								</style>
								<block>
									<style>
										<marginLeft value="2px"/>
										<marginRight value="2px"/>
										<flow value="horizontal"/>
									</style>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == '1'"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: '1'}"/>
											<bind name="label" value="langRU ? 'Комби' : 'Combi'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == 2"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: 2}"/>
											<bind name="label" value="langRU ? 'Мини' : 'Mini'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == 3"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: 3}"/>
											<bind name="label" value="langRU ? 'Арт.' : 'Artillery'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == 4"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: 4}"/>
											<bind name="label" value="langRU ? 'Арт.лайт' : 'Art_lite'"/>
										</block>
									</block>
								</block>
								<block>
									<style>
										<marginLeft value="2px"/>
										<marginRight value="2px"/>
										<flow value="horizontal"/>
									</style>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == 5"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: 5}"/>
											<bind name="label" value="langRU ? 'Авиа' : 'Aircraft'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="90px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == 6"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: 6}"/>
											<bind name="label" value="langRU ? 'С флагами' : 'With Flags'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="90px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="varIcons == 7"/>
											<bind name="dispatch" value="'buttonClick'; 'switchVarIcons'; {varIcons: 7}"/>
											<bind name="label" value="langRU ? 'Без иконок' : 'Without Icons'"/>
										</block>
									</block>
								</block>
							</block>
						</block>	
				
				
				
						<block className="Width_nickname">
							<style>
								<marginLeft value="15"/>
								<marginTop value="3px"/>
								<marginBottom value="3px"/>
							</style>
							<block type="text">
								<bind name='text' value="(langRU ? 'Ширина ника' : 'Width nickname') + ' (' + widthNickname + 'px):'"/>
									<styleClass value="$TextDefault"/>
							</block>
							<block> 
								<style>
									<marginTop value="0px"/>
									<marginBottom value="2px"/>							
								</style> 
								<bind name="watch" value="'widthNickname'; (userPrefs.chatBoxWidth.widthNickname == null) ? 40 : format(userPrefs.chatBoxWidth.widthNickname,0)"/>						
								<bind name="catch" value="'switchWidthNickname'"/>
								<bind name="action" value="'switchWidthNickname' ; 'setUserPref' ; {value: widthNickname, name: 'chatBoxWidth', subName: 'widthNickname'}"/> 
								<block className="slider_default" type="native">
									<style>
										<width value="240"/>
										<marginTop value="6px"/>
									</style>
									<bind name="minimum" value="30"/>
									<bind name="maximum" value="120"/>
									<bind name="snapping" value="true"/>
									<bind name="snapInterval" value="1"/>	
									<bind name="liveDragging" value="true"/>
									<bind name="sync" value="'value'; 'valueChange'; widthNickname; 'switchWidthNickname'"/>
								</block>
							</block>
						</block>
						
						<block className="Width_shipname">
							<bind name="visible" value="(varIcons == 7) &amp;&amp; staticTTX"/>
							<style>
								<marginLeft value="15"/>
								<marginTop value="3px"/>
								<marginBottom value="3px"/>
							</style>
							<block type="text">
								<bind name='text' value="(langRU ? 'Ширина названия корабля' : 'Width Shipname') + ' (' + widthShipname + 'px):'"/>
									<styleClass value="$TextDefault"/>
							</block>
							<block> 
								<style>
									<marginTop value="0px"/>
									<marginBottom value="2px"/>							
								</style> 
								<bind name="watch" value="'widthShipname'; (userPrefs.chatBoxWidth.widthShipname == null) ? 50 : format(userPrefs.chatBoxWidth.widthShipname,0)"/>						
								<bind name="catch" value="'switchWidthShipname'"/>
								<bind name="action" value="'switchWidthShipname' ; 'setUserPref' ; {value: widthShipname, name: 'chatBoxWidth', subName: 'widthShipname'}"/> 
								<block className="slider_default" type="native">
									<style>
										<width value="240"/>
										<marginTop value="6px"/>
									</style>
									<bind name="minimum" value="40"/>
									<bind name="maximum" value="140"/>
									<bind name="snapping" value="true"/>
									<bind name="snapInterval" value="1"/>	
									<bind name="liveDragging" value="true"/>
									<bind name="sync" value="'value'; 'valueChange'; widthShipname; 'switchWidthShipname'"/>
								</block>
							</block>
						</block>
				
						<block className="Scale_Tabs">
							<block type="text">
								<bind name='text' value="langRU ? 'Масштаб панелей:' : 'Scale:'"/>
								<styleClass value="$TextDefault"/>
							</block>
							<style>
								<marginLeft value="25"/>
								<marginTop value="0px"/>
								<marginBottom value="6px"/>
							</style>
							<bind name="watch" value="'scaleIcons'; ((userPrefs.chatBoxWidth.scaleIcons != 80) &amp;&amp; (userPrefs.chatBoxWidth.scaleIcons != 90) &amp;&amp; (userPrefs.chatBoxWidth.scaleIcons != 100)) ? 90 : userPrefs.chatBoxWidth.scaleIcons"/>
							<bind name="catch" value="'switchScaleIcons'"/>
							<bind name="changeDispatch" value="scaleIcons; 'saveScaleIcons'"/>				
							<bind name="action" value="'saveScaleIcons' ; 'setUserPref' ; {value: scaleIcons, name: 'chatBoxWidth', subName: 'scaleIcons'}"/>
							<block className="tab_bar_bg" type="native">
								<style>
									<widthByChildren value="true"/>
									<heightByChildren value="true"/>
								</style>
								<block>
									<style>
										<marginLeft value="2"/>
										<marginRight value="2"/>
										<flow value="horizontal"/>
									</style>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="scaleIcons == 100"/>
											<bind name="dispatch" value="'buttonClick'; 'switchScaleIcons'; {scaleIcons: 100}"/>
											<bind name="label" value="'100%'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="scaleIcons == 90"/>
											<bind name="dispatch" value="'buttonClick'; 'switchScaleIcons'; {scaleIcons: 90}"/>
											<bind name="label" value="'90%'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="60px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="scaleIcons == 80"/>
											<bind name="dispatch" value="'buttonClick'; 'switchScaleIcons'; {scaleIcons: 80}"/>
											<bind name="label" value="'80%'"/>
										</block>
									</block>
								</block>
							</block>
						</block>
			
						<block className="showDead">
							<style>
								<marginBottom value="3px"/>
								<marginBottom value="8px"/>
							</style>
							<bind name="watch" value="'deadEnabled'; (userPrefs.elementsGroupExpand.deadEnabled == null) ? true : userPrefs.elementsGroupExpand.deadEnabled "/>
							<bind name="catch" value="'switchDeadEnabled'; { deadEnabled: !deadEnabled }; 'saveDeadEnabled'"/>
							<bind name="action" value="'saveDeadEnabled' ; 'setUserPref' ; {value: deadEnabled, name: 'elementsGroupExpand', subName: 'deadEnabled'}"/>
                            
							<bind name="instance" value="'CheckBox'; {switchProperty: deadEnabled, label: (langRU ? 'Отображать убитых' : 'Show dead'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchDeadEnabled'"/>
						</block>
			
						<block className="showHP">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="watch" value="'hpEnabled'; (userPrefs.elementsGroupExpand.hpEnabled == null) ? true : userPrefs.elementsGroupExpand.hpEnabled "/>
							<bind name="catch" value="'switchHpEnabled'; { hpEnabled: !hpEnabled }; 'saveHpEnabled'"/>
							<bind name="action" value="'saveHpEnabled' ; 'setUserPref' ; {value: hpEnabled, name: 'elementsGroupExpand', subName: 'hpEnabled'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: hpEnabled, label: (langRU ? 'Отображать полоски HP' : 'Show HP'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchHpEnabled'"/>
						</block>			
			
						<block className="HP_Tabs">
							<bind name="visible" value="hpEnabled"/>
							<style>
								<marginLeft value="25"/>
								<marginTop value="0px"/>
								<marginBottom value="0px"/>
							</style>
							<bind name="watch" value="'indexHP'; (userPrefs.chatBoxWidth.indexHP == null)? 1 : userPrefs.chatBoxWidth.indexHP"/>
							<bind name="catch" value="'switchIndexHP'"/>
							<bind name="changeDispatch" value="indexHP; 'saveIndexHP'"/>				
							<bind name="action" value="'saveIndexHP' ; 'setUserPref' ; {value: indexHP, name: 'chatBoxWidth', subName: 'indexHP'}"/>
							<block className="tab_bar_bg" type="native">
								<style>
									<widthByChildren value="true"/>
									<heightByChildren value="true"/>
								</style>
								<block>
									<style>
										<marginLeft value="2px"/>
										<marginRight value="2px"/>
										<flow value="horizontal"/>
									</style>
									<block className="MainTabSmall">
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="120px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="indexHP == 1"/>
											<bind name="dispatch" value="'buttonClick'; 'switchIndexHP'; {indexHP: 1}"/>
											<bind name='label' value="langRU ? 'Узкие под ником' : 'Narrow under nickname'"/>
										</block>
									</block>
									<block className="MainTabSmall">
										<bind name="visible" value="nameEnabled"/>
										<block className="tab_bar_item_small" type="native">
											<style>
												<width value="120px"/>
												<height value="25px"/>
											</style>
											<bind name="selected" value="indexHP == 2"/>
											<bind name="dispatch" value="'buttonClick'; 'switchIndexHP'; {indexHP: 2}"/>
											<bind name='label' value="langRU ? 'Широкие за ником' : 'Wide over nickname'"/>
										</block>
									</block>
								</block>
							</block>
						</block> 
				
						<block className="HP_Alpha">
							<bind name="visible" value="hpEnabled"/>
							<style>
								<marginLeft value="15"/>
                                <marginTop value="3px"/>
                                <marginBottom value="3px"/>
                            </style>
							<block type="text">
								<bind name='text' value="(langRU ? 'Прозрачность HP' : 'HP transparency') + ' (' + alphaHP + '%):'"/>
									<styleClass value="$TextDefault"/>
							</block>
							<block> 
								<style>
									<marginTop value="0px"/>
									<marginBottom value="2px"/>							
								</style> 
								<bind name="watch" value="'alphaHP'; (userPrefs.chatBoxWidth.alphaHP == null || (format((userPrefs.chatBoxWidth.alphaHP/10),0) &lt; 0) || (format((userPrefs.chatBoxWidth.alphaHP/10),0) &gt; 9)) ? 0 : ((format((userPrefs.chatBoxWidth.alphaHP/10),0))*10)"/>						
								<bind name="catch" value="'switchAlphaHP'"/>
								<bind name="action" value="'switchAlphaHP' ; 'setUserPref' ; {value: format(alphaHP,0), name: 'chatBoxWidth', subName: 'alphaHP'}"/> 
								<block className="slider_default" type="native">
									<style>
										<width value="240"/>
										<marginTop value="6px"/>
									</style>
									<bind name="minimum" value="0"/>
									<bind name="maximum" value="90"/>
									<bind name="snapping" value="true"/>
									<bind name="snapInterval" value="1"/>	
									<bind name="liveDragging" value="true"/>
									<bind name="sync" value="'value'; 'valueChange'; alphaHP; 'switchAlphaHP'"/>
								</block>
							</block>
						</block>
						<block className="show_Radar">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="watch" value="'showRadar'; (userPrefs.elementsGroupExpand.showRadar == null) ? true : userPrefs.elementsGroupExpand.showRadar "/>
							<bind name="catch" value="'switchShowRadar'; { showRadar: !showRadar }; 'saveShowRadar'"/>
							<bind name="action" value="'saveShowRadar' ; 'setUserPref' ; {value: showRadar, name: 'elementsGroupExpand', subName: 'showRadar'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: showRadar, label: (langRU ? 'Показывать налиие РЛС' : 'Show the presence of radar'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchShowRadar'"/>
						</block>
						
						<block className="show_ClanTag">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="watch" value="'showClanTag'; (userPrefs.elementsGroupExpand.showClanTag == null) ? true : userPrefs.elementsGroupExpand.showClanTag "/>
							<bind name="catch" value="'switchshowClanTag'; { showClanTag: !showClanTag }; 'saveshowClanTag'"/>
							<bind name="action" value="'saveshowClanTag' ; 'setUserPref' ; {value: showClanTag, name: 'elementsGroupExpand', subName: 'showClanTag'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: showClanTag, label: (langRU ? 'Показывать клантэг' : 'Show clan tag'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchshowClanTag'"/>
						</block>
				
						<block className="show_ClanIcon">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="watch" value="'showClanIcon'; (userPrefs.elementsGroupExpand.showClanIcon == null) ? true : userPrefs.elementsGroupExpand.showClanIcon "/>
							<bind name="catch" value="'switchshowClanIcon'; { showClanIcon: !showClanIcon }; 'saveshowClanIcon'"/>
							<bind name="action" value="'saveshowClanIcon' ; 'setUserPref' ; {value: showClanIcon, name: 'elementsGroupExpand', subName: 'showClanIcon'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: showClanIcon, label: (langRU ? 'Показывать иконку клана' : 'Show clan icon'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchshowClanIcon'"/>
						</block>
				
						<block className="show_PROAlfa">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="visible" value="showStats &amp;&amp; scriptsExist"/>
							<bind name="watch" value="'showPROAlfa'; (userPrefs.elementsGroupExpand.showPROAlfa == null) ? true : userPrefs.elementsGroupExpand.showPROAlfa "/>
							<bind name="catch" value="'switchShowPROAlfa'; { showPROAlfa: !showPROAlfa }; 'saveShowPROAlfa'"/>
							<bind name="action" value="'saveShowPROAlfa' ; 'setUserPref' ; {value: showPROAlfa, name: 'elementsGroupExpand', subName: 'showPROAlfa'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: showPROAlfa, label: (langRU ? 'Показывать коэффициент PROAlfa' : 'Show PROAlfa'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchShowPROAlfa'"/>
						</block>
						<block className="show_WinRate">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="visible" value="showStats &amp;&amp; scriptsExist"/>
							<bind name="watch" value="'showWinRate'; (userPrefs.elementsGroupExpand.showWinRate == null) ? true : userPrefs.elementsGroupExpand.showWinRate "/>
							<bind name="catch" value="'switchShowWinRate'; { showWinRate: !showWinRate }; 'saveShowWinRate'"/>
							<bind name="action" value="'saveShowWinRate' ; 'setUserPref' ; {value: showWinRate, name: 'elementsGroupExpand', subName: 'showWinRate'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: showWinRate, label: (langRU ? 'Показывать процент побед' : 'Show winrate'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchShowWinRate'"/>
						</block>
						<block className="show_AverageDamage">
							<style>
								<marginBottom value="8px"/>
							</style>
							<bind name="visible" value="showStats &amp;&amp; scriptsExist"/>
							<bind name="watch" value="'showAverageDamage'; (userPrefs.elementsGroupExpand.showAverageDamage == null) ? false : userPrefs.elementsGroupExpand.showAverageDamage "/>
							<bind name="catch" value="'switchShowAverageDamage'; { showAverageDamage: !showAverageDamage }; 'saveShowAverageDamage'"/>
							<bind name="action" value="'saveShowAverageDamage' ; 'setUserPref' ; {value: showAverageDamage, name: 'elementsGroupExpand', subName: 'showAverageDamage'}"/>                  
							<bind name="instance" value="'CheckBox'; {switchProperty: showAverageDamage, label: (langRU ? 'Показывать средний урон' : 'Show average damage'), _maxTfWidth: 250}"/>
							<bind name="dispatch" value="'click'; 'switchShowAverageDamage'"/>
						</block>
					</block>
				</block>
				
				
				<block className="window_divider_vertical" type="native">
					<bind name="visible" value="!staticTTX"/>
					<style>
						<marginLeft value="5px"/>
						<marginTop value="-20px"/>
						<height value="100%"/>
						<width value="2px"/>
					</style>
				</block>
				
				<block className="dynamic_specifications_preferences">
					<bind name="visible" value="!staticTTX"/>
					<block type="text">
						<bind name='text' value="langRU ? 'Настройки панелей с динамическими ТТХ:' : 'Dynamic specifications preferences:'"/>
						<styleClass value="$TextDefaultBold"/>
                    <style>
                        <fontSize value="16"/>
                    </style>
					</block>
					<style>
						<marginLeft value="5px"/>
						<marginTop value="-25px"/>
						<marginBottom value="3px"/>
					</style>
					<block className="var_Background_Icons">
						<block type="text">
							<bind name='text' value="langRU ? 'Фоновые иконки:' : 'Background icons:'"/>
							<styleClass value="$TextDefault"/>
						</block>
						<style>
							<marginLeft value="25"/>
							<marginTop value="3px"/>
							<marginBottom value="0px"/>
						</style>
						<bind name="watch" value="'varBackgroundIcons'; ((userPrefs.chatBoxWidth.varBackgroundIcons != 1) &amp;&amp; (userPrefs.chatBoxWidth.varBackgroundIcons != 2) &amp;&amp; (userPrefs.chatBoxWidth.varBackgroundIcons != 3)) ? 2 : userPrefs.chatBoxWidth.varBackgroundIcons"/>
						<bind name="catch" value="'switchVarBackgroundIcons'"/>
						<bind name="changeDispatch" value="varBackgroundIcons; 'saveVarBackgroundIcons'"/>				
						<bind name="action" value="'saveVarBackgroundIcons' ; 'setUserPref' ; {value: varBackgroundIcons, name: 'chatBoxWidth', subName: 'varBackgroundIcons'}"/>
						<block className="tab_bar_bg" type="native">
							<style>
								<widthByChildren value="true"/>
								<heightByChildren value="true"/>
							</style>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varBackgroundIcons == 1"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarBackgroundIcons'; {varBackgroundIcons: 1}"/>
										<bind name="label" value="langRU ? 'Стандартные' : 'Standart'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varBackgroundIcons == 2"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarBackgroundIcons'; {varBackgroundIcons: 2}"/>
										<bind name="label" value="langRU ? 'Цветные' : 'Coloured'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varBackgroundIcons == 3"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarBackgroundIcons'; {varBackgroundIcons: 3}"/>
										<bind name="label" value="langRU ? 'Без иконок' : 'Without Icons'"/>
									</block>
								</block>
							</block>
						</block>
					</block>
					
					<block className="show_dynamic_field1">
						<style>
							<marginTop value="1px"/>
							<marginBottom value="1px"/>
						</style>
						<bind name="watch" value="'showDynamicField1'; (userPrefs.elementsGroupExpand.showDynamicField1 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField1 "/>
						<bind name="catch" value="'switchShowDynamicField1'; { showDynamicField1: !showDynamicField1 }; 'saveShowDynamicField1'"/>
						<bind name="action" value="'saveShowDynamicField1' ; 'setUserPref' ; {value: showDynamicField1, name: 'elementsGroupExpand', subName: 'showDynamicField1'}"/>                  
						<bind name="instance" value="'CheckBox'; {switchProperty: showDynamicField1, label: (langRU ? 'Показывать динамическое поле 1' : 'Show dynamic field 1'), _maxTfWidth: 250}"/>
						<bind name="dispatch" value="'click'; 'switchShowDynamicField1'"/>
					</block>
					
					<block className="var_dynamic_field1">
						<block type="text">
							<bind name='text' value="langRU ? 'Содержимое динамического поля 1:' : 'Content dynamic field 1:'"/>
							<styleClass value="$TextDefault"/>
						</block>
						<style>
							<marginLeft value="25"/>
							<marginTop value="1px"/>
							<marginBottom value="1px"/>
						</style>
						<bind name="watch" value="'varDynamicField1'; (userPrefs.chatBoxWidth.varDynamicField1 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField1"/>
						<bind name="catch" value="'switchVarDynamicField1'"/>
						<bind name="changeDispatch" value="varDynamicField1; 'saveVarDynamicField1'"/>				
						<bind name="action" value="'saveVarDynamicField1' ; 'setUserPref' ; {value: varDynamicField1, name: 'chatBoxWidth', subName: 'varDynamicField1'}"/>
						<block className="tab_bar_bg" type="native">
							<style>
								<widthByChildren value="true"/>
								<heightByChildren value="true"/>
							</style>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField1 == 1"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField1'; {varDynamicField1: 1}"/>
										<bind name="label" value="langRU ? 'ГК' : 'Main gun'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField1 == 2"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField1'; {varDynamicField1: 2}"/>
										<bind name="label" value="langRU ? 'Торпеды' : 'Torpedoes'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField1 == 3"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField1'; {varDynamicField1: 3}"/>
										<bind name="label" value="langRU ? 'Скорость' : 'Speed'"/>
									</block>
								</block>
							</block>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="100px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField1 == 4"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField1'; {varDynamicField1: 4}"/>
										<bind name="label" value="langRU ? 'Индекс ПВО' : 'Air defense'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="140px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField1 == 5"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField1'; {varDynamicField1: 5}"/>
										<bind name="label" value="langRU ? 'Дальность обнаружения' : 'Visibility distance'"/>
									</block>
								</block>
								
							</block>
						</block>
					</block>
					
					<block className="show_dynamic_field2">
						<style>
							<marginTop value="5px"/>
							<marginBottom value="1px"/>
						</style>
						<bind name="watch" value="'showDynamicField2'; (userPrefs.elementsGroupExpand.showDynamicField2 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField2 "/>
						<bind name="catch" value="'switchShowDynamicField2'; { showDynamicField2: !showDynamicField2 }; 'saveShowDynamicField2'"/>
						<bind name="action" value="'saveShowDynamicField2' ; 'setUserPref' ; {value: showDynamicField2, name: 'elementsGroupExpand', subName: 'showDynamicField2'}"/>                  
						<bind name="instance" value="'CheckBox'; {switchProperty: showDynamicField2, label: (langRU ? 'Показывать динамическое поле 2' : 'Show dynamic field 2'), _maxTfWidth: 250}"/>
						<bind name="dispatch" value="'click'; 'switchShowDynamicField2'"/>
					</block>
					
					<block className="var_dynamic_field2">
						<block type="text">
							<bind name='text' value="langRU ? 'Содержимое динамического поля 2:' : 'Content dynamic field 2:'"/>
							<styleClass value="$TextDefault"/>
						</block>
						<style>
							<marginLeft value="25"/>
							<marginTop value="1px"/>
							<marginBottom value="1px"/>
						</style>
						<bind name="watch" value="'varDynamicField2'; (userPrefs.chatBoxWidth.varDynamicField2 == null)  ? 2 : userPrefs.chatBoxWidth.varDynamicField2"/>
						<bind name="catch" value="'switchVarDynamicField2'"/>
						<bind name="changeDispatch" value="varDynamicField2; 'saveVarDynamicField2'"/>				
						<bind name="action" value="'saveVarDynamicField2' ; 'setUserPref' ; {value: varDynamicField2, name: 'chatBoxWidth', subName: 'varDynamicField2'}"/>
						<block className="tab_bar_bg" type="native">
							<style>
								<widthByChildren value="true"/>
								<heightByChildren value="true"/>
							</style>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField2 == 1"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField2'; {varDynamicField2: 1}"/>
										<bind name="label" value="langRU ? 'ГК' : 'Main gun'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField2 == 2"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField2'; {varDynamicField2: 2}"/>
										<bind name="label" value="langRU ? 'Торпеды' : 'Torpedoes'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField2 == 3"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField2'; {varDynamicField2: 3}"/>
										<bind name="label" value="langRU ? 'Скорость' : 'Speed'"/>
									</block>
								</block>
							</block>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="100px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField2 == 4"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField2'; {varDynamicField2: 4}"/>
										<bind name="label" value="langRU ? 'Индекс ПВО' : 'Air defense'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="140px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField2 == 5"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField2'; {varDynamicField2: 5}"/>
										<bind name="label" value="langRU ? 'Дальность обнаружения' : 'Visibility distance'"/>
									</block>
								</block>
								
							</block>
						</block>
					</block>
					
					<block className="show_dynamic_field3">
						<style>
							<marginTop value="5px"/>
							<marginBottom value="1px"/>
						</style>
						<bind name="watch" value="'showDynamicField3'; (userPrefs.elementsGroupExpand.showDynamicField3 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField3 "/>
						<bind name="catch" value="'switchShowDynamicField3'; { showDynamicField3: !showDynamicField3 }; 'saveShowDynamicField3'"/>
						<bind name="action" value="'saveShowDynamicField3' ; 'setUserPref' ; {value: showDynamicField3, name: 'elementsGroupExpand', subName: 'showDynamicField3'}"/>                  
						<bind name="instance" value="'CheckBox'; {switchProperty: showDynamicField3, label: (langRU ? 'Показывать динамическое поле 3' : 'Show dynamic field 3'), _maxTfWidth: 250}"/>
						<bind name="dispatch" value="'click'; 'switchShowDynamicField3'"/>
					</block>
					
					<block className="var_dynamic_field3">
						<block type="text">
							<bind name='text' value="langRU ? 'Содержимое динамического поля 3:' : 'Content dynamic field 3:'"/>
							<styleClass value="$TextDefault"/>
						</block>
						<style>
							<marginLeft value="25"/>
							<marginTop value="1px"/>
							<marginBottom value="1px"/>
						</style>
						<bind name="watch" value="'varDynamicField3'; (userPrefs.chatBoxWidth.varDynamicField3 == null)  ? 3 : userPrefs.chatBoxWidth.varDynamicField3"/>
						<bind name="catch" value="'switchVarDynamicField3'"/>
						<bind name="changeDispatch" value="varDynamicField3; 'saveVarDynamicField3'"/>				
						<bind name="action" value="'saveVarDynamicField3' ; 'setUserPref' ; {value: varDynamicField3, name: 'chatBoxWidth', subName: 'varDynamicField3'}"/>
						<block className="tab_bar_bg" type="native">
							<style>
								<widthByChildren value="true"/>
								<heightByChildren value="true"/>
							</style>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField3 == 1"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField3'; {varDynamicField3: 1}"/>
										<bind name="label" value="langRU ? 'ГК' : 'Main gun'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField3 == 2"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField3'; {varDynamicField3: 2}"/>
										<bind name="label" value="langRU ? 'Торпеды' : 'Torpedoes'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="80px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField3 == 3"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField3'; {varDynamicField3: 3}"/>
										<bind name="label" value="langRU ? 'Скорость' : 'Speed'"/>
									</block>
								</block>
							</block>
							<block>
								<style>
									<marginLeft value="2px"/>
									<marginRight value="2px"/>
									<flow value="horizontal"/>
								</style>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="100px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField3 == 4"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField3'; {varDynamicField3: 4}"/>
										<bind name="label" value="langRU ? 'Индекс ПВО' : 'Air defense'"/>
									</block>
								</block>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<style>
											<width value="140px"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="varDynamicField3 == 5"/>
										<bind name="dispatch" value="'buttonClick'; 'switchVarDynamicField3'; {varDynamicField3: 5}"/>
										<bind name="label" value="langRU ? 'Дальность обнаружения' : 'Visibility distance'"/>
									</block>
								</block>
								
							</block>
						</block>
					</block>
					
				</block> <!-- end dynamic_specifications_preferences-->
			</block> <!-- end full_tab_settings -->
		</block>
	</block>
	<css name="$FontEarsBold">
        <fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<block className="TeamStructureRendererAllies">
		<bind name="name" value="'player_' + name"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'players in battle'; 'name'; name; 'playerInCollection'"/>
		<bind name="watch" value="'player'; playerInCollection[0]"/>
		<bind name="watchDH" value="'clanTag'; []; player.clanTag"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'gameInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; name; 'playerInvitationData'"/>
		<bind name="primaryEntityDH" value="'playerVoiceChatEntity'; CC.playerVoiceState; pureName"/>
		<bind name="dataRefDH" value="'playerEntity'; '$dataRef.ref'"/>
		<bind name="firstEntityDH" value="'mouseEntity'; CC.mouse"/>
		<bind name="watchDH" value="'playerId'; 			[]; playerEntity.avatar.id"/>
		<bind name="watchDH" value="'relation'; 			['playerEntity.relation.evChanged']; playerEntity.relation.value"/>
		<bind name="watchDH" value="'isAlive'; 			['playerEntity.health.evKilled']; playerEntity.health.isAlive"/>
		<bind name="watchDH" value="'ttkStatus'; 		['playerEntity.avatar.evTTKStatusChanged']; playerEntity.avatar.ttkStatus"/>
		<bind name="watchDH" value="'tkStatus'; 			['playerEntity.avatar.evTeamkillStatusChanged']; playerEntity.avatar.tkStatus"/>
		<bind name="watchDH" value="'frags'; 			['playerEntity.avatar.evFragsChanged']; playerEntity.avatar.frags"/>
		<bind name="watchDH" value="'division'; 			['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.division"/>
		<bind name="watchDH" value="'divisionId'; 		['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.divisionId"/>
		<bind name="watchDH" value="'divisionSign'; 		['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.divisionSign"/>
		<bind name="watchDH" value="'divisionHidden';	['playerEntity.avatar.evDivisionChanged', 'playerEntity.avatar.evDivisionHiddenChanged']; playerEntity.avatar.divisionHidden"/>
		<bind name="watchDH" value="'isInSameDivision'; 	['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.isInSameDivision"/>
		<bind name="watchDH" value="'isDivisionCommander'; 	['playerEntity.avatar.evIsDivisionCommanderUpdated']; playerEntity.avatar.isDivisionCommander"/>
		<bind name="watchDH" value="'invitationsEnabled';['playerEntity.avatar.evInvitationsEnabledChanged']; playerEntity.avatar.invitationsEnabled"/>
		<bind name="watchDH" value="'inviteCooldown'; 	['playerEntity.avatar.evInviteCooldownChanged']; playerEntity.avatar.inviteCooldown"/>
		<bind name="watchDH" value="'inviteCooldownEnabled'; 	['playerEntity.avatar.evInviteCooldownEnabledChanged']; playerEntity.avatar.inviteCooldownEnabled"/>
		<bind name="watchDH" value="'isLeaver';			['playerEntity.avatar.evIsLeaverChanged']; playerEntity.avatar.isLeaver"/>
		<bind name="watchDH" value="'pathTinyIcon'; 		[]; playerEntity.avatar.ship.ref.ship.pathTinyIcon"/>
		<bind name="watchDH" value="'pathOwnTinyIcon'; 	[]; playerEntity.avatar.ship.ref.ship.pathOwnTinyIcon"/>
		<bind name="watchDH" value="'pathTinyDeadIcon'; 	[]; playerEntity.avatar.ship.ref.ship.pathTinyDeadIcon"/>
		<bind name="watchDH" value="'mute'; 				['playerEntity.avatar.evMuteChanged']; playerEntity.avatar.mute"/>
		<bind name="watchDH" value="'name'; 				[]; playerEntity.avatar.name"/>
		<bind name="watchDH" value="'pureName'; 			[]; playerEntity.avatar.pureName"/>
		<bind name="watchDH" value="'isSpeaking'; 		['playerVoiceChatEntity.playerVoiceState.evIsSpeakingChanged']; playerVoiceChatEntity.playerVoiceState.isSpeaking"/>
		<bind name="watchDH" value="'isMuted'; 			['playerVoiceChatEntity.playerVoiceState.evIsMutedChanged']; playerVoiceChatEntity.playerVoiceState.isMuted"/>
		<bind name="watch" value="'isSelf'; (relation == 0)"/>
		<bind name="watch" value="'isInVoiceChat'; playerVoiceChatEntity != null"/>
		
		<bind name="collectionDH" value="CC.camera; 'cameraCollection'"/>
		<bind name="entityDH" value="'cameraEntity'; cameraCollection[0].id"/>
		<bind name="watchDH" value="'camera'; ['cameraEntity.camera.evTacticalStateChanged']; cameraEntity.camera"/>
		<bind name="collectionDH" value="CC.userPrefs; 'userPrefsCollection'"/>
		<bind name="entityDH" value="'userPrefsEntity'; userPrefsCollection[0].id"/>
		<bind name="watchDH" value="'userPrefs'; ['userPrefsEntity.userPrefs.evUserPrefsChanged']; userPrefsEntity.userPrefs.userPrefs"/>
		<bind name="watch" value="'earsEnabled'; (userPrefs.elementsGroupExpand.earsEnabled == null) ? true : userPrefs.elementsGroupExpand.earsEnabled "/>
		<bind name="watch" value="'varIcons'; ((userPrefs.chatBoxWidth.varIcons != 1) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 2) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 3) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 4) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 5) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 6) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 7)) ? 2 : userPrefs.chatBoxWidth.varIcons"/>
		<bind name="watch" value="'deadEnabled'; (userPrefs.elementsGroupExpand.deadEnabled == null) ? true : userPrefs.elementsGroupExpand.deadEnabled "/>
		<bind name="watch" value="'scaleIcons'; ((userPrefs.chatBoxWidth.scaleIcons != 80) &amp;&amp; (userPrefs.chatBoxWidth.scaleIcons != 90) &amp;&amp; (userPrefs.chatBoxWidth.scaleIcons != 100)) ? 90 : userPrefs.chatBoxWidth.scaleIcons"/>
		<bind name="watch" value="'nameEnabled'; (userPrefs.elementsGroupExpand.nameEnabled == null) ? true : userPrefs.elementsGroupExpand.nameEnabled "/>
		<bind name="watch" value="'hpEnabled'; (userPrefs.elementsGroupExpand.hpEnabled == null) ? true : userPrefs.elementsGroupExpand.hpEnabled "/>
		<bind name="watch" value="'indexHP'; (userPrefs.chatBoxWidth.indexHP == null)? 2 : userPrefs.chatBoxWidth.indexHP"/>
		<bind name="watch" value="'alphaHP'; (userPrefs.chatBoxWidth.alphaHP == null)? 0 : userPrefs.chatBoxWidth.alphaHP"/>
		<bind name="watch" value="'showPROAlfa'; (userPrefs.elementsGroupExpand.showPROAlfa == null) ? true : userPrefs.elementsGroupExpand.showPROAlfa "/>
		<bind name="watch" value="'showWinRate'; (userPrefs.elementsGroupExpand.showWinRate == null) ? true : userPrefs.elementsGroupExpand.showWinRate "/>
		<bind name="watch" value="'showAverageDamage'; (userPrefs.elementsGroupExpand.showAverageDamage == null) ? false : userPrefs.elementsGroupExpand.showAverageDamage "/>
		<bind name="watch" value="'widthNickname'; (userPrefs.chatBoxWidth.widthNickname == null) ? 40 : userPrefs.chatBoxWidth.widthNickname"/>
		<bind name="watch" value="'widthShipname'; (userPrefs.chatBoxWidth.widthShipname == null)  ? 50 : userPrefs.chatBoxWidth.widthShipname"/>	
		<bind name="watch" value="'staticTTX'; (userPrefs.elementsGroupExpand.staticTTX == null)? true : userPrefs.elementsGroupExpand.staticTTX"/>
		<bind name="watch" value="'showRadar'; (userPrefs.elementsGroupExpand.showRadar == null) ? true : userPrefs.elementsGroupExpand.showRadar "/>
		<bind name="watch" value="'shipShortName'; playerEntity.avatar.ship.ref.ship.shortName"/>
		<bind name="watchDH" value="'shipType'; 	[]; playerEntity.avatar.ship.ref.ship.subtype"/>
		<bind name="watchDH" value="'shipLevel'; 	[]; playerEntity.avatar.ship.ref.ship.level"/>
		<bind name="watchDH" value="'shipNation'; 	[]; playerEntity.avatar.ship.ref.ship.country"/>
		<bind name="watch" value="'varBackgroundIcons'; ((userPrefs.chatBoxWidth.varBackgroundIcons != 1) &amp;&amp; (userPrefs.chatBoxWidth.varBackgroundIcons != 2) &amp;&amp; (userPrefs.chatBoxWidth.varBackgroundIcons != 3)) ? 2 : userPrefs.chatBoxWidth.varBackgroundIcons"/>
		<bind name="watch" value="'showDynamicField1'; (userPrefs.elementsGroupExpand.showDynamicField1 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField1 "/>
		<bind name="watch" value="'varDynamicField1'; (userPrefs.chatBoxWidth.varDynamicField1 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField1"/>
		<bind name="watch" value="'showDynamicField2'; (userPrefs.elementsGroupExpand.showDynamicField2 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField2 "/>
		<bind name="watch" value="'varDynamicField2'; (userPrefs.chatBoxWidth.varDynamicField2 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField2"/>
		<bind name="watch" value="'showDynamicField3'; (userPrefs.elementsGroupExpand.showDynamicField3 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField3 "/>
		<bind name="watch" value="'varDynamicField3'; (userPrefs.chatBoxWidth.varDynamicField3 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField3"/>
		<bind name="watch" value="'showClanTag'; (userPrefs.elementsGroupExpand.showClanTag == null) ? true : userPrefs.elementsGroupExpand.showClanTag "/>
		<bind name="watch" value="'showClanIcon'; (userPrefs.elementsGroupExpand.showClanIcon == null) ? true : userPrefs.elementsGroupExpand.showClanIcon "/>
		
		<bind name="watch" value="'player'; {
							relation: relation,
							name: name,
							pureName: pureName,
							nameUpper: nameUpper,
							clanTag: clanTag,
							rLevel: rLevel,
							shipType: shipType,
							shipLevel: shipLevel,
							shipNation: shipNation,
							pureName: pureName,
							ttkStatus: ttkStatus,
							tkStatus: tkStatus,
							isInSameDivision: isInSameDivision,
							isDivisionCommander: isDivisionCommander,
							isInVoiceChat: isInVoiceChat,
							isMuted: isMuted,
							inviteCooldown: inviteCooldown,
							division: division,
							isAlive: isAlive,
							invitationsEnabled: invitationsEnabled,
							inviteCooldownEnabled: inviteCooldownEnabled,
							isLeaver: isLeaver,
							id: playerId,
							mute: mute,
							isInSameDivisionOnStart: playerEntity.avatar.isInSameDivisionOnStart
		}"/>
		<bind name="primaryEntityDH" value="'clanEntity'; CC.clan; clanId"/>
		<bind name="primaryEntityDH" value="'clanBattleInfoEntity'; CC.clanBattleInfo; clanId"/>
		<bind name="primaryEntityDH" value="'clanExtendedEntity'; CC.clanExtended; clanId"/>
		<bind name="watchDH" value="'clanId'; 	['playerEntity.clanman.evClanIdChanged']; playerEntity.clanman.clanId"/>
		<bind name="watchDH" value="'clanTag'; 	['clanEntity.clan.evTagChanged']; clanEntity.clan.tag"/>
		<bind name="watchDH" value="'color'; 	['clanExtendedEntity.clanExtended.evColorChanged']; clanExtendedEntity.clanExtended.color"/>
		<bind name="watchDH" value="'league'; 	['clanExtendedEntity.clanExtended.evLeagueChanged']; clanExtendedEntity.clanExtended.league"/>
		<bind name="watch" value="'clanTagColor'; ('0xff' + color)"/>

		<bind name="var" value="{healthP:'100%'}"/>
		<bind name="watchDH" value="'healthP'; ['playerEntity.health.evValueChanged']; (((playerEntity.health.value &gt; 0) &amp;&amp; isAlive) ? ((100 * playerEntity.health.value / playerEntity.health.max) + '%'): ( isAlive ? healthP: '0%'))"/>
		<bind name="watchDH" value="'nameUpper'; 	[]; playerEntity.avatar.ship.ref.ship.nameUpper"/>
		<bind name="watchDH" value="'rLevel'; 	[]; playerEntity.avatar.ship.ref.ship.levelRome"/>
		
		<bind name="visible" value="(earsEnabled &amp;&amp; !(camera.isTactical)) ? (deadEnabled ? true : isAlive) : false"/>
		
		<block className="HealthRowHolder">
			<bind name="visible" value="hpEnabled"/>
			<bind name="style" value="'top'; ((indexHP == 2) ? '0px' :((scaleIcons == 80) ? '18px' : ((scaleIcons == 90) ? '21px' : '23px')))"/>
			<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ?(widthNickname + 18 + widthShipname + 'px'):(widthNickname + 18 + 'px'))"/>
			<bind name="style" value="'height'; ((indexHP == 2) ? '100%' : ((scaleIcons == 100) ? '5px' : '4px'))"/>
			<bind name="style" value="'left'; '15px')"/>
			<style>
				<position value="absolute"/>
            </style>
            <block className="HealthRow">
				<style>
                    <height value="100%"/>
					<blurFilter value="2 2"/>
                    <position value="absolute"/>
                </style>
                <bind name="style" value="'width'; healthP"/>
				<bind name="style" value="'alpha'; ((100-alphaHP)/100)"/>
				<bind name="style" value="'backgroundColor'; '0xFF009900'"/>
            </block>
        </block>
		<block  className="EarsPanelBlock">
			<bind name="style" value="'height'; ((varIcons == 7 &amp;&amp; staticTTX) ? ((scaleIcons == 80) ? '22px' : ((scaleIcons == 90) ? '25px' : '28px')) : ((scaleIcons == 80) ? '24px' : ((scaleIcons == 90) ? '27px' : '30px')))"/>
			<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 'px'):(15 + widthNickname + 20 + (122*scaleIcons/100) + 'px'))"/>

			<block className="EarsFoneBlock">
				<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 'px'):(15 + widthNickname + 20 + 'px'))"/>
				<style>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="100%"/>
						<blurFilter value="2 2"/>
					</style>
					<bind name="style" value="'backgroundColor'; '0x20000000'"/>
				</block>
			</block>
			
			<block className="RLSBlock">
				<bind name="visible" value="(((shipType=='Cruiser') &amp;&amp; (shipLevel&gt;7) &amp;&amp; (shipNation=='Russia' || shipNation=='USA' || 
						shipNation=='United_Kingdom') || (shipShortName == 'PASC507') || (shipShortName == 'PASC006') || (shipShortName == 'PASD709') ||
						(shipShortName == 'PASB509') || (shipShortName == 'PBSC507')) &amp;&amp; showRadar  &amp;&amp; (shipShortName != 'PRSC508'))"/>
				<style>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<bind name="style" value="'width'; (25*scaleIcons/100 + 'px')"/>
				<bind name="style" value="'left'; ((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 5 + 'px'):(15 + widthNickname + 20 + 5 + (122*scaleIcons/100) + 'px'))"/>
				
				<block className="RLSIconBlock">
					<bind name="scaleX" value="0.3"/>
					<bind name="scaleY" value="0.3"/>
					<style>
						<width value="16px"/>
						<height value="16px"/>
						<marginTop value="2px"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:../mod_ship_icons/RLS.png'"/>
				</block>
				<block type="text" className="RLSDistanceBlock">
					<styleClass value="$TextSecondary"/>
					<style>
						<multiline value="false"/>
						<height value="16px"/>
						<position value="absolute"/>
						<top value="11px"/>
					</style>
					<bind name="style" value="'width'; (25*scaleIcons/100 + 'px')"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
								
					<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10' : ((scaleIcons == 90) ? '11px' : '12px'))"/>
					<bind name="text" value="((shipShortName == 'PBSC507') || (shipShortName == 'PASC006')) ? '8.5' : 
							(shipShortName == 'PASD709') ? '7.5' :
							((shipShortName == 'PASB509') || ((shipType=='Cruiser') &amp;&amp; (shipLevel==9) &amp;&amp; (shipNation!='Russia'))) ? '9.5' :
							((shipLevel==8) &amp;&amp; ((shipNation=='USA') || (shipNation=='United_Kingdom'))) ? '9' :
							((shipNation=='Russia') &amp;&amp; (shipShortName != 'PRSC508')) ? '11.7' : 
							'9.9'"/>
				</block>
			</block>
			
			<block className="DivisionBlock">
				<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 'px'):(15 + widthNickname + 20 + (122*scaleIcons/100) + 'px'))"/>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<block>
					<bind name="visible" value="isInSameDivision"/>
					<style>
						<backgroundColor value="0x40ffdc84"/>
						<position value="absolute"/>
						<height value="100%"/>
						<width value="100%"/>
						<hitTest value="false"/>
					</style>
				</block>
				<block className="dock_submenu_item_bg" type="native">
					<bind name="transition" value="mouseDown || contextMenuVisible || rollOver; 0.1; {alpha: 0}; {alpha: 1}"/>
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				
				<bind name="tooltip" value="'BattlePlayerTooltip'; {	_isInBattle: true,
													_player: player, _selfPlayer: _selfPlayer,
													_battleType: gameInfo.battleType}"/>
				<bind name="menu" value="'UIListPlayerContextMenu'; !(isSelf)	?	{_player: player, _selfPlayer: _selfPlayer, _battleType: gameInfo.battleType, 
																	_complaintsAvailable: true, _isBattleStats: true}
																: 	null; null; 'contextMenuVisible'"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<block>
					<style>
						<marginTop value="-2px"/>
						<hitTest value="false"/>
					</style>
					<bind name="instance" value="'UIListVoiceTextChatIcons'; {	_playerId: playerId, _selfPlayerDivisionId: divisionId,
																_isInSameDivision: isInSameDivision, _battleType: gameInfo.battleType,
																_isSpeaking: isSpeaking, _isVoiceChatMuted: isMuted, _isInVoiceChat: isInVoiceChat }"/>
				</block>
				<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'dynamicDivisionsData'; 'id'; _selfPlayer.divisionId; 'selfPlayerDivisionData'"/>
				<bind name="watch" value="'isFreePlacesInDivision'; ((selfPlayerDivisionData[0].staff.length + selfPlayerDivisionData[0].inPortParticipantsCount) &lt; 3)"/>
				<bind name="watch" value="'invitationDisableReason'; !(slimClientData.isFull)											? 'YourClientIsTooSlim' :
													isSelf																? 'YouCantInviteYourself' :
													!(isAlive)															? 'IDS_INVITATION_DISABLE_REASON_DESTROYED' :
													!(_selfPlayer.isAlive)												? 'IDS_DIVISION_MANAGEMENT_LOCKED_FOR_DESTROYED' :
													isLeaver															? 'IDS_INVITATION_DISABLE_REASON_PLAYER_IS_OUT_OF_BATTLE':
													(division != 0)														? 'IDS_INVITATION_DISABLE_REASON_ALREADY_IN_DIVISION' :
													(playerInvitationData != null)										? 'PlayerIsAlreadyInvited' :
													isInSameDivision													? 'PlayerIsAlreadyInYourDivision' :
													(_selfPlayer.division != 0) &amp;&amp; !(_selfPlayer.isDivisionCommander)	? 'IDS_INVITATION_DISABLE_REASON_NOT_COMMANDER' :
													!(isFreePlacesInDivision)											? 'IDS_INVITATION_DISABLE_REASON_NO_FREE_PLACES' :
													!(invitationsEnabled)												? 'IDS_INVITATION_DISABLE_REASON_INVITATIONS_DISABLED' :
													inviteCooldownEnabled												? 'IDS_WAIT_TIMEOUT_TO_INVITE_TO_DIVISION'
																														: 'no_reason'"/>
				<block>
					<bind name="visible" value="(division &gt; 0) &amp;&amp; !(divisionHidden)"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<position value="absolute"/>
						<marginLeft value="0px"/>
						<hitTest value="false"/>
					</style>
					<block className="division_item" type="native">
						<bind name="gotoAndStop!" value="isInSameDivision ? (divisionSign + 1) : (divisionSign + 1 + 10)"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="_isDynamicDivisionsEnabled"/>
					<styleClass value="$FullsizeAbsolute"/>
					<block>
						<bind name="visible" value="(playerInvitationData != null)"/>
						<bind name="transition" value="rollOver; 0.15; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 0.05"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<marginLeft value="0px"/>
							<hitTest value="false"/>
						</style>
						<block className="formation_player_status" type="native">
							<bind name="gotoAndStop!" value="'empty_slot_division'"/>
						</block>
					</block>
					<block>
						<bind name="transition" value="rollOver; 0.15; {alpha: 0}; {alpha: 1.0}; {alpha: 0}; 1; 0.05"/>
						<styleClass value="$MiddleVAligned"/>
						<block>
							<bind name="visible" value="(invitationDisableReason == 'no_reason')"/>
							<styleClass value="$MiddleVAligned"/>
							<style>
								<position value="absolute"/>
								<marginLeft value="5px"/>
							</style>
							<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'no_icon', _instructionText: 'IDS_INVITE_IN_DIVISION'}], _maxWidth: 250, _isInBattle: true}"/>
							<block className="button_division_invite" type="native">
								<bind name="action" value="'buttonClick'; 'inviteToDivision'; {playerId: playerId, playerName: name, inviteType: InviteType.COMMON}"/>
							</block>
						</block>
						<block>
							<bind name="visible" value="(_selfPlayer.isDivisionCommander &amp;&amp; !!(playerInvitationData))"/>
							<styleClass value="$MiddleVAligned"/>
							<style>
								<position value="absolute"/>
								<marginLeft value="4px"/>
							</style>
							<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'no_icon', _instructionText: 'IDS_RECALL_INVITATION'}], _maxWidth: 250, _isInBattle: true}"/>
							<block className="button_cross" type="native">
								<bind name="action" value="'buttonClick'; 'revokeInvitationToDivision'; {id: playerInvitationData.id}"/>
							</block>
						</block>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<hitTest value="false"/>
					</style>
					<block className="PlayerNameBlock">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<marginLeft value="15px"/>
						</style>
						<bind name="style" value="'width'; (widthNickname + 'px')"/>

						<bind name="style" value="'alpha'; isAlive ? 1 : 0.5"/>
						<bind name="watch" value="'haveClanTag'; (clanTag != null) &amp;&amp; (clanTag != '') &amp;&amp; (clanTag != 'undefined')"/>
						<bind name="watch" value="'isColoredClanTag'; haveClanTag &amp;&amp; (color != null &amp;&amp; color != '' &amp;&amp; color != 'undefined' &amp;&amp; color != '0xffundefined')"/>
						<bind name="watch" value="'playerName'; 	isColoredClanTag 	?	playerName :
								haveClanTag			?	('[' + clanTag + ']' + playerName)
													: 	playerName"/>
						<bind name="watch" value="'fontColor'; 	isSelf 	? 	ttkStatus 			? '$FontColorTTK' :
												tkStatus 			? '$FontColorTeamkiller'
																	: '$FontColorGolden':
								isAlive 	?  	ttkStatus 			? '$FontColorTTK' :
												tkStatus 			? '$FontColorTeamkiller':
												isInSameDivision 	? '$FontColorGolden' 
																	: '$FontColorWhite'
											: '$FontColorAlmostBlack'"/>
						
						<block type="text">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<position value="absolute"/>
							</style>
							<bind name="style" value="'width'; (widthNickname + 'px')"/>
								<style>
									<multiline value="false"/>
									<!--<marginLeft value="3px"/>-->
								</style>
								<styleClass value="$TextDefaultNM"/>
								<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '13' : ((scaleIcons == 90) ? '14px' : '15px'))"/>
								<bind name="class" value="isSelf 	? '$Bold' : '$None'"/>
								<bind name="class" value="(!(isAlive) &amp;&amp; !(isSelf)) ? '$FontDropShadowWhite' : '$None'"/>
								<bind name="class" value="fontColor"/>
								<bind name="text" value="(showClanTag) ? (haveClanTag ? (tr('[' + clanTag + ']') + pureName) : pureName) : pureName"/>

						</block>
					</block>
					
					<block className="ClanIconsBlock">
						<bind name="alpha" value="!isAlive ? 0.4 : 1"/>
						<bind name="visible" value="showClanIcon"/>
						<bind name="style" value="'marginLeft'; ((widthNickname - 5) + 'px')"/>
						<style>
							<top value="-6px"/>
							<position value="absolute"/>
						</style>
						<bind name="scaleX" value="(scaleIcons &gt; 10)?(scaleIcons/120):0.85"/> 
						<bind name="scaleY" value="(scaleIcons &gt; 10)?(scaleIcons/120):0.85"/>
						<bind name="style" value="'backgroundImage'; ('url:../clan_icons/' + clanTag + '.png') "/>
					</block>
					<block type="text" className="FragsCountBlock">
						<bind name="text" value="frags"/>
						<bind name="style" value="'width'; '20px'"/>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '13' : ((scaleIcons == 90) ? '14px' : '15px'))"/>
						<bind name="class" value="isSelf 	? '$Bold' : '$None'"/>
						<bind name="style" value="'textAlign'; 'left'"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
					</block>
					
					<block type="text" className="ShipNameBlock">
						<bind name="visible" value="(varIcons == 7) &amp;&amp; staticTTX"/>
						<!--<bind name="visible" value="(varIcons == 7)"/>-->
						<bind name="text" value="rLevel + ' ' + nameUpper"/>
						<bind name="style" value="'width'; (widthShipname + 'px')"/>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<multiline value="false"/>
						</style>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '13' : ((scaleIcons == 90) ? '14px' : '15px'))"/>
						<bind name="class" value="isSelf 	? '$Bold' : '$None'"/>
						<bind name="style" value="'textAlign'; 'left'"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
					</block>
				
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				
				<block className="EarsIcons">
					<bind name="alpha" value="!isAlive ? 0.4 : 1"/>
					<bind name="visible" value="(varIcons != 7) &amp;&amp; staticTTX"/>
					<!--<bind name="visible" value="varIcons != 7"/>-->
					<bind name="style" value="'width'; ((scaleIcons == 80) ? '98px' : ((scaleIcons == 90) ? '110px' : '122px'))"/>
					<style>
						<height value="100%"/>
						<!--<marginLeft value="2px"/>-->
						<hitTest value="false"/>
					</style>
					<bind name="scaleX" value="(scaleIcons &gt; 10)?(scaleIcons/100):1"/> 
					<bind name="scaleY" value="(scaleIcons &gt; 10)?(scaleIcons/100):1"/>
					<bind name="style" value="'backgroundImage'; ('url:../mod_ship_icons/' + varIcons + '/' + shipShortName + '.png') "/>
				</block>
				
				<block className="dynamicSpecifications">
					<bind name="visible" value="!staticTTX"/>
					<bind name="style" value="'width'; ((scaleIcons == 80) ? '98px' : ((scaleIcons == 90) ? '110px' : '122px'))"/>
					<style>
						<height value="100%"/>
						<marginLeft value="2px"/>
					</style>
					<block className="BackgroundIcons">
						<bind name="visible" value="varBackgroundIcons != 3"/>
						<bind name="style" value="'height'; ((scaleIcons == 80) ? '24px' : ((scaleIcons == 90) ? '27px' : '30px'))"/>
						<bind name="alpha" value="!isAlive ? 0.4 : 1"/>
						<style>
							<width value="100%"/>
							<position value="absolute"/>
						</style>
						<bind name="scaleX" value="(scaleIcons &gt; 10)?(scaleIcons/100):1"/> 
						<bind name="scaleY" value="(scaleIcons &gt; 10)?(scaleIcons/100):1"/>
						<bind name="style" value="'backgroundImage'; (((varBackgroundIcons == 2) ? 'url:../mod_ship_icons/coloured/' : (varBackgroundIcons == 1) ? 'url:../mod_ship_icons/standart/' : 'url:../ship_icons/') + shipShortName + '.png') "/>
					</block>
					<block className="BackgroundWithoutIcons">
						<bind name="visible" value="varBackgroundIcons == 3"/>
						<style>
							<width value="100%"/>
							<height value="100%"/>
							<position value="absolute"/>
						</style>
						<bind name="style" value="'backgroundColor'; '0x20000000'"/>
					</block>
			
					<block className="dynamicSpecificationsLines">
						<style>
							<width value="100%"/>
							<height value="100%"/>
						</style>
						<block className="dynamicSpecificationsLine1">
							<style>
								<height value="50%"/>
								<width value="100%"/>
								<marginTop value="-2px"/>
								<flow value="horizontal"/>
							</style>
							<block type="text" className="dynamicSpecificationsShipName">
								<bind name="text" value="rLevel + ' ' + nameUpper"/>
								<bind name="style" value="'width';(showDynamicField1 ? '60%' : '100%')"/>
								<styleClass value="$FontEarsBold"/>
								<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
								<style>
									<height value="100%"/>
									<multiline value="false"/>
									<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
								</style>
								<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

							</block> 
				
							<block type="text" className="dynamicSpecificationsField1">
								<bind name="visible" value="showDynamicField1"/>
								<bind name="text" value="(varDynamicField1 == 2) ? ((player.shipParams.torpedoes_max_dist &gt; 0) ? (format(player.shipParams.torpedoes_max_dist, 1) + '/' + format(player.shipParams.torpedoes_time_reload, 1)) : '') :
											(varDynamicField1 == 3) ? (format(player.shipParams.maxSpeed, 1)) : (varDynamicField1 == 4) ? (player.shipParams.air_defense_p) : (varDynamicField1 == 5) ? (format(player.shipParams.visibilityDistByShip,1) + '/' + format(player.shipParams.visibilityDistByPlane,1)) :
											((player.shipParams.artillery_max_dist &gt; 0) ? (format(player.shipParams.artillery_max_dist, 1) + '/' + format(player.shipParams.artillery_time_reload, 1)) : '')"/>
								<styleClass value="$FontEarsBold"/>
								<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
								<style>
									<width value="40%"/>
									<height value="100%"/>
									<multiline value="false"/>
									<textAlign value="right"/>
									<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
								</style>
								<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

							</block>
						</block>
				
						<block className="dynamicSpecificationsLine2">
							<style>
								<height value="50%"/>
								<width value="100%"/>
								<flow value="horizontal"/>
							</style>
							<block type="text" className="dynamicSpecificationsField3">
								<bind name="visible" value="showDynamicField3"/>
								<bind name="text" value="(varDynamicField3 == 1) ? ((player.shipParams.artillery_max_dist &gt; 0) ? (format(player.shipParams.artillery_max_dist, 1) + '/' + format(player.shipParams.artillery_time_reload, 1)) : '') :
											(varDynamicField3 == 4) ? (player.shipParams.air_defense_p) : (varDynamicField3 == 5) ? (format(player.shipParams.visibilityDistByShip,1) + '/' + format(player.shipParams.visibilityDistByPlane,1)) :
											(varDynamicField3 == 2) ? ((player.shipParams.torpedoes_max_dist &gt; 0) ? (format(player.shipParams.torpedoes_max_dist, 1) + '/' + format(player.shipParams.torpedoes_time_reload, 1)) : '') : (format(player.shipParams.maxSpeed, 1))"/>
								<styleClass value="$FontEarsBold"/>
								<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
								<style>
									<width value="50%"/>
									<height value="100%"/>
									<multiline value="false"/>
									<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
								</style>
								<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

							</block> 
				
							<block type="text" className="dynamicSpecificationsField2">
								<bind name="visible" value="showDynamicField2"/>
								<bind name="text" value="(varDynamicField2 == 1) ? ((player.shipParams.artillery_max_dist &gt; 0) ? (format(player.shipParams.artillery_max_dist, 1) + '/' + format(player.shipParams.artillery_time_reload, 1)) : '') :
											(varDynamicField2 == 3) ? (format(player.shipParams.maxSpeed, 1)) : (varDynamicField2 == 4) ? (player.shipParams.air_defense_p) : (varDynamicField2 == 5) ? (format(player.shipParams.visibilityDistByShip,1) + '/' + format(player.shipParams.visibilityDistByPlane,1)) :
											((player.shipParams.torpedoes_max_dist &gt; 0) ? (format(player.shipParams.torpedoes_max_dist, 1) + '/' + format(player.shipParams.torpedoes_time_reload, 1)) : '')"/>
								<bind name="style" value="'width';(showDynamicField3 ? '50%' : '100%')"/>
								<styleClass value="$FontEarsBold"/>
								<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
								<style>
									<height value="100%"/>
									<multiline value="false"/>
									<textAlign value="right"/>
									<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
								</style>
								<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

							</block>
						</block>
				
					</block> <!-- End block dynamicSpecificationsLines -->
			
				</block> <!-- End block DynamicSpecifications -->

				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="TeamStructureRendererEnemies">
		<bind name="name" value="'player_' + name"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'players in battle'; 'name'; name; 'playerInCollection'"/>
		<bind name="watch" value="'player'; playerInCollection[0]"/>
		<bind name="watchDH" value="'clanTag'; []; player.clanTag"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'gameInfo'"/>
		<bind name="dataRefDH" value="'playerEntity'; '$dataRef.ref'"/>
		<bind name="firstEntityDH" value="'mouseEntity'; CC.mouse"/>
		<bind name="watchDH" value="'playerId'; 			[]; playerEntity.avatar.id"/>
		<bind name="watchDH" value="'relation'; 			['playerEntity.relation.evChanged']; playerEntity.relation.value"/>
		<bind name="watchDH" value="'isAlive'; 			['playerEntity.health.evKilled']; playerEntity.health.isAlive"/>
		<bind name="watchDH" value="'ttkStatus'; 		['playerEntity.avatar.evTTKStatusChanged']; playerEntity.avatar.ttkStatus"/>
		<bind name="watchDH" value="'frags'; 			['playerEntity.avatar.evFragsChanged']; playerEntity.avatar.frags"/>
		<bind name="watchDH" value="'division'; 			['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.division"/>
		<bind name="watchDH" value="'divisionId'; 		['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.divisionId"/>
		<bind name="watchDH" value="'isSpeaking'; 		['playerEntity.playerVoiceState.evIsSpeakingChanged']; playerEntity.playerVoiceState.isSpeaking"/>
		<bind name="watchDH" value="'isMuted'; 			['playerEntity.playerVoiceState.evIsMutedChanged']; playerEntity.playerVoiceState.isMuted"/>
		<bind name="watchDH" value="'mute'; 				['playerEntity.avatar.evMuteChanged']; playerEntity.avatar.mute"/>
		<bind name="watchDH" value="'active'; 			['playerEntity.voiceChat.evActiveChanged']; playerEntity.voiceChat.active"/>
		<bind name="watchDH" value="'flags'; 			['playerEntity.target.evChanged']; playerEntity.target.flags"/>
		<bind name="watchDH" value="'divisionSign'; 		['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.divisionSign"/>
		<bind name="watchDH" value="'isInSameDivision'; 	['playerEntity.avatar.evDivisionChanged']; playerEntity.avatar.isInSameDivision"/>
		<bind name="watchDH" value="'divisionHidden';	['playerEntity.avatar.evDivisionChanged', 'playerEntity.avatar.evDivisionHiddenChanged']; playerEntity.avatar.divisionHidden"/>
		<bind name="watchDH" value="'pathTinyIcon'; 		[]; playerEntity.avatar.ship.ref.ship.pathTinyIcon"/>
		<bind name="watchDH" value="'pathOwnTinyIcon'; 	[]; playerEntity.avatar.ship.ref.ship.pathOwnTinyIcon"/>
		<bind name="watchDH" value="'pathTinyDeadIcon'; 	[]; playerEntity.avatar.ship.ref.ship.pathTinyDeadIcon"/>
		<bind name="watchDH" value="'name'; 				[]; playerEntity.avatar.name"/>
		<bind name="watchDH" value="'pureName'; 			[]; playerEntity.avatar.pureName"/>
		<bind name="watch" value="'isSelf'; (relation == 0)"/>
		<bind name="watch" value="'player'; {
							relation: relation,
							name: name,
							pureName: pureName,
							nameUpper: nameUpper,
							clanTag: clanTag,
							rLevel: rLevel,
							shipType: shipType,
							shipLevel: shipLevel,
							shipNation: shipNation,
							ttkStatus: ttkStatus,
							isInSameDivision: false,
							isDivisionCommander: false,
							isInVoiceChat: false,
							isMuted: isMuted,
							inviteCooldown: inviteCooldown,
							division: division,
							isAlive: isAlive,
							invitationsEnabled: false,
							isLeaver: isLeaver,
							id: playerId,
							mute: mute,
							isInSameDivisionOnStart: playerEntity.avatar.isInSameDivisionOnStart
		}"/>
		<bind name="primaryEntityDH" value="'clanEntity'; CC.clan; clanId"/>
		<bind name="primaryEntityDH" value="'clanBattleInfoEntity'; CC.clanBattleInfo; clanId"/>
		<bind name="primaryEntityDH" value="'clanExtendedEntity'; CC.clanExtended; clanId"/>
		<bind name="watchDH" value="'clanId'; 	['playerEntity.clanman.evClanIdChanged']; playerEntity.clanman.clanId"/>
		<bind name="watchDH" value="'clanTag'; 	['clanEntity.clan.evTagChanged']; clanEntity.clan.tag"/>
		<bind name="watchDH" value="'color'; 	['clanExtendedEntity.clanExtended.evColorChanged']; clanExtendedEntity.clanExtended.color"/>
		<bind name="watchDH" value="'league'; 	['clanExtendedEntity.clanExtended.evLeagueChanged']; clanExtendedEntity.clanExtended.league"/>
		<bind name="watch" value="'clanTagColor'; ('0xff' + color)"/>
		
		<bind name="var" value="{healthP:'100%'}"/>
		<bind name="watchDH" value="'healthP'; ['playerEntity.health.evValueChanged']; (((playerEntity.health.value &gt; 0) &amp;&amp; isAlive) ? ((100 * playerEntity.health.value / playerEntity.health.max) + '%'): ( isAlive ? healthP: '0%'))"/>
		<bind name="watchDH" value="'nameUpper'; 	[]; playerEntity.avatar.ship.ref.ship.nameUpper"/>
		<bind name="watchDH" value="'rLevel'; 	[]; playerEntity.avatar.ship.ref.ship.levelRome"/>
		<bind name="var" value="{wasVisible:false}"/>
		<bind name="watchDH" value="'visibleShip'; ['playerEntity.visibility.evChanged']; playerEntity.visibility.mapVisible"/>
		<bind name="watchDH" value="'wasVisible'; ['playerEntity.visibility.evChanged']; playerEntity.visibility.mapVisible || wasVisible "/>
		<bind name="collectionDH" value="CC.camera; 'cameraCollection'"/>
		<bind name="entityDH" value="'cameraEntity'; cameraCollection[0].id"/>
		<bind name="watchDH" value="'camera'; ['cameraEntity.camera.evTacticalStateChanged']; cameraEntity.camera"/>
		<bind name="collectionDH" value="CC.userPrefs; 'userPrefsCollection'"/>
		<bind name="entityDH" value="'userPrefsEntity'; userPrefsCollection[0].id"/>
		<bind name="watchDH" value="'userPrefs'; ['userPrefsEntity.userPrefs.evUserPrefsChanged']; userPrefsEntity.userPrefs.userPrefs"/>
		<bind name="watch" value="'earsEnabled'; (userPrefs.elementsGroupExpand.earsEnabled == null) ? true : userPrefs.elementsGroupExpand.earsEnabled "/>
		<bind name="watch" value="'varIcons'; ((userPrefs.chatBoxWidth.varIcons != 1) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 2) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 3) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 4) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 5) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 6) &amp;&amp; (userPrefs.chatBoxWidth.varIcons != 7)) ? 2 : userPrefs.chatBoxWidth.varIcons"/>
		<bind name="watch" value="'deadEnabled'; (userPrefs.elementsGroupExpand.deadEnabled == null) ? true : userPrefs.elementsGroupExpand.deadEnabled "/>
		<bind name="watch" value="'scaleIcons'; ((userPrefs.chatBoxWidth.scaleIcons != 80) &amp;&amp; (userPrefs.chatBoxWidth.scaleIcons != 90) &amp;&amp; (userPrefs.chatBoxWidth.scaleIcons != 100)) ? 90 : userPrefs.chatBoxWidth.scaleIcons"/>
		<bind name="watch" value="'nameEnabled'; (userPrefs.elementsGroupExpand.nameEnabled == null) ? true : userPrefs.elementsGroupExpand.nameEnabled "/>
		<bind name="watch" value="'hpEnabled'; (userPrefs.elementsGroupExpand.hpEnabled == null) ? true : userPrefs.elementsGroupExpand.hpEnabled "/>
		<bind name="watch" value="'indexHP'; (userPrefs.chatBoxWidth.indexHP == null)? 2 : userPrefs.chatBoxWidth.indexHP"/>
		<bind name="watch" value="'alphaHP'; (userPrefs.chatBoxWidth.alphaHP == null)? 0 : userPrefs.chatBoxWidth.alphaHP"/>
		<bind name="watch" value="'showPROAlfa'; (userPrefs.elementsGroupExpand.showPROAlfa == null) ? true : userPrefs.elementsGroupExpand.showPROAlfa "/>
		<bind name="watch" value="'showWinRate'; (userPrefs.elementsGroupExpand.showWinRate == null) ? true : userPrefs.elementsGroupExpand.showWinRate "/>
		<bind name="watch" value="'showAverageDamage'; (userPrefs.elementsGroupExpand.showAverageDamage == null) ? false : userPrefs.elementsGroupExpand.showAverageDamage "/>
		<bind name="watch" value="'widthNickname'; (userPrefs.chatBoxWidth.widthNickname == null) ? 40 : userPrefs.chatBoxWidth.widthNickname"/>
		<bind name="watch" value="'widthShipname'; (userPrefs.chatBoxWidth.widthShipname == null)  ? 50 : userPrefs.chatBoxWidth.widthShipname"/>	
		<bind name="watch" value="'staticTTX'; (userPrefs.elementsGroupExpand.staticTTX == null)? true : userPrefs.elementsGroupExpand.staticTTX"/>
		<bind name="watch" value="'shipShortName'; playerEntity.avatar.ship.ref.ship.shortName"/>
		<bind name="watch" value="'showRadar'; (userPrefs.elementsGroupExpand.showRadar == null) ? true : userPrefs.elementsGroupExpand.showRadar "/>
		<bind name="watchDH" value="'shipType'; 	[]; playerEntity.avatar.ship.ref.ship.subtype"/>
		<bind name="watchDH" value="'shipLevel'; 	[]; playerEntity.avatar.ship.ref.ship.level"/>
		<bind name="watchDH" value="'shipNation'; 	[]; playerEntity.avatar.ship.ref.ship.country"/>
		<bind name="watch" value="'varBackgroundIcons'; ((userPrefs.chatBoxWidth.varBackgroundIcons != 1) &amp;&amp; (userPrefs.chatBoxWidth.varBackgroundIcons != 2) &amp;&amp; (userPrefs.chatBoxWidth.varBackgroundIcons != 3)) ? 2 : userPrefs.chatBoxWidth.varBackgroundIcons"/>
		<bind name="watch" value="'showDynamicField1'; (userPrefs.elementsGroupExpand.showDynamicField1 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField1 "/>
		<bind name="watch" value="'varDynamicField1'; (userPrefs.chatBoxWidth.varDynamicField1 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField1"/>
		<bind name="watch" value="'showDynamicField2'; (userPrefs.elementsGroupExpand.showDynamicField2 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField2 "/>
		<bind name="watch" value="'varDynamicField2'; (userPrefs.chatBoxWidth.varDynamicField2 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField2"/>
		<bind name="watch" value="'showDynamicField3'; (userPrefs.elementsGroupExpand.showDynamicField3 == null) ? true : userPrefs.elementsGroupExpand.showDynamicField3 "/>
		<bind name="watch" value="'varDynamicField3'; (userPrefs.chatBoxWidth.varDynamicField3 == null)  ? 1 : userPrefs.chatBoxWidth.varDynamicField3"/>
		<bind name="watch" value="'showClanTag'; (userPrefs.elementsGroupExpand.showClanTag == null) ? true : userPrefs.elementsGroupExpand.showClanTag "/>
		<bind name="watch" value="'showClanIcon'; (userPrefs.elementsGroupExpand.showClanIcon == null) ? true : userPrefs.elementsGroupExpand.showClanIcon "/>
				
		<bind name="visible" value="(earsEnabled &amp;&amp; !(camera.isTactical)) ? (deadEnabled ? true : isAlive) : false"/>
		
		<block className="HealthRowHolder">
			<bind name="visible" value="hpEnabled"/>
			<bind name="style" value="'top'; ((indexHP == 2) ? '0px' :((scaleIcons == 80) ? '18px' : ((scaleIcons == 90) ? '21px' : '23px')))"/>
			<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ?(widthNickname + 18 + widthShipname + 'px'):(widthNickname + 18 + 'px'))"/>
			<bind name="style" value="'height'; ((indexHP == 2) ? '100%' : ((scaleIcons == 100) ? '5px' : '4px'))"/>
			<bind name="style" value="'right'; ((varIcons == 7 &amp;&amp; staticTTX) ?('-' + (widthNickname + 5 + widthShipname) + 'px'):('-' + (5 + widthNickname) + 'px'))"/>
			<style>
				<position value="absolute"/>
            </style>
            <block className="HealthRow">
				<style>
                    <height value="100%"/>
					<blurFilter value="2 2"/>
                    <position value="absolute"/>
					<align value="right"/>
                </style>
				<bind name="scaleX" value="-1"/>
				<bind name="style" value="'width'; healthP"/>
				<bind name="style" value="'alpha'; ((100-alphaHP)/100)"/>
				<bind name="style" value="'backgroundColor'; '0xFF009900'"/>
            </block>
        </block>
		
		<block>
			<bind name="style" value="'height'; ((varIcons == 7 &amp;&amp; staticTTX) ? ((scaleIcons == 80) ? '22px' : ((scaleIcons == 90) ? '25px' : '28px')) : ((scaleIcons == 80) ? '24px' : ((scaleIcons == 90) ? '27px' : '30px')))"/>
			<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 'px'):(15 + widthNickname + 20 + (122*scaleIcons/100) + 'px'))"/>
			<block>
				<bind name="style" value="'width'; ((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 'px'):(15 + widthNickname + 20 + 'px'))"/>
				<style>
					<height value="100%"/>
					<right value="0px"/>
					<position value="absolute"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="100%"/>
						<blurFilter value="2 2"/>
					</style>
					<bind name="style" value="'backgroundColor'; '0x20000000'"/>
				</block>
			</block>
			
			<bind name="tooltip" value="'BattlePlayerTooltip'; {	_isInBattle: true,
												_player: player, _selfPlayer: _selfPlayer,
												_battleType: gameInfo.battleType}"/>
			<bind name="menu" value="'UIListPlayerContextMenu'; !(isSelf)	?	{_player: player, _selfPlayer: _selfPlayer, _battleType: gameInfo.battleType, 
																_complaintsAvailable: true, _isBattleStats: true}
															: 	null; null; 'contextMenuVisible'"/>
			<block>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<bind name="scaleX" value="-1"/>
				<block className="dock_submenu_item_bg" type="native">
					<bind name="transition" value="mouseDown || contextMenuVisible || rollOver; 0.1; {alpha: 0}; {alpha: 1}"/>
					<style>
						<right value="((varIcons == 7 &amp;&amp; staticTTX) ? (15 + widthNickname + 20 + widthShipname + 'px'):(15 + widthNickname + 20 + (122*scaleIcons/100) + 'px'))"/>
					</style>
					<styleClass value="$FullsizeAbsolute"/>
				</block>

			</block>
			<block> 
				<bind name="visible" value="(wasVisible &amp;&amp; isAlive)"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="16px"/>
					<height value="16px"/>
					<position value="absolute"/>
					<left value="-25px"/>
				</style>
				<bind name="style" value="'backgroundImage'; visibleShip ? 'url:../mod_ship_icons/spotted_icons/visible.png' : 'url:../mod_ship_icons/spotted_icons/unvisible.png'"/>
			</block>

			<block className="RLSBlockRight">
				<bind name="visible" value="(((shipType=='Cruiser') &amp;&amp; (shipLevel&gt;7) &amp;&amp; (shipNation=='Russia' || shipNation=='USA' || 
						shipNation=='United_Kingdom') || (shipShortName == 'PASC507') || (shipShortName == 'PASC006') || (shipShortName == 'PASD709') ||
						(shipShortName == 'PASB509') || (shipShortName == 'PBSC507')) &amp;&amp; showRadar  &amp;&amp; (shipShortName != 'PRSC508'))"/>
				<style>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<bind name="style" value="'width'; (25*scaleIcons/100 + 'px')"/>
				<bind name="style" value="'left'; ('-' + 25*scaleIcons/100 + 'px')"/>
				
				<block className="RLSIconBlockRight">
					<style>
						<width value="16px"/>
						<height value="16px"/>
						<marginTop value="2px"/>
					</style>
					<bind name="style" value="'left'; (8*scaleIcons/100 + 'px')"/>
					<bind name="scaleX" value="0.3"/>
					<bind name="scaleY" value="0.3"/>
					<bind name="style" value="'backgroundImage'; 'url:../mod_ship_icons/RLS.png' "/>
				</block>
			
				<block type="text" className="RLSDistanceBlockRight">
					<styleClass value="$TextSecondary"/>
					<style>
						<multiline value="false"/>
						<height value="16px"/>
						<position value="absolute"/>
						<top value="11px"/>
						<textAlign value="right"/>
					</style>
					<bind name="style" value="'width'; (25*scaleIcons/100 + 'px')"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
								
					<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10' : ((scaleIcons == 90) ? '11px' : '12px'))"/>
					<bind name="text" value="((shipShortName == 'PBSC507') || (shipShortName == 'PASC507') || (shipShortName == 'PASC006')) ? '8.5' : 
							(shipShortName == 'PASD709') ? '7.5' :
							((shipShortName == 'PASB509') || ((shipType=='Cruiser') &amp;&amp; (shipLevel==9) &amp;&amp; (shipNation!='Russia'))) ? '9.5' :
							((shipLevel==8) &amp;&amp; ((shipNation=='USA') || (shipNation=='United_Kingdom'))) ? '9' :
							((shipNation=='Russia') &amp;&amp; (shipShortName != 'PRSC508')) ? '11.7' : 
							'9.9'"/>
				</block>
			</block>
			
			<block>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				
				<block className="EarsIcons">
					<bind name="alpha" value="(!isAlive)?0.4:1"/>
					<bind name="visible" value="(varIcons != 7) &amp;&amp; staticTTX"/>
					<!--<bind name="visible" value="(varIcons != 7)"/>-->
					<bind name="style" value="'width'; ((scaleIcons == 80) ? '98px' : ((scaleIcons == 90) ? '110px' : '122px'))"/>
					<style>
						<height value="100%"/>
						<!--<marginRight value="2px"/>-->
					</style>
					<bind name="scaleX" value="(scaleIcons>10)?(scaleIcons/100):1"/> 
					<bind name="scaleY" value="(scaleIcons>10)?(scaleIcons/100):1"/>
					<bind name="style" value="'backgroundImage'; ('url:../mod_ship_icons/' + varIcons + '/' + shipShortName + '.png') "/>
				</block>
				<block>
					<bind name="visible" value="(flags &amp; (1 &lt;&lt; WeaponType.ARTILLERY)) != 0"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="15px"/>
						<height value="15px"/>
						<position value="absolute"/>
						<left value="-25px"/>
						<backgroundImage value="symbol:aww_priority_attack_small"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="(flags &amp; (1 &lt;&lt; WeaponType.ATBA)) != 0"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="15px"/>
						<height value="15px"/>
						<position value="absolute"/>
						<left value="-25px"/>
						<backgroundImage value="symbol:scaliber_priority_attack_small"/>
					</style>
				</block>
				<block className="dynamicSpecifications">
			<bind name="visible" value="!staticTTX"/>
			<bind name="style" value="'width'; ((scaleIcons == 80) ? '98px' : ((scaleIcons == 90) ? '110px' : '122px'))"/>
			<style>
                <height value="100%"/>
				<marginLeft value="2px"/>
            </style>
			<block className="BackgroundIcons">
				<bind name="visible" value="varBackgroundIcons != 3"/>
				<bind name="alpha" value="!isAlive ? 0.4 : 1"/>
				<bind name="style" value="'height'; ((scaleIcons == 80) ? '24px' : ((scaleIcons == 90) ? '27px' : '30px'))"/>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
				</style>
				<bind name="scaleX" value="(scaleIcons &gt; 10)?(scaleIcons/100):1"/> 
				<bind name="scaleY" value="(scaleIcons &gt; 10)?(scaleIcons/100):1"/>
				<bind name="style" value="'backgroundImage'; (((varBackgroundIcons == 2) ? 'url:../mod_ship_icons/coloured/' : (varBackgroundIcons == 1) ? 'url:../mod_ship_icons/standart/' : 'url:../ship_icons/') + shipShortName + '.png') "/>
			</block>
			<block className="BackgroundWithoutIcons">
				<bind name="visible" value="varBackgroundIcons == 3"/>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<bind name="style" value="'backgroundColor'; '0x20000000'"/>
			</block>
			
			<block className="dynamicSpecificationsLines">
				<style>
					<width value="100%"/>
					<height value="100%"/>
				</style>
				<block className="dynamicSpecificationsLine1">
					<style>
						<height value="50%"/>
						<width value="100%"/>
						<marginTop value="-2px"/>
						<flow value="horizontal"/>
					</style>
					<block type="text" className="dynamicSpecificationsShipName">
						<bind name="text" value="rLevel + ' ' + nameUpper"/>
						<bind name="style" value="'width';(showDynamicField1 ? '60%' : '100%')"/>
						<styleClass value="$FontEarsBold"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
						<style>
							<height value="100%"/>
							<multiline value="false"/>
							<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
						</style>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

					</block> 
				
					<block type="text" className="dynamicSpecificationsField1">
						<bind name="visible" value="showDynamicField1"/>
						<bind name="text" value="(varDynamicField1 == 2) ? ((player.shipParams.torpedoes_max_dist &gt; 0) ? (format(player.shipParams.torpedoes_max_dist, 1) + '/' + format(player.shipParams.torpedoes_time_reload, 1)) : '') :
									(varDynamicField1 == 3) ? (format(player.shipParams.maxSpeed, 1)) : (varDynamicField1 == 4) ? (player.shipParams.air_defense_p) : (varDynamicField1 == 5) ? (format(player.shipParams.visibilityDistByShip,1) + '/' + format(player.shipParams.visibilityDistByPlane,1)) :
									((player.shipParams.artillery_max_dist &gt; 0) ? (format(player.shipParams.artillery_max_dist, 1) + '/' + format(player.shipParams.artillery_time_reload, 1)) : '')"/>
						<styleClass value="$FontEarsBold"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
						<style>
							<width value="40%"/>
							<height value="100%"/>
							<multiline value="false"/>
							<textAlign value="right"/>
							<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
						</style>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

					</block>
				</block>
				
				<block className="dynamicSpecificationsLine2">
					<style>
						<height value="50%"/>
						<width value="100%"/>
						<flow value="horizontal"/>
					</style>
					<block type="text" className="dynamicSpecificationsField3">
						<bind name="visible" value="showDynamicField3"/>
						<bind name="text" value="(varDynamicField3 == 1) ? ((player.shipParams.artillery_max_dist &gt; 0) ? (format(player.shipParams.artillery_max_dist, 1) + '/' + format(player.shipParams.artillery_time_reload, 1)) : '') :
									(varDynamicField3 == 4) ? (player.shipParams.air_defense_p) : (varDynamicField3 == 5) ? (format(player.shipParams.visibilityDistByShip,1) + '/' + format(player.shipParams.visibilityDistByPlane,1)) :
									(varDynamicField3 == 2) ? ((player.shipParams.torpedoes_max_dist &gt; 0) ? (format(player.shipParams.torpedoes_max_dist, 1) + '/' + format(player.shipParams.torpedoes_time_reload, 1)) : '') : (format(player.shipParams.maxSpeed, 1))"/>
						<styleClass value="$FontEarsBold"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
						<style>
							<width value="50%"/>
							<height value="100%"/>
							<multiline value="false"/>
							<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
						</style>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

					</block> 
				
					<block type="text" className="dynamicSpecificationsField2">
						<bind name="visible" value="showDynamicField2"/>
						<bind name="text" value="(varDynamicField2 == 1) ? ((player.shipParams.artillery_max_dist &gt; 0) ? (format(player.shipParams.artillery_max_dist, 1) + '/' + format(player.shipParams.artillery_time_reload, 1)) : '') :
									(varDynamicField2 == 3) ? (format(player.shipParams.maxSpeed, 1)) : (varDynamicField2 == 4) ? (player.shipParams.air_defense_p) : (varDynamicField2 == 5) ? (format(player.shipParams.visibilityDistByShip,1) + '/' + format(player.shipParams.visibilityDistByPlane,1)) :
									((player.shipParams.torpedoes_max_dist &gt; 0) ? (format(player.shipParams.torpedoes_max_dist, 1) + '/' + format(player.shipParams.torpedoes_time_reload, 1)) : '')"/>
						<bind name="style" value="'width';(showDynamicField3 ? '50%' : '100%')"/>
						<styleClass value="$FontEarsBold"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
						<style>
							<height value="100%"/>
							<multiline value="false"/>
							<textAlign value="right"/>
							<dropShadowFilter value="1 90 0x08222a 0.7 2.0 2.0 1.0 2"/>
						</style>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '10px' : ((scaleIcons == 90) ? '11px' : '12px'))"/>

					</block>
				</block>
				
			</block> <!-- End block dynamicSpecificationsLines -->
			
		</block> <!-- End block DynamicSpecifications -->
		
				<block>
					<styleClass value="$MiddleVAligned"/>
				
					<block type="text" className="ShipNameBlock">
						<bind name="visible" value="(varIcons == 7) &amp;&amp; staticTTX"/>
						<!--<bind name="visible" value="(varIcons == 7)"/>-->
						<bind name="text" value="rLevel + ' ' + nameUpper"/>
						<bind name="style" value="'width'; (widthShipname + 'px')"/>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<multiline value="false"/>
						</style>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '13' : ((scaleIcons == 90) ? '14px' : '15px'))"/>
						<bind name="class" value="isSelf 	? '$Bold' : '$None'"/>
						<bind name="style" value="'textAlign'; 'left'"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
					</block>
					<block type="text" className="FragsCountBlock">
						<bind name="text" value="frags"/>
						<bind name="style" value="'width'; '20px'"/>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '13' : ((scaleIcons == 90) ? '14px' : '15px'))"/>
						<bind name="class" value="isSelf 	? '$Bold' : '$None'"/>
						<bind name="style" value="'textAlign'; 'right'"/>
						<bind name="class" value="isAlive 	? tkStatus 	? '$FontColorTeamkiller'
												: ttkStatus 						? '$FontColorTTK'
												: (isSelf || isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: isSelf 	? tkStatus 	? '$FontColorTeamkiller' 
											: ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
					</block>
					
					<block className="PlayerNameBlock">
						<styleClass value="$MiddleVAligned"/>
						<bind name="style" value="'width'; (widthNickname + 'px')"/>

						<bind name="style" value="'alpha'; isAlive ? 1 : 0.5"/>
						<bind name="watch" value="'haveClanTag'; (clanTag != null) &amp;&amp; (clanTag != '') &amp;&amp; (clanTag != 'undefined')"/>
						<bind name="watch" value="'isColoredClanTag'; haveClanTag &amp;&amp; (color != null &amp;&amp; color != '' &amp;&amp; color != 'undefined' &amp;&amp; color != '0xffundefined')"/>
						<bind name="watch" value="'playerName'; 	isColoredClanTag 	?	playerName :
								haveClanTag			?	('[' + clanTag + ']' + playerName)
													: 	playerName"/>
						<bind name="watch" value="'fontColor'; 	isSelf 	? 	ttkStatus 			? '$FontColorTTK' :
												tkStatus 			? '$FontColorTeamkiller'
																	: '$FontColorGolden':
								isAlive 	?  	ttkStatus 			? '$FontColorTTK' :
												tkStatus 			? '$FontColorTeamkiller':
												isInSameDivision 	? '$FontColorGolden' 
																	: '$FontColorWhite'
											: '$FontColorAlmostBlack'"/>
						
						<block type="text">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<position value="absolute"/>
							</style>
							<bind name="style" value="'width'; (widthNickname + 'px')"/>
								<style>
									<multiline value="false"/>
								</style>
								<styleClass value="$TextDefaultNM"/>
								<bind name="style" value="'fontSize'; ((scaleIcons == 80) ? '13' : ((scaleIcons == 90) ? '14px' : '15px'))"/>
								<bind name="class" value="isSelf 	? '$Bold' : '$None'"/>
								<bind name="class" value="(!(isAlive) &amp;&amp; !(isSelf)) ? '$FontDropShadowWhite' : '$None'"/>
								<bind name="class" value="fontColor"/>
								<bind name="style" value="'textAlign'; 'right'"/>
								<bind name="text" value="(showClanTag) ? (haveClanTag ? (tr('[' + clanTag + ']') + pureName) : pureName) : pureName"/>

						</block>
					</block>
					
					<block className="ClanIcons">
						<bind name="alpha" value="!isAlive ? 0.4 : 1"/>
						<bind name="visible" value="showClanIcon"/>
						<bind name="style" value="'right'; ((widthNickname - 5) + 'px')"/>
						<style>
							<top value="-6px"/>
							<position value="absolute"/>
						</style>
						<bind name="scaleX" value="(scaleIcons &gt; 10)?(scaleIcons/120):0.85"/> 
						<bind name="scaleY" value="(scaleIcons &gt; 10)?(scaleIcons/120):0.85"/>
						<bind name="style" value="'backgroundImage'; ('url:../clan_icons/' + clanTag + '.png') "/>
					</block>
					
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="(division &gt; 0) &amp;&amp; !(divisionHidden)"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<position value="absolute"/>
						<right value="0px"/>
					</style>
					<block className="division_item" type="native">
						<bind name="gotoAndStop!" value="divisionSign + 1 + 10"/>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<right value="0px"/>
						<marginTop value="-2px"/>
					</style>
					<bind name="instance" value="'UIListVoiceTextChatIcons'; {	_playerId: playerId, _selfPlayerDivisionId: divisionId }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="EarTextLine">
		<block type="text">
			<styleClass value="$TextSecondary"/>
			<style>
				<multiline value="false"/>
			</style>
			<bind name="style" value="'width'; _width"/>
			<bind name="class" value="_isSelf 	? '$Bold' : '$None'"/>
			<bind name="style" value="'textAlign'; ((_relation == 1) || (_relation == 0)) ? 'left' : 'right'"/>
			<bind name="class" value="_isAlive 	? _tkStatus 	? '$FontColorTeamkiller'
												: _ttkStatus 						? '$FontColorTTK'
												: (_isSelf || _isInSameDivision) 	? '$FontColorGolden'
																					: '$None'
								: _isSelf 	? _tkStatus 	? '$FontColorTeamkiller' 
											: _ttkStatus 	? '$FontColorTTK'
											: '$FontColorGolden'
								: '$FontColorAlmostBlack'"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
</ui>
