<smil>
  <head>
    <meta name="title" content="excl group test"/>
    <layout>
      <root-layout width="320" height="240" background-color="goldenrod"/>
      <region id="reg_but1" left="5" top="15" width="80" height="30" background-color="MistyRose"/>
      <region id="reg_but2" left="5" top="55" width="80" height="30" background-color="MistyRose"/>
      <region id="reg_but3" left="5" top="95" width="80" height="30" background-color="MistyRose"/>
      <region left="5" top="135" width="80" height="40">
        <region id="reg_text" left="5" top="0" width="70" height="18"/>
        <region id="reg_ext" left="5" top="22" width="30" height="18"/>
        <region id="reg_int" left="45" top="22" width="30" height="18"/>
      </region>
      <region left="5" top="176" width="80" height="40">
        <region id="reg_pause" left="5" top="0" width="35" height="18"/>
        <region id="reg_play" left="42" top="0" width="35" height="18"/>
      </region>
      <region id="reg_but4" left="5" top="195" width="80" height="30" background-color="IndianRed"/>
      <region left="95" top="15" width="210" height="210" background-color="steelblue">
        <region id="reg_img" left="5" top="5" width="64" height="24" background-color="orange"/>
      </region>
      <region id="reg_paused" left="225" top="225" width="80" height="15"/>
    </layout>
    <paramGroup id="HVD_text_params">
      <param name="fontColor" value="yellow"/>
      <param name="fontSize" value="+1"/>
      <param name="backgroundColor" value="navy"/>
    </paramGroup>
  </head>
  <body>
    <par end="but4.activateEvent">
      <text src="data:,Horizontal" id="but1" region="reg_but1" fill="freeze"
            regPoint="midLeft" regAlign="midLeft" paramGroup="HVD_text_params"/>
      <set targetElement="reg_but1" attributeName="background-color" to="red"
           begin="reg_but1.activateEvent" dur="0.1"/>
      <text src="data:,Vertical" id="but2" region="reg_but2" fill="freeze"
            regPoint="topMid" regAlign="topMid" paramGroup="HVD_text_params"/>
      <set targetElement="reg_but2" attributeName="background-color" to="red"
           begin="reg_but2.activateEvent" dur="0.1"/>
      <text src="data:,Diagonal" id="but3" region="reg_but3" fill="freeze"
            regPoint="center" regAlign="center" paramGroup="HVD_text_params"/>
      <set targetElement="reg_but3" attributeName="background-color" to="red"
           begin="reg_but3.activateEvent" dur="0.1"/>
      <text src="data:,Repeat" id="but_rep" region="reg_text" fill="freeze">
        <param name="backgroundColor" value="cyan"/>
      </text>
      <text src="data:,Ext" id="but_ext" region="reg_ext" fill="freeze">
        <param name="backgroundColor" value="green"/>
        <param name="fontColor" value="white"/>
      </text>
      <text src="data:,Int" id="but_int" region="reg_int" fill="freeze">
        <param name="backgroundColor" value="green"/>
        <param name="fontColor" value="white"/>
      </text>
      <excl>
        <set targetElement="but_ext" attributeName="backgroundColor" to="red"
           begin="0" dur="indefinite"/>
        <set targetElement="but_ext" attributeName="backgroundColor" to="red"
           begin="but_ext.activateEvent" dur="indefinite"/>
        <set targetElement="but_int" attributeName="backgroundColor" to="red"
           begin="but_int.activateEvent" dur="indefinite"/>
      </excl>
      <excl>
        <set targetElement="vid" attributeName="src" to="img_scale_rep.smil"
           begin="but_ext.activateEvent" dur="indefinite"/>
        <set targetElement="vid" attributeName="src" to="img_scale.smil"
           begin="but_int.activateEvent" dur="indefinite"/>
      </excl>
      <text src="data:,Stop" id="but4" region="reg_but4" fill="freeze"
            regPoint="center" regAlign="center">
        <param name="fontColor" value="green"/>
        <param name="fontSize" value="+1"/>
        <param name="backgroundColor" value="red"/>
      </text>
      <text src="data:,Pause" id="but_pause" region="reg_pause" fill="freeze">
        <param name="backgroundColor" value="green"/>
        <param name="fontColor" value="white"/>
      </text>
      <text src="data:,Play" id="but_play" region="reg_play" fill="freeze">
        <param name="backgroundColor" value="green"/>
        <param name="fontColor" value="gray"/>
      </text>
      <excl dur="indefinite">
        <priorityClass peers="pause">
          <video src="img_scale_rep.smil" id="vid" region="reg_img"
                 fill="freeze" fit="meet" repeatCount="indefinite"/>
          <text src="data:,Paused" region="reg_paused"
               begin="reg_pause.activateEvent" end="but_play.activateEvent">
          </text>
        </priorityClass>
      </excl>
      <set targetElement="but_pause" attributeName="fontColor" to="gray"
               begin="but_pause.activateEvent" end="but_play.activateEvent"/>
      <set targetElement="but_play" attributeName="fontColor" to="white"
               begin="but_pause.activateEvent" end="but_play.activateEvent"/>
      <excl dur="indefinite">
        <animateMotion targetElement="reg_img" from="5,5" to="140,5"
                       begin="but1.activateEvent;accesskey(h)" dur="2" fill="freeze"
                       calcMode="spline" keySplines="0 .75 .25 1"/>
        <animateMotion targetElement="reg_img" from="5,5" to="5,180"
                       begin="reg_but2.activateEvent;accesskey(v)" dur="2" fill="freeze"
                       calcMode="spline" keySplines="0.75 0 1 0.25"/>
        <animateMotion targetElement="reg_img" from="5,5" to="140,180"
                       begin="reg_but3.activateEvent;accesskey(d)" dur="2" fill="freeze"
                       calcMode="spline" keySplines=".5 0 .5 1"/>
      </excl>
    </par>
  </body>
</smil>
