<!-- 
            Copyright: Copyright 1998-2005  W3C (MIT, ERCIM, Keio), All Rights Reserved.
See http://www.w3.org/Consortium/Legal/.
Author: Aaron Cohen (Intel)
           Version: February 7, 2001
            Module: Animation Module
           Feature: animation - tests different add and accumulate modes.
         File Name: animation-add-BE-09.smil
  Media Components: 1 JPG for underlay graphic.
 Expected Behavior: See underlay graphic.
                    All these animations have a repeat count of 2,
                    and all go from an animation value of 10 to 25.
                    Rectangles #5-#8 have two simultaneous animations
                    acting upon them.
-->
<smil xmlns="http://www.w3.org/2005/SMIL21/Language">
    <head>
        <layout>
            <root-layout width="640" height="480" backgroundColor="white"/>
            <region id="whole" width="640" height="480" z-index="0"/>
            <region id="rect1" top="60px" left="76px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect2" top="60px" left="184px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect3" top="60px" left="296px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect4" top="60px" left="406px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect5" top="220px" left="76px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect6" top="220px" left="184px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect7" top="220px" left="296px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
            <region id="rect8" top="220px" left="406px" height="25px" width="20px" backgroundColor="red" z-index="1"/>
        </layout>
    </head>
    <body>
        <par dur="indefinite">
            <img src="../images/animation-add-BE-09.jpg" region="whole"/>
            <animate attributeName="height"  targetElement="rect1" additive="replace" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height" targetElement="rect2" from="10" to="25" begin="0s" dur="4s" fill="freeze" repeatCount="2"   additive="sum" accumulate="none" />
            <animate attributeName="height"  targetElement="rect3" additive="replace" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>				
            <animate attributeName="height"  targetElement="rect4" additive="sum" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect5" additive="replace" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect5" additive="replace" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect6" additive="sum" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect6" additive="sum" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect7" additive="replace" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect7" additive="replace" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect8" additive="sum" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
            <animate attributeName="height"  targetElement="rect8" additive="sum" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
        </par>
    </body>
</smil>