<!-- 
            Copyright: Copyright 1998-2001 W3C (MIT, INRIA, 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-motion-BE-11.smil
  Media Components: 1 JPG for underlay graphic.
 Expected Behavior: See underlay graphic.
                    #4 uses an SVG specific feature as is not intended to
                    work in SMIL.                       
-->
<smil xmlns="http://www.w3.org/2001/SMIL20/Language"
xmlns:SplineAnimation="http://www.w3.org/2001/SMIL20/SplineAnimation">
    <head>
        <layout>
            <root-layout width="640" height="480" backgroundColor="white"/>
            <region id="whole" width="640" height="480" z-index="0"/>
            <region id="rect1" top="-30px" left="-15px" height="30px"
width="30px" backgroundColor="red" z-index="1"/>
            <region id="rect2" top="-30px" left="-15px" height="30px"
width="30px" backgroundColor="red" z-index="1"/>
            <region id="rect3" top="195px" left="10px" height="30px"
width="30px" backgroundColor="red" z-index="1"/>
            <region id="rect4" top="195px" left="260px" height="30px"
width="30px" backgroundColor="red" z-index="1"/>
        </layout>
    </head>
    <body>
        <par dur="indefinite">
            <img src="../images/animation-motion-BE-11.jpg" region="whole"/>
            <animateMotion targetElement="rect1" additive="sum"
from="25,100" to="125,75" begin="0s" dur="3s" fill="freeze"/>
            <animateMotion targetElement="rect2" additive="sum"
values="225,100;325,75;425,75" begin="0s" dur="6s" calcMode="linear"
fill="freeze"/>
            <animateMotion targetElement="rect3"
SplineAnimation:path="M25,225 C25,175 125,150 175,200" begin="0s" dur="6s"
calcMode="linear" fill="freeze"/>
            <animateMotion  targetElement="rect4"  begin="0s" dur="6s"
calcMode="linear" fill="freeze"/> 
        </par>
    </body>
</smil>