
<ui>
	<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="$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="$ConfirmationWindowWidth">
		<width value="472px"/>
	</css>
	<css name="$ModalWindowDefaultWidth">
		<width value="472px"/>
	</css>
	<css name="$ModalWindowLargeCostMargins">
		<marginLeft value="5px"/>
		<marginRight value="4px"/>
	</css>
	<css name="$SelectTypeListItem">
		<width value="100%"/>
		<height value="74px"/>
	</css>
	<css name="$SelectTypeListItemIndent">
		<marginBottom value="15px"/>
		<marginTop value="15px"/>
		<marginLeft value="21px"/>
		<marginRight value="21px"/>
	</css>
	<block className="ModalWindowOkCancelRequest">
		<style>
			<flow value="horizontal"/>
			<marginTop value="15px"/>
		</style>
		<block>
			<bind name="appear" value="'startShow'; 0.15; 0.60; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
			<bind name="appear" value="'startHide'; 0.15; 0.45; {alpha: 1, top: 0}; {alpha: 0, top: -10}"/>
			<styleClass value="$InfoLineBoundaries"/>
			<style>
				<width value="129px"/>
				<marginRight value="20px"/>
			</style>
			<bind name="instance" value="'DefaultButton'; {	_width: '129px', _request: _request, _requestParams: _requestParams, _enabled: true, _isTransactionBtn: true,
											_containerName: ('Modal_window_action_Button' + _okLabel), _label: _okLabel,
											_focusIndex: 1, _defaultFocused: true,
											_name: 'btn_ok'}"/>
		</block>
		<block>
			<style>
				<width value="129px"/>
			</style>
			<bind name="appear" value="'startShow'; 0.15; 0.45; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
			<bind name="appear" value="'startHide'; 0.15; 0.45; {alpha: 1, top: 0}; {alpha: 0, top: -10}"/>
			<block className="DefaultButtonModal">
				<styleClass value="$InfoLineBoundaries"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="name" value="'Modal_window_action_Button' + _cancelLabel"/>
				<block className="button_default" type="native">
					<style>
						<width value="100%"/>
					</style>
					<bind name="label" value="_cancelLabel"/>
					<params>
						<param name="name" value="btn_cancel"/>
					</params>
					<bind name="input"/>
					<bind name="focus" value="2;false"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ModalWindowHeader">
		<style>
			<marginBottom value="3px"/>
		</style>
		<bind name="style" value="'width'; _headerWidth ? _headerWidth : '450px'"/>
		<block>
			<style>
				<marginBottom value="9px"/>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="text" value="toUpperCase(tr(_header))"/>
			</block>
			<block>
				<styleClass value="$AlignRight"/>
				<bind name="style" value="'right'; _innerCloseButton ? '60px' : '0px'"/>
				<block className="ModalWindowCloseIcon">
					<style>
						<position value="absolute"/>
						<right value="-50px"/>
						<top value="9px"/>
						<flow value="horizontal"/>
					</style>
					<bind name="name" value="'btn_cancel'"/>
					<bind name="input"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CLOSE'}; 0"/>
					<block>
						<style>
							<backgroundColor value="0x01000000"/>
						</style>
						<block>
							<style>
								<marginTop value="-3px"/>
							</style>
							<block className="hotkey_holder_white_9slice" type="native">
								<bind name="visible" value="true"/>
								<block type="text">
									<style>
										<marginLeft value="3px"/>
										<marginRight value="3px"/>
										<marginTop value="-1px"/>
										<marginBottom value="-1px"/>
									</style>
									<styleClass value="$BlackLabel"/>
									<text value="ESC"/>
								</block>
							</block>
						</block>
						<block className="button_close" type="native">
							<params>
								<param name="focusable" value="false"/>
							</params>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
		<block>
			<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>
	<block className="ModalWindowHeaderConfirmation">
		<style>
			<marginBottom value="3px"/>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<marginBottom value="9px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<block className="icon_warning_grey_big" type="native">
					<style>
						<marginTop value="6px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeaderBold"/>
					<text value="IDS_CONFIRMATION"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block className="ModalWindowCloseIcon">
				<style>
					<position value="absolute"/>
					<right value="-70px"/>
					<top value="9px"/>
					<flow value="horizontal"/>
				</style>
				<bind name="name" value="'btn_cancel'"/>
				<bind name="input"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CLOSE'}; 0"/>
				<block>
					<style>
						<backgroundColor value="0x01000000"/>
					</style>
					<block>
						<style>
							<marginTop value="-3px"/>
						</style>
						<block className="hotkey_holder_white_9slice" type="native">
							<bind name="visible" value="true"/>
							<block type="text">
								<style>
									<marginLeft value="3px"/>
									<marginRight value="3px"/>
									<marginTop value="-1px"/>
									<marginBottom value="-1px"/>
								</style>
								<styleClass value="$BlackLabel"/>
								<text value="ESC"/>
							</block>
						</block>
					</block>
					<block className="button_close" type="native">
						<params>
							<param name="focusable" value="false"/>
						</params>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<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>
	<block className="ModalWindowHeaderNoEsc">
		<style>
			<marginBottom value="3px"/>
			<width value="450px"/>
		</style>
		<bind name="style" value="'width'; _headerWidth ? _headerWidth : '450px'"/>
		<block>
			<style>
				<marginBottom value="9px"/>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeader"/>
				<bind name="class" value="'$FontSizeHeader5'"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="class" value="'$FontColorWhite'"/>
				<bind name="text" value="toUpperCase(tr(_header))"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginRight value="-12px"/>
				<marginLeft value="-12px"/>
			</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 className="ModalWindowHeaderWithIcon">
		<style>
			<marginBottom value="3px"/>
		</style>
		<bind name="style" value="'width'; _headerWidth ? _headerWidth : '450px'"/>
		<block>
			<style>
				<marginBottom value="9px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<block className="icons_modal_window_heading" type="native">
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginRight value="3px"/>
					</style>
					<bind name="gotoAndStop!" value="_type"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="text" value="toUpperCase(tr(_header))"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="_showInnerCloseButton"/>
				<styleClass value="$AlignRight"/>
				<block className="ModalWindowCloseIcon">
					<style>
						<position value="absolute"/>
						<right value="-50px"/>
						<top value="9px"/>
						<flow value="horizontal"/>
					</style>
					<bind name="name" value="'btn_cancel'"/>
					<bind name="input"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CLOSE'}; 0"/>
					<block>
						<style>
							<backgroundColor value="0x01000000"/>
						</style>
						<block>
							<style>
								<marginTop value="-3px"/>
							</style>
							<block className="hotkey_holder_white_9slice" type="native">
								<bind name="visible" value="true"/>
								<block type="text">
									<style>
										<marginLeft value="3px"/>
										<marginRight value="3px"/>
										<marginTop value="-1px"/>
										<marginBottom value="-1px"/>
									</style>
									<styleClass value="$BlackLabel"/>
									<text value="ESC"/>
								</block>
							</block>
						</block>
						<block className="button_close" type="native">
							<params>
								<param name="focusable" value="false"/>
							</params>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
		<block>
			<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>
	<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>
	<css name="$DockPanelVisibleArea">
		<marginBottom value="18px"/>
		<marginTop value="7px"/>
		<marginLeft value="12px"/>
		<marginRight value="12px"/>
	</css>
	<block className="Harbour">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerQuests"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerLobby"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity2'; CC.ship; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'shipInfo'; ['shipEntity2.ship.evUpdate', 'shipEntity2.ship.evCurrentSkinChanged']; shipEntity2.ship"/>
		<bind name="watchDH" value="'shipInfo' + 'Slim'; ['shipEntity2.slimClientComponent.evUpdate']; shipEntity2.slimClientComponent"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; playerShipInfo.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<styleClass value="$Fullsize"/>
		<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="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
		<bind name="style" value="'marginBottom'; isSmallCarouselView	?	(carouselRows == 1) ? '292px' :
															(carouselRows == 2) ? '353px'
																				: '229px'
														: '229px'"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="watch" value="'freezeListPath'; playerShipInfo.id + '_' + selectedBattle.type"/>
		<bind name="primaryEntityDH" value="'shipFreezeListEntity'; CC.freezeList; freezeListPath"/>
		<bind name="watch" value="'isShipFrozen'; (shipFreezeListEntity ? true : false)"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<position value="absolute"/>
				<width value="900px"/>
				<bottom value="0px"/>
			</style>
			<block>
				<width value="100%"/>
				<style>
					<hitTest value="false"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ShipStatusDockHeader'; (playerShips.length == 0)									? { _texts: [ {_paragraphText: 'IDS_NO_SHIPS'}] } :
													(playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell) &amp;&amp; !(isShipFrozen) ? { _texts: [ {_paragraphText: 'IDS_SHIP_NEEDS_SERVICE_MESSAGE'}] } :
													(playerShipInfo.isInFormation &amp;&amp; divisionData.isCommander)	? { _texts: (divisionEntranceData.divisionType == 'party' 	? [ {_paragraphText: 'IDS_SHIP_IN_PARTY_MESSAGE_COMMANDER_0'},
																																												{_paragraphText: 'IDS_SHIP_IN_FORMATION_MESSAGE_1'}]
																																											: [ {_paragraphText: 'IDS_SHIP_IN_DIVISION_MESSAGE_COMMANDER_0'},
																																												{_paragraphText: 'IDS_SHIP_IN_FORMATION_MESSAGE_1'}])} :
													playerShipInfo.isInFormation 								? { _texts: (divisionEntranceData.divisionType == 'party'	? [ {_paragraphText: 'IDS_SHIP_IN_PARTY_MESSAGE_NOT_COMMANDER_0'},
																																												{_paragraphText: 'IDS_SHIP_IN_FORMATION_MESSAGE_1'}]
																																											: [ {_paragraphText: 'IDS_SHIP_IN_DIVISION_MESSAGE_NOT_COMMANDER_0'},
																																												{_paragraphText: 'IDS_SHIP_IN_FORMATION_MESSAGE_1'}])} :
													playerShipInfo.isLocked 									? {_texts: [ {_paragraphText: 'IDS_SHIP_IN_BATTLE_MESSAGE'}] } :
													!(shipInfoSlim.isDownloaded)									? {_texts: [ {_paragraphText: 'IDS_NOT_AVAILABLE_MESSAGE'}] }
																												: null"/>
			</block>
			<block>
				<bind name="visible" value="((playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell) &amp;&amp; !(isShipFrozen))"/>
				<style>
					<marginTop value="9px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ShipStatusDock'; (playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell) ? { _playerShipInfo: playerShipInfo } : null"/>
			</block>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.3; 1; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
			<bind name="visible" value="dockDefaultValues.offerSurvey"/>
			<style>
				<right value="10px"/>
				<bottom value="0px"/>
			</style>
			<block className="button_out" type="native">
				<params>
					<param name="name" value="ButtonOut"/>
				</params>
				<params>
					<param name="focusable" value="false"/>
				</params>
				<bind name="soundSet" value="'hard_button'"/>
				<bind name="event" value="'click'; onSurveyButtonClick"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="3px"/>
						<mouseEnabled value="false"/>
						<mouseChildren value="false"/>
					</style>
					<block type="text">
						<styleClass value="$TextSecondary"/>
						<bind name="class" value="'$FontColorSpecialButton'"/>
						<style>
							<marginLeft value="10px"/>
							<marginRight value="10px"/>
							<textAlign value="center"/>
							<alpha value="0.8"/>
						</style>
						<bind name="appear" value="'addedToStage'; 0.3; 1.4; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
						<text value="IDS_SURVEYBUTTON_QUESTIONS"/>
					</block>
				</block>
				<block type="text">
					<styleClass value="$TextHeader"/>
					<bind name="class" value="'$FontColorSpecialButton'"/>
					<style>
						<marginLeft value="20px"/>
						<marginRight value="20px"/>
						<marginTop value="-4px"/>
						<textAlign value="center"/>
					</style>
					<bind name="appear" value="'addedToStage'; 0.6; 1.6; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<text value="IDS_SURVEYBUTTON_PROCEED"/>
				</block>
			</block>
		</block>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<block>
			<style>
				<flow value="vtile"/>
				<position value="absolute"/>
				<top value="38px"/>
				<height value="100%"/>
			</style>
			<bind name="watch" value="'intromissionDenyReason'; divisionData.divisionExist	? ('IDS_INTRO_MISSION_NOT_AVAILABLE_WHEN_IN_'  + toUpperCase(divisionEntranceData.divisionType)) :
												selectedShipInfo.onlyPVPPVE	? 'IDS_INTRO_MISSION_NOT_AVAILABLE_WHEN_EVENT_SHIP'
																			: null"/>
			<block>
				<bind name="visible" value="feature_21 == 'locked' &amp;&amp; (dockDefaultValues.introMissionEnabled == true) &amp;&amp; (dockDefaultValues.introMissionBannerEnabled == true)"/>
				<bind name="name" value="'IntromissionBannerButton'"/>
				<style>
					<left value="8px"/>
					<marginBottom value="10px"/>
					<marginRight value="10px"/>
					<backgroundColor value="0x01000000"/>
				</style>
				<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>
					<bind name="style" value="'hitTest'; intromissionDenyReason == null ? true : false"/>
					<block className="BannerButton">
						<block className="button_infopanel" type="native">
							<params>
								<param name="name" value="startIntroMission"/>
							</params>
							<bind name="input"/>
							<bind name="label" value="toUpperCase(tr('IDS_INTRO_MISSION'))"/>
						</block>
						<block className="icon_guide" type="native">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<position value="absolute"/>
								<left value="8px"/>
							</style>
						</block>
					</block>
				</block>
				<bind name="tooltip" value="'MouseInstructionTooltip'; intromissionDenyReason == null 	? { _multiParagraphArray:  [{_paragraphText: 'IDS_HINT_PLAY_INTROMISSION_DESC'}],
																							_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_PLAY_INTROMISSION'}], 
																							_maxWidth: 250 }
																						: null"/>
				<bind name="tooltip" value="'SimpleWarningTooltip'; intromissionDenyReason != null ? { _text: intromissionDenyReason } : null"/>
			</block>
			<block>
				<bind name="visible" value="feature_21 == 'locked'"/>
				<bind name="name" value="'TutorialBannerButton'"/>
				<style>
					<marginLeft value="8px"/>
					<marginBottom value="10px"/>
					<marginRight value="10px"/>
				</style>
				<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="BannerButton">
					<block className="button_infopanel" type="native">
						<params>
							<param name="name" value="btn_guide"/>
						</params>
						<bind name="input"/>
						<bind name="label" value="'IDS_MENU_BASIC_TUTORIALS'"/>
					</block>
					<block className="icon_guide" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<left value="8px"/>
						</style>
					</block>
				</block>
				<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_MENU_GUIDE'}], 
														_maxWidth: 250 }"/>
			</block>
			<block>
				<bind name="visible" value="!(slimClientData.isFull)"/>
				<style>
					<marginLeft value="8px"/>
					<marginBottom value="20px"/>
					<marginRight value="10px"/>
				</style>
				<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="BannerButton">
					<block className="button_infopanel" type="native">
						<params>
							<param name="name" value="btn_exit_game"/>
						</params>
						<bind name="input"/>
						<bind name="label" value="'IDS_CONTINUE_DOWNLOADING'"/>
					</block>
					<block className="game_downloading" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<left value="8px"/>
						</style>
					</block>
				</block>
				<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [	{_type: 'no_icon', _instructionText: 'IDS_CONTINUE_DOWNLOADING_HINT'},
																				{_type: 'left', _instructionText: 'IDS_CONTINUE_DOWNLOADING_HINT_EXIT'}], 
																				 _maxWidth: 250 }"/>
			</block>
			<block>
				<bind name="feature" value="9; 'rollOver'"/>
				<bind name="visible" value="feature_9 != 'locked'"/>
				<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'beforeClose'; 0.3; 0.2; {alpha: 1, top: 0}; {alpha: 0, top: 5}"/>
				<style>
					<marginBottom value="10px"/>
					<marginRight value="10px"/>
				</style>
				<bind name="instance" value="'QuestBannerChangeAnimation'; (activeSSEAndDaily.length != 0) &amp;&amp; !(divisionData.divisionExist) ? {} : null"/>
				<bind name="instance" value="'SimpleBanner'; (activeSSEAndDaily.length == 0) || divisionData.divisionExist 	? {	_instructionText: ('IDS_HINT_GO_TO_SSE_' +  toUpperCase(SSETypes.EVENT)),
																												_request: 'buttonQuestEnter', 
																												_requestParams: {type: SSETypes.EVENT},
																												_text: 'IDS_BATTLE_MISSION',
																												_isEmptyBanner: true,
																												_soundSet: 'quest_banner',
																												_name: 'buttonQuestEnter'} 
																											: null"/>
			</block>
			<block>
				<bind name="feature" value="21; ''"/>
				<bind name="visible" value="feature_21 != 'locked'"/>
				<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'beforeClose'; 0.3; 0.2; {alpha: 1, top: 0}; {alpha: 0, top: 5}"/>
				<style>
					<marginBottom value="10px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<bind name="instance" value="'LootboxesBanner'; {}"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="-3px"/>
						<left value="9px"/>
					</style>
					<block className="icon_sticker_new" type="native">
						<bind name="fade" value="feature_21 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<style>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<bind name="collectionDH" value="CC.campaignPlayer; 'campaignsDone'; 'campaignStateCompleted'"/>
				<bind name="collectionDH" value="CC.campaignParams; 'campaignUnviewed'; 'visibleCampaigns.campaignUnviewed'"/>
				<bind name="collectionDH" value="CC.campaignParams; 'campaignParamsCollection'"/>
				<bind name="watch" value="'allCampaignsDone'; (campaignsDone.length) == (campaignParamsCollection.length)"/>
				<bind name="feature" value="22; 'click'"/>
				<bind name="visible" value="feature_22 != 'locked'"/>
				<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'beforeClose'; 0.3; 0.2; {alpha: 1, top: 0}; {alpha: 0, top: 5}"/>
				<style>
					<marginBottom value="10px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<bind name="instance" value="'CampaignsBanner'; allCampaignsDone ? null : {}"/>
					<bind name="instance" value="'SimpleBanner'; allCampaignsDone 	? {	_instructionText: 'IDS_TOOLTIP_GO_TO_CAMPAIGN',
																		_action: 'openChooseCampaignsWindow',
																		_text: 'IDS_CAMPAIGNS',
																		_isEmptyBanner: true,
																		_soundSet: 'default_button',
																		_name: 'CampaignsBanner'}
																	: null"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="-3px"/>
						<left value="9px"/>
					</style>
					<block className="icon_sticker_new" type="native">
						<bind name="fade" value="(feature_22 == 'new') || (campaignUnviewed.length &gt; 0); 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<style>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
			</block>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
			<bind name="feature" value="16;'rollOver'"/>
			<bind name="feature" value="19; ''"/>
			<bind name="watch" value="'isRanksBannerAvailable';	slimClientData.isFull &amp;&amp;
												feature_16 != 'locked' &amp;&amp;
												!(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)"/>
			<bind name="watch" value="'isRanksBannerVisible';	(isRanksBannerAvailable &amp;&amp; selectedBattle.type != BattleTypes.PVE_BATTLE) ||
												(selectedBattle.type == BattleTypes.RANKED_BATTLE)"/>
			<bind name="watch" value="'isServiceRecordBannerVisible'; !(isRanksBannerVisible || (selectedBattle.type == BattleTypes.PVE_BATTLE)) &amp;&amp; accountLevelInfo.accountLevel != accountLevelInfo.maxLevelEnabled"/>
			<block>
				<style>
					<height value="46px"/>
					<marginRight value="10px"/>
				</style>
				<bind name="fade" value="(isRanksBannerVisible || isServiceRecordBannerVisible) == true; 0.15; {height: 0}; {height: 46}; {height: 0}; 2; 0.1"/>
				<block>
					<bind name="fade" value="isServiceRecordBannerVisible; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 2; 0.1"/>
					<style>
						<position value="absolute"/>
					</style>
					<block>
						<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
						<bind name="instance" value="'SimpleBanner'; {_instructionText: 'IDS_TOOLTIP_GO_TO_ACCOUNT',
													_action: 'changeInset', 
													_actionParams: {inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_ACCOUNT },
													_text: 'IDS_PROFILE_ACCOUNT',
													_soundSet: 'buttonServiceRecord_banner',
													_name: 'buttonServiceRecord'} "/>
					</block>
				</block>
				<block>
					<bind name="fade" value="isRanksBannerVisible; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 2; 0.1"/>
					<style>
						<position value="absolute"/>
					</style>
					<block>
						<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
						<bind name="instance" value="'SimpleBanner'; {_instructionText: 'IDS_TOOLTIP_GO_TO_RANKS',
													_action: 'changeInset', 
													_actionParams: {inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_RANKS },
													_text: 'IDS_PROFILE_RANKS',
													_soundSet: 'buttonRanks_banner',
													_name: 'buttonRanks' } "/>
					</block>
					<block>
						<style>
							<position value="absolute"/>
							<marginTop value="-3px"/>
							<left value="9px"/>
						</style>
						<block className="icon_sticker_new" type="native">
							<bind name="fade" value="feature_16 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
							<style>
								<hitTest value="false"/>
							</style>
						</block>
					</block>
				</block>
			</block>
			<bind name="firstEntityDH" value="'giftBox'; CC.giftBoxComponent"/>
			<bind name="watchDH" value="'giftBoxVisibilityState'; ['giftBox.giftBoxComponent.evUpdate']; giftBox.giftBoxComponent.visibilityState"/>
			<bind name="watch" value="'isGiftBoxVisible'; 	(giftBoxVisibilityState != 0) &amp;&amp;
											slimClientData.isFull"/>
			<block>
				<bind name="visible" value="isGiftBoxVisible"/>
				<style>
					<marginBottom value="10px"/>
					<marginRight value="10px"/>
				</style>
				<bind name="instance" value="'GiftboxBanner'; isGiftBoxVisible ? {} : null"/>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'beforeClose'; 0.3; 0.2; {alpha: 1, top: 0}; {alpha: 0, top: 5}"/>
				<bind name="visible" value="(divisionData.divisionExist)"/>
				<block>
					<style>
						<marginBottom value="10px"/>
						<marginRight value="10px"/>
					</style>
					<bind name="instance" value="'FormationMainElement'; (divisionData.divisionExist) ? {} : null"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'beforeClose'; 0.3; 0.2; {alpha: 1, top: 0}; {alpha: 0, top: 5}"/>
				<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'invitationsToDivision'; 'invitations'"/>
				<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
				<bind name="watch" value="'isInPrebattle'; (selfPlayerEntity.preBattlePlayerSimple != null)"/>
				<bind name="visible" value="(isInPrebattle == 0)"/>
				<style>
					<marginRight value="10px"/>
				</style>
				<bind name="repeat" value="isInPrebattle ? 0 : invitations; 'InvitationItem'"/>
			</block>
		</block>
	</block>
	<block className="PortElement">
		<bind name="collectionDH" value="CC.ownShip; 'playerShips'"/>
		<styleClass value="$Fullsize"/>
		<bind name="child" value="playerShips.length &gt; 0 ? crewInset : 0; {shipId: shipId, playerShips: playerShips}; 'Harbour'; 'CrewsSelect'"/>
	</block>
	<block className="SimpleBanner">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="appear" value="'addedToStage'; 0.3; 0.3; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: _instructionText }], _maxWidth: 250 }; 0"/>
		<bind name="soundSet" value="_soundSet"/>
		<bind name="name" value="_name"/>
		<bind name="action" value="'click'; _action ? _action : null; _actionParams ? _actionParams : {}"/>
		<bind name="request" value="'click'; _request ? _request : null; _requestParams ? _requestParams : {}"/>
		<style>
			<width value="223px"/>
			<height value="36px"/>
		</style>
		<block>
			<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.15; {alpha: 0.75}; {alpha: 1.0}"/>
			<styleClass value="$FullsizeAbsolute"/>
			<block className="quest_thumb_title" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'alpha'; _isEmptyBanner ? 0.7 : 1"/>
			</block>
		</block>
		<block type="text">
			<style>
				<width value="100%"/>
				<textAlign value="center"/>
			</style>
			<bind name="style" value="'alpha'; _isEmptyBanner ? 0.5 : 1"/>
			<styleClass value="$TextHeaderWhiteBold"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="text" value="toUpperCase(tr(_text))"/>
		</block>
	</block>
	<css name="$FontShipnameWhite">
		<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="0xEEEEEE"/>
	</css>
	<css name="$FontShipnameWhiteNoFilter">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$FontShipnameGolden">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="19"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$FontShipnameBlack">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="19"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$FontShipnameGoldenNoFilter">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$FontShipnameBlackNoFilter">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="NationButton">
		<bind name="stageSize"/>
		<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="'showArpeggioShips'; (userPrefs.elementsGroupExpand.showArpeggioShips == null) ? true : userPrefs.elementsGroupExpand.showArpeggioShips "/>
		<bind name="visible" value="(labelTF == 'Arpeggio') ? showArpeggioShips : true"/>
		<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_blurmap_h_no_right" 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>
		<bind name="name" value="'upgrade_tree_button' + labelTF"/>
		<bind name="watch" value="'isBigButton'; (stageHeight &gt;= 900)"/>
		<block className="button_navigation" type="native">
			<bind name="style" value="'width'; isBigButton ? '150px' : '125px'"/>
			<bind name="style" value="'height'; isBigButton ? '72px' : '60px'"/>
			<bind name="name" value="'upgrade_tree_button' + labelTF + ':' + (currentNationName == labelTF)"/>
			<bind name="selected" value="currentNationName == labelTF"/>
			<bind name="enabled" value="currentNationName != labelTF"/>
			<bind name="event" value="'buttonClick'; onNationButtonClick; labelTF"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<hitTest value="false"/>
			</style>
			<bind name="transition" value="currentNationName == labelTF; 0.3; {alpha: 0.8}; {alpha: 1}"/>
			<bind name="instance" value="'NationFlagsSmall'; {	shipCountry: labelTF, 
												_alpha: 0.6, 
												_width: isBigButton ? '117px' : '98px', 
												_height: isBigButton ? '72px' : '60px'}"/>
		</block>
		<block type="text">
			<styleClass value="$TextSecondaryNoFilter"/>
			<style>
				<marginRight value="18px"/>
				<textAlign value="right"/>
				<position value="absolute"/>
				<bottom value="1px"/>
				<width value="100%"/>
				<leading value="-1"/>
			</style>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value=" (currentNationName == labelTF) ? '$FontColorAlmostBlack': '$FontColorDefault'"/>
			<bind name="class" value=" (currentNationName == labelTF) ? '$FontGlowFilterBrightStrong': '$FontDropShadowFilter1'"/>
			<bind name="class" value=" isBigButton ? '$FontSizeDefault': '$FontSizeSmall'"/>
			<bind name="text" value="labelTF=='Arpeggio'?tr('IDS_PECULARITY_FILTER_ARPEGGIO'):tr('IDS_' + toUpperCase(labelTF))"/>
		</block>
	</block>
	<css name="$FontGlowFilterBrightStrong">
		<dropShadowFilter value="1 90 0xffffff 0.6 5.0 3.0 0.9 2"/>
	</css>
	<block className="NationBackgroundImage">
		<style>
			<width value="686px"/>
			<height value="445px"/>
			<alpha value="0.13"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'url:../nation_flag_tree/' + _currentNationName + '.png'"/>
	</block>
	<block className="ShipTreeShortElement">
		<bind name="name" value="'upgradeTree_' + shipInfo.fullName"/>
		<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"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<bind name="primaryEntityDH" value="'selectedShipEntity'; CC.ship; _selectedShipId; 'evUpdate'"/>
		<bind name="watchDH" value="'selectedShipInfo'; ['selectedShipEntity.ship.evUpdate', 'selectedShipEntity.ship.evCurrentSkinChanged']; selectedShipEntity.ship"/>
		<bind name="watchDH" value="'selectedShipInfo' + 'Slim'; ['selectedShipEntity.slimClientComponent.evUpdate']; selectedShipEntity.slimClientComponent"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY +  shipId; 'shipBuyPrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + shipId; 'shipExplorePrice'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="watch" value="'availableToDisplay'; (shipInfo.group == 'start') || (shipInfo.group == 'upgradeableExclusive') || (shipInfo.group == 'upgradeable') || (shipInfo.group == 'premium') || (shipInfo.isEventLike)"/>
		<bind name="watch" value="'unavailable'; !(upgradableShipInfo.dependencyResearched || isOwned || upgradableShipInfo.isExplored || shipInfo.isEventLike)"/>
		<bind name="action" value="'buttonClick';  'selectShipUpgrade'; {shipId : shipId}"/>
		<style>
			<position value="absolute"/>
		</style>
		<bind name="style" value="'marginLeft'; _isNextShip ? '-35%' : '0px'"/>
		<bind name="left" value="x * $parent.blockWidth + (_isNextShip ? $parent.blockWidth/2 : 15) + (x&gt;0 &amp;&amp; _isNextShip &amp;&amp; _totalShips&gt;1 ? 10 : 0)"/>
		<bind name="top" value="y * $parent.blockHeight"/>
		<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_blurmap5_feather" 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 className="button_dock" type="native">
			<bind name="tooltip" value="'ShipExtendedTooltip'; availableToDisplay ? { shipId: shipId, _hOffset: 0, _testShipParams: selectedShipInfo.params} : null; 2"/>
			<bind name="tooltip" value="'SimpleWarningTooltip'; availableToDisplay ? null :  { _text: 'IDS_UNAVAILABLE_TO_DISPLAY_' + toUpperCase(shipInfo.group) }; 0"/>
			<bind name="enabled" value="true"/>
			<bind name="style" value="'minWidth'; _isNextShip ? 100 : 0"/>
			<params>
				<param name="focusable" value="false"/>
			</params>
			<params>
				<param name="name" value="upgradeTree_button_go_to_previous_ship"/>
			</params>
			<block>
				<bind name="visible" value="_isNextShip == true"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<width value="100px"/>
					<height value="59px"/>
					<marginBottom value="-6px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
					<hitTest value="false"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + (upgradableShipInfo.dependencyResearched || isOwned ? shipInfo.pathPreview : shipInfo.pathPreviewDS)"/>
				<block className="icon_check" type="native">
					<style>
						<position value="absolute"/>
						<right value="4px"/>
						<top value="4px"/>
					</style>
					<bind name="visible" value="isOwned"/>
				</block>
			</block>
			<block>
				<style>
					<marginBottom value="6px"/>
					<hitTest value="false"/>
				</style>
				<block className="icon_wreath" type="native">
					<styleClass value="$MouseDisable"/>
					<style>
						<position value="absolute"/>
					</style>
					<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
					<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
									shipInfo.isPremium 	? 'premium'
														: 'elite'"/>
				</block>
				<block className="icon_ship" type="native">
					<styleClass value="$MouseDisable"/>
					<style>
						<marginLeft value="6px"/>
						<marginTop value="8px"/>
					</style>
					<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial 	? shipInfo.subtype + '_P'
																				: unavailable ? shipInfo.subtype + '_U'
																				: shipInfo.subtype"/>
				</block>
				<block>
					<styleClass value="$TextMouseDisable"/>
					<style>
						<marginRight value="3px"/>
						<marginTop value="2px"/>
					</style>
					<bind name="instance" value="'InvertableTextLine'; { _name: 'ship_level_name',
														_text: (shipInfo.levelRome + ' ' + toUpperCase(tr(shipInfo.nameIDS))), 
														_invert: unavailable, 
														_normalClass: (shipInfo.isPremium || shipInfo.uiSpecial) ? '$FontShipnameGoldenNoFilter' : '$FontShipnameWhiteNoFilter', 
														_invertedClass: '$FontShipnameBlackNoFilter'}"/>
				</block>
				<block>
					<style>
						<marginLeft value="-5px"/>
						<marginTop value="3px"/>
						<marginRight value="3px"/>
					</style>
					<bind name="visible" value="isOwned &amp;&amp; (_isNextShip != true)"/>
					<block className="icon_check" type="native"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="-6px"/>
			</style>
			<bind name="instance" value="'PriceTag'; (_withPrice &amp;&amp; !(isOwned) &amp;&amp; !(upgradableShipInfo.isExplored))	?	{	priceInfo: shipExplorePrice.prices[0],
																																_deficit: ((upgradableShipInfo.expDeficit &gt; 0) || !(upgradableShipInfo.dependencyResearched)),
																																_showDiscountTag: true}
																														:	null"/>
			<bind name="instance" value="'PriceTag'; (_withPrice &amp;&amp; !(isOwned) &amp;&amp; upgradableShipInfo.isExplored)	? {	priceInfo: shipBuyPrice.prices[0],
																														_deficit: ((accountCredits - shipBuyPrice.prices[0].finalPrice) &lt; 0),
																														_showDiscountTag: true}
																													: null"/>
		</block>
		<block>
			<style>
				<right value="-30px"/>
				<top value="-2px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'IconSlimClient'; !(shipInfoSlim.isDownloaded) ? { _isEventLike: shipInfo.isEventLike } : null"/>
		</block>
	</block>
	<css name="$ShipThumbMargins">
		<marginTop value="10px"/>
		<marginBottom value="4px"/>
		<marginLeft value="6px"/>
		<marginRight value="6px"/>
	</css>
	<block className="ShipTreeElement">
		<bind name="name" value="'upgradeTree_' + shipInfo.fullName"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerShipInfo"/>
		<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"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + shipId; 'shipExplorePrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + shipId; 'shipBuyPrice'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';	['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="feature" value="'17'; ''"/>
		<bind name="watch" value="'availableToDisplay'; (shipInfo.group == 'start') || (shipInfo.group == 'upgradeableExclusive') || (shipInfo.group == 'upgradeable') || (shipInfo.group == 'premium') || (shipInfo.isEventLike)"/>
		<bind name="action" value="'buttonClick';  'selectShipUpgrade'; {shipId : shipId}"/>
		<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="'showExperienceMultiplier'; (userPrefs.elementsGroupExpand.showExperienceMultiplier == null) ? true : userPrefs.elementsGroupExpand.showExperienceMultiplier "/>
		<bind name="watch" value="'onlyStarsExperience'; (userPrefs.elementsGroupExpand.onlyStarsExperience == null) ? false : userPrefs.elementsGroupExpand.onlyStarsExperience "/>
		<bind name="watch" value="'showCurrencyExp'; (userPrefs.elementsGroupExpand.showCurrencyExp == null) ? true : userPrefs.elementsGroupExpand.showCurrencyExp "/>
		<bind name="watch" value="'showArpeggioShips'; (userPrefs.elementsGroupExpand.showArpeggioShips == null) ? true : userPrefs.elementsGroupExpand.showArpeggioShips "/>
		<bind name="visible" value="((shipInfo.group == 'peculiar') || (shipInfo.shortName == 'PJSX701')) ? showArpeggioShips : true"/>
		<style>
			<width value="1px"/>
			<height value="1px"/>
			<position value="absolute"/>
		</style>
		<bind name="style" value="'width'; $parent.blockWidth*2"/>
		<bind name="style" value="'height'; $parent.blockHeight"/>
		<bind name="left" value="(x * $parent.blockWidth)"/>
		<bind name="top" value="(y * $parent.blockHeight)"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<styleClass value="$ShipThumbMargins"/>
			<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_thumb" type="native">
			<bind name="mouseEnabled" value="true"/>
			<bind name="mouseChildren" value="true"/>
			<bind name="tooltip" value="'ShipExtendedTooltip'; availableToDisplay ? { shipId: shipId, _hOffset: -75} : null; 2"/>
			<bind name="tooltip" value="'SimpleWarningTooltip'; availableToDisplay ? null :  { _text: 'IDS_UNAVAILABLE_TO_DISPLAY_' + toUpperCase(shipInfo.group) }; 0"/>
			<bind name="menu" value="'ShipTreeMenu'; availableToDisplay &amp;&amp; (feature_17 != 'locked') ? { shipId: shipId } : null"/>
			<bind name="gotoAndStop!" value="isOwned 	? 'Normal'
										: shipInfo.isPremium ? (shipInfo.costGold &lt;= accountGold ? 'Special' : 'Normal') 
										: (!(upgradableShipInfo.isExplored) &amp;&amp; upgradableShipInfo.expDeficit &lt;= 0 &amp;&amp; upgradableShipInfo.dependencyResearched) 
										|| (upgradableShipInfo.isExplored &amp;&amp; !isOwned &amp;&amp; upgradableShipInfo.creditsDeficit &lt;= 0) ? 'Special' : 'Normal'"/>
			<styleClass value="$Fullsize"/>
			<styleClass value="$ShipThumbMargins"/>
			<params>
				<param name="focusable" value="false"/>
			</params>
			<block>
				<styleClass value="$MouseDisable"/>
				<style>
					<width value="132px"/>
					<height value="78px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
				</style>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="style" value="'alpha'; upgradableShipInfo.dependencyResearched || isOwned ? 1 : 0.7"/>
				<bind name="style" value="'backgroundImage'; 'url:' + (upgradableShipInfo.dependencyResearched || isOwned ? shipInfo.pathPreview : shipInfo.pathPreviewDS)"/>
			</block>
			<block>
				<styleClass value="$MouseDisable"/>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<marginLeft value="4px"/>
					<marginTop value="2px"/>
					<marginRight value="4px"/>
					<marginBottom value="4px"/>
				</style>
				<block>
					<bind name="visible" value="showExperienceMultiplier"/>
					<block>
						<bind name="visible" value="!onlyStarsExperience"/>
						<style>
							<position value="absolute"/>
							<top value="22px"/>
						</style>
						<bind name="instance" value="'DoubleExperience';(playerShipInfo.expMultiply &gt; 1) ? { expMultiplyPercentsString : subst('%m',[playerShipInfo.expMultiply]) } : null"/>
						<bind name="scaleX" value="0.7"/>
						<bind name="scaleY" value="0.7"/>
					</block>
					<block>
						<bind name="visible" value="((onlyStarsExperience) &amp;&amp; (playerShipInfo.expMultiply &gt; 1))"/>
						<style>
							<position value="absolute"/>
							<top value="22px"/>
						</style>
						<block className="icon_double_experience" type="native">
							<style>
								<marginTop value="4px"/>
							</style>
						</block>
						<bind name="scaleX" value="0.7"/>
						<bind name="scaleY" value="0.7"/>
					</block>
				</block>
				<block>
					<style>
						<height value="20px"/>
					</style>
					<block className="icon_wreath" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<left value="-2px"/>
						</style>
						<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
						<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
										shipInfo.isPremium 	? 'premium'
															: 'elite'"/>
					</block>
					<block className="icon_ship" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<marginLeft value="3px"/>
						</style>
						<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: shipTypeIDS}; 0"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryBold"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial 	? '$FontColorGolden'
																			: '$FontColorDefault'"/>
						<style>
							<marginTop value="-1px"/>
							<marginLeft value="1px"/>
							<marginRight value="3px"/>
						</style>
						<bind name="text" value="shipInfo.levelRome"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<styleClass value="$MouseDisable"/>
					<style>
						<position value="absolute"/>
						<bottom value="-3"/>
						<right value="0"/>
					</style>
					<block type="text">
						<styleClass value="$TextSecondary"/>
						<bind name="class" value="'$FontSizeDefault'"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="'$LetterSpacingSmall'"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial 	? '$FontColorGolden'
																			: '$FontColorDefault'"/>
						<bind name="text" value="toUpperCase(tr(shipInfo.nameIDS))"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="showCurrencyExp"/>
					<style>
						<position value="absolute"/>
						<bottom value="0"/>
					</style>
					<bind name="instance" value="'PriceTag'; isOwned &amp;&amp; playerShipInfo.exp &gt; 0 ? { priceInfo: {finalPrice: playerShipInfo.exp, currency: 'exp' }} 
																				: null"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="(playerShipInfo.timeRent &gt; 0)"/>
				<style>
					<position value="absolute"/>
					<right value="3px"/>
					<top value="1px"/>
				</style>
				<bind name="instance" value="'RentTimer'; (playerShipInfo.timeRent &gt; 0) ? {_timeRent: playerShipInfo.timeRent} : null"/>
			</block>
			<block className="icon_check" type="native">
				<bind name="name" value="'upgradeTree_ShipIsOwned_' + shipInfo.fullName"/>
				<style>
					<position value="absolute"/>
					<right value="4px"/>
					<top value="4px"/>
				</style>
				<bind name="visible" value="(isOwned &amp;&amp; (playerShipInfo.timeRent == 0))"/>
			</block>
			<block className="icon_discount" type="native">
				<bind name="visible" value="((shipBuyPrice.prices[0].finalPrice != shipBuyPrice.prices[0].basePrice) &amp;&amp; !isOwned) || ((shipExplorePrice.prices[0].finalPrice != shipExplorePrice.prices[0].basePrice) &amp;&amp; !(upgradableShipInfo.isExplored))"/>
				<style>
					<position value="absolute"/>
					<right value="4px"/>
					<top value="4px"/>
				</style>
				<bind name="gotoAndStop!" value="'normal'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="shipInfo.isEventLike &amp;&amp; !isOwned"/>
			<styleClass value="$MiddleVAlignedAbsolutely"/>
			<block className="icon_issued" type="native">
				<style>
					<marginLeft value="100px"/>
					<marginTop value="12px"/>
					<hitTest value="false"/>
				</style>
				<bind name="scaleX" value="0.8"/>
				<bind name="scaleY" value="0.8"/>
				<bind name="rotation" value="-3"/>
				<innerBind elementName="item.item" name="text" value="toUpperCase(tr('IDS_UNAVAILABLE_TO_DISPLAY_SOON'))"/>
				<bind name="gotoAndPlay!" value="'issued'"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<left value="18px"/>
				<top value="33px"/>
			</style>
			<bind name="instance" value="'IconSlimClient'; !(shipInfoSlim.isDownloaded) ? { _isEventLike: shipInfo.isEventLike } : null"/>
		</block>
	</block>
	<block className="ShipResearchInset">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerResearchInset"/>
		<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"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-60px"/>
				<backgroundImage value="url:../bg/nation_tree.jpg"/>
				<backgroundSize value="cover"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="currentNationName &amp;&amp; realmConstants.showShipTreeBg == true"/>
			<bind name="appear" value="'onArrowsDataUpdate'; 0.3; 0.15; {alpha: 0}; {alpha: 1}"/>
			<style>
				<position value="absolute"/>
				<bottom value="0px"/>
				<right value="0px"/>
			</style>
			<bind name="instance" value="'NationBackgroundImage'; currentNationName &amp;&amp; realmConstants.showShipTreeBg == true ? {_currentNationName: currentNationName} : null"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<backgroundImage value="symbol:lines_45"/>
				<backgroundRepeatX value="true"/>
				<backgroundRepeatY value="true"/>
			</style>
			<bind name="appear" value="'addedToStage'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-112px"/>
				<marginLeft value="-20px"/>
				<backgroundImage value="symbol:grid_86"/>
				<backgroundRepeatX value="true"/>
				<backgroundRepeatY value="true"/>
			</style>
			<bind name="appear" value="'addedToStage'; 0.3; 0; {alpha: 0}; {alpha: 0.5}"/>
		</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>
        <block>
            <styleClass value="$Fullsize"/>
            <style>
                <position value="absolute"/>
            </style>
            <block>
                <bind name="stageSize"/>
                <bind name="scaleX" value="(stageHeight &gt; 950 ? 1 : stageHeight &gt; 800 ? 0.95 : 0.9)"/>
                <bind name="scaleY" value="(stageHeight &gt; 1000 ? 1 : stageHeight &gt; 950 ? 0.95 : stageHeight &gt; 900 ? 0.9 : stageHeight &gt; 850 ? 0.85 : stageHeight &gt; 800 ? 0.8 : stageHeight &gt; 750 ? 0.75 : 0.70)"/>
                <style>
                    <position  value="absolute"/>
                    <width value="100%"/>
                    <height value="920px"/>
                    <marginTop value="10px"/>
                    <backgroundColor value="0x10000000"/>
                </style>
                <block>
                    <style>
                        <position value="absolute"/>
                        <width value="100%"/>
                        <marginLeft value="140px"/>
                        <marginTop value="50px"/>
                    </style>
                    <bind name="appear" value="'addedToStage'; 0.15; 0.15; {alpha: 0}; {alpha: 1}"/>
                    <bind name="repeat" value="10; 'LevelItem'"/>
                </block>

                <block>
                    <style>
                        <width value="100%f"/>
                        <overflow value="scroll"/>
                        <marginRight value="3px"/>
                        <position value="absolute"/>
                        <marginLeft value="205px"/>
                        <flow value="horizontal"/>
                        <wheelScrollSpeed value="150"/>
                        <scrollArea value="ModernScrollAreaHorizontal"/>
                        <scrollbarController value="lesta.unbound.style.UbScrollingControllerTouch"/>
                        <scrollbarTrackMode value="scrollToCursor"/>
                    </style>

                    <block>
                        <style>
                            <width value="1px"/>
                            <height value="920px"/>
                        </style>
                        <bind name="width" value="(maxNodesHorizontal + 1) * blockWidth + 220"/>
                        <block>
                            <style>
                                <position value="absolute"/>
                                <width value="100%"/>
                                <marginTop value="38px"/>
                            </style>
                            <bind name="repeat" value="currentBranchTypes; 'BranchTypeLabel'"/>
                            <bind name="appear" value="'onArrowsDataUpdate'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
                            <style>
                                <flow value="horizontal"/>
                            </style>
                        </block>
                        <block>
                            <bind name="controller" value="lesta.dialogs.dock.controllers.ControllerArrowsPainter; 'ships_tree'; 84; 85; 84; 48; 8; 4; 8; 6; 1; 2"/>
                            <styleClass value="$Fullsize"/>
                            <style>
                                <position value="absolute"/>
                                <marginTop value="50px"/>
                            </style>
                            <bind name="appear" value="'addedToStage'; 0.5; 0.6; {alpha: 0}; {alpha: 1}"/>
                            <bind name="appear" value="'onArrowsDataUpdate'; 0.5; 0.6; {alpha: 0}; {alpha: 1}"/>
                        </block>
                        <block>
                            <style>
                                <position value="absolute"/>
                                <width value="100%"/>
                                <marginTop value="50px"/>
                            </style>
                            <bind name="repeat" value="currentTreeNodes; 'ShipTreeElement'"/>
                            <bind name="appear" value="'addedToStage'; 0.3; 0.3; {alpha: 0, top: 15}; {alpha: 1, top: 0}"/>
                            <bind name="appear" value="'onArrowsDataUpdate'; 0.3; 0.3; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
                        </block>
                    </block>
                </block>
            </block>
            
            <block>

                <style>
                    <height value="95%"/>
                    <width value="160px"/>
                    <marginTop value="100px"/>
                    <overflow value="scroll"/>
                </style>
                <styleClass value="$DefaultScrollBar"/>
                <block>
					
					<bind name="repeat" value="nations; 'NationButton'; {currentNationName: currentNationName, onNationButtonClick: onNationButtonClick}"/>
                    <bind name="appear" value="'addedToStage'; 0.3; 0.4; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
                    <bind name="scaleX" value="0.9"/>
                    <bind name="scaleY" value="0.9"/>
                </block>
            </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>
        <block className="icon_question_mark" type="native">
			<style>
				<position value="absolute"/>
				<top value="8px"/>
				<left value="6px"/>
			</style>
			<bind name="tooltip" value="'ModuleTreeHelpTooltip'; {}; 0"/>
			<bind name="appear" value="'addedToStage'; 0.3; 0.4; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		</block>
		<block className="SettingsTreeBlock">
			<style>
				<position value="absolute"/>
				<top value="8px"/>
				<left value="30px"/>
			</style>
			<bind name="scaleX" value="0.9"/>
			<bind name="scaleY" value="0.9"/>
			<block className="showExpMultBlock">
				<bind name="watch" value="'showExperienceMultiplier'; (userPrefs.elementsGroupExpand.showExperienceMultiplier == null) ? true : userPrefs.elementsGroupExpand.showExperienceMultiplier "/>
				<bind name="catch" value="'switchshowExperienceMultiplier'; { showExperienceMultiplier: !showExperienceMultiplier }; 'saveshowExperienceMultiplier'"/>
				<bind name="action" value="'saveshowExperienceMultiplier' ; 'setUserPref' ; {value: showExperienceMultiplier, name: 'elementsGroupExpand', subName: 'showExperienceMultiplier'}"/>
                          
				<bind name="instance" value="'CheckBox'; {switchProperty: showExperienceMultiplier, label: ((tr('IDS_MENU_SETTINGS') == 'НАСТРОЙКИ') ? 'Показывать множитель опыта' : 'Show experience multiplier'), _maxTfWidth: 250}"/>
				<bind name="dispatch" value="'click'; 'switchshowExperienceMultiplier'"/>
			</block>
			<block className="typeExpMultBlock">
				<bind name="visible" value="showExperienceMultiplier"/>
				<style>
					<marginTop value="2px"/>
					<marginLeft value="20px"/>
				</style>
				<bind name="watch" value="'onlyStarsExperience'; (userPrefs.elementsGroupExpand.onlyStarsExperience == null) ? false : userPrefs.elementsGroupExpand.onlyStarsExperience "/>
				<bind name="catch" value="'switchonlyStarsExperience'; { onlyStarsExperience: !onlyStarsExperience }; 'saveonlyStarsExperience'"/>
				<bind name="action" value="'saveonlyStarsExperience' ; 'setUserPref' ; {value: onlyStarsExperience, name: 'elementsGroupExpand', subName: 'onlyStarsExperience'}"/>
                          
				<bind name="instance" value="'CheckBox'; {switchProperty: onlyStarsExperience, label: ((tr('IDS_MENU_SETTINGS') == 'НАСТРОЙКИ') ? 'Только звёзды' : 'Stars only'), _maxTfWidth: 250}"/>
				<bind name="dispatch" value="'click'; 'switchonlyStarsExperience'"/>
			</block>
			<block className="showCurrencyExpBlock">
				<style>
					<marginTop value="2px"/>
				</style>
				<bind name="watch" value="'showCurrencyExp'; (userPrefs.elementsGroupExpand.showCurrencyExp == null) ? true : userPrefs.elementsGroupExpand.showCurrencyExp "/>
				<bind name="catch" value="'switchshowCurrencyExp'; { showCurrencyExp: !showCurrencyExp }; 'saveshowCurrencyExp'"/>
				<bind name="action" value="'saveshowCurrencyExp' ; 'setUserPref' ; {value: showCurrencyExp, name: 'elementsGroupExpand', subName: 'showCurrencyExp'}"/>
                          
				<bind name="instance" value="'CheckBox'; {switchProperty: showCurrencyExp, label: ((tr('IDS_MENU_SETTINGS') == 'НАСТРОЙКИ') ? 'Показывать текущий опыт' : 'Show currency experience'), _maxTfWidth: 250}"/>
				<bind name="dispatch" value="'click'; 'switchshowCurrencyExp'"/>
			</block>
			<block className="showArpeggioShipsBlock">
				<style>
					<marginTop value="2px"/>
				</style>
				<bind name="watch" value="'showArpeggioShips'; (userPrefs.elementsGroupExpand.showArpeggioShips == null) ? true : userPrefs.elementsGroupExpand.showArpeggioShips "/>
				<bind name="catch" value="'switchshowArpeggioShips'; { showArpeggioShips: !showArpeggioShips }; 'saveshowArpeggioShips'"/>
				<bind name="action" value="'saveshowArpeggioShips' ; 'setUserPref' ; {value: showArpeggioShips, name: 'elementsGroupExpand', subName: 'showArpeggioShips'}"/>
                          
				<bind name="instance" value="'CheckBox'; {switchProperty: showArpeggioShips, label: ((tr('IDS_MENU_SETTINGS') == 'НАСТРОЙКИ') ? 'Показывать корабли Arpeggio' : 'Show Arpeggio ships'), _maxTfWidth: 250}"/>
				<bind name="dispatch" value="'click'; 'switchshowArpeggioShips'"/>
			</block>
		</block>
    </block>
	<css name="$FontModuleWhite">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$FontModuleGolden">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$FontModuleBlack">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="ModuleTreeElement">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerModuleUpgradeInfo"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + moduleInfo.id; 'moduleExplorePrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + moduleInfo.id; 'moduleBuyPrice'"/>
		<style>
			<width value="100px"/>
			<height value="100px"/>
			<position value="absolute"/>
		</style>
		<bind name="left" value="(x * $parent.blockWidth)"/>
		<bind name="top" value="(y * $parent.blockHeight)"/>
		<bind name="name" value="moduleInfo.nameIDS"/>
		<block>
			<style>
				<position value="absolute"/>
				<left value="5px"/>
				<top value="10px"/>
				<width value="90px"/>
				<height value="100px"/>
			</style>
			<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_blurmap5_feather" 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>
			<styleClass value="$Fullsize"/>
			<style>
				<marginTop value="12px"/>
				<marginBottom value="28px"/>
				<marginRight value="20px"/>
				<marginLeft value="20px"/>
			</style>
			<block className="dock_thumb_highlight" type="native">
				<styleClass value="$MouseDisable"/>
				<styleClass value="$Fullsize"/>
				<style>
					<position value="absolute"/>
				</style>
				<bind name="gotoAndStop!" value="highLight"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="50px"/>
					<height value="50px"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="-7px"/>
					</style>
					<bind name="event" value="'click'; onModuleClick; moduleInfo.id"/>
					<block className="icon_tree_module_states" type="native">
						<bind name="tooltip" value="'ModuleTreeInfotip'; {	_costXP: moduleExplorePrice.prices[0].finalPrice,
															_costCR: moduleBuyPrice.prices[0].finalPrice,
															_testModuleParams: (_upgradableShipInfo.isExplored) ? _installedModulesParams[moduleInfo.type] : _stockModulesMap[moduleInfo.type],
															_shipParams: _shipParams,
															_shipIsOwned: _isOwned, 
															_shipIsResearched: _upgradableShipInfo.isExplored,
															_isLocked: _playerShipInfo.isLocked,
															_isInFormation: _playerShipInfo.isInFormation,
															_isNeedRepair: _playerShipInfo.isNeedRepair,
															_isNeedShell: _playerShipInfo.isNeedShell,
															priceInfo: priceInfo,
															moduleInfo: moduleInfo,
															_isEventLike: _shipInfo.isEventLike
															 }; 5"/>
						<bind name="tooltip" value="'ModuleTreeTooltip'; { _shipIsResearched: _upgradableShipInfo.isExplored,
															_testModuleParams: (_upgradableShipInfo.isExplored) ? _installedModulesParams[moduleInfo.type] : _stockModulesMap[moduleInfo.type],
															_shipIsOwned: _isOwned,
															moduleExplorePrice: moduleExplorePrice,
															moduleBuyPrice: moduleBuyPrice,
															moduleInfo: moduleInfo,
															_shipParams: _shipParams,
															_isEventLike: _shipInfo.isEventLike
															}"/>
						<bind name="selected" value="selected"/>
						<bind name="style" value="'alpha'; _upgradableShipInfo.isExplored ? 1 : 0.7"/>
						<bind name="gotoAndStop!" value="moduleInfo.type + (((moduleInfo.toPurchase &amp;&amp; moduleInfo.creditsDeficit &lt;= 0) || (moduleInfo.toExplore &amp;&amp; moduleInfo.expDeficit &lt;= 0)) ? '_A' : '_P') "/>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MouseDisable"/>
					<style>
						<marginTop value="-9px"/>
					</style>
					<block type="text">
						<styleClass value="$TextSecondaryNoFilter"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="_upgradableShipInfo.isExplored ? '$FontColorAlmostBlack' : '$FontColorDefault'"/>
						<style>
							<textAlign value="center"/>
							<maxWidth value="90"/>
							<leading value="-3"/>
							<alpha value="0.35"/>
							<top value="1px"/>
						</style>
						<bind name="text" value="moduleInfo.nameIDS"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryNoFilter"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="_upgradableShipInfo.isExplored ? '$FontColorAlmostBlack' : '$FontColorDefault'"/>
						<style>
							<position value="absolute"/>
							<textAlign value="center"/>
							<maxWidth value="90"/>
							<leading value="-3"/>
							<alpha value="0.1"/>
							<top value="-1px"/>
						</style>
						<bind name="text" value="moduleInfo.nameIDS"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryNoFilter"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="_upgradableShipInfo.isExplored ? '$FontColorAlmostBlack' : '$FontColorDefault'"/>
						<style>
							<position value="absolute"/>
							<textAlign value="center"/>
							<maxWidth value="90"/>
							<leading value="-3"/>
							<alpha value="0.15"/>
							<left value="-1px"/>
						</style>
						<bind name="text" value="moduleInfo.nameIDS"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryNoFilter"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="_upgradableShipInfo.isExplored ? '$FontColorAlmostBlack' : '$FontColorDefault'"/>
						<style>
							<position value="absolute"/>
							<textAlign value="center"/>
							<maxWidth value="90"/>
							<leading value="-3"/>
							<alpha value="0.15"/>
							<left value="1px"/>
						</style>
						<bind name="text" value="moduleInfo.nameIDS"/>
					</block>
					<block type="text">
						<bind name="class" value="_upgradableShipInfo.isExplored ? (moduleInfo.count.Installed &gt; 0 ? '$FontModuleGolden' : '$FontModuleWhite' ) : '$FontModuleBlack'"/>
						<style>
							<position value="absolute"/>
							<textAlign value="center"/>
							<maxWidth value="90"/>
							<leading value="-3"/>
						</style>
						<bind name="text" value="moduleInfo.nameIDS"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="!(_shipInfo.isEventLike &amp;&amp; !_isOwned)"/>
					<styleClass value="$MiddleAligned"/>
					<block>
						<style>
							<marginTop value="-4px"/>
						</style>
						<bind name="instance" value="'PriceTag'; !(moduleInfo.isExplored) &amp;&amp; !(moduleInfo.isStock) &amp;&amp; (moduleInfo.toExplore || !(_upgradableShipInfo.isExplored))	? {priceInfo: moduleExplorePrice.prices[0], _deficit: ((moduleInfo.expDeficit &gt; 0) || !(_upgradableShipInfo.isExplored)), _showDiscountTag:true}
																																									: moduleInfo.toPurchase ? {priceInfo: moduleBuyPrice.prices[0], _deficit: (moduleInfo.creditsDeficit &gt; 0), _showDiscountTag:true}
																																									: null"/>
					</block>
				</block>
				<block className="icon_check" type="native">
					<styleClass value="$MouseDisable"/>
					<style>
						<position value="absolute"/>
						<right value="-8px"/>
						<top value="-8px"/>
					</style>
					<bind name="visible" value="moduleInfo.count.Installed &gt; 0"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ModuleInsetElement">
		<bind name="collectionDH" value="CC.ownShip; 'playerShips'"/>
		<styleClass value="$Fullsize"/>
		<bind name="child" value="playerShips.length &gt; 0 ? crewInset : 0; {shipId: shipIdForModuleInset}; 'ModuleResearch';'CrewsSelect'"/>
	</block>
	<block className="ModuleResearch">
		<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"/>
		<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="'isOwned'; playerShipInfo != null"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerResearchModuleInset"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + shipId; 'shipExplorePrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + shipId; 'shipBuyPrice'"/>
		<styleClass value="$Fullsize"/>
		<block>
			<style>
				<position value="absolute"/>
				<width value="1px"/>
				<height value="74px"/>
				<mouseEnabled value="false"/>
			</style>
			<bind name="width" value="maxNodesHorizontal * blockWidth + 100"/>
			<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_blurmap_h_no_top" 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="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>
		<bind name="var" value="{researchElementMinWidth: 500}"/>
		<block>
			<style>
				<width value="1px"/>
				<height value="80%"/>
			</style>
			<bind name="width" value="(25 + maxModuleWidth * blockWidth) &gt; researchElementMinWidth  ? (25 + maxModuleWidth * blockWidth) : researchElementMinWidth"/>
			<block>
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="shipId &gt; 0"/>
			<block>
				<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="watch" value="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
				<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
				<bind name="style" value="'marginBottom'; isSmallCarouselView	?	(carouselRows == 1) ? '261px' :
																	(carouselRows == 2) ? '324px'
																						: '198px'
																: '198px'"/>
				<style>
					<left value="0px"/>
					<marginTop value="98px"/>
					<position value="absolute"/>
					<width value="1px"/>
					<height value="100%"/>
					<marginBottom value="200px"/>
				</style>
				<bind name="width" value="(25 + maxModuleWidth * blockWidth) &gt; researchElementMinWidth  ? (25 + maxModuleWidth * blockWidth) : researchElementMinWidth"/>
				<block>
					<style>
						<marginTop value="-27px"/>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ShipHeaderModuleTree'; {_shipName: toUpperCase(tr(shipInfo.nameIDS + '_FULL')),
					_levelRome: shipInfo.levelRome,
					_isElite: upgradableShipInfo.isElite,
					_isPremium: shipInfo.isPremium,
					_shipExp: playerShipInfo.exp,
					_isOwned: isOwned,
					_isExplored: upgradableShipInfo.isExplored,
					_totalCostXP: upgradableShipInfo.totalCostXP,
					_expDeficit: upgradableShipInfo.expDeficit,
					_costCR: shipInfo.costCR,
					_costGold: shipInfo.costGold,
					_creditsDeficit: upgradableShipInfo.creditsDeficit,
					_dependencyResearched: upgradableShipInfo.dependencyResearched,
					shipBuyPrice: shipBuyPrice,
					shipExplorePrice: shipExplorePrice,
					_isDownloaded: shipInfoSlim.isDownloaded,
					_unavailable: !(upgradableShipInfo.dependencyResearched || isOwned || upgradableShipInfo.isExplored || (shipInfo.isEventLike)),
					_shipId: shipId,
					_subtype: shipInfo.subtype,
					_uiSpecial: shipInfo.uiSpecial,
					_eventShips: shipInfo.isEventLike,
					_group: shipInfo.group,
					letterSpacing: 0.8}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<height value="100%f"/>
						<width value="100%"/>
						<marginTop value="-4px"/>
						<overflow value="scroll"/>
					</style>
					<styleClass value="$DefaultScrollBar"/>
					<block>
						<style>
							<marginRight value="20px"/>
							<width value="1px"/>
							<height value="1px"/>
						</style>
						<bind name="width" value="(maxNodesHorizontal) * blockWidth"/>
						<bind name="height" value="maxNodesVertical * blockHeight + ((currentTreeNodes.length &gt; 0 || prevShips.length &gt; 0) ? 25 : 15)"/>
						<block>
							<style>
								<position value="absolute"/>
								<top value="28px"/>
								<left value="22px"/>
							</style>
							<bind name="repeat" value="currentModuleTreeNodes; 'ModuleTreeElement'; {_playerShipInfo: playerShipInfo, _upgradableShipInfo: upgradableShipInfo,
																					_installedModulesParams: installedModulesParams, _stockModulesMap: stockModulesMap,
																					_shipParams: isOwned ? playerShipInfo.params : shipInfo.params, _shipInfo: shipInfo, _isOwned: isOwned}"/>
						</block>
						<block>
							<style>
								<position value="absolute"/>
								<width value="100%"/>
								<top value="20px"/>
								<left value="22x"/>
							</style>
							<bind name="repeat" value="currentBranchTypes; 'BranchTypeLabelDark'"/>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerArrowsPainter; 'modules_tree'; 100; 114; 50; 57; 15; -2; 15; 15"/>
							<styleClass value="$Fullsize"/>
							<style>
								<hitTest value="false"/>
								<position value="absolute"/>
								<top value="20px"/>
								<left value="22px"/>
							</style>
						</block>
						<block>
							<style>
								<position value="absolute"/>
								<top value="36px"/>
								<left value="7px"/>
							</style>
							<bind name="repeat" value="currentTreeNodes; 'ShipTreeShortElement'; {_withPrice: true, _isNextShip: true, _totalShips: currentTreeNodes.length, _selectedShipId: shipId}"/>
						</block>
					</block>
				</block>
				<block>
					<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
					<bind name="watchDH" value="'inset'; ['dockEntity.insetComponent.evUpdate']; dockEntity.insetComponent.inset"/>
					<bind name="primaryEntityDH" value="'pageEntity'; CC.insetPage; LobbyConstants.SHIP_MODULES"/>
					<bind name="watchDH" value="'page'; ['pageEntity.insetPage.evUpdate']; pageEntity.insetPage.page"/>
					<bind name="var" value="{isConsumablesLocked: false}"/>
					<bind name="feature" value="12; ''"/>
					<bind name="visible" value="(isConsumablesLocked != true) || (feature_12 != 'locked')"/>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<height value="31px"/>
							<marginTop value="1px"/>
							<width value="100%"/>
						</style>
						<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_blurmap_h_no_right" 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>
						<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="inner_panel" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
						<block>
							<styleClass value="$MiddleAligned"/>
							<style>
								<marginTop value="3px"/>
							</style>
							<block>
								<bind name="visible" value="(isConsumablesLocked) &amp;&amp; (feature_12 != 'locked')"/>
								<styleClass value="$MiddleAligned"/>
								<block type="text">
									<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_MODERNIZATION'}"/>
									<styleClass value="$TextHeaderBigDefault"/>
									<bind name="text" value="toUpperCase(tr('IDS_MODERNIZATION'))"/>
								</block>
							</block>
							<block>
								<bind name="visible" value="(isConsumablesLocked != true) &amp;&amp; (feature_12 == 'locked')"/>
								<styleClass value="$MiddleAligned"/>
								<block type="text">
									<styleClass value="$TextHeaderBigDefault"/>
									<bind name="text" value="toUpperCase(tr('IDS_AMMUNITION_AND_CONSUMABLES'))"/>
								</block>
							</block>
							<block>
								<bind name="visible" value="(isConsumablesLocked != true) &amp;&amp; (feature_12 != 'locked')"/>
								<block className="tab_bar_bg" type="native">
									<style>
										<height value="25"/>
									</style>
									<block>
										<style>
											<marginLeft value="2px"/>
											<marginRight value="2px"/>
										</style>
										<block>
											<bind name="instance" value="'MainTabSmallInstance'; { 	_label: 'IDS_AMMUNITION_AND_CONSUMABLES',
																					_tooltipIDS: 'IDS_TOOLTIP_AMMUNITION_AND_CONSUMABLES',
																					_selected: page == LobbyConstants.SHIP_MODULES_ABILITY,
																					_width: 200,
																					_action: 'changeInset',
																					_actionParams: { inset: LobbyConstants.SHIP_MODULES, page: LobbyConstants.SHIP_MODULES_ABILITY },
																					_name: 'consumable' }"/>
										</block>
										<block className="divider_v" type="native">
											<style>
												<height value="23px"/>
												<marginTop value="2px"/>
											</style>
										</block>
										<block>
											<bind name="feature" value="'12'; 'rollOver'"/>
											<params>
												<param name="name" value="modernizationsTabBlock"/>
											</params>
											<bind name="stageCoord" value="true"/>
											<bind name="instance" value="'MainTabSmallInstance'; { 	_label: 'IDS_MODERNIZATION',
																					_tooltipIDS: 'IDS_TOOLTIP_MODERNIZATION',
																					_selected: page == LobbyConstants.SHIP_MODULES_MODERNIZATION,
																					_width: 200,
																					_action: 'changeInset',
																					_actionParams: { inset: LobbyConstants.SHIP_MODULES, page: LobbyConstants.SHIP_MODULES_MODERNIZATION },
																					_name: 'modernization' }"/>
											<block>
												<style>
													<position value="absolute"/>
													<marginLeft value="10px"/>
												</style>
												<block className="icon_sticker_new" type="native">
													<bind name="fade" value="feature_12 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
													<style>
														<hitTest value="false"/>
													</style>
												</block>
											</block>
										</block>
										<block>
											<bind name="fade" value="(isModernizationSeen == false) &amp;&amp; (unseenModernizationType != 0); 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
											<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
											<bind name="watchDH" value="'isModernizationSeen'; 		['dockEntity.dockData.evUpdate']; dockEntity.dockData.isModernizationSeen"/>
											<bind name="watchDH" value="'unseenModernizationType'; 	['dockEntity.dockData.evUpdate']; dockEntity.dockData.unseenModernizationType"/>
											<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_MODERNIZATION_TYPE_' + toUpperCase(tr(modernizationType)))}; 0"/>
											<bind name="watch" value="'modernizationType'; 	(unseenModernizationType == 1) 	? 'special' :
																			(unseenModernizationType == 2) 		? 'rare' :
																			(unseenModernizationType == 3) ? 'legendary'
																															: ''"/>
											<style>
												<position value="absolute"/>
												<right value="0px"/>
												<width value="23px"/>
												<height value="23px"/>
											</style>
											<bind name="style" value="'backgroundImage'; 'url:../service_kit/item_types/icon_modernization_' + modernizationType + '.png'"/>
										</block>
										<style>
											<flow value="horizontal"/>
										</style>
									</block>
								</block>
							</block>
						</block>
					</block>
					<block>
						<style>
							<marginTop value="9px"/>
							<marginBottom value="6px"/>
							<width value="100%"/>
						</style>
						<bind name="child" value="(isOwned == false)	? 2
																		: (feature_12 == 'locked')	? 0
																									: page;
																		'Consumables'; 'Modernization'; 'EmptyItem'"/>
					</block>
					<block>
						<bind name="visible" value="(feature_12 != 'locked') &amp;&amp; (page == LobbyConstants.SHIP_MODULES_MODERNIZATION)"/>
						<style>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<marginBottom value="6px"/>
							</style>
							<styleClass value="$MiddleAligned"/>
							<bind name="visible" value="(shipInfo.params.slotsNum &gt; 0) &amp;&amp; (upgradableShipInfo.isExplored == false || isOwned == false)"/>
							<block className="icon_warning_orange" type="native">
								<style>
									<marginTop value="5px"/>
								</style>
							</block>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="'$FontColorUnready'"/>
								<bind name="text" value="(isOwned == false) ? 'IDS_PURCHASE_SHIP_TO_SEE_MODERNIZATIONS' : ' '"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<style>
								<marginBottom value="6px"/>
							</style>
							<styleClass value="$MiddleAligned"/>
							<bind name="visible" value="shipInfo.params.slotsNum == 0"/>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<text value="IDS_SHIP_HAS_NO_MODERNIZATIONS"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
					<block>
						<bind name="visible" value="(isOwned == false) &amp;&amp; (isConsumablesLocked == false) &amp;&amp; ((page == LobbyConstants.SHIP_MODULES_ABILITY) || (feature_12 == 'locked'))"/>
						<style>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<marginBottom value="6px"/>
							</style>
							<styleClass value="$MiddleAligned"/>
							<block className="icon_warning_orange" type="native">
								<style>
									<marginTop value="5px"/>
								</style>
							</block>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="'$FontColorUnready'"/>
								<bind name="text" value="'IDS_PURCHASE_SHIP_TO_SEE_AMMUNITION_AND_CONSUMABLES'"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
				<block>
					<bind name="appear" value="'startShow'; 0.15; 0.75; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
					<bind name="appear" value="'startHide'; 0.15; 0.75; {alpha: 1, top: 0}; {alpha: 0, top: -10}"/>
					<bind name="visible" value="(shipInfo.isPremium) || shipInfo.peculiarity != 'default' || shipInfo.group == 'upgradeableExclusive'"/>
					<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_blurmap5_feather" 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>
					<style>
						<width value="100%"/>
						<marginLeft value="6px"/>
						<marginRight value="12px"/>
					</style>
					<block>
						<block>
							<bind name="stageSize"/>
							<bind name="watch" value="'isEnoughtSpace'; stageHeight &gt;= '800' ? true : false"/>
							<bind name="watch" value="'isInfoExpanded'; (userPrefs.premiumInfoExpanded == null) ? isEnoughtSpace : userPrefs.premiumInfoExpanded"/>
							<bind name="action" value="'savePremiumInfoExpanded'; 'setUserPref' ; {value : isInfoExpanded, name : 'premiumInfoExpanded'}"/>
							<bind name="dispatch" value="'click' ; 'invertExpand'"/>
							<bind name="catch" value="'invertExpand'; { isInfoExpanded : !isInfoExpanded}; 'savePremiumInfoExpanded'"/>
							<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: (isInfoExpanded 	? (shipInfo.peculiarity != 'default' ? 'IDS_NOT_DEFAULT_SHIP_POINTS_COLLAPSE_HINT_' + toUpperCase(shipInfo.peculiarity) : shipInfo.group == 'premium' ? 'IDS_PREMIUM_SHIP_POINTS_COLLAPSE_HINT' : 'IDS_SHIP_PECULIARITIES_COLLAPSE_HINT') 
																																			: (shipInfo.peculiarity != 'default' ? 'IDS_NOT_DEFAULT_SHIP_POINTS_EXPAND_HINT_' + toUpperCase(shipInfo.peculiarity) : shipInfo.group == 'premium' ? 'IDS_PREMIUM_SHIP_POINTS_EXPAND_HINT' : 'IDS_SHIP_PECULIARITIES_EXPAND_HINT'))}], _maxWidth: 250}"/>
							<block className="button_expand" type="native">
								<params>
									<param name="toggle" value="true"/>
									<param name="soundSet" value="dropmenu_button"/>
									<param name="focusable" value="false"/>
								</params>
								<bind name="selected" value="isInfoExpanded"/>
							</block>
							<block type="text">
								<style>
									<marginLeft value="-4px"/>
								</style>
								<styleClass value="$TextHeaderBigDefault"/>
								<bind name="class" value="'$FontColorGolden'"/>
								<bind name="text" value="shipInfo.peculiarity != 'default' 	? 'IDS_NOT_DEFAULT_SHIP_POINTS_' + toUpperCase(shipInfo.peculiarity)
																			: shipInfo.group == 'premium' ? 'IDS_PREMIUM_SHIP_POINTS' 
																			: 'IDS_SHIP_PECULIARITIES'"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="fade" value="isInfoExpanded; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
							<style>
								<marginTop value="3px"/>
								<marginLeft value="21px"/>
							</style>
							<bind name="repeat" value="isInfoExpanded 	? 	((shipInfo.peculiarity != 'default')						? 	[{_text: 'IDS_NOT_DEFAULT_SHIP_POINT_1'}, {_text: 'IDS_NOT_DEFAULT_SHIP_POINT_3_' + toUpperCase(shipInfo.peculiarity)}, {_text: 'IDS_NOT_DEFAULT_SHIP_POINT_4'}] :
															(shipInfo.group == 'upgradeableExclusive') 					? 	[{_text: 'IDS_EXCLUSIVE_SHIP_POINT_1'}, {_text: 'IDS_PREMIUM_SHIP_POINT_2'}, {_text: 'IDS_PREMIUM_SHIP_POINT_3'}, {_text: 'IDS_PREMIUM_SHIP_POINT_4'}, {_text: 'IDS_PREMIUM_SHIP_POINT_5'}] : 
															(shipInfo.group == 'premium' || shipInfo.group == 'special')?	[{_text: 'IDS_PREMIUM_SHIP_POINT_1'}, {_text: 'IDS_PREMIUM_SHIP_POINT_2'}, {_text: 'IDS_PREMIUM_SHIP_POINT_3'}, {_text: 'IDS_PREMIUM_SHIP_POINT_4'}, {_text: 'IDS_PREMIUM_SHIP_POINT_5'}] 
																														: 	[{_text: shipInfo.isGoalless ? 'IDS_SHIP_PECULIARITY_1' : ''}, {_text: shipInfo.isWithoutStats ? 'IDS_SHIP_PECULIARITY_2' : ''}, {_text: 'IDS_SHIP_PECULIARITY_3'}, {_text: 'IDS_SHIP_PECULIARITY_4'}, {_text: shipInfo.onlyPVPPVE ? 'IDS_SHIP_PECULIARITY_5' : ''}])
														: null ; 'PremiumShipPointsItem'"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<left value="90px"/>
						<top value="52px"/>
					</style>
					<bind name="repeat" value="prevShips; 'ShipTreeShortElement'; {_selectedShipId: shipId}"/>
				</block>
				<block>
					<style>
						<left value="36px"/>
						<top value="-63px"/>
						<position value="absolute"/>
					</style>
					<bind name="instance" value="'BackButton'; {_text: 'IDS_DOCK_BACK_TO_NATION', _action: 'changeInset', _actionParams: {inset: LobbyConstants.SHIP_RESEARCH_TREE}}"/>
				</block>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<top value="40px"/>
					<left value="6px"/>
				</style>
				<bind name="instance" value="'VideoIcon'; { 	_userTaskFlag: UserTasksFlags.VIDEO_SEEN_SHIP_DEVELOPMENT,
											_videoUrlId: 'guide_Modules_InGame',
											_headerText: 'IDS_TOOLTIP_SHIP_MODULES_HEADER',
											_descriptionText: 'IDS_TOOLTIP_SHIP_MODULES_DESC' }"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!shipInfo.isEventLike"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<hitTest value="false"/>
				<position value="absolute"/>
				<bottom value="220px"/>
			</style>
			<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="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
			<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
			<bind name="style" value="'bottom'; isSmallCarouselView	?	(carouselRows == 1) ? '283px' :
															(carouselRows == 2) ? '346px'
																				: '220px'
														: '220px'"/>
			<bind name="instance" value="'ShipStatusDockHeader'; (upgradableShipInfo == null || shipId &lt;= 0)					? { _texts: [ {_paragraphText: 'IDS_NO_SHIPS'}] } :
													!(upgradableShipInfo.isExplored)							? { _texts: [ {_paragraphText: 'IDS_NOT_RESEARCHED'}] } :
													!isOwned								? { _texts: [ {_paragraphText: 'IDS_NOT_PURCHASED'}] } :
													(playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell)	? { _texts: [ {_paragraphText: 'IDS_SHIP_NEEDS_SERVICE_MESSAGE'}] } :
													!(shipInfoSlim.isDownloaded) 									? { _texts: [ {_paragraphText: 'IDS_NOT_AVAILABLE_MESSAGE'}] }
																												: null "/>
		</block>
	</block>
	<block className="QuestionIcon">
		<bind name="tooltip" value="'ModuleTreeHelpTooltip'; {}; 0"/>
		<block className="icon_question_mark" type="native"/>
	</block>
	<block className="VideoIcon">
		<bind name="tooltip" value="'VideoTooltip'; { _headerText: _headerText, _descriptionText: _descriptionText, _isVideoSeen: (currentUserTaskFlag &amp; _userTaskFlag) != 0}; 0"/>
		<bind name="collectionDH" value="CC.userTask; 'userTaskCollection'"/>
		<bind name="entityDH" value="'userTaskEntity'; userTaskCollection[0].id"/>
		<bind name="watchDH" value="'currentUserTaskFlag'; ['userTaskEntity.userTask.evFlagChanged']; userTaskEntity.userTask.flag"/>
		<bind name="action" value="'click'; 'ServerUIDataUSS.setUserTaskExecuted'; { taskId: _userTaskFlag }"/>
		<bind name="request" value="'click'; 'webBrowser'; {url: _videoUrlId}"/>
		<block className="button_play_video" type="native">
			<bind name="selected" value="(currentUserTaskFlag &amp; _userTaskFlag) != 0"/>
		</block>
	</block>
	<block className="DefaultButton">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="style" value="'width'; _width ? _width : '100%'"/>
		<bind name="name" value="_containerName ? _containerName : null"/>
		<block className="button_default" type="native">
			<bind name="style" value="'width'; _width ? _width : '100%'"/>
			<bind name="label" value="_label"/>
			<bind name="focus" value="_focusIndex; _defaultFocused"/>
			<bind name="focusable" value="_focusIndex ? true : false"/>
			<bind name="enabled" value="_enabled &amp;&amp; (_isTransactionBtn ? !(operationsAccountLocked) : true)"/>
			<bind name="event" value="'buttonClick'; _method ? _method : null"/>
			<bind name="request" value="'buttonClick'; _request ? _request : null; _requestParams ? _requestParams : {}"/>
			<bind name="action" value="'buttonClick'; _action ? _action : null; _actionParams"/>
			<bind name="name" value="_name ? _name : null"/>
			<bind name="input"/>
			<block>
				<bind name="visible" value="_isExternal == true"/>
				<style>
					<position value="absolute"/>
					<top value="4px"/>
					<right value="4px"/>
					<hitTest value="false"/>
				</style>
				<block className="icon_out_grey" type="native"/>
			</block>
		</block>
	</block>
	<block className="DefaultButtonBig">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="style" value="'width'; _width ? _width : '100%'"/>
		<bind name="name" value="_containerName ? _containerName : null"/>
		<block className="button_default_big" type="native">
			<style>
				<width value="100%"/>
			</style>
			<bind name="name" value="_name ? _name : null"/>
			<bind name="input"/>
			<bind name="label" value="_label"/>
			<bind name="enabled" value="_enabled &amp;&amp; (_isTransactionBtn ? !(operationsAccountLocked) : true)"/>
			<bind name="event" value="'buttonClick'; _method ? _method : null"/>
			<bind name="request" value="'buttonClick'; _request ? _request : null; _requestParams ? _requestParams : {}"/>
			<bind name="action" value="'buttonClick'; _action ? _action : null; _actionParams ? _actionParams : {}"/>
		</block>
	</block>
	<block className="DefaultButtonCostMedium">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="tooltip" value="'DiscountTooltip'; priceInfo.basePrice &amp;&amp; (priceInfo.finalPrice != priceInfo.basePrice) ? { priceInfo: priceInfo, _isExternal: _isExternal } : null"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="style" value="'height'; _height ? _height : 'auto'"/>
		<bind name="name" value="_name ? _name : null"/>
		<block className="button_default_no_label" type="native">
			<style>
				<width value="100%"/>
			</style>
			<bind name="style" value="'height'; _height ? _height : 'auto'"/>
			<bind name="focus" value="_focusIndex; _defaultFocused"/>
			<bind name="enabled" value="_enabled &amp;&amp; (_isTransactionBtn ? !(operationsAccountLocked) : true)"/>
			<bind name="dispatch" value="'buttonClick'; _dispatchEvent ? _dispatchEvent : null"/>
			<bind name="event" value="'buttonClick'; _method ? _method : null"/>
			<bind name="request" value="'buttonClick'; _request ? _request : null; _requestParams ? _requestParams : {}"/>
			<bind name="action" value="'buttonClick'; _action ? _action : null; _actionParams ? _actionParams : {}"/>
			<bind name="selected" value="_selected"/>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="4px"/>
					<hitTest value="false"/>
				</style>
				<bind name="style" value="'alpha'; _enabled ? 1 : 0.55"/>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontColorDefaultButtonUp'"/>
					<bind name="class" value="_enabled ? '$None' : '$FontColorAlmostBlack'"/>
					<bind name="text" value="_label"/>
				</block>
				<block>
					<bind name="visible" value="priceInfo.finalPrice &gt; 0"/>
					<style>
						<marginLeft value="4px"/>
					</style>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'PriceTag'; priceInfo.finalPrice &gt; 0 ? {priceInfo: priceInfo, _showDiscountTag: _showDiscountTag } : null"/>
				</block>
				<block>
					<bind name="visible" value="_isExternal == true"/>
					<style>
						<marginTop value="2px"/>
						<marginLeft value="8px"/>
					</style>
					<block className="icon_out_grey" type="native"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="DefaultButtonCostSmall">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="tooltip" value="'DiscountTooltip'; priceInfo.basePrice &amp;&amp; (priceInfo.finalPrice != priceInfo.basePrice) ? { priceInfo: priceInfo } : null"/>
		<block className="button_default_no_label_small" type="native">
			<bind name="enabled" value="(_enabled &amp;&amp; !(operationsAccountLocked))"/>
			<bind name="event" value="'buttonClick'; _method ? _method : null"/>
			<bind name="request" value="'buttonClick'; _request ? _request : null; _requestParams ? _requestParams : {}"/>
			<bind name="action" value="'buttonClick'; _action ? _action : null; _actionParams ? _actionParams : {}"/>
			<block>
				<style>
					<marginBottom value="1px"/>
					<marginRight value="18px"/>
					<marginLeft value="18px"/>
					<hitTest value="false"/>
				</style>
				<bind name="style" value="'alpha'; _enabled ? 1 : 0.55"/>
				<block type="text">
					<styleClass value="$TextSecondaryBold"/>
					<bind name="class" value="'$FontColorDefaultButtonUp'"/>
					<bind name="class" value="_enabled ? '$None' : '$FontColorAlmostBlack'"/>
					<bind name="text" value="_label"/>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="2px"/>
					</style>
					<bind name="instance" value="'PriceTag'; priceInfo.finalPrice &gt; 0 ? {priceInfo: priceInfo, _small: true, _showDiscountTag: _showDiscountTag} : null"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ButtonSpecial">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="name" value="_name"/>
		<block className="button_special_no_label" type="native">
			<bind name="soundSet" value="'hard_button'"/>
			<bind name="enabled" value="_enabled"/>
			<bind name="action" value="'buttonClick'; _action; _actionParams ? _actionParams : {}"/>
			<block type="text">
				<style>
					<marginRight value="18px"/>
					<marginLeft value="18px"/>
					<marginTop value="3px"/>
					<marginBottom value="4px"/>
					<hitTest value="false"/>
				</style>
				<bind name="class" value="_enabled 	? rollOver &amp;&amp; !(mouseDown) ? '$FontColorDefault' : '$FontColorSpecialButton'
									: '$FontColorAlmostBlack'"/>
				<bind name="class" value="_enabled ? '$FontDropShadowFilter1' : '$FontDropShadowWhite'"/>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="_label"/>
			</block>
		</block>
	</block>
	<block className="DockButton">
		<style>
			<width value="100%"/>
		</style>
		<block className="button_dock" type="native">
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<bind name="enabled" value="_enabled"/>
			<bind name="dispatch" value="'buttonClick'; _dispatchEvent; {}"/>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="3px"/>
					<mouseEnabled value="false"/>
					<mouseChildren value="false"/>
				</style>
				<bind name="style" value="'alpha'; _enabled ? 1 : 0.55"/>
				<bind name="text" value="_label"/>
			</block>
		</block>
	</block>
	<block className="DockButtonCostMedium">
		<bind name="style" value="'alpha'; _enabled ? 1 : 0.4"/>
		<styleClass value="$MiddleVAligned"/>
		<styleClass value="$MiddleAligned"/>
		<block>
			<style>
				<marginTop value="4px"/>
			</style>
			<block className="button_dock" type="native">
				<style>
					<marginBottom value="-8px"/>
					<marginLeft value="-24px"/>
					<marginRight value="-24px"/>
					<marginTop value="-8px"/>
				</style>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="enabled" value="_enabled"/>
				<bind name="event" value="'buttonClick'; _method ? _method : null"/>
				<bind name="request" value="'buttonClick'; _request ? _request : null; _request ? _requestParams : null"/>
				<bind name="action" value="'buttonClick'; _action ? _action : null; _actionParams"/>
			</block>
			<block>
				<style>
					<hitTest value="false"/>
				</style>
				<block type="text">
					<style>
						<alpha value="0.9"/>
					</style>
					<styleClass value="$TextDefaultBoldNM"/>
					<bind name="text" value="_label"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="3px"/>
					</style>
					<bind name="instance" value="'PriceTag'; {priceInfo: priceInfo, _showDiscountTag: true}"/>
				</block>
			</block>
		</block>
	</block>
	<css name="$FontCostNormal">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$FontCostBlack">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$FontDeficit">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="CostEliteXPNano">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block type="text">
			<styleClass value="$TextDefaultExpSmall"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="text" value="format(_costEliteXP, -1)"/>
		</block>
		<block className="icon_elite_exp_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CostXPNano">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block type="text">
			<styleClass value="$TextDefaultExpSmall"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="text" value="format(_costXP, -1)"/>
		</block>
		<block className="icon_exp_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CostFreeXPNano">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="_class"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="text" value="format(_costFreeXP, -1)"/>
		</block>
		<block className="icon_exp_free_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CostCRNano">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<bind name="text" value="format(_costCR, -1)"/>
		</block>
		<block className="icon_credit_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CostGoldNano">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<bind name="text" value="format(_costGold, -1)"/>
		</block>
		<block className="icon_gold_small" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="1px"/>
				<width value="11px"/>
				<height value="11px"/>
			</style>
		</block>
	</block>
	<block className="XPDeficitNano">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<flow value="horizontal"/>
			<marginBottom value="5px"/>
		</style>
		<params>
			<param name="name" value="upgrade_tree_XP_deficit"/>
		</params>
		<block className="icon_warning_red" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="1px"/>
				<marginBottom value="-1px"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<styleClass value="$MiddleVAligned"/>
			<text value="IDS_NOT_ENOUGH"/>
		</block>
		<block type="text">
			<styleClass value="$TextSecondary"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<bind name="text" value="format(_expDeficit, -1)"/>
		</block>
		<block className="icon_exp_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CRDeficitNano">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<flow value="horizontal"/>
			<marginBottom value="5px"/>
		</style>
		<block className="icon_warning_red" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="2px"/>
				<marginBottom value="-1px"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultSmall"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$TextSmallCompareNegative'"/>
			<text value="IDS_NOT_ENOUGH"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultSmall"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="'$TextSmallCompareNegative'"/>
			<bind name="text" value="format(_creditsDeficit, -1)"/>
		</block>
		<block className="icon_credit_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="GoldDeficitNano">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<flow value="horizontal"/>
			<marginBottom value="5px"/>
		</style>
		<block className="icon_warning_red" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="2px"/>
				<marginBottom value="-1px"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$TextSmallCompareNegative'"/>
			<text value="IDS_NOT_ENOUGH"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="'$TextSmallCompareNegative'"/>
			<bind name="text" value="format(_goldDeficit, -1)"/>
		</block>
		<block className="icon_gold_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CrAndGoldDeficit">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<flow value="horizontal"/>
			<marginBottom value="5px"/>
		</style>
		<params>
			<param name="name" value="upgrade_tree_Credit_deficit"/>
		</params>
		<block className="icon_warning_red" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="2px"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextDefault"/>
			<bind name="class" value="	_large ? '$FontSizeHeader6':
						_medium ? '$FontSizeLarge' :
						_small ? '$FontSizeSmall' : '$None'"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<text value="IDS_NOT_ENOUGH"/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="3px"/>
			</style>
			<bind name="visible" value="_creditsDeficit &gt; 0"/>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="	_large ? '$FontSizeHeader6':
							_medium ? '$FontSizeLarge' :
							_small ? '$FontSizeSmall' : '$None'"/>
				<bind name="class" value="_bold ? '$FontFamilyDefaultBold' : '$None'"/>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<bind name="text" value="format(_creditsDeficit, -1)"/>
			</block>
			<block className="icon_credit_small" type="native">
				<styleClass value="$MiddleVAligned"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<bind name="visible" value="_creditsDeficit &gt; 0 &amp;&amp; _goldDeficit &gt; 0"/>
			<styleClass value="$TextDefault"/>
			<bind name="class" value="	_large ? '$FontSizeHeader6':
						_medium ? '$FontSizeLarge' :
						_small ? '$FontSizeSmall' : '$None'"/>
			<bind name="class" value="_bold ? '$FontFamilyDefaultBold' : '$None'"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<styleClass value="$MiddleVAligned"/>
			<text value="IDS_AND"/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<bind name="visible" value="_goldDeficit &gt; 0"/>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="	_large ? '$FontSizeHeader6':
							_medium ? '$FontSizeLarge' :
							_small ? '$FontSizeSmall' : '$None'"/>
				<bind name="class" value="_bold ? '$FontFamilyDefaultBold' : '$None'"/>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<bind name="text" value="format(_goldDeficit, -1)"/>
			</block>
			<block className="icon_gold_small" type="native">
				<styleClass value="$MiddleVAligned"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<css name="$TableCell">
		<width value="100%"/>
		<height value="23px"/>
	</css>
	<css name="$TableHeaderCell">
		<width value="100%"/>
		<marginBottom value="12px"/>
		<height value="23px"/>
	</css>
	<css name="$TableCellTextValue">
		<position value="absolute"/>
		<right value="0px"/>
	</css>
	<block className="Profile">
		<styleClass value="$Fullsize"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="feature" value="3;	''"/>
		<bind name="feature" value="16;	''"/>
		<bind name="feature" value="19;	''"/>
		<bind name="feature" value="24;	''"/>
		<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="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'inset'; ['dockEntity.insetComponent.evUpdate']; dockEntity.insetComponent.inset"/>
		<bind name="primaryEntityDH" value="'pageEntity'; CC.insetPage; LobbyConstants.PLAYER_PROFILE"/>
		<bind name="watchDH" value="'page'; ['pageEntity.insetPage.evUpdate']; pageEntity.insetPage.page"/>
		<bind name="collectionDH" value="CC.collectionAlbum; 'albumCollection'; 'sortedAlbums'"/>
		<bind name="entityDH" value="'collectionEntity'; albumCollection[0].id"/>
		<bind name="watchDH" value="'ownCards';	['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.ownCards"/>
		<bind name="catch" value="'selectedAlbumChanged'"/>
		<bind name="watch" value="'profilePage';	(page == null)
								|| ((page == LobbyConstants.PLAYER_PROFILE_RANKS) &amp;&amp; (feature_16 == 'locked'))
								|| ((page == LobbyConstants.PLAYER_PROFILE_CLUB) &amp;&amp; (feature_19 == 'locked')) 
								|| ((page == LobbyConstants.PLAYER_PROFILE_COLLECTIONS) &amp;&amp; (ownCards.length == 0)) ? 0 : page"/>
		<bind name="watch" value="'_curItemIndex'; 	(userPrefs.summaryInset == null)
								|| ((feature_3  == 'locked') &amp;&amp;  (userPrefs.summaryInset == 1))
								|| ((feature_16 == 'locked') &amp;&amp;  (userPrefs.summaryInset == 2))
								|| ((feature_19 == 'locked') &amp;&amp;  (userPrefs.summaryInset == 3)) ? 0 : userPrefs.summaryInset"/>
		<bind name="changeDispatch" value="_curItemIndex; 'changeInsetInPrefs'"/>
		<bind name="action" value="'changeInsetInPrefs'; 'setUserPref' ; {value: _curItemIndex, name: 'summaryInset'}"/>
		<bind name="catch" value="'ItemChooserInnerEvent.battleTypeChanged'"/>
		<bind name="catch" value="'setBattleType'"/>
		<bind name="watch" value="'newBgSymbol';	(profilePage==LobbyConstants.PLAYER_PROFILE_SUMMARY &amp;&amp; _curItemIndex == 0)	? 'url:../bg/balancer/balancer_coop.jpg'		:
								(profilePage==LobbyConstants.PLAYER_PROFILE_SUMMARY &amp;&amp; _curItemIndex == 1)	? 'url:../bg/balancer/balancer_random.jpg'		:
								(profilePage==LobbyConstants.PLAYER_PROFILE_SUMMARY &amp;&amp; _curItemIndex == 2)	? 'url:../bg/balancer/balancer_ranked.jpg'		:
								(profilePage==LobbyConstants.PLAYER_PROFILE_SUMMARY &amp;&amp; _curItemIndex == 3)	? 'url:../bg/balancer/balancer_club.jpg'		:
								(profilePage==LobbyConstants.PLAYER_PROFILE_ACHIEVEMENTS)					? 'url:../bg/profile/profile_achievements.jpg' 	:
								(profilePage==LobbyConstants.PLAYER_PROFILE_RANKS)							? 'url:../bg/balancer/balancer_ranked.jpg' 		:
								(profilePage==LobbyConstants.PLAYER_PROFILE_COLLECTIONS)					? 'url:../bg/profile/profile_collections.jpg'	:
								(profilePage==LobbyConstants.PLAYER_PROFILE_CLUB)							? 'url:../bg/profile/profile_clubs.jpg'
																											: 'url:../bg/profile/profile_account.jpg'"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-60px"/>
			</style>
			<bind name="instance" value="'BackgroundAnimatedSwitcher'; {_bgSymbol: newBgSymbol}"/>
		</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>
		<bind name="firstEntityDH" value="'clubsCommonEntity'; CC.clubsCommon"/>
		<bind name="watchDH" value="'maxOfflineTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.maxOfflineTime"/>
		<bind name="watchDH" value="'seasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
		<bind name="watchDH" value="'stage'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.stage"/>
		<bind name="timeFormat" value="maxOfflineTime; 'HIGHEST'; 'maxOfflineTimeFormatted'; true"/>
		<block className="icon_question_mark" type="native">
			<style>
				<position value="absolute"/>
				<top value="8px"/>
				<left value="6px"/>
			</style>
			<bind name="tooltip" value="'MultiParagraphHelpTooltip'; profilePage == LobbyConstants.PLAYER_PROFILE_ACCOUNT 		? {_tooltipHeader: 'IDS_PROFILE_ACCOUNT', _width: 350, _multiParagraphArray: [ {_paragraphText: 'IDS_PROFILE_ACCOUNT_INSTRUCTION_0'}, {_paragraphText: 'IDS_PROFILE_ACCOUNT_INSTRUCTION_1'}, {_paragraphText: 'IDS_PROFILE_ACCOUNT_INSTRUCTION_2'}]} :
													profilePage == LobbyConstants.PLAYER_PROFILE_SUMMARY 		? {_tooltipHeader: 'IDS_PROFILE_SUMMARY', _width: 350, _multiParagraphArray: [ {_paragraphText: 'IDS_PROFILE_SUMMARY_INSTRUCTION_0'}, {_paragraphText: 'IDS_PROFILE_SUMMARY_INSTRUCTION_1'}]} :
													profilePage == LobbyConstants.PLAYER_PROFILE_ACHIEVEMENTS	? {_tooltipHeader: 'IDS_PROFILE_ACHIEVEMENTS', _width: 350, _multiParagraphArray: [ {_paragraphText: 'IDS_PROFILE_ACHIEVEMENTS_INSTRUCTION_0'}, {_paragraphText: 'IDS_PROFILE_ACHIEVEMENTS_INSTRUCTION_1'}]} :
													profilePage == LobbyConstants.PLAYER_PROFILE_RANKS 			? {_tooltipHeader: 'IDS_PROFILE_RANKS', _width: 450, _multiParagraphArray: [ {_paragraphText: 'IDS_PROFILE_RANK_INSTRUCTION_0'}, {_paragraphText: 'IDS_PROFILE_RANK_INSTRUCTION_1'}, {_paragraphText: 'IDS_PROFILE_RANK_INSTRUCTION_2'}, {_paragraphText: 'IDS_PROFILE_RANK_INSTRUCTION_3'}, {_paragraphText: 'IDS_PROFILE_RANK_INSTRUCTION_4'}]} :
													(profilePage==LobbyConstants.PLAYER_PROFILE_COLLECTIONS)	? {_tooltipHeader: 'IDS_PROFILE_COLLECTIONS', _width: 350, _multiParagraphArray: [ {_paragraphText: 'IDS_PROFILE_COLLECTION_INSTRUCTION_0'}, {_paragraphText: 'IDS_PROFILE_COLLECTION_INSTRUCTION_1'}, {_paragraphText: 'IDS_PROFILE_COLLECTION_INSTRUCTION_2'}]} :
													profilePage == LobbyConstants.PLAYER_PROFILE_CLUB			? {_tooltipHeader: 'IDS_CLUBS', _width: 450, _multiParagraphArray: [ {_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_0'}, {_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_1'}, {_paragraphText: subst('IDS_PROFILE_CLUBS_INSTRUCTION_2', [], {maxOfflineTime: maxOfflineTimeFormatted})} ]}
																			 									: null"/>
		</block>
		<bind name="firstEntityDH" value="'statDataEntity'; CC.rankedSeasonHistory"/>
		<bind name="watchDH" value="'statData'; ['statDataEntity.dataComponent.evDataChanged']; statDataEntity.dataComponent.data"/>
		<block>
			<style>
				<position value="absolute"/>
				<marginTop value="34px"/>
				<left value="6px"/>
			</style>
			<block type="text">
				<style>
					<marginLeft value="0px"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="text" value="statData.basicStats.registrationDate"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-6px"/>
					<marginLeft value="0px"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorGrey'"/>
				<text value="IDS_REGISTRATION_DATE"/>
			</block>
			<block type="text">
				<bind name="timeFormat" value="statData.basicStats.timeLastBattle; 'hh:mm  dd.MM.yyyy'; 'timeLastBattleFormatted'; true"/>
				<style>
					<marginLeft value="0px"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="text" value="timeLastBattleFormatted"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-6px"/>
					<marginLeft value="0px"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorGrey'"/>
				<bind name="text" value="toLowerCase(tr('IDS_LAST_BATTLE'))"/>
			</block>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="child" value="profilePage; {_curItemIndex: _curItemIndex}; 'PlayerAccount'; 'PlayerAchievements'; 'PlayerRanks'; 'PlayerClubs'; 'PlayerSummary'; 'PlayerCollection'"/>
		</block>
		<block>
			<style>
				<top value="21sh"/>
				<position value="absolute"/>
			</style>
			<block className="NavigationProfile">
				<block className="button_navigation_small" type="native">
					<params>
						<param name="toggle" value="false"/>
					</params>
					<style>
						<marginBottom value="1px"/>
					</style>
					<bind name="label" value="toUpperCase(tr('IDS_PROFILE_ACCOUNT'))"/>
					<bind name="selected" value="profilePage == LobbyConstants.PLAYER_PROFILE_ACCOUNT"/>
					<bind name="name" value="'profile_account'"/>
					<bind name="action" value="'buttonClick'; 'changeInset' ; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_ACCOUNT }"/>
				</block>
			</block>
			<block className="NavigationProfile">
				<block className="button_navigation_small" type="native">
					<params>
						<param name="toggle" value="false"/>
					</params>
					<style>
						<marginBottom value="1px"/>
					</style>
					<bind name="label" value="toUpperCase(tr('IDS_PROFILE_ACHIEVEMENTS'))"/>
					<bind name="selected" value="profilePage == LobbyConstants.PLAYER_PROFILE_ACHIEVEMENTS"/>
					<bind name="name" value="'profile_achievements'"/>
					<bind name="action" value="'buttonClick'; 'changeInset' ; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_ACHIEVEMENTS }"/>
				</block>
			</block>
			<block>
				<bind name="feature" value="16;'rollOver'"/>
				<bind name="visible" value="feature_16 != 'locked'"/>
				<block className="NavigationProfile">
					<block className="button_navigation_small" type="native">
						<params>
							<param name="toggle" value="false"/>
						</params>
						<style>
							<marginBottom value="1px"/>
						</style>
						<bind name="label" value="toUpperCase(tr('IDS_PROFILE_RANKS'))"/>
						<bind name="selected" value="profilePage == LobbyConstants.PLAYER_PROFILE_RANKS"/>
						<bind name="name" value="'profile_ranks'"/>
						<bind name="action" value="'buttonClick'; 'changeInset' ; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_RANKS }"/>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="-3px"/>
					</style>
					<bind name="fade" value="feature_16 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<block className="icon_sticker_new" type="native">
						<style>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="ownCards.length &gt; 0"/>
				<bind name="collectionDH" value="CC.collectionCard; 'haveNewCard'; 'newCards'"/>
				<block className="NavigationProfile">
					<block className="button_navigation_small" type="native">
						<params>
							<param name="toggle" value="false"/>
						</params>
						<style>
							<marginBottom value="1px"/>
						</style>
						<bind name="label" value="toUpperCase(tr('IDS_PROFILE_COLLECTIONS'))"/>
						<bind name="selected" value="profilePage == LobbyConstants.PLAYER_PROFILE_COLLECTIONS"/>
						<bind name="name" value="'profile_collections'"/>
						<bind name="action" value="'buttonClick'; 'changeInset' ; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_COLLECTIONS }"/>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="-3px"/>
					</style>
					<bind name="fade" value="(haveNewCard.length &gt; 0); 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<block className="icon_sticker_new" type="native">
						<style>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<bind name="feature" value="19; 'rollOver'"/>
				<bind name="visible" value="feature_19 != 'locked'"/>
				<block className="NavigationProfile">
					<block className="button_navigation_small" type="native">
						<params>
							<param name="toggle" value="false"/>
						</params>
						<style>
							<marginBottom value="1px"/>
						</style>
						<bind name="label" value="toUpperCase(tr('IDS_MY_CLUBS'))"/>
						<bind name="selected" value="profilePage == LobbyConstants.PLAYER_PROFILE_CLUB"/>
						<bind name="name" value="'profile_clubs'"/>
						<bind name="action" value="'buttonClick'; 'changeInset' ; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_CLUB }"/>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="-3px"/>
					</style>
					<bind name="fade" value="feature_19 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<block className="icon_sticker_new" type="native">
						<style>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
			</block>
			<block className="NavigationProfile">
				<block className="button_navigation_small" type="native">
					<params>
						<param name="toggle" value="false"/>
					</params>
					<style>
						<marginBottom value="1px"/>
					</style>
					<bind name="label" value="toUpperCase(tr('IDS_PROFILE_SUMMARY'))"/>
					<bind name="selected" value="profilePage == LobbyConstants.PLAYER_PROFILE_SUMMARY"/>
					<bind name="name" value="'profile_summary'"/>
					<bind name="action" value="'buttonClick'; 'changeInset' ; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_SUMMARY }"/>
				</block>
			</block>
			<block>
				<bind name="fade" value="profilePage==LobbyConstants.PLAYER_PROFILE_CLUB &amp;&amp; ((seasonId &gt; 0 &amp;&amp; stage == 2) || seasonId &lt;= 0); 0.13; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 1; (profilePage==LobbyConstants.PLAYER_PROFILE_CLUB) ? 0.18 : 0"/>
				<bind name="tooltip" value="'ClubRulesInfoTooltip'; seasonId &gt; 0 &amp;&amp; stage == 2 ? {} : null"/>
				<style>
					<marginTop value="1sh"/>
					<marginLeft value="5px"/>
					<width value="170px"/>
					<height value="124px"/>
				</style>
				<block className="mc_issued_frame" type="native">
					<style>
						<alpha value="0.5"/>
					</style>
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="instance" value="'ClubRulesInfo'; {}"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ProfileCarousel">
		<params>
			<param name="name" value="ProfileCarousel"/>
		</params>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<bottom value="-1px"/>
				</style>
				<block className="scroll_line" type="native">
					<style>
						<width value="100%"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="20px"/>
					<height value="100%f"/>
					<marginRight value="12px"/>
				</style>
				<block className="button_slide_left" type="native">
					<styleClass value="$MiddleAligned"/>
					<params>
						<param name="focusable" value="false"/>
					</params>
					<style>
						<marginTop value="40px"/>
					</style>
					<bind name="name" value="'buttonCarouselLeft'"/>
					<bind name="dispatch" value="'buttonClick'; 'profileCarousel.scrollOneUnitLeft'; null; true"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="catch" value="'mainCarouselElement.selectedIndexChanged'"/>
				<bind name="instance" value="_mainCarouselElementName; {}"/>
			</block>
			<block>
				<style>
					<width value="20px"/>
					<height value="100%"/>
					<marginLeft value="12px"/>
				</style>
				<block className="button_slide_right" type="native">
					<styleClass value="$MiddleAligned"/>
					<params>
						<param name="focusable" value="false"/>
					</params>
					<style>
						<marginTop value="40px"/>
					</style>
					<bind name="name" value="'buttonCarouselRight'"/>
					<bind name="dispatch" value="'buttonClick'; 'profileCarousel.scrollOneUnitRight'; null; true"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginLeft value="-8px"/>
				<marginRight value="-8px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<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_blurmap_half_sphere" 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 className="gradient_half_sphere" type="native">
					<style>
						<width value="100%"/>
						<height value="110%"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="_rewardsCarouselElementName; {_carouselData: _carouselData, _selectedIndex: selectedIndex}"/>
			</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="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>
	<css name="$ShipTreeTooltipBehaviour">
		<userData value="{
		appearDelay: 0.3,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.2,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 0,
		rightOffset: 0,
		bottomOffset: 0
	}"/>
	</css>
	<css name="$ModuleTreeInfotipBehaviour">
		<userData value="{
		appearDelay: 0.1,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 0,
		rightOffset: -10,
		bottomOffset: 0
	}"/>
	</css>
	<block className="PurchaseSlotTooltip">
		<bind name="style" value="'userData'; { rightOffset: _hOffset }"/>
		<styleClass value="$ShipTreeTooltipBehaviour"/>
		<style>
			<width value="330px"/>
		</style>
		<styleClass value="$MouseDisable"/>
		<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>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'InstructionParagraph'; { _text: 'IDS_INSTRUCTION_SLOT_PURCHASE', _maxWidth: '300' }"/>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction';  { _type: 'left', _instructionText: 'IDS_MOUSE_INSTRUCTION_SLOT_PURCHASE', _maxWidth: '300'}"/>
		</block>
	</block>
	<block className="PurchaseShipTooltip">
		<bind name="style" value="'userData'; { rightOffset: _hOffset }"/>
		<styleClass value="$ShipTreeTooltipBehaviour"/>
		<style>
			<width value="300px"/>
			<height value="80px"/>
		</style>
		<styleClass value="$MouseDisable"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<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>
			<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>
			<style>
				<width value="100%"/>
				<bottom value="0px"/>
			</style>
			<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>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'MouseInstruction'; { _instructionText: 'IDS_INSTRUCTION_SHIP_PURCHASE', _type: 'left', _maxWidth: '250' }"/>
			</block>
		</block>
	</block>
	<block className="ModuleTooltipHeader">
		<style>
			<marginTop value="-6px"/>
			<marginBottom value="3px"/>
			<flow value="horizontal"/>
		</style>
		<block className="icon_tree_module_states" type="native">
			<style>
				<marginTop value="3px"/>
			</style>
			<styleClass value="$MouseDisable"/>
			<bind name="gotoAndStop!" value="moduleInfo.type + (((moduleInfo.toPurchase &amp;&amp; moduleInfo.creditsDeficit &lt;= 0) || (moduleInfo.toExplore &amp;&amp; moduleInfo.expDeficit &lt;= 0)) ? '_A' : '_P') "/>
		</block>
		<block className="icon_discount" type="native">
			<bind name="tooltip" value="'DiscountTooltip'; { priceInfo: (_explorePrice &amp;&amp; !(moduleInfo.isExplored) ? _explorePrice : _buyPrice)}"/>
			<bind name="visible" value="((_explorePrice.finalPrice != _explorePrice.basePrice &amp;&amp; !(moduleInfo.isExplored)) || (_buyPrice.finalPrice != _buyPrice.basePrice &amp;&amp; moduleInfo.isExplored))"/>
			<style>
				<position value="absolute"/>
				<left value="45px"/>
				<marginTop value="4px"/>
			</style>
			<bind name="gotoAndStop!" value="'normal'"/>
		</block>
		<block>
			<style>
				<marginTop value="3px"/>
				<marginLeft value="3px"/>
			</style>
			<block type="text">
				<style>
					<marginBottom value="5px"/>
					<maxWidth value="200"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="	moduleInfo.count.Installed &gt; 0 	? '$FontColorGolden'	:
							moduleInfo.toPurchase			? '$FontColorDefault'	:
							moduleInfo.isExplored			? '$FontColorWhite' 
															: '$FontColorExp'"/>
				<bind name="text" value="moduleInfo.nameIDS"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-9px"/>
					<maxWidth value="200"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="moduleInfo.typeIDS"/>
			</block>
		</block>
	</block>
	<block className="ModuleTreeInfotip">
		<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="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + moduleInfo.id; 'moduleBuyPrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + moduleInfo.id; 'moduleExplorePrice'"/>
		<styleClass value="$ModuleTreeInfotipBehaviour"/>
		<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="dock_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-10px"/>
				<marginRight value="-14px"/>
				<marginBottom value="-16px"/>
				<marginLeft value="-14px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="300px"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<marginBottom value="0px"/>
				</style>
				<bind name="instance" value="'ModuleTooltipHeader'; {_explorePrice: moduleExplorePrice.prices[0], _buyPrice: moduleBuyPrice.prices[0], moduleInfo: moduleInfo}"/>
			</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>
			<bind name="watch" value="'showStats'; !(_isEventLike) || _shipIsOwned)"/>
			<block>
				<bind name="visible" value="showStats"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'ModuleStatus'; {	_isStock: moduleInfo.isStock, _isExplored: moduleInfo.isExplored, _count: moduleInfo.count,
												_unableToInstallIncompatibles: moduleInfo.unableToInstallIncompatibles }"/>
			</block>
			<block>
				<bind name="visible" value="showStats"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<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 className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
							<marginBottom value="1px"/>
							<marginTop value="1px"/>
						</style>
					</block>
					<bind name="instance" value="'ShipParamsTooltipList'; { typeList: 'tooltipModuleParams' + moduleInfo.type, params: moduleInfo.params, testParams: _testModuleParams, testObjectIsBaseForView: 0, testObjectIsBaseForCompare: 0, showCompareWithZero: 1}"/>
				</block>
				<block>
					<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; null; 'tooltipModuleParams'; _shipParams; moduleInfo.shipParamsWithThisModule; 1; 0; null; 1; 1; 0"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ParamsAfterMount'; !(moduleInfo.count.Installed) &amp;&amp; viewParams.hasDiff ? { 	_viewParams: viewParams,
																									_title: 'IDS_AFTER_MOUNT'}
																								: null"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="style" value="'marginTop'; moduleInfo.unableToInstallIncompatibles.length &gt; 0 moduleInfo.dependentModules.length &gt; 0 ? '8px' : '0px'"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'IncompatiblesBlock'; moduleInfo.unableToInstallIncompatibles.length &gt; 0 ? { _type: [2,'mount'], _incompatibleModules: moduleInfo.unableToInstallIncompatibles } : null"/>
					</block>
					<bind name="instance" value="'ModuleDependenciesBlock'; moduleInfo.dependentModules.length &gt; 0 ? {  _type: [0,'research'], _dependentModules: moduleInfo.dependentModules, _priceInfo: moduleExplorePrice.prices[0]} : null"/>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="style" value="'marginBottom'; moduleInfo.count.Installed ? '0px' : '9px'"/>
					<block>
						<bind name="instance" value="'PriceTagWithLabel'; ( moduleInfo.toExplore) &amp;&amp; ( moduleInfo.expDeficit &gt;  0) 	? { priceInfo: {finalPrice:moduleInfo.totalCostXP, currency: 'exp'}, _label: 'IDS_RESEARCH_COST', _medium : true}
																								: !(moduleInfo.toExplore) &amp;&amp; ( moduleInfo.toPurchase ) &amp;&amp; (moduleInfo.creditsDeficit &gt; 0) ? { priceInfo: {finalPrice:moduleInfo.totalCostCR, currency: 'credits'}, _label: 'IDS_PURCHASE_COST', _medium : true}
																								: null"/>
					</block>
					<block>
						<bind name="instance" value="'PriceDeficit'; moduleInfo.toExplore &amp;&amp; (moduleInfo.expDeficit &gt; 0) ? { _deficit: moduleInfo.expDeficit, priceInfo: {finalPrice:moduleInfo.totalCostXP, currency: 'exp'}, _tooltipText: 'IDS_TOOLTIP_NO_XP' }
													: moduleInfo.toPurchase &amp;&amp; (moduleInfo.creditsDeficit &gt; 0) ? { _deficit: moduleInfo.creditsDeficit, priceInfo: {finalPrice:moduleInfo.totalCostCR, currency: 'credits'}, _tooltipText: 'IDS_TOOLTIP_NO_CREDITS' }
													: null"/>
					</block>
					<block>
						<bind name="name" value="'ButtonModuleResearchOrPurchase'"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'DefaultButtonCostMedium'; moduleInfo.expDeficit &lt;= 0 &amp;&amp; moduleInfo.toExplore	? { _label: toUpperCase(tr('IDS_DO_RESEARCH')), priceInfo: {finalPrice:moduleInfo.totalCostXP, currency: 'exp'}, _action: 'researchModule', _actionParams: { shipId: moduleInfo.shipId,  moduleId: moduleInfo.id }, _enabled: (moduleInfo.expDeficit &lt;= 0)}
																								: !(_isNeedRepair || _isNeedShell || _isLocked) &amp;&amp; moduleInfo.creditsDeficit &lt;= 0 &amp;&amp; moduleInfo.toPurchase	? { _label: (moduleInfo.toInstall	? toUpperCase(tr('IDS_DO_PURCHASE_AND_INSTALL')) : toUpperCase(tr('IDS_DO_PURCHASE'))),
																																															priceInfo: {finalPrice:moduleInfo.totalCostCR, currency: 'credits'},
																																															_action: moduleInfo.toInstall ? 'purchaseAndInstallModule' : 'purchaseModule',
																																															_actionParams: { shipId: moduleInfo.shipId, moduleId: moduleInfo.id },
																																															_enabled: (moduleInfo.creditsDeficit &lt;= 0)}
																																														: null "/>
					</block>
					<block>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'StatusLineWithIcon'; (_isNeedRepair || _isNeedShell || _isLocked) &amp;&amp; (moduleInfo.isExplored || moduleInfo.isStock) &amp;&amp; (moduleInfo.count.Installed == 0) ?
						(_isNeedRepair || _isNeedShell)			? {_text: 'IDS_COMPLETE_SERVICE_FIRST', _maxWidth: 270}
						: _isInFormation 						? {_text: moduleInfo.toInstall &amp;&amp; !(moduleInfo.toPurchase) 	? tr(toUpperCase('IDS_UNREADY_TO_INSTALL_MODULE_' + divisionEntranceData.divisionType))
																															: tr(toUpperCase('IDS_UNREADY_TO_PURCHASE_AND_INSTALL_MODULE_' + divisionEntranceData.divisionType)),
																	_maxWidth: 270}
						: _isLocked	&amp;&amp; moduleInfo.count.Installed == 0	? {_text: 'IDS_SHIP_IN_BATTLE', _maxWidth: 270}
						: !(_shipIsResearched) 					? (moduleInfo.isExplored	? { _text: 'IDS_TO_INSTALL_PURCHASE_SHIP_FIRST', _maxWidth: 270 } 
																				: { _text: 'IDS_TO_RESEARCH_MODULE_RESEARCH_SHIP_FIRST', _maxWidth: 270 })
						: !(_shipIsOwned) 						?	{ _text: 'IDS_TO_INSTALL_PURCHASE_SHIP_FIRST', _maxWidth: 270 }
																: null
					: null"/>
					</block>
					<block>
						<bind name="visible" value="!(_isNeedRepair || _isNeedShell || _isLocked)"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'DefaultButton'; moduleInfo.toInstall &amp;&amp; !(moduleInfo.toPurchase)	? { _label: toUpperCase(tr('IDS_INSTALL')), _action: 'installModule', _actionParams: { shipId: moduleInfo.shipId, moduleId: moduleInfo.id },
																								_enabled: !(moduleInfo.unableToInstall), _containerName: 'upgrade_tree_Install_module_button'}
																							: null"/>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="!showStats"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'LabelComingSoon'; { _showTestSampleLabel: showStats }"/>
			</block>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<width value="9px"/>
				<height value="16px"/>
			</style>
			<bind name="gotoAndStop!" value="'left'"/>
			<params>
				<param name="name" value="pinLeft"/>
			</params>
		</block>
	</block>
	<block className="ModuleTreeTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + moduleInfo.id; 'moduleBuyPrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + moduleInfo.id; 'moduleExplorePrice'"/>
		<styleClass value="$ModuleTreeTooltipBehaviour"/>
		<styleClass value="$MouseDisable"/>
		<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>
				<width value="300px"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'ModuleTooltipHeader'; {_explorePrice: moduleExplorePrice.prices[0], _buyPrice: moduleBuyPrice.prices[0], moduleInfo: moduleInfo}"/>
			</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>
			<bind name="watch" value="'showStats'; !(_isEventLike) || _shipIsOwned)"/>
			<block>
				<bind name="visible" value="showStats"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="instance" value="'ModuleStatus'; { _isStock: moduleInfo.isStock, _isExplored: moduleInfo.isExplored, _count: moduleInfo.count, _unableToInstallIncompatibles: moduleInfo.unableToInstallIncompatibles }"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="visible" value="!(moduleInfo.isStock) &amp;&amp; (moduleInfo.toPurchase || moduleInfo.toExplore || !(_shipIsResearched) || moduleInfo.unableToInstallIncompatibles.length &gt; 0)"/>
					<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>
							<marginTop value="9px"/>
							<marginBottom value="9px"/>
							<width value="100%"/>
						</style>
						<block>
							<bind name="visible" value="!(moduleInfo.isExplored) &amp;&amp; !(moduleInfo.isStock)"/>
							<styleClass value="$InfoBlockHorizontalIndent"/>
							<style>
								<width value="100%"/>
								<marginBottom value="9px"/>
							</style>
							<bind name="instance" value="'PriceInLine'; moduleInfo.totalCostXP &gt; 0 &amp;&amp; !(moduleInfo.isStock) &amp;&amp; !(moduleInfo.isExplored) 	? { priceInfo: moduleExplorePrice.prices[0], _showDiscountTag:true}
																																		: null"/>
						</block>
						<block>
							<styleClass value="$InfoBlockHorizontalIndent"/>
							<style>
								<width value="100%"/>
							</style>
							<bind name="instance" value="'PriceInLine'; moduleInfo.totalCostCR &gt; 0 &amp;&amp; !(moduleInfo.isStock) &amp;&amp; (moduleInfo.toPurchase || moduleInfo.toExplore || !(_shipIsResearched) || moduleInfo.unableToInstallIncompatibles.length &gt; 0) 	? {priceInfo: moduleBuyPrice.prices[0], _showDiscountTag:true}
																												: null"/>
						</block>
					</block>
				</block>
				<block>
					<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 className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
							<marginBottom value="1px"/>
							<marginTop value="1px"/>
						</style>
					</block>
					<bind name="instance" value="'ShipParamsTooltipList'; { typeList: 'tooltipModuleParams' + moduleInfo.type, params: moduleInfo.params, testParams: _testModuleParams, testObjectIsBaseForView: 0, testObjectIsBaseForCompare: 0, showCompareWithZero: 1}"/>
				</block>
				<block>
					<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0 ; null; 'tooltipModuleParams'; _shipParams; moduleInfo.shipParamsWithThisModule; 1; 0; null; 1; 1; 0"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ParamsAfterMount'; !(moduleInfo.count.Installed) &amp;&amp; viewParams.hasDiff ? { _viewParams: viewParams,
																											_title: 'IDS_AFTER_MOUNT'}
																										: null"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ModuleDependenciesBlock'; moduleInfo.neededModules.length &gt; 0 ? { _type: [2,'mount'], _dependentModules: moduleInfo.neededModules, _costXP: moduleExplorePrice.prices[0].finalPrice } : null"/>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="visible" value="(moduleInfo.toPurchase || moduleInfo.toExplore || moduleInfo.toInstall) &amp;&amp; !(_noMouseInstruction)"/>
					<bind name="instance" value="'MouseInstruction'; (moduleInfo.toPurchase || moduleInfo.toExplore || moduleInfo.toInstall)	? {_type: 'left', _instructionText: 'IDS_INSTRUCTION_LMB_EXPLORE_PURCHASE_INSTALL_MODULE', _maxWidth: 250}
																															: null"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="!showStats"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'LabelComingSoon'; { _showTestSampleLabel: showStats }"/>
			</block>
		</block>
	</block>
	<block className="ModuleTreeHelpTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="330px"/>
		</style>
		<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>
			<styleClass value="$InfoBlockIndent"/>
			<block className="icon_question_mark" type="native">
				<style>
					<marginRight value="6px"/>
					<marginTop value="4px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderWhiteBold"/>
				<text value="IDS_HELP_CREDITS_AND_EXPERIENCE"/>
			</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>
				<styleClass value="$InfoBlockIndent"/>
				<block className="ModuleTreeHelpBlock">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoLineBoundaries"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<width value="18px"/>
								<marginTop value="5px"/>
							</style>
							<block className="icon_credit_small" type="native">
								<styleClass value="$MiddleAligned"/>
							</block>
						</block>
						<block type="text">
							<styleClass value="$TextHeaderBold"/>
							<bind name="class" value="'$FontColorDefault'"/>
							<text value="IDS_CREDITS_C"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<style>
							<width value="100%"/>
						</style>
						<text value="IDS_HELP_MODULES_CREDITS"/>
					</block>
				</block>
				<block className="ModuleTreeHelpBlock">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoLineBoundaries"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<width value="18px"/>
								<marginTop value="5px"/>
							</style>
							<block className="icon_exp_small" type="native">
								<styleClass value="$MiddleAligned"/>
							</block>
						</block>
						<block type="text">
							<styleClass value="$TextHeaderBold"/>
							<bind name="class" value="'$FontColorExp'"/>
							<text value="IDS_EXPERIENCE_C"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<style>
							<width value="100%"/>
						</style>
						<text value="IDS_HELP_MODULES_EXPERIENCE"/>
					</block>
				</block>
				<block className="ModuleTreeHelpBlock">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoLineBoundaries"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<width value="18px"/>
								<marginTop value="5px"/>
							</style>
							<block className="icon_exp_free_small" type="native">
								<styleClass value="$MiddleAligned"/>
							</block>
						</block>
						<block type="text">
							<styleClass value="$TextHeaderBold"/>
							<bind name="class" value="'$FontColorFreeExp'"/>
							<text value="IDS_FREE_EXPERIENCE_C"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<style>
							<width value="100%"/>
						</style>
						<text value="IDS_HELP_ABOUT_FREE_EXPERIENCE"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="VideoTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="330px"/>
		</style>
		<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>
			<styleClass value="$InfoBlockIndent"/>
			<block className="button_play_video" type="native">
				<bind name="selected" value="_isVideoSeen"/>
				<style>
					<marginRight value="6px"/>
					<marginTop value="4px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="text" value="_headerText"/>
			</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>
			<bind name="visible" value="!(_isVideoSeen)"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block className="icon_warning_orange" type="native">
					<style>
						<marginRight value="6px"/>
						<marginTop value="4px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<text value="IDS_NEW_VIDEO"/>
				</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>
		<block>
			<bind name="visible" value="(_descriptionText != null)"/>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<styleClass value="$PxHorizontalCorrection"/>
			</block>
			<block type="text">
				<styleClass value="$InfoBlockIndent"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="_descriptionText"/>
			</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>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_WATCH_EDUCATIONAL_VIDEO', _maxWidth: 300}"/>
		</block>
	</block>
	<block className="SlotInfotip">
		<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="100px"/>
			</style>
			<block className="dock_submenu_item" type="native">
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="dispatch" value="'click'; 'changeSlotBuy'; {buySlot:true}"/>
				<style>
					<width value="100%"/>
					<height value="24px"/>
				</style>
				<block>
					<style>
						<right value="4px"/>
						<hitTest value="false"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<text value="IDS_WITH_SLOT"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block className="divider_h" type="native">
				<style>
					<width value="100%"/>
					<height value="3px"/>
				</style>
			</block>
			<block className="dock_submenu_item" type="native">
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="dispatch" value="'click'; 'changeSlotBuy'; {buySlot:false}"/>
				<style>
					<width value="100%"/>
					<height value="24px"/>
				</style>
				<block>
					<style>
						<right value="4px"/>
						<hitTest value="false"/>
					</style>
					<block className="icon_warning_orange" type="native">
						<style>
							<marginTop value="5px"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<text value="IDS_WITHOUT_SLOT"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="FormationReadyButtonTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'isCurrentPlayer'; true; 'selfPlayerInDivision'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<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>
		<style>
			<width value="280"/>
		</style>
		<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>
			<style>
				<marginTop value="9px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginBottom value="7px"/>
				</style>
				<bind name="instance" value="'ShipTitleWithIconAndLevel'; {_shipID : divisionData.isReady ? selfPlayerInDivision[0].shipId : shipId}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<bottom value="0px"/>
					<position value="absolute"/>
				</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>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<bind name="repeat" value=" divisionData.isReady	? [ {_paragraphText: tr('IDS_READY_TO_BATTLE_IN_' + toUpperCase(divisionEntranceData.divisionType) + '_INFO')},
												{_paragraphText: tr('IDS_READY_TO_BATTLE_IN_FORMATION_INFO_2')}]
											: null; 'RepeatParagraphItem'; {	_maxWidth: 270, _marginBottom: '6px',
																				_middleAligned: false, _class: '$TextDefault'}"/>
			<bind name="instance" value="'MouseInstruction'; divisionData.isReady ? null
																 : {_type: 'left', _instructionText: tr('IDS_SET_READY_TO_BATTLE_IN_FORMATION'), _maxWidth: 270}"/>
		</block>
	</block>
	<block className="FormationNotReadyButtonTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<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>
		<style>
			<width value="280"/>
		</style>
		<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>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<bind name="repeat" value=" divisionData.isReady	? [ {_paragraphText: tr('IDS_NOT_READY_TO_BATTLE_IN_FORMATION_INFO')}]
												: [ {_paragraphText: tr('IDS_NOT_READY_TO_BATTLE_IN_' + toUpperCase(divisionEntranceData.divisionType) + '_INFO')},
													{_paragraphText: tr('IDS_NOT_READY_TO_BATTLE_IN_FORMATION_INFO_2')}]; 'RepeatParagraphItem'; {	_maxWidth: 270, _marginBottom: '6px',
																																					_middleAligned: false, _class: '$TextDefault'}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<bottom value="0px"/>
					<position value="absolute"/>
				</style>
				<bind name="visible" value="divisionData.isReady"/>
				<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="divisionData.isReady"/>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<bind name="instance" value="'MouseInstruction'; divisionData.isReady ? {_type: 'left', _instructionText: tr('IDS_SET_NOT_READY_TO_BATTLE_IN_FORMATION'), _maxWidth: 270}
																 : null"/>
		</block>
	</block>
	<block className="StartBattleTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'playersInDivision'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'isReady'; true; 'readyPlayersInDivision'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<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.EntitySingletonController; 'optionData'"/>
		<styleClass value="$FightButtonTooltipBehaviour"/>
		<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>
		<style>
			<width value="260"/>
		</style>
		<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>
			<bind name="visible" value="!(divisionData.divisionExist &amp;&amp; !(divisionData.isCommander))"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<bind name="watch" value="'battleTypeLabel';	_battleType == BattleTypes.RANKED_BATTLE	? 'IDS_RANKED_BATTLE' :
											_battleType == BattleTypes.TRAINING_BATTLE	? 'IDS_CUSTOM_ROOM' :
											_battleType == BattleTypes.RANDOM_BATTLE	? 'IDS_RANDOM_BATTLE' :
											_battleType == BattleTypes.INTRO_MISSION	? 'IDS_INTRO_MISSION' :
											_battleType == BattleTypes.CLUB_BATTLE 		? 'IDS_CLUB_BATTLE'	:
											_battleType == BattleTypes.PVE_BATTLE		? 'IDS_PVE_BATTLE'
																						: 'IDS_COOPERATIVE_BATTLE'"/>
				<block>
					<block className="icon_battletypes_small" type="native">
						<bind name="gotoAndStop!" value="_battleType == BattleTypes.RANKED_BATTLE ? !(rankedBattlesSeason.denyReason) 										? 'RankedBattle' : 
																					rankedBattlesSeason.denyReason &amp; (RBDeny.NO_SEASON | RBDeny.FIRST_RANK) ? 'RankedBattle_disabled' : 
																																							  'RankedBattle_inactive'
										: _battleType == BattleTypes.CLUB_BATTLE ? 	_clubBattlesInactive ? 	'ClubBattle_inactive' :
																					_clubBattlesDisabled ? 	'ClubBattle_disabled' :
																											'ClubBattle'
										: _battleType == BattleTypes.PVE_BATTLE	? 'PVEBattle'
																				: _battleType"/>
					</block>
				</block>
				<block type="text">
					<styleClass value="$FontShipnameWhite"/>
					<style>
						<marginLeft value="4px"/>
						<marginTop value="4px"/>
					</style>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="battleTypeLabel"/>
				</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>
				<bind name="visible" value="!(divisionData.divisionExist) || readyPlayersInDivision.length &gt; 0"/>
				<style>
					<marginTop value="6px"/>
					<width value="100%"/>
				</style>
				<block>
					<bind name="visible" value="!(divisionData.divisionExist)"/>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<bind name="instance" value="'ShipTitleWithIconAndLevelWithDenyReason'; {_shipID : _shipID, _battleType: _battleType, isReady: true}"/>
				</block>
				<block>
					<bind name="visible" value="divisionData.divisionExist"/>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<bind name="repeat" value="playersInDivision; 'ShipTitleWithIconAndLevelWithDenyReason'; {divisionData: divisionData, _battleType: _battleType, _playerInDivision: true}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="divisionData.divisionExist &amp;&amp; divisionData.isCommander &amp;&amp; _battleType == BattleTypes.RANKED_BATTLE"/>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<block>
					<style>
						<width value="100%"/>
						<marginTop value="2px"/>
					</style>
					<block className="icon_warning_orange" type="native">
						<style>
							<marginTop value="5px"/>
							<marginRight value="2px"/>
							<leading value="-3"/>
						</style>
					</block>
					<block type="text">
						<style>
							<maxWidth value="216"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="'IDS_DIVISIONS_ARE_NOT_ALLOWED_IN_RANK_BATTLES'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="_specialDenyReason ? true : false"/>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<block>
					<style>
						<width value="100%"/>
						<marginTop value="2px"/>
					</style>
					<block className="icon_warning_orange" type="native">
						<style>
							<marginTop value="5px"/>
							<marginRight value="2px"/>
						</style>
					</block>
					<block type="text">
						<style>
							<maxWidth value="216"/>
							<leading value="-3"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="_specialDenyReason"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="	!((_battleType == BattleTypes.RANKED_BATTLE) &amp;&amp; rankedBattlesSeason.denyReason) &amp;&amp; !(_buttonDisabled)"/>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<bind name="instance" value="'MouseInstruction'; {_type: _instructionType, _instructionText: 'IDS_STARTTRAININGBATTLEBUTTON', _maxWidth: 260}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="divisionData.divisionExist &amp;&amp; !(divisionData.isCommander)"/>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="2px"/>
				</style>
				<block className="icon_warning_orange" type="native">
					<style>
						<marginTop value="5px"/>
						<marginRight value="2px"/>
					</style>
				</block>
				<block type="text">
					<style>
						<maxWidth value="216"/>
						<leading value="-3"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="tr('IDS_STARTBATTLE_LOCK_REASON_NOT_COMMANDER_' + toUpperCase(divisionEntranceData.divisionType))"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="BattletypeTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<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>
		<style>
			<width value="260"/>
		</style>
		<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="$InfoBlockIndent"/>
			<block type="text">
				<style>
					<maxWidth value="240"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="_description"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="_battleType == BattleTypes.RANKED_BATTLE &amp;&amp; rankedBattlesSeason.denyReason"/>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginBottom value="9px"/>
				</style>
				<bind name="instance" value="'RankBattleNotAvailableReason';  rankedBattlesSeason.denyReason ? { _maxWidth: 220} : null"/>
			</block>
		</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>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<bind name="instance" value="'MouseInstruction'; { _type: 'left', _instructionText: 'IDS_CHOOSE_BATTLETYPE_HINT', _maxWidth: 220 }"/>
		</block>
	</block>
	<block className="RankSeasonNotActive">
		<block>
			<block>
				<style>
					<marginLeft value="2px"/>
					<marginTop value="3px"/>
				</style>
				<block className="icon_warning_orange" type="native"/>
			</block>
			<block type="text">
				<bind name="style" value="'maxWidth'; _maxWidth"/>
				<bind name="class" value="'$TextSecondary'"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="(rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_NOT_STARTED)	? (tr('IDS_RANK_BATTLES_SEASON_IS_NOT_ACTIVE')+' '+tr('IDS_SEASON_STARTS_IN') + ' '+ seasonTimeStart)
																						: 'IDS_RANK_BATTLES_SEASON_IS_NOT_ACTIVE'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ShipStatusDock">
		<bind name="appear" value="'addedToStage'; 0.15; 0.3; {alpha: 0}; {alpha: 1}"/>
		<styleClass value="$MiddleAligned"/>
		<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>
			<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_blurmap5_feather" 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>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="200px"/>
				<marginTop value="7px"/>
				<hitTest value="false"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$TextSmallWhite"/>
					<text value="IDS_SERVICE"/>
				</block>
				<block>
					<styleClass value="$AlignRight"/>
					<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: _playerShipInfo.costRepair}"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$TextSmallWhite"/>
					<text value="IDS_AMMUNITION_RECHARGE"/>
				</block>
				<block>
					<styleClass value="$AlignRight"/>
					<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: _playerShipInfo.costShell }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<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>
			<style>
				<height value="50px"/>
				<marginBottom value="3px"/>
				<marginTop value="6px"/>
			</style>
			<block>
				<bind name="instance" value="'DefaultButtonCostMedium'; (_playerShipInfo.isNeedRepair || _playerShipInfo.isNeedShell) &amp;&amp; (_playerShipInfo.creditsDeficit &lt;= 0) ? {priceInfo: {finalPrice: _playerShipInfo.costTotal, currency: 'credits' },  _enabled: true, _action: 'serveShip', _actionParams: { shipId : _playerShipInfo.id }, _label: 'IDS_SERVICE_C'}
																	: null"/>
				<style>
					<width value="200px"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="_playerShipInfo.creditsDeficit &gt; 0"/>
				<style>
					<width value="100%"/>
					<marginTop value="-3px"/>
					<hitTest value="false"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block>
						<block type="text">
							<styleClass value="$TextDefaultWhite"/>
							<text value="IDS_SERVICE_COST"/>
						</block>
					</block>
					<block>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextDefault', _costCR: _playerShipInfo.costTotal }"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<marginTop value="-3px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CRDeficitNano'; { _creditsDeficit: _playerShipInfo.creditsDeficit, _class: '$TextDefault' } "/>
				</block>
			</block>
		</block>
	</block>
	<css name="$DockShipStatus">
		<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="0xFF9933"/>
	</css>
	<block className="ShipStatusDockHeader">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0.3; {alpha: 0}; {alpha: 1}"/>
		<styleClass value="$MiddleAligned"/>
		<block>
			<bind name="visible" value="!(dockDefaultValues.goToBattleState)"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="700px"/>
				<marginBottom value="-10px"/>
			</style>
			<block>
				<bind name="name" value="'ShipStatusDockHeaderId'"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_texts; 'RepeatParagraphItem'; {	_maxWidth: 700, _marginBottom: '4px', _class: '$DockShipStatus',
															_middleAligned: true, _textAlign: 'center', _toUpperCase: true}"/>
			</block>
		</block>
	</block>
	<css name="$PxCorrection">
		<position value="absolute"/>
		<marginTop value="1px"/>
		<marginBottom value="1px"/>
		<marginLeft value="1px"/>
		<marginRight value="1px"/>
	</css>
	<css name="$TextWhiteSmall">
		<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="$TextDefaultGoldSmall">
		<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="$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="$MarginForAccountNotifications">
		<marginTop value="10px"/>
		<marginBottom value="10px"/>
		<marginLeft value="12px"/>
		<marginRight value="12px"/>
	</css>
	<block className="Notification">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="watch" value="'isBigNotification'; (data.groupId == 6) || (data.groupId == 7) || (data.groupId == 2) || (data.groupId == 10)"/>
		<bind name="var" value="{	defaultWidth	: 245,
					bigWidth		: 290}"/>
		<bind name="style" value="'width';  isBigNotification ? (bigWidth + 'px') : (defaultWidth + 'px')"/>
		<block>
			<bind name="transition" value="rollOver; 0.4; {alpha: 1}; {alpha: 2}"/>
			<styleClass value="$FullsizeAbsolute"/>
			<block className="notification_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<bind name="child" value="data.groupId; {data: data, _isNotificationInbox: _isNotificationInbox, 
									_width: isBigNotification	? bigWidth
																: defaultWidth};	'NotificationCrew'; 'NotificationModernization'; 'NotificationDivisions';
																					'NotificationAccount'; 'NotificationExterior'; 'NotificationShipAndModule';
																					'NotificationVotes'; 'NotificationClubs'; 'EmptyItem'; 'NotificationCampaign';
																					'NotificationClan'; 'NotificationCollection'"/>
		</block>
	</block>
	<block className="NotificationAccount">
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'NotificationBattleResults';
					'NotificationInvoice';
					'NotificationServerReload';
					'NotificationAdministrator';
					'NotificationAccountRename';
					'EmptyItem';
					'EmptyItem';
					'NotificationConvertExp';
					'NotificationPurchaseSlot';
					'NotificationPurchasePremiumAccount';
					'NotificationPurchaseCreditsForGold';
					'NotificationPremiumAccountExpired';
					'NotificationChatBanAdded';
					'NotificationChatBanDropped';
					'NotificationAbuseStatusChanged';
					'NotificationThanksForActivity';
					'NotificationAchievementEarned';
					'NotificationDenuncationReceived';
					'NotificationPraiseReceived';
					'NotificationRent';
					'NotificationRent';
					'NotificationShipExpMoved';
					'NotificationPurchaseContainer';
					'NotificationAutoPurchaseContainer';
					'NotificationAutoOpenContainer';
					'NotificationTransactionError';"/>
		</block>
	</block>
	<block className="NotificationShipAndModule">
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'NotificationShipPurchase';
					'NotificationShipSell';
					'NotificationModulePurchase';
					'NotificationModuleSell';
					'NotificationService';
					'NotificationShipResearch';
					'NotificationModuleResearch'; 
					'EmptyItem'"/>
		</block>
	</block>
	<block className="NotificationDivisions">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup;  {data: data, _isNotificationInbox: _isNotificationInbox, _width: _width};
					'NotificationYouAreACommander'; 
					'NotificationPlayerIsACommander'; 
					'NotificationYourActionInDivision'; 
					'NotificationPlayerActionInDivision'; 
					'NotificationDivisionInvitationAction';
					'NotificationDivisionInvitationFailed';
					'NotificationDivisionDismissed';
					'NotificationLookingForDivisionStatus';
					'NotificationDivisionInvitationReceived';
					'NotificationDivisionInvitationFailed';
					'NotificationActionError'"/>
		</block>
	</block>
	<block className="NotificationClubs">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data, _width: _width};
					'NotificationClubCreated'; 
					'NotificationClubNameChanged';
					'NotificationClubInvitationReceived';
					'NotificationPlayerLeftClub';
					'NotificationClubInvitationAction';
					'NotificationPlayerIsALeader';
					'NotificationPlayerJoinClub';
					'NotificationClubInvitationFailed';
					'NotificationClubBattlesPrimetime'"/>
		</block>
	</block>
	<block className="NotificationCrew">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'NotificationRecruitCommander';
					'NotificationDemobilizeCommander';
					'NotificationLearnSkills';	
					'NotificationResetSkills';
					'NotificationAssigneCommander';
					'NotificationDisembarkCommander';
					'NotificationStartRetraining';
					'NotificationFinishRetraining';
					'NotificationBarracksCapacity';
					'NotificationAddSkillPoints';
					'NotificationCommanderFired';
					'NotificationCommanderRestored';
					'NotificationCommanderLeveledUp'"/>
		</block>
	</block>
	<block className="NotificationVotes">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data, _width: _width};
					'NotificationVoteStarted'; 
					'NotificationVoteFinished'; 
					'NotificationVoteCancelled'"/>
		</block>
	</block>
	<block className="NotificationModernization">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'NotificationModernizationSell';
					'NotificationModernizationUnmount';	
					'NotificationModernizationPurchaseAndMount';
					'NotificationModernizationMount';
					'NotificationConsumablePurchased';
					'NotificationConsumableSell';
					'NotificationConsumableUnmount';
					'NotificationConsumableMount';	
					'EmptyItem';
					'NotificationConsumableAutochargeCompleted';
					'NotificationPurchaseFailed';"/>
		</block>
	</block>
	<block className="NotificationExterior">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'NotificationExteriorTakeAwayOrInstall';
					'NotificationExteriorAutochargeCompleted';
					'NotificationExteriorPurchaseAndInstall';
					'NotificationExteriorSell'"/>
		</block>
	</block>
	<block className="NotificationCampaign">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'CampaignCompleted';
					'CampaignMissionUpdate';
					'CampaignFinalTaskUnlocked';
					'CampaignTaskActivated';
					'CampaignTaskDeactivated';
					'CampaignTaskRewarded';
					'CampaignFinalTaskEnabled'"/>
		</block>
	</block>
	<block className="NotificationClan">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data, _width: _width};
					'ClanCommon'"/>
		</block>
	</block>
	<block className="NotificationCollection">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="child" value="data.idInGroup; {data: data};
					'NotificationCollectionFullyCollected';
					'NotificationCollectionBuyCard';
					'NotificationCollectionAlbumRemoved';
					'NotificationCollectionCardRemoved';
					'NotificationCompensationDuplicates'"/>
		</block>
	</block>
	<css name="$NotificationTextStyleSheet">
		<styleSheet value="
		body {
			leading: -1
		}

		.bold_default {
			font-family: $WWSDefaultFontBold;
			color: #EEEEEE
		}

		.bold_currentPlayerRelated {
			font-family: $WWSDefaultFontBold;
			color: #FFCC66
		}

		.bold_error {
			font-family: $WWSDefaultFontBold;
			color: #FF6600
		}

		.bold_warning {
			font-family: $WWSDefaultFontBold;
			color: #FF9900
		}

		.default {
			font-family: $WWSDefaultFont;
			color: #EEEEEE
		}

		.currentPlayerRelated {
			font-family: $WWSDefaultFont;
			color: #FFCC66
		}

		.error {
			font-family: $WWSDefaultFont;
			color: #FF6600
		}

		.warning {
			font-family: $WWSDefaultFont;
			color: #FF9900
		}
	"/>
	</css>
	<block className="ClanCommon">
		<style>
			<width value="1px"/>
			<minHeight value="40"/>
		</style>
		<bind name="style" value="'width'; _width"/>
		<block>
			<bind name="visible" value="data.hasHeader == true"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginTop value="2px"/>
					<marginBottom value="1px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<styleClass value="$NotificationTextStyleSheet"/>
					<bind name="style" value="'maxWidth'; _width - 55"/>
					<bind name="text" value="'&lt;body&gt;'+ data.header +'&lt;/body&gt;'"/>
				</block>
			</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>
		<block type="text">
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<styleClass value="$InfoLineBoundaries"/>
			<styleClass value="$TextHeaderBigDefault"/>
			<styleClass value="$NotificationTextStyleSheet"/>
			<style>
				<leading value="-1"/>
			</style>
			<bind name="style" value="'maxWidth'; _width - 55"/>
			<bind name="text" value="'&lt;body&gt;' + data.message + '&lt;/body&gt;'"/>
			<bind name="substitute" value="''; 5;
							{
								'[commander]': 'icon_clan_position_commander',
								'[exec_officer]': 'icon_clan_position_dep_commander',
								'[private]': 'icon_clan_position_line_officer',
								'[recr_officer]': 'icon_clan_position_recruiter'
							}"/>
		</block>
		<block>
			<bind name="visible" value="data.cost != null"/>
			<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="data.cost != null"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<styleClass value="$InfoLineBoundaries"/>
			<bind name="instance" value="'PriceInLine'; { priceInfo: {finalPrice: data.cost, basePrice: data.cost, currency: data.currency}, _customLabel: 'IDS_COST', _medium: true}"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<alpha value="0.6"/>
				<right value="5px"/>
				<top value="3px"/>
				<position value="absolute"/>
				<width value="35px"/>
				<height value="35px"/>
				<backgroundImage value="symbol:icon_account_clan"/>
			</style>
		</block>
	</block>
	<block className="NotificationCollectionFullyCollected">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'NotificationCollectionContent'; { _albumName: data.albumName, _iconPath: data.iconPath }"/>
		</block>
	</block>
	<block className="NotificationCollectionBuyCard">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'NotificationCollectionCardContent'; { 	_iconPath: data.iconPath, _mainText: data.cardName,	_collectionName: data.albumName }"/>
		</block>
	</block>
	<block className="NotificationCollectionAlbumRemoved">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready' } : null "/>
		</block>
		<block>
			<bind name="instance" value="'NotificationCollectionContent'; { _albumName: data.albumName, _iconPath: data.iconPath }"/>
		</block>
	</block>
	<block className="NotificationCollectionCardRemoved">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready' } : null "/>
		</block>
		<block>
			<bind name="instance" value="'NotificationCollectionCardContent'; { 	_iconPath: data.iconPath, _mainText: data.cardName, _collectionName: data.albumName}"/>
		</block>
	</block>
	<block className="NotificationCompensationDuplicates">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<bind name="text" value="'IDS_DUPLICATE_COMPENSATION'"/>
			</block>
			<block>
				<style>
					<marginTop value="1px"/>
					<marginLeft value="3px"/>
				</style>
				<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.data.CR, currency: 'credits' }, _small: true}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CampaignTaskActivated">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_ACTIVATED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName,
													_missionNumber: data.data.missionNumber, _taskNumber: data.data.taskNumber}"/>
		</block>
	</block>
	<block className="CampaignTaskDeactivated">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_DEACTIVATED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName,
													_missionNumber: data.data.missionNumber, _taskNumber: data.data.taskNumber}"/>
		</block>
	</block>
	<block className="CampaignTaskRewarded">
		<block>
			<bind name="instance" value="'NotificationHeader';  { 	_header: (data.data.isRewarded) ? (data.data.lootStars &gt; 0) ? 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_REWARDED_ALL'
																												: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_REWARDED_ONLY_REWARDS'
																					: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_REWARDED_ONLY_STARS',
													_class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName, _taskNumber: data.data.taskNumber,
													_missionNumber: data.data.missionNumber, _lootStars: data.data.lootStars}"/>
		</block>
	</block>
	<block className="CampaignFinalTaskEnabled">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_ENABLED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName,
													_missionNumber: data.data.missionNumber, _isFinalTask: true}"/>
		</block>
	</block>
	<block className="CampaignFinalTaskUnlocked">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_UNLOCKED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName,
													_missionNumber: data.data.missionNumber, _isFinalTask: true}"/>
		</block>
	</block>
	<block className="CampaignMissionUpdate">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: (data.data.missionState == 2) 	? 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_MISSION_UPDATED_ACTIVATED'
																														: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_MISSION_UPDATED_COMPLETED', 
												 _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName, _missionState: data.data.missionState,
													_missionNumber: data.data.missionNumber, _taskNumber: data.data.taskNumber,
													_isMissionMessage: true}"/>
		</block>
	</block>
	<block className="CampaignCompleted">
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_CAMPAIGN_COMPLETED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="instance" value="'CampaignMessageContent';  {_campaignName: data.data.campaignName, _isCampaignMessage: true}"/>
		</block>
	</block>
	<block className="CampaignMessageContent">
		<style>
			<width value="245px"/>
		</style>
		<block>
			<style>
				<height value="80px"/>
				<marginLeft value="4px"/>
				<marginRight value="6px"/>
				<marginTop value="4px"/>
				<marginBottom value="4px"/>
			</style>
			<block>
				<style>
					<width value="80px"/>
					<height value="80px"/>
					<backgroundSize value="cover"/>
				</style>
				<bind name="style" value="'backgroundImage'; (_isCampaignMessage) 								? 'url:../campaigns/campaign_logo/' + _campaignName +  '_logo.png' :
											(_missionState == 5) 	? 'url:../campaigns/missions_pin/' + _campaignName +  '_done_pin.png'
																								: 'url:../campaigns/missions_pin/' + _campaignName +  '_pin.png'"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
					<block type="text">
						<bind name="visible" value="(_missionState != 5)"/>
						<styleClass value="$TextLargeHeaderBold"/>
						<bind name="text" value="_missionNumber"/>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<style>
						<maxWidth value="130"/>
					</style>
					<bind name="text" value="_isCampaignMessage  ? (toUpperCase(tr('IDS_' + (toUpperCase(_campaignName)) + '_TITLE'))) :
							_isMissionMessage 	? (toUpperCase(tr('IDS_MISSIONS'))) 	 + ' ' + _missionNumber :
							_isFinalTask 		? (toUpperCase(tr('IDS_MISSION_FINAL_TASK')))
												: (toUpperCase(tr('IDS_CAMPAIGN_TASK'))) + ' ' + _taskNumber"/>
				</block>
				<block>
					<style>
						<marginTop value="5px"/>
					</style>
					<bind name="repeat" value="_lootStars; 'StarsEarnedEnable'"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationAchievementEarned">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; data.data.achievementId; 'achievement'"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_EARN_ACHIEVEMENT', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<width value="245px"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<styleClass value="$InfoLineBoundaries"/>
				<style>
					<hitTest value="false"/>
				</style>
				<block>
					<bind name="instance" value="'AchievementIcon'; {_id: data.data.achievementId}"/>
				</block>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<style>
						<marginLeft value="5px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<style>
							<maxWidth value="130"/>
						</style>
						<bind name="text" value="achievement.nameIDS"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<style>
							<maxWidth value="130"/>
							<marginTop value="4px"/>
						</style>
						<bind name="text" value="toLowerCase(tr(achievement.subtypeIDS))"/>
					</block>
				</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<styleClass value="$InfoLineBoundaries"/>
				<block type="text">
					<style>
						<maxWidth value="212"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="achievement.condition.description"/>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<styleClass value="$InfoLineBoundaries"/>
				<block type="text">
					<styleClass value="$TextDefaultTech"/>
					<style>
						<textAlign value="left"/>
						<maxWidth value="218"/>
					</style>
					<bind name="text" value="achievement.multipleIDS"/>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<styleClass value="$InfoLineBoundaries"/>
				<bind name="visible" value="achievement.hasReward"/>
				<block className="icon_giftbox_small" type="native">
					<style>
						<marginLeft value="3px"/>
						<marginTop value="4px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<maxWidth value="160"/>
						<textAlign value="left"/>
						<marginLeft value="9px"/>
					</style>
					<bind name="text" value="achievement.rewardConditionIDS"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationExteriorAutochargeCompleted">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';			['resourceEntity.accountResource.evChangedGold'];		resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';		['resourceEntity.accountResource.evChangedCredit'];		resourceEntity.accountResource.credits"/>
		<block>
			<bind name="visible" value="data.flagsAutorechargeCompleted != 0"/>
			<block>
				<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_EXTERIOR_AUTORECHARGE_RESULT_SIG', _class: '$FontColorWhite'}"/>
			</block>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<bind name="visible" value="data.flagsAutorechargeCompleted == 2"/>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block>
						<style>
							<marginBottom value="1px"/>
							<marginTop value="2px"/>
						</style>
						<block className="icon_restrict_red" type="native">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<marginRight value="2px"/>
							</style>
						</block>
						<block type="text">
							<styleClass value="$TextSmallNegative"/>
							<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_PURCHASE_FAILED"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</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>
			<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>
						<marginTop value="2px"/>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<bind name="visible" value="(data.flagsAutorechargeCompleted == 1)"/>
						<style>
							<width value="100%"/>
							<marginBottom value="3px"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<text value="IDS_COST"/>
							</block>
							<block type="text">
								<bind name="visible" value="((data.data.flagsCost[0] == 0) &amp;&amp; (data.data.flagsCost[1] == 0))"/>
								<styleClass value="$TextSmallWhite"/>
								<styleClass value="$AlignRight"/>
								<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<block>
									<bind name="visible" value="data.data.flagsCost[0] &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.data.flagsCost[0], currency: 'credits' }, _small: true}"/>
								</block>
								<block type="text">
									<bind name="visible" value="((data.data.flagsCost[0] &gt; 0) &amp;&amp; (data.data.flagsCost[1] &gt; 0))"/>
									<style>
										<marginRight value="3px"/>
									</style>
									<styleClass value="$TextSecondary"/>
									<styleClass value="$MiddleVAligned"/>
									<text value="IDS_AND"/>
								</block>
								<block>
									<bind name="visible" value="data.data.flagsCost[1] &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.data.flagsCost[1], currency: 'gold' }, _small: true}"/>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="data.camouflageAutorechargeCompleted != 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>
		<block>
			<bind name="visible" value="data.camouflageAutorechargeCompleted != 0"/>
			<block>
				<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_EXTERIOR_AUTORECHARGE_RESULT_CAM', _class: '$FontColorWhite'}"/>
			</block>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<bind name="visible" value="data.camouflageAutorechargeCompleted == 2"/>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block>
						<style>
							<marginBottom value="1px"/>
							<marginTop value="2px"/>
						</style>
						<block className="icon_restrict_red" type="native">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<marginRight value="2px"/>
							</style>
						</block>
						<block type="text">
							<styleClass value="$TextSmallNegative"/>
							<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_PURCHASE_FAILED"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</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>
			<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>
						<marginTop value="2px"/>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<bind name="visible" value="(data.camouflageAutorechargeCompleted == 1)"/>
						<style>
							<width value="100%"/>
							<marginBottom value="3px"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<text value="IDS_COST"/>
							</block>
							<block type="text">
								<bind name="visible" value="((data.data.camoCost[0] == 0) &amp;&amp; (data.data.camoCost[1] == 0))"/>
								<styleClass value="$TextSmallWhite"/>
								<styleClass value="$AlignRight"/>
								<bind name="text" value="'IDS_FOR_FREE'"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<block>
									<bind name="visible" value="data.data.camoCost[0] &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.data.camoCost[0], currency: 'credits' }, _small: true}"/>
								</block>
								<block type="text">
									<bind name="visible" value="((data.data.camoCost[0] &gt; 0) &amp;&amp; (data.data.camoCost[1] &gt; 0))"/>
									<style>
										<marginRight value="3px"/>
									</style>
									<styleClass value="$TextSecondary"/>
									<styleClass value="$MiddleVAligned"/>
									<text value="IDS_AND"/>
								</block>
								<block>
									<bind name="visible" value="data.data.camoCost[1] &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.data.camoCost[1], currency: 'gold' }, _small: true}"/>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationExteriorTakeAwayOrInstall">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; data.data.exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<block>
			<bind name="instance" value="'NotificationHeader';  { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ExteriorHeader">
					<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; data.data.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="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
					<block>
						<style>
							<marginTop value="3px"/>
						</style>
						<block>
							<bind name="instance" value="'ExteriorIconWithAmount'; {	_exteriorId: data.data.exteriorId,
														_amount: 0,
														_isDesaturated: false
														}"/>
						</block>
						<block>
							<bind name="visible" value="data.numItems &gt; 1"/>
							<style>
								<marginTop value="40px"/>
								<marginLeft value="-20x"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="text" value="data.numItems"/>
							</block>
						</block>
						<block>
							<style>
								<marginTop value="3px"/>
								<marginLeft value="6px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="(data.data.result == 28) ? '$FontColorGolden' : '$None'"/>
								<style>
									<marginBottom value="5px"/>
								</style>
								<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
								<bind name="text" value="_isPermoflage 	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
											: tr('IDS_' + toUpperCase(exteriorConfig.name))"/>
							</block>
							<block type="text">
								<style>
									<marginTop value="-9px"/>
								</style>
								<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationExteriorPurchaseAndInstall">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; data.data.exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll';  PriceInfoSet.OP_BUY + data.data.exteriorId; 'exteriorPrice'"/>
		<bind name="watch" value="'selectedIndex'; ((data.data.useGold == true) &amp;&amp;  (exteriorPrice.prices.length &gt; 1)) ? 1 : 0"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header + (data.numItems &gt; 1 ? '_PLURAL' : ''), _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ExteriorHeader">
					<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; data.data.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="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
					<block>
						<style>
							<marginTop value="3px"/>
						</style>
						<block>
							<bind name="instance" value="'ExteriorIconWithAmount'; {	_exteriorId: data.data.exteriorId,
														_amount: 0,
														_isDesaturated: false
														}"/>
						</block>
						<block>
							<bind name="visible" value="data.numItems &gt; 1"/>
							<style>
								<marginTop value="40px"/>
								<marginLeft value="-20x"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="text" value="data.numItems"/>
							</block>
						</block>
						<block>
							<style>
								<marginTop value="3px"/>
								<marginLeft value="6px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="(data.data.result == 28) ? '$FontColorGolden' : '$None'"/>
								<style>
									<marginBottom value="5px"/>
								</style>
								<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
								<bind name="text" value="_isPermoflage 	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
											: tr('IDS_' + toUpperCase(exteriorConfig.name))"/>
							</block>
							<block type="text">
								<style>
									<marginTop value="-9px"/>
								</style>
								<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<bind name="instance" value="'PriceTagWithLabel'; data.cost != 0 ? { priceInfo: { finalPrice: data.cost, currency: data.currency }, _label: 'IDS_PURCHASE_COST', _small: true} : null"/>
				<block>
					<bind name="visible" value="data.cost == 0"/>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_PURCHASE_COST"/>
					</block>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<styleClass value="$AlignRight"/>
						<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationExteriorSell">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; data.data.exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header + (data.numItems &gt; 1 ? '_PLURAL' : ''), _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ExteriorHeader">
					<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; data.data.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="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
					<block>
						<style>
							<marginTop value="3px"/>
						</style>
						<block>
							<bind name="instance" value="'ExteriorIconWithAmount'; {	_exteriorId: data.data.exteriorId,
														_amount: 0,
														_isDesaturated: false
														}"/>
						</block>
						<block>
							<bind name="visible" value="data.numItems &gt; 1"/>
							<style>
								<marginTop value="40px"/>
								<marginLeft value="-20x"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="text" value="data.numItems"/>
							</block>
						</block>
						<block>
							<style>
								<marginTop value="3px"/>
								<marginLeft value="6px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="(data.data.result == 28) ? '$FontColorGolden' : '$None'"/>
								<style>
									<marginBottom value="5px"/>
								</style>
								<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
								<bind name="text" value="_isPermoflage 	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
											: tr('IDS_' + toUpperCase(exteriorConfig.name))"/>
							</block>
							<block type="text">
								<style>
									<marginTop value="-9px"/>
								</style>
								<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_SELL_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost}"/>
						<bind name="name" value="'NotificationExteriorSell_' + data.item.title + '_costCR'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="ExteriorHeader">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; data.data.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="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
		<block>
			<style>
				<marginTop value="3px"/>
			</style>
			<block>
				<bind name="instance" value="'ExteriorIconWithAmount'; {	_exteriorId: data.data.exteriorId,
														_amount: 0,
														_isDesaturated: false
														}"/>
			</block>
			<block>
				<bind name="visible" value="data.numItems &gt; 1"/>
				<style>
					<marginTop value="40px"/>
					<marginLeft value="-20x"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="data.numItems"/>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="3px"/>
					<marginLeft value="6px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="(data.data.result == 28) ? '$FontColorGolden' : '$None'"/>
					<style>
						<marginBottom value="5px"/>
					</style>
					<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
					<bind name="text" value="_isPermoflage 	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
											: tr('IDS_' + toUpperCase(exteriorConfig.name))"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-9px"/>
					</style>
					<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '156' : '141'"/>
					<styleClass value="$TextSecondary"/>
					<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationBarracksCapacity">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'BARRAC_CAP_Increase';  'barracksCapacityPrice'"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BARRACKS_CAPACITY', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<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>
						<width value="100%"/>
						<marginBottom value="6px"/>
						<marginTop value="6px"/>
					</style>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block type="text">
							<styleClass value="$TextSmallWhite"/>
							<text value="IDS_PLACED_ADDED"/>
						</block>
						<block type="text">
							<styleClass value="$TextSmallWhite"/>
							<text value="4"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block type="text">
							<styleClass value="$TextSmallWhite"/>
							<style>
								<marginTop value="3px"/>
							</style>
							<bind name="text" value="tr('IDS_FREE_PLACES') + tr('IDS_COLON') + ' ' + ($parent.$parent.data.capacity - $parent.$parent.data.crewsInBarracks) + '/' + $parent.$parent.data.capacity"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_COST"/>
					</block>
					<block>
						<bind name="visible" value="barracksCapacityPrice.prices[0].finalPrice != 0"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$FontColorGold', _costGold: barracksCapacityPrice.prices[0].finalPrice}"/>
					</block>
					<block type="text">
						<bind name="visible" value="barracksCapacityPrice.prices[0].finalPrice == 0"/>
						<styleClass value="$TextSmallWhite"/>
						<styleClass value="$AlignRight"/>
						<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationDemobilizeCommander">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_FIRE', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationDemobilizeCommander'"/>
			<style>
				<marginBottom value="3px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="94px"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
					</style>
				</block>
				<block>
					<styleClass value="$CrewPortraitSizeNormal"/>
					<style>
						<position value="absolute"/>
						<bottom value="0px"/>
						<right value="12px"/>
					</style>
					<block>
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<backgroundStretchX value="true"/>
							<backgroundStretchY value="true"/>
						</style>
						<bind name="style" value="'backgroundImage'; 'url:' + data.baseUrl"/>
					</block>
					<block>
						<bind name="visible" value="data.overlayUrl != ''"/>
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<backgroundStretchX value="true"/>
							<backgroundStretchY value="true"/>
						</style>
						<bind name="style" value="'backgroundImage'; 'url:' + data.overlayUrl"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<styleClass value="$MiddleVAligned"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorWhite'"/>
						<bind name="text" value="tr(data.firstNameIDS) + ' ' + tr(data.lastNameIDS)"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondary"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(data.nation) + '_' + data.rank"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationRecruitCommander">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_HIRE', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationRecruitCommander_' + data.shipName"/>
			<style>
				<width value="100%"/>
				<marginBottom value="5px"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<flow value="htile"/>
				</style>
				<block type="text">
					<style>
						<marginTop value="4px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="tr('IDS_SHIP') + tr('IDS_COLON')"/>
				</block>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_COST"/>
					</block>
					<block>
						<bind name="visible" value="data.trainingType == 2 &amp;&amp; data.price != 0"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$FontColorGold', _costGold: data.price}"/>
						<bind name="name" value="'NotificationRecruitCommander_' + data.shipName + '_costGold'"/>
					</block>
					<block>
						<bind name="visible" value="data.trainingType == 1 &amp;&amp; data.price != 0"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; {_costCR: data.price}"/>
						<bind name="name" value="'NotificationRecruitCommander_' + data.shipName + '_costCR'"/>
					</block>
					<block>
						<bind name="visible" value="data.trainingType == 0 || data.price == 0"/>
						<styleClass value="$AlignRight"/>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="crew.freeSkillPoints &gt; 0"/>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_FREE_POINTS"/>
					</block>
					<block type="text">
						<styleClass value="$AlignRight"/>
						<styleClass value="$TextSmallWhite"/>
						<bind name="text" value="crew.freeSkillPoints + ' / ' + crew.allSkillPoints"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationAssigneCommander">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_ASSIGN', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<flow value="htile"/>
				</style>
				<block type="text">
					<style>
						<marginTop value="4px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="tr('IDS_SHIP') + tr('IDS_COLON')"/>
				</block>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationDisembarkCommander">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_DISEMBARK', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="3px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationAddSkillPoints">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_LEVEL_UP', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<right value="3px"/>
				<top value="3px"/>
			</style>
			<bind name="instance" value="'CrewSkillPointBadge'; { _skillPoints: crew.freeSkillPoints, _state: 'active' }"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<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>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block type="text">
							<styleClass value="$TextSmallWhite"/>
							<text value="IDS_FREE_POINTS"/>
						</block>
						<block type="text">
							<styleClass value="$TextSmallWhite"/>
							<bind name="text" value="crew.freeSkillPoints + ' / ' + crew.allSkillPoints"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationCommanderFired">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_DOCKOP_TO_BASKET', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_WAITING_FOR_DEMOBILIZATION"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationCommanderRestored">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_DOCKOP_FROM_BASKET', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
						<width value="100%"/>
					</style>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_DEMOBILIZATION_CANCELLED"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationCommanderLeveledUp">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_DOCKOP_CREW_LEVEL_UP', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<width value="100%"/>
					<marginBottom value="3px"/>
					<marginTop value="2px"/>
				</style>
				<block type="text">
					<styleClass value="$TextSmallWhite"/>
					<text value="IDS_COST"/>
				</block>
				<block>
					<styleClass value="$AlignRight"/>
					<block>
						<bind name="visible" value="data.data.moneyChange.ELXP &lt; 0"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: -data.data.moneyChange.ELXP, currency: 'eliteXP' }, _small: true}"/>
					</block>
					<block type="text">
						<bind name="visible" value="((data.data.moneyChange.ELXP &lt; 0) &amp;&amp; (data.data.moneyChange.XP &lt; 0))"/>
						<style>
							<marginRight value="3px"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<text value="IDS_AND"/>
					</block>
					<block>
						<bind name="visible" value="data.data.moneyChange.XP &lt; 0"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: -data.data.moneyChange.XP, currency: 'freeXP' }, _small: true}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationLearnSkills">
		<bind name="primaryEntityDH" value="'skillEntity'; CC.crewSkill; data.skillId; 'evUpdate'"/>
		<bind name="watchDH" value="'skill'; ['skillEntity.crewSkill.evUpdate']; skillEntity.crewSkill"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_LEARN_SKILL', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationLearnSkills_' + skill.name"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<flow value="horizontal"/>
				</style>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="60px"/>
						<height value="60px"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:../crew_commander/skills/big/icon_perk_' + skill.name + '.png')"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="6px"/>
					</style>
					<block type="text">
						<style>
							<maxWidth value="140"/>
						</style>
						<styleClass value="$TextSecondaryBold"/>
						<bind name="text" value="'IDS_SKILL_' + toUpperCase(skill.name)"/>
					</block>
					<block type="text">
						<style>
							<maxWidth value="140"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<bind name="text" value="'IDS_SKILL_DESC_' + toUpperCase(skill.name)"/>
					</block>
				</block>
			</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="CommanderRankShipTraining">
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<height value="94px"/>
						</style>
						<block className="inner_panel" type="native">
							<styleClass value="$Fullsize"/>
							<styleClass value="$PxHorizontalCorrection"/>
							<style>
								<position value="absolute"/>
							</style>
						</block>
						<block>
							<styleClass value="$CrewPortraitSizeNormal"/>
							<style>
								<position value="absolute"/>
								<bottom value="0px"/>
								<right value="12px"/>
							</style>
							<block>
								<styleClass value="$FullsizeAbsolute"/>
								<style>
									<backgroundStretchX value="true"/>
									<backgroundStretchY value="true"/>
								</style>
								<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
							</block>
							<block>
								<bind name="visible" value="crew.overlayUrl != ''"/>
								<styleClass value="$FullsizeAbsolute"/>
								<style>
									<backgroundStretchX value="true"/>
									<backgroundStretchY value="true"/>
								</style>
								<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
							</block>
						</block>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<styleClass value="$InfoBlockHorizontalIndent"/>
							<styleClass value="$MiddleVAligned"/>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<bind name="class" value="'$FontColorWhite'"/>
								<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
							</block>
							<block type="text">
								<bind name="visible" value="crew.peculiarity == 'default'"/>
								<styleClass value="$TextSecondary"/>
								<bind name="class" value="'$FontColorBlueish'"/>
								<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
							</block>
							<block type="text">
								<styleClass value="$TextSecondary"/>
								<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
								<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
							</block>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationResetSkills">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_RESET_SKILLS', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<width value="100%"/>
					<marginBottom value="3px"/>
					<marginTop value="2px"/>
				</style>
				<block type="text">
					<styleClass value="$TextSmallWhite"/>
					<text value="IDS_COST"/>
				</block>
				<block>
					<styleClass value="$AlignRight"/>
					<block>
						<bind name="visible" value="data.data.moneyChange.GL &lt; 0"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: -data.data.moneyChange.GL, currency: 'gold' }, _small: true}"/>
					</block>
					<block>
						<bind name="visible" value="data.data.moneyChange.ELXP &lt; 0"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: -data.data.moneyChange.ELXP, currency: 'eliteXP' }, _small: true}"/>
					</block>
					<block type="text">
						<bind name="visible" value="((data.data.moneyChange.ELXP &lt; 0) &amp;&amp; (data.data.moneyChange.XP &lt; 0))"/>
						<style>
							<marginRight value="3px"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<text value="IDS_AND"/>
					</block>
					<block>
						<bind name="visible" value="data.data.moneyChange.XP &lt; 0"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: -data.data.moneyChange.XP, currency: 'freeXP' }, _small: true}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationStartRetraining">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_START_ADAPTATION', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<flow value="htile"/>
				</style>
				<block type="text">
					<style>
						<marginTop value="4px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<text value="IDS_RETRAINING_FOR"/>
				</block>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
						<marginTop value="6px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="text" value="data.data.retrainingType == 1	? 'IDS_CREW_TRAINING_FREE' :
								data.data.retrainingType == 2	? 'IDS_CREW_TRAINING_CREDIT'
																: null"/>
					</block>
				</block>
				<block>
					<style>
						<width value="216px"/>
						<marginTop value="6px"/>
					</style>
					<block className="indicator_progress_bar_red" type="native">
						<style>
							<width value="100%"/>
							<marginLeft value="2px"/>
						</style>
						<bind name="value" value="crewRetraining.adaptationExperienceEarned"/>
						<bind name="maximum" value="crewRetraining.adaptationExperiencePenalty"/>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<marginTop value="3px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorCompareNegative'"/>
							<bind name="text" value="crewRetraining.adaptationExperienceEarned + ' / ' + crewRetraining.adaptationExperiencePenalty"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_COST"/>
					</block>
					<block>
						<bind name="visible" value="data.data.retrainingType == 3"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$FontColorGold', _costGold: -data.data.moneyChange.GL}"/>
					</block>
					<block>
						<bind name="visible" value="data.data.retrainingType == 2"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; {_costCR: -data.data.moneyChange.CR}"/>
					</block>
					<block>
						<bind name="visible" value="data.data.retrainingType == 1"/>
						<styleClass value="$AlignRight"/>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationFinishRetraining">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; data.data.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CREW_FINISH_ADAPTATION', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block className="CommanderRankShipTraining">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="94px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$CrewPortraitSizeNormal"/>
						<style>
							<position value="absolute"/>
							<bottom value="0px"/>
							<right value="12px"/>
						</style>
						<block>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
						</block>
						<block>
							<bind name="visible" value="crew.overlayUrl != ''"/>
							<styleClass value="$FullsizeAbsolute"/>
							<style>
								<backgroundStretchX value="true"/>
								<backgroundStretchY value="true"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
						</block>
					</block>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorWhite'"/>
							<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
						</block>
						<block type="text">
							<bind name="visible" value="crew.peculiarity == 'default'"/>
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
							<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
						</block>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<flow value="htile"/>
				</style>
				<block type="text">
					<style>
						<marginTop value="4px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="tr('IDS_RETRAINED_FOR') + tr('IDS_COLON')"/>
				</block>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="(data.data.retrainingType == 3) || (data.data.retrainingType == 4)"/>
				<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="(data.data.retrainingType == 3) || (data.data.retrainingType == 4)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<text value="IDS_CREW_TRAINING_GOLD"/>
					</block>
				</block>
				<block>
					<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>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<block type="text">
							<styleClass value="$TextSmallWhite"/>
							<text value="IDS_COST"/>
						</block>
						<block>
							<bind name="visible" value="(data.data.retrainingType == 3)"/>
							<styleClass value="$AlignRight"/>
							<styleClass value="$FontColorGold"/>
							<bind name="instance" value="'PriceTag'; {priceInfo: { finalPrice: -data.data.moneyChange.GL, currency: 'gold' }, _small: true}"/>
						</block>
						<block>
							<bind name="visible" value="(data.data.retrainingType == 4)"/>
							<styleClass value="$AlignRight"/>
							<block>
								<bind name="visible" value="data.price[1]"/>
								<bind name="instance" value="'PriceTag'; {priceInfo: { finalPrice: -data.data.moneyChange.ELXP, currency: 'eliteXP'}, _small: true }"/>
							</block>
							<block>
								<bind name="visible" value="(data.data.moneyChange.XP &amp;&amp; data.data.moneyChange.ELXP)"/>
								<block type="text">
									<style>
										<marginRight value="3px"/>
									</style>
									<styleClass value="$TextSecondary"/>
									<text value="IDS_AND"/>
								</block>
							</block>
							<block>
								<bind name="visible" value="data.data.moneyChange.XP"/>
								<bind name="instance" value="'PriceTag'; {priceInfo: { finalPrice: -data.data.moneyChange.XP, currency: 'freexp'}, _small: true }"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="CommanderRankShipTraining">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<height value="94px"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<position value="absolute"/>
				</style>
			</block>
			<block>
				<styleClass value="$CrewPortraitSizeNormal"/>
				<style>
					<position value="absolute"/>
					<bottom value="0px"/>
					<right value="12px"/>
				</style>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:' + crew.baseUrl"/>
				</block>
				<block>
					<bind name="visible" value="crew.overlayUrl != ''"/>
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:' + crew.overlayUrl"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorWhite'"/>
					<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
				</block>
				<block type="text">
					<bind name="visible" value="crew.peculiarity == 'default'"/>
					<styleClass value="$TextSecondary"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="'IDS_CREW_RANK_' + toUpperCase(crew.nation) + '_' + crew.rank"/>
				</block>
				<block type="text">
					<styleClass value="$TextSecondary"/>
					<bind name="class" value="data.trainingType == 2	? '$FontColorGold'
													: '$None'"/>
					<bind name="text" value="data.trainingType == 0	? 'IDS_CREW_TRAINING_FREE' :
							data.trainingType == 1	? 'IDS_CREW_TRAINING_CREDIT' :
							data.trainingType == 2	? 'IDS_CREW_TRAINING_GOLD'
													: null"/>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationClubCreated">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<bind name="text" value="subst('IDS_CLUB_CREATED',[],{clubName:data.clubName})"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationPlayerIsALeader">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
					{
						color: #FFFFFF;
					}"/>
				</style>
				<bind name="text" value=" data.isMe	? '&lt;body&gt;' + subst('IDS_YOU_ARE_LEADER', [], {clubName: data.clubName}) + '&lt;/body&gt;'
									: '&lt;body&gt;' + subst('IDS_PLAYER_IS_LEADER', [], {playerName: '&lt;h3&gt;' +  data.subjectName + '&lt;/h3&gt;', clubName: data.clubName}) + '&lt;/body&gt;'"/>
				<bind name="substitute" value="''; 5; {'[icon]': 'icon_club_leader_bm'}"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationClubNameChanged">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_CLUB_NAME_CHANGED', _maxWidth: (_width - 55), _width: _width, _class: '$TextHeaderBold', _verticalMargins: 4}"/>
		</block>
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<style>
					<styleSheet value="h2
				 	{				 		
				 		color: #FFFFFF;
				 		font-family: $WWSDefaultFontBold;
					}"/>
					<width value="100%"/>
				</style>
				<style>
					<width value="100%"/>
					<marginBottom value="2px"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="'&lt;body&gt;' + tr('IDS_OLD_NAME')  + tr('IDS_COLON') + '&lt;h2&gt;' + ' ' + data.clubOldName+ '&lt;/h2&gt;&lt;/body&gt;'"/>
			</block>
			<block type="text">
				<style>
					<styleSheet value="h2
				 	{				 		
				 		color: #FFFFFF;
				 		font-family: $WWSDefaultFontBold;
					}"/>
					<width value="100%"/>
				</style>
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="'&lt;body&gt;' + tr('IDS_NEW_NAME')+ tr('IDS_COLON')  + '&lt;h2&gt;' + ' ' + data.clubName + '&lt;/h2&gt;&lt;/body&gt;'"/>
			</block>
		</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>
			<styleClass value="$MarginForAccountNotifications"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'PriceInLine'; { priceInfo: {finalPrice: data.price, basePrice: data.price, currency: 'gold'}, _customLabel: 'IDS_COST', _medium: true}"/>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationYourActionInClub">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.actionId == 0	?	subst('IDS_YOU_JOINED_CLUB',[],{clubName:data.clubName}) :
						data.actionId == 1	?	subst('IDS_YOU_LEFT_CLUB',[],{clubName:data.clubName}) :
						data.actionId == 2	?	subst('IDS_YOU_ARE_OUT_OF_CLUB',[],{clubName:data.clubName})
											: null"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationPlayerLeftClub">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
					{
						color: #FFFFFF;
					}"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value=" data.isMe ? '&lt;body&gt;' + subst('IDS_YOU_LEFT_CLUB',[],{clubName:data.clubName})  + '&lt;/body&gt;'  
							: '&lt;body&gt;' + subst('IDS_PLAYER_LEFT_CLUB',[],{playerName:data.subjectName, clubName:data.clubName}) + '&lt;/body&gt;' "/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationPlayerJoinClub">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
					{
						color: #FFFFFF;
					}"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value=" data.isMe ? '&lt;body&gt;' + subst('IDS_YOU_JOINED_CLUB',[],{clubName:data.clubName}) + '&lt;/body&gt;'
									:'&lt;body&gt;' + subst('IDS_PLAYER_JOINED_CLUB',[],{playerName:'&lt;h3&gt;' + data.subjectName + '&lt;/h3&gt;', clubName:data.clubName}) + '&lt;/body&gt;'"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationPlayerActionInClub">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
					{
						color: #FFFFFF;
					}"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="  data.actionId == 0 ?	'&lt;body&gt;' + subst('IDS_PLAYER_JOINED_CLUB',[],{playerName:'&lt;h3&gt;' + data.playername + '&lt;/h3&gt;', clubName:data.clubName}) + '&lt;/body&gt;'
						: data.actionId == 1 ?	'&lt;body&gt;' + subst('IDS_PLAYER_LEFT_CLUB',[],{playerName:data.playername, clubName:data.clubName}) + '&lt;/body&gt;'
						: data.actionId == 2 ?	'&lt;body&gt;' + subst('IDS_PLAYER_IS_OUT_OF_CLUB',[],{playerName:data.playername, clubName:data.clubName}) + '&lt;/body&gt;'
						: null"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationClubInvitationAction">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
					{
						color: #FFFFFF;
					}"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.isMe	? '&lt;body&gt;' + subst('IDS_YOU_DECLINED_YOUR_INVITATION_TO_CLUB', [], {clubName:data.clubName}) + '&lt;/body&gt;'
									: '&lt;body&gt;' + subst('IDS_PLAYER_DECLINED_YOUR_INVITATION_TO_CLUB', [], {playerName:data.subjectName, clubName:data.clubName}) + '&lt;/body&gt;'"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationClubInvitationFailed">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_UI_INVITATION_FAILED', _class: '$TextHeaderBigNegative', _maxWidth: (_width - 55),
												_width: _width, _verticalMargins: 4}"/>
		</block>
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="data.actionId == 51	? data.playerName + tr('IDS_PLAYER_ALREADY_IN_CLUB') :
						data.actionId == 70 ? 'IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_ALREADY_INVITED' :
						data.actionId == 50 ? 'IDS_INVITE_TO_CLUB_ACTION_DENY_REASON_MAX_CLUBS'
											: null"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationClubInvitationReceived">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value=" data.isMe ? '&lt;body&gt;' + subst('IDS_YOU_WERE_INVITED_TO_CLUB',[],{clubName: data.clubName}) + '&lt;/body&gt;' 
									: '&lt;body&gt;' + subst('IDS_PLAYER_INVITED_TO_CLUB',[],{playerName: '&lt;h3&gt;' +  data.subjectName + '&lt;/h3&gt;', clubName: data.clubName}) + '&lt;/body&gt;'"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationClubDismissed">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBold"/>
				<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_DISMISSED_CLUB"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationVoteStarted">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_UI_VOTE_STARTED', _maxWidth: (_width - 55), _width: _width, _class: '$TextHeaderBold', _verticalMargins: 4}"/>
		</block>
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="subst(data.infoIds,[],{playerName:data.playerName, clubName:data.clubName})"/>
				<bind name="substitute" value="''; 5; {'[icon]' : 'icon_club_leader_bm'}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(data.isMyVote == true) &amp;&amp; (data.price &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="(data.isMyVote == true) &amp;&amp; (data.price &gt; 0)"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<style>
				<width value="100%"/>
				<marginBottom value="10px"/>
			</style>
			<bind name="instance" value="'PriceInLine'; { priceInfo: {finalPrice: data.price, basePrice: data.price, currency: 'gold'}, _customLabel: 'IDS_COST', _medium: true}"/>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<css name="$TextHeaderBigPositive">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="17"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0x4CE8AA"/>
	</css>
	<block className="NotificationVoteFinished">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_UI_VOTE_FINISHED', _maxWidth: (_width - 55), _width: _width, _class: '$TextHeaderBigPositive', _verticalMargins: 4}"/>
		</block>
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="subst(data.infoIds,[],{playerName:data.playerName, clubName:data.clubName})"/>
				<bind name="substitute" value="''; 5; {'[icon]' : 'icon_club_leader_bm'}"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationVoteCancelled">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_UI_VOTE_CANCELLED', _class: '$TextHeaderBold', _maxWidth: (_width - 55),
												_width: _width, _verticalMargins: 4}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="subst(data.infoIds,[],{playerName:data.playerName, clubName:data.clubName})"/>
				<bind name="substitute" value="''; 5; {'[icon]' : 'icon_club_leader_bm'}"/>
			</block>
		</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>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="data.voteState == VoteTypes.VOTE_STATE_CANCELLED_BY_INITIATOR 	? 'IDS_REASON_CANCELLED_BY_INITIATOR'
																						: data.voteState == VoteTypes.VOTE_STATE_NO_SENSE ?  'IDS_REASON_PLAYER_LEFT_CLUB'
																						: 'IDS_REASON_NOT_ENOUGH_VOICES'"/>
			</block>
		</block>
		<block>
			<style>
				<right value="3px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'ClubLeagueIconTiny'; {_league: data.league}"/>
		</block>
	</block>
	<block className="NotificationYouAreACommander">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.divisionType == 'party' ? 'IDS_SYS_MESSAGE_HEADER_MS_UI_YOU_ARE_COMMANDER_PARTY' : 'IDS_SYS_MESSAGE_HEADER_MS_UI_YOU_ARE_COMMANDER_DIVISION'"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationPlayerIsACommander">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
				    {
				        color: #FFCC66;
				    }"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="'&lt;body&gt;&lt;h3&gt;' + data.playerName + '&lt;/h3&gt;' + ' ' + (data.divisionType == 'party' ? toLowerCase(tr('IDS_PARTY_COMMANDER')) : toLowerCase(tr('IDS_DIVISION_COMMANDER'))) + '&lt;/body&gt;'"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationYourActionInDivision">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.actionId == 0	? (data.divisionType == 'party' ? tr('IDS_SYS_MESSAGE_HEADER_MS_UI_YOUR_ACTION_IN_DIVISION_0_PARTY') : tr('IDS_SYS_MESSAGE_HEADER_MS_UI_YOUR_ACTION_IN_DIVISION_0_DIVISION'))
											: data.actionId == 1 ? (data.divisionType == 'party' ? tr('IDS_SYS_MESSAGE_HEADER_MS_UI_YOUR_ACTION_IN_DIVISION_1_PARTY') : tr('IDS_SYS_MESSAGE_HEADER_MS_UI_YOUR_ACTION_IN_DIVISION_1_DIVISION'))
											: data.actionId == 2 ? (data.divisionType == 'party' ? tr('IDS_SYS_MESSAGE_HEADER_MS_UI_YOUR_ACTION_IN_DIVISION_2_PARTY') : tr('IDS_SYS_MESSAGE_HEADER_MS_UI_YOUR_ACTION_IN_DIVISION_2_DIVISION'))
											: null"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationPlayerActionInDivision">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
				    {
				        color: #FFCC66;
				    }"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.actionId == 0	? '&lt;body&gt;&lt;h3&gt;' + data.playerName + '&lt;/h3&gt;' + ' ' + (data.divisionType == 'party' ? tr('IDS_PLAYER_JOINED_PARTY') : tr('IDS_PLAYER_JOINED_DIVISION')) + '&lt;/body&gt;'
											: data.actionId == 1 ? '&lt;body&gt;' + data.playerName + ' ' + (data.divisionType == 'party' ? tr('IDS_PLAYER_LEFT_PARTY') : tr('IDS_PLAYER_LEFT_DIVISION')) + '&lt;/body&gt;'
											: data.actionId == 2 ? '&lt;body&gt;' + data.playerName + ' ' + (data.divisionType == 'party' ? tr('IDS_PLAYER_IS_OUT_OF_PARTY') : tr('IDS_PLAYER_IS_OUT_OF_DIVISION')) + '&lt;/body&gt;'
											: null"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationDivisionInvitationAction">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
				    {
				        color: #FFCC66;
				    }"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.actionId == 0	? '&lt;body&gt;' + data.playerName + ' ' + tr('IDS_PLAYER_DECLINED_YOUR_INVITATION') + '&lt;/body&gt;'
											: data.actionId == 1	? '&lt;body&gt;&lt;h3&gt;' + data.playerName + '&lt;/h3&gt;' + ' ' + tr('IDS_PLAYER_ACCEPTED_YOUR_INVITATION') + '&lt;/body&gt;'
																	: null"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationDivisionInvitationFailed">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_UI_INVITATION_FAILED', _class: '$TextHeaderBigNegative',
												_maxWidth: (_width - 55), _width: _width, _verticalMargins: 4}"/>
		</block>
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="data.actionId == 0	? data.playerName + ' ' + (data.divisionType == 'party' ? tr('IDS_PLAYER_ALREADY_IN_PARTY') : tr('IDS_PLAYER_ALREADY_IN_DIVISION'))
											: data.actionId == 1 ? tr('IDS_TIME_TO_WAIT') + ' ' + data.playerName + ' ' + tr('IDS_RUN_OUT')
											: data.actionId == 2 ? data.playerName + ' ' + tr('IDS_PLAYER_IS_OFFLINE')
											: data.actionId == 3 ? 'IDS_SERVICE_IS_NOT_AVAILABLE'
											: data.actionId == 4 ? 'IDS_PLAYER_HAS_TOO_MANY_INVITES'
											: data.actionId == 5 ? 'IDS_YOU_SENT_TOO_MANY_INVITES'
											: null"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationDivisionDismissed">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="data.divisionType == 'party' ? 'IDS_SYS_MESSAGE_HEADER_MS_UI_DISMISSED_PARTY' : 'IDS_SYS_MESSAGE_HEADER_MS_UI_DISMISSED_DIVISION'"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationActionError">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_UI_ACTION_ERROR', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$MarginForAccountNotifications"/>
			<block className="icon_restrict_red" type="native">
				<styleClass value="$MiddleVAligned"/>
			</block>
			<block>
				<block type="text">
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<styleClass value="$TextDefault"/>
					<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_PURCHASE_FAILED"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="notification_frame" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationLookingForDivisionStatus">
		<block>
			<styleClass value="$MarginForAccountNotifications"/>
			<block>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="text" value="data.divisionType == 'party'	?	toUpperCase(tr('IDS_SYS_MESSAGE_HEADER_MS_UI_LOOKING_FOR_DIVISION_STATUS_PARTY')) 
															:	toUpperCase(tr('IDS_SYS_MESSAGE_HEADER_MS_UI_LOOKING_FOR_DIVISION_STATUS_DIVISION'))"/>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="9px"/>
				</style>
				<block className="icon_formation_wanted" type="native">
					<styleClass value="$MiddleVAligned"/>
					<bind name="gotoAndStop!" value="data.actionId == 1 ? ('on_'+data.divisionType) : 'off'"/>
					<style>
						<marginRight value="2px"/>
					</style>
				</block>
				<block type="text">
					<style>
						<marginLeft value="3px"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="class" value="data.actionId == 1 ? (data.divisionType == 'party' ? '$FontColorParty' : '$FontColorTurquoise') : '$FontColorWhite'"/>
					<text value="IDS_STATUS_IS_ESTABLISHED"/>
					<bind name="text" value="data.actionId == 1 ? 'IDS_STATUS_IS_ESTABLISHED' : 'IDS_STATUS_IS_TAKEN_OFF'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<marginTop value="9px"/>
				</style>
				<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="text" value="data.actionId == 1 ? (data.divisionType == 'party' ? 'IDS_OTHER_PLAYERS_SEE_YOU_PARTY' : 'IDS_OTHER_PLAYERS_SEE_YOU_DIVISION') : (data.divisionType == 'party' ? 'IDS_OTHER_PLAYERS_DONT_SEE_YOU_PARTY' : 'IDS_OTHER_PLAYERS_DONT_SEE_YOU_DIVISION')"/>
				</block>
				<block type="text">
					<style>
						<width value="100%"/>
						<marginTop value="3px"/>
					</style>
					<bind name="visible" value="data.actionId == 1"/>
					<styleClass value="$TextHeaderBigDefault"/>
					<text value="IDS_WAIT_FOR_INVITATION"/>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationDivisionInvitationReceived">
		<block>
			<bind name="style" value="'width'; ((_width - 25) + 'px')"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; (_width - 55)"/>
				<style>
					<styleSheet value="h3
					{
						color: #FFCC66;
					}"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="'&lt;body&gt;' + (data.divisionType == 'party'	? subst('IDS_SYS_MESSAGE_CLUB_INVITES_YOU_TO_JOIN_PARTY',[], {	clubName: '&lt;h3&gt;' + data.clubName + '&lt;/h3&gt;',
																																	playerName: '&lt;h3&gt;' + data.playerName + '&lt;/h3&gt;'})
																	: subst('IDS_SYS_MESSAGE_PLAYER_INVITES_YOU_TO_JOIN_DIVISION',[], {playerName: '&lt;h3&gt;' + data.playerName + '&lt;/h3&gt;'}))
						+ '&lt;/body&gt;'"/>
			</block>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<alpha value="0.6"/>
				<right value="0px"/>
				<top value="4px"/>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'not_commander_' + toUpperCase(tr(data.divisionType))"/>
		</block>
	</block>
	<block className="NotificationBattleResults">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<block>
			<bind name="name" value="'NotificationBattleResults_value'"/>
			<bind name="instance" value="'NotificationHeader'; data.result == 2 	?	{ _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BATTLE_RESULTS_2', _class: '$FontColorCompareNegative'}
																			: data.result == 1 	? { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BATTLE_RESULTS_1', _class: '$FontColorComparePositive'}
																											: data.result == 0 	? { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BATTLE_RESULTS_0', _class: '$FontColorWhite'}
																																			: null"/>
		</block>
		<block>
			<bind name="name" value="'NotificationBattleResults'"/>
			<bind name="watch" value="'isPVEOperation'; (data.operationName != '')"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<block>
					<style>
						<marginTop value="-2px"/>
						<marginBottom value="2px"/>
					</style>
					<block type="text">
						<style>
							<leading value="-2"/>
							<maxWidth value="210"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="isPVEOperation ?	tr(toUpperCase('IDS_' + data.operationName + '_NAME'))
													+ '. '
													+ (tr('IDS_OPERATION_' + toUpperCase(data.difficulty) + '_DIFFICULTY_TITLE'))
													+ ' ' + data.date
													: (tr(data.mapName) + ', ' + data.date)"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="isPVEOperation"/>
					<style>
						<width value="100%"/>
						<marginBottom value="4px"/>
					</style>
					<bind name="repeat" value="isPVEOperation ? 5 : 0; 'EarnedStarsNano'; {_currentEarned: data.curTasksCompleted}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextSmallWhite"/>
					<text value="IDS_BATTLE_REWARDS"/>
				</block>
			</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="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_SHIP_EXPERIENCE_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostXPNano'; { _class: '$FontColorExp', _costXP: data.exp}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_CREDITS_COLON"/>
						</block>
						<block>
							<style>
								<right value="3px"/>
							</style>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: data.credits}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<bind name="visible" value="(data.creditsPenalty &gt; 0) || (data.creditsPenalty &gt; 0)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_BATTLE_PENALTY"/>
					</block>
				</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="22px"/>
							<marginRight value="12px"/>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
								<marginBottom value="-2px"/>
							</style>
							<block type="text">
								<styleClass value="$TextSecondary"/>
								<text value="IDS_PENALTY_ALLY_HIT"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<bind name="instance" value="'CostXPNano'; { _class: '$FontColorExp', _costXP: data.expPenalty}"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<style>
								<width value="100%"/>
								<marginBottom value="2px"/>
							</style>
							<block type="text">
								<styleClass value="$TextSecondary"/>
								<text value="IDS_PENALTY_ALLY_HIT"/>
							</block>
							<block>
								<style>
									<right value="3px"/>
								</style>
								<styleClass value="$AlignRight"/>
								<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: data.creditsPenalty}"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</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>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextSmallWhite"/>
					<text value="IDS_EFFECTIVENESS"/>
				</block>
			</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="245px"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_DESTROYED"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<bind name="text" value="data.shipsKilled"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="data.earnedAchievements.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<bind name="text" value="tr('IDS_PROFILE_ACHIEVEMENTS')+tr('IDS_COLON')"/>
					</block>
				</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="245px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$InfoBlockIndent"/>
						<bind name="repeat" value="data.earnedAchievements; 'AchievementIconWithTitle'; {_showProgress: true}"/>
					</block>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="data.accountLeveling.currLevel != accountLevelInfo.maxLevelEnabled"/>
				<block>
					<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>
					<styleClass value="$InfoBlockIndent"/>
					<block type="text">
						<style>
							<marginLeft value="-8px"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="text" value="data.accountLeveling.currLevel"/>
					</block>
					<block type="text">
						<style>
							<marginLeft value="6px"/>
						</style>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_ADD_ACCOUNT_POINTS"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<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>
					<style>
						<width value="245px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<styleClass value="$PxHorizontalCorrection"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<style>
							<marginLeft value="22px"/>
							<marginRight value="12px"/>
							<width value="100%"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
								<marginBottom value="-2px"/>
							</style>
							<block type="text">
								<styleClass value="$TextSecondary"/>
								<text value="IDS_EXPERIENCE_COLON"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<bind name="instance" value="'CostXPNano'; { _class: '$FontColorExp', _costXP: data.accountLeveling.expGained}"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<style>
								<width value="200px"/>
								<marginTop value="9px"/>
								<marginBottom value="6px"/>
							</style>
							<block className="indicator_progress_bar_orange" type="native">
								<style>
									<width value="100%"/>
								</style>
								<bind name="value" value="((data.accountLeveling.expTotal - data.accountLeveling.currLevelExp) / (data.accountLeveling.nextLevelExp - data.accountLeveling.currLevelExp))*10"/>
							</block>
							<block className="indicator_progress_bar_yellow_without_bg" type="native">
								<style>
									<width value="100%"/>
									<position value="absolute"/>
								</style>
								<bind name="value" value="((data.accountLeveling.expTotal - data.accountLeveling.currLevelExp - data.accountLeveling.expGained ) / (data.accountLeveling.nextLevelExp - data.accountLeveling.currLevelExp))*10"/>
							</block>
						</block>
					</block>
				</block>
			</block>
			<bind name="instance" value="'NotificationQuests'; data.quests.length &gt; 0 ? { _BattleTask: 'IDS_BATTLE_TASK', quests: data.quests } : null"/>
			<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>
					<marginTop value="3px"/>
					<marginLeft value="12px"/>
					<marginRight value="12px"/>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_HINT_LEFT_CLICK_FOR_FURTHER_INFO', _maxWidth: 194}"/>
			</block>
			<block>
				<style>
					<marginLeft value="12px"/>
					<marginRight value="12px"/>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'StatusLineWithIcon'; data.postponed ? {_postivie: false, _text: 'IDS_WARNING_BATTLESTATS_NOT_AVAILABLE', _maxWidth: 194} : null"/>
			</block>
		</block>
		<block className="notification_frame" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
			<bind name="visible" value="data.result == 2"/>
		</block>
	</block>
	<block className="NotificationService">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_SHIP_SERVE', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<block>
					<bind name="visible" value="data.result != 0"/>
					<style>
						<marginBottom value="1px"/>
						<marginTop value="1px"/>
					</style>
					<block className="icon_restrict_red" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<marginRight value="2px"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextSmallNegative"/>
						<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_PURCHASE_FAILED"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</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="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_SERVICE"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: data.costRepair}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_AMMUNITION')+tr('IDS_COLON')"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: data.costShell}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_SERVICE_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.costTotal}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="data.result != 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="data.result != 0"/>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginTop value="3px"/>
					<alpha value="0.9"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="text" value="'IDS_SERVICE_NOT_COMPLETED'"/>
				</block>
			</block>
		</block>
		<block className="notification_frame" type="native">
			<bind name="visible" value="data.result != 0"/>
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationShipResearch">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_SHIP_EXPLORE', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationShipResearch_' + data.shipId"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_RESEARCH_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostXPNano'; { _class: '$FontColorExp', _costXP: data.cost}"/>
						<bind name="name" value="'NotificationShipResearch_' + data.shipId + '_costXP'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationShipPurchase">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_SHIP_BUY', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationShipPurchase_' + data.shipId"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_PURCHASE_COST"/>
					</block>
					<block>
						<bind name="visible" value="(data.costCR != 0) &amp;&amp; !(data.isPremium)"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.costCR}"/>
						<bind name="name" value="'NotificationShipPurchase_' + data.shipId + '_costCR'"/>
					</block>
					<block>
						<bind name="visible" value="(data.costGold != 0) &amp;&amp; (data.isPremium)"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$TextSmallGold', _costGold: data.costGold}"/>
						<bind name="name" value="'NotificationShipPurchase_' + data.shipId + '_costGold'"/>
					</block>
					<block type="text">
						<bind name="visible" value="(data.costCR || data.costGold) == 0"/>
						<styleClass value="$TextSmallWhite"/>
						<styleClass value="$AlignRight"/>
						<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationShipSell">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_SHIP_SELL_0', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
				</block>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_SELL_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _costCR: data.costShipCR}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="data.modsCount != 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>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block type="text">
						<styleClass value="$TextSecondary"/>
						<bind name="text" value="tr('IDS_MODERNIZATIONS') + tr('IDS_COLON')"/>
					</block>
				</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>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<block>
							<bind name="visible" value="data.modFlag == '0'"/>
							<style>
								<width value="100%"/>
								<marginLeft value="12px"/>
							</style>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<text value="IDS_SELL_COST"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<bind name="instance" value="'CostCRNano'; { _costCR: data.costModCR}"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="visible" value="data.modFlag == '1'"/>
							<style>
								<width value="100%"/>
								<marginLeft value="12px"/>
							</style>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<text value="IDS_UNMOUNT_COST"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<bind name="instance" value="'PriceTag'; {priceInfo: {finalPrice: -(data.modsCost[1]), currency: 'gold'}, _small: true}"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<style>
								<width value="100%"/>
								<marginLeft value="12px"/>
							</style>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<text value="IDS_MODERNIZATION_QUANTITY"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<block type="text">
									<styleClass value="$TextSmallWhite"/>
									<bind name="text" value="data.modsCount"/>
								</block>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModuleResearch">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_USER_COMPONENT_EXPLORE', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModuleResearch_' + data.nameIDS"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="NotificationModuleHeader">
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<marginBottom value="2px"/>
							<marginTop value="2px"/>
						</style>
						<block className="icon_tree_module_states" type="native">
							<styleClass value="$MouseDisable"/>
							<bind name="gotoAndStop!" value="data.type + (data.typeId == 2	? '_P' 
																: data.typeId == 7 	? '_A' 
																: '_P')"/>
						</block>
						<block>
							<style>
								<marginTop value="6px"/>
								<marginLeft value="3px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="data.typeId == 2 	? '$FontColorWhite' : '$FontColorExp'"/>
								<style>
									<marginBottom value="5px"/>
									<maxWidth value="160"/>
								</style>
								<bind name="text" value="data.nameIDS"/>
							</block>
							<block type="text">
								<style>
									<marginTop value="-9px"/>
									<maxWidth value="160"/>
								</style>
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="data.typeIDS"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_RESEARCH_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostXPNano'; { _class: '$FontColorExp', _costXP: data.cost}"/>
						<bind name="name" value="'NotificationModuleResearch_' + data.nameIDS + '_costXP'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModulePurchase">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_USER_COMPONENT_BUY', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModulePurchase_' + data.nameIDS"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="NotificationModuleHeader">
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<marginBottom value="2px"/>
							<marginTop value="2px"/>
						</style>
						<block className="icon_tree_module_states" type="native">
							<styleClass value="$MouseDisable"/>
							<bind name="gotoAndStop!" value="data.type + (data.typeId == 2	? '_P' 
																: data.typeId == 7 	? '_A' 
																: '_P')"/>
						</block>
						<block>
							<style>
								<marginTop value="6px"/>
								<marginLeft value="3px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="data.typeId == 2 	? '$FontColorWhite' : '$FontColorExp'"/>
								<style>
									<marginBottom value="5px"/>
									<maxWidth value="160"/>
								</style>
								<bind name="text" value="data.nameIDS"/>
							</block>
							<block type="text">
								<style>
									<marginTop value="-9px"/>
									<maxWidth value="160"/>
								</style>
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="data.typeIDS"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_PURCHASE_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost }"/>
						<bind name="name" value="'NotificationModulePurchase_' + data.nameIDS + '_costCR'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModuleSell">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModuleSell_' + data.nameIDS"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="NotificationModuleHeader">
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<marginBottom value="2px"/>
							<marginTop value="2px"/>
						</style>
						<block className="icon_tree_module_states" type="native">
							<styleClass value="$MouseDisable"/>
							<bind name="gotoAndStop!" value="data.type + (data.typeId == 2	? '_P' 
																: data.typeId == 7 	? '_A' 
																: '_P')"/>
						</block>
						<block>
							<style>
								<marginTop value="6px"/>
								<marginLeft value="3px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="data.typeId == 2 	? '$FontColorWhite' : '$FontColorExp'"/>
								<style>
									<marginBottom value="5px"/>
									<maxWidth value="160"/>
								</style>
								<bind name="text" value="data.nameIDS"/>
							</block>
							<block type="text">
								<style>
									<marginTop value="-9px"/>
									<maxWidth value="160"/>
								</style>
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="data.typeIDS"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_SELL_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost }"/>
						<bind name="name" value="'NotificationModuleSell_' + data.nameIDS + '_costCR'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationAdministrator">
		<style>
			<width value="245px"/>
		</style>
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_ADMIN_TEXT_MESSAGE', _class: '$FontColorUnready'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationAdministratorId'"/>
			<style>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
				<width value="100%"/>
			</style>
			<block type="text">
				<style>
					<marginBottom value="5px"/>
					<width value="100%"/>
				</style>
				<styleClass value="$TextWhiteSmall"/>
				<bind name="text" value="data.msg"/>
			</block>
		</block>
		<block className="notification_frame_orange" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationServerReload">
		<style>
			<width value="245px"/>
		</style>
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_SERVER_REBOOT', _class: '$FontColorUnready'}"/>
		</block>
		<block>
			<style>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$TextWhiteSmall"/>
				<text value="IDS_SERVER_RELOAD_MESSAGE"/>
			</block>
			<block type="text">
				<styleClass value="$TextWhiteSmall"/>
				<bind name="text" value="data.minutesLeft"/>
			</block>
			<block type="text">
				<styleClass value="$TextWhiteSmall"/>
				<bind name="pluralText" value="'IDS_PL_MINUTES_COUNT'; data.minutesLeft"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="notification_frame_orange" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationAccountRename">
		<style>
			<width value="245px"/>
		</style>
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CHANGE_NAME', _class: '$FontColorUnready'}"/>
		</block>
		<block>
			<params>
				<param name="name" value="NotificationAccountRename"/>
			</params>
			<style>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<params>
					<param name="name" value="oldAccountName"/>
				</params>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<text value="IDS_RENAME_MESSAGE_OLD"/>
				</block>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<bind name="text" value="data.data.oldAccountName"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<params>
					<param name="name" value="newAccountName"/>
				</params>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<text value="IDS_RENAME_MESSAGE_NEW"/>
				</block>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<bind name="text" value="data.data.newAccountName"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block className="notification_frame_orange" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationInvoice">
		<block>
			<bind name="child" value="data.subType; { data: data };
			'NotificationFundsChargeOrWriteoff'; 
			'NotificationShipAddOrWriteoff'; 
			'NotificationModuleAddOrWriteoff'; 
			'NotificationSlotsChargeOrWriteoff'; 
			'NotificationPremiumAccountChargeOrWriteoff';  
			'NotificationModernizationAddOrWriteoff'; 
			'NotificationExteriorAddOrWriteoff';
			'NotificationConsumableAddOrWriteoff';
			'NotificationBerthsChargeOrWriteoff';
			'NotificationAchievementAddOrWriteoff';
			'NotificationInvoiceContainer';
			'NotificationCollectionCardRecieved';
			'NotificationCollectionAlbumRecieved'"/>
		</block>
		<block>
			<bind name="visible" value="data.reason.length &gt; 0"/>
			<styleClass value="$MarginForAccountNotifications"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<style>
					<maxWidth value="216"/>
				</style>
				<bind name="text" value="data.reason"/>
			</block>
		</block>
		<block className="notification_frame_orange" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationCollectionCardRecieved">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready' } : null "/>
		</block>
		<block>
			<bind name="instance" value="'NotificationCollectionCardContent'; { 	_iconPath: data.iconPath, _duplicates: data.duplicates, 
															_mainText: data.cardName, _collectionName: data.albumName }"/>
		</block>
	</block>
	<block className="NotificationCollectionAlbumRecieved">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready' } : null "/>
		</block>
		<block>
			<bind name="instance" value="'NotificationCollectionContent'; { _albumName: data.albumName, _iconPath: data.iconPath }"/>
		</block>
	</block>
	<block className="NotificationCollectionCardContent">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoBlockIndent"/>
		<bind name="watch" value="'collectionNameQuotes'; (tr('IDS_' +  toUpperCase(_collectionName) + '_QUOTES'))"/>
		<block>
			<style>
				<width value="60px"/>
				<height value="60px"/>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _iconPath"/>
		</block>
		<block className="icon_issued_small" type="native">
			<bind name="visible" value="_duplicates &gt; 0"/>
			<style>
				<position value="absolute"/>
				<top value="60%"/>
				<left value="30px"/>
				<hitTest value="false"/>
			</style>
			<innerBind elementName="item.item" name="text" value="toUpperCase(tr('IDS_DUPLICATE_STAMP'))"/>
			<bind name="gotoAndStop!" value="'issued'"/>
			<bind name="rotation" value="-10"/>
			<bind name="scaleX" value="0.8"/>
			<bind name="scaleY" value="0.8"/>
		</block>
		<block>
			<style>
				<marginLeft value="6px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<style>
					<maxWidth value="150"/>
				</style>
				<bind name="text" value="'IDS_' + toUpperCase(_mainText)"/>
			</block>
			<block type="text">
				<bind name="visible" value="_collectionName != null"/>
				<styleClass value="$TextDefault"/>
				<style>
					<maxWidth value="150"/>
				</style>
				<bind name="text" value="subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes })"/>
			</block>
		</block>
	</block>
	<block className="NotificationCollectionContent">
		<bind name="watch" value="'collectionNameQuotes'; (tr('IDS_' +  toUpperCase(_albumName) + '_QUOTES'))"/>
		<block>
			<style>
				<flow value="horizontal"/>
			</style>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<style>
					<width value="70px"/>
					<height value="45px"/>
					<backgroundSize value="cover"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + _iconPath"/>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<style>
						<maxWidth value="150"/>
					</style>
					<bind name="text" value="subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes })"/>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationConsumableAddOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<bind name="name" value="'NotificationConsumableAddOrWriteoff' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
					<marginLeft value="6px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<block>
						<bind name="visible" value="data.amount &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.amount"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="160px"/>
						<marginLeft value="6px"/>
						<marginTop value="1px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="toUpperCase(data.item.title)"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationExteriorAddOrWriteoff">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; data.extId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready' } : null "/>
		</block>
		<block>
			<params>
				<param name="name" value="NotificationAccountRename"/>
			</params>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<marginTop value="3px"/>
					</style>
					<bind name="style" value="'width'; exteriorConfig.type == ExteriorTypes.FLAGS ? '60px' : '75px'"/>
					<bind name="style" value="'backgroundImage'; 'url:' + exteriorConfig.iconPath"/>
					<block>
						<bind name="visible" value="data.amount &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.amount"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<marginTop value="3px"/>
						<marginLeft value="3px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<style>
							<marginBottom value="5px"/>
							<maxWidth value="141"/>
						</style>
						<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name)"/>
					</block>
					<block type="text">
						<style>
							<marginTop value="-9px"/>
							<maxWidth value="141"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationModuleAddOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<block className="NotificationModuleHeader">
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginBottom value="2px"/>
						<marginTop value="2px"/>
					</style>
					<block className="icon_tree_module_states" type="native">
						<styleClass value="$MouseDisable"/>
						<bind name="gotoAndStop!" value="data.type + (data.typeId == 2	? '_P' 
																: data.typeId == 7 	? '_A' 
																: '_P')"/>
					</block>
					<block>
						<style>
							<marginTop value="6px"/>
							<marginLeft value="3px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="class" value="data.typeId == 2 	? '$FontColorWhite' : '$FontColorExp'"/>
							<style>
								<marginBottom value="5px"/>
								<maxWidth value="160"/>
							</style>
							<bind name="text" value="data.nameIDS"/>
						</block>
						<block type="text">
							<style>
								<marginTop value="-9px"/>
								<maxWidth value="160"/>
							</style>
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="data.typeIDS"/>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationShipAddOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<params>
				<param name="name" value="NotificationAccountRename"/>
			</params>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationFundsChargeOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<bind name="name" value="'NotificationFundsChargeOrWriteoff'"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
						<marginBottom value="-2px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<bind name="visible" value="data.freeXP &gt; 0"/>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_FREE_EXPERIENCE_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostXPNano'; { _class: '$TextDefaultExpSmall', _costXP: data.freeXP}"/>
							<bind name="name" value="'NotificationFundsChargeOrWriteoff_freeXP'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="data.leveling &gt; 0"/>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<style>
								<maxWidth value="130"/>
							</style>
							<bind name="text" value="tr('IDS_PROFILE_ACCOUNT') + ':'"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostXPNano'; { _class: '$TextDefaultExpSmall', _costXP: data.leveling}"/>
							<bind name="name" value="'NotificationFundsChargeOrWriteoff_levelPoints'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="data.credits &gt; 0"/>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_CREDITS_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: data.credits}"/>
							<bind name="name" value="'NotificationFundsChargeOrWriteoff_credits'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="data.gold &gt; 0"/>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_GOLD_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostGoldNano'; { _class: '$TextDefaultGoldSmall', _costGold: data.gold}"/>
							<bind name="name" value="'NotificationFundsChargeOrWriteoff_gold'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="data.eliteXP &gt; 0"/>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_ELITE_EXPERIENCE_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostEliteXPNano'; { _class: '$TextDefaultExpSmall', _costEliteXP: data.eliteXP}"/>
							<bind name="name" value="'NotificationFundsChargeOrWriteoff_eliteXP'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationSlotsChargeOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
						<marginBottom value="-4px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="12px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_NUMBER_OF_SLOTS"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<styleClass value="$AlignRight"/>
							<bind name="text" value="data.slots"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationBerthsChargeOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
						<marginBottom value="-4px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="12px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_NUMBER_OF_PLACES"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<styleClass value="$AlignRight"/>
							<bind name="text" value="data.berths"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationAchievementAddOrWriteoff">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; data.achivId; 'achievement'"/>
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<bind name="name" value="'NotificationAchievementAddOrWriteoff' + achievement.nameIDS"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
					<marginLeft value="6px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<style>
						<hitTest value="false"/>
					</style>
					<bind name="instance" value="'AchievementIcon'; {_id: data.achivId}"/>
					<block>
						<bind name="visible" value="data.amount &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.amount"/>
						</block>
					</block>
				</block>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<style>
						<marginLeft value="5px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<style>
							<maxWidth value="130"/>
						</style>
						<bind name="text" value="achievement.nameIDS"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<style>
							<maxWidth value="130"/>
							<marginTop value="4px"/>
						</style>
						<bind name="text" value="toLowerCase(tr(achievement.subtypeIDS))"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationPremiumAccountChargeOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; { _header: data.header, _class: '$FontColorUnready'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<bind name="text" value="data.operation &gt; 0 ? 'IDS_CHARGED_DAYS' : 'IDS_WRITTENOFF_DAYS'"/>
				</block>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<style>
						<right value="0"/>
						<position value="absolute"/>
					</style>
					<bind name="text" value="data.premium"/>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModernizationAddOrWriteoff">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; data.operation != null  ? { _header: data.header, _class: '$FontColorUnready'} : null "/>
		</block>
		<block>
			<bind name="name" value="'NotificationModernizationAddOrWriteoff' + data.nameIDS"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
					<marginLeft value="6px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<block>
						<bind name="visible" value="data.amount &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.amount"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="160px"/>
						<marginLeft value="6px"/>
						<marginTop value="1px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="data.nameIDS"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationHeaderWithIcon">
		<style>
			<width value="245px"/>
		</style>
		<block>
			<block>
				<style>
					<marginLeft value="12px"/>
					<marginTop value="7px"/>
				</style>
				<block className="icon_warning_orange" type="native"/>
			</block>
			<block>
				<style>
					<marginLeft value="3px"/>
					<marginBottom value="1px"/>
					<marginTop value="2px"/>
				</style>
				<block type="text">
					<style>
						<marginBottom value="2px"/>
						<maxWidth value="200"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="_header"/>
					<bind name="class" value="_class"/>
				</block>
			</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>
	<block className="NotificationModuleHeader">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<marginBottom value="2px"/>
				<marginTop value="2px"/>
			</style>
			<block className="icon_tree_module_states" type="native">
				<styleClass value="$MouseDisable"/>
				<bind name="gotoAndStop!" value="data.type + (data.typeId == 2	? '_P' 
																: data.typeId == 7 	? '_A' 
																: '_P')"/>
			</block>
			<block>
				<style>
					<marginTop value="6px"/>
					<marginLeft value="3px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="data.typeId == 2 	? '$FontColorWhite' : '$FontColorExp'"/>
					<style>
						<marginBottom value="5px"/>
						<maxWidth value="160"/>
					</style>
					<bind name="text" value="data.nameIDS"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-9px"/>
						<maxWidth value="160"/>
					</style>
					<styleClass value="$TextSecondary"/>
					<bind name="text" value="data.typeIDS"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ShipIconLevelName">
		<block>
			<style>
				<height value="30px"/>
			</style>
			<block className="icon_wreath" type="native">
				<style>
					<position value="absolute"/>
					<top value="3px"/>
				</style>
				<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
				<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
			</block>
			<block className="icon_ship" type="native">
				<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
				<style>
					<marginTop value="11px"/>
				</style>
				<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
			</block>
			<block type="text">
				<style>
					<marginLeft value="2px"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="class" value="'$LetterSpacingSmall'"/>
				<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
				<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationQuests">
		<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>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<block type="text">
				<styleClass value="$TextSmallWhite"/>
				<bind name="text" value="_BattleTask"/>
			</block>
		</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="24px"/>
					<marginTop value="6px"/>
					<marginBottom value="9px"/>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="quests; 'QuestSystemLog'"/>
			</block>
		</block>
	</block>
	<block className="QuestSystemLog">
		<style>
			<flow value="horizontal"/>
			<marginTop value="6px"/>
		</style>
		<block>
			<block className="icon_sse" type="native">
				<bind name="scaleX" value="0.6"/>
				<bind name="scaleY" value="0.6"/>
				<bind name="gotoAndStop!" value="type"/>
			</block>
		</block>
		<block>
			<style>
				<marginTop value="-3px"/>
				<marginLeft value="3px"/>
			</style>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<style>
					<maxWidth value="166"/>
				</style>
				<bind name="text" value="titleText"/>
			</block>
			<block type="text">
				<bind name="visible" value="maxProgress &lt;= currentProgress"/>
				<style>
					<marginTop value="-2px"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorTurquoise'"/>
				<text value="IDS_DONE"/>
			</block>
			<block>
				<bind name="visible" value="maxProgress &gt; currentProgress"/>
				<block className="indicator_progress_bar" type="native">
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="36px"/>
						<marginLeft value="3px"/>
					</style>
					<bind name="maximum" value="maxProgress"/>
					<bind name="value" value="currentProgress"/>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationPurchaseSlot">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BUY_SLOTS', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationPurchaseSlot_' + data.count"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginLeft value="12px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_PURCHASE_COST"/>
						</block>
						<block>
							<bind name="visible" value="data.cost != 0"/>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostGoldNano'; { _class: '$TextDefaultGoldSmall', _costGold: data.cost}"/>
							<bind name="name" value="'NotificationPurchaseSlot_' + data.count + '_costGold'"/>
						</block>
						<block type="text">
							<bind name="visible" value="data.cost == 0"/>
							<styleClass value="$TextSmallWhite"/>
							<styleClass value="$AlignRight"/>
							<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_NUMBER_OF_SLOTS"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<styleClass value="$AlignRight"/>
							<bind name="text" value="data.count"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationPurchaseContainer">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginBottom value="9px"/>
				<marginTop value="9px"/>
			</style>
			<block>
				<style>
					<width value="70px"/>
					<height value="45px"/>
				</style>
				<block className="icon_lootbox_normal" type="native">
					<style>
						<alpha value="0.9"/>
					</style>
					<bind name="gotoAndStop!" value="'normal'"/>
				</block>
				<block type="text">
					<style>
						<right value="-3px"/>
						<bottom value="-7px"/>
						<position value="absolute"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="class" value="'$FontSizeHeader3'"/>
					<bind name="text" value="'x' + data.count"/>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<style>
						<marginLeft value="12px"/>
					</style>
					<text value="IDS_LOOTBOX"/>
				</block>
			</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>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginBottom value="4px"/>
			</style>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<text value="IDS_LOOTBOX_FOR"/>
			</block>
			<block>
				<styleClass value="$AlignRight"/>
				<bind name="instance" value="'CostXPNano'; { _class: '$FontColorExp', _costXP: data.cost}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationAutoPurchaseContainer">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginTop value="9px"/>
				<marginBottom value="9px"/>
			</style>
			<block>
				<style>
					<width value="70px"/>
					<height value="45px"/>
				</style>
				<block className="icon_lootbox_normal" type="native">
					<style>
						<alpha value="0.9"/>
					</style>
					<bind name="gotoAndStop!" value="'normal'"/>
				</block>
				<block type="text">
					<style>
						<right value="-3px"/>
						<bottom value="-7px"/>
						<position value="absolute"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="class" value="'$FontSizeHeader3'"/>
					<bind name="text" value="'x' + data.count"/>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<style>
						<marginLeft value="12px"/>
					</style>
					<text value="IDS_LOOTBOX"/>
				</block>
			</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>
			<bind name="timeFormat" value="data.at; 'dd.MM.yyyy'; 'timeAutoBuy'; true"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginBottom value="4px"/>
			</style>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<text value="IDS_CONTAINERS_TIME_AUTOBUY"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<styleClass value="$AlignRight"/>
				<bind name="text" value="timeAutoBuy"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationInvoiceContainer">
		<block>
			<bind name="instance" value="'NotificationHeaderWithIcon'; { _header: data.header, _class: '$FontColorUnready'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginBottom value="4px"/>
			</style>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<text value="IDS_NUMBER_OF_CONTAINERS"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<styleClass value="$AlignRight"/>
				<bind name="text" value="data.amount"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationAutoOpenContainer">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginBottom value="4px"/>
			</style>
			<block type="text">
				<style>
					<multiline value="true"/>
					<maxWidth value="220"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<text value="IDS_SYS_MESSAGE_AUTO_OPEN_LOOTBOX"/>
			</block>
		</block>
	</block>
	<block className="NotificationTransactionError">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<width value="100%"/>
				<marginBottom value="4px"/>
			</style>
			<block type="text">
				<style>
					<multiline value="true"/>
					<maxWidth value="220"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<text value="IDS_TRANSACTION_ERROR"/>
			</block>
		</block>
	</block>
	<block className="NotificationPurchasePremiumAccount">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BUY_PREM', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationPurchasePremiumAccount'"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginLeft value="12px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_PURCHASE_COST"/>
						</block>
						<block>
							<bind name="visible" value="data.cost != 0"/>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostGoldNano'; { _class: '$TextDefaultGoldSmall', _costGold: data.cost}"/>
							<bind name="name" value="'NotificationPurchasePremiumAccount_costGold'"/>
						</block>
						<block type="text">
							<bind name="visible" value="data.cost == 0"/>
							<styleClass value="$TextSmallWhite"/>
							<styleClass value="$AlignRight"/>
							<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_PREMIUM_PERIOD"/>
						</block>
						<block type="text">
							<styleClass value="$AlignRight"/>
							<styleClass value="$TextSecondary"/>
							<bind name="text" value=" 'IDS_PREMIUM_PERIOD_NOTIFICATIONS_' + data.period"/>
							<bind name="name" value="'NotificationPurchasePremiumAccount_period'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationConvertExp">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_TRANFER_XP', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<text value="IDS_CHARGED"/>
				</block>
			</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"/>
						<marginBottom value="-4px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_FREE_EXPERIENCE_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostFreeXPNano'; { _class: '$FontColorFreeExp', _costFreeXP: data.data.xp}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<text value="IDS_WRITTENOFF"/>
				</block>
			</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"/>
						<marginBottom value="-4px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_GOLD_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostGoldNano'; { _class: '$TextDefaultGoldSmall', _costGold: data.data.cost}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationPurchaseCreditsForGold">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BUY_MONEY', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationPurchaseCreditsForGold'"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<text value="IDS_CHARGED"/>
				</block>
			</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"/>
						<marginBottom value="-4px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_CREDITS_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostCRNano'; { _class: '$TextSecondary', _costCR: data.moneyCount}"/>
							<bind name="name" value="'NotificationPurchaseCreditsForGold_receiveCR'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block type="text">
					<styleClass value="$TextWhiteSmall"/>
					<text value="IDS_WRITTENOFF"/>
				</block>
			</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"/>
						<marginBottom value="-4px"/>
					</style>
				</block>
				<block>
					<style>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<text value="IDS_GOLD_COLON"/>
						</block>
						<block>
							<styleClass value="$AlignRight"/>
							<bind name="instance" value="'CostGoldNano'; { _class: '$TextDefaultGoldSmall', _costGold: data.cost}"/>
							<bind name="name" value="'NotificationPurchaseCreditsForGold_costGold'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModernizationSell">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header + (data.numItems &gt; 1 ? '_PLURAL' : ''), _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModernizationSell_' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
				</style>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<block>
						<bind name="visible" value="data.numItems &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.numItems"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="140px"/>
						<marginLeft value="6px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="'IDS_TITLE_' + toUpperCase(data.item.title)"/>
					</block>
				</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_SELL_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost}"/>
						<bind name="name" value="'NotificationModernizationSell_' + data.item.title + '_costCR'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModernizationMount">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_SET_MODERNIZATION', _class: '$FontColorGolden'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModernizationMount_' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
				</style>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
				</block>
				<block>
					<style>
						<width value="140px"/>
						<marginLeft value="6px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="'IDS_TITLE_' + toUpperCase(data.item.title)"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationModernizationPurchaseAndMount">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_BUY_MODERNIZATION', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModernizationPurchaseAndMount_' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
				</style>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
				</block>
				<block>
					<style>
						<width value="140px"/>
						<marginLeft value="6px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="'IDS_TITLE_' + toUpperCase(data.item.title)"/>
					</block>
				</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_PURCHASE_COST"/>
					</block>
					<block>
						<bind name="visible" value="(data.currency == 0) &amp;&amp; (data.cost != 0)"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost}"/>
						<bind name="name" value="'NotificationModernizationPurchaseAndMount_' + data.item.title + '_costCR'"/>
					</block>
					<block>
						<bind name="visible" value="(data.currency == 1) &amp;&amp; (data.cost != 0)"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$FontColorGolden', _costGold: data.cost}"/>
						<bind name="name" value="'NotificationModernizationPurchaseAndMount_' + data.item.title + '_costGold'"/>
					</block>
					<block type="text">
						<bind name="visible" value="data.cost == 0"/>
						<styleClass value="$TextSmallWhite"/>
						<styleClass value="$AlignRight"/>
						<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationConsumablePurchased">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_CONSUMABLE_PURCHASED_HEADER', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationConsumablePurchased' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
					<marginLeft value="6px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<block>
						<bind name="visible" value="data.numItems &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.numItems"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="160px"/>
						<marginLeft value="6px"/>
						<marginTop value="1px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="toUpperCase(data.item.title)"/>
					</block>
				</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_PURCHASE_COST"/>
					</block>
					<block>
						<bind name="visible" value="(data.currency == 0) &amp;&amp; (data.cost != 0)"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost}"/>
						<bind name="name" value="'NotificationConsumablePurchased' + data.item.title + '_costCR'"/>
					</block>
					<block>
						<bind name="visible" value="(data.currency == 1) &amp;&amp; (data.cost != 0)"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$FontColorGolden', _costGold: data.cost}"/>
						<bind name="name" value="'NotificationConsumablePurchased' + data.item.title + '_costGold'"/>
					</block>
					<block type="text">
						<bind name="visible" value="data.cost == 0"/>
						<styleClass value="$TextSmallWhite"/>
						<styleClass value="$AlignRight"/>
						<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationConsumableAutochargeCompleted">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<block>
			<block>
				<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
			</block>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</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>
				<bind name="visible" value="((data.costNeed[0] &gt; 0) || (data.costNeed[1] &gt; 0))"/>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<block>
						<style>
							<marginBottom value="1px"/>
							<marginTop value="2px"/>
						</style>
						<block className="icon_restrict_red" type="native">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<marginRight value="2px"/>
							</style>
						</block>
						<block type="text">
							<styleClass value="$TextSmallNegative"/>
							<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_PURCHASE_FAILED"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</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>
			<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>
						<marginTop value="2px"/>
						<marginLeft value="22px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<bind name="visible" value="((data.costNeed[0] == 0) &amp;&amp; (data.costNeed[1] == 0))"/>
						<style>
							<width value="100%"/>
							<marginBottom value="3px"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<block type="text">
								<styleClass value="$TextSmallWhite"/>
								<text value="IDS_COST"/>
							</block>
							<block type="text">
								<bind name="visible" value="((data.cost[0] == 0) &amp;&amp; (data.cost[1] == 0))"/>
								<styleClass value="$TextSmallWhite"/>
								<styleClass value="$AlignRight"/>
								<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
							</block>
							<block>
								<styleClass value="$AlignRight"/>
								<block>
									<bind name="visible" value="data.cost[0] &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.cost[0], currency: 'credits' }, _small: true}"/>
								</block>
								<block type="text">
									<bind name="visible" value="((data.cost[0] &gt; 0) &amp;&amp; (data.cost[1] &gt; 0))"/>
									<style>
										<marginRight value="3px"/>
									</style>
									<styleClass value="$TextSecondary"/>
									<styleClass value="$MiddleVAligned"/>
									<text value="IDS_AND"/>
								</block>
								<block>
									<bind name="visible" value="data.cost[1] &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: data.cost[1], currency: 'gold' }, _small: true}"/>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationPurchaseFailed">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_PURSHASE_FAILED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$MarginForAccountNotifications"/>
			<block className="icon_restrict_red" type="native">
				<styleClass value="$MiddleVAligned"/>
			</block>
			<block>
				<block type="text">
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<styleClass value="$TextDefault"/>
					<text value="IDS_SYS_MESSAGE_HEADER_MS_UI_PURCHASE_FAILED"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="notification_frame" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
		</block>
	</block>
	<block className="NotificationConsumableSell">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header + (data.numItems &gt; 1 ? '_PLURAL' : ''), _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationConsumableSell' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
					<marginLeft value="6px"/>
					<marginRight value="10px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
					<block>
						<bind name="visible" value="data.numItems &gt; 1"/>
						<style>
							<bottom value="0px"/>
							<right value="0px"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="data.numItems"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="160px"/>
						<marginLeft value="6px"/>
						<marginTop value="1px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="toUpperCase(data.item.title)"/>
					</block>
				</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_SELL_COST"/>
					</block>
					<block>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost}"/>
						<bind name="name" value="'NotificationConsumableSell_' + data.item.title + '_costCR'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationPremiumAccountExpired">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_PREM_OFF', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginLeft value="12px"/>
						<marginRight value="12px"/>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="-2px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_EXPIRE_DATE') + tr('IDS_COLON')"/>
						</block>
						<block type="text">
							<styleClass value="$AlignRight"/>
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="data.dateString"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationModernizationUnmount">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_UNSET_MODERNIZATION', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<bind name="name" value="'NotificationModernizationUnmount_' + data.item.title"/>
			<style>
				<marginBottom value="5px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
				</style>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
				</block>
				<block>
					<style>
						<width value="140px"/>
						<marginLeft value="6px"/>
					</style>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="text" value="'IDS_TITLE_' + toUpperCase(data.item.title)"/>
					</block>
				</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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextSmallWhite"/>
						<text value="IDS_COST"/>
					</block>
					<block>
						<bind name="visible" value="data.currency == 0"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostCRNano'; { _class: '$TextSmallWhite', _costCR: data.cost}"/>
						<bind name="name" value="'NotificationModernizationUnmount_' + data.item.title + '_costCR'"/>
					</block>
					<block>
						<bind name="visible" value="data.currency == 1"/>
						<styleClass value="$AlignRight"/>
						<bind name="instance" value="'CostGoldNano'; { _class: '$FontColorGolden', _costGold: data.cost}"/>
						<bind name="name" value="'NotificationModernizationUnmount_' + data.item.title + '_costGold'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationConsumableMount">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<bind name="name" value="'NotificationConsumableMount_' + data.item.title"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_CONSUMABLE_MOUNTED', _class: '$FontColorGolden'}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="3px"/>
				<marginBottom value="3px"/>
				<marginLeft value="6px"/>
				<marginRight value="10px"/>
			</style>
			<block>
				<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
				<style>
					<width value="60px"/>
					<height value="60px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
				</style>
			</block>
			<block>
				<style>
					<width value="160px"/>
					<marginLeft value="6px"/>
					<marginTop value="1px"/>
				</style>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="data.item.title"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationConsumableUnmount">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<bind name="name" value="'NotificationConsumableUnmount_' + data.item.title"/>
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_CONSUMABLE_UNMOUNTED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="3px"/>
				<marginBottom value="3px"/>
				<marginLeft value="6px"/>
				<marginRight value="10px"/>
			</style>
			<block>
				<bind name="style" value="'backgroundImage'; 'url:' + data.item.iconPath"/>
				<style>
					<width value="60px"/>
					<height value="60px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
				</style>
			</block>
			<block>
				<style>
					<width value="160px"/>
					<marginLeft value="6px"/>
					<marginTop value="1px"/>
				</style>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="data.item.title"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="NotificationChatBanAdded">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorCompareNegative'}"/>
		</block>
	</block>
	<block className="NotificationChatBanDropped">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CHAT_BAN_DROPPED', _class: '$FontColorWhite'}"/>
		</block>
	</block>
	<block className="NotificationAbuseStatusChanged">
		<block>
			<style>
				<width value="220px"/>
			</style>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<style>
					<styleSheet value="h3
				    {
				        color: #FF96CA;
				    }"/>
					<width value="100%"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="'&lt;body&gt;' + tr(data.status == AbuseStatus.NORMAL ? 'IDS_SYS_MESSAGE_HEADER_MS_ACC_TK_STATUS_CHANGED_FALSE' : 'IDS_SYS_MESSAGE_HEADER_MS_ACC_TK_STATUS_CHANGED_TRUE') + '&lt;/body&gt;'"/>
			</block>
		</block>
		<block className="notification_frame" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
			<bind name="visible" value="data.status &gt; 0"/>
		</block>
	</block>
	<block className="NotificationThanksForActivity">
		<block>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_THANKS_FOR_ACTIVITY_HEADER', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<width value="220px"/>
			</style>
			<styleClass value="$MarginForAccountNotifications"/>
			<block type="text">
				<style>
					<maxWidth value="208"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<text value="IDS_YOU_HELP_THE_COMMUNITY"/>
			</block>
		</block>
	</block>
	<block className="NotificationDenuncationReceived">
		<block>
			<style>
				<marginTop value="2px"/>
			</style>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_YOU_HAVE_BEEN_DENUNCATED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<width value="220px"/>
				<marginTop value="3px"/>
				<marginBottom value="6px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<block type="text">
				<style>
					<maxWidth value="208"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="data.message"/>
			</block>
		</block>
	</block>
	<block className="NotificationPraiseReceived">
		<block>
			<style>
				<marginTop value="2px"/>
			</style>
			<bind name="instance" value="'NotificationHeader'; { _header: 'IDS_YOU_HAVE_BEEN_PRAISED', _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<style>
				<width value="220px"/>
				<marginTop value="3px"/>
				<marginBottom value="6px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<block type="text">
				<style>
					<maxWidth value="208"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="data.message"/>
			</block>
		</block>
	</block>
	<block className="NotificationRent">
		<bind name="timeFormat" value="data.rentTime; 'hh:mm dd:MM:yyyy'; 'formattedRentTime'; true"/>
		<bind name="watch" value="'rentTimeDeltaMod'; ((data.rentTimeDelta &gt;= 0)	? data.rentTimeDelta
																: -(data.rentTimeDelta))"/>
		<bind name="watch" value="'deltaDays'; ((rentTimeDeltaMod / 86400) &gt;= 1) ? ((rentTimeDeltaMod - (rentTimeDeltaMod % 86400)) / 86400)
																: 0"/>
		<bind name="watch" value="'deltaHours'; (deltaDays &gt;= 1)	? 0
												: ((rentTimeDeltaMod - (rentTimeDeltaMod % 3600)) / 3600)"/>
		<block>
			<style>
				<marginTop value="2px"/>
			</style>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: ((data.headerIDS == 'FINISHED') ? '$FontColorWhite' : '$FontColorGolden')}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="style" value="'marginBottom'; ((data.headerIDS == 'FINISHED') ? '5px' : '0px')"/>
			<block className="ShipIconLevelName">
				<block>
					<style>
						<height value="30px"/>
					</style>
					<block className="icon_wreath" type="native">
						<style>
							<position value="absolute"/>
							<top value="3px"/>
						</style>
						<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
						<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
					</block>
					<block className="icon_ship" type="native">
						<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
						<style>
							<marginTop value="11px"/>
						</style>
						<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
					</block>
					<block type="text">
						<style>
							<marginLeft value="2px"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="class" value="'$LetterSpacingSmall'"/>
						<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
						<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(data.headerIDS != 'FINISHED')"/>
			<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>
					<marginBottom value="5px"/>
					<width value="100%"/>
					<marginLeft value="12px"/>
					<marginRight value="12px"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<marginBottom value="-2px"/>
					</style>
					<block type="text">
						<styleClass value="$TextSecondary"/>
						<bind name="text" value="(data.headerIDS == 'CUTTED')	? (tr('IDS_RENT_PERIOD_CUTTED_FOR') + tr('IDS_COLON')) :
								(data.headerIDS == 'LONGED')	? (tr('IDS_RENT_PERIOD_LONGED_ON') + tr('IDS_COLON'))
																: (tr('IDS_RENT_PERIOD') + tr('IDS_COLON'))"/>
					</block>
					<block type="text">
						<bind name="visible" value="(data.headerIDS == 'STARTED')"/>
						<styleClass value="$AlignRight"/>
						<styleClass value="$TextSecondary"/>
						<bind name="text" value="formattedRentTime"/>
					</block>
					<block>
						<bind name="visible" value="(data.headerIDS != 'STARTED')"/>
						<styleClass value="$AlignRight"/>
						<block>
							<bind name="visible" value="(deltaDays != 0)"/>
							<block type="text">
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="deltaDays"/>
							</block>
							<block type="text">
								<style>
									<marginLeft value="-2px"/>
								</style>
								<styleClass value="$TextSecondary"/>
								<bind name="pluralText" value="'IDS_PL_DAY_FULL_ACC'; deltaDays"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="visible" value="(deltaHours != 0)"/>
							<block type="text">
								<styleClass value="$TextSecondary"/>
								<bind name="text" value="deltaHours"/>
							</block>
							<block type="text">
								<style>
									<marginLeft value="-2px"/>
								</style>
								<styleClass value="$TextSecondary"/>
								<bind name="pluralText" value="'IDS_PL_HOUR_FULL_ACC'; deltaHours"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="NotificationShipExpMoved">
		<block>
			<style>
				<marginTop value="2px"/>
			</style>
			<bind name="instance" value="'NotificationHeader'; { _header: data.header, _class: '$FontColorWhite'}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginTop value="9px"/>
				<marginBottom value="6px"/>
			</style>
			<bind name="instance" value="'ShipLineItem'; { _shipId: data.data.shipID, _width: '190px' } "/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginBottom value="3px"/>
			</style>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<style>
					<marginBottom value="3px"/>
				</style>
				<text value="IDS_SHIP_EXPERIENCE_MOVED_TO_COLON"/>
			</block>
			<bind name="instance" value="'ShipLineItem'; { _shipId: data.data.destinationShipID, _width: '190px' } "/>
		</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>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginBottom value="5px"/>
			</style>
			<bind name="instance" value="'PriceTagWithLabel'; { priceInfo: { finalPrice: data.data.SXP, currency: 'exp'}, _label: 'IDS_EXPERIENCE_AMOUNT', _small: true}"/>
		</block>
	</block>
	<block className="NotificationHeader">
		<bind name="style" value="'width'; _width ? (_width + 'px') : '245px'"/>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="style" value="'marginTop'; _verticalMargins ? ((_verticalMargins + 1) + 'px') : '2px'"/>
			<bind name="style" value="'marginBottom'; _verticalMargins ? (_verticalMargins + 'px') : '1px'"/>
			<block type="text">
				<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth: 220"/>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="_header"/>
				<bind name="class" value="_class"/>
			</block>
		</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>
	<block className="SystemLogNotificationElement">
		<bind name="appear" value="'addedToStage'; 0.25; 0.3; {alpha: 0, ubScaleY: 0, scaleY: 0}; {alpha:1, ubScaleY: 1, scaleY: 1}; 1"/>
		<bind name="appear" value="'evHideMessage'; 0.18; 0; {alpha: 1}; {alpha: 0}; 1"/>
		<bind name="appear" value="'evHideMessage'; 0.18; 0;	($index != 0)	? {ubScaleY: 1, scaleY: 1}
    														: {top: 0};
    										($index != 0)	? {ubScaleY: 0, scaleY: 0}
    														: {top: -20}; 1"/>
		<bind name="handleEventDH" value="'$dataRef.ref.show.evHide'; 'evHideMessage'"/>
		<bind name="dispatch" value="'click'; 'evHideMessage'"/>
		<bind name="dispatch" value="'evHideMessage'; 'evDelayedHide'; null; true; 0.2"/>
		<bind name="action" value="'evDelayedHide'; 'hideSystemMessage'; {id: $dataRef.ref.id}"/>
		<bind name="action" value="'removedFromStage'; 'hideSystemMessage'; {id: $dataRef.ref.id}"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<style>
			<right value="0px"/>
		</style>
		<block className="hint_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<styleClass value="$PxCorrection"/>
			<bind name="transition" value="rollOver &amp;&amp; $dataRef.ref.dataComponent.data.typeId == 5; 0.4; {alpha: 1}; {alpha: 2}"/>
		</block>
		<bind name="instance" value="'Notification' ; { data: $dataRef.ref.dataComponent.data.data, extendedDataAvailable: ($dataRef.ref.dataComponent.data.hasExtendedData &amp;&amp; $dataRef.ref.dataComponent.data.extendedDataAvailable) }"/>
		<bind name="request" value="'click'; $dataRef.ref.dataComponent.data.hasExtendedData ? ($dataRef.ref.dataComponent.data.extendedDataAvailable	? 'showExtendedSystemLog'
																																		: 'showUnavailableExtendedSystemLog')
																			: null;
							{_systemLogMessageEntityId: $dataRef.ref.id}"/>
		<bind name="watch" value="'systemLogMessage'; $dataRef.ref.dataComponent.data"/>
		<bind name="primaryEntityDH" value="'battleResultsEntity'; CC.battleResultsComponent; systemLogMessage.data.arenaUniqueID"/>
		<bind name="request" value="'click'; systemLogMessage.extendedData.game_data.battle_mode_id == 6 || systemLogMessage.extendedData.game_data.battle_mode_id == 7 ? 'pveBattlesShowStats' : null; {common: battleResultsEntity.dataComponent.data.common, 'private': battleResultsEntity.dataComponent.data.privateData}"/>
	</block>
	<block className="SystemLogNotificationShortElement">
		<style>
			<marginTop value="2px"/>
			<width value="100%"/>
		</style>
		<bind name="name" value="'SystemLogNotificationShortElement_' + $dataRef.ref.dataComponent.data.data.header"/>
		<bind name="instance" value="'NotificationShortElement' ; {data:  $dataRef.ref.dataComponent.data.data, typeId: $dataRef.ref.dataComponent.data.typeId}"/>
		<bind name="request" value="'click'; $dataRef.ref.dataComponent.data.hasExtendedData ? ($dataRef.ref.dataComponent.data.extendedDataAvailable	? 'showExtendedSystemLog'
																																		: 'showUnavailableExtendedSystemLog')
																			: null;
							{_systemLogMessageEntityId: $dataRef.ref.id}"/>
		<bind name="watch" value="'systemLogMessage'; $dataRef.ref.dataComponent.data"/>
		<bind name="primaryEntityDH" value="'battleResultsEntity'; CC.battleResultsComponent; systemLogMessage.data.arenaUniqueID"/>
		<bind name="request" value="'click'; systemLogMessage.extendedData.game_data.battle_mode_id == 6 || systemLogMessage.extendedData.game_data.battle_mode_id == 7 ? 'pveBattlesShowStats' : null; {common: battleResultsEntity.dataComponent.data.common, 'private': battleResultsEntity.dataComponent.data.privateData}"/>
	</block>
	<css name="$BattleResultNotificationMargins">
		<marginLeft value="2px"/>
		<marginRight value="2px"/>
	</css>
	<block className="NotificationShortElement">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="name" value="'NotificationShortElement_' + data.header"/>
		<bind name="tooltip" value="'Notification'; { data: data, _isNotificationInbox: true}"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="watch" value="'isBattleResults'; typeId == 5 &amp;&amp; data.groupId == 3"/>
		<bind name="watch" value="'isPVEOperation'; (data.operationName != '')"/>
		<bind name="class" value="isBattleResults ? '$BattleResultNotificationMargins' : '$None'"/>
		<block className="hint_panel" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxCorrection"/>
			<bind name="transition" value="rollOver &amp;&amp; isBattleResults; 0.3; {alpha: 0}; {alpha: 1}"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="isBattleResults"/>
			<bind name="transition" value="rollOver &amp;&amp; isBattleResults; 0.4; {alpha: 1}; {alpha: 2}"/>
			<block className="notification_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(isBattleResults)"/>
			<style>
				<width value="100%"/>
				<marginTop value="3px"/>
				<marginBottom value="4px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="var" value="{ headerPostfix: data.numItems ? (data.numItems &gt; 1 ? '_PLURAL' : '') : '' }"/>
			<block type="text">
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="'&lt;body&gt;' + tr(data.header + headerPostfix) + '&lt;/body&gt;'"/>
				<bind name="class" value="isBattleResults ? '$FontColorWhite' : '$FontColorBlueish'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="isBattleResults"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<flow value="htile"/>
				</style>
				<block type="text">
					<style>
						<marginTop value="4px"/>
						<marginRight value="2px"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="data.result == 2 	? '$FontColorCompareNegative'
												: data.result == 1 	? '$FontColorComparePositive'
																	: '$FontColorWhite'"/>
					<bind name="text" value="'&lt;body&gt;' + tr(data.header) + '&lt;/body&gt;'"/>
				</block>
				<block className="ShipIconLevelName">
					<block>
						<style>
							<height value="30px"/>
						</style>
						<block className="icon_wreath" type="native">
							<style>
								<position value="absolute"/>
								<top value="3px"/>
							</style>
							<bind name="visible" value="data.isElite || data.isPremium || data.uiSpecial"/>
							<bind name="gotoAndStop!" value="data.uiSpecial	? 'special' :
								data.isPremium 	? 'premium'
												: 'elite'"/>
						</block>
						<block className="icon_ship" type="native">
							<bind name="style" value="'marginLeft'; data.isElite || data.isPremium || data.uiSpecial ? 5 : 2"/>
							<style>
								<marginTop value="11px"/>
							</style>
							<bind name="gotoAndStop!" value="data.isPremium || data.uiSpecial ? data.shipType + '_P' : data.shipType"/>
						</block>
						<block type="text">
							<style>
								<marginLeft value="2px"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="class" value="'$LetterSpacingSmall'"/>
							<bind name="class" value="data.isPremium || data.uiSpecial	? '$FontColorGolden'
															: '$FontColorDefault'"/>
							<bind name="text" value="data.shipLevelRome + ' ' + toUpperCase(tr(data.shipName))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block type="text">
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginTop value="-4px"/>
					<marginBottom value="4px"/>
					<leading value="-2"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="isPVEOperation ?	tr(toUpperCase('IDS_' + data.operationName + '_NAME'))
													+ '. '
													+ (tr('IDS_OPERATION_' + toUpperCase(data.difficulty) + '_DIFFICULTY_TITLE'))
													+ ' ' + data.date
													: (tr(data.mapName) + ', ' + data.date)"/>
			</block>
			<block>
				<bind name="visible" value="isPVEOperation"/>
				<style>
					<width value="100%"/>
					<marginBottom value="6px"/>
					<marginLeft value="13px"/>
				</style>
				<bind name="repeat" value="isPVEOperation ? 5 : 0; 'EarnedStarsNano'; {_currentEarned: data.curTasksCompleted}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(isBattleResults)"/>
			<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>
	<block className="EarnedStarsNano">
		<block className="icon_rank_star_nano" type="native">
			<bind name="gotoAndStop!" value="$index &lt; _currentEarned ? 'earned' : 'not_earned'"/>
		</block>
	</block>
	<block className="FormationMainElement">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="collectionDH" value="CC.preBattlePlayerSimple; 'preBattlePlayers'; 'preBattleMembers'"/>
		<bind name="collectionDH" value="CC.playerInvitedToPrebattleInfo; 'preBattleInvitedPlayers'"/>
		<bind name="collectionDH" value="CC.battleType; 'selectedBattleTypes'; 'selected'"/>
		<bind name="entityDH" value="'battleTypeEntity'; selectedBattleTypes[0].id"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'isSelfPlayerCommander'; ['selfPlayerEntity.preBattlePlayerSimple.evIsCommanderChanged']; selfPlayerEntity.preBattlePlayerSimple.isCommander"/>
		<bind name="watch" value="'curPlayersInFormation'; (preBattlePlayers.length + preBattleInvitedPlayers.length)"/>
		<bind name="watch" value="'maxPlayersInFormation'; battleTypeEntity.shipRestriction.totalShips"/>
		<bind name="watch" value="'freePlacesInFormation'; (maxPlayersInFormation - curPlayersInFormation)"/>
		<style>
			<width value="223px"/>
		</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="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="optionData.contrast"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<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="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'FormationHeader'; {}"/>
			</block>
			<block>
				<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>
			<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
			<bind name="watchDH" value="'isChatServerAvailable'; ['chat.evConnected', 'chat.evDisConnected']; chat.isConnected"/>
			<bind name="watch" value="'isServerAvailable'; isChatServerAvailable"/>
			<bind name="watch" value="'showFormationPlayers'; isServerAvailable"/>
			<block>
				<style>
					<width value="100%"/>
					<height value="120px"/>
				</style>
				<bind name="visible" value="!(showFormationPlayers)"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'ServerIsUnavailable'; showFormationPlayers ? null : {_maxWidth: '220', _small: true}"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="(showFormationPlayers)"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="fade" value="divisionEntranceData.divisionAvailable; 0.1; {alpha: 0, ubScaleY: 0}; {alpha: 1, ubScaleY: 1}"/>
					<block>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'FormationShipClassesStatus'; {}"/>
					</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>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="collectionRepeatDH" value="CC.preBattlePlayerSimple; 'FormationPlayerItem'; 'preBattleMembers.sorted'; {_height: '27px'}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="collectionRepeatDH" value="CC.playerInvitedToPrebattleInfo; 'InvitedPlayerItem'; ''; {_height: '27px'}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="repeat" value="isSelfPlayerCommander ? freePlacesInFormation
													: 0; 'FormationInviteListItem'; {_height: '27px'}"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="6px"/>
			</style>
			<bind name="instance" value="'FormationReadySwitcher'; {}"/>
		</block>
	</block>
	<block className="FormationHeader">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<style>
			<width value="100%"/>
			<height value="28px"/>
		</style>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'isSelfPlayerCommander'; ['selfPlayerEntity.preBattlePlayerSimple.evIsCommanderChanged']; selfPlayerEntity.preBattlePlayerSimple.isCommander"/>
		<bind name="firstEntityDH" value="'preBattleEntity'; CC.preBattle"/>
		<bind name="watchDH" value="'isFormationInBattle'; ['preBattleEntity.preBattle.evStatusChanged']; preBattleEntity.preBattle.isInBattle"/>
		<bind name="collectionDH" value="CC.battleType; 'selectedBattleTypes'; 'selected'"/>
		<bind name="entityDH" value="'selectedBattleTypeEntity'; selectedBattleTypes[0].id"/>
		<bind name="watch" value="'maxPlayersInFormation'; selectedBattleTypeEntity.shipRestriction.totalShips"/>
		<bind name="watchDH" value="'fightButtonDenyReasons'; ['selectedBattleTypeEntity.battleType.evDisableReasonChanged']; selectedBattleTypeEntity.battleType.fightButtonReasons"/>
		<bind name="collectionDH" value="CC.preBattlePlayerSimple; 'preBattlePlayers'; 'preBattleMembers'"/>
		<bind name="collectionDH" value="CC.playerInvitedToPrebattleInfo; 'preBattleInvitedPlayers'"/>
		<bind name="watch" value="'curPlayersInFormation'; (preBattlePlayers.length + preBattleInvitedPlayers.length)"/>
		<bind name="watch" value="'label'; 	isFormationInBattle ? 'IDS_IN_BATTLE'
												: 'IDS_DIVISION'"/>
		<bind name="watch" value="'limitExceed'; curPlayersInFormation &gt;= maxPlayersInFormation"/>
		<block>
			<style>
				<width value="100%"/>
				<marginBottom value="4px"/>
				<marginLeft value="6px"/>
				<marginRight value="6px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
				<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
				<bind name="watchDH" value="'activeOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.activeOperation"/>
				<bind name="watchDH" value="'chosenDifficulty';	['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenDifficulty"/>
				<bind name="watchDH" value="'enterMatchmaker'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.enterMatchmaker"/>
				<bind name="watch" value="'isChosenOperationOfTheWeek'; ((chosenOperationId == activeOperationId) &amp;&amp; (chosenDifficulty == 'normal'))"/>
				<block>
					<bind name="visible" value="selectedBattleTypeEntity.battleType.type == BattleTypes.PVE_BATTLE"/>
					<style>
						<marginTop value="-1px"/>
					</style>
					<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{	_paragraphText: enterMatchmaker ? 'IDS_PVE_DIVISION_MATCHMAKER_ON_INFO'
																														: 'IDS_PVE_DIVISION_MATCHMAKER_OFF_INFO'}],
																						_mouseInstructions: isChosenOperationOfTheWeek  &amp;&amp; isSelfPlayerCommander	? [{_type: 'left', _instructionText: (enterMatchmaker	? 'IDS_PVE_DIVISION_MATCHMAKER_INSTRUCTION_OFF'
																																																							: 'IDS_PVE_DIVISION_MATCHMAKER_INSTRUCTION_ON')}] :
																											!(isChosenOperationOfTheWeek)  &amp;&amp; isSelfPlayerCommander	? [{_type: 'warning', _instructionText: 'IDS_PVE_DIVISION_MATCHMAKER_NOT_AVAILABLE'}]
																																									: [{_type: 'warning', _instructionText: 'IDS_PVE_DIVISION_MATCHMAKER_CONFIG_AVAILABLE_FOR_COMMANDER'}],
																						_maxWidth: 250}"/>
					<block className="button_lock" type="native">
						<bind name="action" value="'click'; 'PVEScriptsProxy.chooseOperation'; {operationId: chosenOperationId, difficulty: 'normal', shouldEnterMM: !(enterMatchmaker)}"/>
						<bind name="selected" value="!(enterMatchmaker) || !(isChosenOperationOfTheWeek)"/>
						<bind name="enabled" value="(isSelfPlayerCommander &amp;&amp; isChosenOperationOfTheWeek)"/>
					</block>
				</block>
				<block>
					<bind name="name" value="'headerDivision'"/>
					<style>
						<backgroundColor value="0x01000000"/>
					</style>
					<bind name="menu" value="'DivisionHeaderRightClickMenu'; {_isCommander: isSelfPlayerCommander}"/>
					<bind name="tooltip" value="'MouseInstructionTooltip';  {	_multiParagraphArray: ( (!(divisionEntranceData.divisionAvailable) &amp;&amp; fightButtonDenyReasons.length &gt; 0)	? [{_paragraphText: fightButtonDenyReasons[0], _class: '$FontColorUnready'}] :
																						limitExceed																			? [{_paragraphText: 'IDS_NO_FREE_PLACES', _class: '$FontColorUnready'}]
																																											: []),
																_mouseInstructions: [{_type: 'right', _instructionText: 'IDS_HINT_RIGHT_CLICK_FOR_CONTEXT_MENU'}], _maxWidth: 250}"/>
					<block>
						<block type="text">
							<styleClass value="$TextHeaderWhiteBold"/>
							<bind name="class" value="(isFormationInBattle || !(divisionEntranceData.divisionAvailable))	? '$FontColorUnready'
																										: '$FontColorDefault'"/>
							<bind name="text" value="toUpperCase(tr(label))"/>
						</block>
						<block type="text">
							<bind name="visible" value="(divisionEntranceData.divisionAvailable ? true : false)"/>
							<styleClass value="$TextHeaderWhiteBold"/>
							<bind name="class" value="	limitExceed			?	'$FontColorAlmostBlack' :
										isFormationInBattle	?	'$FontColorUnready'
															:	'$FontColorDefault'"/>
							<bind name="class" value="	limitExceed 		?	'$FontDropShadowWhite'
															:	'$None'"/>
							<bind name="text" value="(' (' + curPlayersInFormation + '/' + maxPlayersInFormation + ')')"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block className="icon_formation" type="native">
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText:	isSelfPlayerCommander	? 'IDS_YOU_ARE_COMMANDER'
																					: 'IDS_YOU_ARE_MEMBER_DIVISION'}"/>
				<style>
					<position value="absolute"/>
					<marginLeft value="-2px"/>
					<marginTop value="-3px"/>
				</style>
				<bind name="gotoAndStop!" value="	isFormationInBattle		? 'in_battle_division' :
									isSelfPlayerCommander	? 'commander_division'
															: 'not_commander_division'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<right value="8px"/>
				<marginTop value="9px"/>
			</style>
			<block className="button_close" type="native">
				<bind name="name" value="'leaveDivision'"/>
				<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [	{_paragraphText: 'IDS_LEAVE_DIVISION'}]}"/>
				<bind name="request" value="'buttonClick'; 'leaveDivision'; {subtitle : 'IDS_LEAVE_DIVISION_QUESTION'}"/>
			</block>
		</block>
	</block>
	<block className="FormationPlayerItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="dataRefDH" value="'entityAccount'; '$dataRef.ref'"/>
		<bind name="watch" value="'isSelfPlayer'; entityAccount.accountSimple.isSelfPlayer"/>
		<bind name="watchDH" value="'shipId'; ['entityAccount.preBattlePlayerSimple.evShipIdChanged']; entityAccount.preBattlePlayerSimple.shipId"/>
		<bind name="watchDH" value="'isReady'; ['entityAccount.preBattlePlayerSimple.evStateChanged']; entityAccount.preBattlePlayerSimple.isReady"/>
		<bind name="watchDH" value="'isInBattle'; ['entityAccount.accountStatus.evInBattleChanged']; entityAccount.accountStatus.inBattle"/>
		<bind name="watchDH" value="'isCommander'; ['entityAccount.preBattlePlayerSimple.evIsCommanderChanged']; entityAccount.preBattlePlayerSimple.isCommander"/>
		<bind name="watchDH" value="'nickName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.nickName"/>
		<bind name="watchDH" value="'pureName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.name"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'isSelfPlayerCommander'; ['selfPlayerEntity.preBattlePlayerSimple.evIsCommanderChanged']; selfPlayerEntity.preBattlePlayerSimple.isCommander"/>
		<bind name="primaryEntityDH" value="'selfVoiceChatEntity'; CC.voiceChat; 0"/>
		<bind name="watchDH" value="'selfVoiceChatEnabled'; ['selfVoiceChatEntity.voiceChat.evEnabledChanged']; selfVoiceChatEntity.voiceChat.enabled"/>
		<bind name="style" value="'height'; _height ? _height : '100%'"/>
		<bind name="var" value="{isAnimationPreUnlocked: false,
				isAnimationUnlocked: 	false}"/>
		<bind name="dispatch" value="'addedToStage'; 'animationPreActivationEvent'; null; false; 0.1"/>
		<bind name="catch" value="'animationPreActivationEvent'; {isAnimationPreUnlocked: true}"/>
		<bind name="changeDispatch" value="isReady; 'animationActivationEvent'"/>
		<bind name="catch" value="'animationActivationEvent'; {isAnimationUnlocked: isAnimationPreUnlocked ? true : false}"/>
		<style>
			<width value="100%"/>
			<flow value="horizontal"/>
		</style>
		<block className="inner_panel" type="native">
			<bind name="visible" value="isSelfPlayer"/>
			<style>
				<hitTest value="false"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block className="dock_submenu_item_bg" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<styleClass value="$PxHorizontalCorrection"/>
			<bind name="clickSplit"/>
			<bind name="transition" value="(rollOver || _rollOver || formationPlayerContextMenuVisible) &amp;&amp; !(isSelfPlayer); 0.15; {alpha: 0}; {alpha: 1.0}"/>
			<bind name="tooltip" value="'ContactInfoTooltip'; {	_entityAccountId: entityAccount.id, _actionDenyReason: 'no_reason',
												_playerContext: {type: 'startPrivateChat'}}"/>
			<bind name="action" value="'left_click';	!(isSelfPlayer) ? 'openChannelForPrivateMessages' : null; {dbId: entityAccount.accountSimple.dbId}"/>
			<bind name="menu" value="'ContactContextMenu';	!(isSelfPlayer)	? {	_entityAccountId: entityAccount.id, _playerContext: {type: 'startPrivateChat'},
																_inviteType: InviteType.COMMON}
															: null; null; 'formationPlayerContextMenuVisible'"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<hitTest value="false"/>
			</style>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="fade" value="(!isReady || isInBattle) &amp;&amp; isAnimationUnlocked; 0.3; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; 0"/>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<backgroundColor value="0x90FF9933"/>
					</style>
					<bind name="fade" value="(!isReady || isInBattle) &amp;&amp; isAnimationUnlocked; 1.0; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 0.5"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="fade" value="isReady &amp;&amp; isAnimationUnlocked; 0.3; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; 0"/>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<backgroundColor value="0x804CE8AA"/>
					</style>
					<bind name="fade" value="isReady &amp;&amp; isAnimationUnlocked; 1.0; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 0.5"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<hitTest value="false"/>
				<position value="absolute"/>
				<right value="-3px"/>
				<top value="4px"/>
			</style>
			<bind name="style" value="'top'; _height &gt;= 27 ? '4px' : '3px'"/>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<bind name="fade" value="(!isReady || isInBattle) &amp;&amp; isAnimationUnlocked; 0.3; {alpha: 0, x: -100, top: 0}; {alpha: 1, x: 0, top: 0}; {alpha: 0, x: 0, top: -10}; 1; 0"/>
				<block>
					<style>
						<position value="absolute"/>
					</style>
					<bind name="fade" value="(!isReady || isInBattle) &amp;&amp; isAnimationUnlocked; 5.0; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 1.5"/>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="isInBattle ? toUpperCase(tr('IDS_IN_BATTLE')) : toUpperCase(tr('IDS_NOT_READY'))"/>
					</block>
				</block>
			</block>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<bind name="fade" value="isReady &amp;&amp; isAnimationUnlocked; 0.3; {alpha: 0, x: -100, top: 0}; {alpha: 1, x: 0, top: 0}; {alpha: 0, x: 0, top: -10}; 1; 0"/>
				<block>
					<style>
						<position value="absolute"/>
					</style>
					<bind name="fade" value="isReady &amp;&amp; isAnimationUnlocked; 5.0; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 1.5"/>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$FontColorComparePositive'"/>
						<bind name="text" value="toUpperCase(tr('IDS_READY'))"/>
					</block>
				</block>
			</block>
		</block>
		<block className="button_cross" type="native">
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_EXCLUDE_PLAYER_OUT_OF_DIVISION'}"/>
			<bind name="visible" value="(rollOver || _rollOver || formationPlayerContextMenuVisible) &amp;&amp; _isCurPlayerCommander &amp;&amp; !(isSelfPlayer)"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<position value="absolute"/>
				<right value="6px"/>
			</style>
			<bind name="request" value="'buttonClick'; 'kickPlayerFromDivision'; {playerId: id, name: nickName, subtitle: 'IDS_EXCLUDE_PLAYER_FROM_DIVISION_QUESTION'}"/>
		</block>
		<block>
			<style>
				<hitTest value="false"/>
				<marginLeft value="13px"/>
				<marginRight value="6px"/>
				<width value="100%"/>
				<height value="100%"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
					<marginLeft value="-12px"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'VoiceChatDockIcon'; { _playerName: pureName, _isSelf: isSelfPlayer}"/>
			</block>
			<block>
				<bind name="name" value="'participantDivisionPlayer_' + nickName"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'DHFormationPlayerIcon'; {_entityAccountId: entityAccount.id}"/>
			</block>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<bind name="style" value="'width'; _textfieldsWidth ? _textfieldsWidth : '70px'"/>
				<style>
					<marginLeft value="1px"/>
					<multiline value="false"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="tkStatus	? '$FontColorTeamkiller'
									: '$FontColorGolden'"/>
				<bind name="class" value="isSelfPlayer ? '$Bold' : '$None'"/>
				<bind name="text" value="nickName"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PreBattlePlayerShip'; (isReady || isInBattle) ? {_shipId: shipId} : null"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="PreBattlePlayerShip">
		<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"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block className="icon_ship" type="native">
			<styleClass value="$MiddleVAligned"/>
			<bind name="gotoAndStop!" value="shipInfo.isPremium ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
		</block>
		<block type="text">
			<bind name="style" value="'width'; _textfieldsWidth ? _textfieldsWidth : '70px'"/>
			<styleClass value="$TextDefaultBold"/>
			<style>
				<multiline value="false"/>
			</style>
			<bind name="class" value="'$LetterSpacingSmall'"/>
			<bind name="text" value="shipInfo.levelRome + ' ' + toUpperCase(tr(shipInfo.nameIDS))"/>
		</block>
	</block>
	<block className="InvitedPlayerItem">
		<bind name="name" value="'invitedDivisionPlayer_' + nickName"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="dataRefDH" value="'entityAccount'; '$dataRef.ref'"/>
		<bind name="watch" value="'isSelfPlayer'; entityAccount.accountSimple.isSelfPlayer"/>
		<bind name="watchDH" value="'prebattlePlayerId'; []; entityAccount.preBattlePlayerSimple.id"/>
		<bind name="watchDH" value="'expirationTime'; ['entityAccount.playerInvitedToPrebattleInfo.evChanged']; entityAccount.playerInvitedToPrebattleInfo.expirationTime"/>
		<bind name="watchDH" value="'nickName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.nickName"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'isSelfPlayerCommander'; ['selfPlayerEntity.preBattlePlayerSimple.evIsCommanderChanged']; selfPlayerEntity.preBattlePlayerSimple.isCommander"/>
		<bind name="countdown" value="expirationTime; 'countdownText'; 'mm:ss'"/>
		<bind name="style" value="'height'; _height ? _height : '100%'"/>
		<style>
			<width value="100%"/>
			<flow value="horizontal"/>
		</style>
		<block className="dock_submenu_item_bg" type="native">
			<bind name="style" value="'hitTest'; !(isSelfPlayer)"/>
			<bind name="clickSplit"/>
			<bind name="transition" value="(rollOver || _rollOver || formationPlayerContextMenuVisible); 0.15; {alpha: 0}; {alpha: 1.0}"/>
			<bind name="action" value="'left_click';	'openChannelForPrivateMessages'; {dbId: entityAccount.accountSimple.dbId}"/>
			<bind name="tooltip" value="'ContactInfoTooltip'; {	_entityAccountId: entityAccount.id, _actionDenyReason: 'no_reason',
												_playerContext: {type: 'startPrivateChat', expirationTime: expirationTime, isInvitation: true}}"/>
			<bind name="menu" value="'ContactContextMenu';	!(isSelfPlayer) 	? {	_entityAccountId: entityAccount.id, _playerContext: {type: 'startPrivateChat', isInvitation: true},
																	_inviteType: InviteType.COMMON}
																: null; null; 'formationPlayerContextMenuVisible'"/>
			<styleClass value="$FullsizeAbsolute"/>
			<styleClass value="$PxHorizontalCorrection"/>
		</block>
		<block className="button_cross" type="native">
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_RECALL_INVITATION'}"/>
			<bind name="visible" value="(rollOver || _rollOver) &amp;&amp; isSelfPlayerCommander"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<position value="absolute"/>
				<right value="6px"/>
			</style>
			<bind name="action" value="'buttonClick'; 'revokeInvitationToDivision'; {id: prebattlePlayerId}"/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="13px"/>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'FormationPlayerIcon'; {_isEmptySlot: true, _formationType: 'division'}"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="1px"/>
				<width value="162px"/>
				<hitTest value="false"/>
				<multiline value="false"/>
			</style>
			<styleClass value="$TextDefaultBold"/>
			<bind name="class" value="tkStatus	? '$FontColorTeamkiller' : '$FontColorGrey'"/>
			<bind name="text" value="nickName"/>
		</block>
	</block>
	<block className="FormationReadySwitcher">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; selectedBattle.type"/>
		<bind name="watchDH" value="'readyButtonDenyReasons'; ['battleTypeEntity.battleType.evDisableReasonChanged']; battleTypeEntity.battleType.readyButtonReasons"/>
		<block className="tab_bar_bg" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<marginLeft value="2px"/>
				<marginRight value="2px"/>
			</style>
			<block className="DivisionStatusTransition">
				<block>
					<style>
						<position value="absolute"/>
					</style>
					<bind name="transition" value="divisionData.isReady == false; 0.3; {x : 0}; {x : 94}; {x : 0}; 2"/>
					<bind name="fade" value="divisionData.isReady == false; 0.3; {alpha: 1}; {alpha: 0}; {alpha: 0}; 0; 0.3"/>
					<block className="status_transition_element" type="native">
						<style>
							<marginTop value="2px"/>
							<height value="23px"/>
						</style>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
					</style>
					<bind name="transition" value="divisionData.isReady == true; 0.3; {x : 94}; {x : 0}; {x : 94}; 2"/>
					<bind name="fade" value="divisionData.isReady == true; 0.3; {alpha: 1}; {alpha: 0}; {alpha: 0}; 0; 0.3"/>
					<block className="status_transition_element" type="native">
						<style>
							<marginTop value="2px"/>
							<height value="23px"/>
						</style>
					</block>
				</block>
			</block>
			<bind name="watch" value="'isReadyBtnEnabled'; (readyButtonDenyReasons.length == 0) ? true : false"/>
			<block>
				<bind name="name" value="divisionData.isReady ? 'isReadyDivision' : 'isNotReadyDivision'"/>
				<bind name="tooltip" value="'MultipleWarningsTooltip'; isReadyBtnEnabled ? null : {_warningsArr: readyButtonDenyReasons}"/>
				<bind name="tooltip" value="'FormationReadyButtonTooltip'; isReadyBtnEnabled ? {} : null; 0"/>
				<style>
					<width value="92px"/>
					<height value="27px"/>
				</style>
				<block className="status_ready_item" type="native">
					<bind name="name" value="'readyDivision'"/>
					<styleClass value="$Fullsize"/>
					<bind name="style" value="'colorMatrixFilter'; isReadyBtnEnabled ? '0 0 0 0' : '0 -100 0 -40'"/>
					<bind name="style" value="'mouseEnabled'; (!(divisionData.isReady) &amp;&amp; isReadyBtnEnabled)"/>
					<bind name="label" value="toUpperCase(tr('IDS_READY'))"/>
					<bind name="action" value="'buttonClick'; 'setIsReadyInDivision'; {isReady: true}"/>
					<bind name="selected" value="divisionData.isReady"/>
				</block>
			</block>
			<block className="divider_v" type="native">
				<style>
					<height value="27px"/>
				</style>
			</block>
			<block>
				<bind name="tooltip" value="'FormationNotReadyButtonTooltip'; {}; 0"/>
				<style>
					<width value="92px"/>
					<height value="27px"/>
				</style>
				<block className="status_not_ready_item" type="native">
					<bind name="name" value="'notReadyDivision'"/>
					<styleClass value="$Fullsize"/>
					<bind name="style" value="'mouseEnabled'; divisionData.isReady"/>
					<bind name="label" value="toUpperCase(tr('IDS_NOT_READY'))"/>
					<bind name="action" value="'buttonClick'; 'setIsReadyInDivision'; {isReady: false}"/>
					<bind name="selected" value="!(divisionData.isReady)"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="FormationShipClassesStatus">
		<bind name="firstEntityDH" value="'preBattleEntity'; CC.preBattle"/>
		<bind name="watchDH" value="'shipClassesCurCount'; ['preBattleEntity.preBattle.evShipClassesCountChanged']; preBattleEntity.preBattle.shipClassesCount"/>
		<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
		<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
		<bind name="primaryEntityDH" value="'operationEntity'; CC.operation; chosenOperationId"/>
		<bind name="collectionDH" value="CC.battleType; 'selectedBattleTypes'; 'selected'"/>
		<bind name="entityDH" value="'selectedBattleTypeEntity'; selectedBattleTypes[0].id"/>
		<bind name="watch" value="'shipTypeClassesRestrictions'; ((selectedBattleTypeEntity.battleType.type == BattleTypes.PVE_BATTLE)	? operationEntity.shipRestriction.filters
																														: selectedBattleTypeEntity.shipRestriction.filters)"/>
		<style>
			<height value="24px"/>
		</style>
		<block>
			<style>
				<alpha value="0.8"/>
				<marginTop value="6px"/>
			</style>
			<bind name="instance" value="'FormationShipClassStatus'; {	_type: ShipTypes.AircraftCarrier,
														_curCount: shipClassesCurCount[ShipTypes.AircraftCarrier],
														_maxCount: shipTypeClassesRestrictions[ShipTypes.AircraftCarrier][1]}"/>
			<bind name="instance" value="'FormationShipClassStatus'; {	_type: ShipTypes.BattleShip,
														_curCount: shipClassesCurCount[ShipTypes.BattleShip],
														_maxCount: shipTypeClassesRestrictions[ShipTypes.BattleShip][1]}"/>
			<bind name="instance" value="'FormationShipClassStatus'; {	_type: ShipTypes.Cruiser,
														_curCount: shipClassesCurCount[ShipTypes.Cruiser],
														_maxCount: shipTypeClassesRestrictions[ShipTypes.Cruiser][1]}"/>
			<bind name="instance" value="'FormationShipClassStatus'; {	_type: ShipTypes.Destroyer,
														_curCount: shipClassesCurCount[ShipTypes.Destroyer],
														_maxCount: shipTypeClassesRestrictions[ShipTypes.Destroyer][1]}"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="FormationShipClassStatus">
		<style>
			<flow value="horizontal"/>
			<backgroundColor value="0x01000000"/>
		</style>
		<bind name="style" value="'marginRight'; ((_type != ShipTypes.Destroyer) ? '12px' : '0px')"/>
		<bind name="watch" value="'curCountInstruction'; (tr('IDS_CUR_COUNT_' + toUpperCase(_type) + '_IN_DIVISION') + tr('IDS_COLON') + ' ' + _curCount)"/>
		<bind name="watch" value="'maxCountInstruction'; (_maxCount == 0)	? tr('IDS_NO_MAX_COUNT_' + toUpperCase(_type) + '_IN_DIVISION') :
										(_maxCount == -1)	? tr('IDS_NO_COUNT_' + toUpperCase(_type) + '_IN_DIVISION')
															: tr('IDS_MAX_COUNT_' + toUpperCase(_type) + '_IN_DIVISION') + tr('IDS_COLON') + ' ' + _maxCount)"/>
		<bind name="watch" value="'maxCountInstructionClass'; (_maxCount != 0 &amp;&amp; _curCount &gt; _maxCount) ? '$FontColorUnready' : '$FontColorWhite'"/>
		<bind name="tooltip" value="'MouseInstructionTooltip';	(_maxCount == -1 &amp;&amp; _curCount == 0)	? 	{	_multiParagraphArray:	[	{_paragraphText: maxCountInstruction, _leading: -1, _class: maxCountInstructionClass}],
																							_maxWidth: 380, _marginBottom: '1px', _marginBottomParagraphs: '9px'}
																				:	{	_multiParagraphArray:	[	{_paragraphText: curCountInstruction, _leading: -1, _class: '$FontColorWhite'},
																													{_paragraphText: maxCountInstruction, _leading: -1, _class: maxCountInstructionClass}],
																						_maxWidth: 380, _marginBottom: '1px', _marginBottomParagraphs: '9px'}"/>
		<block>
			<style>
				<marginTop value="1px"/>
			</style>
			<bind name="style" value="'marginLeft'; ((_type == ShipTypes.Destroyer) ? '-1px' : '0px')"/>
			<bind name="style" value="'alpha'; (_maxCount == -1) ? 0.4 : 1"/>
			<block className="icon_ship" type="native">
				<bind name="gotoAndStop!" value="_type"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_maxCount != -1) || (_curCount &gt; 0)"/>
			<bind name="style" value="'marginLeft'; ((_type == ShipTypes.Destroyer) ? '-1px' : (2+'px'))"/>
			<block>
				<style>
					<marginRight value="2px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold17NM"/>
					<bind name="class" value="	_curCount == _maxCount &amp;&amp; _maxCount &gt; 0		? '$FontColorAlmostBlack' :
								(_maxCount != 0 &amp;&amp; _curCount &gt; _maxCount)	? '$FontColorUnready'
																			: $None"/>
					<bind name="class" value="_curCount == _maxCount &amp;&amp; _maxCount &gt; 0 ? '$FontDropShadowWhite' : $FontDropShadowFilter1"/>
					<bind name="text" value="_curCount"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="(_maxCount &gt; 0)"/>
				<style>
					<marginTop value="1px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBoldNM"/>
					<bind name="class" value="	_curCount == _maxCount &amp;&amp; _maxCount &gt; 0			? '$FontColorAlmostBlack' :
								(_maxCount &gt; 0 &amp;&amp; _curCount &gt; _maxCount)		? '$FontColorUnready'
																				: $None"/>
					<bind name="class" value="_curCount == _maxCount &amp;&amp; _maxCount &gt; 0 ? '$FontDropShadowWhite' : $FontDropShadowFilter1"/>
					<bind name="text" value="'/' + _maxCount"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="FormationInviteListItem">
		<style>
			<width value="100%"/>
		</style>
		<bind name="style" value="'height'; _height ? _height : '100%'"/>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; {_multiParagraphArray: [{_paragraphText: 'IDS_HINT_INVITE_PLAYERS', _class: '$TextDefault'}], _maxWidth: 270}"/>
			<bind name="tooltip" value="'DivisionEntranceInfotip'; {}; TooltipBehaviour.infotip; null; 'divisionEntranceInfotipIsVisible'"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<bind name="selected" value="divisionEntranceInfotipIsVisible"/>
		</block>
		<block>
			<style>
				<marginLeft value="13px"/>
				<marginRight value="6px"/>
				<marginTop value="2px"/>
				<hitTest value="false"/>
			</style>
			<block className="icon_plus" type="native">
				<styleClass value="$MiddleVAligned"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<style>
					<marginLeft value="2px"/>
				</style>
				<bind name="text" value="'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_DIVISION'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="InvitationItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<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_blurmap5_feather" 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>
		<style>
			<width value="260px"/>
			<height value="123px"/>
			<marginRight value="10px"/>
			<marginBottom value="10px"/>
			<backgroundColor value="0x01000000"/>
		</style>
		<block>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
			<bind name="appear" value="'addedToStage'; 0.3; 0.35; {alpha: 0}; {alpha: 1}; 2"/>
			<styleClass value="$FullsizeAbsolute"/>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<height value="26px"/>
				<backgroundColor value="0x01000000"/>
				<marginBottom value="4px"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="appear" value="'addedToStage'; 0.3; 0.3; {alpha: 0.5, width: 0}; {alpha: 1, width: 260}; 2"/>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.3; 0; {alpha: 0, top: 30}; {alpha: 1, top: 0}"/>
				<style>
					<left value="3px"/>
					<top value="-4px"/>
					<position value="absolute"/>
				</style>
				<block className="icon_formation" type="native">
					<bind name="gotoAndStop!" value="divisionType == 'party' ? 'seeker_party' : 'seeker_division'"/>
				</block>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.15; 0.45; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'PlayerContactItemSimple'; (divisionType != 'party')	? {_level: senderLevel, _rank: senderRank, _playerName: playerName, _tkStatus: tkStatus}
																					: null"/>
				<block type="text">
					<bind name="visible" value="(divisionType == 'party')"/>
					<style>
						<maxWidth value="280"/>
					</style>
					<styleClass value="$TextHeaderBold"/>
					<bind name="text" value="clubName"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="button_close" type="native">
			<bind name="appear" value="'addedToStage'; 0.15; 0.45; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<style>
				<right value="8"/>
				<top value="7px"/>
				<position value="absolute"/>
			</style>
			<bind name="action" value="'buttonClick'; 'rejectDivisionInvitation'; {id: id}"/>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_REJECT'}"/>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.48; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<style>
					<maxWidth value="260"/>
					<textAlign value="center"/>
				</style>
				<bind name="text" value="divisionType == 'party' ? 'IDS_INVITES_YOU_TO_JOIN_PARTY' : 'IDS_INVITES_YOU_TO_JOIN_DIVISION'"/>
			</block>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.51; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="-3px"/>
				<marginBottom value="3px"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<bind name="class" value="'$FontSizeHeader4'"/>
				<bind name="countdown" value="expirationTime; 'countdownText'; 'mm:ss'"/>
				<bind name="pureText" value="'-' + countdownText"/>
			</block>
		</block>
		<block>
			<style>
				<width value="1px"/>
			</style>
			<bind name="appear" value="'addedToStage'; 0.3; 0.3; {alpha: 0, width: 0}; {alpha: 1, width: 260}; 2"/>
			<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="appear" value="'addedToStage'; 0.15; 0.6; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="110px"/>
				<marginTop value="6px"/>
			</style>
			<block className="button_default_small" type="native">
				<bind name="name" value="'acceptInvite'"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="label" value="'IDS_ACCEPT'"/>
				<bind name="action" value="'buttonClick'; 'acceptDivisionInvitation'; {id: id}"/>
			</block>
		</block>
	</block>
	<block className="DHFormationPlayerIcon">
		<bind name="entityDH" value="'entityAccount'; _entityAccountId ? _entityAccountId : $dataRef.ref.id"/>
		<bind name="watchDH" value="'isReady'; ['entityAccount.preBattlePlayerSimple.evStateChanged']; entityAccount.preBattlePlayerSimple.isReady"/>
		<bind name="watchDH" value="'isInBattle'; ['entityAccount.accountStatus.evInBattleChanged']; entityAccount.accountStatus.inBattle"/>
		<bind name="watchDH" value="'isCommander'; ['entityAccount.preBattlePlayerSimple.evIsCommanderChanged']; entityAccount.preBattlePlayerSimple.isCommander"/>
		<bind name="instance" value="'FormationPlayerIcon'; {isCommander: isCommander, isReady: isReady, isInBattle: isInBattle, _formationType: 'division'}"/>
	</block>
	<block className="DivisionHeaderRightClickMenu">
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<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>
		<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="$ContextMenuListItem"/>
			<bind name="visible" value="_isCommander"/>
			<block className="dock_submenu_item" type="native">
				<bind name="request" value="'buttonClick'; 'dismissDivision'; {subtitle : 'IDS_DISMISS_DIVISION_QUESTION'}"/>
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<styleClass value="$Fullsize"/>
				<block type="text">
					<bind name="name" value="'menuDismissDivision'"/>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_DISMISS_DIVISION'"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<bind name="request" value="'buttonClick'; 'leaveDivision'; {subtitle : 'IDS_LEAVE_DIVISION_QUESTION'}"/>
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<styleClass value="$Fullsize"/>
				<block type="text">
					<bind name="name" value="'menuLeaveDivision'"/>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="text" value="'IDS_LEAVE_DIVISION'"/>
				</block>
			</block>
		</block>
	</block>
	<block className="DivisionStatusTransition">
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="divisionData.isReady == false; 0.3; {x : 0}; {x : 94}; {x : 0}; 2"/>
			<bind name="fade" value="divisionData.isReady == false; 0.3; {alpha: 1}; {alpha: 0}; {alpha: 0}; 0; 0.3"/>
			<block className="status_transition_element" type="native">
				<style>
					<marginTop value="2px"/>
					<height value="23px"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="divisionData.isReady == true; 0.3; {x : 94}; {x : 0}; {x : 94}; 2"/>
			<bind name="fade" value="divisionData.isReady == true; 0.3; {alpha: 1}; {alpha: 0}; {alpha: 0}; 0; 0.3"/>
			<block className="status_transition_element" type="native">
				<style>
					<marginTop value="2px"/>
					<height value="23px"/>
				</style>
			</block>
		</block>
	</block>
	<css name="$TextModernizationCostCr">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextModernizationCostGold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextModernizationCostDeficit">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="ModernizationSlotInfotip">
		<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="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<styleClass value="$VerticalInfotipBehaviourCenter"/>
		<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="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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="-13px"/>
				<marginRight value="-13px"/>
				<marginTop value="-9px"/>
				<marginBottom value="-18px"/>
			</style>
		</block>
		<block className="dock_panel_pin" type="native">
			<bind name="gotoAndStop!" value="'up'"/>
			<params>
				<param name="name" value="pinTop"/>
			</params>
			<style>
				<position value="absolute"/>
				<top value="-10px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="350px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="list; 'ModernizationSlotInfotipItem'"/>
			</block>
			<block>
				<bind name="visible" value="!(playerShipInfo.isLocked || playerShipInfo.isInFormation)"/>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorStrongBlueish'"/>
					<text value="IDS_CHOOSE_MODERNIZATION"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="!!(playerShipInfo.isLocked || playerShipInfo.isInFormation)"/>
				<styleClass value="$InfoBlockIndent"/>
				<block className="icon_warning_orange" type="native">
					<style>
						<marginTop value="4px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<maxWidth value="300"/>
					</style>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="playerShipInfo.isInFormation ? (divisionEntranceData.divisionType == 'party')	? 'IDS_SET_UNREADY_PARTY_FIRST_TO_BUY_MODERNIZATION'
																											: 'IDS_SET_UNREADY_DIVISION_FIRST_TO_BUY_MODERNIZATION'
														 : 'IDS_LEAVE_BATTLE_FIRST_TO_BUY_MODERNIZATION'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'down'"/>
				<params>
					<param name="name" value="pinBottom"/>
				</params>
				<style>
					<position value="absolute"/>
					<bottom value="-9"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ModernizationEmptySlotTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<styleClass value="$MouseDisable"/>
		<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>
		<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>
			<style>
				<width value="350px"/>
				<marginTop value="9px"/>
			</style>
			<bind name="repeat" value="list; 'ModernizationSlotInfotipItem'; {_showInTooltip: true}"/>
		</block>
		<block>
			<bind name="visible" value="!(playerShipInfo.isLocked || playerShipInfo.isInFormation)"/>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; { _type: 'left', _instructionText: 'IDS_TOOLTIP_EMPTY_SLOT', _maxWidth: 300 }"/>
		</block>
		<block>
			<bind name="visible" value="(playerShipInfo.isLocked || playerShipInfo.isInFormation)"/>
			<styleClass value="$InfoBlockIndent"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="4px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<maxWidth value="300"/>
				</style>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="playerShipInfo.isInFormation ? (divisionEntranceData.divisionType == 'party')	? 'IDS_SET_UNREADY_PARTY_FIRST_TO_BUY_MODERNIZATION'
																										: 'IDS_SET_UNREADY_DIVISION_FIRST_TO_BUY_MODERNIZATION'
													 : 'IDS_LEAVE_BATTLE_FIRST_TO_BUY_MODERNIZATION'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ModernizationSlotInfotipItem">
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'MODS_COST_Demontage'; 'unmountPrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + modNumericId; 'priceInfoSet'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_INFO + 'SELL_COEF'; 'sellCoef'"/>
		<bind name="var" value="{unmountCost:unmountPrice.prices[0].finalPrice}"/>
		<bind name="catch" value="'selectedPriceChanged'"/>
		<bind name="var" value="{ selectedPriceIndex: 0 }"/>
		<bind name="watch" value="'validSelectedPriceIndex'; selectedPriceIndex &gt;= priceInfoSet.prices.length ? 0 : selectedPriceIndex"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="name" value="title"/>
		<style>
			<width value="100%"/>
			<height value="70px"/>
		</style>
		<block>
			<bind name="tooltip" value="'ModernizationTooltip'; {installed:installed, iconPath: iconPath, title: title, paramsList:paramsList, 
												numInStorage:numInStorage, tooltiptype: 0, priceInfoSet: priceInfoSet, _modId: modId, 
												type:type, description: description}; 0"/>
			<styleClass value="$Fullsize"/>
			<block>
				<bind name="request" value="'click'; !(playerShipInfo.isLocked) ? 'modernizationClicked' : null; {modId:modId, slotId:slotId, selectedCurrency: priceInfoSet.prices[validSelectedPriceIndex].currencyID, selectedPriceIndex: validSelectedPriceIndex}"/>
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<bind name="menu" value="'SelectUnmountTypeInfotip'; !(playerShipInfo.isLocked)	? {sellCoef: sellCoef, numInStorage:numInStorage, installed:installed, modId:modId, slotId:slotId, _unmountPriceInfo: unmountPrice.prices[0], purchasePriceInfo: priceInfoSet.prices[validSelectedPriceIndex], selectedPriceIndex: validSelectedPriceIndex }
																					: null; null; 'selectUnmountTypeInfotipVisible'"/>
					<bind name="selected" value="(installed || selectUnmountTypeInfotipVisible)"/>
					<styleClass value="$Fullsize"/>
					<params>
						<param name="soundSet" value="dropmenu_button"/>
					</params>
					<bind name="action" value="'rollOver'; 'ServerUIDataUSS.setModernizationSeen'; { modId: modId }"/>
				</block>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<position value="absolute"/>
					<marginTop value="10px"/>
				</style>
				<block>
					<style>
						<width value="70px"/>
						<marginTop value="-6px"/>
						<hitTest value="false"/>
					</style>
					<block>
						<bind name="style" value="'backgroundImage'; 'url:' + iconPath"/>
						<styleClass value="$MiddleAligned"/>
						<style>
							<width value="60px"/>
							<height value="60px"/>
							<backgroundStretchX value="true"/>
							<backgroundStretchY value="true"/>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
				<block>
					<bind name="class" value="playerShipInfo.isLocked ? '$MouseDisable' : '$MouseEnable'"/>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="150px"/>
							<marginTop value="-5px"/>
						</style>
						<block type="text">
							<style>
								<width value="100%"/>
								<leading value="-2"/>
								<hitTest value="false"/>
							</style>
							<styleClass value="$TextDefaultBold"/>
							<bind name="text" value="'IDS_TITLE_' + toUpperCase(title)"/>
							<bind name="class" value="installed ? '$FontColorGolden' : '$FontColorWhite'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="class" value="playerShipInfo.isLocked ? '$MouseDisable' : '$MouseEnable'"/>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<right value="10px"/>
			</style>
			<block>
				<style>
					<right value="0px"/>
					<marginTop value="6px"/>
					<width value="24px"/>
					<height value="24px"/>
				</style>
				<bind name="visible" value="installed &amp;&amp; rollOver &amp;&amp; !(playerShipInfo.isLocked)"/>
				<bind name="request" value="'click'; 'actionTypeChanged'; {flag:2, slotId:slotId, modId:modId, selectedCurrency:priceInfoSet.prices[validSelectedPriceIndex].currencyID, selectedPriceIndex: validSelectedPriceIndex}"/>
				<block className="button_cross" type="native">
					<bind name="name" value="'ButtonUnmount'"/>
					<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_INSTRUCTION_MODERNIZATION_UNMOUNT'}], _maxWidth: 250 }"/>
					<params>
						<param name="soundSet" value="dropmenu_button"/>
					</params>
				</block>
			</block>
			<block>
				<bind name="name" value="'installed_' + title"/>
				<style>
					<right value="6px"/>
					<marginTop value="12px"/>
				</style>
				<block className="icon_check" type="native"/>
				<bind name="visible" value="(installed &amp;&amp; !rollOver) || (playerShipInfo.isLocked &amp;&amp; installed)"/>
			</block>
			<block>
				<bind name="name" value="'bought_' + title"/>
				<bind name="visible" value="numInStorage &gt; 0 &amp;&amp; !installed"/>
				<style>
					<right value="0px"/>
					<marginTop value="6px"/>
					<hitTest value="false"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<text value="IDS_IN_WAREHOUSE"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="text" value="numInStorage"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="class" value="$parent.isLocked ? '$MouseDisable' : '$MouseEnable'"/>
			<bind name="visible" value="!installed &amp;&amp; (numInStorage == 0) &amp;&amp; !(_showInTooltip)"/>
			<style>
				<position value="absolute"/>
				<right value="12px"/>
				<marginTop value="5px"/>
			</style>
			<block>
				<style>
					<right value="0"/>
				</style>
				<bind name="instance" value="'AlterablePriceTag'; {_prices: priceInfoSet.prices, _showDiscountTag: true, _selectedPriceIndex: validSelectedPriceIndex}"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<right value="12px"/>
				<marginTop value="6px"/>
			</style>
			<bind name="visible" value="!installed &amp;&amp; (numInStorage == 0) &amp;&amp; _showInTooltip"/>
			<block>
				<style>
					<right value="0px"/>
				</style>
				<bind name="visible" value="priceInfoSet.prices[0].finalPrice &gt; 0"/>
				<bind name="instance" value="'PriceTag'; { priceInfo:priceInfoSet.prices[0], _showDiscountTag:true}"/>
			</block>
			<block>
				<style>
					<marginTop value="3px"/>
				</style>
				<block type="text">
					<style>
						<marginRight value="3px"/>
					</style>
					<bind name="visible" value="(priceInfoSet.prices.length &gt; 1) &amp;&amp; (priceInfoSet.prices[1].finalPrice &gt; 0)"/>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<text value="IDS_OR"/>
				</block>
				<block>
					<bind name="visible" value="(priceInfoSet.prices.length &gt; 1) &amp;&amp; (priceInfoSet.prices[1].finalPrice &gt; 0)"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'PriceTag'; { priceInfo:priceInfoSet.prices[1], _showDiscountTag:true }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<bottom value="0px"/>
				<position value="absolute"/>
			</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 className="ModernizationTooltip">
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="changeDispatch" value="shipId + _modId; 'evCompareChanged'"/>
		<bind name="dispatch" value="'Tooltip.selfOpened'; 'evCompareChanged'"/>
		<bind name="action" value="'evCompareChanged'; 'getShipWithUpgrade'; {id: _modId, type : 'modernization', shipId: shipId}"/>
		<bind name="primaryEntityDH" value="'compareItemEntity'; CC.compareItem; 'modernization_' + _modId"/>
		<bind name="watchDH" value="'modernizationCompare'; ['compareItemEntity.compareItem.evUpdate']; compareItemEntity.dataComponent.data"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="340px"/>
		</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>
			<block>
				<style>
					<width value="100%"/>
					<paddingTop value="8px"/>
					<paddingBottom value="8px"/>
					<paddingLeft value="6px"/>
					<paddingRight value="6px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="6px"/>
						<marginTop value="-1px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBold"/>
						<style>
							<width value="100%"/>
							<leading value="-5"/>
						</style>
						<bind name="text" value="'IDS_TITLE_' + toUpperCase(title)"/>
						<bind name="class" value="installed ? '$FontColorGolden' : '$FontColorWhite'"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<style>
							<width value="100%"/>
							<marginTop value="-4px"/>
						</style>
						<bind name="class" value="installed ? '$FontColorGolden' : '$FontColorWhite'"/>
						<bind name="text" value="'IDS_MODERNIZATION_' + toUpperCase(type)"/>
					</block>
				</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>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<bind name="visible" value="(numInStorage &gt; 0) &amp;&amp; !(installed)"/>
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="text" value="tr('IDS_IN_WAREHOUSE') + ' ' + numInStorage"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="2px"/>
					</style>
					<bind name="visible" value="installed"/>
					<block className="icon_check" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<style>
							<marginLeft value="4px"/>
						</style>
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<text value="IDS_MODERNIZATION_IS_INSTALLED"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="visible" value="numInStorage == 0 &amp;&amp; !(installed)"/>
					<block>
						<bind name="visible" value="priceInfoSet.prices[0].finalPrice &gt; 0"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="instance" value="'PriceTagWithLabel'; { priceInfo:priceInfoSet.prices[0], _showDiscountTag:true, _label: 'IDS_PURCHASE_COST'}"/>
					</block>
					<block type="text">
						<bind name="visible" value="(priceInfoSet.prices.length &gt; 1) &amp;&amp; (priceInfoSet.prices[1].finalPrice &gt; 0)"/>
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<text value="IDS_OR"/>
					</block>
					<block>
						<bind name="visible" value="(priceInfoSet.prices.length &gt; 1) &amp;&amp; (priceInfoSet.prices[1].finalPrice &gt; 0)"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="instance" value="'PriceTag'; { priceInfo:priceInfoSet.prices[1], _showDiscountTag:true }"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</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>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<style>
						<maxWidth value="315"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="text" value="'IDS_DESC_' + toUpperCase(description)"/>
				</block>
			</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>
						<width value="100%"/>
						<marginLeft value="13px"/>
						<marginRight value="13px"/>
						<marginTop value="6px"/>
					</style>
					<bind name="repeat" value="paramsList; 'ModernizationsParams'"/>
				</block>
			</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>
				<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; null; 'tooltipShipParams'; playerShipInfo.params; modernizationCompare; 1; 0; null; 1; 1; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ParamsAfterMount'; !installed &amp;&amp; viewParams.hasDiff ? { _viewParams: 	viewParams,
																									_title: 'IDS_AFTER_MOUNT'}
																								 	: null"/>
			</block>
			<block>
				<bind name="visible" value="!(playerShipInfo.isLocked) &amp;&amp; (tooltiptype!='modalWindow')"/>
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'MouseInstruction'; !installed &amp;&amp; numInStorage == 0 ? { _type: 'left', _instructionText: 'IDS_INSTRUCTION_MODERNIZATION_PURCHASE_AND_INSTALL', _maxWidth: '270'} :
												installed &amp;&amp; tooltiptype == 0	? { _type: 'right', _instructionText: 'IDS_INSTRUCTION_MODERNIZATION_INSTALLED_ITEM', _maxWidth: '270'} :
												installed &amp;&amp; tooltiptype == 1	? { _type: 'left', _instructionText: 'IDS_TOOLTIP_EMPTY_SLOT', _maxWidth: '270'} :
												!installed &amp;&amp; numInStorage &gt; 0	? { _type: 'left', _instructionText: 'IDS_INSTRUCTION_MODERNIZATION_INSTALL', _maxWidth: '270'}
																				: null"/>
			</block>
		</block>
	</block>
	<block className="SelectUnmountTypeInfotip">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="watch" value="'curCurrencyResource'; ((_unmountPriceInfo.currency == 'gold') ? accountGold : accountCredits)"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<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="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>
			<bind name="visible" value="installed"/>
			<style>
				<width value="100%"/>
			</style>
			<block className="dock_submenu_item" type="native">
				<bind name="name" value="'RemoveInSelectUnmountTypeInfotip'"/>
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="request" value="'click'; 'actionTypeChanged'; {flag:2, modId:modId, slotId:slotId, selectedCurrency: purchasePriceInfo.currencyID, selectedPriceIndex: selectedPriceIndex }"/>
				<styleClass value="$ContextMenuListItem"/>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<hitTest value="false"/>
						<right value="6px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<text value="IDS_UNMOUNT"/>
					</block>
					<block>
						<bind name="instance" value="'PriceTag'; { 	priceInfo: _unmountPriceInfo, 
													_showDiscountTag: true, 
													_deficit: _unmountPriceInfo.finalPrice - curCurrencyResource}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block className="dock_submenu_item" type="native">
				<bind name="name" value="'DestroyInSelectUnmountTypeInfotip'"/>
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="request" value="'click'; 'actionTypeChanged'; {flag:8, slotId:slotId, modId:modId, selectedCurrency: purchasePriceInfo.currencyID, selectedPriceIndex: selectedPriceIndex }"/>
				<styleClass value="$ContextMenuListItem"/>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<hitTest value="false"/>
						<right value="6px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<style>
							<hitTest value="false"/>
						</style>
						<text value="IDS_SELL"/>
					</block>
					<block>
						<bind name="instance" value="'PriceTag'; { priceInfo:  {finalPrice: (purchasePriceInfo.finalPrice) * (sellCoef.prices[0].finalPrice), currency: 'credits'}}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="!installed"/>
			<style>
				<width value="100%"/>
			</style>
			<block className="dock_submenu_item" type="native">
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="request" value="'click'; 'actionTypeChanged'; {flag:1, slotId:slotId, modId:modId, selectedCurrency: purchasePriceInfo.currencyID, selectedPriceIndex: selectedPriceIndex }"/>
				<styleClass value="$ContextMenuListItem"/>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<hitTest value="false"/>
						<right value="6px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<text value="IDS_INSTALL"/>
					</block>
					<block>
						<bind name="visible" value="numInStorage == 0"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: purchasePriceInfo, _showDiscountTag:true }"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="SelectModarnizationActionInfotip">
		<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="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="watch" value="'curCurrencyResource'; ((unmountPrice.prices[0].currency == 'gold') ? accountGold : accountCredits)"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'MODS_COST_Demontage'; 'unmountPrice'"/>
		<bind name="var" value="{unmountCost: unmountPrice.prices[0].finalPrice}"/>
		<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="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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-9px"/>
				<marginRight value="-14px"/>
				<marginBottom value="-19px"/>
				<marginLeft value="-14px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="168px"/>
			</style>
			<block className="dock_submenu_item" type="native">
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="dispatch" value="'click'; 'unmountTypeChanged'; {unmountFlag: LobbyConstants.MODERNIZATION_UNSET}"/>
				<bind name="selected" value="$parent.unmountFlag == LobbyConstants.MODERNIZATION_UNSET"/>
				<style>
					<width value="100%"/>
					<height value="24px"/>
				</style>
				<block>
					<style>
						<right value="2px"/>
						<hitTest value="false"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="$parent.unmountFlag == LobbyConstants.MODERNIZATION_UNSET ? '$Bold' : '$None'"/>
						<text value="IDS_UNMOUNT"/>
					</block>
					<block>
						<bind name="instance" value="'PriceTag'; { 	priceInfo: unmountPrice.prices[0], _showDiscountTag: true, 
													_deficit: unmountPrice.prices[0].finalPrice - curCurrencyResource}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
				</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 className="dock_submenu_item" type="native">
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="dispatch" value="'click'; 'unmountTypeChanged'; {unmountFlag: LobbyConstants.MODERNIZATION_SELL}"/>
				<bind name="selected" value="$parent.unmountFlag == LobbyConstants.MODERNIZATION_SELL"/>
				<style>
					<width value="100%"/>
					<height value="24px"/>
				</style>
				<block>
					<bind name="visible" value="action == 0"/>
					<style>
						<right value="4px"/>
						<hitTest value="false"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="$parent.unmountFlag == LobbyConstants.MODERNIZATION_SELL ? '$Bold' : '$None'"/>
						<text value="IDS_SELL"/>
					</block>
					<block>
						<bind name="instance" value="'PriceTag'; {priceInfo: {finalPrice: sellCost, currency: 'credits'}}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="ModernizationsParams">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<marginBottom value="6px"/>
			</style>
			<block type="text">
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="percent &gt; 0 ? '+' + percent + '%' + ' ' + ids
									: percent &lt; 0 	? percent + '%' + ' '+ ids
													: percent == 0 ? ids
																	: ' '"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<css name="$TextShipLineNormal">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextShipLinePremium">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextShipLineBlack">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextMetaHeader">
		<fontFamily value="$WWSDefaultFontBold"/>
		<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="0xFFFFFF"/>
	</css>
	<css name="$TextMetaInfo">
		<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="0xEEEEEE"/>
	</css>
	<css name="$ShipParamTitleWidth">
		<width value="160px"/>
	</css>
	<css name="$ShipParamOnePieceTitleWidth">
		<maxWidth value="160"/>
	</css>
	<css name="$TextShipLinePremiumAccentBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextShipLineBoldAccent">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextShipLinePremiumBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextShipLineBold">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextShipLineBlackAccentBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextShipLineBlackBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextShipHeaderNameGolden21">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="21"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextShipHeaderNameNormal21">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="21"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
	</css>
	<css name="$TextShipHeaderNameBlack21">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="21"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="ShipLineItem">
		<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"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="style" value="'marginTop'; _large ? '7px' : '1px'"/>
			<block className="icon_wreath" type="native">
				<style>
					<position value="absolute"/>
					<left value="-5px"/>
					<top value="-8px"/>
				</style>
				<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
				<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
								shipInfo.isPremium 	? 'premium'
													: 'elite'"/>
			</block>
			<block className="icon_ship" type="native">
				<bind name="gotoAndStop!" value="shipInfo.subtype + (!isOwned ? '_U' : (shipInfo.isPremium || shipInfo.uiSpecial ? '_P' : '')) "/>
			</block>
		</block>
		<block>
			<style>
				<marginTop value="-5px"/>
				<marginLeft value="3px"/>
			</style>
			<bind name="instance" value="'InvertableTextLine'; { _text: shipInfo.levelRome + ' ' + toUpperCase(tr(shipInfo.nameIDS)),
												_invert: !isOwned, 
												_normalClass: (shipInfo.isPremium || shipInfo.uiSpecial ? (_large ? '$TextShipLinePremiumAccentBold' : '$TextShipLinePremiumBold') 
																										: (_large ? '$TextShipLineBoldAccent' : '$TextShipLineBold')), 
												_invertedClass: (_large ? '$TextShipLineBlackAccentBold': '$TextShipLineBlackBold'),
												_width: _width ? _width : '110px',
												_letterSpacing: 0.8}"/>
		</block>
	</block>
	<block className="ShipInfoTabHeader">
		<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"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="instance" value="'NationFlagsBig'; {_width: '300px', _height: '184px', _alpha: 0.5, shipCountry: shipInfo.flagName}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginTop value="12px"/>
				<marginBottom value="12px"/>
			</style>
			<block>
				<block>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SHIP_CLASS'}; 0"/>
					<style>
						<height value="20px"/>
					</style>
					<block className="icon_wreath" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<left value="-3px"/>
						</style>
						<bind name="visible" value="(upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial) &amp;&amp; !_isNotMyShip"/>
						<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
										shipInfo.isPremium 	? 'premium'
															: 'elite'"/>
					</block>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<marginLeft value="2px"/>
						</style>
						<block className="icon_ship" type="native">
							<style>
								<marginBottom value="2px"/>
							</style>
							<bind name="gotoAndStop!" value="_fromCrew 	? (isOwned ? ((shipInfo.isPremium || shipInfo.uiSpecial) ? shipInfo.subtype + '_P' : shipInfo.subtype) : shipInfo.subtype + '_U')
														: inSideCompare &amp;&amp; _isNotMyShip ? shipInfo.subtype
														: ((shipInfo.isPremium || shipInfo.uiSpecial) ? shipInfo.subtype + '_P' : shipInfo.subtype)"/>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: ('IDS корабля: ' + shipInfo.shortName)}; 0"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="3px"/>
					</style>
					<bind name="instance" value="'InvertableTextLine'; { _text: (shipInfo.levelRome) + ' ' + toUpperCase(tr(shipInfo.nameIDS + '_FULL')),
														_invert: _fromCrew ? !isOwned : false, 
														_normalClass: (shipInfo.isPremium || shipInfo.uiSpecial) &amp;&amp; !_isNotMyShip ? '$TextShipHeaderNameGolden21' : '$TextShipHeaderNameNormal21',
														_invertedClass: '$TextShipHeaderNameBlack21' }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<alpha value="0.8"/>
				</style>
				<bind name="watch" value="'shipClass';	(shipInfo.subtype == 'Cruiser') 	? tr('IDS_CRUISER') :
										(shipInfo.subtype == 'AirCarrier')	? tr('IDS_AIRCARRIER') :
										(shipInfo.subtype == 'Battleship') 	? tr('IDS_BATTLESHIP') : 
										(shipInfo.subtype == 'Auxiliary') 	? tr('IDS_AUXILIARY')
																			: tr('IDS_DESTROYER')"/>
				<bind name="instance" value="'InvertableTextLine'; { _text: subst('IDS_SHIP_LEVEL', [], {_shipClass: shipClass, _shipLevel: shipInfo.levelRome}),
													_invert: _fromCrew ? !isOwned : false, 
													_normalClass: shipInfo.isPremium &amp;&amp; !_isNotMyShip ? '$TextShipLinePremium' : '$TextShipLineNormal', 
													_invertedClass: '$TextShipLineBlack' }"/>
			</block>
		</block>
	</block>
	<block className="TitleDefaultMockup">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
		</style>
		<block type="text">
			<style>
				<leading value="-4"/>
				<maxWidth value="184"/>
				<marginRight value="9px"/>
			</style>
			<bind name="class" value="meta ? '$TextMetaHeader' : '$TextMetaInfo'"/>
			<bind name="style" value="'alpha'; meta ? 1 : 0.7"/>
			<bind name="text" value="tr(nameIDS) + ' ' + (title.data.items ? tr(title.data.items[0].textValue) : '')"/>
		</block>
	</block>
	<block className="TitleVertMockup">
		<style>
			<width value="100%"/>
		</style>
		<block type="text">
			<styleClass value="$TextMetaInfo"/>
			<style>
				<leading value="-4"/>
				<width value="184px"/>
				<marginRight value="9px"/>
			</style>
			<bind name="style" value="'alpha'; meta ? 1 : 0.7"/>
			<bind name="text" value="nameIDS"/>
		</block>
		<block type="text">
			<style>
				<leading value="-4"/>
				<maxWidth value="184"/>
				<marginRight value="9px"/>
			</style>
			<styleClass value="$TextMetaInfo"/>
			<style>
				<alpha value="0.7"/>
				<marginTop value="-7px"/>
			</style>
			<bind name="text" value="title.data.items[0].textValue"/>
		</block>
	</block>
	<block className="ShipInfoTabRow">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="watch" value="'id'; id"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="name" value="'param_' + id"/>
		<bind name="dispatch" value="'click'; dockDefaultValues.armourVisibility &amp;&amp; !(excursionOff) ? null : 'onParamRowClicked'; index"/>
		<bind name="tooltip" value="'ShipParamTooltip';{	id: id, meta:meta, secondLevel:secondLevel, tooltipIDS:tooltipIDS, nameIDS:nameIDS,
										_hasExcursion: (!excursionOff &amp;&amp; !(dockDefaultValues.armourVisibility)),
										_isArmour: id == 'armour', _armourOff: _armourOff}"/>
		<bind name="action" value="'click'; (id == 'armour') &amp;&amp; (_armourOff != true) ? (dockDefaultValues.armourVisibility ? 'hideArmour' : 'showArmour') : null"/>
		<bind name="fade" value="!empty &amp;&amp; (isRoot || (!(parent.empty) &amp;&amp; parent.state.active)); 0.15; {alpha: 0, ubScaleY: 0.0}; {alpha: 1, ubScaleY: 1.0}"/>
		<style>
			<width value="100%"/>
		</style>
		<block className="inner_panel" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxHorizontalCorrection"/>
			<styleClass value="$MouseDisable"/>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="visible" value="!(isRoot)"/>
		</block>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$Fullsize"/>
			<styleClass value="$PxHorizontalCorrection"/>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="style" value="'alpha'; (!(isRoot) &amp;&amp; !(excursionOff) &amp;&amp; !(dockDefaultValues.armourVisibility)) || ((id == 'armour') &amp;&amp; (_armourOff != true)) ? 1 : 0"/>
			<bind name="selected" value="state.selected"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<styleClass value="$MouseDisable"/>
			<style>
				<position value="absolute"/>
				<left value="1px"/>
			</style>
			<bind name="instance" value="'StatValueBar'; meta ? {_width: 310,	 						_hasDiff: root.hasDiff,
												_currentValue: root.values[0], 			_diffValue: root.diffData[0].value,
												_isGood: root.diffData[0].isGood, 		_expand: state.active,
												_invert: ident == 'visibility',			rollOver: rollOver,
												viewParams: viewParams} : null"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<position value="absolute"/>
				<bottom value="-1px"/>
			</style>
			<styleClass value="$MouseDisable"/>
			<bind name="visible" value="meta"/>
			<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>
			<styleClass value="$MouseDisable"/>
			<style>
				<width value="100%"/>
				<marginLeft value="26px"/>
				<marginRight value="12px"/>
				<marginTop value="1px"/>
				<marginBottom value="3px"/>
			</style>
			<bind name="style" value="'marginLeft'; secondLevelTooltip ? '12px' : '20px'"/>
			<bind name="style" value="'marginTop'; (viewParams.list[$index - 1].meta || viewParams.list[$index - 1] == null) &amp;&amp; !(meta) ? '5px' : '1px'"/>
			<bind name="style" value="'marginBottom'; viewParams.list[$index + 1].meta || viewParams.list[$index + 1] == null ? '8px' : '3px'"/>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'TitleDefaultMockup';(title == null || titleMockup == 0) ? {meta:meta, isRoot:isRoot, nameIDS:nameIDS,title:title} : null"/>
				<bind name="instance" value="'TitleVertMockup';(title != null &amp;&amp; titleMockup == 1) ? {meta:meta, isRoot:isRoot, nameIDS:nameIDS,title:title} : null"/>
			</block>
			<block>
				<block>
					<style>
						<right value="0"/>
						<position value="absolute"/>
					</style>
					<block>
						<bind name="visible" value="secondLevel.hasDiff ? true : false"/>
						<block type="text">
							<styleClass value="$TextParams"/>
							<style>
								<marginTop value="-1px"/>
								<alpha value="0.55"/>
							</style>
							<text value="("/>
						</block>
						<block className="icon_warning_orange" type="native">
							<styleClass value="$MiddleVAligned"/>
							<style>
								<marginLeft value="-2px"/>
								<marginRight value="-2px"/>
							</style>
						</block>
						<block type="text">
							<styleClass value="$TextParams_tight_left"/>
							<style>
								<marginTop value="-1"/>
							</style>
							<text value=")"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<bind name="instance" value="'ParamElement'; value"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="fade" value="!(isRoot) &amp;&amp; !(excursionOff) &amp;&amp; !(dockDefaultValues.armourVisibility); 0.3; {alpha: 0}; {alpha: 1}"/>
				<style>
					<position value="absolute"/>
					<left value="-15px"/>
					<top value="7px"/>
				</style>
				<block className="icon_camera_off" type="native">
					<style>
						<position value="absolute"/>
					</style>
					<bind name="fade" value="!(state.selected); 0.3; {alpha: 0}; {alpha: 1}"/>
				</block>
				<block className="icon_camera_on" type="native">
					<style>
						<position value="absolute"/>
					</style>
					<bind name="fade" value="state.selected; 0.3; {alpha: 0}; {alpha: 1}"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="((id == 'armour') &amp;&amp; (_armourOff != true))"/>
				<style>
					<position value="absolute"/>
					<left value="-17px"/>
					<top value="6px"/>
				</style>
				<block className="button_armour_switcher_small" type="native">
					<bind name="selected" value="dockDefaultValues.armourVisibility"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="button_expand" type="native">
			<bind name="selected" value="state.active"/>
			<bind name="visible" value="expandable"/>
			<params>
				<param name="toggle" value="true"/>
				<param name="soundSet" value="dropmenu_button"/>
				<param name="focusable" value="false"/>
			</params>
			<style>
				<position value="absolute"/>
				<height value="24px"/>
				<width value="100%"/>
				<marginLeft value="3px"/>
			</style>
		</block>
	</block>
	<block className="ShipDescription">
		<styleClass value="$InfoBlockIndent"/>
		<block>
			<bind name="visible" value="_peculiarity == 'default'"/>
			<style>
				<width value="100%"/>
				<marginTop value="-3px"/>
			</style>
			<block>
				<block type="text">
					<styleClass value="$TextSecondary"/>
					<bind name="text" value="(_isPaperShip ? tr('IDS_PROJECT_YEAR') : tr('IDS_RELEASE_YEAR')) + tr('IDS_COLON')"/>
				</block>
				<block type="text">
					<styleClass value="$TextSecondaryBold"/>
					<bind name="text" value="_shipNameIDS + '_YEAR'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<styleClass value="$AlignRight"/>
				<bind name="visible" value="_isPaperShip != true"/>
				<block type="text">
					<styleClass value="$TextSecondary"/>
					<bind name="text" value="tr('IDS_SHIPS_IN_SERIES') + tr('IDS_COLON')"/>
				</block>
				<block type="text">
					<styleClass value="$TextSecondaryBold"/>
					<bind name="text" value="_shipNameIDS + '_NUMBER'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block type="text">
			<bind name="style" value="'marginTop'; (_peculiarity == 'default') ? '3px' : '-2px' "/>
			<styleClass value="$TextSecondaryBold"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="text" value="_shipNameIDS + '_DESCR'"/>
		</block>
	</block>
	<block className="ShipParamsList">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="repeat" value="viewParams.list; 'ShipInfoTabRow'; {secondLevelTooltip: secondLevelTooltip, viewParams: viewParams, _excursionOff: _excursionOff}"/>
	</block>
	<block className="ShipParamsListView">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="appear" value="'hideParams'; 0.45; 0.0; {alpha: 1.0}; {alpha: 0.0}"/>
			<bind name="appear" value="'showParams'; 0.3; 0.10; {alpha: 0.0}; {alpha: 1.0}"/>
			<block className="stat_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="appear" value="'hideParams'; 0.45; 0.0; {alpha: 1.0, top: 0}; {alpha: 0.0, top: -10}"/>
			<bind name="appear" value="'showParams'; 0.3; 0.10; {alpha: 0.0, top: 10}; {alpha: 1.0, top: 0}"/>
			<bind name="repeat" value="viewParams.list; 'ShipInfoTabRow'; {secondLevelTooltip: secondLevelTooltip, viewParams: viewParams, _armourOff: _armourOff}"/>
		</block>
	</block>
	<block className="ShipSilhouetteRightAligned">
		<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"/>
		<style>
			<width value="122px"/>
			<height value="22px"/>
		</style>
		<bind name="scaleX" value="0.4"/>
		<bind name="scaleY" value="0.4"/>
		<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathPreview"/>
	</block>
	<block className="ShipPanel">
		<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="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"/>
		<bind name="primaryEntityDH" value="'compareItemEntity'; CC.compareItem; 'testShipParams'"/>
		<bind name="watchDH" value="'testShipParams'; ['compareItemEntity.compareItem.evUpdate']; compareItemEntity.dataComponent.data"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 450.0; shipId; 'fullShipParams'; playerShipInfo != null ? playerShipInfo.params : shipInfo.params; testShipParams; 1; 0; null; 0; 1; 1; excursionOff"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + shipId; 'shipExplorePrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + shipId; 'shipBuyPrice'"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<bind name="watch" value="'showPanel'; _crewInset != 1 &amp;&amp; ((isOwned &amp;&amp; (_dockInset == LobbyConstants.DOCK)) || _dockInset == LobbyConstants.SHIP_MODULES || _dockInset == LobbyConstants.SHIP_EXTERIOR)"/>
		<bind name="watch" value="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
		<bind name="watch" value="'excursionOff'; (testShipParams != null || (isOwned &amp;&amp; playerShipInfo.isLocked) || !(shipInfoSlim.isDownloaded))"/>
		<bind name="fade" value="showPanel; showPanel ? 0.3 : 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		<bind name="updateAllStates!" value="showPanel"/>
		<bind name='file' value="'WiPIconExist';'../unbound/flash/WG_SPb_WoWs_WIP-icon.png'"/>
		<params>
			<param name="name" value="panelShipStats"/>
		</params>
		<styleClass value="$ShipTechStats"/>
		<style>
			<top value="92px"/>
		</style>
		<bind name="style" value="'marginBottom'; isSmallCarouselView	?	(carouselRows == 1) ? '353px' :
															(carouselRows == 2) ? '416px'
																				: '290px'
														: '290px'"/>
		<block>
			<style>
				<height value="100%f"/>
				<width value="100%"/>
			</style>
			<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="notification_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="stat_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ShipInfoTabHeader'; { shipId: shipId }"/>
				</block>
				<block>
					<bind name="visible" value="!isOwned"/>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="-40px"/>
						<marginBottom value="-20px"/>
						<width value="214px"/>
						<height value="126px"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathPreview"/>
				</block>
				<block>
					<bind name="visible" value="!shipInfo.isEventLike"/>
					<bind name="style" value="'marginTop'; isOwned ? '-15px' : '0px'"/>
					<style>
						<width value="100%"/>
					</style>
					<block className="ShipResearchBlock">
						<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
						<bind name="watchDH" value="'accountGold';	['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
						<styleClass value="$InfoBlockIndent"/>
						<block>
							<styleClass value="$MiddleAligned"/>
							<bind name="instance" value="'PriceTagWithLabel'; isOwned ? null
														: (!(upgradableShipInfo.isExplored) &amp;&amp; !(upgradableShipInfo.dependencyResearched)) || (!(upgradableShipInfo.isExplored) &amp;&amp; upgradableShipInfo.expDeficit &gt; 0)? { priceInfo: { finalPrice: upgradableShipInfo.totalCostXP, currency: 'exp' }, _label: 'IDS_RESEARCH_COST', _medium : true}
														: upgradableShipInfo.isExplored &amp;&amp; upgradableShipInfo.creditsDeficit &gt; 0 &amp;&amp; !(shipInfo.isPremium) ? { priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _medium : true}
														: upgradableShipInfo.isExplored &amp;&amp; shipInfo.isPremium &amp;&amp; (accountGold - shipBuyPrice.prices[0].finalPrice &lt; 0) ? {priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _medium : true }
														: null"/>
						</block>
						<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
						<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
						<block>
							<style>
								<width value="220px"/>
							</style>
							<styleClass value="$MiddleAligned"/>
							<bind name="action" value="'click'; (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? 'forceCreateAccount' : null"/>
							<bind name="instance" value="'DefaultButtonCostMedium'; isOwned ? null
													: !(upgradableShipInfo.dependencyResearched || upgradableShipInfo.isExplored) ? null
													: !(upgradableShipInfo.isExplored) &amp;&amp; (upgradableShipInfo.expDeficit &lt;= 0) &amp;&amp; ((shipInfo.group == 'upgradeable') || (shipInfo.group == 'upgradeableExclusive')) ? { _label: toUpperCase(tr('IDS_DO_RESEARCH')), priceInfo: (upgradableShipInfo.totalCostXP == shipExplorePrice.prices[0].finalPrice ? shipExplorePrice.prices[0] : { finalPrice: upgradableShipInfo.totalCostXP, currency: 'exp' }), _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'researchShip', _actionParams: { shipId: shipInfo.id}, _enabled: ( upgradableShipInfo.dependencyResearched &amp;&amp; (upgradableShipInfo.expDeficit &lt;= 0)), _showDiscountTag:true, _name: 'ButtonShipResearch' }
													: (upgradableShipInfo.isExplored) &amp;&amp; (upgradableShipInfo.creditsDeficit &lt;= 0) &amp;&amp; !(shipInfo.isPremium) ? { _label: toUpperCase(tr('IDS_DO_PURCHASE')), priceInfo: shipBuyPrice.prices[0], _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'purchaseShip', _actionParams: { shipId: shipInfo.id}, _enabled: (upgradableShipInfo.creditsDeficit &lt;= 0), _showDiscountTag:true, _name: 'ButtonShipPurchase' }
													: upgradableShipInfo.isExplored &amp;&amp; shipInfo.isPremium  &amp;&amp; (accountGold - shipBuyPrice.prices[0].finalPrice &gt;= 0) ? { _label: toUpperCase(tr('IDS_DO_PURCHASE')), priceInfo: shipBuyPrice.prices[0], _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'purchaseShip', _actionParams: { shipId: shipInfo.id}, _enabled: ((accountGold - shipBuyPrice.prices[0].finalPrice) &gt;= 0), _showDiscountTag:true, _name: 'ButtonShipPurchase' }
													: null "/>
						</block>
						<block>
							<styleClass value="$MiddleAligned"/>
							<bind name="instance" value="'StatusLineWithIcon'; upgradableShipInfo.dependencyResearched || upgradableShipInfo.isExplored 	? null
																												: { _text: 'IDS_RESEARCH_PREVIOUS_SHIPS', _positive: false} "/>
						</block>
						<block>
							<styleClass value="$MiddleAligned"/>
							<bind name="instance" value="'PriceDeficit'; isOwned 	? null
													: !(upgradableShipInfo.dependencyResearched) ? null
													: !(upgradableShipInfo.isExplored) &amp;&amp; upgradableShipInfo.expDeficit &gt; 0 ? { priceInfo: { finalPrice: upgradableShipInfo.totalCostXP, currency: 'exp' }, _deficit: upgradableShipInfo.expDeficit,  _tooltipText: 'IDS_TOOLTIP_NO_XP'}
													: upgradableShipInfo.isExplored &amp;&amp; upgradableShipInfo.creditsDeficit &gt; 0 &amp;&amp; !(shipInfo.isPremium) ? { priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _deficit: upgradableShipInfo.creditsDeficit, _tooltipText: 'IDS_TOOLTIP_NO_CREDITS'}
													: upgradableShipInfo.isExplored &amp;&amp; shipInfo.isPremium &amp;&amp; (accountGold - shipBuyPrice.prices[0].finalPrice)  &lt; 0 ? {priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _deficit: -(accountGold - shipBuyPrice.prices[0].finalPrice), _tooltipText: 'IDS_TOOLTIP_NO_GOLD' }
													: null"/>
						</block>
						<block>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SHIP_EXPERIENCE_USAGE'}; 0"/>
							<bind name="instance" value="'CurrentXPLarge'; isOwned ? { _exp: playerShipInfo.exp, _label: 'IDS_SHIP_EXPERIENCE'} : null "/>
						</block>
					</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>
				<bind name="feature" value="13; ''"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ShipInfoCrewBlock'; isOwned &amp;&amp; (feature_13 != 'locked') ? {_crewId: playerShipInfo.crewId}	: null"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<height value="31px"/>
					</style>
					<bind name="instance" value="'ArmourDisplaySwitcher'; {}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ShipInfoArmourBlock'; {shipId: shipId}"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<bottom value="0"/>
						<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="watch" value="'showStats'; !(shipInfo.isEventLike) || isOwned)"/>
			<bind name="watch" value="'showLabelComingSoon'; shipInfo.isEventLike &amp;&amp; (shipInfo.group != 'event')"/>
			<block>
				<style>
					<height value="100%f"/>
					<width value="100%"/>
					<overflow value="scroll"/>
				</style>
				<styleClass value="$DefaultScrollBar"/>
				<bind name="instance" value="'ShipParamsListView'; !WiPIconExist ? null : { viewParams: viewParams }"/>
				<block>
					<bind name="visible" value="!showStats"/>
					<style>
						<width value="100%"/>
						<height value="100%"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
						<position value="absolute"/>
						<hitTest value="false"/>
					</style>
					<bind name="style" value="'alpha'; 0.7"/>
					<bind name="style" value="'backgroundImage'; 'url:../unbound/flash/WG_SPb_WoWs_WIP-icon.png'"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="showLabelComingSoon"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'LabelComingSoon'; { _showTestSampleLabel: showStats }"/>
			</block>
		</block>
	</block>
	<block className="LabelComingSoon">
		<block>
			<style>
				<width value="100%"/>
				<height value="80px"/>
			</style>
			<block className="icon_issued" type="native">
				<style>
					<marginLeft value="150px"/>
					<marginTop value="40px"/>
				</style>
				<bind name="rotation" value="-3"/>
				<innerBind elementName="item.item" name="text" value="_showTestSampleLabel ? toUpperCase(tr('IDS_TEST_SAMPLE')) : toUpperCase(tr('IDS_UNAVAILABLE_TO_DISPLAY_SOON')) : "/>
				<bind name="gotoAndPlay!" value="'issued'"/>
			</block>
		</block>
	</block>
	<block className="ShipResearchBlock">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';	['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<styleClass value="$InfoBlockIndent"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceTagWithLabel'; isOwned ? null
														: (!(upgradableShipInfo.isExplored) &amp;&amp; !(upgradableShipInfo.dependencyResearched)) || (!(upgradableShipInfo.isExplored) &amp;&amp; upgradableShipInfo.expDeficit &gt; 0)? { priceInfo: { finalPrice: upgradableShipInfo.totalCostXP, currency: 'exp' }, _label: 'IDS_RESEARCH_COST', _medium : true}
														: upgradableShipInfo.isExplored &amp;&amp; upgradableShipInfo.creditsDeficit &gt; 0 &amp;&amp; !(shipInfo.isPremium) ? { priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _medium : true}
														: upgradableShipInfo.isExplored &amp;&amp; shipInfo.isPremium &amp;&amp; (accountGold - shipBuyPrice.prices[0].finalPrice &lt; 0) ? {priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _medium : true }
														: null"/>
		</block>
		<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
		<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
		<block>
			<style>
				<width value="220px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<bind name="action" value="'click'; (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? 'forceCreateAccount' : null"/>
			<bind name="instance" value="'DefaultButtonCostMedium'; isOwned ? null
													: !(upgradableShipInfo.dependencyResearched || upgradableShipInfo.isExplored) ? null
													: !(upgradableShipInfo.isExplored) &amp;&amp; (upgradableShipInfo.expDeficit &lt;= 0) &amp;&amp; ((shipInfo.group == 'upgradeable') || (shipInfo.group == 'upgradeableExclusive')) ? { _label: toUpperCase(tr('IDS_DO_RESEARCH')), priceInfo: (upgradableShipInfo.totalCostXP == shipExplorePrice.prices[0].finalPrice ? shipExplorePrice.prices[0] : { finalPrice: upgradableShipInfo.totalCostXP, currency: 'exp' }), _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'researchShip', _actionParams: { shipId: shipInfo.id}, _enabled: ( upgradableShipInfo.dependencyResearched &amp;&amp; (upgradableShipInfo.expDeficit &lt;= 0)), _showDiscountTag:true, _name: 'ButtonShipResearch' }
													: (upgradableShipInfo.isExplored) &amp;&amp; (upgradableShipInfo.creditsDeficit &lt;= 0) &amp;&amp; !(shipInfo.isPremium) ? { _label: toUpperCase(tr('IDS_DO_PURCHASE')), priceInfo: shipBuyPrice.prices[0], _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'purchaseShip', _actionParams: { shipId: shipInfo.id}, _enabled: (upgradableShipInfo.creditsDeficit &lt;= 0), _showDiscountTag:true, _name: 'ButtonShipPurchase' }
													: upgradableShipInfo.isExplored &amp;&amp; shipInfo.isPremium  &amp;&amp; (accountGold - shipBuyPrice.prices[0].finalPrice &gt;= 0) ? { _label: toUpperCase(tr('IDS_DO_PURCHASE')), priceInfo: shipBuyPrice.prices[0], _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'purchaseShip', _actionParams: { shipId: shipInfo.id}, _enabled: ((accountGold - shipBuyPrice.prices[0].finalPrice) &gt;= 0), _showDiscountTag:true, _name: 'ButtonShipPurchase' }
													: null "/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'StatusLineWithIcon'; upgradableShipInfo.dependencyResearched || upgradableShipInfo.isExplored 	? null
																												: { _text: 'IDS_RESEARCH_PREVIOUS_SHIPS', _positive: false} "/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceDeficit'; isOwned 	? null
													: !(upgradableShipInfo.dependencyResearched) ? null
													: !(upgradableShipInfo.isExplored) &amp;&amp; upgradableShipInfo.expDeficit &gt; 0 ? { priceInfo: { finalPrice: upgradableShipInfo.totalCostXP, currency: 'exp' }, _deficit: upgradableShipInfo.expDeficit,  _tooltipText: 'IDS_TOOLTIP_NO_XP'}
													: upgradableShipInfo.isExplored &amp;&amp; upgradableShipInfo.creditsDeficit &gt; 0 &amp;&amp; !(shipInfo.isPremium) ? { priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _deficit: upgradableShipInfo.creditsDeficit, _tooltipText: 'IDS_TOOLTIP_NO_CREDITS'}
													: upgradableShipInfo.isExplored &amp;&amp; shipInfo.isPremium &amp;&amp; (accountGold - shipBuyPrice.prices[0].finalPrice)  &lt; 0 ? {priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _deficit: -(accountGold - shipBuyPrice.prices[0].finalPrice), _tooltipText: 'IDS_TOOLTIP_NO_GOLD' }
													: null"/>
		</block>
		<block>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SHIP_EXPERIENCE_USAGE'}; 0"/>
			<bind name="instance" value="'CurrentXPLarge'; isOwned ? { _exp: playerShipInfo.exp, _label: 'IDS_SHIP_EXPERIENCE'} : null "/>
		</block>
	</block>
	<css name="$TextPriceDefault">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextPriceDefaultGold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextPriceDefaultFreeExp">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0xCCFF99"/>
	</css>
	<css name="$TextPriceDefaultDeficit">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextPriceLarge">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextPriceLargeGold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextPriceLargeFreeExp">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0xCCFF99"/>
	</css>
	<css name="$TextPriceMedium">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextPriceMediumGold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextPriceMediumFreeExp">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0xCCFF99"/>
	</css>
	<css name="$TextPriceMediumDeficit">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextPriceLargeDeficit">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="25"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<css name="$TextPriceSmall">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextPriceSmallGold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0xFFCC66"/>
	</css>
	<css name="$TextPriceSmallFreeExp">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0xCCFF99"/>
	</css>
	<css name="$TextPriceSmallDeficit">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="13"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="PriceTag">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<bind name="visible" value="priceInfo.basePrice != null &amp;&amp; (priceInfo.finalPrice != priceInfo.basePrice) &amp;&amp; (_showDiscountTag == true)"/>
			<bind name="tooltip" value="'DiscountTooltip'; { priceInfo: priceInfo, _customLabel: _customLabel, _isExternal: _isExternal }"/>
			<bind name="name" value="'icon_discount_' + priceInfo.id"/>
			<block className="icon_discount" type="native">
				<style>
					<marginTop value="4px"/>
					<marginRight value="-3px"/>
				</style>
				<bind name="gotoAndStop!" value="_large || _medium ? 'large' : 'normal'"/>
			</block>
		</block>
		<block>
			<bind name="name" value="'price_' + priceInfo.id"/>
			<bind name="instance" value="'InvertableTextLine'; { _name: _name,
												_text: (_isNextPriceInARow ? (tr('IDS_AND') + ' ') : '') + format(priceInfo.finalPrice, -1) + (priceInfo.currency == 'money' ? ' ' + tr(priceInfo.currencyIds) : ''), 
												_invert: _deficit &gt; 0, 
												_normalClass:
															_large		?	(priceInfo.currency == 'gold' ? '$TextPriceLargeGold' : priceInfo.currency == 'freexp' ? '$TextPriceLargeFreeExp' : '$TextPriceLarge')
															: _medium 	? 	(priceInfo.currency == 'gold' ? '$TextPriceMediumGold' : priceInfo.currency == 'freexp' ? '$TextPriceMediumFreeExp' : '$TextPriceMedium')
															: _small		?	(priceInfo.currency == 'gold' ? '$TextPriceSmallGold' : priceInfo.currency == 'freexp' ? '$TextPriceSmallFreeExp' : '$TextPriceSmall')
															: (priceInfo.currency == 'gold' ? '$TextPriceDefaultGold' : priceInfo.currency == 'freexp' ? '$TextPriceDefaultFreeExp' :'$TextPriceDefault'), 
												_invertedClass:
															_large		?	'$TextPriceLargeDeficit'
															: _medium	?	'$TextPriceMediumDeficit'
															: _small	?	'$TextPriceSmallDeficit'
															: '$TextPriceDefaultDeficit' }"/>
		</block>
		<block>
			<bind name="visible" value="!_duplicateCurrency"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'Currency'; (priceInfo.currency != 'money') ? { _currency: priceInfo.currency, _large: _large, _medium: _medium } : null"/>
		</block>
		<block>
			<bind name="visible" value="_duplicateCurrency == true"/>
			<bind name="instance" value="'DuplicateCurrency'; { _large: _large }"/>
		</block>
	</block>
	<block className="Currency">
		<bind name="style" value="'marginBottom'; _large || _medium ? '1px' : '0px'"/>
		<block className="icon_currency" type="native">
			<bind name="gotoAndStop!" value="_large || _medium ? _currency + '_large' : _currency"/>
		</block>
	</block>
	<block className="DuplicateCurrency">
		<bind name="style" value="'marginTop'; _large ? '5px' : '0px'"/>
		<bind name="style" value="'backgroundImage'; 'url:../collections/duplicate_icons/duplicate_medium.png'"/>
	</block>
	<block className="AlterablePriceTag">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];		resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];		resourceEntity.accountResource.credits"/>
		<bind name="watchDH" value="'accountFreeXP';		['resourceEntity.accountResource.evChangedFreeXP'];		resourceEntity.accountResource.freeXP"/>
		<bind name="watchDH" value="'eliteXP';			['resourceEntity.accountResource.evChangedEliteXP'];	resourceEntity.accountResource.eliteXP"/>
		<bind name="watch" value="'metaXP'; eliteXP + accountFreeXP"/>
		<bind name="watch" value="'curCurrency'; _prices[_selectedPriceIndex].currency"/>
		<bind name="watch" value="'curCurrencyResource'; curCurrency == 'gold'		? accountGold :
										curCurrency ==	'eliteXP'	? metaXP
																	: accountCredits"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<bind name="visible" value="(_prices[_selectedPriceIndex].basePrice != null) &amp;&amp; (_prices[_selectedPriceIndex].finalPrice != _prices[_selectedPriceIndex].basePrice) &amp;&amp; _showDiscountTag == true"/>
			<bind name="tooltip" value="'DiscountTooltip'; { priceInfo: _prices[_selectedPriceIndex] }"/>
			<block className="icon_discount" type="native">
				<style>
					<marginRight value="-6px"/>
				</style>
				<bind name="gotoAndStop!" value="_large || _medium ? 'large' : 'normal'"/>
			</block>
		</block>
		<block className="button_dock" type="native">
			<style>
				<flow value="horizontal"/>
			</style>
			<bind name="style" value="'hitTest'; _prices.length &gt; 1"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; ( _tooltipText != null )	? { _multiParagraphArray:  [{_paragraphText: _tooltipText}],
																				_mouseInstructions:	[{_type: 'left', _instructionText: 'IDS_HINT_CURRENCY_CHOICE'} ], _maxWidth: 250 }
																			: { _mouseInstructions:	[{_type: 'left', _instructionText: 'IDS_HINT_CURRENCY_CHOICE'} ], _maxWidth: 250 }"/>
			<bind name="tooltip" value="'PriceSelectionMenu'; {_prices: _prices, _showDiscountTag: _showDiscountTag, _selectedPriceIndex: _selectedPriceIndex, _small: _small, _medium: _medium, _large: _large,}; TooltipBehaviour.verticalInfoWidget"/>
			<block>
				<style>
					<marginTop value="0px"/>
					<marginBottom value="3px"/>
					<marginLeft value="3px"/>
					<marginRight value="1px"/>
					<hitTest value="false"/>
				</style>
				<bind name="instance" value="'AdjustablePriceTag'; { 	_prices: _prices[_selectedPriceIndex],
														_showDiscountTag: false, 
														_small: _small, _medium: _medium, _large: _large,
														_customLabel: _customLabel, _isExternal: _isExternal }"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MouseDisable"/>
				<bind name="visible" value="_prices.length &gt; 1"/>
				<style>
					<marginRight value="3px"/>
					<hitTest value="false"/>
				</style>
				<block className="icon_navigate" type="native">
					<bind name="gotoAndStop!" value="'down'"/>
				</block>
			</block>
		</block>
	</block>
	<block className="AdjustablePriceTag">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="watch" value="'_isMixedPrice'; _prices.mixPrice ? true : false"/>
		<bind name="instance" value="'PriceTagWithDeficit'; !_isMixedPrice 	? { priceInfo: _prices, 
																_showDiscountTag: _showDiscountTag, 
																_small: _small, _medium: _medium, _large: _large,
																_customLabel: _customLabel, _isExternal: _isExternal } 
															: null"/>
		<bind name="repeat" value="_isMixedPrice ? _prices.mixPrice : 0; 'MixedPriceTag'; {	_priceInfos: _prices.mixPrice, 
																			_large: _large, _medium: _medium, _small: _small, 
																			_showDiscountTag: _showDiscountTag, 
																			_customLabel: _customLabel, _isExternal: _isExternal } : null"/>
	</block>
	<block className="PriceTagWithDeficit">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];		resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];		resourceEntity.accountResource.credits"/>
		<bind name="watchDH" value="'accountFreeXP';		['resourceEntity.accountResource.evChangedFreeXP'];		resourceEntity.accountResource.freeXP"/>
		<bind name="watchDH" value="'eliteXP';			['resourceEntity.accountResource.evChangedEliteXP'];	resourceEntity.accountResource.eliteXP"/>
		<bind name="watch" value="'metaXP'; eliteXP + accountFreeXP"/>
		<bind name="watch" value="'curCurrency'; priceInfo.currency"/>
		<bind name="watch" value="'curCurrencyResource'; curCurrency == 'gold'		? accountGold :
										curCurrency ==	'eliteXP'	? metaXP
																	: accountCredits"/>
		<bind name="watch" value="'_deficit'; (priceInfo.finalPrice - curCurrencyResource)"/>
		<block className="PriceTag">
			<style>
				<flow value="horizontal"/>
			</style>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<bind name="visible" value="priceInfo.basePrice != null &amp;&amp; (priceInfo.finalPrice != priceInfo.basePrice) &amp;&amp; (_showDiscountTag == true)"/>
				<bind name="tooltip" value="'DiscountTooltip'; { priceInfo: priceInfo, _customLabel: _customLabel, _isExternal: _isExternal }"/>
				<bind name="name" value="'icon_discount_' + priceInfo.id"/>
				<block className="icon_discount" type="native">
					<style>
						<marginTop value="4px"/>
						<marginRight value="-3px"/>
					</style>
					<bind name="gotoAndStop!" value="_large || _medium ? 'large' : 'normal'"/>
				</block>
			</block>
			<block>
				<bind name="name" value="'price_' + priceInfo.id"/>
				<bind name="instance" value="'InvertableTextLine'; { _name: _name,
												_text: (_isNextPriceInARow ? (tr('IDS_AND') + ' ') : '') + format(priceInfo.finalPrice, -1) + (priceInfo.currency == 'money' ? ' ' + tr(priceInfo.currencyIds) : ''), 
												_invert: _deficit &gt; 0, 
												_normalClass:
															_large		?	(priceInfo.currency == 'gold' ? '$TextPriceLargeGold' : priceInfo.currency == 'freexp' ? '$TextPriceLargeFreeExp' : '$TextPriceLarge')
															: _medium 	? 	(priceInfo.currency == 'gold' ? '$TextPriceMediumGold' : priceInfo.currency == 'freexp' ? '$TextPriceMediumFreeExp' : '$TextPriceMedium')
															: _small		?	(priceInfo.currency == 'gold' ? '$TextPriceSmallGold' : priceInfo.currency == 'freexp' ? '$TextPriceSmallFreeExp' : '$TextPriceSmall')
															: (priceInfo.currency == 'gold' ? '$TextPriceDefaultGold' : priceInfo.currency == 'freexp' ? '$TextPriceDefaultFreeExp' :'$TextPriceDefault'), 
												_invertedClass:
															_large		?	'$TextPriceLargeDeficit'
															: _medium	?	'$TextPriceMediumDeficit'
															: _small	?	'$TextPriceSmallDeficit'
															: '$TextPriceDefaultDeficit' }"/>
			</block>
			<block>
				<bind name="visible" value="!_duplicateCurrency"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'Currency'; (priceInfo.currency != 'money') ? { _currency: priceInfo.currency, _large: _large, _medium: _medium } : null"/>
			</block>
			<block>
				<bind name="visible" value="_duplicateCurrency == true"/>
				<bind name="instance" value="'DuplicateCurrency'; { _large: _large }"/>
			</block>
		</block>
	</block>
	<block className="MixedPriceTag">
		<bind name="instance" value="'PriceTagWithDeficit'; { priceInfo: _priceInfos[$index], 
											_showDiscountTag: _showDiscountTag, 
											_small: _small, _medium: _medium, _large: _large,
											_customLabel: _customLabel, _isExternal: _isExternal }"/>
	</block>
	<block className="PriceSelectionMenu">
		<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)"/>
		<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="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="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>
		<bind name="repeat" value="_prices; 'PriceSelectionMenuItem'; {_prices: _prices, _showDiscountTag: _showDiscountTag, _selectedPriceIndex: _selectedPriceIndex, _small: _small, _medium: _medium, _large: _large, }"/>
	</block>
	<block className="PriceSelectionMenuItem">
		<bind name="style" value="'width'; _large ? '140px' : '100px'"/>
		<bind name="style" value="'height'; _large ? '36px' : '24px'"/>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<bind name="selected" value="_selectedPriceIndex == $index"/>
			<bind name="dispatch" value="'buttonClick'; 'selectedPriceChanged'; { selectedPriceIndex: $index }"/>
			<bind name="name" value="'selectablePrice_' + $index"/>
			<bind name="tooltip" value="'DiscountTooltip'; (basePrice != null) &amp;&amp; (finalPrice != basePrice) ? { priceInfo: {	currency: currency, finalPrice: finalPrice,
																											basePrice: basePrice, till: till,
																											discountEventName: discountEventName}}
																							: null"/>
		</block>
		<block>
			<styleClass value="$MouseDisable"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<right value="3px"/>
			</style>
			<bind name="instance" value="'AdjustablePriceTag'; { _prices: _prices[$index],
												_showDiscountTag: _showDiscountTag, 
												_small: _small, _medium: _medium, _large: _large,
												_customLabel: _customLabel,
												_isExternal: _isExternal }"/>
		</block>
	</block>
	<block className="PriceDeficit">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block className="icon_warning_red" type="native">
				<bind name="style" value="'marginTop'; _large ? '5px' : '0px'"/>
			</block>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextDefault"/>
			<bind name="class" value="	_large ? '$FontSizeHeader6':
						_medium ? '$FontSizeLarge' :
						_small ? '$FontSizeSmall' : '$None'"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<text value="IDS_NOT_ENOUGH"/>
		</block>
		<block type="text">
			<bind name="style" value="'marginLeft'; _large ? '2px' : '0px'"/>
			<styleClass value="$TextDefaultBold"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<bind name="class" value="	_large ? '$FontSizeHeader6':
						_medium ? '$FontSizeLarge' :
						_small ? '$FontSizeSmall' : '$None'"/>
			<bind name="text" value="format(_deficit, -1)"/>
		</block>
		<block>
			<bind name="visible" value="!_duplicateCurrency"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="style" value="'marginLeft'; _large ? '-2px' : '0px'"/>
			<bind name="instance" value="'Currency'; (priceInfo.currency != 'money') ? { _currency: priceInfo.currency, _large: _large, _medium: _medium } : null"/>
		</block>
		<block>
			<bind name="visible" value="_duplicateCurrency == true"/>
			<bind name="instance" value="'DuplicateCurrency'; { large: _large }"/>
		</block>
	</block>
	<block className="PriceInLine">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="	_large ? '$FontSizeHeader6':
							_medium ? '$FontSizeLarge' :
							_small ? '$FontSizeSmall' : '$None'"/>
				<bind name="text" value="	_customLabel 						? _customLabel :
							priceInfo.currency == 'credits' ||
							priceInfo.currency == 'gold' ||
							priceInfo.currency == 'eliteXP'		? 'IDS_PURCHASE_COST'
																: 'IDS_RESEARCH_COST'"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$AlignRight"/>
				<bind name="instance" value="'PriceTag'; { priceInfo: priceInfo, _deficit: _deficit, _showDiscountTag: _showDiscountTag, _medium: _medium }"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="priceInfo.finalPrice != priceInfo.basePrice "/>
			<bind name="countdown" value="priceInfo.till; 'timeLeft'; 'HIGHEST'; ''; ''; 'rawTimeLeft'"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<style>
					<width value="100%"/>
					<leading value="-3"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="rawTimeLeft &gt; 0 ? tr('IDS_SHARE_ENDS_IN') + ' ' + timeLeft : tr('IDS_SHARE_IS_EXPIRING_WARNING')"/>
			</block>
			<block>
				<bind name="visible" value="priceInfo.basePrice != 0"/>
				<bind name="style" value="'marginRight'; _medium ? '23px' : '15px'"/>
				<block type="text">
					<styleClass value="$TextSecondaryBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="format(priceInfo.basePrice, -1)"/>
				</block>
				<block className="icon_price_strikethrough" type="native">
					<style>
						<width value="110%"/>
						<height value="40%"/>
						<top value="60%"/>
						<marginTop value="-50%"/>
						<position value="absolute"/>
					</style>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="PriceTagWithLabel">
		<block>
			<style>
				<flow value="horizontal"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="	_large ? '$FontSizeHeader3':
							_medium ? '$FontSizeLarge' :
							_small ? '$FontSizeSmall' : '$None'"/>
				<bind name="class" value="_techText ? '$FontColorBlueish' : '$None'"/>
				<bind name="class" value="_bold ? '$FontFamilyDefaultBold' : '$None'"/>
				<bind name="text" value="_label"/>
			</block>
			<block>
				<style>
					<marginLeft value="4px"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PriceTag'; { 	priceInfo: priceInfo, _deficit: _deficit , _showDiscountTag: _showDiscountTag,
											_large: _large, _medium: _medium, _small: _small, _duplicateCurrency: _duplicateCurrency}"/>
			</block>
		</block>
	</block>
	<block className="DiscountTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<styleClass value="$DefaultTooltipWidth"/>
		<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>
			<styleClass value="$InfoBlockIndent"/>
			<block className="icon_discount" type="native">
				<styleClass value="$MiddleVAligned"/>
				<bind name="gotoAndStop!" value=" _large ? 'large':'normal'"/>
			</block>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value="'$FontColorGolden'"/>
				<bind name="text" value="(	priceInfo.discountEventName	? priceInfo.discountEventName : 
							priceInfo.isPrivate 		? 'IDS_PERSONAL_DISCOUNT' 
														: 'IDS_PROMO_EVENT' )"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<style>
				<marginTop value="0px"/>
			</style>
			<bind name="instance" value="'PriceInLine'; { priceInfo: priceInfo, _showDiscountTag: _showDiscountTag, _customLabel: _customLabel }"/>
		</block>
		<block>
			<bind name="visible" value="(_isExternal == true)"/>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="-5px"/>
					<marginLeft value="-12px"/>
					<marginRight value="-12px"/>
				</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 type="text">
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="'IDS_HINT_REDIRECT_TO_STORE'"/>
			</block>
		</block>
	</block>
	<css name="$ChatBoxDefaultSize">
		<width value="462px"/>
		<userData value="{
        minResizeWidth: 460,
        minResizeHeight: 300
    }"/>
		<height value="347px"/>
	</css>
	<css name="$ChatBoxDefaultPosition">
		<position value="absolute"/>
	</css>
	<css name="$FontSize14">
		<fontSize value="14"/>
	</css>
	<block className="ChatDropDownMenu">
		<bind name="firstEntityDH" value="'dockStateEntity'; CC.dockState"/>
		<bind name="watchDH" value="'dockStateName'; ['dockStateEntity.dockState.evUpdate']; dockStateEntity.dockState.stateName"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
		<bind name="watchDH" value="'isFavorite'; ['channel.evIsFavoriteChanged']; channel.isFavorite"/>
		<bind name="watchDH" value="'channelOpened'; ['channel.evOpenChanged']; channel.opened"/>
		<bind name="dataRefDH" value="'entityAccount'; 'channelEntity.channel.user.ref'"/>
		<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="'groupIds'; ['channelEntity.elementInGroups.evGroupsChanged']; channelEntity.elementInGroups.groupIds"/>
		<bind name="watch" value="'isMyChannel'; isIn(ChannelGroup.MYCHANNELS, groupIds)"/>
		<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>
			<bind name="visible" value="( _dropDown &amp;&amp; isMyChannel )"/>
			<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_CHANNEL_RENAME'"/>
				</block>
			</block>
			<bind name="dispatch" value="'click'; 'chatChannelRenameStart'"/>
		</block>
		<block>
			<bind name="visible" value="((channel.typeIdent != 'common') &amp;&amp; (channel.typeIdent != 'division') &amp;&amp; !(isMyChannel))"/>
			<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="(!isFavorite) ? 'IDS_ADD_TO_FAVORITES' : 'IDS_REMOVE_FROM_FAVORITES'"/>
				</block>
			</block>
			<bind name="action" value="'click'; 'setChannelFavorite'; {channelId: channel.channelId, favorite: !(isFavorite)}"/>
		</block>
		<block>
			<bind name="visible" value="(channelOpened)"/>
			<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_CHANNEL_CLOSE'"/>
				</block>
				<bind name="action" value="'click'; 'leaveChannel'; {channelId: channel.channelId}"/>
			</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)"/>
		<block>
			<bind name="visible" value="(channel.typeIdent == 'private') &amp;&amp;
						accountOnline &amp;&amp;
						!(isInDivision) &amp;&amp;
						(dockStateName != 'balancer') &amp;&amp;
						!(isSelfInParty) &amp;&amp;
						slimClientData.isFull &amp;&amp;
						(freePlaces &gt; 0)"/>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'name'; nickName; 'playerInDivision'"/>
			<bind name="watch" value="'isInDivision'; (playerInDivision.length == 0) ? false : true"/>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'name'; nickName; 'sentInvitationData'"/>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'invitationsToDivision'; 'playerName'; nickName; 'receivedInvitationData'"/>
			<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: entityAccount.accountSimple.dbId, playerName: pureName, inviteType: InviteType.COMMON}"/>
			</block>
		</block>
		<bind name="collectionDH" value="CC.club; 'playersClubs'"/>
		<block>
			<bind name="feature" value="19;	''"/>
			<bind name="watch" value="'isInvitedToClubItemVisible';	(feature_19 != 'locked') &amp;&amp;
													(playersClubs.length &gt; 0) &amp;&amp;
													(channel.typeIdent == 'private')	? true
																						: false"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'InviteToClubContextMenuItem'; isInvitedToClubItemVisible ? {_entityAccountId: entityAccount.id, _dropDown: _dropDown} : null"/>
		</block>
		<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="'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"/>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<bind name="visible" value="((groupIdsOfAccount==null) &amp;&amp; !(isIgnored) &amp;&amp; (channel.typeIdent == 'private'))"/>
			<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)) &amp;&amp; (channel.typeIdent == 'private')"/>
			<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: entityAccount.id, canAddGroupEntitiesId: canAddGroupEntitiesId, _dropDown: _dropDown}; 7"/>
		</block>
		<block>
			<bind name="visible" value="channel.typeIdent == 'private'"/>
			<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) &amp;&amp; (channel.typeIdent == 'private'))"/>
			<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>
	<block className="ChatBox">
		<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="$ChatBoxDefaultSize"/>
		<styleClass value="$ChatBoxDefaultPosition"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="contains" value="clubs; ($item.club.id == divisionData.creatorInfo.clubId); 'isClubMember'"/>
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="watchDH" value="'isInvitation';['channelEntity.channel.evOpenChanged', 'channelEntity.channel.evInvitationRefused'];channelEntity.channel.isInvitation"/>
		<bind name="watchDH" value="'isPasswordNeeded';['channelEntity.channel.evOpenChanged'];channelEntity.channel.isWaitingPassword"/>
		<bind name="watch" value="'isPartyChat'; (channelEntity.channel.typeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'party')"/>
		<bind name="watch" value="'clubEntityId'; (channelEntity.channel.typeIdent == 'club')	? 	(clubs[0].club.id == channelEntity.channel.name)	? clubs[0].id :
												 									(clubs[1].club.id == channelEntity.channel.name)	? clubs[1].id :
																					(clubs[2].club.id == channelEntity.channel.name)	? clubs[2].id
																																		: false :
								 (isClubMember &amp;&amp; isPartyChat)					?	((clubs[0].club.id == divisionData.creatorInfo.clubId)	? clubs[0].id : 
																					(clubs[1].club.id == divisionData.creatorInfo.clubId)	? clubs[1].id 
																																			: clubs[2].id)
																				: false"/>
		<bind name="entityDH" value="'entityClub'; clubEntityId"/>
		<bind name="watchDH" value="'leaderDbId';['entityClub.club.evleaderIdChanged']; entityClub.club.leaderId"/>
		<bind name="action" value="'passwordInputComplete'; 'joinChannel'; {channelId: channelEntity.channel.channelId, password: channelPasswordInput}"/>
		<bind name="var" value="{isEditing: false}"/>
		<bind name="catch" value="'chatChannelRenameStart'; {isEditing : true}"/>
		<bind name="catch" value="'chatChannelRenameCancelled'; {isEditing : false}"/>
		<bind name="catch" value="'chatChannelRenameSuccessed'; {isEditing: false}"/>
		<bind name="draggable" value="'chatBoxDragZone'; 'chatBoxPosition'; channelEntity.channel.channelId"/>
		<bind name="watch" value="'isSteadyChannel'; (channelEntity.channel.typeIdent == 'division') || (channelEntity.channel.typeIdent == 'club') || (channelEntity.channel.typeIdent == 'clan')"/>
		<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="actionIsDisplay" value="'setChannelChatBoxIsDisplay'; {entityId: channelEntityId}"/>
		<bind name="appear" value="'addedToStage'; 0.3; 0; {alpha: 0}; {alpha: 1}"/>
		<block className="notification_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<marginTop value="2px"/>
				<marginBottom value="2px"/>
				<marginLeft value="2px"/>
				<marginRight value="2px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="37px"/>
					<marginBottom value="-2px"/>
					<backgroundColor value="0x01000000"/>
				</style>
				<params>
					<param name="name" value="chatBoxDragZone"/>
				</params>
			</block>
			<block>
				<style>
					<marginLeft value="-1px"/>
					<marginRight value="-1px"/>
					<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="isInvitation"/>
				<styleClass value="$Fullsize"/>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<marginBottom value="30px"/>
					</style>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$MiddleAligned"/>
						<block className="InvitationToChatItem">
							<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
							<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
							<bind name="watchDH" value="'channelName'; ['channel.evNameChanged', 'channel.user', 'channel.user.ref.accountName.evChanged']; (channel.nameIds != null) ? tr(channel.nameIds) : (channel.user.ref != null) ? channel.user.ref.accountName.nickName : channel.name"/>
							<block>
								<styleClass value="$MiddleAligned"/>
								<bind name="instance" value="'PlayerContactItem'; (channel.invitationFromEntityId != -1) ? {_entityAccountId: channel.invitationFromEntityId, _notTrancated: true} : null"/>
								<block type="text">
									<bind name="visible" value="channel.invitationFromEntityId == -1"/>
									<styleClass value="$TextHeaderBigWhite"/>
									<bind name="text" value="channel.invitationFromNickName"/>
								</block>
							</block>
							<block type="text">
								<styleClass value="$TextHeaderBigDefault"/>
								<bind name="class" value="'$FontColorBlueish'"/>
								<style>
									<marginBottom value="2px"/>
								</style>
								<bind name="text" value="'IDS_INVITE_TO_THE_CHANNEL'"/>
							</block>
							<block type="text">
								<styleClass value="$MiddleAligned"/>
								<styleClass value="$TextHeaderBigWhite"/>
								<style>
									<marginBottom value="4px"/>
								</style>
								<bind name="text" value="channelName"/>
							</block>
							<block>
								<styleClass value="$MiddleAligned"/>
								<style>
									<marginBottom value="12px"/>
								</style>
								<block type="text">
									<styleClass value="$TextHeader"/>
									<bind name="class" value="'$FontSizeHeader4'"/>
									<bind name="countdown" value="channel.refuseInvitationTimeExpiration; 'countdownText'; 'mm:ss'"/>
									<bind name="pureText" value="'-' + countdownText"/>
									<style>
										<width value="66px"/>
									</style>
								</block>
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_AUTOMATE_CANCEL'}"/>
							</block>
							<block>
								<styleClass value="$MiddleAligned"/>
								<block className="button_default_small" type="native">
									<params>
										<param name="autoSize" value="left"/>
									</params>
									<bind name="label" value="toUpperCase(tr('IDS_ACCEPT_INVITATION'))"/>
									<bind name="action" value="'buttonClick'; 'joinChannel'; {channelId: channelEntity.channel.channelId}"/>
								</block>
							</block>
						</block>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="(isPasswordNeeded &amp;&amp; !(isInvitation))"/>
				<styleClass value="$Fullsize"/>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<marginBottom value="48px"/>
					</style>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$MiddleAligned"/>
						<block className="EnterPasswordChatItem">
							<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
							<bind name="handleEventDH" value="'channelEntity.channel.evWrongPassword'; 'evWrongPassword'; {}; true"/>
							<bind name="var" value="{_wrongPassword: false}"/>
							<bind name="catch" value="'evWrongPassword'; {_wrongPassword : true}"/>
							<block>
								<styleClass value="$MiddleAligned"/>
								<style>
									<width value="100%"/>
								</style>
								<block type="text">
									<styleClass value="$MiddleAligned"/>
									<styleClass value="$TextCarouselShipStatus"/>
									<style>
										<marginBottom value="6px"/>
									</style>
									<bind name="text" value="toUpperCase(tr('IDS_CLOSED_CHANNEL'))"/>
								</block>
								<block type="text">
									<styleClass value="$TextHeaderBigDefault"/>
									<styleClass value="$MiddleAligned"/>
									<text value="IDS_HINT_ENTER_PASSWORD"/>
								</block>
								<block>
									<style>
										<width value="200px"/>
										<marginTop value="10px"/>
										<height value="30px"/>
									</style>
									<styleClass value="$MiddleAligned"/>
									<block className="text_input_caps_enter" type="native">
										<styleClass value="$Fullsize"/>
										<block>
											<block>
												<style>
													<position value="absolute"/>
													<width value="200px"/>
													<bottom value="-6px"/>
												</style>
												<bind name="instance" value="'WrongTextInputNotification'; _wrongPassword	? 	{_maxWidth : 200, _startTop: 10,
																							_text: (tr('IDS_WRONG_PASSWORD') + '. ' + tr('IDS_TRY_AGAIN'))}
																						:	null"/>
											</block>
										</block>
										<params>
											<param name="actAsButton" value="true"/>
											<param name="maxChars" value="16"/>
										</params>
										<bind name="focus" value="0; true"/>
										<bind name="sync" value="'text'; 'change'; channelPasswordInput"/>
										<bind name="catch" value="'change'; {_wrongPassword : false}"/>
										<bind name="dispatch" value="'textInputEnter'; 'passwordInputComplete'"/>
										<block className="button_dock" type="native">
											<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_JOIN'}"/>
											<styleClass value="$TextInputEnterButton"/>
											<bind name="enabled" value="channelPasswordInput.length &gt; 0"/>
											<bind name="dispatch" value="'buttonClick'; 'passwordInputComplete'"/>
										</block>
									</block>
								</block>
							</block>
						</block>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="(!(isInvitation) &amp;&amp; !(isPasswordNeeded))"/>
				<styleClass value="$Fullsize"/>
				<block>
					<styleClass value="$Fullsize"/>
					<block className="inner_panel" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block>
						<styleClass value="$Fullsize"/>
						<style>
							<marginLeft value="4px"/>
							<marginRight value="0px"/>
							<marginTop value="0px"/>
							<marginBottom value="0px"/>
						</style>
						<block className="MessageListForLobby" type="native">
							<styleClass value="$Fullsize"/>
							<params>
								<param name="itemRendererName" value="[ChatListItemRendererForLobby]"/>
								<param name="listItemRendererDethTime" value="2"/>
								<param name="messageBufferOverflowDeathTime" value="2"/>
								<param name="listItemRendererDethTime" value="3600000"/>
								<param name="messageBufferLength" value="300"/>
								<param name="scrollBarStep" value="30"/>
								<param name="scrollPosition" value="right"/>
								<param name="textDisplayFlow" value="bottom-up"/>
								<param name="tweenTime" value="0.3"/>
								<param name="scrollBarName" value="WindowChatScrollBar"/>
								<param name="tweenListItemRenderer" value="true"/>
								<param name="iconContainerHitTestDisable" value="false"/>
							</params>
							<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
							<bind name="handleEventDH" value="'channelEntity.channel.evMessageReceived'; 'addMessage'"/>
						</block>
					</block>
				</block>
				<block>
					<bind name="dataRefDH" value="'participants'; 'channelEntity.channel.participants.ref.items'"/>
					<bind name="visible" value="(participants.length != 0)"/>
					<style>
						<width value="170px"/>
						<height value="100%"/>
						<marginLeft value="3px"/>
					</style>
					<block className="divider_v" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<marginLeft value="-3px"/>
							<width value="3px"/>
						</style>
					</block>
					<block className="inner_panel" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block>
						<styleClass value="$Fullsize"/>
						<block>
							<bind name="visible" value="!(isSteadyChannel)"/>
							<style>
								<width value="100%"/>
								<height value="30px"/>
							</style>
							<block className="dock_submenu_item" type="native">
								<styleClass value="$Fullsize"/>
								<block>
									<styleClass value="$MiddleAligned"/>
									<styleClass value="$MiddleVAligned"/>
									<style>
										<hitTest value="false"/>
									</style>
									<block>
										<styleClass value="$MiddleVAligned"/>
										<block className="icon_plus" type="native">
											<style>
												<marginTop value="1px"/>
											</style>
										</block>
									</block>
									<block type="text">
										<styleClass value="$TextDefaultBold"/>
										<style>
											<marginLeft value="2px"/>
										</style>
										<bind name="class" value="'$FontColorBlueish'"/>
										<bind name="text" value="'IDS_INVITE_PLAYER'"/>
									</block>
									<style>
										<flow value="horizontal"/>
									</style>
								</block>
								<bind name="changeDispatch" value="contactsInfotipIsVIsible; 'sendClearSearch'; {}; 2; false"/>
								<bind name="action" value="'sendClearSearch'; 'clearSearchResult'"/>
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_INVITE_PLAYERS'}"/>
								<bind name="tooltip" value="'ContactsAndChannelsInfotip'; {_playerContext: {	type:	'inviteToChannel',
																							channelId: 	channelEntity.channel.channelId}}; 9; null; 'contactsInfotipIsVIsible'"/>
								<bind name="selected" value="contactsInfotipIsVIsible"/>
							</block>
						</block>
						<block>
							<styleClass value="$DefaultScrollBar"/>
							<style>
								<height value="100%f"/>
								<width value="100%"/>
								<overflow value="scroll"/>
							</style>
							<block>
								<style>
									<width value="100%"/>
								</style>
								<bind name="repeat" value="participants; 'ChatParticipantItem';  {_playerContext: {type: 'channelParticipants', clubId: entityClub.club.id, channelTypeIdent: channelEntity.channel.typeIdent, clubEntityId: clubEntityId, clubLeaderDbId: leaderDbId}}"/>
							</block>
						</block>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="!(isEditing)"/>
				<style>
					<width value="100%"/>
					<height value="37px"/>
					<position value="absolute"/>
				</style>
				<block>
					<bind name="style" value="'hitTest'; !(isPasswordNeeded) &amp;&amp; !isInvitation"/>
					<styleClass value="$MiddleVAligned"/>
					<block className="button_dock" type="native">
						<bind name="style" value="'hitTest'; !(isSteadyChannel)"/>
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<marginTop value="-6px"/>
							<marginBottom value="-8px"/>
							<marginRight value="-4px"/>
							<marginLeft value="2px"/>
						</style>
						<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_CLICK_TO_CHOOSE_ACTION'}], _maxWidth: 250}"/>
						<bind name="tooltip" value="'ChatDropDownMenu'; {_dropDown: true, channelEntityId: channelEntityId}; 6"/>
					</block>
					<block>
						<style>
							<hitTest value="false"/>
							<marginLeft value="8px"/>
						</style>
						<bind name="instance" value="'ChannelTitleWithIcon'; {channelEntityId: channelEntityId, _bold: true, _width: 'auto', _maxWidth: 350, _channelHeader: true}"/>
					</block>
					<block className="icon_navigate" type="native">
						<bind name="visible" value="(!(isPasswordNeeded) &amp;&amp; !(isSteadyChannel) &amp;&amp; !isInvitation)"/>
						<style>
							<hitTest value="false"/>
							<marginRight value="2px"/>
							<top value="60%"/>
						</style>
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="'down'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<styleClass value="$AlignRight"/>
					<style>
						<height value="100%"/>
						<right value="14px"/>
						<marginTop value="1px"/>
					</style>
					<block>
						<block className="button_collapse" type="native">
							<bind name="name" value="'collapseChatWindow'"/>
							<style>
								<height value="14px"/>
								<marginTop value="9px"/>
							</style>
							<params>
								<param name="name" value="None"/>
							</params>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_COLLAPSE_WINDOW'}"/>
							<bind name="dispatch" value="'click'; 'Tooltip.Close'"/>
							<bind name="action" value="'click'; 'setChatBoxOpenedState'; {channelId: channelEntity.channel.channelId, opened: false}"/>
						</block>
					</block>
					<block>
						<bind name="visible" value="!(isSteadyChannel)"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<marginLeft value="5px"/>
						</style>
						<bind name="instance" value="'ChatboxButtonClose'; {_channelId: channelEntity.channel.channelId, _isInvitation: isInvitation, _isPasswordNeeded: isPasswordNeeded}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="isEditing"/>
				<style>
					<width value="100%"/>
					<height value="37px"/>
					<position value="absolute"/>
				</style>
				<bind name="instance" value="'ChannelHeaderEditing'; isEditing ? {channelEntityId: channelEntityId} : null"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="(!(isInvitation) &amp;&amp; !(isPasswordNeeded))"/>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="-1px"/>
						<marginRight value="-1px"/>
					</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>
					<style>
						<width value="100%"/>
						<height value="37px"/>
						<marginRight value="4px"/>
						<marginLeft value="4px"/>
					</style>
					<block className="text_input_caps_enter" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<width value="100%"/>
						</style>
						<params>
							<param name="actAsButton" value="true"/>
							<param name="maxChars" value="512"/>
						</params>
						<bind name="focus" value="0; true"/>
						<bind name="sync" value="'text'; 'change'; inputText"/>
						<bind name="action" value="'textInputEnter'; (inputText.length &gt; 0) ? 'sendMessage' : null; {channelId: channelEntity.channel.channelId, message:inputText}"/>
						<bind name="catch" value="'textInputEnter'; {inputText : ''}"/>
						<bind name="catch" value="'sendButtonEnter'; {inputText : ''}"/>
					</block>
					<block className="button_dock" type="native">
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_SEND_MESSAGE'}"/>
						<styleClass value="$TextInputEnterButton"/>
						<bind name="enabled" value="inputText.length &gt; 0"/>
						<bind name="action" value="'buttonClick'; 'sendMessage'; {channelId: channelEntity.channel.channelId, message:inputText}"/>
						<bind name="dispatch" value="'buttonClick'; 'sendButtonEnter'"/>
					</block>
				</block>
			</block>
		</block>
		<block className="dock_panel_pin" type="native">
			<params>
				<param name="name" value="pinTop"/>
			</params>
			<style>
				<position value="absolute"/>
				<bottom value="0px"/>
			</style>
			<bind name="gotoAndStop!" value="'down'"/>
		</block>
		<bind name="watch" value="'restrict'; chatBoxState != WindowTooltipState.pinned ? {} : { down: true, left: true }"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<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>
		</block>
		<bind name="resize" value="'grip_top';			'up'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_bottom';		'down'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_left';			'left'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_right';			'right'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_top_left';		'up,left'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_top_right';		'up,right'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_bottom_left';	'down,left'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
		<bind name="resize" value="'grip_bottom_right';	'down,right'; 'chatBoxWidth'; 'chatBoxHeight'; channelEntity.channel.channelId"/>
	</block>
	<block className="ChannelHeaderEditing">
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="watchDH" value="'channelName'; ['channelEntity.channel.evNameChanged', 'channelEntity.channel.user', 'channelEntity.channel.user.ref.accountName.evChanged']; (channelEntity.channel.nameIds != null)	? tr(channelEntity.channel.nameIds) :
																																									 (channelEntity.channel.user.ref != null)	? channelEntity.channel.user.ref.accountName.nickName
																																									 											: channelEntity.channel.name"/>
		<bind name="var" value="{ textInput: channelName,
				 isWrongName: false,
				 isRenameComplete: false }"/>
		<bind name="handleEventDH" value="'channelEntity.channel.evNameChanged'; 'evRenameChannelSuccessed'"/>
		<bind name="handleEventDH" value="'channelEntity.channel.evRenameChannelErrorNameExist'; 'evRenameChannelErrorNameExist'"/>
		<bind name="dispatch" value="'evRenameChannelErrorNameExist';  ((channelEntity.channel.name==textInput) || (textInput == '')) ? 'evRenameChannelSuccessed' : null"/>
		<bind name="catch" value="'evRenameChannelErrorNameExist'; { isWrongName :		true,
													isRenameComplete :	false}"/>
		<bind name="dispatch" value="'evRenameChannelSuccessed'; 'chatChannelRenameSuccessed'"/>
		<bind name="catch" value="'evRenameChannelSuccessed'; {	isWrongName :		false,
												isRenameComplete :	true}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<marginTop value="9px"/>
			</style>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="8px"/>
					<marginRight value="5px"/>
				</style>
				<block className="icon_channel_types" type="native">
					<style>
						<marginTop value="1px"/>
					</style>
					<innerBind elementName="channel_icon" name="gotoAndStop!" value="	(channelEntity.channel.isSecured) ? 'group_closed' : channelEntity.channel.typeIdent"/>
					<bind name="gotoAndPlay!" value="'normal'"/>
				</block>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<marginTop value="-5px"/>
						<marginRight value="9px"/>
						<marginLeft value="7px"/>
					</style>
					<block>
						<styleClass value="$Fullsize"/>
						<block className="text_input_caps_enter" type="native">
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ENTER_CHANNEL_NAME'}"/>
							<style>
								<height value="29px"/>
								<width value="100%"/>
							</style>
							<block>
								<style>
									<width value="100%"/>
								</style>
								<block>
									<style>
										<position value="absolute"/>
										<width value="100%"/>
										<bottom value="-6px"/>
									</style>
									<bind name="instance" value="'WrongTextInputNotification'; isWrongName	? 	{_maxWidth : 350, _startTop: 10,
																							 	 _text: (textInput.length &lt; 3)	? tr('IDS_HINT_TITLE_TOO_SHORT')
																																: (tr('IDS_WRONG_TITLE') + '. ' + tr('IDS_TRY_ANOTHER_TITLE'))}
																							:	null"/>
								</block>
							</block>
							<params>
								<param name="actAsButton" value="true"/>
								<param name="maxChars" value="32"/>
								<param name="restrict" value="^&lt;&gt;"/>
							</params>
							<bind name="focus" value="0; true"/>
							<bind name="text" value="channelName"/>
							<bind name="sync" value="'text'; 'change'; textInput"/>
							<bind name="catch" value="'change'; {isWrongName : false}"/>
							<bind name="action" value="'textInputEnter'; 'renameChannel';
														{channelId: channelEntity.channel.channelId,
														 newName: (textInput == '') ?	channelEntity.channel.name
																						  :	(textInput.length &gt; 2)  ? textInput 
																						 							: channelEntity.channel.name}"/>
							<block className="button_dock" type="native">
								<styleClass value="$TextInputEnterButton"/>
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CHANNEL_RENAME'}"/>
								<bind name="action" value="'buttonClick'; 'renameChannel';
														{channelId: channelEntity.channel.channelId,
														 newName: (textInput == '') ?	channelEntity.channel.name
																						  :	(textInput.length &gt; 2)  ? textInput 
																						 							: channelEntity.channel.name}"/>
							</block>
						</block>
						<block className="button_close" type="native">
							<style>
								<marginLeft value="11px"/>
								<marginTop value="9px"/>
							</style>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CANCEL'}"/>
							<bind name="dispatch" value="'buttonClick'; 'chatChannelRenameCancelled'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ChatParticipantItem">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'PlayerContactItemWithRollover'; {_entityAccountId: $dataRef.ref.id, _isShort: true, _playerContext: _playerContext}"/>
		</block>
	</block>
	<block className="OpenChannelElement">
		<bind name="entityDH" value="'channelEntity'; $dataRef.ref.id"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="watch" value="'_active'; chatBoxVisible"/>
		<bind name="watchDH" value="'groupExpanded'; ['parentGroup.groupViewElements.evStateChanged']; parentGroup.groupViewElements.expanded"/>
		<bind name="watchDH" value="'isInvitation';['$dataRef.ref.channel.evOpenChanged', '$dataRef.ref.channel.evInvitationRefused']; $dataRef.ref.channel.isInvitation"/>
		<bind name="watchDH" value="'isPasswordNeeded';['channelEntity.channel.evOpenChanged'];channelEntity.channel.isWaitingPassword"/>
		<style>
			<height value="30px"/>
			<marginRight value="4px"/>
		</style>
		<bind name="clickSplit"/>
		<bind name="action" value="'left_click'; 'setChatBoxOpenedState'; {channelId: channelEntity.channel.channelId, opened: !(isChatBoxOpened)}"/>
		<bind name="handleEventDH" value="'$dataRef.ref.channel.evUpChannelWindow'; 'Tooltip.Open'; {behaviour: TooltipBehaviour.window}; true"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 2"/>
		<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
		<bind name="watchDH" value="'channelTypeIdent';['channel.evTypeChanged']; channel.typeIdent"/>
		<bind name="watch" value="'isSteadyChannel'; (channelTypeIdent == 'division') || (channelTypeIdent == 'club') || (channelTypeIdent == 'clan')"/>
		<block className="button_dock_bg" type="native">
			<bind name="name" value="'openChannel_' + channelTypeIdent"/>
			<style>
				<height value="100%"/>
			</style>
			<bind name="watchDH" value="'isChatBoxOpened';['$dataRef.ref.channel.evChatBoxOpenChanged']; $dataRef.ref.channel.isChatBoxOpened"/>
			<bind name="menu" value="!(isSteadyChannel) ? 'ChatDropDownMenu' : 'EmptyItem' ;
					!(isSteadyChannel) ? {_dropDown: false, channelEntityId: $dataRef.ref.id} : null; null; 'chatDropDownMenuVisible'"/>
			<bind name="tooltip" value="'ChatBox'; {channelEntityId: $dataRef.ref.id}; TooltipBehaviour.window; null; 'chatBoxVisible'; 'chatBoxState'; isChatBoxOpened"/>
			<bind name="tooltip" value="'OpenedChannelHintTooltip';{	_isSteadyChannel: isSteadyChannel,
													_isChatBoxOpened: isChatBoxOpened}"/>
			<bind name="gotoAndStop!" value="'down'"/>
			<bind name="transition" value="rollOver || _active || chatDropDownMenuVisible; 0.15; {alpha: _active ? 0.9 : 0}; {alpha: 1}"/>
			<block>
				<bind name="transition" value="rollOver || isInvitation; 0.15; {alpha: _active ? 0.8 : 0.65}; {alpha: 1.0}"/>
				<style>
					<height value="100%"/>
					<marginLeft value="8px"/>
					<marginRight value="8px"/>
					<marginTop value="1px"/>
				</style>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'ChannelTitleWithIcon'; {channelEntityId: $dataRef.ref.id, _bold: false, _width: '90px'}"/>
				</block>
				<block>
					<bind name="visible" value="!(isSteadyChannel)"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="3px"/>
					</style>
					<block className="button_close" type="native">
						<style>
							<marginRight value="1px"/>
						</style>
						<bind name="transition" value="rollOver || _active; 0.15; {alpha: _active ? 1 : 0}; {alpha: 1.0}"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: (isInvitation)	? 'IDS_HINT_REJECT_INVITE'
																					: 'IDS_CHANNEL_CLOSE'}"/>
						<bind name="action" value="'buttonClick'; ( !(isInvitation || isPasswordNeeded) )	? 'leaveChannel'
																							: isInvitation ? 'refuseInvitation'
																											: 'cancelEnterPassword';
																						 {channelId: $dataRef.ref.channel.channelId}"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ChannelTitleWithIcon">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
		<bind name="watchDH" value="'countNewMessages'; ['channel.evCountNewMessagesChanged']; channel.countNewMessages"/>
		<bind name="watchDH" value="'isInvitation';['channel.evOpenChanged', 'channel.evInvitationRefused']; channel.isInvitation"/>
		<bind name="watchDH" value="'accountOnline'; ['channel.user.ref.accountStatus.evOnlineChanged']; channel.user.ref.accountStatus.online"/>
		<bind name="watchDH" value="'inBattle'; ['channel.user.ref.accountStatus.evInBattleChanged']; channel.user.ref.accountStatus.inBattle"/>
		<bind name="watchDH" value="'channelTypeIdent';['channel.evTypeChanged']; channel.typeIdent"/>
		<bind name="watchDH" value="'rawChannelName'; ['channel.evNameChanged', 'channel.user', 'channel.user.ref.accountName.evChanged'];	(channelTypeIdent == 'club')	? channel.name :
																																(channel.nameIds != null)		? tr(channel.nameIds) :
																																(channel.user.ref != null)		? channel.user.ref.accountName.nickName
																																								: channel.name"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="watch" value="'clubEntityId'; (channelTypeIdent == 'club')	? 	(clubs[0].club.id == rawChannelName)	? clubs[0].id : 
								 									(clubs[1].club.id == rawChannelName)	? clubs[1].id :
																	(clubs[2].club.id == rawChannelName)	? clubs[2].id
																											: false
																: false"/>
		<bind name="entityDH" value="'entityClub'; clubEntityId"/>
		<bind name="watchDH" value="'clubName';['entityClub.club.evNameChanged']; entityClub.club.name"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'selfPlayerDbId'; []; selfPlayerEntity.accountSimple.dbId"/>
		<bind name="watchDH" value="'clanId'; ['selfPlayerEntity.club.evClanIdChanged']; selfPlayerEntity.clanman.clanId"/>
		<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="name" value="_channelHeader                                                                     ? '' :
            (channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'division')    ? ('channelTitle_' + channelTypeIdent) :
            (channelTypeIdent == 'club')                                                           ? ('channelTitle_' + entityClub.club.name) :
            (channelTypeIdent == 'clan')                                                           ? ('channelTitle_' + clanTag)
                                                                                                   : ''"/>
		<block>
			<style>
				<hitTest value="false"/>
			</style>
			<block className="icon_channel_types" type="native">
				<style>
					<hitTest value="false"/>
					<marginRight value="2px"/>
					<marginTop value="4px"/>
				</style>
				<innerBind elementName="channel_icon" name="gotoAndStop!" value="	(isInvitation)						? 'group_open' :
													(channel.isSecured)					? 'group_closed' :
													(channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'party') ? 'party'
													: channelTypeIdent"/>
				<bind name="gotoAndPlay!" value="isInvitation ? 'flicker' : 'normal'"/>
			</block>
			<block>
				<bind name="style" value="'marginTop'; _bold ? '-1px' : 'auto'"/>
				<block type="text">
					<bind name="fade" value="countNewMessages != 0; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="_bold ? '$Bold' : '$None'"/>
					<bind name="class" value="	(channelTypeIdent == 'division') ? '$FontColorGolden':
								(channelTypeIdent == 'club')	 ? '$FontColorWhite' :
								(channelTypeIdent == 'clan')	 ? '$FontColorWhite'
																 : '$None'"/>
					<bind name="class" value="_channelHeader ? '$FontColorBlueish' : '$None'"/>
					<bind name="style" value="'width'; countNewMessages &lt; 10 ? 7 : 16"/>
					<bind name="pureText" value="(countNewMessages==0) ? '' : '(' + countNewMessages + ')'"/>
				</block>
				<block>
					<bind name="visible" value="(!(accountOnline) || inBattle) &amp;&amp; (channel.user.ref != null)"/>
					<style>
						<marginLeft value="1px"/>
						<marginRight value="1px"/>
					</style>
					<bind name="style" value="'marginTop'; _bold ? '3px' : '2px'"/>
					<block className="icon_player_status" type="native">
						<bind name="gotoAndStop!" value="inBattle ? 'in_battle'
												 : 'not_ready'"/>
					</block>
				</block>
				<block type="text">
					<bind name="name" value="_channelHeader                                                                     ? '' :
						(channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'division')    ? ('channelName_' + channelTypeIdent) :
						(channelTypeIdent == 'club')                                                           ? ('channelName_' + entityClub.club.name) :
						(channelTypeIdent == 'clan')                                                           ? ('channelName_' + clanInfo.tag)
																												: ''"/>
					<style>
						<multiline value="false"/>
					</style>
					<styleClass value="$FontFamilyDefault"/>
					<bind name="style" value="'width'; _width"/>
					<bind name="style" value="'maxWidth'; _maxWidth"/>
					<bind name="style" value="'alpha'; (!(accountOnline)) &amp;&amp; _channelHeader &amp;&amp; (channel.user.ref != null) ? 0.6 : 1"/>
					<bind name="style" value="'marginTop'; ((_channelName.length &gt; 27) &amp;&amp; (_channelHeader)) ? '2px' : '0px'"/>
					<bind name="class" value="((_channelName.length &gt; 27) &amp;&amp; (_channelHeader)) ? '$FontSize14' : '$FontSizeLarge'"/>
					<bind name="class" value="_bold ? '$Bold' : '$None'"/>
					<bind name="class" value="(channel.typeIdent == 'division')	? (divisionEntranceData.divisionType == 'party') ? '$FontColorWhite'
																												 : '$FontColorGolden' :
							 (channel.typeIdent == 'club')	? '$FontColorWhite' :
							 (channel.typeIdent == 'clan')	? '$FontColorWhite' :
							 (_channelHeader)	? '$FontColorBlueish'
												: '$FontColorDefault'"/>
					<bind name="watch" value="'_channelName'; 	(channelTypeIdent == 'clan')														? '['+clanTag+'] ' + clanName :
												(channelTypeIdent == 'club')														? clubName :
											 	(channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'party')	? (divisionData.creatorInfo.clubName + ' + ' + toLowerCase(tr('IDS_MERCENARIES')))
												: (rawChannelName + ((channel.ownerNickName != null &amp;&amp; _isSearch)	? ' (' + channel.ownerNickName + ')'
																													: ''))"/>
					<bind name="text" value="_channelName"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="InvitationToChatItem">
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
		<bind name="watchDH" value="'channelName'; ['channel.evNameChanged', 'channel.user', 'channel.user.ref.accountName.evChanged']; (channel.nameIds != null) ? tr(channel.nameIds) : (channel.user.ref != null) ? channel.user.ref.accountName.nickName : channel.name"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PlayerContactItem'; (channel.invitationFromEntityId != -1) ? {_entityAccountId: channel.invitationFromEntityId, _notTrancated: true} : null"/>
			<block type="text">
				<bind name="visible" value="channel.invitationFromEntityId == -1"/>
				<styleClass value="$TextHeaderBigWhite"/>
				<bind name="text" value="channel.invitationFromNickName"/>
			</block>
		</block>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<style>
				<marginBottom value="2px"/>
			</style>
			<bind name="text" value="'IDS_INVITE_TO_THE_CHANNEL'"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBigWhite"/>
			<style>
				<marginBottom value="4px"/>
			</style>
			<bind name="text" value="channelName"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginBottom value="12px"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<bind name="class" value="'$FontSizeHeader4'"/>
				<bind name="countdown" value="channel.refuseInvitationTimeExpiration; 'countdownText'; 'mm:ss'"/>
				<bind name="pureText" value="'-' + countdownText"/>
				<style>
					<width value="66px"/>
				</style>
			</block>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_AUTOMATE_CANCEL'}"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<block className="button_default_small" type="native">
				<params>
					<param name="autoSize" value="left"/>
				</params>
				<bind name="label" value="toUpperCase(tr('IDS_ACCEPT_INVITATION'))"/>
				<bind name="action" value="'buttonClick'; 'joinChannel'; {channelId: channelEntity.channel.channelId}"/>
			</block>
		</block>
	</block>
	<block className="EnterPasswordChatItem">
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="handleEventDH" value="'channelEntity.channel.evWrongPassword'; 'evWrongPassword'; {}; true"/>
		<bind name="var" value="{_wrongPassword: false}"/>
		<bind name="catch" value="'evWrongPassword'; {_wrongPassword : true}"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextCarouselShipStatus"/>
				<style>
					<marginBottom value="6px"/>
				</style>
				<bind name="text" value="toUpperCase(tr('IDS_CLOSED_CHANNEL'))"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<styleClass value="$MiddleAligned"/>
				<text value="IDS_HINT_ENTER_PASSWORD"/>
			</block>
			<block>
				<style>
					<width value="200px"/>
					<marginTop value="10px"/>
					<height value="30px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<block className="text_input_caps_enter" type="native">
					<styleClass value="$Fullsize"/>
					<block>
						<block>
							<style>
								<position value="absolute"/>
								<width value="200px"/>
								<bottom value="-6px"/>
							</style>
							<bind name="instance" value="'WrongTextInputNotification'; _wrongPassword	? 	{_maxWidth : 200, _startTop: 10,
																							_text: (tr('IDS_WRONG_PASSWORD') + '. ' + tr('IDS_TRY_AGAIN'))}
																						:	null"/>
						</block>
					</block>
					<params>
						<param name="actAsButton" value="true"/>
						<param name="maxChars" value="16"/>
					</params>
					<bind name="focus" value="0; true"/>
					<bind name="sync" value="'text'; 'change'; channelPasswordInput"/>
					<bind name="catch" value="'change'; {_wrongPassword : false}"/>
					<bind name="dispatch" value="'textInputEnter'; 'passwordInputComplete'"/>
					<block className="button_dock" type="native">
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_JOIN'}"/>
						<styleClass value="$TextInputEnterButton"/>
						<bind name="enabled" value="channelPasswordInput.length &gt; 0"/>
						<bind name="dispatch" value="'buttonClick'; 'passwordInputComplete'"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="ChatboxButtonClose">
		<block className="button_close" type="native">
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: (_isInvitation)	? 'IDS_HINT_REJECT_INVITE'
																		: 'IDS_CHANNEL_CLOSE'}"/>
			<bind name="action" value="'buttonClick'; ( !(_isInvitation || _isPasswordNeeded) )	? 'leaveChannel'
																				: _isInvitation ? 'refuseInvitation'
																								: 'cancelEnterPassword';
																			 {channelId: _channelId}"/>
		</block>
	</block>
	<block className="OpenedChannelHintTooltip">
		<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>
			<block>
				<style>
					<width value="100%"/>
					<marginLeft value="9px"/>
					<marginRight value="8px"/>
					<marginTop value="10px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: _isChatBoxOpened ? 'IDS_HINT_COLLAPSE_WINDOW' : 'IDS_HINT_LEFT_CLICK_TO_OPEN_CHAT', _maxWidth: 220}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(_isSteadyChannel)"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginLeft value="9px"/>
					<marginRight value="8px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'right', _instructionText: 'IDS_HINT_RIGHT_CLICK_FOR_CONTEXT_MENU', _maxWidth: 220}"/>
			</block>
		</block>
	</block>
	<css name="$DefaultContactsSize">
		<width value="330px"/>
		<height value="350px"/>
	</css>
	<block className="ResizableContactsAndChannelsInfotip">
		<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="$DefaultContactsSize"/>
		<bind name="actionIsDisplay" value="'setChannelsAndContactsIsDisplay'"/>
		<style>
			<userData value="{
			minResizeHeight: 240,
			maxResizeHeight: 620
		}"/>
		</style>
		<bind name="resize" value="'grip';'up';null; 'contactsAndChannelsHeight'"/>
		<block className="ContactsAndChannelsInfotip">
			<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="$VerticalInfotipBehaviourCenter"/>
			<bind name="class" value="_isFromDockChatBtn ? '$Fullsize' : '$DefaultContactsSize'"/>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<position value="absolute"/>
					<marginLeft value="13px"/>
					<marginRight value="13px"/>
					<marginTop value="9px"/>
					<marginBottom value="11px"/>
				</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="dock_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="-6px"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="!(_isFromDockChatBtn)"/>
				<block className="dock_panel_pin" type="native">
					<bind name="gotoAndStop!" value="'up'"/>
					<params>
						<param name="name" value="pinTop"/>
					</params>
					<style>
						<position value="absolute"/>
						<alpha value="0.5"/>
					</style>
				</block>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="14px"/>
					<marginRight value="14px"/>
					<marginTop value="7px"/>
				</style>
				<bind name="var" value="{isServerAvailable: false}"/>
				<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
				<bind name="watchDH" value="'isServerAvailable'; ['chat.evConnected', 'chat.evDisConnected']; chat.isConnected"/>
				<bind name="child" value="isServerAvailable; {_playerContext: _playerContext, _isFromDockChatBtn: _isFromDockChatBtn}; 'ServerIsUnavailable'; 'ContactsAndChannels'"/>
			</block>
			<block>
				<bind name="visible" value="!(_isFromDockChatBtn)"/>
				<block className="dock_panel_pin" type="native">
					<bind name="gotoAndStop!" value="'down'"/>
					<params>
						<param name="name" value="pinBottom"/>
					</params>
					<style>
						<marginBottom value="3px"/>
						<alpha value="0.5"/>
					</style>
				</block>
			</block>
			<block className="dock_panel_pin_h" type="native">
				<style>
					<position value="absolute"/>
					<width value="9px"/>
					<left value="13px"/>
					<height value="16px"/>
					<alpha value="0.6"/>
				</style>
				<bind name="gotoAndStop!" value="'left'"/>
				<params>
					<param name="name" value="pinLeft"/>
				</params>
			</block>
			<block className="dock_panel_pin_h" type="native">
				<style>
					<position value="absolute"/>
					<width value="9px"/>
					<right value="4px"/>
					<height value="16px"/>
					<alpha value="0.6"/>
				</style>
				<bind name="gotoAndStop!" value="'right'"/>
				<params>
					<param name="name" value="pinRight"/>
				</params>
			</block>
			<block>
				<bind name="visible" value="_isFromDockChatBtn == true"/>
				<block className="dock_panel_pin" type="native">
					<bind name="gotoAndStop!" value="'down'"/>
					<style>
						<marginLeft value="20px"/>
						<marginBottom value="3px"/>
						<alpha value="0.5"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_VERTICAL_OVER'"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<position value="absolute"/>
				<top value="7px"/>
				<height value="8px"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="transition" value="(rollOver || resizing); 0.06; {alpha: 0}; {alpha: 1}; {alpha: 0}"/>
			<params>
				<param name="name" value="grip"/>
			</params>
			<block className="gripper_horizontal_over" type="native">
				<style>
					<alpha value="0.7"/>
					<marginTop value="3px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
			</block>
		</block>
	</block>
	<block className="ServerIsUnavailable">
		<styleClass value="$MiddleAligned"/>
		<styleClass value="$MiddleVAligned"/>
		<block>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="_isBig ? '$TextAccentBoldAccountLevel2' : '$TextHeaderBold'"/>
				<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : '300'"/>
				<bind name="style" value="'marginBottom'; _small ? '2px' : '4px'"/>
				<style>
					<textAlign value="center"/>
				</style>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="_type	? toUpperCase(tr('IDS_SERVICE_IS_UNAVAILABLE_'+(_type)))
								: toUpperCase(tr('IDS_SERVICE_IS_UNAVAILABLE_CHAT'))"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'EmptyStatusParagraph'; {_text : 'IDS_WE_ARE_WORKING_ON_THIS', _maxWidth: (_maxWidth ? _maxWidth : '280'), _sizeClass: _isBig ? '$FontSizeHeader5' : '$FontSizeLarge'}"/>
			</block>
		</block>
	</block>
	<block className="ContactsAndChannelsInfotip">
		<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="$VerticalInfotipBehaviourCenter"/>
		<bind name="class" value="_isFromDockChatBtn ? '$Fullsize' : '$DefaultContactsSize'"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginLeft value="13px"/>
				<marginRight value="13px"/>
				<marginTop value="9px"/>
				<marginBottom value="11px"/>
			</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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="-6px"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="!(_isFromDockChatBtn)"/>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'up'"/>
				<params>
					<param name="name" value="pinTop"/>
				</params>
				<style>
					<position value="absolute"/>
					<alpha value="0.5"/>
				</style>
			</block>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<marginLeft value="14px"/>
				<marginRight value="14px"/>
				<marginTop value="7px"/>
			</style>
			<bind name="var" value="{isServerAvailable: false}"/>
			<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
			<bind name="watchDH" value="'isServerAvailable'; ['chat.evConnected', 'chat.evDisConnected']; chat.isConnected"/>
			<bind name="child" value="isServerAvailable; {_playerContext: _playerContext, _isFromDockChatBtn: _isFromDockChatBtn}; 'ServerIsUnavailable'; 'ContactsAndChannels'"/>
		</block>
		<block>
			<bind name="visible" value="!(_isFromDockChatBtn)"/>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'down'"/>
				<params>
					<param name="name" value="pinBottom"/>
				</params>
				<style>
					<marginBottom value="3px"/>
					<alpha value="0.5"/>
				</style>
			</block>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<width value="9px"/>
				<left value="13px"/>
				<height value="16px"/>
				<alpha value="0.6"/>
			</style>
			<bind name="gotoAndStop!" value="'left'"/>
			<params>
				<param name="name" value="pinLeft"/>
			</params>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<width value="9px"/>
				<right value="4px"/>
				<height value="16px"/>
				<alpha value="0.6"/>
			</style>
			<bind name="gotoAndStop!" value="'right'"/>
			<params>
				<param name="name" value="pinRight"/>
			</params>
		</block>
		<block>
			<bind name="visible" value="_isFromDockChatBtn == true"/>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'down'"/>
				<style>
					<marginLeft value="20px"/>
					<marginBottom value="3px"/>
					<alpha value="0.5"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ContactsAndChannels">
		<bind name="var" value="{_searchState: 0}"/>
		<bind name="catch" value="'changeContactListInset'"/>
		<bind name="catch" value="'TextInputWithCancel.searchCancelled'; {_searchState : 0}"/>
		<bind name="catch" value="'addContact.searchButtonClicked'; 	{	_searchState : 1,
														_searchRequests: _isFromDockChatBtn ? [['contacts', 13], ['channels', null]]
																							: [['contacts', 13]]																												,
														_resultsDisplay: _isFromDockChatBtn ? ['myContacts', 'contacts', 'ignoredContacts', 'myChannels', 'channels']
																							: ['myContacts', 'contacts', 'ignoredContacts']
													}"/>
		<bind name="catch" value="'addContact.searchButtonClickedFromAddPlayer'; {	_searchState : 1,
																	_searchRequests:[['contacts', 13]],
																	_resultsDisplay:['contacts']}"/>
		<bind name="catch" value="'searchChannelsButtonClicked'; {	_searchState : 1,
													_searchRequests:[['channels', null], ['contacts', 13]],
													_resultsDisplay:['myChannels', 'channels', 'myContacts', 'contacts', 'ignoredContacts']
												}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<bind name="visible" value="_isFromDockChatBtn == true"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
			<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
			<bind name="watchDH" value="'clubsCount'; ['clubsCommonEntity.clubsCommon.evClubsCountChanged']; clubsCommonEntity.clubsCommon.clubsCount"/>
			<bind name="watch" value="'isAnyClubExisted'; clubsCount &gt; 0"/>
			<bind name="watch" value="'tabWidth'; isAnyClubExisted ? 98 : 150"/>
			<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="var" value="{inset: (userPrefs.contactsInset == null) || (!(isAnyClubExisted) &amp;&amp; userPrefs.contactsInset == 2)	? 0
																														: userPrefs.contactsInset }"/>
			<bind name="changeDispatch" value="inset; 'saveContactListInset'"/>
			<bind name="action" value="'saveContactListInset' ; 'setUserPref' ; {value: inset, name: 'contactsInset'}"/>
			<block className="tab_bar_bg" type="native">
				<style>
					<width value="100%"/>
					<height value="25px"/>
					<marginTop value="6px"/>
					<marginLeft value="-1px"/>
					<marginRight value="-1px"/>
				</style>
				<block>
					<style>
						<marginLeft value="1px"/>
					</style>
					<block>
						<bind name="instance" value="'MainTabSmallInstance'; {	_width: (tabWidth - 1), _selected: (inset == 0),
																_event: 'changeContactListInset', _eventParams: {inset: 0, _searchState: 0}, _label: 'IDS_CONTACTS', _tooltipIDS: 'IDS_TOOLTIP_TAB_CONTACTS',
																_name: 'contacts'}"/>
					</block>
					<block>
						<block className="divider_v" type="native">
							<style>
								<height value="21px"/>
								<marginTop value="2px"/>
							</style>
						</block>
					</block>
					<block>
						<bind name="visible" value="isAnyClubExisted"/>
						<block>
							<bind name="instance" value="'MainTabSmallInstance'; {	_width: (tabWidth + 3), _selected: (inset == 2),
																	_event: 'changeContactListInset', _eventParams: {inset: 2, _searchState: 0}, _label: 'IDS_CLUBS', _tooltipIDS: 'IDS_TOOLTIP_TAB_CLUBS',
																	_name: 'clubs'}"/>
						</block>
						<block>
							<block className="divider_v" type="native">
								<style>
									<height value="21px"/>
									<marginTop value="2px"/>
								</style>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="instance" value="'MainTabSmallInstance'; {	_width: tabWidth, _selected: (inset == 1),
																_event: 'changeContactListInset', _eventParams: {inset: 1, _searchState: 0}, _label: 'IDS_CHANNELS', _tooltipIDS: 'IDS_TOOLTIP_TAB_CHANNELS',
																_name: 'channels'}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="9px"/>
					<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>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="child" value="_isFromDockChatBtn ? inset : 0; {_searchState: _searchState, _searchRequests: _searchRequests, _resultsDisplay: _resultsDisplay, _playerContext: _playerContext, _isFromDockChatBtn: _isFromDockChatBtn}; 'Contacts'; 'Channels'; 'Clubs'"/>
		</block>
	</block>
	<block className="Contacts">
		<styleClass value="$Fullsize"/>
		<bind name="child" value="_searchState; {_searchRequests: _searchRequests, _resultsDisplay: _resultsDisplay, _playerContext: _playerContext, _isFromDockChatBtn: _isFromDockChatBtn}; 'ContactsList'; 'SearchResultsList'"/>
	</block>
	<block className="Channels">
		<styleClass value="$Fullsize"/>
		<bind name="child" value="_searchState; {_searchRequests:_searchRequests, _resultsDisplay: _resultsDisplay, _playerContext: _playerContext, _isFromDockChatBtn: _isFromDockChatBtn}; 'ChannelsList'; 'SearchResultsList'"/>
	</block>
	<block className="Clubs">
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'isClubServiceAvailable'; ['clubsCommonEntity.clubsCommon.evIsActiveChanged']; clubsCommonEntity.clubsCommon.isActive"/>
		<styleClass value="$Fullsize"/>
		<block className="inner_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<height value="100%f"/>
				<width value="100%"/>
				<overflow value="scroll"/>
			</style>
			<block>
				<bind name="visible" value="isClubServiceAvailable"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ClubMembersGroupsList'; {_playerContextType: 'contactsClubMembers'}"/>
			</block>
			<block>
				<bind name="visible" value="!(isClubServiceAvailable)"/>
				<style>
					<marginTop value="60px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ServerIsUnavailable'; isClubServiceAvailable ? null : {_type: 'CLUB', _maxWidth: 220, _small: true }"/>
			</block>
		</block>
	</block>
	<block className="ClubMembersGroupsList">
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="repeat" value="clubs; 'ClubGroup'; {_playerContextType: _playerContextType}"/>
	</block>
	<block className="ClubGroup">
		<bind name="entityDH" value="'entityClub'; id"/>
		<bind name="watchDH" value="'name';['entityClub.club.evNameChanged']; entityClub.club.name"/>
		<bind name="watchDH" value="'isPartyMember'; ['entityClub.party.evUpdate']; entityClub.party.isMember"/>
		<bind name="watchDH" value="'leaderDbId';['entityClub.club.evleaderIdChanged']; entityClub.club.leaderId"/>
		<bind name="watchDH" value="'isPartyInBattle'; ['entityClub.party.evUpdate']; entityClub.party.isInBattle"/>
		<bind name="watchDH" value="'isCommander'; ['entityClub.party.evUpdate']; entityClub.party.isOwner"/>
		<bind name="watchDH" value="'isPartyCreated'; ['entityClub.club.evPartyCreatedChanged']; entityClub.club.partyCreated"/>
		<bind name="watchDH" value="'membersWithoutPlayer'; ['entityClub.club.evMembersChanged']; entityClub.club.membersWithoutPlayer"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
			<style>
				<width value="100%"/>
				<height value="33px"/>
			</style>
			<bind name="var" value="{groupExpanded: true}"/>
			<bind name="catch" value="'expandClubGroup'"/>
			<block>
				<style>
					<width value="100%"/>
					<height value="33px"/>
				</style>
				<bind name="instance" value="'SimpleListGroupHeader'; {	_expandGroupEvent: 'expandClubGroup', _groupLabel: name,
														_groupExpanded: groupExpanded, _stateOver: rollOver, _marginLeft: isPartyCreated ? '54px' : false}"/>
			</block>
			<block>
				<bind name="visible" value="isPartyCreated"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: isPartyInBattle ? 'IDS_IN_BATTLE' : 'IDS_PREPARING_FOR_BATTLE'}"/>
				<style>
					<width value="32px"/>
					<height value="29px"/>
					<top value="2px"/>
					<marginLeft value="22px"/>
					<backgroundSize value="cover"/>
					<position value="absolute"/>
				</style>
				<bind name="style" value="'backgroundImage'; isPartyInBattle ?	isPartyMember	? 'symbol:icon_club_status_in_battle_member_small'
																				: 'symbol:icon_club_status_in_battle_small' :
											isCommander		? 'symbol:icon_club_status_party_commander_small' :
											isPartyMember 	? 'symbol:icon_club_status_party_member_small'
															: 'symbol:icon_club_status_party_small'"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="1px"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="2px"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="fade" value="groupExpanded; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0"/>
					<bind name="repeat" value="membersWithoutPlayer; 'ContactsClubMember'; {	_clubEntityId: id, groupExpanded: groupExpanded,
																			_playerContext: ((_playerContextType == 'contactsClubMembers')	? {	type: 'contactsClubMembers', clubId: entityClub.club.id, clubEntityId: id,
																																				clubLeaderDbId: leaderDbId} :
																							(_playerContextType == 'inviteToParty')			? {	type: 'inviteToParty', clubLeaderDbId: leaderDbId, clubEntityId: id}
																																			: {type: 'contactsClubMembers', clubLeaderDbId: leaderDbId})}"/>
				</block>
				<block>
					<bind name="visible" value="(groupExpanded &amp;&amp; membersWithoutPlayer.length != 0)"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<bottom value="0px"/>
					</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%"/>
					<height value="30px"/>
				</style>
				<bind name="fade" value="(groupExpanded &amp;&amp; membersWithoutPlayer.length == 0); 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
				<block className="NoItemsInGroup">
					<style>
						<width value="100%"/>
						<height value="30px"/>
					</style>
					<block>
						<styleClass value="$MiddleAligned"/>
						<style>
							<marginTop value="2px"/>
						</style>
						<bind name="instance" value="'EmptyStatusParagraph'; {_text: 'IDS_INSTRUCTION_YOU_HAVE_NO_CLUB_MEMBERS', _maxWidth: 300}"/>
					</block>
					<block>
						<style>
							<position value="absolute"/>
							<width value="100%"/>
							<bottom value="0px"/>
						</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>
		</block>
	</block>
	<block className="ContactsClubMember">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="fade" value="groupExpanded; 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'PlayerContactItemWithRollover'; {_entityAccountId: $value, _playerContext: _playerContext}"/>
		</block>
	</block>
	<block className="ContactsList">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<bind name="dataRefDH" value="'contactsGroups'; 'dataHub.chat.ref.chat.contactsGroups.ref.items'"/>
		<bind name="handleEventDH" value="'dataHub.chat.ref.chat.evCreateContactsGroupErrorNameExist'; 'evCreateGroupErrorNameExist'"/>
		<bind name="var" value="{isCreatingGroup: false}"/>
		<bind name="watchDH" value="'isCreatingGroup'; ['dataHub.chat.ref.chat.contactsGroups.ref.items']; false"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="-2px"/>
				</style>
			</block>
			<block>
				<styleClass value="$DefaultScrollBar"/>
				<style>
					<height value="100%"/>
					<width value="100%"/>
					<overflow value="scroll"/>
					<marginBottom value="-2px"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="repeat" value="contactsGroups; 'ContactsGroupElement'; {_playerContext: _playerContext}"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<height value="40px"/>
					</style>
					<bind name="var" value="{isWrongName: false }"/>
					<bind name="catch" value="'ContactsList.addGroupButtonClicked'; {isCreatingGroup : true, isWrongName : false}"/>
					<bind name="catch" value="'TextInputWithCancel.groupCreationCancelled'; {isCreatingGroup : false, isWrongName : false}"/>
					<bind name="catch" value="'evCreateGroupErrorNameExist'; { 	isWrongName :		(inputStr=='') ? false : true,
																isCreatingGroup :	(inputStr=='') ? false : true}"/>
					<bind name="catch" value="'TextInputWithCancel.inputStrChanged'; {isWrongName : false}"/>
					<bind name="watch" value="'newGroupTitle'; inputStr"/>
					<bind name="catch" value="'TextInputWithCancel.groupCreationComplete'; null;'readyToExecuteGroupCreation'"/>
					<bind name="action" value="'readyToExecuteGroupCreation'; 'addContactsGroup'; {name: inputStr}"/>
					<block>
						<bind name="visible" value="isCreatingGroup"/>
						<style>
							<marginLeft value="6px"/>
							<marginTop value="20px"/>
						</style>
						<block>
							<styleClass value="$Fullsize"/>
							<bind name="instance" value="'TextInputWithCancel'; isCreatingGroup 	? {	onEnterEvent: 'groupCreationComplete',
																					onCancelEvent: 'groupCreationCancelled',
																					onInputStrChangedEvent: 'inputStrChanged',
																					defaultText: 'IDS_ENTER_GROUP_TITLE',
																					_onEnterTooltipText: 'IDS_ADD_GROUP',
																					_defaultInputValue: tr('IDS_NEW_GROUP')}
																				: null"/>
						</block>
						<block>
							<block>
								<style>
									<position value="absolute"/>
									<width value="270px"/>
									<bottom value="8px"/>
								</style>
								<bind name="instance" value="'WrongTextInputNotification'; isWrongName	? 	{_maxWidth : 270, _startTop: 10,
																							_text: (tr('IDS_WRONG_GROUP_TITLE') + '. ' + tr('IDS_TRY_ANOTHER_TITLE'))}
																						:	null"/>
							</block>
						</block>
					</block>
					<block>
						<bind name="visible" value="(!(isCreatingGroup) &amp;&amp; (_isFromDockChatBtn == true))"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ADD_GROUP'}"/>
						<style>
							<width value="100%"/>
						</style>
						<block className="dock_submenu_item" type="native">
							<styleClass value="$FullsizeAbsolute"/>
							<bind name="dispatch" value="'click'; 'ContactsList.addGroupButtonClicked'"/>
							<params>
								<param name="soundSet" value="dropmenu_button"/>
							</params>
						</block>
						<block>
							<styleClass value="$MiddleAligned"/>
							<style>
								<hitTest value="false"/>
								<marginTop value="9px"/>
								<marginBottom value="9px"/>
							</style>
							<block className="icon_plus" type="native">
								<style>
									<marginTop value="5px"/>
								</style>
							</block>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="'$FontColorBlueish'"/>
								<text value="IDS_ADD_GROUP"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<height value="42px"/>
			</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>
				<styleClass value="$Fullsize"/>
				<style>
					<marginRight value="6px"/>
					<marginLeft value="4px"/>
				</style>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="100%"/>
					</style>
					<block className="dock_submenu_item" type="native">
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ADD_PLAYERS'}"/>
						<style>
							<height value="30px"/>
						</style>
						<block>
							<styleClass value="$MiddleVAligned"/>
							<bind name="visible" value="(_isFromDockChatBtn == true)"/>
							<style>
								<hitTest value="false"/>
							</style>
							<block className="icon_plus" type="native">
								<style>
									<marginLeft value="3px"/>
								</style>
								<styleClass value="$MiddleVAligned"/>
							</block>
							<block type="text">
								<style>
									<marginRight value="3px"/>
								</style>
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="'$FontColorBlueish'"/>
								<text value="IDS_ADD_PLAYER"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<bind name="dispatch" value="'click'; 'addContact.searchButtonClickedFromAddPlayer'"/>
					</block>
					<block className="button_search" type="native">
						<bind name="name" value="'searchPlayer'"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<right value="4px"/>
							<position value="absolute"/>
						</style>
						<bind name="dispatch" value="'buttonClick';'addContact.searchButtonClicked'"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SEARCH_PLAYERS'}"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="SearchResultGroup">
		<bind name="visible" value="searchGroups[$value].elements.length &gt; 0"/>
		<bind name="watch" value="'groupExpanded'; searchGroups[$value].groupExpanded"/>
		<bind name="catch" value="'invertExpand'; {groupExpanded: !groupExpanded}"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<height value="33px"/>
			</style>
			<block className="ExpandedGroupTitle">
				<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
				<style>
					<width value="100%"/>
					<height value="33px"/>
				</style>
				<block className="dock_submenu_item_bg" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="transition" value="(rollOver); 0.15; {alpha: 0}; {alpha: 0.5}"/>
					<block className="button_expand" type="native">
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: (groupExpanded) ? 'IDS_HINT_COLLAPSE_GROUP' : 'IDS_HINT_EXPAND_GROUP'}"/>
						<bind name="menu" value="'GroupContextMenu'; (false) ? {groupId: group.groupOfElements.groupId, _isIgnoreList: group.groupOfElements.isIgnorList, _isLocal: group.groupOfElements.isLocal} : null"/>
						<style>
							<position value="absolute"/>
							<width value="100%"/>
							<marginTop value="5px"/>
							<marginLeft value="3px"/>
						</style>
						<params>
							<param name="toggle" value="true"/>
							<param name="soundSet" value="dropmenu_button"/>
							<param name="focusable" value="false"/>
						</params>
						<bind name="selected" value="groupExpanded"/>
						<bind name="action" value="'buttonClick'; group.id ? 'expandGroupElement' : ''; { entityId: group.id }"/>
						<bind name="dispatch" value="'buttonClick' ; !(group.id) ? 'invertExpand' : ''"/>
					</block>
					<block type="text">
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$FontColorBlueish"/>
						<styleClass value="$TextDefaultBold"/>
						<style>
							<marginLeft value="22px"/>
							<hitTest value="false"/>
						</style>
						<bind name="text" value="searchGroups[$value].groupTitle"/>
					</block>
					<block>
						<bind name="visible" value="( !(group.groupOfElements.isIgnorList) &amp;&amp; false )"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_ONLINE_PLAYERS') + ' / ' + tr('IDS_PLAYERS_IN_GROUP')}"/>
						<styleClass value="$FullsizeAbsolute"/>
						<block>
							<styleClass value="$MiddleVAligned"/>
							<style>
								<right value="9px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<bind name="style" value="'alpha'; (countOnline!=0) ? 1 : 0.5"/>
								<bind name="text" value="countOnline"/>
							</block>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<style>
									<alpha value="0.5"/>
								</style>
								<bind name="text" value="'/ ' + countTotal"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="-1px"/>
					<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>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="1px"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="2px"/>
				</style>
				<bind name="repeat" value="searchGroups[$value].elements; searchGroups[$value].elementName; {groupExpanded: groupExpanded, _isSearch: true, _playerContext: _playerContext}"/>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<bottom value="0px"/>
				</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>
	<block className="SearchResultsList">
		<bind name="dataRefDH" value="'myContacts'; 'dataHub.chat.ref.searchResult.myContacts.ref.items'"/>
		<bind name="dataRefDH" value="'contacts'; 'dataHub.chat.ref.searchResult.contacts.ref.items'"/>
		<bind name="dataRefDH" value="'ignoredContacts'; 'dataHub.chat.ref.searchResult.ignoredContacts.ref.items'"/>
		<bind name="dataRefDH" value="'myChannels'; 'dataHub.chat.ref.searchResult.myChannels.ref.items'"/>
		<bind name="dataRefDH" value="'channels'; 'dataHub.chat.ref.searchResult.channels.ref.items'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<bind name="action" value="'removedFromStage'; 'clearSearchResult'"/>
		<bind name="var" value="{inputStr:''}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<text value="IDS_SEARCH_RESULTS"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop 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 className="inner_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="1px"/>
			</style>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<block>
				<styleClass value="$DefaultScrollBar"/>
				<style>
					<height value="100%"/>
					<width value="100%"/>
					<overflow value="scroll"/>
					<marginBottom value="-2px"/>
				</style>
				<bind name="repeat" value="_resultsDisplay; 'SearchResultGroup';  {	_playerContext: _playerContext,
																	searchGroups:{
																		myContacts:		{elements:myContacts, 		elementName:'ContactElement', groupTitle:'IDS_SEARCH_GROUP_IN_FRIENDS',		groupExpanded:true},
																		contacts: 		{elements:contacts, 		elementName:'ContactElement', groupTitle:'IDS_SEARCH_GROUP_NOT_IN_FRIENDS',	groupExpanded:true},
																		ignoredContacts: {elements:ignoredContacts, elementName:'ContactElement', groupTitle:'IDS_SEARCH_GROUP_IN_IGNOR_LIST', 	groupExpanded:false},
																		myChannels: 	{elements:myChannels, 		elementName:'ChannelElement', groupTitle:'IDS_SEARCH_GROUP_IN_MY_CHANNELS',	groupExpanded:true},
																		channels: 		{elements:channels, 		elementName:'ChannelElement', groupTitle:'IDS_SEARCH_GROUP_NOT_IN_MY_CHANNELS', groupExpanded:true}}}"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<height value="42px"/>
			</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>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="0px"/>
				</style>
				<bind name="instance" value="'TextInputWithCancel'; {	onCancelEvent: 'searchCancelled', onInputStrChangedEvent: 'inputStrChanged', _onEnterTooltipText: 'IDS_HINT_FIND',
														restrict: (!(_isFromDockChatBtn) ? realmConstants.nicknameRestrict : null)}"/>
				<bind name="catch" value="'TextInputWithCancel.inputStrChanged'"/>
				<bind name="changeDispatch" value="inputStr; 'inputStrChanged'"/>
				<bind name="action" value="'inputStrChanged'; 'searchRequest'; {requests: _searchRequests, query: inputStr}"/>
			</block>
		</block>
	</block>
	<block className="ChannelsList">
		<style>
			<width value="100%"/>
			<height value="100%"/>
		</style>
		<bind name="dataRefDH" value="'channelsGroups'; 'dataHub.chat.ref.chat.channelsGroups.ref.items'"/>
		<block>
			<styleClass value="$Fullsize"/>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="-2px"/>
				</style>
			</block>
			<block>
				<styleClass value="$DefaultScrollBar"/>
				<style>
					<height value="100%"/>
					<width value="100%"/>
					<overflow value="scroll"/>
					<marginBottom value="-2px"/>
				</style>
				<bind name="repeat" value="channelsGroups; 'ChannelsGroupElement'"/>
			</block>
		</block>
		<bind name="watchDH" value="'isCreatingChannel'; ['dataHub.chat.ref.chat.channels.ref.items']; false"/>
		<bind name="var" value="{isCreatingChannel: false}"/>
		<bind name="catch" value="'addChannelBtnClicked'; {isCreatingChannel : true}"/>
		<bind name="catch" value="'channelCreationCancelled'; {isCreatingChannel : false}"/>
		<block>
			<bind name="visible" value="isCreatingChannel"/>
			<style>
				<width value="100%"/>
				<height value="79px"/>
			</style>
			<bind name="instance" value="'ChannelCreator'; isCreatingChannel ? {} : null"/>
		</block>
		<block>
			<bind name="visible" value="!isCreatingChannel"/>
			<style>
				<width value="100%"/>
				<height value="42px"/>
			</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>
				<styleClass value="$Fullsize"/>
				<style>
					<marginRight value="6px"/>
					<marginLeft value="4px"/>
				</style>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="100%"/>
					</style>
					<block className="dock_submenu_item" type="native">
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ADD_CHANNELS'}"/>
						<style>
							<height value="30px"/>
						</style>
						<block>
							<styleClass value="$MiddleVAligned"/>
							<style>
								<hitTest value="false"/>
							</style>
							<block className="icon_plus" type="native">
								<style>
									<marginLeft value="3px"/>
								</style>
								<styleClass value="$MiddleVAligned"/>
							</block>
							<block type="text">
								<style>
									<marginRight value="3px"/>
								</style>
								<styleClass value="$TextDefaultBold"/>
								<bind name="class" value="'$FontColorBlueish'"/>
								<text value="IDS_CREATE_CHANNEL"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<bind name="dispatch" value="'click'; 'addChannelBtnClicked'"/>
					</block>
					<block className="button_search" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<right value="4px"/>
							<position value="absolute"/>
						</style>
						<bind name="dispatch" value="'buttonClick'; 'searchChannelsButtonClicked'"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SEARCH_CHANNELS'}"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="ChannelCreator">
		<style>
			<width value="100%"/>
		</style>
		<bind name="dataRefDH" value="'channelsGroups'; 'dataHub.chat.ref.chat.channelsGroups.ref.items'"/>
		<bind name="handleEventDH" value="'dataHub.chat.ref.chat.evCreateChannelErrorNameExist'; 'evCreateChannelErrorNameExist'"/>
		<bind name="var" value="{ channelTitleInput: tr('IDS_CHANNEL_NAME_DEFAULT'),
				 channelPasswordInput: '',
	 			 isWrongName: false}"/>
		<bind name="catch" value="'evCreateChannelErrorNameExist'; { isWrongName:	(channelTitleInput == '') ? false : true}"/>
		<bind name="action" value="'channelCreationComplete'; 'createChannel'; {	name: channelTitleInput,
																password: channelPasswordInput}"/>
		<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="6px"/>
				<marginTop value="6px"/>
			</style>
			<block>
				<block className="text_input_caps_enter" type="native">
					<bind name="focus" value="1; true"/>
					<style>
						<width value="270px"/>
					</style>
					<params>
						<param name="actAsButton" value="true"/>
						<param name="maxChars" value="32"/>
						<param name="restrict" value="^&lt;&gt;"/>
					</params>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ENTER_CHANNEL_NAME'}"/>
					<bind name="text" value="channelTitleInput"/>
					<bind name="sync" value="'text'; 'change'; channelTitleInput"/>
					<bind name="catch" value="'change'; {isWrongName : false}"/>
					<bind name="dispatch" value="'textInputEnter';	(channelTitleInput == '') ? 'channelCreationCancelled'
																			  : (channelTitleInput.length &gt; 2) 	? 'channelCreationComplete'
																												: 'evCreateChannelErrorNameExist'"/>
					<block>
						<style>
							<width value="100%"/>
							<position value="absolute"/>
						</style>
						<block>
							<style>
								<position value="absolute"/>
								<width value="100%"/>
								<bottom value="-6px"/>
							</style>
							<bind name="instance" value="'WrongTextInputNotification'; isWrongName	? 	{_maxWidth : 270, _startTop: 10,
																						 _text: (channelTitleInput.length &lt; 3)	? tr('IDS_HINT_ENTER_CHANNEL_NAME')
																																: (tr('IDS_WRONG_TITLE') + '. ' + tr('IDS_TRY_ANOTHER_TITLE'))}
																					:	null"/>
						</block>
					</block>
				</block>
				<block className="button_dock" type="native">
					<style>
						<marginLeft value="-17px"/>
					</style>
					<styleClass value="$TextInputEnterButton"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CREATE_CHANNEL'}"/>
					<bind name="dispatch" value="'buttonClick';	(channelTitleInput == '') ? 'channelCreationCancelled'
                                                                          : (channelTitleInput.length &gt; 2) 	? 'channelCreationComplete'
                                                                                                            : 'evCreateChannelErrorNameExist'"/>
				</block>
				<block className="button_close" type="native">
					<style>
						<marginLeft value="5px"/>
					</style>
					<styleClass value="$MiddleVAligned"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CANCEL'}"/>
					<bind name="dispatch" value="'buttonClick'; 'channelCreationCancelled'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block className="text_input_caps" type="native">
				<style>
					<width value="270px"/>
					<marginTop value="4px"/>
				</style>
				<params>
					<param name="actAsButton" value="true"/>
					<param name="maxChars" value="16"/>
					<param name="defaultText" value="IDS_ENTER_NEW_CHANNEL_PWD"/>
				</params>
				<bind name="focus" value="2; false"/>
				<bind name="sync" value="'text'; 'change'; channelPasswordInput"/>
				<bind name="dispatch" value="'textInputEnter'; 'channelCreationComplete'"/>
			</block>
		</block>
	</block>
	<block className="TextInputWithCancel">
		<styleClass value="$Fullsize"/>
		<bind name="catch" value="'removedFromStage'; {textInput: ''}"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block className="text_input_caps_enter" type="native">
				<bind name="name" value="'textFieldSearch'"/>
				<bind name="tooltip" value="'SimpleTooltip'; _tooltipText ? {tooltipText: _tooltipText} : null"/>
				<bind name="style" value="'width'; _tfWidth ? _tfWidth : '270px'"/>
				<params>
					<param name="actAsButton" value="true"/>
				</params>
				<bind name="maxChars" value="_maxChars ? _maxChars : 32"/>
				<bind name="defaultText" value="defaultText"/>
				<bind name="var" value="{textInput: _currentText ? _currentText : _defaultInputValue}"/>
				<bind name="focus" value="0; true"/>
				<bind name="restrict" value="restrict"/>
				<bind name="text" value="textInput"/>
				<bind name="sync" value="'text'; 'change'; textInput"/>
				<bind name="dispatch" value="'change'; 'TextInputWithCancel.'+ onInputStrChangedEvent; {inputStr: textInput}"/>
				<bind name="dispatch" value="'textInputEnter'; 'TextInputWithCancel.' + onEnterEvent; {inputStr: textInput}"/>
				<block className="button_dock" type="native">
					<bind name="tooltip" value="'SimpleTooltip'; _onEnterTooltipText ? {tooltipText: _onEnterTooltipText} : null"/>
					<styleClass value="$TextInputEnterButton"/>
					<bind name="enabled" value="textInput.length &gt; 0"/>
					<bind name="dispatch" value="'buttonClick'; 'TextInputWithCancel.' + onEnterEvent; {inputStr: textInput}"/>
				</block>
			</block>
			<block className="button_close" type="native">
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CANCEL'}"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<marginLeft value="6px"/>
				</style>
				<bind name="dispatch" value="'buttonClick'; 'TextInputWithCancel.' + onCancelEvent"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ContactElement">
		<bind name="dataRefDH" value="'entityAccount'; '$dataRef.ref'"/>
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="fade" value="groupExpanded; 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
		<block>
			<bind name="name" value="'playerContact_' + entityAccount.accountName.nickName"/>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'PlayerContactItemWithRollover'; {_entityAccountId: entityAccount.id, _currentGroupId: _currentGroupId, _playerContext: _playerContext}"/>
		</block>
	</block>
	<block className="ChannelElement">
		<bind name="dataRefDH" value="'channelEntity'; '$dataRef.ref'"/>
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="fade" value="groupExpanded; 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
		<bind name="var" value="{isChannelRenaming: false}"/>
		<bind name="catch" value="'TextInputWithCancel.channelRenameCancelled'; {isChannelRenaming : false}"/>
		<bind name="catch" value="'TextInputWithCancel.channelRenameComplete'; {isChannelRenaming : false}"/>
		<bind name="catch" value="'ChannelContextMenu.renameChannelClicked'; {isChannelRenaming : true}"/>
		<block>
			<bind name="visible" value="isChannelRenaming"/>
			<styleClass value="$Fullsize"/>
			<style>
				<marginLeft value="4px"/>
			</style>
			<bind name="instance" value="'TextInputWithCancel'; isChannelRenaming ? {	onEnterEvent: 'channelRenameComplete',
																		onCancelEvent: 'channelRenameCancelled',
																		_currentText: channelEntity.channel.name,
																		_onEnterTooltipText: 'IDS_CHANNEL_RENAME',
																		_tooltipText: 'IDS_HINT_ENTER_CHANNEL_NAME'}
																 :	null"/>
			<bind name="catch" value="'TextInputWithCancel.channelRenameComplete'"/>
			<bind name="action" value="'TextInputWithCancel.channelRenameComplete'; 'renameChannel'; {channelId: channelEntity.channel.channelId, newName: inputStr}"/>
		</block>
		<block>
			<bind name="visible" value="!(isChannelRenaming)"/>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'ChannelElementWithRollover'; {channelEntityId: channelEntity.id, _isSearch: _isSearch}"/>
		</block>
	</block>
	<block className="ChannelInfoTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="250px"/>
		</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 className="hint_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'ChannelTitleWithIcon'; {channelEntityId: _channelEntityId, _bold: true, _width: 'auto', _maxWidth: 216, _isSearch: _isSearch}"/>
			<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>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginTop value="9px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'double_left', _instructionText: 'IDS_HINT_LEFT_CLICK_TO_OPEN_CHANNEL', _maxWidth: 220}"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<marginBottom value="6px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'right', _instructionText: 'IDS_HINT_RIGHT_CLICK_FOR_CONTEXT_MENU', _maxWidth: 220}"/>
			</block>
		</block>
	</block>
	<block className="ChannelElementWithRollover">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
		<bind name="watchDH" value="'channelOpened'; ['channel.evOpenChanged']; channel.opened"/>
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="style" value="'alpha'; channelOpened ? 1: 0.7"/>
		<block className="dock_submenu_item_bg" type="native">
			<bind name="transition" value="(rollOver || channelContextMenuVisible); 0.15; {alpha: 0}; {alpha: 1.0}"/>
			<bind name="menu" value="'ChannelContextMenu'; {channelEntityId: channelEntity.id}: null; null; 'channelContextMenuVisible'"/>
			<bind name="tooltip" value="'ChannelInfoTooltip';{_channelEntityId: channelEntity.id, _isSearch: _isSearch}"/>
			<params>
				<param name="doubleClickEnabled" value="true"/>
			</params>
			<bind name="action" value="'doubleClick'; (!channelOpened) ? 'joinChannel' : 'upChannelWindow'; {channelId: channel.channelId}"/>
			<bind name="action" value="'doubleClick'; (channelOpened &amp;&amp; !(channel.isChatBoxOpened)) ? 'setChatBoxOpenedState' : null; {channelId: channel.channelId, opened: true}"/>
			<styleClass value="$PxHorizontalCorrection"/>
			<styleClass value="$FullsizeAbsolute"/>
			<block>
				<style>
					<marginLeft value="16px"/>
					<width value="100%"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'ChannelTitleWithIcon'; {channelEntityId: channelEntityId, _bold: channelOpened, _width: '250px', _isSearch: _isSearch}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ContactsGroupElement">
		<bind name="dataRefDH" value="'group'; '$dataRef.ref'"/>
		<bind name="dataRefDH" value="'contacts'; 'group.groupOfElements.elements.ref.items'"/>
		<bind name="watchDH" value="'groupName'; ['group.groupOfElements.evNameChanged']; group.groupOfElements.name"/>
		<bind name="watchDH" value="'groupExpanded'; ['group.groupViewElements.evStateChanged']; group.groupViewElements.expanded"/>
		<bind name="watchDH" value="'countOnline'; ['group.contactsGroup.evCountOnlineChanged']; group.contactsGroup.countOnline"/>
		<bind name="watchDH" value="'countTotal'; ['group.contactsGroup.evCountTotalChanged']; group.contactsGroup.countTotal"/>
		<bind name="handleEventDH" value="'group.groupOfElements.evRenameErrorNameExist'; 'evRenameErrorNameExist'"/>
		<bind name="handleEventDH" value="'group.groupOfElements.evNameChanged'; 'groupNameChangedSuccessfully'"/>
		<bind name="var" value="{isRenaming: false,
				isWrongName: false}"/>
		<bind name="catch" value="'TextInputWithCancel.renameCancelled'; {	isRenaming : false,
															isWrongName : false}"/>
		<bind name="catch" value="'groupNameChangedSuccessfully'; {	isWrongName :		false,
													isRenaming : false}"/>
		<bind name="catch" value="'evRenameErrorNameExist'; { 	isWrongName :		true,
												isRenaming :	true}"/>
		<bind name="dispatch" value="'evRenameErrorNameExist';  (inputStr==groupName || inputStr=='') ? 'groupNameChangedSuccessfully' : null"/>
		<bind name="catch" value="'TextInputWithCancel.inputStrChanged'; {isWrongName : false}"/>
		<bind name="catch" value="'GroupContextMenu.renameGroupClicked'; {isRenaming : true}"/>
		<bind name="catch" value="'TextInputWithCancel.renameComplete'; null; 'renameCompleted'"/>
		<bind name="action" value="'renameCompleted'; 'renameContactsGroup'; {groupId: group.groupOfElements.groupId, newName: inputStr}"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="33px"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="33px"/>
					</style>
					<bind name="visible" value="!isRenaming"/>
					<block className="ExpandedGroupTitle">
						<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
						<style>
							<width value="100%"/>
							<height value="33px"/>
						</style>
						<block className="dock_submenu_item_bg" type="native">
							<styleClass value="$FullsizeAbsolute"/>
							<bind name="transition" value="(rollOver); 0.15; {alpha: 0}; {alpha: 0.5}"/>
							<block className="button_expand" type="native">
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: (groupExpanded) ? 'IDS_HINT_COLLAPSE_GROUP' : 'IDS_HINT_EXPAND_GROUP'}"/>
								<bind name="menu" value="'GroupContextMenu'; (true) ? {groupId: group.groupOfElements.groupId, _isIgnoreList: group.groupOfElements.isIgnorList, _isLocal: group.groupOfElements.isLocal} : null"/>
								<style>
									<position value="absolute"/>
									<width value="100%"/>
									<marginTop value="5px"/>
									<marginLeft value="3px"/>
								</style>
								<params>
									<param name="toggle" value="true"/>
									<param name="soundSet" value="dropmenu_button"/>
									<param name="focusable" value="false"/>
								</params>
								<bind name="selected" value="groupExpanded"/>
								<bind name="action" value="'buttonClick'; group.id ? 'expandGroupElement' : ''; { entityId: group.id }"/>
								<bind name="dispatch" value="'buttonClick' ; !(group.id) ? 'invertExpand' : ''"/>
							</block>
							<block type="text">
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$FontColorBlueish"/>
								<styleClass value="$TextDefaultBold"/>
								<style>
									<marginLeft value="22px"/>
									<hitTest value="false"/>
								</style>
								<bind name="text" value="groupName"/>
							</block>
							<block>
								<bind name="visible" value="( !(group.groupOfElements.isIgnorList) &amp;&amp; true )"/>
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_ONLINE_PLAYERS') + ' / ' + tr('IDS_PLAYERS_IN_GROUP')}"/>
								<styleClass value="$FullsizeAbsolute"/>
								<block>
									<styleClass value="$MiddleVAligned"/>
									<style>
										<right value="9px"/>
									</style>
									<block type="text">
										<styleClass value="$TextDefaultBold"/>
										<bind name="style" value="'alpha'; (countOnline!=0) ? 1 : 0.5"/>
										<bind name="text" value="countOnline"/>
									</block>
									<block type="text">
										<styleClass value="$TextDefaultBold"/>
										<style>
											<alpha value="0.5"/>
										</style>
										<bind name="text" value="'/ ' + countTotal"/>
									</block>
									<style>
										<flow value="horizontal"/>
									</style>
								</block>
							</block>
						</block>
					</block>
				</block>
				<block>
					<bind name="visible" value="isRenaming"/>
					<styleClass value="$Fullsize"/>
					<style>
						<marginLeft value="3px"/>
					</style>
					<block>
						<styleClass value="$Fullsize"/>
						<bind name="instance" value="'TextInputWithCancel'; isRenaming 	? {	onEnterEvent: 'renameComplete',
																			onCancelEvent: 'renameCancelled',
																			_onEnterTooltipText: 'IDS_RENAME_GROUP',
																			_currentText: groupName,
																			onInputStrChangedEvent: 'inputStrChanged'}
																		: null"/>
					</block>
					<block>
						<block>
							<style>
								<position value="absolute"/>
								<width value="270px"/>
								<bottom value="25px"/>
							</style>
							<bind name="instance" value="'WrongTextInputNotification'; isWrongName	? 	{_maxWidth : 270, _startTop: 10,
																						_text: (tr('IDS_WRONG_GROUP_TITLE') + '. ' + tr('IDS_TRY_ANOTHER_TITLE'))}
																					:	null"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<marginTop value="-1px"/>
						<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>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginBottom value="1px"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="2px"/>
						</style>
						<bind name="repeat" value="contacts; 'ContactElement'; {	groupExpanded : groupExpanded, _currentGroupId: ((group.groupOfElements.isLocal) ? null : group.groupOfElements.groupId),
																_playerContext: _playerContext}"/>
					</block>
					<block>
						<bind name="visible" value="(groupExpanded &amp;&amp; countTotal!=0)"/>
						<style>
							<position value="absolute"/>
							<width value="100%"/>
							<bottom value="0px"/>
						</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%"/>
						<height value="30px"/>
					</style>
					<bind name="fade" value="(groupExpanded &amp;&amp; countTotal==0); 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
					<block className="NoItemsInGroup">
						<style>
							<width value="100%"/>
							<height value="30px"/>
						</style>
						<block>
							<styleClass value="$MiddleAligned"/>
							<style>
								<marginTop value="2px"/>
							</style>
							<bind name="instance" value="'EmptyStatusParagraph'; {_text: (group.groupOfElements.groupId == 1) ? 'IDS_NO_CONTACTS' : 'IDS_NO_CONTACTS_IN_GROUP', _maxWidth: 300}"/>
						</block>
						<block>
							<style>
								<position value="absolute"/>
								<width value="100%"/>
								<bottom value="0px"/>
							</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>
			</block>
		</block>
	</block>
	<block className="ChannelsGroupElement">
		<bind name="dataRefDH" value="'group'; '$dataRef.ref'"/>
		<bind name="dataRefDH" value="'channels'; 'group.groupOfElements.elements.ref.items'"/>
		<bind name="watchDH" value="'groupExpanded'; ['group.groupViewElements.evStateChanged']; group.groupViewElements.expanded"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="33px"/>
				</style>
				<block className="ExpandedGroupTitle">
					<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
					<style>
						<width value="100%"/>
						<height value="33px"/>
					</style>
					<block className="dock_submenu_item_bg" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<bind name="transition" value="(rollOver); 0.15; {alpha: 0}; {alpha: 0.5}"/>
						<block className="button_expand" type="native">
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: (groupExpanded) ? 'IDS_HINT_COLLAPSE_GROUP' : 'IDS_HINT_EXPAND_GROUP'}"/>
							<bind name="menu" value="'GroupContextMenu'; (false) ? {groupId: group.groupOfElements.groupId, _isIgnoreList: group.groupOfElements.isIgnorList, _isLocal: group.groupOfElements.isLocal} : null"/>
							<style>
								<position value="absolute"/>
								<width value="100%"/>
								<marginTop value="5px"/>
								<marginLeft value="3px"/>
							</style>
							<params>
								<param name="toggle" value="true"/>
								<param name="soundSet" value="dropmenu_button"/>
								<param name="focusable" value="false"/>
							</params>
							<bind name="selected" value="groupExpanded"/>
							<bind name="action" value="'buttonClick'; group.id ? 'expandGroupElement' : ''; { entityId: group.id }"/>
							<bind name="dispatch" value="'buttonClick' ; !(group.id) ? 'invertExpand' : ''"/>
						</block>
						<block type="text">
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$FontColorBlueish"/>
							<styleClass value="$TextDefaultBold"/>
							<style>
								<marginLeft value="22px"/>
								<hitTest value="false"/>
							</style>
							<bind name="text" value="group.groupOfElements.nameIds"/>
						</block>
						<block>
							<bind name="visible" value="( !(group.groupOfElements.isIgnorList) &amp;&amp; false )"/>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_ONLINE_PLAYERS') + ' / ' + tr('IDS_PLAYERS_IN_GROUP')}"/>
							<styleClass value="$FullsizeAbsolute"/>
							<block>
								<styleClass value="$MiddleVAligned"/>
								<style>
									<right value="9px"/>
								</style>
								<block type="text">
									<styleClass value="$TextDefaultBold"/>
									<bind name="style" value="'alpha'; (countOnline!=0) ? 1 : 0.5"/>
									<bind name="text" value="countOnline"/>
								</block>
								<block type="text">
									<styleClass value="$TextDefaultBold"/>
									<style>
										<alpha value="0.5"/>
									</style>
									<bind name="text" value="'/ ' + countTotal"/>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
						</block>
					</block>
				</block>
				<block>
					<style>
						<marginTop value="-1px"/>
						<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>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginBottom value="1px"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginBottom value="2px"/>
						</style>
						<bind name="repeat" value="channels; 'ChannelElement'; {groupExpanded: groupExpanded}"/>
					</block>
					<block>
						<bind name="visible" value="(groupExpanded &amp;&amp; channels.length!=0)"/>
						<style>
							<position value="absolute"/>
							<width value="100%"/>
							<bottom value="0px"/>
						</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%"/>
						<height value="30px"/>
					</style>
					<bind name="fade" value="(groupExpanded &amp;&amp; channels.length==0); 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
					<bind name="watchDH" value="'groupIds'; ['channelEntity.elementInGroups.evGroupsChanged']; channelEntity.elementInGroups.groupIds"/>
					<block className="NoItemsInGroup">
						<style>
							<width value="100%"/>
							<height value="30px"/>
						</style>
						<block>
							<styleClass value="$MiddleAligned"/>
							<style>
								<marginTop value="2px"/>
							</style>
							<bind name="instance" value="'EmptyStatusParagraph'; {_text: isIn(ChannelGroup.MYCHANNELS, groupIds) ? 'IDS_NO_CREATED_CHANNELS' : 'IDS_NO_CHANNELS_IN_GROUP', _maxWidth: 300}"/>
						</block>
						<block>
							<style>
								<position value="absolute"/>
								<width value="100%"/>
								<bottom value="0px"/>
							</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>
			</block>
		</block>
	</block>
	<block className="GroupContextMenu">
		<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 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>
		<block>
			<bind name="visible" value="(_isLocal || _isIgnoreList)"/>
			<style>
				<width value="100%"/>
				<marginTop value="6px"/>
				<marginBottom value="6px"/>
				<marginRight value="6px"/>
				<marginLeft value="6px"/>
			</style>
			<bind name="instance" value="'InstructionWarning'; { _instructionText: 'IDS_HINT_DEFAULT_GROUP', _maxWidth: '160'}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="!(_isLocal || _isIgnoreList)"/>
			<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_RENAME_GROUP'"/>
					</block>
				</block>
				<bind name="dispatch" value="'click'; 'GroupContextMenu.renameGroupClicked'"/>
			</block>
			<block>
				<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_GROUP'"/>
					</block>
					<bind name="action" value="'click'; 'removeContactsGroup'; {groupId:groupId}"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ChannelContextMenu">
		<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="entityDH" value="'channelEntity'; channelEntityId"/>
		<bind name="dataRefDH" value="'channel'; 'channelEntity.channel'"/>
		<bind name="watchDH" value="'channelOpened'; ['channel.evOpenChanged']; channel.opened"/>
		<bind name="watchDH" value="'isFavorite'; ['channel.evIsFavoriteChanged']; channel.isFavorite"/>
		<bind name="watchDH" value="'groupIds'; ['channelEntity.elementInGroups.evGroupsChanged']; channelEntity.elementInGroups.groupIds"/>
		<bind name="watch" value="'isMyChannel'; isIn(ChannelGroup.MYCHANNELS, groupIds)"/>
		<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="!(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>
		<block>
			<bind name="visible" value="!(channelOpened)"/>
			<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_CHANNEL_OPEN'"/>
				</block>
				<bind name="action" value="'click'; 'joinChannel'; {channelId: channel.channelId}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="channelOpened"/>
			<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_CHANNEL_CLOSE'"/>
				</block>
				<bind name="action" value="'click'; 'leaveChannel'; {channelId: channel.channelId}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="((channel.typeIdent != 'common') &amp;&amp; (channel.typeIdent != 'division') &amp;&amp; !(isMyChannel))"/>
			<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="(!isFavorite) ? 'IDS_ADD_TO_FAVORITES' : 'IDS_REMOVE_FROM_FAVORITES'"/>
				</block>
			</block>
			<bind name="action" value="'click'; 'setChannelFavorite'; {channelId: channel.channelId, favorite: !(isFavorite)}"/>
		</block>
		<block>
			<bind name="visible" value="isMyChannel"/>
			<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_CHANNEL_REMOVE'"/>
				</block>
				<bind name="action" value="'click'; 'deleteChannel'; {channelId: channel.channelId}"/>
			</block>
		</block>
	</block>
	<block className="SignalAndCamouflageHeader">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; 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="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="watchDH" value="'upgradableShipInfo'; ['shipEntity.upgradableShipInfo.evUpdate']; shipEntity.upgradableShipInfo"/>
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="31px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<hitTest value="false"/>
				<marginTop value="-5px"/>
			</style>
			<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_blurmap_h_no_right" 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>
			<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="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<bind name="tooltip" value="'ShipExtendedTooltip'; { shipId: shipId }; 0"/>
			<style>
				<marginTop value="4px"/>
				<marginLeft value="3px"/>
			</style>
			<block className="icon_wreath" type="native">
				<styleClass value="$MouseDisable"/>
				<style>
					<position value="absolute"/>
					<top value="-6px"/>
				</style>
				<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
				<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
								shipInfo.isPremium 	? 'premium'
													: 'elite'"/>
			</block>
			<block className="icon_ship" type="native">
				<styleClass value="$MouseDisable"/>
				<style>
					<marginLeft value="5px"/>
					<marginTop value="2px"/>
				</style>
				<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial 	? shipInfo.subtype + '_P'
																			: shipInfo.subtype"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<marginLeft value="3px"/>
				</style>
				<block type="text">
					<styleClass value="$FontShipnameWhite"/>
					<bind name="class" value="'$LetterSpacingSmall'"/>
					<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial	? '$FontShipnameGolden'
																		: '$FontShipnameWhite'"/>
					<bind name="text" value="shipInfo.levelRome + ' ' + toUpperCase(tr(shipInfo.nameIDS + '_FULL'))"/>
				</block>
			</block>
			<block className="icon_check" type="native">
				<style>
					<marginLeft value="-2px"/>
					<marginTop value="-4px"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="!(shipInfoSlim.isDownloaded)"/>
			<style>
				<marginTop value="-4px"/>
			</style>
			<bind name="instance" value="'IconSlimClient'; !(shipInfoSlim.isDownloaded) ? { _isEventLike: shipInfo.isEventLike } : null"/>
		</block>
		<block>
			<bind name="visible" value="inset != 2"/>
			<style>
				<right value="6px"/>
				<position value="absolute"/>
				<flow value="horizontal"/>
				<marginTop value="-2px"/>
			</style>
			<block>
				<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_CREDITS_C'}"/>
				<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: accountCredits, currency: 'credits'}, _medium:true}"/>
			</block>
			<block>
				<style>
					<marginLeft value="12px"/>
				</style>
				<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_GOLD_BALANCE'}"/>
				<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: accountGold, currency: 'gold'}, _medium:true}"/>
			</block>
		</block>
	</block>
	<block className="SignalsGroup">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; _shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<style>
			<width value="100%"/>
			<marginTop value="20px"/>
		</style>
		<bind name="visible" value="playerShipInfo.signalsAll[_groupName].length &gt; 0"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'BranchTypeLabelDark'; {nameIDS: 'IDS_SIGNAL_GROUP_' + toUpperCase(tr(_groupName))}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<flow value="htile"/>
				<align value="center"/>
				<marginTop value="6px"/>
			</style>
			<bind name="repeat" value="playerShipInfo.signalsAll[_groupName]; 'ExteriorItem'; {shipId: _shipId}"/>
		</block>
	</block>
	<block className="Signals">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<style>
			<width value="100%"/>
			<height value="100%f"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<overflow value="scroll"/>
				<height value="100%f"/>
				<marginTop value="-20px"/>
				<paddingBottom value="20px"/>
			</style>
			<styleClass value="$DefaultScrollBar"/>
			<bind name="instance" value="'SignalsGroup'; {_shipId: shipId, _groupName: 'battle'}"/>
			<bind name="instance" value="'SignalsGroup'; {_shipId: shipId, _groupName: 'eco'}"/>
			<bind name="instance" value="'SignalsGroup'; {_shipId: shipId, _groupName: 'special'}"/>
		</block>
		<bind name="instance" value="'Autoreplenishment'; { 	shipId: shipId,
											exteriorPage: exteriorPage,
											_itemsInstalled: playerShipInfo.sigInstalled,
											_maxPriceCR: playerShipInfo.autorechargeExteriorSummPrice[ExteriorTypes.FLAGS][0], 
											_maxPriceGold : playerShipInfo.autorechargeExteriorSummPrice[ExteriorTypes.FLAGS][1], 
											_nextPriceCR: playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.FLAGS][0], 
											_nextPriceGold: playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.FLAGS][1],
											_canBuySomeExterior: playerShipInfo.canBuySomeSignal,
											_tooltipHeader: 'IDS_AUTOREPLENISHMENT_SIGNALS',
											_camouflageOn: playerShipInfo.autorechargeCamouflage,
											_camouflageOff: playerShipInfo.autorechargeCamouflage,
											_signalsOn: true,
											_signalsOff: false,
											_isSignal: true,
											_autorechargeOn: playerShipInfo.autorechargeFlags,
											_goldDeficit: -(accountGold - (playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.FLAGS][1])),
											_creditsDeficit: -(accountCredits - (playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.FLAGS][0])),
											_multiParagraphArrayHint: [ {_paragraphText: 'IDS_SIGNALS_REPLENISH_AUTOMATICALLY_HINT_1'}, {_paragraphText: 'IDS_SIGNALS_REPLENISH_AUTOMATICALLY_HINT_2'}, {_paragraphText: 'IDS_SIGNALS_REPLENISH_AUTOMATICALLY_HINT_3'}],
											_multiParagraphArrayPriceHint: [{_paragraphText: 'IDS_SIGNALS_MAX_REPLENISHMENT_HINT_1'}, {_paragraphText: 'IDS_SIGNALS_REPLENISH_AUTOMATICALLY_HINT_4'}]
											} "/>
	</block>
	<block className="Camouflage">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<style>
			<width value="100%"/>
			<height value="100%f"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<overflow value="scroll"/>
				<height value="100%f"/>
				<marginTop value="-20px"/>
			</style>
			<styleClass value="$DefaultScrollBar"/>
			<block>
				<style>
					<flow value="htile"/>
					<align value="center"/>
					<width value="100%"/>
					<marginBottom value="20px"/>
					<marginTop value="20px"/>
				</style>
				<bind name="repeat" value="playerShipInfo.camouflageAll; 'ExteriorItem'; {shipId: shipId}"/>
			</block>
		</block>
		<bind name="instance" value="'Autoreplenishment'; { 	shipId: shipId,
											exteriorPage: exteriorPage,
											_itemsInstalled: playerShipInfo.camInstalled,
											_maxPriceCR: playerShipInfo.autorechargeExteriorSummPrice[ExteriorTypes.CAMOUFLAGE][0], 
											_maxPriceGold : playerShipInfo.autorechargeExteriorSummPrice[ExteriorTypes.CAMOUFLAGE][1], 
											_nextPriceCR: playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.CAMOUFLAGE][0], 
											_nextPriceGold: playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.CAMOUFLAGE][1],
											_canBuySomeExterior: playerShipInfo.canBuySomeCamouflage,
											_tooltipHeader: 'IDS_AUTOREPLENISHMENT_CAMO',
											_signalsOn: playerShipInfo.autorechargeFlags,
											_signalsOff: playerShipInfo.autorechargeFlags,
											_camouflageOn: true,
											_camouflageOff: false,
											_isCamouflage: true,
											_autorechargeOn: playerShipInfo.autorechargeCamouflage,
											_goldDeficit: -(accountGold - (playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.CAMOUFLAGE][1])),
											_creditsDeficit: -(accountCredits - (playerShipInfo.autorechargeExteriorEstimatePrice[ExteriorTypes.CAMOUFLAGE][0])),
											_multiParagraphArrayHint: [ {_paragraphText: 'IDS_CAMO_REPLENISH_AUTOMATICALLY_HINT_1'}, {_paragraphText: 'IDS_CAMO_REPLENISH_AUTOMATICALLY_HINT_2'}, {_paragraphText: 'IDS_CAMO_REPLENISH_AUTOMATICALLY_HINT_3'}],
											_multiParagraphArrayPriceHint: [{_paragraphText: 'IDS_CAMO_MAX_REPLENISHMENT_HINT_1'}, {_paragraphText: 'IDS_CAMO_REPLENISH_AUTOMATICALLY_HINT_4'}]
											} "/>
	</block>
	<block className="Flag">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'ensigns'; 'ensigns'"/>
		<style>
			<width value="100%"/>
			<height value="100%f"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<overflow value="scroll"/>
				<height value="100%f"/>
				<marginTop value="-20px"/>
			</style>
			<styleClass value="$DefaultScrollBar"/>
			<block>
				<style>
					<flow value="htile"/>
					<align value="center"/>
					<width value="100%"/>
					<marginBottom value="20px"/>
					<marginTop value="20px"/>
				</style>
				<bind name="repeat" value="ensigns; 'FlagItem'; {shipId: shipId}"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="visible" value="!(ensigns != null &amp;&amp; ensigns.length &gt; 0)"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="toUpperCase(tr('IDS_NO_ENSIGNS_AVAILABLE'))"/>
				</block>
				<block>
					<style>
						<marginTop value="3px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'InstructionBigTech'; { _instructionText: 'IDS_PARTICIPATE_IN_RANKED_BATTLES', _type: 'info', _maxWidth: '480' }"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ExteriorItem">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; 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="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; $value"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="watchDH" value="'count'; ['exteriorEntity.countComponent.evUpdate']; exteriorEntity.countComponent.value"/>
		<bind name="watchDH" value="'exteriors'; ['shipEntity.ownShip.evUpdate']; playerShipInfo.exteriors"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="watch" value="'curCurrencyResource'; ((prices[currentIndex].currency == 'gold') ? accountGold : accountCredits)"/>
		<bind name="name" value="'ExteriorItemDock_' + exteriorConfig.name"/>
		<bind name="catch" value="'selectedPriceChanged'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerPriceListSelector;
						$value;
						exteriors[$value].goldAutorecharge ? 'gold' : 'credits';
						exteriorConfig.canBuy;
						'selectedPriceIndex';
						(!(exteriors[$value])) ? null : 'installExterior';
						{
							exteriorName: exteriorConfig.name,
							shipName: shipInfo.fullName,
							goldAutorecharge: prices[currentIndex].currency == 'gold'
						}"/>
		<block>
			<bind name="tooltip" value="'ExteriorInfotip'; {	_exteriorId: $value}; TooltipBehaviour.infotip"/>
			<bind name="tooltip" value="'ExteriorTooltip'; {_exteriorId: $value}"/>
			<bind name="style" value="'width'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '80px' : '95px'"/>
			<style>
				<height value="80px"/>
			</style>
			<bind name="soundOn" value="'click'; 'press'; 'exterior_item'"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="name" value="'ExteriorItem_' +  exteriorConfig.name"/>
				<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_blurmap5_feather" 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>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="style" value="'alpha'; (!!(exteriors[$value])) ? 1 : 0.6"/>
				<bind name="instance" value="'ExteriorIconWithAmount'; { _exteriorId: $value,
														_amount: count,
														_isDesaturated: (count == 0 &amp;&amp; !(exteriors[$value])) &amp;&amp; !(playerShipInfo.permoflagePurchased[$value])
														}"/>
			</block>
			<block className="icon_check" type="native">
				<bind name="name" value="!!(exteriors[$value]) ? ('IconCheck_' + exteriorConfig.name) : (' ')"/>
				<styleClass value="$MouseDisable"/>
				<style>
					<position value="absolute"/>
					<right value="8px"/>
					<top value="8px"/>
				</style>
				<bind name="visible" value="!!(exteriors[$value])"/>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<block>
				<style>
					<marginTop value="-12px"/>
				</style>
				<bind name="instance" value="'PriceTag'; !!(playerShipInfo.permoflagePurchased[$value])								? null :
										!( exteriors[$value] ) &amp;&amp; count &lt;= 0 &amp;&amp; exteriorConfig.canBuy				? {	priceInfo: prices[currentIndex],
																														_deficit: (prices[currentIndex].finalPrice - curCurrencyResource),
																														_showDiscountTag: true}
																													: null"/>
			</block>
		</block>
	</block>
	<block className="FlagItem">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; id"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="tooltip" value="'FlagInfotip'; {_installed: installed, id: id, name: name, shipId: shipId, canUse: canUse, isRankSeasonTemp: isRankSeasonTemp, isLeague: isLeague, _selectedExteriorParams: exteriorConfig.params,
									_enableExterior: (!(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation)) }; TooltipBehaviour.infotip"/>
		<bind name="tooltip" value="'FlagTooltip'; {_installed: installed, id: id, name: name, shipId: shipId, canUse: canUse, isRankSeasonTemp: isRankSeasonTemp, isLeague: isLeague, _selectedExteriorParams: exteriorConfig.params}"/>
		<bind name="soundOn" value="'click'; 'press'; 'exterior_item'"/>
		<block>
			<style>
				<height value="60px"/>
				<width value="100px"/>
			</style>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<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_blurmap5_feather" 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>
				<style>
					<width value="75px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="style" value="'alpha'; installed ? 1: 0.6"/>
				<bind name="style" value="'backgroundImage'; !canUse ?  ('url:' + exteriorConfig.desaturatedIconPath) : ('url:' + exteriorConfig.iconPath)"/>
			</block>
			<block className="icon_check" type="native">
				<bind name="visible" value="installed"/>
				<styleClass value="$MouseDisable"/>
				<style>
					<position value="absolute"/>
					<right value="18px"/>
					<top value="8px"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ExteriorInsetElement">
		<bind name="collectionDH" value="CC.ownShip; 'playerShips'"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="feature" value="'15'; ''"/>
		<bind name="feature" value="16; ''"/>
		<bind name="var" value="{defaultExteriorInset: feature_15 == 'locked' || (playerShipInfo.canEquipCamouflage == false) ? LobbyConstants.SHIP_EXTERIOR_SIGNALS : LobbyConstants.SHIP_EXTERIOR_CAMOUFLAGE }"/>
		<bind name="watch" value="'defaultExteriorInset'; (playerShipInfo.canEquipCamouflage) ? defaultExteriorInset : LobbyConstants.SHIP_EXTERIOR_SIGNALS"/>
		<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="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'inset'; ['dockEntity.insetComponent.evUpdate']; dockEntity.insetComponent.inset"/>
		<bind name="primaryEntityDH" value="'pageEntity'; CC.insetPage; LobbyConstants.SHIP_EXTERIOR"/>
		<bind name="watchDH" value="'page'; ['pageEntity.insetPage.evUpdate']; pageEntity.insetPage.page"/>
		<bind name="watch" value="'exteriorPage'; 	(page == null)
									|| (page == LobbyConstants.SHIP_EXTERIOR_CAMOUFLAGE &amp;&amp; (feature_15 == 'locked' || playerShipInfo.canEquipCamouflage == false))
									|| (page == LobbyConstants.SHIP_EXTERIOR_ENSIGN &amp;&amp; feature_16 == 'locked')
									? defaultExteriorInset
									: page"/>
		<bind name="catch" value="'exteriorInsetChangeDown'"/>
		<styleClass value="$Fullsize"/>
		<bind name="child" value="playerShips.length &gt; 0 ? crewInset : 0; {shipId: shipId, exteriorPage: ((exteriorPage == LobbyConstants.SHIP_EXTERIOR_CAMOUFLAGE) &amp;&amp; (playerShipInfo.canEquipCamouflage == false)) ? defaultExteriorInset : exteriorPage }; 'ExteriorInset';'CrewsSelect'"/>
	</block>
	<block className="ExteriorInset">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; 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="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="collectionDH" value="CC.ownShip; 'playerShips'"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; playerShipInfo.crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<styleClass value="$Fullsize"/>
		<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="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
		<bind name="style" value="'marginBottom'; isSmallCarouselView	?	(carouselRows == 1) ? '283px' :
													(carouselRows == 2) ? '346px'
																		: '220px'
												: '220px'"/>
		<block>
			<bind name="visible" value="shipId &gt; 0"/>
			<bind name="appear" value="'addedToStage'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
			<style>
				<marginLeft value="0px"/>
				<marginTop value="44px"/>
				<width value="500px"/>
				<height value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'SignalAndCamouflageHeader'; {exteriorPage: exteriorPage, shipId: shipId}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<height value="31px"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<style>
						<position value="absolute"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="feature_15 != 'locked'"/>
					<styleClass value="$MiddleAligned"/>
					<block className="tab_bar_bg" type="native">
						<style>
							<height value="25"/>
							<marginTop value="3px"/>
						</style>
						<block>
							<style>
								<marginLeft value="2px"/>
								<marginRight value="2px"/>
							</style>
							<block>
								<bind name="feature" value="15; 'rollOver'"/>
								<bind name="visible" value="playerShipInfo.canEquipCamouflage"/>
								<bind name="action" value="'buttonClick'; 'setCameraDefaultPosition'; {alias: 'camou'}"/>
								<bind name="instance" value="'MainTabSmallInstance'; { 	_label: 'IDS_CAMOUFLAGE',
																		_tooltipIDS: 'IDS_TOOLTIP_CAMOUFLAGE',
																		_selected: exteriorPage == LobbyConstants.SHIP_EXTERIOR_CAMOUFLAGE,
																		_width: 164,
																		_action: 'changeInset',
																		_actionParams: { inset: LobbyConstants.SHIP_EXTERIOR, page: LobbyConstants.SHIP_EXTERIOR_CAMOUFLAGE },
																		_name: 'camouflage' }"/>
								<block>
									<style>
										<position value="absolute"/>
									</style>
									<bind name="visible" value="feature_15 == 'new'"/>
									<block className="icon_sticker_new" type="native">
										<style>
											<hitTest value="false"/>
										</style>
									</block>
								</block>
							</block>
							<block>
								<bind name="visible" value="playerShipInfo.canEquipCamouflage"/>
								<style>
									<marginTop value="2px"/>
								</style>
								<block className="divider_v" type="native">
									<style>
										<height value="23px"/>
									</style>
								</block>
							</block>
							<block>
								<bind name="action" value="'buttonClick'; 'setCameraDefaultPosition'; {alias: 'flag'}"/>
								<bind name="instance" value="'MainTabSmallInstance'; { 	_label: tr('IDS_SIGNALS') + ' ' + playerShipInfo.sigInstalled + '/' + playerShipInfo.sigLimit,
																		_tooltipIDS: 'IDS_TOOLTIP_SIGNALS',
																		_selected: exteriorPage == LobbyConstants.SHIP_EXTERIOR_SIGNALS,
																		_width: 164,
																		_action: 'changeInset',
																		_actionParams: { inset: LobbyConstants.SHIP_EXTERIOR, page: LobbyConstants.SHIP_EXTERIOR_SIGNALS },
																		_name: 'signal' }"/>
							</block>
							<block className="divider_v" type="native">
								<style>
									<height value="23px"/>
									<marginTop value="2px"/>
								</style>
							</block>
							<block>
								<bind name="feature" value="16; 'rollOver'"/>
								<bind name="visible" value="feature_16 != 'locked'"/>
								<bind name="action" value="'buttonClick'; 'setCameraDefaultPosition'; {alias: 'ensign'}"/>
								<bind name="instance" value="'MainTabSmallInstance'; { 	_label: 'IDS_FLAG',
																		_tooltipIDS: 'IDS_TOOLTIP_ENSIGN',
																		_selected: exteriorPage == LobbyConstants.SHIP_EXTERIOR_ENSIGN,
																		_width: 164,
																		_action: 'changeInset',
																		_actionParams: { inset: LobbyConstants.SHIP_EXTERIOR, page: LobbyConstants.SHIP_EXTERIOR_ENSIGN },
																		_name: 'ensign' }"/>
								<block>
									<style>
										<position value="absolute"/>
									</style>
									<bind name="visible" value="feature_16 == 'new'"/>
									<block className="icon_sticker_new" type="native">
										<style>
											<hitTest value="false"/>
										</style>
									</block>
								</block>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
				<block>
					<bind name="visible" value="feature_15 == 'locked'"/>
					<styleClass value="$MiddleAligned"/>
					<block type="text">
						<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_SIGNALS'}"/>
						<style>
							<marginTop value="4px"/>
						</style>
						<styleClass value="$TextHeaderBigDefault"/>
						<bind name="text" value="toUpperCase(tr('IDS_SIGNALS')) + ' ' + playerShipInfo.sigInstalled + '/' + playerShipInfo.sigLimit"/>
					</block>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="20px"/>
					<width value="100%"/>
					<height value="100%f"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="100%f"/>
					</style>
					<bind name="child" value="exteriorPage; {shipId: shipId, exteriorPage: exteriorPage}; 'Camouflage'; 'Signals'; 'Flag'"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<position value="absolute"/>
				<width value="900px"/>
				<bottom value="0px"/>
			</style>
			<block>
				<style>
					<hitTest value="false"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ShipStatusDockHeader'; (playerShips.length == 0)		? { _texts: [ {_paragraphText: 'IDS_NO_SHIPS'}] } :
													!(shipInfoSlim.isDownloaded)	? { _texts: [ {_paragraphText: 'IDS_NOT_AVAILABLE_MESSAGE'}] }
																				: null"/>
			</block>
		</block>
	</block>
	<block className="ExteriorInfotip">
		<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="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; 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="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; _exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="watchDH" value="'count'; ['exteriorEntity.countComponent.evUpdate']; exteriorEntity.countComponent.value"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="watch" value="'curCurrencyResource'; ((prices[_selectedPriceIndex].currency == 'gold') ? accountGold : accountCredits)"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerPriceListSelector;
					_exteriorId;
					playerShipInfo.exteriors[_exteriorId].goldAutorecharge ? 'gold' : 'credits';
					exteriorConfig.canBuy;
					'selectedPriceIndex';
					(!(playerShipInfo.exteriors[_exteriorId])) ? null : 'installExterior';
					{
						exteriorName: exteriorConfig.name,
						shipName: shipInfo.fullName,
						goldAutorecharge: prices[currentIndex].currency == 'gold'
					}"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; null; 'tooltipShipParams'; playerShipInfo.params; shipWithExterior.testShipParams; 1; 0; null; 1; 1; 0"/>
		<bind name="dispatch" value="'Tooltip.selfOpened'; 'evTooltipOpened'; null; false; 0.05"/>
		<bind name="action" value="'Tooltip.selfOpened'; 'getShipWithUpgrade'; {id: _exteriorId, type : 'exterior'}"/>
		<bind name="action" value="'evTooltipOpened'; 'setCompareInfo'; {id: _exteriorId, type : 'exterior'}"/>
		<bind name="action" value="'Tooltip.selfClosed'; 'setCompareInfo'; { clear: true }"/>
		<bind name="primaryEntityDH" value="'compareItemEntity'; CC.compareItem; 'exterior_' + _exteriorId"/>
		<bind name="watchDH" value="'exteriorCompare'; ['compareItemEntity.compareItem.evUpdate']; compareItemEntity.dataComponent.data"/>
		<bind name="watchDH" value="'_exteriors'; 				['shipEntity.ownShip.evUpdate']; playerShipInfo.exteriors"/>
		<bind name="watchDH" value="'currentCamouflageEntity'; 	['shipEntity.ownShip.evUpdate']; playerShipInfo.currentCamouflage.ref"/>
		<bind name="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
		<bind name="watch" value="'_canBuy'; exteriorConfig.canBuy"/>
		<bind name="watch" value="'_isSignal'; exteriorConfig.type == ExteriorTypes.FLAGS"/>
		<bind name="watch" value="'_isCamouflage'; (exteriorConfig.type == ExteriorTypes.CAMOUFLAGE) &amp;&amp; !(exteriorConfig.isPermanent)"/>
		<bind name="watch" value="'_installedItemCount'; !!(playerShipInfo.exteriors[_exteriorId]) ? 1 : 0"/>
		<bind name="watch" value="'_exteriorName'; exteriorConfig.name"/>
		<bind name="watch" value="'_storageItemCount'; count"/>
		<bind name="watch" value="'_enableExterior'; (!(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation))"/>
		<bind name="watch" value="'_isPermoflagePurchased'; !!(playerShipInfo.permoflagePurchased[_exteriorId])"/>
		<bind name="watch" value="'_selectedPriceIndex'; currentIndex)"/>
		<bind name="watch" value="'_canPutToStorage'; exteriorConfig.canPutToStorage"/>
		<styleClass value="$HorizontalInfotipBehaviour"/>
		<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="action" value="'Tooltip.selfClosed'; 'disableExteriorPreview'; {exteriorName:_exteriorId, shipName: shipInfo.id}"/>
		<bind name="action" value="'Tooltip.selfOpened'; 'previewExterior'; {exteriorName:_exteriorId, shipId: shipInfo.id}"/>
		<block className="dock_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-10px"/>
				<marginRight value="-14px"/>
				<marginBottom value="-16px"/>
				<marginLeft value="-14px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="300px"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'ExteriorTooltipHeader'; {	_exteriorId: _exteriorId, _shipId: shipId}"/>
			</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>
				<bind name="visible" value="!!(_exteriors[_exteriorId])"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_module_state" type="native">
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="'installed'"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<text value="IDS_INSTALLED"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="(_storageItemCount + _installedItemCount == 0)|| (_storageItemCount + _installedItemCount != 0) &amp;&amp; !(_exteriors[_exteriorId]) "/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_warning_orange" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="_isPermoflagePurchased ? 'IDS_NOT_INSTALLED' : 
								(_storageItemCount + _installedItemCount == 0) &amp;&amp; _canBuy 	?  'IDS_NOT_PURCHASED' 
																							: (_storageItemCount + _installedItemCount == 0) &amp;&amp; !(_canBuy) 	?  'IDS_NOT_ACHIEVED'
																							: (_storageItemCount + _installedItemCount != 0) &amp;&amp; !(_exteriors[_exteriorId]) ?  'IDS_NOT_INSTALLED'
																							: ''"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="_isPermoflage"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="3px"/>
						<marginRight value="3px"/>
						<marginBottom value="3px"/>
						<marginTop value="3px"/>
					</style>
					<block className="notification_frame_orange" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block>
						<style>
							<marginLeft value="7px"/>
							<marginBottom value="3px"/>
							<marginTop value="3px"/>
						</style>
						<block>
							<styleClass value="$MiddleVAligned"/>
							<block className="icon_warning_orange" type="native"/>
						</block>
						<block type="text">
							<style>
								<maxWidth value="250"/>
								<marginLeft value="6px"/>
							</style>
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorUnready'"/>
							<bind name="text" value="!_isPermoflagePurchased ? 'IDS_WARNING_PERMOUFLAGE_BEFORE_BUY' : 'IDS_WARNING_PERMOUFLAGE_AFTER_BUY'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="-2px"/>
						<position value="absolute"/>
					</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="_isPermoflagePurchased ? false : _canBuy"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="text" value="(_storageItemCount + _installedItemCount == 0) ? 'IDS_PURCHASE_COST' : 'IDS_REINFORCEMENT'"/>
					</block>
					<block>
						<bind name="instance" value="'AlterablePriceTag'; {_prices: prices, _showDiscountTag: true, _selectedPriceIndex: _selectedPriceIndex}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="exteriorConfig.params.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<styleClass value="$PxHorizontalCorrection"/>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="repeat" value="exteriorConfig.params; 'ExteriorParams'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="-1px"/>
						<position value="absolute"/>
					</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="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; null; 'tooltipShipParams'; playerShipInfo.params; exteriorCompare; 1; 0; null; 1; 1; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ParamsAfterMount'; _installedItemCount == 0 &amp;&amp; viewParams.hasDiff ? { _viewParams: viewParams,
																									_title: 'IDS_AFTER_MOUNT'}
																								 : null"/>
			</block>
			<block>
				<bind name="visible" value="_achievements.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="tr('IDS_GET_FOR_ACHIEVEMENTS') + tr('IDS_COLON')"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="repeat" value="_achievements; 'AchievementIconWithTitleForFlags'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="buyAndInstall || itemInstalled || itemTakeAway"/>
				<bind name="watch" value="'buyAndInstall'; 			(installedAndInStorage == 0) &amp;&amp; ((_canBuy &amp;&amp; enoughResources) || (_isPermoflagePurchased))"/>
				<bind name="watch" value="'itemInstalled'; 			(installedAndInStorage &gt; 0) &amp;&amp; !(_exteriors[_exteriorId])"/>
				<bind name="watch" value="'itemTakeAway'; 			!!(_exteriors[_exteriorId])"/>
				<bind name="watch" value="'installedAndInStorage'; 	(_storageItemCount + _installedItemCount)"/>
				<bind name="watch" value="'enoughResources'; 		(curCurrencyResource &gt;= prices[_selectedPriceIndex].finalPrice)"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="name" value=" buyAndInstall	? 'ButtonBuyAndInstall' :
						 itemInstalled	? 'ButtonInstall' :
						 itemTakeAway 	? 'ButtonTakeAway'
										: ''"/>
				<bind name="instance" value="'DefaultButtonCostMedium'; 	  buyAndInstall		? { _label: _isPermoflagePurchased ? toUpperCase(tr('IDS_INSTALL')) : toUpperCase(tr('IDS_DO_PURCHASE_AND_INSTALL')) , priceInfo: _isPermoflagePurchased ? null : prices[_selectedPriceIndex], _request: (_isPermoflage &amp;&amp; !_isPermoflagePurchased) || (_isCamouflage &amp;&amp; _storageItemCount == 0) || (_canBuy &amp;&amp; !_isPermoflagePurchased) ? 'buyAndInstallExteriorModal' : null, _requestParams: {shipName: shipInfo.fullName, _shipId: shipInfo.id, exteriorName: _exteriorName, useGold: prices[_selectedPriceIndex].currency == 'gold', _exteriorId: _exteriorId, _selectedPriceIndex: _selectedPriceIndex, _isPermoflagePurchased: _isPermoflagePurchased, _isPermoflage : _isPermoflage}, _action: _isPermoflagePurchased ? 'installExterior' : null, _actionParams: {exteriorName: _exteriorName, shipName: shipInfo.fullName, goldAutorecharge: prices[_selectedPriceIndex].currency == 'gold', viewParams: viewParams }, _enabled: _enableExterior, _dispatchEvent: 'Tooltip.Close'}
														: itemInstalled		? { _label: toUpperCase(tr('IDS_INSTALL')), priceInfo: null, _request: null, _action: 'installExterior', _actionParams: {exteriorName: _exteriorName, shipName: shipInfo.fullName, goldAutorecharge: prices[_selectedPriceIndex].currency == 'gold', viewParams: viewParams }, _enabled: _enableExterior, _dispatchEvent: 'Tooltip.Close'}
														: itemTakeAway 		? { _label: toUpperCase(tr('IDS_TAKE_AWAY')), priceInfo: null, _request: null, _action: 'uninstallExterior', _actionParams: {exteriorName: _exteriorName, shipName: shipInfo.fullName }, _enabled: _enableExterior, _dispatchEvent: 'Tooltip.Close'}
														: null"/>
			</block>
			<block>
				<bind name="visible" value="!(_enableExterior)"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'StatusLineWithIcon';  {_text: playerShipInfo.isInFormation ? (divisionEntranceData.divisionType == 'party') ?	_isSignal	? 'IDS_SET_UNREADY_PARTY_FIRST_TO_OPERATE_FLAGS'
																																						: 'IDS_SET_UNREADY_PARTY_FIRST_TO_OPERATE_CAMO'
																																		 :	_isSignal	? 'IDS_SET_UNREADY_DIVISION_FIRST_TO_OPERATE_FLAGS'
																																						: 'IDS_SET_UNREADY_DIVISION_FIRST_TO_OPERATE_CAMO'
																						:	_isSignal 	? 'IDS_LEAVE_BATTLE_FIRST_TO_OPERATE_FLAGS' 
																										: 'IDS_LEAVE_BATTLE_FIRST_TO_OPERATE_CAMOUFLAGE',
													_positive: false}"/>
			</block>
			<block>
				<bind name="visible" value="_canBuy &amp;&amp; (!(_isPermoflagePurchased) &amp;&amp; (installedAndInStorage == 0) &amp;&amp; !(enoughResources))"/>
				<styleClass value="$InfoBlockIndent"/>
				<block>
					<bind name="instance" value="'PriceTagWithLabel'; { priceInfo: prices[_selectedPriceIndex], _label: 'IDS_PURCHASE_COST', _medium : true}"/>
				</block>
				<block>
					<bind name="instance" value="'PriceDeficit'; { _deficit: prices[_selectedPriceIndex].finalPrice - curCurrencyResource, priceInfo: prices[_selectedPriceIndex], _tooltipText: prices[_selectedPriceIndex].currency == 'credits' ? 'IDS_TOOLTIP_NO_CREDITS' : 'IDS_TOOLTIP_NO_GOLD' }"/>
				</block>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="visible" value="_isSignal &amp;&amp; (playerShipInfo.sigInstalled == playerShipInfo.sigLimit) &amp;&amp; (_storageItemCount &gt; 0) &amp;&amp; !(_exteriors[_exteriorId])"/>
				<block>
					<bind name="instance" value="'StatusLineWithIcon';  { _text: 'IDS_MAXIMUM_FLAGS_IS_INSTALLED', _positive: false}"/>
				</block>
				<block>
					<style>
						<marginTop value="6px"/>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'InstructionParagraph'; { _text: 'IDS_INSTRUCTION_REINSTALL_FLAG', _maxWidth: 262}"/>
				</block>
			</block>
			<block className="dock_panel_pin_h" type="native">
				<style>
					<position value="absolute"/>
				</style>
				<bind name="gotoAndStop!" value="'left'"/>
				<params>
					<param name="name" value="pinLeft"/>
				</params>
			</block>
		</block>
	</block>
	<block className="ExteriorTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + _exteriorId; 'priceInfoSet'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'shipWithExterior'; _exteriorId; 'shipWithExterior'"/>
		<bind name="action" value="'Tooltip.selfOpened'; 'getShipWithUpgrade'; {id: _exteriorId, type: 'exterior'}"/>
		<bind name="primaryEntityDH" value="'compareItemEntity'; CC.compareItem; 'exterior_' + _exteriorId"/>
		<bind name="watchDH" value="'exteriorCompare'; ['compareItemEntity.compareItem.evUpdate']; compareItemEntity.dataComponent.data"/>
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; _exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="watchDH" value="'count'; ['exteriorEntity.countComponent.evUpdate']; exteriorEntity.countComponent.value"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<styleClass value="$MouseDisable"/>
		<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="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
		<bind name="watch" value="'_canBuy'; exteriorConfig.canBuy"/>
		<bind name="watch" value="'_isSignal'; exteriorConfig.type == ExteriorTypes.FLAGS"/>
		<bind name="watch" value="'_isCamouflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE"/>
		<bind name="watch" value="'_isPermoflagePurchased'; !!(playerShipInfo.permoflagePurchased[_exteriorId])"/>
		<bind name="watch" value="'_installedItemCount'; !!(playerShipInfo.exteriors[_exteriorId]) ? 1 : 0"/>
		<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>
				<width value="300px"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<marginTop value="12px"/>
				</style>
				<bind name="instance" value="'ExteriorTooltipHeader'; {	_exteriorId: _exteriorId, _shipId: shipId}"/>
			</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>
				<bind name="visible" value="!!(playerShipInfo.exteriors[_exteriorId])"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_module_state" type="native">
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="'installed'"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<text value="IDS_INSTALLED"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="((count + _installedItemCount) == 0)|| ((count + _installedItemCount) != 0) &amp;&amp; !(playerShipInfo.exteriors[_exteriorId]) "/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_warning_orange" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="_isPermoflagePurchased ? 'IDS_NOT_INSTALLED' : 
								(count + _installedItemCount == 0) &amp;&amp; _canBuy 	?  'IDS_NOT_PURCHASED'
																							: ((count + _installedItemCount) == 0) &amp;&amp; !(_canBuy) 	?  'IDS_NOT_ACHIEVED'
																							: ((count + _installedItemCount) != 0) &amp;&amp; !(playerShipInfo.exteriors[_exteriorId])  ? 'IDS_NOT_INSTALLED'
																							: ''"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="_isPermoflage"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="3px"/>
						<marginRight value="3px"/>
						<marginBottom value="3px"/>
						<marginTop value="3px"/>
					</style>
					<block className="notification_frame_orange" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block>
						<style>
							<marginLeft value="7px"/>
							<marginBottom value="3px"/>
							<marginTop value="3px"/>
						</style>
						<block>
							<styleClass value="$MiddleVAligned"/>
							<block className="icon_warning_orange" type="native"/>
						</block>
						<block type="text">
							<style>
								<maxWidth value="250"/>
								<marginLeft value="6px"/>
							</style>
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorUnready'"/>
							<bind name="text" value="!_isPermoflagePurchased ? 'IDS_WARNING_PERMOUFLAGE_BEFORE_BUY' : 'IDS_WARNING_PERMOUFLAGE_AFTER_BUY'"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="-2px"/>
						<position value="absolute"/>
					</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="_isPermoflagePurchased ? false : _canBuy"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="text" value="(count + _installedItemCount == 0) ? 'IDS_PURCHASE_COST' : 'IDS_REINFORCEMENT'"/>
					</block>
					<block>
						<bind name="visible" value="priceInfoSet.prices[0].finalPrice &gt; 0"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: priceInfoSet.prices[0], _showDiscountTag: true }"/>
					</block>
					<block type="text">
						<bind name="visible" value="(priceInfoSet.prices.length &gt; 1) &amp;&amp; (priceInfoSet.prices[1].finalPrice &gt; 0)"/>
						<styleClass value="$TextDefault"/>
						<styleClass value="$MiddleVAligned"/>
						<text value="IDS_OR"/>
					</block>
					<block>
						<bind name="visible" value="(priceInfoSet.prices.length &gt; 1) &amp;&amp; (priceInfoSet.prices[1].finalPrice &gt; 0)"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="instance" value="'PriceTag'; { priceInfo: priceInfoSet.prices[1], _showDiscountTag:true }"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="exteriorConfig.params.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
					</style>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="repeat" value="exteriorConfig.params; 'ExteriorParams'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="-1px"/>
						<position value="absolute"/>
					</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="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; null; 'tooltipShipParams'; playerShipInfo.params; exteriorCompare; 1; 0; null; 1; 1; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ParamsAfterMount'; _installedItemCount == 0 &amp;&amp; viewParams.hasDiff ? { _viewParams: viewParams,
																									_title: 'IDS_AFTER_MOUNT'}
																								 : null"/>
			</block>
			<block>
				<bind name="visible" value="exteriorConfig.achievements.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="tr('IDS_GET_FOR_ACHIEVEMENTS') + tr('IDS_COLON')"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="repeat" value="exteriorConfig.achievements; 'AchievementIconWithTitleForFlags'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="!(_canBuy) &amp;&amp; ((count + _installedItemCount) == 0) &amp;&amp; !(_isPermoflage)"/>
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'InstructionParagraph'; !(_canBuy) ? { _text: _isSignal ? 'IDS_INSTRUCTION_GET_SIGNAL': 'IDS_INSTRUCTION_GET_CAMO', _maxWidth: '270'}: null"/>
			</block>
			<block>
				<bind name="visible" value="	(_canBuy ||
							(!(_canBuy) &amp;&amp; (count + _installedItemCount) != 0) ||
							(_isPermoflagePurchased &amp;&amp; _installedItemCount == 0)) &amp;&amp; !(_noMouseInstructions)"/>
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'MouseInstruction'; _isSignal		? {_type: 'left', _instructionText: ((count + _installedItemCount) == 0) &amp;&amp; _canBuy ? 'IDS_INSTRUCTION_BUY_SIGNAL'
																																					: 'IDS_INSTRUCTION_INSTALL_OR_TAKE_AWAY_SIGNAL', _maxWidth: 270} :
												_isCamouflage	? {_type: 'left', _instructionText: (_installedItemCount &gt; 0)																			? 'IDS_INSTRUCTION_TAKE_AWAY_CAMO' :
																									(_isPermoflagePurchased || count &gt; 0)																? 'IDS_INSTALL' :
																									((((count + _installedItemCount) == 0) || (_isPermoflage &amp;&amp; !(_isPermoflagePurchased))) &amp;&amp; _canBuy)	? 'IDS_INSTRUCTION_BUY_CAMO'
																																																		: 'IDS_INSTRUCTION_INSTALL_OR_TAKE_AWAY_BUY_CAMO',
												_maxWidth: 270}: null"/>
			</block>
		</block>
	</block>
	<block className="ExteriorTooltipHeader">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; _shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.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="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; _exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="watchDH" value="'count'; ['exteriorEntity.countComponent.evUpdate']; exteriorEntity.countComponent.value"/>
		<bind name="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
		<block>
			<bind name="watch" value="'_installedItemCount'; !!(playerShipInfo.exteriors[_exteriorId]) ? 1 : 0"/>
			<bind name="watch" value="'_storageItemCount'; count"/>
			<block>
				<bind name="instance" value="'ExteriorIconWithAmount'; { _exteriorId: _exteriorId,
														_amount: _amount != null ? _amount : (_installedItemCount + _storageItemCount),
														_isDesaturated: false
														}"/>
			</block>
			<block>
				<style>
					<marginTop value="3px"/>
					<marginLeft value="3px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="(_installedItemCount &gt; 0 || _isInstalled) ? '$FontColorGolden' : '$FontColorWhite'"/>
					<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '208' : '190'"/>
					<style>
						<marginBottom value="5px"/>
					</style>
					<bind name="text" value="_isPermoflage 	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
											: tr('IDS_' + toUpperCase(exteriorConfig.name))})"/>
				</block>
				<block type="text">
					<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '202' : '190'"/>
					<style>
						<marginTop value="-9px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ExteriorParams">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<style>
			<width value="100%"/>
		</style>
		<block type="text">
			<style>
				<width value="100%"/>
			</style>
			<styleClass value="$TextDefault"/>
			<bind name="text" value="percent == 0 ? ids :
					percent &gt; 0 ? '+' + percent + (isPlain ? ' ': '% ') + ids :
					percent &lt; 0 ? percent + (isPlain ? ' ': '% ') + ids : ' '"/>
		</block>
	</block>
	<css name="$FontSize18">
		<fontSize value="18"/>
	</css>
	<css name="$FontSize20">
		<fontSize value="20"/>
	</css>
	<block className="ExteriorIconWithAmount">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; _exteriorId"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="name" value="'ExteriorWithAmount_' + exteriorConfig.name"/>
		<bind name="style" value="'width'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '60px' : '75px'"/>
		<style>
			<height value="60px"/>
		</style>
		<bind name="style" value="'backgroundImage'; _isDesaturated	? ('url:' + exteriorConfig.desaturatedIconPath)
													: ('url:' + exteriorConfig.iconPath)"/>
		<block>
			<style>
				<right value="0px"/>
				<bottom value="-4px"/>
				<position value="absolute"/>
			</style>
			<bind name="visible" value="_amount &gt; 0 &amp;&amp; !(exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent)"/>
			<block type="text">
				<style>
					<position value="absolute"/>
				</style>
				<styleClass value="$TextHeaderBigWhite"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="class" value="	(_amount &lt; 5) ? '$None'  :
							(_amount &lt; 10) ? '$FontSize18' :
							(_amount &lt; 20) ? '$FontSizeHeader6' : '$FontSize20'"/>
				<bind name="text" value="_amount"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigWhite"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="class" value="	(_amount &lt; 5) ? '$None'  :
							(_amount &lt; 10) ? '$FontSize18' :
							(_amount &lt; 20) ? '$FontSizeHeader6' : '$FontSize20'"/>
				<bind name="text" value="_amount"/>
			</block>
		</block>
	</block>
	<block className="Autoreplenishment">
		<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="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<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_blurmap_h_no_right" 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>
			<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="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="3px"/>
				<marginBottom value="3px"/>
			</style>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="3px"/>
				</style>
				<bind name="tooltip" value="'MultiParagraphHelpTooltip'; {_tooltipHeader: _tooltipHeader, _multiParagraphArray: _multiParagraphArrayHint, _paragraphText: _paragraphText}"/>
				<block className="icon_question_mark" type="native"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block>
						<style>
							<marginRight value="5px"/>
						</style>
						<bind name="tooltip" value="'AutoreplenishmentPriceTooltip'; { 	_maxPriceCR: _maxPriceCR, 
																		_maxPriceGold : _maxPriceGold, 
																		_nextPriceCR: _nextPriceCR, 
																		_nextPriceGold: _nextPriceGold,
																		_multiParagraphArray: _multiParagraphArrayPriceHint
																		} "/>
						<block>
							<block>
								<bind name="style" value="'alpha'; (_itemsInstalled == 0) ? 0.6 : 1"/>
								<bind name="instance" value="'InvertableTextLine'; { _text: 'IDS_AUTOREPLANISHMENT',
																	_invert: (_goldDeficit &gt; 0 || _creditsDeficit &gt; 0),
																	_normalClass: '$TextPriceMedium',
																	_invertedClass: '$TextPriceMediumDeficit' }"/>
							</block>
							<bind name="watch" value="'iconWarningVisible'; (_autorechargeOn) &amp;&amp; ((_maxPriceCR != _nextPriceCR) || (_maxPriceGold != _nextPriceGold))"/>
							<block>
								<bind name="fade" value="iconWarningVisible; 0.3; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 1; 0.1"/>
								<block className="icon_warning_orange" type="native">
									<style>
										<marginTop value="8px"/>
										<marginLeft value="2px"/>
									</style>
								</block>
							</block>
							<block>
								<block>
									<bind name="visible" value="_nextPriceCR &gt; 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _nextPriceCR, currency: 'credits' }, _medium: true, _deficit: _creditsDeficit}"/>
								</block>
								<block>
									<bind name="visible" value="(_nextPriceCr &gt; 0) &amp;&amp; (_nextPriceGold &gt; 0)"/>
									<bind name="instance" value="'InvertableTextLine'; { _text: 'IDS_AND', 
																		_invert: (_goldDeficit &gt; 0 || _creditsDeficit &gt; 0), 
																		_normalClass: '$TextPriceMedium', 
																		_invertedClass: '$TextPriceMediumDeficit' }"/>
								</block>
								<block>
									<bind name="visible" value="_nextPriceGold &gt; 0"/>
									<style>
										<marginLeft value="3px"/>
									</style>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _nextPriceGold, currency: 'gold' }, _medium: true, _deficit: _goldDeficit}"/>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
					<block>
						<style>
							<marginRight value="5px"/>
							<backgroundColor value="0x01000000"/>
						</style>
						<bind name="tooltip" value="'SimpleWarningTooltip';	(playerShipInfo.isInFormation)	? {_text: (exteriorPage == LobbyConstants.SHIP_EXTERIOR_SIGNALS	? tr('IDS_SET_UNREADY_' + toUpperCase(tr(divisionEntranceData.divisionType)) + '_FIRST_TO_OPERATE_FLAGS')
																																							: tr('IDS_SET_UNREADY_' + toUpperCase(tr(divisionEntranceData.divisionType)) + '_FIRST_TO_OPERATE_CAMO'))} :
															(playerShipInfo.isLocked)		? {_text: tr('IDS_LEAVE_BATTLE_FIRST_TO_CHANGE_AUTOREPLENISHMENT_STATUS')}
																					: null"/>
						<block>
							<bind name="class" value="playerShipInfo.isLocked || playerShipInfo.isInFormation ? '$MouseDisable' : '$MouseEnable'"/>
							<bind name="style" value="'alpha'; (!(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation)) ? 1 : 0.5"/>
							<block className="tab_bar_bg" type="native">
								<block>
									<style>
										<marginLeft value="2px"/>
										<marginRight value="2px"/>
									</style>
									<block>
										<style>
											<position value="absolute"/>
										</style>
										<bind name="instance" value="'AutoreplenishmentTransition'; { _autorechargeOn: _autorechargeOn }"/>
									</block>
									<block>
										<style>
											<width value="100px"/>
											<height value="27px"/>
										</style>
										<bind name="tooltip" value="'SimpleTooltip'; (_itemsInstalled == 0)	? {tooltipText: (exteriorPage == LobbyConstants.SHIP_EXTERIOR_SIGNALS)	? 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT_NO_FLAGS'
																																							: 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT_NO_CAMO'}
																							:	null; 0"/>
										<block className="status_ready_item" type="native">
											<styleClass value="$Fullsize"/>
											<bind name="style" value="'colorMatrixFilter'; (_goldDeficit &gt; 0 || _creditsDeficit &gt; 0 || _itemsInstalled == 0) ? '0 -100 0 -40' : '0 0 0 0'"/>
											<bind name="label" value="_autorechargeOn ? toUpperCase(tr('IDS_IS_TURNED_ON')) : toUpperCase(tr('IDS_TURN_ON'))"/>
											<bind name="action" value="'buttonClick'; 'autorechargeExterior'; {shipId: shipInfo.id, signals: _signalsOn, camouflage: _camouflageOn}"/>
											<bind name="selected" value="_autorechargeOn"/>
											<bind name="enabled" value="_itemsInstalled &gt; 0"/>
											<bind name="tooltip" value="'SimpleTooltip'; (_itemsInstalled == 0) 	? null
																								: {tooltipText: (_goldDeficit &gt; 0 || _creditsDeficit &gt; 0) ? 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT_DEFICIT' : 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT'}; 0"/>
										</block>
									</block>
									<block className="divider_v" type="native">
										<style>
											<height value="27px"/>
										</style>
									</block>
									<block className="status_not_ready_item" type="native">
										<style>
											<width value="100px"/>
											<height value="27px"/>
										</style>
										<bind name="label" value="_autorechargeOn ? toUpperCase(tr('IDS_TURN_OFF')): toUpperCase(tr('IDS_IS_TURNED_OFF'))"/>
										<bind name="action" value="'buttonClick'; 'autorechargeExterior'; {shipId: shipInfo.id, signals: _signalsOff, camouflage: _camouflageOff}"/>
										<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_AUTOREPLANISHMENT_TURN_OFF_HINT'}; 0"/>
										<bind name="selected" value="!(_autorechargeOn)"/>
									</block>
									<style>
										<flow value="horizontal"/>
									</style>
								</block>
							</block>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="tooltip" value="'SimpleWarningTooltip';	playerShipInfo.isInFormation	? {_text: (exteriorPage == LobbyConstants.SHIP_EXTERIOR_SIGNALS	? tr('IDS_SET_UNREADY_' + toUpperCase(tr(divisionEntranceData.divisionType)) + '_FIRST_TO_OPERATE_FLAGS')
																																						: tr('IDS_SET_UNREADY_' + toUpperCase(tr(divisionEntranceData.divisionType)) + '_FIRST_TO_OPERATE_CAMO'))} :
														playerShipInfo.isLocked			? {_text: tr('IDS_LEAVE_BATTLE_FIRST_TO_CHANGE_AUTOPURCHASE_STATUS')}
																						: null"/>
					<bind name="instance" value="'AutoPurchase'; _canBuySomeExterior ? { shipId: shipInfo.id, _autorechargeOn: _autorechargeOn,
																		_isCamouflage: _isCamouflage, _isSignal: _isSignal, _isConsumables: _isConsumables}
																	: null"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="visible" value="(_goldDeficit &gt; 0 || _creditsDeficit &gt; 0) &amp;&amp; _autorechargeOn"/>
			<bind name="instance" value="'CrAndGoldDeficit'; { _goldDeficit: _goldDeficit , _creditsDeficit: _creditsDeficit, _medium: true, _bold: true}"/>
		</block>
	</block>
	<block className="AutoPurchase">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="fade" value="_autorechargeOn; 0.3; {alpha: 0, ubScaleY: 0}; {alpha: 1, ubScaleY: 1}; {alpha: 0, ubScaleY: 0}; 0; 0.3"/>
		<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="'validatedShownHintFirstTime'; shownHintFirstTime != null ? shownHintFirstTime : false"/>
		<bind name="watch" value="'shownHintFirstTime'; 	_isCamouflage	? userPrefs.shownHintAutoPurchaseExterior :
										_isSignal		? userPrefs.shownHintAutoPurchaseExterior :
										_isConsumables	? userPrefs.shownHintAutoPurchaseConsumables
														: userPrefs.shownHintAutoPurchaseExterior"/>
		<bind name="watch" value="'userPrefValueName'; 	_isCamouflage	? 'shownHintAutoPurchaseExterior' :
										_isSignal		? 'shownHintAutoPurchaseExterior' :
										_isConsumables	? 'shownHintAutoPurchaseConsumables'
														: 'shownHintAutoPurchaseExterior'"/>
		<bind name="dispatch" value="'addedToStage'; 'startWatchingAutochargeEv'; null; true; 0.1"/>
		<bind name="catch" value="'startWatchingAutochargeEv'; {startWatchingAutocharge: true}"/>
		<bind name="changeDispatch" value="_autorechargeOn; (startWatchingAutocharge &amp;&amp; _autorechargeOn == false) ? 'autorechargeOnChangedEv' : null"/>
		<bind name="action" value="'autorechargeOnChangedEv'; 'setUserPref'; { value: true, name: userPrefValueName}"/>
		<block>
			<bind name="fade" value="(validatedShownHintFirstTime == false) &amp;&amp; enableAutoPurschase; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 1; 0.1"/>
			<style>
				<position value="absolute"/>
				<width value="290px"/>
				<bottom value="26px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<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="mc_blurmap5" type="native">
				<bind name="fade" value="(validatedShownHintFirstTime == false) &amp;&amp; enableAutoPurschase; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 1; 0.1"/>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="blurMap" value="0"/>
			</block>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block className="notification_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block className="dock_panel_pin" type="native">
				<styleClass value="$MiddleAligned"/>
				<style>
					<position value="absolute"/>
					<bottom value="-7px"/>
				</style>
				<bind name="gotoAndStop!" value="'down'"/>
			</block>
			<block type="text">
				<styleClass value="$InfoBlockIndent"/>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="_isCamouflage 	 ? 'IDS_AUTOPURCHASE_CAMOUFLAGE_ON' 
						: _isSignal 	 ? 'IDS_AUTOPURCHASE_SIGNALS_ON' 
						: _isConsumables ? 'IDS_AUTOPURCHASE_CONSUMABLES_ON'
						: ''"/>
			</block>
			<block>
				<style>
					<backgroundColor value="0x01000000"/>
				</style>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="dispatch" value="'click'; 'autorechargeOnChangedEv'; null; true"/>
				<block className="button_close" type="native">
					<style>
						<top value="6px"/>
						<right value="6px"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<bind name="watch" value="'enableAutoPurschase'; _isCamouflage	? playerShipInfo.autopurchaseCamouflage :
											_isSignal		? playerShipInfo.autopurchaseFlags
															: playerShipInfo.autopurchaseAbilities"/>
			<bind name="tooltip" value="'MouseInstructionTooltip';	(playerShipInfo.isLocked || playerShipInfo.isInFormation) ? null :
													{_multiParagraphArray: 	enableAutoPurschase ? [{ _paragraphText: 	_isCamouflage 	 ? 'IDS_AUTOPURCHASE_CAMOUFLAGE_ON' 
																														: _isSignal 	 ? 'IDS_AUTOPURCHASE_SIGNALS_ON' 
																														: _isConsumables ? 'IDS_AUTOPURCHASE_CONSUMABLES_ON'
																														: '' }] 
																								: [{ _paragraphText: 	_isCamouflage 	 ? 'IDS_AUTOPURCHASE_CAMOUFLAGE_OFF'
																														: _isSignal 	 ? 'IDS_AUTOPURCHASE_SIGNALS_OFF' 
																														: _isConsumables ? 'IDS_AUTOPURCHASE_CONSUMABLES_OFF'
																														: ''}],
													_mouseInstructions: 	enableAutoPurschase	? [{ _type:'left', _instructionText: 'IDS_AUTOPURCHASE_SWITCH_OFF' }] 
																								: [{ _type:'left', _instructionText: 'IDS_AUTOPURCHASE_SWITCH_ON' }]}"/>
			<bind name="action" value="'buttonClick'; _isConsumables	? 'autopurchaseAbilities':
									_isSignal		? 'autopurchaseFlags'
													: 'autopurchaseCamouflage'; {shipId: shipId, isAutoBuy: !(enableAutoPurschase)}"/>
			<style>
				<marginTop value="3px"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<block>
				<bind name="style" value="'hitTest'; (!(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation))"/>
				<bind name="style" value="'alpha'; (!(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation)) ? 1 : 0.5"/>
				<bind name="instance" value="'CheckBox'; {switchProperty: enableAutoPurschase, label: 'IDS_AUTOPURCHASE_FULL', _maxTfWidth: 400}"/>
			</block>
		</block>
	</block>
	<block className="AutoreplenishmentPriceTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="330px"/>
		</style>
		<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>
			<styleClass value="$InfoBlockIndent"/>
			<style>
				<marginTop value="10px"/>
			</style>
			<block>
				<bind name="visible" value="(_nextPriceCR == 0) &amp;&amp; (_nextPriceGold == 0)"/>
				<block type="text">
					<style>
						<alpha value="0.8"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="text" value="tr('IDS_NEXT_REPLENISHMENT') + tr('IDS_COLON')+' '+toLowerCase(tr('IDS_FOR_FREE'))"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="(_nextPriceCR &gt; 0) || (_nextPriceGold &gt; 0)"/>
				<block type="text">
					<style>
						<alpha value="0.8"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="text" value="tr('IDS_NEXT_REPLENISHMENT') + tr('IDS_COLON')"/>
				</block>
				<block>
					<bind name="visible" value="_nextPriceCR &gt; 0"/>
					<style>
						<marginTop value="1px"/>
					</style>
					<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _nextPriceCR, currency: 'credits' }}"/>
				</block>
				<block type="text">
					<bind name="visible" value="(_nextPriceCr &gt; 0) &amp;&amp; (_nextPriceGold &gt; 0)"/>
					<style>
						<alpha value="0.8"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<styleClass value="$MiddleVAligned"/>
					<text value="IDS_AND"/>
				</block>
				<block>
					<bind name="visible" value="_nextPriceGold &gt; 0"/>
					<style>
						<marginLeft value="3px"/>
						<marginTop value="1px"/>
					</style>
					<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _nextPriceGold, currency: 'gold' }}"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="(_maxPriceCR &gt; 0) || (_maxPriceGold &gt; 0)"/>
				<style>
					<marginTop value="4px"/>
				</style>
				<block type="text">
					<style>
						<alpha value="0.8"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="text" value="tr('IDS_MAX_REPLENISHMENT') + tr('IDS_COLON')"/>
				</block>
				<block>
					<bind name="visible" value="_maxPriceCR &gt; 0"/>
					<style>
						<marginTop value="1px"/>
					</style>
					<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _maxPriceCR, currency: 'credits' }}"/>
				</block>
				<block type="text">
					<bind name="visible" value="(_maxPriceCR &gt; 0) &amp;&amp; (_maxPriceGold &gt; 0)"/>
					<style>
						<alpha value="0.8"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<styleClass value="$MiddleVAligned"/>
					<text value="IDS_AND"/>
				</block>
				<block>
					<bind name="visible" value="_maxPriceGold &gt; 0"/>
					<style>
						<marginLeft value="3px"/>
						<marginTop value="1px"/>
					</style>
					<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _maxPriceGold, currency: 'gold' }}"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</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>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
				<marginTop value="9px"/>
				<marginBottom value="3px"/>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="_multiParagraphArray; 'RepeatParagraphItem'"/>
		</block>
	</block>
	<block className="AutoreplenishmentTransition">
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="_autorechargeOn == false; 0.3; {x: 0}; {x: 102}; {x: 0}; 2; 0.3"/>
			<bind name="fade" value="_autorechargeOn == false; 0.3; {alpha: 1}; {alpha: 0}; {alpha: 0}; 0; 0.6"/>
			<block className="status_transition_element" type="native">
				<style>
					<marginTop value="2px"/>
					<position value="absolute"/>
					<height value="23px"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="_autorechargeOn; 0.3; {x: 102}; {x: 0}; {x: 102}; 2; 0.3"/>
			<bind name="fade" value="_autorechargeOn; 0.3; {alpha: 1}; {alpha: 0}; {alpha: 0}; 0; 0.6"/>
			<block className="status_transition_element" type="native">
				<style>
					<marginTop value="2px"/>
					<position value="absolute"/>
					<height value="23px"/>
				</style>
			</block>
		</block>
	</block>
	<block className="FlagInfotip">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; id"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<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="action" value="'Tooltip.selfClosed'; 'disableExteriorPreview'; {exteriorName:id}"/>
		<bind name="action" value="'Tooltip.selfOpened'; 'previewExterior'; {exteriorName:id, shipId: shipId}"/>
		<styleClass value="$HorizontalInfotipBehaviour"/>
		<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="dock_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginTop value="-10px"/>
				<marginRight value="-14px"/>
				<marginBottom value="-16px"/>
				<marginLeft value="-14px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="300px"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'FlagTooltipHeader'; {id: id, name: name, isLeague: isLeague}"/>
			</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>
					<bind name="visible" value="_installed"/>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_module_state" type="native">
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="'installed'"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<bind name="text" value="'IDS_INSTALLED'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="!(_installed)"/>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_warning_orange" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="!canUse ? 'IDS_NOT_ACHIEVED' : 'IDS_NOT_INSTALLED'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</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>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<style>
						<maxWidth value="274"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="'IDS_' + toUpperCase(name) + '_DESCRIPTION'"/>
				</block>
				<block type="text">
					<bind name="visible" value="!(isLeague)"/>
					<style>
						<maxWidth value="274"/>
						<marginTop value="6px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="'IDS_' + toUpperCase(name) + '_EXTRA_DESCRIPTION'"/>
				</block>
			</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>
				<bind name="visible" value="_selectedExteriorParams.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<styleClass value="$PxHorizontalCorrection"/>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="repeat" value="_selectedExteriorParams; 'ExteriorParams'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="-1px"/>
						<position value="absolute"/>
					</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="(!canUse &amp;&amp; !isLeague) || isRankSeasonTemp"/>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<maxWidth value="260"/>
					</style>
					<bind name="text" value="(!canUse &amp;&amp; !isLeague) ? 'IDS_INSTRUCTION_ACHIEVE_SEASON_FLAG' : 'IDS_INSTRUCTION_IS_RANK_TEMP'"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="canUse"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'DefaultButtonCostMedium';  !(_installed) 	? { _label: toUpperCase(tr('IDS_INSTALL')) , priceInfo: null, _action: 'installEnsign', _request: null, _actionParams: {ensignName: id, shipId: shipId}, _enabled: _enableExterior, _dispatchEvent: 'Tooltip.Close' }
																		: { _label: toUpperCase(tr('IDS_TAKE_AWAY')) , priceInfo: null, _action: 'installEnsign', _request: null, _actionParams: {ensignName: '', shipId: shipId}, _enabled: _enableExterior, _dispatchEvent: 'Tooltip.Close' }"/>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<marginTop value="0px"/>
				</style>
				<bind name="visible" value="!(_enableExterior)"/>
				<bind name="instance" value="'StatusLineWithIcon';  {_text: playerShipInfo.isInFormation ? (divisionEntranceData.divisionType == 'party') ?	'IDS_SET_UNREADY_PARTY_FIRST_TO_OPERATE_ENSIGN'
																																		 :	'IDS_SET_UNREADY_DIVISION_FIRST_TO_OPERATE_ENSIGN'
																						:	'IDS_LEAVE_BATTLE_FIRST_TO_OPERATE_CAMOUFLAGE',
												_positive: false}"/>
			</block>
			<block className="dock_panel_pin_h" type="native">
				<style>
					<position value="absolute"/>
				</style>
				<bind name="gotoAndStop!" value="'left'"/>
				<params>
					<param name="name" value="pinLeft"/>
				</params>
			</block>
		</block>
	</block>
	<block className="FlagTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<styleClass value="$MouseDisable"/>
		<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>
				<width value="300px"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'FlagTooltipHeader'; {id: id, name: name, isLeague: isLeague}"/>
			</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>
					<bind name="visible" value="_installed"/>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_module_state" type="native">
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="'installed'"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<bind name="text" value="'IDS_INSTALLED'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="!(_installed)"/>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_warning_orange" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="!canUse ? 'IDS_NOT_ACHIEVED' : 'IDS_NOT_INSTALLED'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</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>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<style>
						<maxWidth value="274"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="'IDS_' + toUpperCase(name) + '_DESCRIPTION'"/>
				</block>
				<block type="text">
					<bind name="visible" value="!(isLeague)"/>
					<style>
						<maxWidth value="274"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="'IDS_' + toUpperCase(name) + '_EXTRA_DESCRIPTION'"/>
				</block>
			</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>
				<bind name="visible" value="_selectedExteriorParams.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<styleClass value="$PxHorizontalCorrection"/>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="repeat" value="_selectedExteriorParams; 'ExteriorParams'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="-1px"/>
						<position value="absolute"/>
					</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="(!canUse &amp;&amp; isLeague) || isRankSeasonTemp"/>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<bind name="visible" value="!canUse &amp;&amp; isLeague"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<maxWidth value="260"/>
					</style>
					<bind name="text" value="IDS_INSTRUCTION_ACHIEVE_LEAGUE_FLAG"/>
				</block>
				<block type="text">
					<bind name="visible" value="isRankSeasonTemp"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<maxWidth value="260"/>
					</style>
					<text value="IDS_INSTRUCTION_IS_RANK_TEMP"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="!(_installed) &amp;&amp; canUse"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_INSTRUCTION_INSTALL_ENSIGN', _maxWidth: 270}"/>
			</block>
		</block>
	</block>
	<block className="FlagTooltipHeader">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'ensigns'; id; 'ensignsInfo'"/>
		<block>
			<block>
				<style>
					<height value="60px"/>
					<width value="75px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + ensignsInfo.iconPath"/>
			</block>
			<block>
				<block type="text">
					<style>
						<maxWidth value="200"/>
					</style>
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="ensignsInfo.installed 	? '$FontColorGolden' :'$FontColorDefault'"/>
					<bind name="text" value="'IDS_' + toUpperCase(ensignsInfo.name)"/>
				</block>
				<block type="text">
					<style>
						<maxWidth value="200"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="isLeague ? 'IDS_LEAGUE_FLAG' : 'IDS_SEASON_ENSIGN'"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="GiftboxBanner">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="firstEntityDH" value="'giftBox'; CC.giftBoxComponent"/>
		<bind name="watchDH" value="'rewardsAmount'; ['giftBox.giftBoxComponent.evUpdate']; giftBox.giftBoxComponent.rewardsAmount"/>
		<bind name="watchDH" value="'rewardsAmountNext'; ['giftBox.giftBoxComponent.evUpdate']; giftBox.giftBoxComponent.rewardsAmountNext"/>
		<bind name="watchDH" value="'visibilityState'; ['giftBox.giftBoxComponent.evUpdate']; giftBox.giftBoxComponent.visibilityState"/>
		<bind name="name" value="'GiftboxBanner'"/>
		<style>
			<alpha value="0"/>
			<width value="223px"/>
			<height value="110px"/>
		</style>
		<bind name="handleEventDH" value="'giftBox.giftBoxComponent.evAnimateHide'; 'animateGiftboxHideEv'"/>
		<bind name="appear" value="'animateGiftboxHideEv'; 0.2; 0.2; {alpha: 1, top: 0}; {alpha: 0, top: -5}"/>
		<bind name="dispatch" value="'animateGiftboxHideEv'; 'animateGiftboxHideFinishedEv'; null; 2; 0.8 }"/>
		<bind name="action" value="'animateGiftboxHideFinishedEv'; 'giftboxHideAnimationFinished'"/>
		<bind name="handleEventDH" value="'giftBox.giftBoxComponent.evAnimateRewards'; 'animateGiftboxShowEv'"/>
		<bind name="dispatch" value="'addedToStage'; 'animateGiftboxShowEv'; null; 2"/>
		<bind name="dispatch" value="'animateGiftboxShowEv'; (rewardsAmount == 0) ? 'animateNewEv' : null; null; 2; 4"/>
		<bind name="appear" value="'animateNewEv'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}; 3"/>
		<bind name="dispatch" value="'animateNewEv'; 'animateGiftboxCounterEv'; null; 2; 0.7"/>
		<bind name="action" value="'animateNewEv'; 'playGiftBoxSound'"/>
		<bind name="dispatch" value="'animateGiftboxShowEv'; ((rewardsAmount != 0) &amp;&amp; (rewardsAmount != rewardsAmountNext)) ? 'animateAddEv' : null; null; 2; 4"/>
		<bind name="dispatch" value="'animateAddEv'; 'animateGiftboxCounterEv'; null; 2; 0.7"/>
		<bind name="action" value="'animateAddEv'; 'playGiftBoxSound'"/>
		<bind name="dispatch" value="'animateGiftboxShowEv'; ((rewardsAmount != 0) &amp;&amp; (rewardsAmount == rewardsAmountNext)) ? 'animateSimpleShowEv' : null; null; 0"/>
		<bind name="appear" value="'animateSimpleShowEv'; 0.3; 0.2; {alpha: 0, top: 5}; {alpha: 1, top: 0}; 3"/>
		<bind name="action" value="'animateGiftboxCounterEv'; 'giftboxAppearAnimationFinished'"/>
		<bind name="action" value="'Tooltip.opened'; 'giftboxStopHideTimer'; {}; true"/>
		<bind name="action" value="'Tooltip.closed'; 'giftboxRewardShown'; {}; true"/>
		<block>
			<bind name="tooltip" value="'GiftboxTooltip'; {}"/>
			<bind name="tooltip" value="'GiftboxInfotip'; {}; TooltipBehaviour.infotip; null; 'rewardsInfotip'"/>
			<styleClass value="$Fullsize"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="fade" value="!isHidden; 0.15; {alpha: 0, top: -10}; {alpha: 1, top: 0}"/>
			<bind name="transition" value="(visibilityState == 2); 0.15; {alpha: 1}; {alpha: 0.6}"/>
			<block className="quest_thumb_title" type="native">
				<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.1; {alpha: 0.75}; {alpha: 1.0}"/>
				<style>
					<width value="100%"/>
					<height value="36px"/>
					<position value="absolute"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderWhiteBold"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="4px"/>
				</style>
				<bind name="text" value="toUpperCase(tr('IDS_GIFTS_FOR_HEROES'))"/>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<block className="button_giftbox" type="native">
					<style>
						<position value="absolute"/>
						<bottom value="-4px"/>
						<left value="54px"/>
					</style>
					<bind name="selected" value="rewardsInfotip"/>
				</block>
				<block>
					<bind name="visible" value="rewardsAmount &gt; 0"/>
					<style>
						<position value="absolute"/>
						<bottom value="4px"/>
					</style>
					<bind name="style" value="'left';	(rewardsAmount &lt; 10)	? '161px' :
										(rewardsAmount &lt; 100)	? '169px'
																: '178px'"/>
					<bind name="watch" value="'counterScale'; (rewardsAmount &lt; 10)	? 1.1 :
											 (rewardsAmount &lt; 20)	? 1.2
																	: 1.3"/>
					<block className="x_counter_animated" type="native">
						<style>
							<position value="absolute"/>
						</style>
						<bind name="name" value="'rewardsAmount_' + rewardsAmount"/>
						<bind name="scaleX" value="counterScale"/>
						<bind name="scaleY" value="counterScale"/>
						<bind name="event" value="'animateGiftboxCounterEv'; 'gotoAndPlay'; 'animation'"/>
						<bind name="event" value="'newGiftBoxDelayedEvent'; 'gotoAndPlay'; 'animation'"/>
						<bind name="catch" value="'newGiftBoxDelayedEvent'; {curAmount: rewardData.rewardsAmount, isMouseEnabled: true}"/>
						<bind name="action" value="'newGiftBoxDelayedEvent'; 'giftBoxValueUpdated'; {curAmount: rewardData.rewardsAmount}"/>
						<innerBind elementName="counter_tf" name="text" value="('x'+ rewardsAmount)"/>
						<innerBind elementName="animated_counter_tf" name="text" value="('x'+ rewardsAmountNext)"/>
					</block>
				</block>
			</block>
		</block>
		<bind name="var" value="{isHitTestEnable: false}"/>
		<block>
			<bind name="visible" value="(isHitTestEnable != true)"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<bind name="catch" value="'animateNewEv'; {isHitTestEnable: true}"/>
		<bind name="catch" value="'animateAddEv'; {isHitTestEnable: true}"/>
		<bind name="catch" value="'animateSimpleShowEv'; {isHitTestEnable: true}"/>
	</block>
	<block className="RewardContainer">
		<bind name="tooltip" value="'RewardContainerTooltip'; { _rewards: _rewards, _rewardsSpecial: _rewardsSpecial, _tooltipHeader: _tooltipHeader }"/>
		<block className="icon_giftbox" type="native">
			<bind name="scaleX" value="_scale ? _scale: 0.85"/>
			<bind name="scaleY" value="_scale ? _scale: 0.85"/>
		</block>
	</block>
	<block className="RewardContainerTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="340px"/>
			<marginBottom value="12px"/>
		</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 type="text">
			<styleClass value="$InfoBlockIndent"/>
			<styleClass value="$TextHeaderBigDefaultTech"/>
			<bind name="text" value="_tooltipHeader"/>
		</block>
		<block>
			<bind name="visible" value="_rewards.length &gt; 0"/>
			<style>
				<width value="100%"/>
				<marginLeft value="16px"/>
				<marginRight value="12px"/>
			</style>
			<bind name="repeat" value="_rewards; _isDH20 ? 'RewardContainerTooltipItemAdapter' : 'RewardContainerTooltipItem'"/>
		</block>
		<block>
			<bind name="visible" value="_rewardsSpecial.length &gt; 0"/>
			<style>
				<width value="100%"/>
				<marginLeft value="16px"/>
				<marginRight value="12px"/>
			</style>
			<bind name="repeat" value="_rewardsSpecial; _isDH20 ? 'RewardContainerTooltipItemAdapter' : 'RewardContainerTooltipItem'"/>
		</block>
	</block>
	<block className="RewardContainerTooltipItemAdapter">
		<bind name="entityDH" value="'rewardEntity'; $value"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="instance" value="'RewardContainerTooltipItem'; rewardEntity.rewardComponent"/>
	</block>
	<css name="$GiftboxInfotipBehaviour">
		<userData value="{
		appearDelay: 0,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -10.0,
		tinyOffset: 0,
		rightOffset: -67,
		bottomOffset: 0,
		isTipCenter: true
	}"/>
	</css>
	<block className="GiftboxInfotip">
		<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="$GiftboxInfotipBehaviour"/>
		<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="!(true)"/>
				<block className="hint_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="true"/>
				<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 className="GiftboxRewardsContent">
			<bind name="collectionDH" value="CC.rewardComponent; 'specialRewardsCollection'; 'special.sort'"/>
			<bind name="collectionDH" value="CC.rewardComponent; 'regularRewardsCollection'; 'common.sort'"/>
			<style>
				<width value="425px"/>
			</style>
			<block type="text">
				<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
				<style>
					<marginTop value="18px"/>
					<width value="100%"/>
					<marginBottom value="2px"/>
					<textAlign value="center"/>
				</style>
				<styleClass value="$TextHeaderBigDefaultTech"/>
				<bind name="text" value="'IDS_GIFTS_EARNED_AVAILABLE_INFO'"/>
			</block>
			<block>
				<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
				<bind name="visible" value="regularRewardsCollection.length &gt; 0"/>
				<style>
					<flow value="htile"/>
					<marginBottom value="12px"/>
					<width value="425px"/>
				</style>
				<bind name="repeat" value="regularRewardsCollection; 'RewardItemEntity'"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="regularRewardsCollection.length &gt; 0 &amp;&amp; specialRewardsCollection.length &gt; 0 "/>
				<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>
				<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
				<bind name="visible" value="specialRewardsCollection.length &gt; 0"/>
				<style>
					<flow value="htile"/>
					<marginTop value="14px"/>
					<marginBottom value="18px"/>
					<width value="425px"/>
				</style>
				<bind name="repeat" value="specialRewardsCollection; 'RewardItemEntity'"/>
			</block>
		</block>
	</block>
	<block className="GiftboxTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<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>
		<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 className="GiftboxRewardsContent">
			<bind name="collectionDH" value="CC.rewardComponent; 'specialRewardsCollection'; 'special.sort'"/>
			<bind name="collectionDH" value="CC.rewardComponent; 'regularRewardsCollection'; 'common.sort'"/>
			<style>
				<width value="425px"/>
			</style>
			<block type="text">
				<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
				<style>
					<marginTop value="18px"/>
					<width value="100%"/>
					<marginBottom value="2px"/>
					<textAlign value="center"/>
				</style>
				<styleClass value="$TextHeaderBigDefaultTech"/>
				<bind name="text" value="'IDS_GIFTS_EARNED_AVAILABLE_INFO'"/>
			</block>
			<block>
				<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
				<bind name="visible" value="regularRewardsCollection.length &gt; 0"/>
				<style>
					<flow value="htile"/>
					<marginBottom value="12px"/>
					<width value="425px"/>
				</style>
				<bind name="repeat" value="regularRewardsCollection; 'RewardItemEntity'"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="visible" value="regularRewardsCollection.length &gt; 0 &amp;&amp; specialRewardsCollection.length &gt; 0 "/>
				<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>
				<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
				<bind name="visible" value="specialRewardsCollection.length &gt; 0"/>
				<style>
					<flow value="htile"/>
					<marginTop value="14px"/>
					<marginBottom value="18px"/>
					<width value="425px"/>
				</style>
				<bind name="repeat" value="specialRewardsCollection; 'RewardItemEntity'"/>
			</block>
		</block>
		<block>
			<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>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_GIFTBOX_INSTRUCTION', _maxWidth: 425}"/>
		</block>
	</block>
	<block className="GiftboxRewardsContent">
		<bind name="collectionDH" value="CC.rewardComponent; 'specialRewardsCollection'; 'special.sort'"/>
		<bind name="collectionDH" value="CC.rewardComponent; 'regularRewardsCollection'; 'common.sort'"/>
		<style>
			<width value="425px"/>
		</style>
		<block type="text">
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<style>
				<marginTop value="18px"/>
				<width value="100%"/>
				<marginBottom value="2px"/>
				<textAlign value="center"/>
			</style>
			<styleClass value="$TextHeaderBigDefaultTech"/>
			<bind name="text" value="'IDS_GIFTS_EARNED_AVAILABLE_INFO'"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<bind name="visible" value="regularRewardsCollection.length &gt; 0"/>
			<style>
				<flow value="htile"/>
				<marginBottom value="12px"/>
				<width value="425px"/>
			</style>
			<bind name="repeat" value="regularRewardsCollection; 'RewardItemEntity'"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="regularRewardsCollection.length &gt; 0 &amp;&amp; specialRewardsCollection.length &gt; 0 "/>
			<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>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<bind name="visible" value="specialRewardsCollection.length &gt; 0"/>
			<style>
				<flow value="htile"/>
				<marginTop value="14px"/>
				<marginBottom value="18px"/>
				<width value="425px"/>
			</style>
			<bind name="repeat" value="specialRewardsCollection; 'RewardItemEntity'"/>
		</block>
	</block>
	<block className="RewardItemEntity">
		<bind name="instance" value="'RewardItem'; $dataRef.ref.rewardComponent"/>
	</block>
	<css name="$DefaultInboxSize">
		<width value="264px"/>
		<height value="350px"/>
	</css>
	<block className="ResizableNotificationsInfotip">
		<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="$DefaultInboxSize"/>
		<style>
			<userData value="{
			minResizeHeight: 250
		}"/>
		</style>
		<bind name="resize" value="'grip';'up';null; 'notificationsInboxHeight'"/>
		<block className="NotificationsInfotip">
			<bind name="var" value="{inset: 0}"/>
			<bind name="catch" value="'changeNotificationsInset'"/>
			<styleClass value="$VerticalInfotipBehaviourCenter"/>
			<styleClass value="$Fullsize"/>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<position value="absolute"/>
					<marginBottom value="11px"/>
				</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="dock_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="-6px"/>
					<marginTop value="-9px"/>
					<marginRight value="-14px"/>
					<marginLeft value="-14px"/>
				</style>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block className="tab_bar_bg" type="native">
						<styleClass value="$Fullsize"/>
						<style>
							<height value="25px"/>
							<marginTop value="6px"/>
							<marginBottom value="6px"/>
						</style>
						<block>
							<style>
								<marginLeft value="2px"/>
								<marginRight value="2px"/>
							</style>
							<block>
								<bind name="name" value="'NotificationTabBattles'"/>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<bind name="name" value="'DockSubMenuItemSmall' + 0"/>
										<style>
											<width value="74"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="inset == 0"/>
										<bind name="dispatch" value="'buttonClick'; 'changeNotificationsInset'; { inset: 0, _searchState: 0 }"/>
										<bind name="label" value="toUpperCase(tr('IDS_BATTLES'))"/>
									</block>
									<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_BATTLE_MESSAGES'}"/>
								</block>
							</block>
							<block>
								<block className="divider_v" type="native">
									<style>
										<height value="21px"/>
										<top value="2px"/>
									</style>
								</block>
							</block>
							<block>
								<bind name="name" value="'NotificationTabOther'"/>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<bind name="name" value="'DockSubMenuItemSmall' + 1"/>
										<style>
											<width value="90"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="inset == 1"/>
										<bind name="dispatch" value="'buttonClick'; 'changeNotificationsInset'; { inset: 1, _searchState: 0 }"/>
										<bind name="label" value="toUpperCase(tr('IDS_NOTIFICATIONS'))"/>
									</block>
									<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_OTHER_MESSAGES'}"/>
								</block>
							</block>
							<block>
								<block className="divider_v" type="native">
									<style>
										<height value="21px"/>
										<top value="2px"/>
									</style>
								</block>
							</block>
							<block>
								<bind name="name" value="'NotificationTabStats'"/>
								<block className="MainTabSmall">
									<block className="tab_bar_item_small" type="native">
										<bind name="name" value="'DockSubMenuItemSmall' + 2"/>
										<style>
											<width value="90"/>
											<height value="25px"/>
										</style>
										<bind name="selected" value="inset == 2"/>
										<bind name="dispatch" value="'buttonClick'; 'changeNotificationsInset'; { inset: 2, _searchState: 0 }"/>
										<bind name="label" value="toUpperCase(tr('Статистика'))"/>
									</block>
									<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'Статистика за сессию'}"/>
								</block>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</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>
				<block>
					<styleClass value="$Fullsize"/>
					<bind name="child" value="inset; { dockGoToBattleMethod: dockGoToBattleMethod, dockSelectedBattleType: dockSelectedBattleType }; 'NotificationsBattle'; 'NotificationsOther'; 'NotificationsStats'"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="dock_panel_pin" type="native">
					<bind name="gotoAndStop!" value="'down'"/>
					<style>
						<right value="8px"/>
						<marginBottom value="3px"/>
						<alpha value="0.5"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<width value="100%"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_VERTICAL_OVER'"/>
			<params>
				<param name="name" value="grip"/>
			</params>
			<block className="button_gripper_horizontal" type="native">
				<styleClass value="$MiddleAligned"/>
			</block>
		</block>
	</block>
	<block className="NotificationsInfotip">
		<bind name="var" value="{inset: 0}"/>
		<bind name="catch" value="'changeNotificationsInset'"/>
		<styleClass value="$VerticalInfotipBehaviourCenter"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginBottom value="11px"/>
			</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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="-6px"/>
				<marginTop value="-9px"/>
				<marginRight value="-14px"/>
				<marginLeft value="-14px"/>
			</style>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="tab_bar_bg" type="native">
					<styleClass value="$Fullsize"/>
					<style>
						<height value="25px"/>
						<marginTop value="6px"/>
						<marginBottom value="6px"/>
					</style>
					<block>
						<style>
							<marginLeft value="2px"/>
							<marginRight value="2px"/>
						</style>
						<block>
							<bind name="name" value="'NotificationTabBattles'"/>
							<block className="MainTabSmall">
								<block className="tab_bar_item_small" type="native">
									<bind name="name" value="'DockSubMenuItemSmall' + 0"/>
									<style>
										<width value="74"/>
										<height value="25px"/>
									</style>
									<bind name="selected" value="inset == 0"/>
									<bind name="dispatch" value="'buttonClick'; 'changeNotificationsInset'; { inset: 0, _searchState: 0 }"/>
									<bind name="label" value="toUpperCase(tr('IDS_BATTLES'))"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_BATTLE_MESSAGES'}"/>
							</block>
						</block>
						<block>
							<block className="divider_v" type="native">
								<style>
									<height value="21px"/>
									<top value="2px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="name" value="'NotificationTabOther'"/>
							<block className="MainTabSmall">
								<block className="tab_bar_item_small" type="native">
									<bind name="name" value="'DockSubMenuItemSmall' + 1"/>
									<style>
										<width value="90"/>
										<height value="25px"/>
									</style>
									<bind name="selected" value="inset == 1"/>
									<bind name="dispatch" value="'buttonClick'; 'changeNotificationsInset'; { inset: 1, _searchState: 0 }"/>
									<bind name="label" value="toUpperCase(tr('IDS_NOTIFICATIONS'))"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_OTHER_MESSAGES'}"/>
							</block>
						</block>
						<block>
							<block className="divider_v" type="native">
								<style>
									<height value="21px"/>
									<top value="2px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="name" value="'NotificationTabStats'"/>
							<block className="MainTabSmall">
								<block className="tab_bar_item_small" type="native">
									<bind name="name" value="'DockSubMenuItemSmall' + 2"/>
									<style>
										<width value="90"/>
										<height value="25px"/>
									</style>
									<bind name="selected" value="inset == 2"/>
									<bind name="dispatch" value="'buttonClick'; 'changeNotificationsInset'; { inset: 2, _searchState: 0 }"/>
									<bind name="label" value="toUpperCase(tr('Статистика'))"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'Статистика за сессию'}"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</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>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="child" value="inset; { dockGoToBattleMethod: dockGoToBattleMethod, dockSelectedBattleType: dockSelectedBattleType }; 'NotificationsBattle'; 'NotificationsOther'; 'NotificationsStats'"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'down'"/>
				<style>
					<right value="8px"/>
					<marginBottom value="3px"/>
					<alpha value="0.5"/>
				</style>
			</block>
		</block>
	</block>
	<block className="NotificationsBattle">
		<bind name="collectionDH" value="CC.sysMessage; 'battleResultCollection'; 'battleResults'"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'EmptyStatusParagraph'; battleResultCollection.length &gt; 0 ? null : {_text : 'IDS_NO_NEW_SYSTEM_MESSAGES', _maxWidth: '220'}"/>
		</block>
		<block>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<height value="100%f"/>
				<width value="100%"/>
				<overflow value="scroll"/>
				<marginBottom value="2px"/>
			</style>
			<bind name="repeat" value="battleResultCollection; 'SystemLogNotificationShortElement'; { dockGoToBattleMethod: dockGoToBattleMethod, dockSelectedBattleType: dockSelectedBattleType }; true"/>
		</block>
	</block>
	<block className="NotificationsOther">
		<bind name="collectionDH" value="CC.sysMessage; 'regularNotificationsCollection'; 'regularMessages'"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'EmptyStatusParagraph'; regularNotificationsCollection.length &gt; 0 ? null : {_text : 'IDS_NO_NEW_SYSTEM_MESSAGES', _maxWidth: '220'}"/>
		</block>
		<block>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<height value="100%f"/>
				<width value="100%"/>
				<overflow value="scroll"/>
				<marginBottom value="2px"/>
			</style>
			<bind name="repeat" value="regularNotificationsCollection; 'SystemLogNotificationShortElement'; { dockGoToBattleMethod: dockGoToBattleMethod, dockSelectedBattleType: dockSelectedBattleType }; true"/>
		</block>
	</block>
	<block className="StatsBattles">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block className="icon_player_in_battle" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<style>
				<marginBottom value="-2px"/>
			</style>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="StatsDamage">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block className="icons_team_result_section" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="15px"/>
				<height value="15px"/>
			</style>
			<bind name="gotoAndStop!" value="5"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<style>
				<marginBottom value="-2px"/>
			</style>
			<bind name="text" value="format(_text, 0)"/>
		</block>
	</block>
	<block className="StatsShipsKilled">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block className="icons_team_result_section" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<height value="15px"/>
			</style>
			<bind name="gotoAndStop!" value="8"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<style>
				<marginBottom value="-2px"/>
			</style>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="StatsXP">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block className="icon_exp_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultExpSmall"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginBottom value="-2px"/>
			</style>
			<bind name="text" value="format(_costXP, 0)"/>
		</block>
	</block>
	<block className="StatsFreeXP">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block className="icon_exp_free_small" type="native">
			<styleClass value="$MiddleVAligned"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="_class"/>
			<bind name="class" value="'$Bold'"/>
			<style>
				<marginBottom value="-2px"/>
			</style>
			<bind name="text" value="format(_costFreeXP, 0)"/>
		</block>
	</block>
	<block className="StatsCR">
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<block className="icon_credit_small" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="1px"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondary"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="_class"/>
			<style>
				<marginBottom value="-2px"/>
				<marginLeft value="2px"/>
			</style>
			<bind name="style" value="'textColor'; _costCR &lt; 0 ? '0xC62828' : '0xFFFFFF'"/>
			<bind name="text" value="format(_costCR, 0)"/>
		</block>
	</block>
	<block className="ColoredByRate">
		<block type="text">
			<styleClass value="$TextSecondaryBold"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 0 ? '0xC62828' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 10 ? '0xE06827' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 20 ? '0xF9A825' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 30 ? '0xF07C31' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 40 ? '0xF59E2F' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 50 ? '0xC0CA33' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 60 ? '0xCDB833' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 70 ? '0x9FB03A' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 80 ? '0x2E7D32' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 90 ? '0x43A047' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 95 ? '0x00ACC1' : '0xFFFFFF'"/>
			<bind name="style" value="'textColor'; (_data / _max) * 100 &gt;= 99 ? '0x8E24AA' : '0xFFFFFF'"/>
			<bind name="text" value="format(_data, 0) + _postfix"/>
		</block>
	</block>
	<block className="NotificationsStats">
		<bind name="var" value="{IS_DEBUG: false, IS_FAKE_DATA: false}"/>
		<bind name="var" value="{SAVE_DAY_STATS: true}"/>
		<bind name="var" value="{SHOW_RESET_BUTTON: true}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'EmptyStatusParagraph'; data.visible ? null : {_text : 'Нет данных для отображения статистики', _maxWidth: '220'}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<top value="0px"/>
				<backgroundImage value="symbol:table_bg_dark"/>
				<backgroundRepeatX value="true"/>
				<backgroundRepeatY value="true"/>
			</style>
			<block>
				<style>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
					<marginBottom value="5px"/>
					<width value="100%"/>
				</style>
				<block type="text">
					<style>
						<marginTop value="5px"/>
						<marginBottom value="5px"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<styleClass value="$FontColorWhite"/>
					<bind name="text" value="'Статистика за сессию'"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<style>
							<marginRight value="15px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_VICTORIES') + '/Боёв'"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_DEAL_OUT_DAMAGE')"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_DESTROYED_ENEMY_SHIPS_AVERAGE')"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_EXPERIENCE_C')"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_FREE_EXPERIENCE_C')"/>
						</block>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="text" value="tr('IDS_CREDITS_C')"/>
						</block>
					</block>
					<block>
						<bind name="instance" value="'StatsBattles'; { _text:data.battlesWin + '/' + data.battlesTotal }"/>
						<bind name="instance" value="'StatsDamage'; { _text: data.damage }"/>
						<bind name="instance" value="'StatsShipsKilled'; { _text: data.shipsKilled }"/>
						<bind name="instance" value="'StatsXP'; { _class: '$TextDefaultExpSmall', _costXP: data.xp }"/>
						<bind name="instance" value="'StatsFreeXP'; { _class: '$FontColorFreeExp', _costFreeXP: data.freeXP }"/>
						<bind name="instance" value="'StatsCR'; { _costCR: data.credits }"/>
					</block>
					<block>
						<style>
							<position value="absolute"/>
							<right value="0px"/>
						</style>
						<bind name="instance" value="'ColoredByRate'; { _data:data.battlesRate, _max:100, _postfix:'%' }"/>
						<bind name="instance" value="'ColoredByRate'; { _data:data.averageDamage, _max:100000, _postfix:'' }"/>
						<bind name="instance" value="'ColoredByRate'; { _data:data.averageShipsKilled, _max:4, _postfix:'' }"/>
						<bind name="instance" value="'ColoredByRate'; { _data:data.averageXP, _max:2000, _postfix:'' }"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</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>
			<bind name="visible" value="data.visible"/>
		</block>
		<block>
			<bind name="visible" value="SHOW_RESET_BUTTON &amp;&amp; data.visible"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="100px"/>
			</style>
			<block className="button_default" type="native">
				<params>
					<param name="name" value="buttonResetStats"/>
				</params>
				<style>
					<width value="100%"/>
					<marginTop value="5px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="soundSet" value="'hard_button'"/>
				<bind name="label" value="toUpperCase(tr('Сбросить'))"/>
				<bind name="event" value="'buttonClick'; resetData"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'Сбросить'}; 0"/>
			</block>
		</block>
		<bind name="controller" value="com.stl1te.NotificationsStats.ControllerNotificationsStats"/>
	</block>
	<block className="SelectAccountRenderer">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'canBuyPremium';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.canBuyPremium"/>
		<bind name="watchDH" value="'isSyncedWithWallet'; ['resourceEntity.accountResource.evChangedIsSyncedWithWallet']; resourceEntity.accountResource.isSyncedWithWallet"/>
		<bind name="watchDH" value="'walletAvailable'; ['resourceEntity.accountResource.evChangedWalletStatus']; resourceEntity.accountResource.walletStatus"/>
		<bind name="watch" value="'showWGWalletWarning'; ((isSyncedWithWallet == false) || (walletAvailable == false))"/>
		<bind name="watch" value="'playerInfotipItem'; rankedBattlesStats.participated &amp;&amp; !(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) ? 0 : 1"/>
		<style>
			<width value="240px"/>
			<marginLeft value="15px"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="child" value="playerInfotipItem; {id: rankedBattlesStats.rank, _playerName: accountLevelInfo.playerName}; 'PlayerInfotipItemRank'; 'PlayerInfotipItemAccount'"/>
		</block>
		<block className="divider_h" type="native">
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
		</block>
		<block>
			<block>
				<bind name="visible" value="!(canBuyPremium)"/>
				<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_TOOLTIP_BUY_PREMIUM_AMMOUNT_EXCEEDS_LIMIT', tooltipSubText: 'IDS_TOOLTIP_BUY_PREMIUM_AVAILABLE_ON_SITE' }"/>
				<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_BUY_PREMIUM_ACCOUNT', _icon: 'premium', _external: true}"/>
				<bind name="name" value="'buttonBuyPremium'"/>
				<bind name="action" value="'click'; 'gotoUrlByIdent'; {ident: URL.BUY_PREM}"/>
			</block>
			<block>
				<bind name="visible" value="canBuyPremium"/>
				<block>
					<style>
						<backgroundColor value="0x01000000"/>
					</style>
					<bind name="style" value="'alpha'; showWGWalletWarning ? 0.5 : 1"/>
					<bind name="name" value="'buttonShowPremium'"/>
					<bind name="input"/>
					<bind name="tooltip" value="'SubTextTooltip'; {	tooltipText: 'IDS_TOOLTIP_BUY_PREMIUM_ACCOUNT',
													tooltipSubText: 'IDS_HINT_PREM_GET_MORE_CREDITS_AND_EXP'}"/>
					<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_BUY_PREMIUM_ACCOUNT', _icon: 'premium', _external: false}"/>
				</block>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="instance" value="'WGWalletServiceStatus'; showWGWalletWarning ? {_walletAvailable: walletAvailable, _isSyncedWithWallet: isSyncedWithWallet } : null"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_EXCHANGE_GOLD'}"/>
			<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_EXCHANGE_GOLD', _icon: 'change_gold', _external: false}"/>
			<bind name="name" value="'buttonExchangeGold'"/>
			<bind name="input"/>
		</block>
		<block>
			<bind name="feature" value="5; 'rollOver'"/>
			<bind name="visible" value="feature_5 != 'locked'"/>
			<bind name="name" value="'buttonConvertExp'"/>
			<bind name="action" value="'click'; 'xpFreeExpWindow'"/>
			<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_CONVERT_EXP'}"/>
			<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_CONVERT_EXP', _icon: 'convert_gold', _external: false}"/>
		</block>
		<block>
			<bind name="visible" value="realmConstants.premshopUIAvailable"/>
			<bind name="request" value="'click'; 'webBrowser'; {url: URL.SHOP_IN_GAME}"/>
			<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_PREMSHOP', tooltipSubText: 'IDS_TOOLTIP_PREMSHOP'}"/>
			<block>
				<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_PREMSHOP')), _icon: 'premshop', _external: false }"/>
			</block>
		</block>
		<block>
			<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
			<bind name="watchDH" value="'isSteamClient'; ['loginEntity.loginData.evUpdate']; loginEntity.loginData.isSteam"/>
			<bind name="name" value="'buttonBuyGold'"/>
			<bind name="action" value="'click'; isSteamClient == true ? null : 'gotoUrlByIdent'; {ident: URL.BUY_GOLD}"/>
			<bind name="request" value="'click'; isSteamClient == true ? 'webBrowser' : null; {url: URL.BUY_GOLD_IN_GAME}"/>
			<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_BUY_GOLD_LC', tooltipSubText: 'IDS_HINT_REDIRECT_TO_STORE'}"/>
			<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_BUY_GOLD', _icon: 'buy_gold', _external: !(isSteamClient)}"/>
		</block>
		<block>
			<bind name="visible" value="accountLevelInfo.accountLevel &gt;= 3"/>
			<bind name="name" value="'buttonPlaytogether'"/>
			<bind name="request" value="'click'; 'webBrowser'; {url: URL.PLAYTOGETHER_WEBSITE}"/>
			<bind name="collectionDH" value="CC.userTask; 'userTaskCollection'"/>
			<bind name="entityDH" value="'userTaskEntity'; userTaskCollection[0].id"/>
			<bind name="watchDH" value="'currentUserTaskFlag'; ['userTaskEntity.userTask.evFlagChanged']; userTaskEntity.userTask.flag"/>
			<bind name="action" value="'rollOver'; 'ServerUIDataUSS.setUserTaskExecuted'; { taskId: UserTasksFlags.CONTROL_SEEN_PLAYTOGETHER }"/>
			<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_INVITE_FRIEND', tooltipSubText: 'IDS_HINT_INVITE_FRIEND_EXTERNAL'}"/>
			<block>
				<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_INVITE_FRIEND')), _icon: 'invite_friend', _external: false}"/>
			</block>
			<block className="icon_sticker_new" type="native">
				<bind name="fade" value="(currentUserTaskFlag &amp; UserTasksFlags.CONTROL_SEEN_PLAYTOGETHER) == 0; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<hitTest value="false"/>
					<position value="absolute"/>
					<marginTop value="3px"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
			<bind name="watchDH" value="'selfPlayerDbId'; []; selfPlayerEntity.accountSimple.dbId"/>
			<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="visible" value="!(selfPlayerEntity.clanman)"/>
			<bind name="request" value="'click'; 'webBrowser'; {url: 'clansInGame'}"/>
			<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_CLANS', tooltipSubText: 'IDS_HINT_CLANS'}"/>
			<block>
				<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_CLANS')), _icon: 'clans', _external: false }"/>
			</block>
		</block>
		<block>
			<bind name="feature" value="23; 'rollOver'"/>
			<bind name="visible" value="feature_23 != 'locked'"/>
			<bind name="name" value="'buttonWarehouse'"/>
			<bind name="request" value="'click'; 'webBrowser'; {url: URL.WAREHOUSE_IN_GAME}"/>
			<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_WAREHOUSE', tooltipSubText: 'IDS_HINT_WAREHOUSE'}"/>
			<block>
				<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_WAREHOUSE')), _icon: 'warehouse', _external: false }"/>
			</block>
			<block className="icon_sticker_new" type="native">
				<bind name="fade" value="feature_23 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<hitTest value="false"/>
					<position value="absolute"/>
					<marginTop value="3px"/>
				</style>
			</block>
		</block>
	</block>
	<block className="PlayerInfotipItemRank">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_GO_TO_RANKS'}"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="action" value="'buttonClick'; 'changeInset'; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_RANKS }"/>
		<bind name="dispatch" value="'buttonClick'; 'Tooltip.Close'; {}"/>
		<block className="dock_submenu_item" type="native">
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$MouseDisable"/>
				<style>
					<width value="100%"/>
					<marginLeft value="-3px"/>
					<marginBottom value="6px"/>
				</style>
				<block>
					<style>
						<marginLeft value="4px"/>
					</style>
					<bind name="instance" value="'PlayerRankIcon'; {_rankId: rankedBattlesStats.rank, _small: true}"/>
				</block>
				<block>
					<style>
						<marginLeft value="3px"/>
						<marginTop value="4px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderWhite"/>
						<style>
							<maxWidth value="158"/>
						</style>
						<bind name="name" value="'playerName_tooltip'"/>
						<bind name="text" value="_playerName"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="accountLevelInfo.abuseStatus == AbuseStatus.CONFIRMED ? '$FontColorCompareNegative' : accountLevelInfo.abuseStatus == AbuseStatus.SUSPECT ? '$FontColorTeamkiller' : '$None'"/>
					</block>
					<block type="text">
						<style>
							<marginTop value="-4px"/>
							<maxWidth value="160"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="text" value="rankedBattlesStats.rank == 1 	? subst('IDS_RANK_X_SEASON_Y',[], {rank: tr('IDS_RANK_SEA_WOLF'), season: tr(rankedBattlesSeason.title)})
																: subst('IDS_RANK_X_IN_SEASON_Y',[], {rank: rankedBattlesStats.rank - 1, season: tr(rankedBattlesSeason.title)})"/>
						<bind name="class" value="'$FontColorBlueish'"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<styleClass value="$MouseDisable"/>
				<style>
					<width value="100%"/>
					<marginBottom value="6px"/>
					<marginTop value="-8px"/>
				</style>
				<styleClass value="$MouseDisable"/>
				<block>
					<bind name="visible" value="rankedBattlesSeason.active"/>
					<style>
						<flow value="htile"/>
						<align value="center"/>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'RankStars'; {_rankId: rankedBattlesStats.rank, _size: 'small'}"/>
				</block>
				<block type="text">
					<bind name="visible" value="rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER"/>
					<style>
						<maxWidth value="230"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$TextSecondary"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<text value="IDS_RANK_BATTLES_SEASON_IS_NOT_ACTIVE"/>
				</block>
				<block>
					<bind name="visible" value="rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_NOT_STARTED"/>
					<bind name="countdown" value="rankedBattlesSeason.startTime; 'seasonTimeStart'; 'HIGHEST'; ''; 'ACC'"/>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextSecondary"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<style>
							<maxWidth value="230"/>
							<textAlign value="center"/>
						</style>
						<bind name="pureText" value="tr('IDS_SEASON_STARTS_IN') + ' ' + seasonTimeStart"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="PlayerInfotipItemAccount">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="watchDH" value="'premiumAccountTimeStr';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.premiumTimeStr"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="action" value="'buttonClick'; 'changeInset'; { inset: LobbyConstants.PLAYER_PROFILE, page: LobbyConstants.PLAYER_PROFILE_ACCOUNT }"/>
		<bind name="dispatch" value="'buttonClick'; 'Tooltip.Close'; {}"/>
		<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_GO_TO_ACCOUNT'}"/>
		<block className="dock_submenu_item" type="native">
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$MouseDisable"/>
				<style>
					<width value="100%"/>
					<marginLeft value="-3px"/>
					<marginBottom value="6px"/>
				</style>
				<block className="icons_account_level_outer" type="native">
					<bind name="gotoAndStop!" value="accountLevelInfo.outerClipFrame"/>
					<style>
						<width value="70px"/>
						<height value="70px"/>
					</style>
					<block type="text">
						<style>
							<marginTop value="17px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextAccentBold"/>
						<bind name="text" value="format(accountLevelInfo.accountLevel, -1)"/>
						<bind name="name" value="'currentLevel_tooltip'"/>
					</block>
				</block>
				<block>
					<style>
						<marginLeft value="-5px"/>
						<marginTop value="8px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderWhite"/>
						<style>
							<maxWidth value="158"/>
						</style>
						<bind name="name" value="'playerName_tooltip'"/>
						<bind name="text" value="accountLevelInfo.playerName"/>
						<bind name="class" value="isPremiumAccount ? '$FontColorGold' : '$FontColorWhite'"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="class" value="accountLevelInfo.abuseStatus == AbuseStatus.CONFIRMED ? '$FontColorCompareNegative' : accountLevelInfo.abuseStatus == AbuseStatus.SUSPECT ? '$FontColorTeamkiller' : '$None'"/>
					</block>
					<block type="text">
						<style>
							<marginTop value="-4px"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="text" value="tr(isPremiumAccount ? 'IDS_ACCOUNT_PREMIUM' : 'IDS_ACCOUNT_DEFAULT') + ' ' +
								(isPremiumAccount ? premiumAccountTimeStr : '')"/>
						<bind name="class" value="isPremiumAccount ? '$FontColorGold' : '$FontColorBlueish'"/>
					</block>
					<block>
						<bind name="visible" value="(accountLevelInfo.accountLevel != accountLevelInfo.maxLevelEnabled)"/>
						<style>
							<marginTop value="4px"/>
						</style>
						<block className="indicator_progress_bar_yellow" type="native">
							<bind name="value" value="((accountLevelInfo.currentProgress - accountLevelInfo.thisLevelProgress) / (accountLevelInfo.nextLevelProgress - accountLevelInfo.thisLevelProgress))*10"/>
							<style>
								<width value="168px"/>
							</style>
						</block>
					</block>
					<block>
						<bind name="visible" value="(accountLevelInfo.accountLevel != accountLevelInfo.maxLevelEnabled)"/>
						<style>
							<marginTop value="2px"/>
							<marginBottom value="4px"/>
						</style>
						<block type="text">
							<styleClass value="$TextSecondary"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="name" value="'currentProgress_tooltip'"/>
							<bind name="text" value="(format(accountLevelInfo.currentProgress - accountLevelInfo.thisLevelProgress, -1)) + ' / ' + (format(accountLevelInfo.nextLevelProgress - accountLevelInfo.thisLevelProgress, -1))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="AccountInfotip">
		<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)"/>
		<block>
			<style>
				<position value="absolute"/>
				<width value="100%"/>
				<height value="100%"/>
				<marginLeft value="13px"/>
				<marginRight value="13px"/>
				<marginBottom value="18px"/>
				<marginTop value="9px"/>
			</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>
			<block className="dock_panel" type="native">
				<style>
					<width value="270px"/>
				</style>
				<block className="dock_panel_pin" type="native">
					<style>
						<position value="absolute"/>
						<top value="0px"/>
						<left value="47%"/>
					</style>
				</block>
				<block>
					<style>
						<marginTop value="10px"/>
						<marginBottom value="15px"/>
						<width value="100%"/>
					</style>
					<block className="SelectAccountRenderer">
						<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
						<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
						<bind name="watchDH" value="'canBuyPremium';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.canBuyPremium"/>
						<bind name="watchDH" value="'isSyncedWithWallet'; ['resourceEntity.accountResource.evChangedIsSyncedWithWallet']; resourceEntity.accountResource.isSyncedWithWallet"/>
						<bind name="watchDH" value="'walletAvailable'; ['resourceEntity.accountResource.evChangedWalletStatus']; resourceEntity.accountResource.walletStatus"/>
						<bind name="watch" value="'showWGWalletWarning'; ((isSyncedWithWallet == false) || (walletAvailable == false))"/>
						<bind name="watch" value="'playerInfotipItem'; rankedBattlesStats.participated &amp;&amp; !(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) ? 0 : 1"/>
						<style>
							<width value="240px"/>
							<marginLeft value="15px"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<bind name="child" value="playerInfotipItem; {id: rankedBattlesStats.rank, _playerName: accountLevelInfo.playerName}; 'PlayerInfotipItemRank'; 'PlayerInfotipItemAccount'"/>
						</block>
						<block className="divider_h" type="native">
							<style>
								<width value="100%"/>
								<height value="3px"/>
							</style>
						</block>
						<block>
							<block>
								<bind name="visible" value="!(canBuyPremium)"/>
								<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_TOOLTIP_BUY_PREMIUM_AMMOUNT_EXCEEDS_LIMIT', tooltipSubText: 'IDS_TOOLTIP_BUY_PREMIUM_AVAILABLE_ON_SITE' }"/>
								<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_BUY_PREMIUM_ACCOUNT', _icon: 'premium', _external: true}"/>
								<bind name="name" value="'buttonBuyPremium'"/>
								<bind name="action" value="'click'; 'gotoUrlByIdent'; {ident: URL.BUY_PREM}"/>
							</block>
							<block>
								<bind name="visible" value="canBuyPremium"/>
								<block>
									<style>
										<backgroundColor value="0x01000000"/>
									</style>
									<bind name="style" value="'alpha'; showWGWalletWarning ? 0.5 : 1"/>
									<bind name="name" value="'buttonShowPremium'"/>
									<bind name="input"/>
									<bind name="tooltip" value="'SubTextTooltip'; {	tooltipText: 'IDS_TOOLTIP_BUY_PREMIUM_ACCOUNT',
													tooltipSubText: 'IDS_HINT_PREM_GET_MORE_CREDITS_AND_EXP'}"/>
									<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_BUY_PREMIUM_ACCOUNT', _icon: 'premium', _external: false}"/>
								</block>
								<block>
									<styleClass value="$FullsizeAbsolute"/>
									<bind name="instance" value="'WGWalletServiceStatus'; showWGWalletWarning ? {_walletAvailable: walletAvailable, _isSyncedWithWallet: isSyncedWithWallet } : null"/>
								</block>
							</block>
						</block>
						<block>
							<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_EXCHANGE_GOLD'}"/>
							<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_EXCHANGE_GOLD', _icon: 'change_gold', _external: false}"/>
							<bind name="name" value="'buttonExchangeGold'"/>
							<bind name="input"/>
						</block>
						<block>
							<bind name="feature" value="5; 'rollOver'"/>
							<bind name="visible" value="feature_5 != 'locked'"/>
							<bind name="name" value="'buttonConvertExp'"/>
							<bind name="action" value="'click'; 'xpFreeExpWindow'"/>
							<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_CONVERT_EXP'}"/>
							<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_CONVERT_EXP', _icon: 'convert_gold', _external: false}"/>
						</block>
						<block>
							<bind name="visible" value="realmConstants.premshopUIAvailable"/>
							<bind name="request" value="'click'; 'webBrowser'; {url: URL.SHOP_IN_GAME}"/>
							<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_PREMSHOP', tooltipSubText: 'IDS_TOOLTIP_PREMSHOP'}"/>
							<block>
								<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_PREMSHOP')), _icon: 'premshop', _external: false }"/>
							</block>
						</block>
						<block>
							<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
							<bind name="watchDH" value="'isSteamClient'; ['loginEntity.loginData.evUpdate']; loginEntity.loginData.isSteam"/>
							<bind name="name" value="'buttonBuyGold'"/>
							<bind name="action" value="'click'; isSteamClient == true ? null : 'gotoUrlByIdent'; {ident: URL.BUY_GOLD}"/>
							<bind name="request" value="'click'; isSteamClient == true ? 'webBrowser' : null; {url: URL.BUY_GOLD_IN_GAME}"/>
							<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_BUY_GOLD_LC', tooltipSubText: 'IDS_HINT_REDIRECT_TO_STORE'}"/>
							<bind name="instance" value="'AccountInfotipItem'; { _text: 'IDS_BUY_GOLD', _icon: 'buy_gold', _external: !(isSteamClient)}"/>
						</block>
						<block>
							<bind name="visible" value="accountLevelInfo.accountLevel &gt;= 3"/>
							<bind name="name" value="'buttonPlaytogether'"/>
							<bind name="request" value="'click'; 'webBrowser'; {url: URL.PLAYTOGETHER_WEBSITE}"/>
							<bind name="collectionDH" value="CC.userTask; 'userTaskCollection'"/>
							<bind name="entityDH" value="'userTaskEntity'; userTaskCollection[0].id"/>
							<bind name="watchDH" value="'currentUserTaskFlag'; ['userTaskEntity.userTask.evFlagChanged']; userTaskEntity.userTask.flag"/>
							<bind name="action" value="'rollOver'; 'ServerUIDataUSS.setUserTaskExecuted'; { taskId: UserTasksFlags.CONTROL_SEEN_PLAYTOGETHER }"/>
							<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_INVITE_FRIEND', tooltipSubText: 'IDS_HINT_INVITE_FRIEND_EXTERNAL'}"/>
							<block>
								<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_INVITE_FRIEND')), _icon: 'invite_friend', _external: false}"/>
							</block>
							<block className="icon_sticker_new" type="native">
								<bind name="fade" value="(currentUserTaskFlag &amp; UserTasksFlags.CONTROL_SEEN_PLAYTOGETHER) == 0; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
								<style>
									<hitTest value="false"/>
									<position value="absolute"/>
									<marginTop value="3px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
							<bind name="watchDH" value="'selfPlayerDbId'; []; selfPlayerEntity.accountSimple.dbId"/>
							<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="visible" value="!(selfPlayerEntity.clanman)"/>
							<bind name="request" value="'click'; 'webBrowser'; {url: 'clansInGame'}"/>
							<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_CLANS', tooltipSubText: 'IDS_HINT_CLANS'}"/>
							<block>
								<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_CLANS')), _icon: 'clans', _external: false }"/>
							</block>
						</block>
						<block>
							<bind name="feature" value="23; 'rollOver'"/>
							<bind name="visible" value="feature_23 != 'locked'"/>
							<bind name="name" value="'buttonWarehouse'"/>
							<bind name="request" value="'click'; 'webBrowser'; {url: URL.WAREHOUSE_IN_GAME}"/>
							<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_WAREHOUSE', tooltipSubText: 'IDS_HINT_WAREHOUSE'}"/>
							<block>
								<bind name="instance" value="'AccountInfotipItem'; { _text: toUpperCase(tr('IDS_WAREHOUSE')), _icon: 'warehouse', _external: false }"/>
							</block>
							<block className="icon_sticker_new" type="native">
								<bind name="fade" value="feature_23 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
								<style>
									<hitTest value="false"/>
									<position value="absolute"/>
									<marginTop value="3px"/>
								</style>
							</block>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="ShipTitleWithIconAndLevelWithDenyReason">
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; _shipID ? _shipID : shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; _shipID ? _shipID : 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"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<block>
			<bind name="visible" value="isReady"/>
			<block>
				<style>
					<marginBottom value="6px"/>
				</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 className="icon_ship" type="native">
					<bind name="style" value="'marginLeft'; upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial ? 5 : 2"/>
					<styleClass value="$MouseDisable"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="6px"/>
					</style>
					<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial 	? shipInfo.subtype + '_P'
																				: shipInfo.subtype"/>
				</block>
				<block>
					<style>
						<marginLeft value="3px"/>
					</style>
					<block type="text">
						<styleClass value="$FontShipnameWhite"/>
						<bind name="class" value="'$LetterSpacingSmall'"/>
						<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>
				<bind name="visible" value="_battleType == BattleTypes.RANKED_BATTLE &amp;&amp; rankedBattlesSeason.denyReason"/>
				<style>
					<width value="100%"/>
					<marginTop value="-6px"/>
					<marginBottom value="6px"/>
				</style>
				<bind name="instance" value="'RankBattleNotAvailableReason'; rankedBattlesSeason.denyReason ? { _maxWidth: 224} : null"/>
			</block>
		</block>
	</block>
	<block className="RankBattleNotAvailableReason">
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; BattleTypes.RANKED_BATTLE"/>
		<bind name="watchDH" value="'battleTypeDenyReasons'; ['battleTypeEntity.battleType.evDisableReasonChanged']; battleTypeEntity.battleType.battleTypeReasons"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="countdown" value="rankedBattlesSeason.startTime; 'seasonTimeStart'; 'HIGHEST'; ''; 'ACC'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  rankedBattlesStats.rank; 'curRankInfo'"/>
		<style>
			<hitTest value="false"/>
		</style>
		<bind name="watch" value="'reasonText'; ((battleTypeDenyReasons[0] == 'IDS_RANK_BATTLES_SEASON_IS_NOT_ACTIVE_SEASON_STARTS_IN')	?	(tr(battleTypeDenyReasons[0]) + ' ' + seasonTimeStart)
																														:	battleTypeDenyReasons[0])"/>
		<bind name="instance" value="'BattletypeDenyReason'; (battleTypeDenyReasons.length &gt; 0)	? { _neutral: false,
																					_reasonText: reasonText,
																					_maxWidth: _maxWidth}
																				: { _neutral: true,
																					_reasonText: curRankInfo.allowedTheirsShipsDescription,
																					_maxWidth: _maxWidth}"/>
	</block>
	<block className="IconRankSmall">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="27px"/>
				<height value="27px"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + '../ranks/icons/icon_rank_small_' + (_rankId - 1) + '.png'"/>
		</block>
		<block type="text">
			<style>
				<marginLeft value="-3px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextSecondaryBold"/>
			<bind name="class" value="'$FontSizeNano'"/>
			<bind name="text" value="_rankId &gt; 1 ? _rankId - 1 : ''"/>
		</block>
	</block>
	<block className="RankStars">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<bind name="tooltip" value="'RankStarTooltip'; !(rankInfo.starLossPlace == 0 &amp;&amp; rankInfo.starEarnPlace == 0) ? {_rankId: _rankId} : null"/>
		<bind name="style" value="'width'; _noWidth ? 'auto' : '100%'"/>
		<style>
			<flow value="htile"/>
			<align value="center"/>
		</style>
		<bind name="repeat" value="rankInfo.starsToNext; (_size ? 'RankStarIconSmall' : 'RankStarIcon'); {_starState: (rankedBattlesStats.rank &lt; rankInfo.id)	? 'earned'
																																				: (rankedBattlesStats.rank &gt; rankInfo.id)	? 'not_earned'
																																															: 'unknown', _size: _size}"/>
	</block>
	<block className="TotalEarnedStars">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<flow value="htile"/>
				<align value="center"/>
			</style>
			<bind name="repeat" value="_starsCount; 'RankStarIconSmall'; {_starState: 'earned'}"/>
		</block>
	</block>
	<block className="RankStarIcon">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<block className="icon_rank_star" type="native">
			<style>
				<marginLeft value="5px"/>
				<marginRight value="5px"/>
			</style>
			<bind name="gotoAndStop!" value="(_starState != 'unknown')	? _starState
														: ( $index + 1 &lt;= rankedBattlesStats.stars)	|| (rankedBattlesStats.rank == 2) ? 'earned'
																									: 'not_earned'"/>
		</block>
	</block>
	<block className="RankStarIconSmall">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<block className="icon_rank_star_small" type="native">
			<style>
				<marginLeft value="2px"/>
				<marginRight value="2px"/>
				<marginTop value="1px"/>
				<marginBottom value="1px"/>
			</style>
			<bind name="style" value="'width'; _size == 'small' ? '27px' : 'auto'"/>
			<bind name="style" value="'height'; _size == 'small' ? '27px' : 'auto'"/>
			<bind name="gotoAndStop!" value="(_starState != 'unknown')	? _starState
														: ( $index + 1 &lt;= rankedBattlesStats.stars)	|| (rankedBattlesStats.rank == 2) ? 'earned'
																									: 'not_earned'"/>
		</block>
	</block>
	<block className="RankStarLostNotice">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<bind name="visible" value="rankInfo.starLossPlace != 0"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="icon_star_earn_condition_small" type="native">
				<style>
					<marginLeft value="-2px"/>
				</style>
				<bind name="gotoAndStop!" value="2"/>
			</block>
			<bind name="watch" value="'additionalCondition'; rankInfo.starLossPlace == 2 ? 'IDS_RANKED_BATTLE_STAR_LOSS_PLACE_CONDITION' :
											rankInfo.starLossPlace &gt; 2	? subst('IDS_RANKED_BATTLE_STAR_LOSS_PLACE_RANGE_CONDITION', [], {starLossPlace: rankInfo.starLossPlace})
																		: null"/>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="1px"/>
				</style>
				<block type="text">
					<style>
						<maxWidth value="228"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<bind name="text" value="rankInfo.lossCondition"/>
				</block>
				<block type="text">
					<bind name="visible" value="additionalCondition != null"/>
					<style>
						<maxWidth value="228"/>
						<marginTop value="-6px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="additionalCondition"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RankStarEarnCondition">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="icon_star_earn_condition_small" type="native">
				<style>
					<marginLeft value="-2px"/>
				</style>
				<bind name="gotoAndStop!" value="1"/>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="1px"/>
				</style>
				<block type="text">
					<style>
						<maxWidth value="228"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<bind name="text" value="rankInfo.earnCondition"/>
				</block>
				<block type="text">
					<bind name="visible" value="rankInfo.starLossPlace == 0"/>
					<style>
						<maxWidth value="228"/>
						<marginTop value="-6px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<text value="IDS_YOU_WILL_NOT_LOSE_STAR"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RankStarTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="6px"/>
				</style>
				<bind name="instance" value="'RankStarEarnCondition'; {_rankId: _rankId}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'RankStarLostNotice'; {_rankId: _rankId}"/>
			</block>
		</block>
	</block>
	<block className="PlayerRankIcon">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<block className="icons_rank_outer" type="native">
			<bind name="gotoAndStop!" value="rankInfo.id &lt;= 2 ? 'top'
											: rankInfo.leagueId == 1 ? 'big' 
											: rankInfo.leagueId == 2 ? 'medium' : 'small'"/>
			<bind name="style" value="'width'; _small ? '70px' : '98px'"/>
			<bind name="style" value="'height'; _small ? '70px' : '98px'"/>
			<block>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<bind name="style" value="'width'; _small ? '27px' : '35px'"/>
				<bind name="style" value="'height'; _small ? '27px' : '35px'"/>
				<bind name="style" value="'top'; _small ? '23px' : '32px'"/>
				<bind name="style" value="'backgroundImage';  _small ? 'url:' + '../ranks/icons/icon_rank_small_' + (rankInfo.id - 1) + '.png' : 'url:' + '../ranks/icons/icon_rank_big_' + (rankInfo.id - 1) + '.png'"/>
			</block>
		</block>
	</block>
	<block className="PlayerRankIconBig">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<block className="icons_rank_outer_big" type="native">
			<style>
				<width value="146px"/>
				<height value="146px"/>
			</style>
			<bind name="gotoAndStop!" value="rankInfo.id &lt;= 2 ? 'top'
											: rankInfo.leagueId == 1 ? 'big' 
											: rankInfo.leagueId == 2 ? 'medium' : 'small'"/>
			<block>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<style>
					<top value="45px"/>
					<width value="54px"/>
					<height value="54px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + '../ranks/icons/icon_rank_big_' + (rankInfo.id - 1) + '.png'"/>
			</block>
		</block>
	</block>
	<block className="InformerWindow">
		<styleClass value="$MiddleAligned"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'informer'"/>
		<bind name="instance" value="'InformerMain'; (informer.visible == true) ? {informer: informer} : null"/>
	</block>
	<block className="InformerMain">
		<bind name="appear" value="'addedToStage'; 0.15; 2.0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<bind name="dispatch" value="'addedToStage'; 'timeoutEvent'; null ; false; 30"/>
		<bind name="action" value="'click'; 'hideInformer'; {force: true}"/>
		<bind name="action" value="'timeoutEvent'; 'hideInformer';{}"/>
		<style>
			<minHeight value="80"/>
		</style>
		<bind name="style" value="'width'; informer.type == 0 ?  '400px' : '508px'"/>
		<block className="notification_panel" type="native">
			<bind name="visible" value="informer.type == 0"/>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginBottom value="-1px"/>
				<marginTop value="-1px"/>
				<marginRight value="-1px"/>
				<marginLeft value="-1px"/>
			</style>
		</block>
		<block className="informer_panel" type="native">
			<bind name="visible" value="informer.type != 0"/>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginBottom value="-1px"/>
				<marginTop value="-1px"/>
				<marginRight value="-1px"/>
				<marginLeft value="-1px"/>
			</style>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="style" value="'backgroundImage'; informer.type == 0	? 'symbol:informer_default_bg' : 'symbol:informer_season_bg'"/>
			<style>
				<backgroundSize value="cover"/>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="9px"/>
				<marginBottom value="9px"/>
			</style>
			<bind name="child" value="informer.type; {informer: informer}; 'InformerHello'; 'InformerRank'; 'InformerSeasonStarted'"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<right value="5px"/>
				<top value="5px"/>
			</style>
			<block className="button_close" type="native">
				<params>
					<param name="focusable" value="false"/>
				</params>
			</block>
		</block>
	</block>
	<block className="InformerRank">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<block>
			<block type="text">
				<style>
					<maxWidth value="490"/>
					<textAlign value="center"/>
				</style>
				<styleClass value="$TextLargeHeader"/>
				<styleClass value="$MiddleAligned"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="text" value="tr('IDS_HELLO') + ' ' + accountLevelInfo.playerName"/>
			</block>
			<block>
				<bind name="visible" value="rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_NOT_STARTED"/>
				<bind name="countdown" value="rankedBattlesSeason.startTime; 'seasonTimeStart'; 'HIGHEST,WITH_DAYS'; 'timeoutEvent'"/>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<style>
						<maxWidth value="490"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextLargeHeader"/>
					<bind name="pureText" value="tr('IDS_SEASON_STARTS_IN') + ' ' + seasonTimeStart"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="rankedBattlesSeason.active"/>
				<bind name="countdown" value="rankedBattlesSeason.finishTime; 'seasonTimeEnd'; 'HIGHEST,WITH_DAYS'; 'timeoutEvent'"/>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<style>
						<maxWidth value="490"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextLargeHeader"/>
					<bind name="pureText" value="tr('IDS_TILL_SEASON_ENDS') + ' ' + seasonTimeEnd"/>
				</block>
			</block>
		</block>
	</block>
	<block className="InformerSeasonStarted">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<style>
					<maxWidth value="490"/>
					<textAlign value="center"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextLargeHeader"/>
				<bind name="text" value="informer.data.message"/>
			</block>
		</block>
	</block>
	<block className="InformerHello">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="15px"/>
			</style>
			<block type="text">
				<style>
					<maxWidth value="390"/>
					<textAlign value="center"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextLargeHeader"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="text" value="tr('IDS_HELLO') + ' ' + accountLevelInfo.playerName"/>
			</block>
		</block>
	</block>
	<block className="NationFlagsBig">
		<style>
			<backgroundStretchY value="true"/>
			<backgroundStretchX value="true"/>
		</style>
		<bind name="style" value="'width'; _width ? _width : '694px' "/>
		<bind name="style" value="'height'; _height ? _height : '426px' "/>
		<bind name="style" value="'alpha'; _alpha ? _alpha : '1' "/>
		<bind name="style" value="'backgroundImage'; 'url:../nation_flags/big/flag_' + shipCountry + '.png'"/>
	</block>
	<block className="NationFlagsSmall">
		<style>
			<backgroundStretchY value="true"/>
			<backgroundStretchX value="true"/>
		</style>
		<bind name="style" value="'width'; _width ? _width : '117px' "/>
		<bind name="style" value="'height'; _height ? _height : '72px' "/>
		<bind name="style" value="'alpha'; _alpha ? _alpha : '1' "/>
		<bind name="style" value="'backgroundImage'; 'url:../nation_flags/small/flag_' + shipCountry + '.png'"/>
	</block>
	<block className="NationFlagsTiny">
		<style>
			<backgroundStretchY value="true"/>
			<backgroundStretchX value="true"/>
		</style>
		<bind name="style" value="'width'; _width ? _width : '33px' "/>
		<bind name="style" value="'height'; _height ? _height : '21px' "/>
		<bind name="style" value="'alpha'; _alpha ? _alpha : '1' "/>
		<bind name="style" value="'backgroundImage'; 'url:../nation_flags/tiny/flag_' + shipCountry + '.png'"/>
	</block>
	<block className="InformerLogNotificationElement">
		<bind name="appear" value="'addedToStage'; 0.2; 0; {alpha: 0, top: 15}; {alpha: 1, top: 0}; 1"/>
		<bind name="appear" value="'evHideMessage'; 0.2; 0; {alpha: 1, top: 0}; {alpha: 0, top: -15}; 1"/>
		<bind name="handleEventDH" value="'$dataRef.ref.show.evHide'; 'evHideMessage'"/>
		<bind name="dispatch" value="'click'; 'evHideMessage'"/>
		<bind name="dispatch" value="'evHideMessage'; 'evDelayedHide'; null; true; 0.15"/>
		<bind name="action" value="'evDelayedHide'; 'hideSystemMessage'; {id: $dataRef.ref.id}"/>
		<bind name="action" value="'removedFromStage'; 'hideSystemMessage'; {id: $dataRef.ref.id}"/>
		<bind name="instance" value="'InformerContainer' ; { data: $dataRef.ref.dataComponent.data.data}"/>
	</block>
	<block className="InformerContainer">
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<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_blurmap5_feather" 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>
			<styleClass value="$FullsizeAbsolute"/>
			<block className="notification_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<bind name="child" value="data.idInGroup; {data: data}; 'InformerClubBattlesPrimetime'; 'InformerServerRestart'"/>
		</block>
	</block>
	<block className="InformerClubBattlesPrimetime">
		<style>
			<flow value="horizontal"/>
			<height value="94px"/>
		</style>
		<bind name="timeFormat" value="data.timeToPrimeTime; 'HIGHEST'; 'timeToPrimeTime'; true"/>
		<bind name="watch" value="'message'; data.clubBattlesStage == 'soon' 	? subst('IDS_TILL_CLUB_BATTLES_START_IN', [], {timeLeft: timeToPrimeTime}) :
							data.clubBattlesStage == 'started'	? subst('IDS_TILL_CLUB_BATTLES_END_IN', [], {timeLeft: timeToPrimeTime}) :
							data.clubBattlesStage == 'finished'	? ('&lt;body&gt;'+tr('IDS_CLUB_BATTLES_ENDED')+'&lt;/body&gt;')
																: 'STAGE_UNKNOWN'"/>
		<block>
			<style>
				<position value="absolute"/>
				<height value="100%"/>
				<marginLeft value="8"/>
			</style>
			<block className="icon_battletypes" type="native">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<alpha value="0.45"/>
				</style>
				<bind name="gotoAndStop!" value="data.clubBattlesStage == 'finished' ? 'ClubBattle_disabled' : 'ClubBattle'"/>
			</block>
		</block>
		<block type="text">
			<style>
				<marginLeft value="38px"/>
				<marginRight value="38px"/>
				<textAlign value="center"/>
				<leading value="-1"/>
				<styleSheet value="h3
				{
					font-size: 25;
				}"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextLargeHeaderBold"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="text" value="message"/>
		</block>
		<block className="button_close" type="native">
			<style>
				<position value="absolute"/>
				<right value="12px"/>
				<top value="11px"/>
			</style>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_CLOSE'}"/>
		</block>
	</block>
	<block className="InformerServerRestart">
		<bind name="timeFormat" value="(data.timeLeft - data.timeNow); 'HIGHEST'; 'timeToRestart'; true"/>
		<bind name="watch" value="'messageTimeToRestart'; subst('&lt;body&gt;' + tr('IDS_SERVER_WILL_RESTART_DOCK') + '&lt;/body&gt;', [], {timeLeft: timeToRestart})"/>
		<bind name="watch" value="'messagetimeToRestartCount'; subst('&lt;body&gt;' + tr('IDS_SERVER_WILL_RESTART_DOCK')+ '&lt;/body&gt;', [], {timeLeft: timeToRestartCount})"/>
		<bind name="watch" value="'messageRestartServer'; subst('&lt;body&gt;' + tr('IDS_SERVER_RESTART_TIME_DOCK')+ '&lt;/body&gt;', [], {timeRestart: data.hoursToRestart})"/>
		<bind name="watch" value="'messageRestartServerCanceled'; '&lt;body&gt;' + ' &lt;h3&gt;' + tr('IDS_SERVER_RESTART_CANCEL') + ' &lt;h3&gt;' + '&lt;/body&gt;'"/>
		<bind name="countdown" value="data.timeLeft; 'timeToRestartCount'; 'mm:ss'"/>
		<style>
			<flow value="horizontal"/>
			<height value="140px"/>
			<width value="700px"/>
		</style>
		<block>
			<style>
				<position value="absolute"/>
				<height value="100%"/>
				<marginLeft value="8"/>
			</style>
			<block className="icon_warning_orange_huge" type="native">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<alpha value="0.45"/>
				</style>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<style>
					<textAlign value="center"/>
					<maxWidth value="620"/>
					<leading value="-1"/>
					<styleSheet value="h3
					{
						font-size: 25;
					}"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value=" data.timeLeft == 0 ?  messageRestartServerCanceled 
											: ((data.timeLeft - data.timeNow) &gt; 60) ? messageTimeToRestart 
											: messagetimeToRestartCount"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="6px"/>
				</style>
				<bind name="visible" value="data.hoursToRestart != ''"/>
				<block type="text">
					<style>
						<textAlign value="center"/>
						<maxWidth value="620"/>
						<leading value="-1"/>
						<styleSheet value="h3
						{
							font-size: 25;
						}"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="text" value="messageRestartServer"/>
				</block>
			</block>
		</block>
		<block className="button_close" type="native">
			<style>
				<position value="absolute"/>
				<right value="12px"/>
				<top value="11px"/>
			</style>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_CLOSE'}"/>
		</block>
	</block>
	<block className="CoachScreenBattleType">
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<bind name="var" value="{expectedActionDone: false}"/>
		<bind name="catch" value="'evChooseSomeBattleType'; {expectedActionDone: true}"/>
		<bind name="catch" value="'evShow'; {expectedActionDone: false}"/>
		<bind name="collectionDH" value="CC.battleType; 'selectedBattleTypes'; 'selected'"/>
		<bind name="entityDH" value="'battleTypeEntity'; selectedBattleTypes[0].id"/>
		<bind name="watch" value="'isRandomBattleSelected'; (battleTypeEntity.battleType.type == BattleTypes.RANDOM_BATTLE)"/>
		<bind name="dispatch" value="'isRandomBattleSelected' + varChanged; 'evHideCoachScreen'; null; 0; 0"/>
		<block>
			<style>
				<left value="50%"/>
				<marginLeft value="73px"/>
				<top value="4px"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<bind name="instance" value="'BattleTypeChooser'; {_fromDock: true}"/>
				<bind name="dispatch" value="'click'; 'evChooseSomeBattleType'"/>
				<block className="icon_mouse_big_left" type="native">
					<style>
						<position value="absolute"/>
						<right value="12px"/>
						<bottom value="-12px"/>
						<hitTest value="false"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<width value="420px"/>
					<top value="66px"/>
					<marginLeft value="-100px"/>
				</style>
				<block className="arrow_coach_green" type="native">
					<styleClass value="$MiddleAligned"/>
					<bind name="gotoAndStop!" value="'up'"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_random_battle.png', _headerText: 'IDS_COACH_BATTLETYPE_HEADER'}"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_BATTLETYPE_HINT_0"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_BATTLETYPE_HINT_1"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<text value="IDS_COACH_BATTLETYPE_HINT_2"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<position value="absolute"/>
				<width value="800px"/>
				<bottom value="15%"/>
			</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 className="button_default" type="native">
				<bind name="fade" value="expectedActionDone; expectedActionDone ? 0.15 : 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 1"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="18px"/>
				</style>
				<bind name="label" value="toUpperCase(tr('IDS_I_GOT_IT'))"/>
				<bind name="focus" value="1; false"/>
				<bind name="dispatch" value="'buttonClick'; 'evHideCoachScreen'"/>
			</block>
		</block>
	</block>
	<block className="CoachScreenHeader">
		<style>
			<flow value="horizontal"/>
			<height value="60px"/>
			<marginTop value="12px"/>
			<marginBottom value="12px"/>
		</style>
		<block>
			<style>
				<backgroundSize value="cover"/>
				<width value="60px"/>
				<height value="60px"/>
				<marginRight value="6px"/>
			</style>
			<bind name="style" value="'backgroundImage'; _iconUrl"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextAccentWhiteBold"/>
			<bind name="text" value="_headerText"/>
		</block>
	</block>
	<block className="CoachScreenResearch">
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<bind name="var" value="{expectedActionDone: false}"/>
		<bind name="transition" value="stageYmoduleTabBlock &gt; 0 &amp;&amp; stageXmoduleTabBlock &gt; 0; 0.05; {alpha: 0}; {alpha :1}"/>
		<block>
			<bind name="style" value="'top'; stageYmoduleTabBlock"/>
			<bind name="style" value="'left'; stageXmoduleTabBlock"/>
			<block className="tab_bar_bg" type="native">
				<style>
					<width value="146px"/>
					<height value="29px"/>
				</style>
				<block>
					<style>
						<marginLeft value="2px"/>
						<marginRight value="2px"/>
					</style>
					<block>
						<bind name="feature" value="'17'; 'rollOver'"/>
						<block className="MainTab">
							<block className="tab_bar_item" type="native">
								<bind name="name" value="'DockSubMenuItem' + 3"/>
								<style>
									<width value="143px"/>
									<height value="29px"/>
								</style>
								<bind name="selected" value="inset == 3 &amp;&amp; crewInset != 1"/>
								<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
								<bind name="action" value="'buttonClick'; 'changeInset'; {inset: 3}"/>
								<bind name="label" value="toUpperCase(tr('IDS_MODULES'))"/>
								<bind name="soundSet" value="'main_tab_' + 3"/>
							</block>
							<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_MODULES'}"/>
						</block>
						<bind name="dispatch" value="'click'; 'evHideCoachScreen'"/>
						<block>
							<style>
								<position value="absolute"/>
								<marginTop value="3px"/>
							</style>
							<block className="icon_sticker_new" type="native">
								<bind name="fade" value="feature_17 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
								<style>
									<hitTest value="false"/>
								</style>
							</block>
						</block>
						<block className="icon_mouse_big_left" type="native">
							<style>
								<position value="absolute"/>
								<right value="12px"/>
								<bottom value="-12px"/>
								<hitTest value="false"/>
							</style>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<width value="410px"/>
					<top value="50px"/>
					<marginLeft value="-130px"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block className="arrow_coach_green" type="native">
						<bind name="gotoAndStop!" value="'up'"/>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_modules.png', _headerText: 'IDS_COACH_RESEARCH_HEADER'}"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_RESEARCH_HINT_0"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_RESEARCH_HINT_1"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<text value="IDS_COACH_RESEARCH_HINT_2"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<position value="absolute"/>
				<width value="800px"/>
				<bottom value="15%"/>
			</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>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginBottom value="12px"/>
					<marginTop value="12px"/>
				</style>
				<block className="icon_sticker_new" type="native">
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$MouseDisable"/>
					<style>
						<marginRight value="3px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefaultTech"/>
					<text value="IDS_COACH_COMMON_HINT_STICKER_NEW"/>
				</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>
	</block>
	<block className="CoachScreenCrew">
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<height value="174px"/>
				<width value="312px"/>
				<right value="10px"/>
				<marginTop value="92px"/>
			</style>
			<block className="stat_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ShipInfoTabHeader'; playerShipInfo != null ? { _fromCrew: true, shipId: shipId } : null"/>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<marginTop value="-6px"/>
				</style>
				<block>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SHIP_EXPERIENCE_USAGE'}; 0"/>
					<bind name="instance" value="'CurrentXPLarge'; playerShipInfo != null ? { _exp: playerShipInfo.exp, _label: 'IDS_SHIP_EXPERIENCE' } : null"/>
				</block>
			</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>
				<bind name="dispatch" value="'click'; 'evHideCoachScreen'"/>
				<bind name="dispatch" value="'click'; 'evShowCrewToDock'"/>
				<bind name="instance" value="'ShipInfoCrewBlock'; {_crewId: playerShipInfo.crewId}"/>
			</block>
			<block className="icon_mouse_big_left" type="native">
				<style>
					<position value="absolute"/>
					<left value="10px"/>
					<bottom value="-12px"/>
					<hitTest value="false"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<right value="340px"/>
				<top value="200px"/>
				<position value="absolute"/>
			</style>
			<block className="arrow_coach_green" type="native">
				<bind name="gotoAndStop!" value="'right'"/>
			</block>
			<block>
				<style>
					<width value="410px"/>
					<position value="absolute"/>
					<right value="100px"/>
					<marginTop value="-15%"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_crew_perks.png', _headerText: 'IDS_COACH_CREW_HEADER'}"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_CREW_HINT_0"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_CREW_HINT_1"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_CREW_HINT_2"/>
				</block>
			</block>
		</block>
	</block>
	<block className="CoachScreenCamo">
		<bind name="action" value="'addedToStage'; 'changeInset'; { inset: LobbyConstants.SHIP_EXTERIOR }"/>
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<height value="270px"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginLeft value="81px"/>
					<marginTop value="134px"/>
				</style>
				<bind name="feature" value="16; ''"/>
				<bind name="style" value="'marginLeft'; feature_16 == 'locked' ? '81px' : '0px'"/>
				<block className="tab_bar_bg" type="native">
					<style>
						<height value="25px"/>
					</style>
					<block>
						<style>
							<marginLeft value="2px"/>
							<marginRight value="2px"/>
						</style>
						<bind name="dispatch" value="'click'; 'evHideCoachScreen'"/>
						<bind name="action" value="'click'; 'setCameraDefaultPosition'; {alias: 'camou'}"/>
						<bind name="instance" value="'MainTabSmallInstance'; { _label: 'IDS_CAMOUFLAGE', _tooltipIDS: 'IDS_TOOLTIP_CAMOUFLAGE', _width: 164, _action: 'changeInset', _actionParams: { inset: LobbyConstants.SHIP_EXTERIOR, page: LobbyConstants.SHIP_EXTERIOR_CAMOUFLAGE }, _name: 'camouflage' }"/>
					</block>
					<block className="icon_mouse_big_left" type="native">
						<style>
							<position value="absolute"/>
							<right value="12px"/>
							<top value="12px"/>
							<hitTest value="false"/>
						</style>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="12px"/>
					</style>
					<block className="arrow_coach_green" type="native">
						<style>
							<marginTop value="-10px"/>
						</style>
						<bind name="gotoAndStop!" value="'left'"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="410px"/>
					<marginLeft value="12px"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_camo.png', _headerText: 'IDS_COACH_CAMO_HEADER'}"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_CAMO_HINT_0"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_CAMO_HINT_1"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<text value="IDS_COACH_CAMO_HINT_2"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CoachScreenFlags">
		<bind name="action" value="'addedToStage'; 'changeInset'; { inset: LobbyConstants.SHIP_EXTERIOR }"/>
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<marginLeft value="332px"/>
				<marginTop value="134px"/>
			</style>
			<block className="tab_bar_bg" type="native">
				<style>
					<height value="25px"/>
				</style>
				<block>
					<style>
						<marginLeft value="2px"/>
						<marginRight value="2px"/>
					</style>
					<bind name="dispatch" value="'click'; 'evHideCoachScreen'"/>
					<bind name="action" value="'click'; 'setCameraDefaultPosition'; {alias: 'ensign'}"/>
					<bind name="instance" value="'MainTabSmallInstance'; { _label: 'IDS_FLAG', _tooltipIDS: 'IDS_TOOLTIP_ENSIGN', _width: 164, _action: 'changeInset', _actionParams: { inset: LobbyConstants.SHIP_EXTERIOR, page: LobbyConstants.SHIP_EXTERIOR_ENSIGN }, _name: 'ensign' }"/>
				</block>
				<block className="icon_mouse_big_left" type="native">
					<style>
						<position value="absolute"/>
						<right value="12px"/>
						<top value="12px"/>
						<hitTest value="false"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<marginTop value="170px"/>
				<marginLeft value="210px"/>
				<width value="410px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<block className="arrow_coach_green" type="native">
					<bind name="gotoAndStop!" value="'up'"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_flags.png', _headerText: 'IDS_COACH_FLAGS_HEADER'}"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_FLAGS_HINT_0"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="9px"/>
					</style>
					<text value="IDS_COACH_FLAGS_HINT_1"/>
				</block>
				<block type="text">
					<styleClass value="$TextLargeHeader"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<text value="IDS_COACH_FLAGS_HINT_2"/>
				</block>
			</block>
		</block>
	</block>
	<block className="CoachScreenSignals">
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<bind name="transition" value="stageYsignalsTabBlock &gt; 0 &amp;&amp; stageXsignalsTabBlock &gt; 0; 0.05; {alpha: 0}; {alpha :1}"/>
		<block>
			<bind name="style" value="'top'; stageYsignalsTabBlock"/>
			<bind name="style" value="'left'; stageXsignalsTabBlock"/>
			<block className="tab_bar_bg" type="native">
				<style>
					<width value="146px"/>
					<height value="29px"/>
				</style>
				<block>
					<style>
						<marginLeft value="2px"/>
						<marginRight value="2px"/>
					</style>
					<bind name="dispatch" value="'click'; 'evHideCoachScreen'"/>
					<bind name="action" value="'click'; 'setCameraDefaultPosition'; {alias: 'flag'}"/>
					<bind name="action" value="'click'; 'changeInset'; { inset: LobbyConstants.SHIP_EXTERIOR, page: LobbyConstants.SHIP_EXTERIOR_SIGNALS }"/>
					<block className="MainTab">
						<block className="tab_bar_item" type="native">
							<bind name="name" value="'DockSubMenuItem' + 'none'"/>
							<style>
								<width value="143px"/>
								<height value="29px"/>
							</style>
							<bind name="selected" value="inset == 'none' &amp;&amp; crewInset != 1"/>
							<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
							<bind name="action" value="'buttonClick'; 'changeInset'; {inset: 'none'}"/>
							<bind name="label" value="toUpperCase(tr('IDS_EXTERIOR'))"/>
							<bind name="soundSet" value="'main_tab_' + 'none'"/>
						</block>
						<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_EXTERIOR'}"/>
					</block>
				</block>
				<block className="icon_mouse_big_left" type="native">
					<style>
						<position value="absolute"/>
						<right value="12px"/>
						<top value="12px"/>
						<hitTest value="false"/>
					</style>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<position value="absolute"/>
					<width value="410px"/>
					<top value="50px"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block className="arrow_coach_green" type="native">
						<bind name="gotoAndStop!" value="'up'"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_signals.png', _headerText: 'IDS_COACH_SIGNALS_HEADER'}"/>
					</block>
					<block type="text">
						<styleClass value="$TextLargeHeader"/>
						<style>
							<width value="100%"/>
							<textAlign value="center"/>
							<marginBottom value="9px"/>
						</style>
						<text value="IDS_COACH_SIGNALS_HINT_0"/>
					</block>
					<block type="text">
						<styleClass value="$TextLargeHeader"/>
						<style>
							<width value="100%"/>
							<textAlign value="center"/>
							<marginBottom value="9px"/>
						</style>
						<text value="IDS_COACH_SIGNALS_HINT_1"/>
					</block>
					<block type="text">
						<styleClass value="$TextLargeHeader"/>
						<style>
							<width value="100%"/>
							<textAlign value="center"/>
						</style>
						<text value="IDS_COACH_SIGNALS_HINT_2"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="CoachScreenModernizations">
		<bind name="transition" value="stageYmodernizationsTabBlock &gt; 0 &amp;&amp; stageXmodernizationsTabBlock &gt; 0; 0.05; {alpha: 0}; {alpha :1}"/>
		<bind name="action" value="'addedToStage'; 'changeInset'; { inset: LobbyConstants.SHIP_MODULES }"/>
		<styleClass value="$Fullsize"/>
		<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 className="modal_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<bind name="style" value="'top'; stageYmodernizationsTabBlock"/>
			<bind name="style" value="'left'; stageXmodernizationsTabBlock"/>
			<block className="tab_bar_bg" type="native">
				<style>
					<height value="25px"/>
				</style>
				<block>
					<style>
						<marginLeft value="2px"/>
						<marginRight value="2px"/>
					</style>
					<bind name="dispatch" value="'click'; 'evHideCoachScreen'"/>
					<bind name="instance" value="'MainTabSmallInstance'; { _label: 'IDS_MODERNIZATION', _tooltipIDS: 'IDS_TOOLTIP_MODERNIZATION', _width: 164, _action: 'changeInset', _actionParams: { inset: LobbyConstants.SHIP_MODULES, page: LobbyConstants.SHIP_MODULES_MODERNIZATION }, _name: 'modernization' }"/>
				</block>
				<block className="icon_mouse_big_left" type="native">
					<style>
						<position value="absolute"/>
						<right value="12px"/>
						<top value="12px"/>
						<hitTest value="false"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="style" value="'top'; stageYmodernizationsTabBlock - 30"/>
			<bind name="style" value="'left'; stageXmodernizationsTabBlock + 212"/>
			<block className="arrow_coach_green" type="native">
				<bind name="gotoAndStop!" value="'left'"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<width value="410px"/>
			</style>
			<bind name="style" value="'top'; stageYmodernizationsTabBlock - 120"/>
			<bind name="style" value="'left'; stageXmodernizationsTabBlock + 300"/>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'CoachScreenHeader'; {_iconUrl: 'url:../coach_screens/icon_modernizations.png', _headerText: 'IDS_COACH_MODERNIZATIONS_HEADER'}"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeader"/>
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<marginBottom value="9px"/>
				</style>
				<text value="IDS_COACH_MODERNIZATIONS_HINT_0"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeader"/>
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<marginBottom value="9px"/>
				</style>
				<text value="IDS_COACH_MODERNIZATIONS_HINT_1"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeader"/>
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
				</style>
				<text value="IDS_COACH_MODERNIZATIONS_HINT_2"/>
			</block>
		</block>
	</block>
	<block className="ArmourDisplay">
		<bind name="primaryEntityDH" value="'armorPick'; CC.shipArmorPick; shipId; 'evUpdate'"/>
		<styleClass value="$Fullsize"/>
		<block>
			<style>
				<position value="absolute"/>
				<top value="23px"/>
				<left value="10px"/>
			</style>
			<bind name="stageSize"/>
			<bind name="top" value="(armorPick.shipArmorPick.y + 123 &gt; stageHeight) ? (armorPick.shipArmorPick.y - 123) : armorPick.shipArmorPick.y"/>
			<bind name="left" value="(armorPick.shipArmorPick.x + 314 &gt; stageWidth) ? (armorPick.shipArmorPick.x - 314) : armorPick.shipArmorPick.x"/>
			<bind name="visible" value="armorPick.shipArmorPick.matId &gt; 0"/>
			<bind name="instance" value="'ArmourTooltip'; armorPick.shipArmorPick.matId &gt; 0 ? { _thickness: armorPick.shipArmorPick.thickness, _armorName: tr('IDS_' + toUpperCase(armorPick.shipArmorPick.armorName))} : null"/>
		</block>
	</block>
	<block className="ArmourRangePicker">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="action" value="'rollOver'; 'ShipArmor.setArmorRangeVisible'; {rangeIdx:index, visible:true}"/>
		<bind name="action" value="'rollOut'; 'ShipArmor.setArmorRangeVisible'; {rangeIdx:index, visible:false}"/>
		<bind name="alpha" value="!enabled ? 0.85 : 1"/>
		<style>
			<width value="31px"/>
			<height value="12px"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="appear" value="'addedToStage'; 0.1; (3 - $index)*0.05*( $index &gt; 3 ? -1 : 1) + 0.15; {alpha:0, left: 5*(3-$index) }; {alpha: 1, left: 0}"/>
			<block>
				<bind name="tooltip" value="'MouseInstructionTooltip'; !enabled 	? {_multiParagraphArray: [{_paragraphText: 'IDS_SHIP_NO_ARMOUR_IN_RANGE'}], _maxWidth: 300}
																: {_multiParagraphArray: [{_paragraphText: tr('IDS_SHIP_ARMOUR_IN_RANGE') + ' ' + min + ' – ' + max + tr('IDS_MILLIMETER')}], _maxWidth: 300}"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="29px"/>
					<height value="10px"/>
				</style>
				<bind name="style" value="'backgroundColor'; 0xFF000000 + color"/>
				<bind name="transition" value="!(index == selected || (rollOver &amp;&amp; enabled)); 0.1; {alpha: 1.0, width: 31, height: 12}; {alpha: 0.8, width: 29, height: 10}"/>
			</block>
		</block>
	</block>
	<block className="ArmourModulePicker">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="watch" value="'selected'; (mask &amp; (1&lt;&lt;index)) != 0"/>
		<bind name="action" value="'click'; enabled ? 'ShipArmor.setShipPartVisible' : null; {index:index, visible:!selected}"/>
		<bind name="alpha" value="!enabled ? 0.5 : 1"/>
		<style>
			<width value="40px"/>
			<height value="40px"/>
			<marginLeft value="3px"/>
			<marginRight value="3px"/>
		</style>
		<bind name="tooltip" value="'MouseInstructionTooltip'; !enabled 	? {_multiParagraphArray: [{_paragraphText: 'IDS_NO_ARMOUR_' + type}], _mouseInstructions: null }
														: {_multiParagraphArray: null, _mouseInstructions: [{_type: 'left', _instructionText: (selected ? 'IDS_HIDE_ARMOUR_' : 'IDS_SHOW_ARMOUR_') + type}]}"/>
		<bind name="soundOn" value="'click'; 'press'; 'armour_pick_button'"/>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="appear" value="'addedToStage'; 0.1; (3 - $index)*0.05*( $index &gt; 3 ? -1 : 1) + 0.15; {alpha:0, left: 5*(-3+$index) }; {alpha: 1, left: 0}"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<backgroundImage value="symbol:armour_background"/>
					<alpha value="1.4"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="!selected"/>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="transition" value="rollOver; 0.15; {alpha: 0.3}; {alpha: enabled ? 0.7 : 0.3}"/>
				<bind name="style" value="'backgroundImage'; 'symbol:armour_' + toLowerCase(type) + '_up')"/>
			</block>
			<block>
				<bind name="visible" value="selected"/>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="transition" value="rollOver; 0.15; {alpha: 0.7}; {alpha: enabled ? 1 : 0.7}"/>
				<bind name="style" value="'backgroundImage'; 'symbol:armour_' + toLowerCase(type) + '_toggle')"/>
			</block>
		</block>
	</block>
	<block className="ArmourTooltip">
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		<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>
		<style>
			<width value="300px"/>
			<hitTest value="false"/>
		</style>
		<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="$TextHeaderWhiteBold"/>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="text" value="_armorName"/>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<style>
					<width value="100%"/>
				</style>
				<styleClass value="$TextHeaderWhite"/>
				<style>
					<styleSheet value="h3
					{
						font-size: 21;
						font-family: $WWSDefaultFontBold;
					}"/>
				</style>
				<bind name="text" value="'&lt;body&gt;' + subst('IDS_SHIP_ARMOUR_THICKNESS', [], {thickness: _thickness + ' ' + tr('IDS_MILLIMETER')}) '&lt;/body&gt;'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ArmourTooltipOptimizer">
		<style>
			<width value="300px"/>
		</style>
		<block type="text">
			<styleClass value="$TextHeaderWhiteBold"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="text" value="'0123456789 ' + tr('IDS_ALPHABET')"/>
		</block>
		<block type="text">
			<styleClass value="$TextHeaderWhite"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="text" value="tr('IDS_ALPHABET') + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
		</block>
	</block>
	<block className="ArmourDisplaySwitcher">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<styleClass value="$Fullsize"/>
		<bind name="action" value="'click'; dockDefaultValues.armourVisibility ? 'hideArmour' : 'showArmour'"/>
		<bind name="soundSet" value="'armour_button'"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: dockDefaultValues.armourVisibility ? 'IDS_INSTRUCTION_SHIP_ARMOUR_DEMO_OFF' : 'IDS_INSTRUCTION_SHIP_ARMOUR_DEMO_ON'}], _maxWidth: 250}"/>
		<block className="tab_bar_down" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-2px"/>
			</style>
			<bind name="transition" value="rollOver; 0.15; {alpha: 0}; {alpha: 1}"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="4px"/>
			</style>
			<bind name="soundOn" value="'mouseDown'; 'press'; 'default_button'"/>
			<block className="button_armour_switcher" type="native">
				<params>
					<param name="name" value="ButtonArmourDisplay"/>
				</params>
				<params>
					<param name="soundSet" value="none"/>
				</params>
				<bind name="selected" value="dockDefaultValues.armourVisibility"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="-1px"/>
				</style>
				<bind name="text" value="'IDS_ARMOUR_SCHEME'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ArmourPickerControls">
		<style>
			<width value="100%"/>
			<height value="110px"/>
		</style>
		<bind name="inoutAction" value="'ShipArmor.showArmor'; 'ShipArmor.hideArmor'; {outer: true}"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<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="primaryEntityDH" value="'armorPick'; CC.shipArmorPick; shipId; 'evUpdate'"/>
		<bind name="primaryEntityDH" value="'armorConfig'; CC.shipArmorConfig; shipId; 'evUpdate'"/>
		<bind name="primaryEntityDH" value="'armorParts'; CC.shipStructuralParts; shipId; 'evUpdate'"/>
		<block className="inner_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<styleClass value="$PxIndent"/>
			<style>
				<marginTop value="-2px"/>
				<alpha value="1.3"/>
			</style>
		</block>
		<bind name="watch" value="'canShowArmour'; 	shipInfoSlim.isDownloaded
									&amp;&amp; !(playerShipInfo.isLocked &amp;&amp; !(playerShipInfo.isInFormation))
									&amp;&amp; !(playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell)"/>
		<block>
			<bind name="visible" value="(shipInfo.group == 'event')"/>
			<bind name="transition" value="armorPick != undefined &amp;&amp; armorConfig != undefined; 0.15; {alpha: 0}; {alpha: 1}"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<block type="text">
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<multiline value="true"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="'IDS_SHIP_PARAM_ARMOR_NOT_AVAILABLE'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="shipInfoSlim.isDownloaded &amp;&amp; !(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell)"/>
			<bind name="watch" value="'showBusyIndicator'; armorPick == undefined &amp;&amp; armorConfig == undefined"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'BusyIndicator'; showBusyIndicator ? { _label: 'IDS_BUSY_LOADING_ARMOUR', _showBusyIndicator: showBusyIndicator } : null"/>
		</block>
		<block>
			<bind name="visible" value="(shipInfo.group != 'event')"/>
			<styleClass value="$Fullsize"/>
			<block>
				<bind name="visible" value="!(shipInfoSlim.isDownloaded) || (playerShipInfo != null &amp;&amp; ((playerShipInfo.isLocked &amp;&amp; !(playerShipInfo.isInFormation)) || playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell))"/>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<style>
						<width value="280px"/>
						<textAlign value="center"/>
					</style>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="!(shipInfoSlim.isDownloaded) 								? toUpperCase(tr('IDS_NOT_AVAILABLE_MESSAGE')) :
						playerShipInfo.isLocked &amp;&amp; !(playerShipInfo.isInFormation) 	? toUpperCase(tr('IDS_SHIP_IN_BATTLE')) :
						playerShipInfo.isNeedRepair || playerShipInfo.isNeedShell	? toUpperCase(tr('IDS_NEED_SERVICE'))
																					: ''"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="transition" value="armorPick != undefined &amp;&amp; armorConfig != undefined &amp;&amp; canShowArmour; 0.15; {alpha: 0}; {alpha: 1}"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="9px"/>
					</style>
					<bind name="repeat" value="armorParts.shipStructuralParts.parts; 'ArmourModulePicker'; {mask: armorPick.shipArmorPick.selectedPartsMask}; true"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="transition" value="armorPick != undefined &amp;&amp; armorConfig != undefined &amp;&amp; canShowArmour; 0.15; {alpha: 0}; {alpha: 1}"/>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="15px"/>
					</style>
					<block className="inner_panel" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<marginTop value="-2px"/>
							<marginBottom value="-2px"/>
							<marginLeft value="-2px"/>
							<marginRight value="-2px"/>
						</style>
						<block className="hint_panel" type="native">
							<styleClass value="$FullsizeAbsolute"/>
						</block>
					</block>
					<bind name="repeat" value="armorConfig.shipArmorConfig.armorRanges; 'ArmourRangePicker'; {selected:armorPick.shipArmorPick.rangeId}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="tooltip" value="'MouseInstructionTooltip'; {_multiParagraphArray: [{_paragraphText: 'IDS_SHIP_ARMOUR_WHOLE_RANGE'}], _maxWidth: 300}"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="visible" value="armorPick.shipArmorPick != null"/>
					<style>
						<marginTop value="3px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeader"/>
						<bind name="text" value="armorPick.shipArmorPick.thicknessMin + ' – ' + armorPick.shipArmorPick.thicknessMax + '' + tr('IDS_MILLIMETER')"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="PersonalProposalWindow">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountSlotsNum';	['resourceEntity.accountResource.evChangedSlotsNum'];	resourceEntity.accountResource.slotsNum"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource.credits"/>
		<bind name="watch" value="'curCurrencyResource'; priceEntity.priceComponent.currency == 'gold' ? accountGold : accountCredits"/>
		<bind name="collectionDH" value="CC.pRMPComponent; 'currentPRMP'"/>
		<bind name="entityDH" value="'prmpEntity'; data.id"/>
		<bind name="entityDH" value="'priceEntity'; prmpEntity.pRMPComponent.prices[0]"/>
		<bind name="watch" value="'isPRMPWithShip'; prmpEntity.pRMPComponent.rewards[0].type == 'Ship'"/>
		<bind name="watch" value="'isPRMPWithURL'; prmpEntity.pRMPComponent.data.url ? true : false"/>
		<bind name="watch" value="'haveFreeSlots'; accountSlotsNum &gt; 0"/>
		<bind name="watch" value="'isExchangeIngame'; prmpEntity.pRMPComponent.rewards[0].type == 'Exchange' &amp;&amp; !(prmpEntity.pRMPComponent.data.url)"/>
		<bind name="watch" value="	'priceDeficit'; priceEntity.priceComponent.currency == 'money' 	||
					prmpEntity.pRMPComponent.rewards[0].type == 'Exchange'			? 0
																					: (priceEntity.priceComponent.finalPrice - curCurrencyResource)"/>
		<block>
			<style>
				<width value="460px"/>
			</style>
			<bind name="style" value="'hitTest'; isUserActionDone ? false : true"/>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block className="notification_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="style" value="'height'; prmpEntity.pRMPComponent.prmpType != PRMPTypes.CONTENT ? 'auto' : '12px'"/>
				<block type="text">
					<bind name="visible" value="prmpEntity.pRMPComponent.prmpType != PRMPTypes.CONTENT"/>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeaderWhiteBold"/>
					<style>
						<textAlign value="center"/>
						<styleSheet value="h3
					{
						color: #fecb66;
					}"/>
					</style>
					<bind name="text" value="subst('IDS_PRMP_FOR_YOU', [], {playerName: accountLevelInfo.playerName})"/>
				</block>
				<block className="button_close" type="native">
					<style>
						<position value="absolute"/>
						<right value="3px"/>
						<top value="3px"/>
					</style>
					<bind name="action" value="'buttonClick'; data.actionName; data.callbackData[1]"/>
					<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
					<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_REJECT'}"/>
				</block>
			</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="$FullsizeAbsolute"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="childParentScope" value="prmpEntity.pRMPComponent.prmpType; {}; 'PrmpIngame'; 'PrmpExternal'; 'PrmpContent'"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<position value="absolute"/>
						<bottom value="3px"/>
					</style>
					<bind name="countdown" value="prmpEntity.pRMPComponent.timeLeft; 'countdownText'; 'HIGHEST'; ''; ''"/>
					<block type="text">
						<style>
							<alpha value="0.7"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="prmpEntity.pRMPComponent.prmpType == PRMPTypes.CONTENT 	? subst('IDS_HINT_PRMP_CONTENT_LIFETIME', [], {timeLeft: countdownText})
																						: subst('IDS_HINT_PRMP_LIFETIME', [], {timeLeft: countdownText})"/>
					</block>
				</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>
			<block>
				<bind name="visible" value="prmpEntity.pRMPComponent.prmpType != PRMPTypes.CONTENT"/>
				<styleClass value="$InfoBlockIndent"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block>
						<bind name="visible" value="!(isPRMPWithShip &amp;&amp; !haveFreeSlots)"/>
						<bind name="style" value="'width'; isPRMPWithURL ? '200px' : '170px'"/>
						<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
						<bind name="watch" value="'buttonForPurchasesVisible';	(priceDeficit &lt;= 0) &amp;&amp;
																!(isExchangeIngame) &amp;&amp;
																(priceEntity.priceComponent != null || prmpEntity.pRMPComponent.rewards[0].type == 'Exchange')"/>
						<bind name="instance" value="'DefaultButtonCostMedium'; buttonForPurchasesVisible ?
																					{priceInfo: priceEntity.priceComponent,
																					_enabled: priceEntity.priceComponent,
																					_label: (priceEntity.priceComponent.finalPrice == 0) ? toUpperCase(tr('IDS_PRMP_RECEIVE')) : toUpperCase(tr('IDS_DO_PURCHASE')),
																					_showDiscountTag: true,
																					_action:  data.actionName,
																					_actionParams: data.callbackData[0],
																					_request: isPRMPWithURL ? 'gotoUrlByPRMP' : null,
																					_requestParams: {'url':prmpEntity.pRMPComponent.data.url, 'isIngameUrl':prmpEntity.pRMPComponent.data.isIngameUrl},
																					_isExternal: prmpEntity.pRMPComponent.data.url ? true : false}
																				: null"/>
						<bind name="instance" value="'DefaultButton'; isExchangeIngame || isPRMPWithURL ? {
																					_enabled: !isPRMPWithURL ? priceEntity.priceComponent : true,
																					_label: !isPRMPWithURL ? toUpperCase(tr('IDS_PRMP_RECEIVE')) : toUpperCase(tr('IDS_PRMP_GO_TO_PREM_SHOP')),
																					_action: data.actionName,
																					_actionParams: data.callbackData[0],
																					_request:  isPRMPWithURL ? 'gotoUrlByPRMP' : null,
																					_requestParams: {'url':prmpEntity.pRMPComponent.data.url, 'isIngameUrl':prmpEntity.pRMPComponent.data.isIngameUrl},
																					_isExternal: isPRMPWithURL }
																				: null"/>
						<bind name="action" value="'click'; isExchangeIngame ? (prmpEntity.pRMPComponent.rewards[0].subtype + 'Window')
															: null"/>
					</block>
					<block>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'PriceDeficit'; priceDeficit &gt; 0 ? { priceInfo: priceEntity.priceComponent, _deficit: priceDeficit} : null"/>
					</block>
					<block>
						<bind name="visible" value="isPRMPWithShip &amp;&amp; !haveFreeSlots"/>
						<styleClass value="$MiddleAligned"/>
						<block type="text">
							<styleClass value="$MiddleAligned"/>
							<styleClass value="$TextHeaderBigDefault"/>
							<bind name="class" value="'$FontColorUnready'"/>
							<style>
								<marginTop value="-4px"/>
							</style>
							<text value="IDS_NO_FREE_SLOTS"/>
						</block>
						<block type="text">
							<styleClass value="$MiddleAligned"/>
							<styleClass value="$TextDefault"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<style>
								<marginTop value="-4px"/>
							</style>
							<text value="IDS_PRMP_BUY_OR_RID_SLOTS"/>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="PrmpIngame">
		<style>
			<flow value="horizontal"/>
			<height value="160px"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block>
			<style>
				<width value="150px"/>
				<height value="150px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'RewardItem'; prmpEntity.pRMPComponent.rewards[0]; {}"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block type="text">
						<styleClass value="$TextHeaderBold"/>
						<style>
							<maxWidth value="130"/>
							<textAlign value="center"/>
							<leading value="-4"/>
						</style>
						<bind name="text" value="isPRMPWithShip 	? 'IDS_PRMP_ITEM_' + toUpperCase(tr(prmpEntity.pRMPComponent.rewards[0].type))
												: 'IDS_PRMP_ITEM_' + toUpperCase(tr(prmpEntity.pRMPComponent.rewards[0].subtype))"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="150px"/>
				<height value="130px"/>
			</style>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'PRMPDiscountText'; prmpEntity.pRMPComponent.rewards[0].type != 'Exchange' ? {priceEntity : priceEntity} : null"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'PRMPExchangeRatesText'; prmpEntity.pRMPComponent.rewards[0].type == 'Exchange'? {} : null"/>
			</block>
		</block>
		<block>
			<style>
				<width value="150px"/>
				<height value="130px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PRMPPriceTag'; prmpEntity.pRMPComponent.rewards[0].type != 'Exchange' ? {priceEntity : priceEntity} : null"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PRMPExchangeRatesPriceTag'; prmpEntity.pRMPComponent.rewards[0].type == 'Exchange' ? {prmpEntity: prmpEntity, priceEntity: priceEntity, subtype: prmpEntity.pRMPComponent.rewards[0].subtype} : null"/>
			</block>
		</block>
	</block>
	<block className="PrmpExternal">
		<style>
			<height value="160px"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block>
				<styleClass value="$MiddleAligned"/>
				<block className="icon_giftbox" type="native"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="5px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<text value="IDS_PRMP_GO_TO_PREM_SHOP_DESCR"/>
			</block>
		</block>
	</block>
	<block className="PrmpContent">
		<style>
			<marginTop value="18px"/>
			<marginBottom value="42px"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block type="text">
			<style>
				<width value="430px"/>
				<marginBottom value="12px"/>
				<textAlign value="center"/>
			</style>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="prmpEntity.pRMPComponent.data.text"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="action" value="'buttonClick'; data.actionName; data.callbackData[0]"/>
			<bind name="request" value="'buttonClick'; 'gotoUrlByPRMP'; {url: prmpEntity.pRMPComponent.data.url, isIngameUrl: prmpEntity.pRMPComponent.data.isIngameUrl}"/>
			<bind name="watch" value="'prmpChildType'; prmpEntity.pRMPComponent.data.contentType != null ? prmpEntity.pRMPComponent.data.contentType : 'empty'"/>
			<bind name="child" value="prmpChildType;
					{ _isExternal: prmpEntity.pRMPComponent.data.isIngameUrl == false };
					{	video: 'PrmpContentVideo',
						text: 'PrmpContentText',
						survey: 'PrmpContentSurvey',
						empty: 'EmptyItem'}"/>
		</block>
	</block>
	<block className="PrmpContentVideo">
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<hitTest value="false"/>
				<marginTop value="2px"/>
				<marginBottom value="2px"/>
				<marginLeft value="2px"/>
				<marginRight value="2px"/>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
				<backgroundImage value="url:../accountLevel/videoPreviews/video_preview_1.png"/>
			</style>
		</block>
		<block className="button_infopanel_no_label" type="native">
			<style>
				<width value="309px"/>
				<height value="174px"/>
			</style>
			<block>
				<style>
					<alpha value="0.9"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<hitTest value="false"/>
						<marginTop value="12px"/>
					</style>
					<block className="button_play" type="native">
						<bind name="gotoAndStop!" value="_big ? 'big' : 'small'"/>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<hitTest value="false"/>
						<marginTop value="12px"/>
					</style>
					<block type="text">
						<style>
							<textAlign value="center"/>
						</style>
						<bind name="class" value="_big ? '$TextAccentBold' : '$TextLargeHeaderBold'"/>
						<bind name="text" value="toUpperCase(tr('IDS_WATCH'))"/>
					</block>
				</block>
			</block>
			<block className="icon_out_grey" type="native">
				<bind name="visible" value="_isExternal == true"/>
				<style>
					<position value="absolute"/>
					<top value="4px"/>
					<right value="4px"/>
					<hitTest value="false"/>
				</style>
			</block>
		</block>
	</block>
	<block className="PrmpContentText">
		<block className="BannerButton">
			<block className="button_infopanel" type="native">
				<params>
					<param name="name" value="none"/>
				</params>
				<bind name="input"/>
				<bind name="label" value="toUpperCase(tr('IDS_READ'))"/>
			</block>
			<block className="icon_guide" type="native">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<position value="absolute"/>
					<left value="8px"/>
				</style>
			</block>
		</block>
		<block className="icon_out_grey" type="native">
			<bind name="visible" value="_isExternal == true"/>
			<style>
				<position value="absolute"/>
				<top value="4px"/>
				<right value="4px"/>
				<hitTest value="false"/>
			</style>
		</block>
	</block>
	<block className="PrmpContentSurvey">
		<block className="BannerButton">
			<block className="button_infopanel" type="native">
				<params>
					<param name="name" value="none"/>
				</params>
				<bind name="input"/>
				<bind name="label" value="toUpperCase(tr('IDS_GO_TO_SURVEY'))"/>
			</block>
			<block className="icon_guide" type="native">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<position value="absolute"/>
					<left value="8px"/>
				</style>
			</block>
		</block>
		<block className="icon_out_grey" type="native">
			<bind name="visible" value="_isExternal == true"/>
			<style>
				<position value="absolute"/>
				<top value="4px"/>
				<right value="4px"/>
				<hitTest value="false"/>
			</style>
		</block>
	</block>
	<block className="PRMPDiscountText">
		<block type="text">
			<style>
				<marginTop value="7px"/>
				<textAlign value="center"/>
				<leading value="-3"/>
				<styleSheet value="h3
			{
				font-size: 50;
			}"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextLargeHeaderBold"/>
			<bind name="text" value="subst('IDS_PRMP_DISCOUNT', [], {value: priceEntity.priceComponent.discountPercent, percent: '%'})"/>
		</block>
	</block>
	<block className="PRMPExchangeRatesText">
		<block type="text">
			<style>
				<maxWidth value="110"/>
				<textAlign value="center"/>
				<leading value="-4"/>
				<styleSheet value="h3
			{
				font-size: 35;
				font-family: $WWSDefaultFontBold;
			}"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeader"/>
			<text value="IDS_PRMP_YOUR_EXCHANGE_RATES"/>
		</block>
	</block>
	<block className="PRMPPriceTag">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + priceEntity.priceComponent.id; 'priceInfoSet'"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<block>
				<bind name="visible" value="priceEntity.priceComponent.finalPrice == 0"/>
				<block className="icon_discount" type="native">
					<bind name="gotoAndStop!" value="'large'"/>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="text" value="toUpperCase(tr('IDS_FOR_FREE'))"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="visible" value="priceEntity.priceComponent.finalPrice != 0"/>
				<bind name="instance" value="'PriceTag'; { priceInfo: priceEntity.priceComponent, _showDiscountTag: true, _large: true, _isExternal: false }"/>
			</block>
		</block>
		<block>
			<bind name="style" value="'marginLeft'; (priceEntity.priceComponent.finalPrice == 0) ? '-30%' : '-40%'"/>
			<style>
				<left value="50%"/>
			</style>
			<block>
				<style>
					<alpha value="0.6"/>
				</style>
				<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: priceEntity.priceComponent.basePrice, currency: priceEntity.priceComponent.currency }, _medium: true }"/>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<block className="icon_price_strikethrough" type="native">
					<style>
						<width value="110%"/>
						<height value="40%"/>
						<top value="60%"/>
						<marginTop value="-50%"/>
						<position value="absolute"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="PRMPExchangeRatesPriceTag">
		<bind name="child" value="prmpEntity.pRMPComponent.rewards[0].subtype; { priceEntity: priceEntity }; {	creditsGold: 'PRMPCreditsRate',
																								xpFreeExp:	'PRMPFreeExpRate',
																								goldMoney: 'PRMPGoldRate'
																							}"/>
	</block>
	<block className="PRMPCreditsRate">
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: 1, currency: 'gold'}, _large:true} "/>
		</block>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccent"/>
			<style>
				<marginTop value="-12px"/>
				<marginBottom value="-6px"/>
			</style>
			<text value="="/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceTag'; {priceInfo: priceEntity.priceComponent, _showDiscountTag:true, _customLabel: 'IDS_RATE', _large: true}"/>
		</block>
	</block>
	<block className="PRMPFreeExpRate">
		<block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PriceTag'; { priceInfo: priceEntity.priceComponent, _showDiscountTag: true, _large: true, _customLabel: 'IDS_RATE'} "/>
			</block>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextAccent"/>
				<text value="+"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: 1, currency: 'gold'}, _large: true} "/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccent"/>
			<style>
				<marginTop value="-6px"/>
				<marginBottom value="-6px"/>
			</style>
			<text value="="/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: priceEntity.priceComponent.finalPrice, currency: 'freexp'}, _large: true} "/>
		</block>
	</block>
	<block className="PRMPGoldRate">
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceTag'; {priceInfo: priceEntity.priceComponent, _showDiscountTag:true, _customLabel: 'IDS_RATE', _large: true}"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccent"/>
			<style>
				<marginTop value="-12px"/>
				<marginBottom value="-6px"/>
			</style>
			<text value="="/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: 100, currency: 'gold'}, _large:true} "/>
		</block>
	</block>
	<block className="VoiceChatOutgoingIcon">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'VoiceChatState'"/>
		<bind name="transition" value="VoiceChatState.outgoing; 0.15; {alpha: 0}; {alpha: 1}"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; VoiceChatState.outgoing ?	{	_multiParagraphArray:  [{_paragraphText: 'IDS_VOICE_CHAT_OUTGOING_STATE_HINT'}],
													_maxWidth: 250, _isInBattle: _isInBattle} : null"/>
		<block>
			<bind name="transition" value="_isSpeaking; 0.15; {alpha: 0.6}; {alpha: 1}"/>
			<block className="icon_voice_chat" type="native"/>
		</block>
	</block>
	<css name="$BattleTypeDeny">
		<width value="100%"/>
		<marginTop value="2px"/>
		<marginLeft value="8px"/>
	</css>
	<block className="StartBattleButtonBig">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="collectionDH" value="CC.ownShip; 'shipsInFormation'; 'shipsInFormation'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; selectedBattle.type"/>
		<bind name="watchDH" value="'fightButtonDenyReasons'; ['battleTypeEntity.battleType.evDisableReasonChanged']; battleTypeEntity.battleType.fightButtonReasons"/>
		<bind name="watch" value="'buttonEnabled'; ((fightButtonDenyReasons.length == 0) &amp;&amp; (operationsAccountLocked != true))"/>
		<style>
			<width value="146px"/>
			<height value="50px"/>
			<backgroundColor value="0x01000000"/>
		</style>
		<bind name="tooltip" value="'MultipleWarningsTooltip'; (fightButtonDenyReasons.length &gt; 0) ? {_warningsArr: fightButtonDenyReasons} : null"/>
		<block className="button_fight" type="native">
			<params>
				<param name="name" value="buttonStartBattle"/>
			</params>
			<bind name="label" value="toUpperCase(tr('IDS_START_BATTLE'))"/>
			<bind name="soundSet" value="'hard_button'"/>
			<bind name="action" value="'buttonClick'; 'onBattleButtonClick'; {}"/>
			<bind name="enabled" value="buttonEnabled"/>
			<bind name="tooltip" value="'StartBattleTooltip'; buttonEnabled	?	{_shipID: shipsInFormation.length &gt; 0	? shipsInFormation[0].ownShip.id
																										: shipId,
														_battleType: selectedBattle.type,
														_instructionType: 'left'}
													 : null"/>
		</block>
	</block>
	<block className="StartBattleButtonSmall">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="collectionDH" value="CC.ownShip; 'shipsInFormation'; 'shipsInFormation'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; selectedBattle.type"/>
		<bind name="watchDH" value="'fightButtonDenyReasons'; ['battleTypeEntity.battleType.evDisableReasonChanged']; battleTypeEntity.battleType.fightButtonReasons"/>
		<bind name="contains" value="_availableBattleTypes; selectedBattle.type == $item.type; 'isSelectedInBattles'; 0; 'selectedBattle'"/>
		<bind name="watch" value="'buttonEnabled'; ((fightButtonDenyReasons.length == 0) &amp;&amp; (operationsAccountLocked != true) &amp;&amp; isSelectedInBattles)"/>
		<bind name="tooltip" value="'MultipleWarningsTooltip'; (fightButtonDenyReasons.length &gt; 0) ? {_warningsArr: fightButtonDenyReasons} : null"/>
		<bind name="tooltip" value="'StartBattleTooltip'; buttonEnabled 	? {	_shipID: shipsInFormation.length &gt; 0	? shipsInFormation[0].ownShip.id
																									: shipId,
																					_battleType: selectedBattle.type,
																					_instructionType: 'left'}
												 								: null"/>
		<bind name="instance" value="'ButtonSpecial'; {	_enabled: buttonEnabled, 
										_action: 'onBattleButtonClick', 
										_actionParams: {},
										_name: 'buttonStartBattleSmall',
										_label: toUpperCase(tr('IDS_START_BATTLE'))
									}"/>
	</block>
	<block className="BattleTypeChooser">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; selectedBattle.type"/>
		<bind name="watchDH" value="'selected'; ['battleTypeEntity.battleType.evSelectionChanged']; battleTypeEntity.battleType.selected"/>
		<bind name="watchDH" value="'status'; ['battleTypeEntity.battleType.evStatusChanged']; battleTypeEntity.battleType.status"/>
		<bind name="watchDH" value="'description'; []; battleTypeEntity.battleType.description"/>
		<bind name="watchDH" value="'type'; []; battleTypeEntity.battleType.type"/>
		<bind name="watchDH" value="'label'; []; battleTypeEntity.battleType.label"/>
		<bind name="feature" value="3; ''"/>
		<bind name="feature" value="1; ''"/>
		<bind name="watch" value="'btnChooserEnable'; divisionData.isCommander || !(divisionData.divisionExist)"/>
		<bind name="tooltip" value="'BattletypeTooltip'; 	btnChooserEnable 	? {_battleType: type, _description: type == BattleTypes.INTRO_MISSION ? dockDefaultValues.introMissionDescription : description} : null"/>
		<bind name="tooltip" value="'SimpleWarningTooltip'; !(btnChooserEnable) 	? {_text: tr('IDS_STARTBATTLE_LOCK_REASON_NOT_COMMANDER_DIVISION')}
																: null"/>
		<style>
			<height value="43px"/>
			<width value="100%f"/>
		</style>
		<block className="button_dock" type="native">
			<bind name="tooltip" value="'BattletypeInfotip'; (btnChooserEnable &amp;&amp; !_fromDock) ? { _battleTypes: _battleTypes, _isInCoachPVP: showCoachScreen } : null; 6; null; 'battletypeInfotipIsVisible'"/>
			<bind name="request" value="'click'; (btnChooserEnable &amp;&amp; _fromDock) ? 'modalSelectBattleType' : null; {}"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<params>
				<param name="name" value="ButtonDock"/>
			</params>
			<bind name="enabled" value="btnChooserEnable"/>
			<bind name="selected" value="battletypeInfotipIsVisible"/>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<bind name="style" value="'alpha'; btnChooserEnable ? 1 : 0.7"/>
			<style>
				<flow value="horizontal"/>
				<height value="43px"/>
				<width value="100%f"/>
			</style>
			<block className="icon_battletypes_small" type="native">
				<style>
					<marginLeft value="4px"/>
					<marginTop value="2px"/>
					<hitTest value="false"/>
				</style>
				<bind name="gotoAndStop!" value="type == BattleTypes.RANKED_BATTLE	?	(status == 0)				?	'RankedBattle'	:
																		(status == 2)				?	'RankedBattle_disabled'
																																								: 'RankedBattle_inactive'
								: type == BattleTypes.CLUB_BATTLE	? 	(status == 0)				?	'ClubBattle'		:
																		(status == 2)				?	'ClubBattle_disabled'
																														: 	'ClubBattle_inactive'
								: type == BattleTypes.PVE_BATTLE	?	(status == 2)				?	'PVEBattle_disabled' :
																		(chosenDifficulty == 'hard')		?	'PVEBattle_hard'
																														:	'PVEBattle'
																	: type"/>
			</block>
			<block>
				<style>
					<marginLeft value="4px"/>
					<hitTest value="false"/>
					<width value="100%f"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
				<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
				<bind name="watchDH" value="'activeOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.activeOperation"/>
				<bind name="watchDH" value="'chosenDifficulty';	['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenDifficulty"/>
				<bind name="watch" value="'isChosenOperationOfTheWeek'; ((chosenOperationId == activeOperationId) &amp;&amp; (chosenDifficulty == 'normal'))"/>
				<bind name="primaryEntityDH" value="'operationEntity'; CC.operation; chosenOperationId"/>
				<bind name="watch" value="'pveBattleButtonText';  (chosenOperationId == '')	? tr('IDS_PVE_OPERATION_IS_NOT_SELECTED')
																			: tr('IDS_' + toUpperCase(operationEntity.operation.gpName) + '_NAME')"/>
				<bind name="watch" value="'pveBattleButtonSubText';  (chosenOperationId == '')					? '' :
													isChosenOperationOfTheWeek					? tr('IDS_OPERATION_OF_THE_WEEK_OPERATION_STATUS') :													
													chosenDifficulty == 'normal'	? tr('IDS_OPERATION_NORMAL_DIFFICULTY_STATUS') :
													chosenDifficulty == 'hard'	? tr('IDS_OPERATION_HARD_DIFFICULTY_STATUS')
																								: ''"/>
				<block type="text">
					<styleClass value="$TextDockBold"/>
					<style>
						<marginTop value="-8px"/>
						<width value="100%f"/>
						<multiline value="false"/>
					</style>
					<bind name="text" value="(selectedBattle.type == BattleTypes.PVE_BATTLE) ? pveBattleButtonText
																			: label"/>
				</block>
				<block type="text">
					<bind name="visible" value="(selectedBattle.type == BattleTypes.PVE_BATTLE) &amp;&amp; (pveBattleButtonSubText != '')"/>
					<style>
						<marginTop value="-8px"/>
						<width value="100%f"/>
						<multiline value="false"/>
					</style>
					<styleClass value="$TextDefaultTech"/>
					<bind name="text" value="pveBattleButtonSubText"/>
				</block>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<marginTop value="-3px"/>
				</style>
				<bind name="fade" value="feature_3 == 'new' ||  feature_1 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<block className="icon_sticker_new" type="native">
					<style>
						<hitTest value="false"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<hitTest value="false"/>
					<marginTop value="17px"/>
					<marginRight value="8px"/>
					<marginLeft value="4px"/>
				</style>
				<block className="icon_more" type="native">
					<bind name="visible" value="divisionData.isCommander || !(divisionData.divisionExist)"/>
					<bind name="gotoAndStop!" value="'blue'"/>
				</block>
			</block>
		</block>
	</block>
	<block className="BattletypeInfotip">
		<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="316px"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<marginLeft value="13px"/>
				<marginRight value="13px"/>
				<marginTop value="9px"/>
				<marginBottom value="18px"/>
			</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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block className="dock_panel_pin" type="native">
			<bind name="gotoAndStop!" value="'up'"/>
			<params>
				<param name="name" value="pinTop"/>
			</params>
			<style>
				<position value="absolute"/>
				<alpha value="0.5"/>
			</style>
		</block>
		<block>
			<style>
				<marginTop value="9px"/>
				<marginBottom value="19px"/>
			</style>
			<bind name="repeat" value="_battleTypes; 'ListBattleTypeRenderer'; {_lastTypeIndex: (battleTypes.length - 1 ), _isInCoachPVP: _isInCoachPVP}"/>
		</block>
	</block>
	<block className="ListBattleTypeRenderer">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  rankedBattlesStats.rank; 'curRankInfo'"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; type"/>
		<bind name="watchDH" value="'selected'; ['battleTypeEntity.battleType.evSelectionChanged']; battleTypeEntity.battleType.selected"/>
		<bind name="watchDH" value="'status'; ['battleTypeEntity.battleType.evStatusChanged']; battleTypeEntity.battleType.status"/>
		<bind name="watchDH" value="'battleTypeDenyReasons'; ['battleTypeEntity.battleType.evDisableReasonChanged']; battleTypeEntity.battleType.battleTypeReasons"/>
		<bind name="watchDH" value="'description'; []; battleTypeEntity.battleType.description"/>
		<bind name="watchDH" value="'label'; []; battleTypeEntity.battleType.label"/>
		<bind name="watchDH" value="'featureId'; []; battleTypeEntity.battleType.featureId"/>
		<bind name="feature" value="featureId; featureId == 19 ? '' : 'rollOver'"/>
		<bind name="visible" value="((featureState != 'locked') || (featureId == null))"/>
		<bind name="action" value="'buttonClick'; 'setBattleType'; {battleType: type}"/>
		<bind name="dispatch" value="'buttonClick'; _isInCoachPVP &amp;&amp; type == BattleTypes.RANDOM_BATTLE ? 'evChooseRandomBattle' : 'evChooseSomeBattleType'"/>
		<bind name="watch" value="'isBright'; (selected || rollOver) &amp;&amp; status != 2"/>
		<bind name="style" value="'colorMatrixFilter'; (status == 2) ? '0 -100 0 -20' : '0 0 0 0'"/>
		<style>
			<width value="288px"/>
			<marginLeft value="14px"/>
		</style>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="style" value="'hitTest'; status != 2"/>
			<bind name="name" value="'typeItem' + type"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<bind name="selected" value="selected"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left',
																		_instructionText: tr('IDS_CHOOSE') + ' ' + tr(labelIds + '_ACC')}],
																		_maxWidth: 250 }"/>
		</block>
		<block>
			<bind name="transition" value="isBright; 0.1; {alpha: 0.8}; {alpha: 1}; {alpha: 0.8}"/>
			<style>
				<width value="100%"/>
				<marginTop value="6px"/>
				<hitTest value="false"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginLeft value="4px"/>
				</style>
				<block className="icon_battletypes" type="native">
					<bind name="gotoAndStop!" value="type == BattleTypes.RANKED_BATTLE	?	(status == 0)	?	'RankedBattle'	:
																			(status == 2)	?	'RankedBattle_disabled'
																																														: 'RankedBattle_inactive'
									: type == BattleTypes.CLUB_BATTLE	? 	(status == 0)	?	'ClubBattle'		:
																			(status == 2)	?	'ClubBattle_disabled'
																												: 	'ClubBattle_inactive'
									: type == BattleTypes.PVE_BATTLE	? 'PVEBattle'
																		: type"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="4px"/>
						<marginRight value="9px"/>
					</style>
					<block className="icon_check" type="native">
						<style>
							<position value="absolute"/>
							<top value="7px"/>
							<right value="3px"/>
						</style>
						<bind name="visible" value="selected"/>
					</block>
					<block type="text">
						<style>
							<width value="100%"/>
						</style>
						<bind name="transition" value="(rollOver &amp;&amp; !mouseDown) || (selected); 0.1; {alpha: 0.9}; {alpha: 1}; {alpha: 0.9}; 2"/>
						<bind name="class" value="'$FontColorDefaultButtonUp'"/>
						<bind name="class" value="'$BattleTypeSelected'"/>
						<bind name="text" value="label"/>
					</block>
					<block type="text">
						<style>
							<maxWidth value="182"/>
							<marginTop value="-2px"/>
						</style>
						<styleClass value="$TextSecondary"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="type == BattleTypes.INTRO_MISSION ? dockDefaultValues.introMissionDescription : description"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="(battleTypeDenyReasons.length &gt; 0) || (type == BattleTypes.RANKED_BATTLE) || (type == BattleTypes.CLUB_BATTLE)"/>
				<style>
					<width value="270px"/>
					<marginLeft value="9px"/>
					<marginBottom value="6px"/>
					<marginTop value="4px"/>
				</style>
				<bind name="firstEntityDH" value="'clubsCommonEntity'; CC.clubsCommon"/>
				<bind name="watchDH" value="'primeTimeFinishTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimeFinishTime"/>
				<bind name="countdown" value="primeTimeFinishTime; 'primeTimeCountdown'; 'HIGHEST'"/>
				<bind name="instance" value="'BattletypeDenyReason'; (battleTypeDenyReasons.length &gt; 0)	? { _neutral: false,	_reasonText: battleTypeDenyReasons, _maxWidth: 270} :
													(type == BattleTypes.CLUB_BATTLE)	? { _neutral: true,		_reasonText: (tr('IDS_CLUB_BATTLES_PRIMETIME_ENDS_IN') + ' ' + primeTimeCountdown), _maxWidth: 270} :
													(type == BattleTypes.RANKED_BATTLE)	? { _neutral: true,		_reasonText: curRankInfo.allowedTheirsShipsDescription, _maxWidth: 270}
																					: null"/>
			</block>
			<block>
				<style>
					<height value="4px"/>
				</style>
			</block>
			<block>
				<bind name="fade" value="featureState == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<marginTop value="6px"/>
					<position value="absolute"/>
				</style>
				<block className="icon_sticker_new" type="native">
					<style>
						<hitTest value="false"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="_lastTypeIndex != $index"/>
				<style>
					<width value="100%"/>
					<bottom value="0px"/>
					<marginLeft value="-1px"/>
					<marginRight value="-1px"/>
					<position value="absolute"/>
				</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>
	<block className="BattletypeDenyReason">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; _reasonText == 'IDS_RANK_BATTLES_SEASON_IS_NOT_ACTIVE_SEASON_STARTS_IN'	? 'rankedBattlesSeason'
																																					: null"/>
		<bind name="countdown" value="rankedBattlesSeason.startTime; 'seasonTimeStart'; 'HIGHEST'; ''; 'ACC'"/>
		<bind name="firstEntityDH" value="'clubsCommonEntity'; CC.clubsCommon"/>
		<bind name="watchDH" value="'primeTimeStartTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimeStartTime"/>
		<bind name="countdown" value="primeTimeStartTime; 'primeTimeCountdown'; 'HIGHEST'"/>
		<block type="text">
			<style>
				<leading value="-3"/>
			</style>
			<styleClass value="$TextDefaultNM"/>
			<bind name="class" value="(_neutral ? '$FontColorDefault' : '$FontColorUnready')"/>
			<bind name="style" value="'textAlign'; _textAlign ? _textAlign : 'left'"/>
			<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 250"/>
			<bind name="watch" value="'reasonText'; ((battleTypeDenyReasons[0] == 'IDS_RANK_BATTLES_SEASON_IS_NOT_ACTIVE_SEASON_STARTS_IN')	?	(tr(_reasonText) + ' ' + seasonTimeStart) :
									(battleTypeDenyReasons[0] == 'IDS_CLUB_BATTLES_PRIMETIME_STARTS_IN')					?	(tr(_reasonText) + ' ' + primeTimeCountdown)
																															:	_reasonText)"/>
			<bind name="text" value="(_neutral	? reasonText
								: ('[icon] ' + reasonText))"/>
			<bind name="substitute" value="''; 5; {'[icon]': 'icon_warning_orange_bm'}"/>
		</block>
	</block>
	<block className="BigReadyForFormationBattleButton">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; selectedBattle.type"/>
		<bind name="watchDH" value="'readyButtonDenyReasons'; ['battleTypeEntity.battleType.evDisableReasonChanged']; battleTypeEntity.battleType.readyButtonReasons"/>
		<block className="tab_bar_bg" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<styleClass value="$PxCorrection"/>
			<style>
				<hitTest value="false"/>
			</style>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="fade" value="(!(divisionData.isReady)); 0.3; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; 0"/>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<backgroundColor value="0xAAFF9933"/>
					</style>
					<bind name="fade" value="(!(divisionData.isReady)); 1.0; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 0.5"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="fade" value="divisionData.isReady; 0.3; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; 0"/>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<backgroundColor value="0x804CE8AA"/>
					</style>
					<bind name="fade" value="divisionData.isReady; 1.0; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 0.5"/>
				</block>
			</block>
		</block>
		<bind name="watch" value="'isReadyBtnEnabled'; (readyButtonDenyReasons.length == 0) ? true : false"/>
		<block>
			<style>
				<width value="146px"/>
				<height value="51px"/>
			</style>
			<bind name="tooltip" value="'MultipleWarningsTooltip'; !isReadyBtnEnabled &amp;&amp; !(divisionData.isReady) ? {_warningsArr: readyButtonDenyReasons} : null"/>
			<bind name="tooltip" value="'FormationReadyButtonTooltip'; isReadyBtnEnabled &amp;&amp; !(divisionData.isReady) ? {} : null"/>
			<bind name="tooltip" value="'FormationNotReadyButtonTooltip'; divisionData.isReady ? {} : null; 0"/>
			<block className="status_ready_item_big" type="native">
				<style>
					<marginLeft value="2px"/>
					<marginRight value="2px"/>
					<marginBottom value="2px"/>
				</style>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'colorMatrixFilter'; isReadyBtnEnabled || divisionData.isReady ? '0 0 0 0' : '0 -100 0 -40'"/>
				<bind name="style" value="'mouseEnabled'; isReadyBtnEnabled"/>
				<bind name="label" value="toUpperCase(tr('IDS_READY'))"/>
				<bind name="action" value="'buttonClick'; 'setIsReadyInDivision'; {isReady: divisionData.isReady ? false : true}"/>
				<bind name="selected" value="divisionData.isReady"/>
			</block>
		</block>
	</block>
	<block className="LootBoxes">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="stageSize"/>
		<bind name="watch" value="'leftOffset'; ((20 + (stageWidth - 1280)/14))"/>
		<styleClass value="$FullsizeAbsolute"/>
		<block>
			<bind name="style" value="'marginLeft'; (leftOffset - 11) + 'px')"/>
			<bind name="style" value="'marginTop'; (leftOffset - 14) + 'px'"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginLeft value="-12px"/>
					<marginRight value="-12px"/>
					<marginBottom value="-6px"/>
					<marginTop value="-6px"/>
				</style>
				<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_blurmap5_feather" 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>
				<bind name="style" value="'hitTest'; activeAnimation ? false : true"/>
				<bind name="style" value="'colorMatrixFilter'; activeAnimation ? '0 -80 0 -20' : '0 0 0 0'"/>
				<bind name="instance" value="'BackButton'; {_text: 'IDS_RETURN_TO_DOCK', _action: 'moveFromBarge'}"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="style" value="'right'; (leftOffset - 4) + 'px')"/>
			<bind name="style" value="'top'; (leftOffset - 4) + 'px'"/>
			<bind name="style" value="'hitTest'; activeAnimation ? false : true"/>
			<bind name="style" value="'colorMatrixFilter'; activeAnimation ? '0 -80 0 -20' : '0 0 0 0'"/>
			<block className="ModalWindowCloseIcon">
				<style>
					<position value="absolute"/>
					<right value="0px"/>
					<top value="0px"/>
					<flow value="horizontal"/>
				</style>
				<bind name="name" value="'btn_cancel'"/>
				<bind name="input"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CLOSE'}; 0"/>
				<block>
					<style>
						<backgroundColor value="0x01000000"/>
					</style>
					<block>
						<style>
							<marginTop value="-3px"/>
						</style>
						<block className="hotkey_holder_white_9slice" type="native">
							<bind name="visible" value="true"/>
							<block type="text">
								<style>
									<marginLeft value="3px"/>
									<marginRight value="3px"/>
									<marginTop value="-1px"/>
									<marginBottom value="-1px"/>
								</style>
								<styleClass value="$BlackLabel"/>
								<text value="ESC"/>
							</block>
						</block>
					</block>
					<block className="button_close" type="native">
						<params>
							<param name="focusable" value="false"/>
						</params>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<style>
				<top value="19sh"/>
				<width value="100%"/>
				<position value="absolute"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
					<width value="300px"/>
				</style>
				<bind name="style" value="'marginLeft'; (leftOffset) + 'px')"/>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginLeft value="-28px"/>
						<marginRight value="-28px"/>
						<marginBottom value="-14px"/>
						<marginTop value="-14px"/>
					</style>
					<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_blurmap5_feather" 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 type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeaderBold"/>
					<style>
						<marginBottom value="6px"/>
					</style>
					<bind name="text" value="toUpperCase(tr('IDS_LOOTBOXES'))"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="repeat" value="[	{_paragraphText: 'IDS_LOOTBOX_HINT_0'},
								{_paragraphText: 'IDS_LOOTBOX_HINT_1'}]; 'RepeatParagraphItem'; {	_maxWidth: 300, _marginBottom: '3px',
																									_middleAligned: false, _class: '$TextHeaderBigDefault',
																									_textAlign: 'left', _leading: -2}"/>
				</block>
			</block>
			<bind name="firstEntityDH" value="'lootboxEntity'; CC.lootboxConfigComponent"/>
			<bind name="watchDH" value="'maxBought';				['lootboxEntity.lootboxConfigComponent.evUpdate'];	lootboxEntity.lootboxConfigComponent.maxBought"/>
			<bind name="watchDH" value="'lootboxExp';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.lootExp"/>
			<bind name="watchDH" value="'boughtToday';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.boughtToday"/>
			<bind name="watchDH" value="'lootboxesInStorage';	['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.inStorage"/>
			<bind name="watchDH" value="'dropTimeStamp';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.dropAt"/>
			<bind name="watch" value="'allBoxesBought'; (maxBought == boughtToday)"/>
			<bind name="watch" value="'canBuyLootbox'; (lootboxExp &gt;= lootboxEntity.lootboxConfigComponent.prices[boughtToday])"/>
			<bind name="watch" value="'curLootboxPrice'; allBoxesBought	? -1
														:  lootboxEntity.lootboxConfigComponent.prices[boughtToday]"/>
			<bind name="watchDH" value="'openedLootboxRewards';	['lootboxEntity.lootboxComponent.evUpdate'];		lootboxEntity.lootboxComponent.rewards"/>
			<bind name="watchDH" value="'activeAnimation';	['lootboxEntity.lootboxAnimationState.evUpdate']; lootboxEntity.lootboxAnimationState.active"/>
			<bind name="changeDispatch" value="activeAnimation; 'activeAnimationChangedEv'; {}; 2"/>
			<bind name="action" value="'activeAnimationChangedEv'; activeAnimation ? 'lockBargeControls' : 'unlockBargeControls'; {}"/>
			<bind name="watchDH" value="'lootboxOpened';	['lootboxEntity.lootboxAnimationState.evUpdate']; lootboxEntity.lootboxAnimationState.open"/>
			<block>
				<style>
					<position value="absolute"/>
					<width value="320px"/>
					<top value="-14px"/>
				</style>
				<bind name="style" value="'right'; (leftOffset) + 'px')"/>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginLeft value="-30px"/>
						<marginRight value="-30px"/>
						<marginBottom value="-33px"/>
						<marginTop value="-33px"/>
					</style>
					<bind name="visible" value="optionData.blurEnabled"/>
					<block className="mc_blurmap10_feather" type="native">
						<bind name="appear" value="'startShow'; 0.3; 0; {alpha: 0}; {alpha: 0.55}"/>
						<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 0.55}; {alpha: 0}"/>
						<styleClass value="$Fullsize"/>
						<bind name="blurMap" value="0"/>
					</block>
				</block>
				<block className="notification_panel" type="native">
					<bind name="visible" value="optionData.contrast"/>
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginLeft value="-30px"/>
						<marginRight value="-30px"/>
						<marginBottom value="-33px"/>
						<marginTop value="-33px"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<height value="91px"/>
					</style>
					<block>
						<bind name="fade" value="!(allBoxesBought); 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}; 1"/>
						<styleClass value="$MiddleAligned"/>
						<style>
							<backgroundColor value="0x01000000"/>
						</style>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_LOOTBOX_EXP_HINT'}"/>
						<block>
							<block type="text">
								<style>
									<fontSize value="48"/>
								</style>
								<styleClass value="$TextAccentBoldAccountLevel1"/>
								<bind name="text" value="format(lootboxExp, -1)"/>
							</block>
							<block className="icon_exp_big" type="native">
								<style>
									<marginLeft value="2px"/>
								</style>
								<styleClass value="$MiddleVAligned"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block type="text">
							<style>
								<marginTop value="-9px"/>
								<marginBottom value="9px"/>
							</style>
							<styleClass value="$MiddleAligned"/>
							<styleClass value="$TextHeader"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="'IDS_AVAILABLE_EXP_FOR_LOOTBOXES'"/>
						</block>
					</block>
					<block>
						<bind name="fade" value="allBoxesBought; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}; 1"/>
						<bind name="countdown" value="dropTimeStamp; 'countdownText'; 'hh:mm:ss'"/>
						<style>
							<width value="100%"/>
							<position value="absolute"/>
							<bottom value="17px"/>
						</style>
						<block type="text">
							<style>
								<width value="100%"/>
								<textAlign value="center"/>
							</style>
							<styleClass value="$TextHeaderWhiteBold"/>
							<bind name="class" value="'$FontColorUnready'"/>
							<bind name="text" value="toUpperCase(tr('IDS_LOOTBOX_PURCHASE_WILL_BE_AVAILABLE_AFTER'))"/>
						</block>
						<block type="text">
							<style>
								<marginTop value="3px"/>
							</style>
							<styleClass value="$MiddleAligned"/>
							<styleClass value="$TextHeaderWhiteBold"/>
							<bind name="class" value="'$FontColorUnready'"/>
							<bind name="pureText" value="'-' + countdownText"/>
						</block>
					</block>
				</block>
				<block>
					<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 className="HorizontalDivider">
							<styleClass value="$PxHorizontalCorrection"/>
							<style>
								<width value="100%"/>
								<height value="3px"/>
							</style>
							<block className="divider_h" type="native">
								<styleClass value="$Fullsize"/>
							</block>
						</block>
						<style>
							<position value="absolute"/>
							<width value="100%"/>
						</style>
					</block>
				</block>
				<block>
					<style>
						<height value="144px"/>
						<width value="100%"/>
					</style>
					<bind name="transition" value="allBoxesBought; 0.15; {height: 146}; {height: 104}; {height: 144}; 1; 0.17"/>
					<block>
						<styleClass value="$MiddleAligned"/>
						<style>
							<marginBottom value="39px"/>
							<marginTop value="62px"/>
						</style>
						<bind name="repeat" value="lootboxEntity.lootboxConfigComponent.prices; 'LootboxProgressBarWithLootbox'; {_isGetBtnEnabled: isGetBtnEnabled}"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<params>
							<param name="name" value="getLootBox"/>
						</params>
						<bind name="fade" value="(canBuyLootbox &amp;&amp; !(allBoxesBought)); 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}; 1; 0.15"/>
						<styleClass value="$MiddleAligned"/>
						<style>
							<width value="200px"/>
						</style>
						<bind name="watch" value="'isGetBtnEnabled'; (canBuyLootbox &amp;&amp; !(allBoxesBought) &amp;&amp; !(activeAnimation))"/>
						<bind name="instance" value="'DefaultButton'; {	_width: '200px', _enabled: isGetBtnEnabled, _isTransactionBtn: false,
														_action: 'openPurchaseLootboxWindow', _actionParams: {}, _label: toUpperCase(tr('IDS_PURCHASE_LOOTBOX_C'))}"/>
					</block>
					<block>
						<bind name="fade" value="!(canBuyLootbox) &amp;&amp; !(allBoxesBought); 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}; 1; 0.15"/>
						<styleClass value="$MiddleAligned"/>
						<block type="text">
							<styleClass value="$TextHeader"/>
							<bind name="class" value="'$FontColorBlueish'"/>
							<bind name="text" value="tr('IDS_EXP_TO_NEXT_LOOTBOX') + tr('IDS_COLON')"/>
						</block>
						<block>
							<style>
								<marginLeft value="2px"/>
							</style>
							<block type="text">
								<styleClass value="$TextHeaderWhiteBold"/>
								<bind name="text" value="curLootboxPrice - lootboxExp"/>
							</block>
							<block>
								<styleClass value="$MiddleVAligned"/>
								<block className="icon_exp" type="native">
									<style>
										<marginLeft value="-2px"/>
									</style>
								</block>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<block>
					<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 className="HorizontalDivider">
							<styleClass value="$PxHorizontalCorrection"/>
							<style>
								<width value="100%"/>
								<height value="3px"/>
							</style>
							<block className="divider_h" type="native">
								<styleClass value="$Fullsize"/>
							</block>
						</block>
						<style>
							<position value="absolute"/>
							<width value="100%"/>
						</style>
					</block>
				</block>
				<block>
					<style>
						<marginTop value="21px"/>
						<width value="100%"/>
					</style>
					<block type="text">
						<bind name="transition" value="(lootboxesInStorage &gt; 0); 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}; 1; 0.15"/>
						<style>
							<width value="100%"/>
							<marginBottom value="13px"/>
							<marginTop value="-3px"/>
							<textAlign value="center"/>
						</style>
						<styleClass value="$TextHeaderWhiteBold"/>
						<bind name="class" value="'$FontSizeHeader4'"/>
						<bind name="text" value="subst('IDS_OWNED_LOOTBOXES', [], {lootboxesCount: lootboxesInStorage}, lootboxesInStorage)"/>
					</block>
					<block type="text">
						<bind name="transition" value="(lootboxesInStorage &lt;= 0); 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}; 1; 0.15"/>
						<style>
							<width value="100%"/>
							<position value="absolute"/>
							<textAlign value="center"/>
						</style>
						<styleClass value="$TextHeaderWhiteBold"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="toUpperCase(tr('IDS_YOU_HAVE_NO_LOOTBOXES'))"/>
					</block>
					<block>
						<params>
							<param name="name" value="openLootBox"/>
						</params>
						<bind name="watch" value="'_isOpenBtnEnabled'; (!(activeAnimation) &amp;&amp; (lootboxesInStorage &gt; 0))"/>
						<bind name="style" value="'hitTest'; (_isOpenBtnEnabled == true)"/>
						<bind name="transition" value="(lootboxesInStorage &gt; 0); 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: -5}"/>
						<styleClass value="$MiddleAligned"/>
						<style>
							<width value="200px"/>
						</style>
						<bind name="instance" value="'DefaultButton'; {	_width: '200px', _enabled: _isOpenBtnEnabled, _isTransactionBtn: true,
														_action: 'LootboxProxy.openLootbox', _actionParams: {}, _label: toUpperCase(tr('IDS_OPEN_LOOTBOX'))}"/>
						<bind name="dispatch" value="'click'; lootboxOpened ? 'hideRewards' : null; {}; true"/>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="(lootboxOpened == true)"/>
				<style>
					<top value="19.5sh"/>
				</style>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<styleClass value="$MiddleVAligned"/>
				<block>
					<bind name="repeat" value="(lootboxOpened ? openedLootboxRewards : 0); 'RewardItemAdapter'; {_openedLootboxRewards: openedLootboxRewards}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<bind name="var" value="{lootboxGot: false}"/>
		<bind name="handleEventDH" value="'lootboxEntity.lootboxStorageComponent.evLootboxGot'; 'lootboxBoughtEv'"/>
		<bind name="watchDH" value="'curBoxType'; ['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.curBoxType"/>
		<bind name="watchDH" value="'chosenToGotBoxType'; ['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.chosenBoxType"/>
		<bind name="watch" value="'isEpicBox'; (curBoxType == 5)"/>
		<bind name="catch" value="'lootboxBoughtEv'; {lootboxGot: true}"/>
		<bind name="watch" value="'isEpicLootboxGotNotFromLuckyType'; (isEpicBox &amp;&amp; (chosenToGotBoxType != 4) &amp;&amp; lootboxGot)"/>
		<bind name="dispatch" value="'lootboxBoughtEv'; 'lootboxBoughtFinishedEv'; {}; 2; 4.5"/>
		<bind name="catch" value="'lootboxBoughtFinishedEv'; {lootboxGot: false}"/>
		<block>
			<styleClass value="$EyeLevelVAligned"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<bind name="fade" value="!(isEpicLootboxGotNotFromLuckyType); 0.25; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; 3.2"/>
			<bind name="instance" value="'LuckyLootboxAnimation'; isEpicLootboxGotNotFromLuckyType ? {} : null"/>
		</block>
	</block>
	<block className="LuckyLootboxAnimation">
		<bind name="dispatch" value="'addedToStage'; 'startAnimationEv'; {}; 2; 1"/>
		<bind name="dispatch" value="'startAnimationEv'; 'startIssueAnimationEv'; {}; 2; 0.25"/>
		<bind name="var" value="{luckyIssuedState: 'not_issued'}"/>
		<bind name="catch" value="'startIssueAnimationEv'; {luckyIssuedState: 'animation'}"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<block className="icon_lucky_animation" type="native">
				<style>
					<position value="absolute"/>
				</style>
				<bind name="soundOn" value="'startAnimationEv'; 'epicwin'; 'lucky_soundset'"/>
				<bind name="event" value="'startAnimationEv'; 'gotoAndPlay'; 'animation_lucky'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="luckyIssuedState == 'animation'"/>
			<style>
				<marginTop value="42px"/>
			</style>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<block className="icon_issued" type="native">
					<style>
						<marginLeft value="1.7%"/>
						<alpha value="0.9"/>
					</style>
					<bind name="scaleX" value="0.85"/>
					<bind name="scaleY" value="0.85"/>
					<innerBind elementName="item.item" name="text" value="toUpperCase(tr('IDS_PURCHASE_CHANCE_LOOTBOX_EPIC'))"/>
					<bind name="gotoAndPlay!" value="luckyIssuedState ? luckyIssuedState : 'not_issued'"/>
				</block>
			</block>
		</block>
	</block>
	<block className="LootboxProgressBarWithLootbox">
		<bind name="firstEntityDH" value="'lootboxEntity'; CC.lootboxConfigComponent"/>
		<bind name="watchDH" value="'lootboxExp';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.lootExp"/>
		<bind name="watchDH" value="'boughtToday';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.boughtToday"/>
		<bind name="watchDH" value="'lootboxPrices';			['lootboxEntity.lootboxConfigComponent.evUpdate'];	lootboxEntity.lootboxConfigComponent.prices"/>
		<bind name="watch" value="'isBought'; ($index &lt; boughtToday)"/>
		<bind name="watch" value="'canBuy'; (lootboxExp &gt;= lootboxPrices[$index]) &amp;&amp; !(isBought)"/>
		<bind name="watch" value="'rawLootboxProgress';	$index == 0 ?	lootboxExp / $value :
										$index == 1 ?	(lootboxExp - lootboxPrices[0]) / ($value - lootboxPrices[0])
													:	(lootboxExp - lootboxPrices[0] - lootboxPrices[1]) / ($value - lootboxPrices[1] - lootboxPrices[0])"/>
		<bind name="watch" value="'curLootboxProgress';	rawLootboxProgress &gt; 1	? 1
																: rawLootboxProgress"/>
		<bind name="var" value="{progressBarWidth: [55, 95, 135],
				progressBarHeight: 9}"/>
		<bind name="style" value="'marginRight'; ($index == 2 ? '21px' : '0px')"/>
		<bind name="watch" value="'curBarInProgress';	lootboxExp &lt; lootboxPrices[0]	? 0 :
										lootboxExp &lt; lootboxPrices[1]	? 1
																		: 2"/>
		<bind name="style" value="'alpha'; isBought ? 0.7 : 1"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginRight value="1px"/>
			</style>
			<bind name="instance" value="'LootboxProgressBar'; {_width: progressBarWidth[$index], _height: progressBarHeight, _curValue: (curLootboxProgress*10)}"/>
		</block>
		<block>
			<bind name="visible" value="$index == 0"/>
			<style>
				<position value="absolute"/>
				<left value="-8px"/>
				<marginTop value="6px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="0"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<block className="icon_exp_small" type="native">
					<style>
						<marginLeft value="-1px"/>
						<marginTop value="1px"/>
					</style>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<top value="-40px"/>
				<right value="-25px"/>
			</style>
			<bind name="tooltip" value="'SimpleTooltip'; isBought ? {tooltipText: 'IDS_LOOTBOX_GOT'} : null"/>
			<block>
				<style>
					<marginRight value="6px"/>
				</style>
				<block>
					<style>
						<width value="49px"/>
						<height value="31px"/>
					</style>
					<block>
						<bind name="visible" value="canBuy == true"/>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$MiddleAlignedAbsolutely"/>
						<block className="icon_lootbox_glow_animation" type="native">
							<style>
								<position value="absolute"/>
							</style>
							<bind name="scaleX" value="0.7"/>
							<bind name="scaleY" value="0.7"/>
						</block>
					</block>
					<block className="button_lootbox_small" type="native">
						<bind name="style" value="'alpha'; isBought ? 0.7 : 1"/>
						<bind name="enabled" value="(canBuy &amp;&amp; _isGetBtnEnabled)"/>
						<bind name="action" value="'buttonClick'; 'openPurchaseLootboxWindow'"/>
						<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_GET_LOOTBOX'}], _maxWidth: 250 }"/>
					</block>
				</block>
				<block className="icon_issued_small" type="native">
					<bind name="visible" value="isBought"/>
					<style>
						<position value="absolute"/>
						<top value="55%"/>
						<left value="50%"/>
						<hitTest value="false"/>
					</style>
					<bind name="rotation" value="-2"/>
					<bind name="scaleX" value="0.95"/>
					<bind name="scaleY" value="0.95"/>
					<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
					<bind name="gotoAndStop!" value="'issued'"/>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<style>
					<marginTop value="46px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="format($value, -1)"/>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<block className="icon_exp_small" type="native">
						<style>
							<marginLeft value="-1px"/>
							<marginTop value="1px"/>
						</style>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="RewardItemAdapter">
		<bind name="entityDH" value="'rewardEntity'; $value"/>
		<bind name="appear" value="'addedToStage'; 0.25; 0.1 + $index*0.23; {alpha: 0, top: 35}; {alpha: 1, top: 0}; 1"/>
		<bind name="appear" value="'hideRewards'; 0.15; 0; {alpha: 1, top: 0}; {alpha: 0, top: 20}"/>
		<style>
			<marginRight value="1.8sw"/>
			<marginLeft value="1.8sw"/>
		</style>
		<bind name="name" value="'rewardItem_' + $index + '_' + rewardEntity.rewardComponent.name"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<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_blurmap5_feather" 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>
			<bind name="instance" value="'RewardItem'; rewardEntity.rewardComponent"/>
		</block>
	</block>
	<block className="ClanInset">
		<styleClass value="$Fullsize"/>
		<bind name="action" value="'addedToStage'; 'openClansWindow'; {'url': URL.CLANS_IN_GAME}"/>
		<bind name="action" value="'removedFromStage'; 'closeClansWindow'; {}"/>
	</block>
	<block className="InteractiveNotifications">
		<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.interactiveMessageWindow; 'messagesCollection'"/>
		<bind name="var" value="{messageIndex: 0}"/>
		<bind name="catch" value="'changeSelectedNotification'"/>
		<bind name="changeDispatch" value="messageIndex; 'messageIndexChanged'"/>
		<bind name="action" value="'messageIndexChanged'; 'selectedMessageChanged'; {selectedEntityId:messagesCollection[messageIndex].id, selectedIndex:messageIndex}"/>
		<bind name="changeDispatch" value="messagesCollection.length; 'changeSelectedNotification'; {messageIndex: messagesCollection.length-1}"/>
		<bind name="draggable" value="'IMDragZone'; 'IMPosition'; 'IM'"/>
		<bind name="dispatch" value="'dragDisabledDown'; 'dragDisabledByChild'; {obj:getDescendantByName('IMDragZone')}"/>
		<bind name="changeDispatch" value="dragging; 'draggingChangedEv'; null; true"/>
		<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="stageSize"/>
		<bind name="watch" value="'IMPositionX';	(userPrefs.IMPositionX &amp;&amp; userPrefs.IMPositionX.IM)		?	userPrefs.IMPositionX.IM	:	stageWidth*0.6"/>
		<bind name="watch" value="'IMPositionY';	(userPrefs.IMPositionY &amp;&amp; userPrefs.IMPositionY.IM)		?	userPrefs.IMPositionY.IM	:	stageHeight*0.15"/>
		<bind name="changeDispatch" value="IMPositionX;	'IMPositionXchanged'"/>
		<bind name="changeDispatch" value="IMPositionY;	'IMPositionYchanged'"/>
		<bind name="action" value="'IMPositionXchanged' ; 'setUserPref' ; {value : IMPositionX, name : 'IMPositionX', subName: 'IM'}"/>
		<bind name="action" value="'IMPositionYchanged' ; 'setUserPref' ; {value : IMPositionY, name : 'IMPositionY', subName: 'IM'}"/>
		<bind name="left" value="IMPositionX"/>
		<bind name="top" value="IMPositionY"/>
		<block>
			<bind name="visible" value="messagesCollection.length &gt; 1"/>
			<styleClass value="$MiddleAligned"/>
			<bind name="repeat" value="messagesCollection; 'InteractiveMessagesSwitchButton'; {_currentIndex: messageIndex}"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<params>
				<param name="name" value="IMDragZone"/>
			</params>
			<style>
				<marginTop value="6px"/>
			</style>
			<bind name="scopeHoldRepeat" value="messagesCollection; 'InteractiveNotificationItem'; id; {_messageIndex: messageIndex, _messagesCount: messagesCollection.length}"/>
		</block>
	</block>
	<block className="InteractiveNotificationItem">
		<bind name="visible" value="$index == _messageIndex"/>
		<bind name="entityDH" value="'dataEntity'; id"/>
		<bind name="watchDH" value="'messageData'; ['dataEntity.data.evChanged']; dataEntity.data.data"/>
		<bind name="watchDH" value="'waiting'; ['dataEntity.show.evWaitingChanged']; dataEntity.show.waiting"/>
		<bind name="watch" value="'hideDelay'; messageData.groupId == 0 ? 5.0 : 0"/>
		<bind name="handleEventDH" value="'dataEntity.show.evHide'; 'evHideInteractiveMessage'"/>
		<bind name="appear" value="'evHideInteractiveMessage'; 0.15; hideDelay; {alpha:1}; {alpha:0}; 1"/>
		<bind name="dispatch" value="'evHideInteractiveMessage'; 'evDelayedHideInteracive'; null; false; hideDelay + 0.15"/>
		<bind name="action" value="'evDelayedHideInteracive'; 'hideInteractiveMessage'; {id: id}"/>
		<bind name="action" value="'removedFromStage'; 'checkMessage'; {id: id}"/>
		<bind name="changeDispatch" value="_messageIndex; 'addedToStage'"/>
		<bind name="changeDispatch" value="_messagesCount; 'addedToStage'"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0.1; {alpha: 0}; {alpha: 1}; 2"/>
		<bind name="dispatch" value="'addedToStage'; 'draggableResized'; null; 0; 0.3"/>
		<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>
			<bind name="child" value="messageData.groupId; {data: messageData, isUserActionDone: waiting}; 'InteractiveNotificationVoteContainer' ; 'InteractiveNotificationInviteContainer'; 'PersonalProposalWindow'; 'InteractiveNotificationAbuseWarningContainer'"/>
		</block>
	</block>
	<block className="InteractiveNotificationInviteContainer">
		<block>
			<bind name="child" value="data.idInGroup; {data: data, isUserActionDone: isUserActionDone};
					'InteractiveNotificationInvitation';
					'InteractiveNotificationInvitation';
					'InteractiveNotificationInvitation';
					'InteractiveNotificationInvitation'
					"/>
		</block>
	</block>
	<block className="InteractiveNotificationVoteContainer">
		<block>
			<bind name="child" value="data.idInGroup;  {data : data, isUserActionDone: isUserActionDone};
					'InteractiveNotificationVote'; 
					'InteractiveNotificationVote'; 
					'InteractiveNotificationVote'
					"/>
		</block>
	</block>
	<block className="InteractiveNotificationAbuseWarningContainer">
		<block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<textColor value="0xffffffff"/>
					<backgroundColor value="0x80000000"/>
					<maxWidth value="600"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="'data: ' + reflect(data)"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<textColor value="0xffffffff"/>
					<backgroundColor value="0x80000000"/>
					<maxWidth value="600"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="'data.status: ' + reflect(data.status)"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<textColor value="0xffffffff"/>
					<backgroundColor value="0x80000000"/>
					<maxWidth value="600"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="'data.components[AbuseStatus.NORMAL]: ' + reflect(data.components[AbuseStatus.NORMAL])"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<textColor value="0xffffffff"/>
					<backgroundColor value="0x80000000"/>
					<maxWidth value="600"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="'data.components[AbuseStatus.SUSPECT]: ' + reflect(data.components[AbuseStatus.SUSPECT])"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<textColor value="0xffffffff"/>
					<backgroundColor value="0x80000000"/>
					<maxWidth value="600"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="'data.components[AbuseStatus.CONFIRMED]: ' + reflect(data.components[AbuseStatus.CONFIRMED])"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<textColor value="0xffffffff"/>
					<backgroundColor value="0x80000000"/>
					<maxWidth value="600"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="'data.battlesToClean: ' + reflect(data.battlesToClean)"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<block>
				<style>
					<marginTop value="3px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<block className="button_default_small" type="native">
					<bind name="name" value="'acceptWarning'"/>
					<style>
						<width value="1px"/>
					</style>
					<bind name="style" value="'width'; data.idInGroup == 3 ? '180px' : '110px'"/>
					<bind name="label" value="toUpperCase(tr('IDS_ACCEPT'))"/>
					<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
					<bind name="dispatch" value="'buttonClick'; 'clickAcceptButton'"/>
					<bind name="action" value="'buttonClick'; data.actionName; data.callbackData[0]"/>
				</block>
			</block>
		</block>
	</block>
	<block className="InteractiveNotificationInvitation">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="watch" value="'showBusyIndicator'; isUserActionDone"/>
		<bind name="var" value="{inviteAccepted: false}"/>
		<bind name="catch" value="'clickAcceptButton'; { inviteAccepted: true }"/>
		<style>
			<width value="370px"/>
		</style>
		<block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="optionData.contrast"/>
		</block>
		<block className="notification_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="30px"/>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="child" value="data.idInGroup; {data: data}; 
						'InvitationContent'; 'InvitationContent'; 'ClubInvitationContent'; 'ClanInvitationContent'"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="0"/>
				</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>
				<position value="absolute"/>
				<width value="100%"/>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="30px"/>
				</style>
				<bind name="child" value="data.idInGroup;	{	data: data,
												_rating: data.clubRating,
												_playerName: data.senderName,
												_clubName: data.clubName,
												_league: data.clubLeague,
												_showInVote: false,
												_isUserActionDone: isUserActionDone};
						'FormationNotificationHeader'; 'FormationNotificationHeader'; 'ClubInvitationHeader'; 'ClubInvitationHeader'"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<block>
				<style>
					<marginTop value="3px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="transition" value="isUserActionDone; 0.15; {alpha: 1}; {alpha: 0}"/>
				<block className="button_default_small" type="native">
					<bind name="name" value="'acceptInvitation'"/>
					<bind name="enabled" value="!isUserActionDone"/>
					<style>
						<width value="1px"/>
					</style>
					<bind name="style" value="'width'; data.idInGroup == 3 ? '180px' : '110px'"/>
					<bind name="label" value="data.idInGroup == 3 	? toUpperCase(tr('IDS_GOTO_INVITATIONS'))
													: toUpperCase(tr('IDS_ACCEPT'))"/>
					<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
					<bind name="dispatch" value="'buttonClick'; 'clickAcceptButton'"/>
					<bind name="action" value="'click'; data.idInGroup == 3 ? 'goToClanInvites' : null; {url: URL.CLAN_INVITES, redirect_to: data.url}"/>
					<bind name="action" value="'buttonClick'; data.actionName; data.callbackData[0]"/>
				</block>
			</block>
			<block>
				<bind name="watch" value="'operationProcessingLabel'; inviteAccepted ? 	(data.idInGroup == 0 ? 'IDS_STATUS_JOINING_DIVISION' :
																		 data.idInGroup == 1 ? 'IDS_STATUS_JOINING_PARTY' :
																		 data.idInGroup == 3 ? 'IDS_GOING_TO_INVITATIONS' : 'IDS_STATUS_JOINING_CLUB')
																	: data.idInGroup == 3 ? '' : 'IDS_STATUS_DECLINING_INVITE'"/>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'BusyIndicator'; showBusyIndicator ? { _label: operationProcessingLabel, _showBusyIndicator: showBusyIndicator } : null"/>
			</block>
		</block>
	</block>
	<block className="InteractiveNotificationVote">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="entityDH" value="'entityCreator'; data.creatorEntityId"/>
		<bind name="watchDH" value="'nickName'; ['entityCreator.accountName.evChanged']; entityCreator.accountName.nickName"/>
		<bind name="watchDH" value="'accountLevel'; ['entityCreator.accountLevel.evLevelChanged']; entityCreator.accountLevel.level"/>
		<bind name="watchDH" value="'rank'; ['entityCreator.accountRank.evRankChanged']; entityCreator.accountRank.rank"/>
		<style>
			<width value="370px"/>
		</style>
		<block className="contrast_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="optionData.contrast"/>
		</block>
		<block className="notification_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="30px"/>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'VoteContent'; {data: data}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="0"/>
				</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>
				<position value="absolute"/>
				<width value="100%"/>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="0"/>
				</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>
				<style>
					<width value="100%"/>
					<height value="30px"/>
				</style>
				<bind name="instance" value="'ClubNotificationHeader'; { data: data,
														_rating: data.clubRating,
														_league: data.league,
														_clubName: data.clubName,
														_level: accountLevel,
														_rank: rank,
														_playerName: nickName,
														_showInVote: true}"/>
			</block>
		</block>
	</block>
	<block className="InvitationContent">
		<style>
			<width value="100%"/>
		</style>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="contains" value="clubs; ($item.club.name == data.clubName); 'isClubMember'"/>
		<block className="inner_panel" type="native">
			<style>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<marginBottom value="12px"/>
				<marginTop value="10px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="3px"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeader"/>
					<style>
						<maxWidth value="340"/>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="(data.idInGroup == 0)	? 'IDS_INVITES_YOU_TO_JOIN_DIVISION' :
							(data.idInGroup == 1)	? isClubMember	? 'IDS_INVITES_YOU_TO_JOIN_PARTY'
																	: 'IDS_INVITES_YOU_TO_JOIN_PARTY_AS_MERC'
													: 'IDS_INVITES_YOU_TO_JOIN_CLUB'"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="data.idInGroup != 2"/>
				<style>
					<width value="100%"/>
					<marginTop value="5px"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeader"/>
					<bind name="class" value="'$FontSizeHeader4'"/>
					<bind name="countdown" value="data.expirationTime; 'countdownText'; 'mm:ss'"/>
					<bind name="pureText" value="'-' + countdownText"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ClanInvitationContent">
		<style>
			<width value="100%"/>
		</style>
		<bind name="entityDH" value="'entityAccount'; data.playerEntityId"/>
		<bind name="watchDH" value="'playerName'; ['entityAccount.accountName.evChanged']; entityAccount.accountName.name"/>
		<block className="inner_panel" type="native">
			<style>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<marginBottom value="12px"/>
				<marginTop value="10px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<styleSheet value="h3
						{
							font-family: $WWSDefaultFontBold;
						}"/>
				</style>
				<bind name="substitute" value="''; 5;
								{
									'[commander]': 'icon_clan_position_commander',
									'[exec_officer]': 'icon_clan_position_dep_commander',
									'[private]': 'icon_clan_position_line_officer',
									'[recr_officer]': 'icon_clan_position_recruiter'
								}"/>
				<bind name="text" value="'&lt;body&gt;' + '[' + data.initiator_role + ']' + ' ' + subst('IDS_PLAYER_INVITES_YOU_TO_JOIN_A_CLAN', [], {playerName: '&lt;h3&gt;' + playerName + '&lt;/h3&gt;'}) + '&lt;/body&gt;'"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="15px"/>
					<marginBottom value="12px"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeader"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="class" value="'$FontSizeHeader4'"/>
					<bind name="style" value="'textColor'; data.clan_color != '' ? '0x' + data.clan_color : 0xEEEEEE"/>
					<style>
						<maxWidth value="340"/>
						<marginBottom value="-6px"/>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="'[' + data.clan_tag + ']'"/>
				</block>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeader"/>
					<bind name="class" value="'$FontSizeHeader4'"/>
					<style>
						<maxWidth value="340"/>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="data.clan_name"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ClubInvitationContent">
		<bind name="dispatch" value="'draggingChangedEv'; 'Tooltip.Close'; null; true"/>
		<style>
			<width value="100%"/>
			<marginTop value="-30px"/>
		</style>
		<block className="inner_panel" type="native">
			<style>
				<marginLeft value="1px"/>
				<marginRight value="1px"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<marginBottom value="12px"/>
				<marginTop value="10px"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="entityDH" value="'entityPlayer'; data.playerEntityId"/>
			<bind name="watchDH" value="'nickName'; ['entityPlayer.accountName.evChanged']; entityPlayer.accountName.nickName"/>
			<bind name="watchDH" value="'level'; ['entityPlayer.accountLevel.evLevelChanged']; entityPlayer.accountLevel.level"/>
			<bind name="watchDH" value="'rank'; ['entityPlayer.accountRank.evRankChanged']; entityPlayer.accountRank.rank"/>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextAccentBold"/>
				<style>
					<marginTop value="5px"/>
					<leading value="-4"/>
					<maxWidth value="200"/>
					<textAlign value="center"/>
				</style>
				<bind name="class" value="'$FontSizeHeader4'"/>
				<bind name="text" value="data.clubName"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="tooltip" value="'InteractiveHeaderClubInfoTooltip'; { 	_fromType: 'invitor', _clubName: data.clubName, _rating: data.clubRating, _league: data.clubLeague,
																	_level: level,
																	_rank: rank,
																	_playerName: nickName}"/>
				<bind name="instance" value="'ClubIconForInvitation'; {_rating: data.clubRating, _league: data.clubLeague, _clubName: data.clubName}"/>
			</block>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginTop value="-75px"/>
				<marginBottom value="15px"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<styleSheet value="h3
						{
							font-family: $WWSDefaultFontBold;
						}"/>
				</style>
				<bind name="text" value="subst('IDS_PLAYER_INVITES_YOU_TO_JOIN_A_CLUB', [], {playerName: '&lt;body&gt;&lt;h3&gt;' + nickName + '&lt;/h3&gt;'}) + '&lt;/body&gt;'"/>
			</block>
		</block>
	</block>
	<block className="VoteContent">
		<bind name="entityDH" value="'entityPlayer'; data.playerEntityId"/>
		<bind name="watchDH" value="'name'; ['entityPlayer.accountName.evChanged']; entityPlayer.accountName.name"/>
		<bind name="watchDH" value="'nickName'; ['entityPlayer.accountName.evChanged']; entityPlayer.accountName.nickName"/>
		<bind name="watchDH" value="'level'; ['entityPlayer.accountLevel.evLevelChanged']; entityPlayer.accountLevel.level"/>
		<bind name="watchDH" value="'rank'; ['entityPlayer.accountRank.evRankChanged']; entityPlayer.accountRank.rank"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="watch" value="'isAllowedToVote'; accountLevelInfo.playerName == name ? false : true"/>
		<bind name="entityDH" value="'entityCreator'; data.creatorEntityId"/>
		<bind name="watchDH" value="'creatorNickName'; ['entityCreator.accountName.evChanged']; entityCreator.accountName.nickName"/>
		<bind name="watchDH" value="'creatorAccountLevel'; ['entityCreator.accountLevel.evLevelChanged']; entityCreator.accountLevel.level"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<style>
					<marginLeft value="1px"/>
					<marginRight value="1px"/>
				</style>
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="22px"/>
					<marginBottom value="18px"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeader"/>
					<style>
						<maxWidth value="350"/>
						<textAlign value="center"/>
						<alpha value="0.85"/>
					</style>
					<bind name="text" value="(data.voteType == VoteTypes.VOTE_TYPE_PLAYER_INVITE	? tr('IDS_INVITE_PLAYER_TO_CLUB') :
							data.voteType == VoteTypes.VOTE_TYPE_PLAYER_REJECT	? tr('IDS_EXCLUDE_PLAYER_FROM_CLUB') :
							data.voteType == VoteTypes.VOTE_TYPE_LEADER_REJECT	? tr('IDS_EXCLUDE_LEADER_FROM_CLUB')
																				: 'Unknown data.VoteType') + tr('IDS_QUESTION')"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="3px"/>
					</style>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<bind name="instance" value="'PlayerContactItemSimple'; {
						_level: level,
						_rank: rank,
						_playerName: nickName}"/>
					</block>
					<block>
						<bind name="visible" value="data.voteType == VoteTypes.VOTE_TYPE_LEADER_REJECT"/>
						<style>
							<marginTop value="6px"/>
							<marginLeft value="2px"/>
						</style>
						<block className="icon_club_leader" type="native"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="data.voteType == VoteTypes.VOTE_TYPE_LEADER_REJECT"/>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="15px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeader"/>
						<style>
							<maxWidth value="350"/>
							<textAlign value="center"/>
							<alpha value="0.85"/>
							<styleSheet value="h2
							{
								font-size: 13;
								color: #FFFFFF;
							}
							h3
							{
								font-family: $WWSDefaultFontBold;
								font-size: 17;
								color: #FFFFFF;
							}"/>
						</style>
						<bind name="text" value="'&lt;body&gt;' + subst('IDS_NEW_CLUB_LEADER_AFTER_VOTE', [], {newLeaderNickname: '&lt;h2&gt;' +  creatorAccountLevel + ' &lt;/h2&gt;&lt;h3&gt;' + creatorNickName + '&lt;/h3&gt;'}) + '&lt;/body&gt;'"/>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_VOICES_NEEDED_HINT'}"/>
					<block type="text">
						<styleClass value="$TextHeader"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="tr('IDS_VOICES_NEEDED') + tr('IDS_COLON') + ' ' + (data.votes)"/>
					</block>
				</block>
				<block>
					<bind name="fade" value="(data.voteState == VoteTypes.VOTE_STATE_PROCESS); 0.15; {alpha: 0, top: 10}; {alpha: 1, top:0 }; {alpha: 0, top: -10}; 1; 0.15"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeader"/>
						<style>
							<right value="0px"/>
							<bottom value="3"/>
						</style>
						<bind name="class" value="'$FontSizeHeader4'"/>
						<bind name="countdown" value="data.timer; 'countdownText'; 'mm:ss'"/>
						<bind name="pureText" value="countdownText"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="0"/>
				</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>
				<marginTop value="10px"/>
				<marginBottom value="12px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<block>
				<bind name="instance" value="'VoteVoiceItem'; {_voice: data.voices[0], data:data, _voteFor: true}"/>
			</block>
			<block type="text">
				<style>
					<marginLeft value="18px"/>
					<marginRight value="18px"/>
					<marginTop value="18px"/>
				</style>
				<styleClass value="$TextAccentBoldAccountLevel2"/>
				<text value="IDS_COLON"/>
			</block>
			<block>
				<bind name="instance" value="'VoteVoiceItem'; {_voice: data.voices[1], data:data, _voteAgainst: true}"/>
			</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>
			<styleClass value="$InfoBlockIndent"/>
			<style>
				<width value="100%"/>
				<height value="30px"/>
			</style>
			<block>
				<bind name="visible" value="data.myVoice == (-1) &amp;&amp; isAllowedToVote &amp;&amp; data.voteState == VoteTypes.VOTE_STATE_PROCESS"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<block className="button_default_small" type="native">
					<style>
						<width value="110px"/>
					</style>
					<bind name="label" value="toUpperCase(tr('IDS_PRO'))"/>
					<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
					<bind name="action" value="'buttonClick';  data.actionName; data.callbackData[0]"/>
				</block>
				<block className="button_default_small" type="native">
					<style>
						<width value="110px"/>
						<marginLeft value="20px"/>
					</style>
					<bind name="label" value="toUpperCase(tr('IDS_CONTRA'))"/>
					<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
					<bind name="action" value="'buttonClick';  data.actionName; data.callbackData[1]"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="!(isAllowedToVote) || (isAllowedToVote &amp;&amp; data.myVoice != (-1)) || data.voteState != VoteTypes.VOTE_STATE_PROCESS"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="changeDispatch" value="data.voteState; data.voteState != VoteTypes.VOTE_STATE_PROCESS &amp;&amp; data.voteState != VoteTypes.VOTE_STATE_CREATING ? 'evVoteStateChanged' : null; null; 1"/>
				<bind name="dispatch" value="'evVoteStateChanged'; 'evShowMainStatus'"/>
				<bind name="dispatch" value="'evShowMainStatus'; data.voteState != VoteTypes.VOTE_STATE_PROCESS ? 'evHideMainStatus' : null; null; 1; 2.0"/>
				<bind name="dispatch" value="'evHideMainStatus'; data.voteState != VoteTypes.VOTE_STATE_PROCESS ? 'evShowResultStatus' : null; null; 1; 0.3"/>
				<block type="text">
					<bind name="appear" value="'evShowMainStatus'; 0.15; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
					<bind name="appear" value="'evHideMainStatus'; 0.15; 0; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 1"/>
					<styleClass value="$MiddleAlignedAbsolutely"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$TextHeaderWhiteBold"/>
					<bind name="class" value="data.result == 0 ? '$FontColorComparePositive' : '$None'"/>
					<bind name="text" value="(data.voteState == VoteTypes.VOTE_STATE_PROCESS)					? (isAllowedToVote 	? toUpperCase(tr('IDS_VOTE_IN_PROGRESS'))
																													: toUpperCase(tr('IDS_YOU_CANT_VOTE'))) :
							(data.voteState == VoteTypes.VOTE_STATE_DONE)						? (data.result == 0 ? toUpperCase(tr('IDS_VOTE_ACCEPTED'))
																													: toUpperCase(tr('IDS_VOTE_NOT_ACCEPTED')))
																								: toUpperCase(tr('IDS_VOTE_CANCELLED'))"/>
				</block>
				<block>
					<bind name="visible" value="data.voteState != VoteTypes.VOTE_STATE_PROCESS"/>
					<styleClass value="$MiddleAlignedAbsolutely"/>
					<styleClass value="$MiddleVAligned"/>
					<block type="text">
						<bind name="appear" value="'evShowResultStatus'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<styleClass value="$TextHeaderWhiteBold"/>
						<style>
							<alpha value="0"/>
						</style>
						<bind name="class" value="data.result == 0 ? '$FontColorComparePositive' : '$None'"/>
						<bind name="text" value=" (data.result != 0) ?	data.voteState == VoteTypes.VOTE_STATE_CANCELLED_BY_INITIATOR 	? toUpperCase(tr('IDS_REASON_CANCELLED_BY_INITIATOR')) :
														data.voteState == VoteTypes.VOTE_STATE_NO_SENSE 				? toUpperCase(tr('IDS_REASON_PLAYER_LEFT_CLUB'))
																														: toUpperCase(tr('IDS_REASON_NOT_ENOUGH_VOICES'))
													:	data.voteType == VoteTypes.VOTE_TYPE_PLAYER_INVITE	? toUpperCase(tr('IDS_INVITATION_TO_CLUB_SENT')) :
														data.voteType == VoteTypes.VOTE_TYPE_PLAYER_REJECT	? toUpperCase(tr('IDS_PLAYER_KICKED_FROM_CLUB')) :
														data.voteType == VoteTypes.VOTE_TYPE_LEADER_REJECT	? toUpperCase(tr('IDS_LEADER_KICKED_FROM_CLUB'))
																											: 'Unknown data.VoteType'"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="FormationNotificationHeader">
		<bind name="dispatch" value="'draggingChangedEv'; 'Tooltip.Close'; null; true"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="tooltip" value="'InteractiveHeaderClubInfoTooltip'; (data.idInGroup == 1) ? { _fromType: 'invitor', _clubName: _clubName, _rating: _rating, _league: _league,
																					_level: data.senderLevel, _rank: data.rank, _playerName: data.senderName} : null"/>
			<block className="icon_formation" type="native">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<left value="3px"/>
					<position value="absolute"/>
				</style>
				<bind name="gotoAndStop!" value="data.idInGroup == 0 ? 'seeker_division' : 'seeker_party'"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'PlayerContactItemSimple'; (data.idInGroup == 0) ? {_level: data.senderLevel, _rank: data.rank, _playerName: data.senderName} : null"/>
				<block type="text">
					<bind name="visible" value="(data.idInGroup == 1)"/>
					<style>
						<maxWidth value="280"/>
					</style>
					<styleClass value="$TextHeaderBold"/>
					<bind name="text" value="_clubName"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="button_close" type="native">
			<style>
				<position value="absolute"/>
				<right value="10"/>
				<top value="10px"/>
			</style>
			<bind name="action" value="'buttonClick'; data.actionName; data.callbackData[1]"/>
			<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_REJECT'}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<position value="absolute"/>
				<bottom value="0"/>
			</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 className="ClubNotificationHeader">
		<bind name="dispatch" value="'draggingChangedEv'; 'Tooltip.Close'; null; true"/>
		<bind name="entityDH" value="'entityPlayer'; data.playerEntityId"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="tooltip" value="'InteractiveHeaderClubInfoTooltip';  data.idInGroup == 2 ? {	_fromType: 'invitor', _clubName: _clubName, _rating: _rating, _league: _league,
																					_level: entityPlayer.accountLevel.level,
	                                                                                _rank: entityPlayer.accountRank.rank,
	                                                                                _playerName: entityPlayer.accountName.nickName}
																				: {	_fromType: 'initiator', _clubName: _clubName, _rating: _rating, _league: _league,
																					_level: _level, _rank: _rank, _playerName: _playerName}"/>
			<block>
				<style>
					<position value="absolute"/>
					<left value="5px"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<bind name="instance" value="'ClubLeagueIconSmall'; {_rating: _rating, _league: _league, _clubName: _clubName}"/>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="100%"/>
					</style>
					<block type="text">
						<style>
							<maxWidth value="280"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextHeaderBold"/>
						<bind name="text" value="_clubName"/>
					</block>
				</block>
			</block>
		</block>
		<block className="button_close" type="native">
			<bind name="visible" value="_showInVote == false"/>
			<style>
				<position value="absolute"/>
				<right value="10"/>
				<top value="10px"/>
			</style>
			<bind name="action" value="'buttonClick'; _vote ? 'cancelVote': data.actionName; _vote ? {voteId: data.voteId, category: VoteTypes.VOTE_CATEGORY_TEAM } : data.callbackData[1]"/>
			<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_REJECT'}"/>
		</block>
	</block>
	<block className="ClubInvitationHeader">
		<bind name="dispatch" value="'draggingChangedEv'; 'Tooltip.Close'; null; true"/>
		<styleClass value="$Fullsize"/>
		<block className="button_close" type="native">
			<bind name="visible" value="_showInVote == false"/>
			<style>
				<position value="absolute"/>
				<right value="10"/>
				<top value="10px"/>
			</style>
			<bind name="action" value="'buttonClick'; _vote ? 'cancelVote': data.actionName; _vote ? {voteId: data.voteId, category: VoteTypes.VOTE_CATEGORY_TEAM } : data.callbackData[1]"/>
			<bind name="dispatch" value="'mouseDown'; 'dragDisabledDown'"/>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: ((data.idInGroup == 3) ? 'IDS_CLOSE_UPPER_CASE' : 'IDS_REJECT')}"/>
		</block>
	</block>
	<block className="InteractiveMessagesSwitchButton">
		<bind name="dispatch" value="'click'; 'changeSelectedNotification'; {messageIndex: $index}"/>
		<style>
			<width value="25px"/>
			<height value="25px"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<block className="radiobutton_notext" type="native">
				<bind name="selected" value="(_currentIndex == $index)"/>
			</block>
		</block>
	</block>
	<block className="VoteVoiceItem">
		<block>
			<style>
				<width value="60px"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
					<right value="0px"/>
					<top value="12px"/>
				</style>
				<bind name="visible" value="_voteFor ? data.myVoice == 0 : data.myVoice == 1"/>
				<block className="icon_check" type="native"/>
			</block>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$ResultsReward"/>
				<bind name="class" value="(data.myVoice == 0 &amp;&amp; _voteFor) ||  (data.myVoice == 1 &amp;&amp; _voteAgainst)? '$FontColorGolden': '$None'"/>
				<bind name="text" value="_voice"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-6px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="class" value="(data.myVoice == 0 &amp;&amp; _voteFor) ||  (data.myVoice == 1 &amp;&amp; _voteAgainst)? '$FontColorGolden': '$None'"/>
				<styleClass value="$TextHeader"/>
				<bind name="text" value="_voteFor ? toUpperCase(tr('IDS_PRO')) : toUpperCase(tr('IDS_CONTRA'))"/>
			</block>
		</block>
	</block>
	<block className="PlayerContactItemSimple">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<style>
				<marginTop value="3px"/>
			</style>
			<bind name="visible" value="_rank == 0"/>
			<styleClass value="$TextSecondary"/>
			<bind name="text" value="_level"/>
		</block>
		<block>
			<bind name="visible" value="_rank != 0"/>
			<bind name="instance" value="'IconRankSmall'; {_rankId: _rank}"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="2px"/>
			</style>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="_tkStatus ? '$FontColorTeamkiller' : '$None'"/>
			<bind name="text" value="_playerName"/>
		</block>
	</block>
	<block className="InteractiveHeaderClubInfoTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="320px"/>
		</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>
				<marginLeft value="8px"/>
				<hitTest value="false"/>
			</style>
			<block>
				<style>
					<marginTop value="8px"/>
					<marginBottom value="7px"/>
				</style>
				<bind name="instance" value="'ClubLeagueIconSmall'; {_rating: _rating, _league: _league, _clubName: _clubName}"/>
			</block>
			<block>
				<style>
					<width value="202px"/>
					<height value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="6px"/>
						<width value="194px"/>
					</style>
					<styleClass value="$TextHeaderWhiteBold"/>
					<bind name="text" value="_clubName"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<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>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="tr('IDS_LEAGUE_'+ _league)"/>
			</block>
		</block>
		<block>
			<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>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="(_fromType == 'invitor' ? 'IDS_INVITE_FROM' : 'IDS_INITIATOR')"/>
			</block>
			<block>
				<style>
					<marginLeft value="4px"/>
					<marginTop value="1px"/>
				</style>
				<bind name="instance" value="'PlayerContactItemSimple'; {_level:_level, _rank: _rank, _playerName: _playerName, _tkStatus: _tkStatus}"/>
			</block>
		</block>
	</block>
	<block className="ClubIconForInvitation">
		<bind name="watch" value="'curLeague';	_league != null	? ((_league &gt; 2) ? '2'
																: _league)
												: '-1'"/>
		<style>
			<width value="260px"/>
			<height value="330px"/>
		</style>
		<block>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="watch" value="'clubHeaderBgrSymbol'; 'symbol:club_header_bgr_league_' + curLeague"/>
			<bind name="style" value="'backgroundImage'; clubHeaderBgrSymbol"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<top value="80px"/>
				</style>
				<block type="text">
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$TextAccentBoldAccountLevel1"/>
					<bind name="text" value="format(_rating, -1)"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<marginTop value="-8px"/>
					</style>
					<block>
						<block type="text">
							<styleClass value="$TextHeader"/>
							<bind name="class" value="'$Bold'"/>
							<bind name="text" value="toLowerCase(tr('IDS_RATING'))"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<style>
					<bottom value="102"/>
					<hitTest value="false"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ClubLeagueLabel'; (curLeague != '-1') ? {	_league: _league, _state: 'issued'} : null"/>
			</block>
		</block>
		<block>
			<style>
				<backgroundSize value="cover"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="watch" value="'clubLeagueSymbol'; 'symbol:club_header_league_' + curLeague"/>
			<bind name="style" value="'backgroundImage'; clubLeagueSymbol"/>
		</block>
	</block>
	<css name="$TextCarouselShipStatus">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="12"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF9933"/>
	</css>
	<block className="ShipCarouselContainer">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountSlotsNum'; ['resourceEntity.accountResource.evChangedSlotsNum']; resourceEntity.accountResource.slotsNum"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'carouselVisibility'; ['dockEntity.dockData.evUpdate']; dockEntity.dockData.carouselVisibility"/>
		<bind name="fade" value="carouselVisibility; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 1; (true &amp;&amp; dockDefaultValues.carouselVisibility) ? 0.25 : 0"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="feature" value="'17'; ''"/>
		<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>
		<style>
			<position value="absolute"/>
			<width value="100%"/>
			<bottom value="36px"/>
			<backgroundColor value="0x01000000"/>
		</style>
		<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="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
		<bind name="catch" value="'carouselViewChanged'; {isSmallCarouselView: !(isSmallCarouselView)}; 'saveCarouselViewState'"/>
		<bind name="action" value="'saveCarouselViewState'; 'setUserPref' ; {value : isSmallCarouselView, name: 'isSmallCarouselView'}"/>
		<bind name="catch" value="'carouselRowsCountChanged'"/>
		<block>
			<style>
				<position value="absolute"/>
				<top value="-30px"/>
			</style>
			<block className="CarouselFilters">
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
				<bind name="stageSize"/>
				<bind name="watch" value="'isFourRowsEnabled'; (stageHeight != null) ? (stageHeight &gt; (720 + 160)) : true"/>
				<bind name="watch" value="'isThreeRowsEnabled'; (stageHeight != null) ? (stageHeight &gt; (720 + 88)) : true"/>
				<bind name="watch" value="'curCarouselRows';	(userPrefs.curRowCountIndex == null)															? 0 :
									(userPrefs.curRowCountIndex == 2 &amp;&amp; isFourRowsEnabled)											? 2 :
									((userPrefs.curRowCountIndex == 2 || userPrefs.curRowCountIndex == 1) &amp;&amp; isThreeRowsEnabled)	? 1
																																	: 0"/>
				<bind name="action" value="'carouselRowsCountChangedByStageHeight'; 'setUserPref' ; {value : curCarouselRows, name: 'curRowCountIndex'}"/>
				<bind name="changeDispatch" value="curCarouselRows; 'carouselRowsCountChangedByStageHeight'"/>
				<bind name="feature" value="13;''"/>
				<bind name="action" value="(feature_13 == 'locked') ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_WITH_COMMANDER', value: false }"/>
				<bind name="action" value="(feature_13 == 'locked') ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_WITHOUT_COMMANDER', value: false }"/>
				<bind name="feature" value="16;''"/>
				<bind name="action" value="(feature_16 == 'locked') || (rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_RANKED_BATTLES', value: false }"/>
				<bind name="feature" value="19;''"/>
				<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
				<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
				<bind name="watchDH" value="'clubBattlesSeasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
				<bind name="watchDH" value="'clubBattlesSeasonStage'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.stage"/>
				<bind name="action" value="feature_19 == 'locked' || clubBattlesSeasonId &lt;= 0 || clubBattlesSeasonStage != 2 ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_CLUB_BATTLES', value: false }"/>
				<style>
					<marginLeft value="7px"/>
					<height value="30px"/>
					<flow value="horizontal"/>
				</style>
				<block>
					<bind name="name" value="'CarouselFiltersButton'"/>
					<block className="button_carousel_filters" type="native">
						<bind name="tooltip" value="'CarouselFiltersInfotip'; {AppliedFiltersCounter: AppliedFiltersCounter, _isSmallCarouselView: isSmallCarouselView}; TooltipBehaviour.verticalInfotipSwitch; null; 'carouselFiltersInfotipIsVIsible'"/>
						<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CAROUSEL_FILTERS'}], _maxWidth: 240 }"/>
						<bind name="selected" value="carouselFiltersInfotipIsVIsible"/>
					</block>
				</block>
				<bind name="catch" value="'shipNameFIlterInfotipSelectedChanged'"/>
				<bind name="firstEntityDH" value="'panelEntity'; CC.filterPanelComponent"/>
				<bind name="watchDH" value="'selectedFilters'; ['panelEntity.filterPanelComponent.evUpdate']; panelEntity.filterPanelComponent.selectedFilters"/>
				<block>
					<style>
						<height value="32px"/>
						<marginTop value="-4px"/>
						<marginRight value="12px"/>
						<marginLeft value="4px"/>
					</style>
					<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
					<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
					<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
					<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
					<bind name="watch" value="'isPveFilterVisible'; (selectedBattle.type == BattleTypes.PVE_BATTLE) &amp;&amp; chosenOperationId"/>
					<block>
						<bind name="visible" value="(isPveFilterVisible == true)"/>
						<bind name="instance" value="'AppliedPVEFilter'; (isPveFilterVisible == true) ? {} : null"/>
					</block>
					<block>
						<bind name="instance" value="'AppliedFilter'; {_filterType: 'shipName', shipNameFIlterInfotipSelected: shipNameFIlterInfotipSelected}"/>
						<bind name="instance" value="'AppliedFilter'; {_filterType: 'level'}"/>
						<bind name="instance" value="'AppliedFilter'; {_filterType: 'shipType'}"/>
						<bind name="instance" value="'AppliedFilter'; {_filterType: 'nation'}"/>
						<bind name="instance" value="'AppliedFilter'; {_filterType: 'special'}"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<bind name="instance" value="'ResetAllFilters'; selectedFilters.length &gt; 1 ? {} : null"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ShipCarousel'; {	_addShipSlotsBuyBlocks: (feature_17 != 'locked'),
											_shipFilterId: CC.mainShipFilter,
											_scrollToStart: true, 
											isSmallCarouselView: isSmallCarouselView }"/>
		</block>
		<block>
			<bind name="collectionDH" value="CC.ownShip; 'playerShips'"/>
			<bind name="transition" value="rollOver; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 0; rollOver ? 0 : 3"/>
			<style>
				<position value="absolute"/>
				<right value="38px"/>
				<top value="-37px"/>
				<flow value="horizontal"/>
			</style>
			<block>
				<style>
					<marginRight value="2px"/>
				</style>
				<block type="text">
					<style>
						<alpha value="0.75"/>
						<right value="0px"/>
						<hitTest value="false"/>
					</style>
					<styleClass value="$TextDefaultWhite"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="tr('IDS_SHIPS')+tr('IDS_COLON')+ ' ' + playerShips.length"/>
				</block>
				<block type="text">
					<bind name="visible" value="feature_17 != 'locked'"/>
					<style>
						<alpha value="0.75"/>
						<right value="0px"/>
						<marginTop value="-6px"/>
						<hitTest value="false"/>
					</style>
					<styleClass value="$TextDefaultWhite"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="tr('IDS_FREE_SLOTS') + ' ' + accountSlotsNum"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<top value="-26px"/>
				<right value="16px"/>
			</style>
			<block className="button_settings_small" type="native">
				<params>
					<param name="name" value="peculiarityFilter"/>
				</params>
				<bind name="tooltip" value="'CarouselFiltersContentInfotip'; {}; TooltipBehaviour.verticalInfotipSwitch"/>
				<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CAROUSEL_FILTERS_SPECIAL'}], _maxWidth: 240 }"/>
			</block>
		</block>
	</block>
	<block className="CarouselItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="dataRefDH" value="'shipEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'excludedMain'; ['shipEntity.mainShipFilter.evUpdate']; shipEntity.mainShipFilter.excluded"/>
		<bind name="watchDH" value="'excludedSSE'; ['shipEntity.shipFilterSSE.evUpdate']; shipEntity.shipFilterSSE.excluded"/>
		<bind name="watch" value="'excluded'; shipFilterId == CC.mainShipFilter ? excludedMain :  excludedSSE"/>
		<bind name="watchDH" value="'isNeedRepair'; ['shipEntity.ownShip.evUpdate']; shipEntity.ownShip.isNeedRepair"/>
		<bind name="watchDH" value="'isNeedShell'; ['shipEntity.ownShip.evUpdate']; shipEntity.ownShip.isNeedShell"/>
		<bind name="watchDH" value="'isLocked'; ['shipEntity.ownShip.evUpdate']; shipEntity.ownShip.isLocked"/>
		<bind name="watchDH" value="'isInFormation'; ['shipEntity.ownShip.evUpdate']; shipEntity.ownShip.isInFormation"/>
		<bind name="watchDH" value="'isDownloaded'; ['shipEntity.slimClientComponent.evUpdate']; shipEntity.slimClientComponent.isDownloaded"/>
		<bind name="watchDH" value="'flagName'; ['shipEntity.ship.evUpdate']; shipEntity.ship.flagName"/>
		<bind name="watchDH" value="'shipType'; ['shipEntity.ship.evUpdate']; shipEntity.ship.shipType"/>
		<bind name="watchDH" value="'levelRome'; ['shipEntity.ship.evUpdate']; shipEntity.ship.levelRome"/>
		<bind name="watchDH" value="'fullName'; ['shipEntity.ship.evUpdate']; shipEntity.ship.fullName"/>
		<bind name="watchDH" value="'shipId'; []; shipEntity.ship.id"/>
		<bind name="name" value="'carouselItem' + fullName"/>
		<bind name="watch" value="'isSelected'; shipId == _selectedShipId"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="feature" value="'17'; ''"/>
		<bind name="action" value="'click'; 'selectShip'; {shipId: shipId}"/>
		<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="'ShowOnlyPrimary'; (userPrefs.elementsGroupExpand.ShowOnlyPrimary == null) ? false : userPrefs.elementsGroupExpand.ShowOnlyPrimary "/>
		<bind name="watch" value="'ShowExcluded'; (userPrefs.elementsGroupExpand.ShowExcluded == null) ? false : userPrefs.elementsGroupExpand.ShowExcluded "/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="visible" value="ShowOnlyPrimary ? (playerShipInfo.isPrimary &amp;&amp; !excluded) : 
									ShowExcluded ? true : !excluded"/>
		<style>
			<width value="216px"/>
		</style>
		<bind name="style" value="'height'; _isSmallCarouselView ? '63px' : '126px'"/>
		<block>
			<bind name="style" value="'alpha'; !excluded ? 1 : 0.3"/>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<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="dock_thumb_normal_9s" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="popup" value="'ShipExtendedTooltip';
											{shipId: shipId,
											_needService: (isNeedRepair || isNeedShell),
											_isLocked: isLocked
											};
											
											1;{type:'lesta.unbound.bindings.popup.ReasonPopupSpacingComponent',params:{directionsPriority:['top'],reasonOffsetTop:10,}};{reason:{mouseOver:{action:'show',params:{duration:0.3,startProps:{alpha:0,x:0,y:10},finishProps:{alpha:1,x:0,y:0},delay:0.7}},mouseOut:{action:'hide',params:{duration:0.1,startProps:{alpha:1,x:0,y:0},finishProps:{alpha:0,x:0,y:-5}}},removedFromStage:{action:'hide',params:{duration:0.1,startProps:{alpha:1,x:0,y:0},finishProps:{alpha:0,x:0,y:-5}}},popup_opened:{action:'hideByPriority',params:{duration:0.1,startProps:{alpha:1,x:0,y:0},finishProps:{alpha:0,x:0,y:-5}}}},reasonScope:{onLostTop:{action:'hide',params:{duration:0.1,startProps:{alpha:1,x:0,y:0},finishProps:{alpha:0,x:0,y:-5}}}}
											}"/>
				<bind name="menu" value="'ShipTreeMenu'; { shipId: shipId }"/>
				<bind name="doubleClickEnabled" value="feature_17 != 'locked' ? true : false"/>
				<bind name="action" value="'doubleClick'; 'changeInset'; { inset: LobbyConstants.SHIP_MODULES }"/>
				<bind name="soundSet" value="'carousel_item'"/>
				<bind name="selected" value="isSelected"/>
				<bind name="name" value="'carouselItem' + fullName + '_indicator'"/>
			</block>
			<block>
				<bind name="instance" value="'ShipCarouselSlotWrapper';
				{
					_isSmallCarouselView : _isSmallCarouselView,
					_data : {
						isNeedRepair: isNeedRepair,
						isNeedShell: isNeedShell,
						isLocked: isLocked,
						shipCountry: flagName,
						shipId: shipId,
						shipType: shipType,
						shipLevelRome: levelRome,
						rollOver: rollOver,
						isInFormation: isInFormation,
						isDownloaded: isDownloaded,
						isFull: slimClientData.isFull,
						_selected: isSelected,
						_rollOver: rollOver,
						_mouseDown: mouseDown
					}
				}"/>
			</block>
		</block>
	</block>
	<block className="ShipCarouselSlotWrapper">
		<bind name="child" value="_isSmallCarouselView; _data; 'ShipCarouselDefaultSlot'; 'ShipCarouselSmallSlot'"/>
	</block>
	<block className="ShipCarousel">
		<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="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="watch" value="'curRowCountIndex'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="watch" value="'carouselSmallViewHeight'; (curRowCountIndex == 0 || (!isSmallCarouselView))	? 2*63
																							: curRowCountIndex == 1 ? 3*63
																							: 4*63"/>
		<bind name="watch" value="'rowsCount'; 																	(!isSmallCarouselView)	? 1
																							:	curRowCountIndex == 0 	? 2 
																							: 	curRowCountIndex == 1 	? 3
																							: 4"/>
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<minHeight value="126"/>
		</style>
		<bind name="style" value="'height'; carouselSmallViewHeight +  'px'"/>
		<bind name="name" value="'carouselPlayerShips'"/>
		<bind name="stageSize"/>
		<bind name="watch" value=" 'maxSlotsOnScreen'; isSmallCarouselView ? ((stageWidth - 58) / 214) / 2 : ((stageWidth - 58) / 214) "/>
		<block>
			<style>
				<width value="20px"/>
				<height value="100%"/>
			</style>
			<block className="button_slide_left" type="native">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<params>
					<param name="focusable" value="false"/>
				</params>
				<bind name="enabled" value="ShipsCarouselCanScrollLeft"/>
				<bind name="name" value="'buttonCarouselLeft'"/>
				<bind name="dispatch" value="'buttonClick'; 'ShipsCarouselScrollPrev'"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%f"/>
				<height value="100%"/>
				<overflow value="scroll"/>
				<scrollArea value="ModernScrollAreaHorizontal"/>
				<scrollbarController value="lesta.unbound.style.UbScrollingControllerTouch"/>
				<wheelScrollSpeed value="216"/>
				<layout value="lesta.unbound.layout.measure.CarouselLayout"/>
				<itemWidth value="216px"/>
				<itemHeight value="126px"/>
			</style>
			<bind name="style" value="'flow'; isSmallCarouselView ? 'vtile' : 'horizontal'"/>
			<bind name="style" value="'itemHeight'; isSmallCarouselView ? '63px' : '126px'"/>
			<bind name="name" value="'shipCarouseContaner'"/>
			<bind name="generatorDH" value="_shipFilterId; 'CarouselItem'; 'sorted'; { shipFilterId: _shipFilterId, _selectedShipId: shipIdForModuleInset,
                                                                _isSmallCarouselView: isSmallCarouselView,
                                                                isFull: slimClientData.isFull}"/>
			<bind name="scrollController" value="'ShipsCarousel'; 216; rowsCount"/>
			<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerShipsCarousel; _shipFilterId; 'sorted'; 'ShipsCarousel'; _scrollToStart"/>
			<bind name="dispatch" value="'addedToStage'; 'ShipsCarouselScrollToSelected'"/>
			<block>
				<bind name="visible" value="ShowBuySlotSlots"/>
				<block className="ShipCarouselPurchaseShip">
					<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
					<bind name="watchDH" value="'accountSlotsNum'; ['resourceEntity.accountResource.evChangedSlotsNum']; resourceEntity.accountResource.slotsNum"/>
					<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="'curRowCountIndex'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
					<bind name="class" value="curRowCountIndex == 1 ? '$CarouselServiceBlockSmall' : '$CarouselServiceBlock'"/>
					<bind name="watch" value="'ShowBuySlotSlots'; (userPrefs.elementsGroupExpand.ShowBuySlotSlots == null) ? false : userPrefs.elementsGroupExpand.ShowBuySlotSlots"/>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$MiddleVAligned"/>
						<block>
							<style>
								<width value="190px"/>
							</style>
							<block className="button_dock" type="native">
								<bind name="tooltip" value="'PurchaseShipTooltip'; {}; 1"/>
								<style>
									<width value="100%"/>
									<height value="30px"/>
								</style>
								<bind name="enabled" value="_enabled"/>
								<bind name="action" value="'buttonClick'; 'changeInset'; { inset: LobbyConstants.SHIP_RESEARCH_TREE}"/>
								<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
								<block>
									<style>
										<marginTop value="8px"/>
									</style>
									<styleClass value="$MiddleAligned"/>
									<style>
										<mouseEnabled value="false"/>
										<mouseChildren value="false"/>
									</style>
									<block type="text">
										<styleClass value="$TextDefaultBold"/>
										<styleClass value="$MiddleVAligned"/>
										<text value="IDS_PURCHASE_SHIP_UPPER_CASE"/>
									</block>
									<style>
										<flow value="horizontal"/>
									</style>
								</block>
							</block>
						</block>
						<block>
							<bind name="visible" value="accountSlotsNum &gt; 0"/>
							<styleClass value="$MiddleAligned"/>
							<style>
								<hitTest value="false"/>
								<marginTop value="-6px"/>
							</style>
							<block type="text">
								<bind name="name" value="'ShipCarouselFreeSlots'"/>
								<styleClass value="$TextDefault"/>
								<bind name="class" value="'$FontColorBlueish'"/>
								<bind name="text" value="tr('IDS_FREE_SLOTS')  + ' ' + accountSlotsNum"/>
							</block>
						</block>
						<block>
							<bind name="visible" value="accountSlotsNum == 0"/>
							<styleClass value="$MiddleAligned"/>
							<style>
								<hitTest value="false"/>
								<marginTop value="-8px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultBold"/>
								<styleClass value="$FontColorUnready"/>
								<style>
									<maxWidth value="170"/>
									<textAlign value="center"/>
								</style>
								<bind name="text" value="'[icon] ' + tr('IDS_NO_FREE_SLOTS')"/>
								<bind name="substitute" value="''; 5; {'[icon]': 'icon_warning_orange_bm'}"/>
							</block>
						</block>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="ShowBuySlotSlots"/>
				<block className="ShipCarouselPurchaseShipSlot">
					<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'SLOT_COST'; 'slotPrice'"/>
					<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="'curRowCountIndex'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
					<bind name="class" value="curRowCountIndex == 1 ? '$CarouselServiceBlockSmall' : '$CarouselServiceBlock'"/>
					<bind name="watch" value="'ShowBuySlotSlots'; (userPrefs.elementsGroupExpand.ShowBuySlotSlots == null) ? false : userPrefs.elementsGroupExpand.ShowBuySlotSlots"/>
					<block className="inner_panel" type="native">
						<styleClass value="$Fullsize"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<styleClass value="$MiddleAligned"/>
						<block>
							<style>
								<width value="190px"/>
							</style>
							<block className="button_dock" type="native">
								<bind name="tooltip" value="'PurchaseSlotTooltip'; {}; 1"/>
								<style>
									<width value="100%"/>
									<height value="30px"/>
								</style>
								<bind name="enabled" value="_enabled"/>
								<bind name="name" value="'buttonBuySlots'"/>
								<bind name="input"/>
								<block>
									<style>
										<marginTop value="8px"/>
									</style>
									<styleClass value="$MiddleAligned"/>
									<style>
										<mouseEnabled value="false"/>
										<mouseChildren value="false"/>
									</style>
									<block type="text">
										<styleClass value="$TextDefaultBold"/>
										<styleClass value="$MiddleVAligned"/>
										<text value="IDS_PURCHASE_SLOT_FOR_UPPER_CASE"/>
									</block>
									<style>
										<flow value="horizontal"/>
									</style>
								</block>
							</block>
						</block>
						<block>
							<styleClass value="$MiddleAligned"/>
							<style>
								<marginTop value="-6px"/>
							</style>
							<bind name="instance" value="'PriceTag'; { priceInfo: slotPrice.prices[0], _showDiscountTag:true}"/>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<height value="100%"/>
				<width value="20px"/>
			</style>
			<block className="button_slide_right" type="native">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<params>
					<param name="focusable" value="false"/>
				</params>
				<bind name="enabled" value="ShipsCarouselCanScrollRight"/>
				<bind name="name" value="'buttonCarouselRight'"/>
				<bind name="dispatch" value="'buttonClick'; 'ShipsCarouselScrollNext'"/>
			</block>
		</block>
	</block>
	<css name="$CarouselServiceBlock">
		<marginBottom value="3px"/>
		<height value="120px"/>
		<width value="204px"/>
		<marginLeft value="8px"/>
		<marginRight value="8px"/>
		<marginTop value="3px"/>
	</css>
	<css name="$CarouselServiceBlockSmall">
		<marginBottom value="3px"/>
		<height value="88px"/>
		<width value="204px"/>
		<marginLeft value="8px"/>
		<marginRight value="8px"/>
		<marginTop value="3px"/>
	</css>
	<block className="ShipCarouselPurchaseShip">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountSlotsNum'; ['resourceEntity.accountResource.evChangedSlotsNum']; resourceEntity.accountResource.slotsNum"/>
		<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="'curRowCountIndex'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="class" value="curRowCountIndex == 1 ? '$CarouselServiceBlockSmall' : '$CarouselServiceBlock'"/>
		<block className="inner_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<block>
				<style>
					<width value="190px"/>
				</style>
				<block className="button_dock" type="native">
					<bind name="tooltip" value="'PurchaseShipTooltip'; {}; 1"/>
					<style>
						<width value="100%"/>
						<height value="30px"/>
					</style>
					<bind name="enabled" value="_enabled"/>
					<bind name="action" value="'buttonClick'; 'changeInset'; { inset: LobbyConstants.SHIP_RESEARCH_TREE}"/>
					<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
					<block>
						<style>
							<marginTop value="8px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<style>
							<mouseEnabled value="false"/>
							<mouseChildren value="false"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<text value="IDS_PURCHASE_SHIP_UPPER_CASE"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="accountSlotsNum &gt; 0"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<hitTest value="false"/>
					<marginTop value="-6px"/>
				</style>
				<block type="text">
					<bind name="name" value="'ShipCarouselFreeSlots'"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="tr('IDS_FREE_SLOTS')  + ' ' + accountSlotsNum"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="accountSlotsNum == 0"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<hitTest value="false"/>
					<marginTop value="-8px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<styleClass value="$FontColorUnready"/>
					<style>
						<maxWidth value="170"/>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="'[icon] ' + tr('IDS_NO_FREE_SLOTS')"/>
					<bind name="substitute" value="''; 5; {'[icon]': 'icon_warning_orange_bm'}"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ShipCarouselPurchaseShipSlot">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'SLOT_COST'; 'slotPrice'"/>
		<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="'curRowCountIndex'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="class" value="curRowCountIndex == 1 ? '$CarouselServiceBlockSmall' : '$CarouselServiceBlock'"/>
		<block className="inner_panel" type="native">
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MiddleAligned"/>
			<block>
				<style>
					<width value="190px"/>
				</style>
				<block className="button_dock" type="native">
					<bind name="tooltip" value="'PurchaseSlotTooltip'; {}; 1"/>
					<style>
						<width value="100%"/>
						<height value="30px"/>
					</style>
					<bind name="enabled" value="_enabled"/>
					<bind name="name" value="'buttonBuySlots'"/>
					<bind name="input"/>
					<block>
						<style>
							<marginTop value="8px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<style>
							<mouseEnabled value="false"/>
							<mouseChildren value="false"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefaultBold"/>
							<styleClass value="$MiddleVAligned"/>
							<text value="IDS_PURCHASE_SLOT_FOR_UPPER_CASE"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="-6px"/>
				</style>
				<bind name="instance" value="'PriceTag'; { priceInfo: slotPrice.prices[0], _showDiscountTag:true}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ShipCarouselDefaultSlot">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<style>
			<width value="204px"/>
			<height value="120px"/>
		</style>
		<bind name="transition" value="_selected; 0.15; {width: 204, height: 120}; {width: 216, height: 126}"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; 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="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="watchDH" value="'upgradableShipInfo'; ['shipEntity.upgradableShipInfo.evUpdate']; shipEntity.upgradableShipInfo"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountResource';	['resourceEntity.accountResource.evChangedGold','resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'CANCEL_BATTLE_LOCK_COOLDOWN_Cost'; 'pveCooldownCost'"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="watch" value="'freezeListPath'; playerShipInfo.id + '_' + selectedBattle.type"/>
		<bind name="primaryEntityDH" value="'shipFreezeListEntity'; CC.freezeList; freezeListPath"/>
		<bind name="watchDH" value="'freezeListArr'; ['shipFreezeListEntity.freezeList.evUpdate']; shipFreezeListEntity.freezeList.items"/>
		<bind name="watch" value="'isShipFrozen'; (shipFreezeListEntity ? true : false)"/>
		<bind name="watch" value="'freezeDeficit'; pveCooldownCost.prices[0].finalPrice - accountResource[pveCooldownCost.prices[0].currency]"/>
		<block className="thumb_hl_red" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="selected" value="_selected"/>
			<bind name="visible" value="((isNeedRepair || isNeedShell || !isDownloaded || isShipFrozen) ? true : false)"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<block>
				<style>
					<position value="absolute"/>
					<left value="2px"/>
					<top value="2px"/>
					<alpha value="0.5"/>
					<width value="196px"/>
					<height value="118px"/>
					<hitTest value="false"/>
				</style>
				<bind name="transition" value="!_selected; 0.15; {width: 208, height: 126}; {width: 196, height: 118} "/>
				<bind name="instance" value="'NationFlagsBig'; {_width: '100%', _height: '100%', shipCountry: shipInfo.flagName}"/>
			</block>
			<block>
				<bind name="style" value="'alpha'; (isNeedRepair || isNeedShell || isLocked || (!isDownloaded) || (playerShipInfo.crewId == 0) || isShipFrozen) ? 0.3 : 1"/>
				<style>
					<width value="204px"/>
					<height value="120px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
					<hitTest value="false"/>
				</style>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathPreview"/>
				<bind name="transition" value="_selected; 0.15; {width: 204, height: 120}; {width: 214, height: 126}"/>
			</block>
			<block>
				<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_TOOLTIP_PRIMARY_SHIP', tooltipSubText: 'IDS_TOOLTIP_PRIMARY_SHIP_DESCRIPTION'}"/>
				<style>
					<position value="absolute"/>
					<right value="-1px"/>
					<top value="-1px"/>
				</style>
				<bind name="visible" value="playerShipInfo.isPrimary"/>
				<block className="icon_primary_ribbon" type="native"/>
			</block>
			<block>
				<bind name="visible" value="(playerShipInfo.timeRent &gt; 0)"/>
				<bind name="name" value="'timeRent_' + shipInfo.fullName"/>
				<style>
					<position value="absolute"/>
					<right value="3px"/>
					<top value="3px"/>
				</style>
				<bind name="instance" value="'RentTimer'; (playerShipInfo.timeRent &gt; 0) ? {_timeRent: playerShipInfo.timeRent} : null"/>
			</block>
			<block>
				<bind name="style" value="'alpha'; (isNeedRepair || isNeedShell || isLocked || !isDownloaded || (playerShipInfo.crewId == 0) || isShipFrozen) ? 0.3 : 1"/>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="8px"/>
					<marginTop value="4px"/>
					<marginRight value="8px"/>
					<marginBottom value="4px"/>
					<hitTest value="false"/>
				</style>
				<block>
					<style>
						<height value="20px"/>
					</style>
					<block className="icon_wreath" type="native">
						<bind name="name" value="upgradableShipInfo.isElite ? 'CarouselShipElite_' + shipInfo.fullName : '' "/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<left value="-5px"/>
						</style>
						<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
						<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
										shipInfo.isPremium 	? 'premium'
															: 'elite'"/>
					</block>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<block className="icon_ship" type="native">
							<style>
								<marginBottom value="2px"/>
							</style>
							<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: shipTypeIDS}; 0"/>
						</block>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryBold"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
						<style>
							<marginTop value="-1px"/>
							<marginLeft value="3px"/>
							<marginRight value="3px"/>
						</style>
						<bind name="text" value="shipLevelRome"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<bottom value="2px"/>
						<right value="0"/>
					</style>
					<block type="text">
						<style>
							<width value="115px"/>
							<textAlign value="right"/>
							<multiline value="false"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$LetterSpacingSmall'"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
						<bind name="text" value="toUpperCase(tr(shipInfo.nameIDS))"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="style" value="'alpha'; (isNeedRepair || isNeedShell || isLocked || (playerShipInfo.crewId == 0) || (!isDownloaded) || isShipFrozen) ? 0.5 : 1"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; {_multiParagraphArray: [	{ _paragraphText: (playerShipInfo.remainingExpBonusWins &gt; 1) 	? subst('IDS_TOOLTIP_EXPERIENCE_MULTIPLIER', [], {_battleAmount: playerShipInfo.remainingExpBonusWins}, playerShipInfo.remainingExpBonusWins)
																																			: 'IDS_TOOLTIP_EXPERIENCE_MULTIPLIER_FIRST_WIN' },
																			{ _paragraphText: 'IDS_FIRST_WIN_HINT_EXT' }
																			], _maxWidth: 300}"/>
			<style>
				<position value="absolute"/>
				<bottom value="4px"/>
				<left value="8px"/>
			</style>
			<bind name="instance" value="'DoubleExperience'; (playerShipInfo.expMultiply &gt; 1) ? { expMultiplyPercentsString : subst('%m',[playerShipInfo.expMultiply]) } : null"/>
		</block>
		<block>
			<bind name="name" value="'isLockedShip_' + shipInfo.fullName + '_' + isLocked"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<hitTest value="false"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ShipCarouselSlotStatus';	(isShipFrozen &amp;&amp; !(_rollOver))																	? { _status:  toUpperCase(tr('IDS_SHIP_FROZEN_FOR_PVE')), isPositive: false, _small: true} :
														(isNeedRepair || isNeedShell) &amp;&amp; !(_rollOver) &amp;&amp; !(_mouseDown) &amp;&amp; playerShipInfo.crewId != 0	? { _status: toUpperCase(tr('IDS_NEED_SERVICE')), isPositive: false, _small: true} :
														isInFormation																					? { _status: toUpperCase(tr('IDS_READY_TO_BATTLE_IN_' + toUpperCase(divisionEntranceData.divisionType))), isPositive: true, _small: true } :
														isLocked																						? { _status: toUpperCase(tr('IDS_IN_BATTLE')), isPositive: false, _small: true} :
														(playerShipInfo.crewId == 0)																	? { _status: toUpperCase(tr('IDS_NO_CREW')), isPositive: false, _small: true}
																																					: null "/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="8px"/>
				</style>
				<bind name="instance" value="'CarouselShipFreeze'; (isShipFrozen &amp;&amp; !(_rollOver)) ? {_freezeListArr: freezeListArr} : null"/>
			</block>
		</block>
		<block>
			<style>
				<width value="190px"/>
			</style>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'DockButtonCostMedium'; !isShipFrozen &amp;&amp; (isNeedRepair || isNeedShell) &amp;&amp; _rollOver &amp;&amp;
												(playerShipInfo.creditsDeficit &lt;= 0) &amp;&amp; playerShipInfo.crewId != 0 	? { _label: 'IDS_SERVICE_C', priceInfo: {	finalPrice: playerShipInfo.costTotal,
																																								currency: 'credits'},
																														_enabled: true, _action: 'serveShip', _actionParams: { shipId : playerShipInfo.id } }
																													: null"/>
			<bind name="instance" value="'DockButtonCostMedium'; isShipFrozen &amp;&amp; (freezeDeficit &lt;= 0) &amp;&amp; _rollOver	?	{	_label: 'IDS_UNFREEZE_FOR_PVE_BTN',
																											priceInfo: pveCooldownCost.prices[0],
																											_enabled: true, 
																											_request: 'openUnfreezeShipWindow',
																											_requestParams: { shipId: playerShipInfo.id, battleType: selectedBattle.type }
																										}
																									:	null"/>
		</block>
		<bind name="watch" value="'isFreezeDeficit';	(isShipFrozen &amp;&amp; (freezeDeficit &gt; 0))"/>
		<bind name="watch" value="'isRepairDeficit';	((isNeedRepair || isNeedShell) &amp;&amp; (playerShipInfo.creditsDeficit &gt; 0))"/>
		<bind name="watch" value="'isDeficitIndicatorVisible';	(isRepairDeficit || isFreezeDeficit) &amp;&amp; _rollOver"/>
		<block>
			<bind name="visible" value="isDeficitIndicatorVisible"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'CarouselNaturalIndicator';  isFreezeDeficit						? { _priceInfo: pveCooldownCost.prices[0], _label: 'IDS_PVE_FREEZE_COST', _deficit: freezeDeficit} :
													 (isRepairDeficit &amp;&amp; !(isShipFrozen))	? { _priceInfo: {finalPrice: playerShipInfo.costTotal, currency: 'credits'}, _label: 'IDS_SERVICE_COST', _deficit: playerShipInfo.creditsDeficit}
																							: null"/>
		</block>
		<block>
			<bind name="visible" value="!(shipInfoSlim.isDownloaded)"/>
			<styleClass value="$MiddleVAlignedAbsolutely"/>
			<style>
				<left value="10px"/>
			</style>
			<bind name="instance" value="'IconSlimClient'; !(shipInfoSlim.isDownloaded) ? { _isEventLike: shipInfo.isEventLike } : null"/>
		</block>
	</block>
	<block className="ShipCarouselSmallSlot">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ownShip; 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="'playerShipInfo'; ['shipEntity.ownShip.evUpdate', 'shipEntity.ownShip.evCrewChanged']; shipEntity.ownShip"/>
		<bind name="watchDH" value="'upgradableShipInfo'; ['shipEntity.upgradableShipInfo.evUpdate']; shipEntity.upgradableShipInfo"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountResource';	['resourceEntity.accountResource.evChangedGold','resourceEntity.accountResource.evChangedCredit'];	resourceEntity.accountResource"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + 'CANCEL_BATTLE_LOCK_COOLDOWN_Cost'; 'pveCooldownCost'"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="watch" value="'freezeListPath'; playerShipInfo.id + '_' + selectedBattle.type"/>
		<bind name="primaryEntityDH" value="'shipFreezeListEntity'; CC.freezeList; freezeListPath"/>
		<bind name="watchDH" value="'freezeListArr'; ['shipFreezeListEntity.freezeList.evUpdate']; shipFreezeListEntity.freezeList.items"/>
		<bind name="watch" value="'isShipFrozen'; (shipFreezeListEntity ? true : false)"/>
		<bind name="watch" value="'freezeDeficit'; pveCooldownCost.prices[0].finalPrice - accountResource[pveCooldownCost.prices[0].currency]"/>
		<style>
			<width value="204px"/>
			<height value="56px"/>
		</style>
		<bind name="transition" value="_selected; 0.15; {width: 204, height: 56}; {width: 216, height: 60}"/>
		<block className="thumb_hl_red" type="native">
			<bind name="visible" value="((isNeedRepair || isNeedShell || isShipFrozen) ? true : false)"/>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="selected" value="_selected"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<block>
				<style>
					<position value="absolute"/>
					<alpha value="0.6"/>
					<top value="2px"/>
					<width value="95px"/>
					<height value="56px"/>
					<hitTest value="false"/>
				</style>
				<bind name="transition" value="!_selected; 0.15; {width: 99, height: 60}; {width: 95, height: 56}"/>
				<bind name="instance" value="'NationFlagsSmall'; {_width: '100%', _height: '100%', shipCountry: shipCountry}"/>
			</block>
			<block>
				<bind name="style" value="'alpha'; (isNeedRepair || isNeedShell || isLocked || (playerShipInfo.crewId == 0) || !isDownloaded || isShipFrozen) ? 0.3 : 1"/>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<marginLeft value="8px"/>
					<marginTop value="4px"/>
					<marginRight value="8px"/>
					<marginBottom value="4px"/>
					<marginBottom value="4px"/>
					<hitTest value="false"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<height value="20px"/>
						<marginTop value="2px"/>
					</style>
					<block className="icon_wreath" type="native">
						<bind name="name" value="upgradableShipInfo.isElite ? 'CarouselShipElite_' + shipInfo.fullName : '' "/>
						<styleClass value="$MiddleVAlignedAbsolutely"/>
						<style>
							<left value="-5px"/>
						</style>
						<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
						<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
										shipInfo.isPremium 	? 'premium'
															: 'elite'"/>
					</block>
					<block className="icon_ship" type="native">
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: shipTypeIDS}; 0"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryBold"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
						<style>
							<marginTop value="-1px"/>
							<marginLeft value="3px"/>
							<marginRight value="3px"/>
							<width value="40px"/>
						</style>
						<bind name="text" value="shipLevelRome"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<right value="0px"/>
					</style>
					<bind name="instance" value="'ShipSilhouetteRightAligned'; {_shipID: shipInfo.id}"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<bottom value="-4px"/>
						<right value="10"/>
					</style>
					<block type="text">
						<style>
							<width value="180px"/>
							<textAlign value="left"/>
                            <fontSize value="14"/>
						</style>
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$LetterSpacingSmall'"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
						<bind name="text" value="toUpperCase(tr(shipInfo.nameIDS))"/>
					</block>
				</block>
			</block>
			<block>
				<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_TOOLTIP_PRIMARY_SHIP', tooltipSubText: 'IDS_TOOLTIP_PRIMARY_SHIP_DESCRIPTION'}"/>
				<style>
					<position value="absolute"/>
					<right value="-1px"/>
					<top value="-1px"/>
				</style>
				<bind name="visible" value="playerShipInfo.isPrimary"/>
				<block className="icon_primary_ribbon" type="native"/>
			</block>
			<block>
				<bind name="visible" value="(playerShipInfo.timeRent &gt; 0)"/>
				<bind name="name" value="'timeRent_' + shipInfo.fullName"/>
				<style>
					<position value="absolute"/>
					<right value="3px"/>
					<top value="3px"/>
				</style>
				<bind name="instance" value="'RentTimer'; (playerShipInfo.timeRent &gt; 0) ? {_timeRent: playerShipInfo.timeRent} : null"/>
			</block>
			<block>
				<bind name="style" value="'alpha'; (isNeedRepair || isNeedShell || isLocked || (playerShipInfo.crewId == 0) || !isDownloaded || isShipFrozen) ? 0.5 : 1"/>
				<bind name="tooltip" value="'MouseInstructionTooltip'; {_multiParagraphArray: [	{ _paragraphText: (playerShipInfo.remainingExpBonusWins &gt; 1) 	? subst('IDS_TOOLTIP_EXPERIENCE_MULTIPLIER', [], {_battleAmount: playerShipInfo.remainingExpBonusWins}, playerShipInfo.remainingExpBonusWins)
																																				: 'IDS_TOOLTIP_EXPERIENCE_MULTIPLIER_FIRST_WIN' },
																				{ _paragraphText: 'IDS_FIRST_WIN_HINT_EXT' }
																				], _maxWidth: 300}"/>
				<style>
					<position value="absolute"/>
					<top value="2px"/>
					<right value="4px"/>
				</style>
				<bind name="instance" value="'DoubleExperience'; (playerShipInfo.expMultiply &gt; 1) ? { expMultiplyPercentsString : subst('%m',[playerShipInfo.expMultiply]) } : null"/>
			</block>
			<block>
				<styleClass value="$MiddleVAlignedAbsolutely"/>
				<style>
					<left value="10px"/>
				</style>
				<bind name="instance" value="'IconSlimClient'; !(shipInfoSlim.isDownloaded) ? { _isEventLike: shipInfo.isEventLike } : null"/>
			</block>
		</block>
		<block>
			<bind name="name" value="'isLockedShip_' + shipInfo.fullName + '_' + isLocked"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<hitTest value="false"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ShipCarouselSlotStatus';	(isShipFrozen &amp;&amp; !(_rollOver))																	? { _status:  toUpperCase(tr('IDS_SHIP_FROZEN_FOR_PVE')), isPositive: false, _small: true} :	
														(isNeedRepair || isNeedShell) &amp;&amp; !(_rollOver) &amp;&amp; !(_mouseDown) &amp;&amp; playerShipInfo.crewId != 0	? { _status: toUpperCase(tr('IDS_NEED_SERVICE')), isPositive: false, _small: true} :
														isInFormation																					? { _status: toUpperCase(tr('IDS_READY_TO_BATTLE_IN_' + toUpperCase(divisionEntranceData.divisionType))), isPositive: true, _small: true } :
														isLocked																						? { _status: toUpperCase(tr('IDS_IN_BATTLE')), isPositive: false, _small: true} :
														(playerShipInfo.crewId == 0)																	? { _status: toUpperCase(tr('IDS_NO_CREW')), isPositive: false, _small: true}
																																					: null "/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="8px"/>
				</style>
				<bind name="instance" value="'CarouselShipFreeze'; (isShipFrozen &amp;&amp; !(_rollOver)) ? {_freezeListArr: freezeListArr, _small: true} : null"/>
			</block>
		</block>
		<block>
			<style>
				<width value="190px"/>
			</style>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'DockButtonCostMedium'; !isShipFrozen &amp;&amp; (isNeedRepair || isNeedShell) &amp;&amp; _rollOver &amp;&amp; 
												(playerShipInfo.creditsDeficit &lt;= 0) &amp;&amp; playerShipInfo.crewId != 0 ? { _label: 'IDS_SERVICE_C',
																														priceInfo: {finalPrice: playerShipInfo.costTotal,
																																	currency: 'credits'}, _enabled: true,
																														_action: 'serveShip',
																														_actionParams: { shipId : playerShipInfo.id }}
																													: null"/>
			<bind name="instance" value="'DockButtonCostMedium'; isShipFrozen &amp;&amp; (freezeDeficit &lt;= 0) &amp;&amp; _rollOver	?	{	_label: 'IDS_UNFREEZE_FOR_PVE_BTN',
																											priceInfo: pveCooldownCost.prices[0],
																											_enabled: true, 
																											_request: 'openUnfreezeShipWindow',
																											_requestParams: { shipId: playerShipInfo.id, battleType: selectedBattle.type }
																										}
																									:	null"/>
		</block>
		<bind name="watch" value="'isFreezeDeficit';	(isShipFrozen &amp;&amp; (freezeDeficit &gt; 0))"/>
		<bind name="watch" value="'isRepairDeficit';	((isNeedRepair || isNeedShell) &amp;&amp; (playerShipInfo.creditsDeficit &gt; 0))"/>
		<bind name="watch" value="'isDeficitIndicatorVisible';	(isRepairDeficit || isFreezeDeficit) &amp;&amp; _rollOver"/>
		<block>
			<bind name="visible" value="isDeficitIndicatorVisible"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'CarouselNaturalIndicator';  isFreezeDeficit						? { _priceInfo: pveCooldownCost.prices[0], _label: 'IDS_PVE_FREEZE_COST', _deficit: freezeDeficit} :
													 (isRepairDeficit &amp;&amp; !(isShipFrozen))	? { _priceInfo: {finalPrice: playerShipInfo.costTotal, currency: 'credits'}, _label: 'IDS_SERVICE_COST', _deficit: playerShipInfo.creditsDeficit}
																							: null"/>
		</block>
	</block>
	<block className="CarouselShipFreeze">
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 2"/>
		<bind name="repeat" value="_freezeListArr; 'CarouselShipFreezeRenderer'; {_small: _small}"/>
	</block>
	<block className="CarouselShipFreezeRenderer">
		<bind name="entityDH" value="'shipFreezeEntity'; $value"/>
		<bind name="countdown" value="shipFreezeEntity.shipFreeze.freezeEnd; 'freezeTimer'; 'hh:mm:ss'"/>
		<block type="text">
			<styleClass value="$TextDefaultBold17NM"/>
			<styleClass value="$FontColorUnready"/>
			<bind name="pureText" value="freezeTimer"/>
		</block>
	</block>
	<block className="RentTimer">
		<bind name="appear" value="'addedToStage'; 0.1; 0.1; {alpha: 0}; {alpha: 1}; 0"/>
		<bind name="serverTime" value="'serverTime'"/>
		<bind name="watch" value="'daysTimeRent'; 	(((_timeRent - serverTime) / 86400) &gt;= 1)		? (((_timeRent - serverTime) - ((_timeRent - serverTime) % 86400)) / 86400)
																					: 0"/>
		<bind name="watch" value="'secondsToHours';	((_timeRent - serverTime) % 86400)"/>
		<bind name="watch" value="'hoursTimeRent'; 	((secondsToHours / 3600) &gt; 1)	? ((secondsToHours - (secondsToHours % 3600)) / 3600) :
									((secondsToHours / 3600) &gt; 0)	? 1
																	: 0"/>
		<bind name="countdown" value="_timeRent; 'fullTimeRent'; 'hh:mm:ss'"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_RENT_SHIP'}"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="visible" value="(daysTimeRent != 0)"/>
			<style>
				<marginRight value="2px"/>
				<marginTop value="-2px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<styleClass value="$FontColorGolden"/>
				<bind name="text" value="daysTimeRent"/>
			</block>
			<block type="text">
				<style>
					<marginLeft value="-2px"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<styleClass value="$FontColorGolden"/>
				<bind name="pluralText" value="'IDS_PL_DAY_FULL_ACC'; daysTimeRent"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="((daysTimeRent != 0) &amp;&amp; (hoursTimeRent != 0))"/>
			<style>
				<marginRight value="2px"/>
				<marginLeft value="-2px"/>
				<marginTop value="-2px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<styleClass value="$FontColorGolden"/>
				<bind name="text" value="hoursTimeRent"/>
			</block>
			<block type="text">
				<style>
					<marginLeft value="-2px"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<styleClass value="$FontColorGolden"/>
				<bind name="pluralText" value="'IDS_PL_HOUR_FULL_ACC'; hoursTimeRent"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<bind name="visible" value="(daysTimeRent == 0)"/>
			<style>
				<width value="58px"/>
				<marginRight value="-2px"/>
				<marginTop value="-2px"/>
			</style>
			<styleClass value="$TextDefaultBold"/>
			<styleClass value="$FontColorGolden"/>
			<bind name="text" value="fullTimeRent"/>
		</block>
		<block>
			<block className="icon_rent" type="native"/>
		</block>
	</block>
	<block className="DoubleExperience">
		<style>
			<flow value="horizontal"/>
		</style>
		<block className="icon_double_experience" type="native">
			<style>
				<marginTop value="4px"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultBold"/>
			<styleClass value="$FontColorGold"/>
			<styleClass value="$FontSizeHeader5"/>
			<bind name="text" value="expMultiplyPercentsString"/>
		</block>
	</block>
	<block className="ShipCarouselSlotStatus">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="visible" value="!(dockDefaultValues.goToBattleState)"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 2"/>
		<block type="text">
			<style>
				<maxWidth value="180"/>
				<textAlign value="center"/>
				<leading value="-3"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextCarouselShipStatus"/>
			<bind name="class" value="_small ? '$FontSizeDefault' : '$None'"/>
			<bind name="class" value="isPositive ? '$FontColorComparePositive' : '$None'"/>
			<bind name="text" value="_status"/>
		</block>
	</block>
	<block className="CarouselNaturalIndicator">
		<block>
			<block type="text">
				<styleClass value="$TextSmallWhite"/>
				<bind name="text" value="_label"/>
			</block>
			<block>
				<bind name="instance" value="'PriceTag'; { priceInfo: _priceInfo, _showDiscountTag: true, _small: true}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<marginTop value="-4px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'GoldDeficitNano';	(_priceInfo.currency == 'gold')		?	{ _goldDeficit: _deficit } : null"/>
			<bind name="instance" value="'CRDeficitNano';	(_priceInfo.currency == 'credits')	?	{ _creditsDeficit: _deficit } : null"/>
		</block>
	</block>
	<block className="CarouselFiltersContentInfotip">
		<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="firstEntityDH" value="'userTaskEntity'; CC.userTask"/>
		<bind name="watchDH" value="'pecularities'; ['userTaskEntity.userTask.evFlagChanged']; userTaskEntity.userTask.pecularities"/>
		<styleClass value="$VerticalInfotipBehaviourCenterUpper"/>
		<style>
			<width value="326px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginLeft value="8px"/>
					<marginRight value="13px"/>
					<marginTop value="9px"/>
					<marginBottom value="11px"/>
				</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="dock_panel" type="native">
				<params>
					<param name="name" value="carouselFiltersContentInfotipPanel"/>
				</params>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="-6px"/>
					<marginLeft value="-6px"/>
					<position value="absolute"/>
				</style>
			</block>
		</block>
		<block type="text">
			<style>
				<top value="12px"/>
				<left value="20px"/>
				<marginBottom value="16px"/>
			</style>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="'IDS_ADDITIONAL_CONTENT'"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginLeft value="7px"/>
				<marginRight value="13px"/>
			</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>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<style>
					<marginRight value="14px"/>
					<marginLeft value="8px"/>
					<marginBottom value="12px"/>
				</style>
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginLeft value="20px"/>
					<marginTop value="20px"/>
					<marginBottom value="24px"/>
				</style>
				<bind name="repeat" value="pecularities; 'PeculiarityFilterItem'"/>
			</block>
		</block>
		<block className="dock_panel_pin" type="native">
			<style>
				<position value="absolute"/>
				<right value="23px"/>
				<bottom value="2px"/>
				<alpha value="0.5"/>
			</style>
			<bind name="gotoAndStop!" value="'down'"/>
		</block>
	</block>
	<block className="PeculiarityFilterItem">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<style>
			<width value="100%"/>
			<marginBottom value="8px"/>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<style>
				<width value="220px"/>
				<marginTop value="-3px"/>
			</style>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="tr(ids)"/>
		</block>
		<block className="checkbox_no_label" type="native">
			<bind name="visible" value="checkbox == true"/>
			<bind name="clickSplit"/>
			<bind name="name" value="'CarouselCheckBox_pecularity_' + ids"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: checkbox_enabled ? tr(ids + '_HIDE_SHIP_TOOLTIP') : tr(ids + '_SHOW_SHIP_TOOLTIP')}"/>
			<bind name="action" value="'left_click'; 'ServerUIDataUSS.hideFromCarousel'; { pecId: value }"/>
			<bind name="selected" value="checkbox_enabled"/>
			<bind name="enabled" value="!operationsAccountLocked"/>
		</block>
		<block className="icon_eye_visible" type="native">
			<style>
				<right value="30px"/>
				<position value="absolute"/>
			</style>
			<bind name="clickSplit"/>
			<bind name="name" value="'CarouselCheckBoxEye_pecularity_' + ids"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: enabled ? tr(ids + '_TAKE_OFF_SKIN_TOOLTIP') : tr(ids + '_SET_SKIN_TOOLTIP')}"/>
			<bind name="action" value="'left_click'; 'ServerUIDataUSS.setPecularity'; { pecId: value }"/>
			<bind name="selected" value="enabled"/>
			<bind name="enabled" value="!operationsAccountLocked"/>
		</block>
	</block>
	<css name="$TextMetaHeader">
		<fontFamily value="$WWSDefaultFontBold"/>
		<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="0xFFFFFF"/>
	</css>
	<css name="$TextParams">
		<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="0xEEEEEE"/>
	</css>
	<css name="$TextParams_measure">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="15"/>
		<alpha value="0.7"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextParams_tight_left">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-1px"/>
		<fontSize value="15"/>
		<alpha value="0.55"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextParams_tight_right">
		<fontFamily value="$WWSDefaultFont"/>
		<marginRight value="-3px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="15"/>
		<alpha value="0.55"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextParams_slash">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-2px"/>
		<fontSize value="15"/>
		<marginRight value="-2px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextParams_x">
		<mouseChildren value="false"/>
		<bottom value="2px"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<marginLeft value="-2px"/>
		<fontSize value="13"/>
		<marginRight value="-2px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<css name="$TextParams_hyphen">
		<fontFamily value="$WWSDefaultFont"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-2px"/>
		<fontSize value="15"/>
		<marginRight value="-2px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xEEEEEE"/>
	</css>
	<block className="StatValueBar">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="1px"/>
			<position value="absolute"/>
			<bottom value="1"/>
		</style>
		<bind name="transition" value="rollOver || _expand; 0.15; {height: 3}; {height: 25}; {height: 3}; 2; 0.2"/>
		<block>
			<style>
				<height value="100%"/>
				<width value="3px"/>
			</style>
			<bind name="width" value="(_width * _currentValue) / 100 + (_hasDiff ? 	(_isGood 	? -(_width * _diffValue / 100) : 0): 0 )"/>
			<block className="bar_color" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="transition" value="rollOver || _expand; 0.35; {alpha: 0.8}; {alpha: 0.6}; {alpha: 0.8}; 2"/>
				<bind name="gotoAndStop!" value="_hasDiff || $parent.$parent.viewParams.hasDiff || _diffValue == 0 ? 'BarColorWhite' : 'BarColorGreen'"/>
			</block>
		</block>
		<block>
			<style>
				<height value="100%"/>
				<width value="3px"/>
			</style>
			<bind name="width" value="(_width * (_isGood ? _diffValue : -_diffValue)) / 100"/>
			<block className="bar_color_compare" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="gotoAndStop!" value="_isGood ? 'BarComparePositive' : 'BarCompareNegative'"/>
			</block>
		</block>
	</block>
	<block className="StatValueCompareBar">
		<styleClass value="$Fullsize"/>
		<bind name="class" value="_isGood ? '$BarColorComparePositive' : '$BarColorCompareNegative'"/>
		<bind name="scaleX" value="_diffValue"/>
	</block>
	<block className="CompareElement">
		<block>
			<block type="text">
				<bind name="class" value="isGood ? '$FontColorComparePositive' : '$FontColorCompareNegative'"/>
				<bind name="class" value="$parent.$parent.$parent.$parent.meta ? '$TextDefaultBold' : '$TextParams'"/>
				<style>
					<alpha value="0.9"/>
				</style>
				<bind name="text" value="textValue"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ParamElement">
		<bind name="watch" value="'id'; $parent.id"/>
		<bind name="child" value="mockupClass; 'DefaultMockup'; 'ListAmmoMockup'; 'DiffColorsMockup'; 'PlaneTypesMockup'; 'GunsAndTubesMockup'; 'RangeMockup'; 'ListValuesMockup'; 'ListValuesInvMockup';'GunInfoMockup'"/>
	</block>
	<block className="DefaultMockupItem">
		<bind name="watch" value="'id'; $parent.id"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<bind name="class" value="$parent.$parent.$parent.meta ? '$TextMetaHeader' : '$TextParams'"/>
			<params>
				<param name="name" value="field0"/>
			</params>
			<bind name="name" value="'param_content_' + $parent.id"/>
			<bind name="text" value="$parent.$parent.$parent.meta ? ((textValue != '0' || $parent.$parent.hasDiff) ? textValue : '') : textValue"/>
		</block>
		<block>
			<bind name="visible" value="measure;value != null"/>
			<block type="text">
				<styleClass value="$TextParams_measure"/>
				<bind name="pluralText" value="measure;value"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!isLast"/>
			<block type="text">
				<bind name="class" value="!isLast ? '$TextParams_slash' : '$TextParams'"/>
				<bind name="text" value="!isLast ? '/' : ''"/>
			</block>
		</block>
	</block>
	<block className="DefaultCompareItem">
		<bind name="watch" value="'id'; $parent.id"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="instance" value="'CompareElement'; diffData"/>
		</block>
		<block type="text">
			<bind name="class" value="!isLast ? '$TextParams_slash' : '$TextParams'"/>
			<bind name="text" value="!isLast ? '/' : ''"/>
			<bind name="name" value="'param_content_' + $parent.id"/>
		</block>
	</block>
	<block className="DefaultMockup">
		<bind name="watch" value="'id'; $parent.id"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<bind name="class" value="$parent.hasDiff ? '$TextParams_tight_right' : '$TextParams'"/>
			<bind name="text" value="$parent.hasDiff ? '(' : ''"/>
		</block>
		<block>
			<bind name="instance" value="'DefaultCompareItem'; $parent.hasDiff ? $parent.data.items[0] : null"/>
		</block>
		<block>
			<bind name="instance" value="'DefaultCompareItem'; $parent.hasDiff ? $parent.data.items[1] : null"/>
		</block>
		<block>
			<bind name="instance" value="'DefaultCompareItem'; $parent.hasDiff ? $parent.data.items[2] : null"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_tight_left"/>
			<bind name="text" value="$parent.hasDiff ? ')' : ''"/>
		</block>
		<block>
			<bind name="instance" value="'DefaultMockupItem'; $parent.data.items[0]"/>
		</block>
		<block>
			<bind name="instance" value="'DefaultMockupItem'; $parent.data.items[1]"/>
		</block>
		<block>
			<bind name="instance" value="'DefaultMockupItem'; $parent.data.items[2]"/>
		</block>
		<block>
			<bind name="visible" value="$parent.data.measure != ''"/>
			<block type="text">
				<style>
					<textAlign value="right"/>
				</style>
				<styleClass value="$TextParams_measure"/>
				<bind name="text" value="$parent.data.measure"/>
			</block>
		</block>
	</block>
	<block className="AmmoMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="name" value="'item' + $index"/>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="field0"/>
			</params>
			<bind name="text" value="dataArray[0] * dataArray[2]"/>
			<bind name="name" value="'param_content_' + $parent.id"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_x"/>
			<text value="x"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="field1"/>
			</params>
			<bind name="text" value="dataArray[1]"/>
			<bind name="name" value="'param_content_' + $parent.id"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_measure"/>
			<bind name="text" value="$parent.$parent.measureIDS"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="text" value="$index &lt; ($parent.$parent.values.length - 1) ? ',' : ''"/>
		</block>
	</block>
	<block className="ListAmmoMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="repeat" value="$parent.values; 'AmmoMockup'"/>
	</block>
	<block className="DiffColorsMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<block type="text">
				<bind name="class" value="$parent.hasDiff ? '$TextParams_tight_right' : '$TextParams'"/>
				<bind name="text" value="$parent.hasDiff ? '(' : ''"/>
			</block>
			<block>
				<bind name="instance" value="'CompareElement'; ($parent.diffData.length &gt; 0 &amp;&amp; $parent.diffData[0].diff) ? $parent.diffData[0] : null"/>
			</block>
			<block type="text">
				<styleClass value="$TextParams_tight_left"/>
				<bind name="text" value="$parent.hasDiff ? ')' : ''"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="field1"/>
			</params>
			<bind name="text" value="format($parent.values[0], -1)"/>
			<bind name="name" value="'param_content_h_' + $parent.id"/>
		</block>
	</block>
	<block className="PlaneTypeMockup">
		<style>
			<flow value="horizontal"/>
			<marginLeft value="2px"/>
		</style>
		<bind name="name" value="'planeType' + type"/>
		<block className="icon_airplane_type" type="native">
			<bind name="gotoAndStop!" value="type"/>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<bind name="class" value="$parent.hasDiff ? '$TextParams_tight_right' : '$TextParams'"/>
					<bind name="text" value="$parent.$parent.hasDiff ? '(' : ''"/>
				</block>
				<block>
					<bind name="instance" value="'CompareElement'; diffData"/>
				</block>
				<block type="text">
					<styleClass value="$TextParams_tight_left"/>
					<bind name="text" value="$parent.$parent.hasDiff ? ')' : ''"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="count"/>
			</params>
			<bind name="text" value="count"/>
			<bind name="name" value="'param_content_' + $parent.id "/>
		</block>
	</block>
	<block className="PlaneTypesMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="repeat" value="$parent.data.list; 'PlaneTypeMockup'"/>
	</block>
	<block className="GunsAndTubesMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<styleClass value="$TextParams_x"/>
			<text value="x"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="field0"/>
			</params>
			<bind name="text" value="$parent.values[0]"/>
			<bind name="name" value="'param_content_1_' + $parent.id"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_tight_right"/>
			<text value="("/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<style>
				<marginLeft value="1px"/>
				<marginRight value="-1px"/>
			</style>
			<params>
				<param name="name" value="field1"/>
			</params>
			<bind name="text" value="$parent.values[1]"/>
			<bind name="name" value="'param_content_2_' + $parent.id"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_tight_left"/>
			<text value=")"/>
		</block>
		<block>
			<bind name="instance" value="'GunsAndTubesCompareElement'; diffData[0]"/>
		</block>
		<block type="text">
			<bind name="class" value="$parent.hasDiff ? '$TextParams_tight_right' : '$TextParams'"/>
			<bind name="text" value="$parent.$parent.hasDiff ? '(' : ''"/>
		</block>
		<block>
			<bind name="instance" value="'GunsAndTubesCompareElement'; diffData[1]"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_tight_left"/>
			<bind name="text" value="$parent.$parent.hasDiff ? ')' : ''"/>
		</block>
	</block>
	<block className="GunsAndTubesCompareElement">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="class" value="isGood ? '$FontColorComparePositive' : '$FontColorCompareNegative'"/>
			<bind name="text" value="textValue"/>
			<bind name="name" value="'param_content_' + $parent.id"/>
		</block>
	</block>
	<block className="RangeMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="field0"/>
			</params>
			<bind name="text" value="$parent.values[0]"/>
			<bind name="name" value="'param_content_min_' + $parent.id"/>
		</block>
		<block>
			<bind name="instance" value="'CompareElement'; ($parent.diffData.length &gt; 0 &amp;&amp; $parent.diffData[0].diff) ? $parent.diffData[0] : null"/>
		</block>
		<block type="text">
			<bind name="class" value="$parent.values[0] != $parent.values[1] ? '$TextParams_hyphen' : '$TextParams'"/>
			<bind name="text" value="$parent.values[0] != $parent.values[1] ? '-' : '' "/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<params>
				<param name="name" value="field1"/>
			</params>
			<bind name="text" value="$parent.values[0] != $parent.values[1] ? $parent.values[1] : '' "/>
			<bind name="name" value="'param_content_max_' + $parent.id"/>
		</block>
		<block>
			<bind name="instance" value="'CompareElement'; ($parent.diffData.length &gt; 1 &amp;&amp; $parent.diffData[1].diff &amp;&amp; $parent.values[0] != $parent.values[1]) ? $parent.diffData[1] : null"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_measure"/>
			<bind name="text" value="$parent.measureIDS"/>
		</block>
	</block>
	<block className="ListValuesItemMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="name" value="'item' + $index"/>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="text" value="textValue"/>
			<bind name="name" value="'param_content_' + $parent.id"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_measure"/>
			<bind name="text" value="measure"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_slash"/>
			<bind name="text" value="!isLast ? '/' : ''"/>
		</block>
	</block>
	<block className="CompareListValuesItem">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="instance" value="'CompareElement'; diffData"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams_slash"/>
			<bind name="text" value="!isLast &amp;&amp; diffData != null ? '/' : ''"/>
		</block>
	</block>
	<block className="ListValuesMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<bind name="class" value="$parent.hasDiff ? '$TextParams_tight_right' : '$TextParams'"/>
			<bind name="text" value="$parent.hasDiff ? '(' : ''"/>
		</block>
		<block>
			<bind name="repeat" value="$parent.data.list; 'CompareListValuesItem'"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$TextParams_tight_left"/>
			<bind name="text" value="$parent.hasDiff ? ')' : ''"/>
		</block>
		<block>
			<bind name="repeat" value="$parent.data.list; 'ListValuesItemMockup'"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ListValuesInvMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<marginLeft value="0px"/>
			</style>
			<bind name="repeat" value="$parent.data.list; 'ListValuesItemMockup'"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<style>
				<marginLeft value="2px"/>
			</style>
			<bind name="class" value="$parent.hasDiff ? '$TextParams_tight_right' : '$TextParams'"/>
			<bind name="text" value="$parent.hasDiff ? '(' : ''"/>
		</block>
		<block>
			<bind name="repeat" value="$parent.data.list; 'CompareListValuesItem'"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<styleClass value="$TextParams_tight_left"/>
			<bind name="text" value="$parent.hasDiff ? ')' : ''"/>
		</block>
	</block>
	<block className="GunTypeMockup">
		<block>
			<block type="text">
				<styleClass value="$TextParams"/>
				<bind name="text" value="$parent.data.items[0].textValue"/>
			</block>
			<bind name="name" value="'param_content_' + $parent.id"/>
		</block>
	</block>
	<block className="GunInfoMockup">
		<style>
			<flow value="horizontal"/>
		</style>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="text" value="$parent.data.items[0].textValue"/>
		</block>
		<bind name="name" value="'param_content_' + $parent.id"/>
		<block type="text">
			<styleClass value="$TextParams_x"/>
			<bind name="text" value="'x'"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="text" value="$parent.data.items[1].textValue"/>
		</block>
		<bind name="name" value="'param_content_' + $parent.id"/>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="text" value="''"/>
		</block>
		<block type="text">
			<styleClass value="$TextParams"/>
			<bind name="text" value="$parent.data.items[2].textValue"/>
		</block>
		<bind name="name" value="'param_content_' + $parent.id"/>
		<block type="text">
			<styleClass value="$TextParams_measure"/>
			<bind name="text" value="$parent.data.measure"/>
		</block>
	</block>
	<block className="QuestBannerChangeAnimation">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerQuests; 300000"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'events'; 'eventsCollection'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'challenges'; 'isActive'; true; 'challengesCollection'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'tasks'; 'isActive'; true; 'tasksCollection'"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="appear" value="'addedToStage'; 0.3; 0.3; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		<bind name="changeDispatch" value="currentItem; 'changeBanner'"/>
		<bind name="catch" value="'setParentRollOver'"/>
		<block>
			<bind name="appear" value="'changeBanner'; 0.4; 1; {alpha: 1}; {alpha: 0}"/>
			<bind name="instance" value="'QuestBanner';{ _banner: currentItem, rollOver: rollOver }"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="appear" value="'changeBanner'; 0.5; 0.8; {alpha: 0}; {alpha: 1}"/>
			<bind name="instance" value="'QuestBanner';{ _banner: newItem, rollOver: rollOver }"/>
		</block>
		<block>
			<bind name="fade" value="rollOver; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1"/>
			<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>
				<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_GO_TO_SSE_' +  toUpperCase(newItem.type) }], _maxWidth: 250 }; 0"/>
				<bind name="request" value="'click'; 'buttonQuestEnter'; {type: newItem.type}"/>
				<styleClass value="$FullsizeAbsolute"/>
				<block>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<height value="80px"/>
						<right value="1px"/>
					</style>
					<bind name="visible" value="optionData.blurEnabled"/>
					<block className="mc_blurmap5" type="native">
						<styleClass value="$Fullsize"/>
						<bind name="fade" value="rollOver; 0.45; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; rollOver ? 0.15 : 0"/>
						<bind name="blurMap" value="0"/>
					</block>
				</block>
				<block>
					<bind name="transition" value="rollOver; 0.15; {height: 0}; {height: 115}; {height: 0}; 2"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
					</style>
					<block className="quest_thumb_title" type="native">
						<style>
							<width value="100%"/>
							<height value="80px"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="100%"/>
					<marginLeft value="9px"/>
				</style>
				<bind name="feature" value="9; ''"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="visible" value="feature_9 != 'locked'"/>
					<block>
						<bind name="fade" value="rollOver; 0.1; {top: 10}; {top: 0}; {top: -10}; 1; 0.05"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'QuestBannerLink'; { _type: SSETypes.EVENT, _label: 'IDS_EVENTS', _num: eventsCollection.length }"/>
					</block>
					<block>
						<bind name="fade" value="rollOver; 0.2; {top: 10}; {top: 0}; {top: -10}; 1; 0.13"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'QuestBannerLink'; { _type: SSETypes.CHALLENGE, _label: 'IDS_CHALLENGES', _num: challengesCollection.length }"/>
					</block>
					<block>
						<bind name="fade" value="rollOver; 0.1; {top: 10}; {top: 0}; {top: -10}; 1; 0.1"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'QuestBannerLink'; { _type: SSETypes.TASK, _label: 'IDS_TASKS', _num: tasksCollection.length }"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="QuestBannerLink">
		<bind name="name" value="'QuestBannerLink_' + _type"/>
		<bind name="request" value="'click'; 'buttonQuestEnter'; {type: _type}"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_GO_TO_SSE_' +  toUpperCase(_type) }], _maxWidth: 250 }; 0"/>
		<bind name="changeDispatch" value="rollOver; rollOver ? 'setParentRollOver' : null; {rollOver: true}"/>
		<bind name="soundSet" value="'quest_banner'"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="style" value="'alpha'; _num == 0 ? 0.5 : 1.0"/>
		<block type="text">
			<bind name="transition" value="rollOver; 0.3; {alpha: 0.7}; {alpha: _num == 0 ? 0.9 : 1.0}; {alpha: 0.7}; 1; 0.075"/>
			<style>
				<width value="100%"/>
				<textAlign value="center"/>
			</style>
			<styleClass value="$TextDefaultBold"/>
			<bind name="class" value="rollOver ? '$FontColorDefault' : '$FontColorBlueish'"/>
			<bind name="text" value="toUpperCase(tr(_label)) + ': ' + (_numLabel ? _numLabel : _num)"/>
		</block>
	</block>
	<block className="QuestBanner">
		<bind name="request" value="'click'; 'buttonQuestEnter'; {type: _banner.type}"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_GO_TO_SSE_' +  toUpperCase(_banner.type) }], _maxWidth: 250 }; 0"/>
		<bind name="name" value="'buttonQuestEnter'"/>
		<style>
			<width value="223px"/>
			<height value="80px"/>
		</style>
		<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>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _banner.backgroundURL"/>
			<block type="text">
				<style>
					<width value="200px"/>
					<alpha value="0"/>
				</style>
				<bind name="text" value="_banner.backgroundURL+_banner.type"/>
			</block>
		</block>
		<block>
			<bind name="transition" value="rollOver; 0.15; {alpha: 1}; {alpha: 0}; {alpha: 1}; 2"/>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="9px"/>
				<marginRight value="9px"/>
				<hitTest value="false"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block className="quest_thumb_title" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginLeft value="-9px"/>
						<marginRight value="-9px"/>
					</style>
				</block>
				<block type="text">
					<style>
						<width value="100%"/>
						<marginTop value="3px"/>
						<marginBottom value="3px"/>
						<leading value="-3"/>
					</style>
					<styleClass value="$TextHeaderBold"/>
					<bind name="text" value="_banner.titleText"/>
				</block>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<block className="shadow_h_zero_edge_fullsize" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<marginLeft value="-9px"/>
					</style>
				</block>
				<bind name="watch" value="'bannerTitle'; ('IDS_' + toUpperCase(_banner.type))"/>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextSecondaryBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="toUpperCase(tr(bannerTitle))"/>
				</block>
				<block type="text">
					<bind name="visible" value="_banner.type == SSETypes.CHALLENGE"/>
					<style>
						<position value="absolute"/>
						<bottom value="3"/>
						<right value="0"/>
					</style>
					<styleClass value="$TextHeaderWhiteBold"/>
					<bind name="text" value="_banner.startDate + ' — ' + _banner.stopDate"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="6px"/>
					</style>
					<bind name="fade" value="feature_18 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<block className="quest_icon_new" type="native"/>
				</block>
			</block>
		</block>
	</block>
	<block className="CrewsSelect">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<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="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="watch" value="'crewId'; playerShipInfo == null ? 0 : playerShipInfo.crewId"/>
		<bind name="var" value="{fromCrewSelect: true}"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; crewId"/>
		<bind name="watchDH" value="'selectedShipCrew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'selectedShipCrew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="watch" value="'recruitable'; shipInfo.peculiarity == 'default'"/>
		<bind name="stageSize"/>
		<bind name="watch" value="'_stageHeight'; stageHeight"/>
		<bind name="watch" value="'_stageWidth'; stageWidth"/>
		<styleClass value="$Fullsize"/>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag/2 + 1 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
			<bind name="appear" value="'startHide'; 0.15; 1 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
			<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="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_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}"/>
					<styleClass value="$Fullsize"/>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block className="modal_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<alpha value="0.7"/>
				</style>
			</block>
		</block>
		<bind name="var" value="{windowAppearLag: 0.2}"/>
		<block className="CrewsSelectContent">
			<styleClass value="$Fullsize"/>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="10px"/>
					<marginRight value="10px"/>
					<marginTop value="32px"/>
				</style>
				<block>
					<style>
						<width value="280px"/>
						<height value="100%"/>
						<marginTop value="17px"/>
					</style>
					<block>
						<styleClass value="$Fullsize"/>
						<block>
							<bind name="visible" value="(fromCrewSelect == true)"/>
							<style>
								<position value="absolute"/>
								<left value="2px"/>
								<top value="2px"/>
							</style>
							<bind name="instance" value="'VideoIcon'; fromCrewSelect ? { _userTaskFlag: UserTasksFlags.VIDEO_SEEN_COMMANDERS,
																	_videoUrlId: 'guideFeature_7_InGame',
																	_headerText: 'IDS_CREWS'}
																: null"/>
						</block>
						<block type="text">
							<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 1 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
							<bind name="appear" value="'startHide'; 0.15; 1 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
							<styleClass value="$TextHeaderBold"/>
							<styleClass value="$MiddleAligned"/>
							<bind name="text" value="toUpperCase(tr('IDS_CREW_PERKS'))"/>
						</block>
						<block>
							<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
							<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
							<style>
								<width value="100%"/>
								<marginTop value="6px"/>
							</style>
							<bind name="repeat" value="[	{ _paragraphText: 'IDS_INSTRUCTION_CREW_PERKS_0'},
									{ _paragraphText: 'IDS_INSTRUCTION_CREW_PERKS_1'},
									{ _paragraphText: 'IDS_INSTRUCTION_CREW_PERKS_2'}]; 'RepeatParagraphItem'; {_maxWidth: 280, _leading: -1}"/>
						</block>
					</block>
					<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
					<bind name="watchDH" value="'eliteXP'; 	 ['resourceEntity.accountResource.evChangedEliteXP'];	resourceEntity.accountResource.eliteXP"/>
					<bind name="watchDH" value="'useEliteXP'; ['resourceEntity.accountResource.evUseEliteXPChanged'];resourceEntity.accountResource.useEliteXP"/>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2.5 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="appear" value="'startHide'; 0.15; 2.5 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'EliteXpCounter'; (useEliteXP == true) ? {_eliteXP: eliteXP} : null"/>
						<bind name="instance" value="'EliteXpPreview'; (useEliteXP != true) ? {} : null"/>
					</block>
				</block>
				<block>
					<styleClass value="$Fullsize"/>
					<block>
						<bind name="visible" value="crewId != 0"/>
						<bind name="name" value="'SkillsBlock'"/>
						<styleClass value="$Fullsize"/>
						<bind name="style" value="'marginTop'; (17 + (_stageHeight-720) / 6) + 'px'"/>
						<bind name="var" value="{iconSize: 60}"/>
						<bind name="watch" value="'iconHorizontalPadding'; 9 + (_stageWidth-1280) / 28"/>
						<bind name="watch" value="'iconVerticalPadding'; 15 + (_stageHeight-720) / 18"/>
						<bind name="watch" value="'groupPaddingCoeff'; 1.5"/>
						<block>
							<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 1 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
							<bind name="appear" value="'startHide'; 0.15; 1 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
							<styleClass value="$MiddleAligned"/>
							<style>
								<height value="1px"/>
							</style>
							<bind name="style" value="'height'; ((26 + iconVerticalPadding) + 'px')"/>
							<block>
								<style>
									<width value="1px"/>
									<height value="10px"/>
								</style>
								<bind name="style" value="'width'; (iconHorizontalPadding + 18) + 'px'"/>
							</block>
							<bind name="repeat" value="[	{_label: 'IDS_SKILLS_GROUP_1'}, {_label: 'IDS_SKILLS_GROUP_2'},
									{_label: 'IDS_SKILLS_GROUP_3'}, {_label: 'IDS_SKILLS_GROUP_4'}];
									'SkillColumnLabel'; {	_iconSize: iconSize, _iconHorizontalPadding: iconHorizontalPadding,
															_groupPaddingCoeff: groupPaddingCoeff}"/>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
							<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
							<styleClass value="$MiddleAligned"/>
							<block>
								<style>
									<width value="18px"/>
								</style>
								<bind name="style" value="'marginRight'; iconHorizontalPadding + 'px'"/>
								<bind name="repeat" value="4; 'SkillRowLabel'; {_canBeLearned: false, _iconSize: iconSize, _iconVerticalPadding: iconVerticalPadding}"/>
							</block>
							<block>
								<style>
									<width value="1px"/>
									<height value="1px"/>
								</style>
								<bind name="style" value="'width'; (8 * iconSize) + (7 * iconHorizontalPadding) + 3 * iconHorizontalPadding * groupPaddingCoeff)"/>
								<bind name="style" value="'height'; (4 * (iconSize + iconVerticalPadding) - iconVerticalPadding)"/>
								<bind name="repeat" value="selectedShipCrew.skillSet; 'CrewFileSkillItem'; {	_crewId: crewId,
																						_iconHorizontalPadding: iconHorizontalPadding,
																						_groupPaddingCoeff: groupPaddingCoeff,
																						_iconVerticalPadding: iconVerticalPadding}"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2.5 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="appear" value="'startHide'; 0.15; 2.5 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'RedistributeSkillPoints'; crewId	? {_isLocked: playerShipInfo.isLocked, _crewId: crewId, 
																	_isInFormation: playerShipInfo.isInFormation}
																	: null"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="(selectedShipCrew != null) || fromCrewSelect"/>
					<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
					<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<style>
						<width value="312px"/>
						<height value="100%"/>
					</style>
					<bind name="instance" value="'CrewRightPanelBlock'; {_shipId: shipId, _crewId: crewId, _fromCrewSelect: fromCrewSelect}"/>
				</block>
				<block>
					<bind name="visible" value="selectedShipCrew == null &amp;&amp; !(fromCrewSelect)"/>
					<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
					<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<style>
						<width value="312px"/>
						<marginTop value="33px"/>
					</style>
					<block type="text">
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextHeaderBold"/>
						<bind name="class" value="'$FontColorUnready'"/>
						<bind name="text" value="toUpperCase(tr('IDS_NO_CREW'))"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
				<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<bind name="visible" value="crewId == 0 &amp;&amp; recruitable"/>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<style>
					<width value="450px"/>
					<top value="42%"/>
					<marginTop value="-50%"/>
					<align value="center"/>
				</style>
				<block type="text">
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<marginBottom value="6px"/>
					</style>
					<bind name="class" value="'$FontColorUnready'"/>
					<styleClass value="$TextAccent"/>
					<text value="IDS_NO_CREW"/>
				</block>
				<block type="text">
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
						<leading value="-3"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<text value="IDS_HIRE_CREW_HINT"/>
				</block>
				<block>
					<style>
						<width value="200px"/>
						<marginTop value="18px"/>
					</style>
					<bind name="name" value="'recruitCrewButton'"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_HIRE_NEW_CREW'}; 0"/>
					<bind name="request" value="'click'; 'hireCrew'; {shipId: shipId}"/>
					<bind name="instance" value="'DefaultButton'; !(crewId)	? {_enabled: true, _label: toUpperCase(tr('IDS_HIRE_NEW_CREW')), _isTransactionBtn: false}
														: null"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="style" value="'marginTop'; 6 + (_stageHeight-720) / 8 + 'px'"/>
			<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="'carouselRows';		(userPrefs.curRowCountIndex == null)	? 0 : userPrefs.curRowCountIndex"/>
			<bind name="watch" value="'isSmallCarouselView';	(userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
			<bind name="style" value="'height'; isSmallCarouselView	?	(carouselRows == 1) ? '266px' :
														(carouselRows == 2) ? '329px'
																			: '203px'
													: '203px'"/>
		</block>
	</block>
	<block className="CrewsSelectContent">
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<marginLeft value="10px"/>
				<marginRight value="10px"/>
				<marginTop value="32px"/>
			</style>
			<block>
				<style>
					<width value="280px"/>
					<height value="100%"/>
					<marginTop value="17px"/>
				</style>
				<block>
					<styleClass value="$Fullsize"/>
					<block>
						<bind name="visible" value="(fromCrewSelect == true)"/>
						<style>
							<position value="absolute"/>
							<left value="2px"/>
							<top value="2px"/>
						</style>
						<bind name="instance" value="'VideoIcon'; fromCrewSelect ? { _userTaskFlag: UserTasksFlags.VIDEO_SEEN_COMMANDERS,
																	_videoUrlId: 'guideFeature_7_InGame',
																	_headerText: 'IDS_CREWS'}
																: null"/>
					</block>
					<block type="text">
						<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 1 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="appear" value="'startHide'; 0.15; 1 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<styleClass value="$TextHeaderBold"/>
						<styleClass value="$MiddleAligned"/>
						<bind name="text" value="toUpperCase(tr('IDS_CREW_PERKS'))"/>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<style>
							<width value="100%"/>
							<marginTop value="6px"/>
						</style>
						<bind name="repeat" value="[	{ _paragraphText: 'IDS_INSTRUCTION_CREW_PERKS_0'},
									{ _paragraphText: 'IDS_INSTRUCTION_CREW_PERKS_1'},
									{ _paragraphText: 'IDS_INSTRUCTION_CREW_PERKS_2'}]; 'RepeatParagraphItem'; {_maxWidth: 280, _leading: -1}"/>
					</block>
				</block>
				<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
				<bind name="watchDH" value="'eliteXP'; 	 ['resourceEntity.accountResource.evChangedEliteXP'];	resourceEntity.accountResource.eliteXP"/>
				<bind name="watchDH" value="'useEliteXP'; ['resourceEntity.accountResource.evUseEliteXPChanged'];resourceEntity.accountResource.useEliteXP"/>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2.5 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
					<bind name="appear" value="'startHide'; 0.15; 2.5 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'EliteXpCounter'; (useEliteXP == true) ? {_eliteXP: eliteXP} : null"/>
					<bind name="instance" value="'EliteXpPreview'; (useEliteXP != true) ? {} : null"/>
				</block>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<block>
					<bind name="visible" value="crewId != 0"/>
					<bind name="name" value="'SkillsBlock'"/>
					<styleClass value="$Fullsize"/>
					<bind name="style" value="'marginTop'; (17 + (_stageHeight-720) / 6) + 'px'"/>
					<bind name="var" value="{iconSize: 60}"/>
					<bind name="watch" value="'iconHorizontalPadding'; 9 + (_stageWidth-1280) / 28"/>
					<bind name="watch" value="'iconVerticalPadding'; 15 + (_stageHeight-720) / 18"/>
					<bind name="watch" value="'groupPaddingCoeff'; 1.5"/>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 1 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="appear" value="'startHide'; 0.15; 1 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<styleClass value="$MiddleAligned"/>
						<style>
							<height value="1px"/>
						</style>
						<bind name="style" value="'height'; ((26 + iconVerticalPadding) + 'px')"/>
						<block>
							<style>
								<width value="1px"/>
								<height value="10px"/>
							</style>
							<bind name="style" value="'width'; (iconHorizontalPadding + 18) + 'px'"/>
						</block>
						<bind name="repeat" value="[	{_label: 'IDS_SKILLS_GROUP_1'}, {_label: 'IDS_SKILLS_GROUP_2'},
									{_label: 'IDS_SKILLS_GROUP_3'}, {_label: 'IDS_SKILLS_GROUP_4'}];
									'SkillColumnLabel'; {	_iconSize: iconSize, _iconHorizontalPadding: iconHorizontalPadding,
															_groupPaddingCoeff: groupPaddingCoeff}"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
						<styleClass value="$MiddleAligned"/>
						<block>
							<style>
								<width value="18px"/>
							</style>
							<bind name="style" value="'marginRight'; iconHorizontalPadding + 'px'"/>
							<bind name="repeat" value="4; 'SkillRowLabel'; {_canBeLearned: false, _iconSize: iconSize, _iconVerticalPadding: iconVerticalPadding}"/>
						</block>
						<block>
							<style>
								<width value="1px"/>
								<height value="1px"/>
							</style>
							<bind name="style" value="'width'; (8 * iconSize) + (7 * iconHorizontalPadding) + 3 * iconHorizontalPadding * groupPaddingCoeff)"/>
							<bind name="style" value="'height'; (4 * (iconSize + iconVerticalPadding) - iconVerticalPadding)"/>
							<bind name="repeat" value="selectedShipCrew.skillSet; 'CrewFileSkillItem'; {	_crewId: crewId,
																						_iconHorizontalPadding: iconHorizontalPadding,
																						_groupPaddingCoeff: groupPaddingCoeff,
																						_iconVerticalPadding: iconVerticalPadding}"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2.5 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
					<bind name="appear" value="'startHide'; 0.15; 2.5 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'RedistributeSkillPoints'; crewId	? {_isLocked: playerShipInfo.isLocked, _crewId: crewId, 
																	_isInFormation: playerShipInfo.isInFormation}
																	: null"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="(selectedShipCrew != null) || fromCrewSelect"/>
				<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
				<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<width value="312px"/>
					<height value="100%"/>
				</style>
				<bind name="instance" value="'CrewRightPanelBlock'; {_shipId: shipId, _crewId: crewId, _fromCrewSelect: fromCrewSelect}"/>
			</block>
			<block>
				<bind name="visible" value="selectedShipCrew == null &amp;&amp; !(fromCrewSelect)"/>
				<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
				<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<width value="312px"/>
					<marginTop value="33px"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="toUpperCase(tr('IDS_NO_CREW'))"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; windowAppearLag + 2 * 0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
			<bind name="appear" value="'startHide'; 0.15; 2 * 0.055; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
			<bind name="visible" value="crewId == 0 &amp;&amp; recruitable"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<width value="450px"/>
				<top value="42%"/>
				<marginTop value="-50%"/>
				<align value="center"/>
			</style>
			<block type="text">
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<marginBottom value="6px"/>
				</style>
				<bind name="class" value="'$FontColorUnready'"/>
				<styleClass value="$TextAccent"/>
				<text value="IDS_NO_CREW"/>
			</block>
			<block type="text">
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<leading value="-3"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<text value="IDS_HIRE_CREW_HINT"/>
			</block>
			<block>
				<style>
					<width value="200px"/>
					<marginTop value="18px"/>
				</style>
				<bind name="name" value="'recruitCrewButton'"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_HIRE_NEW_CREW'}; 0"/>
				<bind name="request" value="'click'; 'hireCrew'; {shipId: shipId}"/>
				<bind name="instance" value="'DefaultButton'; !(crewId)	? {_enabled: true, _label: toUpperCase(tr('IDS_HIRE_NEW_CREW')), _isTransactionBtn: false}
														: null"/>
			</block>
		</block>
	</block>
	<block className="CrewRightPanelBlock">
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<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="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'selectedShipCrew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'selectedShipCrew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold'; ['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY +  'BARRAC_CAP_Increase'; 'barracksCapacityPrice'"/>
		<bind name="var" value="{ selectedCrewDest: 0 }"/>
		<bind name="watch" value="'recruitable'; shipInfo.peculiarity == 'default'"/>
		<style>
			<width value="100%"/>
			<height value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="contrast_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="optionData.contrast"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<top 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>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ShipInfoTabHeader'; { _fromCrew: true, shipId: _shipId }"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<height value="85px"/>
				</style>
				<bind name="instance" value="'CrewShipPanelInnerBlock'; _crewId ? {	_fromCrewSelect: _fromCrewSelect, _crewId: _crewId, _shipId: _shipId } : null"/>
				<block>
					<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="recruitable &amp;&amp; !(_crewId)"/>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="200px"/>
					</style>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_HIRE_NEW_CREW'}; 0"/>
					<bind name="request" value="'click'; 'hireCrew'; {shipId: _shipId}"/>
					<bind name="instance" value="'DefaultButton'; !(playerShipInfo.crewId) ? {_enabled: true, _label: toUpperCase(tr('IDS_HIRE_NEW_CREW')), _isTransactionBtn: false} : null"/>
				</block>
				<block>
					<bind name="visible" value="!recruitable &amp;&amp; !(_crewId)"/>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'InstructionBigTech'; { _instructionText: 'IDS_NOT_DEFAULT_SHIP_CREW_INFO', _maxWidth: '290' }"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<bottom 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>
				<bind name="visible" value="(_fromCrewSelect != true) &amp;&amp; selectedShipCrew.isInBarracks"/>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="toUpperCase(tr('IDS_CREW_IN_BARRACKS'))"/>
				</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>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="3px"/>
				</style>
				<bind name="visible" value="(selectedShipCrew != null) &amp;&amp; (selectedShipCrew.specializationID != _shipId)"/>
				<bind name="tooltip" value="'CrewSpecializationTooltip'; { _shipId: selectedShipCrew.specializationID, 
														 _isInAdaptation: selectedShipCrewRetraining.isInAdaptation,
														 _crewId: _crewId }"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'CrewSpecializationItem'; {	_shipId: selectedShipCrew.specializationID, 
															_isInAdaptation: selectedShipCrewRetraining.isInAdaptation }"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom 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="watch" value="'isInAdapatationOrNeedRetraining'; (selectedShipCrewRetraining.isInAdaptation == true) || (selectedShipCrewRetraining.needRetraining == true)"/>
			<bind name="watch" value="'isRetrainStartNeeded'; (_shipId != selectedShipCrew.specializationID) &amp;&amp; (!shipInfo.isPremium)"/>
			<block>
				<bind name="visible" value="isInAdapatationOrNeedRetraining"/>
				<style>
					<width value="100%"/>
					<marginTop value="4px"/>
					<marginBottom value="4px"/>
				</style>
				<block type="text">
					<style>
						<width value="100%"/>
						<marginTop value="-5px"/>
						<leading value="-3"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="isRetrainStartNeeded	? 'IDS_CREW_RETRAINING_NEEDED'
													: 'IDS_CREW_RETRAINING_FINISH_NEEDED'"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block className="button_default_small" type="native">
						<style>
							<width value="200px"/>
						</style>
						<bind name="enabled" value="!(playerShipInfo.isLocked)"/>
						<bind name="label" value="isRetrainStartNeeded	? toUpperCase(tr('IDS_CREW_RETRAIN'))
														: toUpperCase(tr('IDS_CREW_SPEED_UP_RETRAINING'))"/>
						<bind name="request" value="'buttonClick'; 'retrainCrew'; {shipId:  (shipInfo.isPremium ? selectedShipCrew.specializationID : _shipId), crewID: _crewId}"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<position value="absolute"/>
						<bottom value="-4px"/>
					</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="var" value="{showShipParams: false}"/>
			<bind name="catch" value="'showShipParamsEv'"/>
			<block>
				<bind name="visible" value="(_fromCrewSelect == true)"/>
				<style>
					<width value="100%"/>
					<height value="31px"/>
				</style>
				<bind name="instance" value="'ShipParamsSwitcher'; (_fromCrewSelect == true) ? {_showShipParams: showShipParams} : null"/>
				<block>
					<style>
						<width value="100%"/>
						<position value="absolute"/>
						<bottom value="1px"/>
					</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>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<marginTop value="1px"/>
			</style>
			<bind name="watch" value="'isShipParamsVisible'; (_fromCrewSelect == true) &amp;&amp;
											(showShipParams == true)"/>
			<bind name="watch" value="'isCrewsListVisible'; (_fromCrewSelect == true) &amp;&amp;
											(showShipParams == false)"/>
			<block>
				<bind name="visible" value="(isShipParamsVisible == true)"/>
				<style>
					<height value="100%f"/>
					<width value="100%"/>
					<overflow value="scroll"/>
				</style>
				<styleClass value="$DefaultScrollBar"/>
				<bind name="primaryEntityDH" value="'compareItemEntity'; CC.compareItem; 'testShipParams'"/>
				<bind name="watchDH" value="'testShipParams'; ['compareItemEntity.compareItem.evUpdate']; compareItemEntity.dataComponent.data"/>
				<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 450.0; selectedShipCrew.specializationID; 'fullShipParams'; playerShipInfo != null ? playerShipInfo.params : shipInfo.params; testShipParams; 1; 0; null; 0; 1; 1; excursionOff"/>
				<bind name="watch" value="'excursionOff'; true"/>
				<bind name="instance" value="'ShipParamsListView'; { viewParams: viewParams, _armourOff: true}"/>
			</block>
			<block>
				<bind name="visible" value="(isCrewsListVisible == true)"/>
				<style>
					<height value="100%f"/>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<block className="tab_bar_bg" type="native">
						<style>
							<width value="100%"/>
							<height value="23px"/>
							<marginBottom value="2px"/>
							<marginRight value="1px"/>
						</style>
						<block>
							<style>
								<width value="100%"/>
								<marginLeft value="2px"/>
								<marginRight value="2px"/>
							</style>
							<block className="tab_bar_item_small" type="native">
								<style>
									<width value="50%"/>
									<height value="23px"/>
								</style>
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_CREW_FROM_BARACKS'}; 0"/>
								<bind name="label" value="toUpperCase(tr('IDS_FROM_BARRACKS'))"/>
								<bind name="catch" value="'click'; {selectedCrewDest: 0}"/>
								<bind name="selected" value="selectedCrewDest == 0"/>
								<bind name="name" value="'TabFromBarracks'"/>
							</block>
							<block className="divider_v" type="native">
								<style>
									<height value="19px"/>
									<marginTop value="2px"/>
								</style>
							</block>
							<block className="tab_bar_item_small" type="native">
								<style>
									<width value="50%"/>
									<height value="23px"/>
								</style>
								<bind name="label" value="toUpperCase(tr('IDS_FROM_OTHER_SHIPS'))"/>
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_CREW_FROM_SHIP'}; 0"/>
								<bind name="catch" value="'click';{selectedCrewDest:1}"/>
								<bind name="selected" value="selectedCrewDest == 1"/>
								<bind name="name" value="'TabFromOtherShips'"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
				<bind name="collectionDH" value="CC.crew; 'freeCrew'; 'real.freeCrew'"/>
				<bind name="collectionDH" value="CC.crew; 'busyCrew'; 'real.busyCrew'"/>
				<bind name="child" value="selectedCrewDest; 	{_selectedShipId: _shipId, path: selectedCrewDest == 0	? 'real.freeCrew.sorted'
																									: 'real.busyCrew.sorted'};
											'CrewList'; 'CrewList'"/>
				<block>
					<bind name="visible" value="(selectedCrewDest == 0 &amp;&amp; freeCrew.length == 0) || (selectedCrewDest == 1 &amp;&amp; busyCrew.length == 0)"/>
					<style>
						<width value="100%"/>
						<height value="64px"/>
					</style>
					<block>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="instance" value="'EmptyStatusParagraph'; 	(selectedCrewDest == 0 &amp;&amp; freeCrew.length == 0) 	? {_text: 'IDS_CREW_INFO_NO_CREWS_ON_NATION_SHIPS'} :
																(selectedCrewDest == 1 &amp;&amp; busyCrew.length == 0) 	? { _text: 'IDS_CREW_INFO_NO_CREWS_IN_NATION_BARRACKS'} : null "/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_fromCrewSelect == true)"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginTop value="6px"/>
					<right value="0px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultTech"/>
					<bind name="name" value="'BarracksCapacity'"/>
					<bind name="text" value="tr('IDS_FREE_PLACES_IN_BARRACKS')"/>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<marginTop value="-2px"/>
					</style>
					<bind name="text" value="crewsSingleton.barracksCapacity - crewsSingleton.crewsInBarracks"/>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<alpha value="0.7"/>
						<marginTop value="-2px"/>
						<marginLeft value="-1px"/>
						<marginRight value="-2px"/>
					</style>
					<text value="/"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<alpha value="0.7"/>
					</style>
					<bind name="text" value="crewsSingleton.barracksCapacity"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<bind name="watch" value="'isIncreaseBarracksBtnEnabled'; (barracksCapacityPrice.prices[0].finalPrice &lt;= accountGold)"/>
			<block>
				<style>
					<marginTop value="4px"/>
					<right value="0px"/>
				</style>
				<bind name="style" value="'hitTest'; (isIncreaseBarracksBtnEnabled == true)"/>
				<bind name="request" value="'click'; 'increaseBarracksCapacity'; {}"/>
				<bind name="name" value="'ButtonExpandBarracks'"/>
				<bind name="instance" value="'DefaultButtonCostSmall'; { _label: toUpperCase(tr('IDS_EXPAND_BARRACKS')), priceInfo: barracksCapacityPrice.prices[0],
														_enabled: (isIncreaseBarracksBtnEnabled == true), _showDiscountTag: true}"/>
			</block>
		</block>
	</block>
	<block className="ShipParamsSwitcher">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<styleClass value="$Fullsize"/>
		<bind name="dispatch" value="'click'; 'showShipParamsEv'; {showShipParams: !(_showShipParams)}"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: (_showShipParams	? 'IDS_INSTRUCTION_HIDE_SHIP_TTX'
																														: 'IDS_INSTRUCTION_SHOW_SHIP_TTX' )}],
												_maxWidth: '250'}"/>
		<block className="tab_bar_down" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-2px"/>
			</style>
			<bind name="soundOn" value="'mouseDown'; 'press'; 'default_button'"/>
			<bind name="transition" value="rollOver; 0.15; {alpha: 0}; {alpha: 1}"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="4px"/>
			</style>
			<block className="button_TTX_switcher" type="native">
				<style>
					<marginRight value="-9px"/>
					<marginTop value="2px"/>
				</style>
				<params>
					<param name="name" value="ButtonTTXDisplay"/>
				</params>
				<bind name="selected" value="_showShipParams"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<style>
					<marginLeft value="6px"/>
				</style>
				<bind name="text" value="'IDS_SHIP_PARAMS'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CrewShipPanelBlock">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; crew.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="watch" value="'isNeedRetraining'; ((crew.shipID &amp;&amp; (crew.shipID != crew.specializationID)) &amp;&amp; !(shipInfo.isPremium) &amp;&amp; (shipInfo.group != 'upgradeableExclusive'))"/>
		<bind name="name" value="'CrewShipPanelBlock'"/>
		<styleClass value="$Fullsize"/>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="menu" value="'CrewMenu'; {_crewId: crew.id, _dropDown: false, _fromCrewSelect: true }; null; 'crewMenuVisible'"/>
			<bind name="selected" value="crewMenuVisible"/>
			<bind name="tooltip" value="'CrewTooltip'; { _crewId: crew.id, _checkPenalty: false, _fromPort: true}"/>
			<bind name="dispatch" value="'buttonClick'; 'evShowCrewToDock'; {}"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<style>
				<hitTest value="false"/>
			</style>
			<block>
				<bind name="instance" value="'CommanderNameAndRankDropdown'; { _crew: crew, _nation: crew.nation, _enabled: false, _needSmallMargin: true }"/>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<right value="0px"/>
					<bottom value="1px"/>
				</style>
				<bind name="instance" value="'CommanderPortraitBig'; {_baseUrl: crew.baseUrl, _overlayUrl: crew.overlayUrl}"/>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<bottom value="4px"/>
					<right value="10px"/>
				</style>
				<bind name="instance" value="'CrewSkillPointItem'; { _skillPoints: crew.freeSkillPoints, _allSkillPoints: crew.allSkillPoints }"/>
			</block>
			<block>
				<bind name="visible" value="!(isNeedRetraining)"/>
				<style>
					<position value="absolute"/>
					<bottom value="4px"/>
				</style>
				<bind name="instance" value="'CrewExperienceBar'; { _crewId: crew.id}"/>
			</block>
			<block>
				<bind name="visible" value="isNeedRetraining"/>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="4px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<styleClass value="$MouseDisable"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="toUpperCase(tr('IDS_CREW_NEED_RETRAINING'))"/>
				</block>
			</block>
		</block>
	</block>
	<block className="CrewShipPanelInnerBlock">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'selectedShipCrew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'selectedShipCrew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; selectedShipCrew.shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<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="watch" value="'enabledDropdown'; !(_inTooltip) &amp;&amp; (selectedShipCrew.dismissDelay == 0)"/>
		<bind name="watch" value="'specializationShip'; !(selectedShipCrew.shipID) || (selectedShipCrew.shipID == selectedShipCrew.specializationID)"/>
		<bind name="watch" value="'isNeedRetraining'; !specializationShip &amp;&amp; !shipInfo.isPremium &amp;&amp; (shipInfo.group != 'upgradeableExclusive')"/>
		<styleClass value="$Fullsize"/>
		<styleClass value="$InfoBlockHorizontalIndent"/>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="-2px"/>
				<right value="0px"/>
			</style>
			<bind name="instance" value="'CommanderPortraitMax'; {_baseUrl: selectedShipCrew.baseUrl, _overlayUrl: selectedShipCrew.overlayUrl}"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="2px"/>
				<right value="15px"/>
			</style>
			<bind name="instance" value="'CrewSkillPointItem'; { _skillPoints: selectedShipCrew.freeSkillPoints, _allSkillPoints: selectedShipCrew.allSkillPoints }"/>
		</block>
		<block>
			<bind name="instance" value="'CommanderNameAndRankDropdown'; { 	_crew: selectedShipCrew, _nation: selectedShipCrew.nation,
															_fromCrewSelect: _fromCrewSelect, _enabled: enabledDropdown}"/>
		</block>
		<block>
			<bind name="visible" value="!(isNeedRetraining)"/>
			<style>
				<width value="100%"/>
				<position value="absolute"/>
				<bottom value="3px"/>
			</style>
			<block>
				<bind name="instance" value="'CrewExperienceBar'; {_crewId: _crewId}"/>
			</block>
			<block>
				<bind name="visible" value="(!(hasMaxLevel) || isInAdaptation) &amp;&amp; !(_inTooltip)"/>
				<bind name="watch" value="'isFastTrainingEnabled'; 	(!(playerShipInfo.isLocked) &amp;&amp; !(selectedShipCrewRetraining.isInAdaptation))"/>
				<bind name="watch" value="'isInAdaptation'; 			(selectedShipCrewRetraining.isInAdaptation == true)"/>
				<bind name="watch" value="'hasMaxLevel'; 			(selectedShipCrew.level == crewsSingleton.maxLevel)"/>
				<bind name="tooltip" value="'SimpleTooltip'; isFastTrainingEnabled ? {tooltipText: 'IDS_CREW_FAST_RETRAINING'} : {tooltipText: 'IDS_CREW_SPEED_UP_RETRAINING'}"/>
				<bind name="tooltip" value="'SimpleWarningTooltip'; playerShipInfo.isLocked	? {_text: tr('IDS_FAST_TRAINING_DISABLE_REASON_SHIP_IS_IN_BATTLE')} : null"/>
				<style>
					<marginLeft value="5px"/>
					<marginTop value="2px"/>
				</style>
				<block className="button_crew_level_up" type="native">
					<style>
						<width value="22px"/>
						<height value="22px"/>
					</style>
					<bind name="enabled" value="isFastTrainingEnabled || isInAdaptation"/>
					<bind name="request" value="'buttonClick'; isInAdaptation ? 'crewPenaltyCompensation' : 'crewFastTraining'; { shipId: selectedShipCrew.shipID, crewID: selectedShipCrew.id }"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="isNeedRetraining"/>
			<style>
				<width value="100%"/>
				<position value="absolute"/>
				<bottom value="2px"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<styleClass value="$MouseDisable"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="toUpperCase(tr('IDS_CREW_NEED_RETRAINING'))"/>
			</block>
		</block>
	</block>
	<block className="CrewHireShipPanelBlock">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<styleClass value="$Fullsize"/>
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<block>
			<bind name="fade" value="!(rollOver); 0.15; {alpha: 0, top: -10}; {alpha: 1, top: 0}"/>
			<style>
				<width value="100%"/>
			</style>
			<styleClass value="$MiddleVAlignedAbsolutely"/>
			<block type="text">
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<marginBottom value="1px"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="toUpperCase(tr('IDS_NO_CREW'))"/>
			</block>
		</block>
		<block>
			<bind name="fade" value="(rollOver); 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<style>
				<width value="200px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_GO_TO'}], _maxWidth: 250 }"/>
			<bind name="instance" value="'DockButton'; rollOver ? {_label: toUpperCase(tr('IDS_ASSIGN_CREW')), _enabled: true, _dispatchEvent: 'evShowCrewToDock' } : null"/>
		</block>
	</block>
	<block className="CrewList">
		<styleClass value="$DefaultScrollBar"/>
		<style>
			<height value="100%f"/>
			<width value="100%"/>
			<overflow value="scroll"/>
			<layout value="lesta.unbound.layout.measure.CarouselLayout"/>
			<wheelScrollSpeed value="45"/>
			<itemWidth value="312px"/>
			<itemHeight value="75px"/>
		</style>
		<bind name="generatorDH" value="CC.crew; 'CrewListItemRenderer'; path; {_selectedShipId: _selectedShipId}"/>
	</block>
	<block className="CrewSpecializationItem">
		<block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="text" value="_isInAdaptation ? ('IDS_CREW_IN_ADAPTATION') : (tr('IDS_SPECIALITY') + tr('IDS_COLON'))"/>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="6px"/>
				</style>
				<bind name="instance" value="'ShipLineItem'; { _shipId: _shipId, _width: 'auto'}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CrewSpecializationTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
		</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 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="$InfoBlockIndent"/>
			<block>
				<bind name="instance" value="'CrewSpecializationItem'; {	_shipId: _shipId, _isInAdaptation: _isInAdaptation,	_inTooltip: true }"/>
			</block>
			<block>
				<style>
					<marginTop value="15px"/>
				</style>
				<bind name="instance" value="'CrewExperienceBar'; { _crewId: _crewId }"/>
			</block>
		</block>
	</block>
	<block className="EliteXpCounter">
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CONVERTED_TO_ELITE_XP_HINT'}"/>
		<block type="text">
			<styleClass value="$TextLargeHeader"/>
			<bind name="text" value="tr('IDS_ELITE_XP')"/>
		</block>
		<block>
			<style>
				<marginTop value="-5px"/>
				<marginBottom value="-1px"/>
			</style>
			<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: _eliteXP, currency: 'eliteXP'}, _large:true, _name: 'crew_elite_xp'}"/>
		</block>
	</block>
	<block className="EliteXpPreview">
		<style>
			<width value="100%"/>
			<alpha value="0.7"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="icon_question_mark" type="native">
				<style>
					<top value="3px"/>
					<marginLeft value="2px"/>
				</style>
				<bind name="tooltip" value="'MultiParagraphHelpTooltip'; {	_tooltipHeader: 'IDS_ELITE_XP',
															_width: 350,	_multiParagraphArray: [	{_paragraphText: 'IDS_ELITE_XP_INSTRUCTION_0'},
																									{_paragraphText: 'IDS_ELITE_XP_INSTRUCTION_1'}]}"/>
			</block>
			<block className="icon_currency" type="native">
				<style>
					<marginLeft value="6px"/>
					<marginRight value="4px"/>
					<top value="-2px"/>
				</style>
				<bind name="gotoAndStop!" value="'eliteXP_large'"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="toUpperCase(tr('IDS_ELITE_XP'))"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="5px"/>
			</style>
			<bind name="repeat" value="[{ _paragraphText: 'IDS_ELITE_XP_INFO'}]; 'RepeatParagraphItem'; {_maxWidth: 280, _leading: -1}"/>
		</block>
	</block>
	<block className="LootboxesBanner">
		<params>
			<param name="name" value="LootboxesBanner"/>
		</params>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="firstEntityDH" value="'lootboxEntity'; CC.lootboxConfigComponent"/>
		<bind name="watchDH" value="'maxBought';				['lootboxEntity.lootboxConfigComponent.evUpdate'];	lootboxEntity.lootboxConfigComponent.maxBought"/>
		<bind name="watchDH" value="'lootboxExp';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.lootExp"/>
		<bind name="watchDH" value="'boughtToday';			['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.boughtToday"/>
		<bind name="watchDH" value="'lootboxesInStorage';	['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.inStorage"/>
		<bind name="watch" value="'allBoxesBought'; (maxBought == boughtToday)"/>
		<bind name="watch" value="'canBuyLootbox'; (lootboxExp &gt;= lootboxEntity.lootboxConfigComponent.prices[boughtToday])"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0.3; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		<style>
			<width value="223px"/>
			<height value="36px"/>
		</style>
		<bind name="style" value="'height'; allBoxesBought ? '36px' : '72px'"/>
		<bind name="action" value="'click'; 'moveToBarge'; {}"/>
		<bind name="feature" value="21; 'click'"/>
		<bind name="soundSet" value="'lootbox_banner'"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_GO_TO_LOOTBOXES'}], _maxWidth: 250 }; 0"/>
		<block>
			<styleClass value="$Fullsize"/>
			<block className="quest_thumb_title" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.15; {alpha: 0.75}; {alpha: 1.0}"/>
			</block>
			<block>
				<bind name="visible" value="!(allBoxesBought)"/>
				<styleClass value="$Fullsize"/>
				<bind name="instance" value="'LootboxesBannerProgress'; {}"/>
			</block>
			<block>
				<bind name="visible" value="allBoxesBought"/>
				<styleClass value="$Fullsize"/>
				<bind name="instance" value="'LootboxesBannerTimer'; {}"/>
			</block>
			<block>
				<style>
					<marginRight value="3px"/>
					<width value="71px"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<block>
					<bind name="visible" value="canBuyLootbox == true"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$MiddleAlignedAbsolutely"/>
					<block className="icon_lootbox_glow_animation" type="native">
						<style>
							<position value="absolute"/>
						</style>
					</block>
				</block>
				<block className="icon_lootbox" type="native">
					<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.15; {alpha: 0.95}; {alpha: 1}"/>
					<bind name="gotoAndStop!" value="'normal'"/>
				</block>
				<block type="text">
					<bind name="visible" value="(lootboxesInStorage &gt; 0)"/>
					<bind name="style" value="'bottom'; allBoxesBought ? '-6px' : '-9px'"/>
					<style>
						<right value="0px"/>
						<position value="absolute"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="class" value="'$FontSizeHeader3'"/>
					<bind name="text" value="'x'+lootboxesInStorage"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="LootboxesBannerProgress">
		<bind name="firstEntityDH" value="'lootboxEntity'; CC.lootboxConfigComponent"/>
		<bind name="watchDH" value="'lootboxExp'; ['lootboxEntity.lootboxStorageComponent.evUpdate']; lootboxEntity.lootboxStorageComponent.lootExp"/>
		<bind name="watchDH" value="'boughtToday'; ['lootboxEntity.lootboxStorageComponent.evUpdate']; lootboxEntity.lootboxStorageComponent.boughtToday"/>
		<bind name="watchDH" value="'lootboxesInStorage'; ['lootboxEntity.lootboxStorageComponent.evUpdate']; lootboxEntity.lootboxStorageComponent.inStorage"/>
		<bind name="watch" value="'curLootboxPrice'; lootboxEntity.lootboxConfigComponent.prices[boughtToday]"/>
		<bind name="watch" value="'expToCurLootbox'; (lootboxExp &gt;= curLootboxPrice)	? 0
																	: (curLootboxPrice - lootboxExp)"/>
		<bind name="watch" value="'nextLootboxProgress'; ((expToCurLootbox &gt; 0) ? ( lootboxExp / curLootboxPrice) : 1)"/>
		<styleClass value="$Fullsize"/>
		<style>
			<marginLeft value="9px"/>
		</style>
		<block>
			<style>
				<marginTop value="3px"/>
			</style>
			<block type="text">
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="text" value="format(lootboxExp, -1)"/>
			</block>
			<block className="icon_exp" type="native">
				<style>
					<marginLeft value="-3px"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<top value="32px"/>
			</style>
			<bind name="instance" value="'LootboxProgressBar'; {_width: 132, _height: 9, _curValue: (nextLootboxProgress*10)}"/>
		</block>
		<block type="text">
			<style>
				<marginTop value="12px"/>
			</style>
			<styleClass value="$TextDefaultBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="class" value="'$FontSizeSmall'"/>
			<bind name="text" value="(expToCurLootbox &gt; 0 ? (toUpperCase(tr('IDS_MORE')) + ' ' + expToCurLootbox)
										 : toUpperCase(tr('IDS_YOU_SHOULD_PURCHASE_LOOTBOX')))"/>
		</block>
	</block>
	<block className="LootboxesBannerTimer">
		<bind name="firstEntityDH" value="'lootboxEntity'; CC.lootboxConfigComponent"/>
		<bind name="watchDH" value="'dropTimeStamp';	['lootboxEntity.lootboxStorageComponent.evUpdate'];	lootboxEntity.lootboxStorageComponent.dropAt"/>
		<bind name="countdown" value="dropTimeStamp; 'countdownText'; 'hh:mm:ss'"/>
		<styleClass value="$MiddleVAligned"/>
		<styleClass value="$MiddleAligned"/>
		<block type="text">
			<styleClass value="$TextHeaderWhiteBold"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<bind name="pureText" value="'-' + countdownText"/>
		</block>
	</block>
	<block className="LootboxProgressBar">
		<bind name="style" value="'width'; _width+'px'"/>
		<bind name="style" value="'height'; _height+'px'"/>
		<block className="indicator_progress_bar_yellow" type="native">
			<styleClass value="$Fullsize"/>
			<bind name="value" value="_curValue"/>
		</block>
	</block>
	<block className="CampaignsBanner">
		<params>
			<param name="name" value="CampaignsBanner"/>
		</params>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="firstEntityDH" value="'slotsEntity'; CC.constantsCampaignSlots"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="collectionDH" value="CC.campaignTaskPlayer; 'choosenTasks'; 'active'"/>
		<bind name="collectionDH" value="CC.campaignTaskPlayer; 'stateDone'; 'active.taskStateDone'"/>
		<bind name="watchDH" value="'common'; []; slotsEntity.constantsCampaignSlots.common"/>
		<bind name="watchDH" value="'premium'; []; slotsEntity.constantsCampaignSlots.premium"/>
		<bind name="watch" value="'totalSlots'; common + premium"/>
		<bind name="watch" value="'noSelectedTask'; 	(choosenTasks.length == 0)"/>
		<bind name="watch" value="'selectedTask'; 	(choosenTasks.length &gt; 0)"/>
		<bind name="watch" value="'totalAvailableTaskCount'; isPremiumAccount 	? totalSlots
																: !(isPremiumAccount) &amp;&amp; (choosenTasks.length == totalSlots) 	? totalSlots 
																																: common
																: common"/>
		<style>
			<width value="223px"/>
			<height value="80px"/>
		</style>
		<bind name="soundSet" value="'default_button'"/>
		<bind name="action" value="'click'; 	'openChooseCampaignsWindow';
							stateDone.length &gt; 0 ? 	{ campaignId: stateDone[0].campaignTaskParams.campaignID, missionId: stateDone[0].campaignTaskParams.missionID, state: 'tasks' } : 
													{ }"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; {_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_GO_TO_CAMPAIGN'}], _maxWidth: 230}"/>
		<block>
			<style>
				<width value="223px"/>
				<height value="80px"/>
				<backgroundSize value="cover"/>
				<position value="absolute"/>
			</style>
			<bind name="style" value="'backgroundImage'; (stateDone.length &gt; 0) 	? 'url:../campaigns/bg_task_item/task_bg_campaign_' + (stateDone[0].campaignTaskParams.bgIconID ? stateDone[0].campaignTaskParams.bgIconID : stateDone[0].campaignTaskParams.number) + '.png':
										selectedTask 			? 'url:../campaigns/bg_task_item/task_bg_campaign_' + (choosenTasks[0].campaignTaskParams.bgIconID ? choosenTasks[0].campaignTaskParams.bgIconID : choosenTasks[0].campaignTaskParams.number) + '.png'
																: 'url:../campaigns/banner/banner_bg_new.png'"/>
		</block>
		<block className="white_panel_gradient" type="native">
			<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.15; {alpha: 0}; {alpha: 0.7}"/>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block className="quest_thumb_title" type="native">
			<style>
				<width value="223px"/>
				<height value="36px"/>
			</style>
			<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.15; {alpha: 0.8}; {alpha: 1.0}"/>
			<block type="text">
				<style>
					<marginLeft value="8px"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="text" value="toUpperCase(tr('IDS_CAMPAIGNS'))"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(stateDone.length &gt; 0) || (noSelectedTask)"/>
			<style>
				<width value="110px"/>
				<height value="80px"/>
				<backgroundSize value="cover"/>
				<position value="absolute"/>
				<right value="0px"/>
			</style>
			<bind name="style" value="'backgroundImage'; (stateDone.length &gt; 0)	? 'url:../campaigns/banner/banner_reward.png':
										noSelectedTask			? 'url:../campaigns/banner/banner_logo.png'
																: 'url:../campaigns/banner/banner_logo.png'"/>
		</block>
		<block type="text">
			<bind name="visible" value="(stateDone.length &gt; 0) || (selectedTask)"/>
			<style>
				<position value="absolute"/>
				<bottom value="10px"/>
				<left value="8px"/>
			</style>
			<styleClass value="$TextHeaderWhiteBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="(stateDone.length &gt; 0) 	? ('IDS_CAMPAIGN_TAKE_REWARD'):
					selectedTask			? (tr('IDS_CAMPAIGN_TASKS_IN_PROGRESS')) + ' ' + choosenTasks.length + '/' + totalAvailableTaskCount
											: ''"/>
		</block>
	</block>
	<block className="Modernization">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerModernizations"/>
		<styleClass value="$MiddleAligned"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="appear" value="'addedToStage'; 0.15; 0.07; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
		<bind name="repeat" value="modernizationsSlotsList; 'ModernizationItem'"/>
	</block>
	<block className="ModernizationItem">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="name" value="'ButtonModernizationSlot_' + $index"/>
		<style>
			<marginRight value="5px"/>
		</style>
		<block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<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_blurmap5_feather" 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="button_empty_slot" type="native">
				<bind name="tooltip" value="'ModernizationSlotInfotip';{list:itemsInSlot}; TooltipBehaviour.verticalInfotip"/>
				<bind name="tooltip" value="'ModernizationEmptySlotTooltip'; {list:itemsInSlot}; TooltipBehaviour.simple"/>
				<bind name="visible" value="installedItem.id == -1"/>
				<bind name="selected" value="ModernizationSlotInfotip4"/>
				<bind name="name" value="'ButtonModernizationEmptySlot_' + $index"/>
			</block>
			<block className="button_full_slot" type="native">
				<bind name="tooltip" value="'ModernizationSlotInfotip';{list:itemsInSlot}; TooltipBehaviour.verticalInfotip"/>
				<bind name="tooltip" value="'ModernizationTooltip'; {installed:(installedItem.id != -1), iconPath: installedItem.iconPath, 
													title: installedItem.title, paramsList:installedItem.paramsList, type: installedItem.type,
													tooltiptype: 1, _modId: installedItem.id, description:installedItem.description}; 0"/>
				<bind name="visible" value="installedItem.id != -1"/>
				<bind name="selected" value="ModernizationSlotInfotip4"/>
				<bind name="name" value="'ButtonModernizationFullSlot_' + $index"/>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + installedItem.iconPath"/>
					<styleClass value="$PxIndent"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
						<hitTest value="false"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<bind name="fade" value="(maxItemType != 0); 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_MODERNIZATION_TYPE_' + toUpperCase(tr(modernizationType)))}; 0"/>
			<bind name="watch" value="'modernizationType'; 	(maxItemType == 1) 	? 'special' :
											(maxItemType == 2) 		? 'rare' :
											(maxItemType == 3) ? 'legendary'
																				: ''"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="23px"/>
				<height value="23px"/>
				<marginTop value="-5px"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:../service_kit/item_types/icon_modernization_' + modernizationType + '.png'"/>
		</block>
	</block>
	<block className="Consumables">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerModernizations"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="6px"/>
			</style>
			<block>
				<bind name="visible" value="artillerySlotsList.length &gt; 0"/>
				<style>
					<marginRight value="10px"/>
					<marginLeft value="10px"/>
				</style>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.07; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'BranchTypeLabelDark'; {nameIDS: tr('IDS_MAIN_CALIBER')}"/>
				</block>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<style>
						<marginTop value="10px"/>
					</style>
					<bind name="repeat" value="artillerySlotsList; 'ConsumableSlotItem'"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="torpedoSlotsList.length &gt; 0"/>
				<style>
					<marginRight value="10px"/>
					<marginLeft value="10px"/>
				</style>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.07; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'BranchTypeLabelDark'; {nameIDS: tr('IDS_TORPEDO_LAUNCHERS')}"/>
				</block>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<style>
						<marginTop value="10px"/>
					</style>
					<bind name="repeat" value="torpedoSlotsList; 'ConsumableSlotItem'"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="planesSlotsList.length &gt; 0"/>
				<style>
					<marginRight value="10px"/>
					<marginLeft value="10px"/>
				</style>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.07; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'BranchTypeLabelDark'; {nameIDS: tr('IDS_SHIP_PARAM_AVIATION')}"/>
				</block>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<style>
						<marginTop value="10px"/>
					</style>
					<bind name="repeat" value="planesSlotsList; 'ConsumableSlotItem'"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="consumablesSlotsList.length &gt; 0"/>
				<style>
					<marginRight value="10px"/>
					<marginLeft value="10px"/>
				</style>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.07; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'BranchTypeLabelDark'; {nameIDS: tr('IDS_CONSUMABLES')}"/>
				</block>
				<block>
					<bind name="appear" value="'addedToStage'; 0.15; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
					<style>
						<marginTop value="10px"/>
					</style>
					<bind name="repeat" value="consumablesSlotsList; 'ConsumableSlotItem'"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.22; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
			<style>
				<width value="100%"/>
				<marginTop value="10px"/>
			</style>
			<bind name="instance" value="'ConsumablesAutoreplenishment'; (playerShipInfo.canBuySomeAbility == true) ? {_hasPaidConsumes: hasPaidConsumes} : null"/>
		</block>
	</block>
	<block className="ConsumableSlotItem">
		<style>
			<marginRight value="3px"/>
			<marginLeft value="3px"/>
		</style>
		<bind name="watch" value="'isWeapon'; (installedItem.weaponType || (installedItem.weaponType==0) ? true : false)"/>
		<block>
			<style>
				<width value="54px"/>
				<height value="54px"/>
			</style>
			<bind name="dispatch" value="'consumableInfotipItem.clicked'; 'Tooltip.Close'"/>
			<bind name="tooltip" value="'ConsumableTooltip';{_id: installedItem.id, _hasAlternatives: ((itemsInSlot.length &gt; 1) ? true : false),
											_isWeapon: isWeapon, _isSlotTooltip: true}; TooltipBehaviour.simple"/>
			<bind name="tooltip" value="'ConsumablesInfotip'; (itemsInSlot.length &gt; 1) 	? { _itemsInSlot: itemsInSlot}
																		: null; TooltipBehaviour.verticalInfotip; null; 'consumablesInfotipIsVIsible'"/>
			<block>
				<style>
					<position value="absolute"/>
					<width value="60px"/>
					<height value="60px"/>
					<top value="-3px"/>
					<left value="-3px"/>
				</style>
				<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_blurmap5_feather" 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="button_empty_slot" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="visible" value="installedItem.id == -1"/>
			</block>
			<block className="button_ability_slot" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="visible" value="(installedItem.id != -1) &amp;&amp; (itemsInSlot.length &gt; 1)"/>
				<style>
					<position value="absolute"/>
				</style>
				<bind name="selected" value="consumablesInfotipIsVIsible"/>
			</block>
			<block>
				<bind name="visible" value="installedItem.id != -1"/>
				<bind name="style" value="'backgroundImage'; 'url:' + installedItem.iconPath"/>
				<bind name="style" value="'hitTest'; (itemsInSlot.length &gt; 1) ? false : true"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="60px"/>
					<height value="60px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
					<position value="absolute"/>
				</style>
				<bind name="style" value="'width'; installedItem.weaponType || installedItem.weaponType==0 ? '52px' : '60px'"/>
				<bind name="style" value="'height'; installedItem.weaponType || installedItem.weaponType==0 ? '52px' : '60px'"/>
			</block>
		</block>
		<block>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_NUMCONSUMABLES'}"/>
			<bind name="visible" value="(installedItem.id != -1) &amp;&amp; !(isWeapon) &amp;&amp; (installedItem.params[2].value != -1)"/>
			<style>
				<top value="0px"/>
				<right value="3px"/>
				<width value="20px"/>
				<height value="15px"/>
				<position value="absolute"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<block type="text">
				<style>
					<marginTop value="0px"/>
					<right value="0"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="installedItem.params[2].value"/>
			</block>
		</block>
		<block>
			<style>
				<marginTop value="5px"/>
				<left value="50%"/>
			</style>
			<block className="HotkeyAnimation" type="native">
				<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_HINT_BATTLE_COMMAND_KEY'}"/>
				<bind name="commandId" value="installedItem.commandId"/>
			</block>
		</block>
	</block>
	<block className="ConsumableTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + _id; 'priceInfoSet'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; (_isWeapon ? 'weaponsInfo' : 'consumeInfo'); _id; 'consumable'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="340px"/>
			<hitTest value="false"/>
		</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>
			<block>
				<style>
					<width value="100%"/>
					<paddingTop value="8px"/>
					<paddingBottom value="8px"/>
					<paddingLeft value="6px"/>
					<paddingRight value="6px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + consumable.iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<marginLeft value="6px"/>
						<marginTop value="-1px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBold"/>
						<style>
							<width value="100%"/>
							<leading value="-5"/>
						</style>
						<bind name="class" value="consumable.installed	? '$FontColorGolden'
														: '$FontColorWhite'"/>
						<bind name="text" value="consumable.title"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<style>
							<width value="100%"/>
							<marginTop value="-4px"/>
						</style>
						<bind name="text" value="(_isWeapon	? 'IDS_AMMUNITION' : 'IDS_CONSUMABLES')"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="consumable.installed"/>
					<style>
						<right value="1px"/>
						<top value="8px"/>
						<position value="absolute"/>
					</style>
					<block className="HotkeyAnimation" type="native">
						<bind name="commandId" value="consumable.commandId"/>
					</block>
				</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>
				<bind name="visible" value="consumable.installed"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block className="icon_check" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<style>
							<marginLeft value="4px"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<text value="IDS_CONSUMABLE_MOUNTED"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="(!(consumable.freeOfCharge)) &amp;&amp; (consumable.numInStorage &gt; 0)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="text" value="tr('IDS_IN_WAREHOUSE') + ' ' + consumable.numInStorage"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="_hasAlternatives"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="instance" value="'CreditsOrGoldTooltipPriceLine'; {	_title: ((consumable.installed || (consumable.numInStorage &gt; 0)) 	? (tr('IDS_AUTOREPLANISHMENT') + tr('IDS_COLON'))
																																		: 'IDS_COST'),
																	_prices: priceInfoSet.prices }"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="text" value="consumable.description"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
					<styleClass value="$PxHorizontalCorrection"/>
					<style>
						<position value="absolute"/>
						<marginBottom value="1px"/>
					</style>
				</block>
				<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; null; 'tooltipModuleParams' + consumable.paramsDescriptor; consumable.params"/>
				<bind name="instance" value="'ShipParamsListView'; _isWeapon ? { viewParams:viewParams, secondLevelTooltip: true } : null"/>
				<block>
					<bind name="visible" value="!(_isWeapon)"/>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="instance" value="'ConsumableParams'; _isWeapon ? null : { paramsList: consumable.params, _isTooltip: true }"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="!(consumable.installed) &amp;&amp; !(playerShipInfo.isLocked) &amp;&amp; !(_noMouseInstructions)"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'MouseInstruction'; ((!(consumable.freeOfCharge)) &amp;&amp; (consumable.numInStorage == 0))	? {_type: 'left', _instructionText: 'IDS_DO_PURCHASE_AND_INSTALL', _maxWidth: 300}
												 																	: {_type: 'left', _instructionText: 'IDS_INSTALL', _maxWidth: 300}"/>
			</block>
			<block>
				<bind name="visible" value="consumable.installed &amp;&amp; _isSlotTooltip &amp;&amp; !(_isWeapon) &amp;&amp; _hasAlternatives &amp;&amp; !(_noMouseInstructions)"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'MouseInstruction';  {_type: 'left', _instructionText: 'IDS_INSTRUCTION_OPEN_CONSUMABLES', _maxWidth: 300}"/>
			</block>
			<block>
				<bind name="visible" value="playerShipInfo.isLocked &amp;&amp; !(_isWeapon) &amp;&amp; _hasAlternatives"/>
				<styleClass value="$InfoBlockIndent"/>
				<block className="icon_warning_orange" type="native">
					<style>
						<marginTop value="4px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<maxWidth value="300"/>
					</style>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="(divisionData != null) &amp;&amp; divisionData.divisionExist	? (divisionEntranceData.divisionType == 'party')	? 'IDS_SET_UNREADY_PARTY_FIRST_TO_CHANGE_CONSUMABLES'
																																		: 'IDS_SET_UNREADY_DIVISION_FIRST_TO_CHANGE_CONSUMABLES'
																					: 'IDS_LEAVE_BATTLE_FIRST_TO_CHANGE_CONSUMABLES'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ConsumablesInfotip">
		<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="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<styleClass value="$VerticalInfotipBehaviourCenter"/>
		<style>
			<width value="360px"/>
		</style>
		<block className="dock_panel_pin" type="native">
			<style>
				<position value="absolute"/>
				<top value="-9px"/>
			</style>
			<bind name="gotoAndStop!" value="'up'"/>
			<params>
				<param name="name" value="pinTop"/>
			</params>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<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="!(true)"/>
					<block className="hint_panel" type="native">
						<styleClass value="$FullsizeAbsolute"/>
					</block>
				</block>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="visible" value="true"/>
					<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="_itemsInSlot; 'ConsumablesInfotipItem'"/>
			</block>
			<block>
				<bind name="visible" value="!(playerShipInfo.isLocked)"/>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorStrongBlueish'"/>
					<text value="IDS_CHOOSE_CONSUMABLE"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="playerShipInfo.isLocked"/>
				<styleClass value="$InfoBlockIndent"/>
				<block className="icon_warning_orange" type="native">
					<style>
						<marginTop value="4px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<maxWidth value="300"/>
					</style>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="(divisionData != null) &amp;&amp; divisionData.divisionExist	? (divisionEntranceData.divisionType == 'party')	? 'IDS_SET_UNREADY_PARTY_FIRST_TO_CHANGE_CONSUMABLES'
																																		: 'IDS_SET_UNREADY_DIVISION_FIRST_TO_CHANGE_CONSUMABLES'
																					: 'IDS_LEAVE_BATTLE_FIRST_TO_CHANGE_CONSUMABLES'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ConsumablesInfotipItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + id; 'priceInfoSet'"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<style>
			<width value="100%"/>
		</style>
		<block className="dock_submenu_item" type="native">
			<bind name="request" value="'click'; !(playerShipInfo.isLocked) ? 'consumableClicked' : null; {name: name, slotId:slotId, useGold: (priceInfoSet.prices[validSelectedPriceIndex].currency == 'gold'), selectedPriceIndex: validSelectedPriceIndex}"/>
			<bind name="dispatch" value="'click'; 'consumableInfotipItem.clicked'"/>
			<bind name="tooltip" value="'ConsumableTooltip'; { _id: id, _isWeapon: ((weaponType || weaponType==0) ? true : false) }; 0"/>
			<bind name="selected" value="installed"/>
			<styleClass value="$FullsizeAbsolute"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="4px"/>
					<marginBottom value="6px"/>
				</style>
				<block>
					<bind name="style" value="'backgroundImage'; 'url:' + iconPath"/>
					<style>
						<width value="60px"/>
						<height value="60px"/>
						<backgroundStretchX value="true"/>
						<backgroundStretchY value="true"/>
						<hitTest value="false"/>
					</style>
				</block>
				<block>
					<style>
						<width value="190px"/>
						<hitTest value="false"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="class" value="installed	? '$FontColorGolden' 
											: '$FontColorWhite'"/>
						<bind name="text" value="title"/>
					</block>
					<block>
						<style>
							<marginTop value="4px"/>
						</style>
						<bind name="instance" value="'ConsumableParams'; { paramsList: params }"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<position value="absolute"/>
					</style>
					<block>
						<style>
							<right value="0px"/>
							<marginRight value="1px"/>
						</style>
						<block>
							<style>
								<marginTop value="0px"/>
								<marginBottom value="-2px"/>
								<marginRight value="5px"/>
							</style>
							<bind name="visible" value="!(freeOfCharge) &amp;&amp; canBuy"/>
							<bind name="class" value="playerShipInfo.isLocked ? '$MouseDisable' : '$MouseEnable'"/>
							<bind name="catch" value="'selectedPriceChanged'"/>
							<bind name="var" value="{selectedPriceIndex: useGold ? 1 : 0}"/>
							<bind name="watch" value="'selectedPriceIndex'; (installed ? (useGold ? 1 : 0) : selectedPriceIndex)"/>
							<bind name="watch" value="'validSelectedPriceIndex'; selectedPriceIndex &gt;= priceInfoSet.prices.length ? 0 : selectedPriceIndex"/>
							<bind name="changeDispatch" value="validSelectedPriceIndex; 'selectedPriceIndexChanged'"/>
							<bind name="action" value="'selectedPriceIndexChanged'; (priceInfoSet.prices.length &gt; 1 &amp;&amp; validSelectedPriceIndex != useGold ? ( installed ? 'changeSlotCurrency' : 'changeCurrencyPreferences' ) : '') ; {slotId: slotId, abilityId: name, useGold: (priceInfoSet.prices[validSelectedPriceIndex].currency == 'gold')}"/>
							<bind name="instance" value="'AlterablePriceTag'; {_tooltipText: ( installed ? 'IDS_AUTORECHARGE_COST' : 'IDS_CONSUMABLES_COST' ) , _prices: priceInfoSet.prices, _showDiscountTag: true, _selectedPriceIndex: validSelectedPriceIndex}"/>
						</block>
						<block>
							<bind name="visible" value="freeOfCharge"/>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: installed ? 'IDS_AUTORECHARGE_COST' : 'IDS_CONSUMABLES_COST'}"/>
							<style>
								<alpha value="0.7"/>
								<marginRight value="6px"/>
								<marginTop value="1px"/>
								<marginBottom value="2px"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefaultWhite"/>
								<bind name="text" value="'IDS_FOR_FREE'"/>
							</block>
						</block>
						<block>
							<bind name="visible" value="installed"/>
							<style>
								<marginLeft value="-3px"/>
								<marginRight value="5px"/>
							</style>
							<block className="icon_module_state" type="native">
								<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CONSUMABLE_MOUNTED'}"/>
								<style>
									<marginTop value="5px"/>
								</style>
								<bind name="gotoAndStop!" value="'installed'"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="installed"/>
						<style>
							<right value="-1px"/>
							<marginTop value="6px"/>
						</style>
						<block className="HotkeyAnimation" type="native">
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_BATTLE_COMMAND_KEY'}"/>
							<bind name="commandId" value="commandId"/>
						</block>
					</block>
					<block>
						<bind name="visible" value="(!(freeOfCharge)) &amp;&amp; (!(installed) &amp;&amp; (numInStorage != 0))"/>
						<style>
							<right value="9px"/>
							<marginTop value="-1px"/>
							<hitTest value="false"/>
						</style>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="text" value="tr('IDS_IN_WAREHOUSE') + ' ' + numInStorage"/>
						</block>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<bottom value="0px"/>
					<position value="absolute"/>
				</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>
	<block className="ConsumableParams">
		<style>
			<width value="100%"/>
		</style>
		<bind name="repeat" value="	paramsList; 'ConsumableParamRow'; { _isTooltip: _isTooltip }"/>
	</block>
	<block className="ConsumableParamRow">
		<bind name="visible" value="value != -1"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="style" value="'marginTop'; _isTooltip ? '0px' : '-3px'"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<style>
					<alpha value="0.7"/>
				</style>
				<styleClass value="$TextParams"/>
				<bind name="text" value="ids"/>
			</block>
			<block type="text">
				<styleClass value="$TextParams"/>
				<bind name="class" value="_isTooltip ? '$AlignRight' : '$None'"/>
				<style>
					<alpha value="0.9"/>
				</style>
				<bind name="text" value="value + ' ' + measure"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CreditsOrGoldTooltipPriceLine">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="text" value="_title"/>
			</block>
			<block type="text">
				<bind name="visible" value="(!(_prices[0].finalPrice) &amp;&amp; !(_prices[1].finalPrice))"/>
				<styleClass value="$TextDefault"/>
				<style>
					<marginLeft value="4px"/>
				</style>
				<bind name="text" value="toLowerCase(tr('IDS_FOR_FREE'))"/>
			</block>
			<block>
				<bind name="visible" value="_prices[0].finalPrice &gt; 0"/>
				<style>
					<marginLeft value="4px"/>
				</style>
				<block>
					<bind name="instance" value="'PriceTag'; { priceInfo: _prices[0] }"/>
				</block>
				<block type="text">
					<bind name="visible" value="_prices[1].finalPrice &gt; 0"/>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<text value="IDS_OR"/>
				</block>
				<block>
					<bind name="visible" value="_prices[1].finalPrice &gt; 0"/>
					<bind name="instance" value="'PriceTag'; { priceInfo: _prices[1] }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ConsumablesAutoreplenishment">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGold';			['resourceEntity.accountResource.evChangedGold'];		resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';		['resourceEntity.accountResource.evChangedCredit'];		resourceEntity.accountResource.credits"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="watch" value="'_nextPriceCr'; playerShipInfo.autorechargeAbilityEstimatePrice.abils[0]"/>
		<bind name="watch" value="'_nextPriceGold'; playerShipInfo.autorechargeAbilityEstimatePrice.abils[1]"/>
		<bind name="watch" value="'_maxPriceCr'; playerShipInfo.autorechargeAbilitySummPrice.abils[0]"/>
		<bind name="watch" value="'_maxPriceGold'; playerShipInfo.autorechargeAbilitySummPrice.abils[1]"/>
		<bind name="watch" value="'_creditsDeficit'; -(accountCredits - _nextPriceCr)"/>
		<bind name="watch" value="'_goldDeficit'; -(accountGold - _nextPriceGold)"/>
		<bind name="var" value="{	_multiParagraphArrayHint: [ {_paragraphText: 'IDS_ABILITIES_REPLENISH_AUTOMATICALLY_HINT_1'}, {_paragraphText: 'IDS_ABILITIES_REPLENISH_AUTOMATICALLY_HINT_2'}, {_paragraphText: 'IDS_ABILITIES_REPLENISH_AUTOMATICALLY_HINT_3', _class: '$FontColorUnready'}],
					_multiParagraphArrayPriceHint: [{_paragraphText: 'IDS_ABILITIES_MAX_REPLENISHMENT_HINT'}, {_paragraphText: 'IDS_ABILITIES_REPLENISH_AUTOMATICALLY_HINT_3', _class: '$FontColorUnready'}]}"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<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_blurmap_h_no_right" 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>
			<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="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="3px"/>
				<marginBottom value="3px"/>
			</style>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="3px"/>
				</style>
				<bind name="tooltip" value="'MultiParagraphHelpTooltip'; {_tooltipHeader: 'IDS_AUTOREPLENISHMENT_ABILITIES', _multiParagraphArray: _multiParagraphArrayHint, _paragraphText: _paragraphText}"/>
				<block className="icon_question_mark" type="native"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block>
						<bind name="style" value="'marginRight'; !(playerShipInfo.autorechargeAbilities) ? '12px' : '0px'"/>
						<style>
							<marginRight value="5px"/>
						</style>
						<bind name="tooltip" value="'AutoreplenishmentPriceTooltip'; {	_maxPriceCR: _maxPriceCr, _maxPriceGold : _maxPriceGold,
																		_nextPriceCR: _nextPriceCr, _nextPriceGold: _nextPriceGold,
																		_multiParagraphArray: _multiParagraphArrayPriceHint}"/>
						<block>
							<block>
								<bind name="style" value="'alpha'; (!(_hasPaidConsumes)) ? 0.6 : 1"/>
								<bind name="instance" value="'InvertableTextLine'; { _text: 'IDS_AUTOREPLANISHMENT',
																	_invert: ((_goldDeficit &gt; 0) || (_creditsDeficit &gt; 0)),
																	_normalClass: '$TextPriceMedium',
																	_invertedClass: '$TextPriceMediumDeficit'}"/>
							</block>
							<block>
								<block>
									<bind name="visible" value="_nextPriceCr != 0"/>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _nextPriceCr, currency: 'credits' }, _medium: true, _deficit: _creditsDeficit}"/>
								</block>
								<block>
									<bind name="visible" value="(_nextPriceCr != 0) &amp;&amp; (_nextPriceGold != 0)"/>
									<bind name="instance" value="'InvertableTextLine'; { _text: 'IDS_AND', 
																		_invert: ((_goldDeficit &gt; 0) || (_creditsDeficit &gt; 0)),
																		_normalClass: '$TextPriceMedium',
																		_invertedClass: '$TextPriceMediumDeficit'}"/>
								</block>
								<block>
									<bind name="visible" value="_nextPriceGold != 0"/>
									<style>
										<marginLeft value="3px"/>
									</style>
									<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _nextPriceGold, currency: 'gold' }, _medium: true, _deficit: _goldDeficit}"/>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
					<block>
						<bind name="tooltip" value="'SimpleWarningTooltip';	playerShipInfo.isInFormation 	? {_text: tr('IDS_SET_UNREADY_' + toUpperCase(tr(divisionEntranceData.divisionType)) + '_FIRST_TO_CHANGE_CONSUMABLES')} :
															playerShipInfo.isLocked 		? {_text: tr('IDS_LEAVE_BATTLE_FIRST_TO_CHANGE_AUTOREPLENISHMENT_STATUS')}
																							: null"/>
						<style>
							<marginRight value="5px"/>
							<backgroundColor value="0x01000000"/>
						</style>
						<block>
							<bind name="class" value="playerShipInfo.isLocked || playerShipInfo.isInFormation ? '$MouseDisable' : '$MouseEnable'"/>
							<bind name="style" value="'alpha'; (!(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation)) ? 1 : 0.5"/>
							<block className="tab_bar_bg" type="native">
								<block>
									<style>
										<marginLeft value="2px"/>
										<marginRight value="2px"/>
									</style>
									<block>
										<style>
											<position value="absolute"/>
										</style>
										<bind name="instance" value="'AutoreplenishmentTransition'; { _autorechargeOn: playerShipInfo.autorechargeAbilities }"/>
									</block>
									<block>
										<style>
											<width value="100px"/>
											<height value="27px"/>
										</style>
										<bind name="tooltip" value="'SimpleTooltip'; !(_hasPaidConsumes) ? {tooltipText: 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT_NO_PAID_CONSUMABLES'} : null; 0"/>
										<block className="status_ready_item" type="native">
											<styleClass value="$Fullsize"/>
											<bind name="style" value="'colorMatrixFilter'; (_goldDeficit &gt; 0 || _creditsDeficit &gt; 0 || (!(_hasPaidConsumes))) ? '0 -100 0 -40' : '0 0 0 0'"/>
											<bind name="label" value="playerShipInfo.autorechargeAbilities ? toUpperCase(tr('IDS_IS_TURNED_ON')) : toUpperCase(tr('IDS_TURN_ON'))"/>
											<bind name="action" value="'buttonClick'; 'autorechargeAbilities'; {isAutoAdd:true}"/>
											<bind name="selected" value="playerShipInfo.autorechargeAbilities"/>
											<bind name="enabled" value="_hasPaidConsumes"/>
											<bind name="tooltip" value="'SimpleTooltip'; !(_hasPaidConsumes) ? null
																							: {tooltipText: (_goldDeficit &gt; 0 || _creditsDeficit &gt; 0) ? 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT_DEFICIT' : 'IDS_AUTOREPLANISHMENT_TURN_ON_HINT'}; 0"/>
										</block>
									</block>
									<block className="divider_v" type="native">
										<style>
											<height value="27px"/>
										</style>
									</block>
									<block className="status_not_ready_item" type="native">
										<style>
											<width value="100px"/>
											<height value="27px"/>
										</style>
										<bind name="label" value="playerShipInfo.autorechargeAbilities ? toUpperCase(tr('IDS_TURN_OFF')) : toUpperCase(tr('IDS_IS_TURNED_OFF'))"/>
										<bind name="action" value="'buttonClick'; 'autorechargeAbilities'; {isAutoAdd:false}"/>
										<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_AUTOREPLANISHMENT_TURN_OFF_HINT'}; 0"/>
										<bind name="selected" value="!(playerShipInfo.autorechargeAbilities)"/>
									</block>
									<style>
										<flow value="horizontal"/>
									</style>
								</block>
							</block>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="tooltip" value="'SimpleWarningTooltip';	playerShipInfo.isInFormation	? {_text: tr('IDS_SET_UNREADY_' + toUpperCase(tr(divisionEntranceData.divisionType)) + '_FIRST_TO_CHANGE_CONSUMABLES')} :
														playerShipInfo.isLocked 		? {_text: tr('IDS_LEAVE_BATTLE_FIRST_TO_CHANGE_AUTOPURCHASE_STATUS')}
																						: null"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'AutoPurchase'; _hasPaidConsumes ? { shipId: playerShipInfo.id, _autorechargeOn: playerShipInfo.autorechargeAbilities, _isConsumables: true} : null"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="visible" value="(_goldDeficit &gt; 0 || _creditsDeficit &gt; 0) &amp;&amp; playerShipInfo.autorechargeAbilities"/>
			<bind name="instance" value="'CrAndGoldDeficit'; { _goldDeficit: _goldDeficit , _creditsDeficit: _creditsDeficit, _medium: true, _bold: true}"/>
		</block>
	</block>
	<block className="ConsumableIcon">
		<bind name="visible" value="limited"/>
		<block>
			<bind name="style" value="'backgroundImage'; 'url:' + installedItem.iconPath"/>
			<style>
				<width value="60px"/>
				<height value="60px"/>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
		</block>
		<block>
			<style>
				<top value="0px"/>
				<right value="3px"/>
				<position value="absolute"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefaultBold"/>
				<bind name="text" value="installedItem.params[2].value + additionalConsumables"/>
			</block>
		</block>
	</block>
	<block className="PlayerAchievements">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; 'achievementsCollection'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerAchievements"/>
		<styleClass value="$Fullsize"/>
		<bind name="stageSize"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<height value="100%"/>
				<width value="500px"/>
				<marginTop value="60px"/>
			</style>
			<bind name="style" value="'width'; (stageWidth*0.7) + 'px'"/>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginBottom value="24px"/>
					<width value="1280:800,1920:1400aw"/>
				</style>
				<bind name="style" value="'maxHeight'; (stageHeight - 130)/2"/>
				<bind name="instance" value="'EarnedAchievements'; {}"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<width value="1280:800,1920:1400aw"/>
					<marginBottom value="24px"/>
					<height value="100%"/>
				</style>
				<bind name="instance" value="'AllAchievements'; (listAchievementsNotEarnedSortByName.length != 0) ? {} : null"/>
			</block>
		</block>
	</block>
	<block className="EarnedAchievements">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; 'achievementsCollection'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerAchievements"/>
		<style>
			<width value="100%"/>
			<height value="100%f"/>
		</style>
		<block type="text">
			<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderHugeWhite"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="(listAchievementsNotEarnedSortByName.length == 0) ? '$FontColorGolden' : '$None'"/>
			<bind name="text" value="(listAchievementsNotEarnedSortByName.length == 0) ? 'IDS_ALL_ACHIEVEMENTS_EARNED' : 'IDS_MY_ACHIEVEMENTS'"/>
		</block>
		<block>
			<bind name="visible" value="(listAchievementsEarnedSortByAmount.length &gt; 0)"/>
			<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginBottom value="15px"/>
			</style>
			<bind name="var" value="{_curItemIndex: 0,
					_direction: false}"/>
			<bind name="catch" value="'ItemChooser.earnedAchievementsSortSelected'"/>
			<bind name="instance" value="'ItemChooser'; {	_items: ['IDS_SORT_BY_AMOUNT', 'IDS_SORT_BY_DATE'], _choosedItemRenderer: 'BluishTextChoosedItemRenderer', _listItemRenderer: 'TextListItemRenderer',
											curIndex: _curItemIndex, onItemSelectedEvent: 'earnedAchievementsSortSelected', _itemChooserTooltipText: 'IDS_HINT_ACHIEVEMENTS_SORT'}"/>
		</block>
		<block type="text">
			<bind name="visible" value="(listAchievementsEarnedSortByAmount.length == 0)"/>
			<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<style>
				<marginBottom value="13px"/>
				<marginTop value="12px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeader"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="'IDS_NO_ACHIEVEMENTS_EARNED'"/>
		</block>
		<block>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<width value="100%"/>
				<height value="100%f"/>
				<overflow value="scroll"/>
			</style>
			<block>
				<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
				<style>
					<flow value="htile"/>
					<align value="center"/>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_curItemIndex ? listAchievementsEarnedSortByDate : listAchievementsEarnedSortByAmount; 'Achievement'; {_isInItemList: true, _isEarned: true}; !_direction"/>
			</block>
			<block type="text">
				<bind name="visible" value="listAchievementsEarnedSpecialSortByDate.length &gt; 0"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="class" value="'$FontColorGrey'"/>
				<style>
					<marginBottom value="3px"/>
					<marginTop value="-8px"/>
				</style>
				<text value="IDS_SPECIAL"/>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
				<style>
					<flow value="htile"/>
					<align value="center"/>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_curItemIndex ? listAchievementsEarnedSpecialSortByDate : listAchievementsEarnedSpecialSortByAmount; 'Achievement'; {_isInItemList: true, _isEarned: true}; !_direction"/>
			</block>
		</block>
	</block>
	<block className="AllAchievements">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; 'achievementsCollection'"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerAchievements"/>
		<style>
			<width value="100%"/>
			<height value="100%"/>
		</style>
		<block type="text">
			<bind name="appear" value="'addedToStage'; 0.15; 0.24; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderHugeWhite"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="text" value="'IDS_ALL_ACHIEVEMENTS'"/>
		</block>
		<block>
			<bind name="visible" value="(listAchievementsAllSortByType.length &gt; 1)"/>
			<bind name="appear" value="'addedToStage'; 0.15; 0.24; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginBottom value="15px"/>
			</style>
			<bind name="var" value="{_curItemIndex: 0,
					_direction: false}"/>
			<bind name="catch" value="'ItemChooser.notEarnedAchievementsSortSelected'"/>
			<bind name="instance" value="'ItemChooser'; {	_items: ['IDS_SORT_BY_TYPE', 'IDS_SORT_BY_NAME'], _choosedItemRenderer: 'BluishTextChoosedItemRenderer', _listItemRenderer: 'TextListItemRenderer',
											curIndex: _curItemIndex, onItemSelectedEvent: 'notEarnedAchievementsSortSelected', _itemChooserTooltipText: 'IDS_HINT_ACHIEVEMENTS_SORT'}"/>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.32; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<width value="100%"/>
				<height value="100%f"/>
				<overflow value="scroll"/>
			</style>
			<block>
				<style>
					<flow value="htile"/>
					<align value="center"/>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_curItemIndex ? listAchievementsAllSortByName : listAchievementsAllSortByType; 'Achievement'; {_isInItemList: true, _iconSize: '65px'}; !_direction"/>
			</block>
			<block type="text">
				<bind name="visible" value="listAchievementsAllSpecialSortByName.length &gt; 0"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="class" value="'$FontColorGrey'"/>
				<style>
					<marginBottom value="3px"/>
					<marginTop value="-8px"/>
				</style>
				<text value="IDS_SPECIAL"/>
			</block>
			<block>
				<style>
					<flow value="htile"/>
					<align value="center"/>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_curItemIndex ? listAchievementsAllSpecialSortByName : listAchievementsAllSpecialSortByType; 'Achievement'; {_isInItemList: true, _iconSize: '65px'}; !_direction"/>
			</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"/>
			</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>
	</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"/>
			<block className="icon_question_mark" type="native">
				<style>
					<marginRight value="6px"/>
					<marginTop value="4px"/>
				</style>
			</block>
			<block type="text">
				<bind name="style" value="'maxWidth'; _width ? _width - 60 : 270"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<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"/>
		<block className="checkbox_no_label" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<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; 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 className="indicator_busy_small" type="native"/>
		<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">
			<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'"/>
			<style>
				<marginTop value="3px"/>
			</style>
		</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="PlayerRanks">
		<styleClass value="$Fullsize"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  selectedIndex + 1; 'rankInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="catch" value="'mainCarouselElement.selectedIndexChanged'"/>
		<bind name="watch" value="'starsForNextSeason'; rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER ? rankedBattlesSeason.startRank - rankedBattlesStats.rank : rankedBattlesStats.totalStars"/>
		<style>
			<width value="66sw"/>
			<height value="100%"/>
			<maxWidth value="1240"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="6sh"/>
			</style>
			<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<block className="PlayerRanksHeader">
				<style>
					<width value="100%"/>
				</style>
				<bind name="watch" value="'headerText'; (rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER)	? (((rankedBattlesStats.startRank - rankedBattlesStats.rank) &gt; 0)	? rankedBattlesStats.messageStartWithStars
																																							: ' ')
																						: (rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_NOT_STARTED)	? rankedBattlesStats.messageStartFromRank
																						: rankedBattlesStats.rankInSeasonMessage"/>
				<block type="text">
					<style>
						<width value="100%"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$TextHeaderHugeWhite"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="headerText"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="3sh"/>
			</style>
			<block>
				<bind name="visible" value="(rankedBattlesSeason.active &amp;&amp; (rankInfo.starsToNext &gt; 0))"/>
				<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'RankStars'; rankedBattlesSeason.active ? {_rankId: selectedIndex + 1} : null"/>
			</block>
			<block>
				<bind name="visible" value="(!(rankedBattlesSeason.active) &amp;&amp; ((rankedBattlesStats.startRank - rankedBattlesStats.rank) &gt; 0)|| (rankedBattlesStats.totalStars &gt; 0))"/>
				<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'TotalEarnedStars'; !(rankedBattlesSeason.active) &amp;&amp; (starsForNextSeason &gt; 0) ? { _starsCount: starsForNextSeason } : null"/>
			</block>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.18; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<style>
				<width value="100%"/>
				<marginTop value="2sh"/>
			</style>
			<block className="SeasonDateLabel">
				<bind name="countdown" value="	(rankedBattlesSeason.active)	? rankedBattlesSeason.finishTime
														: rankedBattlesSeason.startTime; 'countTime'; 'HIGHEST,WITH_DAYS'; ''; (rankedBattlesSeason.active) ? '' : 'ACC'"/>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<bind name="style" value="'alpha'; (!(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) &amp;&amp;  rankedBattlesSeason.active) ? 1 : 0.75"/>
					<bind name="class" value="(!(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) &amp;&amp; rankedBattlesSeason.active) ? '$TextHeaderWhite' : '$TextAccentWhiteBold'"/>
					<bind name="text" value="(rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER)	? tr('IDS_NO_SEASON_PLANNED')
																				: (rankedBattlesSeason.active)	? tr('IDS_TILL_SEASON_ENDS') + ' ' + countTime + (rankedBattlesSeason.active &amp;&amp; rankedBattlesStats.participated ? '.' : '')
																												: tr('IDS_SEASON_STARTS_IN') + ' ' + countTime"/>
				</block>
				<block>
					<bind name="visible" value="rankedBattlesSeason.active &amp;&amp; rankedBattlesStats.participated"/>
					<bind name="watch" value="'battleCounter'; format(dockDefaultValues.rankBattlesCount, -1)"/>
					<styleClass value="$MiddleAligned"/>
					<block>
						<block type="text">
							<styleClass value="$TextHeaderWhite"/>
							<text value="IDS_YOUR_BEST_RANK_IN_SEASON"/>
						</block>
						<block>
							<style>
								<marginLeft value="3px"/>
								<marginTop value="2px"/>
							</style>
							<bind name="instance" value="'IconRankSmall'; { _rankId: rankedBattlesStats.rankBest }"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block type="text">
						<style>
							<marginLeft value="13px"/>
						</style>
						<styleClass value="$TextHeaderWhite"/>
						<bind name="text" value="subst('IDS_RANK_BATTLE_COUNTER', [], {count: battleCounter}, dockDefaultValues.rankBattlesCount)"/>
					</block>
					<block className="button_dock" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<marginBottom value="-6px"/>
							<marginTop value="-2px"/>
							<marginLeft value="-6px"/>
							<marginRight value="-6px"/>
						</style>
						<bind name="name" value="'ButtonGoToRankBattleStats'"/>
						<bind name="action" value="'click'; 'changeInset'; {inset : LobbyConstants.PLAYER_PROFILE, page : LobbyConstants.PLAYER_PROFILE_SUMMARY}"/>
						<bind name="dispatch" value="'click'; 'setBattleType'; {_curItemIndex: 2}"/>
						<bind name="tooltip" value="'MouseInstructionTooltip';  {_multiParagraphArray: [ {_paragraphText: 'IDS_SEE_MORE_DETAILS_ABOUT_SEASON' } ],
														_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_OPEN_RANK_BATTLES_STATS'}],
														_maxWidth: 300}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block type="text">
				<bind name="visible" value="((rankedBattlesSeason.active) &amp;&amp; !(rankedBattlesStats.participated) &amp;&amp; (starsForNextSeason &gt; 0))"/>
				<style>
					<width value="100%"/>
					<textAlign value="center"/>
					<marginTop value="-10%"/>
				</style>
				<styleClass value="$TextHeaderWhite"/>
				<bind name="text" value="'IDS_ACTIVATE_RANKED_BATTLE_SEASON'"/>
			</block>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.3; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks'; 'ranksCollection'"/>
			<style>
				<marginTop value="1sh"/>
				<height value="100%f"/>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ProfileCarousel'; (rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER) ? null : {_mainCarouselElementName: 'RanksCarouselMainBlock', _rewardsCarouselElementName: 'RanksCarouselRewardsBlock',
											_carouselData: ranksCollection, selectedIndex: selectedIndex &gt;= 0 ? selectedIndex : rankedBattlesStats.rank}"/>
		</block>
	</block>
	<css name="$TextAccentWhiteBold">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<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="$LocalTextHeaderUnready">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<fontSize value="19"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFF9933"/>
	</css>
	<block className="PlayerRanksHeader">
		<style>
			<width value="100%"/>
		</style>
		<bind name="watch" value="'headerText'; (rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER)	? (((rankedBattlesStats.startRank - rankedBattlesStats.rank) &gt; 0)	? rankedBattlesStats.messageStartWithStars
																																							: ' ')
																						: (rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_NOT_STARTED)	? rankedBattlesStats.messageStartFromRank
																						: rankedBattlesStats.rankInSeasonMessage"/>
		<block type="text">
			<style>
				<width value="100%"/>
				<textAlign value="center"/>
			</style>
			<styleClass value="$TextHeaderHugeWhite"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="text" value="headerText"/>
		</block>
	</block>
	<block className="SeasonDateLabel">
		<bind name="countdown" value="	(rankedBattlesSeason.active)	? rankedBattlesSeason.finishTime
														: rankedBattlesSeason.startTime; 'countTime'; 'HIGHEST,WITH_DAYS'; ''; (rankedBattlesSeason.active) ? '' : 'ACC'"/>
		<style>
			<width value="100%"/>
		</style>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<bind name="style" value="'alpha'; (!(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) &amp;&amp;  rankedBattlesSeason.active) ? 1 : 0.75"/>
			<bind name="class" value="(!(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) &amp;&amp; rankedBattlesSeason.active) ? '$TextHeaderWhite' : '$TextAccentWhiteBold'"/>
			<bind name="text" value="(rankedBattlesSeason.denyReason &amp; RBDeny.SEASON_OVER)	? tr('IDS_NO_SEASON_PLANNED')
																				: (rankedBattlesSeason.active)	? tr('IDS_TILL_SEASON_ENDS') + ' ' + countTime + (rankedBattlesSeason.active &amp;&amp; rankedBattlesStats.participated ? '.' : '')
																												: tr('IDS_SEASON_STARTS_IN') + ' ' + countTime"/>
		</block>
		<block>
			<bind name="visible" value="rankedBattlesSeason.active &amp;&amp; rankedBattlesStats.participated"/>
			<bind name="watch" value="'battleCounter'; format(dockDefaultValues.rankBattlesCount, -1)"/>
			<styleClass value="$MiddleAligned"/>
			<block>
				<block type="text">
					<styleClass value="$TextHeaderWhite"/>
					<text value="IDS_YOUR_BEST_RANK_IN_SEASON"/>
				</block>
				<block>
					<style>
						<marginLeft value="3px"/>
						<marginTop value="2px"/>
					</style>
					<bind name="instance" value="'IconRankSmall'; { _rankId: rankedBattlesStats.rankBest }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block type="text">
				<style>
					<marginLeft value="13px"/>
				</style>
				<styleClass value="$TextHeaderWhite"/>
				<bind name="text" value="subst('IDS_RANK_BATTLE_COUNTER', [], {count: battleCounter}, dockDefaultValues.rankBattlesCount)"/>
			</block>
			<block className="button_dock" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="-6px"/>
					<marginTop value="-2px"/>
					<marginLeft value="-6px"/>
					<marginRight value="-6px"/>
				</style>
				<bind name="name" value="'ButtonGoToRankBattleStats'"/>
				<bind name="action" value="'click'; 'changeInset'; {inset : LobbyConstants.PLAYER_PROFILE, page : LobbyConstants.PLAYER_PROFILE_SUMMARY}"/>
				<bind name="dispatch" value="'click'; 'setBattleType'; {_curItemIndex: 2}"/>
				<bind name="tooltip" value="'MouseInstructionTooltip';  {_multiParagraphArray: [ {_paragraphText: 'IDS_SEE_MORE_DETAILS_ABOUT_SEASON' } ],
														_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_OPEN_RANK_BATTLES_STATS'}],
														_maxWidth: 300}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RanksCarouselMainBlock">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks'; 'ranksCollection'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<params>
				<param name="name" value="RanksCarouselMainBlock"/>
			</params>
			<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerRanksCarousel; ''; 101"/>
			<bind name="event" value="'profileCarousel.scrollOneUnitLeft'; scrollLeftByOneUnit"/>
			<bind name="event" value="'profileCarousel.scrollOneUnitRight'; scrollRightByOneUnit"/>
			<style>
				<width value="100%f"/>
				<overflow value="scroll"/>
				<scrollArea value="ModernScrollAreaHorizontal"/>
				<scrollbarController value="lesta.unbound.style.UbScrollingControllerTouch"/>
				<layout value="lesta.unbound.layout.measure.CarouselLayout"/>
				<wheelScrollSpeed value="101"/>
				<revertFlow value="true"/>
				<itemWidth value="100px"/>
				<itemHeight value="133px"/>
			</style>
			<bind name="changeDispatch" value="selectedIndex; 'mainCarouselElement.selectedIndexChanged'; {selectedIndex: selectedIndex}"/>
			<bind name="generator" value="ranksCollection; 'RankCarouselItem'; {onCarouselItemClick: onCarouselItemClick, _selectedIndex: selectedIndex}"/>
			<bind name="var" value="{initialSelectedIndex:-1}"/>
			<bind name="changeDispatch" value="rankedBattlesStats.rank; 'rankedBattlesStatsChanged'"/>
			<bind name="dispatch" value="'rankedBattlesStatsChanged'; 'evSelectedIndexChanged'; initialSelectedIndex == -1 ? {initialSelectedIndex: ranksCollection.length - rankedBattlesStats.rank - 3} : null; 2; 0.1"/>
			<bind name="catch" value="'evSelectedIndexChanged'"/>
			<bind name="scrollToIndex!" value="initialSelectedIndex"/>
			<block>
				<block>
					<style>
						<position value="absolute"/>
						<right value="0"/>
						<top value="0"/>
						<alpha value="0.7"/>
						<width value="98px"/>
						<height value="98px"/>
						<backgroundImage value="symbol:icon_rank_coming_soon"/>
					</style>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<css name="$ZeroWidth">
		<width value="0px"/>
	</css>
	<block className="RankCarouselItem">
		<style>
			<width value="100px"/>
			<height value="133px"/>
		</style>
		<block>
			<bind name="visible" value="$index != 0"/>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
			<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  $index + 1; 'rankInfo'"/>
			<bind name="event" value="'click'; onCarouselItemClick; $index"/>
			<bind name="tooltip" value="'MouseInstructionTooltip';  {_multiParagraphArray: (!(rankInfo.isSavePoint) 	? [ {_paragraphText: id &gt; 1 ? subst('IDS_RANK_X_IN_SEASON_TOOLTIP', [], {rank: id - 1}) : 'IDS_RANK_SEA_WOLF'} ]
                                                                                                    : [ {_paragraphText: id &gt; 1 ? subst('IDS_RANK_X_IN_SEASON_TOOLTIP', [], {rank: id - 1}) : 'IDS_RANK_SEA_WOLF'}, {_paragraphText:'IDS_FIREPROOF_RANK'} ]),
                                                    _mouseInstructions:  (($index == _selectedIndex) ? null
                                                                                                     : [{_type: 'left', _instructionText: 'IDS_TOOLTIP_ICON_AVAILABLE_RANK'}]),
                                                    _maxWidth: 250}"/>
			<bind name="watch" value="'isLockedState'; ((rankedBattlesStats.rank &gt; ($index + 1)) || (rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON))"/>
			<style>
				<marginLeft value="26px"/>
				<marginRight value="26px"/>
			</style>
			<block className="buttons_rank_outer" type="native">
				<bind name="name" value="'carouselRankItem' + id"/>
				<bind name="gotoAndStop!" value="isLockedState	? 'locked'
                                                : rankInfo.id &lt;= 2 ? 'top'
                                                : rankInfo.leagueId == 1 ? 'big'
                                                : rankInfo.leagueId == 2 ? 'medium' : 'small'"/>
				<bind name="selected" value="$index == _selectedIndex"/>
				<styleClass value="$MiddleAligned"/>
				<params>
					<param name="name" value="buttons_rank_outer"/>
				</params>
				<block>
					<styleClass value="$MiddleAlignedAbsolutely"/>
					<block>
						<style>
							<hitTest value="false"/>
							<width value="35px"/>
							<height value="35px"/>
							<backgroundStretchX value="true"/>
							<backgroundStretchY value="true"/>
						</style>
						<styleClass value="$MiddleAlignedAbsolutely"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="visible" value="!(isLockedState)"/>
						<bind name="style" value="'backgroundImage'; 'url:' + '../ranks/icons/icon_rank_big_' + (rankInfo.id - 1) + '.png'"/>
						<bind name="transition" value="$index == _selectedIndex; 0.1; {width: 31, height: 31, top: 50}; {width: 38, height: 38, top: 50}"/>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="-8px"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="transition" value="$index == _selectedIndex;	0.1; {top: -8}; {top: -3}"/>
					<style>
						<position value="absolute"/>
					</style>
					<block type="text">
						<bind name="class" value="$index == _selectedIndex 	? '$TextHeaderBold' :  (isComingSoon ? '$TextHeaderBigDefault' : '$TextHeaderBigDefault') "/>
						<bind name="text" value="id == 1 ? 'IDS_RANK_SEA_WOLF'
                                        : id - 1"/>
					</block>
				</block>
				<block>
					<bind name="fade" value="$index == _selectedIndex; 0.1; {alpha: 0}; {alpha: 1}"/>
					<style>
						<marginTop value="26px"/>
					</style>
					<block>
						<style>
							<position value="absolute"/>
							<bottom value="-2px"/>
							<height value="20px"/>
							<width value="100%"/>
						</style>
						<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_blurmap_empty" 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="scroll_arrow" type="native"/>
				</block>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<top value="74px"/>
					<left value="50%"/>
					<hitTest value="false"/>
				</style>
				<bind name="style" value="'alpha'; (rankedBattlesStats.rankBest - 1) &lt;= $index ? 1 : 0.4"/>
				<bind name="visible" value="rankInfo.isSavePoint"/>
				<bind name="transition" value="$index == _selectedIndex; 0.1; {scaleX: 0.89, scaleY: 0.89, top: 0}; {scaleX: 0.945, scaleY: 0.945, top:2}"/>
				<block className="icon_issued_small" type="native">
					<innerBind elementName="item.item" name="text" value="'IDS_PROOF_RANK'"/>
					<bind name="gotoAndPlay!" value="'issued'"/>
				</block>
			</block>
		</block>
	</block>
	<block className="RanksCarouselRewardsBlock">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _selectedIndex + 1; 'rankInfo'"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0.42; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<style>
			<width value="100%"/>
			<marginTop value="18px"/>
		</style>
		<bind name="style" value="'colorMatrixFilter'; ((_selectedIndex + 1) &lt; rankedBattlesStats.rankBest) ? '0 -80 0 0' : '0 0 0 0'"/>
		<block>
			<bind name="fade" value="(_selectedIndex+1); 0.25; {alpha: 0.1, top: 15}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginBottom value="2sh"/>
				</style>
				<bind name="instance" value="'RankStarCarouselShipsLevelsCondition'; {_rankId: _selectedIndex + 1}"/>
			</block>
			<block>
				<bind name="visible" value="!(rankInfo.starLossPlace == 0 &amp;&amp; rankInfo.starEarnPlace == 0)"/>
				<style>
					<marginBottom value="1sh"/>
				</style>
				<bind name="instance" value="'RankStarEarnLossCondition'; {_rankId: _selectedIndex + 1}"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'RankRewardGiftbox'; (rankInfo.rewards.length + rankInfo.rewardsSpecial.length &gt; 0) ? {_rankId: _selectedIndex + 1, _state: ((((_selectedIndex + 1) &lt; rankedBattlesStats.rankBest) || !(rankedBattlesStats.participated)) ? 'not_issued' : 'issued')} : null"/>
			</block>
		</block>
	</block>
	<block className="RankRewardGiftbox">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBold"/>
			<style>
				<marginBottom value="6px"/>
			</style>
			<bind name="class" value="'$FontSizeHeader3'"/>
			<bind name="text" value="'IDS_REWARD_FOR_RANK'"/>
		</block>
		<block>
			<bind name="name" value="'reward_for_rank'"/>
			<styleClass value="$MiddleAligned"/>
			<block>
				<bind name="transition" value="_state == 'animation' || _state == 'issued'; 0.15; {alpha: 1}; {alpha: 0.6}; {alpha: 1}; 2; _state == 'issued' ? 0 : 0.45"/>
				<bind name="instance" value="'RewardContainer'; (rankInfo.rewards.length &gt; 0 || rankInfo.rewardsSpecial.length &gt; 0) ? {_rewards: rankInfo.rewards, _rewardsSpecial: rankInfo.rewardsSpecial, _tooltipHeader: 'IDS_REWARD_FOR_RANK' } : null"/>
			</block>
			<block>
				<styleClass value="$MouseDisable"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<position value="absolute"/>
				</style>
				<block>
					<style>
						<position value="absolute"/>
					</style>
					<block className="icon_issued" type="native">
						<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
						<bind name="gotoAndPlay!" value="_state"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="RankStarCarouselShipsLevelsCondition">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks'; _rankId; 'rankInfo'"/>
		<block type="text">
			<style>
				<maxWidth value="650"/>
			</style>
			<styleClass value="$TextLargeHeader"/>
			<bind name="text" value="rankInfo.allowedTheirsShipsDescription"/>
		</block>
	</block>
	<block className="RankStarEarnLossCondition">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'rankedBattlesRanks';  _rankId; 'rankInfo'"/>
		<block>
			<block className="icon_star_earn_condition" type="native">
				<style>
					<marginTop value="-4px"/>
				</style>
				<bind name="gotoAndStop!" value="1"/>
			</block>
			<block>
				<style>
					<marginLeft value="5px"/>
				</style>
				<block type="text">
					<bind name="style" value="'maxWidth'; rankInfo.isStarSafe ? '850' : '350'"/>
					<styleClass value="$TextLargeHeader"/>
					<bind name="text" value="rankInfo.earnCondition"/>
				</block>
				<block type="text">
					<bind name="visible" value="rankInfo.starLossPlace == 0"/>
					<bind name="style" value="'maxWidth'; rankInfo.isStarSafe ? '850' : '350'"/>
					<style>
						<marginLeft value="2px"/>
						<marginTop value="-6px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<text value="IDS_YOU_WILL_NOT_LOSE_STAR"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="!(rankInfo.isStarSafe) &amp;&amp; (rankInfo.starLossPlace != 0)"/>
				<style>
					<marginLeft value="20px"/>
				</style>
				<block className="icon_star_earn_condition" type="native">
					<style>
						<marginTop value="-4px"/>
					</style>
					<bind name="gotoAndStop!" value="2"/>
				</block>
				<bind name="watch" value="'additionalCondition'; rankInfo.starLossPlace == 2 ? 'IDS_RANKED_BATTLE_STAR_LOSS_PLACE_CONDITION' :
												rankInfo.starLossPlace &gt; 2	? subst('IDS_RANKED_BATTLE_STAR_LOSS_PLACE_RANGE_CONDITION', [], {starLossPlace: rankInfo.starLossPlace})
																			: null"/>
				<block>
					<style>
						<marginLeft value="5px"/>
					</style>
					<block type="text">
						<style>
							<maxWidth value="350"/>
						</style>
						<styleClass value="$TextLargeHeader"/>
						<bind name="text" value="rankInfo.lossCondition"/>
					</block>
					<block type="text">
						<bind name="visible" value="additionalCondition != null"/>
						<style>
							<maxWidth value="350"/>
							<marginLeft value="2px"/>
							<marginTop value="-6px"/>
						</style>
						<styleClass value="$TextDefault"/>
						<bind name="text" value="additionalCondition"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="WarningMessageBigIcon">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="style" value="'width'; _noWidth ? 'auto' : '100%'"/>
		<block>
			<bind name="visible" value="!(_medium)"/>
			<style>
				<marginRight value="5px"/>
				<marginTop value="3px"/>
			</style>
			<block className="icon_warning_orange_big" type="native"/>
		</block>
		<block>
			<bind name="visible" value="(_medium == true)"/>
			<style>
				<marginRight value="3px"/>
				<marginTop value="2px"/>
			</style>
			<block className="icon_warning_orange_mid" type="native"/>
		</block>
		<block type="text">
			<bind name="style" value="'width'; _noWidth ? 'auto' : '100%'"/>
			<bind name="class" value="_medium ? '$TextHeaderBigWhite' : '$TextLargeHeader'"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="PlayerAccount">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="watchDH" value="'premiumAccountTimeStr';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.premiumTimeStr"/>
		<bind name="watch" value="'pointsToNextLevel'; (accountLevelInfo.nextLevelProgress - accountLevelInfo.thisLevelProgress) - (accountLevelInfo.currentProgress - accountLevelInfo.thisLevelProgress)"/>
		<style>
			<width value="66sw"/>
			<height value="100%"/>
			<maxWidth value="1240"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<top value="5sh"/>
			</style>
			<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_CURRENT_ACCOUNT_LEVEL'}"/>
				<styleClass value="$BlockDropShadowFilter2"/>
				<styleClass value="$MiddleVAligned"/>
				<block className="icons_account_level_outer_big" type="native">
					<bind name="gotoAndStop!" value="accountLevelInfo.outerClipFrame"/>
					<bind name="scaleX" value="0.8"/>
					<bind name="scaleY" value="0.8"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="15px"/>
						<position value="absolute"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextAccentBoldAccountLevel1"/>
					<bind name="text" value="format(accountLevelInfo.accountLevel, -1)"/>
					<bind name="name" value="'currentLevel_account_progress_item'"/>
				</block>
			</block>
			<block>
				<style>
					<marginLeft value="15px"/>
				</style>
				<block>
					<block>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_YOUR_ACCOUNT'}"/>
						<block type="text">
							<styleClass value="$TextHeaderHugeWhite"/>
							<bind name="text" value="accountLevelInfo.playerName"/>
							<bind name="class" value="isPremiumAccount ? '$FontColorGold' : '$FontColorWhite'"/>
							<bind name="class" value="'$Bold'"/>
							<bind name="class" value="accountLevelInfo.abuseStatus == AbuseStatus.CONFIRMED ? '$FontColorCompareNegative' : accountLevelInfo.abuseStatus == AbuseStatus.SUSPECT ? '$FontColorTeamkiller' : '$None'"/>
							<bind name="name" value="'playerName_account_progress_item'"/>
						</block>
					</block>
					<block>
						<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: 'IDS_YOUR_KARMA', tooltipSubText: 'IDS_TOOLTIP_KARMA'}"/>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<bind name="text" value="format(dockDefaultValues.karma, -1)"/>
							<bind name="name" value="'karma_account_progress_item'"/>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ACCOUNT_TYPE'}"/>
					<style>
						<marginTop value="-8px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<bind name="text" value="tr( isPremiumAccount ? 'IDS_ACCOUNT_PREMIUM' : 'IDS_ACCOUNT_DEFAULT')+
								' '+(isPremiumAccount ? premiumAccountTimeStr : '')"/>
						<bind name="class" value="isPremiumAccount ? '$FontColorGold' : '$FontColorWhite'"/>
					</block>
				</block>
				<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
				<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
				<block>
					<style>
						<marginTop value="6px"/>
						<width value="470px"/>
					</style>
					<block className="indicator_progress_bar_yellow" type="native">
						<style>
							<width value="100%"/>
							<height value="12px"/>
						</style>
						<bind name="visible" value="(accountLevelInfo.accountLevel != accountLevelInfo.maxLevelEnabled) &amp;&amp; !(isLazyLogin &amp;&amp; (accountLevelInfo.accountLevel &gt;= realmConstants.lazyAccountMaxLevel))"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_ACCOUNT_EXPERIENCE'}"/>
						<bind name="value" value="((accountLevelInfo.currentProgress - accountLevelInfo.thisLevelProgress) / (accountLevelInfo.nextLevelProgress - accountLevelInfo.thisLevelProgress))*10"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="(accountLevelInfo.accountLevel != accountLevelInfo.maxLevelEnabled) &amp;&amp; !(isLazyLogin &amp;&amp; (accountLevelInfo.accountLevel &gt;= realmConstants.lazyAccountMaxLevel))"/>
					<style>
						<marginTop value="4px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<bind name="text" value="(format(accountLevelInfo.currentProgress - accountLevelInfo.thisLevelProgress, -1)) + ' / ' + (format(accountLevelInfo.nextLevelProgress - accountLevelInfo.thisLevelProgress, -1))"/>
						<bind name="name" value="'progress_account_progress_item'"/>
					</block>
					<block type="text">
						<style>
							<alpha value="0.5"/>
						</style>
						<styleClass value="$TextHeaderBigDefault"/>
						<bind name="text" value="'(' + toLowerCase(tr('IDS_POINTS_TILL_NEXT_LEVEL')) + ' ' + (format(pointsToNextLevel, -1)) + ')'"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="isLazyLogin &amp;&amp; (accountLevelInfo.accountLevel &gt;= realmConstants.lazyAccountMaxLevel)"/>
					<block className="button_dock" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<marginTop value="-3px"/>
							<marginLeft value="-4px"/>
							<marginBottom value="-7px"/>
							<marginRight value="-4px"/>
						</style>
						<bind name="action" value="'click'; isLazyLogin ? 'forceCreateAccount' : null"/>
					</block>
					<block>
						<style>
							<hitTest value="false"/>
						</style>
						<block>
							<bind name="visible" value="(isLazyLogin == true)"/>
							<style>
								<width value="30px"/>
								<height value="30px"/>
								<marginRight value="4px"/>
							</style>
							<bind name="style" value="'backgroundImage'; 'url:../service_kit/icons/icon_lazy_account.png'"/>
						</block>
						<block type="text">
							<styleClass value="$TextDefault"/>
							<style>
								<maxWidth value="400"/>
								<leading value="-3"/>
								<marginTop value="-5px"/>
								<marginBottom value="-4px"/>
							</style>
							<text value="IDS_REGISTER_TO_CONTINUE_AL_PROGRESS"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<bind name="visible" value="(accountLevelInfo.accountLevel != accountLevelInfo.maxLevelEnabled)"/>
				<style>
					<marginLeft value="18px"/>
				</style>
				<bind name="repeat" value="accountLevelInfo.levels[accountLevelInfo.accountLevel].rewards; 'NextLevelUnlock'; {icon:icon, title:title, _maxWidth: 220}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<style>
				<marginTop value="6sh"/>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ProfileCarousel'; {_mainCarouselElementName: 'AccountCarouselMainBlock', _rewardsCarouselElementName: 'AccountCarouselRewardsBlock',
											_carouselData: accountLevelInfo, selectedIndex: accountLevelInfo.accountLevel-1}"/>
		</block>
	</block>
	<block className="AccountCarouselMainBlock">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<params>
				<param name="name" value="AccountCarouselMainBlock"/>
			</params>
			<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerAccountCarousel"/>
			<bind name="event" value="'profileCarousel.scrollOneUnitLeft'; scrollLeftByOneUnit"/>
			<bind name="event" value="'profileCarousel.scrollOneUnitRight'; scrollRightByOneUnit"/>
			<style>
				<width value="100%f"/>
				<overflow value="scroll"/>
				<scrollArea value="ModernScrollAreaHorizontal"/>
				<scrollbarController value="lesta.unbound.style.UbScrollingControllerTouch"/>
				<layout value="lesta.unbound.layout.measure.CarouselLayout"/>
				<wheelScrollSpeed value="100"/>
				<itemWidth value="100px"/>
				<itemHeight value="121px"/>
			</style>
			<bind name="changeDispatch" value="selectedIndex; 'mainCarouselElement.selectedIndexChanged'; {selectedIndex: selectedIndex}"/>
			<bind name="var" value="{initialSelectedIndex:-1}"/>
			<bind name="dispatch" value="'mainCarouselElement.selectedIndexChanged'; 'evSelectedIndexChanged'; initialSelectedIndex == -1 ? {initialSelectedIndex: selectedIndex} : null; 2; 0.1"/>
			<bind name="catch" value="'evSelectedIndexChanged'"/>
			<bind name="generator" value="accountLevelInfo.levels; 'AccountCarouselItem'; {onCarouselItemClick: onCarouselItemClick, _selectedIndex: selectedIndex}"/>
			<bind name="scrollToIndex!" value="initialSelectedIndex"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="AccountCarouselRewardsBlock">
		<bind name="changeDispatch" value="_selectedIndex; 'accountCarouselRewardsBlock.indexChanged'; null; true"/>
		<bind name="appear" value="'accountCarouselRewardsBlock.indexChanged'; 0.25; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<styleClass value="$MiddleAligned"/>
		<style>
			<marginTop value="24px"/>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="style" value="'alpha'; _carouselData.accountLevel &gt;= (_selectedIndex+1) ? 1 : 0.8"/>
			<bind name="style" value="'colorMatrixFilter'; _carouselData.accountLevel &gt;= (_selectedIndex+1) ? '0 0 0 0' : '0 -80 0 0'"/>
			<style>
				<width value="309px"/>
			</style>
			<block>
				<style>
					<marginBottom value="18px"/>
				</style>
				<bind name="instance" value="'AccountLevelVideo'; {_level: _selectedIndex, _width: '309px', _height: '174px', _carouselData:_carouselData}"/>
				<bind name="name" value="'AccountLevelVideoProfile'"/>
			</block>
			<block>
				<bind name="visible" value="_carouselData.levels[_selectedIndex].rewardsNormal.length != 0 || _carouselData.levels[_selectedIndex].rewardsSpecial.length != 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<style>
						<textAlign value="center"/>
						<width value="100%"/>
						<marginBottom value="8px"/>
						<leading value="-3"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<text value="IDS_REWARD_FOR_ACCOUNT_LEVEL"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block>
						<bind name="style" value="'alpha'; (_carouselData.accountLevel &gt;= (_selectedIndex+1)) ? 0.7 : 1"/>
						<bind name="instance" value="'RewardContainer'; {	_rewards: _carouselData.levels[_selectedIndex].rewardsNormal, _rewardsSpecial: _carouselData.levels[_selectedIndex].rewardsSpecial,
															_tooltipHeader: 'IDS_REWARD_FOR_ACCOUNT_LEVEL',
															_scale: 1}"/>
					</block>
					<block>
						<styleClass value="$MouseDisable"/>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
						</style>
						<bind name="name" value="'Test block1'"/>
						<block>
							<bind name="name" value="'Test block2'"/>
							<style>
								<position value="absolute"/>
							</style>
							<block className="icon_issued" type="native">
								<bind name="name" value="'Test mc'"/>
								<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
								<bind name="gotoAndStop!" value="_carouselData.accountLevel &gt;= (_selectedIndex+1) ? 'issued': 'not_issued'"/>
							</block>
						</block>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="style" value="'alpha'; _carouselData.accountLevel &gt;= (_selectedIndex+1) ? 1 : 0.8"/>
			<style>
				<marginLeft value="3sw"/>
			</style>
			<bind name="repeat" value="_carouselData.levels[_selectedIndex].rewards; 'RewardsAndUnlocks'; {_level: (_selectedIndex+1), accountLevelInfo: _carouselData}"/>
		</block>
	</block>
	<block className="AccountCarouselItem">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="event" value="'click'; onCarouselItemClick; $index"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: (isComingSoon) 	? 'IDS_TOOLTIP_LEVEL_COMING_SOON' 
																										: subst('IDS_PROFILE_ACCOUNT_LEVEL', [], {level: levelNumber})}],
												_mouseInstructions:  ($index == _selectedIndex) || (isComingSoon)	? null 
																													: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_AVAILABLE_LEVELS'}],	
												_maxWidth: 250}"/>
		<style>
			<marginLeft value="26px"/>
			<marginRight value="26px"/>
		</style>
		<bind name="name" value="'carouselAccountItem' + levelNumber"/>
		<block className="buttons_account_level_outer" type="native">
			<bind name="gotoAndStop!" value="outerClipFrame"/>
			<bind name="selected" value="$index == _selectedIndex"/>
			<params>
				<param name="name" value="buttons_account_level_outer"/>
			</params>
			<block>
				<bind name="visible" value="!isComingSoon"/>
				<style>
					<hitTest value="false"/>
				</style>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<block type="text">
					<bind name="transition" value="$index == _selectedIndex; 0.08;	{scaleX: 0.8, scaleY: 0.8, top: 29, left: levelNumber &gt; 9 ? 4 : 2};
																	{scaleX: 1, scaleY: 1,  top: 24, left: 0}"/>
					<styleClass value="$TextAccentBoldAccountLevel1"/>
					<bind name="style" value="'alpha'; accountLevelInfo.accountLevel &gt;= levelNumber ? 1: 0.5"/>
					<bind name="text" value="levelNumber"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="6px"/>
			</style>
			<bind name="fade" value="$index == _selectedIndex; 0.1; {alpha: 0}; {alpha: 1}"/>
			<block>
				<style>
					<position value="absolute"/>
					<bottom value="-2px"/>
					<height value="20px"/>
					<width value="100%"/>
				</style>
				<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_blurmap_empty" 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="scroll_arrow" type="native"/>
		</block>
	</block>
	<block className="RewardsAndUnlocks">
		<style>
			<marginBottom value="6px"/>
		</style>
		<bind name="child" value="accountLevelInfo.accountLevel &gt;= _level; {_descMaxWidth: _descMaxWidth, icon: icon, title: title, text: text, descriptions: descriptions, showSticker: (accountLevelInfo.accountLevel == _level &amp;&amp; $index == 0)}; 'RewardsAndUnlocksItemFiltered'; 'RewardsAndUnlocksItemWithoutFilter'"/>
	</block>
	<block className="RewardsAndUnlocksItemWithoutFilter">
		<style>
			<marginBottom value="6px"/>
		</style>
		<block>
			<block>
				<style>
					<width value="80px"/>
					<height value="80px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + icon"/>
			</block>
			<block>
				<style>
					<marginLeft value="20px"/>
				</style>
				<block>
					<block>
						<style>
							<marginTop value="-50%"/>
							<top value="55%"/>
						</style>
						<bind name="visible" value="showSticker"/>
						<block className="icon_sticker_new" type="native"/>
					</block>
					<block type="text">
						<styleClass value="$TextAccentWhite"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="text" value="title"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block type="text">
					<bind name="style" value="'maxWidth'; _descMaxWidth ? _descMaxWidth : 420"/>
					<style>
						<leading value="-3"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="text" value="text"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="repeat" value="descriptions; 'RewardsAndUnlocksDescription'; {_descMaxWidth: _descMaxWidth}"/>
		</block>
	</block>
	<block className="RewardsAndUnlocksItemFiltered">
		<style>
			<marginBottom value="6px"/>
		</style>
		<block>
			<style>
				<colorMatrixFilter value="0 -80 0 0"/>
			</style>
			<block>
				<block>
					<style>
						<width value="80px"/>
						<height value="80px"/>
						<marginTop value="6px"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:' + icon"/>
				</block>
				<block>
					<style>
						<marginLeft value="20px"/>
					</style>
					<block type="text">
						<styleClass value="$TextAccentWhite"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="text" value="title"/>
					</block>
					<block type="text">
						<bind name="style" value="'maxWidth'; _descMaxWidth ? _descMaxWidth : 420"/>
						<style>
							<leading value="-3"/>
						</style>
						<styleClass value="$TextHeaderBigDefault"/>
						<bind name="text" value="text"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="repeat" value="descriptions; 'RewardsAndUnlocksDescription'; {_descMaxWidth: _descMaxWidth}"/>
			</block>
		</block>
	</block>
	<block className="NextLevelUnlock">
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_NEXT_LEVEL'}"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="60px"/>
				<height value="60px"/>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + icon"/>
		</block>
		<block>
			<style>
				<marginLeft value="12px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="toUpperCase(tr('IDS_NEXT_LEVEL'))"/>
			</block>
			<block type="text">
				<bind name="style" value="'maxWidth'; _maxWidth"/>
				<style>
					<marginTop value="-4"/>
					<leading value="-5"/>
				</style>
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="text" value="title"/>
			</block>
		</block>
	</block>
	<block className="RewardsAndUnlocksDescription">
		<style>
			<marginTop value="12px"/>
			<flow value="horizontal"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="80px"/>
				<height value="30px"/>
			</style>
			<block>
				<bind name="style" value="'backgroundImage'; 'url:' + icon"/>
			</block>
		</block>
		<block>
			<style>
				<marginLeft value="20px"/>
			</style>
			<block type="text">
				<bind name="style" value="'maxWidth'; _descMaxWidth ? _descMaxWidth : 420"/>
				<style>
					<leading value="-3"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="text"/>
			</block>
		</block>
	</block>
	<block className="AccountLevelVideo">
		<bind name="tooltip" value="'MouseInstructionTooltip'; {_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_WATCH_VIDEO'}], _maxWidth: 250}"/>
		<bind name="style" value="'width'; _width ? _width: '412px'"/>
		<bind name="style" value="'height'; _height ? _height: '232px'"/>
		<bind name="name" value="'AccountLevelVideo'"/>
		<block>
			<style>
				<hitTest value="false"/>
				<width value="100%"/>
				<height value="100%"/>
				<marginTop value="2px"/>
				<marginBottom value="2px"/>
				<marginLeft value="2px"/>
				<marginRight value="2px"/>
				<position value="absolute"/>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; ('url:../accountLevel/videoPreviews/video_preview_' + (_carouselData.levelToFeatureIdMap[_level + 1]) + '.png')"/>
		</block>
		<block className="button_infopanel_no_label" type="native">
			<style>
				<width value="100%"/>
				<height value="100%"/>
			</style>
			<bind name="request" value="'click'; 'webBrowser'; {url: 'guideFeature_' + (_level + 1) + '_InGame'}"/>
			<block>
				<style>
					<alpha value="0.9"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<hitTest value="false"/>
						<marginTop value="12px"/>
					</style>
					<block className="button_play" type="native">
						<bind name="gotoAndStop!" value="_big ? 'big' : 'small'"/>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<style>
						<hitTest value="false"/>
						<marginTop value="12px"/>
					</style>
					<block type="text">
						<style>
							<textAlign value="center"/>
						</style>
						<bind name="class" value="_big ? '$TextAccentBold' : '$TextLargeHeaderBold'"/>
						<bind name="text" value="toUpperCase(tr('IDS_WATCH_VIDEO'))"/>
					</block>
				</block>
			</block>
		</block>
	</block>
	<css name="$TextHeaderLargeBold">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<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="$TableCell">
		<width value="100%"/>
		<height value="23px"/>
	</css>
	<css name="$TableHeaderCell">
		<width value="100%"/>
		<marginBottom value="12px"/>
		<height value="23px"/>
	</css>
	<css name="$TableCellTextValue">
		<position value="absolute"/>
		<right value="0px"/>
	</css>
	<css name="$TextAccentGreyBold1">
		<fontFamily value="$WWSDefaultFontBold"/>
		<textColor value="0xDDDDDD"/>
		<fontSize value="70"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
	</css>
	<block className="StatColumn">
		<style>
			<width value="33%"/>
		</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_blurmap5_feather" 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>
			<style>
				<width value="100%"/>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
			</style>
			<bind name="repeat" value="array[$index]; 'StatRowProxy'; {statData: statData}"/>
		</block>
	</block>
	<block className="StatRowProxy">
		<style>
			<width value="100%"/>
		</style>
		<bind name="instance" value=" isHeader ? 'StatItemHeader' : 'StatRow'; {header: header, title:title, value:value, statData: statData, hintVehicleId: hintVehicleId}"/>
	</block>
	<block className="StatRow">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; hintVehicleId; '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="tooltip" value="'StatsRowHint' ; {tooltipText: title + '_TOOLTIP_PROFILE', shipInfo:shipInfo, _hintVehicleId: hintVehicleId}"/>
		<styleClass value="$TableCell"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<style>
					<width value="100%"/>
					<multiline value="false"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="title"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="value == '100%' ? value : format(value, -1)"/>
				<bind name="style" value="'alpha'; value == 0 || value == '0%' ? 0.5 : 1"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="-2px"/>
			</style>
			<bind name="instance" value="title ? 'TableDivider': 'EmptyStatsElement'; {}"/>
		</block>
	</block>
	<block className="StatItemHeader">
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: title + '_TOOLTIP_PROFILE'}"/>
		<styleClass value="$TableHeaderCell"/>
		<block type="text">
			<styleClass value="$TextHeaderLargeBold"/>
			<bind name="text" value="title"/>
		</block>
		<block type="text">
			<styleClass value="$TableCellTextValue"/>
			<styleClass value="$TextHeaderLargeBold"/>
			<bind name="text" value="value"/>
		</block>
	</block>
	<block className="EmptyStatsElement"/>
	<block className="PlayerSummary">
		<bind name="var" value="{curSeasonIndex: 0}"/>
		<bind name="catch" value="'curSeasonIndexChanged'"/>
		<bind name="collectionDH" value="CC.rankedSeasonHistory; 'statDataEntities'; 'statToShow'"/>
		<bind name="entityDH" value="'statDataEntity'; statDataEntities[0].id"/>
		<bind name="watchDH" value="'statData'; ['statDataEntity.dataComponent.evDataChanged']; statDataEntity.dataComponent.data"/>
		<bind name="watchDH" value="'shipsList'; ['statDataEntity.dataComponent.evDataChanged']; statDataEntity.dataComponent.data.shipsList"/>
		<styleClass value="$Fullsize"/>
		<bind name="watch" value="'battleType';	_curItemIndex == 0	? BattleTypes.COOPERATIVE_BATTLE :
								_curItemIndex == 1	? BattleTypes.RANDOM_BATTLE :
								_curItemIndex == 2	? BattleTypes.RANKED_BATTLE :
								_curItemIndex == 3	? BattleTypes.CLUB_BATTLE
													: BattleTypes.COOPERATIVE_BATTLE "/>
		<bind name="action" value="'battleType' + varChanged; 'battleTypeChanged'; {battleType: battleType}"/>
		<bind name="action" value="'addedToStage'; 'battleTypeChanged'; {battleType: battleType}"/>
		<style>
			<marginTop value="720:30,1080:80ah"/>
			<marginBottom value="720:0,1080:60ah"/>
		</style>
		<bind name="feature" value="3;''"/>
		<bind name="feature" value="16;''"/>
		<bind name="feature" value="19;	''"/>
		<bind name="feature" value="24;	''"/>
		<bind name="watch" value="'battleTypes';  feature_3	== 'locked' ? ['IDS_COOPERATIVE_BATTLE'] :
								 feature_16 == 'locked'	? ['IDS_COOPERATIVE_BATTLE', 'IDS_RANDOM_BATTLE'] :
								 feature_19 == 'locked' ? ['IDS_COOPERATIVE_BATTLE', 'IDS_RANDOM_BATTLE', 'IDS_RANKED_BATTLE']
								 						: ['IDS_COOPERATIVE_BATTLE', 'IDS_RANDOM_BATTLE', 'IDS_RANKED_BATTLE', 'IDS_CLUB_BATTLE']"/>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'PlayerSummaryItem'; {_battleType: battleType, _curItemIndex: _curItemIndex, _curSeasonIndex: curSeasonIndex, statData:statData, currentVehicleId: statData.vehicleId}"/>
		</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>
			<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_blurmap5_feather" 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>
			<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<style>
				<position value="absolute"/>
				<width value="230px"/>
				<marginTop value="-40px"/>
				<right value="1280:10,1920:20aw"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<width value="230px"/>
				</style>
				<block>
					<style>
						<height value="30px"/>
						<top value="-3px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'RankedSeasonDropdown'; battleType == BattleTypes.RANKED_BATTLE ? {statData: statData, _curSeasonIndex: curSeasonIndex}: null"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<block>
						<style>
							<width value="152px"/>
						</style>
						<block className="icon_battletypes_big" type="native">
							<bind name="transition" value="statData.vehicleId != 0; 0.15; {alpha: 1}; {alpha: 0.7}"/>
							<styleClass value="$MiddleAligned"/>
							<bind name="gotoAndStop!" value="battleType"/>
						</block>
						<block className="battle_type_overlay_big" type="native">
							<bind name="visible" value="statData.vehicleId != 0"/>
							<styleClass value="$MiddleAligned"/>
							<style>
								<position value="absolute"/>
								<alpha value="0.6"/>
							</style>
						</block>
						<block>
							<style>
								<position value="absolute"/>
								<top value="-3"/>
								<left value="-10"/>
							</style>
							<bind name="instance" value="'RankedSeasonFlag'; battleType == BattleTypes.RANKED_BATTLE ? {_curSeasonIndex: curSeasonIndex, statData: statData}: null"/>
						</block>
						<block>
							<styleClass value="$MiddleAligned"/>
							<style>
								<position value="absolute"/>
								<bottom value="-10"/>
							</style>
							<bind name="instance" value="'ShipPrewiewItem'; {currentVehicleId: statData.vehicleId}"/>
						</block>
					</block>
					<block>
						<styleClass value="$MiddleAligned"/>
						<style>
							<marginBottom value="6px"/>
						</style>
						<bind name="name" value="'dropdown_battle_types'"/>
						<bind name="instance" value="'ItemChooser'; {	_items: battleTypes, curIndex: _curItemIndex,
														_choosedItemRenderer: 'LargeTextChoosedItemRenderer', _listItemRenderer: 'TextListItemRenderer',
														onItemSelectedEvent: 'battleTypeChanged', _itemChooserTooltipText: 'IDS_CHOOSE_BATTLETYPE_STATS'}"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="statData.shipsList.length == 0"/>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<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>
						<style>
							<marginTop value="3px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'EmptyStatusParagraph'; {_text: 'IDS_NO_BATTLES_PLAYED_IN_' + toUpperCase(battleType), _maxWidth: 200}"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_SELECT_ALL_SHIPS_FOR_DETAILED_STAT'}], _maxWidth: 250}"/>
					<bind name="instance" value="'AllShipsSelectedItem'; statData.shipsList.length != 0 ? {shipListLength: statData.shipsList.length, totalWinRate: statData.diagStats.totalWinRate, battleType: battleType, currentVehicleId: statData.vehicleId, seasonId: seasonId, gamesPlayed: statData.diagStats.gamesPlayed} : null"/>
				</block>
				<block>
					<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"/>
					<styleClass value="$DefaultScrollBar"/>
					<style>
						<maxHeight value="328"/>
						<width value="100%"/>
						<overflow value="scroll"/>
					</style>
					<bind name="repeat" value="shipsList; 'ShipRowItem'; {battleType: battleType, currentVehicleId: statData.vehicleId, curSeasonIndex: curSeasonIndex, seasonId: seasonId, _curItemIndex: _curItemIndex}; !(userPrefs.shipSortStatsDirection)"/>
				</block>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'ShipSortingDropdown'; statData.shipsList.length &gt;= 2 ? {statData: statData.shipsList} : null"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ShipStatsTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
			<hitTest value="false"/>
		</style>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; _vehicleId; '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>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'ShipFlagIconLevelName'; {shipInfo: shipInfo, _multiline: true}"/>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; { _type: 'left', _instructionText: 'IDS_SELECT_SHIP_FOR_DETAILED_STAT', _maxWidth: 250}"/>
		</block>
	</block>
	<block className="ShipPrewiewItem">
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; currentVehicleId; '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"/>
		<style>
			<width value="214px"/>
			<height value="126px"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathPreview"/>
	</block>
	<block className="RankedSeasonDropdown">
		<bind name="var" value="{_curItemIndex: _curItemIndex ? _curItemIndex : 0}"/>
		<bind name="catch" value="'ItemChooserInnerEvent.historySeasonChanged'"/>
		<bind name="action" value="'_curItemIndex' + varChanged; 'rankedSeasonChanged'; {seasonId: statData.seasonList[_curItemIndex].id}"/>
		<bind name="dispatch" value="'_curItemIndex' + varChanged; 'curSeasonIndexChanged'; {curSeasonIndex: _curItemIndex}; false"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<block>
			<bind name="instance" value="'ItemChooser'; {	_items: statData.seasonList, curIndex: _curItemIndex,
											_choosedItemRenderer: 'LargeTextChoosedItemRendererRankedSeason', _listItemRenderer: 'TextListItemRendererRankedSeason',
											onItemSelectedEvent: 'historySeasonChanged', _itemChooserTooltipText: 'IDS_CHOOSE_RANK_SEASON'}"/>
		</block>
	</block>
	<block className="RankedSeasonFlag">
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<block>
			<style>
				<width value="75px"/>
				<height value="60px"/>
			</style>
			<bind name="style" value="'backgroundImage'; _curSeasonIndex != 0 ? ('url:' + statData.seasonList[_curSeasonIndex].iconPath) : ('url:' + ' ')"/>
		</block>
	</block>
	<block className="ShipSortingDropdown">
		<bind name="var" value="{items:['IDS_SORT_BY_WIN_PERCENT', 'IDS_SORT_BY_BATTLES_COUNT', 'IDS_SORT_BY_LEVEL', 'IDS_SORT_BY_NATION', 'IDS_SORT_BY_SHIPTYPE']}"/>
		<block type="text">
			<style>
				<marginTop value="4px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="tr('IDS_SORTING_TYPE') + tr('IDS_COLON')"/>
		</block>
		<block>
			<style>
				<marginLeft value="2px"/>
				<marginTop value="-1px"/>
			</style>
			<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="'_curItemIndex';	(userPrefs.shipStatsSortIndex == null) ? 0 : userPrefs.shipStatsSortIndex"/>
			<bind name="action" value="'shipSortStatsChanged'; 'setUserPref' ; {value: _curItemIndex, name: 'shipStatsSortIndex'}"/>
			<bind name="action" value="'shipSortStatsDirectionChanged'; 'setUserPref' ; {value: !(userPrefs.shipSortStatsDirection), name: 'shipSortStatsDirection'}"/>
			<bind name="request" value="'shipSortStatsChanged'; 'sortShipStats' ; {ids: items[_curItemIndex]}"/>
			<bind name="catch" value="'ItemChooser.shipsSortSelected'"/>
			<bind name="instance" value="'ItemChooser'; {	_items: items, curIndex: _curItemIndex, 
											_choosedItemRenderer: 'BluishTextChoosedItemRenderer', _listItemRenderer: 'TextListItemRenderer',
											onItemSelectedEvent: 'shipsSortSelected', _itemChooserTooltipText: 'IDS_HINT_SHIP_CAROUSEL_SORT'}"/>
			<bind name="changeDispatch" value="_curItemIndex; 'shipSortStatsChanged'"/>
			<bind name="changeDispatch" value="_direction; 'shipSortStatsDirectionChanged'"/>
		</block>
	</block>
	<block className="PlayerSummaryItem">
		<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="stageSize"/>
		<bind name="watch" value="'inset'; 0 "/>
		<bind name="catch" value="'changeInsetPlayerProfileSummaryInset'"/>
		<bind name="changeDispatch" value="inset; 'changeInsetInPrefs'"/>
		<bind name="action" value="'changeInsetInPrefs'; 'setUserPref' ; {value : inset, name : 'playerProfileSummaryInset'}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="watch" value="'playerSummaryStatsType'; (_battleType == BattleTypes.PVE_BATTLE ? 'PVEStats' : 'commonStats')"/>
			<bind name="child" value="playerSummaryStatsType; {battleType: _battleType, _curItemIndex: _curItemIndex,
											 _curSeasonIndex: curSeasonIndex, statData:statData,
											 currentVehicleId: statData.vehicleId}; 
											 {commonStats: 'PlayerSummaryCommon', PVEStats: 'PlayerSummaryPve'}"/>
		</block>
		<block>
			<bind name="visible" value="(statData.diagStats.gamesPlayed &gt; 0) &amp;&amp; (statData.vehicleId == 0)"/>
			<style>
				<height value="190px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<bind name="child" value="inset; {_curItemIndex: _curItemIndex, statData:statData, battleType: _battleType}; 'PlayerSummaryDiagrams'; 'PlayerSummaryBattleHeroes'"/>
		</block>
	</block>
	<block className="PlayerSummaryCommon">
		<styleClass value="$Fullsize"/>
		<style>
			<marginBottom value="20px"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginBottom value="24px"/>
			</style>
			<bind name="appear" value="'addedToStage'; 0.15; 0.12; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<block className="ProfilePlayerPercentEfficiency">
				<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_blurmap5_feather" 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>
				<style>
					<width value="160px"/>
				</style>
				<block type="text">
					<styleClass value="$TextAccentGreyBold"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="text" value="format(statData.basicStats.gamesPlayed, -1)"/>
					<bind name="name" value="'Stat_' + 'IDS_GAME_PLAYED'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-12px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="'IDS_GAME_PLAYED'"/>
				</block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_GAME_PLAYED' + '_TOOLTIP_PROFILE'}"/>
			</block>
			<block className="ProfilePlayerPercentEfficiency">
				<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_blurmap5_feather" 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>
				<style>
					<width value="160px"/>
				</style>
				<block type="text">
					<styleClass value="$TextAccentGreyBold"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="text" value="statData.basicStats.winRate"/>
					<bind name="name" value="'Stat_' + 'IDS_VICTORY_PERCENT'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-12px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="'IDS_VICTORY_PERCENT'"/>
				</block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_VICTORY_PERCENT' + '_TOOLTIP_PROFILE'}"/>
			</block>
			<block className="ProfilePlayerPercentEfficiency">
				<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_blurmap5_feather" 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>
				<style>
					<width value="160px"/>
				</style>
				<block type="text">
					<styleClass value="$TextAccentGreyBold"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="text" value="format(statData.basicStats.averageExp, -1)"/>
					<bind name="name" value="'Stat_' + 'IDS_EXPERIENCE_C_AVERAGE'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-12px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="'IDS_EXPERIENCE_C_AVERAGE'"/>
				</block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_EXPERIENCE_C_AVERAGE' + '_TOOLTIP_PROFILE'}"/>
			</block>
			<block className="ProfilePlayerPercentEfficiency">
				<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_blurmap5_feather" 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>
				<style>
					<width value="160px"/>
				</style>
				<block type="text">
					<styleClass value="$TextAccentGreyBold"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="text" value="statData.basicStats.maxFrags"/>
					<bind name="name" value="'Stat_' + 'IDS_MAX_SHIPS_PER_BATTLE'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-12px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="'IDS_MAX_SHIPS_PER_BATTLE'"/>
				</block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_MAX_SHIPS_PER_BATTLE' + '_TOOLTIP_PROFILE'}"/>
			</block>
			<block className="ProfilePlayerPercentEfficiency">
				<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_blurmap5_feather" 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>
				<style>
					<width value="160px"/>
				</style>
				<block type="text">
					<styleClass value="$TextAccentGreyBold"/>
					<styleClass value="$MiddleAligned"/>
					<bind name="text" value="statData.basicStats.killDeath"/>
					<bind name="name" value="'Stat_' + 'IDS_DESTROY_RATIO'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-12px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="class" value="'$Bold'"/>
					<bind name="text" value="'IDS_DESTROY_RATIO'"/>
				</block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_DESTROY_RATIO' + '_TOOLTIP_PROFILE'}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="appear" value="'addedToStage'; 0.15; 0.24; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<height value="100%f"/>
				<overflow value="scroll"/>
			</style>
			<block>
				<style>
					<width value="62sw"/>
					<maxWidth value="1100"/>
				</style>
				<bind name="repeat" value="statData.basicStats.colData; 'StatColumn'; {array:statData.basicStats.colData, statData: statData}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="PlayerSummaryDiagrams">
		<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>
		<bind name="appear" value="'addedToStage'; 0.15; 0.36; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<style>
			<height value="190px"/>
			<flow value="horizontal"/>
		</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_blurmap5_feather" 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>
			<style>
				<height value="100%"/>
				<width value="1280:268,1920:310aw"/>
			</style>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_STATISTICS_BY_NATIONS_TOOLTIP'}"/>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderLargeBold"/>
					<bind name="text" value="'IDS_NATIONS'"/>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="5px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'NationsDiagram';  {gamesPlayed: statData.diagStats.gamesPlayed, battlesByNation: statData.diagStats.nations}"/>
			</block>
		</block>
		<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_blurmap5_feather" 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>
			<style>
				<height value="100%"/>
				<width value="1280:268,1920:310aw"/>
			</style>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_STATISTICS_BY_SHIP_TYPES_TOOLTIP'}"/>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderLargeBold"/>
					<text value="IDS_SHIP_TYPES"/>
				</block>
			</block>
			<block>
				<style>
					<marginTop value="5px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ShipTypeDiagram'; {gamesPlayed: statData.diagStats.gamesPlayed, battlesByShipType: statData.diagStats.classes}"/>
			</block>
		</block>
		<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_blurmap5_feather" 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>
			<style>
				<height value="100%"/>
				<width value="1280:268,1920:310aw"/>
			</style>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_STATISTICS_BY_SHIP_LEVELS_TOOLTIP'}"/>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderLargeBold"/>
					<text value="IDS_LEVELS"/>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<height value="140px"/>
					<marginTop value="5px"/>
				</style>
				<bind name="repeat" value="statData.diagStats.levels.shipLevels; 'LineDiagramItem'; {maxValue: statData.diagStats.levels.maxValue}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="PlayerSummaryBattleHeroes">
		<bind name="appear" value="'addedToStage'; 0.15; 0.36; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<styleClass value="$MiddleAligned"/>
		<block type="text">
			<styleClass value="$TextHeaderLargeBold"/>
			<bind name="text" value="'PlayerSummaryBattleHeroes'"/>
		</block>
	</block>
	<block className="NationsDiagram">
		<bind name="catch" value="'sectorRollOver'"/>
		<bind name="catch" value="'sectorRollOut'"/>
		<bind name="var" value="{showGamesPlayed: true, currentItemId: null}"/>
		<style>
			<marginLeft value="62px"/>
			<height value="140px"/>
		</style>
		<block>
			<style>
				<marginTop value="70px"/>
				<position value="absolute"/>
			</style>
			<bind name="repeat" value="battlesByNation.diagram; 'CircleDiagramItem'; {currentItemId: currentItemId, showGamesPlayed: showGamesPlayed}"/>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_GAME_PLAYED_TOOLTIP_PROFILE'}"/>
				<bind name="transition" value="showGamesPlayed; 0.2; {alpha: 0}; {alpha: 1}"/>
				<style>
					<position value="absolute"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderLargeBold"/>
					<bind name="text" value="gamesPlayed"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="75px"/>
				<flow value="vtile"/>
			</style>
			<bind name="style" value="'height';	battlesByNation.legend.length &lt;= 4 ? ((battlesByNation.legend.length * 35) +'px') : '140px' "/>
			<bind name="repeat" value="battlesByNation.legend; 'NationLegendItem'; {currentItemId: currentItemId, showGamesPlayed: showGamesPlayed}"/>
		</block>
	</block>
	<block className="ShipTypeDiagram">
		<bind name="catch" value="'sectorRollOver'"/>
		<bind name="catch" value="'sectorRollOut'"/>
		<bind name="var" value="{showGamesPlayed: true, currentItemId: null}"/>
		<style>
			<marginLeft value="62px"/>
			<height value="140px"/>
		</style>
		<block>
			<style>
				<marginTop value="70px"/>
				<position value="absolute"/>
			</style>
			<bind name="repeat" value="battlesByShipType.diagram; 'CircleDiagramItem'; {currentItemId: currentItemId, showGamesPlayed: showGamesPlayed}"/>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_GAME_PLAYED_TOOLTIP_PROFILE'}"/>
				<bind name="transition" value="showGamesPlayed; 0.2; {alpha: 0}; {alpha: 1}"/>
				<style>
					<position value="absolute"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextHeaderLargeBold"/>
					<bind name="text" value="gamesPlayed"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="75px"/>
				<flow value="vtile"/>
			</style>
			<bind name="style" value="'height';	battlesByShipType.legend.length &lt;= 4 ? ((battlesByShipType.legend.length * 35) +'px') : '140px' "/>
			<bind name="repeat" value="battlesByShipType.legend; 'ShipTypeLegendItem'; {currentItemId: currentItemId, showGamesPlayed: showGamesPlayed}"/>
		</block>
	</block>
	<block className="CircleDiagramItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: text}"/>
		<bind name="dispatch" value="'rollOver'; 'sectorRollOver'; {currentItemId: itemId, showGamesPlayed: false}"/>
		<bind name="dispatch" value="'rollOut'; 'sectorRollOut'; {currentItemId: itemId, showGamesPlayed: true}"/>
		<style>
			<position value="absolute"/>
			<left value="0px"/>
			<top value="0px"/>
		</style>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<block className="lesta.display.Sector" type="native">
				<bind name="color" value="color"/>
				<bind name="offset" value="offset"/>
				<bind name="arc" value="arc"/>
				<bind name="appear" value="'addedToStage'; 0.2; 0.4; {radius: 44}; {radius: 62}; 1"/>
				<bind name="transition" value="rollOver || ((currentItemId == itemId) &amp;&amp; !(showGamesPlayed)); 0.15; {radius: 62}; {radius: 65}"/>
				<params>
					<param name="innerRadius" value="44"/>
					<param name="radius" value="62"/>
				</params>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MouseDisable"/>
			<bind name="transition" value="rollOver || ((currentItemId == itemId) &amp;&amp; !(showGamesPlayed)); 0.2; {alpha: 0}; {alpha: 1}"/>
			<style>
				<position value="absolute"/>
				<top value="-15px"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeaderLargeBold"/>
				<bind name="text" value="value"/>
			</block>
		</block>
	</block>
	<block className="NationLegendItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: text}"/>
		<bind name="dispatch" value="'rollOver'; 'sectorRollOver'; {currentItemId: itemId, showGamesPlayed: false}"/>
		<bind name="dispatch" value="'rollOut'; 'sectorRollOut'; {currentItemId: itemId, showGamesPlayed: true}"/>
		<style>
			<width value="55px"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
				<height value="35px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<block className="lesta.display.Circle" type="native">
					<style>
						<marginTop value="10px"/>
						<marginRight value="10px"/>
					</style>
					<bind name="color" value="color"/>
					<bind name="appear" value="'addedToStage'; 0.3; 0; {radius: 0}; {radius: 4}"/>
					<bind name="transition" value="rollOver || ((currentItemId == itemId) &amp;&amp; !(showGamesPlayed)); 0.15; {radius: 4}; {radius: 6}"/>
				</block>
				<block>
					<bind name="instance" value="'NationFlagsTiny'; {shipCountry: itemId}"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ShipTypeLegendItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: text}"/>
		<bind name="dispatch" value="'rollOver'; 'sectorRollOver'; {currentItemId: itemId, showGamesPlayed: false}"/>
		<bind name="dispatch" value="'rollOut'; 'sectorRollOut'; {currentItemId: itemId, showGamesPlayed: true}"/>
		<block>
			<style>
				<width value="46px"/>
				<height value="35px"/>
			</style>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<block className="lesta.display.Circle" type="native">
					<style>
						<marginTop value="4px"/>
						<marginLeft value="8px"/>
					</style>
					<bind name="color" value="color"/>
					<bind name="transition" value="rollOver || ((currentItemId == itemId) &amp;&amp; !(showGamesPlayed)); 0.15; {radius: 4}; {radius: 6}"/>
					<bind name="appear" value="'addedToStage'; 0.3; 0; {radius: 0}; {radius: 4}"/>
				</block>
				<block className="icon_ship" type="native">
					<styleClass value="$MiddleVAligned"/>
					<bind name="style" value="'marginLeft'; itemId == 'Destroyer' ? '8px' : '10px' "/>
					<bind name="gotoAndStop!" value="itemId"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="LineDiagramItem">
		<bind name="watch" value="'animationTime'; (0.2 + value * 0.0007)"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: text}"/>
		<bind name="changeDispatch" value="value; 'valueChanged'"/>
		<bind name="changeDispatch" value="maxValue; 'valueChanged'"/>
		<bind name="dispatch" value="'addedToStage'; 'valueChanged'"/>
		<style>
			<width value="26px"/>
			<height value="100%"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<bottom value="0px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<bind name="appear" value="'valueChanged'; animationTime; 0.4; {intValue: 0}; {intValue: value}; 1"/>
					<style>
						<textAlign value="center"/>
						<width value="26px"/>
					</style>
					<styleClass value="$TextSecondary"/>
					<bind name="text" value="format(value, -1)"/>
				</block>
			</block>
			<block>
				<bind name="appear" value="'valueChanged'; animationTime; 0.4; {height: 0}; {height: value ? ((value/maxValue) * 100) : 1}; 1"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<height value="0px"/>
					<width value="18px"/>
				</style>
				<bind name="style" value="'backgroundColor'; _columnColor ? _columnColor : 0xFF2DF0C9"/>
			</block>
			<block>
				<style>
					<marginTop value="4px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="label"/>
				</block>
			</block>
		</block>
	</block>
	<block className="LargeTextChoosedItemRendererRankedSeason">
		<style>
			<height value="35px"/>
		</style>
		<block type="text">
			<style>
				<hitTest value="false"/>
				<marginLeft value="4px"/>
				<marginTop value="1px"/>
			</style>
			<styleClass value="$TextDockBig"/>
			<bind name="text" value="_item.id == 0 ? ('IDS_ALL_SEASONS') : ('IDS_SEASON_TITLE_' + (tr(_item.id)))"/>
		</block>
	</block>
	<block className="TextListItemRendererRankedSeason">
		<styleClass value="$ContextMenuListItem"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block className="MenuItemWithIconAndSelection">
			<styleClass value="$Fullsize"/>
			<bind name="name" value="id == 0 ? ('IDS_ALL_SEASONS') : ('IDS_SEASON_TITLE_' + id)"/>
			<style>
				<flow value="horizontal"/>
			</style>
			<block>
				<bind name="visible" value="id != 0"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="style" value="'backgroundImage'; 'url:' + iconPath"/>
				<bind name="scaleX" value="0.4"/>
				<bind name="scaleY" value="0.4"/>
				<style>
					<width value="28px"/>
					<height value="22px"/>
					<marginLeft value="6px"/>
				</style>
			</block>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="selected" value="(_curItemIndex == $index)"/>
			</block>
			<block type="text">
				<style>
					<maxWidth value="136"/>
					<marginLeft value="6px"/>
				</style>
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="class" value="(_curItemIndex == $index) == true ? '$Bold' : '$None'"/>
				<bind name="text" value="(_toLowerCase ? toLowerCase(tr(id == 0 ? ('IDS_ALL_SEASONS') : ('IDS_SEASON_TITLE_' + id)))
											: (tr(id == 0 ? ('IDS_ALL_SEASONS') : ('IDS_SEASON_TITLE_' + id))))"/>
			</block>
		</block>
		<bind name="dispatch" value="'click'; ('ItemChooserInnerEvent.' + _onItemSelectedEvent); {_curItemIndex: $index}"/>
		<bind name="dispatch" value="'click'; ('ItemChooserInnerEventDublicate.' + _onItemSelectedEvent)"/>
	</block>
	<block className="ShipRowItem">
		<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="primaryEntityDH" value="'shipEntity'; CC.ship; vehicleId; '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="tooltip" value="'ShipStatsTooltip'; { _vehicleId: vehicleId, _maxWidth: 250}"/>
		<style>
			<width value="100%"/>
			<height value="36px"/>
		</style>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$PxHorizontalCorrection"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="clickSplit"/>
			<style>
				<marginTop value="-1px"/>
				<marginBottom value="2px"/>
			</style>
			<bind name="action" value="'left_click'; 'vehicleIdChanged'; {vehicleId:vehicleId}"/>
			<bind name="selected" value="currentVehicleId == vehicleId"/>
			<bind name="style" value="'alpha'; currentVehicleId == vehicleId ? 2 : 1"/>
		</block>
		<block>
			<style>
				<height value="100%"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<block>
				<style>
					<width value="100%"/>
					<marginRight value="2px"/>
				</style>
				<bind name="instance" value="'ShipFlagIconLevelName'; {shipInfo: shipInfo}"/>
			</block>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="(userPrefs.shipStatsSortIndex == 1)	? battlesCount : winRate"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<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>
	<block className="AllShipsSelectedItem">
		<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="primaryEntityDH" value="'shipEntity'; CC.ship; vehicleId; '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="watch" value="'currentVehicleId'; 0"/>
		<bind name="var" value="{vehicleId:0}"/>
		<style>
			<width value="100%"/>
			<height value="36px"/>
		</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 className="dock_submenu_item" type="native">
			<styleClass value="$PxHorizontalCorrection"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="clickSplit"/>
			<style>
				<marginBottom value="2px"/>
				<marginTop value="2px"/>
			</style>
			<bind name="action" value="'left_click'; 'vehicleIdChanged'; {vehicleId:0}"/>
			<bind name="selected" value="currentVehicleId == vehicleId"/>
			<bind name="style" value="'alpha'; currentVehicleId == vehicleId ? 2 : 1"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<height value="100%"/>
				<hitTest value="false"/>
			</style>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="tr('IDS_ALL_VEHICLES') +  ' ' + '(' + shipListLength + ')'"/>
			</block>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<right value="0"/>
					<position value="absolute"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="(userPrefs.shipStatsSortIndex == 1)	? gamesPlayed : totalWinRate"/>
			</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>
	<block className="ShipFlagIconLevelName">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<marginTop value="7px"/>
				<alpha value="0.7"/>
			</style>
			<bind name="instance" value="'NationFlagsTiny'; {shipCountry: shipInfo.flagName}"/>
		</block>
		<block>
			<style>
				<marginLeft value="-15px"/>
				<marginTop value="12px"/>
			</style>
			<block>
				<bind name="visible" value="shipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
				<style>
					<position value="absolute"/>
					<left value="-5px"/>
					<top value="-8px"/>
				</style>
				<block className="icon_wreath" type="native">
					<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
									shipInfo.isPremium 	? 'premium'
														: 'elite'"/>
				</block>
			</block>
			<block className="icon_ship" type="native">
				<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
			</block>
		</block>
		<block type="text">
			<style>
				<marginLeft value="6px"/>
				<marginTop value="4px"/>
				<multiline value="false"/>
			</style>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
			<bind name="text" value="shipInfo.levelRome"/>
		</block>
		<block type="text">
			<style>
				<width value="100%"/>
				<marginLeft value="3px"/>
				<marginTop value="4px"/>
			</style>
			<bind name="style" value="'multiline'; _multiline ? _multiline : false"/>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$LetterSpacingSmall'"/>
			<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
			<bind name="text" value="toUpperCase(tr(shipInfo.nameIDS))"/>
		</block>
	</block>
	<block className="StatsRowHint">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
		</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">
			<style>
				<position value="absolute"/>
			</style>
			<styleClass value="$Fullsize"/>
		</block>
		<block type="text">
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<styleClass value="$TextHeaderBigDefault"/>
			<style>
				<maxWidth value="276"/>
			</style>
			<bind name="text" value="tooltipText"/>
		</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>
			<bind name="visible" value="_hintVehicleId &gt; 0"/>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="'IDS_ON_SHIP_STATS'"/>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="-4px"/>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ShipFlagIconLevelName'; {shipInfo: shipInfo, _multiline: true}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="PlayerClubs">
		<styleClass value="$Fullsize"/>
		<bind name="firstEntityDH" value="'clubsCommonEntity'; CC.clubsCommon"/>
		<bind name="watchDH" value="'seasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
		<bind name="action" value="'addedToStage'; seasonId &gt; 0 ? 'timeToStartTutorial' : null; { featureId: 19 }"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'clubsCount'; ['clubsCommonEntity.clubsCommon.evClubsCountChanged']; clubsCommonEntity.clubsCommon.clubsCount"/>
		<bind name="watch" value="'isAnyClubExisted'; clubsCount &gt; 0"/>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="child" value="isAnyClubExisted ? isAnyClubExisted : 0; 'NoExistingClubsScreen'; 'ClubsExistedScreen'"/>
		</block>
		<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
		<bind name="watchDH" value="'isChatServerAvailable'; ['chat.evConnected', 'chat.evDisConnected']; chat.isConnected"/>
		<bind name="watchDH" value="'isClubServiceAvailable'; ['clubsCommonEntity.clubsCommon.evIsActiveChanged']; clubsCommonEntity.clubsCommon.isActive"/>
		<bind name="watch" value="'isServerAvailable'; isChatServerAvailable &amp;&amp; isClubServiceAvailable"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="!(isServerAvailable)"/>
			<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="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.15; 0.23; {alpha: 0, top: 10};  {alpha: 1, top: 0}"/>
				<style>
					<top value="35sh"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'ServerIsUnavailable'; isServerAvailable ? null : {_type: 'CLUB', _isBig: true, _maxWidth: 800}"/>
			</block>
		</block>
	</block>
	<block className="ClubsExistedScreen">
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="dataRefDH" value="'clubsMembershipLimit'; 'clubsCommonEntity.clubsCommon.clubsMembershipLimit'"/>
		<bind name="watchDH" value="'clubsCount'; ['clubsCommonEntity.clubsCommon.evClubsCountChanged']; clubsCommonEntity.clubsCommon.clubsCount"/>
		<bind name="stageSize"/>
		<bind name="style" value="'top'; (30 + (stageHeight-720)/4)+'px'"/>
		<bind name="watch" value="'cardHorizontalMargin'; (10+(stageWidth-1280)/13)+'px'"/>
		<bind name="handleEventDH" value="'clubsCommonEntity.clubsCommon.evClubsCountChanged'; 'curActiveClubChangedEvent'; {curActiveClubIndex: (clubsCount - 1)}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="var" value="{curActiveClubIndex: 0}"/>
			<bind name="catch" value="'curActiveClubChangedEvent'"/>
			<block>
				<style>
					<width value="160px"/>
				</style>
				<bind name="style" value="'width'; stageWidth &lt; 1580 ? 160 : 0"/>
			</block>
			<block>
				<bind name="appear" value="'addedToStage'; 0.15; 0.05; {alpha: 0, top: 25}; {alpha: 1, top: 0}"/>
				<bind name="visible" value="clubs.length == 1"/>
				<style>
					<marginTop value="18px"/>
				</style>
				<bind name="style" value="'marginLeft'; cardHorizontalMargin"/>
				<bind name="style" value="'marginRight'; cardHorizontalMargin"/>
				<block className="BlurMapCustomOutbound">
					<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_blurmap10_feather" 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="110%"/>
							<height value="110%"/>
							<left value="-5%"/>
							<top value="-5%"/>
						</style>
						<bind name="blurMap" value="0"/>
					</block>
				</block>
				<block type="text">
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextHeaderBold"/>
					<style>
						<marginBottom value="3px"/>
					</style>
					<bind name="text" value="toUpperCase(tr('IDS_CLUBS'))"/>
				</block>
				<bind name="repeat" value="clubs.length == 1 ? [{_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_3'}, {_paragraphText: 'IDS_CLUBS_INTRO_0_0'}, {_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_6'}] : 0; 'RepeatParagraphItem'; {_maxWidth: 250, _marginBottom: '6px',
																																						_class: '$TextHeaderBigDefault'}"/>
			</block>
			<block>
				<style>
					<width value="1px"/>
				</style>
				<bind name="watch" value="'clubsContainerWidth'; 520 + (clubs.length - 1) * 234 + (10+(stageWidth-1280)/13) * clubs.length * 2"/>
				<bind name="style" value="'width'; clubsContainerWidth"/>
				<bind name="repeat" value="clubs; 'ClubCard'; {_curActiveClubIndex: curActiveClubIndex, _cardHorizontalMargin: cardHorizontalMargin}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="instance" value="'EmptyClubCard'; clubs.length &lt; clubsMembershipLimit ? {_cardHorizontalMargin: cardHorizontalMargin, _existedClubsCount: clubs.length, _activeClubEntityId: clubs[curActiveClubIndex].id } : null"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="EmptyClubCard">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'minPartyForBattle'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.minPartyForBattle"/>
		<bind name="entityDH" value="'entityClub'; _activeClubEntityId"/>
		<bind name="watchDH" value="'isCurPlayerCommander'; ['entityClub.party.evUpdate']; entityClub.party.isOwner"/>
		<bind name="watchDH" value="'isPartyMember'; ['entityClub.party.evUpdate']; entityClub.party.isMember"/>
		<bind name="watchDH" value="'isPartyCreated'; ['entityClub.club.evPartyCreatedChanged']; entityClub.club.partyCreated"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0.05; {alpha: 0, top: 25}; {alpha: 1, top: 0}"/>
		<bind name="var" value="{ iconScale: 0.9 }"/>
		<bind name="style" value="'marginRight'; _cardHorizontalMargin"/>
		<bind name="style" value="'marginLeft'; _cardHorizontalMargin"/>
		<style>
			<marginTop value="52px"/>
			<width value="250px"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="visible" value="!(dockDefaultValues.clubCreationEnabled) &amp;&amp; _existedClubsCount &lt; 3"/>
			<block className="BlurMapCustomOutbound">
				<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_blurmap10_feather" 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="110%"/>
						<height value="110%"/>
						<left value="-5%"/>
						<top value="-5%"/>
					</style>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderBold"/>
				<style>
					<marginTop value="-34px"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="text" value="toUpperCase(tr('IDS_HEADING_TO_BATTLE'))"/>
			</block>
			<bind name="watch" value="'instructionArray'; isCurPlayerCommander 	? 
											[	{_paragraphText: 'IDS_CLUBS_INTRO_1_0'},
												{_paragraphText: 'IDS_CLUBS_INTRO_2_0'},
												{_paragraphText: subst('IDS_CLUBS_INTRO_2_1', [], {minPlayers: minPartyForBattle})}]
										: isPartyMember			?
											[	{_paragraphText: 'IDS_CLUBS_INTRO_1_0'},
												{_paragraphText: subst('IDS_CLUBS_INTRO_2_1', [], {minPlayers: minPartyForBattle})}]
										: isPartyCreated 			?
											[	{_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_9_1'},
												{_paragraphText: 'IDS_CLUBS_INTRO_1_0'},
												{_paragraphText: subst('IDS_CLUBS_INTRO_2_1', [], {minPlayers: minPartyForBattle})}]
										:	[	{_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_9'}]
										"/>
			<bind name="repeat" value="instructionArray; 'RepeatParagraphItem'; {_maxWidth: 250, _marginBottom: '6px', _class: '$TextHeaderBigDefault'}"/>
		</block>
		<block>
			<bind name="visible" value="_existedClubsCount == 0 || dockDefaultValues.clubCreationEnabled"/>
			<style>
				<position value="absolute"/>
				<left value="50%"/>
				<marginLeft value="-45%"/>
			</style>
			<bind name="scaleX" value="iconScale"/>
			<bind name="scaleY" value="iconScale"/>
			<bind name="instance" value="'ClubHeaderIconCreateClub'; { _scale: iconScale }"/>
		</block>
	</block>
	<css name="$SqueezeHorizontal">
		<width value="90%"/>
		<left value="5%"/>
	</css>
	<css name="$SqueezeVertical">
		<top value="5%"/>
		<height value="90%"/>
	</css>
	<block className="ClubCard">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="entityDH" value="'entityClub'; id"/>
		<bind name="dataRefDH" value="'club'; 'entityClub.club'"/>
		<bind name="watchDH" value="'name';['entityClub.club.evNameChanged']; entityClub.club.name"/>
		<bind name="watchDH" value="'rating';['entityClub.club.evRatingChanged']; entityClub.club.rating"/>
		<bind name="watchDH" value="'league';['entityClub.club.evRatingChanged']; entityClub.club.league"/>
		<bind name="watchDH" value="'leaderDbId';['entityClub.club.evleaderIdChanged']; entityClub.club.leaderId"/>
		<bind name="watchDH" value="'ratingHistory';['entityClub.club.evRatingHistoryChanged']; entityClub.club.ratingHistory"/>
		<bind name="watchDH" value="'ratingHistoryTimes';['entityClub.club.evRatingHistoryChanged']; entityClub.club.ratingHistoryTimes"/>
		<bind name="watchDH" value="'ratingHistoryCounts';['entityClub.club.evRatingHistoryChanged']; entityClub.club.ratingHistoryCounts"/>
		<bind name="watchDH" value="'battlesCount';['entityClub.club.evRatingChanged']; entityClub.club.battlesCount"/>
		<bind name="watchDH" value="'winRate';['entityClub.club.evRatingChanged']; entityClub.club.winRate"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'selfPlayerDbId'; []; selfPlayerEntity.accountSimple.dbId"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<bind name="dispatch" value="'click'; 'curActiveClubChangedEvent'; {curActiveClubIndex: $index}"/>
		<bind name="soundSet" value="isActiveClubCard ? '' : 'default_button'"/>
		<bind name="style" value="'marginRight'; _cardHorizontalMargin"/>
		<bind name="style" value="'marginLeft'; _cardHorizontalMargin"/>
		<bind name="watchDH" value="'isPartyCreated'; ['entityClub.club.evPartyCreatedChanged']; entityClub.club.partyCreated"/>
		<bind name="watchDH" value="'isPartyInBattle'; ['entityClub.party.evUpdate']; entityClub.party.isInBattle"/>
		<bind name="watch" value="'isActiveClubCard'; _curActiveClubIndex == $index"/>
		<bind name="changeDispatch" value="isActiveClubCard; 'evSetPartyFullUpdate'"/>
		<bind name="watchDH" value="'isPartyFullUpdate'; ['entityClub.party.evUpdate']; entityClub.party.isDataFull"/>
		<bind name="changeDispatch" value="isPartyFullUpdate; 'evSetPartyFullUpdate'"/>
		<bind name="action" value="'evSetPartyFullUpdate'; isActiveClubCard &amp;&amp; !(isPartyFullUpdate) ? 'setActiveParty' : ''; {clubId: entityClub.club.id}"/>
		<style>
			<width value="234px"/>
			<height value="458px"/>
		</style>
		<bind name="var" value="{easing: 0}"/>
		<bind name="appear" value="'addedToStage'; 0.15; $index*0.1+0.05; {alpha: 0, top: 25}; {alpha: 1, top: 0}"/>
		<bind name="transition" value="isActiveClubCard; 0.2; {width: 234, height: 266}; {width: 520, height: 458}; {width: 234, height: 266}; easing"/>
		<block>
			<bind name="transition" value="isActiveClubCard; 0.2; {alpha: 0}; {alpha: 1}; {alpha: 0}; easing"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="stageSize"/>
			<bind name="class" value="stageWidth &lt; 1500 ? '$SqueezeHorizontal' : '$None'"/>
			<bind name="class" value="stageHeight &lt; 870 ? '$SqueezeVertical' : '$None'"/>
			<block className="BlurMapCustomOutbound">
				<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_blurmap10_feather" 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="110%"/>
						<height value="110%"/>
						<left value="-5%"/>
						<top value="-5%"/>
					</style>
					<bind name="blurMap" value="0"/>
				</block>
			</block>
		</block>
		<bind name="watch" value="'clubIconState'; 	isPartyInBattle	? 'InBattle' :
									isPartyCreated	? 'Party'
													: 'Rating'"/>
		<block>
			<style>
				<top value="38px"/>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="isActiveClubCard; 0.13; {scaleX: 0.9, scaleY: 0.9, top: 12}; {top: 0, scaleX: 1, scaleY: 1}; {scaleX: 0.9, scaleY: 0.9, top: 12}; easing; (isActiveClubCard ? 0 : 0.07)"/>
			<bind name="instance" value="'ClubHeaderIcon'; {	_clubIconState: clubIconState,
											_isLeader: (selfPlayerDbId == leaderDbId),
											_isActiveClubIcon: (isActiveClubCard || rollOver),
											_clubEntityId: entityClub.id}"/>
		</block>
		<block>
			<bind name="transition" value="isActiveClubCard; 0.2; {height: 74}; {height: 42}; {height: 74}; easing"/>
			<style>
				<marginTop value="8px"/>
				<marginBottom value="16px"/>
				<height value="90px"/>
			</style>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<block>
				<style>
					<height value="100%"/>
				</style>
				<block className="button_dock" type="native">
					<bind name="name" value="'contextMenuClub'"/>
					<bind name="style" value="'hitTest'; isActiveClubCard"/>
					<style>
						<width value="100%"/>
						<height value="45px"/>
						<marginRight value="-18px"/>
						<position value="absolute"/>
					</style>
					<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: (selfPlayerDbId == leaderDbId) &amp;&amp; realmConstants.clubNaming ? [{_type: 'left', _instructionText: 'IDS_CLUB_CONTEXT_MENU_HINT_LEAD' }]
																											 								: [{_type: 'left', _instructionText: 'IDS_CLUB_CONTEXT_MENU_HINT' }],
															_maxWidth: 250 }; 0"/>
					<bind name="tooltip" value="'ClubDropDownMenu'; {_dropDown: true, _clubEntityId: entityClub.id}; TooltipBehaviour.verticalInfoWidget"/>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<bind name="style" value="'hitTest'; !(isActiveClubCard)"/>
					<style>
						<marginLeft value="8px"/>
						<marginRight value="4px"/>
					</style>
					<block type="text">
						<bind name="transition" value="isActiveClubCard; 0.15; {alpha: 0.7}; {alpha: 1}; {alpha: 0.7}; easing"/>
						<style>
							<leading value="-4"/>
						</style>
						<bind name="style" value="'maxWidth'; isActiveClubCard ? '500': '200'"/>
						<bind name="style" value="'textAlign'; isActiveClubCard ? 'left': 'center'"/>
						<bind name="class" value="isActiveClubCard ? '$FontSizeHeader3' : '$FontSizeHeader4'"/>
						<styleClass value="$TextAccentBold"/>
						<bind name="text" value="name"/>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<marginTop value="16px"/>
						<right value="-12"/>
						<hitTest value="false"/>
					</style>
					<block className="icon_navigate" type="native">
						<bind name="visible" value="isActiveClubCard"/>
						<bind name="gotoAndStop!" value="'down'"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<top value="57px"/>
				<marginLeft value="260px"/>
				<marginBottom value="12px"/>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="isActiveClubCard; 0.15; {scaleX: 0, scaleY: 0.7}; {scaleX: 1, scaleY: 1}; {scaleX: 0, scaleY: 0.7}; easing; (isActiveClubCard ? 0.05 : 0)"/>
			<bind name="transition" value="isActiveClubCard; 0.1; {alpha: 0}; {alpha: 1}; {alpha: 0}; easing; (isActiveClubCard ? 0.1 : 0)"/>
			<bind name="style" value="'hitTest'; isActiveClubCard"/>
			<bind name="child" value="isPartyCreated ? isPartyCreated : 0; {_clubEntityId: entityClub.id}; 'ClubMembersList'; 'PartyMembersList'"/>
		</block>
		<block>
			<style>
				<left value="208px"/>
				<top value="61px"/>
				<position value="absolute"/>
			</style>
			<bind name="transition" value="isActiveClubCard; 0.1; {alpha: 0}; {alpha: 1}; {alpha: 0}; easing; (isActiveClubCard ? 0.1 : 0)"/>
			<block className="icon_info_big" type="native">
				<bind name="tooltip" value="'ClubInfoTooltip'; {_clubEntityId: entityClub.id}; TooltipBehaviour.simple"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="battlesCount &gt; 0"/>
			<bind name="transition" value="isActiveClubCard; 0.11; {scaleX: 0.9, scaleY: 0.9, top: -54, alpha: 0}; {top: 0, scaleX: 1, scaleY: 1, alpha: 1}; {scaleX: 0.9, scaleY: 0.9, top: -54, alpha: 0}; easing; (isActiveClubCard ? 0.03 : 0.1)"/>
			<style>
				<top value="326px"/>
				<width value="230px"/>
				<marginLeft value="15px"/>
				<height value="90px"/>
				<position value="absolute"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<top value="-38px"/>
					<marginLeft value="30px"/>
					<marginRight value="30px"/>
					<position value="absolute"/>
				</style>
				<block>
					<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: 'IDS_TOTAL_BATTLES'}]}"/>
					<block type="text">
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextAccentBoldAccountLevel2"/>
						<bind name="text" value="battlesCount"/>
					</block>
					<block type="text">
						<style>
							<marginTop value="-10px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextDefault"/>
						<bind name="pluralText" value="'IDS_PL_BATTLES_COUNT'; battlesCount"/>
					</block>
				</block>
				<block>
					<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: 'IDS_WIN_RATE'}]}"/>
					<style>
						<right value="0"/>
						<position value="absolute"/>
					</style>
					<block type="text">
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextAccentBoldAccountLevel2"/>
						<bind name="text" value="winRate+'%'"/>
					</block>
					<block type="text">
						<style>
							<marginTop value="-10px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextDefault"/>
						<bind name="text" value="toLowerCase(tr('IDS_VICTORIES'))"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<bottom value="-5px"/>
					<width value="230px"/>
					<height value="80px"/>
					<backgroundColor value="0x01000000"/>
					<position value="absolute"/>
				</style>
				<bind name="var" value="{ color: '99ffcc', dotColor: '0xccfbe3' }"/>
				<bind name="watch" value="'freq'; (ratingHistory.length &gt; 40)	? 3 :
								 (ratingHistory.length &gt; 20)	? 2
								 								: 1"/>
				<bind name="linearChart" value="ratingHistory ? ratingHistory : [0]; {	chartStyle: {lineColor : ('0xff'+color), thickness: 1.5, gradient : [('0x00'+color), ('0x15'+color), ('0x60'+color)], offsetTop : 10, offsetBottom : 10},
																		guidesStyle: {lineColor : ('0x77'+color), thickness: 1, dashWidth: 14, dashDuty: 0.5, bottomGap : -1, leftGap : -1, rightGap : 0},
																		verticalHintsStyle: {lineColor : ('0x77'+color), thickness: 1, freq : freq}}"/>
				<bind name="changeDispatch" value="pointData; 'pointPositionChanged'"/>
			</block>
			<block>
				<bind name="appear" value="'pointPositionChanged'; 0.1; 0; {alpha: 0}; {alpha: 1}"/>
				<bind name="visible" value="pointData != null"/>
				<bind name="transition" value="pointData; 0; {left: pointX, top: pointY}; {left: pointX, top: pointY}"/>
				<style>
					<marginTop value="10px"/>
					<hitTest value="false"/>
				</style>
				<block className="lesta.display.Circle" type="native">
					<bind name="color" value="dotColor"/>
					<params>
						<param name="radius" value="3"/>
					</params>
				</block>
				<block>
					<style>
						<marginTop value="-108%"/>
						<width value="170px"/>
						<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>
					<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="$InfoBlockIndent"/>
						<block type="text">
							<bind name="visible" value="ratingHistoryCounts[pointData.index] == 0"/>
							<style>
								<marginBottom value="4px"/>
							</style>
							<styleClass value="$TextHeaderBold"/>
							<bind name="text" value="tr('IDS_CLUB_CREATION')"/>
						</block>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<bind name="timeFormat" value="ratingHistoryTimes[pointData.index]; 'dd.MM.yyyy'; 'battleTime'; false"/>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<text value="IDS_DATE"/>
							</block>
							<block type="text">
								<style>
									<position value="absolute"/>
									<right value="0"/>
								</style>
								<styleClass value="$TextDefaultBold"/>
								<bind name="text" value="battleTime"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<style>
								<width value="100%"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<text value="IDS_RATING"/>
							</block>
							<block type="text">
								<style>
									<position value="absolute"/>
									<right value="0"/>
								</style>
								<styleClass value="$TextDefaultBold"/>
								<bind name="text" value="pointData.value"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="visible" value="ratingHistoryCounts[pointData.index] &gt; 0"/>
							<style>
								<width value="100%"/>
							</style>
							<block type="text">
								<styleClass value="$TextDefault"/>
								<text value="IDS_BATTLE_NUMBER"/>
							</block>
							<block type="text">
								<style>
									<position value="absolute"/>
									<right value="0"/>
								</style>
								<styleClass value="$TextDefaultBold"/>
								<bind name="text" value="ratingHistoryCounts[pointData.index]"/>
							</block>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
			</block>
		</block>
	</block>
	<block className="ClubHeaderIconCreateClub">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="watchDH" value="'clubsCountCreatedByMe'; ['clubsCommonEntity.clubsCommon.evClubsCountChanged']; clubsCommonEntity.clubsCommon.clubsCountCreatedByMe"/>
		<bind name="watch" value="'clubCreatePriceType'; clubsCountCreatedByMe &lt; 2 ? 'CREATE_CLUB' + clubsCountCreatedByMe + '_Cost' : 'CREATE_CLUB2_Cost'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + clubCreatePriceType; 'clubCreatePrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: 	((clubs.length == 0 &amp;&amp; !(dockDefaultValues.clubCreationEnabled))	? [ {_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_5'},
																																			{_paragraphText: subst('IDS_PROFILE_CLUBS_INSTRUCTION_11',[],{minBattles: dockDefaultValues.clubCreationBattlesLimit})}]
																																			: [ {_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_5'}]),
												_mouseInstructions:		[{_type: 'left', _instructionText: 'IDS_CREATE_CLUB'}],
												_maxWidth: 260 }"/>
		<bind name="soundOn" value="'click'; 'press'; 'default_button'"/>
		<style>
			<width value="260px"/>
			<height value="330px"/>
		</style>
		<bind name="catch" value="'selectedPriceChanged'"/>
		<bind name="var" value="{selectedPriceIndex: 0}"/>
		<block>
			<bind name="visible" value="_blurOff ? false : true"/>
			<styleClass value="$FullsizeAbsolute"/>
			<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_blurmap5_feather" 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>
			<bind name="transition" value="rollOver; 0.15; {alpha: 0.8}; {alpha: 1}; {alpha: 0.65}; 0"/>
			<style>
				<backgroundSize value="cover"/>
				<backgroundImage value="symbol:club_header_bgr_create"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<bind name="transition" value="rollOver; 0.15; {alpha: 0.8}; {alpha: 1}; {alpha: 0.85}; 0"/>
			<style>
				<width value="164px"/>
				<height value="164px"/>
				<marginTop value="35px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<backgroundColor value="0x01000000"/>
				</style>
				<bind name="action" value="'click'; 'createClubWindow'; { selectedPriceIndex: selectedPriceIndex }"/>
			</block>
			<block>
				<bind name="name" value="'createClub'"/>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<style>
						<marginTop value="6px"/>
						<maxWidth value="120"/>
						<textAlign value="center"/>
						<leading value="-5"/>
						<letterSpacing value="0.7"/>
						<hitTest value="false"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="text" value="toUpperCase(tr('IDS_CREATE_CLUB'))"/>
				</block>
				<block>
					<bind name="visible" value="clubCreatePrice.prices[0].finalPrice != 0"/>
					<bind name="style" value="'hitTest'; clubCreatePrice.prices.length &gt; 1"/>
					<bind name="style" value="'marginLeft'; -(50 / _scale) + '%'"/>
					<bind name="scaleX" value="1/_scale"/>
					<bind name="scaleY" value="1/_scale"/>
					<style>
						<marginTop value="-4px"/>
						<marginBottom value="-6px"/>
						<left value="50%"/>
					</style>
					<bind name="instance" value="'AlterablePriceTag'; {_prices: clubCreatePrice.prices, _selectedPriceIndex: selectedPriceIndex, _large: clubCreatePrice.prices.length &lt; 2, _medium: clubCreatePrice.prices.length &gt;= 2 }"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<backgroundImage value="symbol:club_header_league_-1"/>
				<backgroundSize value="cover"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
	</block>
	<block className="PartyMembersList"/>
	<block className="ReadyForPartyInviteClubMember">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="instance" value="'PlayerContactItemWithRollover'; {	_isClubMembersList: true, _entityAccountId: $dataRef.ref.id,
														_playerContext: {type: 'inviteToPartyFromClubMembersList', clubId: _clubId, clubEntityId: _clubEntityId, clubLeaderDbId: _clubLeaderDbId}}"/>
	</block>
	<block className="PartyPlayer"/>
	<block className="InvitedPartyPlayer"/>
	<block className="ClubMembersList">
		<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="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="watchDH" value="'leaderDbId';['entityClub.club.evleaderIdChanged']; entityClub.club.leaderId"/>
		<bind name="dataRefDH" value="'club'; 'entityClub.club'"/>
		<bind name="watchDH" value="'clubMembers'; ['entityClub.club.evMembersChanged']; entityClub.club.members"/>
		<bind name="watchDH" value="'invitedPlayers'; ['entityClub.club.evInvitedClubmansChanged']; entityClub.club.invitedClubmans"/>
		<style>
			<width value="260px"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="clubMembers; 'ClubMember'; {_clubEntityId: _clubEntityId, _clubId: club.id, _clubLeaderDbId: leaderDbId}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="invitedPlayers; 'InvitedToClubPlayer'; {_clubId: club.id}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="(maxClubsCapacity - clubMembers.length - invitedPlayers.length); 'InvitePlayerListItem'; {_clubId: club.id, _type: 'inviteToClub', _clubLeaderDbId: leaderDbId, _clubEntityId: _clubEntityId}"/>
		</block>
		<block>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
			<style>
				<marginTop value="12px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'ProfileClubFormationReadySwitcher'; {_clubEntityId: _clubEntityId, _isCreateParty: true}"/>
		</block>
	</block>
	<block className="ProfileClubFormationReadySwitcher"/>
	<block className="InvitedToClubPlayer">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="instance" value="'PlayerContactItemWithRollover'; {	_isClubMembersList: true, _entityAccountId: accountEntityId,
														_playerContext: {	type: 'invitedToClubPlayers', clubId: _clubId, invatorDbId: invatorDbId}}"/>
	</block>
	<block className="ClubMemberEntity">
		<style>
			<width value="100%"/>
		</style>
		<bind name="instance" value="'ClubMember'; {_clubEntityId: _clubEntityId, _clubId: entityClub.club.id, _clubLeaderDbId: leaderDbId, $value: $dataRef.ref.id}"/>
	</block>
	<block className="ClubMember">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="instance" value="'PlayerContactItemWithRollover'; {	_isClubMembersList: true, _entityAccountId: $value,
														_playerContext: {type: 'clubMembersList', clubId: _clubId, clubEntityId: _clubEntityId, clubLeaderDbId: _clubLeaderDbId}}"/>
	</block>
	<block className="InvitePlayerListItem">
		<bind name="name" value="'invitePlayerItem_' + $index"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<block className="dock_submenu_item_bg" type="native">
			<bind name="transition" value="(rollOver || contactsInfotipIsVisible); 0.15; {alpha: 0}; {alpha: 1.0}"/>
			<styleClass value="$PxHorizontalCorrection"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; 	{	_multiParagraphArray:	_type == 'inviteToClub' 	? 	[	{_paragraphText: 'IDS_HINT_INVITE_PLAYERS_TO_CLUB', _class: '$TextDefault'}] :
																				_type == 'inviteToParty'	?	[	{_paragraphText: 'IDS_HINT_INVITE_PLAYERS_TO_PARTY_0', _class: '$TextDefault'},
																													{_paragraphText: 'IDS_HINT_INVITE_PLAYERS_TO_PARTY_1', _class: '$TextDefault'}]
																											: [	{_paragraphText: 'IDS_HINT_INVITE_PLAYERS', _class: '$TextDefault'}],
													_maxWidth: 270}"/>
			<bind name="tooltip" value="'ContactsAndChannelsInfotip'; (_type == 'inviteToClub')	? {_playerContext: {type: 'inviteToClub', clubId: _clubId, clubEntityId: _clubEntityId, clubLeaderDbId: _clubLeaderDbId}}
																				: null ; TooltipBehaviour.infotip; null; 'contactsInfotipIsVisible'"/>
			<bind name="tooltip" value="'DivisionEntranceInfotip'	; (_type == 'inviteToParty') ? {_playerContext: {type: 'inviteToParty'}}
																				 : null; TooltipBehaviour.infotip; null; 'contactsInfotipIsVisible'"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="4px"/>
				<hitTest value="false"/>
			</style>
			<bind name="style" value="'marginLeft'; _centered ? '0px' : '13px'"/>
			<block>
				<bind name="class" value="_centered ? '$MiddleAligned' : '$None'"/>
				<block className="icon_plus" type="native">
					<styleClass value="$MiddleVAligned"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<marginLeft value="2px"/>
					</style>
					<bind name="text" value="_type == 'inviteToClub' ? 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_CLUB' : 'IDS_HINT_LEFT_CLICK_TO_IVITE_TO_PARTY'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="EnterPartyListItem"/>
	<block className="ClubDropDownMenu">
		<bind name="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="dataRefDH" value="'club'; 'entityClub.club'"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'selfPlayerDbId'; []; selfPlayerEntity.accountSimple.dbId"/>
		<bind name="watchDH" value="'leaderDbId';['entityClub.club.evleaderIdChanged']; entityClub.club.leaderId"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<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>
			<bind name="name" value="'leaveClub'"/>
			<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_LEAVE_CLUB'"/>
				</block>
				<bind name="action" value="'click'; 'leaveClubWindow'; {clubEntityId: _clubEntityId}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(leaderDbId == selfPlayerDbId) &amp;&amp; realmConstants.clubNaming"/>
			<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_RENAME_CLUB'"/>
				</block>
				<bind name="action" value="'click'; 'renameClubWindow'; {clubEntityId: _clubEntityId}"/>
			</block>
		</block>
	</block>
	<block className="NoExistingClubsScreen">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<styleClass value="$Fullsize"/>
		<block>
			<style>
				<height value="100%"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<block>
				<style>
					<top value="25sh"/>
				</style>
				<block>
					<style>
						<width value="220px"/>
						<marginTop value="-50px"/>
					</style>
					<block className="BlurMapCustomOutbound">
						<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_blurmap10_feather" 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="110%"/>
								<height value="110%"/>
								<left value="-5%"/>
								<top value="-5%"/>
							</style>
							<bind name="blurMap" value="0"/>
						</block>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; 0 + 1*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<style>
							<width value="100%"/>
							<marginBottom value="12px"/>
							<backgroundColor value="0x01000000"/>
						</style>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
						<bind name="tooltip" value="'SimpleWarningTooltip'; {_text: tr('IDS_CLUB_BATTLES_SEASON_OFF')}"/>
						<block className="dock_submenu_item" type="native">
							<bind name="tooltip" value="'SimpleTooltip'; divisionData.divisionExist ? null : {tooltipText: divisionEntranceData.seekerStatus ? tr('IDS_NOT_VISIBLE_FOR_OTHER_PLAYERS_PARTY')
																																			: tr('IDS_VISIBLE_FOR_OTHER_PLAYERS_PARTY')}"/>
							<bind name="style" value="'alpha'; 0.3"/>
							<bind name="enabled" value="false"/>
							<bind name="action" value="'buttonClick'; 'setBattleType'; {battleType: BattleTypes.CLUB_BATTLE}"/>
							<bind name="action" value="'buttonClick'; 'toggleDivisionSeekerStatus'; {comment: '', status: divisionEntranceData.seekerStatus}"/>
							<params>
								<param name="soundSet" value="dropmenu_button"/>
							</params>
							<styleClass value="$MiddleAligned"/>
							<style>
								<flow value="horizontal"/>
								<height value="40px"/>
							</style>
							<block>
								<style>
									<hitTest value="false"/>
									<marginLeft value="12px"/>
									<marginRight value="21px"/>
									<marginTop value="3px"/>
									<marginBottom value="3px"/>
								</style>
								<block className="icon_formation" type="native">
									<bind name="gotoAndStop!" value="'seeker_party'"/>
									<style>
										<marginRight value="2px"/>
									</style>
								</block>
								<block>
									<styleClass value="$MiddleVAligned"/>
									<block type="text">
										<styleClass value="$TextHeaderBold"/>
										<bind name="class" value="divisionEntranceData.seekerStatus &amp;&amp; (divisionEntranceData.divisionType == 'party') ? '$FontColorParty' : '$FontColorWhite'"/>
										<text value="IDS_WANT_IN_PARTY"/>
									</block>
									<block type="text">
										<bind name="fade" value="(divisionEntranceData.seekerStatus &amp;&amp; (divisionEntranceData.divisionType == 'party')); 0.15; {alpha: 0, top: 3, ubScaleY: 0}; {alpha: 1, top: 0, ubScaleY: 1 }; {alpha: 0, top: -3, ubScaleY: 0}; 1; 0.1"/>
										<styleClass value="$TextDefaultTech"/>
										<styleClass value="$MiddleAligned"/>
										<style>
											<marginTop value="-5px"/>
											<height value="22px"/>
										</style>
										<bind name="text" value="tr('IDS_STATUS_IS_ESTABLISHED')"/>
									</block>
								</block>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
						</block>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; 0 + 2*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<styleClass value="$MiddleAligned"/>
						<bind name="repeat" value="[{_paragraphText: 'IDS_WANT_IN_PARTY_INFO_0'}, {_paragraphText: 'IDS_WANT_IN_PARTY_INFO_1'}]; 'RepeatParagraphItem'; {_maxWidth: 280, _marginBottom: '6px',
																																						_middleAligned: true, _class: '$TextHeaderBigDefault',
																																						_textAlign: 'center'}"/>
					</block>
				</block>
				<block>
					<style>
						<marginLeft value="4sw"/>
						<marginRight value="4sw"/>
						<backgroundColor value="0x01000000"/>
					</style>
					<bind name="tooltip" value="'SimpleWarningTooltip'; {_text: tr('IDS_CLUB_BATTLES_SEASON_OFF')}"/>
					<styleClass value="$MiddleVAligned"/>
					<block className="CreateClubElement">
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
						<bind name="appear" value="'addedToStage'; 0.15; 0 + 1*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<bind name="var" value="{ iconScale: 1.1 }"/>
						<block>
							<bind name="ubScaleX" value="iconScale"/>
							<bind name="ubScaleY" value="iconScale"/>
							<bind name="scaleX" value="iconScale"/>
							<bind name="scaleY" value="iconScale"/>
							<style>
								<alpha value="0.7"/>
								<hitTest value="false"/>
							</style>
							<bind name="instance" value="'ClubHeaderIconCreateClub'; { _scale: iconScale }"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="220px"/>
						<marginTop value="-50px"/>
					</style>
					<block className="BlurMapCustomOutbound">
						<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_blurmap10_feather" 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="110%"/>
								<height value="110%"/>
								<left value="-5%"/>
								<top value="-5%"/>
							</style>
							<bind name="blurMap" value="0"/>
						</block>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; 0 + 1*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<style>
							<marginBottom value="12px"/>
							<height value="40px"/>
						</style>
						<styleClass value="$MiddleAligned"/>
						<block>
							<bind name="appear" value="'addedToStage'; 0.15; 0 + 1.5*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="tooltip" value="'SimpleWarningTooltip'; {_text: tr('IDS_CLUB_BATTLES_SEASON_OFF')}"/>
							<bind name="instance" value="'ButtonSpecial'; {	_enabled: false,
															_label: toUpperCase(tr('IDS_START_CLUB_BATTLE'))}"/>
						</block>
					</block>
					<block>
						<bind name="appear" value="'addedToStage'; 0.15; 0 + 2*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
						<styleClass value="$MiddleAligned"/>
						<bind name="repeat" value="[{_paragraphText: 'IDS_CLUB_BATTLE_INFO_0'}, {_paragraphText: 'IDS_CLUB_BATTLE_INFO_1'}]; 'RepeatParagraphItem'; {_maxWidth: 280, _marginBottom: '6px',
																										_middleAligned: true, _class: '$TextHeaderBigDefault',
																										_textAlign: 'center'}"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="CreateClubElement">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0 + 1*0.075; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 1"/>
		<bind name="var" value="{ iconScale: 1.1 }"/>
		<block>
			<bind name="ubScaleX" value="iconScale"/>
			<bind name="ubScaleY" value="iconScale"/>
			<bind name="scaleX" value="iconScale"/>
			<bind name="scaleY" value="iconScale"/>
			<style>
				<alpha value="0.7"/>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'ClubHeaderIconCreateClub'; { _scale: iconScale }"/>
		</block>
	</block>
	<block className="ClubRulesInfoTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<styleClass value="$DefaultTooltipWidth"/>
		<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>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'shipLevelMin'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.shipLevelMin"/>
		<bind name="watchDH" value="'shipLevelMax'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.shipLevelMax"/>
		<bind name="watchDH" value="'primeTimes'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimes"/>
		<bind name="watchDH" value="'isPrimeTimeOn'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.isPrimeTimeOn"/>
		<bind name="watchDH" value="'primeTimeFinishTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimeFinishTime"/>
		<bind name="watchDH" value="'primeTimeStartTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimeStartTime"/>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<style>
						<marginBottom value="-3px"/>
						<width value="100%"/>
					</style>
					<text value="IDS_DAILY_CLUB_BATTLES"/>
				</block>
				<block>
					<bind name="repeat" value="primeTimes; 'ClubBattlePrimeTimeStamp'; {_times: primeTimes, _useLocalTime: true}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="timeFormat" value="primeTimes[0][0]; 'hh:mm'; 'startTime'; true"/>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<style>
						<maxWidth value="300"/>
						<marginTop value="6px"/>
					</style>
					<bind name="text" value="tr('IDS_TIMEZONE_IS_LOCAL') + ' ' + startTime_TimeZoneName + (startTime_TimeZone == '+0' ? '' : (' ' + startTime_TimeZone))"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="visible" value="(startTime_TimeZoneName + startTime_TimeZone) != 'UTC+0'"/>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<style>
							<maxWidth value="300"/>
							<marginTop value="9px"/>
							<marginBottom value="-3px"/>
						</style>
						<text value="IDS_UTC0_PERIODS"/>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<flow value="htile"/>
							<marginBottom value="9px"/>
						</style>
						<bind name="repeat" value="primeTimes; 'ClubBattlePrimeTimeStamp'; {_times: primeTimes, _useLocalTime: false}"/>
					</block>
				</block>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<style>
					<width value="100%"/>
					<marginBottom value="6px"/>
				</style>
				<bind name="watch" value="'shipsRestrictionString'; 	shipLevelMin &lt;= 1 &amp;&amp; shipLevelMax &lt; 10 	? 	'IDS_CLUB_BATTLES_ALLOWED_SHIPS_TO' :
													shipLevelMin &gt; 1 &amp;&amp; shipLevelMax &gt;= 10 	? 	'IDS_CLUB_BATTLES_ALLOWED_SHIPS_FROM' :
																								'IDS_CLUB_BATTLES_ALLOWED_SHIPS_FROM_TO'"/>
				<bind name="text" value="subst(shipsRestrictionString, [], {levelMin: RDigits[shipLevelMin], levelMax: RDigits[shipLevelMax]})"/>
			</block>
		</block>
	</block>
	<block className="ClubRulesInfo">
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'shipLevelMin'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.shipLevelMin"/>
		<bind name="watchDH" value="'shipLevelMax'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.shipLevelMax"/>
		<bind name="watchDH" value="'primeTimes'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimes"/>
		<bind name="watchDH" value="'isPrimeTimeOn'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.isPrimeTimeOn"/>
		<bind name="watchDH" value="'primeTimeFinishTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimeFinishTime"/>
		<bind name="watchDH" value="'primeTimeStartTime'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.primeTimeStartTime"/>
		<bind name="watchDH" value="'clubBattlesSeasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
		<styleClass value="$Fullsize"/>
		<block type="text">
			<bind name="visible" value="clubBattlesSeasonId &gt; 0"/>
			<style>
				<marginTop value="4px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccentBold"/>
			<bind name="class" value="isPrimeTimeOn ? '$FontColorComparePositive' : '$None'"/>
			<bind name="text" value="isPrimeTimeOn ? toUpperCase(tr('IDS_BATTLES_ON')) : toUpperCase(tr('IDS_SCHEDULLE'))"/>
		</block>
		<bind name="watch" value="'nextMileStoneTime'; isPrimeTimeOn ? primeTimeFinishTime : primeTimeStartTime"/>
		<bind name="countdown" value="nextMileStoneTime; 'nextMileStoneCountdown'; 'HIGHEST'"/>
		<block>
			<bind name="visible" value="clubBattlesSeasonId &gt; 0"/>
			<style>
				<width value="100%"/>
				<position value="absolute"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<style>
					<alpha value="0.8"/>
					<marginTop value="6px"/>
				</style>
				<bind name="text" value="isPrimeTimeOn ? toLowerCase(tr('IDS_TILL_END')) : toLowerCase(tr('IDS_TILL_START'))"/>
			</block>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextLargeHeaderBold"/>
				<style>
					<marginTop value="-5px"/>
				</style>
				<bind name="style" value="'fontSize'; 21"/>
				<bind name="text" value="nextMileStoneCountdown"/>
			</block>
		</block>
		<block type="text">
			<bind name="visible" value="clubBattlesSeasonId &gt; 0"/>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBigDefault"/>
			<style>
				<alpha value="0.8"/>
				<position value="absolute"/>
				<bottom value="6px"/>
			</style>
			<bind name="text" value="tr('IDS_LEVELS') + ' ' + ShipLevels.RLEVELS[shipLevelMin] + '-' + ShipLevels.RLEVELS[shipLevelMax]"/>
		</block>
		<block type="text">
			<bind name="visible" value="clubBattlesSeasonId &lt;= 0"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<style>
				<width value="100%"/>
				<textAlign value="center"/>
			</style>
			<bind name="text" value="'IDS_CLUB_BATTLES_SEASON_OFF'"/>
		</block>
	</block>
	<block className="ClubBattlePrimeTimeStamp">
		<bind name="timeFormat" value="_times[$index][0]+1; 'hh:mm'; 'startTime'; _useLocalTime"/>
		<bind name="timeFormat" value="_times[$index][1]+1; 'hh:mm'; 'finishTime'; _useLocalTime"/>
		<bind name="watch" value="'last'; $index &gt; 0 &amp;&amp; $index == (_times.length - 1)"/>
		<bind name="watch" value="'next'; $index &gt; 0 &amp;&amp; $index != (_times.length - 1)"/>
		<style>
			<marginBottom value="-3px"/>
		</style>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="_small ? startTime + '-' + finishTime
							: (last ? (tr('IDS_AND') + ' ') : next ? ', ' : '') + startTime + '-' + finishTime"/>
		</block>
	</block>
	<block className="BackgroundAnimatedSwitcher">
		<bind name="var" value="{curBgSymbol: ''}"/>
		<bind name="var" value="{animate: false}"/>
		<bind name="var" value="{animationTime: 0.13}"/>
		<bind name="changeDispatch" value="_bgSymbol; 'bgShouldChange'; {}; 2"/>
		<bind name="catch" value="'bgShouldChange'; {animate: (curBgSymbol != '' ? true : false),
									curBgSymbol: (curBgSymbol != '' ? curBgSymbol : _bgSymbol)}"/>
		<bind name="dispatch" value="'bgShouldChange'; 'bgChanged'; {}; 2; animationTime + 0.03"/>
		<bind name="catch" value="'bgChanged'; {animate: false, curBgSymbol: _bgSymbol}"/>
		<styleClass value="$FullsizeAbsolute"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="style" value="'backgroundImage'; curBgSymbol"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
		</block>
		<block>
			<bind name="fade" value="animate; 0.13; {alpha: 0}; {alpha: 1}; {alpha: 0}; 0; 0.01"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="style" value="'backgroundImage'; _bgSymbol"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
		</block>
	</block>
	<block className="PlayerCollection">
		<bind name="firstEntityDH" value="'firstCollectionEntity'; CC.collectionAlbum"/>
		<bind name="collectionDH" value="CC.collectionAlbum; 'albumCollection'; 'sortedAlbums'"/>
		<bind name="entityDH" value="'collectionEntity'; collectionID"/>
		<bind name="watchDH" value="'id';	[]; collectionEntity.collectionAlbum.id"/>
		<bind name="watchDH" value="'cards';	[]; collectionEntity.collectionAlbum.cards"/>
		<bind name="watch" value="'collectionID'; _collectionID ? _collectionID : albumCollection[0].id"/>
		<bind name="catch" value="'selectedAlbumChanged'"/>
		<styleClass value="$Fullsize"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="190px"/>
				<height value="100%"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="720:40,1080:70ah"/>
				</style>
				<bind name="instance" value="'CollectionCarousel'; { _selectedAlbumID: id, _cards: cards }"/>
			</block>
		</block>
	</block>
	<block className="CollectionCarousel">
		<style>
			<width value="1280:1000,1920:1400aw"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<bottom value="0px"/>
				</style>
				<block className="scroll_line" type="native">
					<style>
						<width value="100%"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="20px"/>
					<height value="100%"/>
					<marginLeft value="-20px"/>
					<marginTop value="55px"/>
				</style>
				<block className="button_slide_left" type="native">
					<styleClass value="$MiddleAligned"/>
					<params>
						<param name="focusable" value="false"/>
					</params>
					<bind name="name" value="'buttonCarouselLeft'"/>
					<bind name="dispatch" value="'buttonClick'; 'collectionCarousel.scrollOneUnitLeft'; null; true"/>
				</block>
			</block>
			<block>
				<bind name="firstEntityDH" value="'collectionEntity'; CC.collectionAlbum"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<bind name="event" value="'collectionCarousel.scrollOneUnitLeft'; scrollLeftByOneUnit"/>
					<bind name="event" value="'collectionCarousel.scrollOneUnitRight'; scrollRightByOneUnit"/>
					<bind name="controller" value="lesta.unbound.controls.UbCarouselController"/>
					<style>
						<width value="100%f"/>
						<overflow value="scroll"/>
						<scrollbarController value="lesta.unbound.style.UbScrollingControllerTouch"/>
						<layout value="lesta.unbound.layout.measure.CarouselLayout"/>
						<scrollArea value="ModernScrollAreaHorizontal"/>
						<wheelScrollSpeed value="150"/>
						<itemWidth value="150px"/>
						<itemHeight value="150px"/>
					</style>
					<bind name="generatorDH" value="CC.collectionAlbum; 'CollectionCarouselItem'; 'sortedAlbums'; { onCarouselItemClick: onCarouselItemClick, _selectedAlbumID: _selectedAlbumID }"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="20px"/>
					<height value="100%"/>
					<marginRight value="-20px"/>
					<marginTop value="55px"/>
				</style>
				<block className="button_slide_right" type="native">
					<styleClass value="$MiddleAligned"/>
					<params>
						<param name="focusable" value="false"/>
					</params>
					<bind name="name" value="'buttonCarouselRight'"/>
					<bind name="dispatch" value="'buttonClick'; 'collectionCarousel.scrollOneUnitRight'; null; true"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="100%"/>
					<position value="absolute"/>
				</style>
				<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_blurmap_half_sphere" 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 className="gradient_half_sphere" type="native">
					<style>
						<width value="100%"/>
						<height value="110%"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<flow value="htile"/>
						<align value="center"/>
						<width value="1280:700,1920:1060aw"/>
					</style>
					<bind name="repeat" value="_cards; 'ObjectIcon'; {}"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<right value="0px"/>
					</style>
					<bind name="instance" value="'CollectionDescription'; { _collectionID: _selectedAlbumID }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="CollectionCarouselItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="dataRefDH" value="'collectionEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'id';			[]; collectionEntity.collectionAlbum.id"/>
		<bind name="watchDH" value="'name';			[]; collectionEntity.collectionAlbum.name"/>
		<bind name="watchDH" value="'comingSoon';	['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.comingSoon"/>
		<bind name="watchDH" value="'isSeenCards';	['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.isSeenCards"/>
		<block>
			<style>
				<width value="150px"/>
				<height value="120px"/>
			</style>
			<bind name="soundSet" value="'default_button'"/>
			<bind name="watch" value="'collectionNameQuotes'; (tr('IDS_' +  toUpperCase(name) + '_QUOTES'))"/>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: comingSoon ? 'IDS_TOOLTIP_LEVEL_COMING_SOON' : subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes })}"/>
			<bind name="dispatch" value="'click'; comingSoon ? null : 'selectedAlbumChanged'; { _collectionID: collectionEntity.id }"/>
			<bind name="transition" value="(id == _selectedAlbumID); 0.1; { scaleX: 0.8, scaleY: 0.8, top: 15, left: 15 }; { scaleX: 1, scaleY: 1, top: 0, left: 0 }"/>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'alpha'; comingSoon ? 0.7 : 1"/>
				<bind name="style" value="'backgroundImage'; comingSoon 	? 'url:../collections/collection_icons/small/key_coming_soon.png'
														: 'url:../collections/collection_icons/small/' + name + '.png'"/>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="transition" value="rollOver &amp;&amp; !comingSoon; 0.15; {alpha: 0}; {alpha: 1}"/>
				<bind name="style" value="'backgroundImage'; 'url:../collections/collection_icons/small/' + name + '_over.png'"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<marginLeft value="10px"/>
			</style>
			<block className="icon_sticker_new" type="native">
				<bind name="fade" value="!isSeenCards &amp;&amp; !comingSoon; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<hitTest value="false"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="fade" value="(id == _selectedAlbumID); 0.1; {alpha: 0}; {alpha: 1}"/>
			<style>
				<marginTop value="14px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<block>
				<style>
					<position value="absolute"/>
					<bottom value="0px"/>
					<height value="20px"/>
					<width value="100%"/>
				</style>
				<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_blurmap_empty" 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="scroll_arrow" type="native"/>
		</block>
	</block>
	<block className="ObjectIcon">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="primaryEntityDH" value="'collectionCardEntity'; CC.collectionCard; $value"/>
		<bind name="primaryEntityDH" value="'collectionEntity'; CC.collectionAlbum; collectionId"/>
		<bind name="watchDH" value="'id';					[]; collectionCardEntity.collectionCard.id"/>
		<bind name="watchDH" value="'name';					[]; collectionCardEntity.collectionCard.name"/>
		<bind name="watchDH" value="'collectionId';			[]; collectionCardEntity.collectionCard.collectionId"/>
		<bind name="watchDH" value="'isOwned';				['collectionCardEntity.collectionCard.evOwn']; collectionCardEntity.collectionCard.isOwned"/>
		<bind name="watchDH" value="'isSeen';				['collectionCardEntity.collectionCard.evUpdate']; collectionCardEntity.collectionCard.isSeen"/>
		<bind name="watchDH" value="'isPasted';				['collectionCardEntity.collectionCard.evPasted']; collectionCardEntity.collectionCard.isPasted"/>
		<bind name="watchDH" value="'unPastedCardIndex';		['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.unPastedCardIndex"/>
		<bind name="watchDH" value="'congratulationShown';	['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.congratulationShown"/>
		<bind name="name" value="isPasted ? 'card_pasted_' + name : 'card_' + name"/>
		<bind name="soundSet" value="'default_button'"/>
		<bind name="catch" value="'startUnglowAnimation'"/>
		<bind name="catch" value="'startFlameAnimation'"/>
		<bind name="var" value="{ unglowStarted: false }"/>
		<bind name="var" value="{ flameStarted: false }"/>
		<bind name="dispatch" value="'unPastedCardIndex'+varChanged; (id == unPastedCardIndex) ? 'startFlameAnimation' : null; { flameStarted: true }; 2; 0.3"/>
		<block>
			<style>
				<position value="absolute"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<block className="sparks_collection_animation" type="native">
				<bind name="gotoAndPlay!" value="startFlameAnimation ? 'unpasted-pasted' : 'unpasted'"/>
			</block>
		</block>
		<block>
			<style>
				<marginTop value="720:12,1080:20ah"/>
				<marginBottom value="720:12,1080:20ah"/>
				<marginLeft value="1280:12,1920:20aw"/>
				<marginRight value="1280:12,1920:20aw"/>
			</style>
			<bind name="stageSize"/>
			<bind name="watch" value="'objectWidth'; (stageWidth &lt;= 1366) || (stageHeight &lt;= 768)	? '80px' :
									(stageWidth &lt;= 1600) || (stageHeight &lt;= 900)	? '95px' 
																					: '120px'"/>
			<bind name="watch" value="'objectHeight'; objectWidth"/>
			<block>
				<bind name="tooltip" value="'ObjectItemTooltip'; { _objID: $value }"/>
				<bind name="action" value="'rollOver'; isPasted ? 'CollectionProxy.makeCardSeen' : null; { cardID: $value }"/>
				<bind name="request" value="'click'; isOwned 	? isPasted 	? 'showPreviewWindow' 
															: null
												: 'buyObjectWindow'; { objID: $value }"/>
				<block>
					<style>
						<backgroundSize value="cover"/>
					</style>
					<bind name="style" value="'width';  objectWidth"/>
					<bind name="style" value="'height'; objectHeight"/>
					<bind name="style" value="'alpha'; (rollOver &amp;&amp; !(isPasted)) ? 1 : 0.8"/>
					<bind name="style" value="'backgroundImage'; ((isPasted || unglowStarted) &amp;&amp; isOwned) 	? 'url:../collections/object_icons/small/' + name + '.png'
																							: 'url:../collections/object_icons/small/' + name + '_des.png'"/>
				</block>
				<block>
					<bind name="transition" value="rollOver &amp;&amp; isPasted; 0.15; {alpha: 0}; {alpha: 0.1}"/>
					<style>
						<backgroundSize value="cover"/>
					</style>
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="style" value="'width';  objectWidth"/>
					<bind name="style" value="'height'; objectHeight"/>
					<bind name="style" value="'backgroundImage'; 'url:../collections/object_icons/small/' + name + '_over.png'"/>
				</block>
				<block>
					<bind name="visible" value="flameStarted"/>
					<styleClass value="$FullsizeAbsolute"/>
					<style>
						<backgroundSize value="cover"/>
						<alpha value="0.3"/>
					</style>
					<bind name="style" value="'width';  objectWidth"/>
					<bind name="style" value="'height'; objectHeight"/>
					<bind name="appear" value="'startUnglowAnimation'; 0.2; 0; {alpha: 0.8}; {alpha: 0}"/>
					<bind name="style" value="'backgroundImage'; 'url:../collections/object_icons/small/' + name + '_over.png'"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<block className="flame_collection_animation" type="native">
				<bind name="dispatch" value="'startUnglowAnimationTL'; 'startUnglowAnimation'; { unglowStarted: true }; 2"/>
				<bind name="action" value="'pasteCardAnimationFinishedTL'; 'CollectionProxy.pasteCard'; { cardID: $value }"/>
				<bind name="catch" value="'pasteCardAnimationFinishedTL'; { flameStarted: false, unglowStarted: false }"/>
				<bind name="gotoAndPlay!" value="(flameStarted == true) ? 'unpasted-pasted' : 'unpasted'"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<top value="20px"/>
				<left value="20px"/>
			</style>
			<block className="icon_sticker_new" type="native">
				<bind name="fade" value="isPasted &amp;&amp; !isSeen; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<hitTest value="false"/>
				</style>
			</block>
		</block>
		<bind name="handleEventDH" value="'collectionEntity.collectionAlbum.evFull'; 'haveAllCards'"/>
		<bind name="request" value="'haveAllCards'; (congratulationShown == true) ? null : 'openModalCongratulationWindow'; { collectionID: collectionId }"/>
	</block>
	<block className="ObjectItemTooltip">
		<bind name="primaryEntityDH" value="'collectionCardEntity'; CC.collectionCard; _objID"/>
		<bind name="watchDH" value="'name';			[]; collectionCardEntity.collectionCard.name"/>
		<bind name="watchDH" value="'collectionId';	[]; collectionCardEntity.collectionCard.collectionId"/>
		<bind name="watchDH" value="'collectionName';[]; collectionCardEntity.collectionCard.collectionName"/>
		<bind name="watchDH" value="'isOwned';		['collectionCardEntity.collectionCard.evOwn']; collectionCardEntity.collectionCard.isOwned"/>
		<bind name="watch" value="'collectionNameQuotes'; (tr('IDS_' +  toUpperCase(collectionName) + '_QUOTES'))"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="330px"/>
			<hitTest value="false"/>
		</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 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="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="8px"/>
				<marginBottom value="8px"/>
			</style>
			<block>
				<style>
					<backgroundSize value="cover"/>
					<width value="120px"/>
					<height value="120px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:../collections/object_icons/small/' + name + '.png'"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<style>
						<maxWidth value="200"/>
					</style>
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="isOwned ? '$FontColorGolden' : '$None'"/>
					<bind name="text" value="toUpperCase(tr('IDS_' + name))"/>
				</block>
				<block type="text">
					<style>
						<maxWidth value="200"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes })"/>
				</block>
			</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>
			<bind name="visible" value="isOwned == true"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block className="icon_module_state" type="native">
					<styleClass value="$MiddleVAligned"/>
					<bind name="gotoAndStop!" value="'installed'"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorGolden'"/>
					<text value="IDS_ACHIEVED"/>
				</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>
		<block>
			<bind name="visible" value="isOwned == false"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block className="icon_warning_orange" type="native">
					<styleClass value="$MiddleVAligned"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<text value="IDS_NOT_ACHIEVED"/>
				</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>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: isOwned ? 'IDS_GO_TO_OBJECT_SCREEN' : 'IDS_BUY_COLLECTION_FOR_DUPLICATE', _maxWidth: 300}"/>
		</block>
	</block>
	<block className="CollectionDescription">
		<bind name="primaryEntityDH" value="'collectionEntity'; CC.collectionAlbum; _collectionID"/>
		<bind name="watchDH" value="'name';				[]; collectionEntity.collectionAlbum.name"/>
		<bind name="watchDH" value="'description';		[]; collectionEntity.collectionAlbum.description"/>
		<bind name="watchDH" value="'duplicates';		['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.duplicates"/>
		<bind name="watchDH" value="'isFull';			['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.isFull"/>
		<style>
			<marginTop value="720:2,1080:12ah"/>
		</style>
		<bind name="watch" value="'collectionNameQuotes'; (tr('IDS_' +  toUpperCase(name) + '_QUOTES'))"/>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccentBold"/>
			<style>
				<textAlign value="center"/>
				<maxWidth value="250"/>
			</style>
			<bind name="text" value="subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes })"/>
		</block>
		<block>
			<bind name="stageSize"/>
			<styleClass value="$DefaultScrollBar"/>
			<style>
				<height value="720:240,1080:360ah"/>
				<width value="1280:300,1920:340aw"/>
				<marginTop value="720:2,1080:12ah"/>
				<overflow value="scroll"/>
			</style>
			<block type="text">
				<bind name="style" value="'maxWidth'; (stageWidth &gt;= 1600) ? '330' : '290'"/>
				<bind name="class" value="(stageWidth &gt;= 1600) ? '$TextHeaderBigDefault' : '$TextDefault'"/>
				<bind name="text" value="description"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="720:2,1080:12ah"/>
			</style>
			<bind name="instance" value="'CollectionProgressBar'; { _collectionID: _collectionID }"/>
		</block>
		<block>
			<bind name="visible" value="isFull == false"/>
			<style>
				<marginTop value="720:2,1080:12ah"/>
			</style>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_DUPLICATE_INFO'}"/>
			<block type="text">
				<styleClass value="$TextLargeHeader"/>
				<bind name="text" value="'IDS_DUPLICATES'"/>
			</block>
			<block>
				<block type="text">
					<style>
						<marginTop value="-4px"/>
					</style>
					<styleClass value="$TextPriceLarge"/>
					<bind name="text" value="duplicates"/>
				</block>
				<block>
					<style>
						<marginLeft value="2px"/>
						<marginTop value="3px"/>
					</style>
					<bind name="style" value="'backgroundImage'; 'url:../collections/duplicate_icons/duplicate_medium.png'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="CollectionProgressBar">
		<bind name="primaryEntityDH" value="'collectionEntity'; CC.collectionAlbum; _collectionID"/>
		<bind name="watchDH" value="'rewards';	[]; collectionEntity.collectionAlbum.rewards"/>
		<bind name="watchDH" value="'cards';		['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.cards"/>
		<bind name="watchDH" value="'ownCards';	['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.ownCards"/>
		<bind name="watchDH" value="'progress';	['collectionEntity.collectionAlbum.evUpdate']; collectionEntity.collectionAlbum.progress"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<position value="absolute"/>
				<top value="4px"/>
			</style>
			<block type="text">
				<styleClass value="$TextLargeHeader"/>
				<style>
					<maxWidth value="220"/>
				</style>
				<bind name="text" value="'IDS_COLLECTION_CARDS_AMOUNT'"/>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="2px"/>
				</style>
				<bind name="instance" value="'ScoreRatioCounter'; { _playerPointsCounter: ownCards.length, _totalPointsCounter: cards.length }"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="tooltip" value="'RewardContainerTooltip'; { _rewards: rewards, _tooltipHeader: 'IDS_REWARD_FOR_COLLECTION', _isDH20: true}"/>
			<style>
				<right value="0px"/>
			</style>
			<block className="icon_giftbox_small" type="native"/>
			<block className="icon_issued_small" type="native">
				<bind name="visible" value="progress == 1"/>
				<style>
					<position value="absolute"/>
					<top value="55%"/>
					<left value="50%"/>
					<hitTest value="false"/>
				</style>
				<bind name="rotation" value="-2"/>
				<bind name="scaleX" value="0.95"/>
				<bind name="scaleY" value="0.95"/>
				<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
				<bind name="gotoAndStop!" value="'issued'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="progress != 1"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<marginTop value="5px"/>
					<marginLeft value="5px"/>
					<width value="1280:285,1920:325aw"/>
				</style>
				<bind name="instance" value="'LootboxProgressBar'; { _width: '100%', _height: 9, _curValue: (progress*10)}"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="0"/>
				</block>
				<block type="text">
					<style>
						<position value="absolute"/>
						<right value="5px"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value="cards.length"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ScoreRatioCounter">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<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>
			<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="BranchTypeLabel">
		<style>
			<position value="absolute"/>
			<width value="1px"/>
		</style>
		<bind name="left" value="x * $parent.blockWidth"/>
		<bind name="width" value="$parent.blocHalfWidth * 2"/>
		<styleClass value="$MiddleVAligned"/>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<bind name="class" value="nameIDS == 'IDS_PREMIUM' ? '$FontColorGolden' : '$None'"/>
			<style>
				<textAlign value="center"/>
				<width value="100%"/>
			</style>
			<bind name="text" value="nameIDS"/>
		</block>
	</block>
	<block className="BranchTypeLabelDark">
		<style>
			<position value="absolute"/>
			<width value="1px"/>
		</style>
		<bind name="left" value="x * $parent.blockWidth"/>
		<bind name="width" value="$parent.blocHalfWidth * 2"/>
		<styleClass value="$MiddleVAligned"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<block type="text">
				<styleClass value="$TextSecondaryNoFilter"/>
				<style>
					<position value="absolute"/>
					<maxWidth value="110"/>
					<textAlign value="center"/>
					<alpha value="0.35"/>
					<top value="1px"/>
				</style>
				<bind name="text" value="nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondaryNoFilter"/>
				<style>
					<position value="absolute"/>
					<maxWidth value="110"/>
					<textAlign value="center"/>
					<alpha value="0.1"/>
					<top value="-1px"/>
				</style>
				<bind name="text" value="nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondaryNoFilter"/>
				<style>
					<position value="absolute"/>
					<maxWidth value="110"/>
					<textAlign value="center"/>
					<alpha value="0.15"/>
					<left value="1px"/>
				</style>
				<bind name="text" value="nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondaryNoFilter"/>
				<style>
					<position value="absolute"/>
					<maxWidth value="110"/>
					<textAlign value="center"/>
					<alpha value="0.15"/>
					<left value="-1px"/>
				</style>
				<bind name="text" value="nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondaryNoFilter"/>
				<bind name="class" value="'$FontColorAlmostBlack'"/>
				<style>
					<maxWidth value="110"/>
					<textAlign value="center"/>
				</style>
				<bind name="text" value="nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondaryNoFilter"/>
				<bind name="class" value="'$FontColorAlmostBlack'"/>
				<style>
					<position value="absolute"/>
					<maxWidth value="110"/>
					<textAlign value="center"/>
				</style>
				<bind name="text" value="nameIDS"/>
			</block>
		</block>
	</block>
	<block className="CurrentFreeXP">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<params>
			<param name="name" value="upgrade_tree_CurrentFreeXP"/>
		</params>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="text" value="_label"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultBold"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$FontSizeLarge'"/>
			<bind name="class" value="'$FontColorFreeExp'"/>
			<bind name="text" value="format(_freeXP, -1)"/>
		</block>
		<block className="icon_exp_free" type="native">
			<style>
				<marginBottom value="-2px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CurrentXP">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<params>
			<param name="name" value="upgrade_tree_CurrentShipXP"/>
		</params>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="_light ? '$None' : '$FontColorBlueish'"/>
			<bind name="class" value="_light ? '$None' : '$Bold'"/>
			<bind name="text" value="_label"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultBold"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="class" value="'$FontSizeLarge'"/>
			<bind name="class" value="'$FontColorExp'"/>
			<bind name="text" value="format(_exp, -1)"/>
		</block>
		<block className="icon_exp" type="native">
			<style>
				<marginBottom value="-2px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
		</block>
	</block>
	<block className="CurrentXPLarge">
		<styleClass value="$InfoLineBoundaries"/>
		<style>
			<marginBottom value="-6px"/>
		</style>
		<params>
			<param name="name" value="upgrade_tree_CurrentShipXP"/>
		</params>
		<block>
			<block type="text">
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="class" value="'$FontColorExp'"/>
				<bind name="text" value="format(_exp, -1)"/>
			</block>
			<block className="icon_exp" type="native">
				<styleClass value="$MiddleVAligned"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<style>
				<marginTop value="2px"/>
				<alpha value="0.8"/>
			</style>
			<styleClass value="$TextDefaultWhite"/>
			<bind name="text" value="_label"/>
		</block>
	</block>
	<block className="StatusLineBig">
		<block>
			<block type="text">
				<style>
					<maxWidth value="300"/>
					<textAlign value="center"/>
				</style>
				<styleClass value="$TextHeader"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="class" value="_positive ? '$FontColorComparePositive' : '$FontColorUnready'"/>
				<bind name="text" value="_text"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="StatusLineMedium">
		<block type="text">
			<style>
				<maxWidth value="300"/>
				<textAlign value="center"/>
			</style>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="StatusLineWithIcon">
		<block>
			<block className="icon_warning_orange" type="native">
				<bind name="style" value="'top'; _small 	? '4'
										: _large ? '7' : '6'"/>
				<style>
					<marginRight value="2px"/>
				</style>
			</block>
			<block type="text">
				<bind name="style" value="'maxWidth'; _maxWidth ? _maxWidth : 264"/>
				<bind name="class" value="_large ? '$TextHeaderBigDefault' 
								:_small ? '$TextSecondary' : '$TextDefault'"/>
				<bind name="class" value="_positive ? '$FontColorComparePositive' : '$FontColorUnready'"/>
				<bind name="class" value="_bold ? '$Bold' : '$None'"/>
				<bind name="text" value="_text"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ModuleStatus">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'ModuleStatusIcon'; _count.Installed &gt; 0																			? { _state: 'installed' } :
											!(_isExplored) &amp;&amp; !(_isStock)																	? { _state: 'action' } :
											(_count.Available &gt; 0) &amp;&amp; (_count.toPurchase &gt; 0)											 	? { _state: 'not_enough' } :
											_count.toPurchase &gt; 0 || (_unableToInstallIncompatibles.length &gt; 0 &amp;&amp; _count.toPurchase == 0)	? { _state: 'action' } :
											!(_unableToInstallIncompatibles)																? { _state: 'explored' }			
																																			: null "/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="_count.Installed &gt; 0 	? '$FontColorGolden'
												: _count.Available &gt; 0 	? '$FontColorWhite'
																		: _isExplored 	? '$FontColorUnready'
																						: _isStock 	? '$FontColorDefault'
																									: '$FontColorUnready'"/>
				<bind name="text" value="_count.Installed &gt; 0 	? 'IDS_INSTALLED'
												: _isExplored 	? 	(_count.Available &gt; 0 	? (_count.toPurchase &gt; 0 	? 'IDS_IN_STOCK_Q'
																														: 'IDS_IN_STOCK')
																							: 'IDS_NOT_PURCHASED'
																	)
																: _isStock 	? 'IDS_STOCK'
																			: 'IDS_NOT_RESEARCHED' "/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="_count.Installed &gt; 0 	? '$FontColorGolden'
												: _count.Available &gt; 0 	? '$FontColorWhite'
																		: _isExplored 	? '$FontColorDefault'
																						: '$FontColorExp'"/>
				<bind name="text" value="_count.Installed &gt; 0 	? ''
												: _isExplored	? 	((_count.Available &gt; 0) &amp;&amp; (_count.toPurchase &gt; 0) 	? _count.Available + 0
																														: ''
																	)
																: '' "/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<style>
					<marginLeft value="3px"/>
				</style>
				<bind name="text" value="(_count.Available &gt; 0) &amp;&amp; (_count.toPurchase &gt; 0) 	? 'IDS_TO_BUY_Q'
																			: '' "/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<bind name="text" value="(_count.Available &gt; 0) &amp;&amp; (_count.toPurchase &gt; 0) 	? _count.toPurchase
																			: '' "/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ModuleStatusIcon">
		<block className="icon_module_state" type="native">
			<bind name="gotoAndStop!" value="_state"/>
		</block>
	</block>
	<block className="ShipHeaderModuleTree">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountFreeXP';		['resourceEntity.accountResource.evChangedFreeXP'];	resourceEntity.accountResource.freeXP"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];	resourceEntity.accountResource.gold"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="34px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<top value="-5px"/>
			</style>
			<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_blurmap_h_no_right" 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>
			<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="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<bind name="tooltip" value="'ShipExtendedTooltip'; { shipId: _shipId }; 0"/>
			<style>
				<marginTop value="5px"/>
				<marginLeft value="3px"/>
			</style>
			<block className="icon_wreath" type="native">
				<styleClass value="$MouseDisable"/>
				<style>
					<position value="absolute"/>
					<top value="-6px"/>
				</style>
				<bind name="visible" value="_isElite || _isPremium || _uiSpecial"/>
				<bind name="gotoAndStop!" value="_uiSpecial	? 'special' :
								_isPremium 	? 'premium'
											: 'elite'"/>
			</block>
			<block className="icon_ship" type="native">
				<styleClass value="$MouseDisable"/>
				<style>
					<marginLeft value="5px"/>
					<marginTop value="2px"/>
				</style>
				<bind name="gotoAndStop!" value="_isPremium || _uiSpecial	? _subtype + '_P'
											: _unavailable 	? _subtype + '_U'
															: _subtype"/>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<marginLeft value="3px"/>
				</style>
				<bind name="class" value="_unavailable ? '$BlockGlowFilterBright' : '$GlowDisabler'"/>
				<block type="text">
					<styleClass value="$FontShipnameWhite"/>
					<style>
						<position value="absolute"/>
						<alpha value="0.25"/>
						<top value="1px"/>
					</style>
					<bind name="visible" value="_unavailable"/>
					<bind name="class" value="'$FontGlowFilterBright'"/>
					<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
					<bind name="text" value="_levelRome + ' ' + tr(_shipName)"/>
				</block>
				<block type="text">
					<styleClass value="$FontShipnameWhite"/>
					<style>
						<position value="absolute"/>
						<alpha value="0.15"/>
						<top value="-1px"/>
					</style>
					<bind name="visible" value="_unavailable"/>
					<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
					<bind name="text" value="_levelRome + ' ' + tr(_shipName)"/>
				</block>
				<block type="text">
					<styleClass value="$FontShipnameWhite"/>
					<bind name="style" value="'letterSpacing'; _letterSpacing ? _letterSpacing : '0'"/>
					<bind name="class" value="_isPremium || _uiSpecial 	? '$FontShipnameGolden'
										: _unavailable 	? '$FontShipnameBlack' : '$FontShipnameWhite'"/>
					<bind name="text" value="_levelRome + ' ' + tr(_shipName)"/>
				</block>
			</block>
			<block className="icon_check" type="native">
				<style>
					<marginLeft value="-2px"/>
					<marginTop value="-4px"/>
				</style>
				<bind name="visible" value="_isOwned"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="!_isDownloaded"/>
			<style>
				<marginTop value="-3px"/>
			</style>
			<bind name="instance" value="'IconSlimClient'; !_isDownloaded ? { _isEventLike: _eventShips } : null"/>
		</block>
		<block>
			<style>
				<marginLeft value="6px"/>
				<marginTop value="-1px"/>
				<right value="12"/>
				<position value="absolute"/>
			</style>
			<block>
				<style>
					<marginLeft value="6px"/>
				</style>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_SHIP_EXPERIENCE'}"/>
				<bind name="instance" value="'CurrentXP'; _isOwned ? { _exp: _shipExp} : null "/>
				<bind name="name" value="'AvailableExpBalanceModuleTreeHeader'"/>
			</block>
			<block>
				<style>
					<marginLeft value="9px"/>
				</style>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_FREE_EXPERIENCE_C'}"/>
				<bind name="feature" value="5; ''"/>
				<bind name="visible" value="feature_5 != 'locked' &amp;&amp; _isOwned"/>
				<bind name="instance" value="'CurrentFreeXP'; { _freeXP: accountFreeXP }"/>
				<bind name="name" value="'freeExpBalanceModuleTreeHeader'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
		<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
		<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="watch" value="'defaultButtonCostSmallData'; _isOwned 	? null
																: !(_dependencyResearched || _isExplored) ? null
																: !(_isExplored) &amp;&amp; (_expDeficit &lt;= 0) &amp;&amp; (_group == 'upgradeable' || _group == 'upgradeableExclusive') ? { _label: toUpperCase(tr('IDS_DO_RESEARCH')), priceInfo: (_totalCostXP == $parent.shipExplorePrice.prices[0].finalPrice ? $parent.shipExplorePrice.prices[0] : { finalPrice: _totalCostXP, currency: 'exp' }), _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'researchShip', _actionParams: { shipId: _shipId }, _enabled: true, _showDiscountTag:true }
																: (_isExplored) &amp;&amp; (_creditsDeficit &lt;= 0) &amp;&amp; !(_isPremium) ? { _label: toUpperCase(tr('IDS_DO_PURCHASE')), priceInfo: $parent.shipBuyPrice.prices[0], _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'purchaseShip', _actionParams: { shipId: _shipId }, _enabled: (_creditsDeficit &lt;= 0), _showDiscountTag:true }
																: _isExplored &amp;&amp; _isPremium  &amp;&amp; (accountGold - $parent.shipBuyPrice.prices[0].finalPrice) &gt;= 0 ? { _label: toUpperCase(tr('IDS_DO_PURCHASE')), priceInfo: $parent.shipBuyPrice.prices[0], _action: (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? null : 'purchaseShip', _actionParams: { shipId: _shipId }, _enabled: ((accountGold - _costGold) &gt;= 0), _showDiscountTag:true }
																: null "/>
		<bind name="watch" value="'priceTagWithLabelData'; _isOwned ? null
													: (!(_isExplored) &amp;&amp; !(_dependencyResearched)) || (!(_isExplored) &amp;&amp; _expDeficit &gt; 0)? { priceInfo: { finalPrice: _totalCostXP, currency: 'exp' }, _label: 'IDS_RESEARCH_COST', _small : true}
													: _isExplored &amp;&amp; _creditsDeficit &gt; 0 &amp;&amp; !(_isPremium) ? { priceInfo: $parent.shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _small : true}
													: _isExplored &amp;&amp; _isPremium &amp;&amp; (accountGold - $parent.shipBuyPrice.prices[0].finalPrice) &lt; 0 ? {priceInfo: $parent.shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _small : true }
													: null"/>
		<bind name="watch" value="'statusLineWithIconData'; _dependencyResearched || _isExplored ? null
											: { _text: 'IDS_RESEARCH_PREVIOUS_SHIPS', _positive: false, _small: true, _maxWidth: 300}"/>
		<bind name="watch" value="'priceDeficitData'; _isOwned ? null
											: !(_dependencyResearched) ? null
											: !(_isExplored) &amp;&amp; _expDeficit &gt; 0 ? { priceInfo: { finalPrice: _totalCostXP, currency: 'exp' }, _small : true, _tooltipText: 'IDS_TOOLTIP_NO_XP', _deficit: _expDeficit}
											: _isExplored &amp;&amp; _creditsDeficit &gt; 0 &amp;&amp; !(_isPremium) ? { priceInfo: $parent.shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _small : true, _tooltipText: 'IDS_TOOLTIP_NO_CREDITS', _deficit: _creditsDeficit}
											: _isExplored &amp;&amp; _isPremium &amp;&amp; (accountGold - $parent.shipBuyPrice.prices[0].finalPrice) &lt; 0 ? {priceInfo: $parent.shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _deficit: -(accountGold - $parent.shipBuyPrice.prices[0].finalPrice), _tooltipText: 'IDS_TOOLTIP_NO_GOLD', _small : true }
											: null"/>
		<block>
			<bind name="visible" value="!_eventShips"/>
			<style>
				<right value="6px"/>
				<position value="absolute"/>
				<marginTop value="2px"/>
			</style>
			<block>
				<bind name="visible" value="!!defaultButtonCostSmallData"/>
				<bind name="name" value="'ButtonShipResearchOrPurchaseSmall'"/>
				<style>
					<right value="0px"/>
				</style>
				<bind name="action" value="'click'; (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? 'forceCreateAccount' : null"/>
				<bind name="instance" value="'DefaultButtonCostSmall'; !!defaultButtonCostSmallData ? defaultButtonCostSmallData : null"/>
			</block>
			<block>
				<bind name="visible" value="!defaultButtonCostSmallData"/>
				<style>
					<marginTop value="-8px"/>
				</style>
				<block>
					<bind name="visible" value="!!priceTagWithLabelData"/>
					<style>
						<right value="0px"/>
					</style>
					<bind name="instance" value="'PriceTagWithLabel'; !!priceTagWithLabelData ? priceTagWithLabelData : null"/>
				</block>
				<block>
					<bind name="visible" value="!!statusLineWithIconData"/>
					<style>
						<right value="0px"/>
						<marginTop value="-5px"/>
					</style>
					<bind name="instance" value="'StatusLineWithIcon'; !!statusLineWithIconData ? statusLineWithIconData : null"/>
				</block>
				<block>
					<bind name="visible" value="!!priceDeficitData"/>
					<style>
						<right value="0px"/>
						<marginTop value="-5px"/>
					</style>
					<bind name="instance" value="'PriceDeficit'; _isOwned 	? null
															: !(_dependencyResearched) ? null
															: !(_isExplored) &amp;&amp; _expDeficit &gt; 0 ? { priceInfo: { finalPrice: _totalCostXP, currency: 'exp' }, _small : true, _tooltipText: 'IDS_TOOLTIP_NO_XP', _deficit: _expDeficit}
															: _isExplored &amp;&amp; _creditsDeficit &gt; 0 &amp;&amp; !(_isPremium) ? { priceInfo: $parent.shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _small : true, _tooltipText: 'IDS_TOOLTIP_NO_CREDITS', _deficit: _creditsDeficit}
															: _isExplored &amp;&amp; _isPremium &amp;&amp; (accountGold - $parent.shipBuyPrice.prices[0].finalPrice)  &lt; 0 ? {priceInfo: $parent.shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _deficit: -(accountGold - $parent.shipBuyPrice.prices[0].finalPrice), _tooltipText: 'IDS_TOOLTIP_NO_GOLD', _small : true }
															: null"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="_eventShips &amp;&amp; !_isOwned"/>
			<style>
				<width value="80px"/>
				<right value="0px"/>
				<position value="absolute"/>
			</style>
			<block className="icon_issued_small" type="native">
				<style>
					<marginTop value="12px"/>
					<marginLeft value="30px"/>
				</style>
				<bind name="rotation" value="-3"/>
				<innerBind elementName="item.item" name="text" value="toUpperCase(tr('IDS_UNAVAILABLE_TO_DISPLAY_SOON'))"/>
				<bind name="gotoAndPlay!" value="'issued'"/>
			</block>
		</block>
	</block>
	<block className="LevelItem">
		<style>
			<height value="80px"/>
			<width value="100%"/>
		</style>
		<bind name="height" value="$parent.blockHeight"/>
		<bind name="style" value="'backgroundColor'; ($index + 1) % 2 == 0 ? '0x00000000' : '0x10000000'"/>
		<block className="icon_level_elite" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="35px"/>
				<alpha value="0.2"/>
			</style>
			<bind name="gotoAndStop!" value="$index + 1"/>
		</block>
	</block>
	<block className="IncompatiblesBlock">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="7px"/>
					<marginLeft value="12px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="6px"/>
					<marginLeft value="2px"/>
					<marginRight value="12px"/>
				</style>
				<text value="IDS_INSTALL_COMPATIBLE_MODULE"/>
			</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>
				<block className="icon_warning_red" type="native">
					<style>
						<marginTop value="7px"/>
						<marginLeft value="12px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextSecondary"/>
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<style>
						<marginTop value="3px"/>
						<marginLeft value="2px"/>
						<marginRight value="12px"/>
					</style>
					<text value="IDS_MODULE_INCOMPATIBLE_WITH"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="repeat" value="_incompatibleModules; 'DependencyRepeatItem'; {_type: _type}"/>
			</block>
		</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>
	<block className="ModuleDependenciesBlock">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<flow value="horizontal"/>
				<width value="100%"/>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
				<marginTop value="8px"/>
				<marginBottom value="3px"/>
			</style>
			<block>
				<bind name="instance" value="'PriceTagWithLabel'; 	_type[1] == 'research' ? { priceInfo: _priceInfo, _label: 'IDS_RESEARCH_COST', _techText:true, _showDiscountTag:true}
													: _type[1] == 'purchase' ? { priceInfo:_priceInfo, _label: 'IDS_PURCHASE_COST', _techText:true, _showDiscountTag:true}
													: null"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="_type[1] == 'mount' ? 'IDS_HAVE_TO_BE_MOUNTED' : ''"/>
			</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 type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="visible" value="_type[1] != 'mount'"/>
				<style>
					<marginTop value="4px"/>
					<marginLeft value="12px"/>
					<marginRight value="12px"/>
				</style>
				<bind name="text" value="_type[1] == 'research' ? 'IDS_WILL_BE_ALSO_RESEARCHED' 
												: _type[1] == 'purchase' 	? 'IDS_HAVE_TO_BE_PURCHASED' 
																			: ''"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="3px"/>
				</style>
				<bind name="repeat" value="_dependentModules;  'DependencyRepeatItem' ; {_type: _type}"/>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="-1px"/>
			</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 className="DependencyRepeatItem">
		<style>
			<width value="100%"/>
			<marginLeft value="12px"/>
			<marginRight value="12px"/>
			<marginTop value="3px"/>
			<marginBottom value="3px"/>
		</style>
		<bind name="child" value="_type[0]; {dataArray:dataArray};'ResearchDependenciesListItem'; 'PurchaseDependenciesListItem'; 'MountDependenciesListItem'"/>
	</block>
	<block className="ResearchDependenciesListItem">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + dataArray[1]; 'moduleExplorePrice'"/>
		<style>
			<width value="100%"/>
			<height value="40px"/>
			<flow value="horizontal"/>
		</style>
		<block className="icon_tree_module_states" type="native">
			<styleClass value="$MouseDisable"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="44px"/>
				<height value="44px"/>
			</style>
			<bind name="gotoAndStop!" value="dataArray[3] + '_P'"/>
		</block>
		<block>
			<block type="text">
				<style>
					<marginTop value="3px"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorExp'"/>
				<bind name="text" value="toUpperCase(dataArray[2])"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<style>
					<marginTop value="-4px"/>
				</style>
				<bind name="text" value="dataArray[4]"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!($parent.$parent._incompatibleModules)"/>
			<styleClass value="$AlignRight"/>
			<bind name="instance" value="'PriceTag'; { priceInfo: moduleExplorePrice.prices[0], _showDiscountTag:true}"/>
		</block>
	</block>
	<block className="PurchaseDependenciesListItem">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + dataArray[2]; 'moduleBuyPrice'"/>
		<style>
			<width value="100%"/>
			<height value="40px"/>
			<flow value="horizontal"/>
		</style>
		<block className="icon_tree_module_states" type="native">
			<styleClass value="$MouseDisable"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="gotoAndStop!" value="dataArray[3] + '_P'"/>
		</block>
		<block>
			<block type="text">
				<style>
					<marginTop value="1px"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="dataArray[0]"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<style>
					<marginTop value="-5px"/>
				</style>
				<bind name="text" value="dataArray[4]"/>
			</block>
		</block>
		<block>
			<styleClass value="$AlignRight"/>
			<block>
				<bind name="visible" value="dataArray[1] &gt; 1"/>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorWhite'"/>
					<bind name="text" value="dataArray[1] + ' x'"/>
				</block>
			</block>
			<block>
				<bind name="instance" value="'PriceTag'; { priceInfo: moduleBuyPrice.prices[0], _showDiscountTag:true}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="MountDependenciesListItem">
		<style>
			<width value="100%"/>
			<height value="40px"/>
			<flow value="horizontal"/>
		</style>
		<block className="icon_tree_module_states" type="native">
			<styleClass value="$MouseDisable"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="44px"/>
				<height value="44px"/>
			</style>
			<bind name="gotoAndStop!" value="dataArray[1] + '_P'"/>
		</block>
		<block>
			<block type="text">
				<style>
					<marginTop value="1px"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="dataArray[0]"/>
			</block>
			<block type="text">
				<styleClass value="$TextSecondary"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<style>
					<marginTop value="-5px"/>
				</style>
				<bind name="text" value="'IDS' + toUpperCase(dataArray[1])"/>
			</block>
		</block>
	</block>
	<block className="IncompatibleListItem">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="30px"/>
			<marginLeft value="12px"/>
			<marginRight value="12px"/>
		</style>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextDefault"/>
			<bind name="text" value="dataArray[0]"/>
		</block>
	</block>
	<block className="PremiumShipPointsItem">
		<block type="text">
			<style>
				<maxWidth value="480"/>
			</style>
			<styleClass value="$TextDefault"/>
			<bind name="text" value="_text"/>
		</block>
	</block>
	<block className="CostSmallTransparent">
		<bind name="controller" value="lesta.unbound.core.UbController"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<styleClass value="$InfoLineBoundaries"/>
		<params>
			<param name="name" value="upgrade_tree_CostXP"/>
		</params>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<styleClass value="$MiddleVAligned"/>
			<bind name="text" value="_label"/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block type="text">
				<styleClass value="$FontCostNormal"/>
				<bind name="class" value="_deficit ? '$FontColorDefault' : '$FontColorAlmostBlack'"/>
				<style>
					<position value="absolute"/>
					<alpha value="0.35"/>
					<top value="1px"/>
				</style>
				<bind name="text" value="format(_costXP != null ? _costXP : _costCR, -1)"/>
			</block>
			<block type="text">
				<styleClass value="$FontCostNormal"/>
				<bind name="class" value="_deficit ? '$FontColorDefault' : '$FontColorAlmostBlack'"/>
				<style>
					<position value="absolute"/>
					<alpha value="0.1"/>
					<top value="-1px"/>
				</style>
				<bind name="text" value="format(_costXP != null ? _costXP : _costCR, -1)"/>
			</block>
			<block type="text">
				<styleClass value="$FontCostNormal"/>
				<bind name="class" value="_deficit ? '$FontColorDefault' : '$FontColorAlmostBlack'"/>
				<style>
					<position value="absolute"/>
					<alpha value="0.15"/>
					<left value="1px"/>
				</style>
				<bind name="text" value="format(_costXP != null ? _costXP : _costCR, -1)"/>
			</block>
			<block type="text">
				<styleClass value="$FontCostNormal"/>
				<bind name="class" value="_deficit ? '$FontColorDefault' : '$FontColorAlmostBlack'"/>
				<style>
					<position value="absolute"/>
					<alpha value="0.15"/>
					<left value="-1px"/>
				</style>
				<bind name="text" value="format(_costXP != null ? _costXP : _costCR, -1)"/>
			</block>
			<block type="text">
				<bind name="class" value="_deficit ? '$FontCostBlack' : '$FontCostNormal'"/>
				<bind name="text" value="format(_costXP != null ? _costXP : _costCR, -1)"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="_costXP != null"/>
			<styleClass value="$MiddleVAligned"/>
			<block className="icon_exp_small" type="native"/>
		</block>
		<block>
			<bind name="visible" value="_costCR != null"/>
			<styleClass value="$MiddleVAligned"/>
			<block className="icon_credit_small" type="native"/>
		</block>
	</block>
	<block className="ShipTreeMenu">
		<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="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"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<bind name="visible" value="slimClientData.isFull"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<bind name="feature" value="'17'; ''"/>
		<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>
		<bind name="name" value="'ShipContextMenu'"/>
		<block>
			<bind name="visible" value="isOwned"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="name" value="'ShipContextMenu_Primary'"/>
				<bind name="request" value="'buttonClick'; 'primaryThisShip'; {shipId: shipId}"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<bind name="text" value="playerShipInfo.isPrimary ? 'IDS_REMOVE_PRIMARY' : 'IDS_ASSIGN_PRIMARY'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="feature_17 != 'locked'"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="name" value="'ShipContextMenu_Modules'"/>
				<bind name="action" value="'buttonClick'; 'selectShipUpgrade'; {shipId : shipId}"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_MODULES"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="	feature_17 != 'locked' &amp;&amp;
						isOwned &amp;&amp;
						playerShipInfo.sellable &amp;&amp;
						(playerShipInfo.timeRent == 0) &amp;&amp;
						!(playerShipInfo.isLocked || playerShipInfo.isNeedRepair || playerShipInfo.isInFormation)"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="name" value="'ShipContextMenu_Sell'"/>
				<bind name="request" value="'buttonClick'; 'sellShipWindow'; {shipName: shipInfo.fullName, shipId: shipId}"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_SELL"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="	feature_17 != 'locked' &amp;&amp;
						(!isOwned || (playerShipInfo.timeRent != 0)) &amp;&amp;
						upgradableShipInfo.isExplored &amp;&amp;
						shipInfo.canBuy"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="name" value="'ShipContextMenu_Purchase'"/>
				<bind name="action" value="'buttonClick'; 'purchaseShip'; { shipId: shipId}"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_DO_PURCHASE"/>
			</block>
		</block>
		<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
		<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
		<block>
			<bind name="visible" value="	feature_17 != 'locked'&amp;&amp;
						!(upgradableShipInfo.isExplored) 
						&amp;&amp; upgradableShipInfo.dependencyResearched 
						&amp;&amp; upgradableShipInfo.expDeficit &lt;= 0 
						&amp;&amp; !shipInfo.isEventLike"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="name" value="'ShipContextMenu_Research'"/>
				<bind name="action" value="'buttonClick'; isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier) ? null : 'researchShip'; { shipId: shipId }"/>
				<bind name="action" value="'click'; (isLazyLogin &amp;&amp; (shipInfo.level &gt; realmConstants.lazyAccountMaxShipTier)) ? 'forceCreateAccount' : null"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_DO_RESEARCH"/>
			</block>
		</block>
	</block>
	<block className="ShipInfoArmourBlock">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'; 'dockInitData,dockUpdateData'"/>
		<style>
			<width value="100%"/>
			<height value="0px"/>
		</style>
		<bind name="transition" value="dockDefaultValues.armourVisibility; 0.15; {height: 0, alpha: 0}; {height: 110, alpha: 1}; {height: 0, alpha: 0}"/>
		<block>
			<style>
				<position value="absolute"/>
				<top value="-3px"/>
				<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>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'ArmourPickerControls'; dockDefaultValues.armourVisibility ? {shipId: shipId} : null"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="0"/>
				<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>
	<block className="ShipInfoCrewBlock">
		<bind name="feature" value="13; 'rollOver'"/>
		<style>
			<width value="100%"/>
			<height value="80px"/>
		</style>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="instance" value="'CrewShipPanelBlock';		(_crewId &gt; 0)	? {_crewId: _crewId} : null"/>
			<bind name="instance" value="'CrewHireShipPanelBlock';	(_crewId == 0)	? {} : null "/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<marginTop value="-6px"/>
			</style>
			<block className="icon_sticker_new" type="native">
				<bind name="fade" value="feature_13 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
				<style>
					<hitTest value="false"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="0"/>
				<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>
	<block className="ShipExtendedTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_EXPLORE + shipId; 'shipExplorePrice'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'pricesAll'; PriceInfoSet.OP_BUY + shipId; 'shipBuyPrice'"/>
		<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"/>
		<bind name="watch" value="'isOwned'; playerShipInfo != null"/>
		<bind name="style" value="'userData'; { rightOffset: _hOffset }"/>
		<styleClass value="$ShipTreeTooltipBehaviour"/>
		<params>
			<param name="name" value="upgrade_tree_Ship_info"/>
		</params>
		<style>
			<width value="300px"/>
		</style>
		<styleClass value="$MouseDisable"/>
		<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>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ShipInfoTabHeader'; {	_isNotMyShip: _isNotMyShip, _inSideCompare: inSideCompare, shipId: shipId }"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="-40px"/>
					<marginBottom value="-20px"/>
					<width value="214px"/>
					<height value="126px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathPreview"/>
			</block>
			<block>
				<bind name="visible" value="(inSideCompare != true) &amp;&amp; !(inIntromissionWindow)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<bind name="instance" value="'CurrentXPLarge'; playerShipInfo != null ? { _exp: playerShipInfo.exp, _label: 'IDS_SHIP_EXPERIENCE'} : null"/>
				</block>
				<block>
					<bind name="visible" value="!isOwned &amp;&amp; !(_inRewards) &amp;&amp; !(shipInfo.isEventLike)"/>
					<style>
						<width value="100%"/>
						<marginTop value="12px"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'PriceInLine'; !(upgradableShipInfo.isExplored)	? { priceInfo: shipExplorePrice.prices[0], _label: 'IDS_RESEARCH_COST',
																						_medium: true, _showDiscountTag: true}
															: null"/>
					</block>
					<block>
						<bind name="style" value="'marginTop'; upgradableShipInfo.isExplored ? '0px' : '9px'"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="instance" value="'PriceInLine'; 	upgradableShipInfo.isExplored &amp;&amp; isOwned ? null
															:!(isOwned) ? { priceInfo: shipBuyPrice.prices[0], _label: 'IDS_PURCHASE_COST', _medium : true, _showDiscountTag:true}
															: null"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="inSideCompare != 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 className="inner_panel" type="native">
				<style>
					<position value="absolute"/>
					<marginBottom value="-1px"/>
					<marginTop value="1px"/>
				</style>
				<styleClass value="$PxHorizontalCorrection"/>
				<styleClass value="$Fullsize"/>
			</block>
			<bind name="instance" value="'ShipDescription'; {_shipNameIDS: shipInfo.nameIDS, _isPaperShip: shipInfo.isPaperShip, _peculiarity: shipInfo.peculiarity}"/>
		</block>
		<bind name="watch" value="'showStats'; !(shipInfo.isEventLike) || isOwned)"/>
		<bind name="watch" value="'showLabelComingSoon'; shipInfo.isEventLike &amp;&amp; (shipInfo.group != 'event')"/>
		<block>
			<bind name="visible" value="showStats"/>
			<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>
			<style>
				<width value="100%"/>
			</style>
			<bind name="style" value="'marginTop'; (inSideCompare == true) ? '18px' : '0px'"/>
			<bind name="instance" value="'ShipParamsTooltipList'; _testShipParams ?
			{ inSideCompare: inSideCompare, typeList : 'tooltipShipParams', params: _testShipParams, testParams: (nonPlayerShipParams ? nonPlayerShipParams : (playerShipInfo != null ? playerShipInfo.params : shipInfo.params)), testObjectIsBaseForView: 1, testObjectIsBaseForCompare: 0, showCompareWithZero: 1}
			: { typeList : 'tooltipShipParams', params: (playerShipInfo != null ? playerShipInfo.params : shipInfo.params)}"/>
		</block>
		<block>
			<bind name="visible" value="showLabelComingSoon"/>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'LabelComingSoon'; { _showTestSampleLabel: showStats }"/>
		</block>
		<block>
			<bind name="visible" value="(_inRewards == true) &amp;&amp; (_isPRMP != true)"/>
			<style>
				<width value="100%"/>
				<marginBottom value="9px"/>
			</style>
			<bind name="instance" value="'RewardReasonsList'; _inRewards ? { _rewardReasons: _rewardReasons } : null"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="class" value="_needService || (_isLocked &amp;&amp; !(playerShipInfo.isInFormation)) ? '$InfoBlockIndent' : '$None'"/>
			<bind name="instance" value="'InstructionWarning';	_needService 									? { _instructionText: 'IDS_SHIP_NEEDS_SERVICE_MESSAGE', _maxWidth: '280'} :
												_isLocked &amp;&amp; !(playerShipInfo.isInFormation)	? { _instructionText: 'IDS_SHIP_IN_BATTLE_MESSAGE', _maxWidth: '280'}
																								: null"/>
		</block>
	</block>
	<css name="$MetaTooltipTextWidth">
		<maxWidth value="250"/>
	</css>
	<block className="SimpleShipParamTooltip">
		<block>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<styleClass value="$MetaTooltipTextWidth"/>
				<style>
					<leading value="-3"/>
				</style>
				<bind name="text" value="$parent.nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<styleClass value="$MetaTooltipTextWidth"/>
				<style>
					<leading value="-3"/>
				</style>
				<bind name="text" value="$parent.tooltipIDS"/>
			</block>
		</block>
	</block>
	<block className="SecondLevelShipParamTooltip">
		<style>
			<width value="100%"/>
		</style>
		<bind name="name" value="'secondLevelParamsTooltip_' + $parent.id"/>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<styleClass value="$FullWidth"/>
				<style>
					<leading value="-3"/>
				</style>
				<bind name="text" value="$parent.nameIDS"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<styleClass value="$FullWidth"/>
				<style>
					<leading value="-3"/>
				</style>
				<bind name="text" value="$parent.tooltipIDS"/>
			</block>
		</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="$FullsizeAbsolute"/>
				<styleClass value="$PxHorizontalCorrection"/>
			</block>
			<bind name="instance" value="'ShipParamsListView'; { viewParams: $parent.secondLevel, secondLevelTooltip: true }"/>
		</block>
	</block>
	<block className="ShipParamTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<bind name="class" value="meta ? '$None' : '$DefaultTooltipWidth'"/>
		<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; (_isArmour &amp;&amp; (_armourOff != true)) ? 'dockDefaultValues' : null; 'dockInitData,dockUpdateData'"/>
		<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>
			<bind name="class" value="(secondLevel == null || secondLevel.length == 0) ? '$None' : '$FullWidth'"/>
			<bind name="child" value="(secondLevel == null || secondLevel.length == 0) ? 0 : 1;'SimpleShipParamTooltip';'SecondLevelShipParamTooltip'"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginTop value="-3px"/>
			</style>
			<bind name="visible" value="_hasExcursion || (_isArmour &amp;&amp; (_armourOff != true))"/>
			<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>
				<styleClass value="$InfoBlockIndentNoWidth"/>
				<bind name="instance" value="'MouseInstruction'; _hasExcursion 							? { _type: 'left', _instructionText: 'IDS_INSTRUCTION_SHIP_COMPONENT_DEMO', _maxWidth: '250'} :
												(_isArmour &amp;&amp; (_armourOff != true))		? { _type: 'left', _instructionText: dockDefaultValues.armourVisibility ? 'IDS_INSTRUCTION_SHIP_ARMOUR_DEMO_OFF' : 'IDS_INSTRUCTION_SHIP_ARMOUR_DEMO_ON', _maxWidth: '250' }
																						: null"/>
			</block>
		</block>
	</block>
	<block className="ShipInfoTooltipRow">
		<style>
			<width value="100%"/>
		</style>
		<bind name="height" value="meta ? 27 : $block.measuredHeight"/>
		<block>
			<style>
				<width value="100%"/>
				<position value="absolute"/>
				<bottom value="-1px"/>
			</style>
			<bind name="visible" value="meta"/>
			<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>
			<styleClass value="$Fullsize"/>
			<style>
				<position value="absolute"/>
				<left value="1px"/>
				<overflow value="hidden"/>
			</style>
			<bind name="instance" value="'StatValueBar'; meta ? {_width: _width ? _width : 298, _hasDiff: root.hasDiff || inSideCompare, _currentValue: root.values[0], _diffValue: root.diffData[0].value, _isGood: root.diffData[0].isGood, _expand: true, _invert: ident == 'visibility' } : null"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginLeft value="12px"/>
				<marginRight value="12px"/>
				<marginTop value="1px"/>
				<marginBottom value="3px"/>
			</style>
			<bind name="style" value="'marginTop'; ($parent.viewParams.list[$index - 1] == null) &amp;&amp; !(meta) ? '5px' : '1px'"/>
			<bind name="style" value="'marginBottom'; $parent.viewParams.list[$index + 1] == null &amp;&amp; !(meta) ? '8px' : '3px'"/>
			<block>
				<block type="text">
					<style>
						<alpha value="0.8"/>
						<leading value="-4"/>
						<maxWidth value="160"/>
					</style>
					<bind name="class" value="meta ? '$TextMetaHeader' : '$TextMetaInfo'"/>
					<bind name="text" value="nameIDS"/>
				</block>
				<block>
					<style>
						<alpha value="0.8"/>
						<marginLeft value="-7px"/>
					</style>
					<bind name="style" value="'marginTop'; title ? '-7px' : '0px'"/>
					<bind name="instance" value="'ParamElement'; title"/>
				</block>
			</block>
			<block>
				<styleClass value="$AlignRight"/>
				<block>
					<bind name="instance" value="'ParamElement'; value"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ShipParamsTooltipList">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerParams"/>
		<style>
			<width value="100%"/>
		</style>
		<bind name="repeat" value="viewParams.list; 'ShipInfoTooltipRow'; { inSideCompare: inSideCompare }"/>
	</block>
	<block className="ShipParamsTooltipListView">
		<style>
			<width value="100%"/>
		</style>
		<bind name="repeat" value="viewParams.list;'ShipInfoTooltipRow'; { _width: _width }"/>
	</block>
	<block className="ShipSideCompareTooltip">
		<styleClass value="$ShipTreeTooltipBehaviour"/>
		<params>
			<param name="name" value="ShipSideCompareTooltip"/>
		</params>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; _selfPlayerShipId; 'evUpdate'"/>
		<bind name="watchDH" value="'selfPlayerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<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="'showOwnShip'; (userPrefs.showOwnShipInCompare == null) ? false : userPrefs.showOwnShipInCompare "/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="visible" value="showOwnShip || _isSelf"/>
			<style>
				<marginRight value="3px"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<style>
					<right value="0px"/>
				</style>
				<text value="IDS_YOUR_SHIP"/>
			</block>
			<block>
				<bind name="instance" value="'ShipExtendedTooltip'; { _isNotMyShip: false, shipId: _selfPlayerShipId, _testShipParams: _isSelf ? null : _nonPlayerShipParams,
													 inSideCompare: true}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(_isSelf)"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<style>
					<right value="0px"/>
				</style>
				<bind name="text" value="_nickname"/>
			</block>
			<block>
				<bind name="instance" value="'ShipExtendedTooltip'; relation != 0	? { _isNotMyShip: true, shipId: _shipId, _testShipParams: selfPlayerShipInfo.params,
																		nonPlayerShipParams: _nonPlayerShipParams, inSideCompare: true}
																	: null"/>
			</block>
		</block>
	</block>
	<block className="ParamsAfterMount">
		<style>
			<width value="100%"/>
		</style>
		<block type="text">
			<style>
				<width value="100%"/>
				<marginTop value="8px"/>
				<marginBottom value="3px"/>
			</style>
			<styleClass value="$TextDefault"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="text" value="_title"/>
		</block>
		<block>
			<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 className="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
				<styleClass value="$PxHorizontalCorrection"/>
				<style>
					<position value="absolute"/>
					<marginBottom value="1px"/>
					<marginTop value="3px"/>
				</style>
			</block>
			<bind name="instance" value="'ShipParamsTooltipListView'; { viewParams: _viewParams, _width: _width }"/>
		</block>
	</block>
	<css name="$CrewPortraitSizeSmall">
		<width value="82px"/>
		<height value="75px"/>
	</css>
	<css name="$CrewPortraitSizeNormal">
		<width value="90px"/>
		<height value="82px"/>
	</css>
	<css name="$CrewPortraitSizeBig">
		<width value="125px"/>
		<height value="114px"/>
	</css>
	<css name="$CrewPortraitSizeMax">
		<width value="160px"/>
		<height value="147px"/>
	</css>
	<css name="$TextSkillTierLabel">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="21"/>
		<selectable value="false"/>
		<textColor value="0x9CBABA"/>
	</css>
	<css name="$TextSkillTierLabelBlack">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFontBold"/>
		<fontSize value="21"/>
		<selectable value="false"/>
		<textColor value="0x08222a"/>
	</css>
	<block className="SkillColumnLabel">
		<bind name="name" value="'SkillsColumnLabel_' + _label"/>
		<style>
			<width value="1px"/>
		</style>
		<bind name="style" value="'width'; (_iconSize * 2 + _iconHorizontalPadding) + 'px'"/>
		<bind name="style" value="'marginLeft'; (($index != 0) ? (_iconHorizontalPadding + (_iconHorizontalPadding * _groupPaddingCoeff)) : 0) + 'px')"/>
		<block type="text">
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<style>
				<textAlign value="center"/>
				<width value="100%"/>
				<leading value="-4"/>
			</style>
			<bind name="text" value="toUpperCase(tr(_label))"/>
		</block>
	</block>
	<block className="SkillRowLabel">
		<style>
			<height value="1px"/>
		</style>
		<bind name="style" value="'height'; _iconSize + 'px'"/>
		<bind name="style" value="'marginTop'; ($index != 0) ? _iconVerticalPadding + 'px' : 0"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'InvertableTextLine'; { _text: ($index + 1), _invert: !(_canBeLearned),
												_normalClass: '$TextSkillTierLabel',
												_invertedClass: '$TextSkillTierLabelBlack' }"/>
		</block>
	</block>
	<block className="CrewListItemRendererSilhouette">
		<styleClass value="$Fullsize"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<alpha value="0.7"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _bgPath"/>
			<bind name="visible" value="playerShipInfo.upgradesInfo.isOwned"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<alpha value="0.8"/>
				<colorMatrixFilter value="0 -100 0 0"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _fgPath"/>
		</block>
	</block>
	<block className="CrewListItemRenderer">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="dataRefDH" value="'crewEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'crewId'; []; crewEntity.crew.id"/>
		<bind name="primaryEntityDH" value="'crewEntity2'; CC.crew; crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity2.crew.evBasketChanged', 'crewEntity2.crew.evLevelUp', 'crewEntity2.crew.evExpChanged', 'crewEntity2.crew.evShipChanged', 'crewEntity2.crew.evSkillsChanged', 'crewEntity2.crew.evResetCostChanged', 'crewEntity2.crew.evAdaptationUpdated', 'crewEntity2.crew.evChanged', 'crewEntity2.crew.evRecentnessUpdated']; crewEntity2.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity2.crew.evRetrainingUpdated']; crewEntity2.retraining"/>
		<bind name="primaryEntityDH" value="'shipTargetOwnEntity'; CC.ownShip; _selectedShipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetPlayerShipInfo'; ['shipTargetOwnEntity.ownShip.evUpdate', 'shipTargetOwnEntity.ownShip.evCrewChanged']; shipTargetOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipTargetEntity'; CC.ship; _selectedShipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetShipInfo'; ['shipTargetEntity.ship.evUpdate', 'shipTargetEntity.ship.evCurrentSkinChanged']; shipTargetEntity.ship"/>
		<bind name="watchDH" value="'targetShipInfo' + 'Slim'; ['shipTargetEntity.slimClientComponent.evUpdate']; shipTargetEntity.slimClientComponent"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; crew.shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'thisPlayerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'ShipEntity'; CC.ship; crew.specializationID; 'evUpdate'"/>
		<bind name="watchDH" value="'thisShipInfo'; ['ShipEntity.ship.evUpdate', 'ShipEntity.ship.evCurrentSkinChanged']; ShipEntity.ship"/>
		<bind name="watchDH" value="'thisShipInfo' + 'Slim'; ['ShipEntity.slimClientComponent.evUpdate']; ShipEntity.slimClientComponent"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<bind name="watch" value="'hasSpaceToAssignCrew'; !(targetPlayerShipInfo.crewId) || !(crew.shipID) || crewsSingleton.canDisassignCrew"/>
		<bind name="watch" value="'crewActionEnabled'; !(thisPlayerShipInfo.isLocked) &amp;&amp; !(targetPlayerShipInfo.isLocked) &amp;&amp; hasSpaceToAssignCrew &amp;&amp; crew.dismissDelay == 0 &amp;&amp; crew.nation == targetShipInfo.country"/>
		<style>
			<width value="100%"/>
			<height value="75px"/>
		</style>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="3px"/>
			</style>
			<bind name="style" value="'hitTest'; crewActionEnabled"/>
			<bind name="menu" value="'CrewListMenu'; { crewID: crew.id, shipId: _selectedShipId }"/>
			<bind name="request" value="'buttonClick'; 'assignCrewToShip'; { crewID:crew.id, shipId: _selectedShipId }"/>
			<bind name="tooltip" value="'CrewTooltip'; { _crewId: crew.id, _checkPenalty: (_selectedShipId != crew.specializationID &amp;&amp; !(targetShipInfo.isWithoutCrewPenalty)), targetShipId: _selectedShipId }"/>
			<bind name="name" value="'CrewList_' + crew.id"/>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="style" value="'alpha'; (crew.dismissDelay &gt; 0) || (crew.nation != targetShipInfo.country) || targetPlayerShipInfo.isLocked ? 0.3 : 1"/>
			<bind name="class" value="!(thisPlayerShipInfo.isLocked) &amp;&amp; !(targetPlayerShipInfo.isLocked) ? '$TextMouseDisable' : '$MouseEnable'"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<alpha value="0.5"/>
					<marginLeft value="-10px"/>
				</style>
				<bind name="instance" value="'NationFlagsSmall'; { shipCountry: thisShipInfo.flagName }"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginTop value="9px"/>
						<marginRight value="4px"/>
					</style>
					<bind name="instance" value="'ShipLineItem'; crew.isInBarracks || crew.dismissDelay	? { _shipId: crew.specializationID, _width: 'auto'} 
																						: { _shipId: crew.shipID, _width: 'auto'}"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="crew.specializationID != _selectedShipId &amp;&amp; !(targetShipInfo.isWithoutCrewPenalty) ? '$FontColorUnready' : '$None'"/>
					<style>
						<width value="100%"/>
						<marginTop value="4px"/>
						<textAlign value="right"/>
						<leading value="-5"/>
						<marginRight value="-20px"/>
					</style>
					<bind name="text" value="tr(crew.firstNameIDS) + ' ' + tr(crew.lastNameIDS)"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="instance" value="'CommanderPortraitSmall'; {_baseUrl: crew.baseUrl, _overlayUrl: crew.overlayUrl}"/>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<bottom value="1px"/>
					<right value="15px"/>
				</style>
				<bind name="instance" value="'CrewSkillPointItem'; { _skillPoints: crew.freeSkillPoints, _allSkillPoints: crew.allSkillPoints }"/>
			</block>
			<block>
				<bind name="visible" value="(crewRetraining.isInAdaptation == true)"/>
				<style>
					<width value="150px"/>
					<bottom value="1px"/>
					<position value="absolute"/>
				</style>
				<block className="indicator_progress_bar_red" type="native">
					<style>
						<width value="100%"/>
					</style>
					<bind name="value" value="crewRetraining.adaptationExperienceEarned"/>
					<bind name="maximum" value="crewRetraining.adaptationExperiencePenalty"/>
				</block>
				<block type="text">
					<styleClass value="$TextSecondary"/>
					<style>
						<marginLeft value="-2px"/>
					</style>
					<bind name="visible" value="crewRetraining.isInAdaptation"/>
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<bind name="text" value="format(crewRetraining.adaptationExperienceEarned) + ' / ' + format(crewRetraining.adaptationExperiencePenalty)"/>
				</block>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<right value="64px"/>
					<bottom value="0px"/>
				</style>
				<bind name="visible" value="(crewRetraining.isInAdaptation != true)"/>
				<bind name="repeat" value="crew.learnedSkillIDs.length &gt; 6 ? 6 : crew.learnedSkillIDs.length; 'CrewSkillItemSmall'; 
				{_skillIDs: crew.learnedSkillIDs, _penalty: crew.specializationID != _selectedShipId &amp;&amp; !(targetShipInfo.isWithoutCrewPenalty) }"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="!crewActionEnabled"/>
			<bind name="name" value="'CrewList_' + crew.id"/>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="tooltip" value="'CrewTooltip'; { _crewId: crew.id, _checkPenalty: (_selectedShipId != crew.specializationID &amp;&amp; !(targetShipInfo.isWithoutCrewPenalty)), _cantMove: !(!(thisPlayerShipInfo.isLocked) &amp;&amp; !(targetPlayerShipInfo.isLocked) &amp;&amp; hasSpaceToAssignCrew), crewsSingleton: crewsSingleton, targetShipId: _selectedShipId }"/>
			<bind name="menu" value="'CrewListMenu'; (crew.dismissDelay == 0) ? { crewID: crew.id, shipId: $parent.playerShipInfo.id }: null"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<block>
				<bind name="fade" value="crew.dismissDelay &gt; 0 &amp;&amp; rollOver; 0.15; {alpha: 0, top: 20}; {alpha: 1, top: 0}"/>
				<bind name="instance" value="'CancelDemobilizationButton'; {crew: crew, crewsSingleton: crewsSingleton}"/>
			</block>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<bind name="fade" value="crew.dismissDelay &gt; 0 &amp;&amp; !rollOver; 0.15; {alpha: 0, top: -20}; {alpha: 1, top: 0}"/>
				<bind name="instance" value="'WaitingForDemobilization'; {_dismissDelay: crew.dismissDelay}"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<right value="6"/>
				<bottom value="6"/>
			</style>
			<bind name="fade" value="rollOver &amp;&amp; crew.dismissDelay == 0; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 2"/>
			<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_CREW_PROFILE'}"/>
			<block className="button_info" type="native">
				<bind name="name" value="'Crew_Info_' + crew.id"/>
				<bind name="request" value="'buttonClick';'crewFile';{crewID: crew.id}"/>
			</block>
		</block>
		<block>
			<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>
	<block className="RedistributeSkillPoints">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'selectedShipCrew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'selectedShipCrew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<style>
			<width value="270px"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<block type="text">
				<styleClass value="$TextLargeHeader"/>
				<bind name="text" value="tr('IDS_FREE_SKILLPOINTS') + tr('IDS_COLON') + ' '"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="class" value="'$FontSizeHeader4'"/>
				<style>
					<marginTop value="-2px"/>
				</style>
				<bind name="text" value="selectedShipCrew.freeSkillPoints"/>
				<bind name="name" value="'FreeSkillPoints'"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="class" value="'$FontSizeHeader4'"/>
				<bind name="visible" value="selectedShipCrew.allSkillPoints &gt; 0"/>
				<style>
					<alpha value="0.7"/>
					<marginTop value="-2px"/>
				</style>
				<text value="/"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="visible" value="selectedShipCrew.allSkillPoints &gt; 0"/>
				<style>
					<alpha value="0.7"/>
				</style>
				<bind name="text" value="selectedShipCrew.allSkillPoints"/>
				<bind name="name" value="'AllSkillPoints'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="200px"/>
				<marginTop value="3px"/>
			</style>
			<bind name="watch" value="'isRetrainButtonEnabled'; selectedShipCrew.canResetSkills &amp;&amp; !(_isLocked) "/>
			<bind name="tooltip" value="'SimpleWarningTooltip';	isRetrainButtonEnabled	? null : 
												_isInFormation 			? {_text: tr('IDS_SET_UNREADY_DIVISION_FIRST_TO_FREE_CREW_SKILLPOINTS')} :
												_isLocked				? {_text: tr('IDS_WAIT_CREW_FROM_BATTLE_TO_FREE_CREW_SKILLPOINTS')}
																		: null"/>
			<bind name="name" value="'ButtonRedistributeSkillPoints'"/>
			<bind name="instance" value="'DefaultButton'; {	_enabled: isRetrainButtonEnabled, 
											_label: toUpperCase(tr('IDS_CREW_REDISTRIBUTE_PERKS')),
											_isTransactionBtn: true,
											_request: 'freeSkillPointsWindow', _requestParams: { crewId:_crewId, selectedPriceIndex: selectedPriceIndex }}"/>
		</block>
		<block>
			<bind name="visible" value="selectedShipCrew.canResetSkills"/>
			<style>
				<position value="absolute"/>
				<top value="35px"/>
				<left value="240px"/>
			</style>
			<bind name="var" value="{selectedPriceIndex: 0}"/>
			<bind name="catch" value="'selectedPriceChanged'"/>
			<bind name="instance" value="'AlterablePriceTag'; {	_tooltipText: 'IDS_RESET_SKILLPOINTS_COST',
												_prices: selectedShipCrew.skillsResetPrice,
												_showDiscountTag: true,
												_selectedPriceIndex: selectedPriceIndex, 
												_medium: true}"/>
		</block>
	</block>
	<block className="CrewListMenu">
		<bind name="primaryEntityDH" value="'shipTargetOwnEntity'; CC.ownShip; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetPlayerShipInfo'; ['shipTargetOwnEntity.ownShip.evUpdate', 'shipTargetOwnEntity.ownShip.evCrewChanged']; shipTargetOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipTargetEntity'; CC.ship; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetShipInfo'; ['shipTargetEntity.ship.evUpdate', 'shipTargetEntity.ship.evCurrentSkinChanged']; shipTargetEntity.ship"/>
		<bind name="watchDH" value="'targetShipInfo' + 'Slim'; ['shipTargetEntity.slimClientComponent.evUpdate']; shipTargetEntity.slimClientComponent"/>
		<bind name="primaryEntityDH" value="'shipThisEntity'; CC.ownShip; crew.shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'thisPlayerShipInfo'; ['shipThisEntity.ownShip.evUpdate', 'shipThisEntity.ownShip.evCrewChanged']; shipThisEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetShipInfo'; ['shipEntity.ship.evUpdate', 'shipEntity.ship.evCurrentSkinChanged']; shipEntity.ship"/>
		<bind name="watchDH" value="'targetShipInfo' + 'Slim'; ['shipEntity.slimClientComponent.evUpdate']; shipEntity.slimClientComponent"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; crewID"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<style>
			<width value="220px"/>
		</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="$FullsizeAbsolute"/>
		</block>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$ContextMenuListItem"/>
			<bind name="request" value="'buttonClick';'crewFile';{crewID:crewID}"/>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_CREW_GO_TO_PROFILE"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="targetShipInfo.country == crew.nation"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<style>
					<flow value="horizontal"/>
					<overflow value="hidden"/>
					<width value="100%"/>
				</style>
				<bind name="watch" value="'hasSpaceToAssignCrew'; !(targetPlayerShipInfo.crewId) || !(crew.shipID) || crewsSingleton.canDisassignCrew"/>
				<bind name="enabled" value="hasSpaceToAssignCrew &amp;&amp; !(targetPlayerShipInfo.isLocked) &amp;&amp; !(thisPlayerShipInfo.isLocked)"/>
				<bind name="style" value="'hitTest'; hasSpaceToAssignCrew &amp;&amp; !(targetPlayerShipInfo.isLocked) &amp;&amp; !(thisPlayerShipInfo.isLocked) ? true : false"/>
				<bind name="style" value="'alpha'; hasSpaceToAssignCrew &amp;&amp; !(targetPlayerShipInfo.isLocked) &amp;&amp; !(thisPlayerShipInfo.isLocked) ? 1 : 0.5"/>
				<bind name="request" value="'buttonClick'; 'assignCrewToShip'; {crewID:crewID, shipId: targetPlayerShipInfo.id}"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="6px"/>
						<marginRight value="6px"/>
					</style>
					<text value="IDS_ASSIGN_TO"/>
				</block>
				<block>
					<styleClass value="$MouseDisable"/>
					<style>
						<marginTop value="9px"/>
					</style>
					<bind name="instance" value="'ShipLineItem'; { _shipId: shipId }"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="crewsSingleton.canDisassignCrew &amp;&amp; !(crew.isInBarracks)"/>
			<styleClass value="$ContextMenuListItem"/>
			<bind name="style" value="'hitTest'; thisPlayerShipInfo.isLocked ? false : true"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="request" value="'buttonClick';'disassignCrew';{crewID:crewID}"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="style" value="'alpha'; thisPlayerShipInfo.isLocked ? 0.6 : 1.0"/>
					<text value="IDS_CREW_TO_BARRACKS"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="crew.peculiarity == 'default'"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<bind name="request" value="'buttonClick';'fireCrew';{crewID:crewID}"/>
				<bind name="style" value="'hitTest'; thisPlayerShipInfo.isLocked || !(crew.dismissable) ? false : true"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="name" value="'CrewFireButton'"/>
				<block type="text">
					<style>
						<position value="absolute"/>
					</style>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="style" value="'alpha'; thisPlayerShipInfo.isLocked || !(crew.dismissable) ? 0.6 : 1.0"/>
					<text value="IDS_CREW_FIRE"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(hasSpaceToAssignCrew)"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="icon_warning_red" type="native">
				<style>
					<marginTop value="8px"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<style>
					<width value="100%"/>
				</style>
				<text value="IDS_BARRACK_IS_FULL"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="crew.shipID &amp;&amp; (thisPlayerShipInfo.isLocked || thisPlayerShipInfo.isInFormation)"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="5px"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="text" value="thisPlayerShipInfo.isInFormation ? 'IDS_READY_TO_BATTLE_IN_' + toUpperCase(tr(divisionEntranceData.divisionType)) : 'IDS_IN_BATTLE'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CrewMenu">
		<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="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; crew.shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; crew.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="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<styleClass value="$DefaultMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<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>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="!(_dropDown)"/>
			<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>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="_dropDown"/>
			<block className="dock_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginTop value="-9px"/>
					<marginRight value="-14px"/>
					<marginBottom value="-19px"/>
					<marginLeft value="-14px"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_fromCrewSelect == true)"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="request" value="'buttonClick'; 'crewFile'; {crewID: _crewId}"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_CREW_GO_TO_PROFILE"/>
			</block>
		</block>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<bind name="visible" value="crewRetraining.needRetraining == true"/>
			<bind name="style" value="'hitTest'; playerShipInfo.isLocked ? false : true"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="request" value="'buttonClick'; 'retrainCrew'; {shipId: (shipInfo.isPremium ? crew.specializationID : crew.shipID), crewID: _crewId}"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<bind name="style" value="'alpha'; playerShipInfo.isLocked ? 0.6 : 1.0"/>
				<text value="IDS_CREW_RETRAIN"/>
			</block>
		</block>
		<bind name="request" value="'Tooltip.selfOpened'; 'updateSuitableShips'; { crewId: _crewId}"/>
		<bind name="collectionDH" value="CC.ownShip; 'suitableShips'; 'suitableShips.sorted'"/>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<bind name="visible" value="suitableShips.length &gt; 0"/>
			<bind name="style" value="'hitTest'; playerShipInfo.isLocked ? false : true"/>
			<bind name="style" value="'alpha'; playerShipInfo.isLocked ? 0.6 : 1.0"/>
			<bind name="tooltip" value="'ShipsToHireMenu'; {crewID: _crewId, canDisassignCrew: crewsSingleton.canDisassignCrew, isLocked: playerShipInfo.isLocked, suitableShips: suitableShips }; 7"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<text value="IDS_ASSIGN_TO"/>
			</block>
			<block className="button_expand_h" type="native">
				<style>
					<position value="absolute"/>
					<right value="6px"/>
				</style>
				<styleClass value="$MouseDisable"/>
				<styleClass value="$MiddleVAligned"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="crewsSingleton.canDisassignCrew &amp;&amp; !(crew.isInBarracks)"/>
			<styleClass value="$ContextMenuListItem"/>
			<bind name="style" value="'hitTest'; playerShipInfo.isLocked ? false : true"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$Fullsize"/>
				<bind name="request" value="'buttonClick'; 'disassignCrew'; {crewID: _crewId}"/>
				<block type="text">
					<bind name="style" value="'alpha'; playerShipInfo.isLocked ? 0.6 : 1.0"/>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<text value="IDS_CREW_TO_BARRACKS"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="crew.peculiarity == 'default'"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="dock_submenu_item" type="native">
				<bind name="request" value="'buttonClick'; 'fireCrew'; {crewID: _crewId}"/>
				<bind name="style" value="'hitTest'; playerShipInfo.isLocked || !(crew.dismissable) ? false : true"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="name" value="'CrewFireButton'"/>
				<block type="text">
					<style>
						<position value="absolute"/>
					</style>
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="style" value="'alpha'; playerShipInfo.isLocked || !(crew.dismissable) ? 0.6 : 1.0"/>
					<text value="IDS_CREW_FIRE"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(crew.level != crewsSingleton.maxLevel)"/>
			<styleClass value="$ContextMenuListItem"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="watch" value="'isFastTrainingEnabled'; (!(playerShipInfo.isLocked) &amp;&amp; !(crewRetraining.isInAdaptation))"/>
			<bind name="tooltip" value="'SimpleWarningTooltip';	playerShipInfo.isLocked			? {_text: tr('IDS_FAST_TRAINING_DISABLE_REASON_SHIP_IS_IN_BATTLE')} :
												crewRetraining.isInAdaptation	? {_text: tr('IDS_FAST_TRAINING_DISABLE_REASON_IN_ADAPTATION')}
																				: null"/>
			<bind name="tooltip" value="'SimpleWarningTooltip';	playerInDivision[0].isInBattle	? {_text: tr('IDS_UNABLE_TO_EXCLUDE_PLAYER_OUT_OF_PARTY')}
																				: null"/>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'hitTest'; isFastTrainingEnabled ? true : false"/>
				<bind name="style" value="'alpha'; 	isFastTrainingEnabled ? 1 : 0.5"/>
				<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_CREW_FAST_LEARNING'"/>
					</block>
				</block>
				<bind name="request" value="'click'; 'crewFastTraining'; { shipId: crew.shipID, crewID: _crewId }"/>
			</block>
		</block>
		<block>
			<styleClass value="$ContextMenuListItem"/>
			<style>
				<height value="auto"/>
			</style>
			<bind name="visible" value="	(!(crewsSingleton.canDisassignCrew) &amp;&amp; suitableShips.length == 0)
			 			|| (suitableShips.length == 0 &amp;&amp; crew.isInBarracks &amp;&amp; !(crew.dismissable))"/>
			<block className="icon_warning_red" type="native">
				<style>
					<marginTop value="8px"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<width value="100%"/>
					<maxWidth value="150"/>
					<marginTop value="2px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<bind name="text" value="crew.isInBarracks ? 'IDS_NO_SUITABLE_SHIPS' : 'IDS_BARRACK_IS_FULL'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="crew.shipID &amp;&amp; (playerShipInfo.isLocked || playerShipInfo.isInFormation)"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="icon_warning_orange" type="native">
				<style>
					<marginTop value="8px"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="text" value="playerShipInfo.isInFormation ? 'IDS_READY_TO_BATTLE_IN_' + toUpperCase(tr(divisionEntranceData.divisionType)) : 'IDS_IN_BATTLE'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ShipsToHireMenu">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; crewID"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<styleClass value="$DefaultSubMenuBehaviour"/>
		<styleClass value="$ContextMenuDimentions"/>
		<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>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="!($parent._dropDown)"/>
			<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>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="$parent._dropDown"/>
			<block className="dock_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginTop value="-9px"/>
					<marginRight value="-14px"/>
					<marginBottom value="-19px"/>
					<marginLeft value="-14px"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="suitableShips; 'ShipsToHireMenuItem'; { _canDisassignCrew: canDisassignCrew, _crewId: crewID, _crewShipId: crew.shipID, _isLocked: isLocked }"/>
		</block>
		<block>
			<bind name="visible" value="!(canDisassignCrew) &amp;&amp; !(crew.isInBarracks)"/>
			<styleClass value="$ContextMenuListItem"/>
			<block className="icon_warning_red" type="native">
				<style>
					<marginTop value="8px"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<text value="IDS_BARRACK_IS_FULL"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ShipsToHireMenuItem">
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; $dataRef.ref.ship.id; 'evUpdate'"/>
		<bind name="watchDH" value="'targetPlayerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<styleClass value="$ContextMenuListItem"/>
		<block className="dock_submenu_item" type="native">
			<bind name="watch" value="'hasSpaceToAssignCrew'; !(targetPlayerShipInfo.crewId) || !(_crewShipId) || crewsSingleton.canDisassignCrew"/>
			<bind name="enabled" value="hasSpaceToAssignCrew &amp;&amp; !(targetPlayerShipInfo.isLocked)"/>
			<bind name="style" value="'hitTest'; hasSpaceToAssignCrew &amp;&amp; !(targetPlayerShipInfo.isLocked) ? true : false"/>
			<bind name="style" value="'alpha'; hasSpaceToAssignCrew &amp;&amp; !(targetPlayerShipInfo.isLocked) ? 1 : 0.6"/>
			<bind name="request" value="'buttonClick'; 'assignCrewToShip'; { crewID: _crewId, shipId: $dataRef.ref.ship.id }"/>
			<styleClass value="$Fullsize"/>
			<block>
				<styleClass value="$MouseDisable"/>
				<style>
					<marginLeft value="6px"/>
					<marginRight value="6px"/>
					<marginTop value="9px"/>
				</style>
				<bind name="instance" value="'ShipLineItem'; { _shipId: $dataRef.ref.ship.id }"/>
			</block>
		</block>
	</block>
	<block className="CrewTooltip">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; crew.shipID ? crew.shipID : crew.specializationID; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; crew.shipID ? crew.shipID : crew.specializationID; '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="primaryEntityDH" value="'shipTargetOwnEntity'; CC.ownShip; targetShipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetPlayerShipInfo'; ['shipTargetOwnEntity.ownShip.evUpdate', 'shipTargetOwnEntity.ownShip.evCrewChanged']; shipTargetOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipTargetEntity'; CC.ship; targetShipId; 'evUpdate'"/>
		<bind name="watchDH" value="'targetShipInfo'; ['shipTargetEntity.ship.evUpdate', 'shipTargetEntity.ship.evCurrentSkinChanged']; shipTargetEntity.ship"/>
		<bind name="watchDH" value="'targetShipInfo' + 'Slim'; ['shipTargetEntity.slimClientComponent.evUpdate']; shipTargetEntity.slimClientComponent"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<params>
			<param name="name" value="crew_tooltip"/>
		</params>
		<style>
			<width value="330px"/>
		</style>
		<styleClass value="$MouseDisable"/>
		<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>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'ShipInfoTabHeader'; {	_fromCrew: true, shipId: shipInfo.id }"/>
		</block>
		<block>
			<bind name="visible" value="crew.shipID &amp;&amp; (_inPBS != true)"/>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginBottom value="9px"/>
			</style>
			<bind name="instance" value="'CurrentXPLarge'; (crew.shipID &amp;&amp; (_inPBS != true)) ? { _exp: playerShipInfo.exp, _label: 'IDS_SHIP_EXPERIENCE'} : null"/>
		</block>
		<block>
			<bind name="visible" value="(_inPBS == true)"/>
			<style>
				<height value="30px"/>
			</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%"/>
				<height value="82px"/>
			</style>
			<bind name="instance" value="'CrewShipPanelInnerBlock'; {_crewId: crew.id, _shipId: playerShipInfo.id, _inTooltip: true }"/>
		</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>
			<bind name="visible" value="crew.specializationID != playerShipInfo.id"/>
			<styleClass value="$MiddleAligned"/>
			<style>
				<marginTop value="6px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="text" value="crewRetraining.isInAdaptation ? ('IDS_CREW_IN_ADAPTATION') : (tr('IDS_SPECIALITY') + tr('IDS_COLON'))"/>
			</block>
			<block>
				<style>
					<marginTop value="6px"/>
					<marginLeft value="6px"/>
				</style>
				<bind name="instance" value="'ShipLineItem'; { _shipId: crew.specializationID, _width: 'auto'}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="visible" value="(_checkPenalty == true) &amp;&amp; (targetShipInfo.country == crew.nation)"/>
			<block>
				<style>
					<marginTop value="4px"/>
				</style>
				<block className="icon_warning_red" type="native"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<marginTop value="-4px"/>
					</style>
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<text value="IDS_CREW_ADAPTATION_AFTER_ASSIGN_TO"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<marginTop value="9px"/>
				</style>
				<bind name="instance" value="'ShipLineItem'; {_shipId: targetShipId}"/>
			</block>
			<block>
				<style>
					<marginTop value="6px"/>
				</style>
				<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_HINT_CREWEXP_TO_ADAPTATION'}"/>
				<block className="indicator_progress_bar_red" type="native">
					<style>
						<width value="230px"/>
					</style>
					<bind name="value" value="crew.selectedShipPenalties.penaltyExp"/>
					<bind name="maximum" value="crew.selectedShipPenalties.penalty"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<bind name="text" value="format(crew.selectedShipPenalties.penaltyExp) + ' / ' + format(crew.selectedShipPenalties.penalty)"/>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<style>
				<flow value="htile"/>
				<align value="center"/>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="crew.learnedSkillIDs; 'CrewSkillItem'; { _penalty: crew.skillsEffectiveness &lt; 1 || _checkPenalty }"/>
			<bind name="instance" value="'EmptyStatusParagraph'; crew.learnedSkillIDs.length &gt; 0 ? null : {_text: 'IDS_CREW_HAS_NO_LEARNED_SKILLS'}"/>
		</block>
		<block>
			<bind name="visible" value="(targetShipInfo) &amp;&amp; (crew.nation != targetShipInfo.country)"/>
			<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>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="instance" value="'StatusLineWithIcon'; { _text: 'IDS_CREW_CAN_ONLY_OPERATE_DEFAULT_NATION_SHIP', _maxWidth: 284, _large: true}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_inPBS != 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>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="(crew.dismissDelay != 0) &amp;&amp; (_inPBS != true)"/>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'WaitingForDemobilization'; {_dismissDelay: crew.dismissDelay}"/>
				</block>
			</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>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<style>
						<maxWidth value="300"/>
					</style>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="(crewsSingleton.barracksCapacity - crewsSingleton.crewsInBarracks) == 0 ? 'IDS_TO_CANCEL_EXPAND_BARRACKS' : 'IDS_CLICK_CANCEL_DEMOBILIZATION'"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_inRewards == true) &amp;&amp; (_inPBS != true) &amp;&amp; (_isPRMP != true)"/>
			<style>
				<width value="100%"/>
				<marginBottom value="9px"/>
			</style>
			<bind name="instance" value="'RewardReasonsList'; _inRewards ? {_rewardReasons: _rewardReasons} : null"/>
		</block>
		<block>
			<bind name="visible" value="(crew.dismissDelay == 0) &amp;&amp; (_inRewards != true) &amp;&amp; (_inPBS != true)"/>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<style>
					<marginBottom value="6px"/>
				</style>
				<bind name="visible" value="!(_cantMove) &amp;&amp; (targetShipInfo.country == crew.nation)"/>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: (_fromPort ? 'IDS_HINT_LEFT_CLICK_FOR_CREW_WINDOW' : 'IDS_HINT_ASSIGN_CREW_TO_THIS_SHIP'), _maxWidth: 280}"/>
			</block>
			<block>
				<style>
					<marginBottom value="6px"/>
				</style>
				<bind name="visible" value="((_cantMove) &amp;&amp; (targetShipInfo.country == crew.nation)) || ((targetPlayerShipInfo.isLocked) &amp;&amp; playerShipInfo.isLocked) "/>
				<block className="icon_warning_red" type="native">
					<style>
						<marginTop value="5px"/>
						<marginRight value="5px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorCompareNegative'"/>
					<bind name="text" value="	targetPlayerShipInfo.isLocked 	? 'IDS_READY_TO_BATTLE_DENY_REASON_SHIP_IS_IN_BATTLE' :
								playerShipInfo.isLocked			? 'IDS_IN_BATTLE'
																: 'IDS_BARRACK_IS_FULL'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="instance" value="'MouseInstruction'; (_inPBS != true)	? {_type: 'right', _instructionText: 'IDS_HINT_RIGHT_CLICK_FOR_CONTEXT_MENU', _maxWidth: 280}
																	: null"/>
			</block>
		</block>
	</block>
	<block className="SkillLearnStatus">
		<style>
			<width value="100%"/>
		</style>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="_learned || !(_dependenciesLearned)"/>
			<block className="icon_module_state" type="native">
				<bind name="gotoAndStop!" value="_dependenciesLearned 	? 'installed'
														: 'action'"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<maxWidth value="260"/>
					<marginTop value="-3px"/>
				</style>
				<bind name="class" value="_dependenciesLearned ? '$None' : '$FontColorUnready'"/>
				<bind name="text" value="_dependenciesLearned 	? 'IDS_LEARNED'
												: 'IDS_SKILL_LEARN_PREVIOUS_LEVEL'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="_dependenciesLearned &amp;&amp; !(_learned)"/>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<marginRight value="6px"/>
					<marginTop value="-3px"/>
				</style>
				<bind name="text" value="tr('IDS_LEARN_COST') + tr('IDS_COLON') +' ' + _cost"/>
			</block>
			<block className="icon_module_state" type="native">
				<bind name="visible" value="_dependenciesLearned &amp;&amp; (_deficit &gt; 0) &amp;&amp; !(_learned)"/>
				<bind name="gotoAndStop!" value="'not_enough'"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<marginTop value="-3px"/>
				</style>
				<bind name="class" value="'$FontColorCompareNegative'"/>
				<bind name="visible" value="_dependenciesLearned &amp;&amp; (_deficit &gt; 0) &amp;&amp; !(_learned)"/>
				<bind name="text" value="tr('IDS_NOT_ENOUGH') + ' ' + _deficit"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="SkillAdaptationStatus">
		<style>
			<width value="100%"/>
			<flow value="horizontal"/>
		</style>
		<block className="icon_warning_red" type="native"/>
		<block type="text">
			<styleClass value="$TextSecondary"/>
			<style>
				<width value="100%"/>
				<marginTop value="-3px"/>
			</style>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<bind name="text" value="_blockable ? 'IDS_SKILL_INEFFICIENT' : 'IDS_SKILL_EFFICIENCY_REDUSED'"/>
		</block>
		<block type="text">
			<bind name="visible" value="!_blockable"/>
			<styleClass value="$TextHeaderHugeWhite"/>
			<style>
				<marginTop value="-6px"/>
				<marginBottom value="-3px"/>
			</style>
			<bind name="class" value="'$Bold'"/>
			<bind name="class" value="'$FontColorCompareNegative'"/>
			<bind name="text" value="'-' + _skillsEffectiveness * 100 + '%'"/>
		</block>
	</block>
	<block className="SkillAttributeItem">
		<style>
			<width value="100%"/>
		</style>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<style>
				<width value="100%"/>
				<marginTop value="3px"/>
				<marginBottom value="3px"/>
				<leading value="-3"/>
			</style>
			<bind name="text" value="$value"/>
			<bind name="substitute" value="'KEYS'; 4; null; $value"/>
		</block>
	</block>
	<block className="SkillTooltip">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerModernizations"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; crew.shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'skillEntity'; CC.crewSkill; _id; 'evUpdate'"/>
		<bind name="watchDH" value="'skill'; ['skillEntity.crewSkill.evUpdate']; skillEntity.crewSkill"/>
		<bind name="action" value="'Tooltip.selfOpened'; 'getShipWithUpgrade'; {id: _id, shipId: crew.shipID, type: 'crew'}"/>
		<bind name="primaryEntityDH" value="'compareItemEntity'; CC.compareItem; 'crew_' + _id"/>
		<bind name="watchDH" value="'crewCompare'; ['compareItemEntity.compareItem.evUpdate']; compareItemEntity.dataComponent.data"/>
		<bind name="watch" value="'_penalty'; crew.skillsEffectiveness &lt; 1"/>
		<bind name="watch" value="'_isLocked'; (crew.shipID ? playerShipInfo.isLocked : false)"/>
		<bind name="watch" value="'_isInFormation'; (crew.shipID ? playerShipInfo.isInFormation : false)"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<params>
			<param name="name" value="skill_tooltip"/>
		</params>
		<style>
			<width value="300px"/>
		</style>
		<styleClass value="$MouseDisable"/>
		<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="$InfoBlockIndent"/>
			<bind name="instance" value="'SkillHeader'; { skill: skill, _penalty: _penalty}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<style>
				<marginBottom value="6px"/>
			</style>
			<bind name="instance" value="'SkillLearnStatus'; { _learned: skill.learned, _dependenciesLearned: skill.hasLearnedSkillOnPreviousTier, _cost: skill.tier, _deficit: (skill.tier - crew.freeSkillPoints) }"/>
		</block>
		<block>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="visible" value="skill.learned &amp;&amp; _penalty"/>
			<style>
				<marginBottom value="6px"/>
			</style>
			<bind name="instance" value="'SkillAdaptationStatus'; skill.learned &amp;&amp; _penalty ? {_skillsEffectiveness: crew.skillsEffectiveness, _blockable: skill.blockable } : null"/>
		</block>
		<block>
			<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 className="inner_panel" type="native">
				<bind name="visible" value="skill.attributes != 0"/>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginTop value="3px"/>
					<marginBottom value="3px"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="skill.attributes != 0"/>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="repeat" value="skill.attributes; 'SkillAttributeItem'"/>
			</block>
			<block>
				<bind name="visible" value="skill.attributes != 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="controller" value="lesta.dialogs.dock.controllers.ControllerParams; 0; crew.shipID; 'tooltipShipParams'; playerShipInfo.params; crewCompare; 1; 0; null; 1; 1; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ParamsAfterMount'; !(skill.learned) &amp;&amp; viewParams.hasDiff	? {	_viewParams: viewParams,
																							_title: 'IDS_AFTER_LEARN'}
																						: null"/>
			</block>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="visible" value="skill.modifiers.additionalConsumables &gt; 0 &amp;&amp; (consumablesSlotsList.length &gt; 0) &amp;&amp; hasLimitedConsumables &amp;&amp; crew.shipID &gt; 0"/>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<text value="IDS_AFTER_LEARN"/>
			</block>
			<block>
				<style>
					<marginLeft value="6px"/>
					<marginTop value="6px"/>
				</style>
				<bind name="instance" value="'ShipLineItem'; { _shipId: crew.shipID}"/>
			</block>
			<block>
				<bind name="repeat" value="consumablesSlotsList; 'ConsumableIcon'; {additionalConsumables: skill.learned ? 0 : skill.modifiers.additionalConsumables}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(_isLocked) &amp;&amp;
						skill.learned != true &amp;&amp;
						skill.hasLearnedSkillOnPreviousTier &amp;&amp;
						(crew.freeSkillPoints - skill.tier &gt;= 0) &amp;&amp;
						!(_noMouseInstructions)"/>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_CREW_SKILL_LEARN_INSTRUCTION', _maxWidth: 270}"/>
		</block>
		<block>
			<bind name="visible" value="_isLocked || _isInFormation"/>
			<styleClass value="$InfoBlockIndent"/>
			<block className="icon_module_state" type="native">
				<bind name="gotoAndStop!" value="'action'"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<style>
					<maxWidth value="270"/>
					<marginTop value="-3px"/>
				</style>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="text" value="(_isInFormation ? tr('IDS_READY_TO_BATTLE_IN_' + toUpperCase(divisionEntranceData.divisionType)) : tr('IDS_IN_BATTLE')) + '. ' + tr('IDS_CANT_LEARN_SKILLS')"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CancelDemobilizationButton">
		<block>
			<style>
				<width value="200px"/>
			</style>
			<bind name="visible" value="(crewsSingleton.barracksCapacity - crewsSingleton.crewsInBarracks) != 0"/>
			<block className="button_dock" type="native">
				<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_RETURN_CREW_TO_BARRACKS'}], _maxWidth: 250}"/>
				<bind name="action" value="'buttonClick';'unfireCrew';{crewID: crew.id}"/>
				<bind name="name" value="'cancelDemobilizationButton_' + crew.id"/>
				<style>
					<width value="100%"/>
					<height value="30px"/>
				</style>
				<block>
					<style>
						<marginTop value="8px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MouseDisable"/>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<styleClass value="$MiddleVAligned"/>
						<bind name="text" value="toUpperCase(tr('IDS_CANCEL_DEMOBILIZATION'))"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(crewsSingleton.barracksCapacity - crewsSingleton.crewsInBarracks) == 0"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAligned"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="style" value="'maxWidth'; _textWidth ? _textWidth: '290'"/>
				<style>
					<textAlign value="center"/>
				</style>
				<text value="IDS_TO_CANCEL_EXPAND_BARRACKS"/>
			</block>
		</block>
	</block>
	<block className="WaitingForDemobilization">
		<bind name="countdown" value="_dismissDelay; 'countdownText'; 'mm:ss'"/>
		<block type="text">
			<style>
				<textAlign value="center"/>
			</style>
			<bind name="style" value="'maxWidth'; _textWidth ? _textWidth: '290'"/>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<bind name="text" value="toUpperCase(tr('IDS_WAITING_FOR_DEMOBILIZATION')) + tr('IDS_COLON')"/>
		</block>
		<block type="text">
			<style>
				<marginTop value="-4px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<bind name="pureText" value="countdownText"/>
		</block>
	</block>
	<block className="CommanderPortraitMax">
		<styleClass value="$CrewPortraitSizeMax"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _baseUrl"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="_overlayUrl != ''"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _overlayUrl"/>
		</block>
	</block>
	<block className="CommanderPortraitBig">
		<styleClass value="$CrewPortraitSizeBig"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _baseUrl"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="_overlayUrl != ''"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _overlayUrl"/>
		</block>
	</block>
	<block className="CommanderPortraitNormal">
		<styleClass value="$CrewPortraitSizeNormal"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _baseUrl"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="_overlayUrl != ''"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _overlayUrl"/>
		</block>
	</block>
	<block className="CommanderPortraitSmall">
		<styleClass value="$CrewPortraitSizeSmall"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
				<marginBottom value="1px"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _baseUrl"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="visible" value="_overlayUrl != ''"/>
			<style>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
				<marginBottom value="1px"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _overlayUrl"/>
		</block>
	</block>
	<block className="CommanderNameAndRankDropdown">
		<params>
			<param name="name" value="ButtonCommanderSelect"/>
		</params>
		<block>
			<bind name="style" value="'hitTest'; (_enabled == true)"/>
			<bind name="tooltip" value="'CrewMenu'; _enabled ? { _crewId: _crew.id, _fromCrewSelect: _fromCrewSelect, _dropDown: true } : null; 6"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; _enabled ?  { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_CLICK_TO_CHOOSE_ACTION'}], _maxWidth: 250} : null"/>
			<block className="button_dock" type="native">
				<bind name="visible" value="(_enabled == true)"/>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginLeft value="-6px"/>
				</style>
			</block>
			<block type="text">
				<bind name="name" value="'ButtonCommanderName'"/>
				<style>
					<marginBottom value="4px"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="text" value="tr(_crew.firstNameIDS) + ' ' + tr(_crew.lastNameIDS)"/>
			</block>
			<block className="icon_navigate" type="native">
				<bind name="visible" value="(_enabled == true)"/>
				<style>
					<marginLeft value="3px"/>
					<marginRight value="6px"/>
					<marginTop value="7px"/>
				</style>
				<bind name="gotoAndStop!" value="'down'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="_crew.peculiarity == 'default'"/>
			<bind name="tooltip" value="'SimpleTooltip'; _needSmallMargin ? null : {tooltipText: 'IDS_COMMANDER_RANK'}"/>
			<bind name="style" value="'marginTop'; _needSmallMargin ? '-10px' : '-7px'"/>
			<block type="text">
				<style>
					<alpha value="0.8"/>
				</style>
				<styleClass value="$TextDefaultWhite"/>
				<bind name="text" value="tr(toUpperCase('IDS_CREW_RANK_' + _nation + '_' + _crew.rank))"/>
			</block>
		</block>
	</block>
	<block className="ChangeCrewToHirePersonality">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="action" value="'click';'changeCrewToHirePersonality';{}"/>
		<bind name="transition" value="mouseDown; 0.05; {alpha: 1}; {alpha: 0.6}"/>
		<bind name="transition" value="rollOver; 0.1; {alpha: 0.8}; {alpha: 1}"/>
		<block className="button_dock" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-3px"/>
				<marginBottom value="-5px"/>
				<marginLeft value="-5px"/>
				<marginRight value="-4px"/>
			</style>
		</block>
		<block>
			<style>
				<hitTest value="false"/>
			</style>
			<block className="button_update" type="native"/>
			<block type="text">
				<style>
					<marginLeft value="4px"/>
					<marginTop value="-3px"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<text value="IDS_CHANGE_COMMANDER"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CrewExperienceBar">
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'selectedShipCrew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'selectedShipCrew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'crewsSingleton'; ['dockEntity.crewData.evUpdate']; dockEntity.crewData"/>
		<block>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_CREWEXP_TO_NEXT_SKILLPOINT'}"/>
			<bind name="visible" value="	(selectedShipCrewRetraining.isInAdaptation != true) &amp;&amp; (selectedShipCrew.level &lt; crewsSingleton.maxLevel)"/>
			<block className="indicator_progress_bar_lightgreen" type="native">
				<style>
					<width value="150px"/>
				</style>
				<bind name="value" value="selectedShipCrew.experience"/>
				<bind name="maximum" value="selectedShipCrew.experienceToRichNextLevel"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(selectedShipCrew.level &gt;= crewsSingleton.maxLevel) &amp;&amp; (selectedShipCrewRetraining.isInAdaptation != true)"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CONVERTED_TO_ELITE_XP_HINT'}"/>
			<block type="text">
				<style>
					<marginTop value="2px"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<text value="IDS_HIGHEST_RANK"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(selectedShipCrewRetraining.isInAdaptation == true)"/>
			<block className="indicator_progress_bar_red" type="native">
				<style>
					<width value="150px"/>
				</style>
				<bind name="value" value="selectedShipCrewRetraining.adaptationExperienceEarned"/>
				<bind name="maximum" value="selectedShipCrewRetraining.adaptationExperiencePenalty"/>
			</block>
		</block>
		<block>
			<style>
				<marginTop value="-1px"/>
				<marginBottom value="-1px"/>
			</style>
			<bind name="visible" value="	(selectedShipCrewRetraining.isInAdaptation == true) ||
						((selectedShipCrewRetraining.isInAdaptation != true) &amp;&amp; (selectedShipCrew.level &lt; crewsSingleton.maxLevel))"/>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_CREWEXP'}"/>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="class" value="selectedShipCrewRetraining.isInAdaptation 	? '$FontColorCompareNegative' : '$FontColorDefault'"/>
					<bind name="text" value="(selectedShipCrewRetraining.isInAdaptation 	? format(selectedShipCrewRetraining.adaptationExperienceEarned) 
																		: format(selectedShipCrew.experience))"/>
				</block>
			</block>
			<block type="text">
				<style>
					<marginLeft value="1px"/>
					<marginRight value="-2px"/>
					<alpha value="0.7"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="class" value="selectedShipCrewRetraining.isInAdaptation ? '$FontColorCompareNegative' : '$FontColorDefault'"/>
				<bind name="text" value="'/'"/>
			</block>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; selectedShipCrewRetraining.isInAdaptation 	? {tooltipText: 'IDS_HINT_CREWEXP_TO_ADAPTATION'} 
																						: {tooltipText: 'IDS_HINT_CREWEXP_TO_NEXT_SKILLPOINT'}"/>
				<block type="text">
					<style>
						<marginTop value="2px"/>
						<alpha value="0.7"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="selectedShipCrewRetraining.isInAdaptation 	? '$FontColorCompareNegative' : '$FontColorDefault'"/>
					<bind name="text" value="(selectedShipCrewRetraining.isInAdaptation 	? format(selectedShipCrewRetraining.adaptationExperiencePenalty) 
																		: format(selectedShipCrew.experienceToRichNextLevel))"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CrewSkillPointItem">
		<block>
			<block>
				<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_HINT_SKILLPOINTS_FREE'}"/>
				<bind name="style" value="'alpha'; (_skillPoints == 0) ? 0.5 : 1"/>
				<block type="text">
					<bind name="class" value="'$TextHeaderWhiteBold'"/>
					<bind name="text" value="_skillPoints"/>
				</block>
			</block>
			<block>
				<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_HINT_SKILLPOINTS_COMMON'}"/>
				<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="_allSkillPoints"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<css name="$RepeatMarginsForTasks">
		<marginTop value="720:5,1080:15ah"/>
		<marginBottom value="720:5,1080:15ah"/>
		<marginLeft value="1280:5,1920:15aw"/>
		<marginRight value="1280:5,1920:15aw"/>
	</css>
	<block className="ChooseTask">
		<bind name="primaryEntityDH" value="'campaign'; CC.campaignParams; _curCampaignId"/>
		<bind name="watchDH" value="'campaignState'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.state"/>
		<bind name="watchDH" value="'campaignMissionsStates'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.missionsStates"/>
		<bind name="watchDH" value="'campaignName'; []; campaign.campaignParams.name"/>
		<bind name="watchDH" value="'campaignIsActivated'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isActivated"/>
		<bind name="watchDH" value="'campaignAllMissions'; []; campaign.campaignParams.allMissions"/>
		<bind name="watchDH" value="'campaignMainTask'; []; campaign.campaignParams.mainTask"/>
		<bind name="watchDH" value="'campaignMapPositions'; []; campaign.campaignParams.mapPositions"/>
		<bind name="watchDH" value="'campaignCountTasks'; []; campaign.campaignParams.countTasks"/>
		<bind name="watchDH" value="'campaignStartTime'; []; campaign.campaignParams.startTime"/>
		<bind name="watchDH" value="'campaignEndTime'; []; campaign.campaignParams.endTime"/>
		<bind name="watchDH" value="'campaignIsNarrative'; []; campaign.campaignParams.isNarrative"/>
		<bind name="watchDH" value="'campaignToken'; []; campaign.campaignParams.token"/>
		<bind name="watchDH" value="'campaignIsViewed'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isViewed"/>
		<bind name="watch" value="'campaignNeedToken'; campaignState == 0 &amp;&amp; campaignToken != ''"/>
		<bind name="watchDH" value="'campaignCountLootedTasks'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.countLootedTasks"/>
		<bind name="primaryEntityDH" value="'mission'; CC.campaignMissionParams; _curMissionId"/>
		<bind name="watchDH" value="'usualTasks';[]; mission.campaignMissionParams.usualTasks"/>
		<bind name="watchDH" value="'isNarrative'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isNarrative"/>
		<bind name="handleEventDH" value="'campaign.campaignParams.evUpdateVisibility'; 'onUpdateCampaignVisibility'"/>
		<bind name="action" value="'onUpdateCampaignVisibility'; 'campaignState.campaigns'"/>
		<styleClass value="$Fullsize"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="scroll_line" type="native">
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="-1px"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<height value="100px"/>
					<position value="absolute"/>
					<bottom value="-100px"/>
				</style>
				<block className="gradient_half_sphere" type="native">
					<style>
						<width value="100%"/>
						<height value="110%"/>
					</style>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="12px"/>
				</style>
				<bind name="style" value="'marginRight'; isNarrative ? '1280:250,1920:340aw' : '1280:20,1920:40aw'"/>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="repeat" value="campaignAllMissions; 'MissionCarouselItem'; {_curCampaignId: _curCampaignId, _mapPosition: campaignMapPositions, _curMissionId: _curMissionId}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<marginRight value="1280:20,1920:40aw"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<marginBottom value="2sh"/>
						<marginTop value="2sh"/>
					</style>
					<block>
						<styleClass value="$MiddleAligned"/>
						<bind name="instance" value="'WindowTaskHeaderInstruction'; {_curMissionId: _curMissionId, _curCampaignId: _curCampaignId}"/>
					</block>
					<block>
						<style>
							<width value="100%"/>
							<height value="25sh"/>
							<top value="98px"/>
							<position value="absolute"/>
						</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 className="gradient_half_sphere" type="native">
							<style>
								<alpha value="0.5"/>
							</style>
							<styleClass value="$Fullsize"/>
						</block>
					</block>
				</block>
				<block>
					<styleClass value="$Fullsize"/>
					<styleClass value="$DefaultScrollBar"/>
					<style>
						<flow value="htile"/>
						<align value="center"/>
						<overflow value="scroll"/>
						<marginTop value="2.5sh"/>
					</style>
					<bind name="repeat" value="usualTasks; 'TaskItem'; {_isShipSuitable: true, _isBattleSuitable: true, _needMargins: true, _isUseless: false}"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="campaign.campaignParams.isNarrative"/>
				<bind name="instance" value="'CampaignDescription'; {_text: 'IDS_' + toUpperCase(tr(mission.campaignMissionParams.name)) + '_DESCR'}"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<css name="$TaskItemInnerPicked">
		<width value="230px"/>
		<top value="0px"/>
		<left value="0px"/>
		<height value="80px"/>
	</css>
	<css name="$TaskItemInner">
		<width value="220px"/>
		<top value="5px"/>
		<left value="5px"/>
		<height value="70px"/>
	</css>
	<block className="TaskItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="primaryEntityDH" value="'campaignTaskEntity'; CC.campaignTaskParams; _taskID ? _taskID : $value"/>
		<bind name="primaryEntityDH" value="'mission'; CC.campaignMissionParams; campaignTaskEntity.campaignTaskParams.missionID"/>
		<bind name="primaryEntityDH" value="'campaign'; CC.campaignParams; campaignTaskEntity.campaignTaskParams.campaignID"/>
		<bind name="watchDH" value="'campaignState'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.state"/>
		<bind name="watchDH" value="'campaignMissionsStates'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.missionsStates"/>
		<bind name="watchDH" value="'campaignName'; []; campaign.campaignParams.name"/>
		<bind name="watchDH" value="'campaignIsActivated'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isActivated"/>
		<bind name="watchDH" value="'campaignAllMissions'; []; campaign.campaignParams.allMissions"/>
		<bind name="watchDH" value="'campaignMainTask'; []; campaign.campaignParams.mainTask"/>
		<bind name="watchDH" value="'campaignMapPositions'; []; campaign.campaignParams.mapPositions"/>
		<bind name="watchDH" value="'campaignCountTasks'; []; campaign.campaignParams.countTasks"/>
		<bind name="watchDH" value="'campaignStartTime'; []; campaign.campaignParams.startTime"/>
		<bind name="watchDH" value="'campaignEndTime'; []; campaign.campaignParams.endTime"/>
		<bind name="watchDH" value="'campaignIsNarrative'; []; campaign.campaignParams.isNarrative"/>
		<bind name="watchDH" value="'campaignToken'; []; campaign.campaignParams.token"/>
		<bind name="watchDH" value="'campaignIsViewed'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isViewed"/>
		<bind name="watch" value="'campaignNeedToken'; campaignState == 0 &amp;&amp; campaignToken != ''"/>
		<bind name="watchDH" value="'campaignCountLootedTasks'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.countLootedTasks"/>
		<bind name="watchDH" value="'missionState';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.state"/>
		<bind name="watchDH" value="'state';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.state"/>
		<bind name="watchDH" value="'isLooted';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.isLooted"/>
		<bind name="watchDH" value="'taskProgress';['campaignTaskEntity.progress.evChanged']; campaignTaskEntity.progress.value"/>
		<bind name="watchDH" value="'max';[]; campaignTaskEntity.progress.max"/>
		<bind name="watchDH" value="'number';[]; campaignTaskEntity.campaignTaskParams.number"/>
		<bind name="watchDH" value="'uiNumber';[]; mission.campaignMissionParams.uiNumber"/>
		<bind name="watchDH" value="'isMainTask';[]; campaignTaskEntity.campaignTaskParams.isMainTask"/>
		<bind name="watchDH" value="'lootStars';[]; campaignTaskEntity.campaignTaskParams.lootStars"/>
		<bind name="watchDH" value="'costUnlock';[]; campaignTaskEntity.campaignTaskParams.costUnlock"/>
		<bind name="watchDH" value="'bgIconID';[]; campaignTaskEntity.campaignTaskParams.bgIconID"/>
		<bind name="watchDH" value="'stars';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.stars"/>
		<bind name="watchDH" value="'rewards';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskParams.rewards"/>
		<bind name="watch" value="'canOpenFinalTask'; isMainTask &amp;&amp; (stars &gt;= costUnlock) &amp;&amp; (state == 0)"/>
		<bind name="watch" value="'isInteractive'; (state == 1) || (state == 2) || (state == 3)"/>
		<bind name="watch" value="'isHighlighted'; (state == 2) || (state == 3) || (canOpenFinalTask)"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="firstEntityDH" value="'slotsEntity'; CC.constantsCampaignSlots"/>
		<bind name="watchDH" value="'common'; []; slotsEntity.constantsCampaignSlots.common"/>
		<bind name="watchDH" value="'premium'; []; slotsEntity.constantsCampaignSlots.premium"/>
		<bind name="watch" value="'availableSlots'; 		(isPremiumAccount ? (common + premium) : common)"/>
		<bind name="collectionDH" value="CC.campaignTaskPlayer; 'choosenTasks'; 'active'"/>
		<bind name="watch" value="'haveFreeSlot'; 		(choosenTasks.length &lt; availableSlots)"/>
		<bind name="watchDH" value="'missionStartTime';[]; mission.campaignMissionParams.startTime"/>
		<style>
			<width value="230px"/>
			<height value="80px"/>
		</style>
		<bind name="class" value="_needMargins ? '$RepeatMarginsForTasks' : null"/>
		<block>
			<styleClass value="$Fullsize"/>
			<bind name="class" value="	isHighlighted ? '$TaskItemInnerPicked'
									  : '$TaskItemInner'"/>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="style" value="'colorMatrixFilter'; 	
												!isInteractive	? '0 -95 0 0' :
												isLooted 		? '0 -50 0 0'
																: '0 0 0 0'"/>
				<bind name="style" value="'alpha'; state == 0 || !isInteractive ? 0.5 : 1"/>
				<block>
					<styleClass value="$FullsizeAbsolute"/>
					<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>
						<bind name="name" value="'TaskItem_' + number"/>
						<styleClass value="$FullsizeAbsolute"/>
						<style>
							<backgroundSize value="cover"/>
						</style>
						<bind name="style" value="'backgroundImage'; 'url:../campaigns/bg_task_item/' + 'task_bg_campaign_' + (bgIconID ? bgIconID : number) + '.png'"/>
					</block>
					<block className="inner_panel" type="native">
						<style>
							<alpha value="2.5"/>
						</style>
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block className="white_panel_gradient" type="native">
						<bind name="transition" value="rollOver; 0.15; {alpha: 0}; {alpha: 0.7}"/>
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block className="hint_panel_bold" type="native">
						<style>
							<marginTop value="-2px"/>
							<marginBottom value="-2px"/>
							<marginLeft value="-2px"/>
							<marginRight value="-2px"/>
						</style>
						<bind name="transition" value="isHighlighted; 0.15; {alpha: 0}; {alpha: 1}"/>
						<styleClass value="$FullsizeAbsolute"/>
					</block>
					<block>
						<style>
							<width value="56%"/>
							<height value="100%"/>
							<alpha value="0.4"/>
							<backgroundSize value="cover"/>
						</style>
						<bind name="style" value="'alpha'; (isMainTask &amp;&amp; (state == 0)) ? 0.3 : 0.6"/>
						<bind name="style" value="'backgroundImage'; (state == CAMPAIGN_STATE_COMPLETED) ? 	'url:../campaigns/task_item_icons/' + campaignName + '_done.png' : 
																							'url:../campaigns/task_item_icons/' + campaignName + '.png'"/>
						<block>
							<bind name="visible" value="(state != 0)"/>
							<style>
								<width value="51%"/>
								<height value="100%"/>
							</style>
							<block type="text">
								<style>
									<alpha value="0.6"/>
								</style>
								<styleClass value="$MiddleAligned"/>
								<styleClass value="$MiddleVAligned"/>
								<styleClass value="$TextAccentBoldAccountLevel1"/>
								<bind name="text" value="uiNumber"/>
							</block>
						</block>
					</block>
					<block>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<left value="70px"/>
							<position value="absolute"/>
						</style>
						<block type="text">
							<style>
								<maxWidth value="140"/>
							</style>
							<styleClass value="$TextLargeHeaderBold"/>
							<bind name="text" value="isMainTask 	? (toUpperCase(tr('IDS_FINAL_TASK')))
												: (toUpperCase(tr('IDS_CAMPAIGN_TASK'))) + ' ' + number"/>
						</block>
						<block className="indicator_progress_bar" type="native">
							<bind name="visible" value="((taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max) )"/>
							<style>
								<width value="140px"/>
							</style>
							<bind name="value" value="(taskProgress / max) * 10"/>
						</block>
						<block>
							<bind name="visible" value="((missionState == 0) || (missionState == 2)) &amp;&amp; !isMainTask"/>
							<style>
								<marginTop value="3px"/>
							</style>
							<block>
								<bind name="repeat" value="lootStars; 'StarsEarnedEnable'"/>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
						</block>
					</block>
				</block>
				<block>
					<bind name="visible" value="state == 0"/>
					<style>
						<width value="64px"/>
						<height value="100%"/>
						<position value="absolute"/>
					</style>
					<block>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$MiddleVAligned"/>
						<block className="icon_locked_mc" type="native"/>
					</block>
				</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>
			<bind name="dispatch" value="'doubleClick'; 'Tooltip.Close'"/>
			<block>
				<style>
					<backgroundColor value="0x01000000"/>
				</style>
				<styleClass value="$FullsizeAbsolute"/>
				<params>
					<param name="doubleClickEnabled" value="true"/>
				</params>
				<bind name="soundSet" value="'default_button'"/>
				<bind name="tooltip" value="'TaskItemTooltip'; {	_taskID: campaignTaskEntity.campaignTaskParams.id}"/>
				<bind name="tooltip" value="'TaskItemInfotip'; {	_taskID: campaignTaskEntity.campaignTaskParams.id}; TooltipBehaviour.infotip"/>
				<bind name="action" value="'doubleClick';  (taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max) 													? null :
										  ((state == 1) &amp;&amp; haveFreeSlot &amp;&amp; (missionStartTime == 0))				? 'CampaignsProxy.activateTask' :
										  ((state == 2) &amp;&amp; ((taskProgress == 0) || (taskProgress == null)))	? 'CampaignsProxy.deactivateTask'
																																		: null ; { taskID: campaignTaskEntity.campaignTaskParams.id}"/>
				<bind name="request" value="'doubleClick'; ((taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max)) 	? 'CampaignsProxy.deactivateTask'
																						: null; {taskID: campaignTaskEntity.campaignTaskParams.id}"/>
			</block>
			<block>
				<bind name="visible" value="(state == 3) || (canOpenFinalTask)"/>
				<styleClass value="$FullsizeAbsolute"/>
				<block>
					<style>
						<alpha value="0.75"/>
						<hitTest value="false"/>
					</style>
					<styleClass value="$FullsizeAbsolute"/>
					<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_blurmap5_feather" 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 className="modal_panel" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<bind name="style" value="'alpha'; optionData.contrast ? 1.0 : 0.8"/>
					</block>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<width value="100%"/>
						<marginLeft value="6px"/>
						<marginRight value="6px"/>
					</style>
					<block>
						<styleClass value="$MiddleAligned"/>
						<style>
							<height value="40px"/>
						</style>
						<block>
							<bind name="visible" value="((missionState == 0) || (missionState == 2)) &amp;&amp; !isMainTask"/>
							<styleClass value="$MiddleVAligned"/>
							<bind name="repeat" value="lootStars; 'StarsEarnedEnable'"/>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
						<block>
							<bind name="visible" value="!isLooted"/>
							<style>
								<marginLeft value="6px"/>
							</style>
							<bind name="tooltip" value="'RewardContainerTooltip'; { _rewards: rewards, _tooltipHeader: 'IDS_REWARDS_CAMPAIGN_TASK', _isDH20: true}"/>
							<block className="icon_giftbox_small" type="native"/>
							<block>
								<bind name="visible" value="isLooted"/>
								<style>
									<position value="absolute"/>
									<top value="21px"/>
									<left value="21px"/>
								</style>
								<bind name="scaleX" value="0.85"/>
								<bind name="scaleY" value="0.85"/>
								<block className="icon_issued_small" type="native">
									<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
									<bind name="gotoAndStop!" value="'issued'"/>
								</block>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block className="button_default" type="native">
						<style>
							<width value="100%"/>
						</style>
						<bind name="focus" value="0; true"/>
						<bind name="label" value=" 	(state == 3) &amp;&amp; !(isLooted)	? toUpperCase(tr('IDS_TAKE_REWARD')) :
									(state == 3) &amp;&amp; (isLooted) 	? toUpperCase(tr('IDS_TAKE_STARS'))  :
									(canOpenFinalTask) 									? toUpperCase(tr('IDS_OPEN_FINAL_TASK'))
																						: null"/>
						<bind name="action" value="'buttonClick';  	(state == 3) 	? 'CampaignsProxy.takeReward' :
													(canOpenFinalTask) 					? 'CampaignsProxy.unlockTask'
																						: null ; { taskID: campaignTaskEntity.campaignTaskParams.id}"/>
					</block>
				</block>
			</block>
			<bind name="watch" value="'showGiftbox'; ((rollOver &amp;&amp; !(canOpenFinalTask))) &amp;&amp; (state != 3)"/>
			<block>
				<bind name="fade" value="showGiftbox; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}; {alpha: 0, top: 5}; 2"/>
				<style>
					<right value="5px"/>
					<bottom value="1px"/>
					<position value="absolute"/>
				</style>
				<bind name="style" value="'hitTest'; showGiftbox"/>
				<bind name="tooltip" value="'RewardContainerTooltip'; { _rewards: rewards, _tooltipHeader: 'IDS_REWARDS_CAMPAIGN_TASK', _isDH20: true}"/>
				<block>
					<bind name="style" value="'alpha'; (isLooted ? 0.5 : 1)"/>
					<block className="icon_giftbox_small" type="native"/>
					<block>
						<bind name="visible" value="isLooted"/>
						<style>
							<position value="absolute"/>
							<top value="21px"/>
							<left value="21px"/>
						</style>
						<bind name="scaleX" value="0.85"/>
						<bind name="scaleY" value="0.85"/>
						<block className="icon_issued_small" type="native">
							<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
							<bind name="gotoAndStop!" value="'issued'"/>
						</block>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="isLooted &amp;&amp; !_inTaskPicker"/>
				<style>
					<backgroundImage value="symbol:quest_done_icon"/>
					<top value="5px"/>
					<right value="26px"/>
					<position value="absolute"/>
					<hitTest value="false"/>
				</style>
			</block>
			<bind name="watch" value="'showWarning'; (!_isShipSuitable || !_isBattleSuitable || _isUseless) &amp;&amp; (state != 3)"/>
			<bind name="watch" value="'unsuitableShipAndBattle'; !_isShipSuitable &amp;&amp; !_isBattleSuitable"/>
			<block>
				<bind name="fade" value="showWarning; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 2"/>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<hitTest value="false"/>
				</style>
				<block>
					<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'optionData'"/>
					<styleClass value="$FullsizeAbsolute"/>
					<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_blurmap5_feather" 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 className="modal_panel" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<bind name="style" value="'alpha'; optionData.contrast ? 1.0 : 0.8"/>
					</block>
				</block>
				<block type="text">
					<bind name="fade" value="showWarning; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2; 0.05"/>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<style>
						<maxWidth value="210"/>
						<textAlign value="center"/>
					</style>
					<bind name="text" value="unsuitableShipAndBattle					? toUpperCase(tr('IDS_TASK_UNSUITABLE_BATTLE_AND_SHIP')) :
							!(_isShipSuitable) 						? toUpperCase(tr('IDS_TASK_UNSUITABLE_SHIP')) :
							!(_isBattleSuitable) 					? toUpperCase(tr('IDS_TASK_UNSUITABLE_BATTLE')) :
							 (_isUseless) 							? toUpperCase(tr('IDS_TASK_IS_USELESS'))
																	: ''"/>
				</block>
			</block>
		</block>
	</block>
	<block className="TaskItemTooltip">
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="collectionDH" value="CC.campaignTaskPlayer; 'choosenTasks'; 'active'"/>
		<bind name="firstEntityDH" value="'slotsEntity'; CC.constantsCampaignSlots"/>
		<bind name="primaryEntityDH" value="'campaignTaskEntity'; CC.campaignTaskParams; _taskID"/>
		<bind name="primaryEntityDH" value="'mission'; CC.campaignMissionParams; campaignTaskEntity.campaignTaskParams.missionID"/>
		<bind name="primaryEntityDH" value="'campaign'; CC.campaignParams; campaignTaskEntity.campaignTaskParams.campaignID"/>
		<bind name="watchDH" value="'campaignState'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.state"/>
		<bind name="watchDH" value="'campaignMissionsStates'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.missionsStates"/>
		<bind name="watchDH" value="'campaignName'; []; campaign.campaignParams.name"/>
		<bind name="watchDH" value="'campaignIsActivated'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isActivated"/>
		<bind name="watchDH" value="'campaignAllMissions'; []; campaign.campaignParams.allMissions"/>
		<bind name="watchDH" value="'campaignMainTask'; []; campaign.campaignParams.mainTask"/>
		<bind name="watchDH" value="'campaignMapPositions'; []; campaign.campaignParams.mapPositions"/>
		<bind name="watchDH" value="'campaignCountTasks'; []; campaign.campaignParams.countTasks"/>
		<bind name="watchDH" value="'campaignStartTime'; []; campaign.campaignParams.startTime"/>
		<bind name="watchDH" value="'campaignEndTime'; []; campaign.campaignParams.endTime"/>
		<bind name="watchDH" value="'campaignIsNarrative'; []; campaign.campaignParams.isNarrative"/>
		<bind name="watchDH" value="'campaignToken'; []; campaign.campaignParams.token"/>
		<bind name="watchDH" value="'campaignIsViewed'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isViewed"/>
		<bind name="watch" value="'campaignNeedToken'; campaignState == 0 &amp;&amp; campaignToken != ''"/>
		<bind name="watchDH" value="'campaignCountLootedTasks'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.countLootedTasks"/>
		<bind name="watchDH" value="'missionState';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.state"/>
		<bind name="watchDH" value="'state';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.state"/>
		<bind name="watchDH" value="'isLooted';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.isLooted"/>
		<bind name="watchDH" value="'taskProgress';['campaignTaskEntity.progress.evChanged']; campaignTaskEntity.progress.value"/>
		<bind name="watchDH" value="'isMainTask';[]; campaignTaskEntity.campaignTaskParams.isMainTask"/>
		<bind name="watchDH" value="'costUnlock';[]; campaignTaskEntity.campaignTaskParams.costUnlock"/>
		<bind name="watchDH" value="'isActivated';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.isActivated"/>
		<bind name="watchDH" value="'goal';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskParams.goal"/>
		<bind name="watchDH" value="'rewards';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskParams.rewards"/>
		<bind name="watchDH" value="'stars';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.stars"/>
		<bind name="watchDH" value="'common'; []; slotsEntity.constantsCampaignSlots.common"/>
		<bind name="watchDH" value="'premium'; []; slotsEntity.constantsCampaignSlots.premium"/>
		<bind name="watchDH" value="'missionStartTime';[]; mission.campaignMissionParams.startTime"/>
		<bind name="watch" value="'canOpenFinalTask'; 	(isMainTask) &amp;&amp; (stars &gt;= costUnlock) &amp;&amp; (state == 0)"/>
		<bind name="watch" value="'availableSlots'; 		(isPremiumAccount ? (common + premium) : common)"/>
		<bind name="watch" value="'taskWithoutProgress'; (taskProgress == 0) || (taskProgress == null)"/>
		<bind name="watch" value="'haveFreeSlot'; 		(choosenTasks.length &lt; availableSlots)"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="350px"/>
			<hitTest value="false"/>
		</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="$FullsizeAbsolute"/>
		</block>
		<block className="hint_panel_bold" type="native">
			<bind name="visible" value="isActivated"/>
			<style>
				<marginTop value="-2px"/>
				<marginBottom value="-2px"/>
				<marginLeft value="-2px"/>
				<marginRight value="-2px"/>
				<alpha value="0.6"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'TaskItemHeader'; {_taskID: _taskID}"/>
			</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 className="TaskItemStatus">
				<bind name="visible" value="(state != 5)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$HugeMargins"/>
					<block>
						<bind name="visible" value="(state == 5 || isLooted)"/>
						<style>
							<backgroundImage value="symbol:quest_done_icon"/>
							<width value="22px"/>
							<height value="17px"/>
							<top value="4px"/>
							<marginRight value="3px"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<bind name="class" value="state == 2 || state == 3 ? '$FontColorDefault' : '$FontColorBlueish'"/>
						<style>
							<width value="100%"/>
						</style>
						<bind name="text" value="state == 2 &amp;&amp; isLooted ? 'IDS_TASK_IN_PROGRESS_REPEAT' :
						state == 2 ? 'IDS_TASK_IN_PROGRESS' :
						state == 3		? 'IDS_TASK_COMPLETED' :
						isLooted							? 'IDS_TASK_REPLAYABLE' :
						state == 0	? 'IDS_TASK_LOCKED'
															: 'IDS_TASK_NOT_DONE'"/>
					</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>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$HugeMargins"/>
					<bind name="instance" value="'GoalsItem'; { _entityId: goal }"/>
				</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>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="-2px"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<bind name="instance" value="'TaskContainerRestriction'; {_taskID: _taskID}"/>
			</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>
				<styleClass value="$HugeMargins"/>
				<block>
					<bind name="style" value="'alpha'; (isLooted ? 0.7 : 1)"/>
					<style>
						<marginRight value="16px"/>
					</style>
					<block className="icon_giftbox_small" type="native"/>
					<block>
						<bind name="visible" value="isLooted"/>
						<style>
							<position value="absolute"/>
							<top value="21px"/>
							<left value="23px"/>
						</style>
						<block className="icon_issued_small" type="native">
							<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
							<bind name="gotoAndStop!" value="'issued'"/>
						</block>
					</block>
				</block>
				<block type="text">
					<styleClass value="$MiddleVAligned"/>
					<style>
						<maxWidth value="240"/>
					</style>
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="!isLooted ? 'IDS_ADDITIONAL_REWARD_BEFORE' : 'IDS_ADDITIONAL_REWARD_AFTER'"/>
				</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>
		<block>
			<bind name="visible" value="	!_isInPostbattle &amp;&amp; ((state == 1) ||
											(state == 2) || (state == 3) || canOpenFinalTask)"/>
			<styleClass value="$HugeMargins"/>
			<bind name="instance" value="'MouseInstruction'; { 	_type: 'left', 
												_instructionText: 	(state == 1)								? 'IDS_SHOW_TASK_DETAILS' :
																	(state == 2 &amp;&amp; taskWithoutProgress) 	? 'IDS_SHOW_TASK_DETAILS' :
																	(state == 2 &amp;&amp; !taskWithoutProgress) 	? 'IDS_SHOW_TASK_DETAILS' :
																	(state == 3) 								? 'IDS_TAKE_REWARD':
																	(canOpenFinalTask) 												? 'IDS_OPEN_FINAL_TASK'
																							 										: '',
												_maxWidth: 300 }"/>
		</block>
		<block>
			<styleClass value="$HugeMargins"/>
			<style>
				<marginTop value="-6px"/>
			</style>
			<bind name="visible" value="	!_isInPostbattle &amp;&amp;
						((state == 1) &amp;&amp; haveFreeSlot &amp;&amp; missionStartTime == 0) || (state == 2)"/>
			<bind name="instance" value="'MouseInstruction'; { 	_type: 'double_left', 
												_instructionText: 	(state == 1) 	  						  ? 'IDS_TASK_ACTIVATE' :
																	(state == 2 &amp;&amp; !taskWithoutProgress) ? 'IDS_TASK_CANCEL_WITH_PROGRESS' :
																	(state == 2)						  ? 'IDS_TASK_CANCEL' 
																							 									  : '',
												_maxWidth: 300 }"/>
		</block>
	</block>
	<block className="TaskItemInfotip">
		<bind name="primaryEntityDH" value="'campaignTaskEntity'; CC.campaignTaskParams; _taskID"/>
		<bind name="primaryEntityDH" value="'mission'; CC.campaignMissionParams; campaignTaskEntity.campaignTaskParams.missionID"/>
		<bind name="primaryEntityDH" value="'campaign'; CC.campaignParams; campaignTaskEntity.campaignTaskParams.campaignID"/>
		<bind name="watchDH" value="'campaignState'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.state"/>
		<bind name="watchDH" value="'campaignMissionsStates'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.missionsStates"/>
		<bind name="watchDH" value="'campaignName'; []; campaign.campaignParams.name"/>
		<bind name="watchDH" value="'campaignIsActivated'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isActivated"/>
		<bind name="watchDH" value="'campaignAllMissions'; []; campaign.campaignParams.allMissions"/>
		<bind name="watchDH" value="'campaignMainTask'; []; campaign.campaignParams.mainTask"/>
		<bind name="watchDH" value="'campaignMapPositions'; []; campaign.campaignParams.mapPositions"/>
		<bind name="watchDH" value="'campaignCountTasks'; []; campaign.campaignParams.countTasks"/>
		<bind name="watchDH" value="'campaignStartTime'; []; campaign.campaignParams.startTime"/>
		<bind name="watchDH" value="'campaignEndTime'; []; campaign.campaignParams.endTime"/>
		<bind name="watchDH" value="'campaignIsNarrative'; []; campaign.campaignParams.isNarrative"/>
		<bind name="watchDH" value="'campaignToken'; []; campaign.campaignParams.token"/>
		<bind name="watchDH" value="'campaignIsViewed'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isViewed"/>
		<bind name="watch" value="'campaignNeedToken'; campaignState == 0 &amp;&amp; campaignToken != ''"/>
		<bind name="watchDH" value="'campaignCountLootedTasks'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.countLootedTasks"/>
		<bind name="firstEntityDH" value="'slotsEntity'; CC.constantsCampaignSlots"/>
		<bind name="collectionDH" value="CC.campaignTaskPlayer; 'choosenTasks'; 'active'"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="watchDH" value="'stars';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.stars"/>
		<bind name="watchDH" value="'state';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.state"/>
		<bind name="watchDH" value="'isLooted';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.isLooted"/>
		<bind name="watchDH" value="'goal';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskParams.goal"/>
		<bind name="watchDH" value="'rewards';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskParams.rewards"/>
		<bind name="watchDH" value="'taskProgress';['campaignTaskEntity.progress.evChanged']; campaignTaskEntity.progress.value"/>
		<bind name="watchDH" value="'max';[]; campaignTaskEntity.progress.max"/>
		<bind name="watchDH" value="'common'; []; slotsEntity.constantsCampaignSlots.common"/>
		<bind name="watchDH" value="'premium'; []; slotsEntity.constantsCampaignSlots.premium"/>
		<bind name="watchDH" value="'isMainTask';[]; campaignTaskEntity.campaignTaskParams.isMainTask"/>
		<bind name="watchDH" value="'costUnlock';[]; campaignTaskEntity.campaignTaskParams.costUnlock"/>
		<bind name="watchDH" value="'missionState';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.state"/>
		<bind name="watch" value="'canOpenFinalTask'; 	(isMainTask) &amp;&amp; (stars &gt;= costUnlock) &amp;&amp; (state == 0)"/>
		<bind name="watch" value="'availableSlots'; 		(isPremiumAccount ? (common + premium) : common)"/>
		<bind name="watch" value="'haveFreeSlot'; 		(choosenTasks.length &lt; availableSlots)"/>
		<bind name="watchDH" value="'missionStartTime';[]; mission.campaignMissionParams.startTime"/>
		<bind name="serverTime" value="'serverTime'"/>
		<bind name="watch" value="'missionTimeToStart'; missionStartTime - serverTime"/>
		<style>
			<width value="350px"/>
		</style>
		<styleClass value="$VerticalInfotipBehaviourCenter"/>
		<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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginTop value="-8px"/>
				<marginRight value="-13px"/>
				<marginLeft value="-13px"/>
				<marginBottom value="-16px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="instance" value="'TaskItemHeader'; {_taskID: _taskID}"/>
		</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 className="TaskItemStatus">
			<bind name="visible" value="(state != 5)"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$HugeMargins"/>
				<block>
					<bind name="visible" value="(state == 5 || isLooted)"/>
					<style>
						<backgroundImage value="symbol:quest_done_icon"/>
						<width value="22px"/>
						<height value="17px"/>
						<top value="4px"/>
						<marginRight value="3px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="class" value="state == 2 || state == 3 ? '$FontColorDefault' : '$FontColorBlueish'"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="text" value="state == 2 &amp;&amp; isLooted ? 'IDS_TASK_IN_PROGRESS_REPEAT' :
						state == 2 ? 'IDS_TASK_IN_PROGRESS' :
						state == 3		? 'IDS_TASK_COMPLETED' :
						isLooted							? 'IDS_TASK_REPLAYABLE' :
						state == 0	? 'IDS_TASK_LOCKED'
															: 'IDS_TASK_NOT_DONE'"/>
				</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>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$HugeMargins"/>
				<bind name="instance" value="'GoalsItem'; { _entityId: goal }"/>
			</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>
		<block>
			<style>
				<width value="100%"/>
				<marginBottom value="-2px"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<bind name="instance" value="'TaskContainerRestriction'; {_taskID: _taskID}"/>
		</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>
			<styleClass value="$HugeMargins"/>
			<style>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="tooltip" value="'RewardContainerTooltip'; { _rewards: rewards, _tooltipHeader: 'IDS_REWARDS_CAMPAIGN_TASK', _isDH20: true}"/>
			<block>
				<style>
					<marginRight value="16px"/>
				</style>
				<bind name="style" value="'alpha'; (isLooted ? 0.7 : 1)"/>
				<block className="icon_giftbox_small" type="native"/>
				<block>
					<bind name="visible" value="isLooted"/>
					<style>
						<position value="absolute"/>
						<top value="21px"/>
						<left value="23px"/>
					</style>
					<block className="icon_issued_small" type="native">
						<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
						<bind name="gotoAndStop!" value="'issued'"/>
					</block>
				</block>
			</block>
			<block type="text">
				<style>
					<maxWidth value="240"/>
				</style>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="!isLooted ? 'IDS_ADDITIONAL_REWARD_BEFORE' : 'IDS_ADDITIONAL_REWARD_AFTER'"/>
			</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>
			<bind name="visible" value="(state == 2) || (state == 3) || canOpenFinalTask ||
					   ((state == 1) &amp;&amp; haveFreeSlot &amp;&amp; (missionStartTime == 0))"/>
			<styleClass value="$HugeMargins"/>
			<block className="button_default" type="native">
				<params>
					<param name="name" value="ActivateButtonTask"/>
				</params>
				<style>
					<width value="210px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="focus" value="1; true"/>
				<bind name="label" value=" 	(state == 1) 			 	? toUpperCase(tr('IDS_TASK_ACTIVATE'))  :
							(state == 2) 			 	? toUpperCase(tr('IDS_TASK_CANCEL'))  :
							(state == 3) &amp;&amp; !(isLooted)	? toUpperCase(tr('IDS_TAKE_REWARD')) :
							(state == 3) &amp;&amp; (isLooted) 	? toUpperCase(tr('IDS_TAKE_STARS'))  :
							(canOpenFinalTask) 									? toUpperCase(tr('IDS_OPEN_FINAL_TASK'))
																				: null"/>
				<bind name="action" value="'buttonClick';  ((taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max)) 	? null 
																						: (state == 1) 		? 'CampaignsProxy.activateTask'
																						: (state == 2) 	? 'CampaignsProxy.deactivateTask'
																						: (state == 3) 			? 'CampaignsProxy.takeReward'
																						: (canOpenFinalTask)						? 'CampaignsProxy.unlockTask'
																																	: null ; { taskID: campaignTaskEntity.campaignTaskParams.id}"/>
				<bind name="dispatch" value="'buttonClick'; 'Tooltip.Close'; {}"/>
				<bind name="request" value="'buttonClick'; ((taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max)) 	? 'CampaignsProxy.deactivateTask'
																						: null; {taskID: campaignTaskEntity.campaignTaskParams.id}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="	(state == 5) || (state == 0) || ((state == 1) &amp;&amp; !(haveFreeSlot))
						|| ((state == 1) &amp;&amp; (missionStartTime != 0))"/>
			<styleClass value="$HugeMargins"/>
			<block type="text">
				<style>
					<maxWidth value="320"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<bind name="timeFormat" value="missionTimeToStart; 'HIGHEST'; 'formatStartTime'; true"/>
				<bind name="text" value="(state == 5) 						? 'IDS_IMPOSSIBLE_TO_CHOOSE_TASK':
						((state == 1) &amp;&amp; !(haveFreeSlot)) 	? 'IDS_TOOLTIP_NEED_FREE_SLOT':
						(state == 0) &amp;&amp; (isMainTask) &amp;&amp; (missionState != 0)	? 'IDS_TOOLTIP_FINAL_TASK_LOCKED':
						(state == 0)							? campaignNeedToken 	? 'IDS_TOOLTIP_CAMPAIGN_NEED_TOKEN' :
																					  missionStartTime != 0 ? subst('IDS_LOCKED_MISSION_TIME_LEFT_TASK_TOOLTIP', [], {timeLeft: formatStartTime}) :
																					 'IDS_TOOLTIP_TASK_LOCKED' : ''"/>
			</block>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<marginTop value="-8px"/>
			</style>
			<bind name="gotoAndStop!" value="'left'"/>
			<params>
				<param name="name" value="pinLeft"/>
			</params>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<marginTop value="-8px"/>
				<right value="-8px"/>
			</style>
			<bind name="gotoAndStop!" value="'right'"/>
			<params>
				<param name="name" value="pinRight"/>
			</params>
		</block>
	</block>
	<block className="TaskItemStatus">
		<bind name="visible" value="(state != 5)"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$HugeMargins"/>
			<block>
				<bind name="visible" value="(state == 5 || isLooted)"/>
				<style>
					<backgroundImage value="symbol:quest_done_icon"/>
					<width value="22px"/>
					<height value="17px"/>
					<top value="4px"/>
					<marginRight value="3px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="class" value="state == 2 || state == 3 ? '$FontColorDefault' : '$FontColorBlueish'"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="text" value="state == 2 &amp;&amp; isLooted ? 'IDS_TASK_IN_PROGRESS_REPEAT' :
						state == 2 ? 'IDS_TASK_IN_PROGRESS' :
						state == 3		? 'IDS_TASK_COMPLETED' :
						isLooted							? 'IDS_TASK_REPLAYABLE' :
						state == 0	? 'IDS_TASK_LOCKED'
															: 'IDS_TASK_NOT_DONE'"/>
			</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>
	<block className="TaskItemHeader">
		<bind name="primaryEntityDH" value="'campaignTaskEntity'; CC.campaignTaskParams; _taskID"/>
		<bind name="primaryEntityDH" value="'mission'; CC.campaignMissionParams; campaignTaskEntity.campaignTaskParams.missionID"/>
		<bind name="primaryEntityDH" value="'campaign'; CC.campaignParams; campaignTaskEntity.campaignTaskParams.campaignID"/>
		<bind name="watchDH" value="'campaignState'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.state"/>
		<bind name="watchDH" value="'campaignMissionsStates'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.missionsStates"/>
		<bind name="watchDH" value="'campaignName'; []; campaign.campaignParams.name"/>
		<bind name="watchDH" value="'campaignIsActivated'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isActivated"/>
		<bind name="watchDH" value="'campaignAllMissions'; []; campaign.campaignParams.allMissions"/>
		<bind name="watchDH" value="'campaignMainTask'; []; campaign.campaignParams.mainTask"/>
		<bind name="watchDH" value="'campaignMapPositions'; []; campaign.campaignParams.mapPositions"/>
		<bind name="watchDH" value="'campaignCountTasks'; []; campaign.campaignParams.countTasks"/>
		<bind name="watchDH" value="'campaignStartTime'; []; campaign.campaignParams.startTime"/>
		<bind name="watchDH" value="'campaignEndTime'; []; campaign.campaignParams.endTime"/>
		<bind name="watchDH" value="'campaignIsNarrative'; []; campaign.campaignParams.isNarrative"/>
		<bind name="watchDH" value="'campaignToken'; []; campaign.campaignParams.token"/>
		<bind name="watchDH" value="'campaignIsViewed'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isViewed"/>
		<bind name="watch" value="'campaignNeedToken'; campaignState == 0 &amp;&amp; campaignToken != ''"/>
		<bind name="watchDH" value="'campaignCountLootedTasks'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.countLootedTasks"/>
		<bind name="watchDH" value="'state';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.state"/>
		<bind name="watchDH" value="'taskProgress';['campaignTaskEntity.progress.evChanged']; campaignTaskEntity.progress.value"/>
		<bind name="watchDH" value="'max';[]; campaignTaskEntity.progress.max"/>
		<bind name="watchDH" value="'missionState';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.state"/>
		<bind name="watchDH" value="'number';[]; campaignTaskEntity.campaignTaskParams.number"/>
		<bind name="watchDH" value="'uiNumber';[]; mission.campaignMissionParams.uiNumber"/>
		<bind name="watchDH" value="'isMainTask';[]; campaignTaskEntity.campaignTaskParams.isMainTask"/>
		<bind name="watchDH" value="'lootStars';[]; campaignTaskEntity.campaignTaskParams.lootStars"/>
		<bind name="watchDH" value="'costUnlock';[]; campaignTaskEntity.campaignTaskParams.costUnlock"/>
		<bind name="watchDH" value="'bgIconID';[]; campaignTaskEntity.campaignTaskParams.bgIconID"/>
		<bind name="watchDH" value="'isLooted';['campaignTaskEntity.campaignTaskPlayer.evUpdate']; campaignTaskEntity.campaignTaskPlayer.isLooted"/>
		<style>
			<width value="100%"/>
			<height value="120px"/>
			<paddingTop value="2px"/>
			<paddingRight value="2px"/>
			<paddingLeft value="2px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:../campaigns/bg_task_item/' + 'task_bg_campaign_' + (bgIconID ? bgIconID : number) + '.png'"/>
			<block className="inner_panel" type="native">
				<styleClass value="$Fullsize"/>
				<style>
					<alpha value="2.5"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="visible" value="(state == 5)"/>
			<style>
				<backgroundImage value="symbol:quest_done_icon"/>
				<top value="10px"/>
				<right value="32px"/>
				<position value="absolute"/>
				<hitTest value="false"/>
			</style>
		</block>
		<block>
			<block>
				<style>
					<width value="120px"/>
					<height value="120px"/>
				</style>
				<bind name="tooltip" value="'SimpleTooltip';  {tooltipText: 'IDS_MISSION_NUMBER'}"/>
				<bind name="style" value="'backgroundImage'; (missionState == 5) 	? 'url:../campaigns/missions_pin/' + campaignName + '_done_pin.png'
																								: 'url:../campaigns/missions_pin/' + campaignName + '_pin.png'"/>
				<block type="text">
					<bind name="visible" value="(state != 0) &amp;&amp; (missionState != 5)"/>
					<style>
						<alpha value="0.8"/>
						<position value="absolute"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$TextAccentBoldAccountLevel2"/>
					<bind name="text" value="uiNumber"/>
				</block>
				<block>
					<bind name="visible" value="state == 0"/>
					<styleClass value="$FullsizeAbsolute"/>
					<block>
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$MiddleVAligned"/>
						<block className="icon_locked_mc" type="native"/>
					</block>
				</block>
			</block>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<block type="text">
					<style>
						<marginTop value="3px"/>
						<maxWidth value="200"/>
					</style>
					<styleClass value="$TextLargeHeaderBold"/>
					<bind name="text" value="isMainTask 	? (toUpperCase(tr('IDS_FINAL_TASK')))
										: (toUpperCase(tr('IDS_CAMPAIGN_TASK'))) + ' ' + number"/>
				</block>
				<block className="indicator_progress_bar" type="native">
					<bind name="visible" value="((taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max) )"/>
					<style>
						<width value="200px"/>
					</style>
					<bind name="value" value="(taskProgress/max) * 10"/>
				</block>
				<block>
					<bind name="visible" value="((taskProgress &gt; 0) &amp;&amp; (taskProgress &lt; max) )"/>
					<style>
						<width value="100%"/>
						<marginTop value="-3px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeader"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="taskProgress + '/' + max"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="((missionState == 0) || (missionState == 2)) &amp;&amp; !isMainTask"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_STARS_FOR_BATTLE'}"/>
					<style>
						<marginTop value="3px"/>
						<marginLeft value="-1px"/>
					</style>
					<block>
						<bind name="repeat" value="lootStars; 'StarsEarnedEnable'"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<style>
							<position value="absolute"/>
						</style>
						<bind name="repeat" value="costUnlock; 'StarsEarnedDisabled'"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="WindowTaskHeaderInstruction">
		<bind name="primaryEntityDH" value="'campaign'; CC.campaignParams; _curCampaignId"/>
		<bind name="watchDH" value="'campaignState'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.state"/>
		<bind name="watchDH" value="'campaignMissionsStates'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.missionsStates"/>
		<bind name="watchDH" value="'campaignName'; []; campaign.campaignParams.name"/>
		<bind name="watchDH" value="'campaignIsActivated'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isActivated"/>
		<bind name="watchDH" value="'campaignAllMissions'; []; campaign.campaignParams.allMissions"/>
		<bind name="watchDH" value="'campaignMainTask'; []; campaign.campaignParams.mainTask"/>
		<bind name="watchDH" value="'campaignMapPositions'; []; campaign.campaignParams.mapPositions"/>
		<bind name="watchDH" value="'campaignCountTasks'; []; campaign.campaignParams.countTasks"/>
		<bind name="watchDH" value="'campaignStartTime'; []; campaign.campaignParams.startTime"/>
		<bind name="watchDH" value="'campaignEndTime'; []; campaign.campaignParams.endTime"/>
		<bind name="watchDH" value="'campaignIsNarrative'; []; campaign.campaignParams.isNarrative"/>
		<bind name="watchDH" value="'campaignToken'; []; campaign.campaignParams.token"/>
		<bind name="watchDH" value="'campaignIsViewed'; ['campaign.campaignParams.evUpdate']; campaign.campaignParams.isViewed"/>
		<bind name="watch" value="'campaignNeedToken'; campaignState == 0 &amp;&amp; campaignToken != ''"/>
		<bind name="watchDH" value="'campaignCountLootedTasks'; ['campaign.campaignPlayer.evUpdate']; campaign.campaignPlayer.countLootedTasks"/>
		<bind name="primaryEntityDH" value="'mission'; CC.campaignMissionParams; _curMissionId"/>
		<bind name="primaryEntityDH" value="'missionMainTaskEntity'; CC.campaignTaskParams; mission.campaignMissionParams.mainTask"/>
		<bind name="watchDH" value="'missionState';['mission.campaignMissionPlayer.evUpdate']; mission.campaignMissionPlayer.state"/>
		<bind name="watchDH" value="'mainTaskState';['missionMainTaskEntity.campaignTaskPlayer.evUpdate']; missionMainTaskEntity.campaignTaskPlayer.state"/>
		<bind name="watchDH" value="'costUnlock';[]; missionMainTaskEntity.campaignTaskParams.costUnlock"/>
		<bind name="watchDH" value="'mainTask';[]; mission.campaignMissionParams.mainTask"/>
		<bind name="watchDH" value="'missionStartTime';[]; mission.campaignMissionParams.startTime"/>
		<bind name="serverTime" value="'serverTime'"/>
		<bind name="watch" value="'missionTimeToStart'; missionStartTime - serverTime"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="instance" value="'TaskItem'; {_isShipSuitable: true, _isBattleSuitable: true, _isUseless: false, _taskID: mainTask}"/>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="1.5sw"/>
			</style>
			<block>
				<bind name="instance" value="'WindowHeaderCostUnlock'; {_curMissionId: _curMissionId, _isInHeader: true}"/>
			</block>
			<block>
				<style>
					<marginTop value="3px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderWhite"/>
					<bind name="class" value="campaignNeedToken || missionStartTime != 0 ? '$FontColorUnready' : '$FontColorBlueish'"/>
					<style>
						<maxWidth value="500"/>
						<leading value="-2"/>
					</style>
					<bind name="timeFormat" value="missionTimeToStart; 'HIGHEST'; 'formatStartTime'; true"/>
					<bind name="text" value="(missionState == 0)						? campaignNeedToken 		? 'IDS_TOOLTIP_CAMPAIGN_NEED_TOKEN' :
																							  missionStartTime != 0 	? subst('IDS_LOCKED_MISSION_TIME_LEFT_TOOLTIP', [], {timeLeft: formatStartTime}) :
																							  'IDS_MISSION_STATE_LOCKED' :
							(missionState == 2)					?  subst('IDS_CHOOSE_TASK_DESCR', [], {count: costUnlock}, costUnlock) :
							(missionState == 4 &amp;&amp; mainTaskState == 5) ? 'IDS_MISSION_STATE_OPENED_BOSS' :
							(missionState == 4)					? 'IDS_SYS_MESSAGE_HEADER_MS_ACC_CAMPAIGNS_TASK_UNLOCKED' 
																							: 'IDS_MISSION_STATE_COMPLETED'"/>
				</block>
			</block>
		</block>
	</block>
	<block className="WindowHeaderCostUnlock">
		<bind name="primaryEntityDH" value="'campaignMissionEntity'; CC.campaignMissionParams; _curMissionId"/>
		<bind name="primaryEntityDH" value="'missionMainTaskEntity'; CC.campaignTaskParams; campaignMissionEntity.campaignMissionParams.mainTask"/>
		<bind name="watchDH" value="'stars';['campaignMissionEntity.campaignMissionPlayer.evUpdate']; campaignMissionEntity.campaignMissionPlayer.stars"/>
		<bind name="watchDH" value="'costUnlock'; []; missionMainTaskEntity.campaignTaskParams.costUnlock"/>
		<block>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_STARS_FOR_BATTLE_EMPTY'}"/>
			<bind name="repeat" value="costUnlock; 'StarsEarnedDisabled'; {_isInHeader: _isInHeader}"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_STARS_FOR_BATTLE_EARNED'}"/>
			<bind name="repeat" value="stars; 'StarsEarnedEnable'; {_isInHeader: _isInHeader}"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="StarsEarnedEnable">
		<style>
			<width value="23px"/>
			<height value="23px"/>
		</style>
		<bind name="style" value="'marginRight'; _isInHeader ? '9px' : '2px'"/>
		<bind name="style" value="'marginBottom'; _isInTooltip ? '6px' : '0px'"/>
		<block className="icon_rank_star_nano" type="native">
			<bind name="gotoAndStop!" value="'earned'"/>
		</block>
	</block>
	<block className="StarsEarnedDisabled">
		<style>
			<width value="23px"/>
			<height value="23px"/>
		</style>
		<bind name="style" value="'marginRight'; _isInHeader ? '9px' : '2px'"/>
		<bind name="style" value="'marginBottom'; _isInTooltip ? '6px' : '0px'"/>
		<block className="icon_rank_star_nano" type="native">
			<bind name="gotoAndStop!" value="'not_earned'"/>
		</block>
	</block>
	<block className="GoalsItem">
		<bind name="entityDH" value="'campaignGoalEntity'; _entityId"/>
		<bind name="watchDH" value="'l10nText';[]; campaignGoalEntity.campaignTaskGoal.l10nText"/>
		<bind name="watchDH" value="'l10nRestriction';[]; campaignGoalEntity.campaignTaskGoal.l10nRestriction"/>
		<block type="text">
			<bind name="style" value="'maxWidth'; _isInMissionTooltip ? '245' : '320'"/>
			<styleClass value="$TextHeader"/>
			<bind name="text" value="l10nText"/>
		</block>
		<block type="text">
			<bind name="visible" value="_isInMissionTooltip == true"/>
			<bind name="style" value="'maxWidth'; _isInMissionTooltip ? '245' : '320'"/>
			<styleClass value="$TextHeader"/>
			<bind name="text" value="l10nRestriction"/>
		</block>
	</block>
	<css name="$DefaultFormationWidgetSize">
		<width value="330px"/>
		<height value="410px"/>
	</css>
	<block className="ResizableFormationWidget">
		<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="$ResizableFormationWidgetInfotipBehaviour"/>
		<styleClass value="$DefaultFormationWidgetSize"/>
		<bind name="resize" value="'grip';'down';null; 'formationWidgetHeight'"/>
		<block className="DivisionEntranceInfotip">
			<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="$DivisionEntranceInfotipBehaviour"/>
			<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
			<bind name="class" value="_isFromDockFormationBtn ? '$Fullsize' : '$DefaultFormationWidgetSize'"/>
			<bind name="var" value="{searchState: 0}"/>
			<bind name="catch" value="'Tooltip.selfClosed'; {searchState : 0}"/>
			<bind name="catch" value="'changeSearchState'"/>
			<bind name="catch" value="'TextInputWithCancel.searchCancelled'; {searchState : 0}"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginLeft value="13px"/>
					<marginRight value="13px"/>
					<marginBottom value="18px"/>
					<marginTop value="9px"/>
				</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>
				<styleClass value="$FullsizeAbsolute"/>
				<block className="dock_panel" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="14px"/>
					<marginRight value="14px"/>
					<marginTop value="9px"/>
				</style>
				<bind name="style" value="'marginBottom'; _isFromDockFormationBtn ? '19px' : '19px'"/>
				<bind name="var" value="{_searchRequests: [['contacts', 13]],
					_resultsDisplay: ['myContacts', 'contacts', 'ignoredContacts']}"/>
				<bind name="watch" value="'playerContextType'; 'inviteToDivision' "/>
				<bind name="child" value="searchState; {_searchRequests: _searchRequests, _resultsDisplay: _resultsDisplay, _playerContext: {type: playerContextType}}; 'FormationWidget'; 'SearchResultsList'"/>
			</block>
			<block className="dock_panel_pin_h" type="native">
				<style>
					<position value="absolute"/>
					<width value="9px"/>
					<left value="13px"/>
					<height value="16px"/>
					<alpha value="0.6"/>
				</style>
				<bind name="gotoAndStop!" value="'left'"/>
				<params>
					<param name="name" value="pinLeft"/>
				</params>
			</block>
			<block className="dock_panel_pin_h" type="native">
				<style>
					<position value="absolute"/>
					<width value="9px"/>
					<right value="4px"/>
					<height value="16px"/>
					<alpha value="0.6"/>
				</style>
				<bind name="gotoAndStop!" value="'right'"/>
				<params>
					<param name="name" value="pinRight"/>
				</params>
			</block>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'up'"/>
				<params>
					<param name="name" value="pinTop"/>
				</params>
				<style>
					<position value="absolute"/>
					<alpha value="0.6"/>
				</style>
			</block>
			<block className="dock_panel_pin" type="native">
				<bind name="gotoAndStop!" value="'down'"/>
				<params>
					<param name="name" value="pinBottom"/>
				</params>
				<style>
					<bottom value="9"/>
					<alpha value="0.6"/>
					<position value="absolute"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="16"/>
				<height value="8px"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<styleClass value="$InfoBlockHorizontalIndent"/>
			<bind name="transition" value="(rollOver || resizing); 0.06; {alpha: 0}; {alpha: 1}; {alpha: 0}"/>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController; 'HANGAR_DRAGGING_VERTICAL_OVER'"/>
			<params>
				<param name="name" value="grip"/>
			</params>
			<block className="gripper_horizontal_over" type="native">
				<style>
					<alpha value="0.7"/>
					<marginTop value="1px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
			</block>
		</block>
	</block>
	<css name="$ResizableFormationWidgetInfotipBehaviour">
		<userData value="{
		appearDelay: 0.1,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -5.0,
		tinyOffset: 0,
		rightOffset: -8,
		bottomOffset: 0,
		isTipCenter: true,
		minResizeHeight: 400,
		maxResizeHeight: 660
	}"/>
	</css>
	<css name="$DivisionEntranceInfotipBehaviour">
		<userData value="{
		appearDelay: 0.1,
		appearDuration: 0.1,
		appearOffset: 5.0,
		disappearDelay: 0.0,
		disappearDuration: 0.1,
		disappearOffset: -5.0,
		tinyOffset: 0,
		rightOffset: -8,
		bottomOffset: 0,
		isTipCenter: true
	}"/>
	</css>
	<block className="DivisionEntranceInfotip">
		<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="$DivisionEntranceInfotipBehaviour"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="class" value="_isFromDockFormationBtn ? '$Fullsize' : '$DefaultFormationWidgetSize'"/>
		<bind name="var" value="{searchState: 0}"/>
		<bind name="catch" value="'Tooltip.selfClosed'; {searchState : 0}"/>
		<bind name="catch" value="'changeSearchState'"/>
		<bind name="catch" value="'TextInputWithCancel.searchCancelled'; {searchState : 0}"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="13px"/>
				<marginRight value="13px"/>
				<marginBottom value="18px"/>
				<marginTop value="9px"/>
			</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>
			<styleClass value="$FullsizeAbsolute"/>
			<block className="dock_panel" type="native">
				<styleClass value="$Fullsize"/>
			</block>
		</block>
		<block>
			<styleClass value="$Fullsize"/>
			<style>
				<marginLeft value="14px"/>
				<marginRight value="14px"/>
				<marginTop value="9px"/>
			</style>
			<bind name="style" value="'marginBottom'; _isFromDockFormationBtn ? '19px' : '19px'"/>
			<bind name="var" value="{_searchRequests: [['contacts', 13]],
					_resultsDisplay: ['myContacts', 'contacts', 'ignoredContacts']}"/>
			<bind name="watch" value="'playerContextType'; 'inviteToDivision' "/>
			<bind name="child" value="searchState; {_searchRequests: _searchRequests, _resultsDisplay: _resultsDisplay, _playerContext: {type: playerContextType}}; 'FormationWidget'; 'SearchResultsList'"/>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<width value="9px"/>
				<left value="13px"/>
				<height value="16px"/>
				<alpha value="0.6"/>
			</style>
			<bind name="gotoAndStop!" value="'left'"/>
			<params>
				<param name="name" value="pinLeft"/>
			</params>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<style>
				<position value="absolute"/>
				<width value="9px"/>
				<right value="4px"/>
				<height value="16px"/>
				<alpha value="0.6"/>
			</style>
			<bind name="gotoAndStop!" value="'right'"/>
			<params>
				<param name="name" value="pinRight"/>
			</params>
		</block>
		<block className="dock_panel_pin" type="native">
			<bind name="gotoAndStop!" value="'up'"/>
			<params>
				<param name="name" value="pinTop"/>
			</params>
			<style>
				<position value="absolute"/>
				<alpha value="0.6"/>
			</style>
		</block>
		<block className="dock_panel_pin" type="native">
			<bind name="gotoAndStop!" value="'down'"/>
			<params>
				<param name="name" value="pinBottom"/>
			</params>
			<style>
				<bottom value="9"/>
				<alpha value="0.6"/>
				<position value="absolute"/>
			</style>
		</block>
	</block>
	<block className="FormationWidget">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerDivisionEntrance"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'playersInDivision'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInvitedToDivision'; 'playersInvitedToDivision'"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<bind name="contains" value="clubs; ($item.club.id == divisionData.creatorInfo.clubId); 'isClubMember'"/>
		<bind name="watch" value="'clubEntityId'; isClubMember ? ((clubs[0].club.id == divisionData.creatorInfo.clubId)	? clubs[0].id :
												 (clubs[1].club.id == divisionData.creatorInfo.clubId)	? clubs[1].id
																										: clubs[2].id ) : null "/>
		<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="action" value="(userPrefs.commentWantTo_division == null) ? 'addedToStage' : ''; 'setUserPref' ; {value : '', name : 'commentWantTo_division'}"/>
		<bind name="var" value="{commentWantTo_division: (userPrefs.commentWantTo_division == null) ? '' : userPrefs.commentWantTo_division}"/>
		<bind name="catch" value="'evCommentChanged_division'"/>
		<bind name="changeDispatch" value="commentWantTo_division; 'evCommentChanged_division' + 'InPrefs'"/>
		<bind name="action" value="'evCommentChanged_division' + 'InPrefs'; 'setUserPref' ; {value : commentWantTo_division, name : 'commentWantTo_division'}"/>
		<bind name="action" value="(userPrefs.commentWantTo_party == null) ? 'addedToStage' : ''; 'setUserPref' ; {value : '', name : 'commentWantTo_party'}"/>
		<bind name="var" value="{commentWantTo_party: (userPrefs.commentWantTo_party == null) ? '' : userPrefs.commentWantTo_party}"/>
		<bind name="catch" value="'evCommentChanged_party'"/>
		<bind name="changeDispatch" value="commentWantTo_party; 'evCommentChanged_party' + 'InPrefs'"/>
		<bind name="action" value="'evCommentChanged_party' + 'InPrefs'; 'setUserPref' ; {value : commentWantTo_party, name : 'commentWantTo_party'}"/>
		<bind name="watch" value="'commentWantToFormationSync'; divisionEntranceData.divisionType == 'division' ? commentWantTo_division : commentWantTo_party"/>
		<bind name="changeDispatch" value="commentWantToFormationSync; divisionEntranceData.divisionType == 'division' ? 'evDivisionCommentChanged' : 'evPartyCommentChanged'"/>
		<bind name="catch" value="'evDivisionCommentChanged'; {commentWantTo_division: commentWantToFormationSync}"/>
		<bind name="catch" value="'evPartyCommentChanged'; {commentWantTo_party: commentWantToFormationSync}"/>
		<styleClass value="$Fullsize"/>
		<block>
			<bind name="visible" value="!(divisionData.divisionExist)"/>
			<style>
				<width value="100%"/>
				<height value="34px"/>
			</style>
			<block className="dock_submenu_item" type="native">
				<bind name="name" value="'wantToDivision'"/>
				<styleClass value="$Fullsize"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: divisionEntranceData.seekerStatus ? tr('IDS_NOT_VISIBLE_FOR_OTHER_PLAYERS_' + toUpperCase(divisionEntranceData.divisionType))
																							: tr('IDS_VISIBLE_FOR_OTHER_PLAYERS_'+ toUpperCase(divisionEntranceData.divisionType))}"/>
				<bind name="action" value="'buttonClick'; 'toggleDivisionSeekerStatus'; {comment: commentWantToFormationSync, status: divisionEntranceData.seekerStatus}"/>
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
			</block>
			<block className="button_close" type="native">
				<bind name="name" value="'closeSeekDivision'"/>
				<bind name="visible" value="divisionEntranceData.seekerStatus"/>
				<style>
					<position value="absolute"/>
					<hitTest value="false"/>
					<right value="10px"/>
					<top value="11px"/>
				</style>
				<bind name="transition" value="rollOver; 0.15; {alpha: 0.8}; {alpha: 1}"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: divisionEntranceData.seekerStatus ? tr('IDS_NOT_VISIBLE_FOR_OTHER_PLAYERS_' + toUpperCase(divisionEntranceData.divisionType))
																							: tr('IDS_VISIBLE_FOR_OTHER_PLAYERS_'+ toUpperCase(divisionEntranceData.divisionType))}"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<hitTest value="false"/>
					<position value="absolute"/>
					<marginTop value="5px"/>
				</style>
				<block className="icon_formation_wanted" type="native">
					<bind name="gotoAndStop!" value="divisionEntranceData.seekerStatus ? ('on_'+divisionEntranceData.divisionType) : 'off'"/>
					<style>
						<marginTop value="2px"/>
						<marginRight value="2px"/>
					</style>
				</block>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="divisionEntranceData.seekerStatus ? (divisionEntranceData.divisionType == 'party' ? '$FontColorParty' : '$FontColorTurquoise') : '$FontColorWhite'"/>
					<bind name="text" value="('IDS_WANT_IN_' + toUpperCase(divisionEntranceData.divisionType))"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="transition" value="divisionEntranceData.seekerStatus; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0.1"/>
			<style>
				<width value="100%"/>
				<height value="8px"/>
				<marginTop value="-1px"/>
			</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="entityDH" value="'entityClub'; clubEntityId"/>
			<bind name="watchDH" value="'partyPlayersCount'; ['entityClub.party.evUpdate']; entityClub.party.playersCount"/>
			<bind name="watchDH" value="'partyPlayersLimit'; ['entityClub.party.evUpdate']; entityClub.party.playersLimit"/>
			<bind name="watch" value="'tooltipStr'; (tr('IDS_GATHERING_TO_BATTLE')+tr('IDS_COLON') + ' ' + partyPlayersCount + ' / ' + partyPlayersLimit)"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tooltipStr}"/>
			<style>
				<backgroundColor value="0x01000000"/>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<hitTest value="false"/>
				</style>
				<bind name="instance" value="'ClubListItem'; isClubMember ? {id: clubEntityId, _isInParty: true, _isPartyMember: true} : null"/>
			</block>
		</block>
		<bind name="var" value="{testBanned: false}"/>
		<block>
			<bind name="style" value="'hitTest'; (divisionEntranceData.banned || testBanned) ? false : true"/>
			<style>
				<width value="100%"/>
				<marginLeft value="6px"/>
				<marginRight value="6px"/>
			</style>
			<bind name="transition" value="divisionEntranceData.seekerStatus; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0.1"/>
			<block type="text">
				<style>
					<minHeight value="46"/>
					<width value="100%"/>
					<marginLeft value="5px"/>
					<marginRight value="5px"/>
					<fontSize value="16"/>
					<leading value="2"/>
					<alpha value="0"/>
				</style>
				<styleClass value="$FontFamilyDefault"/>
				<bind name="text" value="commentWantToFormationSync"/>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<height value="34px"/>
				</style>
			</block>
			<block className="text_area_caps_enter" type="native">
				<bind name="style" value="'alpha'; (divisionEntranceData.banned || testBanned ? 0.35 : 1)"/>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="watch" value="'maxChars'; divisionEntranceData.commentMaxChars"/>
				<params>
					<param name="actAsButton" value="true"/>
					<param name="maxChars" value="300"/>
				</params>
				<bind name="defaultText" value="tr('IDS_ENTER_STATUS')"/>
				<bind name="focus" value="0; false"/>
				<bind name="focusable" value="(divisionEntranceData.banned || testBanned) ? false : true"/>
				<bind name="sync" value="'text'; 'change'; commentWantToFormationSync; commentWantToDivisionChanged"/>
				<bind name="action" value="'textInputEnter'; 'updateSeekerComment'; {comment: commentWantToFormationSync}"/>
				<innerBind elementName="hotKeyEnter" name="alpha" value="((maxChars-commentWantToFormationSync.length) &lt; 0) 														? 0.4 :
											(divisionEntranceData.commentStatus == 'submitted') &amp;&amp; (commentWantToFormationSync.length &lt;= maxChars)	? 0
																																					: 1"/>
				<block>
					<styleClass value="$TextAreaEnterButton"/>
					<bind name="tooltip" value="'SimpleWarningTooltip'; (commentWantToFormationSync.length &gt; maxChars) ? {_text: 'IDS_MAX_STATUS_LENGTH'} : null"/>
					<bind name="tooltip" value="'SimpleTooltip'; (commentWantToFormationSync.length &lt;= maxChars) ? {tooltipText: 'IDS_HINT_ADD_SEEKER_STATUS'} : null"/>
					<block className="button_dock" type="native">
						<styleClass value="$FullsizeAbsolute"/>
						<bind name="style" value="'hitTest'; (divisionEntranceData.commentStatus == 'submitted') &amp;&amp; (commentWantToFormationSync.length &lt;= maxChars) ? false : true"/>
						<bind name="enabled" value="((commentWantToFormationSync.length &lt;= maxChars) &amp;&amp; (divisionEntranceData.commentStatus != 'submitted'))"/>
						<bind name="action" value="'buttonClick'; 'updateSeekerComment'; {comment: commentWantToFormationSync}"/>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<bottom value="3"/>
						<right value="56"/>
					</style>
					<bind name="fade" value="(divisionEntranceData.banned || (divisionEntranceData.commentStatus != 'submitted')); 0.1;
							{top: 10, alpha: 0}; {top: 0, alpha: 1}; {top: 10, alpha: 0}"/>
					<bind name="instance" value="'CharCounter'; { _string: commentWantToFormationSync, _maxChars: maxChars}"/>
				</block>
				<block type="text">
					<bind name="fade" value="!(divisionEntranceData.banned) &amp;&amp; (divisionEntranceData.commentStatus == 'submitted') &amp;&amp; (commentWantToFormationSync.length &lt;= maxChars) &amp;&amp; (commentWantToFormationSync.length &gt; 0); 0.1;
							{top: 10, alpha: 0}; {top: 0, alpha: 0.8}; {top: 10, alpha: 0}"/>
					<style>
						<position value="absolute"/>
						<bottom value="3px"/>
						<left value="4px"/>
						<fontSize value="14"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="toUpperCase(tr('IDS_STATUS_SAVED'))"/>
				</block>
				<block type="text">
					<bind name="fade" value="!(divisionEntranceData.banned) &amp;&amp; (divisionEntranceData.commentStatus == 'submitted') &amp;&amp; (commentWantToFormationSync.length == null); 0.1;
							{top: 10, alpha: 0}; {top: 0, alpha: 0.8}; {top: 10, alpha: 0}"/>
					<style>
						<position value="absolute"/>
						<bottom value="3px"/>
						<left value="4px"/>
						<fontSize value="14"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="toUpperCase(tr('IDS_STATUS_CLEARED'))"/>
				</block>
				<block type="text">
					<bind name="fade" value="!(divisionEntranceData.banned) &amp;&amp; (divisionEntranceData.commentStatus == 'declined') &amp;&amp; (commentWantToFormationSync.length &gt; maxChars); 0.1;
							{top: 10, alpha: 0}; {top: 0, alpha: 1};  {top: 10, alpha: 0}"/>
					<style>
						<position value="absolute"/>
						<bottom value="3px"/>
						<left value="4px"/>
						<fontSize value="14"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="toUpperCase(tr('IDS_MAX_STATUS_LENGTH'))"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="divisionEntranceData.banned || testBanned"/>
				<styleClass value="$FullsizeAbsolute"/>
				<block className="inner_panel" type="native">
					<styleClass value="$Fullsize"/>
				</block>
				<block type="text">
					<style>
						<width value="100%"/>
						<marginRight value="20px"/>
						<marginLeft value="20px"/>
						<position value="absolute"/>
						<textAlign value="center"/>
					</style>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="toUpperCase(tr('IDS_MESSAGES_BANNED'))"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="transition" value="divisionEntranceData.seekerStatus; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0.1"/>
			<style>
				<width value="100%"/>
				<height value="6px"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="!(divisionData.divisionExist)"/>
			<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>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="dataRefDH" value="'chat'; 'dataHub.chat.ref.chat'"/>
		<bind name="watchDH" value="'isChatServerAvailable'; ['chat.evConnected', 'chat.evDisConnected']; chat.isConnected"/>
		<bind name="watchDH" value="'isClubServiceAvailable'; ['clubsCommonEntity.clubsCommon.evIsActiveChanged']; clubsCommonEntity.clubsCommon.isActive"/>
		<bind name="watch" value="'isServicesAvailable'; isChatServerAvailable &amp;&amp; isClubServiceAvailable"/>
		<bind name="watch" value="'isDivisionAvailable'; isChatServerAvailable &amp;&amp; (divisionEntranceData.divisionType == 'division')"/>
		<block>
			<bind name="visible" value="isServicesAvailable || isDivisionAvailable"/>
			<styleClass value="$Fullsize"/>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<styleClass value="$DefaultScrollBar"/>
				<style>
					<height value="100%f"/>
					<width value="100%"/>
					<overflow value="scroll"/>
				</style>
				<bind name="style" value="'marginBottom'; !(divisionData.divisionExist) &amp;&amp; (divisionEntranceData.divisionType == 'party') ? '0px' : '40px'"/>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ClubsGroupsList'; !(divisionData.divisionExist) &amp;&amp; (divisionEntranceData.divisionType == 'party') ? {} : null"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ClubMembersGroupsList'; (divisionData.divisionExist &amp;&amp; (divisionEntranceData.divisionType == 'party')) ? {_playerContextType: _playerContext.type} : null"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'AllContactsGroup'; (divisionEntranceData.divisionType == 'division') ||
													(divisionData.divisionExist &amp;&amp; (divisionEntranceData.divisionType == 'party'))	? {_playerContext: _playerContext}
 																																	: null"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'FormationSeekersGroup'; (divisionData.divisionExist || (divisionEntranceData.divisionType == 'division')) ? {_playerContextType: _playerContext.type} : null"/>
				</block>
				<block>
					<bind name="visible" value="(clubs.length == 0) &amp;&amp; (divisionEntranceData.divisionType == 'party')"/>
					<style>
						<marginTop value="6px"/>
						<width value="203px"/>
						<height value="206px"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<block>
						<bind name="scaleY" value="0.78"/>
						<bind name="scaleX" value="0.78"/>
						<bind name="instance" value="'ClubHeaderIconCreateClub'; (clubs.length == 0) ? {_scale: 1, _blurOff: true} : null"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="((divisionData.divisionExist &amp;&amp; (divisionEntranceData.divisionType == 'party')) ||
						(divisionEntranceData.divisionType == 'division')) &amp;&amp; isServicesAvailable"/>
			<style>
				<width value="100%"/>
				<height value="42px"/>
				<bottom value="0"/>
				<position value="absolute"/>
			</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 className="button_search" type="native">
				<bind name="name" value="'searchPlayersDivision'"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<right value="8px"/>
					<position value="absolute"/>
				</style>
				<bind name="enabled" value="!$parent.seekersListUpdateInProgress"/>
				<bind name="dispatch" value="'buttonClick';'changeSearchState'; {searchState: 1}"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SEARCH_PLAYERS'}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="((divisionEntranceData.divisionType == 'party') &amp;&amp; !(isServicesAvailable)) || ((divisionEntranceData.divisionType == 'division') &amp;&amp; !(isChatServerAvailable))"/>
			<style>
				<marginTop value="60px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<bind name="instance" value="'ServerIsUnavailable'; 	((divisionEntranceData.divisionType == 'party') &amp;&amp; !(isServicesAvailable)) 		? { _type: 'CLUB' } :
												((divisionEntranceData.divisionType == 'division') &amp;&amp; !(isChatServerAvailable))	? {} : null"/>
		</block>
	</block>
	<block className="AllContactsGroup">
		<bind name="dataRefDH" value="'contactsGroups'; 'dataHub.chat.ref.chat.contactsGroups.ref.items'"/>
		<bind name="entityDH" value="'group'; contactsGroups[0].id"/>
		<bind name="dataRefDH" value="'contacts'; 'group.groupOfElements.elements.ref.items'"/>
		<bind name="watchDH" value="'countTotal'; ['group.contactsGroup.evCountTotalChanged']; group.contactsGroup.countTotal"/>
		<bind name="watchDH" value="'countOnline'; ['group.contactsGroup.evCountOnlineChanged']; group.contactsGroup.countOnline"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
			<style>
				<width value="100%"/>
				<height value="33px"/>
			</style>
			<bind name="var" value="{groupExpanded: true}"/>
			<bind name="catch" value="'expandAllContactsGroup'"/>
			<block>
				<style>
					<width value="100%"/>
					<height value="33px"/>
				</style>
				<bind name="instance" value="'SimpleListGroupHeader'; {	_expandGroupEvent: 'expandAllContactsGroup', _groupLabel: 'IDS_MY_CONTACTS',
														_groupExpanded: groupExpanded, _stateOver: rollOver}"/>
			</block>
			<block>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_ONLINE_PLAYERS') + ' / ' + tr('IDS_PLAYERS_IN_GROUP')}"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<right value="9px"/>
					<position value="absolute"/>
				</style>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="style" value="'alpha'; (countOnline!=0) ? 1 : 0.5"/>
					<bind name="text" value="countOnline"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<style>
						<alpha value="0.5"/>
					</style>
					<bind name="text" value="'/ ' + countTotal"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="1px"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="2px"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="fade" value="groupExpanded; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0"/>
					<bind name="repeat" value="contacts; 'ContactElement'; {	groupExpanded : groupExpanded, _playerContext: _playerContext}"/>
				</block>
				<block>
					<bind name="visible" value="(groupExpanded &amp;&amp; contacts.length != 0)"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<bottom 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>
				<bind name="fade" value="(groupExpanded &amp;&amp; contacts.length == 0); 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
				<style>
					<height value="30px"/>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<bind name="instance" value="'EmptyStatusParagraph'; {_text: 'IDS_NO_CONTACTS_IN_GROUP'}"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<bottom value="0px"/>
					</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>
	</block>
	<block className="FormationSeekersGroup">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerDivisionEntrance"/>
		<bind name="event" value="'addedToStage'; requestUpdateSeekersList"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
			<style>
				<width value="100%"/>
				<height value="33px"/>
			</style>
			<bind name="var" value="{groupExpanded: true}"/>
			<bind name="catch" value="'expandFormationSeekersGroup'"/>
			<block>
				<style>
					<width value="100%"/>
					<height value="33px"/>
				</style>
				<bind name="instance" value="'SimpleListGroupHeader'; {	_expandGroupEvent: 'expandFormationSeekersGroup', _groupLabel: ('IDS_LOOKING_FOR_' + toUpperCase(divisionEntranceData.divisionType)),
														_groupExpanded: groupExpanded, _stateOver: rollOver}"/>
			</block>
			<block>
				<style>
					<right value="9px"/>
					<top value="8px"/>
					<position value="absolute"/>
				</style>
				<block className="button_update" type="native">
					<bind name="enabled" value="!($parent.seekersListUpdateInProgress)"/>
					<bind name="event" value="'buttonClick'; requestUpdateSeekersList"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_UPDATE_FORMATION_SEEKERS_LIST'}"/>
				</block>
			</block>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginBottom value="1px"/>
				</style>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<marginBottom value="2px"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="fade" value="groupExpanded; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0"/>
					<bind name="repeat" value="divisionEntranceData.seekersList; 'FormationSeekerPlayer'; {groupExpanded: groupExpanded, _playerContextType: _playerContextType}"/>
				</block>
				<block>
					<bind name="visible" value="(groupExpanded &amp;&amp; divisionEntranceData.seekersList.length != 0)"/>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<bottom value="0px"/>
					</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="fade" value="(groupExpanded &amp;&amp; divisionEntranceData.seekersList.length == 0); 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 60}"/>
				<style>
					<height value="60px"/>
					<width value="100%"/>
				</style>
				<block>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'EmptyStatusParagraph'; {_text: ('IDS_INSTRUCTION_NO_PLAYERS_WANTED_IN_' + toUpperCase(divisionEntranceData.divisionType))}"/>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<width value="100%"/>
						<bottom value="0px"/>
					</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>
	</block>
	<block className="FormationSeekerPlayer">
		<style>
			<width value="100%"/>
			<height value="30px"/>
		</style>
		<bind name="fade" value="groupExpanded; 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 30}"/>
		<block>
			<styleClass value="$Fullsize"/>
		</block>
		<bind name="instance" value="'PlayerContactItemWithRollover'; {_entityAccountId: accountId, _playerContext: {type: _playerContextType, seekerComment: comment, isFormationSeeker: true}}"/>
	</block>
	<block className="ClubsGroupsList">
		<bind name="collectionDH" value="CC.club; 'clubs'"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
			<style>
				<width value="100%"/>
				<height value="33px"/>
			</style>
			<bind name="var" value="{groupExpanded: true}"/>
			<bind name="catch" value="'expandMyClubsGroup'"/>
			<bind name="instance" value="'SimpleListGroupHeader'; {	_expandGroupEvent: 'expandMyClubsGroup', _groupLabel: 'IDS_MY_CLUBS',
													_groupExpanded: groupExpanded, _stateOver: rollOver}"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<style>
					<top value="-1px"/>
					<width value="100%"/>
					<position value="absolute"/>
				</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 className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<bind name="fade" value="groupExpanded; 0.15; {scaleY: 0, ubScaleY: 0, alpha: 0}; {scaleY: 1, ubScaleY: 1, alpha: 1}; {scaleY: 0, ubScaleY: 0, alpha: 0}; 2; 0"/>
			<bind name="repeat" value="clubs; 'ClubListItem'; {groupExpanded: groupExpanded}"/>
			<block>
				<bind name="visible" value="(clubs.length == 0)"/>
				<style>
					<marginTop value="14px"/>
					<marginBottom value="14px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'EmptyStatusParagraph'; {_text: 'IDS_INSTRUCTION_YOU_HAVE_NO_CLUBS', _maxWidth: 290}"/>
			</block>
		</block>
	</block>
	<block className="ClubListItem">
		<bind name="entityDH" value="'entityClub'; id"/>
		<bind name="watchDH" value="'name';['entityClub.club.evNameChanged']; entityClub.club.name"/>
		<bind name="watchDH" value="'league';['entityClub.club.evRatingChanged']; entityClub.club.league"/>
		<bind name="watchDH" value="'rating';['entityClub.club.evRatingChanged']; entityClub.club.rating"/>
		<bind name="watchDH" value="'isPartyInBattle'; ['entityClub.party.evUpdate']; entityClub.party.isInBattle"/>
		<bind name="watchDH" value="'isPartyCreated'; ['entityClub.club.evPartyCreatedChanged']; entityClub.club.partyCreated"/>
		<bind name="watchDH" value="'isPartyCommander'; ['entityClub.party.evUpdate']; entityClub.party.isOwner"/>
		<bind name="watchDH" value="'partyPlayersCount'; ['entityClub.party.evUpdate']; entityClub.party.playersCount"/>
		<bind name="watchDH" value="'partyPlayersLimit'; ['entityClub.party.evUpdate']; entityClub.party.playersLimit"/>
		<style>
			<width value="100%"/>
			<height value="76px"/>
			<backgroundColor value="0x01000000"/>
		</style>
		<bind name="fade" value="((groupExpanded != null) ? groupExpanded : true); 0.15; {alpha: 0, height: 0}; {alpha: 1, height: 76}"/>
		<bind name="watch" value="'noFreePlaces'; (partyPlayersCount == partyPlayersLimit)"/>
		<bind name="watch" value="'clubIconState'; 	isPartyInBattle	? 'InBattle' :
									isPartyCreated	? 'Party'
													: 'Rating'"/>
		<bind name="watch" value="'tooltipStr'; (tr('IDS_GATHERING_TO_BATTLE')+tr('IDS_COLON') + ' ' + partyPlayersCount + ' / ' + partyPlayersLimit)"/>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: isPartyCreated	? [{ _paragraphText: name, _class: '$Bold'}, { _paragraphText: tooltipStr}] : [],
													_mouseInstructions: isPartyCreated	? [{ _type:'left', _instructionText: 'IDS_ENTER_PARTY_HINT' }]
																						: [{ _type:'left', _instructionText: 'IDS_CREATE_PARTY' }]}"/>
			<bind name="action" value="'buttonClick'; isPartyCreated ? 'enterParty' : 'createParty' ; {clubId: entityClub.club.id, shipId: 0}"/>
			<bind name="dispatch" value="'buttonClick'; isPartyCreated ? 'Tooltip.Close' : ''"/>
		</block>
		<block>
			<style>
				<marginLeft value="8px"/>
				<hitTest value="false"/>
			</style>
			<block>
				<style>
					<marginTop value="8px"/>
				</style>
				<bind name="instance" value="'ClubLeagueIconSmall'; {_rating: rating, _league: league, _state: clubIconState, _isPartyMember: _isPartyMember, _isCommander: isPartyCommander}"/>
			</block>
			<block>
				<style>
					<width value="226px"/>
					<height value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="6px"/>
						<width value="218px"/>
					</style>
					<styleClass value="$TextHeaderWhiteBold"/>
					<bind name="text" value="name"/>
				</block>
				<block>
					<bind name="visible" value="isPartyCreated &amp;&amp; !noFreePlaces &amp;&amp; !_isInParty"/>
					<styleClass value="$AlignRight"/>
					<style>
						<bottom value="-2"/>
					</style>
					<block className="icon_plus" type="native">
						<styleClass value="$MiddleVAligned"/>
					</block>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<style>
							<marginLeft value="2px"/>
						</style>
						<text value="IDS_ENTER_PARTY"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="!isPartyCreated"/>
					<styleClass value="$AlignRight"/>
					<style>
						<bottom value="-2"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<style>
							<marginLeft value="5px"/>
						</style>
						<text value="IDS_CREATE_PARTY"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="isPartyCreated &amp;&amp; (noFreePlaces || _isInParty) "/>
					<bind name="style" value="'alpha'; noFreePlaces ? 1 : 0.7"/>
					<styleClass value="$AlignRight"/>
					<style>
						<bottom value="-2"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<bind name="class" value="noFreePlaces	? '$FontColorUnready'
												: '$FontColorDefault'"/>
						<bind name="text" value="noFreePlaces ? tr('IDS_NO_FREE_PLACES')
											 : tr('IDS_FREE_PLACES') + tr('IDS_COLON') + ' ' + (partyPlayersLimit - partyPlayersCount)"/>
					</block>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<bottom value="0px"/>
				<marginLeft value="-1px"/>
				<marginRight value="-1px"/>
				<position value="absolute"/>
			</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 className="ButtonDivisionTooltip">
		<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>
		<style>
			<width value="260"/>
		</style>
		<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>
			<bind name="visible" value="_isFormationsEnabled"/>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<style>
					<maxWidth value="240"/>
				</style>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="'IDS_HINT_CREATE_DIVISION'"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(_isFormationsEnabled)"/>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'StatusLineWithIcon'; { _text:	(_battleType == BattleTypes.RANKED_BATTLE)		? 'IDS_DIVISIONS_ARE_NOT_ALLOWED_IN_RANK_BATTLES' :
														(_battleType == BattleTypes.INTRO_MISSION)		? 'IDS_DIVISIONS_ARE_NOT_ALLOWED_IN_INTRO_MISSION_DESC' :
														(_battleType == BattleTypes.CLUB_BATTLE)		? 'IDS_DIVISIONS_ARE_NOT_ALLOWED_IN_CLUB_BATTLES' :
														(_battleType == BattleTypes.TRAINING_BATTLE)	? 'IDS_DIVISIONS_ARE_NOT_ALLOWED_IN_TRAINING_BATTLES'
																										: 'UNKNOWN_DENY_REASON',
												_maxWidth: 215}"/>
		</block>
	</block>
	<block className="SimpleListGroupHeader">
		<style>
			<width value="100%"/>
			<height value="33px"/>
		</style>
		<block className="dock_submenu_item_bg" type="native">
			<style>
				<width value="100%"/>
				<height value="33px"/>
			</style>
			<bind name="transition" value="_stateOver; 0.15; {alpha: 0}; {alpha: 0.5}"/>
			<block className="button_expand" type="native">
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: _groupExpanded ? 'IDS_HINT_COLLAPSE_GROUP' : 'IDS_HINT_EXPAND_GROUP'}"/>
				<style>
					<width value="100%"/>
					<marginTop value="5px"/>
					<marginLeft value="3px"/>
					<position value="absolute"/>
				</style>
				<params>
					<param name="toggle" value="true"/>
					<param name="soundSet" value="dropmenu_button"/>
					<param name="focusable" value="false"/>
				</params>
				<bind name="selected" value="_groupExpanded"/>
				<bind name="dispatch" value="'click'; _expandGroupEvent; {groupExpanded: !(_groupExpanded)}"/>
			</block>
			<block type="text">
				<bind name="style" value="'marginLeft'; _marginLeft ? _marginLeft : '24px'"/>
				<style>
					<marginLeft value="24px"/>
					<marginTop value="5px"/>
					<hitTest value="false"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="_groupLabel"/>
			</block>
		</block>
		<block>
			<style>
				<marginTop value="-1px"/>
				<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>
	<css name="$TextDefaultNM">
		<fontFamily value="$WWSDefaultFont"/>
		<marginBottom value="-5px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="15"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-6px"/>
	</css>
	<css name="$TextDefaultBoldNM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-5px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="15"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-6px"/>
	</css>
	<css name="$TextDefault17NM">
		<fontFamily value="$WWSDefaultFont"/>
		<marginBottom value="-6px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="17"/>
		<marginRight value="-4px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-7px"/>
	</css>
	<css name="$TextDefaultBold17NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-6px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="17"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-7px"/>
	</css>
	<css name="$TextDefault19NM">
		<fontFamily value="$WWSDefaultFont"/>
		<marginBottom value="-5px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="19"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-7px"/>
	</css>
	<css name="$TextDefaultBold19NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-6px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="19"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-8px"/>
	</css>
	<css name="$TextDefault21NM">
		<fontFamily value="$WWSDefaultFont"/>
		<marginBottom value="-7px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="21"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-8px"/>
	</css>
	<css name="$TextDefaultBold21NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-7px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="21"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-8px"/>
	</css>
	<css name="$TextDefaultBold23NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-6px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="23"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-9px"/>
	</css>
	<css name="$TextDefault25NM">
		<fontFamily value="$WWSDefaultFont"/>
		<marginBottom value="-8px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="25"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-9px"/>
	</css>
	<css name="$TextDefaultBold25NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-8px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="25"/>
		<marginRight value="-3px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-9px"/>
	</css>
	<css name="$TextDefaultBold30NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-8px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="30"/>
		<marginRight value="-4px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-11px"/>
	</css>
	<css name="$TextDefaultBold36NM">
		<fontFamily value="$WWSDefaultFontBold"/>
		<marginBottom value="-10px"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<marginLeft value="-3px"/>
		<fontSize value="36"/>
		<marginRight value="-4px"/>
		<dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/>
		<selectable value="false"/>
		<textColor value="0xFFFFFF"/>
		<marginTop value="-12px"/>
	</css>
	<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="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="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)"/>
								<bind name="action" value="'buttonClick'; 'inviteToDivision'; {playerId: entityAccount.accountSimple.dbId, playerName: entityAccount.accountName.name, inviteType: InviteType.COMMON}"/>
							</block>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: '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="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="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'pureName'; entityAccount.accountName.name; 'playerInDivision'"/>
		<bind name="watchDH" value="'isSelf'; []; entityAccount.accountSimple.isSelfPlayer"/>
		<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="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="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="	(isSelfPlayerCurPartyMember &amp;&amp; (isInParty || isInvitedToCurClubParty))
							|| isInDivision
							|| isInCurClubChannelParty
							|| (_playerContext.channelTypeIdent == 'division' &amp;&amp; divisionEntranceData.divisionType == 'party')"/>
				<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: isInvitedToCurClubParty, 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>
			<bind name="watch" value="'_tfWidth' ; 	_nickNameWidth	? _nickNameWidth :
									_isShort		? 132
													: 235"/>
			<block type="text">
				<bind name="name" value="'playerContactName_' + nickName"/>
				<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="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="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: entityAccount.accountName.nickName,
										 _accountLevel: accountLevel, _isSelf: isSelf, _isWardog: _isWardog}; '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'; (_playerContext.isInvitation == true) ? { _expirationTime: _playerContext.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=" (_playerContext.isFormationSeeker &amp;&amp; (_playerContext.type == 'inviteToDivision'))	? 'wanted_in_division' :
										 (_playerContext.isFormationSeeker &amp;&amp; (_playerContext.type == 'inviteToParty'))		? 'wanted_in_party'
										 																					: 'wanted_in_division'"/>
					</block>
				</block>
				<block type="text">
					<style>
						<marginLeft value="4px"/>
					</style>
					<styleClass value="$TextDefaultBold"/>
					<bind name="text" value=" (_playerContext.isFormationSeeker &amp;&amp; (_playerContext.type == 'inviteToDivision'))	? tr('IDS_WANT_IN_DIVISION') :
							 (_playerContext.isFormationSeeker &amp;&amp; (_playerContext.type == 'inviteToParty'))		? tr('IDS_WANT_IN_PARTY')
							 																					: tr('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="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>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="(isSelfPlayerCommander &amp;&amp; (isInPrebattle || isInvitedToPrebattle))"/>
			<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;
						(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"/>
			<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'; 'webBrowser'; { 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 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="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="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="MainTabSmallInstance">
		<block className="tab_bar_item_small" type="native">
			<bind name="name" value="'MainTabSmallInstance_' + _name"/>
			<bind name="style" value="'width'; (_width+'px')"/>
			<style>
				<height value="25px"/>
			</style>
			<bind name="selected" value="_selected"/>
			<bind name="dispatch" value="'buttonClick'; _event ? _event : null; _eventParams"/>
			<bind name="action" value="'buttonClick'; _action ? _action : null; _actionParams"/>
			<bind name="label" value="toUpperCase(tr(_label))"/>
		</block>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: _tooltipIDS}"/>
	</block>
	<css name="$ItemListAchievementMargins">
		<marginBottom value="24px"/>
		<marginLeft value="12px"/>
		<marginRight value="12px"/>
	</css>
	<css name="$TextHeaderBigDefaultTech">
		<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="0x9CBABA"/>
	</css>
	<block className="AchievementAppearAnimation">
		<bind name="appear" value="'addedToStage'; (_animationOn ? 0.15 : 0 ); (_animationOn ? (0.15 * $index + _delay) : 0); {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
		<block>
			<style>
				<marginRight value="26px"/>
			</style>
			<bind name="instance" value="'AchievementIcon'; {_id: id, _amount: amount, _size: '56px', _progressWidth: '44px', _showProgress: true}"/>
		</block>
	</block>
	<block className="Achievement">
		<bind name="class" value="_isInItemList ? '$ItemListAchievementMargins' : '$None'"/>
		<block>
			<bind name="instance" value="'AchievementIcon'; {_id: id, _progressWidth: '50px', _amount: amount, _size: _iconSize ? _iconSize : '80px', _isDesaturated: (amount&gt;0 ? false : true), _isEarned:_isEarned, _showProgress: true}"/>
		</block>
	</block>
	<block className="EarnedAchievementsByPlayer">
		<style>
			<width value="100%"/>
		</style>
		<bind name="tooltip" value="'EarnedAchievementsByPlayerTooltip'; {_achievements: _achievements, _isSelfPlayer: _isSelfPlayer}"/>
		<block>
			<style>
				<width value="21px"/>
				<height value="21px"/>
				<position value="absolute"/>
				<marginLeft value="-2px"/>
				<marginTop value="-1px"/>
				<mouseChildren value="false"/>
				<mouseEnabled value="false"/>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:../achievements/icons/icon_achievement.png'"/>
		</block>
	</block>
	<block className="EarnedAchievementsByPlayerTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
		</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="$FullsizeAbsolute"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginBottom value="3px"/>
			</style>
			<block type="text">
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<marginBottom value="7px"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value="'$FontColorWhite'"/>
				<bind name="text" value="_isSelfPlayer ? tr('IDS_YOUR_ACHIEVEMENTS') : tr('IDS_PLAYERS_ACHIEVEMENTS')"/>
			</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%"/>
					<marginTop value="11px"/>
				</style>
				<bind name="repeat" value="_achievements; 'AchievementIconWithTitle'"/>
			</block>
		</block>
	</block>
	<block className="AchievementIcon">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; _id; 'achievement'"/>
		<bind name="style" value="'alpha'; _isDesaturated ? 0.75 : 1"/>
		<bind name="name" value="'AchievementWithCount_'+(_isEarned ? 'Earned_':'') + achievement.name"/>
		<block>
			<bind name="tooltip" value="'AchievementTooltip'; {_id: _id, _progressWidth: _progressWidth}"/>
			<bind name="style" value="'width'; _size ? _size : '80px' "/>
			<bind name="style" value="'height'; _size ? _size : '80px' "/>
			<style>
				<marginRight value="0px"/>
				<marginTop value="0px"/>
				<backgroundStretchX value="true"/>
				<backgroundStretchY value="true"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + (_isDesaturated ? achievement.imageDesURL : achievement.imageURL)"/>
			<block type="text">
				<bind name="visible" value="_amount &gt; 1 &amp;&amp; (achievement.multiple)"/>
				<style>
					<textAlign value="right"/>
					<position value="absolute"/>
					<bottom value="-7px"/>
					<right value="-5px"/>
				</style>
				<bind name="class" value="_isSmall ? '$TextDefaultWhite' : '$TextAccentBold'"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="class" value="'$FontColorWhite'"/>
				<bind name="text" value="'x'+_amount"/>
			</block>
		</block>
		<block>
			<bind name="tooltip" value="'SimpleTooltip';{tooltipText: tr('IDS_CURRENT_PROGRESS') + tr('IDS_COLON') + ' ' + format(achievement.condition.currentProgress, 0) + '/' + format(achievement.condition.max, 0)}"/>
			<bind name="visible" value="(achievement.condition.currentProgress &gt; 0) &amp;&amp; (achievement.condition.max &gt; 0) &amp;&amp; (_showProgress == true)"/>
			<styleClass value="$MiddleAligned"/>
			<bind name="style" value="'width'; _progressWidth ? _progressWidth : '30px' "/>
			<style>
				<marginTop value="3px"/>
			</style>
			<block className="indicator_progress_bar" type="native">
				<style>
					<width value="100%"/>
				</style>
				<bind name="value" value="(achievement.condition.progress)*10"/>
			</block>
		</block>
	</block>
	<block className="AchievementTooltip">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; _id; 'achievement'"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="340px"/>
		</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%"/>
				<marginTop value="12px"/>
				<marginBottom value="0px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<marginLeft value="12px"/>
						<marginBottom value="12px"/>
					</style>
					<bind name="instance" value="'AchievementIcon'; {_id: _id, _amount: _amount, _progressWidth: _progressWidth}"/>
				</block>
				<block>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<style>
						<marginLeft value="10px"/>
						<marginTop value="-1px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderWhiteBold"/>
						<style>
							<width value="100%"/>
							<maxWidth value="222"/>
							<textAlign value="left"/>
						</style>
						<bind name="class" value="(achievement.amount &gt; 0) 	? '$FontColorGolden' 
															: '$FontColorWhite'"/>
						<bind name="text" value="achievement.nameIDS"/>
					</block>
					<block type="text">
						<styleClass value="$TextHeaderBigDefaultTech"/>
						<style>
							<marginTop value="-3px"/>
							<maxWidth value="220"/>
							<textAlign value="left"/>
						</style>
						<bind name="text" value="toLowerCase(tr(achievement.subtypeIDS))"/>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="((_amount == null) &amp;&amp; (achievement.amount &gt; 0)) &amp;&amp; (achievement.multiple)"/>
				<style>
					<width value="100%"/>
					<marginTop value="8px"/>
					<marginBottom value="8px"/>
				</style>
				<block type="text">
					<bind name="visible" value="(achievement.amount &gt; 1)"/>
					<styleClass value="$TextHeaderBigDefaultTech"/>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<style>
						<textAlign value="left"/>
					</style>
					<bind name="text" value="(tr('IDS_EARNED') + tr('IDS_COLON') + ' ' + achievement.amount)"/>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderBigDefaultTech"/>
					<style>
						<marginLeft value="12px"/>
						<textAlign value="left"/>
					</style>
					<bind name="style" value="'marginBottom'; (achievement.achieveShip!=null) ? '1px' : '9px'"/>
					<bind name="text" value="((achievement.amount &gt; 1)	? (tr('IDS_LAST_TIME') +' '+ achievement.achieveTime)
														: (tr('IDS_EARNED') + tr('IDS_COLON') + ' ' + achievement.amount))"/>
				</block>
				<block>
					<bind name="visible" value="(achievement.achieveShip != 0)"/>
					<style>
						<width value="100%"/>
						<marginLeft value="12px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBigDefaultTech"/>
						<styleClass value="$MiddleVAligned"/>
						<style>
							<textAlign value="left"/>
						</style>
						<bind name="text" value="tr('IDS_ON_SHIP')+' '"/>
					</block>
					<block>
						<style>
							<marginTop value="-1px"/>
						</style>
						<bind name="instance" value="'ShipTitleWithIconAndLevel'; {_shipID: achievement.achieveShip}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<bind name="visible" value="((_amount == null) &amp;&amp; (achievement.amount &gt; 0)) &amp;&amp; (achievement.multiple)"/>
				<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>
				<styleClass value="$InfoBlockIndent"/>
				<style>
					<marginTop value="8px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<style>
						<width value="100%"/>
						<textAlign value="left"/>
					</style>
					<bind name="text" value="achievement.condition.description"/>
				</block>
				<block>
					<bind name="visible" value="(achievement.condition.currentProgress &gt; 0) &amp;&amp; (achievement.condition.max &gt; 0)"/>
					<style>
						<marginTop value="18px"/>
						<width value="100%"/>
					</style>
					<block className="indicator_progress_bar" type="native">
						<style>
							<width value="100%"/>
						</style>
						<bind name="value" value="(achievement.condition.progress)*10"/>
					</block>
					<block type="text">
						<styleClass value="$MiddleAligned"/>
						<styleClass value="$TextHeaderBigDefaultTech"/>
						<style>
							<marginTop value="6px"/>
						</style>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="tr('IDS_CURRENT_PROGRESS') + tr('IDS_COLON') + ' ' + format(achievement.condition.currentProgress, 0) + '/' + format(achievement.condition.max, 0)"/>
					</block>
				</block>
			</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%"/>
					<marginTop value="8px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBigDefaultTech"/>
					<styleClass value="$InfoBlockHorizontalIndent"/>
					<bind name="style" value="'marginBottom'; achievement.hasReward ? '9px' : '12px'"/>
					<style>
						<textAlign value="left"/>
					</style>
					<bind name="text" value="achievement.multipleIDS"/>
				</block>
				<block>
					<style>
						<width value="100%"/>
						<bottom value="0px"/>
						<position value="absolute"/>
					</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="achievement.hasReward"/>
				<style>
					<width value="100%"/>
					<marginTop value="12px"/>
					<marginBottom value="12px"/>
				</style>
				<block className="icon_giftbox_small" type="native">
					<style>
						<marginLeft value="14px"/>
					</style>
				</block>
				<block>
					<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
					<style>
						<width value="258px"/>
						<marginTop value="-3px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<style>
							<width value="100%"/>
							<textAlign value="left"/>
						</style>
						<bind name="text" value="achievement.rewardConditionIDS"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="AchievementIconWithTitle">
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'achievements'; id; 'achievement'"/>
		<style>
			<width value="100%"/>
			<height value="44px"/>
		</style>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="100%"/>
				<marginBottom value="9px"/>
				<marginLeft value="15px"/>
			</style>
			<block>
				<bind name="instance" value="'AchievementIcon'; {_id: id, _amount: amount , _size: '34px', _isSmall: true, _showProgress: _showProgress}"/>
			</block>
			<block type="text">
				<style>
					<marginLeft value="8px"/>
					<marginTop value="6px"/>
					<width value="100%"/>
				</style>
				<styleClass value="$TextDefaultBold"/>
				<bind name="class" value=" _class ? _class: '$FontColorGolden'"/>
				<bind name="text" value="achievement.nameIDS"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="AchievementIconWithTitleForFlags">
		<style>
			<width value="100%"/>
		</style>
		<bind name="tooltip" value="'AchievementTooltip'; {_id: $value}"/>
		<bind name="instance" value="'AchievementIconWithTitle'; {id: $value, _class: '$FontColorWhite'}"/>
	</block>
	<block className="AchievementIconWithTitleForRewards">
		<style>
			<width value="100%"/>
		</style>
		<bind name="instance" value="'AchievementIconWithTitle'; { id: details.achievementId, amount: amount }"/>
	</block>
	<block className="RewardItem">
		<style>
			<marginLeft value="5px"/>
			<marginRight value="5px"/>
			<marginBottom value="5px"/>
			<height value="80px"/>
		</style>
		<block>
			<style>
				<height value="100%"/>
			</style>
			<block>
				<style>
					<bottom value="0"/>
				</style>
				<bind name="style" value="'alpha'; isPRMP == true ? 1 : 0.6"/>
				<bind name="child" value="type; { rewardItem: {	id: id,
												amount: amount,
												reasons: reasons,
												name: name,
												type: type,
												subtype: subtype,
												isPRMP: isPRMP,
												params: params }, _withTooltip: true }; {	Exterior: 'GiftboxRewardExterior',
																							Modernization: 'RewardModernizationItem',
																							Ability: 'RewardResourceItem',
																							Ship: 'RewardShip',
																							Resource: 'RewardResourceItem',
																							ResourceCoeff: 'RewardResourceItem',
																							Crew: 'RewardCrew',
																							Unit: 'UnsupportedReward',
																							Reward: 'UnsupportedReward',
																							Token: 'RewardTokenItem',
																							Exchange: 'RewardResourceItem',
																							Lootbox: 'RewardLootboxItem',
																							Collection: 'RewardResourceItem',
																							}"/>
			</block>
			<block className="icon_issued_small" type="native">
				<bind name="visible" value="isPRMP == false"/>
				<style>
					<position value="absolute"/>
					<top value="43%"/>
					<left value="33%"/>
					<hitTest value="false"/>
				</style>
				<bind name="rotation" value="(type == 'Ship' || type == 'Exterior' || type == 'Collection')	? -4
																							: (type == 'Resource' || type == 'ResourceCoeff')	? -2
																																				: 0"/>
				<bind name="scaleX" value="(type == 'Ship')	? 1.3
											: (type == 'Resource' || type == 'ResourceCoeff')	? 1.05
																								: 0.85"/>
				<bind name="scaleY" value="(type == 'Ship')	? 1.3
											: (type == 'Resource' || type == 'ResourceCoeff')	? 1.05
																								: 0.85"/>
				<innerBind elementName="item.item" name="text" value="'IDS_ISSUED_STAMP'"/>
				<bind name="gotoAndStop!" value="'issued'"/>
			</block>
		</block>
	</block>
	<block className="GiftboxRewardExterior">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; rewardItem.id"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="feature" value="14; ''"/>
		<bind name="watch" value="'isExteriorFeatureNotAvailable'; feature_14 == 'locked'"/>
		<bind name="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
		<bind name="clickSplit"/>
		<bind name="tooltip" value="'ExteriorRewardTooltip'; { rewardItem: rewardItem}"/>
		<bind name="menu" value="'RewardContextMenu'; (isExteriorFeatureNotAvailable || rewardItem.isPRMP || _isPermoflage)	? null
																											: {_type: rewardItem.type, _subtype: rewardItem.subtype, _exteriorId: rewardItem.id}"/>
		<bind name="action" value="'left_click'; (isExteriorFeatureNotAvailable || rewardItem.isPRMP || _isPermoflage) 	? ''
																										: 'goToReward';  { type: rewardItem.type, subtype: rewardItem.subtype }"/>
		<block>
			<style>
				<marginTop value="9px"/>
				<marginRight value="8px"/>
				<marginLeft value="8px"/>
			</style>
			<bind name="instance" value="'ExteriorIconWithAmount'; {	_exteriorId: rewardItem.id,
													_amount: exteriorConfig.type == ExteriorTypes.ENSIGN ? 0 : rewardItem.amount,
													_isDesaturated: isExteriorFeatureNotAvailable
													} "/>
		</block>
	</block>
	<block className="ExteriorRewardTooltip">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; rewardItem.id"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; rewardItem.params.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="watch" value="'_isPermoflage'; exteriorConfig.type == ExteriorTypes.CAMOUFLAGE &amp;&amp; exteriorConfig.isPermanent"/>
		<bind name="watchDH" value="'count'; ['exteriorEntity.countComponent.evUpdate']; exteriorEntity.countComponent.value"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
		</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>
			<block>
				<style>
					<marginLeft value="12px"/>
					<marginBottom value="12px"/>
					<marginTop value="12px"/>
				</style>
				<block>
					<bind name="instance" value="'ExteriorIconWithAmount'; { _exteriorId: rewardItem.id,
															_amount: exteriorConfig.type == ExteriorTypes.ENSIGN ? 0 : rewardItem.amount,
															_isDesaturated: false
															}"/>
				</block>
				<block>
					<style>
						<marginTop value="3px"/>
						<marginLeft value="9px"/>
					</style>
					<block type="text">
						<styleClass value="$TextHeaderBold"/>
						<bind name="class" value="'$FontColorGolden'"/>
						<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '208' : '190'"/>
						<style>
							<marginBottom value="5px"/>
						</style>
						<bind name="text" value="rewardItem.params.shipId != null	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
																	: tr('IDS_' + toUpperCase(exteriorConfig.name))})"/>
					</block>
					<block type="text">
						<style>
							<marginTop value="-9px"/>
						</style>
						<bind name="style" value="'maxWidth'; (exteriorConfig.type == ExteriorTypes.FLAGS) ? '208' : '190'"/>
						<styleClass value="$TextDefault"/>
						<bind name="text" value="'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
					</block>
				</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>
				<bind name="visible" value="(rewardItem.isPRMP != true) &amp;&amp; !(_isPermoflage)"/>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<style>
						<marginLeft value="12px"/>
						<marginBottom value="9px"/>
						<marginTop value="9px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="tr('IDS_EARNED')+ tr('IDS_COLON') + ' '+ rewardItem.amount + '  ' + tr('IDS_IN_STOCK') + tr('IDS_COLON') + ' ' + count"/>
				</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>
			<block>
				<bind name="visible" value="exteriorConfig.params.length &gt; 0"/>
				<style>
					<width value="100%"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<styleClass value="$PxHorizontalCorrection"/>
				</block>
				<block>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="repeat" value="exteriorConfig.params; 'ExteriorParams'"/>
				</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>
			<block>
				<bind name="visible" value="(rewardItem.isPRMP != true)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'RewardReasonsList'; {_rewardReasons: rewardItem.reasons }"/>
				</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>
			<bind name="feature" value="14; ''"/>
			<bind name="watch" value="'isFeatureInRewardAvailable'; feature_14 != 'locked'"/>
			<block>
				<bind name="visible" value="(rewardItem.isPRMP != true)"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<bind name="visible" value="isFeatureInRewardAvailable &amp;&amp; !(_isPermoflage)"/>
					<style>
						<width value="100%"/>
					</style>
					<block>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<style>
							<width value="100%"/>
							<marginTop value="12px"/>
							<marginBottom value="5px"/>
						</style>
						<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_HINT_LEFT_CLICK_TO_OPEN_EXTERIOR_CONFIGURATION', _maxWidth: 250}"/>
					</block>
					<block>
						<styleClass value="$InfoBlockHorizontalIndent"/>
						<style>
							<width value="100%"/>
							<marginBottom value="9px"/>
						</style>
						<bind name="instance" value="'MouseInstruction'; {_type: 'right', _instructionText: 'IDS_HINT_RIGHT_CLICK_FOR_CONTEXT_MENU', _maxWidth: 250}"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="!(isFeatureInRewardAvailable)"/>
					<styleClass value="$InfoBlockIndent"/>
					<bind name="instance" value="'StatusLineWithIcon'; { _text: 'IDS_SIGNALS_IS_NOT_AVAILABLE_NOW', _maxWidth: 270}"/>
				</block>
			</block>
		</block>
	</block>
	<block className="RewardReasonsList">
		<styleClass value="$InfoBlockHorizontalIndent"/>
		<style>
			<marginTop value="9px"/>
			<marginBottom value="2px"/>
		</style>
		<block type="text">
			<styleClass value="$TextDefaultTech"/>
			<bind name="text" value="'IDS_REWARD_REASON'"/>
		</block>
		<block>
			<style>
				<marginLeft value="-6px"/>
				<marginTop value="6px"/>
				<width value="100%"/>
			</style>
			<bind name="repeat" value="_rewardReasons; 'RewardReasonListItem'"/>
		</block>
	</block>
	<block className="RewardReasonListItem">
		<style>
			<width value="100%"/>
			<marginBottom value="5px"/>
		</style>
		<bind name="child" value="type; { amount: amount, details: details}; 'AchievementIconWithTitleForRewards'; 'RankIconWithTitleForRewards'; 'RankIconWithTitleForRewards';
															'QuestIconWithTitleForRewards'; 'AccountLevelIconWithTitleForRewards'; MissionIconWithTitleForRewards;
															'CampaignTaskWithTitleForRewards';
															'PVESeasonIconWithTitleForRewards';"/>
	</block>
	<block className="AccountLevelIconWithTitleForRewards">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="44px"/>
			<marginLeft value="6px"/>
		</style>
		<block className="icons_account_level_outer" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="54px"/>
				<height value="54px"/>
			</style>
			<bind name="gotoAndStop!" value="accountLevelInfo.outerClipFrame"/>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="text" value="details.level"/>
			</block>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextDefaultBold"/>
			<style>
				<maxWidth value="220"/>
				<leading value="-2"/>
			</style>
			<bind name="text" value="details.ids"/>
		</block>
	</block>
	<block className="MissionIconWithTitleForRewards">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="44px"/>
			<marginLeft value="6px"/>
		</style>
		<block type="text">
			<styleClass value="$TextHeaderWhiteBold"/>
			<bind name="text" value="details.level"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultBold"/>
			<style>
				<maxWidth value="220"/>
				<leading value="-2"/>
			</style>
			<bind name="text" value="details.ids"/>
		</block>
	</block>
	<block className="CampaignTaskWithTitleForRewards">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="60px"/>
		</style>
		<block>
			<style>
				<width value="60px"/>
				<height value="60px"/>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:../campaigns/missions_pin/' + (details.campaignName) + '_pin.png'"/>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="text" value="details.missionNumber"/>
			</block>
		</block>
		<block type="text">
			<style>
				<maxWidth value="220"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextDefaultBold"/>
			<bind name="text" value="(tr('IDS_CAMPAIGN_TASK') + ' ' + details.taskNumber)"/>
		</block>
	</block>
	<block className="PVESeasonIconWithTitleForRewards">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="44px"/>
			<marginLeft value="6px"/>
		</style>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextHeaderWhiteBold"/>
			<bind name="text" value="details.seasonId"/>
		</block>
		<block type="text">
			<styleClass value="$TextHeaderWhiteBold"/>
			<bind name="text" value="details.difficulty"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefaultBold"/>
			<style>
				<maxWidth value="220"/>
				<leading value="-2"/>
			</style>
			<bind name="text" value="details.ids"/>
		</block>
	</block>
	<block className="RankIconWithTitleForRewards">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="44px"/>
			<marginLeft value="5px"/>
		</style>
		<block>
			<style>
				<marginTop value="-7px"/>
			</style>
			<bind name="scaleX" value="0.78"/>
			<bind name="scaleY" value="0.78"/>
			<bind name="instance" value="'PlayerRankIcon'; {_rankId: details.rank, _small: true}"/>
		</block>
		<block type="text">
			<style>
				<marginLeft value="-17px"/>
				<maxWidth value="200"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$TextDefaultBold"/>
			<bind name="class" value=" _class ? _class: '$FontColorGolden'"/>
			<bind name="text" value="details.ids"/>
		</block>
	</block>
	<block className="QuestIconWithTitleForRewards">
		<style>
			<flow value="horizontal"/>
			<width value="100%"/>
			<height value="44px"/>
			<marginLeft value="15px"/>
		</style>
		<block className="icon_sse" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<width value="34px"/>
				<height value="34px"/>
			</style>
			<bind name="gotoAndStop!" value="details.type"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="8px"/>
				<width value="100%"/>
			</style>
			<styleClass value="$TextDefaultBold"/>
			<bind name="class" value="'$FontColorTurquoise'"/>
			<bind name="text" value="details.titleText"/>
		</block>
	</block>
	<block className="RewardContextMenu">
		<styleClass value="$DefaultMenuBehaviour"/>
		<style>
			<width value="260px"/>
		</style>
		<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>
		<block>
			<style>
				<height value="36px"/>
				<width value="100%"/>
			</style>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<marginLeft value="6px"/>
					<width value="248px"/>
				</style>
				<bind name="text" value="'IDS_GOTO_EXTERIOR_CONFIGURATION'"/>
			</block>
			<bind name="action" value="'click'; 'goToReward'; { type: _type, subtype: _subtype }"/>
		</block>
		<block>
			<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; _exteriorId"/>
			<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
			<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
			<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
			<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
			<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="visible" value="(shipId &gt; 0) &amp;&amp; (playerShipInfo.sigInstalled &lt; 8 &amp;&amp; !(playerShipInfo.exteriors[_exteriorId]) &amp;&amp; !(playerShipInfo.isLocked) &amp;&amp; !(playerShipInfo.isInFormation))"/>
			<style>
				<height value="36px"/>
				<width value="100%"/>
			</style>
			<block className="InstallExteriorMenuItem">
				<styleClass value="$Fullsize"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<styleClass value="$Fullsize"/>
					<style>
						<hitTest value="false"/>
						<marginLeft value="6px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefault"/>
						<style>
							<marginTop value="7px"/>
						</style>
						<bind name="text" value="tr('IDS_INSTALL_ON')+' '"/>
					</block>
					<block>
						<style>
							<marginTop value="4px"/>
							<marginRight value="6px"/>
						</style>
						<bind name="instance" value="'ShipTitleWithIconAndLevel'; {_shipID:  shipId}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<bind name="action" value="'click'; 	exteriorConfig.type == ExteriorTypes.ENSIGN 	? 'installEnsign' : 'installExterior';
								exteriorConfig.type == ExteriorTypes.ENSIGN 	? {ensignName: _exteriorId, shipId: shipInfo.id}
																				: {exteriorName: exteriorConfig.name, shipName: shipInfo.fullName, goldAutorecharge: false}
								"/>
		</block>
	</block>
	<block className="RewardContainerTooltipItem">
		<style>
			<width value="100%"/>
			<marginBottom value="14px"/>
		</style>
		<bind name="style" value="'marginTop'; (type == 'Ship' ? '10px' : '4px')"/>
		<bind name="name" value="'reward_item_' + name"/>
		<bind name="child" value="type; { rewardItem: {	id: id,
										amount: amount,
										reasons: reasons,
										name: name,
										type: type,
										subtype: subtype,
										params: params} }; {	Exterior: 'RewardContainerTooltipItemExterior',
																Modernization: 'RewardContainerTooltipItemModenizationOrAbility',
																Ability: 'RewardContainerTooltipItemModenizationOrAbility',
																Ship: 'RewardShip',
																Resource: 'RewardContainerTooltipItemWithSpecialIcon',
																ResourceCoeff: 'RewardContainerTooltipItemWithSpecialIcon',
																Crew: 'RewardContainerTooltipItemCrew',
																Unit: 'UnsupportedReward',
																Reward: 'UnsupportedReward',
																Token: 'TokenReward',
																Exchange: 'RewardPersonalExchangeRatesTooltip',
																Lootbox: 'LootboxReward',
																Collection: 'CollectionObjectItemTooltip'}"/>
	</block>
	<block className="UnsupportedReward">
		<block>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="'$FontColorUnready'"/>
				<style>
					<marginBottom value="5px"/>
				</style>
				<bind name="text" value="'REWARD: '+ rewardItem.type+'- IS NOT SUPPORTED'"/>
			</block>
		</block>
	</block>
	<block className="TokenReward">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="80px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'RewardTokenItem'; {rewardItem: rewardItem}"/>
			</block>
		</block>
		<bind name="var" value="{title: 'IDS_' + toUpperCase(rewardItem.name) + '_TOKEN'}"/>
		<bind name="var" value="{description: ''}"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block className="RewardTooltipItemTextGolden">
				<style>
					<marginLeft value="12px"/>
				</style>
				<bind name="style" value="'marginTop'; (description != '') ? '-3px' : '0px'"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorGolden'"/>
					<bind name="style" value="'marginBottom'; (description != '') ? '5px' : '8px'"/>
					<style>
						<maxWidth value="220"/>
					</style>
					<bind name="text" value="title"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-9px"/>
						<maxWidth value="220"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="description"/>
				</block>
			</block>
		</block>
	</block>
	<block className="LootboxReward">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="80px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'RewardLootboxItem'; {rewardItem: rewardItem}"/>
			</block>
		</block>
		<bind name="watch" value="'title'; 	'IDS_REWARD_LOOTBOX_'+toUpperCase(rewardItem.subtype)+'_TITLE'"/>
		<bind name="var" value="{description: ''}"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block className="RewardTooltipItemText">
				<style>
					<marginLeft value="12px"/>
				</style>
				<bind name="style" value="'marginTop'; (description != '') ? '-3px' : '0px'"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="style" value="'marginBottom'; (description != '') ? '5px' : '8px'"/>
					<style>
						<maxWidth value="220"/>
					</style>
					<bind name="text" value="title"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-9px"/>
						<maxWidth value="220"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="description"/>
				</block>
			</block>
		</block>
	</block>
	<block className="RewardContainerTooltipItemCrew">
		<style>
			<width value="143px"/>
			<height value="80px"/>
		</style>
		<bind name="instance" value="'RewardCrewImage'; { _crew: rewardItem.params.item, _shipWithoutCrew: true }"/>
	</block>
	<block className="RewardCrewImage">
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; _crew.shipId; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; _crew.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"/>
		<style>
			<width value="143px"/>
			<height value="80px"/>
		</style>
		<block>
			<style>
				<position value="absolute"/>
				<alpha value="0.5"/>
				<width value="130px"/>
				<height value="80px"/>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'NationFlagsBig'; {_width: '100%', _height: '100%', shipCountry: shipInfo.flagName }"/>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="0px"/>
				<right value="0px"/>
				<width value="80px"/>
				<height value="80px"/>
			</style>
			<bind name="class" value="_crew.person ? '$CrewPortraitSizeSmall' : '$None'"/>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<backgroundSize value="cover"/>
				</style>
				<bind name="style" value="'backgroundImage'; _crew.person 	? 'url:' + _crew.baseUrl
															: 'url:../reward_icons/icon_reward_Crew.png'"/>
			</block>
			<block>
				<bind name="visible" value="_crew.person"/>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<backgroundSize value="cover"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:' + _crew.overlayUrl"/>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<top value="32px"/>
					<left value="-16px"/>
				</style>
				<bind name="instance" value="'CrewSkillPointBadge'; _crew.level &gt; 0 ? { _skillPoints: _crew.level } : null"/>
			</block>
		</block>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="-6px"/>
				<left value="0px"/>
			</style>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$Bold'"/>
				<style>
					<width value="130px"/>
				</style>
				<bind name="text" value="tr(_crew.firstNameIDS) + ' ' + tr(_crew.lastNameIDS)"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="_shipWithoutCrew == true"/>
			<style>
				<height value="20px"/>
				<marginLeft value="3px"/>
			</style>
			<block className="icon_wreath" type="native">
				<styleClass value="$MiddleVAligned"/>
				<style>
					<position value="absolute"/>
					<left value="-5px"/>
				</style>
				<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
				<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
								shipInfo.isPremium 	? 'premium'
													: 'elite'"/>
			</block>
			<block className="icon_ship" type="native">
				<styleClass value="$MiddleVAligned"/>
				<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$Bold'"/>
				<style>
					<marginTop value="-2px"/>
					<marginLeft value="2px"/>
				</style>
				<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
				<bind name="text" value="tr(shipInfo.levelRome) + ' '  + tr(shipInfo.nameIDS)"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RewardContainerTooltipItemWithSpecialIcon">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="80px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'RewardResourceItem'; {rewardItem: rewardItem}"/>
			</block>
		</block>
		<bind name="watch" value="'title'; ('IDS_REWARD_'+toUpperCase(rewardItem.subtype)+'_TITLE')"/>
		<bind name="var" value="{description: ''}"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block className="RewardTooltipItemText">
				<style>
					<marginLeft value="12px"/>
				</style>
				<bind name="style" value="'marginTop'; (description != '') ? '-3px' : '0px'"/>
				<block type="text">
					<styleClass value="$TextHeaderBold"/>
					<bind name="style" value="'marginBottom'; (description != '') ? '5px' : '8px'"/>
					<style>
						<maxWidth value="220"/>
					</style>
					<bind name="text" value="title"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-9px"/>
						<maxWidth value="220"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="description"/>
				</block>
			</block>
		</block>
	</block>
	<block className="RewardContainerTooltipItemExterior">
		<bind name="primaryEntityDH" value="'exteriorEntity'; CC.exteriorConfig; rewardItem.id"/>
		<bind name="watchDH" value="'exteriorConfig'; []; exteriorEntity.exteriorConfig"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; rewardItem.params.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"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="80px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'IconWithAmount'; {	_width: (exteriorConfig.type == ExteriorTypes.FLAGS ? '60px' : '75px'), 
												_height: '60px', _amount: exteriorConfig.type == ExteriorTypes.ENSIGN ? 0 : rewardItem.amount, _iconPath: exteriorConfig.iconPath}"/>
			</block>
		</block>
		<bind name="watch" value="'title'; rewardItem.params.shipId != null	? subst('IDS_EXTERIOR_NAME_WITH_SHIP', [], {exteriorName: tr('IDS_' + toUpperCase(exteriorConfig.name)), shipName: tr(shipInfo.nameIDS + '_FULL')})
															: tr('IDS_' + toUpperCase(exteriorConfig.name))})"/>
		<bind name="watch" value="'description'; 'IDS_' + toUpperCase(exteriorConfig.name) + '_DESCRIPTION'"/>
		<block className="RewardTooltipItemText">
			<style>
				<marginLeft value="12px"/>
			</style>
			<bind name="style" value="'marginTop'; (description != '') ? '-3px' : '0px'"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="style" value="'marginBottom'; (description != '') ? '5px' : '8px'"/>
				<style>
					<maxWidth value="220"/>
				</style>
				<bind name="text" value="title"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-9px"/>
					<maxWidth value="220"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="description"/>
			</block>
		</block>
	</block>
	<block className="RewardContainerTooltipItemModenizationOrAbility">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="80px"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<bind name="instance" value="'RewardResourceItem'; {rewardItem: rewardItem}"/>
			</block>
		</block>
		<bind name="watch" value="'title'; (rewardItem.type =='Modernization'	? 'IDS_TITLE_' + toUpperCase(rewardItem.params.item.title)
																: rewardItem.params.item.title)"/>
		<bind name="watch" value="'description'; rewardItem.type =='Modernization' ? ('IDS_MODERNIZATION_' + toUpperCase(rewardItem.params.item.type))
																	: 'IDS_CONSUMABLES'"/>
		<block className="RewardTooltipItemText">
			<style>
				<marginLeft value="12px"/>
			</style>
			<bind name="style" value="'marginTop'; (description != '') ? '-3px' : '0px'"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="style" value="'marginBottom'; (description != '') ? '5px' : '8px'"/>
				<style>
					<maxWidth value="220"/>
				</style>
				<bind name="text" value="title"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-9px"/>
					<maxWidth value="220"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="description"/>
			</block>
		</block>
	</block>
	<block className="CollectionObjectItemTooltip">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="watch" value="'title'; 					('IDS_' + (rewardItem.params.item.title))"/>
		<bind name="watch" value="'collectionName'; 			('IDS_' + (rewardItem.params.collectionName))"/>
		<bind name="watch" value="'collectionNameQuotes'; 	(tr(toUpperCase(collectionName) + '_QUOTES'))"/>
		<block>
			<bind name="instance" value="'RewardCollectionItem'; { _iconPath: rewardItem.params.item.iconPath, _isDuplicate: rewardItem.params.isDuplicate }"/>
		</block>
		<block className="RewardTooltipItemText">
			<style>
				<marginLeft value="12px"/>
			</style>
			<bind name="style" value="'marginTop'; (subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes }) != '') ? '-3px' : '0px'"/>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="style" value="'marginBottom'; (subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes }) != '') ? '5px' : '8px'"/>
				<style>
					<maxWidth value="220"/>
				</style>
				<bind name="text" value="toUpperCase(tr(title))"/>
			</block>
			<block type="text">
				<style>
					<marginTop value="-9px"/>
					<maxWidth value="220"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="text" value="subst('IDS_COLLECTION_NAME', [], { _collectionName: collectionNameQuotes })"/>
			</block>
		</block>
	</block>
	<block className="IconWithAmount">
		<bind name="style" value="'width'; (_width ? _width : '60px')"/>
		<bind name="style" value="'height'; (_height ? _height : '60px')"/>
		<bind name="style" value="'backgroundImage'; 'url:' + _iconPath"/>
		<style>
			<backgroundStretchX value="true"/>
			<backgroundStretchY value="true"/>
		</style>
		<block>
			<bind name="visible" value="_amount &gt; 0"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="var" value="{fontSizeClass:	(_amount &lt; 5) ? '$None'  :
									(_amount &lt; 10) ? '$FontSize18' :
									(_amount &lt; 20) ? '$FontSizeHeader6' : '$FontSize20'}"/>
			<block type="text">
				<style>
					<right value="0px"/>
					<bottom value="-2px"/>
					<position value="absolute"/>
				</style>
				<styleClass value="$TextHeaderBigWhite"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="class" value="fontSizeClass"/>
				<bind name="text" value="_amount"/>
			</block>
		</block>
	</block>
	<block className="RewardCollectionItem">
		<bind name="var" value="{isClicked: false}"/>
		<bind name="catch" value="'click'; {isClicked: true}"/>
		<bind name="action" value="'click'; 'moveFromBarge'"/>
		<bind name="action" value="'removedFromStage'; isClicked ? 'goToReward' : null; { type: 'Lootbox', subtype: rewardItem.subtype }"/>
		<block>
			<style>
				<width value="90px"/>
				<height value="90px"/>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:' + _iconPath"/>
		</block>
		<block className="icon_issued" type="native">
			<bind name="visible" value="_isDuplicate == true"/>
			<bind name="scaleX" value="0.6"/>
			<bind name="scaleY" value="0.6"/>
			<bind name="rotation" value="-5"/>
			<style>
				<position value="absolute"/>
				<top value="60%"/>
				<left value="50%"/>
				<hitTest value="false"/>
			</style>
			<innerBind elementName="item.item" name="text" value="toUpperCase(tr('IDS_DUPLICATE_STAMP'))"/>
			<bind name="gotoAndStop!" value="'issued'"/>
		</block>
	</block>
	<block className="RewardResourceItem">
		<bind name="tooltip" value="'RewardResourcesTooltip'; _withTooltip ? { rewardItem: rewardItem } : null"/>
		<bind name="child" value="rewardItem.subtype ? rewardItem.subtype : 'noItem'; {	_rewardItem: rewardItem,
																		_iconPath: rewardItem.params.item.iconPath,
																		_isDuplicate: rewardItem.params.isDuplicate,
																		_amount: rewardItem.amount	}; {	exp: 'RewardResources',
																											gold: 'RewardResources',
																											freexp: 'RewardResources',
																											credits: 'RewardResources',
																											elitexp: 'RewardResources',
																											accPoints: 'RewardResources',
																											crewPoints: 'RewardResources',
																											barCapacity: 'RewardResourceBarCapacity',
																											premium: 'RewardResourcePremium',
																											slots: 'RewardResourceSlot',
																											expCoeff: 'RewardResourcesCoeff',
																											freexpCoeff: 'RewardResourcesCoeff',
																											creditsCoeff: 'RewardResourcesCoeff',
																											accPointsCoeff: 'RewardResourcesCoeff',
																											crewPointsCoeff: 'RewardResourcesCoeff',
																											Ability: 'IconWithAmount',
																											Modernization: 'IconWithAmount',
																											creditsGold: 'RewardPersonalExchangeRates',
																											xpFreeExp: 'RewardPersonalExchangeRates',
																											goldMoney: 'RewardPersonalExchangeRates',
																											CollectionCard: 'RewardCollectionItem',
																											CollectionAlbum: 'RewardCollectionItem',
																											noItem: 'EmptyItem'}"/>
		<bind name="action" value="'click'; rewardItem.isPRMP || !(rewardItem.type == 'Ability') ? '' : 'goToReward'; { type: rewardItem.type, subtype: rewardItem.subtype }"/>
	</block>
	<block className="RewardModernizationItem">
		<bind name="tooltip" value="'RewardModernizationTooltip'; _withTooltip ? {rewardItem: rewardItem} : null"/>
		<bind name="instance" value="'IconWithAmount'; {	_rewardItem: rewardItem,
										_iconPath: rewardItem.params.item.iconPath,
										_amount: rewardItem.amount	}"/>
	</block>
	<block className="RewardTokenItem">
		<style>
			<width value="80px"/>
			<height value="80px"/>
			<backgroundSize value="cover"/>
		</style>
		<bind name="action" value="'click'; 'openChooseCampaignsWindow'; {}"/>
		<bind name="tooltip" value="'RewardResourcesTooltip'; _withTooltip ? {rewardItem: rewardItem} : null"/>
		<bind name="style" value="'backgroundImage'; ('url:../tokens/' + rewardItem.name + '.png')"/>
	</block>
	<block className="RewardLootboxItem">
		<bind name="tooltip" value="'RewardResourcesTooltip'; _withTooltip ? {rewardItem: rewardItem} : null"/>
		<bind name="watch" value="'backgroundURL'; 	'../reward_icons/icon_reward_lootbox_'+rewardItem.subtype+'.png'"/>
		<bind name="instance" value="'IconWithAmount'; {	_rewardItem: rewardItem, 
										_iconPath: backgroundURL, 
										_amount: rewardItem.amount}"/>
	</block>
	<block className="RewardShip">
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; rewardItem.id; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'shipEntity'; CC.ship; rewardItem.id; '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="tooltip" value="'ShipExtendedTooltip'; { shipId: rewardItem.id, _inRewards: true, _rewardReasons: rewardItem.reasons, _isPRMP: rewardItem.isPRMP}"/>
		<bind name="action" value="'click'; rewardItem.isPRMP ? '' : 'selectShipUpgrade' ; {shipId : rewardItem.id}"/>
		<style>
			<flow value="horizontal"/>
			<height value="80px"/>
		</style>
		<block>
			<style>
				<width value="143px"/>
				<height value="100%"/>
			</style>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<alpha value="0.6"/>
					<hitTest value="false"/>
				</style>
				<bind name="instance" value="'NationFlagsBig'; {_width: '100%', _height: '100%', shipCountry: shipInfo.flagName}"/>
			</block>
			<block>
				<style>
					<width value="143px"/>
					<height value="84px"/>
					<backgroundStretchX value="true"/>
					<backgroundStretchY value="true"/>
				</style>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<styleClass value="$MiddleVAligned"/>
				<bind name="style" value="'backgroundImage'; 'url:' + shipInfo.pathPreview"/>
			</block>
			<block>
				<styleClass value="$Fullsize"/>
				<style>
					<marginLeft value="8px"/>
					<marginRight value="8px"/>
					<marginTop value="4px"/>
					<marginBottom value="4px"/>
				</style>
				<block>
					<style>
						<height value="20px"/>
					</style>
					<block className="icon_wreath" type="native">
						<styleClass value="$MiddleVAligned"/>
						<style>
							<position value="absolute"/>
							<left value="-5px"/>
						</style>
						<bind name="visible" value="upgradableShipInfo.isElite || shipInfo.isPremium || shipInfo.uiSpecial"/>
						<bind name="gotoAndStop!" value="shipInfo.uiSpecial	? 'special' :
										shipInfo.isPremium 	? 'premium'
															: 'elite'"/>
					</block>
					<block className="icon_ship" type="native">
						<styleClass value="$MiddleVAligned"/>
						<bind name="gotoAndStop!" value="shipInfo.isPremium || shipInfo.uiSpecial ? shipInfo.subtype + '_P' : shipInfo.subtype"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: shipInfo.shipTypeIDS}; 0"/>
					</block>
					<block type="text">
						<styleClass value="$TextSecondaryBold"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
						<style>
							<marginTop value="-1px"/>
							<marginLeft value="3px"/>
							<marginRight value="3px"/>
						</style>
						<bind name="text" value="shipInfo.levelRome"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<bottom value="-10px"/>
						<right value="-6"/>
					</style>
					<block type="text">
						<styleClass value="$TextDefaultBold"/>
						<bind name="class" value="'$LetterSpacingSmall'"/>
						<bind name="class" value="shipInfo.isPremium || shipInfo.uiSpecial ? '$FontColorGold' : '$FontColorWhite'"/>
						<bind name="text" value="toUpperCase(tr(shipInfo.nameIDS))"/>
					</block>
				</block>
			</block>
		</block>
		<block>
			<style>
				<height value="80px"/>
			</style>
			<bind name="visible" value="rewardItem.params.crew != null"/>
			<block type="text">
				<style>
					<marginLeft value="3px"/>
					<marginRight value="3px"/>
				</style>
				<styleClass value="$TextAccentBoldAccountLevel2"/>
				<styleClass value="$MiddleVAligned"/>
				<text value="+"/>
			</block>
			<block>
				<bind name="instance" value="'RewardCrewImage'; { _crew: rewardItem.params.crew }"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RewardResources">
		<style>
			<width value="80px"/>
			<height value="80px"/>
		</style>
		<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + _rewardItem.subtype + '.png')"/>
		<bind name="watch" value="'currency'; 	(_rewardItem.subtype == 'crewPoints')	?	'exp' :
		 						(_rewardItem.subtype == 'accPoints')	?	'exp' :
		 																	_rewardItem.subtype"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<bottom value="-6"/>
			</style>
			<bind name="style" value="'bottom'; _rewardItem.amount &gt; 9999 ? -6 : -9"/>
			<block>
				<style>
					<marginLeft value="4px"/>
				</style>
				<bind name="instance" value="'PriceTag'; { priceInfo: { finalPrice: _rewardItem.amount, currency: currency}, _large: (_rewardItem.amount &gt; 9999 ? false : true),
																											_medium: (_rewardItem.amount &gt; 9999 ? true : false)}"/>
			</block>
		</block>
	</block>
	<block className="RewardResourceBarCapacity">
		<style>
			<width value="80px"/>
			<height value="80px"/>
		</style>
		<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + _rewardItem.subtype + '.png')"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<bottom value="-6"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="text" value="_rewardItem.amount"/>
			</block>
			<block type="text">
				<bind name="class" value="'$Bold'"/>
				<styleClass value="$TextHeader"/>
				<bind name="pluralText" value="'IDS_PL_PLACES'; _rewardItem.amount"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RewardCrew">
		<style>
			<width value="143px"/>
			<height value="80px"/>
		</style>
		<bind name="tooltip" value="'CrewTooltip'; { _crewId: rewardItem.params.item.id, _checkPenalty: false, _inRewards: true, _rewardReasons: rewardItem.reasons,
									_isPRMP: rewardItem.isPRMP}"/>
		<bind name="instance" value="'RewardCrewImage'; {_crew: rewardItem.params.item, _shipWithoutCrew: true}"/>
	</block>
	<block className="RewardResourceSlot">
		<style>
			<width value="80px"/>
			<height value="80px"/>
		</style>
		<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + _rewardItem.subtype + '.png')"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<bottom value="-6"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<bind name="class" value="'$FontColorGold'"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="text" value="_rewardItem.amount"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<bind name="class" value="'$FontColorGold'"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="pluralText" value="'IDS_PL_SLOTS'; _rewardItem.amount"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RewardResourcePremium">
		<style>
			<width value="80px"/>
			<height value="80px"/>
		</style>
		<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + _rewardItem.subtype + '.png')"/>
		<block>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<style>
				<bottom value="-6"/>
			</style>
			<block type="text">
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="'$FontColorGold'"/>
				<bind name="text" value="_rewardItem.params.text"/>
			</block>
		</block>
	</block>
	<block className="RewardResourcesCoeff">
		<style>
			<width value="80px"/>
			<height value="80px"/>
		</style>
		<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + _rewardItem.subtype + '.png')"/>
		<block>
			<style>
				<position value="absolute"/>
				<bottom value="-7"/>
				<right value="-4"/>
			</style>
			<block className="icon_double_experience" type="native">
				<style>
					<marginTop value="5px"/>
				</style>
				<bind name="visible" value="_rewardItem.subtype == 'accPointsCoeff' || _rewardItem.subtype == 'crewPointsCoeff'"/>
			</block>
			<block type="text">
				<styleClass value="$TextLargeHeaderBold"/>
				<bind name="class" value="'$FontColorGolden'"/>
				<bind name="text" value="subst('%m',[_rewardItem.amount])"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="RewardPersonalExchangeRates">
		<style>
			<width value="80px"/>
			<height value="80px"/>
		</style>
		<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + _rewardItem.subtype + '.png')"/>
	</block>
	<block className="RewardPersonalExchangeRatesTooltip">
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="80px"/>
				<height value="80px"/>
			</style>
			<bind name="style" value="'backgroundImage'; ('url:../reward_icons/icon_reward_' + rewardItem.subtype + '.png')"/>
		</block>
		<block type="text">
			<style>
				<marginTop value="3px"/>
			</style>
			<styleClass value="$TextHeaderBold"/>
			<bind name="text" value="'IDS_PRMP_ITEM_' + toUpperCase(tr(rewardItem.subtype))"/>
		</block>
	</block>
	<block className="RewardResourcesTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="340px"/>
		</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%"/>
				<marginBottom value="9px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<marginTop value="6px"/>
					<marginBottom value="9px"/>
					<marginLeft value="16px"/>
					<marginRight value="12px"/>
				</style>
				<bind name="instance" value="'RewardContainerTooltipItem'; {	id: rewardItem.id,
															amount: rewardItem.amount,
															reasons: rewardItem.reasons,
															name: rewardItem.name,
															type: rewardItem.type,
															subtype: rewardItem.subtype,
															params: rewardItem.params}"/>
			</block>
			<block>
				<bind name="visible" value="(rewardItem.type == 'Ability' ||
							rewardItem.subtype == 'slots' ||
							rewardItem.subtype == 'barCapacity') &amp;&amp; (rewardItem.isPRMP != 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 type="text">
					<style>
						<marginLeft value="12px"/>
						<marginBottom value="9px"/>
						<marginTop value="9px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="tr('IDS_EARNED')+ tr('IDS_COLON') + ' '+ rewardItem.amount"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="(rewardItem.isPRMP != 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%"/>
					</style>
					<bind name="instance" value="'RewardReasonsList'; {_rewardReasons: rewardItem.reasons }"/>
				</block>
			</block>
			<bind name="instance" value="'TooltipRewardInstructionAbility'; (rewardItem.type == 'Ability') &amp;&amp; (rewardItem.isPRMP != true) ? {_rewardItem: rewardItem} : null"/>
			<bind name="instance" value="'TooltipRewardInstructionCampaignToken'; (rewardItem.type == 'Token') &amp;&amp; (rewardItem.subtype == 'Campaign')? {_rewardItem: rewardItem} : null"/>
		</block>
	</block>
	<block className="RewardModernizationTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="340px"/>
		</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%"/>
				<marginBottom value="9px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
					<height value="80px"/>
					<marginTop value="6px"/>
					<marginBottom value="9px"/>
					<marginLeft value="16px"/>
					<marginRight value="12px"/>
				</style>
				<bind name="instance" value="'RewardContainerTooltipItem'; {	id: rewardItem.id,
															amount: rewardItem.amount,
															reasons: rewardItem.reasons,
															name: rewardItem.name,
															type: rewardItem.type,
															subtype: rewardItem.subtype,
															params: rewardItem.params}"/>
			</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 type="text">
				<styleClass value="$InfoBlockIndent"/>
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="'IDS_DESC_' + toUpperCase(rewardItem.params.item.description)"/>
			</block>
			<block>
				<bind name="visible" value="(rewardItem.isPRMP != 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 type="text">
					<style>
						<marginLeft value="12px"/>
						<marginBottom value="9px"/>
						<marginTop value="9px"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="text" value="tr('IDS_EARNED')+ tr('IDS_COLON') + ' '+ rewardItem.amount"/>
				</block>
			</block>
			<block>
				<bind name="visible" value="(rewardItem.isPRMP != 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%"/>
					</style>
					<bind name="instance" value="'RewardReasonsList'; {_rewardReasons: rewardItem.reasons }"/>
				</block>
			</block>
			<bind name="instance" value="'TooltipRewardInstructionModernization'; (rewardItem.isPRMP != true) ? {_rewardItem: rewardItem} : null"/>
		</block>
	</block>
	<block className="TooltipRewardInstructionModernization">
		<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>
		<bind name="feature" value="12; ''"/>
		<bind name="watch" value="'isModernizationsAvailable'; feature_12 != 'locked'"/>
		<block>
			<bind name="visible" value="isModernizationsAvailable"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<width value="100%"/>
					<marginTop value="12px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_HINT_LEFT_CLICK_TO_OPEN_MODERNIZATIONS_CONFIGURATION', _maxWidth: 290}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!isModernizationsAvailable"/>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'StatusLineWithIcon'; { _text: 'IDS_MODERNIZATIONS_IS_NOT_AVAILABLE_NOW', _maxWidth: 290}"/>
		</block>
	</block>
	<block className="TooltipRewardInstructionAbility">
		<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>
			<bind name="visible" value="isModernizationsAvailable"/>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<width value="100%"/>
					<marginTop value="12px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_HINT_LEFT_CLICK_TO_OPEN_ABILITIES_CONFIGURATION', _maxWidth: 290}"/>
			</block>
		</block>
	</block>
	<block className="TooltipRewardInstructionCampaignToken">
		<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%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockHorizontalIndent"/>
				<style>
					<width value="100%"/>
					<marginTop value="12px"/>
					<marginBottom value="5px"/>
				</style>
				<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_TOOLTIP_GO_TO_CAMPAIGN', _maxWidth: 290}"/>
			</block>
		</block>
	</block>
	<block className="ShipRestrictions">
		<style>
			<height value="21px"/>
			<flow value="horizontal"/>
			<marginRight value="4px"/>
		</style>
		<bind name="contains" value="_filters; $item[1] == -1; 'isAnyShipTypeRestricted'"/>
		<block>
			<bind name="visible" value="(_restrictions.concreteShips.length &gt; 0)"/>
			<style>
				<marginRight value="4px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<bind name="repeat" value="_restrictions.concreteShips; 'ConcreteShipRestriction'; (_restrictions.concreteShips.length &gt; 0)	? {_concreteShipsLength: _restrictions.concreteShips.length}
																														: null"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="	(_restrictions.concreteShips.length &gt; 0)	&amp;&amp;
						((_restrictions.shipLevelsText.length &gt; 0)	||
						(_restrictions.nations.length &gt; 0)			||
						(isAnyShipTypeRestricted == true))"/>
			<style>
				<height value="100%"/>
				<marginRight value="4px"/>
			</style>
			<block className="VerticalDivider">
				<style>
					<height value="100%"/>
					<width value="3px"/>
				</style>
				<block className="divider_v" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_restrictions.shipLevelsText.length &gt; 0)"/>
			<style>
				<marginRight value="4px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<block type="text">
				<styleClass value="$TextDefaultNM"/>
				<bind name="text" value="_restrictions.shipLevelsText"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="	(_restrictions.shipLevelsText.length &gt; 0)	&amp;&amp;
						((_restrictions.nations.length &gt; 0)			||
						(isAnyShipTypeRestricted == true))"/>
			<style>
				<height value="100%"/>
				<marginRight value="4px"/>
			</style>
			<block className="VerticalDivider">
				<style>
					<height value="100%"/>
					<width value="3px"/>
				</style>
				<block className="divider_v" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(_restrictions.nations.length &gt; 0)"/>
			<style>
				<marginRight value="4px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<bind name="repeat" value="_restrictions.nations; 'ShipNationsRestriction'; (_restrictions.nations.length &gt; 0)	? {_shipNationsLength: _restrictions.nations.length}
																											: null"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<bind name="visible" value="	(_restrictions.nations.length &gt; 0)			&amp;&amp;
						(isAnyShipTypeRestricted == true)"/>
			<style>
				<height value="100%"/>
				<marginRight value="4px"/>
			</style>
			<block className="VerticalDivider">
				<style>
					<height value="100%"/>
					<width value="3px"/>
				</style>
				<block className="divider_v" type="native">
					<styleClass value="$Fullsize"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="visible" value="(isAnyShipTypeRestricted == true)"/>
			<style>
				<alpha value="0.9"/>
				<marginRight value="4px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'ShipFilterRestrictions'; isAnyShipTypeRestricted ? {_filters: _restrictions.filters, _withShipTypeCounters: _withShipTypeCounters} : null"/>
		</block>
	</block>
	<block className="ShipFilterRestrictions">
		<style>
			<flow value="horizontal"/>
		</style>
		<bind name="instance" value="'ShipFilterRestriction'; {_shipType: ShipTypes.AircraftCarrier,	_filter: _filters[ShipTypes.AircraftCarrier],	_withShipTypeCounters: _withShipTypeCounters}"/>
		<bind name="instance" value="'ShipFilterRestriction'; {_shipType: ShipTypes.BattleShip,		_filter: _filters[ShipTypes.BattleShip],		_withShipTypeCounters: _withShipTypeCounters}"/>
		<bind name="instance" value="'ShipFilterRestriction'; {_shipType: ShipTypes.Cruiser,			_filter: _filters[ShipTypes.Cruiser],			_withShipTypeCounters: _withShipTypeCounters}"/>
		<bind name="instance" value="'ShipFilterRestriction'; {_shipType: ShipTypes.Destroyer,		_filter: _filters[ShipTypes.Destroyer],			_withShipTypeCounters: _withShipTypeCounters}"/>
	</block>
	<block className="ShipFilterRestriction">
		<bind name="visible" value="(_filter[1] != 0)"/>
		<style>
			<flow value="horizontal"/>
			<marginRight value="4px"/>
		</style>
		<bind name="style" value="'alpha'; (_filter[1] == 0) ? 0.5 : 1)"/>
		<bind name="style" value="'marginLeft'; (_shipType == ShipTypes.Destroyer) ? '-3px' : '0px'"/>
		<block className="icon_ship" type="native">
			<style>
				<marginRight value="2px"/>
			</style>
			<bind name="gotoAndStop!" value="_shipType"/>
		</block>
		<block>
			<bind name="visible" value="((_filter[1] &gt; 0 || _filter[1] == -1) &amp;&amp; _withShipTypeCounters)"/>
			<block type="text">
				<styleClass value="$TextDefaultNM"/>
				<bind name="class" value="'$Bold'"/>
				<bind name="text" value="((_filter[0] == _filter[1]) ? _filter[0]
													: (_filter[0] + '-' + _filter[1]))"/>
			</block>
		</block>
	</block>
	<block className="ShipNationsRestriction">
		<bind name="style" value="'marginRight'; ($index &lt; _shipNationsLength - 1) ? '4px' : '0px'"/>
		<bind name="instance" value="'NationFlagsTiny'; {shipCountry: $value}"/>
	</block>
	<block className="ConcreteShipRestriction">
		<bind name="style" value="'marginRight'; ($index &lt; _concreteShipsLength) ? '4px' : '0px'"/>
		<block type="text">
			<styleClass value="$TextDefaultNM"/>
			<bind name="class" value="'$Bold'"/>
			<bind name="text" value="$value + (($index &lt; _concreteShipsLength - 1) ? ', ' : '')"/>
		</block>
	</block>
	<block className="GuideBrowserWindow">
		<styleClass value="$Fullsize"/>
		<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>
		<bind name="var" value="{authorizing: false}"/>
		<bind name="catch" value="'browser.onAuthorizationStarted'; {authorizing: true}"/>
		<bind name="catch" value="'browser.onAuthorizationFinished'; {authorizing: false}"/>
		<block>
			<bind name="appear" value="'startShow'; 0.15; 0.15; {alpha: 0}; {alpha: 1}"/>
			<bind name="appear" value="'startHide'; 0.15; 0.45; {alpha: 1}; {alpha: 0}"/>
			<styleClass value="$FullsizeAbsolute"/>
			<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="modal_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
		</block>
		<block>
			<bind name="var" value="{paddingTop: $root.paddingTop}"/>
			<bind name="var" value="{hideHeader: $root.hideHeader}"/>
			<bind name="style" value="'paddingTop'; paddingTop"/>
			<bind name="appear" value="'startShow'; 0.15; 0.3; {alpha: 0}; {alpha: 1}"/>
			<bind name="appear" value="'startHide'; 0.15; 0.3; {alpha: 1}; {alpha: 0}"/>
			<style>
				<width value="100sw"/>
				<height value="99sh"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<block>
				<bind name="visible" value="!hideHeader"/>
				<bind name="appear" value="'startShow'; 0.15; 0.15; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'startHide'; 0.15; 0; {alpha: 1, top: 0}; {alpha: 0, top: -10}"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="instance" value="'ModalWindowHeader'; { _header: browserTitle, _headerWidth: '100%', _innerCloseButton: true }"/>
			</block>
			<bind name="var" value="{loadFailed: false}"/>
			<bind name="var" value="{firstRequestedPageLoaded: false}"/>
			<bind name="catch" value="'browser.onLoadFailed'; {loadFailed: true}"/>
			<bind name="catch" value="'browser.onLoadEnd'; {loadFailed: false}"/>
			<bind name="catch" value="'browser.onLoadEnd'; {firstRequestedPageLoaded: true}"/>
			<bind name="name" value="firstRequestedPageLoaded ? 'BrowserIsLoaded' : 'BrowserIsNotLoaded'"/>
			<block>
				<styleClass value="$Fullsize"/>
				<bind name="appear" value="'startShow'; 0.15; 0.3; {alpha: 0, top: 5}; {alpha: 1, top: 0}"/>
				<bind name="appear" value="'startHide'; 0.15; 0.15;  {alpha: 1, top: 0}; {alpha: 0, top: -10}"/>
				<block className="indicator_busy_1" type="native">
					<bind name="transition" value="firstRequestedPageLoaded; 0.15; {alpha: 1}; {alpha: 0}"/>
					<style>
						<position value="absolute"/>
						<hitTest value="false"/>
					</style>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$MiddleVAligned"/>
				</block>
				<bind name="visible" value="!authorizing"/>
				<bind name="var" value="{browserTextureName: $root.browserTextureName}"/>
				<bind name="controller" value="lesta.unbound.controls.UbWebBrowserController; browserTextureName"/>
				<bind name="event" value="'browser.onInitializationComplete'; navigate; $root.url; $root.isPrmp"/>
				<block className="BrowserRender">
					<bind name="visible" value="!(loadFailed)"/>
					<styleClass value="$Fullsize"/>
					<params>
						<param name="name" value="browser_target"/>
					</params>
					<block className="lesta.controls.BitmapEx" type="native">
						<styleClass value="$Fullsize"/>
						<bind name="event" value="'browser.onInitializationComplete'; registerMouseHandlers; 'browser_target'"/>
						<bind name="event" value="'browser.onInitializationComplete'; resizeBrowser; 'browser_target'"/>
						<bind name="event" value="'resize'; resizeBrowser; 'browser_target' "/>
						<bind name="bitmapDataClassName" value="firstRequestedPageLoaded ? browserTextureName : null"/>
					</block>
				</block>
			</block>
			<block className="BrowserLoadFailed">
				<bind name="visible" value="loadFailed"/>
				<styleClass value="$FullsizeAbsolute"/>
				<block type="text">
					<bind name="transition" value="loadFailed; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextAccentBold"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<style>
						<top value="33%"/>
						<hitTest value="false"/>
					</style>
					<bind name="text" value="toUpperCase(tr('IDS_SERVICE_IS_UNAVAILABLE_WEB'))"/>
				</block>
			</block>
			<block className="BrowserAuthorizing">
				<bind name="visible" value="authorizing"/>
				<styleClass value="$FullsizeAbsolute"/>
				<block type="text">
					<bind name="transition" value="authorizing; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
					<styleClass value="$MiddleAligned"/>
					<styleClass value="$TextAccentBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<style>
						<top value="33%"/>
						<hitTest value="false"/>
					</style>
					<bind name="text" value="toUpperCase(tr('IDS_WAITING_SCREEN_AUTHORIZATION'))"/>
				</block>
			</block>
			<block>
				<bind name="appear" value="'startShow'; 0.15; 0.3; {alpha: 0}; {alpha: 1}"/>
				<bind name="appear" value="'startHide'; 0.15; 0.3; {alpha: 1}; {alpha: 0}"/>
				<style>
					<width value="100%"/>
				</style>
				<block>
					<style>
						<width value="100%"/>
						<marginTop value="1px"/>
					</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>
	</block>
	<block className="BrowserRender">
		<bind name="visible" value="!(loadFailed)"/>
		<styleClass value="$Fullsize"/>
		<params>
			<param name="name" value="browser_target"/>
		</params>
		<block className="lesta.controls.BitmapEx" type="native">
			<styleClass value="$Fullsize"/>
			<bind name="event" value="'browser.onInitializationComplete'; registerMouseHandlers; 'browser_target'"/>
			<bind name="event" value="'browser.onInitializationComplete'; resizeBrowser; 'browser_target'"/>
			<bind name="event" value="'resize'; resizeBrowser; 'browser_target' "/>
			<bind name="bitmapDataClassName" value="firstRequestedPageLoaded ? browserTextureName : null"/>
		</block>
	</block>
	<block className="BrowserLoadFailed">
		<bind name="visible" value="loadFailed"/>
		<styleClass value="$FullsizeAbsolute"/>
		<block type="text">
			<bind name="transition" value="loadFailed; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccentBold"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<style>
				<top value="33%"/>
				<hitTest value="false"/>
			</style>
			<bind name="text" value="toUpperCase(tr('IDS_SERVICE_IS_UNAVAILABLE_WEB'))"/>
		</block>
	</block>
	<block className="BrowserAuthorizing">
		<bind name="visible" value="authorizing"/>
		<styleClass value="$FullsizeAbsolute"/>
		<block type="text">
			<bind name="transition" value="authorizing; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextAccentBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<style>
				<top value="33%"/>
				<hitTest value="false"/>
			</style>
			<bind name="text" value="toUpperCase(tr('IDS_WAITING_SCREEN_AUTHORIZATION'))"/>
		</block>
	</block>
	<block className="ClubInfoTooltip">
		<bind name="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="watchDH" value="'name';['entityClub.club.evNameChanged']; entityClub.club.name"/>
		<bind name="watchDH" value="'league';['entityClub.club.evRatingChanged']; entityClub.club.league"/>
		<bind name="watchDH" value="'creationTimeStamp';['entityClub.club.evRatingChanged']; entityClub.club.creatingTime"/>
		<bind name="watchDH" value="'battlesCount';['entityClub.club.evRatingChanged']; entityClub.club.battlesCount"/>
		<bind name="watchDH" value="'winCount';['entityClub.club.evRatingChanged']; entityClub.club.winCount"/>
		<bind name="watchDH" value="'drawCount';['entityClub.club.evRatingChanged']; entityClub.club.drawCount"/>
		<bind name="watchDH" value="'loseCount';['entityClub.club.evRatingChanged']; entityClub.club.loseCount"/>
		<bind name="watchDH" value="'lastBattleTimeStamp';['entityClub.club.evRatingChanged']; entityClub.club.lastBattleTime"/>
		<bind name="watchDH" value="'winRate';['entityClub.club.evRatingChanged']; entityClub.club.winRate"/>
		<bind name="watch" value="'drawRate'; drawCount / battlesCount * 100"/>
		<bind name="watch" value="'loseRate'; loseCount / battlesCount * 100"/>
		<bind name="watch" value="'stats'; [	{label: 'IDS_CLUB_BATTLES_COUNT', rate: 'no_rate',	count: battlesCount},
							{label: 'IDS_VICTORIES'			, rate: winRate,	count: winCount},
							{label: 'IDS_DRAWS'				, rate: drawRate,	count: drawCount},
							{label: 'IDS_DEFEATS'			, rate: loseRate,	count: loseCount}]"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="300px"/>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextAccentBold"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="text" value="name"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<style>
					<width value="100%"/>
					<alpha value="0.7"/>
					<marginTop value="-2px"/>
				</style>
				<bind name="text" value="tr('IDS_LEAGUE_'+league)"/>
			</block>
		</block>
		<block>
			<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>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="text" value="tr('IDS_CLUB_CREATOR')+tr('IDS_COLON')"/>
				</block>
				<block>
					<style>
						<hitTest value="false"/>
					</style>
					<bind name="instance" value="'PlayerContactItem'; {_entityAccountId: entityClub.club.creatorEntityId, _isOfflineAlpha: true}"/>
				</block>
			</block>
			<block>
				<style>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="0"/>
				</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>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="timeFormat" value="creationTimeStamp; 'dd.MM.yyyy'; 'creationTime'; false"/>
				<bind name="text" value="tr('IDS_CREATION_DATE')+tr('IDS_COLON') + ' ' + creationTime"/>
			</block>
		</block>
		<block>
			<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>
			<style>
				<width value="100%"/>
			</style>
			<bind name="visible" value="battlesCount &gt; 0"/>
			<bind name="timeFormat" value="lastBattleTimeStamp; 'dd.MM.yyyy'; 'lastBattleDate'; false"/>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="text" value="tr('IDS_LAST_BATTLE')+tr('IDS_COLON') + ' ' + lastBattleDate"/>
				</block>
			</block>
			<block>
				<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>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block className="inner_panel" type="native">
				<styleClass value="$FullsizeAbsolute"/>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<bind name="repeat" value="stats; 'ClubTooltipStatRow'"/>
			</block>
		</block>
	</block>
	<block className="ClubTooltipStatRow">
		<style>
			<width value="100%"/>
		</style>
		<bind name="style" value="'marginBottom'; (rate == 'no_rate') ? '4px' : '0px'"/>
		<block type="text">
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="label"/>
		</block>
		<block type="text">
			<bind name="visible" value="rate != 'no_rate'"/>
			<style>
				<alpha value="0.7"/>
				<position value="absolute"/>
				<right value="70"/>
			</style>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="format((rate ? rate : 0), 0) +'%'"/>
		</block>
		<block type="text">
			<styleClass value="$AlignRight"/>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="count"/>
		</block>
	</block>
	<block className="ClubLeagueIconSmall">
		<style>
			<width value="60px"/>
			<height value="60px"/>
		</style>
		<style>
			<backgroundSize value="cover"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'symbol:club_icon_league_' + ((_league != null)	? ((_league &gt; 2)	? '2'
																										: _league)
																					: '-1')"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<bind name="child" value="_state ? _state : 'Rating'; { _rating: _rating, _isPartyMember: _isPartyMember, _isCommander: _isCommander}; {	Rating: 'ClubIconRatingSmall',
																																	InBattle: 'ClubIconInBattleSmall',
																																	Party: 'ClubIconPartySmall'}"/>
		</block>
	</block>
	<block className="ClubIconRatingSmall">
		<block type="text">
			<style>
				<marginBottom value="1px"/>
			</style>
			<styleClass value="$TextDefaultBold"/>
			<bind name="text" value="format(_rating, -1)"/>
		</block>
	</block>
	<block className="ClubIconInBattleSmall">
		<block>
			<style>
				<width value="32px"/>
				<height value="29px"/>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; _isPartyMember	? 'symbol:icon_club_status_in_battle_member_small'
														: 'symbol:icon_club_status_in_battle_small'"/>
		</block>
	</block>
	<block className="ClubIconPartySmall">
		<block>
			<style>
				<marginTop value="1px"/>
				<width value="32px"/>
				<height value="29px"/>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; _isCommander	? 'symbol:icon_club_status_party_commander_small' :
										_isPartyMember 	? 'symbol:icon_club_status_party_member_small'
														: 'symbol:icon_club_status_party_small'"/>
		</block>
	</block>
	<block className="ClubLeagueIconSmallSimple">
		<bind name="tooltip" value="'ClubInfoTooltipSimple'; {_teamName: _teamName, _rating: _rating, _league: _league, _isInBattle: _isInBattle}"/>
		<block className="ClubLeagueIconSmall">
			<style>
				<width value="60px"/>
				<height value="60px"/>
			</style>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'symbol:club_icon_league_' + ((_league != null)	? ((_league &gt; 2)	? '2'
																										: _league)
																					: '-1')"/>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$MiddleAlignedAbsolutely"/>
				<bind name="child" value="_state ? _state : 'Rating'; { _rating: _rating, _isPartyMember: _isPartyMember, _isCommander: _isCommander}; {	Rating: 'ClubIconRatingSmall',
																																	InBattle: 'ClubIconInBattleSmall',
																																	Party: 'ClubIconPartySmall'}"/>
			</block>
		</block>
	</block>
	<block className="ClubInfoTooltipSimple">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="240px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'MenuTooltipBackground'; {_isInBattle: _isInBattle}"/>
		</block>
		<block>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<styleClass value="$TextAccentBold"/>
				<style>
					<width value="100%"/>
					<marginTop value="-4px"/>
				</style>
				<bind name="text" value="_teamName"/>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="text" value="tr('IDS_RATING')+tr('IDS_COLON') + ' ' + format(_rating, -1) +', ' + tr('IDS_LEAGUE_'+ _league)"/>
			</block>
		</block>
	</block>
	<block className="ClubHeaderIcon">
		<bind name="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="watchDH" value="'league';['entityClub.club.evRatingChanged']; entityClub.club.league"/>
		<bind name="watch" value="'curLeague';	_fakeLeague		? ((_fakeLeague &gt; 2) ? '2'
																	 : _fakeLeague) :
								league != null	? ((league &gt; 2) ? '2'
																: league)
												: '-1'"/>
		<style>
			<width value="260px"/>
			<height value="330px"/>
		</style>
		<block>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="watch" value="'clubHeaderBgrSymbol'; 'symbol:club_header_bgr_league_' + curLeague"/>
			<bind name="style" value="'backgroundImage'; clubHeaderBgrSymbol"/>
			<bind name="transition" value="_isActiveClubIcon; 0.15; {alpha: 0.65}; {alpha: 1}; {alpha: 0.65}; 0"/>
			<block>
				<bind name="name" value="'clubInfo'"/>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="child" value="_clubIconState ? _clubIconState : 'Party'; {	_clubEntityId: _clubEntityId,
																		_animParams: _animParams,
																		_ratingValue: _ratingValue};

																	{	RatingCounter: 'ClubIconRatingCounter',
																		Rating: 'ClubIconRating',
																		InBattle: 'ClubIconInBattle',
																		Party: 'ClubIconParty'}"/>
			</block>
			<block>
				<style>
					<bottom value="102"/>
					<hitTest value="false"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<bind name="appear" value="'CountPoints_0'; 0.2; 0.3; {top: 10, alpha: 0}; {top: 0, alpha: 1}; 1"/>
				<bind name="instance" value="'ClubLeagueLabel'; (curLeague != '-1') ? {	_league: (_fakeLeague	? _fakeLeague : league),
																		_state : (_leagueState ? _leagueState : 'issued')} : null"/>
			</block>
		</block>
		<block>
			<style>
				<backgroundSize value="cover"/>
				<hitTest value="false"/>
			</style>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="watch" value="'clubLeagueSymbol'; 'symbol:club_header_league_' + curLeague"/>
			<bind name="style" value="'backgroundImage'; clubLeagueSymbol"/>
		</block>
		<block>
			<bind name="visible" value="_isLeader &amp;&amp; (curLeague != '-1')"/>
			<style>
				<marginLeft value="16px"/>
				<marginTop value="26px"/>
				<position value="absolute"/>
			</style>
			<block className="icon_club_leader_big" type="native"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [	{_paragraphText: 'IDS_YOU_ARE_CLUB_LEADER'},
																			{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_0'},
																			{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_1'},
																			{_paragraphText: 'IDS_CLUB_LEADER_DESCRIPTION_2'}],
													_marginBottom: '4px'}"/>
		</block>
	</block>
	<block className="ClubIconRating">
		<bind name="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="watchDH" value="'lastBattleRatingDelta';['entityClub.club.evRatingChanged']; entityClub.club.lastBattleRatingDelta"/>
		<bind name="watchDH" value="'rating';['entityClub.club.evRatingChanged']; entityClub.club.rating"/>
		<bind name="watch" value="'ratingValue'; _clubEntityId ? rating : _ratingValue"/>
		<styleClass value="$Fullsize"/>
		<style>
			<marginTop value="80px"/>
		</style>
		<block>
			<styleClass value="$MiddleAligned"/>
			<block type="text">
				<bind name="appear" value="'addedToStage'; 0.15; 0.3;	{scaleY: 0.5, scaleX: 0.5, ubScaleY: 0.5, ubScaleX: 0.5, alpha: 0, top: 10};
														{scaleY: 1, scaleX: 1, ubScaleY: 1, ubScaleX: 1, alpha: 1, top: 0}"/>
				<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: 'IDS_RATING_HINT_0'}, {_paragraphText: 'IDS_RATING_HINT_1'}]}"/>
				<styleClass value="$TextAccentBoldAccountLevel1"/>
				<bind name="text" value="format(ratingValue, -1)"/>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="appear" value="'addedToStage'; 0.15; 0.42; {scaleY: 0.5, alpha: 0, top: 20}; {scaleY: 1, alpha: 1, top: 0}"/>
			<style>
				<marginTop value="-8px"/>
			</style>
			<block>
				<block>
					<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: 'IDS_RATING_HINT_0'}, {_paragraphText: 'IDS_RATING_HINT_1'}]}"/>
					<block type="text">
						<styleClass value="$TextHeader"/>
						<bind name="class" value="'$Bold'"/>
						<bind name="text" value="toLowerCase(tr('IDS_RATING'))"/>
					</block>
				</block>
				<block>
					<bind name="visible" value="(lastBattleRatingDelta &amp;&amp; (lastBattleRatingDelta != 0))"/>
					<block className="icon_value_changed" type="native">
						<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: lastBattleRatingDelta &gt; 0 ? [{_paragraphText: 'IDS_RATING_UP_LB'}]
																												: [{_paragraphText: 'IDS_RATING_DOWN_LB'}]}"/>
						<style>
							<marginTop value="11px"/>
						</style>
						<bind name="gotoAndStop!" value="lastBattleRatingDelta &gt; 0 	? 'up' 
																	: 'down'"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ClubIconPartyState">
		<style>
			<width value="34px"/>
			<height value="34px"/>
		</style>
		<bind name="appear" value="'addedToStage'; 0.15; 0.3; {width: 34, height: 34, alpha: 0, top: 20};
											 {width: 68, height: 68, alpha: 1, top: 0}"/>
		<bind name="var" value="{firstChange: true}"/>
		<bind name="dispatch" value="'addedToStage'; 'changePartyStateEv'; false; 0.5"/>
		<bind name="catch" value="'changePartyStateEv'; {firstChange: false}"/>
		<bind name="watch" value="'change';  _isPartyCommander 	? 2 :
							_isPartyMember 		? 1
												: 0"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="fade" value="change==0; 0.14;	{left: 68, alpha: 0}; {left: 0, alpha: 1}; {left: -68, alpha: 0}; 0;	firstChange	? 0 :
																												change==0	? 0.57
																															: 0.5"/>
			<bind name="style" value="'backgroundImage'; 'symbol:icon_club_status_party'"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="fade" value="change==1; 0.14;	{left: 68, alpha: 0}; {left: 0, alpha: 1}; {left: -68, alpha: 0}; 0;	firstChange	? 0 :
																												change==1	? 0.57
																															: 0.5"/>
			<bind name="style" value="'backgroundImage'; 'symbol:icon_club_status_party_member'"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="fade" value="change==2; 0.14; {left: 68, alpha: 0}; {left: 0, alpha: 1}; {left: -68, alpha: 0}; 0;	firstChange	? 0 :
																											change==2	? 0.57
																														: 0.5"/>
			<bind name="style" value="'backgroundImage'; 'symbol:icon_club_status_party_commander'"/>
		</block>
	</block>
	<block className="ClubIconParty">
		<bind name="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="watchDH" value="'partyPlayersCount'; ['entityClub.party.evUpdate']; entityClub.party.playersCount"/>
		<bind name="watchDH" value="'partyPlayersLimit'; ['entityClub.party.evUpdate']; entityClub.party.playersLimit"/>
		<bind name="watchDH" value="'isPartyMember'; ['entityClub.party.evUpdate']; entityClub.party.isMember"/>
		<bind name="watchDH" value="'isPartyCommander'; ['entityClub.party.evUpdate']; entityClub.party.isOwner"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: isPartyMember ? [{_paragraphText: 'IDS_PARTY_UP_FOR_BATTLE'}]
																					: [{_paragraphText: 'IDS_PARTY_UP_FOR_BATTLE'}, {_paragraphText: 'IDS_PROFILE_CLUBS_INSTRUCTION_9_1'}]}"/>
		<style>
			<marginTop value="63px"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<height value="68px"/>
			</style>
			<bind name="instance" value="'ClubIconPartyState'; {_isPartyCommander: isPartyCommander, _isPartyMember: isPartyMember}"/>
		</block>
		<block>
			<bind name="appear" value="'addedToStage'; 0.15; 0.42; {scaleY: 0.7, alpha: 0, top: 25}; {scaleY: 1, alpha: 1, top: 0}"/>
			<styleClass value="$MiddleAligned"/>
			<block type="text">
				<style>
					<marginTop value="-4px"/>
					<alpha value="0.85"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="text" value="toLowerCase(tr('IDS_GATHERING_TO_BATTLE'))"/>
			</block>
			<block>
				<style>
					<marginTop value="-4px"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<block type="text">
					<styleClass value="$TextAccentBold"/>
					<style>
						<marginTop value="-4px"/>
					</style>
					<bind name="text" value="partyPlayersCount"/>
				</block>
				<block type="text">
					<styleClass value="$TextAccentBold"/>
					<style>
						<alpha value="0.9"/>
						<marginTop value="-4px"/>
						<marginRight value="-1px"/>
						<marginLeft value="-3px"/>
					</style>
					<text value="/"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontSizeHeader5'"/>
					<style>
						<alpha value="0.9"/>
					</style>
					<bind name="text" value="partyPlayersLimit"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ClubIconBattleState">
		<style>
			<width value="34px"/>
			<height value="34px"/>
		</style>
		<bind name="appear" value="'addedToStage'; 0.15; 0.3; {width: 34, height: 34, alpha: 0, top: 20};
											 {width: 68, height: 68, alpha: 1, top: 0}"/>
		<bind name="var" value="{firstChange: true}"/>
		<bind name="dispatch" value="'addedToStage'; 'changeBattleStateEv'; false; 0.5"/>
		<bind name="catch" value="'changeBattleStateEv'; {firstChange: false}"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="fade" value="!(_isPartyMember); 0.14;	{left: 68, alpha: 0}; {left: 0, alpha: 1}; {left: -68, alpha: 0}; 0;	firstChange			? 0 :
																														!(_isPartyMember)	? 0.57
																																			: 0.5"/>
			<bind name="style" value="'backgroundImage'; 'symbol:icon_club_status_in_battle'"/>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<backgroundSize value="cover"/>
			</style>
			<bind name="fade" value="_isPartyMember; 0.14;	{left: 68, alpha: 0}; {left: 0, alpha: 1}; {left: -68, alpha: 0}; 0;	firstChange			? 0 :
																													_isPartyMember		? 0.57
																																		: 0.5"/>
			<bind name="style" value="'backgroundImage'; 'symbol:icon_club_status_in_battle_member'"/>
		</block>
	</block>
	<block className="ClubIconInBattle">
		<bind name="entityDH" value="'entityClub'; _clubEntityId"/>
		<bind name="watchDH" value="'isPartyMember'; ['entityClub.party.evUpdate']; entityClub.party.isMember"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: 'IDS_PARTY_IN_BATTLE'}]}"/>
		<style>
			<marginTop value="75px"/>
		</style>
		<styleClass value="$MiddleAligned"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<height value="68px"/>
			</style>
			<bind name="instance" value="'ClubIconBattleState'; {_isPartyMember: isPartyMember}"/>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<bind name="appear" value="'addedToStage'; 0.15; 0.42; {scaleY: 0.5, alpha: 0, top: 20}; {scaleY: 1, alpha: 1, top: 0}"/>
			<block type="text">
				<style>
					<marginTop value="-8px"/>
					<alpha value="0.9"/>
				</style>
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$TextHeaderWhiteBold"/>
				<bind name="text" value="toLowerCase(tr('IDS_IN_BATTLE'))"/>
			</block>
		</block>
	</block>
	<block className="ClubLeagueLabel">
		<bind name="tooltip" value="'MouseInstructionTooltip'; {	_multiParagraphArray: [{_paragraphText: 'IDS_CURRENT_LEAGUE_' + _league}]}"/>
		<bind name="watch" value="'label'; toUpperCase(tr('IDS_LEAGUE_'+_league))"/>
		<block>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<position value="absolute"/>
			</style>
			<block>
				<style>
					<position value="absolute"/>
				</style>
				<block className="icon_issued" type="native">
					<bind name="name" value="'league'"/>
					<innerBind elementName="item.item" name="text" value="label"/>
					<bind name="gotoAndPlay!" value="_state"/>
				</block>
			</block>
		</block>
	</block>
	<block className="ClubLeagueIconTiny">
		<style>
			<width value="35px"/>
			<height value="35px"/>
			<backgroundSize value="cover"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'symbol:club_icon_league_'+(_league != null	? ((_league &gt; 2)	? '2'
																									: _league)
																				: '-1')"/>
	</block>
	<block className="ClubBattleClubsVS">
		<styleClass value="$MiddleAligned"/>
		<block>
			<style>
				<marginBottom value="15px"/>
			</style>
			<block>
				<bind name="visible" value="_alliedClub.clubLeague != null &amp;&amp; _alliedClub.clubLeague == _enemyClub.clubLeague"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<position value="absolute"/>
					<alpha value="0.25"/>
					<bottom value="-6"/>
					<hitTest value="false"/>
				</style>
				<bind name="instance" value="'ClubLeagueLabel'; (_alliedClub.clubLeague != '-1') ? {	_league: _alliedClub.clubLeague, _state: 'issued'} : null"/>
			</block>
			<block>
				<bind name="tooltip" value="'ClubInfoTooltipSimple'; {_teamName: _alliedClub.clubName, _rating: format(_alliedClub.clubRating, -1), _league: _alliedClub.clubLeague}"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<position value="absolute"/>
					<right value="105%"/>
				</style>
				<block type="text">
					<styleClass value="$TextAccentBold"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginRight value="6px"/>
						<alpha value="0.85"/>
					</style>
					<bind name="text" value="_alliedClub.clubName"/>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<block>
						<bind name="visible" value="_alliedClub.clubLeague != _enemyClub.clubLeague"/>
						<style>
							<position value="absolute"/>
							<alpha value="0.25"/>
							<top value="90%"/>
							<left value="10%"/>
							<hitTest value="false"/>
						</style>
						<bind name="instance" value="'ClubLeagueLabel'; (_alliedClub.clubLeague != '-1') ? {	_league: _alliedClub.clubLeague, _state: 'issued'} : null"/>
					</block>
					<block type="text">
						<styleClass value="$TextAccentBold"/>
						<bind name="class" value="'$FontAccentSize2'"/>
						<bind name="text" value="format(_alliedClub.clubRating, -1)"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<width value="30px"/>
					<height value="30px"/>
				</style>
			</block>
			<block>
				<bind name="tooltip" value="'ClubInfoTooltipSimple'; {_teamName: _enemyClub.clubName, _rating: _enemyClub.clubRating, _league: _enemyClub.clubLeague}"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<position value="absolute"/>
					<left value="105%"/>
				</style>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<block>
						<bind name="visible" value="_alliedClub.clubLeague != _enemyClub.clubLeague"/>
						<style>
							<position value="absolute"/>
							<alpha value="0.25"/>
							<top value="90%"/>
							<right value="10%"/>
							<hitTest value="false"/>
						</style>
						<bind name="instance" value="'ClubLeagueLabel'; (_enemyClub.clubLeague != '-1') ? { _league: _enemyClub.clubLeague, _state: 'issued' } : null"/>
					</block>
					<block type="text">
						<styleClass value="$TextAccentBold"/>
						<bind name="class" value="'$FontAccentSize2'"/>
						<bind name="text" value="format(_enemyClub.clubRating, -1)"/>
					</block>
				</block>
				<block type="text">
					<styleClass value="$TextAccentBold"/>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="6px"/>
						<alpha value="0.85"/>
					</style>
					<bind name="text" value="_enemyClub.clubName"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CarouselFilters">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="stageSize"/>
		<bind name="watch" value="'isFourRowsEnabled'; (stageHeight != null) ? (stageHeight &gt; (720 + 160)) : true"/>
		<bind name="watch" value="'isThreeRowsEnabled'; (stageHeight != null) ? (stageHeight &gt; (720 + 88)) : true"/>
		<bind name="watch" value="'curCarouselRows';	(userPrefs.curRowCountIndex == null)															? 0 :
									(userPrefs.curRowCountIndex == 2 &amp;&amp; isFourRowsEnabled)											? 2 :
									((userPrefs.curRowCountIndex == 2 || userPrefs.curRowCountIndex == 1) &amp;&amp; isThreeRowsEnabled)	? 1
																																	: 0"/>
		<bind name="action" value="'carouselRowsCountChangedByStageHeight'; 'setUserPref' ; {value : curCarouselRows, name: 'curRowCountIndex'}"/>
		<bind name="changeDispatch" value="curCarouselRows; 'carouselRowsCountChangedByStageHeight'"/>
		<bind name="feature" value="13;''"/>
		<bind name="action" value="(feature_13 == 'locked') ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_WITH_COMMANDER', value: false }"/>
		<bind name="action" value="(feature_13 == 'locked') ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_WITHOUT_COMMANDER', value: false }"/>
		<bind name="feature" value="16;''"/>
		<bind name="action" value="(feature_16 == 'locked') || (rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_RANKED_BATTLES', value: false }"/>
		<bind name="feature" value="19;''"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'clubBattlesSeasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
		<bind name="watchDH" value="'clubBattlesSeasonStage'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.stage"/>
		<bind name="action" value="feature_19 == 'locked' || clubBattlesSeasonId &lt;= 0 || clubBattlesSeasonStage != 2 ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_CLUB_BATTLES', value: false }"/>
		<style>
			<marginLeft value="7px"/>
			<height value="30px"/>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="name" value="'CarouselFiltersButton'"/>
			<block className="button_carousel_filters" type="native">
				<bind name="tooltip" value="'CarouselFiltersInfotip'; {AppliedFiltersCounter: AppliedFiltersCounter, _isSmallCarouselView: isSmallCarouselView}; TooltipBehaviour.verticalInfotipSwitch; null; 'carouselFiltersInfotipIsVIsible'"/>
				<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CAROUSEL_FILTERS'}], _maxWidth: 240 }"/>
				<bind name="selected" value="carouselFiltersInfotipIsVIsible"/>
			</block>
		</block>
		<bind name="catch" value="'shipNameFIlterInfotipSelectedChanged'"/>
		<bind name="firstEntityDH" value="'panelEntity'; CC.filterPanelComponent"/>
		<bind name="watchDH" value="'selectedFilters'; ['panelEntity.filterPanelComponent.evUpdate']; panelEntity.filterPanelComponent.selectedFilters"/>
		<block>
			<style>
				<height value="32px"/>
				<marginTop value="-4px"/>
				<marginRight value="12px"/>
				<marginLeft value="4px"/>
			</style>
			<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
			<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
			<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
			<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
			<bind name="watch" value="'isPveFilterVisible'; (selectedBattle.type == BattleTypes.PVE_BATTLE) &amp;&amp; chosenOperationId"/>
			<block>
				<bind name="visible" value="(isPveFilterVisible == true)"/>
				<bind name="instance" value="'AppliedPVEFilter'; (isPveFilterVisible == true) ? {} : null"/>
			</block>
			<block>
				<bind name="instance" value="'AppliedFilter'; {_filterType: 'shipName', shipNameFIlterInfotipSelected: shipNameFIlterInfotipSelected}"/>
				<bind name="instance" value="'AppliedFilter'; {_filterType: 'level'}"/>
				<bind name="instance" value="'AppliedFilter'; {_filterType: 'shipType'}"/>
				<bind name="instance" value="'AppliedFilter'; {_filterType: 'nation'}"/>
				<bind name="instance" value="'AppliedFilter'; {_filterType: 'special'}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<bind name="instance" value="'ResetAllFilters'; selectedFilters.length &gt; 1 ? {} : null"/>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CarouselFiltersInfotip">
		<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="firstEntityDH" value="'panelEntity'; CC.filterPanelComponent"/>
		<bind name="watchDH" value="'selectedFilters'; ['panelEntity.filterPanelComponent.evUpdate']; panelEntity.filterPanelComponent.selectedFilters"/>
		<styleClass value="$VerticalInfotipBehaviourCenterUpper"/>
		<bind name="dispatch" value="'carouselRowsCountChanged'; 'Tooltip.Place'; {}; 2; 0.15"/>
		<bind name="dispatch" value="'carouselViewChanged'; 'Tooltip.Place'; {}; 2; 0.15"/>
		<bind name="name" value="CarouselFiltersInfotipClip"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="8px"/>
				<marginRight value="13px"/>
				<marginTop value="9px"/>
				<marginBottom value="11px"/>
			</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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="-6px"/>
				<marginLeft value="-6px"/>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<style>
				<marginLeft value="9px"/>
				<marginRight value="13px"/>
				<marginTop value="10px"/>
			</style>
			<bind name="var" value="{isSearchingShipByName: false}"/>
			<bind name="catch" value="'searchShipButtonClicked'; {isSearchingShipByName: true}"/>
			<bind name="catch" value="'closeSearchField'; {isSearchingShipByName: false}"/>
			<bind name="catch" value="'TextInputWithCancel.shipSearchCancelled'; {isSearchingShipByName: false, inputStr: ''}"/>
			<bind name="watch" value="'shipSearchStringValue'; searchStr ? searchStr : false"/>
			<bind name="dispatch" value="'Tooltip.selfOpened'; shipSearchStringValue ? 'searchShipButtonClicked' : 'closeSearchField'"/>
			<bind name="dispatch" value="'Tooltip.selfClosed'; shipSearchStringValue ? null : 'closeSearchField'"/>
			<block>
				<style>
					<height value="34px"/>
					<width value="100%"/>
					<position value="absolute"/>
				</style>
				<block type="text">
					<style>
						<marginLeft value="12px"/>
						<marginTop value="3px"/>
					</style>
					<styleClass value="$TextHeaderBold"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<bind name="text" value="'IDS_FILTERS'"/>
				</block>
				<block>
					<style>
						<marginTop value="1px"/>
						<marginLeft value="6px"/>
					</style>
					<bind name="instance" value="'ResetAllFilters'; selectedFilters.length &gt; 0 ? {} : null"/>
				</block>
				<block className="button_search" type="native">
					<style>
						<right value="12px"/>
						<marginTop value="6px"/>
						<position value="absolute"/>
					</style>
					<bind name="visible" value="!(isSearchingShipByName)"/>
					<bind name="dispatch" value="'buttonClick';'searchShipButtonClicked'"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_SEARCH_SHIP_BY_NAME'}"/>
				</block>
				<block>
					<bind name="visible" value="isSearchingShipByName"/>
					<bind name="collectionDH" value="CC.shipFilterItem; 'selectedItems'; 'shipName.selected'"/>
					<bind name="entityDH" value="'shipNameFilterEntity'; selectedItems[0].id"/>
					<bind name="watchDH" value="'searchStr'; ['shipNameFilterEntity.shipFilterItem.evUpdate']; shipNameFilterEntity.dataComponent.data.value"/>
					<style>
						<width value="284px"/>
						<position value="absolute"/>
						<top value="15px"/>
						<right value="0"/>
					</style>
					<bind name="instance" value="'TextInputWithCancelCustom'; isSearchingShipByName	?	{	onEnterEvent: 'startShipSearch',
																						onCancelEvent: 'shipSearchCancelled',
																						onInputStrChangedEvent: 'inputStrChanged',
																						_onEnterTooltipText: 'IDS_HINT_FIND',
																						_defaultInputValue: searchStr,
																						_maxChars: 20,
																						_tfWidth: '250px'}
																				: null"/>
					<bind name="watch" value="'strForSearch'; inputStr"/>
					<bind name="catch" value="'TextInputWithCancel.inputStrChanged'"/>
					<bind name="changeDispatch" value="strForSearch; 'strForChanged'"/>
					<bind name="action" value="'strForChanged'; 'setFilterValue' ; {type: 'shipName', field: 'IDS_SHIP_NAME_FILTER', value: strForSearch}"/>
				</block>
				<block>
					<style>
						<bottom value="0px"/>
						<position value="absolute"/>
						<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>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<marginTop value="34px"/>
					<marginBottom value="36px"/>
				</style>
				<block className="inner_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
				<block>
					<bind name="instance" value="'FilterBlock'; {_title: 'IDS_LEVEL', _filterType: 'level', needDivider: false}"/>
					<bind name="instance" value="'FilterBlock'; {_title: 'IDS_CLASS', _filterType: 'shipType', needDivider: true}"/>
					<bind name="instance" value="'FilterBlock'; {_title: 'IDS_NATION', _filterType: 'nation', needDivider: true}"/>
					<bind name="instance" value="'FilterBlock'; {_title: 'IDS_SPECIAL', _filterType: 'special', needDivider: true}"/>
					<bind name="instance" value="'MyFilters'; {_title: tr('IDS_ADDITIONAL') + ' ' + tr('IDS_FILTERS'), needDivider: true}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<bottom value="-1px"/>
						<position value="absolute"/>
						<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>
			<block>
				<style>
					<height value="36px"/>
					<width value="100%"/>
					<position value="absolute"/>
					<bottom value="0px"/>
				</style>
				<block>
					<style>
						<marginTop value="7px"/>
						<marginLeft value="12px"/>
					</style>
					<bind name="name" value="'SmallCarouselView'"/>
					<bind name="tooltip" value="'SimpleTooltip'; {tooltipText:	(_isSmallCarouselView ?	'IDS_HINT_CHECKBOX_DISABLE_SMALL_VIEW' :
																						'IDS_HINT_CHECKBOX_ENABLE_SMALL_VIEW')}"/>
					<bind name="instance" value="'CheckBox'; {switchProperty: _isSmallCarouselView, label: 'IDS_SMALL_CAROUSEL_VIEW'}"/>
					<bind name="dispatch" value="'left_click'; 'carouselViewChanged'"/>
					<bind name="clickSplit"/>
				</block>
				<block>
					<bind name="style" value="'hitTest'; _isSmallCarouselView == true ? true : false"/>
					<bind name="transition" value="_isSmallCarouselView == true; 0.1; {alpha: 0}; {alpha: 1}"/>
					<bind name="instance" value="'CarouselRowsChooser'; {}"/>
				</block>
				<block>
					<style>
						<right value="12px"/>
						<position value="absolute"/>
					</style>
					<block type="text">
						<style>
							<marginTop value="4px"/>
						</style>
						<styleClass value="$TextHeaderBold"/>
						<bind name="class" value="'$FontColorBlueish'"/>
						<bind name="text" value="tr('IDS_SORTING_TYPE')+tr('IDS_COLON')"/>
					</block>
					<block>
						<bind name="name" value="'CarouselOrdering'"/>
						<style>
							<marginLeft value="2px"/>
							<marginTop value="3px"/>
						</style>
						<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="'_curItemIndex';	(userPrefs.shipCarouselSortIndex == null) ? 0 : userPrefs.shipCarouselSortIndex"/>
						<bind name="action" value="'shipSortChanged'; 'setUserPref' ; {value: _curItemIndex, name: 'shipCarouselSortIndex'}"/>
						<bind name="catch" value="'ItemChooser.shipsSortSelected'"/>
						<bind name="watchDH" value="'shipSorter'; ['panelEntity.filterPanelComponent.evUpdate']; panelEntity.filterPanelComponent.sortFields"/>
						<bind name="instance" value="'ItemChooser'; {	_items: [shipSorter[0].ids, shipSorter[1].ids, shipSorter[2].ids, shipSorter[3].ids], curIndex: _curItemIndex,
														_choosedItemRenderer: 'BluishTextChoosedItemRenderer', _listItemRenderer: 'TextListItemRenderer',
														onItemSelectedEvent: 'shipsSortSelected', _itemChooserTooltipText: 'IDS_HINT_SHIP_CAROUSEL_SORT'}"/>
						<bind name="changeDispatch" value="_curItemIndex; 'shipSortChanged'"/>
						<bind name="changeDispatch" value="_direction; 'shipSortChanged'"/>
						<bind name="action" value="'shipSortChanged'; 'setSortOrder'; {sortPriority: shipSorter[_curItemIndex].field, reverse: _direction}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block className="dock_panel_pin" type="native">
			<style>
				<marginLeft value="10px"/>
				<marginBottom value="3px"/>
				<alpha value="0.5"/>
			</style>
			<bind name="gotoAndStop!" value="'down'"/>
		</block>
	</block>
	<block className="TextInputWithCancelCustom">
		<styleClass value="$Fullsize"/>
		<bind name="var" value="{textInput: ''}"/>
		<bind name="catch" value="'removedFromStage'; {textInput: ''}"/>
		<bind name="changeDispatch" value="_defaultInputValue; 'setDefaultValue'"/>
		<bind name="catch" value="'setDefaultValue'; {textInput: _defaultInputValue}"/>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block className="text_input_caps_enter" type="native">
				<bind name="tooltip" value="'SimpleTooltip'; _tooltipText ? {tooltipText: _tooltipText} : null"/>
				<bind name="style" value="'width'; _tfWidth ? _tfWidth : '270px'"/>
				<params>
					<param name="actAsButton" value="true"/>
				</params>
				<bind name="maxChars" value="_maxChars ? _maxChars : 32"/>
				<bind name="defaultText" value="defaultText"/>
				<bind name="focus" value="0; true"/>
				<bind name="restrict" value="restrict"/>
				<bind name="text" value="textInput"/>
				<bind name="sync" value="'text'; 'change'; textInput"/>
				<bind name="dispatch" value="'change'; 'TextInputWithCancel.'+ onInputStrChangedEvent; {inputStr: textInput}"/>
				<bind name="dispatch" value="'textInputEnter'; 'TextInputWithCancel.' + onEnterEvent; {inputStr: textInput}"/>
				<block className="button_dock" type="native">
					<bind name="tooltip" value="'SimpleTooltip'; _onEnterTooltipText ? {tooltipText: _onEnterTooltipText} : null"/>
					<styleClass value="$TextInputEnterButton"/>
					<bind name="enabled" value="textInput.length &gt; 0"/>
					<bind name="dispatch" value="'buttonClick'; 'TextInputWithCancel.' + onEnterEvent; {inputStr: textInput}"/>
				</block>
			</block>
			<block className="button_close" type="native">
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_RESET_FILTER'}"/>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<marginLeft value="6px"/>
				</style>
				<bind name="dispatch" value="'buttonClick'; 'TextInputWithCancel.' + onCancelEvent"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CarouselRowsChooser">
		<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="'_curItemIndex';	(userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="action" value="'carouselRowsCountChanged'; 'setUserPref' ; {value : _curItemIndex, name: 'curRowCountIndex'}"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<bind name="name" value="'CarouselRows'"/>
			<style>
				<marginLeft value="2px"/>
				<marginRight value="6px"/>
				<marginTop value="3px"/>
			</style>
			<bind name="catch" value="'ItemChooser.carouselRowsSelected'"/>
			<bind name="instance" value="'ItemChooser'; {	_items: ['2', '3', '4'], curIndex: _curItemIndex, _dropDownWidth: '50px',
											_choosedItemRenderer: 'BluishTextChoosedItemRenderer', _listItemRenderer: 'CarouselShipRowsListItemRenderer',
											onItemSelectedEvent: 'carouselRowsSelected', _itemChooserTooltipText: 'IDS_HINT_ROWS_IN_CAROUSEL'}"/>
			<bind name="changeDispatch" value="_curItemIndex; 'carouselRowsCountChanged'"/>
		</block>
	</block>
	<block className="CarouselAppliedFilterInfotip">
		<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="$VerticalInfotipBehaviourCenterUpper"/>
		<bind name="name" value="'CarouselAppliedFilterInfotip'"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="8px"/>
				<marginRight value="13px"/>
				<marginTop value="9px"/>
				<marginBottom value="11px"/>
			</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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="-6px"/>
				<marginLeft value="-6px"/>
			</style>
		</block>
		<block>
			<style>
				<marginLeft value="9px"/>
				<marginRight value="13px"/>
				<marginTop value="10px"/>
			</style>
			<bind name="instance" value="'FilterBlock'; {_title: _title, _filterType: _filterType, needDivider: false}}"/>
		</block>
		<block className="dock_panel_pin" type="native">
			<style>
				<marginBottom value="3px"/>
				<alpha value="0.5"/>
			</style>
			<bind name="gotoAndStop!" value="'down'"/>
			<params>
				<param name="name" value="pinBottom"/>
			</params>
		</block>
	</block>
	<block className="CarouselAppliedFilterShipNameInfotip">
		<bind name="collectionDH" value="CC.shipFilterItem; 'selectedItems'; 'shipName.selected'"/>
		<bind name="entityDH" value="'shipNameFilterEntity'; selectedItems[0].id"/>
		<bind name="watchDH" value="'searchStr'; ['shipNameFilterEntity.shipFilterItem.evUpdate']; shipNameFilterEntity.dataComponent.data.value"/>
		<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="$VerticalInfotipBehaviourCenterUpper"/>
		<bind name="name" value="'CarouselAppliedFilterShipNameInfotip'"/>
		<style>
			<width value="305px"/>
			<height value="65px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="8px"/>
				<marginRight value="13px"/>
				<marginTop value="9px"/>
				<marginBottom value="11px"/>
			</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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginBottom value="-6px"/>
				<marginLeft value="-6px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="284px"/>
				<height value="40px"/>
				<marginTop value="11px"/>
				<right value="6px"/>
			</style>
			<bind name="instance" value="'TextInputWithCancelCustom'; {	onEnterEvent: 'startShipSearch',
													onCancelEvent: 'shipSearchCancelled',
													onInputStrChangedEvent: 'inputStrChanged',													
													_onEnterTooltipText: 'IDS_HINT_FIND',
													_defaultInputValue: searchStr,
													_maxChars: 20,
													_tfWidth: '250px'}"/>
			<bind name="watch" value="'strForSearch'; inputStr"/>
			<bind name="catch" value="'TextInputWithCancel.inputStrChanged'"/>
			<bind name="changeDispatch" value="strForSearch; 'strForChanged'"/>
			<bind name="catch" value="'TextInputWithCancel.shipSearchCancelled'; {inputStr: ''}"/>
			<bind name="action" value="'strForChanged'; 'setFilterValue' ; {type: 'shipName', field: 'IDS_SHIP_NAME_FILTER', value: strForSearch}"/>
			<bind name="dispatch" value="'TextInputWithCancel.shipSearchCancelled'; 'Tooltip.Close'; {}; false; 0.1"/>
		</block>
		<block className="dock_panel_pin" type="native">
			<style>
				<position value="absolute"/>
				<bottom value="3px"/>
				<alpha value="0.5"/>
			</style>
			<bind name="gotoAndStop!" value="'down'"/>
			<params>
				<param name="name" value="pinBottom"/>
			</params>
		</block>
	</block>
	<block className="FilterBlock">
		<bind name="collectionDH" value="CC.shipFilterItem; 'filters'; _filterType"/>
		<block type="text">
			<style>
				<marginTop value="5px"/>
				<marginBottom value="8px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="_title"/>
		</block>
		<block>
			<bind name="name" value="'FilterBlockValues'"/>
			<style>
				<flow value="vtile"/>
				<height value="155px"/>
				<marginLeft value="30px"/>
				<marginRight value="6px"/>
			</style>
			<bind name="repeat" value="filters; 'FilterItem'"/>
		</block>
		<block>
			<bind name="visible" value="needDivider == true"/>
			<style>
				<height value="100%"/>
				<position value="absolute"/>
			</style>
			<block className="divider_v" type="native">
				<style>
					<height value="100%"/>
				</style>
			</block>
		</block>
	</block>
	<block className="FilterItem">
		<bind name="watchDH" value="'_value'; ['$dataRef.ref.shipFilterItem.evUpdate']; $dataRef.ref.dataComponent.data.value"/>
		<bind name="watchDH" value="'_filterType'; ['$dataRef.ref.shipFilterItem.evUpdate']; $dataRef.ref.shipFilterItem.type"/>
		<bind name="watchDH" value="'_field'; ['$dataRef.ref.shipFilterItem.evUpdate']; $dataRef.ref.shipFilterItem.field"/>
		<bind name="instance" value="(_filterType == 'level')	? 'ShipLevelCheckBox'	:
                    (_filterType == 'shipType')	? 'ShipClassCheckBox'	:
                    (_filterType == 'nation')	? 'ShipNationCheckBox'	:
                    (_filterType == 'special')	? 'ShipSpecialCheckBox'
                                          		: 'FilterCheckBox'; {_filterType: _filterType, value: _value, field: _field}"/>
	</block>
	<block className="FilterCheckBox">
		<style>
			<marginRight value="44px"/>
			<marginBottom value="8px"/>
		</style>
		<bind name="instance" value="'CheckBox'; {switchProperty: value, label: field, _maxTfWidth: 150}"/>
		<bind name="action" value="'left_click'; 'setFilterValue' ; {type: _filterType, field: field, value: !value}"/>
		<bind name="clickSplit"/>
	</block>
	<block className="ShipLevelCheckBox">
		<bind name="name" value="'CarouselCheckBox_' + _filterType + '_' + field"/>
		<style>
			<marginBottom value="8px"/>
			<width value="80px"/>
		</style>
		<bind name="action" value="'left_click'; 'setFilterValue' ; {type: _filterType, field: field, value: !value}"/>
		<bind name="clickSplit"/>
		<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: subst('IDS_HINT_CHECKBOX_FILTER_LEVEL', [], {level: field}) }"/>
		<bind name="instance" value="'CheckBox'; {switchProperty: !!(value), label: ShipLevels.RLEVELS[field], _maxTfWidth: 150}"/>
	</block>
	<block className="ShipClassCheckBox">
		<bind name="name" value="'CarouselCheckBox_' + _filterType + '_' + field"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="action" value="'left_click'; 'setFilterValue' ; {type: _filterType, field: field, value: !value}"/>
		<bind name="clickSplit"/>
		<bind name="tooltip" value="'SimpleTooltip'; { tooltipText: 'IDS_HINT_CHECKBOX_FILTER_CLASS_' + toUpperCase(field) }"/>
		<style>
			<marginBottom value="8px"/>
			<width value="80px"/>
			<height value="21px"/>
			<flow value="horizontal"/>
		</style>
		<block className="checkbox_no_label" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="selected" value="!!(value)"/>
		</block>
		<block>
			<style>
				<marginLeft value="27px"/>
				<marginTop value="5px"/>
				<hitTest value="false"/>
			</style>
			<bind name="transition" value="rollOver &amp;&amp; !mouseDown; 0.15; {alpha: 0.8}; {alpha: 1}; {alpha: 0.8}; 2"/>
			<block className="icon_ship" type="native">
				<bind name="gotoAndStop!" value="field"/>
			</block>
		</block>
	</block>
	<block className="ShipNationCheckBox">
		<bind name="name" value="'CarouselCheckBox_' + _filterType + '_' + field"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="action" value="'left_click'; 'setFilterValue' ; {type: _filterType, field: field, value: !value}"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_HINT_CHECKBOX_FILTER_NATION_') +  tr(toUpperCase(field))}"/>
		<bind name="clickSplit"/>
		<style>
			<marginBottom value="8px"/>
			<width value="80px"/>
			<flow value="horizontal"/>
		</style>
		<block className="checkbox_no_label" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="selected" value="!!(value)"/>
		</block>
		<block>
			<style>
				<marginLeft value="27px"/>
				<hitTest value="false"/>
			</style>
			<bind name="transition" value="rollOver &amp;&amp; !mouseDown; 0.15; {alpha: 0.8}; {alpha: 1}; {alpha: 0.8}; 2"/>
			<bind name="instance" value="'NationFlagsTiny'; {shipCountry: field}"/>
		</block>
	</block>
	<block className="ShipSpecialCheckBox">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; field == 'IDS_RANKED_BATTLES' ? 'rankedBattlesSeason' : null"/>
		<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
		<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
		<bind name="watchDH" value="'clubBattlesSeasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
		<bind name="watchDH" value="'clubBattlesSeasonStage'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.stage"/>
		<bind name="name" value="'CarouselCheckBox_' + _filterType + '_' + field"/>
		<bind name="feature" value="13; ''"/>
		<bind name="feature" value="16; ''"/>
		<bind name="feature" value="19; ''"/>
		<bind name="watch" value="'isVisible';	(field == 'IDS_RANKED_BATTLES'	&amp;&amp;	(feature_16 == 'locked' || rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON))			? false :
								(field == 'IDS_CLUB_BATTLES'	&amp;&amp;	(feature_19 == 'locked' || clubBattlesSeasonId &lt;= 0 || clubBattlesSeasonStage != 2))	? false :
								((field == 'IDS_WITH_COMMANDER'	||	field == 'IDS_WITHOUT_COMMANDER') &amp;&amp; feature_13 == 'locked')							? false
																																							: true"/>
		<bind name="visible" value="isVisible"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="action" value="'left_click'; 'setFilterValue' ; {type: _filterType, field: field, value: !value}"/>
		<bind name="clickSplit"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText:	((field == 'IDS_SELECTED_BY_USER') 	? 'IDS_HINT_CHECKBOX_FILTER_SELECTED_BY_USER':
													(field == 'IDS_FILTER_PREMIUM') 	? 'IDS_HINT_CHECKBOX_FILTER_PREMIUM':
													(field == 'IDS_WITH_COMMANDER') 	? 'IDS_HINT_CHECKBOX_FILTER_WITH_COMMANDER':
													(field == 'IDS_WITHOUT_COMMANDER') 	? 'IDS_HINT_CHECKBOX_FILTER_WITHOUT_COMMANDER':
													(field == 'IDS_FILTER_ELITE')	 	? 'IDS_HINT_CHECKBOX_FILTER_ELITE'	:
													(field == 'IDS_RANKED_BATTLES')		? 'IDS_HINT_CHECKBOX_FILTER_RANKED':
													(field == 'IDS_PVE_BATTLES')		? 'IDS_HINT_CHECKBOX_FILTER_PVE'	:
													(field == 'IDS_CLUB_BATTLES')		? 'IDS_HINT_CHECKBOX_FILTER_CLUB'	:
													(field == 'IDS_PROMO_FILTER')		? 'IDS_HINT_CHECKBOX_FILTER_SHARE'	:
													'UNKNOWN_FILTER_TYPE')}"/>
		<style>
			<marginBottom value="8px"/>
			<width value="80px"/>
			<height value="21px"/>
			<flow value="horizontal"/>
		</style>
		<block className="checkbox_no_label" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="selected" value="!!(value)"/>
		</block>
		<block>
			<bind name="transition" value="rollOver &amp;&amp; !mouseDown; 0.15; {alpha: 0.8}; {alpha: 1}; {alpha: 0.8}; 2"/>
			<style>
				<marginTop value="-2px"/>
				<marginLeft value="27px"/>
				<hitTest value="false"/>
			</style>
			<bind name="child" value="field; {_isCheckBox: true}; {	IDS_SELECTED_BY_USER: 'PrimaryIcon',
													IDS_FILTER_ELITE: 'EliteIcon',
													IDS_FILTER_PREMIUM: 'PremiumIcon',
													IDS_RANKED_BATTLES: 'RankedIcon',
													IDS_PVE_BATTLES	: 'PVEIcon',
													IDS_CLUB_BATTLES: 'ClubIcon',
													IDS_PROMO_FILTER: 'ShareIcon',
													IDS_WITH_COMMANDER: 'WithCrewIcon',
													IDS_WITHOUT_COMMANDER: 'WithoutCrewIcon'}"/>
		</block>
	</block>
	<block className="MyFilters">
		<style>
			<marginTop value="5px"/>
			<width value="240px"/>
			<height value="100%"/>
		</style>
		<block type="text">
			<style>
				<marginRight value="44px"/>
			</style>
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="_title"/>
		</block>
		<block>
			<bind name="visible" value="needDivider == true"/>
			<style>
				<height value="100%"/>
				<position value="absolute"/>
			</style>
			<block className="divider_v" type="native">
				<style>
					<height value="100%"/>
				</style>
			</block>
		</block>
		<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"/>
		<block className="ShowBuySlotSlots">
			<style>
				<marginLeft value="20px"/>
				<marginTop value="8px"/>
			</style>
			<bind name="watch" value="'ShowBuySlotSlots'; (userPrefs.elementsGroupExpand.ShowBuySlotSlots == null) ? false : userPrefs.elementsGroupExpand.ShowBuySlotSlots "/>
			<bind name="catch" value="'switchShowBuySlotSlots'; { ShowBuySlotSlots: !ShowBuySlotSlots }; 'saveShowBuySlotSlots'"/>
			<bind name="action" value="'saveShowBuySlotSlots' ; 'setUserPref' ; {value: ShowBuySlotSlots, name: 'elementsGroupExpand', subName: 'ShowBuySlotSlots'}"/>                            
			<bind name="instance" value="'CheckBox'; {switchProperty: ShowBuySlotSlots, label: 'IDS_SLOT_PURCHASE'}"/>
			<bind name="dispatch" value="'click'; 'switchShowBuySlotSlots'"/>	
		</block>
		<block className="ShowOnlyPrimary">
			<style>
				<marginLeft value="20px"/>
				<marginTop value="8px"/>
			</style>
			<bind name="instance" value="'CheckBox'; {switchProperty: value, label: field, _maxTfWidth: 150}"/>
			<bind name="watch" value="'ShowOnlyPrimary'; (userPrefs.elementsGroupExpand.ShowOnlyPrimary == null) ? false : userPrefs.elementsGroupExpand.ShowOnlyPrimary "/>
			<bind name="catch" value="'switchShowOnlyPrimary'; { ShowOnlyPrimary: !ShowOnlyPrimary }; 'saveShowOnlyPrimary'"/>
			<bind name="action" value="'saveShowOnlyPrimary' ; 'setUserPref' ; {value: ShowOnlyPrimary, name: 'elementsGroupExpand', subName: 'ShowOnlyPrimary'}"/>                            
			<bind name="instance" value="'CheckBox'; {switchProperty: ShowOnlyPrimary, label: 'IDS_SELECTED_BY_USER'}"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_CHECKBOX_FILTER_SELECTED_BY_USER'}"/>
			<bind name="dispatch" value="'click'; 'switchShowOnlyPrimary'"/>	
		</block>
		<block className="ShowExcluded">
			<style>
				<marginLeft value="20px"/>
				<marginTop value="8px"/>
			</style>
			<bind name="instance" value="'CheckBox'; {switchProperty: value, label: field, _maxTfWidth: 150}"/>
			<bind name="watch" value="'ShowExcluded'; (userPrefs.elementsGroupExpand.ShowExcluded == null) ? false : userPrefs.elementsGroupExpand.ShowExcluded "/>
			<bind name="catch" value="'switchShowExcluded'; { ShowExcluded: !ShowExcluded }; 'saveShowExcluded'"/>
			<bind name="action" value="'saveShowExcluded' ; 'setUserPref' ; {value: ShowExcluded, name: 'elementsGroupExpand', subName: 'ShowExcluded'}"/>                            
			<bind name="instance" value="'CheckBox'; {switchProperty: ShowExcluded, label: 'IDS_HINT_CANCEL_FILTER'}"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_ADDITIONAL_SHIPS_FILTER_HINT_0'}"/>
			<bind name="dispatch" value="'click'; 'switchShowExcluded'"/>	
		</block>
		<block className="ShowFilterTabs">
			<style>
				<marginLeft value="20px"/>
				<marginTop value="8px"/>
			</style>
			<bind name="instance" value="'CheckBox'; {switchProperty: value, label: field, _maxTfWidth: 150}"/>
			<bind name="watch" value="'ShowFilterTabs'; (userPrefs.elementsGroupExpand.ShowFilterTabs == null) ? true : userPrefs.elementsGroupExpand.ShowFilterTabs "/>
			<bind name="catch" value="'switchShowFilterTabs'; { ShowFilterTabs: !ShowFilterTabs }; 'saveShowFilterTabs'"/>
			<bind name="action" value="'saveShowFilterTabs' ; 'setUserPref' ; {value: ShowFilterTabs, name: 'elementsGroupExpand', subName: 'ShowFilterTabs'}"/>                            
			<bind name="instance" value="'CheckBox'; {switchProperty: ShowFilterTabs, label: 'IDS_FILTERS'}"/>
			<bind name="dispatch" value="'click'; 'switchShowFilterTabs'"/>	
		</block>
	</block>
	<block className="AppliedPVEFilter">
		<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
		<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
		<bind name="primaryEntityDH" value="'operationEntity'; CC.operation; chosenOperationId"/>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_CAROUSEL_PVE_OPERATION_FILTER'}"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 2"/>
		<style>
			<height value="30px"/>
			<flow value="horizontal"/>
		</style>
		<block className="button_dock_bg" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="gotoAndStop!" value="'down'"/>
		</block>
		<block className="icon_filters" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<marginLeft value="4px"/>
			</style>
			<bind name="gotoAndStop!" value="'pve'"/>
		</block>
		<block type="text">
			<style>
				<marginTop value="2px"/>
			</style>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="tr('IDS_' + toUpperCase(operationEntity.operation.gpName) + '_NAME')"/>
		</block>
		<block>
			<style>
				<marginLeft value="16px"/>
			</style>
			<styleClass value="$MiddleVAligned"/>
			<bind name="instance" value="'ShipRestrictions'; {_restrictions: operationEntity.shipRestriction, _withShipTypeCounters: false}"/>
		</block>
	</block>
	<block className="AppliedFilter">
		<bind name="visible" value="ShowFilterTabs || selectedItems.length &gt; 0"/>
		<bind name="watch" value="'path'; _filterType ? _filterType + '.selected' : ''"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerLevelsRange; 'selectedItems'; CC.shipFilterItem; path"/>
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="transition" value="(rollOver &amp;&amp; !mouseDown) || appliedFiltersInfotipSelected || shipNameFIlterInfotipSelected; 0.15; {alpha: 0.7}; {alpha: 1}"/>
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 0.7, top: 0}; 2"/>
		<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="'ShowFilterTabs'; (userPrefs.elementsGroupExpand.ShowFilterTabs == null) ? true : userPrefs.elementsGroupExpand.ShowFilterTabs "/>
		<style>
			<height value="30px"/>
		</style>
		<block className="button_dock_bg" type="native">
			<bind name="gotoAndStop!" value="'down'"/>
			<bind name="transition" value="((rollOver &amp;&amp; !mouseDown) || (mouseDown)) || appliedFiltersInfotipSelected || shipNameFIlterInfotipSelected; 0.15; {alpha: 0.5}; {alpha: 1}"/>
			<style>
				<height value="100%"/>
			</style>
			<bind name="tooltip" value="'CarouselAppliedFilterInfotip';	_filterType == 'level' 		? {_title: 'IDS_LEVEL', _filterType: _filterType} :
														_filterType == 'shipType'	? {_title: 'IDS_CLASS', _filterType: _filterType} :
														_filterType == 'nation' 	? {_title: 'IDS_NATION', _filterType: _filterType} :
														_filterType == 'special'	? {_title: 'IDS_SPECIAL', _filterType: _filterType}
																					: null; TooltipBehaviour.verticalInfotip; null; 'appliedFiltersInfotipSelected'"/>
			<bind name="tooltip" value="'CarouselAppliedFilterShipNameInfotip'; (_filterType == 'shipName')	? {}
																							: null;	 TooltipBehaviour.verticalInfotip; null; 'shipNameFIlterInfotipSelected'"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; (_filterType != 'shipName') ? { _mouseInstructions: [{_type: 'left', _instructionText: tr('IDS_CAROUSEL_APPLIED_FILTER_HINT_'+toUpperCase(_filterType))}], _maxWidth: 240 }
																				: null"/>
			<bind name="changeDispatch" value="shipNameFIlterInfotipSelected; 'shipNameFIlterInfotipSelectedChanged';{shipNameFIlterInfotipSelected: shipNameFIlterInfotipSelected}"/>
			<block>
				<style>
					<height value="100%"/>
					<marginLeft value="8px"/>
					<marginRight value="8px"/>
					<marginTop value="1px"/>
				</style>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<hitTest value="false"/>
					</style>
					<bind name="repeat" value="selectedItems;	(_filterType == 'shipName')	? 'CarouselSortingText'
											:(_filterType == 'level')		? 'ShipLevelRome'
											:(_filterType == 'shipType')	? 'ShipTypeIcon'
											:(_filterType == 'nation')		? 'TinyNationFlag'
											:(_filterType == 'special')		? 'SpecialSortingIcon'
																			: 'CarouselSortingText'"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<style>
						<height value="100%"/>
						<width value="80px"/>
					</style>
					<block>
						<bind name="transition" value="((rollOver &amp;&amp; !mouseDown) || mouseDown) || appliedFiltersInfotipSelected || shipNameFIlterInfotipSelected; 0.15; {alpha: 0.5}; {alpha: 1}"/>
						<bind name="action" value="'click'; 'resetFilterType' ; {type: _filterType}"/>
						<styleClass value="$MiddleVAligned"/>
						<block type="text">
							<styleClass value="$MiddleVAligned"/>
							<styleClass value="$TextHeaderBigDefault"/>
							<bind name="text" value="_filterType == 'level' 		? 'IDS_LEVEL' :
													_filterType == 'shipType'		? 'IDS_CLASS' :
													_filterType == 'nation' 		? 'IDS_NATION':
													_filterType == 'special'		? 'IDS_SPECIAL'
																					: 'IDS_CLUB_TITLE'"/>
							<style>
								<hitTest value="false"/>
								<flow value="horizontal"/>
							</style>														
						</block>
						<block className="button_close" type="native">
							<style>
								<marginLeft value="5px"/>
							</style>
							<bind name="name" value="'CarouselFilterClose_' + _filterType"/>
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_HINT_RESET_FILTER'}"/>
							<bind name="visible" value="selectedItems.length &gt; 0"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ResetAllFilters">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<style>
			<height value="30px"/>
			<marginRight value="4px"/>
		</style>
		<bind name="appear" value="'addedToStage'; 0.15; 0; {alpha: 0, top: 10}; {alpha: 1, top: 0}; 2"/>
		<bind name="action" value="'click'; 'resetAllFilters'"/>
		<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_HINT_RESET_ALL_FILTERS'}], _maxWidth: 250}"/>
		<bind name="soundSet" value="'resetallfilters_item'"/>
		<block className="button_dock_bg" type="native">
			<bind name="gotoAndStop!" value="'down'"/>
			<style>
				<height value="100%"/>
			</style>
			<bind name="transition" value="((rollOver &amp;&amp; !mouseDown) || (mouseDown)); 0.15; {alpha: 0}; {alpha: 0.7}"/>
			<block>
				<style>
					<height value="100%"/>
					<marginLeft value="8px"/>
					<marginRight value="8px"/>
				</style>
				<bind name="transition" value="rollOver &amp;&amp; !mouseDown; 0.15; {alpha: 0.7}; {alpha: 1}"/>
				<block type="text">
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$TextHeaderBigDefault"/>
					<bind name="text" value="'IDS_RESET_ALL_FILTERS'"/>
				</block>
				<block>
					<bind name="transition" value="((rollOver &amp;&amp; !mouseDown) || mouseDown); 0.15; {alpha: 0}; {alpha: 0.7}"/>
					<style>
						<marginLeft value="2px"/>
						<marginRight value="1px"/>
						<marginTop value="10px"/>
						<hitTest value="false"/>
					</style>
					<block className="button_close" type="native"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ShipLevelRome">
		<bind name="dataRefDH" value="'filterEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'_field'; ['filterEntity.shipFilterItem.evUpdate']; filterEntity.shipFilterItem.field"/>
		<block type="text">
			<bind name="style" value="'marginLeft'; $value == 0 ? '-6px': '0px'"/>
			<bind name="style" value="'marginRight'; $value == 0 ? '-2px': '4px'"/>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="ShipLevels.RLEVELS[_field]"/>
		</block>
	</block>
	<block className="CarouselSortingText">
		<bind name="dataRefDH" value="'filterEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'_value'; ['filterEntity.shipFilterItem.evUpdate']; filterEntity.dataComponent.data.value"/>
		<style>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<hitTest value="false"/>
				<marginTop value="2px"/>
				<marginRight value="1px"/>
			</style>
			<block className="button_search" type="native"/>
		</block>
		<block type="text">
			<style>
				<marginRight value="4px"/>
				<marginTop value="-1px"/>
			</style>
			<styleClass value="$TextHeaderBigDefault"/>
			<bind name="text" value="_value"/>
		</block>
	</block>
	<block className="ShipTypeIcon">
		<bind name="dataRefDH" value="'filterEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'_field'; ['filterEntity.shipFilterItem.evUpdate']; filterEntity.shipFilterItem.field"/>
		<block>
			<style>
				<marginRight value="4px"/>
			</style>
			<block className="icon_ship" type="native">
				<bind name="gotoAndStop!" value="_field"/>
			</block>
		</block>
	</block>
	<block className="TinyNationFlag">
		<bind name="dataRefDH" value="'filterEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'_field'; ['filterEntity.shipFilterItem.evUpdate']; filterEntity.shipFilterItem.field"/>
		<block>
			<style>
				<marginRight value="2px"/>
			</style>
			<bind name="instance" value="'NationFlagsTiny'; {shipCountry: _field}"/>
		</block>
	</block>
	<block className="SpecialSortingIcon">
		<bind name="dataRefDH" value="'filterEntity'; '$dataRef.ref'"/>
		<bind name="watchDH" value="'_field'; ['filterEntity.shipFilterItem.evUpdate']; filterEntity.shipFilterItem.field"/>
		<style>
			<marginLeft value="-2px"/>
		</style>
		<bind name="child" value="_field; {}; {	IDS_SELECTED_BY_USER: 'PrimaryIcon',
								IDS_FILTER_ELITE: 'EliteIcon',
								IDS_FILTER_PREMIUM: 'PremiumIcon',
								IDS_RANKED_BATTLES: 'RankedIcon',
								IDS_PVE_BATTLES: 'PVEIcon', 
								IDS_CLUB_BATTLES: 'ClubIcon',
								IDS_PROMO_FILTER: 'ShareIcon',
								IDS_WITH_COMMANDER: 'WithCrewIcon',
								IDS_WITHOUT_COMMANDER: 'WithoutCrewIcon'}"/>
	</block>
	<block className="EliteIcon">
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'elite'"/>
		</block>
	</block>
	<block className="PrimaryIcon">
		<bind name="style" value="'marginTop'; _isCheckBox ? '0px': '1px'"/>
		<style>
			<marginTop value="1px"/>
		</style>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'primary'"/>
		</block>
	</block>
	<block className="WithCrewIcon">
		<bind name="style" value="'marginTop'; _isCheckBox ? '1px': '2px'"/>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'withCrew'"/>
		</block>
	</block>
	<block className="WithoutCrewIcon">
		<bind name="style" value="'marginTop'; _isCheckBox ? '0px': '1px'"/>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'withoutCrew'"/>
		</block>
	</block>
	<block className="PremiumIcon">
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'premium'"/>
		</block>
	</block>
	<block className="ShareIcon">
		<style>
			<marginTop value="1px"/>
		</style>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'share'"/>
		</block>
	</block>
	<block className="RankedIcon">
		<bind name="style" value="'marginTop'; _isCheckBox ? '0px': '1px'"/>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'rank'"/>
		</block>
	</block>
	<block className="PVEIcon">
		<bind name="style" value="'marginTop'; _isCheckBox ? '0px': '1px'"/>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'pve'"/>
		</block>
	</block>
	<block className="ClubIcon">
		<bind name="style" value="'marginTop'; _isCheckBox ? '0px': '1px'"/>
		<style>
			<marginTop value="1px"/>
		</style>
		<block className="icon_filters" type="native">
			<bind name="gotoAndStop!" value="'club'"/>
		</block>
	</block>
	<block className="CarouselShipRowsListItemRenderer">
		<styleClass value="$ContextMenuListItem"/>
		<bind name="var" value="{_toLowerCase: true}"/>
		<bind name="stageSize"/>
		<bind name="watch" value="'isFourRowsEnabled'; (stageHeight &gt; (720 + 160))"/>
		<bind name="watch" value="'isThreeRowsEnabled'; (stageHeight &gt; (720 + 88))"/>
		<bind name="watch" value="'isEnabled';	($index == 0)							? true :
								(isThreeRowsEnabled &amp;&amp; ($index == 1))	? true :
								(isFourRowsEnabled &amp;&amp; ($index == 2))	? true
																		: false"/>
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<bind name="tooltip" value="'SimpleWarningTooltip'; isEnabled ? null : {_text: tr('IDS_NOT_ENABLED_ON_LOW_RESOLUTION')}"/>
		<block>
			<styleClass value="$Fullsize"/>
			<!-- <bind name="style" value="'alpha'; isEnabled ? 1 : 0.5"/> -->
			<!-- <bind name="style" value="'hitTest'; isEnabled"/> -->
			<block className="MenuItemWithSelection">
				<styleClass value="$Fullsize"/>
				<bind name="name" value="$value"/>
				<block className="dock_submenu_item" type="native">
					<styleClass value="$FullsizeAbsolute"/>
					<bind name="selected" value="(_curItemIndex == $index)"/>
				</block>
				<block type="text">
					<styleClass value="$TextDefault"/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$ContextMenuListItemContent"/>
					<bind name="class" value="(_curItemIndex == $index) == true ? '$Bold' : '$None'"/>
					<bind name="text" value="(_toLowerCase ? toLowerCase(tr($value))
											: (tr($value)))"/>
				</block>
			</block>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 	($index == 0)	? tr('IDS_SHOW_TWO_ROWS_IN_CAROUSEL') :
														($index == 1)	? tr('IDS_SHOW_THREE_ROWS_IN_CAROUSEL') :
														($index == 2)	? tr('IDS_SHOW_FOUR_ROWS_IN_CAROUSEL')
																		: ''}"/>
			<bind name="dispatch" value="'click'; ('ItemChooserInnerEvent.' + _onItemSelectedEvent); {_curItemIndex: $index}"/>
			<bind name="dispatch" value="'click'; ('ItemChooserInnerEventDublicate.' + _onItemSelectedEvent)"/>
		</block>
	</block>
	<css name="$CrewSkillSmallSize">
		<width value="26px"/>
		<height value="26px"/>
	</css>
	<css name="$CrewSkillMediumSize">
		<width value="40px"/>
		<height value="40px"/>
	</css>
	<block className="SkillHeader">
		<style>
			<width value="100%"/>
			<flow value="horizontal"/>
		</style>
		<block>
			<style>
				<width value="60px"/>
				<height value="60px"/>
			</style>
			<bind name="style" value="'backgroundImage'; 'url:../crew_commander/skills/big/icon_perk_' + skill.name + (_penalty ? '_penalty.png' : '.png')"/>
		</block>
		<block>
			<style>
				<width value="100%"/>
				<marginLeft value="6px"/>
			</style>
			<block type="text">
				<style>
					<maxWidth value="210"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<bind name="class" value="_penalty &amp;&amp; skill.learned ? '$FontColorUnready' : '$None'"/>
				<bind name="text" value="'IDS_SKILL_' + toUpperCase(skill.name)"/>
			</block>
			<block type="text">
				<style>
					<maxWidth value="210"/>
				</style>
				<styleClass value="$TextSecondary"/>
				<bind name="text" value="'IDS_SKILL_DESC_' + toUpperCase(skill.name)"/>
			</block>
		</block>
	</block>
	<block className="CrewSkillItemSmall">
		<bind name="primaryEntityDH" value="'skillEntity'; CC.crewSkill; _skillIDs[$index]; 'evUpdate'"/>
		<bind name="watchDH" value="'skill'; ['skillEntity.crewSkill.evUpdate']; skillEntity.crewSkill"/>
		<style>
			<marginLeft value="5px"/>
			<width value="35px"/>
			<height value="35px"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'url:../crew_commander/skills/small/icon_perk_small_' + skill.name + (_penalty ? '_penalty.png' : '.png')"/>
	</block>
	<block className="CrewSkillItem">
		<bind name="primaryEntityDH" value="'skillEntity'; CC.crewSkill; $value; 'evUpdate'"/>
		<bind name="watchDH" value="'skill'; ['skillEntity.crewSkill.evUpdate']; skillEntity.crewSkill"/>
		<style>
			<marginRight value="6px"/>
			<marginBottom value="4px"/>
			<width value="60px"/>
			<height value="60px"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'url:../crew_commander/skills/big/icon_perk_' + skill.name + (_penalty ? '_penalty.png' : '.png')"/>
	</block>
	<block className="CrewFileSkillItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<bind name="primaryEntityDH" value="'crewEntity'; CC.crew; _crewId"/>
		<bind name="watchDH" value="'crew'; ['crewEntity.crew.evBasketChanged', 'crewEntity.crew.evLevelUp', 'crewEntity.crew.evExpChanged', 'crewEntity.crew.evShipChanged', 'crewEntity.crew.evSkillsChanged', 'crewEntity.crew.evResetCostChanged', 'crewEntity.crew.evAdaptationUpdated', 'crewEntity.crew.evChanged', 'crewEntity.crew.evRecentnessUpdated']; crewEntity.crew"/>
		<bind name="watchDH" value="'crew'+'Retraining'; ['crewEntity.crew.evRetrainingUpdated']; crewEntity.retraining"/>
		<bind name="primaryEntityDH" value="'shipOwnEntity'; CC.ownShip; crew.shipID; 'evUpdate'"/>
		<bind name="watchDH" value="'playerShipInfo'; ['shipOwnEntity.ownShip.evUpdate', 'shipOwnEntity.ownShip.evCrewChanged']; shipOwnEntity.ownShip"/>
		<bind name="primaryEntityDH" value="'skillEntity'; CC.crewSkill; $value; 'evUpdate'"/>
		<bind name="watchDH" value="'skill'; ['skillEntity.crewSkill.evUpdate']; skillEntity.crewSkill"/>
		<style>
			<position value="absolute"/>
			<backgroundColor value="0x01000000"/>
		</style>
		<bind name="left" value="((skill.column * 60) + (skill.column * _iconHorizontalPadding) + ((skill.column - skill.column % 2)/2 * _iconHorizontalPadding * _groupPaddingCoeff))"/>
		<bind name="top" value="((skill.tier - 1) * (60 + _iconVerticalPadding)))"/>
		<block>
			<bind name="name" value="'IconSkill_' + skill.name"/>
			<bind name="tooltip" value="'SkillTooltip'; {_id: $value, _crewId: _crewId}"/>
			<bind name="transition" value="(skill.learned || (skill.canBeLearned &amp;&amp; rollOver)) &amp;&amp; !(playerShipInfo.isLocked); 0.15; {alpha: 0.6}; {alpha: 1.0}; {alpha: 0.6}; 2"/>
			<style>
				<width value="60px"/>
				<height value="60px"/>
			</style>
			<bind name="style" value="'backgroundImage'; ('url:../crew_commander/skills/big/icon_perk_' + skill.name +
										((crew.skillsEffectiveness &lt; 1) &amp;&amp; skill.learned 	?	'_penalty.png' :
										skill.hasLearnedSkillOnPreviousTier					?	'.png'
																							: 	'_inactive.png'))"/>
			<bind name="soundOn" value="'click'; 'press'; 'crew_skill_item'"/>
			<bind name="request" value="'click'; crew.freeSkillPoints &gt;= skill.tier &amp;&amp; skill.hasLearnedSkillOnPreviousTier &amp;&amp; !(playerShipInfo.isLocked) &amp;&amp; !(skill.learned) ? 'learnSkill' : ''; {crewID: _crewId, skillType:skill.skillType, skillID:skill.id}"/>
		</block>
		<block className="icon_check" type="native">
			<bind name="visible" value="skill.learned"/>
			<style>
				<position value="absolute"/>
				<top value="-3px"/>
				<right value="-3px"/>
			</style>
		</block>
	</block>
	<block className="CrewSkillPointBadge">
		<style>
			<width value="32px"/>
			<height value="32px"/>
		</style>
		<block className="icon_sticker_new_small" type="native">
			<style>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="_state == 'inactive' ? 'inactive' : 'active'"/>
		</block>
		<block type="text">
			<styleClass value="$MiddleAligned"/>
			<styleClass value="$TextDefaultBold"/>
			<style>
				<marginTop value="4px"/>
			</style>
			<bind name="text" value="'+' + _skillPoints"/>
		</block>
	</block>
	<css name="$TextDockBig">
		<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="0x9CBABA"/>
	</css>
	<block className="ItemChooser">
		<bind name="watch" value="'_curItemIndex'; curIndex"/>
		<bind name="name" value="_name"/>
		<bind name="var" value="{_lastItemIndex: curIndex,
				_direction: false}"/>
		<bind name="catch" value="('ItemChooserInnerEvent.' + onItemSelectedEvent)"/>
		<bind name="catch" value="('ItemChooserInnerEventDublicate.' + onItemSelectedEvent); {	_direction: (_curItemIndex==_lastItemIndex) ? !_direction : false,
																			_lastItemIndex: _curItemIndex}"/>
		<bind name="dispatch" value="('ItemChooserInnerEventDublicate.' + onItemSelectedEvent); ('ItemChooser.'+onItemSelectedEvent); {_curItemIndex: _curItemIndex, _direction: _direction}; false; 0.001"/>
		<block>
			<bind name="tooltip" value="'ItemChooserDropdown'	; _items.length &gt; 1 ? {	_items: _items, _listItemRenderer: _listItemRenderer, _onItemSelectedEvent: onItemSelectedEvent,
																		_curItemIndex: _curItemIndex, _maxDropDownHeight: _maxDropDownHeight, _dropDownWidth: _dropDownWidth, _showHint: _showHint, _text: _text}
																	: null
												; TooltipBehaviour.verticalInfoWidget; null; 'dropdownChooserListIsVIsible'"/>
			<bind name="var" value="{ _tooltipData: _itemChooserTooltipText == '' || (_items.length &lt;= 1) ? null : { tooltipText: _itemChooserTooltipText } }"/>
			<bind name="tooltip" value="'SimpleTooltip'; _tooltipData"/>
			<bind name="style" value="'hitTest'; _items.length &gt; 1"/>
			<block className="button_dock" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<style>
					<marginTop value="1px"/>
					<marginBottom value="1px"/>
				</style>
				<params>
					<param name="soundSet" value="dropmenu_button"/>
				</params>
				<bind name="enabled" value="_items.length &gt; 1"/>
				<bind name="selected" value="dropdownChooserListIsVIsible"/>
			</block>
			<block>
				<block>
					<bind name="instance" value="_choosedItemRenderer; {_item: _items[curIndex], _choosedItemRendererParams: _choosedItemRendererParams}"/>
				</block>
				<block className="icon_navigate" type="native">
					<bind name="visible" value="_items.length &gt; 1 "/>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$MouseDisable"/>
					<style>
						<marginLeft value="5px"/>
						<marginRight value="4px"/>
					</style>
					<bind name="gotoAndStop!" value="'down'"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="ItemChooserDropdown">
		<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"/>
		<bind name="style" value="'width'; _dropDownWidth ? _dropDownWidth : '180px'"/>
		<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="!(true)"/>
				<block className="hint_panel" type="native">
					<styleClass value="$FullsizeAbsolute"/>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="visible" value="true"/>
				<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>
				<backgroundColor value="0x01000000"/>
				<hitTest value="false"/>
			</style>
			<params>
				<param name="name" value="ItemChooserDropdown"/>
			</params>
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<styleClass value="$DefaultScrollBar"/>
			<bind name="style" value="'maxHeight'; _maxDropDownHeight ? _maxDropDownHeight : 220"/>
			<style>
				<width value="100%"/>
				<overflow value="scroll"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="_items; _listItemRenderer; {_onItemSelectedEvent: _onItemSelectedEvent, _curItemIndex: _curItemIndex}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="!(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON) &amp;&amp; (_showHint == true)"/>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'StatusLineWithIcon'; { _text: _text, _maxWidth: 140}"/>
		</block>
	</block>
	<block className="BluishTextChoosedItemRenderer">
		<style>
			<height value="32px"/>
		</style>
		<block type="text">
			<style>
				<hitTest value="false"/>
				<marginLeft value="4px"/>
				<marginTop value="1px"/>
			</style>
			<styleClass value="$TextHeaderBold"/>
			<bind name="class" value="'$FontColorBlueish'"/>
			<bind name="text" value="(tr(_item))"/>
		</block>
	</block>
	<block className="LowerCaseTextListItemRenderer">
		<styleClass value="$ContextMenuListItem"/>
		<bind name="var" value="{_toLowerCase: true}"/>
		<block className="MenuItemWithSelection">
			<styleClass value="$Fullsize"/>
			<bind name="name" value="$value"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="selected" value="(_curItemIndex == $index)"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<bind name="class" value="(_curItemIndex == $index) == true ? '$Bold' : '$None'"/>
				<bind name="text" value="(_toLowerCase ? toLowerCase(tr($value))
											: (tr($value)))"/>
			</block>
		</block>
		<bind name="dispatch" value="'click'; ('ItemChooserInnerEvent.' + _onItemSelectedEvent); {_curItemIndex: $index}"/>
		<bind name="dispatch" value="'click'; ('ItemChooserInnerEventDublicate.' + _onItemSelectedEvent)"/>
	</block>
	<block className="LargeTextChoosedItemRenderer">
		<style>
			<height value="35px"/>
		</style>
		<block type="text">
			<style>
				<hitTest value="false"/>
				<marginLeft value="4px"/>
				<marginTop value="1px"/>
			</style>
			<styleClass value="$TextDockBig"/>
			<bind name="text" value="(tr(_item))"/>
		</block>
	</block>
	<block className="TextListItemRenderer">
		<styleClass value="$ContextMenuListItem"/>
		<block className="MenuItemWithSelection">
			<styleClass value="$Fullsize"/>
			<bind name="name" value="$value"/>
			<block className="dock_submenu_item" type="native">
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="selected" value="(_curItemIndex == $index)"/>
			</block>
			<block type="text">
				<styleClass value="$TextDefault"/>
				<styleClass value="$MiddleVAligned"/>
				<styleClass value="$ContextMenuListItemContent"/>
				<bind name="class" value="(_curItemIndex == $index) == true ? '$Bold' : '$None'"/>
				<bind name="text" value="(_toLowerCase ? toLowerCase(tr($value))
											: (tr($value)))"/>
			</block>
		</block>
		<bind name="dispatch" value="'click'; ('ItemChooserInnerEvent.' + _onItemSelectedEvent); {_curItemIndex: $index}"/>
		<bind name="dispatch" value="'click'; ('ItemChooserInnerEventDublicate.' + _onItemSelectedEvent)"/>
	</block>
	<block className="TextChoosedItemRenderer">
		<style>
			<height value="33px"/>
		</style>
		<bind name="style" value="'width'; _choosedItemRendererParams.width ? _choosedItemRendererParams.width : 'auto'"/>
		<block type="text">
			<style>
				<hitTest value="false"/>
				<marginLeft value="5px"/>
				<marginTop value="4px"/>
			</style>
			<bind name="class" value="_choosedItemRendererParams.fontClass ? _choosedItemRendererParams.fontClass : '$TextDockBig'"/>
			<bind name="text" value="(tr(_item))"/>
		</block>
	</block>
	<block className="PlayerSummaryPve">
		<styleClass value="$MiddleAligned"/>
		<style>
			<flow value="horizontal"/>
			<marginBottom value="24px"/>
		</style>
		<bind name="collectionDH" value="CC.rankedSeasonHistory; 'statDataEntities'; 'statToShow'"/>
		<bind name="entityDH" value="'statDataEntity'; statDataEntities[0].id"/>
		<bind name="watchDH" value="'statData'; ['statDataEntity.dataComponent.evDataChanged']; statDataEntity.dataComponent.data"/>
		<bind name="repeat" value="statData.basicStats.colData; 'PlayerSummaryItemPveRow'; {}"/>
	</block>
	<block className="PlayerSummaryItemPveRow">
		<style>
			<marginTop value="40px"/>
			<width value="1280:274,1920:310aw"/>
		</style>
		<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_blurmap5_feather" 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 type="text">
			<style>
				<textAlign value="center"/>
				<width value="100%"/>
				<height value="720:70,1080:120ah"/>
			</style>
			<bind name="style" value="'marginTop'; $index == 1 ? '-15px' : '0px'"/>
			<styleClass value="$TextDefaultBold25NM"/>
			<bind name="text" value="'IDS_SUMMARY_HEADER_' + toUpperCase(block)"/>
		</block>
		<block>
			<style>
				<height value="720:70,1080:120ah"/>
				<minWidth value="70"/>
				<backgroundColor value="0x01000000"/>
			</style>
			<bind name="style" value="'marginTop'; $index == 1 ? '15px' : '0px'"/>
			<styleClass value="$MiddleAligned"/>
			<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: tr('IDS_PVE_OPERATION_BATTLES_PLAYED_TOOLTIP_' + $index)}"/>
			<block type="text">
				<styleClass value="$MiddleAligned"/>
				<styleClass value="$ResultsReward"/>
				<bind name="text" value="gamesPlayed"/>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleAligned"/>
			<style>
				<width value="274px"/>
				<marginTop value="720:40,1080:80ah"/>
			</style>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<height value="140px"/>
					<marginTop value="5px"/>
				</style>
				<bind name="repeat" value="diag.battles; 'LineDiagramItem'; {maxValue: diag.maxValue, _columnColor: 0xFFf3ae5a}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
	</block>
	<block className="CrewSuperAbilitySlot">
		<style>
			<width value="360px"/>
		</style>
		<bind name="tooltip" value="'CrewSuperAbilityInfotip'; {}; TooltipBehaviour.infotip"/>
		<block>
			<style>
				<width value="100%"/>
			</style>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="300px"/>
				</style>
				<block type="text">
					<style>
						<textAlign value="right"/>
						<right value="10px"/>
						<maxWidth value="300"/>
					</style>
					<styleClass value="$TextHeader"/>
					<text value="IDS_SUPERABILITY"/>
				</block>
				<block type="text">
					<style>
						<textAlign value="right"/>
						<right value="10px"/>
						<maxWidth value="300"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorBlueish'"/>
					<text value="IDS_USE_SUPERABILITY"/>
				</block>
			</block>
			<block>
				<style>
					<width value="62px"/>
					<height value="62px"/>
				</style>
				<block>
					<block className="button_empty_slot" type="native"/>
				</block>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="CrewSuperAbilityInfotip">
		<styleClass value="$VerticalInfotipBehaviourCenter"/>
		<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="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="dock_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<marginLeft value="-13px"/>
				<marginRight value="-13px"/>
				<marginTop value="-9px"/>
				<marginBottom value="-18px"/>
			</style>
		</block>
		<block>
			<style>
				<width value="350px"/>
			</style>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<bind name="repeat" value="3; 'CrewSuperAbilityInfotipItem'"/>
			</block>
			<block>
				<styleClass value="$InfoBlockIndent"/>
				<block type="text">
					<style>
						<width value="100%"/>
					</style>
					<styleClass value="$TextDefault"/>
					<bind name="class" value="'$FontColorStrongBlueish'"/>
					<text value="IDS_CHOOSE_SUPERABILITY"/>
				</block>
			</block>
		</block>
		<block className="dock_panel_pin_h" type="native">
			<styleClass value="$MiddleVAligned"/>
			<style>
				<position value="absolute"/>
			</style>
			<bind name="gotoAndStop!" value="'left'"/>
		</block>
	</block>
	<block className="CrewSuperAbilityInfotipItem">
		<bind name="tooltip" value="'CrewSuperAbilityTooltip'; {}"/>
		<block className="dock_submenu_item" type="native">
			<styleClass value="$FullsizeAbsolute"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
		</block>
		<block>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'CrewSuperAbilityHeader'; {}"/>
		</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>
	<block className="CrewSuperAbilityTooltip">
		<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"/>
			<style>
				<position value="absolute"/>
			</style>
		</block>
		<block>
			<style>
				<marginTop value="9px"/>
				<marginBottom value="9px"/>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'CrewSuperAbilityHeader'; {}"/>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<block>
				<style>
					<width value="100%"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderBigWhite"/>
					<bind name="text" value="tr('IDS_SUPERABILITY_ACTIVATION_COST') +  ' ' + '_PriceTag'"/>
				</block>
				<block type="text">
					<style>
						<marginTop value="-3px"/>
					</style>
					<styleClass value="$TextHeaderBigWhite"/>
					<bind name="class" value="'$FontColorUnready'"/>
					<bind name="text" value="tr('IDS_SUPERABILITY_ACTIVE') + ' ' + '_Hours'"/>
				</block>
			</block>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<block type="text">
				<style>
					<maxWidth value="320"/>
				</style>
				<styleClass value="$TextHeaderBigWhite"/>
				<bind name="text" value="'IDS_SKILL_DESC_AIRDEFENCEBARRAGEABILITY'"/>
			</block>
		</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>
			<styleClass value="$InfoBlockIndent"/>
			<bind name="instance" value="'MouseInstruction'; {_type: 'left', _instructionText: 'IDS_SUPERABILITY_ACTIVATE', _maxWidth: 320}"/>
		</block>
	</block>
	<block className="CrewSuperAbilityHeader">
		<style>
			<width value="350px"/>
			<height value="70px"/>
		</style>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<block>
				<style>
					<marginLeft value="10px"/>
					<width value="70px"/>
					<height value="70px"/>
				</style>
				<bind name="instance" value="'CrewSuperAbilityIcon'; {}"/>
			</block>
			<block type="text">
				<style>
					<marginLeft value="8px"/>
					<marginTop value="8px"/>
					<maxWidth value="200"/>
				</style>
				<styleClass value="$TextHeaderBold"/>
				<text value="IDS_SUPERABILITY_WORK_ON_PLAYER"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block type="text">
			<style>
				<position value="absolute"/>
				<right value="8px"/>
				<marginTop value="8px"/>
			</style>
			<styleClass value="$TextDefault"/>
			<text value="PriceTag"/>
		</block>
	</block>
	<block className="CrewSuperAbilityIcon">
		<styleClass value="$MiddleAligned"/>
		<styleClass value="$MiddleVAligned"/>
		<style>
			<width value="60px"/>
			<height value="60px"/>
		</style>
		<bind name="style" value="'backgroundImage'; 'url:../crew_commander/skills/big/icon_perk_SurvivalModifier.png'"/>
		<block type="text">
			<styleClass value="$TextHeader"/>
			<styleClass value="$MiddleAligned"/>
			<bind name="class" value="'$FontColorUnready'"/>
			<style>
				<position value="absolute"/>
				<bottom value="-10px"/>
			</style>
			<text value="06:21:18"/>
		</block>
		<block type="text">
			<styleClass value="$TextDefault"/>
			<style>
				<position value="absolute"/>
				<right value="0px"/>
				<top value="0px"/>
			</style>
			<text value="5"/>
		</block>
	</block>
	<block className="TaskContainerRestriction">
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerRange; 'shipLevelsRange'; shipLevels"/>
		<bind name="primaryEntityDH" value="'campaignTaskEntity'; CC.campaignTaskParams; _taskID"/>
		<bind name="watchDH" value="'battleTypes';[]; campaignTaskEntity.campaignTaskRestrictions.battleTypes"/>
		<bind name="watchDH" value="'shipLevels';[]; campaignTaskEntity.campaignTaskRestrictions.shipLevels"/>
		<bind name="watchDH" value="'shipClasses';[]; campaignTaskEntity.campaignTaskRestrictions.shipClasses"/>
		<bind name="watchDH" value="'shipNations';[]; campaignTaskEntity.campaignTaskRestrictions.shipNations"/>
		<bind name="watchDH" value="'shipIDs';[]; campaignTaskEntity.campaignTaskRestrictions.shipIDs"/>
		<bind name="watchDH" value="'goalEntityId';['']; campaignTaskEntity.campaignTaskParams.goal"/>
		<bind name="entityDH" value="'campaignGoalEntity'; goalEntityId"/>
		<bind name="watchDH" value="'l10nRestriction';[]; campaignGoalEntity.campaignTaskGoal.l10nRestriction"/>
		<style>
			<width value="100%"/>
		</style>
		<block>
			<styleClass value="$HugeMargins"/>
			<block type="text">
				<styleClass value="$TextHeader"/>
				<style>
					<width value="100%"/>
				</style>
				<bind name="text" value="l10nRestriction"/>
			</block>
			<block>
				<style>
					<flow value="htile"/>
					<width value="100%"/>
				</style>
				<block>
					<bind name="visible" value="battleTypes.length != 0"/>
					<styleClass value="$InfoLineBoundaries"/>
					<block>
						<bind name="repeat" value="battleTypes; 'TaskBattleTypeRestriction'; {}"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="shipLevels.length != 0"/>
						<style>
							<height value="25px"/>
							<marginLeft value="3px"/>
							<marginRight value="3px"/>
						</style>
						<block className="VerticalDivider">
							<style>
								<height value="100%"/>
								<width value="3px"/>
							</style>
							<block className="divider_v" type="native">
								<styleClass value="$Fullsize"/>
							</block>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="shipLevels.length != 0"/>
					<bind name="tooltip" value="'ShipListTooltipCampaigns'; {_taskID: _taskID}"/>
					<styleClass value="$InfoLineBoundaries"/>
					<block>
						<style>
							<marginLeft value="6px"/>
							<marginRight value="6px"/>
						</style>
						<bind name="repeat" value="shipLevelsRange; 'TaskShipLevelRestriction'; {}"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<block>
						<bind name="visible" value="shipClasses.length != 0"/>
						<style>
							<height value="25px"/>
							<marginLeft value="3px"/>
							<marginRight value="3px"/>
						</style>
						<block className="VerticalDivider">
							<style>
								<height value="100%"/>
								<width value="3px"/>
							</style>
							<block className="divider_v" type="native">
								<styleClass value="$Fullsize"/>
							</block>
						</block>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="shipClasses.length != 0"/>
					<bind name="tooltip" value="'ShipListTooltipCampaigns'; {_taskID: _taskID}"/>
					<styleClass value="$InfoLineBoundaries"/>
					<block>
						<style>
							<marginLeft value="6px"/>
							<marginRight value="6px"/>
						</style>
						<bind name="repeat" value="shipClasses; 'TaskShipClassRestriction';	{_shipIsPremium: campaignTaskEntity.campaignTaskRestrictions.shipIsPremium,																												
																			_shipIsElite: campaignTaskEntity.campaignTaskRestrictions.shipIsElite}"/>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<bind name="visible" value="shipNations.length != 0"/>
					<styleClass value="$InfoLineBoundaries"/>
					<style>
						<height value="25px"/>
						<marginLeft value="3px"/>
						<marginRight value="9px"/>
					</style>
					<block className="VerticalDivider">
						<style>
							<height value="100%"/>
							<width value="3px"/>
						</style>
						<block className="divider_v" type="native">
							<styleClass value="$Fullsize"/>
						</block>
					</block>
				</block>
				<block>
					<styleClass value="$InfoLineBoundaries"/>
					<bind name="visible" value="shipNations.length != 0"/>
					<bind name="repeat" value="shipNations; 'TaskShipNationRestriction'; {}"/>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
		</block>
	</block>
	<block className="TaskBattleTypeRestriction">
		<block className="icon_battletypes_small" type="native">
			<style>
				<marginRight value="6px"/>
				<width value="25px"/>
				<height value="25px"/>
			</style>
			<bind name="gotoAndStop!" value=" 	($value == 0)	? 'RandomBattle' :
								($value == 1) 	? 'TrainingBattle' :
								($value == 2) 	? 'CooperativeBattle' :
								($value == 3) 	? 'TutorialBattle' :
								($value == 4) 	? 'RankedBattle':
								($value == 5) 	? 'ClubBattle':
								($value == 6) 	? 'PVEBattle'
														: null"/>
		</block>
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 	($value == 0)	? 'IDS_RANDOM_BATTLE' :
													($value == 1) 	? 'IDS_TRAINING_BATTLE' :
													($value == 2) 	? 'IDS_COOPERATIVE_BATTLE' :
													($value == 3) 	? 'IDS_INTRO_MISSION' :
													($value == 4) 	? 'IDS_RANKED_BATTLE':
													($value == 5) 	? 'IDS_CLUB_BATTLE':
													($value == 6) 	? 'IDS_PVE_BATTLE'
																	: null}"/>
	</block>
	<block className="TaskShipLevelRestriction">
		<block type="text">
			<styleClass value="$TextDefault"/>
			<bind name="text" value="ShipLevels.RLEVELS[$value]"/>
		</block>
	</block>
	<block className="TaskShipClassRestriction">
		<style>
			<marginRight value="3px"/>
			<height value="22px"/>
		</style>
		<block className="icon_ship" type="native">
			<styleClass value="$MiddleVAligned"/>
			<bind name="gotoAndStop!" value="_shipIsPremium ?  $value + '_P' : $value"/>
		</block>
		<block className="icon_wreath" type="native">
			<bind name="visible" value="_shipIsPremium || _shipIsElite"/>
			<styleClass value="$MiddleVAligned"/>
			<style>
				<position value="absolute"/>
				<left value="-5px"/>
			</style>
			<bind name="gotoAndStop!" value="_shipIsPremium ?  'premium' : 'elite'"/>
		</block>
	</block>
	<block className="TaskShipNationRestriction">
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_SHIP_NATION_RESTRICTION'}"/>
		<style>
			<marginRight value="3px"/>
		</style>
		<block>
			<bind name="instance" value="'NationFlagsTiny'; {shipCountry: $value}"/>
		</block>
	</block>
	<block className="ShipListTooltipCampaigns">
		<bind name="collectionDH" value="CC.ownShip; 'shipList'; 'campaigns_task_current'"/>
		<bind name="action" value="'Tooltip.selfOpened'; 'updateTaskShipList'; {taskId: _taskID}"/>
		<bind name="instance" value="'ShipListTooltip'; {_shipList: shipList}"/>
	</block>
	<block className="ShipListTooltip">
		<bind name="watch" value="'countShipList'; _shipList.length - 10"/>
		<styleClass value="$DefaultTooltipBehaviour"/>
		<style>
			<width value="250px"/>
		</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 className="hint_panel" type="native">
			<styleClass value="$FullsizeAbsolute"/>
		</block>
		<block>
			<bind name="visible" value="_shipList.length &gt; 0"/>
			<style>
				<width value="100%"/>
			</style>
			<block type="text">
				<styleClass value="$InfoBlockIndent"/>
				<styleClass value="$TextHeaderBigDefaultTech"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<text value="IDS_AVAILABLE_SHIP"/>
			</block>
			<block>
				<bind name="repeat" value="(_shipList.length &gt; 10 ? 10 : _shipList.length); 'ShipItem'; {_shipList: _shipList}"/>
			</block>
			<block type="text">
				<bind name="visible" value="(_shipList.length) &gt; 10"/>
				<style>
					<marginTop value="-2px"/>
				</style>
				<styleClass value="$InfoBlockIndent"/>
				<styleClass value="$TextHeaderBigDefaultTech"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="subst('IDS_AND_OTHER_SHIPS', [], {count: countShipList}, countShipList)}"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="_shipList.length &lt;= 0"/>
			<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>
				<text value="IDS_NO_SUITABLE_SHIPS"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="ShipItem">
		<styleClass value="$InfoBlockIndent"/>
		<bind name="instance" value="'ShipLineItem'; {_shipId: _shipList[$index].ship.id, _width: '185px'}"/>
	</block>
	<css name="$HugeMargins">
		<width value="100%"/>
		<marginTop value="10px"/>
		<marginLeft value="18px"/>
		<marginBottom value="10px"/>
		<marginRight value="18px"/>
	</css>
	<css name="$DockWindowHeaderBlock">
		<marginTop value="60px"/>
	</css>
	<css name="$TabWindowHolder">
		<position value="absolute"/>
		<marginTop value="60px"/>
	</css>
	<css name="$TopMenuItem">
		<marginTop value="6px"/>
		<marginRight value="10px"/>
	</css>
	<css name="$BattleTypeSelectionText">
		<marginLeft value="10px"/>
	</css>
	<css name="$BattleTypeSelected">
		<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="0xEEEEEE"/>
	</css>
	<css name="$BattleTypeUnselected">
		<mouseChildren value="false"/>
		<mouseEnabled value="false"/>
		<fontFamily value="$WWSDefaultFont"/>
		<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="$TextDock">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="0 0 0x000000 0 0 0 0 0"/>
		<selectable value="false"/>
		<textColor value="0x9CBABA"/>
	</css>
	<css name="$TextDockBold">
		<fontFamily value="$WWSDefaultFontBold"/>
		<mouseEnabled value="false"/>
		<mouseChildren value="false"/>
		<fontSize value="17"/>
		<dropShadowFilter value="0 0 0x000000 0 0 0 0 0"/>
		<selectable value="false"/>
		<textColor value="0x9CBABA"/>
	</css>
	<css name="$TextDockNano">
		<fontFamily value="$WWSDefaultFont"/>
		<textColor value="0x758b8b"/>
		<fontSize value="13"/>
		<dropShadowFilter value="0 0 0x000000 0 0 0 0 0"/>
	</css>
	<block className="Dock">
		<styleClass value="$Fullsize"/>
		<bind name="firstEntityDH" value="'dockStateEntity'; CC.dockState"/>
		<bind name="watchDH" value="'dockStateName'; ['dockStateEntity.dockState.evUpdate']; dockStateEntity.dockState.stateName"/>
		<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>
			<bind name="fade" value="dockStateName == 'dock'; 0.4; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; dockStateName == 'dock' ? 0.5 : 0"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'DefaultDock'; {}"/>
		</block>
		<block>
			<bind name="fade" value="dockStateName == 'barge'; 0.4; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1; dockStateName == 'barge' ? 0.5 : 0"/>
			<params>
				<param name="name" value="barge"/>
			</params>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'LootBoxes'; {}"/>
		</block>
		<block>
			<bind name="collectionDH" value="CC.sysMessage; 'informerLogItems'; 'messagesToShow.informerLog'"/>
			<style>
				<bottom value="196px"/>
			</style>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<bind name="scopeHoldRepeat" value="informerLogItems; 'InformerLogNotificationElement'; id"/>
		</block>
		<block>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'InteractiveNotificationTooltipFakeReason'; {}"/>
		</block>
		<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
		<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
		<bind name="instance" value="'LazyRegistrationForcer'; isLazyLogin ? {} : null"/>
	</block>
	<block className="LazyRegistrationForcer">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
		<bind name="watchDH" value="'showDemoWindow'; ['loginEntity.loginData.evUpdate']; loginEntity.loginData.showDemoWindow"/>
		<bind name="watch" value="'forceLazyRegistration'; (showDemoWindow &amp;&amp; (accountLevelInfo.accountLevel &gt;= realmConstants.lazyAccountMaxLevel))"/>
		<bind name="action" value="'addedToStage'; forceLazyRegistration ? 'forceCreateAccount' : null"/>
		<bind name="action" value="'addedToStage'; forceLazyRegistration ? 'demoWindowShown' : null"/>
	</block>
	<block className="InteractiveNotificationTooltipFakeReason">
		<bind name="tooltip" value="'InteractiveNotifications'; {}; TooltipBehaviour.interactiveWindow; null; null; null; true"/>
	</block>
	<block className="ExcursionHintBlock">
		<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="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
		<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
		<bind name="style" value="'bottom'; isSmallCarouselView	?	(carouselRows == 1) ? '233px' :
													(carouselRows == 2) ? '296px'
																		: '170px'
												: '170px'"/>
		<styleClass value="$MiddleAligned"/>
		<style>
			<position value="absolute"/>
		</style>
		<bind name="fade" value="excursionOn; 0.15; {alpha: 0, top: 10}; {alpha: 1, top:0 }; {alpha: 0, top: -10}; 1; 0.15"/>
		<block>
			<bind name="fade" value="excursionOn; 10; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 30"/>
			<block className="icon_mouse_right" type="native">
				<style>
					<marginLeft value="5px"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<style>
					<marginLeft value="3px"/>
					<marginTop value="-3"/>
				</style>
				<text value="IDS_INSTRUCTION_CAMERA_EXCURSION_RESET"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
	</block>
	<block className="DefaultDock">
		<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
		<bind name="watchDH" value="'shipId'; ['dockEntity.shipSelection.evShipUpdate']; dockEntity.shipSelection.currentShipId"/>
		<bind name="watchDH" value="'shipIdForModuleInset'; ['dockEntity.shipSelection.evShipViewUpdate']; dockEntity.shipSelection.currentShipIdForModuleInset"/>
		<bind name="controller" value="lesta.dialogs.dock.controllers.ControllerLobby"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.CollectionController; 'playersInDivision'; 'playersInDivision'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; selectedBattle.type == BattleTypes.TRAINING_BATTLE ? 'serverState' : null"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; selectedBattle.type == BattleTypes.RANKED_BATTLE ? 'rankedBattlesSeason' : null"/>
		<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; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'realmConstants'"/>
		<styleClass value="$Fullsize"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'operationsAccountLocked';	['resourceEntity.accountResource.evOperationsLockChanged'];	resourceEntity.accountResource.operationsLocked"/>
		<bind name="watchDH" value="'accountGold';		['resourceEntity.accountResource.evChangedGold'];		resourceEntity.accountResource.gold"/>
		<bind name="watchDH" value="'accountCredits';	['resourceEntity.accountResource.evChangedCredit'];		resourceEntity.accountResource.credits"/>
		<bind name="watchDH" value="'accountFreeXP';		['resourceEntity.accountResource.evChangedFreeXP'];		resourceEntity.accountResource.freeXP"/>
		<bind name="var" value="{showCoachScreen: false}"/>
		<bind name="collectionDH" value="CC.coach; 'coachCollection'"/>
		<bind name="entityDH" value="'coachEntity'; coachCollection[0].id"/>
		<bind name="watchDH" value="'showCoachScreen'; ['coachEntity.coach.evShow']; coachEntity.coach.show"/>
		<bind name="watchDH" value="'currentCoachHint'; ['coachEntity.coach.evShow']; coachEntity.coach.hint"/>
		<bind name="catch" value="'evHideCoachScreen'; {showCoachScreen: false}"/>
		<bind name="action" value="'evHideCoachScreen'; 'CoachScreenProxyUSS.onCouchScreenClose'; {}"/>
		<block>
			<bind name="transition" value="shipOverview.enabled; shipOverview.enabled ? 0.3 : 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 2; shipOverview.enabled ? 0.85 : 0.3"/>
			<style>
				<position value="absolute"/>
				<left value="36px"/>
				<top value="24px"/>
			</style>
			<block className="wows_logo_pb" type="native">
				<bind name="scaleX" value="0.4"/>
				<bind name="scaleY" value="0.4"/>
				<bind name="gotoAndStop!" value="realmConstants.wowsLogo"/>
			</block>
		</block>
		<block>
			<style>
				<right value="-300"/>
				<position value="absolute"/>
			</style>
			<block className="ArmourTooltipOptimizer">
				<style>
					<width value="300px"/>
				</style>
				<block type="text">
					<styleClass value="$TextHeaderWhiteBold"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="text" value="'0123456789 ' + tr('IDS_ALPHABET')"/>
				</block>
				<block type="text">
					<styleClass value="$TextHeaderWhite"/>
					<style>
						<width value="100%"/>
					</style>
					<bind name="text" value="tr('IDS_ALPHABET') + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
				</block>
			</block>
		</block>
		<block>
			<bind name="var" value="{inPort: true}"/>
			<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="$Fullsize"/>
			<bind name="var" value="{crewInset: 0}"/>
			<bind name="catch" value="'evShowCrewToDock'; {crewInset: 1}"/>
			<bind name="catch" value="'hideCrew'; {crewInset: 0}"/>
			<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
			<bind name="watchDH" value="'inset'; ['dockEntity.insetComponent.evUpdate']; dockEntity.insetComponent.inset"/>
			<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
			<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
			<block>
				<styleClass value="$Fullsize"/>
				<styleClass value="$TabWindowHolder"/>
				<bind name="child" value="inset; {shipId: shipId, shipIdForModuleInset: shipIdForModuleInset, globalInset: inset, subPage: subPage, crewInset: crewInset}; 'PortElement'; 'Profile'; 'ShipResearchInset'; 'ModuleInsetElement'; 'ExteriorInsetElement'; 'ClanInset'"/>
			</block>
			<bind name="watch" value="'showPortSwithcer'; (crewInset == 0) &amp;&amp; ((inset == LobbyConstants.DOCK) || (inset == LobbyConstants.SHIP_MODULES) || (inset == LobbyConstants.SHIP_EXTERIOR)) &amp;&amp; (slimClientData.isFull)"/>
			<block className="button_switch_port" type="native">
				<bind name="fade" value="showPortSwithcer; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 2; 0.15"/>
				<style>
					<left value="12px"/>
					<top value="60px"/>
					<position value="absolute"/>
				</style>
				<params>
					<param name="name" value="buttonSelectPort"/>
				</params>
				<bind name="input"/>
				<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_SELECT_PORT'}"/>
			</block>
			<block className="ShipCarouselContainer">
				<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
				<bind name="watchDH" value="'accountSlotsNum'; ['resourceEntity.accountResource.evChangedSlotsNum']; resourceEntity.accountResource.slotsNum"/>
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
				<bind name="firstEntityDH" value="'dockEntity'; CC.dockDataMarker"/>
				<bind name="watchDH" value="'carouselVisibility'; ['dockEntity.dockData.evUpdate']; dockEntity.dockData.carouselVisibility"/>
				<bind name="fade" value="carouselVisibility; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 1; (true &amp;&amp; dockDefaultValues.carouselVisibility) ? 0.25 : 0"/>
				<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'"/>
				<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
				<bind name="feature" value="'17'; ''"/>
				<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>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<bottom value="36px"/>
					<backgroundColor value="0x01000000"/>
				</style>
				<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="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
				<bind name="catch" value="'carouselViewChanged'; {isSmallCarouselView: !(isSmallCarouselView)}; 'saveCarouselViewState'"/>
				<bind name="action" value="'saveCarouselViewState'; 'setUserPref' ; {value : isSmallCarouselView, name: 'isSmallCarouselView'}"/>
				<bind name="catch" value="'carouselRowsCountChanged'"/>
				<block>
					<style>
						<position value="absolute"/>
						<top value="-30px"/>
					</style>
					<block className="CarouselFilters">
						<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
						<bind name="stageSize"/>
						<bind name="watch" value="'isFourRowsEnabled'; (stageHeight != null) ? (stageHeight &gt; (720 + 160)) : true"/>
						<bind name="watch" value="'isThreeRowsEnabled'; (stageHeight != null) ? (stageHeight &gt; (720 + 88)) : true"/>
						<bind name="watch" value="'curCarouselRows';	(userPrefs.curRowCountIndex == null)															? 0 :
									(userPrefs.curRowCountIndex == 2 &amp;&amp; isFourRowsEnabled)											? 2 :
									((userPrefs.curRowCountIndex == 2 || userPrefs.curRowCountIndex == 1) &amp;&amp; isThreeRowsEnabled)	? 1
																																	: 0"/>
						<!-- <bind name="action" value="'carouselRowsCountChangedByStageHeight'; 'setUserPref' ; {value : curCarouselRows, name: 'curRowCountIndex'}"/> -->
						<bind name="changeDispatch" value="curCarouselRows; 'carouselRowsCountChangedByStageHeight'"/>
						<bind name="feature" value="13;''"/>
						<bind name="action" value="(feature_13 == 'locked') ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_WITH_COMMANDER', value: false }"/>
						<bind name="action" value="(feature_13 == 'locked') ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_WITHOUT_COMMANDER', value: false }"/>
						<bind name="feature" value="16;''"/>
						<bind name="action" value="(feature_16 == 'locked') || (rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_RANKED_BATTLES', value: false }"/>
						<bind name="feature" value="19;''"/>
						<bind name="collectionDH" value="CC.clubsCommon; 'clubsCommonCollection'"/>
						<bind name="entityDH" value="'clubsCommonEntity'; clubsCommonCollection[0].id"/>
						<bind name="watchDH" value="'clubBattlesSeasonId'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.seasonId"/>
						<bind name="watchDH" value="'clubBattlesSeasonStage'; ['clubsCommonEntity.clubsCommon.evRulesChanged']; clubsCommonEntity.clubsCommon.stage"/>
						<bind name="action" value="feature_19 == 'locked' || clubBattlesSeasonId &lt;= 0 || clubBattlesSeasonStage != 2 ? 'addedToStage' : '';  'setFilterValue'; {type: 'special', field: 'IDS_CLUB_BATTLES', value: false }"/>
						<style>
							<marginLeft value="7px"/>
							<height value="30px"/>
							<flow value="horizontal"/>
						</style>
						<block>
							<bind name="name" value="'CarouselFiltersButton'"/>
							<block className="button_carousel_filters" type="native">
								<bind name="tooltip" value="'CarouselFiltersInfotip'; {AppliedFiltersCounter: AppliedFiltersCounter, _isSmallCarouselView: isSmallCarouselView}; TooltipBehaviour.verticalInfotipSwitch; null; 'carouselFiltersInfotipIsVIsible'"/>
								<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CAROUSEL_FILTERS'}], _maxWidth: 240 }"/>
								<bind name="selected" value="carouselFiltersInfotipIsVIsible"/>
							</block>
						</block>
						<bind name="catch" value="'shipNameFIlterInfotipSelectedChanged'"/>
						<bind name="firstEntityDH" value="'panelEntity'; CC.filterPanelComponent"/>
						<bind name="watchDH" value="'selectedFilters'; ['panelEntity.filterPanelComponent.evUpdate']; panelEntity.filterPanelComponent.selectedFilters"/>
						<block>
							<style>
								<height value="32px"/>
								<marginTop value="-4px"/>
								<marginRight value="12px"/>
								<marginLeft value="4px"/>
							</style>
							<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
							<bind name="firstEntityDH" value="'pveStateEntity'; CC.pveState"/>
							<bind name="watchDH" value="'chosenOperationId'; ['pveStateEntity.pveState.evStateUpdated']; pveStateEntity.pveState.chosenOperation"/>
							<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
							<bind name="watch" value="'isPveFilterVisible'; (selectedBattle.type == BattleTypes.PVE_BATTLE) &amp;&amp; chosenOperationId"/>
							<block>
								<bind name="visible" value="(isPveFilterVisible == true)"/>
								<bind name="instance" value="'AppliedPVEFilter'; (isPveFilterVisible == true) ? {} : null"/>
							</block>
							<block>
								<bind name="instance" value="'AppliedFilter'; {_filterType: 'shipName', shipNameFIlterInfotipSelected: shipNameFIlterInfotipSelected}"/>
								<bind name="instance" value="'AppliedFilter'; {_filterType: 'level'}"/>
								<bind name="instance" value="'AppliedFilter'; {_filterType: 'shipType'}"/>
								<bind name="instance" value="'AppliedFilter'; {_filterType: 'nation'}"/>
								<bind name="instance" value="'AppliedFilter'; {_filterType: 'special'}"/>
								<style>
									<flow value="horizontal"/>
								</style>
							</block>
							<bind name="instance" value="'ResetAllFilters'; selectedFilters.length &gt; 1 ? {} : null"/>
							<style>
								<flow value="horizontal"/>
							</style>
						</block>
					</block>
				</block>
				<block>
					<style>
						<width value="100%"/>
					</style>
					<bind name="instance" value="'ShipCarousel'; {	_addShipSlotsBuyBlocks: (feature_17 != 'locked'),
											_shipFilterId: CC.mainShipFilter,
											_scrollToStart: true, 
											isSmallCarouselView: isSmallCarouselView }"/>
				</block>
				<block>
					<bind name="collectionDH" value="CC.ownShip; 'playerShips'"/>
					<bind name="transition" value="rollOver; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: 10}; 0; rollOver ? 0 : 3"/>
					<style>
						<position value="absolute"/>
						<right value="38px"/>
						<top value="-37px"/>
						<flow value="horizontal"/>
					</style>
					<block>
						<style>
							<marginRight value="2px"/>
						</style>
						<block type="text">
							<style>
								<alpha value="0.75"/>
								<right value="0px"/>
								<hitTest value="false"/>
							</style>
							<styleClass value="$TextDefaultWhite"/>
							<bind name="class" value="'$Bold'"/>
							<bind name="text" value="tr('IDS_SHIPS')+tr('IDS_COLON')+ ' ' + playerShips.length"/>
						</block>
						<block type="text">
							<bind name="visible" value="feature_17 != 'locked'"/>
							<style>
								<alpha value="0.75"/>
								<right value="0px"/>
								<marginTop value="-6px"/>
								<hitTest value="false"/>
							</style>
							<styleClass value="$TextDefaultWhite"/>
							<bind name="class" value="'$Bold'"/>
							<bind name="text" value="tr('IDS_FREE_SLOTS') + ' ' + accountSlotsNum"/>
						</block>
					</block>
				</block>
				<block>
					<style>
						<position value="absolute"/>
						<top value="-26px"/>
						<right value="16px"/>
					</style>
					<block className="button_settings_small" type="native">
						<params>
							<param name="name" value="peculiarityFilter"/>
						</params>
						<bind name="tooltip" value="'CarouselFiltersContentInfotip'; {}; TooltipBehaviour.verticalInfotipSwitch"/>
						<bind name="tooltip" value="'MouseInstructionTooltip'; { _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CAROUSEL_FILTERS_SPECIAL'}], _maxWidth: 240 }"/>
					</block>
				</block>
			</block>
			<block className="ExcursionHintBlock">
				<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="'carouselRows'; (userPrefs.curRowCountIndex == null) ? 0 : userPrefs.curRowCountIndex"/>
				<bind name="watch" value="'isSmallCarouselView'; (userPrefs.isSmallCarouselView == null) ? false : userPrefs.isSmallCarouselView"/>
				<bind name="style" value="'bottom'; isSmallCarouselView	?	(carouselRows == 1) ? '233px' :
													(carouselRows == 2) ? '296px'
																		: '170px'
												: '170px'"/>
				<styleClass value="$MiddleAligned"/>
				<style>
					<position value="absolute"/>
				</style>
				<bind name="fade" value="excursionOn; 0.15; {alpha: 0, top: 10}; {alpha: 1, top:0 }; {alpha: 0, top: -10}; 1; 0.15"/>
				<block>
					<bind name="fade" value="excursionOn; 10; {alpha: 1}; {alpha: 0}; {alpha: 1}; 1; 30"/>
					<block className="icon_mouse_right" type="native">
						<style>
							<marginLeft value="5px"/>
						</style>
					</block>
					<block type="text">
						<styleClass value="$TextHeaderBigDefault"/>
						<style>
							<marginLeft value="3px"/>
							<marginTop value="-3"/>
						</style>
						<text value="IDS_INSTRUCTION_CAMERA_EXCURSION_RESET"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="instance" value="'ArmourDisplay'; dockDefaultValues.armourVisibility == true ? {shipId: shipIdForModuleInset} : null "/>
			</block>
			<block>
				<styleClass value="$FullsizeAbsolute"/>
				<bind name="instance" value="'ShipPanel'; { shipId: shipIdForModuleInset, _dockInset: inset, _crewInset: crewInset }"/>
			</block>
			<block>
				<styleClass value="$MiddleAligned"/>
				<style>
					<marginTop value="59px"/>
				</style>
				<block className="tab_bar_bg" type="native">
					<style>
						<height value="29px"/>
					</style>
					<block>
						<style>
							<marginLeft value="2px"/>
							<marginRight value="2px"/>
						</style>
						<block className="MainTab">
							<block className="tab_bar_item" type="native">
								<bind name="name" value="'DockSubMenuItem' + LobbyConstants.DOCK"/>
								<style>
									<width value="143px"/>
									<height value="29px"/>
								</style>
								<bind name="selected" value="inset == LobbyConstants.DOCK &amp;&amp; crewInset != 1"/>
								<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
								<bind name="action" value="'buttonClick'; 'changeInset'; {inset: LobbyConstants.DOCK}"/>
								<bind name="label" value="toUpperCase(tr('IDS_DOCK'))"/>
								<bind name="soundSet" value="'main_tab_' + LobbyConstants.DOCK"/>
							</block>
							<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_DOCK'}"/>
						</block>
						<block className="divider_v" type="native">
							<style>
								<height value="25px"/>
								<marginTop value="2px"/>
							</style>
						</block>
						<block>
							<bind name="feature" value="'17'; 'rollOver'"/>
							<bind name="visible" value="feature_17 != 'locked'"/>
							<params>
								<param name="name" value="moduleTabBlock"/>
							</params>
							<bind name="stageCoord" value="true"/>
							<block className="MainTab">
								<block className="tab_bar_item" type="native">
									<bind name="name" value="'DockSubMenuItem' + LobbyConstants.SHIP_MODULES"/>
									<style>
										<width value="143px"/>
										<height value="29px"/>
									</style>
									<bind name="selected" value="inset == LobbyConstants.SHIP_MODULES &amp;&amp; crewInset != 1"/>
									<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
									<bind name="action" value="'buttonClick'; 'changeInset'; {inset: LobbyConstants.SHIP_MODULES}"/>
									<bind name="label" value="toUpperCase(tr('IDS_MODULES'))"/>
									<bind name="soundSet" value="'main_tab_' + LobbyConstants.SHIP_MODULES"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_MODULES'}"/>
							</block>
							<block>
								<style>
									<position value="absolute"/>
									<marginTop value="3px"/>
								</style>
								<block className="icon_sticker_new" type="native">
									<bind name="fade" value="feature_17 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
									<style>
										<hitTest value="false"/>
									</style>
								</block>
							</block>
						</block>
						<block>
							<style>
								<height value="100%"/>
							</style>
							<bind name="visible" value="feature_17 != 'locked'"/>
							<block className="divider_v" type="native">
								<style>
									<width value="3px"/>
									<height value="25px"/>
									<marginTop value="2px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="feature" value="'14'; 'rollOver'"/>
							<bind name="feature" value="'15'; ''"/>
							<bind name="feature" value="'16'; ''"/>
							<bind name="stageCoord" value="true"/>
							<params>
								<param name="name" value="signalsTabBlock"/>
							</params>
							<bind name="visible" value="feature_14 != 'locked' || feature_15 != 'locked' || feature_16 != 'locked'"/>
							<style>
								<height value="100%"/>
							</style>
							<block className="MainTab">
								<block className="tab_bar_item" type="native">
									<bind name="name" value="'DockSubMenuItem' + LobbyConstants.SHIP_EXTERIOR"/>
									<style>
										<width value="143px"/>
										<height value="29px"/>
									</style>
									<bind name="selected" value="inset == LobbyConstants.SHIP_EXTERIOR &amp;&amp; crewInset != 1"/>
									<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
									<bind name="action" value="'buttonClick'; 'changeInset'; {inset: LobbyConstants.SHIP_EXTERIOR}"/>
									<bind name="label" value="toUpperCase(tr('IDS_EXTERIOR'))"/>
									<bind name="soundSet" value="'main_tab_' + LobbyConstants.SHIP_EXTERIOR"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_EXTERIOR'}"/>
							</block>
							<block>
								<style>
									<position value="absolute"/>
									<marginTop value="3px"/>
								</style>
								<block className="icon_sticker_new" type="native">
									<bind name="fade" value="feature_14 == 'new' || feature_15 == 'new' || feature_16 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
									<style>
										<hitTest value="false"/>
									</style>
								</block>
							</block>
						</block>
						<block>
							<style>
								<height value="100%"/>
							</style>
							<bind name="visible" value="feature_14 != 'locked'"/>
							<block className="divider_v" type="native">
								<style>
									<width value="3px"/>
									<height value="25px"/>
									<marginTop value="2px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="feature" value="'17'; 'rollOver'"/>
							<bind name="visible" value="feature_17 != 'locked'"/>
							<block className="MainTab">
								<block className="tab_bar_item" type="native">
									<bind name="name" value="'DockSubMenuItem' + LobbyConstants.SHIP_RESEARCH_TREE"/>
									<style>
										<width value="143px"/>
										<height value="29px"/>
									</style>
									<bind name="selected" value="inset == LobbyConstants.SHIP_RESEARCH_TREE &amp;&amp; crewInset != 1"/>
									<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
									<bind name="action" value="'buttonClick'; 'changeInset'; {inset: LobbyConstants.SHIP_RESEARCH_TREE}"/>
									<bind name="label" value="toUpperCase(tr('IDS_RESEARCH'))"/>
									<bind name="soundSet" value="'main_tab_' + LobbyConstants.SHIP_RESEARCH_TREE"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_RESEARCH'}"/>
							</block>
							<block>
								<style>
									<position value="absolute"/>
									<marginTop value="3px"/>
								</style>
								<block className="icon_sticker_new" type="native">
									<bind name="fade" value="feature_17 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
									<style>
										<hitTest value="false"/>
									</style>
								</block>
							</block>
						</block>
						<block>
							<style>
								<height value="100%"/>
							</style>
							<bind name="visible" value="feature_17 != 'locked'"/>
							<block className="divider_v" type="native">
								<style>
									<width value="3px"/>
									<height value="25px"/>
									<marginTop value="2px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="collectionDH" value="CC.collectionCard; 'haveNewCard'; 'newCards'"/>
							<block className="MainTab">
								<block className="tab_bar_item" type="native">
									<bind name="name" value="'DockSubMenuItem' + LobbyConstants.PLAYER_PROFILE"/>
									<style>
										<width value="143px"/>
										<height value="29px"/>
									</style>
									<bind name="selected" value="inset == LobbyConstants.PLAYER_PROFILE &amp;&amp; crewInset != 1"/>
									<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
									<bind name="action" value="'buttonClick'; 'changeInset'; {inset: LobbyConstants.PLAYER_PROFILE}"/>
									<bind name="label" value="toUpperCase(tr('IDS_PROFILE'))"/>
									<bind name="soundSet" value="'main_tab_' + LobbyConstants.PLAYER_PROFILE"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_PROFILE'}"/>
							</block>
							<block>
								<style>
									<position value="absolute"/>
									<marginTop value="3px"/>
								</style>
								<block className="icon_sticker_new" type="native">
									<bind name="fade" value="(feature_17 == 'new') || (haveNewCard.length &gt; 0); 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
									<style>
										<hitTest value="false"/>
									</style>
								</block>
							</block>
						</block>
						<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
						<bind name="watchDH" value="'selfPlayerDbId'; []; selfPlayerEntity.accountSimple.dbId"/>
						<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"/>
						<block>
							<style>
								<height value="100%"/>
							</style>
							<bind name="visible" value="!!(clanInfo)"/>
							<block className="divider_v" type="native">
								<style>
									<width value="3px"/>
									<height value="25px"/>
									<marginTop value="2px"/>
								</style>
							</block>
						</block>
						<block>
							<bind name="visible" value="!!(selfPlayerEntity.clanman)"/>
							<block className="MainTab">
								<block className="tab_bar_item" type="native">
									<bind name="name" value="'DockSubMenuItem' + LobbyConstants.CLAN"/>
									<style>
										<width value="143px"/>
										<height value="29px"/>
									</style>
									<bind name="selected" value="inset == LobbyConstants.CLAN &amp;&amp; crewInset != 1"/>
									<bind name="dispatch" value="'buttonClick'; 'hideCrew'"/>
									<bind name="action" value="'buttonClick'; 'changeInset'; {inset: LobbyConstants.CLAN}"/>
									<bind name="label" value="'['+clanTag+']'"/>
									<bind name="soundSet" value="'main_tab_' + LobbyConstants.CLAN"/>
								</block>
								<bind name="tooltip" value="'SimpleTooltip';{tooltipText: 'IDS_TOOLTIP_TAB_CLAN'}"/>
							</block>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
				</block>
			</block>
			<block>
				<bind name="visible" value="inset == LobbyConstants.CLAN"/>
				<style>
					<backgroundColor value="0xFF4783a5"/>
					<position value="absolute"/>
					<width value="100%"/>
					<height value="60px"/>
					<hitTest value="false"/>
				</style>
			</block>
			<block>
				<style>
					<position value="absolute"/>
					<width value="100%"/>
					<height value="60px"/>
					<mouseEnabled value="false"/>
				</style>
				<block>
					<styleClass value="$MiddleAlignedAbsolutely"/>
					<style>
						<hitTest value="false"/>
					</style>
					<block>
						<style>
							<backgroundImage value="symbol:dock_menu_bg_tile"/>
							<backgroundRepeatX value="true"/>
							<width value="2200px"/>
							<height value="158px"/>
							<alpha value="0.8"/>
						</style>
					</block>
					<block className="dock_menu_bg_clip" type="native">
						<style>
							<alpha value="0.8"/>
						</style>
					</block>
					<block>
						<style>
							<backgroundImage value="symbol:dock_menu_bg_tile"/>
							<backgroundRepeatX value="true"/>
							<width value="2200px"/>
							<height value="158px"/>
							<alpha value="0.8"/>
						</style>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<style>
						<marginLeft value="10px"/>
						<marginRight value="73px"/>
						<width value="50%"/>
					</style>
					<block className="button_settings" type="native">
						<styleClass value="$TopMenuItem"/>
						<params>
							<param name="name" value="ButtonSettings"/>
						</params>
						<bind name="event" value="'click'; onButtonMenuClick"/>
						<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_MENU'}"/>
					</block>
					<block>
						<bind name="collectionDH" value="CC.userTask; 'userTaskCollection'"/>
						<bind name="entityDH" value="'userTaskEntity'; userTaskCollection[0].id"/>
						<bind name="watchDH" value="'currentUserTaskFlag'; ['userTaskEntity.userTask.evFlagChanged']; userTaskEntity.userTask.flag"/>
						<block>
							<style>
								<marginLeft value="-3px"/>
								<marginTop value="6px"/>
							</style>
							<bind name="instance" value="'ButtonAccount'; {}"/>
						</block>
						<bind name="feature" value="23; ''"/>
						<bind name="watch" value="'showSticker'; ((currentUserTaskFlag &amp; UserTasksFlags.CONTROL_SEEN_PLAYTOGETHER) == 0 &amp;&amp; accountLevelInfo.accountLevel &gt;= 3 &amp;&amp; !(isLazyLogin)) ||
											feature_23 == 'new'"/>
						<block className="icon_sticker_new" type="native">
							<bind name="fade" value="showSticker; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
							<style>
								<hitTest value="false"/>
								<position value="absolute"/>
								<bottom value="-3px"/>
							</style>
						</block>
					</block>
					<block>
						<style>
							<marginLeft value="7px"/>
						</style>
						<block className="ServerName">
							<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: serverName, tooltipSubText: 'IDS_TOOLTIP_SERVER_NAME'}"/>
							<styleClass value="$TopMenuItem"/>
							<block type="text">
								<style>
									<width value="86px"/>
									<multiline value="false"/>
								</style>
								<styleClass value="$TextDock"/>
								<bind name="name" value="'serverName'"/>
								<bind name="text" value="serverName"/>
							</block>
							<block type="text">
								<styleClass value="$TextDockNano"/>
								<style>
									<marginTop value="-8px"/>
								</style>
								<text value="IDS_SERVER_NAME"/>
							</block>
						</block>
					</block>
					<block>
						<bind name="visible" value="realmConstants.showPlayersCountOnServer"/>
						<style>
							<marginLeft value="-3px"/>
						</style>
						<block className="PlayersNumber">
							<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_PLAYERS_COUNT'}"/>
							<styleClass value="$TopMenuItem"/>
							<block type="text">
								<styleClass value="$TextDock"/>
								<bind name="name" value="'numPlayers'"/>
								<bind name="text" value="format(numPlayers, -1)"/>
							</block>
							<block type="text">
								<styleClass value="$TextDockNano"/>
								<style>
									<marginTop value="-8px"/>
								</style>
								<bind name="pluralText" value="'IDS_PL_PLAYERS_COUNT'; numPlayers"/>
							</block>
						</block>
					</block>
					<block>
						<style>
							<right value="11px"/>
							<top value="5px"/>
							<position value="absolute"/>
						</style>
						<bind name="instance" value="'ButtonDivision'; {}"/>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<block>
					<styleClass value="$MiddleAlignedAbsolutely"/>
					<style>
						<marginTop value="4px"/>
					</style>
					<bind name="instance" value="'StartBattleButtonBig'; (!(divisionData.divisionExist) || divisionData.isCommander) ? {} : false"/>
					<bind name="instance" value="'BigReadyForFormationBattleButton'; divisionData.divisionExist &amp;&amp; !(divisionData.isCommander) ? {} : null"/>
				</block>
				<block>
					<style>
						<marginLeft value="73px"/>
						<width value="50%"/>
					</style>
					<block>
						<style>
							<width value="100%"/>
							<marginLeft value="9px"/>
							<marginTop value="12px"/>
						</style>
						<bind name="instance" value="'BattleTypeChooser'; {_fromDock: true}"/>
					</block>
					<block>
						<style>
							<marginTop value="7px"/>
						</style>
						<block>
							<styleClass value="$TopMenuItem"/>
							<bind name="name" value="'buttonBuyGold'"/>
							<bind name="watchDH" value="'isSyncedWithWallet'; ['resourceEntity.accountResource.evChangedIsSyncedWithWallet']; resourceEntity.accountResource.isSyncedWithWallet"/>
							<bind name="watchDH" value="'walletAvailable'; ['resourceEntity.accountResource.evChangedWalletStatus']; resourceEntity.accountResource.walletStatus"/>
							<bind name="watchDH" value="'splitGold'; ['resourceEntity.accountResource.evUpdateSplitCurrency']; resourceEntity.accountResource.splitGold"/>
							<bind name="watch" value="'showWGWalletWarning'; (!(isLazyLogin) &amp;&amp; ((isSyncedWithWallet == false) || (walletAvailable == false)))"/>
							<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
							<bind name="watchDH" value="'isSteamClient'; ['loginEntity.loginData.evUpdate']; loginEntity.loginData.isSteam"/>
							<block>
								<style>
									<backgroundColor value="0x01000000"/>
								</style>
								<bind name="style" value="'alpha'; showWGWalletWarning ? 0.5 : 1"/>
								<bind name="action" value="'click';	isSteamClient == true 	? null :
												isLazyLogin				? 'forceCreateAccount' : 'gotoUrlByIdent'; {ident: URL.BUY_GOLD}"/>
								<bind name="request" value="'click'; isSteamClient == true ? 'webBrowser' : null; {url: URL.BUY_GOLD_IN_GAME}"/>
								<bind name="tooltip" value="'DockResourcesWidgetTooltip';	isLazyLogin	?	{	_currency: 'gold', _showSplitCurrency: splitGold,
																						_multiParagraphArray: [{_paragraphText: 'IDS_GOLD_PURCHACE_NOT_AVAILABLE_FOR_LAZY_TOOLTIP'}],
																						_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_REGISTER_ACCOUNT_MOUSE_INSTRUCTION'}],  _maxWidth: 250 }
																				:	{	_currency: 'gold', _showSplitCurrency: splitGold,
																						_mouseInstructions: [{_type: 'left', _instructionText: tr('IDS_BUY_GOLD_LC') + '. ' + tr('IDS_HINT_REDIRECT_TO_STORE') }], _maxWidth: 250 }"/>
								<bind name="instance" value="'DockResourcesWidget'; {_name: 'goldBalance', _rQuantity: accountGold, _currency: 'gold', _label: 'IDS_GOLD'} "/>
							</block>
							<block>
								<styleClass value="$FullsizeAbsolute"/>
								<bind name="instance" value="'WGWalletServiceStatus'; showWGWalletWarning ? {_walletAvailable: walletAvailable, _isSyncedWithWallet: isSyncedWithWallet } : null"/>
							</block>
						</block>
						<block>
							<styleClass value="$TopMenuItem"/>
							<bind name="name" value="'buttonExchangeGold'"/>
							<bind name="watchDH" value="'splitCredits'; ['resourceEntity.accountResource.evUpdateSplitCurrency']; resourceEntity.accountResource.splitCredits"/>
							<bind name="watchDH" value="'externalCredits'; ['resourceEntity.accountResource.evUpdateSplitCurrency']; resourceEntity.accountResource.externalCredits"/>
							<block>
								<style>
									<backgroundColor value="0x01000000"/>
								</style>
								<bind name="style" value="'alpha'; externalCredits &amp;&amp; showWGWalletWarning ? 0.5 : 1"/>
								<bind name="action" value="'click'; isLazyLogin ? 'forceCreateAccount' : 'creditsGoldWindow'"/>
								<bind name="instance" value="'DockResourcesWidget'; {_name: 'creditBalance', _rQuantity: accountCredits, _currency: 'credits', _label: 'IDS_CONVERT_CREDITS'} "/>
								<bind name="tooltip" value="'DockResourcesWidgetTooltip'; isLazyLogin	?	{	_currency: 'credits', _showSplitCurrency: splitCredits,
																						_multiParagraphArray: [{_paragraphText: 'IDS_GOLD_CONVERTION_NOT_AVAILABLE_FOR_LAZY_TOOLTIP'}],
																						_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_REGISTER_ACCOUNT_MOUSE_INSTRUCTION'}],  _maxWidth: 250 }
																				:	{	_currency: 'credits', _showSplitCurrency: splitCredits,
																						_mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CREDIT_BALANCE'}], _maxWidth: 250 }"/>
							</block>
							<block>
								<styleClass value="$FullsizeAbsolute"/>
								<bind name="instance" value="'WGWalletServiceStatus'; externalCredits &amp;&amp; showWGWalletWarning ? {_walletAvailable: walletAvailable, _isSyncedWithWallet: isSyncedWithWallet } : null"/>
							</block>
						</block>
						<block>
							<styleClass value="$TopMenuItem"/>
							<bind name="name" value="'buttonConvertExp'"/>
							<bind name="action" value="'click'; isLazyLogin ? 'forceCreateAccount' : 'xpFreeExpWindow'"/>
							<bind name="feature" value="5; 'rollOver'"/>
							<bind name="visible" value="feature_5 != 'locked'"/>
							<block>
								<bind name="instance" value="'DockResourcesWidget'; {_name: 'freeExpBalance', _rQuantity: accountFreeXP, _currency: 'freexp', _label: 'IDS_CONVERT_FREE_EXPERIENCE'} "/>
							</block>
							<block>
								<style>
									<position value="absolute"/>
									<marginTop value="-3px"/>
									<hitTest value="false"/>
								</style>
								<bind name="fade" value="feature_5 == 'new'; 0.15; {alpha: 0, top: 10}; {alpha: 1, top: 0}; {alpha: 0, top: -10}; 2"/>
								<block className="icon_sticker_new" type="native">
									<style>
										<hitTest value="false"/>
									</style>
								</block>
							</block>
							<bind name="tooltip" value="'DockResourcesWidgetTooltip'; isLazyLogin	?	{ _multiParagraphArray: [{_paragraphText: 'IDS_EXP_CONVERTION_NOT_AVAILABLE_FOR_LAZY_TOOLTIP'}],
																					  _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_REGISTER_ACCOUNT_MOUSE_INSTRUCTION'}],  _maxWidth: 250 }
																			:	{ _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_TOOLTIP_CONVERT_EXP'}], _maxWidth: 250 }"/>
						</block>
						<style>
							<flow value="horizontal"/>
						</style>
					</block>
					<style>
						<flow value="horizontal"/>
					</style>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</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>
		</block>
		<bind name="catch" value="'stageCoordChanged'"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="fade" value="showCoachScreen; 0.15; {alpha: 0}; {alpha: 1}; {alpha: 0}; 1"/>
			<bind name="childParentScope" value="currentCoachHint; {};	'CoachScreenBattleType'; 
														'CoachScreenResearch';
														'CoachScreenCrew';
														'CoachScreenModernizations';
														'CoachScreenSignals';
														'CoachScreenCamo';
														'CoachScreenFlags'"/>
		</block>
	</block>
	<block className="ButtonAccount">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'dockDefaultValues'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'accountLevelInfo'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesStats'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'rankedBattlesSeason'"/>
		<bind name="firstEntityDH" value="'loginEntity'; CC.loginData"/>
		<bind name="watchDH" value="'isLazyLogin'; ['loginEntity.loginData.evUpdate']; (loginEntity.loginData.currentLoginType == 'DEMO')"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'isPremiumAccount';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.isPremium"/>
		<bind name="watchDH" value="'premiumAccountTimeStr';	['resourceEntity.accountResource.evChangedPrem'];	resourceEntity.accountResource.premiumTimeStr"/>
		<bind name="watchDH" value="'isSyncedWithWallet'; ['resourceEntity.accountResource.evChangedIsSyncedWithWallet']; resourceEntity.accountResource.isSyncedWithWallet"/>
		<bind name="watchDH" value="'walletAvailable'; ['resourceEntity.accountResource.evChangedWalletStatus']; resourceEntity.accountResource.walletStatus"/>
		<bind name="watch" value="'showWGWalletWarning'; (!(isLazyLogin) &amp;&amp; ((isSyncedWithWallet == false) || (walletAvailable == false)))"/>
		<style>
			<height value="40px"/>
		</style>
		<block className="button_dock" type="native">
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<bind name="selected" value="accountInfotipIsVisible"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="action" value="'click'; isLazyLogin ? 'forceCreateAccount' : null"/>
			<bind name="tooltip" value="'AccountInfotip'; isLazyLogin ? null : {}; 9; null; 'accountInfotipIsVisible'"/>
			<bind name="tooltip" value="'MouseInstructionTooltip'; 	isLazyLogin			?	{ _multiParagraphArray: [{_paragraphText: 'IDS_REGISTER_ACCOUNT_TOOLTIP'}], _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_REGISTER_ACCOUNT_MOUSE_INSTRUCTION'}],  _maxWidth: 250 }
																		:	{ _multiParagraphArray: [{_paragraphText: 'IDS_TOOLTIP_ACCOUNT_TYPE'}], _mouseInstructions: [{_type: 'left', _instructionText: 'IDS_CHOOSE_ACCOUNT_ACTION'}], _maxWidth: 250 }"/>
		</block>
		<block>
			<bind name="style" value="'alpha'; showWGWalletWarning ? 0.5 : 1"/>
			<style>
				<height value="100%"/>
				<hitTest value="false"/>
			</style>
			<block type="text">
				<bind name="visible" value="(!(rankedBattlesStats.participated) &amp;&amp; !(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)) || (rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)"/>
				<style>
					<marginLeft value="3px"/>
					<marginTop value="8px"/>
				</style>
				<styleClass value="$TextDefault"/>
				<bind name="class" value="'$FontColorBlueish'"/>
				<bind name="text" value="accountLevelInfo.accountLevel"/>
				<bind name="name" value="'playerLevel_button_account'"/>
			</block>
			<block>
				<style>
					<marginLeft value="3px"/>
					<height value="100%"/>
				</style>
				<bind name="visible" value="rankedBattlesStats.participated &amp;&amp; !(rankedBattlesSeason.denyReason &amp; RBDeny.NO_SEASON)"/>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'IconRankSmall'; {_rankId: rankedBattlesStats.rank}"/>
				</block>
			</block>
			<block>
				<style>
					<marginLeft value="2px"/>
				</style>
				<block type="text">
					<styleClass value="$TextDockBold"/>
					<style>
						<maxWidth value="130"/>
						<multiline value="false"/>
					</style>
					<bind name="text" value="accountLevelInfo.playerName"/>
					<bind name="class" value="isPremiumAccount ? '$FontColorGold' : '$None'"/>
					<bind name="class" value="accountLevelInfo.abuseStatus == AbuseStatus.CONFIRMED ? '$FontColorCompareNegative' : accountLevelInfo.abuseStatus == AbuseStatus.SUSPECT ? '$FontColorTeamkiller' : '$None'"/>
					<bind name="name" value="'playerName_button_account'"/>
				</block>
				<block type="text">
					<styleClass value="$TextDockNano"/>
					<style>
						<marginTop value="-8px"/>
					</style>
					<bind name="text" value="tr(isPremiumAccount ? 'IDS_ACCOUNT_PREMIUM' : 'IDS_ACCOUNT_DEFAULT')+
							' ' + (isPremiumAccount ? premiumAccountTimeStr : '')"/>
					<bind name="class" value="isPremiumAccount ? '$FontColorGold' : '$FontColorStrongBlueish'"/>
					<bind name="name" value="'label_button_account'"/>
				</block>
				<block>
					<style>
						<marginTop value="-8px"/>
					</style>
					<block type="text">
						<styleClass value="$TextDockNano"/>
						<bind name="text" value="format(dockDefaultValues.karma, -1)"/>
						<bind name="name" value="'karma_account_progress_item'"/>
					</block>
				</block>
			</block>
			<block className="icon_navigate" type="native">
				<bind name="visible" value="isLazyLogin ? false : true"/>
				<bind name="gotoAndStop!" value="'down'"/>
				<style>
					<top value="11px"/>
					<marginLeft value="4px"/>
					<marginRight value="4px"/>
					<marginLeft value="4px"/>
				</style>
			</block>
			<block>
				<bind name="visible" value="(isLazyLogin == true)"/>
				<style>
					<width value="30px"/>
					<height value="30px"/>
					<marginLeft value="4px"/>
					<marginRight value="4px"/>
					<marginTop value="3px"/>
				</style>
				<bind name="style" value="'backgroundImage'; 'url:../service_kit/icons/icon_lazy_account.png'"/>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<style>
				<hitTest value="false"/>
			</style>
			<bind name="instance" value="'WGWalletServiceStatus'; showWGWalletWarning ? {_walletAvailable: walletAvailable, _isSyncedWithWallet: isSyncedWithWallet } : null"/>
		</block>
	</block>
	<block className="ButtonDivision">
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'divisionEntranceData'"/>
		<bind name="controller" value="lesta.dialogs.controllers.EntitySingletonController; 'slimClientData'"/>
		<bind name="visible" value="(slimClientData.isFull)"/>
		<bind name="firstEntityDH" value="'enterBattleEntity'; CC.enterBattle"/>
		<bind name="watchDH" value="'selectedBattle'; ['enterBattleEntity.enterBattle.evBattleTypesUpdated']; enterBattleEntity.enterBattle.selectedBattle"/>
		<bind name="primaryEntityDH" value="'battleTypeEntity'; CC.battleType; selectedBattle.type"/>
		<bind name="firstEntityDH" value="'selfPlayerEntity'; CC.accountSelf"/>
		<bind name="watchDH" value="'isSelfPlayerCommander'; ['selfPlayerEntity.preBattlePlayerSimple.evIsCommanderChanged']; selfPlayerEntity.preBattlePlayerSimple.isCommander"/>
		<bind name="collectionDH" value="CC.preBattlePlayerSimple; 'preBattlePlayers'; 'preBattleMembers'"/>
		<bind name="collectionDH" value="CC.playerInvitedToPrebattleInfo; 'preBattleInvitedPlayers'"/>
		<bind name="watch" value="'isInPrebattle'; (selfPlayerEntity.preBattlePlayerSimple != null)"/>
		<bind name="watch" value="'curPlayersInFormation'; (preBattlePlayers.length + preBattleInvitedPlayers.length)"/>
		<bind name="watch" value="'maxPlayersInFormation'; battleTypeEntity.shipRestriction.totalShips"/>
		<bind name="watch" value="'preBattleTypeStr'; 	(selectedBattle.type == BattleTypes.CLUB_BATTLE)	? 'party'
																							: 'division'"/>
		<bind name="watch" value="'isFormationsEnabled'; true"/>
		<bind name="watch" value="'isInvitationsEnabled';	!(isInPrebattle) ||
											(isSelfPlayerCommander &amp;&amp; (maxPlayersInFormation &gt; curPlayersInFormation))"/>
		<style>
			<height value="43px"/>
			<flow value="horizontal"/>
		</style>
		<bind name="style" value="'alpha'; isFormationsEnabled ? 1 : 0.5"/>
		<bind name="tooltip" value="'ButtonDivisionTooltip'; {_battleType: selectedBattle.type, _isFormationsEnabled: isFormationsEnabled}"/>
		<block className="button_dock" type="native">
			<bind name="name" value="'createDivision'"/>
			<bind name="tooltip" value="'ResizableFormationWidget'; {_isFromDockFormationBtn: true}; TooltipBehaviour.verticalInfotipSwitch; null; 'divisionEntranceInfotipIsVisible'"/>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="enabled" value="(isFormationsEnabled &amp;&amp; isInvitationsEnabled)"/>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<bind name="selected" value="divisionEntranceInfotipIsVisible"/>
		</block>
		<block>
			<bind name="visible" value="isFormationsEnabled &amp;&amp; (isSelfPlayerCommander || !(isInPrebattle))"/>
			<style>
				<marginTop value="12px"/>
				<marginLeft value="4px"/>
				<hitTest value="false"/>
			</style>
			<block className="icon_navigate" type="native">
				<bind name="gotoAndStop!" value="'down'"/>
			</block>
		</block>
		<block>
			<styleClass value="$MiddleVAligned"/>
			<block type="text">
				<bind name="visible" value="!(isInPrebattle)"/>
				<style>
					<marginLeft value="4px"/>
					<marginTop value="-8px"/>
					<marginRight value="4px"/>
					<hitTest value="false"/>
					<textAlign value="center"/>
					<leading value="-6"/>
				</style>
				<styleClass value="$TextDock"/>
				<bind name="class" value="divisionEntranceData.seekerStatus	? '$FontColorTurquoise'
															: '$FontColorBlueish'"/>
				<bind name="text" value="(	(selectedBattle.type == BattleTypes.CLUB_BATTLE)	? 'IDS_CREATE_PARTY' :
							divisionEntranceData.seekerStatus					? 'IDS_WANT_IN_DIVISION'
																				: 'IDS_CREATE_DIVISION')"/>
			</block>
		</block>
		<block>
			<bind name="visible" value="(isInPrebattle == true)"/>
			<style>
				<marginLeft value="6px"/>
				<hitTest value="false"/>
				<marginTop value="8px"/>
			</style>
			<block>
				<bind name="collectionRepeatDH" value="CC.preBattlePlayerSimple; 'DHFormationPlayerIcon'; 'preBattleMembers.sorted'; {}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<bind name="repeat" value="preBattleInvitedPlayers.length; 'FormationPlayerIcon'; {_isEmptySlot: true, _formationType: preBattleTypeStr}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block>
				<style>
					<alpha value="0.5"/>
				</style>
				<bind name="repeat" value="isSelfPlayerCommander &amp;&amp; (maxPlayersInFormation &gt;= curPlayersInFormation) ? maxPlayersInFormation - curPlayersInFormation : 0; 'FormationPlayerIcon'; {_isEmptySlot: true, _formationType: preBattleTypeStr}"/>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<style>
				<flow value="horizontal"/>
			</style>
		</block>
		<block className="icon_formation" type="native">
			<style>
				<marginRight value="2px"/>
				<hitTest value="false"/>
				<marginTop value="2px"/>
			</style>
			<bind name="style" value="'alpha'; isFormationsEnabled ? 1 : 0.8"/>
			<bind name="gotoAndStop!" value="divisionEntranceData.seekerStatus	? ('seeker_' + preBattleTypeStr) :
							isSelfPlayerCommander				? ('commander_' + preBattleTypeStr)
																: ('not_commander_' + preBattleTypeStr)"/>
		</block>
	</block>
	<block className="ServerName">
		<bind name="tooltip" value="'SubTextTooltip'; {tooltipText: serverName, tooltipSubText: 'IDS_TOOLTIP_SERVER_NAME'}"/>
		<styleClass value="$TopMenuItem"/>
		<block type="text">
			<style>
				<width value="86px"/>
				<multiline value="false"/>
			</style>
			<styleClass value="$TextDock"/>
			<bind name="name" value="'serverName'"/>
			<bind name="text" value="serverName"/>
		</block>
		<block type="text">
			<styleClass value="$TextDockNano"/>
			<style>
				<marginTop value="-8px"/>
			</style>
			<text value="IDS_SERVER_NAME"/>
		</block>
	</block>
	<block className="PlayersNumber">
		<bind name="tooltip" value="'SimpleTooltip'; {tooltipText: 'IDS_TOOLTIP_PLAYERS_COUNT'}"/>
		<styleClass value="$TopMenuItem"/>
		<block type="text">
			<styleClass value="$TextDock"/>
			<bind name="name" value="'numPlayers'"/>
			<bind name="text" value="format(numPlayers, -1)"/>
		</block>
		<block type="text">
			<styleClass value="$TextDockNano"/>
			<style>
				<marginTop value="-8px"/>
			</style>
			<bind name="pluralText" value="'IDS_PL_PLAYERS_COUNT'; numPlayers"/>
		</block>
	</block>
	<block className="AccountInfotipItem">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<style>
			<width value="240px"/>
			<height value="46px"/>
		</style>
		<block className="dock_submenu_item" type="native">
			<style>
				<width value="100%"/>
				<height value="100%"/>
			</style>
			<params>
				<param name="soundSet" value="dropmenu_button"/>
			</params>
			<block>
				<styleClass value="$MiddleVAligned"/>
				<style>
					<width value="100%"/>
					<mouseEnabled value="false"/>
					<mouseChildren value="false"/>
				</style>
				<block>
					<style>
						<width value="70px"/>
						<marginTop value="-9px"/>
					</style>
					<block className="icons_account_renderer" type="native">
						<bind name="gotoAndStop!" value="_icon"/>
						<styleClass value="$MiddleAligned"/>
						<style>
							<position value="absolute"/>
						</style>
					</block>
				</block>
				<block type="text">
					<bind name="transition" value="rollOver &amp;&amp; !mouseDown; 0.15; {alpha: 0.6}; {alpha: 1}; {alpha: 0.6}; 2"/>
					<style>
						<width value="144px"/>
					</style>
					<styleClass value="$MiddleVAligned"/>
					<styleClass value="$TextDefaultBold"/>
					<bind name="class" value="'$FontColorDefaultButtonUp'"/>
					<bind name="text" value="_text"/>
				</block>
				<block>
					<bind name="visible" value="_external"/>
					<styleClass value="$MiddleVAligned"/>
					<block className="icon_out_grey" type="native">
						<bind name="enabled" value="_enabled"/>
					</block>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block className="divider_h" type="native">
			<style>
				<width value="100%"/>
				<height value="3px"/>
			</style>
		</block>
	</block>
	<block className="DockResourcesWidget">
		<bind name="controller" value="lesta.unbound.controls.UbInteractiveController"/>
		<style>
			<backgroundColor value="0x01000000"/>
		</style>
		<block>
			<style>
				<right value="0"/>
			</style>
			<bind name="transition" value="rollOver &amp;&amp; !(mouseDown); 0.15; {alpha: 0.85}; {alpha: 1.0}"/>
			<bind name="instance" value="'PriceTag'; { priceInfo: {finalPrice: _rQuantity, currency: _currency}, _medium:true, _name: _name}"/>
		</block>
		<block type="text">
			<style>
				<marginTop value="-8px"/>
				<right value="0"/>
			</style>
			<styleClass value="$TextDockNano"/>
			<bind name="class" value="rollOver &amp;&amp; !(mouseDown) ? '$FontColorDefault' : '$None'"/>
			<bind name="text" value="_label"/>
		</block>
	</block>
	<block className="DockResourcesWidgetTooltip">
		<styleClass value="$DefaultTooltipBehaviour"/>
		<bind name="firstEntityDH" value="'resourceEntity'; CC.accountResource"/>
		<bind name="watchDH" value="'accountGoldLooted';		['resourceEntity.accountResource.evChangedSplitGold'];	resourceEntity.accountResource.goldLooted"/>
		<bind name="watchDH" value="'accountGoldPurchased';	['resourceEntity.accountResource.evChangedSplitGold'];	resourceEntity.accountResource.goldPurchased"/>
		<bind name="watchDH" value="'accountCreditsLooted';		['resourceEntity.accountResource.evChangedSplitCredit'];	resourceEntity.accountResource.creditsLooted"/>
		<bind name="watchDH" value="'accountCreditsPurchased';	['resourceEntity.accountResource.evChangedSplitCredit'];	resourceEntity.accountResource.creditsPurchased"/>
		<bind name="watch" value="'lootedMoney'; {	gold: { finalPrice: accountGoldLooted, currency: 'gold' },
									credits: { finalPrice: accountCreditsLooted, currency: 'credits' }
								}"/>
		<bind name="watch" value="'purchasedMoney'; {gold: { finalPrice: accountGoldPurchased, currency: 'gold' },
									credits: { finalPrice: accountCreditsPurchased, currency: 'credits' }
									}"/>
		<bind name="action" value="'Tooltip.selfOpened'; lootedMoney[_currency].finalPrice &lt; 0 ? 'DockProxy.getSplitCurrencies' : null"/>
		<block>
			<styleClass value="$FullsizeAbsolute"/>
			<bind name="instance" value="'TooltipBackground'; {}"/>
		</block>
		<block>
			<bind name="visible" value="_multiParagraphArray.length &gt; 0"/>
			<styleClass value="$InfoBlockHorizontalIndentNoWidth"/>
			<style>
				<marginTop value="9px"/>
			</style>
			<bind name="style" value="'marginBottom'; (_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; (_showSplitCurrency == 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>
		<block>
			<bind name="visible" value="_showSplitCurrency == true"/>
			<styleClass value="$InfoBlockIndentNoWidth"/>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<bind name="style" value="'maxWidth'; _maxWidth"/>
				<bind name="text" value="'IDS_CURRENCY_LOOTED_' + toUpperCase(_currency)"/>
			</block>
			<bind name="watch" value="'lootedMoneySynced'; lootedMoney[_currency].finalPrice &gt;= 0"/>
			<block>
				<style>
					<height value="30px"/>
				</style>
				<block>
					<bind name="instance" value="'PriceTag'; lootedMoneySynced ? { priceInfo: lootedMoney[_currency], _medium:true } : null"/>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'BusyIndicator'; { _showBusyIndicator: !lootedMoneySynced }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
			<block type="text">
				<styleClass value="$TextHeaderBigDefault"/>
				<style>
					<marginTop value="4px"/>
				</style>
				<bind name="style" value="'maxWidth'; _maxWidth"/>
				<bind name="text" value="'IDS_CURRENCY_PURCHASED_' + toUpperCase(_currency)"/>
			</block>
			<bind name="watch" value="'purchasedMoneySynced'; purchasedMoney[_currency].finalPrice &gt;= 0"/>
			<block>
				<style>
					<height value="30px"/>
				</style>
				<block>
					<bind name="instance" value="'PriceTag'; purchasedMoneySynced ? { priceInfo: purchasedMoney[_currency], _medium:true } : null"/>
				</block>
				<block>
					<styleClass value="$MiddleVAligned"/>
					<bind name="instance" value="'BusyIndicator'; { _showBusyIndicator: !purchasedMoneySynced }"/>
				</block>
				<style>
					<flow value="horizontal"/>
				</style>
			</block>
		</block>
		<block>
			<bind name="visible" value="((_multiParagraphArray.length &gt; 0) || (_showSplitCurrency == true)) &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="WGWalletServiceStatus">
		<styleClass value="$Fullsize"/>
		<style>
			<backgroundColor value="0x01000000"/>
			<marginRight value="-2px"/>
			<marginLeft value="-2px"/>
			<marginBottom value="-2px"/>
			<marginTop value="-2px"/>
		</style>
		<bind name="tooltip" value="'SimpleTooltip'; (_walletAvailable == true) ? {tooltipText: 'IDS_SYNC_GOES_INFO'} : null; 0"/>
		<bind name="tooltip" value="'SimpleWarningTooltip'; (_walletAvailable == false) ? {_text: tr('IDS_SERVICE_IS_NOT_AVAILABLE')} : null; 0"/>
		<block>
			<bind name="visible" value="((_isSyncedWithWallet == false) &amp;&amp; (_walletAvailable == true))"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<block className="indicator_busy_small" type="native"/>
		</block>
		<block>
			<bind name="visible" value="(_walletAvailable == false)"/>
			<styleClass value="$MiddleVAligned"/>
			<styleClass value="$MiddleAlignedAbsolutely"/>
			<block className="icon_warning_orange_big" type="native"/>
		</block>
	</block>
</ui>
