<?xml version="1.0" ?>
<FinalTemplateCollection>
    <Template templateName="GreetingCardHelloweenTemplate">
        <FixedChildrenListControl>
            <ExpandingControl hideByClick="false">
                <position x="129" y="116" />
                <AlphaChanger>
                    <alpha value="0.0" />
                    <alpha value="1.0" />
                </AlphaChanger>
                <ScaleChanger>
                    <scale value="0.5" />
                    <scale value="1.1" />
                    <scale value="1.0" />
                </ScaleChanger>
                <resizeable textureId="CardPanel" height="100" />
                <messageReceiver name="GreetingCardReceiver" />
                <children>
                    <StaticTextureControl>
                        <position x="11" y="18" />
                        <texture textureId="HelloweenCard15" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="334" y="168" />
                        <texture textureId="HelloweenCard13" />
                    </StaticTextureControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="323" y="159" />
                        <layers>
                            <mesh textureId="HelloweenCard12" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="40" y="190" />
                        <layers>
                            <mesh textureId="HelloweenCard11" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <StaticTextureControl>
                        <position x="5" y="28" />
                        <texture textureId="HelloweenCard10" />
                    </StaticTextureControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="326" y="92" />
                        <layers>
                            <mesh textureId="HelloweenCard9" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <StaticTextureControl>
                        <position x="327" y="42" />
                        <texture textureId="HelloweenCard8" />
                    </StaticTextureControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="468" y="68" />
                        <layers>
                            <mesh textureId="HelloweenCard7" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <StaticTextureControl>
                        <position x="398" y="35" />
                        <texture textureId="HelloweenCard6" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="284" y="145" />
                        <texture textureId="HelloweenCard5" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="305" y="187" />
                        <texture textureId="HelloweenCard4" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="427" y="234" />
                        <texture textureId="HelloweenCard3" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="111" y="253" />
                        <texture textureId="HelloweenCard2" />
                    </StaticTextureControl>
                    <LampsControl>
                        <position x="413" y="261" />
                        <texture textureId="HelloweenCard5" timescale="0.2" />
                    </LampsControl>
                    <LampsControl>
                        <position x="434" y="303" />
                        <texture textureId="HelloweenCard4" timescale="0.2" />
                    </LampsControl>
                    <LampsControl>
                        <position x="556" y="350" />
                        <texture textureId="HelloweenCard3" timescale="0.2" />
                    </LampsControl>
                    <LampsControl>
                        <position x="240" y="369" />
                        <texture textureId="HelloweenCard2" timescale="0.2" />
                    </LampsControl>
                    <StaticTextureControl>
                        <position x="20" y="53" />
                        <texture textureId="HelloweenCard1" />
                    </StaticTextureControl>
                    <BlicControl>
                        <position x="149" y="169" />
                        <texture textureId="HelloweenCard1" countH="30" countW="30" timescale="3" />
                    </BlicControl>
                    <MessageButtonControl>
                        <position x="229" y="-20" />
                        <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                        <message value="hide" receiver="lua:ReceiveACard" />
                    </MessageButtonControl>
                </children>
                <onClose message="destroy" receiver="post:lua:ReceiveACard" />
            </ExpandingControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="50" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="550" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="GreetingCardChristmasTemplate">
        <FixedChildrenListControl>
            <ExpandingControl hideByClick="false">
                <position x="129" y="116" />
                <AlphaChanger>
                    <alpha value="0.0" />
                    <alpha value="1.0" />
                </AlphaChanger>
                <ScaleChanger>
                    <scale value="0.5" />
                    <scale value="1.1" />
                    <scale value="1.0" />
                </ScaleChanger>
                <resizeable textureId="CardPanel" height="100" />
                <messageReceiver name="GreetingCardReceiver" />
                <children>
                    <StaticTextureControl>
                        <position x="7" y="10" />
                        <texture textureId="Christmas6" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="362" y="17" />
                        <texture textureId="Christmas5" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="-51" y="234" />
                        <texture textureId="Christmas4" />
                    </StaticTextureControl>
                    <LampsControl>
                        <position x="78" y="350" />
                        <texture textureId="Christmas3" timescale="0.2" />
                    </LampsControl>
                    <LampsControl>
                        <position x="78" y="350" />
                        <texture textureId="Christmas2" timescale="0.2" />
                    </LampsControl>
                    <StaticTextureControl>
                        <position x="231" y="45" />
                        <texture textureId="Christmas1" />
                    </StaticTextureControl>
                    <BlicControl>
                        <position x="360" y="161" />
                        <texture textureId="Christmas1" countH="40" countW="40" timescale="3" />
                    </BlicControl>
                    <MessageButtonControl>
                        <position x="229" y="-20" />
                        <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                        <message value="hide" receiver="lua:ReceiveACard" />
                    </MessageButtonControl>
                </children>
                <onClose message="destroy" receiver="post:lua:ReceiveACard" />
            </ExpandingControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="50" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="550" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="GreetingCardThanksgivingTemplate">
        <FixedChildrenListControl>
            <ExpandingControl hideByClick="false">
                <position x="129" y="116" />
                <AlphaChanger>
                    <alpha value="0.0" />
                    <alpha value="1.0" />
                </AlphaChanger>
                <ScaleChanger>
                    <scale value="0.5" />
                    <scale value="1.1" />
                    <scale value="1.0" />
                </ScaleChanger>
                <resizeable textureId="CardPanel" height="100" />
                <messageReceiver name="GreetingCardReceiver" />
                <children>
                    <StaticTextureControl>
                        <position x="9" y="130" />
                        <texture textureId="ThanksgivingCard10" />
                    </StaticTextureControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="181" y="197" />
                        <layers>
                            <mesh textureId="ThanksgivingCard9" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <StaticTextureControl>
                        <position x="54" y="167" />
                        <texture textureId="ThanksgivingCard8" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="13" y="168" />
                        <texture textureId="ThanksgivingCard7" />
                    </StaticTextureControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="485" y="65" />
                        <layers>
                            <mesh textureId="ThanksgivingCard6" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <StaticTextureControl>
                        <position x="111" y="4" />
                        <texture textureId="ThanksgivingCard5" />
                    </StaticTextureControl>
                    <ExtendedWaterPlantControl fog="false">
                        <position x="217" y="23" />
                        <layers>
                            <mesh textureId="ThanksgivingCard4" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="2" meshHeight="4" />
                        </layers>
                    </ExtendedWaterPlantControl>
                    <StaticTextureControl>
                        <position x="255" y="16" />
                        <texture textureId="ThanksgivingCard3" />
                    </StaticTextureControl>
                    <StaticTextureControl>
                        <position x="23" y="128" />
                        <texture textureId="ThanksgivingCard2" />
                    </StaticTextureControl>
                    <BlicControl>
                        <position x="152" y="244" />
                        <texture textureId="ThanksgivingCard2" countH="20" countW="80" timescale="1" />
                    </BlicControl>
                    <StaticTextureControl>
                        <position x="12" y="274" />
                        <texture textureId="ThanksgivingCard1" />
                    </StaticTextureControl>
                    <MessageButtonControl>
                        <position x="229" y="-20" />
                        <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                        <message value="hide" receiver="lua:ReceiveACard" />
                    </MessageButtonControl>
                </children>
                <onClose message="destroy" receiver="post:lua:ReceiveACard" />
            </ExpandingControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="50" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="550" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="ReceiveACardTemplate">
        <ExpandingControl hideByClick="false">
            <position x="199" y="161" />
            <AlphaChanger>
                <alpha value="0.0" />
                <alpha value="1.0" />
            </AlphaChanger>
            <ScaleChanger>
                <scale value="0.5" />
                <scale value="1.1" />
                <scale value="1.0" />
            </ScaleChanger>
            <resizeable textureId="ReceiveCardPanel" height="100" />
            <messageReceiver name="ReceiveACardReceiver" />
            <children>
                <RectangleTextureControl>
                    <position x="100" y="100" />
                    <texture path="[tank_texture]" width="200" height="150" />
                </RectangleTextureControl>
                <BorderControl width="200" height="150">
                    <position x="100" y="100" />
                    <texture textureId="border" />
                </BorderControl>
                <StaticTextControl>
                    <position x="201" y="70" />
                    <div fontName="White_12" align="center">
                        <line resourceName="[GreetingCardText]" />
                    </div>
                </StaticTextControl>
                <MessageButtonControl>
                    <position x="157" y="-21" />
                    <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                    <message value="Enter to tank [number]" receiver="post:lua:ReceiveACard" />
                </MessageButtonControl>
            </children>
            <onClose message="destroy" receiver="post:lua:ReceiveACard" />
        </ExpandingControl>
    </Template>
    <Template templateName="CardEnterEffectTemplate">
        <EnterEffectControl effectTime="0.7">
            <path>
                <key x="399" y="336" />
                <key x="399" y="365" />
                <key x="399" y="300" />
            </path>
            <scale>
                <key value="0.25" />
                <key value="0.59" />
                <key value="1.0" />
            </scale>
            <emptyTank>
                <FixedChildrenListControl />
            </emptyTank>
            <child>
                <LongLifeParentControl>
                    <storage receiverName="TankContentStorage" />
                </LongLifeParentControl>
            </child>
        </EnterEffectControl>
    </Template>
    <Template templateName="GreetingCardDialogTemplate">
        <ModalDialogControl>
            <messageReceiver name="Greeting Card dialog" />
            <times starting="0.3" hiding="0.5" />
        </ModalDialogControl>
    </Template>
</FinalTemplateCollection>
