    <!--
                Copyright: Copyright 1998-2001 W3C (MIT, INRIA, Keio), All Rights Reserved.
    See http://www.w3.org/Consortium/Legal/.
    Author: Aaron Cohen (Intel), Jeff Boston (IBM)
               Version: May 1, 2001
                Module: Timing and Synchronization
               Feature: Interval logic events and pruning
             File Name: interval_logic_events_pruning_2.smil
      Media Components: 1 MPG, 1 JPG
     Expected Behavior:
            If the smile image is clicked between 5 and 40s:
                    at 0s video1, video2, video3, and video4 appear.
                    at 3s, video1 ends and disappears.
                    if no click before 10s, video2 will end and disappear.
                    at 5s smile image appears.
                    when the smile image is clicked we resolve the image end time,
                and the following is seen:
                            when the smile image is clicked, it disappears.
                            video2 restarts 5s into the clip and plays for 5s,
                            video3 restarts 5s into the clip and plays until 40s.
                            video4 restarts 5s into the clip and plays until 40s.
            Otherwise:
                    at t=0  video1, video2, video3 and video4 start.
                    at t=3  video1 disappears.
                    at t=5  smile appears.
                    at t=10 video2 disappears.
                    at t=40 smile, video3 and video4 disappear.
    -->
    <smil xmlns="http://www.w3.org/2001/SMIL20/Language">
    <body>
            <par id="par1" dur="40s">
                    <img id="smile" begin="5s" end="activateEvent"
    src="../images/smile.jpg"/>
                    <par id="par2" begin="0s;smile.end-5s" dur="40s">
                            <video id="video1" dur="3s"
    src="../videos/pe_video2.mpg"/>
                            <video id="video2" dur="10"
    src="../videos/pe_video2.mpg"/>
                    </par>
                    <video id="video3" begin="video1.begin" dur="40s"
    src="../videos/pe_video2.mpg"/>
                    <video id="video4" begin="video2.begin" dur="40s"
    src="../videos/pe_video2.mpg"/>
            </par>
    </body>
    </smil>