<?xml version="1.0" ?>
<FinalTemplateCollection>
    <base>
        <FinalTemplateCollection>
            <base>
                <Template templateName="[id]TooltipTemplate">
                    <ToolTipControl mode="mouse-moving-down-right">
                        <position x="0" y="0" />
                        <texture textureId="tooltip_background" />
                        <fixed left="10" right="10" top="10" bottom="10" />
                        <indent left="20" right="20" top="15" bottom="15" />
                        <children>
                            <StaticTextControl>
                                <position x="0" y="0" />
                                <div fontName="help" resourceName="[id]TooltipText" />
                            </StaticTextControl>
                        </children>
                    </ToolTipControl>
                </Template>
            </base>
            <foreach>
                <changes id="Book2lock" />
                <changes id="Book3lock" />
                <changes id="Film1" />
                <changes id="Film2" />
                <changes id="Film3" />
                <changes id="Film4" />
                <changes id="Film5" />
                <changes id="ChooseTankShopButton" />
                <changes id="ChooseTankHelp" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="[id]TooltipNameTemplate">
                    <StaticTextControl>
                        <position x="0" y="0" />
                        <div fontName="help" resourceName="[id]TooltipText" />
                    </StaticTextControl>
                </Template>
            </base>
            <foreach>
                <changes id="Cup1Silver" />
                <changes id="Cup2Silver" />
                <changes id="Cup3Silver" />
                <changes id="Cup1Gold" />
                <changes id="Cup2Gold" />
                <changes id="Cup3Gold" />
                <changes id="MegaCup" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="NeedToOpen[number]Template">
                    <StaticTextControl>
                        <position x="0" y="0" />
                        <div fontName="help" resourceName="NeedToOpen[number]TooltipText" />
                    </StaticTextControl>
                </Template>
            </base>
            <foreach>
                <changes number="1" />
                <changes number="2" />
                <changes number="3" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="NeedStar[number]Template">
                    <StaticTextControl>
                        <position x="0" y="0" />
                        <div fontName="help" resourceName="NeedStar[number]TooltipText" />
                    </StaticTextControl>
                </Template>
            </base>
            <foreach>
                <changes number="1" />
                <changes number="2" />
                <changes number="3" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="Need100Percent[number]Template">
                    <StaticTextControl>
                        <position x="0" y="0" />
                        <div fontName="help" resourceName="Need100Percent[number]TooltipText" />
                    </StaticTextControl>
                </Template>
            </base>
            <foreach>
                <changes number="1" />
                <changes number="2" />
                <changes number="3" />
            </foreach>
        </FinalTemplateCollection>
        <Template templateName="NeedAllStarsTemplate">
            <StaticTextControl>
                <position x="0" y="0" />
                <div fontName="help" resourceName="NeedAllStarsTooltipText" />
            </StaticTextControl>
        </Template>
        <FinalTemplateCollection>
            <base>
                <Template templateName="ClosedOrNeed100Percent[number]Template">
                    <VariableDrivenSwitchControl>
                        <position x="0" y="0" />
                        <variable name="[number] tank unlocked" type="bool" scope="local" defaultValue="true" />
                        <states>
                            <state variableValue="false" templateName="NeedToOpen[number]Template" />
                            <state variableValue="true" templateName="Need100Percent[number]Template" />
                        </states>
                    </VariableDrivenSwitchControl>
                </Template>
            </base>
            <foreach>
                <changes number="1" />
                <changes number="2" />
                <changes number="3" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="ClosedOrNeedStar[number]Template">
                    <VariableDrivenSwitchControl>
                        <position x="0" y="0" />
                        <variable name="[number] tank unlocked" type="bool" scope="local" defaultValue="true" />
                        <states>
                            <state variableValue="false" templateName="NeedToOpen[number]Template" />
                            <state variableValue="true" templateName="NeedStar[number]Template" />
                        </states>
                    </VariableDrivenSwitchControl>
                </Template>
            </base>
            <foreach>
                <changes number="1" />
                <changes number="2" />
                <changes number="3" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="[id]TooltipTemplate">
                    <ToolTipControl mode="mouse-moving-down-right">
                        <position x="0" y="0" />
                        <texture textureId="tooltip_background" />
                        <fixed left="10" right="10" top="10" bottom="10" />
                        <indent left="20" right="20" top="15" bottom="15" />
                        <children>
                            <TemplateInstanceControl>
                                <base templateName="[id]TooltipNameTemplate" />
                            </TemplateInstanceControl>
                            <VariableDrivenSwitchControl>
                                <position x="0" y="-20" />
                                <variable name="[number] Cup" type="string" scope="local" defaultValue="None" />
                                <states>
                                    <state variableValue="None" templateName="ClosedOrNeed100Percent[number]Template" />
                                </states>
                            </VariableDrivenSwitchControl>
                        </children>
                    </ToolTipControl>
                </Template>
            </base>
            <foreach>
                <changes id="Cup1Silver" number="1" />
                <changes id="Cup2Silver" number="2" />
                <changes id="Cup3Silver" number="3" />
            </foreach>
        </FinalTemplateCollection>
        <FinalTemplateCollection>
            <base>
                <Template templateName="[id]TooltipTemplate">
                    <ToolTipControl mode="mouse-moving-down-right">
                        <position x="0" y="0" />
                        <texture textureId="tooltip_background" />
                        <fixed left="10" right="10" top="10" bottom="10" />
                        <indent left="20" right="20" top="15" bottom="15" />
                        <children>
                            <TemplateInstanceControl>
                                <base templateName="[id]TooltipNameTemplate" />
                            </TemplateInstanceControl>
                            <VariableDrivenSwitchControl>
                                <position x="0" y="-20" />
                                <variable name="[number] Cup" type="string" scope="local" defaultValue="None" />
                                <states>
                                    <state variableValue="None" templateName="ClosedOrNeedStar[number]Template" />
                                    <state variableValue="Silver" templateName="Need100Percent[number]Template" />
                                </states>
                            </VariableDrivenSwitchControl>
                        </children>
                    </ToolTipControl>
                </Template>
            </base>
            <foreach>
                <changes id="Cup1Gold" number="1" />
                <changes id="Cup2Gold" number="2" />
                <changes id="Cup3Gold" number="3" />
            </foreach>
        </FinalTemplateCollection>
        <Template templateName="MegaCupTooltipTemplate">
            <ToolTipControl mode="mouse-moving-down-right">
                <position x="0" y="0" />
                <texture textureId="tooltip_background" />
                <fixed left="10" right="10" top="10" bottom="10" />
                <indent left="20" right="20" top="15" bottom="15" />
                <children>
                    <StaticTextControl>
                        <position x="0" y="0" />
                        <div fontName="help" resourceName="MegaCupTooltipText" />
                    </StaticTextControl>
                    <VariableDrivenSwitchControl>
                        <position x="0" y="-20" />
                        <variable name="mega cup showed" type="bool" scope="local" defaultValue="false" />
                        <states>
                            <state variableValue="false" templateName="NeedAllStarsTemplate" />
                        </states>
                    </VariableDrivenSwitchControl>
                </children>
            </ToolTipControl>
        </Template>
        <FinalTemplateCollection>
            <base>
                <Template templateName="[id]TooltipTemplate">
                    <ToolTipControl mode="mouse-moving-down-right">
                        <position x="0" y="0" />
                        <texture textureId="tooltip_background" />
                        <fixed left="10" right="10" top="10" bottom="10" />
                        <indent left="20" right="20" top="15" bottom="15" />
                        <children>
                            <StaticTextControl>
                                <position x="70" y="50" />
                                <div fontName="panel_text">
                                    <line>#local-string:Tank [number] name#</line>
                                </div>
                            </StaticTextControl>
                            <StaticTextControl>
                                <position x="0" y="28" />
                                <div fontName="help" align="left">
                                    <line resourceName="FishToolTips" />
                                    <line resourceName="BeautyToolTips" />
                                    <line resourceName="ComfortToolTips" />
                                </div>
                            </StaticTextControl>
                            <TankIndicatorPercentControl vspace="14" vstart="13" tankId="[number]">
                                <position x="140" y="-27" />
                                <fonts white="help" />
                            </TankIndicatorPercentControl>
                            <StaticTextControl>
                                <position x="70" y="-20" />
                                <div fontName="help" align="center" resourceName="ChooseTankClickTooltipText" />
                            </StaticTextControl>
                        </children>
                    </ToolTipControl>
                </Template>
            </base>
            <foreach>
                <changes id="Book1" number="2" />
                <changes id="Book2" number="1" />
                <changes id="Book3" number="3" />
            </foreach>
        </FinalTemplateCollection>
        <Template templateName="ZGlassTemplate">
            <ZGlassControl />
        </Template>
        <Template templateName="SecondMessageInChooseTank">
            <FixedChildrenListControl>
                <position x="0" y="0" />
                <children>
                    <ToolTipControl mode="parent-center-middle">
                        <position x="480" y="350" />
                        <texture textureId="tooltip_background" />
                        <fixed left="10" right="10" top="10" bottom="10" />
                        <indent left="20" right="20" top="15" bottom="15" />
                        <children>
                            <StaticTextControl>
                                <position x="0" y="0" />
                                <div fontName="help" resourceName="SecondChooseTankText" />
                            </StaticTextControl>
                        </children>
                    </ToolTipControl>
                    <ArrowControl>
                        <position x="670" y="270" />
                        <texture textureId="tutorial_down" />
                        <parameters amplitude="30.0" period="1.0" kx="0.0" ky="-1.0" angle="-90" />
                    </ArrowControl>
                </children>
            </FixedChildrenListControl>
        </Template>
        <FinalTemplateCollection>
            <base>
                <Template templateName="ChooseTank[number]TitleTemplate">
                    <ZoomChangeControl zoom="1.0" speed="0.15">
                        <position x="[positionX]" y="[positionY]" />
                        <messageReceiver name="Book [number] title" />
                        <namedZooms>
                            <zoom name="normal" value="1.0" />
                            <zoom name="large" value="1.05" />
                        </namedZooms>
                        <children>
                            <StaticTextControl>
                                <position x="0" y="20" />
                                <div fontName="[font]" fontScale="[fontScale]">
                                    <line>#local-string:Tank [number] name/Nameless Tank [number]#</line>
                                </div>
                            </StaticTextControl>
                        </children>
                    </ZoomChangeControl>
                </Template>
            </base>
            <foreach>
                <changes number="1" positionX="170" positionY="100" font="c_name_of_tank" fontScale="0.65" />
                <changes number="2" positionX="170" positionY="130" font="p_name_of_tank" fontScale="0.65" />
                <changes number="3" positionX="150" positionY="130" font="w_name_of_tank" fontScale="0.7" />
            </foreach>
        </FinalTemplateCollection>
        <Template templateName="ChooseTank2ProgressBarsTemplate">
            <FixedChildrenListControl>
                <position x="0" y="-140" />
                <children>
                    <ZoomControl zoom="0.35">
                        <position x="45" y="0" />
                        <children>
                            <StaticTextureControl>
                                <position x="0" y="136" />
                                <texture textureId="choose_tank_label_p_fish" />
                            </StaticTextureControl>
                            <StaticTextureControl>
                                <position x="0" y="68" />
                                <texture textureId="choose_tank_label_p_beauty" />
                            </StaticTextureControl>
                            <StaticTextureControl>
                                <position x="0" y="0" />
                                <texture textureId="choose_tank_label_p_comfort" />
                            </StaticTextureControl>
                        </children>
                    </ZoomControl>
                    <ZoomControl zoom="0.8">
                        <position x="110" y="0" />
                        <children>
                            <ProgressBarControl startTime="0.0">
                                <position x="0" y="60" />
                                <indPos x="4" y="8" />
                                <megaPos x="191" y="3" />
                                <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_red" fillingStart="smooth_ind_red_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_red_end" />
                                <variables ind="2 FishIndicator" cup="2 Cup" />
                                <flash color="#ffffff" period="0.5" maxAlpha="0.3" />
                                <change speed="3000.0" />
                                <messageReceiver name="choose tank fish 2" />
                            </ProgressBarControl>
                            <ProgressBarControl startTime="0.0">
                                <position x="0" y="30" />
                                <indPos x="4" y="8" />
                                <megaPos x="191" y="3" />
                                <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_green" fillingStart="smooth_ind_green_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_green_end" />
                                <variables ind="2 BeautyIndicator" cup="2 Cup" />
                                <flash color="#51b031" period="0.5" maxAlpha="0.4" />
                                <change speed="3000.0" />
                                <messageReceiver name="choose tank beauty 2" />
                            </ProgressBarControl>
                            <ProgressBarControl startTime="0.0">
                                <position x="0" y="0" />
                                <indPos x="4" y="8" />
                                <megaPos x="191" y="3" />
                                <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_perp" fillingStart="smooth_ind_perp_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_perp_end" />
                                <variables ind="2 ComfortIndicator" cup="2 Cup" />
                                <flash color="#b242db" period="0.5" maxAlpha="0.7" />
                                <change speed="3000.0" />
                                <messageReceiver name="choose tank comfort 2" />
                            </ProgressBarControl>
                        </children>
                    </ZoomControl>
                </children>
            </FixedChildrenListControl>
        </Template>
        <Template templateName="ChooseTank3ProgressBarsTemplate">
            <FixedChildrenListControl>
                <position x="0" y="0" />
                <children>
                    <FixedChildrenListControl>
                        <position x="-30" y="45" />
                        <children>
                            <ZoomControl zoom="0.35">
                                <position x="60" y="-2" />
                                <children>
                                    <StaticTextureControl>
                                        <position x="0" y="124" />
                                        <texture textureId="choose_tank_label_w_fish" />
                                    </StaticTextureControl>
                                    <StaticTextureControl>
                                        <position x="0" y="62" />
                                        <texture textureId="choose_tank_label_w_beauty" />
                                    </StaticTextureControl>
                                    <StaticTextureControl>
                                        <position x="0" y="0" />
                                        <texture textureId="choose_tank_label_w_comfort" />
                                    </StaticTextureControl>
                                </children>
                            </ZoomControl>
                            <ZoomControl zoom="0.7">
                                <position x="125" y="0" />
                                <children>
                                    <ProgressBarControl startTime="0.0">
                                        <position x="0" y="60" />
                                        <indPos x="4" y="8" />
                                        <megaPos x="191" y="3" />
                                        <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_red" fillingStart="smooth_ind_red_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_red_end" />
                                        <variables ind="3 FishIndicator" cup="3 Cup" />
                                        <flash color="#ffffff" period="0.5" maxAlpha="0.3" />
                                        <change speed="3000.0" />
                                        <messageReceiver name="choose tank fish 3" />
                                    </ProgressBarControl>
                                    <ProgressBarControl startTime="0.0">
                                        <position x="0" y="30" />
                                        <indPos x="4" y="8" />
                                        <megaPos x="191" y="3" />
                                        <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_green" fillingStart="smooth_ind_green_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_green_end" />
                                        <variables ind="3 BeautyIndicator" cup="3 Cup" />
                                        <flash color="#51b031" period="0.5" maxAlpha="0.4" />
                                        <change speed="3000.0" />
                                        <messageReceiver name="choose tank beauty 3" />
                                    </ProgressBarControl>
                                    <ProgressBarControl startTime="0.0">
                                        <position x="0" y="0" />
                                        <indPos x="4" y="8" />
                                        <megaPos x="191" y="3" />
                                        <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_perp" fillingStart="smooth_ind_perp_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_perp_end" />
                                        <variables ind="3 ComfortIndicator" cup="3 Cup" />
                                        <flash color="#b242db" period="0.5" maxAlpha="0.7" />
                                        <change speed="3000.0" />
                                        <messageReceiver name="choose tank comfort 3" />
                                    </ProgressBarControl>
                                </children>
                            </ZoomControl>
                        </children>
                    </FixedChildrenListControl>
                </children>
            </FixedChildrenListControl>
        </Template>
        <Template templateName="ChooseTank1ProgressBarsTemplate">
            <FixedChildrenListControl>
                <position x="0" y="0" />
                <children>
                    <FixedChildrenListControl>
                        <position x="-30" y="10" />
                        <children>
                            <ZoomControl zoom="0.6">
                                <position x="90" y="0" />
                                <children>
                                    <StaticTextureControl>
                                        <position x="0" y="60" />
                                        <texture textureId="choose_tank_label_c_fishes" />
                                    </StaticTextureControl>
                                    <StaticTextureControl>
                                        <position x="0" y="30" />
                                        <texture textureId="choose_tank_label_c_beauty" />
                                    </StaticTextureControl>
                                    <StaticTextureControl>
                                        <position x="0" y="0" />
                                        <texture textureId="choose_tank_label_c_comfort" />
                                    </StaticTextureControl>
                                </children>
                            </ZoomControl>
                            <ZoomControl zoom="0.6">
                                <position x="170" y="0" />
                                <children>
                                    <ProgressBarControl startTime="0.0">
                                        <position x="0" y="56" />
                                        <indPos x="4" y="8" />
                                        <megaPos x="191" y="3" />
                                        <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_red" fillingStart="smooth_ind_red_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_red_end" />
                                        <variables ind="1 FishIndicator" cup="1 Cup" />
                                        <flash color="#ffffff" period="0.5" maxAlpha="0.3" />
                                        <change speed="3000.0" />
                                        <messageReceiver name="choose tank fish 1" />
                                    </ProgressBarControl>
                                    <ProgressBarControl startTime="0.0">
                                        <position x="0" y="28" />
                                        <indPos x="4" y="8" />
                                        <megaPos x="191" y="3" />
                                        <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_green" fillingStart="smooth_ind_green_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_green_end" />
                                        <variables ind="1 BeautyIndicator" cup="1 Cup" />
                                        <flash color="#51b031" period="0.5" maxAlpha="0.4" />
                                        <change speed="3000.0" />
                                        <messageReceiver name="choose tank beauty 1" />
                                    </ProgressBarControl>
                                    <ProgressBarControl startTime="0.0">
                                        <position x="0" y="0" />
                                        <indPos x="4" y="8" />
                                        <megaPos x="191" y="3" />
                                        <textures backgroundId="smooth_ind_background" fillingId="smooth_ind_perp" fillingStart="smooth_ind_perp_start" megaInd="smooth_mega_ind" fillingEnd="smooth_ind_perp_end" />
                                        <variables ind="1 ComfortIndicator" cup="1 Cup" />
                                        <flash color="#b242db" period="0.5" maxAlpha="0.7" />
                                        <change speed="3000.0" />
                                        <messageReceiver name="choose tank comfort 1" />
                                    </ProgressBarControl>
                                </children>
                            </ZoomControl>
                        </children>
                    </FixedChildrenListControl>
                </children>
            </FixedChildrenListControl>
        </Template>
        <Template templateName="ChooseTankTemplate">
            <FixedChildrenListControl>
                <position x="0" y="0" />
                <children>
                    <ChooseControl reciver="lua:ChooseTankFunc">
                        <position x="0" y="0" />
                        <times initial="0.1" reshow="0.0" />
                        <texture textureId="choose_tank_fon" />
                        <messageReceiver name="Choose tank control" />
                        <child>
                            <FixedChildrenListControl>
                                <position x="0" y="0" />
                                <children>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="LongTankContentTemplate" />
                                    </TemplateInstanceControl>
                                    <ZGlassControl>
                                        <position x="0" y="0" />
                                    </ZGlassControl>
                                </children>
                            </FixedChildrenListControl>
                        </child>
                        <items>
                            <bookItem tank="1">
                                <helpToolTip templateName="Book2TooltipTemplate" />
                                <exactPosition x="6.0" y="464.0" depth="2.2" xAngle="-5.5" yAngle="42.0" zAngle="8.0" aquaScale="0.5" aquaX="160.0" aquaY="-300.0" zUpTime="0.15" />
                                <models left="CBOOK_VERTEX_FILEL" rigth="CBOOK_VERTEX_FILER" page="CBOOK_VERTEX_FILE_PAGE" scale="7.5" />
                                <icon2D x="-3.0" y="-100.0" z="0.0" textureId="choose_tank_book2D_2" />
                                <Textures2D left="#CaribBookL" rigth="#CaribBookR" page="#CaribBookList" />
                                <message value="Choose tank tank 1 pressed" />
                                <titlechild>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="ChooseTank1TitleTemplate" />
                                    </TemplateInstanceControl>
                                </titlechild>
                                <child>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="ChooseTank1ProgressBarsTemplate" />
                                    </TemplateInstanceControl>
                                </child>
                                <titleAnimation time="0.4">
                                    <item receiver="Book 1 title" messageStart="change zoom to normal" messageEnd="change zoom to large" />
                                </titleAnimation>
                                <spline flyTime="2.0" openStartTime="0.64" openTime="0.45">
                                    <key time="0.10" x="30.0" y="490.0" depth="1.9" xAngle="25.0" yAngle="95.0" zAngle="-5.0" />
                                    <key time="0.32" x="300.0" y="300.0" depth="1.5" xAngle="0.0" yAngle="360.0" zAngle="5.0" />
                                    <key time="0.52" x="600.0" y="400.0" depth="1.6" xAngle="0.0" yAngle="360.0" zAngle="10.0" />
                                    <key time="1.0" x="-160.0" y="300.0" depth="0.5" xAngle="0.0" yAngle="360.0" zAngle="0.0" />
                                </spline>
                                <lockEffects>
                                    <effect name="bookLock" />
                                </lockEffects>
                                <lockMouseEffects>
                                    <effect name="bookLockMouse" />
                                </lockMouseEffects>
                            </bookItem>
                            <bookItem tank="2">
                                <helpToolTip templateName="Book1TooltipTemplate" />
                                <lockToolTip templateName="Book2lockTooltipTemplate" />
                                <exactPosition x="170.0" y="140.0" depth="2.2" xAngle="-14.0" yAngle="30.0" zAngle="0.0" aquaScale="0.45" aquaX="180.0" aquaY="-400.0" zUpTime="0.15" />
                                <models left="PBOOK_VERTEX_FILEL" rigth="PBOOK_VERTEX_FILER" page="PBOOK_VERTEX_FILE_PAGE" />
                                <icon2D x="-27.0" y="-124.0" z="0.6" textureId="choose_tank_book2D_1" lockedId="choose_tank_book2D_1_locked" shadowId="choose_tank_book2D_1_shadow" />
                                <Textures2D left="#PirateBookL" rigth="#PirateBookR" page="#PirateBookList" />
                                <lock textureId="choose_tank_lock_text" x="-160.0" y="-125.0" zoom="0.19" />
                                <message value="Choose tank tank 2 pressed" />
                                <titlechild>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="ChooseTank2TitleTemplate" />
                                    </TemplateInstanceControl>
                                </titlechild>
                                <child>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="ChooseTank2ProgressBarsTemplate" />
                                    </TemplateInstanceControl>
                                </child>
                                <lockchild>
                                    <ZoomControl zoom="0.65">
                                        <position x="30" y="-70" />
                                        <children>
                                            <StaticTextureControl>
                                                <texture textureId="choose_tank_lock_background" />
                                            </StaticTextureControl>
                                            <BubblesBackGround>
                                                <position x="0" y="0" />
                                                <description textureId="bubble" emitters="10" width="406" height="256" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="add" />
                                                <scale>
                                                    <range min="0.25" max="0.50" />
                                                    <range min="0.50" max="0.75" />
                                                    <range min="0.75" max="1.00" />
                                                    <range min="0.50" max="0.75" />
                                                    <range min="0.25" max="0.50" />
                                                </scale>
                                            </BubblesBackGround>
                                        </children>
                                    </ZoomControl>
                                </lockchild>
                                <titleAnimation time="0.4">
                                    <item receiver="Book 2 title" messageStart="change zoom to normal" messageEnd="change zoom to large" />
                                </titleAnimation>
                                <lockAnimation time="0.5" />
                                <spline flyTime="1.7" openStartTime="0.731" openTime="0.4">
                                    <key time="0.15" x="130.0" y="400.0" depth="2.1" xAngle="100.0" yAngle="10.0" zAngle="-5.0" />
                                    <key time="0.43" x="420.0" y="380.0" depth="1.8" xAngle="360.0" yAngle="0.0" zAngle="8.5" />
                                    <key time="1.0" x="-180.0" y="400.0" depth="0.45" xAngle="360.0" yAngle="0.0" zAngle="0.0" />
                                </spline>
                                <spline flyTime="1.0" openStartTime="0.731" openTime="0.4" with="lock">
                                    <key time="0.75" x="170.0" y="142.0" depth="2.2" xAngle="-14.0" yAngle="30.0" zAngle="0.0" />
                                </spline>
                            </bookItem>
                            <bookItem tank="3">
                                <helpToolTip templateName="Book3TooltipTemplate" />
                                <lockToolTip templateName="Book3lockTooltipTemplate" />
                                <exactPosition x="440.0" y="395.0" depth="2.5" xAngle="-12.0" yAngle="-41.0" zAngle="-7.0" aquaScale="0.4" aquaX="180.0" aquaY="-300.0" zUpTime="0.26" />
                                <models left="WBOOK_VERTEX_FILEL" rigth="WBOOK_VERTEX_FILER" page="WBOOK_VERTEX_FILE_PAGE" />
                                <icon2D x="-38.0" y="-123.0" z="0.5" textureId="choose_tank_book2D_3" lockedId="choose_tank_book2D_3_locked" shadowId="choose_tank_book2D_3_shadow" />
                                <Textures2D left="#WesternBookL" rigth="#WesternBookR" page="#WesternBookList" />
                                <lock textureId="choose_tank_lock_text2" x="-154.0" y="-145.0" zoom="0.17" />
                                <message value="Choose tank tank 3 pressed" />
                                <titlechild>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="ChooseTank3TitleTemplate" />
                                    </TemplateInstanceControl>
                                </titlechild>
                                <child>
                                    <TemplateInstanceControl>
                                        <position x="0" y="0" />
                                        <base templateName="ChooseTank3ProgressBarsTemplate" />
                                    </TemplateInstanceControl>
                                </child>
                                <lockchild>
                                    <ZoomControl zoom="0.65">
                                        <position x="20" y="-135" />
                                        <children>
                                            <StaticTextureControl>
                                                <texture textureId="choose_tank_lock_background2" />
                                            </StaticTextureControl>
                                            <BubblesBackGround>
                                                <position x="0" y="0" />
                                                <description textureId="bubble" emitters="10" width="368" height="268" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="add" />
                                                <scale>
                                                    <range min="0.25" max="0.50" />
                                                    <range min="0.50" max="0.75" />
                                                    <range min="0.75" max="1.00" />
                                                    <range min="0.50" max="0.75" />
                                                    <range min="0.25" max="0.50" />
                                                </scale>
                                            </BubblesBackGround>
                                        </children>
                                    </ZoomControl>
                                </lockchild>
                                <titleAnimation time="0.4">
                                    <item receiver="Book 3 title" messageStart="change zoom to normal" messageEnd="change zoom to large" />
                                </titleAnimation>
                                <lockAnimation time="0.5" />
                                <spline flyTime="1.65" openStartTime="0.5775" openTime="0.5">
                                    <key time="0.200" x="451.0" y="406.0" depth="2.6" xAngle="0.0" yAngle="-41.0" zAngle="-5.0" />
                                    <key time="0.350" x="560.0" y="476.0" depth="2.2" xAngle="0.0" yAngle="0.0" zAngle="16.0" />
                                    <key time="0.6" x="320.0" y="350.0" depth="1.8" xAngle="0.0" yAngle="0.0" zAngle="8.0" />
                                    <key time="1.0" x="-180.0" y="300.0" depth="0.4" xAngle="0.0" yAngle="0.0" zAngle="0.0" />
                                </spline>
                                <spline flyTime="1.0" openStartTime="0.5775" openTime="0.5" with="lock">
                                    <key time="0.75" x="440.0" y="397.0" depth="2.50" xAngle="-12.0" yAngle="-41.0" zAngle="-7.0" />
                                </spline>
                            </bookItem>
                            <cupItem tank="1" type="Silver" soundFly="carib_star" soundClick="click_trofey">
                                <helpToolTip templateName="Cup1SilverTooltipTemplate" />
                                <texture textureId="choose_tank_sea_star" auraId="choose_tank_sea_star_aura" addId="choose_tank_sea_star_add" />
                                <effects name="SeaStarClick" dx="37.0" dy="65.0" />
                                <shadowDisplacement x="0" y="-20" />
                                <auraDisplacement x="-1" y="-3" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="10.6" flyStartTime="0.0" fadeTime="1.68" fadeStartTime="6.94" />
                                <exactPosition x="186.0" y="372.0" z="0.5">
                                    <key time="0.0" name="center" z="1.0" scale="1.0" alpha="0.0" />
                                    <key time="0.3" name="center" z="1.0" scale="1.2" alpha="0.0" />
                                    <key time="0.55" name="center" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.70" name="center" z="1.0" scale="1.7" alpha="0.0" />
                                    <key time="0.75" name="center" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.85" x="450.0" y="390.0" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.95" x="200.0" y="382.0" z="1.0" scale="1.0" />
                                    <key time="1.0" x="186.0" y="372.0" z="0.5" scale="1.0" />
                                </exactPosition>
                                <anotherCupEffect name="SeaStarEffect" x="37" y="50" />
                            </cupItem>
                            <cupItem tank="1" type="Gold" soundFly="carib_cup" soundClick="click_trofey">
                                <helpToolTip templateName="Cup1GoldTooltipTemplate" />
                                <texture textureId="choose_tank_coral" auraId="choose_tank_coral_aura" addId="choose_tank_coral_add" />
                                <auraDisplacement x="-4" y="-1" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="11.6" flyStartTime="0.0" fadeTime="2.0" fadeStartTime="8.0" />
                                <exactPosition x="234.0" y="388.0" z="0.51">
                                    <key time="0.0" name="center" z="1.0" scale="1.0" alpha="0.0" />
                                    <key time="0.3" name="center" z="1.0" scale="1.2" alpha="0.0" />
                                    <key time="0.45" name="center" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.75" name="center" z="1.0" scale="1.7" alpha="0.0" />
                                    <key time="0.81" name="center" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.91" x="450.0" y="400.0" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.98" x="239.0" y="395.0" z="1.0" scale="1.0" />
                                    <key time="1.0" x="234.0" y="388.0" z="0.51" scale="1.0" />
                                </exactPosition>
                                <anotherCupEffect name="CoralEffect" x="48" y="117" />
                                <effects name="CoralClick" dx="49.0" dy="100.0" />
                            </cupItem>
                            <cupItem tank="2" type="Silver" soundFly="pirat_star" soundClick="click_trofey">
                                <helpToolTip templateName="Cup2SilverTooltipTemplate" />
                                <texture textureId="choose_tank_pirate_star" auraId="choose_tank_pirate_star_aura" addId="choose_tank_pirate_star_add" />
                                <auraDisplacement x="-4" y="2" />
                                <effects name="PirateStarClick" dx="34.0" dy="79.0" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="10.1" flyStartTime="2.0" fadeTime="1.68" fadeStartTime="9.53" />
                                <exactPosition x="63.0" y="28.0" z="0.5">
                                    <key time="0.0" name="center" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.3" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.55" name="center" z="1.0" scale="2.0" alpha="0.0" />
                                    <key time="0.75" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.85" x="300.0" y="390.0" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.99" x="70.0" y="40.0" z="1.0" scale="1.0" />
                                    <key time="1.0" x="63.0" y="28.0" z="0.8" scale="1.0" />
                                </exactPosition>
                                <anotherCupEffect name="PirateStarEffect" x="34" y="57" />
                            </cupItem>
                            <cupItem tank="2" type="Gold" soundFly="pirat_cup" soundClick="click_trofey">
                                <helpToolTip templateName="Cup2GoldTooltipTemplate" />
                                <texture textureId="choose_tank_black_pearl" auraId="choose_tank_black_pearl_aura" addId="choose_tank_black_pearl_add" />
                                <auraDisplacement x="22" y="1" />
                                <effects name="BlackPearlClick" dx="80.0" dy="108.0" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="12.2" flyStartTime="0.0" fadeTime="2.0" fadeStartTime="10.0" />
                                <exactPosition x="5.0" y="69.0" z="0.49">
                                    <key time="0.0" name="center" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.3" name="center" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.45" name="center" z="1.0" scale="1.7" alpha="0.0" />
                                    <key time="0.65" name="center" z="1.0" scale="1.8" alpha="0.0" />
                                    <key time="0.81" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.91" x="300.0" y="350.0" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.99" x="15.0" y="80.0" z="0.8" scale="1.0" />
                                    <key time="1.0" x="5.0" y="69.0" z="0.3" scale="1.0" />
                                </exactPosition>
                                <anotherCupEffect name="BlackPearlEffect" x="78" y="57" />
                            </cupItem>
                            <cupItem tank="3" type="Silver" soundFly="western_star" soundClick="click_trofey">
                                <helpToolTip templateName="Cup3SilverTooltipTemplate" />
                                <texture textureId="choose_tank_sheriff_star" auraId="choose_tank_sheriff_star_aura" addId="choose_tank_sheriff_star_add" />
                                <auraDisplacement x="-4" y="-1" />
                                <shadowDisplacement x="0" y="-20" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="10.1" flyStartTime="2.0" fadeTime="1.68" fadeStartTime="9.34" />
                                <exactPosition x="342.0" y="274.0" z="0.52">
                                    <key time="0.0" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.1" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.2" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.68" name="center" z="1.0" scale="1.4" alpha="0.0" />
                                    <key time="0.78" name="center" z="1.0" scale="1.3" alpha="0.0" />
                                    <key time="0.87" x="400.0" y="390.0" z="1.0" scale="1.2" alpha="0.0" />
                                    <key time="0.99" x="347.0" y="280.0" z="1.0" scale="1.0" alpha="0.0" />
                                    <key time="1.0" x="342.0" y="274.0" z="0.51" scale="1.0" />
                                </exactPosition>
                                <effects name="SheriffStarClick" dx="38.0" dy="67.0" />
                                <anotherCupEffect name="SheriffStarEffect" x="38" y="50" />
                            </cupItem>
                            <cupItem tank="3" type="Gold" soundFly="western_cup" soundClick="click_trofey">
                                <helpToolTip templateName="Cup3GoldTooltipTemplate" />
                                <texture textureId="choose_tank_dolphin" auraId="choose_tank_dolphin_aura" addId="choose_tank_dolphin_add" />
                                <auraDisplacement x="-5" y="3" />
                                <effects name="DolphinClick" dx="57.0" dy="121.0" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="11.6" flyStartTime="0.0" fadeTime="1.64" fadeStartTime="7.14" />
                                <exactPosition x="300.0" y="300.0" z="0.51">
                                    <key time="0.0" name="center" z="1.0" scale="1.2" alpha="0.0" />
                                    <key time="0.2" name="center" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.55" name="center" z="1.0" scale="1.6" alpha="0.0" />
                                    <key time="0.72" name="center" z="1.0" scale="1.7" alpha="0.0" />
                                    <key time="0.80" name="center" z="1.0" scale="1.8" alpha="0.0" />
                                    <key time="0.88" x="350.0" y="380.0" z="1.0" scale="1.5" alpha="0.0" />
                                    <key time="0.94" x="310.0" y="350.0" z="0.5" scale="1.1" />
                                    <key time="1.0" x="300.0" y="300.0" z="0.5" scale="1.0" />
                                </exactPosition>
                                <anotherCupEffect name="DolphinEffect" x="58" y="90" />
                            </cupItem>
                            <cupItem mega="true" soundFly="super_cup" soundClick="click_trofey">
                                <helpToolTip templateName="MegaCupTooltipTemplate" />
                                <texture textureId="choose_tank_mega_cup" auraId="choose_tank_mega_cup_aura" addId="choose_tank_mega_cup_shadow" />
                                <auraDisplacement x="-1" y="0" />
                                <effects name="MegaCupClick" dx="73.0" dy="117.0" />
                                <times showTime="0.5" showStartTime="0.1" flyTime="9.6" flyStartTime="0.0" fadeTime="1.68" fadeStartTime="4.94" />
                                <exactPosition x="614.0" y="354.0" z="0.489">
                                    <key time="0.0" x="352.0" y="100.0" z="1.0" scale="0.8" alpha="1.0" />
                                    <key time="0.079" name="center" z="1.0" scale="1.4" alpha="1.0" />
                                    <key time="0.55" name="center" z="1.0" scale="1.4" alpha="1.0" />
                                    <key time="0.65" name="center" z="1.0" scale="1.4" alpha="1.0" />
                                    <key time="0.85" x="450.0" y="390.0" z="1.0" scale="1.1" alpha="1.0" />
                                    <key time="0.95" x="634.0" y="356.0" z="1.0" scale="1.05" alpha="1.0" />
                                    <key time="1.0" x="614.0" y="354.0" z="0.489" scale="1.0" />
                                </exactPosition>
                                <anotherCupEffect name="MegaCupEffect" x="73" y="103" />
                            </cupItem>
                            <cassetItem textRes="scene11">
                                <helpToolTip templateName="Film1TooltipTemplate" />
                                <exactPosition x="635.0" y="275.0" z="0.484" depth="1.70" xAngle="-105.0" yAngle="190.0" zAngle="5.0" OnMouseUp="5.0" OnMouseRotate="0.0">
                                    <key time="0.05" x="635.0" y="275.0" depth="1.70" xAngle="-105.0" yAngle="190.0" zAngle="5.0" />
                                    <key time="0.2" x="655.0" y="235.0" depth="1.69" xAngle="-70.0" yAngle="190.0" zAngle="0.0" />
                                    <key time="0.6" x="477.5" y="375.0" depth="1.25" xAngle="49.0" yAngle="180.0" zAngle="45.0" />
                                    <key time="1.0" x="400.0" y="126.0" depth="0.45" xAngle="0.0" yAngle="360.0" zAngle="0.0" />
                                </exactPosition>
                                <texture textureId="#Cassete1" />
                                <texturePos textureId="casset_icon1" x="564" y="246" darkned="true" />
                                <rols>
                                    <upTexture textureId="casset_up1" />
                                    <leftRol textureId="casset_leftRol" />
                                    <rightRol textureId="casset_rightRol" />
                                </rols>
                            </cassetItem>
                            <cassetItem textRes="scene1">
                                <helpToolTip templateName="Film2TooltipTemplate" />
                                <exactPosition x="635.0" y="240.0" z="0.483" depth="1.70" xAngle="-105.0" yAngle="190.0" zAngle="5.0" OnMouseUp="7.0" OnMouseRotate="0.0" />
                                <texture textureId="#Cassete2" />
                                <texturePos textureId="casset_icon2" x="564" y="208" darkned="true" />
                                <rols>
                                    <upTexture textureId="casset_up2" />
                                    <leftRol textureId="casset_leftRol" />
                                    <rightRol textureId="casset_rightRol" />
                                </rols>
                            </cassetItem>
                            <cassetItem textRes="scene2">
                                <helpToolTip templateName="Film3TooltipTemplate" />
                                <exactPosition x="635.0" y="205.0" z="0.482" depth="1.70" xAngle="-105.0" yAngle="190.0" zAngle="5.0" OnMouseUp="10.0" OnMouseRotate="0.0" />
                                <texture textureId="#Cassete4" />
                                <texturePos textureId="casset_icon4" x="564" y="171" />
                                <rols>
                                    <upTexture textureId="casset_up4" />
                                    <leftRol textureId="casset_leftRol" />
                                    <rightRol textureId="casset_rightRol" />
                                </rols>
                            </cassetItem>
                            <cassetItem textRes="scene3">
                                <helpToolTip templateName="Film4TooltipTemplate" />
                                <exactPosition x="635.0" y="170.0" z="0.481" depth="1.70" xAngle="-105.0" yAngle="190.0" zAngle="5.0" OnMouseUp="7.0" OnMouseRotate="0.0" />
                                <texture textureId="#Cassete3" />
                                <texturePos textureId="casset_icon3" x="564" y="134" />
                                <rols>
                                    <upTexture textureId="casset_up3" />
                                    <leftRol textureId="casset_leftRol" />
                                    <rightRol textureId="casset_rightRol" />
                                </rols>
                            </cassetItem>
                            <cassetItem textRes="scene4">
                                <helpToolTip templateName="Film5TooltipTemplate" />
                                <exactPosition x="635.0" y="135.0" z="0.48" depth="1.70" xAngle="-105.0" yAngle="190.0" zAngle="5.0" OnMouseUp="5.0" OnMouseRotate="0.0" />
                                <texture textureId="#Cassete5" />
                                <texturePos textureId="casset_icon5" x="564" y="97" />
                                <rols>
                                    <upTexture textureId="casset_up5" />
                                    <leftRol textureId="casset_leftRol" />
                                    <rightRol textureId="casset_rightRol" />
                                </rols>
                            </cassetItem>
                            <staticItem>
                                <texture textureId="choose_tank_layer1" />
                                <exactPosition x="551.0" y="90.0" z="0.49" />
                            </staticItem>
                        </items>
                    </ChooseControl>
                    <ContextHelpServerControl>
                        <children>
                            <InOutMovingControl time="0.4">
                                <position x="350" y="0" />
                                <namedPositions>
                                    <position x="0" y="0" name="in" />
                                    <position x="350" y="0" name="out" />
                                </namedPositions>
                                <path templateName="QuadraticPathTemplate" />
                                <messageReceiver name="Choose tank panel mover" />
                                <children>
                                    <StaticTextureControl>
                                        <position x="476" y="551" />
                                        <texture textureId="choose_tank_panel_new" />
                                        <children>
                                            <ContextHelpClientControl>
                                                <times initial="0.14" reshow="0.0" />
                                                <controlToShow templateName="ChooseTankHelpTooltipTemplate" />
                                                <controlToMonitor>
                                                    <MessageButtonControl>
                                                        <position x="200" y="9" />
                                                        <textures normalId="shop_help_normal" activeId="shop_help_active" pressedId="shop_help_pressed" />
                                                        <message value="Choose tank help button pressed" receiver="lua:ChooseTankFunc" />
                                                    </MessageButtonControl>
                                                </controlToMonitor>
                                            </ContextHelpClientControl>
                                            <ContextHelpClientControl>
                                                <times initial="0.14" reshow="0.0" />
                                                <controlToShow templateName="ChooseTankShopButtonTooltipTemplate" />
                                                <controlToMonitor>
                                                    <MessageButtonControl>
                                                        <position x="235" y="9" />
                                                        <textures normalId="choose_tank_shop_normal" activeId="choose_tank_shop_active" pressedId="choose_tank_shop_pressed" />
                                                        <message value="Shop button pressed" receiver="lua:ChooseTankFunc" />
                                                    </MessageButtonControl>
                                                </controlToMonitor>
                                            </ContextHelpClientControl>
                                            <StaticTextControl>
                                                <position x="113" y="32" />
                                                <div fontName="user_name" align="center">
                                                    <line resourceName="chooseTank" />
                                                </div>
                                            </StaticTextControl>
                                        </children>
                                    </StaticTextureControl>
                                </children>
                            </InOutMovingControl>
                        </children>
                    </ContextHelpServerControl>
                    <AlphaChangeControl start="1.0">
                        <speed value="1.0" />
                        <messageReceiver name="RaysAlphaChanger" />
                        <children>
                            <BlinkingRay>
                                <position x="0" y="195" />
                                <texture textureId="choose_tank_ray1" />
                            </BlinkingRay>
                            <BlinkingRay>
                                <position x="0" y="30" />
                                <texture textureId="choose_tank_ray2" />
                            </BlinkingRay>
                            <BlinkingRay>
                                <position x="0" y="150" />
                                <texture textureId="choose_tank_ray3" />
                            </BlinkingRay>
                        </children>
                    </AlphaChangeControl>
                    <ModalDialogControl>
                        <messageReceiver name="Choose tank modal dialog" />
                        <times starting="0.5" hiding="0.5" />
                    </ModalDialogControl>
                    <IfControl variable="global:dev" default="false">
                        <children>
                            <KeyListeningControl>
                                <keys>
                                    <key value="VK_F4" receiver="lua:ChooseTankFunc" message="Set Silver Current" />
                                    <key value="VK_F5" receiver="lua:ChooseTankFunc" message="Set Gold Current" />
                                    <key value="VK_F6" receiver="lua:ChooseTankFunc" message="Lock 2" />
                                    <key value="VK_F7" receiver="lua:ChooseTankFunc" message="Lock 3" />
                                    <key value="VK_F9" receiver="lua:ChooseTankFunc" message="Unset film casettes" />
                                    <key value="VK_F8" receiver="Choose tank control" message="try unlock" />
                                </keys>
                            </KeyListeningControl>
                        </children>
                    </IfControl>
                    <StaticTextureControl>
                        <texture textureId="border_left" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="793" y="0" />
                        <texture textureId="border_right" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="7" y="0" />
                        <texture textureId="border_bottom" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="7" y="595" />
                        <texture textureId="border_top" />
                    </StaticTextureControl>
                </children>
            </FixedChildrenListControl>
        </Template>
    </base>
</FinalTemplateCollection>
