<?xml version="1.0" encoding="utf-8"?>

<animations>

  <animation name="main_menu">
    <add image="MainMenu"/>

    <button action="play" x="150" y="299" type="Playgame_" tooltip="play_tooltip"/>
    <button action="awards" x="523" y="245" type="Awards_" tooltip="awards_tooltip"/>
    <button action="options" x="15" y="178" type="Options_" tooltip="options_tooltip"/>
    <button action="quit" x="710" y="215" type="Quit_" tooltip="quit_tooltip"/>

    <add-trophies x1="525" x2="645" y1="264" y2="266" y3="342" y4="353"/>

    <add image="mainmenu_hud"/>
    <add text="welcome" x="100" y="20" red="1" green="1" blue="1" align="center"/>
    <add text="[player]" lookup="false" x="100" y="40" red="1" green="1" blue="1" align="center"/>
    <player-select-link text="not_you" font="small_link" font-over="small_over" x="100" y="60" width="200"/>

    <add image="GameLogo" x="400" y="20" align="center"/>
  </animation>

  <animation name="play_tooltip">
    <add id="tooltip" text="mainmenu_play" x="400" y="405" font="large" align="center" valign="center"/>
    <persist/>
  </animation>

  <animation name="awards_tooltip">
    <add id="tooltip" text="mainmenu_awards" x="588" y="285" font="large" align="center" valign="center"/>
    <persist/>
  </animation>

  <animation name="options_tooltip">
    <add id="tooltip" text="mainmenu_options" x="150" y="300" font="large" align="center" valign="center"/>
    <persist/>
  </animation>

  <animation name="quit_tooltip">
    <add id="tooltip" text="mainmenu_quit" x="747" y="292" font="large" align="center" valign="center"/>
    <analyze id="tooltip" right="tooltip-right"/>
    <greater-than name="b" value1="tooltip-right" value2="800"/>
    <move id="tooltip" x="800" align="right" speed="0" if="b"/>
    <persist/>
  </animation>

  <animation name="tooltip_done">
    <remove id="tooltip"/>
  </animation>
  
  <animation name="map">
    <add image="mapscreen"/>

    <play animation="waves"/>
    <play animation="boat"/>

    <add id="shadow" image="mapscreen_balloonshadow" x="60" y="130" align="center"/>
    <quit-button x="10" y="0" type="mapscreen_balloon_" shadow="shadow" height="5" speed="200"/>

    <define name="prob" value="2"/>
    
    <randint name="f" max="prob"/>
    <play animation="francie" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="jonah" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="cindy" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="treena" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="sean" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="walter" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="sonny" unless="f" requires-country="china"/>

    <play animation="cars"/>

    <!-- characters that go in front of cars -->
    <randint name="f" max="prob"/>
    <play animation="peggy" unless="f"/>
    <randint name="f" max="prob"/>
    <play animation="marti" unless="f" requires-country="france"/>

    <add image="mapscreen_mountain" x="800" align="right"/>
    <add image="mapscreen_citypatch" x="0" y="600" valign="bottom"/>

    <add id="lights" image="mapscreen_americanlights" x="209" y="198" requires-country="america"/>
    <flash id="lights" interval="100" timer-init="0"/>

    <play animation="mexican_lights" requires-country="mexico"/>

    <country name="america" x="289" y="192" tooltip-x="400" tooltip-y="100"/>
    <country name="china" x="471" y="167" tooltip-x="40" tooltip-y="50"/>
    <country name="france" x="747" y="225" tooltip-x="300" tooltip-y="100"/>
    <country name="india" x="361" y="131" tooltip-x="400" tooltip-y="50"/>
    <country name="italy" x="431" y="271" tooltip-x="25" tooltip-y="100"/>
    <country name="japan" x="59" y="166" tooltip-x="125" tooltip-y="50"/>
    <country name="mexico" x="460" y="388" tooltip-x="25" tooltip-y="150"/>
    <country name="thailand" x="208" y="323" tooltip-x="300" tooltip-y="100"/>

    <highlight-country opacity="0.3" amplitude="0.3" speed="100"/>

    <randint name="f" max="prob"/>
    <define name="f" value="0"/>
    <play animation="andrew" unless="f" requires-country="mexico"/>

    <play animation="plane"/>
  </animation>

  <animation name="francie">
    <add id="p" image="francie" x="315" y="411" cols="4"/>
    <randint name="delay" max="800"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="15" cycles="1" dir="forward"/>
    <wait/>
    <pause time="500"/>
    <cycle id="p" rate="15" cycles="1" dir="back"/>
    <wait/>
    <randint name="delay" min="500" max="1400"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="cindy">
    <add id="p" image="cindy" x="626" y="217" cols="8"/>
    <flip id="p"/>
    <scale id="p" factor="0.7"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="15" cycles="1" dir="forward" max="2"/>
    <wait/>
    <cycle id="p" rate="15" cycles="7" dir="both" frame="3" min="3"/>
    <wait/>
    <cycle id="p" rate="15" cycles="1" dir="back" frame="2"/>
    <wait/>
    <randint name="delay" min="800" max="2000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="walter">
    <add id="p" image="walter" x="662" y="260" cols="5"/>
    <flip id="p"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <randint name="c" min="10" max="30"/>
    <multiply name="c" value="2"/>
    <cycle id="p" rate="20" cycles="c" dir="both" frame="1" min="1"/>
    <wait/>
    <set-frame id="p" frame="0"/>
    <randint name="delay" min="800" max="2000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="marti">
    <add id="p" image="marti" x="687" y="341" cols="4"/>
    <flip id="p"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="10" cycles="8" dir="both" frame="1" min="1"/>
    <wait/>
    <set-frame id="p" frame="0"/>
    <randint name="delay" min="800" max="2000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="treena">
    <add id="p" image="treena" x="66" y="508" cols="8"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="15" cycles="1" dir="forward" max="3"/>
    <wait/>
    <cycle id="p" rate="15" cycles="4" dir="forward" frame="4" min="4"/>
    <wait/>
    <cycle id="p" rate="15" cycles="1" dir="back" frame="3"/>
    <wait/>
    <randint name="delay" min="800" max="2000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="sean">
    <add id="p" image="sean" x="252" y="126" cols="7"/>
    <scale id="p" factor="0.72"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="15" cycles="1" dir="forward" max="2"/>
    <wait/>
    <cycle id="p" rate="15" cycles="4" dir="forward" frame="3" min="3"/>
    <wait/>
    <cycle id="p" rate="15" cycles="1" dir="back" frame="2"/>
    <wait/>
    <randint name="delay" min="800" max="2000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="andrew">
    <add id="p" image="andrew" x="416" y="528" cols="7"/>
    <add image="mapscreen_fencepatch" x="401" y="538"/>
    <flip id="p"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="10" cycles="1" dir="forward" max="2"/>
    <wait/>
    <cycle id="p" rate="10" cycles="4" dir="forward" frame="3" min="3"/>
    <wait/>
    <cycle id="p" rate="10" cycles="1" dir="back" frame="2"/>
    <wait/>
    <randint name="delay" min="800" max="2000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>
  
  <animation name="sonny">
    <add id="p" image="sonny" x="716" y="253" cols="17"/>

    <define name="dx1" value="-130"/>
    <define name="dy1" value="50"/>
    <define name="ds1" value="0.15"/>
    <define name="dx2" value="-191"/>
    <define name="dy2" value="-64"/>
    <define name="ds2" value="-0.25"/>
    <define name="dx3" value="64"/>
    <define name="dy3" value="-32"/>
    <define name="ds3" value="-0.2"/>
    <define name="walk-speed" value=".14"/>
    <define name="going-right" value="1"/>
    <define name="current-scale" value="0.85"/>
    <scale id="p" factor="current-scale"/>
    
    <randint name="delay" min="300" max="1200"/>
    <pause time="delay"/>

    <start-loop/>

    
    <less-than name="up" value1="dy1" value2="0"/>
    <define name="min-anim" value="1" unless="up"/>
    <define name="min-anim" value="9" if="up"/>
    <add name="max-anim" value1="min-anim" value2="7"/>
    <cycle id="p" rate="6" min="min-anim" max="max-anim"/>

    <greater-than name="right" value1="dx1" value2="0"/>
    <xor name="turn" value1="right" value="going-right"/>
    <flip id="p" if="turn"/>
    <xor name="going-right" value="turn"/>

    <abs name="dscale" value="ds1"/>
    <multiply name="dx" value1="dx1" value2="dx1"/>
    <multiply name="dy" value1="dy1" value2="dy1"/>
    <add name="dist" value1="dx" value2="dy"/>
    <sqrt name="dist"/>
    <divide name="time" value1="dist" value2="walk-speed"/>
    <divide name="scale-speed" value1="dscale" value2="time"/>
    <add name="current-scale" value="ds1"/>
    <expand id="p" scale="current-scale" speed="scale-speed"/>
    <move id="p" dx="dx1" dy="dy1" speed="walk-speed"/>
    <wait/>


    <less-than name="up" value1="dy2" value2="0"/>
    <define name="min-anim" value="1" unless="up"/>
    <define name="min-anim" value="9" if="up"/>
    <add name="max-anim" value1="min-anim" value2="7"/>
    <cycle id="p" rate="6" min="min-anim" max="max-anim"/>

    <greater-than name="right" value1="dx2" value2="0"/>
    <xor name="turn" value1="right" value="going-right"/>
    <flip id="p" if="turn"/>
    <xor name="going-right" value="turn"/>
    
    <abs name="dscale" value="ds2"/>
    <multiply name="dx" value1="dx2" value2="dx2"/>
    <multiply name="dy" value1="dy2" value2="dy2"/>
    <add name="dist" value1="dx" value2="dy"/>
    <sqrt name="dist"/>
    <divide name="time" value1="dist" value2="walk-speed"/>
    <divide name="scale-speed" value1="dscale" value2="time"/>
    <add name="current-scale" value="ds2"/>
    <expand id="p" scale="current-scale" speed="scale-speed"/>
    <move id="p" dx="dx2" dy="dy2" speed="walk-speed"/>
    <wait/>


    <less-than name="up" value1="dy3" value2="0"/>
    <define name="min-anim" value="1" unless="up"/>
    <define name="min-anim" value="9" if="up"/>
    <add name="max-anim" value1="min-anim" value2="7"/>
    <cycle id="p" rate="6" min="min-anim" max="max-anim"/>

    <greater-than name="right" value1="dx3" value2="0"/>
    <xor name="turn" value1="right" value="going-right"/>
    <flip id="p" if="turn"/>
    <xor name="going-right" value="turn"/>

    <abs name="dscale" value="ds3"/>
    <multiply name="dx" value1="dx3" value2="dx3"/>
    <multiply name="dy" value1="dy3" value2="dy3"/>
    <add name="dist" value1="dx" value2="dy"/>
    <sqrt name="dist"/>
    <divide name="time" value1="dist" value2="walk-speed"/>
    <divide name="scale-speed" value1="dscale" value2="time"/>
    <add name="current-scale" value="ds3"/>
    <expand id="p" scale="current-scale" speed="scale-speed"/>
    <move id="p" dx="dx3" dy="dy3" speed="walk-speed"/>
    <wait/>

    
    <cycle id="p" frame="0"/>
    <randint name="delay" min="700" max="2000"/>
    <pause time="delay"/>
    <multiply name="dxt" value1="dx1" value2="-1"/>
    <multiply name="dyt" value1="dy1" value2="-1"/>
    <multiply name="dst" value1="ds1" value2="-1"/>
    <multiply name="dx1" value1="dx3" value2="-1"/>
    <multiply name="dy1" value1="dy3" value2="-1"/>
    <multiply name="ds1" value1="ds3" value2="-1"/>
    <define name="dx3" value="dxt"/>
    <define name="dy3" value="dyt"/>
    <define name="ds3" value="dst"/>
    <multiply name="dx2" value="-1"/>
    <multiply name="dy2" value="-1"/>
    <multiply name="ds2" value="-1"/>
    <end-loop/>
  </animation>

  <animation name="peggy">
    <add-rect id="base" width="1" height="1" opacity="0"/>
    <add id="p" image="peggy" x="608" y="368" cols="7"/>
    <attach id="p" to="base"/>
    <flip id="p"/>
    <define name="dx" value="-90"/>
    <define name="dy" value="-45"/>
    <randint name="delay" min="200" max="1200"/>
    <pause time="delay"/>

    <start-loop/>
    <multiply name="dy" value="-1"/>
    
    <start-loop count="2"/>
    <flip id="p"/>
    <multiply name="dx" value="-1"/>
    <move id="base" dx="dx" dy="dy" speed=".14"/>
    <start-loop count="12"/>
    <set-frame id="p" frame="1"/>
    <pause time="10"/>
    <set-frame id="p" frame="2"/>
    <move id="p" dy="-2" speed=".1"/>
    <pause time="10"/>
    <set-frame id="p" frame="3"/>
    <pause time="10"/>
    <set-frame id="p" frame="4"/>
    <move id="p" dy="2" speed=".2"/>
    <pause time="10"/>
    <set-frame id="p" frame="5"/>
    <move id="p" dy="-2" speed=".1"/>
    <pause time="10"/>
    <set-frame id="p" frame="6"/>
    <pause time="10"/>
    <move id="p" dy="2" speed=".2"/>
    <end-loop/>
    <set-frame id="p" frame="0"/>
    <end-loop/>
    
    <randint name="delay" min="200" max="800"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="jonah">
    <add id="p" image="jonah" x="654" y="555" cols="9"/>
    <flip id="p"/>
    <randint name="delay" max="1000"/>
    <pause time="delay"/>
    <start-loop/>
    <cycle id="p" rate="10" cycles="1" dir="forward"/>
    <wait/>
    <randint name="c" min="1" max="10"/>
    <start-loop count="c"/>
    <cycle id="p" rate="10" cycles="1" dir="forward" frame="5"/>
    <wait/>
    <end-loop/>
    <cycle id="p" rate="10" cycles="1" dir="back" frame="5"/>
    <wait/>
    <randint name="delay" min="300" max="1000"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="cars">
    <start-loop/>
    <randint name="c" min="1" max="5"/>
    <randint name="t" min="1" max="10"/>
    <format name="car_animation" template="car_animation%d" int="t"/>
    <play animation="car_animation" c="c"/>
    <wait-for-animations/>
    <randint name="delay" max="100"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="car_animation1">
    <format name="car" template="mapscreen_car%dsmalldown" int="c"/>
    <play animation="drive_car" car="car" speed="1.2" drag="1.001"
          start-x="477" start-y="169" start-scale="0.75"
          end-x="-30" end-y="272" end-scale="1.0"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation2">
    <format name="car" template="mapscreen_car%dsmallup" int="c"/>
    <play animation="drive_car" car="car" speed="1.3" drag="0.9995"
          start-x="-30" start-y="283" start-scale="1.0"
          end-x="477" end-y="175" end-scale="0.75"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation3">
    <format name="car" template="mapscreen_car%dlargeup" int="c"/>
    <play animation="drive_car" car="car" speed="1.3" drag="0.9995"
          start-x="15" start-y="586" start-scale="1.0"
          end-x="706" end-y="305" end-scale="0.9"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation4">
    <format name="car" template="mapscreen_car%dlargedown" int="c"/>
    <play animation="drive_car" car="car" speed="1.3" drag="1.0005"
          start-x="706" start-y="275" start-scale="0.9"
          end-x="15" end-y="555" end-scale="1.0"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation5">
    <format name="car" template="mapscreen_car%dsmallup" int="c"/>
    <play animation="drive_car" car="car" speed="1" drag="0.999"
          start-x="-30" start-y="283" start-scale="1.0"
          end-x="275" end-y="219" end-scale="0.9"/>
    <wait-for-animations/>
    <pause time="50"/>
    <format name="car" template="mapscreen_car%dlargedown" int="c"/>
    <play animation="drive_car" car="car" speed="0.9" drag="1.001"
          start-x="275" start-y="243" start-scale="0.6"
          end-x="800" end-y="445" end-scale="1.0" mirror="true"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation6">
    <format name="car" template="mapscreen_car%dsmalldown" int="c"/>
    <play animation="drive_car" car="car" speed="0.9" drag="1.001"
          start-x="477" start-y="169" start-scale="0.75"
          end-x="275" end-y="209" end-scale="0.9"/>
    <wait-for-animations/>
    <pause time="50"/>
    <format name="car" template="mapscreen_car%dlargedown" int="c"/>
    <play animation="drive_car" car="car" speed="1" drag="1.001"
          start-x="275" start-y="243" start-scale="0.6"
          end-x="800" end-y="445" end-scale="1.0" mirror="true"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation7">
    <format name="car" template="mapscreen_car%dlargeup" int="c"/>
    <play animation="drive_car" car="car" speed="1.3" drag="0.999"
          start-x="800" start-y="419" start-scale="1.0" mirror="true"
          end-x="265" end-y="219" end-scale="0.6"/>
    <wait-for-animations/>
    <pause time="50"/>
    <format name="car" template="mapscreen_car%dsmalldown" int="c"/>
    <play animation="drive_car" car="car" speed="1" drag="1.001"
          start-x="275" start-y="209" start-scale="0.9"
          end-x="-30" end-y="272" end-scale="1.0"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation8">
    <format name="car" template="mapscreen_car%dlargeup" int="c"/>
    <play animation="drive_car" car="car" speed="1.3" drag="0.999"
          start-x="800" start-y="418" start-scale="1.0" mirror="true"
          end-x="265" end-y="219" end-scale="0.6"/>
    <wait-for-animations/>
    <pause time="50"/>
    <format name="car" template="mapscreen_car%dsmallup" int="c"/>
    <play animation="drive_car" car="car" speed="0.9" drag="0.999"
          start-x="275" start-y="217" start-scale="0.9"
          end-x="477" end-y="176" end-scale="0.75"/>
    <wait-for-animations/>
  </animation>

  <animation name="car_animation9">
    <format name="car" template="mapscreen_car%dlargeup" int="c"/>
    <play animation="drive_car" car="car" speed="1.3" drag="0.9995"
          start-x="15" start-y="586" start-scale="1.0"
          end-x="581" end-y="357" end-scale="0.9"/>
    <wait-for-animations/>
    <format name="car" template="mapscreen_car%dlargedown" int="c"/>
    <play animation="drive_car" car="car" speed="1.1" drag="1.001"
          start-x="581" start-y="357" start-scale="0.9"
          end-x="800" end-y="445" end-scale="1.0" mirror="true"/>
    <wait-for-animations/>
  </animation>

  <animation name="drive_car">
    <subtract name="dx" value1="start-x" value2="end-x"/>
    <subtract name="dy" value1="start-y" value2="end-y"/>
    <multiply name="dx" value="dx"/>
    <multiply name="dy" value="dy"/>
    <add name="dist" value1="dx" value2="dy"/>
    <sqrt name="dist"/>
    <divide name="time" value1="dist" value2="speed"/>
    <subtract name="ds" value1="start-scale" value2="end-scale"/>
    <abs name="ds"/>
    <divide name="scale-speed" value1="ds" value2="time"/>
    
    <add id="c" image="car" x="start-x" y="start-y" cols="2"/>
    <flip id="c" if="mirror"/>
    <decay id="c" horiz="drag" vert="drag"/>
    <scale id="c" factor="start-scale"/>
    <expand id="c" scale="end-scale" speed="scale-speed"/>
    <cycle id="c" rate="8"/>
    <remove id="c" x="end-x" y="end-y" speed="speed"/>
    <wait/>   
  </animation>

  <animation name="mexican_lights">
    <add id="lights" image="mapscreen_mexicanlights" x="435" y="482"/>

    <start-loop/>
    <randint name="delay" min="300" max="700"/>
    <pause time="delay"/>
    <randint name="c" min="2" max="5"/>
    <start-loop count="c"/>
    <fade id="lights" opacity="0.4" speed="0.15"/>
    <wait/>
    <randint name="delay" min="2" max="8"/>
    <pause time="2"/>
    <fade id="lights" opacity="1" speed="0.15"/>
    <wait/>
    <randint name="delay" min="2" max="8"/>
    <pause time="2"/>
    
    <rand name="r" max="1"/>
    <less-than name="b" value1="r" value2="0.2"/>
    <fade id="lights" opacity="0" speed="0.15" if="b"/>
    <wait if="b"/>
    
    <end-loop/>
    <end-loop/>
  </animation>

  <animation name="waves">
    <start-loop/>
    <randint name="w" min="1" max="3"/>
    <format name="wave_image" template="wave%d" int="w"/>
    <randint name="x" min="100" max="200"/>
    <multiply name="y" value1="x" value2="-0.165"/>
    <add name="y" value="155"/>
    <randint name="dist" min="13" max="25"/>
    <multiply name="dx" value1="dist" value2="-0.165"/>
    <add name="x" value="dx"/>
    <subtract name="y" value="dist"/>
    <add id="wave" image="wave_image" x="x" y="y" opacity="0"/>
    <fade id="wave" opacity="1" speed="0.07"/>
    <expand id="wave" scale="2.0" speed="0.0025"/>
    <move id="wave" dx="60" dy="120" speed="0.09"/>
    <multiply name="delay" value1="dist" value2="11.26"/>
    <pause time="delay"/>
    <decay id="wave" horiz="0.995" vert="0.995"/>
    <fade-out id="wave" speed="0.01"/>
    <randint name="delay" min="30" max="120"/>
    <pause time="delay"/>
    <end-loop/>
  </animation>

  <animation name="boat">
    <randint name="boat-x" min="30" max="300"/>
    <add id="boat" image="mapscreen_boat" x="boat-x"/>
    <start-loop/>
    <randint name="boat-y" min="45" max="85"/>
    <move id="boat" y="boat-y" speed="0"/>
    <move id="boat" x="600" speed="0.08"/>
    <wait/>
    <flip id="boat"/>
    <randint name="boat-y" min="45" max="85"/>
    <move id="boat" y="boat-y" speed="0"/>
    <move id="boat" x="-250" speed="0.08"/>
    <wait/>
    <flip id="boat"/>
    <end-loop/>
  </animation>

  <animation name="plane">
    <start-loop/>
    <randint name="delay" min="800" max="3000"/>
    <pause time="delay"/>
    <add id="plane" image="mapscreen_plane" x="-450" y="-140" cols="2"/>
    <cycle id="plane" rate="10"/>
    <scale id="plane" factor="0.35"/>
    <expand id="plane" scale="0.8" speed="0.0003"/>
    <rotate id="plane" angle="-15" speed="0"/>
    <rotate id="plane" angle="30" speed="0.025"/>
    <arc id="plane" x="800" y="160" speed="1" accel="-.00035"/>
    <wait/>
    <remove id="plane"/>
    <end-loop/>
  </animation>

  <animation name="country_tooltip">
    <define name="tooltip-x" value="x"/>
    <define name="tooltip-y" value="y"/>
    
    <add-rect id="tooltip" x="x" y="y" width="600" height="500" alpha="0"/>
    
    <add name="y" value="40"/>
    <define name="title-y" value="y"/>

    <add name="grade-x" value1="x" value2="125"/>
    <add name="name-x" value1="x" value2="140"/>
    <define name="maxwidth" value="0"/>
    <define name="type" value="recipe"/>

    <add name="y" value="15"/>

    <start-loop count="2"/>
    <define name="index" value="0"/>
    <start-loop/>
    <type index="index"/>
    <break unless="valid"/>
    <add name="y" value="25"/>
    <add to="tooltip" text="name" lookup="false" x="name-x" y="y"/>
    <add name="grade-y" value1="y" value2="4"/>
    <move id="grade" x="grade-x" y="grade-y" align="right" speed="0" if="have-grade"/>
    <attach id="grade" to="tooltip" if="have-grade"/>
    <add name="index" value="1"/>
    <end-loop/>
    <define name="type" value="exam"/>
    <add name="y" value="20"/>
    <end-loop/>

    <add name="x2" value1="maxwidth" value2="name-x"/>
    <add name="x2" value="45"/>
    <add name="y" value="76"/>

    <subtract name="title-x" value1="x2" value2="x"/>
    <divide name="title-x" value="2"/>
    <add name="title-x" value="x"/>

    <add to="tooltip" text="country-name" x="title-x" y="title-y" align="center"/>

    <subtract name="width" value1="x2" value2="tooltip-x"/>
    <subtract name="height" value1="y" value2="tooltip-y"/>
    <add id="tb" textbox="maptextbox" x="tooltip-x" y="tooltip-y" align="left" valign="top" width="width" height="height"/>

    <merge id="tooltip" with="tb"/>

    <rotate id="tb" angle="90" speed="0" y="1"/>
    <rotate id="tb" angle="270" speed="4.5"/>
  </animation>

  <animation name="remove_country_tooltip">
    <fade-out id="tb" speed="0.1"/>
  </animation>

  <animation name="reveal_country">
    <format name="image" template="%sDisabled" string="country"/>
    <add id="i" image="image"/>
    <pause time="25"/>
    <sound name="newcountry"/>
    <fade-out id="i" speed="0.01"/>
    <wait/>
  </animation>

  <animation name="conveyor_belt">
    <define name="interval" value="108"/>
    <multiply name="x" value1="interval" value2="-1"/>
    <start-loop count="9"/>
    <add name="x" value="interval"/>
    <less-than name="on-screen" value1="x" value2="800"/>
    <add image="conveyorbelt_rail" x="x" y="600" valign="bottom" if="on-screen"/>
    <add id="belt" image="conveyorbelt" x="x" y="585" valign="bottom"/>
    <remove id="belt" x="0" align="right" speed="belt-speed"/>
    <end-loop/>

    <divide name="delay" value1="interval" value2="belt-speed"/>
    <start-loop/>
    <pause time="delay"/>
    <add id="belt" image="conveyorbelt" x="x" y="585" valign="bottom"/>
    <remove id="belt" x="0" align="right" speed="belt-speed"/>
    <end-loop/>
    
  </animation>

  <animation name="sifter">
    <add id="sifter" image="sifter" x="-20" y="-170"/>
    <define name="x-speed" value="-4"/>
    <define name="y-speed" value="1.5"/>
    <define name="time" value="6"/>

    <multiply name="dx" value1="x-speed" value2="time"/>
    <multiply name="dy" value1="y-speed" value2="time"/>
    <multiply name="dx" value="-1"/>
    <multiply name="dy" value="-1"/>
    <move id="sifter" dx="dx" dy="dy" speed="0"/>
    
    <start-loop/>

    <define name="dx" value="x-speed"/>
    <define name="dy" value="y-speed"/>
    <define name="c" value="time"/>
    <start-loop/>
    <pause time="1"/>
    <continue unless="marinating"/>
    <move id="sifter" dx="dx" dy="dy" speed="0"/>
    <subtract name="c" value="1"/>
    <break unless="c"/>
    <end-loop/>
    <signal message="brush"/>
    
    <!-- second loop goes half speed and takes twice as long -->
    <multiply name="dx" value="-.5"/>
    <multiply name="dy" value="-.5"/>
    <multiply name="c" value1="time" value2="2"/>
    <start-loop/>
    <pause time="1"/>
    <continue unless="marinating"/>
    <move id="sifter" dx="dx" dy="dy" speed="0"/>
    <subtract name="c" value="1"/>
    <break unless="c"/>
    <end-loop/>
    
    <end-loop/>
  </animation>

  <animation name="countdown">
    <pause time="100"/>
    <add id="n"	image="three" x="400" y="315" align="center" valign="center"/>
    <scale id="n" factor="0.3"/>
    <expand id="n" scale="1.0" speed="0.03"/>
    <pause time="100"/>
    <fade-out id="n" speed="0.05"/>
    <add id="n"	image="two" x="400" y="315" align="center" valign="center"/>
    <scale id="n" factor="0.3"/>
    <expand id="n" scale="1.0" speed="0.03"/>
    <pause time="100"/>
    <fade-out id="n" speed="0.05"/>
    <add id="n"	image="one" x="400" y="315" align="center" valign="center"/>
    <scale id="n" factor="0.3"/>
    <expand id="n" scale="1.0" speed="0.03"/>
    <pause time="100"/>
    <fade-out id="n" speed="0.05"/>
  </animation>

  <animation name="roll_mochi">
    <move id="hand" x="x" y="y"/>
    <wait/>
    
    <add name="trace-x" value1="x" value2="95"/>
    <add name="trace-y" value1="y" value2="165"/>
    <add name="circle-x" value1="x" value2="0"/>
    <add name="circle-y" value1="y" value2="50"/>
    
    <trace-circle x="trace-x" y="trace-y"/>
    <define name="angle" value="360"/>
    <load animation="roll_mochi_hand"/>
    
    <trace-circle x="trace-x" y="trace-y" ccw="false"/>
    <define name="angle" value="-360"/>
    <load animation="roll_mochi_hand"/>
    
    <format name="old_mochi" template="mochi%d_f" int="n"/>
    <remove id="old_mochi"/>
    <format name="button" template="icecream%d" int="n"/>
    <remove-button id="button"/>

    <add name="final-x" value1="x" value2="40"/>
    <add name="final-y" value1="y" value2="110"/>
    <add image="done_mochi" x="final-x" y="final-y"/>
    
  </animation>

  <animation name="roll_mochi_hand">
    <circle id="hand" x="circle-x" y="circle-y" angle="angle" speed="7"/>
    <pause time="12"/>
    <set-frame id="hand" frame="1"/>
    <pause time="5"/>
    <set-frame id="hand" frame="2"/>
    <pause time="30"/>
    <set-frame id="hand" frame="1"/>
    <pause time="5"/>
    <set-frame id="hand" frame="0"/>
    <wait/>
  </animation>

  <animation name="scoop_dropped_food">
    <expand id="food" scale="0.8" speed="0.01"/>
    <wait/>
    <sound name="squish"/>
    <remove id="food"/>
    <add id="food" image="dropped-food-image" align="center" valign="center"/>
    <pause time="50"/>
    <fade-out id="food"/>
    <wait/>
  </animation>

  <animation name="grind0">
    <move id="pestle" dy="pestle-dy" speed="1"/>
    <wait/>
    <multiply name="pestle-dy" value="-1"/>
    <move id="pestle" dy="pestle-dy" speed="1"/>
    <wait/>
    <pause time="20"/>
    <signal message="resume"/>
  </animation>

  <animation name="grind1">
    <move id="pestle" dy="pestle-dy" speed="3"/>
    <wait/>
    <signal message="strong"/>
    <sound name="squish"/>
    <multiply name="pestle-dy" value="-1"/>
    <move id="pestle" dy="pestle-dy" speed="1"/>
    <wait/>
    <pause time="20"/>
    <signal message="next-food"/>
  </animation>

  <animation name="grind2">
    <move id="pestle" dy="pestle-dy" speed="10"/>
    <wait/>
    <signal message="splatter"/>
    <sound name="squish"/>
    <sound name="incorrect"/>
    <format name="splat1" template="grind_%s_splat1" string="food"/>
    <format name="splat2" template="grind_%s_splat2" string="food"/>
    <format name="splat3" template="grind_%s_splat3" string="food"/>
    <add id="s1" image="splat1" x="330" y="200" align="center" valign="center"/>
    <scale id="s1" factor="0.01"/>
    <expand id="s1" scale="1.0" speed="0.07"/>
    <add id="s2" image="splat2" x="360" y="425" align="center" valign="center"/>
    <scale id="s2" factor="0.01"/>
    <expand id="s2" scale="1.0" speed="0.07"/>
    <add id="s3" image="splat3" x="445" y="300" align="center" valign="center"/>
    <scale id="s3" factor="0.01"/>
    <expand id="s3" scale="1.0" speed="0.07"/>
    <multiply name="pestle-dy" value="-1"/>
    <move id="pestle" dy="pestle-dy" speed="1"/>
    <wait/>
    <fade-out id="s1" speed="0.01"/>
    <fade-out id="s2" speed="0.01"/>
    <fade-out id="s3" speed="0.01"/>
    <pause time="20"/>
    <signal message="next-food"/>
    <remove id="pestle"/>
    <wait/>
  </animation>

  <animation name="found_fridge_item">
    <spin id="item" velocity="-5"/>
    <pause time="100"/>
    <remove id="item" x="800"/>
    <wait/>
  </animation>

  <animation name="cross_out_text">
    <add-rect id="line" width="width" height="2" valign="center"/>
    <define name="x2" value="0"/>
    <start-loop count="width"/>
    <add name="x2" value="1"/>
    <clip id="line" x2="x2"/>
    <pause time="1"/>
    <end-loop/>
    <signal message="next-item"/>
    <persist/>
  </animation>


  <animation name="knead_food_init">
    <add id="lefthand_h" image="knead_side_top" x="0" align="right" y="500" valign="bottom" cols="2"/>
    <add id="leftarm_h" image="knead_side_bottom" x="-16" align="right" y="500" valign="top"/>
    <attach id="leftarm_h" to="lefthand_h"/>

    <add id="righthand_h" image="knead_side_top" x="800" y="500" valign="bottom" cols="2"/>
    <add id="rightarm_h" image="knead_side_bottom" x="816" y="500" valign="top"/>
    <attach id="rightarm_h" to="righthand_h"/>
    <flip id="righthand_h"/>
    <flip id="rightarm_h"/>


    <add id="lefthand_v" image="knead_top_top" x="0" align="right" y="500" valign="bottom" cols="2"/>
    <add id="leftarm_v" image="knead_top_bottom" x="-59" align="right" y="500" valign="top"/>
    <attach id="leftarm_v" to="lefthand_v"/>

    <add id="righthand_v" image="knead_top_top" x="800" y="500" valign="bottom" cols="2"/>
    <add id="rightarm_v" image="knead_top_bottom" x="859" y="500" valign="top"/>
    <attach id="rightarm_v" to="righthand_v"/>
    <flip id="righthand_v"/>
    <flip id="rightarm_v"/>

    <move id="lefthand_v" x="380" align="right" speed="0"/>
    <move id="righthand_v" x="420" speed="0"/>
    <hide id="lefthand_v"/>
    <hide id="righthand_v"/>

    <move id="lefthand_h" x="295" align="right"/>
    <move id="righthand_h" x="505"/>
    <persist/>
  </animation>

  <animation name="knead_food_horiz">
    <show id="lefthand_h"/>
    <show id="righthand_h"/>
    <hide id="lefthand_v"/>
    <hide id="righthand_v"/>

    <set-frame id="lefthand_h" frame="1"/>
    <set-frame id="righthand_h" frame="1"/>
    <move id="lefthand_h" dx="50" speed="2.5"/>
    <move id="righthand_h" dx="-50" speed="2.5"/>
    <wait/>
    <set-frame id="lefthand_h" frame="0"/>
    <set-frame id="righthand_h" frame="0"/>
    <move id="lefthand_h" dx="-50" speed="2.5"/>
    <move id="righthand_h" dx="50" speed="2.5"/>
    <persist/>
  </animation>

  <animation name="knead_food_vert">
    <show id="lefthand_v"/>
    <show id="righthand_v"/>
    <hide id="lefthand_h"/>
    <hide id="righthand_h"/>

    <set-frame id="lefthand_v" frame="1"/>
    <set-frame id="righthand_v" frame="1"/>
    <move id="lefthand_v" dy="-50" speed="2.5"/>
    <move id="righthand_v" dy="-50" speed="2.5"/>
    <wait/>
    <set-frame id="lefthand_v" frame="0"/>
    <set-frame id="righthand_v" frame="0"/>
    <move id="lefthand_v" dy="50" speed="2.5"/>
    <move id="righthand_v" dy="50" speed="2.5"/>
    <persist/>
  </animation>

  <animation name="knead_food_throw">
    <show id="lefthand_h"/>
    <show id="righthand_h"/>
    <hide id="lefthand_v"/>
    <hide id="righthand_v"/>

    <move id="lefthand_h" x="0" align="right"/>
    <move id="righthand_h" x="800"/>
    <persist/>
  </animation>

  <animation name="knead_food_throw_done">
    <pause time="30"/>
    <move id="lefthand_h" x="295" align="right"/>
    <move id="righthand_h" x="505"/>
    <persist/>
  </animation>


  <animation name="tamago_burnt">
     <add id="egg4" image="tamago_3" opacity="0" x="360" y="420" valign="bottom" align="center"/>
	  <fade id="egg4" opacity="1" speed="0.02"/>
	  <wait/>
	  <remove id="egg2"/>
    <lose/>
  </animation>

  <!-- churro animations -->

	<animation name="roll-churro-sugar">
		<add id="churroa" image="churro2" x="160" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro2" x="180" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro3" x="200" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro3" x="220" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro3" x="240" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro3" x="260" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro4" x="280" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro4" x="300" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro4" x="320" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
	</animation>
	<animation name="roll-churro-cinnamon">
		<add id="churroa" image="churro6" x="520" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro6" x="540" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro7" x="560" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro7" x="580" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro8" x="600" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro8" x="620" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro9" x="640" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
		<add id="churrob" image="churro9" x="660" y="135"/>
		<flip id="churrob" dir="horizontal"/>
		<pause time="5"/>		
		<remove id="churrob"/>
		<add id="churroa" image="churro9" x="680" y="135"/>
		<pause time="5"/>		
		<remove id="churroa"/>
	</animation>


  <!-- food processor animations -->

	<animation name="drop-garlic-process">
		<add id="garlic" image="drop_garlic" x="311" y="-100" z="-1"/>
		<remove id="garlic" y="339" speed="6"/>
		<add id="garlic2" image="drop_garlic" x="399" y="-100" z="-1"/>
		<remove id="garlic2" y="339" speed="6"/>
		<add id="garlic3" image="drop_garlic" x="345" y="-100" z="-1"/>
		<remove id="garlic3" y="339" speed="6"/>
		<wait/>
	</animation>

	<animation name="drop-garlic2-process">
		<add id="garlic" image="drop_garlic" x="305" y="-100" z="-1"/>
		<remove id="garlic" y="339"/>
		<add id="garlic2" image="drop_garlic" x="315" y="-100" z="-1"/>
		<remove id="garlic2" y="339"/>
		<add id="garlic3" image="drop_garlic" x="325" y="-100" z="-1"/>
		<remove id="garlic3" y="339"/>
		<wait/>
	</animation>

	<animation name="drop-almond-process">
		<add id="almond" image="drop_almonds" x="311" y="-100" z="-1"/>
		<clip id="almond" position="absolute" y2="337"/>
		<remove id="almond" y="339"/>
		<pause time="10"/>
		<add id="almond2" image="drop_almonds" x="399" y="-100" z="-1"/>
		<clip id="almond2" position="absolute" y2="337"/>
		<remove id="almond2" y="339"/>
		<pause time="10"/>
		<add id="almond3" image="drop_almonds" x="345" y="-100" z="-1"/>
		<clip id="almond3" position="absolute" y2="337"/>
		<remove id="almond3" y="339"/>
		<pause time="10"/>
		<add id="almond4" image="drop_almonds" x="330" y="-100" z="-1"/>
		<clip id="almond4" position="absolute" y2="337"/>
		<remove id="almond4" y="339"/>
		<pause time="10"/>
		<add id="almond5" image="drop_almonds" x="379" y="-100" z="-1"/>
		<clip id="almond5" position="absolute" y2="337"/>
		<remove id="almond5" y="339"/>
		<pause time="10"/>
		<add id="almond6" image="drop_almonds" x="365" y="-100" z="-1"/>
		<clip id="almond6" position="absolute" y2="337"/>
		<remove id="almond6" y="339"/>
		<wait/>
	</animation>

	<animation name="drop-cilantro-process">
		<add id="cilantro" image="drop_cilantro" x="301" y="-100" z="-1"/>
		<clip id="cilantro" position="absolute" y2="337"/>
		<remove id="cilantro" y="339"/>
		<pause time="10"/>
	</animation>

	<animation name="drop-parmesan-process">
		<add id="garlic" image="drop_parmesan" x="301" y="-100" z="-1"/>
		<clip id="garlic" position="absolute" y2="345"/>
		<remove id="garlic" y="345"/>
	</animation>

	<animation name="drop-onions-process">
		<add id="onion" image="drop_onion" x="301" y="-100" z="-1"/>
		<clip id="onion" position="absolute" y2="337"/>
		<remove id="onion" y="339"/>
	</animation>

	<animation name="drop-pinenuts-process">
		<add id="garlic" image="drop_pinenuts" x="301" y="-100" z="-1"/>
		<remove id="garlic" y="339"/>
		<pause time="10"/>
		<add id="garlic2" image="drop_pinenuts" x="331" y="-100" z="-1"/>
		<remove id="garlic2" y="334"/>
		<pause time="10"/>
	</animation>
	<animation name="drop-flour-process">
		<add id="flour" image="drop_flour" x="320" y="-20" z="-1"/>
		<remove id="flour" y="350"/>
		<clip id="flour" position="absolute" y2="350"/>
	</animation>
	<animation name="drop-sugar-process">
		<add id="measuringcup2" image="measuringcup2" x="309" y="93"/>
		<move id="measuringcup2" dy="-50" speed="2"/>
		<add id="sugar2" image="measuringcup_sugar_pour" x="325" y="92" z="-1" cols="2"/>
		<cycle id="sugar" rate="10"/>
		<clip id="sugar2" position="absolute" y2="350"/>
		<remove id="sugar2" y="350" speed="2"/>
		<pause time="50"/>
		<remove id="measuringcup2"/>
		<wait/>
	</animation>
	<animation name="drop-limeleaves-process">
		<add id="sugar" image="drop_limeleaves" x="310" y="-20" z="-1"/>
		<remove id="sugar" y="350"/>
		<clip id="sugar" position="absolute" y2="350"/>
		<wait/>
	</animation>
	<animation name="drop-shrimppaste-process">
		<add id="sugar" image="drop_shrimppaste" x="310" y="-20" z="-1"/>
		<remove id="sugar" y="350"/>
		<clip id="sugar" position="absolute" y2="350"/>
		<wait/>
	</animation>
	<animation name="pour-flour-process">
		<add id="bowl" image="bowl_pour" x="502" y="192"/>
		<rotate-from id="bowl" x="0" />
		<rotate id="bowl" angle="90" speed="3"/>
		<wait/>
		<add id="flour" image="pour_flour_blender" x="389" y="165" z="-1" cols="2"/>
		<pause time="20"/>
		<set-frame id="flour" frame="1"/>
		<pause time="20"/>
		<remove id="flour"/>
		<pause time="20"/>
		<remove id="bowl"/>
	</animation>

  <!-- mixer animations -->
	<animation name="drop-almondextract-mix">
		<add id="almond" image="drop_almondextract" x="438" y="-100"/>
		<clip id="almond" position="absolute" y2="380"/>
		<remove id="almond" speed="6" y="380"/>
	</animation>
	<animation name="drop-egg-mix">
		<add id="vanilla" image="falling_egg" x="350" y="-100"/>
		<clip id="vanilla" position="absolute" y2="370"/>
		<remove id="vanilla" y="370"/>
	</animation>
	<animation name="drop-vanilla-mix">
		<add id="vanilla" image="drop_vanilla" x="438" y="-100"/>
		<clip id="vanilla" position="absolute" y2="350"/>
		<remove id="vanilla" speed="5" y="350"/>
	</animation>
	<animation name="drop-vegetableoil-mix">
		<add id="vanilla" image="drop_vegetableoil" x="438" y="-100"/>
		<clip id="vanilla" position="absolute" y2="350"/>
		<remove id="vanilla" speed="5" y="370"/>
	</animation>
	<animation name="drop-yeast-mix">
		<add id="vanilla" image="drop_yeast" x="410" y="-100"/>
		<clip id="vanilla" position="absolute" y2="365"/>
		<remove id="vanilla" y="365"/>
	</animation>
	<animation name="pour-flour-mix2">
		<add id="bowl" image="bowl_pour" x="542" y="192"/>
		<rotate-from id="bowl" x="0" />
		<rotate id="bowl" angle="90" speed="3"/>
		<wait/>
		<add id="flour" image="pour_flour_blender" x="429" y="165" z="-1" cols="2"/>
		<pause time="20"/>
		<set-frame id="flour" frame="1"/>
		<pause time="20"/>
		<remove id="flour"/>
		<remove id="bowl"/>
	</animation>
	<animation name="pour-flour-mix3">
		<add id="bowl" image="bowl_pour" x="542" y="192"/>
		<rotate-from id="bowl" x="0" />
		<rotate id="bowl" angle="90" speed="3"/>
		<wait/>
		<add id="flour" image="pour_flour_blender2" x="429" y="165" z="-1" cols="2"/>
		<pause time="20"/>
		<set-frame id="flour" frame="1"/>
		<pause time="20"/>
		<remove id="flour"/>
		<remove id="bowl"/>
	</animation>
	<animation name="pour-broth-mix">
		<add id="wine" image="pour_broth2" x="430" y="-5" cols="2"/>
		<clip id="wine" y2="400"/>
		<cycle id="wine" rate="20"/>
		<pause time="300"/>
	</animation>
	<animation name="pour-water-mix">
		<add id="water" image="measuringcup_water" x="542" y="227"/>
		<add id="cup" image="measuringcup_clear" x="542" y="227"/>
		<pause time="450"/>
		<remove id="cup"/>
	</animation>
	<animation name="pour-water-mix2">
		<add id="water" image="measuringcup_water" x="622" y="252"/>
		<add id="cup" image="measuringcup_clear" x="622" y="247"/>
		<rotate-from id="cup" x="-100"/>
		<rotate-from id="water" x="-100"/>
		<rotate id="cup" angle="90" speed="3"/>
		<rotate id="water" angle="90" speed="3"/>
		<wait/>
		<add id="waterpour" image="measuringcup_water_pour" x="440" y="140" z="-1" cols="2"/>
		<remove id="water"/>
		<pause time="20"/>
		<set-frame id="waterpour" frame="1"/>
		<pause time="20"/>
		<remove id="cup"/>
		<remove id="waterpour"/>
	</animation>
	<animation name="drop-salt-mix">
		<remove id="shaker"/>
		<add id="shaker" image="pour_salt" x="440" y="100"/>
		<bob id="shaker" height="50" speed="50"/>
		<pause time="100"/>
		<remove id="shaker"/>
		</animation>
	<animation name="drop-cumin-mix">
		<add id="teaspoon" image="teaspoon" x="405" y="100"/>
		<add id="cumin" image="teaspoon_cumin" x="405" y="100"/>
		<bob id="cumin" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="405" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="cumin" y="400" z="-1"/>
		<fade id="cumin" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="cumin"/>
		<remove id="teaspoon2"/>
	</animation>
	<animation name="drop-cayenne-mix">
		<add id="teaspoon" image="teaspoon" x="405" y="100"/>
		<add id="cayenne" image="teaspoon_cayenne" x="405" y="100"/>
		<bob id="cayenne" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="405" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="cayenne" y="400" z="-1"/>
		<fade id="cayenne" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="cayenne"/>
		<remove id="teaspoon2"/>
	</animation>				
	<animation name="drop-shortening-mix">
		<add id="shortening" image="drop_shortening" x="400" y="-100"/>
		<clip id="shortening" position="absolute" y2="380"/>
		<remove id="shortening" speed="6" y="380"/>
		<wait/>
	</animation>
	<animation name="drop-sugar-mix">
		<add id="measuringcup2" image="measuringcup2" x="400" y="113"/>
		<flip id="measuringcup2" dir="vertical"/>
		<add id="sugar" image="measuringcup_sugar" x="401" y="113"/>
		<pause time="20"/>
		<flip id="measuringcup2" dir="vertical"/>
		<move id="measuringcup2" dy="-50" speed="2"/>
		<remove id="sugar"/>
		<add id="sugar2" image="measuringcup_sugar_pour" x="423" y="112" cols="2"/>
		<cycle id="sugar" rate="10"/>
		<clip id="sugar2" position="absolute" y2="370"/>
		<remove id="sugar2" y="420" speed="2"/>		
		<pause time="50"/>
		<remove id="measuringcup2"/>
		<wait/>
	</animation>


<!-- wok animations -->
	<animation name="drop-bellpeppers-wok">
		<add id="greenpepper1" image="drop_greenpepper1" x="315" y="-20"/>
		<clip id="greenpepper1" position="absolute" y2="250"/>
		<remove id="greenpepper1" y="225"/>
		<pause time="10"/>
		<add id="greenpepper2" image="drop_greenpepper2" x="365" y="-20"/>
		<clip id="greenpepper2" position="absolute" y2="250"/>
		<remove id="greenpepper2" y="250"/>
		<pause time="10"/>

		<add id="redpepper3" image="drop_redpepper3" x="290" y="-20"/>
		<clip id="redpepper3" position="absolute" y2="250"/>
		<remove id="redpepper3" y="200"/>
		<pause time="10"/>

		<add id="redpepper4" image="drop_redpepper1" x="340" y="-20"/>
		<clip id="redpepper4" position="absolute" y2="250"/>
		<remove id="redpepper4" y="250"/>	
		<pause time="10"/>

		<add id="greenpepper3" image="drop_greenpepper3" x="290" y="-20"/>
		<clip id="greenpepper3" position="absolute" y2="250"/>
		<remove id="greenpepper3" y="225"/>
		<pause time="10"/>

		<add id="redpepper1" image="drop_redpepper1" x="315" y="-20"/>
		<clip id="redpepper1" position="absolute" y2="250"/>
		<remove id="redpepper1" y="250"/>
		<pause time="10"/>

		<add id="greenpepper4" image="drop_greenpepper1" x="340" y="-20"/>
		<clip id="greenpepper4" position="absolute" y2="250"/>
		<remove id="greenpepper4" y="200"/>	
		<pause time="10"/>

		<add id="redpepper2" image="drop_redpepper2" x="365" y="-20"/>
		<clip id="redpepper2" position="absolute" y2="250"/>
		<remove id="redpepper2" y="225"/>
		<pause time="10"/>

	</animation>
	<animation name="pour-coconutmilk-wok">
    <add id="pool" image="pool_milk" x="326" y="221" opacity="0"/>
    <add id="wine" image="pour_milk" x="360" y="-5" cols="2"/>
    <clip id="wine" y2="250"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="pour-milk-wok">
    <add id="pool" image="pool_milk" x="326" y="251" opacity="0"/>
    <add id="wine" image="pour_milk" x="360" y="-5" cols="2"/>
    <clip id="wine" y2="280"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="pour-cream-wok">
    <add id="pool" image="pool_milk" x="321" y="231" opacity="0"/>
    <add id="wine" image="pour_milk" x="355" y="-5" cols="2"/>
    <clip id="wine" y2="260"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="200"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="pour-soysauce-wok-padthai">
    <add id="pool" image="pool_soysauce" x="318" y="223" opacity="0"/>
    <add id="wine" image="pour_soysauce" x="352" y="-5" cols="2"/>
    <clip id="wine" y2="252"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="pour-soysauce-wok">
    <add id="pool" image="pool_soysauce" x="326" y="251" opacity="0"/>
    <add id="wine" image="pour_soysauce" x="360" y="-5" cols="2"/>
    <clip id="wine" y2="280"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="drop-chicken-wok">
		<add id="garlic" image="drop_chicken" x="280" y="-400"/>
		<remove id="garlic" y="200"/>
		<wait/>
	</animation>
	<animation name="drop-chicken-wok2">
		<add id="garlic" image="drop_chicken" x="280" y="-400"/>
		<remove id="garlic" y="175"/>
		<wait/>
	</animation>
	<animation name="drop-cookedegg-wok">
		<add id="garlic" image="drop_cookedegg" x="333" y="-400"/>
		<remove id="garlic" y="200"/>
		<wait/>
	</animation>
	<animation name="drop-garlic-wok">
		<add id="garlic" image="diced_garlic" x="300" y="-400"/>
		<remove id="garlic" y="210"/>
		<wait/>
	</animation>
  	<animation name="padthai-fly-wok">
  		<add id="padthai1" image="flip_chickenpadthai1" x="245" y="120"/>
  		<remove id="padthai1" y="-300"/>		
  		<wait/>
	</animation>
  	<animation name="padthai-fly-wok2">
  		<add id="padthai2" image="flip_chickenpadthai2" x="245" y="-300"/>
  		<remove id="padthai2" y="170"/>		
  		<wait/>
	</animation>
	<animation name="drop-pineapple-wok">
		<add id="pineapple1" image="drop_pineapple1" x="416" y="-200"/>
		<remove id="pineapple1" y="232"/>

		<add id="pineapple1b" image="drop_pineapple1" x="386" y="-200"/>
		<remove id="pineapple1b" y="222"/>

		<add id="pineapple2" image="drop_pineapple2" x="300" y="-200"/>
		<remove id="pineapple2" y="223"/>

		<add id="pineapple2b" image="drop_pineapple2" x="340" y="-200"/>
		<remove id="pineapple2b" y="235"/>

		<wait/>
	</animation>

	<animation name="drop-chickenchunks-kungpao-wok">
		<add id="chickenchunk1" image="drop_chickenchunk1" x="325" y="-20"/>
		<remove id="chickenchunk1" y="220"/>
		<add id="chickenchunk2" image="drop_chickenchunk2" x="375" y="-20"/>
		<remove id="chickenchunk2" y="200"/>
		<add id="chickenchunk3" image="drop_chickenchunk1" x="300" y="-20"/>
		<remove id="chickenchunk3" y="220"/>
		<add id="chickenchunk4" image="drop_chickenchunk2" x="350" y="-20"/>
		<remove id="chickenchunk4" y="200"/>	
		<wait/>
	</animation>
	<animation name="drop-carrot-wok">
		<add id="carrot" image="stew_carrot" x="325" y="-20"/>
		<clip id="carrot" position="absolute" y2="250"/>
		<remove id="carrot" y="220"/>
		<pause time="10"/>
		<add id="carrot" image="stew_carrot" x="375" y="-20"/>
		<clip id="carrot" position="absolute" y2="250"/>
		<remove id="carrot" y="200"/>
		<pause time="10"/>

		<add id="carrot" image="stew_carrot" x="300" y="-20"/>
		<clip id="carrot" position="absolute" y2="250"/>
		<remove id="carrot" y="220"/>
		<pause time="10"/>
		<add id="carrot" image="stew_carrot" x="350" y="-20"/>
		<clip id="carrot" position="absolute" y2="250"/>
		<remove id="carrot" y="200"/>	
	</animation>
	<animation name="drop-greenpepper-wok">
		<add id="greenpepper1" image="drop_greenpepper1" x="315" y="-20"/>
		<clip id="greenpepper1" position="absolute" y2="250"/>
		<remove id="greenpepper1" y="220"/>
		<pause time="10"/>
		<add id="greenpepper2" image="drop_greenpepper2" x="365" y="-20"/>
		<clip id="greenpepper2" position="absolute" y2="250"/>
		<remove id="greenpepper2" y="200"/>
		<pause time="10"/>

		<add id="greenpepper3" image="drop_greenpepper3" x="290" y="-20"/>
		<clip id="greenpepper3" position="absolute" y2="250"/>
		<remove id="greenpepper3" y="220"/>
		<pause time="10"/>
		<add id="greenpepper4" image="drop_greenpepper1" x="340" y="-20"/>
		<clip id="greenpepper4" position="absolute" y2="250"/>
		<remove id="greenpepper4" y="200"/>	
	</animation>

	<animation name="drop-chickenchunks-wok">
		<add id="chickenchunk1" image="drop_chickenchunk1" x="315" y="-20"/>
		<clip id="chickenchunk1" position="absolute" y2="250"/>
		<remove id="chickenchunk1" y="220"/>
		<pause time="10"/>
		<add id="chickenchunk2" image="drop_chickenchunk2" x="365" y="-20"/>
		<clip id="chickenchunk2" position="absolute" y2="250"/>
		<remove id="chickenchunk2" y="200"/>
		<pause time="10"/>

		<add id="chickenchunk3" image="drop_chickenchunk1" x="290" y="-20"/>
		<clip id="chickenchunk3" position="absolute" y2="250"/>
		<remove id="chickenchunk3" y="220"/>
		<pause time="10"/>
		<add id="chickenchunk4" image="drop_chickenchunk2" x="340" y="-20"/>
		<clip id="chickenchunk4" position="absolute" y2="250"/>
		<remove id="chickenchunk4" y="200"/>	
	</animation>

	<animation name="pour-sweetandsour-wok">
    <add id="pool" image="pool_sweetandsour" x="326" y="251" opacity="0"/>
    <add id="wine" image="pour_sweetandsour" x="360" y="-5" cols="2"/>
    <clip id="wine" y2="280"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>

<!-- heavysaucepan animations -->
	<animation name="drop-egg-heavysaucepan">
		<add id="vanilla" image="falling_egg" x="320" y="-100"/>
		<clip id="vanilla" position="absolute" y2="260"/>
		<remove id="vanilla" y="260" speed="6"/>
		<wait/>
	</animation>
	<animation name="drop-swiss-heavysaucepan">
		<start-loop count="3"/>
		<add id="swiss" image="grate_swiss_fall_particle" x="335" y="-20"/>
		<clip id="swiss" position="absolute" y2="250"/>
		<remove id="swiss" y="250"/>
		<pause time="10"/>
		<add id="swiss" image="grate_swiss_fall_particle" x="355" y="-20"/>
		<clip id="swiss" position="absolute" y2="280"/>
		<remove id="swiss" y="280"/>
		<pause time="10"/>
		<add id="swiss" image="grate_swiss_fall_particle" x="345" y="-20"/>
		<clip id="swiss" position="absolute" y2="260"/>
		<remove id="swiss" y="260"/>
		<pause time="10"/>
		<add id="swiss" image="grate_swiss_fall_particle" x="365" y="-20"/>
		<clip id="swiss" position="absolute" y2="270"/>
		<remove id="swiss" y="270"/>
		<pause time="10"/>				
		<end-loop/>
		<wait/>
	</animation>			
	<animation name="drop-chocolate-heavysaucepan">
		<add id="chocolate" image="drop_chocolate" x="270" y="-180"/>
		<remove id="chocolate" y="197"/>
		<wait/>
	</animation>		
	<animation name="drop-miso-heavysaucepan">
		<add id="onion" image="drop_miso" x="317" y="-239"/>
		<clip id="onion" position="absolute" y2="260"/>
		<remove id="onion" speed="5" y="260"/>
		<wait/>
	</animation>
	<animation name="drop-onion-heavysaucepan">
		<add id="onion" image="drop_onion2" x="315" y="-180"/>
		<remove id="onion" y="235"/>
		<wait/>
	</animation>
	<animation name="pour-whitewine-heavysaucepan">
		<add id="bottle" image="bottle_whitewine" x="348" y="85"/>
		<add id="wine" image="pour_whitewine" x="354" y="220" cols="2"/>
		<clip id="wine" y2="300"/>
		<cycle id="wine" rate="20"/>
		<pause time="300"/>
	</animation>
	<animation name="pour-broth-heavysaucepan">
    <add id="pool" image="pool_broth" x="326" y="251" opacity="0"/>
		<add id="wine" image="pour_broth" x="360" y="-5" cols="2"/>
		<clip id="wine" y2="280"/>
		<cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="pour-tomatopuree-heavysaucepan">
    <add id="tomatopool" image="pool_tomatopuree" x="321" y="231" opacity="0"/>
    <add id="tomatopuree" image="pour_tomatopuree" x="355" y="-5" cols="2"/>
    <clip id="tomatopuree" y2="260"/>
    <cycle id="tomatopuree" rate="20"/>
		<fade id="tomatopool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="tomatopuree"/>
		<fade-out id="tomatopool"/>
		<wait/>
	</animation>
	<animation name="drop-pineapple-heavysaucepan">
		<add id="pineapple" image="drop_pineapple" x="305" y="-180"/>
		<clip id="pineapple" position="absolute" y2="270"/>
		<remove id="pineapple" y="230"/>
		<wait/>
	</animation>
	<animation name="pour-milk-heavysaucepan">
    <add id="pool" image="pool_milk" x="326" y="251" opacity="0"/>
    <add id="wine" image="pour_milk" x="360" y="-5" cols="2"/>
    <clip id="wine" y2="280"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="flan-bubble-heavysaucepan">	
		<start-soundloop name="boilingwaterloop"/>		
		<start-loop count="17"/>
		<play animation="bubble" x="290" y="283"/>
		<pause time="10"/>
		<play animation="bubble" x="370" y="302"/>
		<pause time="10"/>
		<play animation="bubble" x="305" y="252"/>
		<pause time="10"/>
		<play animation="bubble" x="350" y="275"/>
		<pause time="10"/>
		<play animation="bubble" x="290" y="276"/>
		<pause time="10"/>
		<play animation="bubble" x="390" y="276"/>
		<pause time="10"/>
		<play animation="bubble" x="330" y="295"/>
		<pause time="10"/>
		<play animation="bubble" x="323" y="228"/>
		<pause time="10"/>
		<play animation="bubble" x="285" y="292"/>
		<pause time="10"/>
		<play animation="bubble" x="390" y="220"/>
		<pause time="10"/>
		<end-loop/>
		<stop-soundloop name="boilingwaterloop"/>
	</animation>
	<animation name="drop-vanilla-heavysaucepan">
		<add id="vanilla" image="drop_vanilla" x="350" y="0"/>
		<clip id="vanilla" position="absolute" y2="270"/>
		<remove id="vanilla" speed="5" y="270"/>
		<wait/>
	</animation>
	<animation name="drop-sugar-heavysaucepan">
		<add id="measuringcup2" image="measuringcup2" x="319" y="113"/>
		<flip id="measuringcup2" dir="vertical"/>
		<add id="sugar" image="measuringcup_sugar" x="320" y="113"/>
		<pause time="20"/>
		<flip id="measuringcup2" dir="vertical"/>
		<move id="measuringcup2" dy="-50" speed="2"/>
		<remove id="sugar"/>
		<add id="sugar2" image="measuringcup_sugar_pour" x="342" y="112" cols="2"/>
		<cycle id="sugar" rate="10"/>
		<clip id="sugar2" position="absolute" y2="270"/>
		<remove id="sugar2" y="320" speed="2"/>		
		<pause time="50"/>
		<remove id="measuringcup2"/>
		<wait/>
	</animation>
	<animation name="drop-redfoodcoloring-heavysaucepan">
		<add id="color" image="drop_redfoodcoloring" x="350" y="-80"/>
		<clip id="color" position="absolute" y2="270"/>
		<remove id="color" speed="5" y="270"/>
		<wait/>
	</animation>
	<animation name="drop-flour-heavysaucepan">
		<add id="flour" image="drop_flour" x="330" y="-150"/>
		<remove id="flour" y="265" speed="6"/>
		<clip id="flour" position="absolute" y2="265"/>
		<wait/>
	</animation>
	<animation name="drop-beatenegg-heavysaucepan">
		<add id="beatenegg" image="drop_beatenegg" x="270" y="-400" cols="3"/>
		<remove id="beatenegg" y="295" speed="5"/>
		<clip id="beatenegg" position="absolute" y2="295"/>
		<wait/>
	</animation>		
	<animation name="drop-peppercorn-heavysaucepan">
		<start-loop count="2"/>
		<add id="peppercorn" image="drop_peppercorn" x="325" y="-20"/>
		<clip id="peppercorn" position="absolute" y2="230"/>
		<remove id="peppercorn" y="250"/>
		<pause time="10"/>
		<add id="peppercorn2" image="drop_peppercorn" x="365" y="-20"/>
		<clip id="peppercorn2" position="absolute" y2="240"/>
		<remove id="peppercorn2" y="250"/>
		<pause time="10"/>
		<add id="peppercorn3" image="drop_peppercorn" x="340" y="-20"/>
		<clip id="peppercorn3" position="absolute" y2="260"/>
		<remove id="peppercorn3" y="250"/>
		<pause time="10"/>
		<add id="peppercorn4" image="drop_peppercorn" x="355" y="-20"/>
		<clip id="peppercorn4" position="absolute" y2="240"/>
		<remove id="peppercorn4" y="250"/>
		<pause time="10"/>				
		<add id="peppercorn5" image="drop_peppercorn" x="330" y="-20"/>
		<clip id="peppercorn5" position="absolute" y2="230"/>
		<remove id="peppercorn5" y="250"/>
		<pause time="10"/>
		<add id="peppercorn6" image="drop_peppercorn" x="350" y="-20"/>
		<clip id="peppercorn6" position="absolute" y2="250"/>
		<remove id="peppercorn6" y="250"/>
		<pause time="10"/>
		<add id="peppercorn7" image="drop_peppercorn" x="335" y="-20"/>
		<clip id="peppercorn7" position="absolute" y2="240"/>
		<remove id="peppercorn7" y="250"/>
		<pause time="10"/>
		<add id="peppercorn8" image="drop_peppercorn" x="365" y="-20"/>
		<clip id="peppercorn8" position="absolute" y2="260"/>
		<remove id="peppercorn8" y="250"/>
		<pause time="10"/>				
		<end-loop/>
		<wait/>
	</animation>
	<animation name="drop-cloves-heavysaucepan">
		<add id="cloves" image="drop_cloves" x="325" y="-20"/>
		<clip id="cloves" position="absolute" y2="230"/>
		<remove id="cloves" y="250"/>
		<pause time="10"/>
		<add id="cloves2" image="drop_cloves" x="365" y="-20"/>
		<clip id="cloves2" position="absolute" y2="240"/>
		<remove id="cloves2" y="250"/>
		<pause time="10"/>
		<add id="cloves3" image="drop_cloves" x="340" y="-20"/>
		<clip id="cloves3" position="absolute" y2="260"/>
		<remove id="cloves3" y="250"/>
		<pause time="10"/>
		<add id="cloves4" image="drop_cloves" x="355" y="-20"/>
		<clip id="cloves4" position="absolute" y2="240"/>
		<remove id="cloves4" y="250"/>
		<pause time="10"/>				
		<add id="cloves5" image="drop_cloves" x="330" y="-20"/>
		<clip id="cloves5" position="absolute" y2="230"/>
		<remove id="cloves5" y="250"/>
		<pause time="10"/>
		<add id="cloves6" image="drop_cloves" x="350" y="-20"/>
		<clip id="cloves6" position="absolute" y2="250"/>
		<remove id="cloves6" y="250"/>
		<pause time="10"/>
		<add id="cloves7" image="drop_cloves" x="335" y="-20"/>
		<clip id="cloves7" position="absolute" y2="240"/>
		<remove id="cloves7" y="250"/>
		<pause time="10"/>
		<add id="cloves8" image="drop_cloves" x="365" y="-20"/>
		<clip id="cloves8" position="absolute" y2="260"/>
		<remove id="cloves8" y="250"/>
		<pause time="10"/>				
		<wait/>
	</animation>
	
	<animation name="drop-negi-heavysaucepan">
		<start-loop count="2"/>
		<add id="negi" image="drop_negi" x="325" y="-20"/>
		<clip id="negi" position="absolute" y2="230"/>
		<remove id="negi" y="250"/>
		<pause time="10"/>
		<add id="negi2" image="drop_negi" x="365" y="-20"/>
		<clip id="negi2" position="absolute" y2="240"/>
		<remove id="negi2" y="250"/>
		<pause time="10"/>
		<add id="negi3" image="drop_negi" x="340" y="-20"/>
		<clip id="negi3" position="absolute" y2="260"/>
		<remove id="negi3" y="250"/>
		<pause time="10"/>
		<add id="negi4" image="drop_negi" x="355" y="-20"/>
		<clip id="negi4" position="absolute" y2="240"/>
		<remove id="negi4" y="250"/>
		<pause time="10"/>				
		<add id="negi5" image="drop_negi" x="330" y="-20"/>
		<clip id="negi5" position="absolute" y2="230"/>
		<remove id="negi5" y="250"/>
		<pause time="10"/>
		<add id="negi6" image="drop_negi" x="350" y="-20"/>
		<clip id="negi6" position="absolute" y2="250"/>
		<remove id="negi6" y="250"/>
		<pause time="10"/>
		<add id="negi7" image="drop_negi" x="335" y="-20"/>
		<clip id="negi7" position="absolute" y2="240"/>
		<remove id="negi7" y="250"/>
		<pause time="10"/>
		<add id="negi8" image="drop_negi" x="365" y="-20"/>
		<clip id="negi8" position="absolute" y2="260"/>
		<remove id="negi8" y="250"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>
	
	<animation name="drop-potato-heavysaucepan">
		<start-loop count="2"/>
		<add id="potato" image="drop_potato" x="325" y="-20"/>
		<clip id="potato" position="absolute" y2="230"/>
		<remove id="potato" y="250"/>
		<pause time="10"/>
		<add id="potato2" image="drop_potato" x="365" y="-20"/>
		<clip id="potato2" position="absolute" y2="240"/>
		<remove id="potato2" y="250"/>
		<pause time="10"/>
		<add id="potato3" image="drop_potato" x="340" y="-20"/>
		<clip id="potato3" position="absolute" y2="260"/>
		<remove id="potato3" y="250"/>
		<pause time="10"/>
		<add id="potato4" image="drop_potato" x="355" y="-20"/>
		<clip id="potato4" position="absolute" y2="240"/>
		<remove id="potato4" y="250"/>
		<pause time="10"/>				
		<add id="potato5" image="drop_potato" x="330" y="-20"/>
		<clip id="potato5" position="absolute" y2="230"/>
		<remove id="potato5" y="250"/>
		<pause time="10"/>
		<add id="potato6" image="drop_potato" x="350" y="-20"/>
		<clip id="potato6" position="absolute" y2="250"/>
		<remove id="potato6" y="250"/>
		<pause time="10"/>
		<add id="potato7" image="drop_potato" x="335" y="-20"/>
		<clip id="potato7" position="absolute" y2="240"/>
		<remove id="potato7" y="250"/>
		<pause time="10"/>
		<add id="potato8" image="drop_potato" x="365" y="-20"/>
		<clip id="potato8" position="absolute" y2="260"/>
		<remove id="potato8" y="250"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>
	
	<animation name="drop-carrot-heavysaucepan">
		<add id="carrot" image="drop_carrot" x="325" y="-20"/>
		<clip id="carrot" position="absolute" y2="230"/>
		<remove id="carrot" y="250"/>
		<pause time="10"/>
		<add id="carrot2" image="drop_carrot" x="365" y="-20"/>
		<clip id="carrot2" position="absolute" y2="240"/>
		<remove id="carrot2" y="250"/>
		<pause time="10"/>
		<add id="carrot3" image="drop_carrot" x="340" y="-20"/>
		<clip id="carrot3" position="absolute" y2="260"/>
		<remove id="carrot3" y="250"/>
		<pause time="10"/>
		<add id="carrot4" image="drop_carrot" x="355" y="-20"/>
		<clip id="carrot4" position="absolute" y2="240"/>
		<remove id="carrot4" y="250"/>
		<pause time="10"/>				
		<add id="carrot5" image="drop_carrot" x="330" y="-20"/>
		<clip id="carrot5" position="absolute" y2="230"/>
		<remove id="carrot5" y="250"/>
		<pause time="10"/>
		<add id="carrot6" image="drop_carrot" x="350" y="-20"/>
		<clip id="carrot6" position="absolute" y2="250"/>
		<remove id="carrot6" y="250"/>
		<pause time="10"/>
		<add id="carrot7" image="drop_carrot" x="335" y="-20"/>
		<clip id="carrot7" position="absolute" y2="240"/>
		<remove id="carrot7" y="250"/>
		<pause time="10"/>
		<add id="carrot8" image="drop_carrot" x="365" y="-20"/>
		<clip id="carrot8" position="absolute" y2="260"/>
		<remove id="carrot8" y="250"/>
		<pause time="10"/>				
	</animation>
	
		<animation name="drop-konnyaku-heavysaucepan">
		<start-loop count="2"/>
		<add id="konnyaku" image="drop_konnyaku" x="325" y="-20"/>
		<clip id="konnyaku" position="absolute" y2="230"/>
		<remove id="konnyaku" y="250"/>
		<pause time="10"/>
		<add id="konnyaku2" image="drop_konnyaku" x="365" y="-20"/>
		<clip id="konnyaku2" position="absolute" y2="240"/>
		<remove id="konnyaku2" y="250"/>
		<pause time="10"/>
		<add id="konnyaku3" image="drop_konnyaku" x="340" y="-20"/>
		<clip id="konnyaku3" position="absolute" y2="260"/>
		<remove id="konnyaku3" y="250"/>
		<pause time="10"/>
		<add id="konnyaku4" image="drop_konnyaku" x="355" y="-20"/>
		<clip id="konnyaku4" position="absolute" y2="240"/>
		<remove id="konnyaku4" y="250"/>
		<pause time="10"/>				
		<add id="konnyaku5" image="drop_konnyaku" x="330" y="-20"/>
		<clip id="konnyaku5" position="absolute" y2="230"/>
		<remove id="konnyaku5" y="250"/>
		<pause time="10"/>
		<add id="konnyaku6" image="drop_konnyaku" x="350" y="-20"/>
		<clip id="konnyaku6" position="absolute" y2="250"/>
		<remove id="konnyaku6" y="250"/>
		<pause time="10"/>
		<add id="konnyaku7" image="drop_konnyaku" x="335" y="-20"/>
		<clip id="konnyaku7" position="absolute" y2="240"/>
		<remove id="konnyaku7" y="250"/>
		<pause time="10"/>
		<add id="konnyaku8" image="drop_konnyaku" x="365" y="-20"/>
		<clip id="konnyaku8" position="absolute" y2="260"/>
		<remove id="konnyaku8" y="250"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>
	
	<animation name="drop-gobo-heavysaucepan">
		<start-loop count="2"/>
		<add id="gobo" image="drop_gobo" x="325" y="-20"/>
		<clip id="gobo" position="absolute" y2="230"/>
		<remove id="gobo" y="250"/>
		<pause time="10"/>
		<add id="gobo2" image="drop_gobo" x="365" y="-20"/>
		<clip id="gobo2" position="absolute" y2="240"/>
		<remove id="gobo2" y="250"/>
		<pause time="10"/>
		<add id="gobo3" image="drop_gobo" x="340" y="-20"/>
		<clip id="gobo3" position="absolute" y2="260"/>
		<remove id="gobo3" y="250"/>
		<pause time="10"/>
		<add id="gobo4" image="drop_gobo" x="355" y="-20"/>
		<clip id="gobo4" position="absolute" y2="240"/>
		<remove id="gobo4" y="250"/>
		<pause time="10"/>				
		<add id="gobo5" image="drop_gobo" x="330" y="-20"/>
		<clip id="gobo5" position="absolute" y2="230"/>
		<remove id="gobo5" y="250"/>
		<pause time="10"/>
		<add id="gobo6" image="drop_gobo" x="350" y="-20"/>
		<clip id="gobo6" position="absolute" y2="250"/>
		<remove id="gobo6" y="250"/>
		<pause time="10"/>
		<add id="gobo7" image="drop_gobo" x="335" y="-20"/>
		<clip id="gobo7" position="absolute" y2="240"/>
		<remove id="gobo7" y="250"/>
		<pause time="10"/>
		<add id="gobo8" image="drop_gobo" x="365" y="-20"/>
		<clip id="gobo8" position="absolute" y2="260"/>
		<remove id="gobo8" y="250"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>

	<animation name="drop-parmesan-heavysaucepan">
		<start-loop count="2"/>
		<add id="parmesan" image="grate_parmesan_fall_particle" x="325" y="-20"/>
		<clip id="parmesan" position="absolute" y2="230"/>
		<remove id="parmesan" y="250"/>
		<pause time="10"/>
		<add id="parmesan2" image="grate_parmesan_fall_particle" x="365" y="-20"/>
		<clip id="parmesan2" position="absolute" y2="240"/>
		<remove id="parmesan2" y="250"/>
		<pause time="10"/>
		<add id="parmesan3" image="grate_parmesan_fall_particle" x="340" y="-20"/>
		<clip id="parmesan3" position="absolute" y2="260"/>
		<remove id="parmesan3" y="250"/>
		<pause time="10"/>
		<add id="parmesan4" image="grate_parmesan_fall_particle" x="355" y="-20"/>
		<clip id="parmesan4" position="absolute" y2="240"/>
		<remove id="parmesan4" y="250"/>
		<pause time="10"/>				
		<add id="parmesan5" image="grate_parmesan_fall_particle" x="330" y="-20"/>
		<clip id="parmesan5" position="absolute" y2="230"/>
		<remove id="parmesan5" y="250"/>
		<pause time="10"/>
		<add id="parmesan6" image="grate_parmesan_fall_particle" x="350" y="-20"/>
		<clip id="parmesan6" position="absolute" y2="250"/>
		<remove id="parmesan6" y="250"/>
		<pause time="10"/>
		<add id="parmesan7" image="grate_parmesan_fall_particle" x="335" y="-20"/>
		<clip id="parmesan7" position="absolute" y2="240"/>
		<remove id="parmesan7" y="250"/>
		<pause time="10"/>
		<add id="parmesan8" image="grate_parmesan_fall_particle" x="365" y="-20"/>
		<clip id="parmesan8" position="absolute" y2="260"/>
		<remove id="parmesan8" y="250"/>
		<pause time="10"/>
		<end-loop/>
		<wait/>
	</animation>

	<animation name="drop-zucchiniblossom-heavysaucepan">
		<add id="zucchiniblossom" image="drop_zucchiniblossom" x="325" y="-20"/>
		<clip id="zucchiniblossom" position="absolute" y2="250"/>
		<remove id="zucchiniblossom" y="270"/>
		<pause time="10"/>
		<add id="zucchiniblossom2" image="drop_zucchiniblossom" x="365" y="-20"/>
		<clip id="zucchiniblossom2" position="absolute" y2="260"/>
		<remove id="zucchiniblossom2" y="270"/>
		<pause time="10"/>
		<add id="zucchiniblossom3" image="drop_zucchiniblossom" x="340" y="-20"/>
		<clip id="zucchiniblossom3" position="absolute" y2="280"/>
		<remove id="zucchiniblossom3" y="270"/>
		<pause time="10"/>
		<add id="zucchiniblossom4" image="drop_zucchiniblossom" x="355" y="-20"/>
		<clip id="zucchiniblossom4" position="absolute" y2="260"/>
		<remove id="zucchiniblossom4" y="270"/>
		<pause time="10"/>				
		<add id="zucchiniblossom5" image="drop_zucchiniblossom" x="330" y="-20"/>
		<clip id="zucchiniblossom5" position="absolute" y2="250"/>
		<remove id="zucchiniblossom5" y="270"/>
		<pause time="10"/>
		<add id="zucchiniblossom6" image="drop_zucchiniblossom" x="350" y="-20"/>
		<clip id="zucchiniblossom6" position="absolute" y2="270"/>
		<remove id="zucchiniblossom6" y="270"/>
		<pause time="10"/>
		<add id="zucchiniblossom7" image="drop_zucchiniblossom" x="335" y="-20"/>
		<clip id="zucchiniblossom7" position="absolute" y2="260"/>
		<remove id="zucchiniblossom7" y="270"/>
		<pause time="10"/>
		<add id="zucchiniblossom8" image="drop_zucchiniblossom" x="365" y="-20"/>
		<clip id="zucchiniblossom8" position="absolute" y2="280"/>
		<remove id="zucchiniblossom8" y="270"/>
		<pause time="10"/>				
		<wait/>
	</animation>
	
	<animation name="drop-rice-heavysaucepan">
		<start-loop count="2"/>
		<add id="rice" image="drop_rice" x="325" y="-20"/>
		<clip id="rice" position="absolute" y2="250"/>
		<remove id="rice" y="270"/>
		<pause time="10"/>
		<add id="rice2" image="drop_rice" x="365" y="-20"/>
		<clip id="rice2" position="absolute" y2="260"/>
		<remove id="rice2" y="270"/>
		<pause time="10"/>
		<add id="rice3" image="drop_rice" x="340" y="-20"/>
		<clip id="rice3" position="absolute" y2="280"/>
		<remove id="rice3" y="270"/>
		<pause time="10"/>
		<add id="rice4" image="drop_rice" x="355" y="-20"/>
		<clip id="rice4" position="absolute" y2="260"/>
		<remove id="rice4" y="270"/>
		<pause time="10"/>				
		<add id="rice5" image="drop_rice" x="330" y="-20"/>
		<clip id="rice5" position="absolute" y2="250"/>
		<remove id="rice5" y="270"/>
		<pause time="10"/>
		<add id="rice6" image="drop_rice" x="350" y="-20"/>
		<clip id="rice6" position="absolute" y2="270"/>
		<remove id="rice6" y="290"/>
		<pause time="10"/>
		<add id="rice7" image="drop_rice" x="335" y="-20"/>
		<clip id="rice7" position="absolute" y2="260"/>
		<remove id="rice7" y="270"/>
		<pause time="10"/>
		<add id="rice8" image="drop_rice" x="365" y="-20"/>
		<clip id="rice8" position="absolute" y2="280"/>
		<remove id="rice8" y="270"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>
	
	<animation name="drop-mango-heavysaucepan">
		<start-loop count="2"/>
		<add id="mango" image="drop_mango" x="325" y="-20"/>
		<clip id="mango" position="absolute" y2="230"/>
		<remove id="mango" y="250"/>
		<pause time="10"/>
		<add id="mango2" image="drop_mango" x="365" y="-20"/>
		<clip id="mango2" position="absolute" y2="240"/>
		<remove id="mango2" y="250"/>
		<pause time="10"/>
		<add id="mango3" image="drop_mango" x="340" y="-20"/>
		<clip id="mango3" position="absolute" y2="260"/>
		<remove id="mango3" y="250"/>
		<pause time="10"/>
		<add id="mango4" image="drop_mango" x="355" y="-20"/>
		<clip id="mango4" position="absolute" y2="240"/>
		<remove id="mango4" y="250"/>
		<pause time="10"/> 		
		<add id="mango5" image="drop_mango" x="330" y="-20"/>
		<clip id="mango5" position="absolute" y2="230"/>
		<remove id="mango5" y="250"/>
		<pause time="10"/>
		<add id="mango6" image="drop_mango" x="350" y="-20"/>
		<clip id="mango6" position="absolute" y2="250"/>
		<remove id="mango6" y="250"/>
		<pause time="10"/> 
		<add id="mango7" image="drop_mango" x="335" y="-20"/>
		<clip id="mango7" position="absolute" y2="240"/>
		<remove id="mango7" y="250"/>
		<pause time="10"/>
		<add id="mango8" image="drop_mango" x="365" y="-20"/>
		<clip id="mango8" position="absolute" y2="260"/>
		<remove id="mango8" y="250"/>
		<pause time="10"/> 					
		<end-loop/>
	</animation>
	
	<animation name="drop-dicedgarlic-heavysaucepan">
		<start-loop count="2"/>
		<add id="dicedgarlic" image="drop_dicedgarlic" x="325" y="-20"/>
		<clip id="dicedgarlic" position="absolute" y2="230"/>
		<remove id="dicedgarlic" y="250"/>
		<pause time="10"/>
		<add id="dicedgarlic2" image="drop_dicedgarlic" x="365" y="-20"/>
		<clip id="dicedgarlic2" position="absolute" y2="240"/>
		<remove id="dicedgarlic2" y="250"/>
		<pause time="10"/>
		<add id="dicedgarlic3" image="drop_dicedgarlic" x="340" y="-20"/>
		<clip id="dicedgarlic3" position="absolute" y2="260"/>
		<remove id="dicedgarlic3" y="250"/>
		<pause time="10"/>
		<add id="dicedgarlic4" image="drop_dicedgarlic" x="355" y="-20"/>
		<clip id="dicedgarlic4" position="absolute" y2="240"/>
		<remove id="dicedgarlic4" y="250"/>
		<pause time="10"/>				
		<add id="dicedgarlic5" image="drop_dicedgarlic" x="330" y="-20"/>
		<clip id="dicedgarlic5" position="absolute" y2="230"/>
		<remove id="dicedgarlic5" y="250"/>
		<pause time="10"/>
		<add id="dicedgarlic6" image="drop_dicedgarlic" x="350" y="-20"/>
		<clip id="dicedgarlic6" position="absolute" y2="250"/>
		<remove id="dicedgarlic6" y="250"/>
		<pause time="10"/>
		<add id="dicedgarlic7" image="drop_dicedgarlic" x="335" y="-20"/>
		<clip id="dicedgarlic7" position="absolute" y2="240"/>
		<remove id="dicedgarlic7" y="250"/>
		<pause time="10"/>
		<add id="dicedgarlic8" image="drop_dicedgarlic" x="365" y="-20"/>
		<clip id="dicedgarlic8" position="absolute" y2="260"/>
		<remove id="dicedgarlic8" y="250"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>

	<animation name="drop-cornstarch-heavysaucepan">
		<add id="cornstarch" image="drop_cornstarch" x="310" y="-280"/>
		<clip id="cornstarch" position="absolute" y2="280"/>
		<remove id="cornstarch" speed="5" y="280"/>
		<wait/>
	</animation>

	<animation name="drop-butter-heavysaucepan">
		<add id="butter" image="drop_butter" x="350" y="-100"/>
		<clip id="butter" position="absolute" y2="280"/>
		<remove id="butter" speed="5" y="310"/>
		<wait/>
	</animation>
	<animation name="drop-butter-heavysaucepan2">
		<add id="butter" image="drop_butter" x="310" y="-400"/>
		<clip id="butter" position="absolute" y2="220"/>
		<remove id="butter" y="210"/>
		<pause time="10"/>
		<add id="butter2" image="drop_butter" x="280" y="-400"/>
		<clip id="butter2" position="absolute" y2="230"/>
		<remove id="butter2" y="220"/>
		<pause time="10"/>
		<add id="butter3" image="drop_butter" x="340" y="-400"/>
		<clip id="butter3" position="absolute" y2="240"/>
		<remove id="butter3" y="230"/>
		<pause time="10"/>
		<wait/>
	</animation>
	<animation name="drop-lemonjuice-heavysaucepan">
		<add id="lemon" image="drop_lemonjuice" x="350" y="-100"/>
		<clip id="lemon" position="absolute" y2="270"/>
		<remove id="lemon" speed="5" y="220"/>
		<wait/>
	</animation>	
	<animation name="drop-eggyolk-heavysaucepan">
		<add id="egg" image="drop_eggyolk" x="320" y="-180"/>
		<remove id="egg" y="270"/>
		<clip id="egg" position="absolute" y2="270"/>
		<pause time="10"/>
		<add id="egg2" image="drop_eggyolk" x="350" y="-180"/>
		<remove id="egg2" y="270"/>
		<clip id="egg2" position="absolute" y2="270"/>
		<wait/>
	</animation>
	<animation name="drop-celery-heavysaucepan">
		<start-loop count="3"/>
		<add id="swiss" image="drop_celery" x="305" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>
		<add id="swiss" image="drop_celery" x="325" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>
		<add id="swiss" image="drop_celery" x="315" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>
		<add id="swiss" image="drop_celery" x="335" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>				
		<end-loop/>
		<wait/>
	</animation>			
	<animation name="drop-cumin-heavysaucepan">
		<add id="teaspoon" image="teaspoon" x="330" y="100"/>
		<add id="cumin" image="teaspoon_cumin" x="330" y="100"/>
		<bob id="cumin" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="330" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="cumin" y="250" z="-1"/>
		<bob id="cumin"/>
		<fade id="cumin" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="cumin"/>
		<remove id="teaspoon2"/>
	</animation>
	<animation name="drop-ginger-heavysaucepan">
		<add id="teaspoon" image="teaspoon" x="330" y="100"/>
		<add id="ginger" image="teaspoon_ginger" x="330" y="100"/>
		<bob id="ginger" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="330" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="ginger" y="250" z="-1"/>
		<bob id="ginger"/>
		<fade id="ginger" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="ginger"/>
		<remove id="teaspoon2"/>
	</animation>
	<animation name="drop-paprika-heavysaucepan">
		<add id="teaspoon" image="teaspoon" x="330" y="100"/>
		<add id="paprika" image="teaspoon_paprika" x="330" y="100"/>
		<bob id="paprika" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="330" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="paprika" y="250" z="-1"/>
		<bob id="paprika"/>
		<fade id="paprika" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="paprika"/>
		<remove id="teaspoon2"/>
	</animation>
	<animation name="drop-cayenne-heavysaucepan">
		<add id="teaspoon" image="teaspoon" x="330" y="100"/>
		<add id="cayenne" image="teaspoon_cayenne" x="330" y="100"/>
		<bob id="cayenne" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="330" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="cayenne" y="240" z="-1"/>
		<bob id="cayenne"/>
		<fade id="cayenne" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="cayenne"/>
		<remove id="teaspoon2"/>
	</animation>

	<animation name="drop-greenonion-heavysaucepan">
		<start-loop count="3"/>
		<add id="swiss" image="drop_greenonion" x="305" y="-20"/>
		<clip id="swiss" position="absolute" y2="240"/>
		<remove id="swiss" y="240"/>
		<pause time="10"/>
		<add id="swiss" image="drop_greenonion" x="325" y="-20"/>
		<clip id="swiss" position="absolute" y2="240"/>
		<remove id="swiss" y="240"/>
		<pause time="10"/>
		<add id="swiss" image="drop_greenonion" x="315" y="-20"/>
		<clip id="swiss" position="absolute" y2="240"/>
		<remove id="swiss" y="240"/>
		<pause time="10"/>
		<add id="swiss" image="drop_greenonion" x="335" y="-20"/>
		<clip id="swiss" position="absolute" y2="240"/>
		<remove id="swiss" y="240"/>
		<pause time="10"/>				
		<end-loop/>
		<wait/>
	</animation>
	
	<animation name="drop-shrimp-heavysaucepan">
		<start-loop count="3"/>
		<add id="swiss" image="drop_shrimp" x="305" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>
		<add id="swiss" image="drop_shrimp" x="325" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>
		<add id="swiss" image="drop_shrimp" x="315" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>
		<add id="swiss" image="drop_shrimp" x="335" y="-20"/>
		<clip id="swiss" position="absolute" y2="220"/>
		<remove id="swiss" y="220"/>
		<pause time="10"/>				
		<end-loop/>
		<wait/>
	</animation>		
	<animation name="drop-riceflour-heavysaucepan">
		<add id="riceflour" image="drop_riceflour" x="335" y="-20"/>
		<remove id="riceflour" y="260" speed="5"/>
		<clip id="riceflour" position="absolute" y2="260"/>
	</animation>
	<animation name="drop-mangojuice-heavysaucepan">
		<add id="mangojuice" image="drop_mangojuice" x="335" y="-100"/>
		<remove id="mangojuice" speed="5" y="250"/>
		<clip id="mangojuice" position="absolute" y2="250"/>
	</animation>
	<animation name="drop-nutmeg-heavysaucepan">
		<add id="teaspoon" image="teaspoon" x="330" y="100"/>
		<add id="nutmeg" image="teaspoon_nutmeg" x="330" y="100"/>
		<bob id="nutmeg" height="50" speed="50"/>
		<bob id="teaspoon" height="50" speed="50"/>
		<pause time="30"/>
		<remove id="teaspoon"/>
		<add id="teaspoon2" image="teaspoon2" x="330" y="140"/>
		<bob id="teaspoon2" height="-50" speed="50"/>
		<move id="nutmeg" y="250" z="-1"/>
		<bob id="nutmeg"/>
		<fade id="nutmeg" opacity="0"/>
		<pause time="30"/>
		<bob id="teaspoon2"/>
		<remove id="nutmeg"/>
		<remove id="teaspoon2"/>
	</animation>
		
<!-- pan animations -->
	<animation name="drop-brownsugar-pan">
		<add id="rice" image="drop_brownsugar" x="315" y="-400"/>
		<clip id="rice" position="absolute" y2="250"/>
		<remove id="rice" y="250" speed="6"/>
		<wait/>	
	</animation>
	<animation name="drop-friedrice-pan">
		<add id="rice" image="drop_friedrice" x="260" y="-400"/>
		<move id="rice" y="140" speed="5"/>
		<wait/>	
	</animation>

	<animation name="drop-bellpeppers-pan">
		<add id="rice" image="pan_bellpeppers" x="270" y="-400" cols="3"/>
		<move id="rice" y="190" speed="5"/>
		<wait/>	
	</animation>
	
	<animation name="drop-lettucewrap-pan">
		<add id="egg" image="drop_lettucewrap" x="270" y="-400"/>
		<move id="egg" y="150" speed="5"/>
		<wait/>		
	</animation>	

	<animation name="drop-beatenegg-pan">
		<add id="egg" image="drop_beatenegg" x="280" y="-400" cols="3"/>
		<move id="egg" y="190" speed="5"/>
		<wait/>
		<set-frame id="egg" frame="1"/>
		<pause time="10"/>
		<set-frame id="egg" frame="2"/>
		<pause time="10"/>
	</animation>
	
	<animation name="drop-friedegg-pan">
		<add id="egg" image="drop_friedegg" x="270" y="-400" cols="3"/>
		<move id="egg" y="200" speed="5"/>
		<wait/>
		<set-frame id="egg" frame="1"/>
		<pause time="10"/>
		<set-frame id="egg" frame="2"/>
		<pause time="10"/>
	</animation>

	<animation name="drop-banana-pan">
		<add id="banana" image="fall_banana" x="263" y="-200"/>
		<remove id="banana" y="179" speed="6"/>
		<wait/>
	</animation>
	<animation name="drop-rum-pan">
		<add id="mirin" image="drop_rum" x="350" y="-400"/>
		<clip id="mirin" position="absolute" y2="250"/>
		<remove id="mirin" y="250" speed="6"/>
		<wait/>
	</animation>

<!-- pot animations -->
	<animation name="pour-soysauce-pot">
    <add id="pool" image="pool_soysauce" x="326" y="221" opacity="0"/>
    <add id="wine" image="pour_soysauce" x="360" y="-60" cols="2"/>
    <clip id="wine" y2="255"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
		<wait/>
	</animation>
	<animation name="pour-dashi-pot">
    <add id="pool" image="pool_dashi" x="326" y="221" opacity="0"/>
    <add id="wine" image="pour_dashi" x="360" y="-5" cols="2"/>
    <clip id="wine" y2="250"/>
    <cycle id="wine" rate="20"/>
		<fade id="pool" opacity="1"/>
		<pause time="300"/>
		<fade-out id="wine"/>
		<fade-out id="pool"/>
	</animation>
	<animation name="drop-sugar-pot">
		<add id="measuringcup2" image="measuringcup2" x="319" y="113"/>
		<flip id="measuringcup2" dir="vertical"/>
		<add id="sugar" image="measuringcup_sugar" x="320" y="113"/>
		<pause time="20"/>
		<flip id="measuringcup2" dir="vertical"/>
		<move id="measuringcup2" dy="-50" speed="2"/>
		<remove id="sugar"/>
		<add id="sugar2" image="measuringcup_sugar_pour" x="342" y="112" cols="2"/>
		<cycle id="sugar" rate="10"/>
		<clip id="sugar2" position="absolute" y2="250"/>
		<remove id="sugar2" y="320" speed="2"/>		
		<pause time="50"/>
		<remove id="measuringcup2"/>
		<wait/>
	</animation>
	<animation name="drop-flour-pot">
		<add id="flour" image="drop_flour" x="330" y="-150"/>
		<remove id="flour" y="265" speed="6"/>
		<clip id="flour" position="absolute" y2="265"/>
		<wait/>
	</animation>
	<animation name="drop-beatenegg-pot">
		<add id="beatenegg" image="drop_beatenegg" x="270" y="-400" cols="3"/>
		<remove id="beatenegg" y="250" speed="5"/>
		<clip id="beatenegg" position="absolute" y2="240"/>
		<wait/>
	</animation>		
	<animation name="drop-vanilla-pot">
		<add id="vanilla" image="drop_vanilla" x="350" y="0"/>
		<clip id="vanilla" position="absolute" y2="250"/>
		<remove id="vanilla" speed="5" y="250"/>
		<wait/>
	</animation>
	<animation name="drop-butter-pot">
		<add id="butter" image="drop_butter" x="335" y="-100"/>
		<clip id="butter" position="absolute" y2="280"/>
		<remove id="butter" speed="5" y="280"/>
		<wait/>
	</animation>
	<animation name="drop-paneer-pot">
		<add id="paneer" image="drop_paneer2" x="324" y="-224"/>
		<remove id="paneer" y="244"/>
		<clip id="paneer" position="absolute" y2="250"/>

		<add id="paneer2" image="drop_paneer2" x="381" y="-224"/>
		<remove id="paneer2" y="204"/>
		<clip id="paneer2" position="absolute" y2="210"/>

		<add id="paneer3" image="drop_paneer" x="369" y="-224"/>
		<remove id="paneer3" y="248"/>
		<clip id="paneer3" position="absolute" y2="252"/>

		<add id="paneer4" image="drop_paneer" x="291" y="-224"/>
		<remove id="paneer4" y="212"/>
		<clip id="paneer4" position="absolute" y2="220"/>
		
		<add id="paneer5" image="drop_paneer2" x="338" y="-224"/>
		<remove id="paneer5" y="204"/>
		<clip id="paneer5" position="absolute" y2="210"/>
		<wait/>
	</animation>
	<animation name="drop-saag-pot">
		<add id="saag" image="drop_saag" x="240" y="-170"/>
		<remove id="saag" y="270"/>
		<clip id="saag" position="absolute" y2="270"/>
		<wait/>
	</animation>
	<animation name="drop-tomato-pot">
		<add id="tomato" image="drop_tomato2" x="300" y="-100"/>
		<remove id="tomato" y="320"/>
		<clip id="tomato" position="absolute" y2="250"/>
		<wait/>
	</animation>
	<animation name="water-ripple-pot">
			<start-loop/>
			<add id="ripple" image="water_ripple"/>
			<scale id="ripple" factor="0.01"/>
			<expand id="ripple" scale="1" speed=".015"/>
			<fade-out id="ripple" speed=".02"/>
			<pause time="20"/>
			<add id="ripple2" image="water_ripple"/>
			<scale id="ripple2" factor="0.01"/>
			<expand id="ripple2" scale="1" speed=".015"/>
			<fade-out id="ripple2" speed=".02"/>
			<end-loop/>
	</animation>
	<animation name="drop-raisins-pot">
		<start-loop count="2"/>
		<add id="raisin" image="drop_raisins" x="325" y="-20"/>
		<clip id="raisin" position="absolute" y2="250"/>
		<remove id="raisin" y="270"/>
		<pause time="10"/>
		<add id="raisin2" image="drop_raisins" x="365" y="-20"/>
		<clip id="raisin2" position="absolute" y2="260"/>
		<remove id="raisin2" y="270"/>
		<pause time="10"/>
		<add id="raisin3" image="drop_raisins" x="340" y="-20"/>
		<clip id="raisin3" position="absolute" y2="280"/>
		<remove id="raisin3" y="280"/>
		<pause time="10"/>
		<add id="raisin4" image="drop_raisins" x="355" y="-20"/>
		<clip id="raisin4" position="absolute" y2="260"/>
		<remove id="raisin4" y="270"/>
		<pause time="10"/>				
		<add id="raisin5" image="drop_raisins" x="330" y="-20"/>
		<clip id="raisin5" position="absolute" y2="250"/>
		<remove id="raisin5" y="270"/>
		<pause time="10"/>
		<add id="raisin6" image="drop_raisins" x="350" y="-20"/>
		<clip id="raisin6" position="absolute" y2="270"/>
		<remove id="raisin6" y="270"/>
		<pause time="10"/>
		<add id="raisin7" image="drop_raisins" x="335" y="-20"/>
		<clip id="raisin7" position="absolute" y2="260"/>
		<remove id="raisin7" y="270"/>
		<pause time="10"/>
		<add id="raisin8" image="drop_raisins" x="365" y="-20"/>
		<clip id="raisin8" position="absolute" y2="270"/>
		<remove id="raisin8" y="270"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>
	<animation name="drop-cardamom-pot">
		<start-loop count="2"/>
		<add id="cardamom" image="drop_cardamom" x="325" y="-20"/>
		<clip id="cardamom" position="absolute" y2="250"/>
		<remove id="cardamom" y="270"/>
		<pause time="10"/>
		<add id="cardamom2" image="drop_cardamom" x="365" y="-20"/>
		<clip id="cardamom2" position="absolute" y2="260"/>
		<remove id="cardamom2" y="270"/>
		<pause time="10"/>
		<add id="cardamom3" image="drop_cardamom" x="340" y="-20"/>
		<clip id="cardamom3" position="absolute" y2="280"/>
		<remove id="cardamom3" y="280"/>
		<pause time="10"/>
		<add id="cardamom4" image="drop_cardamom" x="355" y="-20"/>
		<clip id="cardamom4" position="absolute" y2="260"/>
		<remove id="cardamom4" y="270"/>
		<pause time="10"/>				
		<add id="cardamom5" image="drop_cardamom" x="330" y="-20"/>
		<clip id="cardamom5" position="absolute" y2="250"/>
		<remove id="cardamom5" y="270"/>
		<pause time="10"/>
		<add id="cardamom6" image="drop_cardamom" x="350" y="-20"/>
		<clip id="cardamom6" position="absolute" y2="270"/>
		<remove id="cardamom6" y="270"/>
		<pause time="10"/>
		<add id="cardamom7" image="drop_cardamom" x="335" y="-20"/>
		<clip id="cardamom7" position="absolute" y2="260"/>
		<remove id="cardamom7" y="270"/>
		<pause time="10"/>
		<add id="cardamom8" image="drop_cardamom" x="365" y="-20"/>
		<clip id="cardamom8" position="absolute" y2="280"/>
		<remove id="cardamom8" y="280"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>	
	<animation name="drop-almonds-pot">
		<start-loop count="2"/>
		<add id="almonds" image="drop_almonds" x="325" y="-20"/>
		<clip id="almonds" position="absolute" y2="250"/>
		<remove id="almonds" y="270"/>
		<pause time="10"/>
		<add id="almonds2" image="drop_almonds" x="365" y="-20"/>
		<clip id="almonds2" position="absolute" y2="260"/>
		<remove id="almonds2" y="270"/>
		<pause time="10"/>
		<add id="almonds3" image="drop_almonds" x="340" y="-20"/>
		<clip id="almonds3" position="absolute" y2="280"/>
		<remove id="almonds3" y="280"/>
		<pause time="10"/>
		<add id="almonds4" image="drop_almonds" x="355" y="-20"/>
		<clip id="almonds4" position="absolute" y2="260"/>
		<remove id="almonds4" y="270"/>
		<pause time="10"/>				
		<add id="almonds5" image="drop_almonds" x="330" y="-20"/>
		<clip id="almonds5" position="absolute" y2="250"/>
		<remove id="almonds5" y="270"/>
		<pause time="10"/>
		<add id="almonds6" image="drop_almonds" x="350" y="-20"/>
		<clip id="almonds6" position="absolute" y2="270"/>
		<remove id="almonds6" y="270"/>
		<pause time="10"/>
		<add id="almonds7" image="drop_almonds" x="335" y="-20"/>
		<clip id="almonds7" position="absolute" y2="260"/>
		<remove id="almonds7" y="270"/>
		<pause time="10"/>
		<add id="almonds8" image="drop_almonds" x="365" y="-20"/>
		<clip id="almonds8" position="absolute" y2="280"/>
		<remove id="almonds8" y="270"/>
		<pause time="10"/>				
		<end-loop/>
	</animation>
	
	<animation name="drop-rice-pot">
		<add id="rice" image="drop_rice2" x="295" y="-170"/>
		<remove id="rice" y="240"/>
		<clip id="rice" position="absolute" y2="240"/>
		<wait/>
	</animation>
		
	<animation name="boil-tortellini">

		<add id="pasta" image="pot_tortellini1" x="280" y="-20"/>
		<clip id="pasta" position="absolute" y2="240"/>
		<remove id="pasta" y="250"/>
		<pause time="10"/>

		<add id="pasta2" image="pot_tortellini2" x="390" y="-20"/>
		<clip id="pasta2" position="absolute" y2="220"/>
		<remove id="pasta2" y="230"/>
		<pause time="10"/>

		<add id="pasta3" image="pot_tortellini3" x="275" y="-50"/>
		<move id="pasta3" y="240"/>
		<clip id="pasta3" position="absolute" y2="260"/>
		<wait/>
		<bob id="pasta3" height="10" speed="100"/>

		<add id="pasta4" image="pot_tortellini1" x="310" y="0"/>
		<move id="pasta4" x="310" y="260"/>
		<clip id="pasta4" position="absolute" y2="280"/>
		<wait/>
		<bob id="pasta4" height="10" speed="100"/>

		<add id="pasta5" image="pot_tortellini2" x="350" y="0"/>
		<move id="pasta5" x="350" y="210"/>
		<clip id="pasta5" position="absolute" y2="230"/>
		<wait/>
		<bob id="pasta5" height="10" speed="100"/>

		<add id="pasta6" image="pot_tortellini3" x="380" y="-50"/>
		<move id="pasta6" y="240"/>
		<clip id="pasta6" position="absolute" y2="260"/>
		<wait/>
		<bob id="pasta6" height="10" speed="100"/>

		<persist/>
	</animation>
	<animation name="boil-potato">
		<add id="pasta" image="boil_potato" x="335" y="-20"/>
		<clip id="pasta" position="absolute" y2="220"/>
		<remove id="pasta" x="335" y="220"/>
		<pause time="10"/>

		<add id="pasta" image="boil_potato" x="385" y="-20"/>
		<clip id="pasta" position="absolute" y2="230"/>
		<remove id="pasta" x="385" y="230"/>
		<pause time="10"/>

		<add id="pasta" image="boil_potato" x="295" y="-50"/>
		<move id="pasta" y="230"/>
		<clip id="pasta" position="absolute" y2="250"/>
		<wait/>
		<bob id="pasta" height="10" speed="100"/>

		<add id="pasta2" image="boil_potato" x="305" y="0"/>
		<move id="pasta2" x="305" y="195"/>
		<clip id="pasta2" position="absolute" y2="225"/>
		<wait/>
		<bob id="pasta2" height="10" speed="100"/>

		<add id="pasta3" image="boil_potato" x="335" y="0"/>
		<move id="pasta3" x="335" y="240"/>
		<clip id="pasta3" position="absolute" y2="270"/>
		<wait/>
		<bob id="pasta3" height="10" speed="100"/>
		<persist/>
	</animation>
	
	<animation name="steam-tamale">

		<add id="pasta" image="steam_tamale" x="305" y="-20"/>
		<clip id="pasta" position="absolute" y2="185"/>
		<remove id="pasta" y="180"/>
		<pause time="10"/>
		<add id="pasta" image="steam_tamale" x="355" y="-20"/>
		<clip id="pasta" position="absolute" y2="185"/>
		<remove id="pasta" y="180"/>
		<pause time="10"/>
		<play animation="smallripple"/>

		<add id="pasta" image="steam_tamale" x="245" y="-50"/>
		<move id="pasta" y="190"/>
		<clip id="pasta" position="absolute" y2="220"/>
		<wait/>
		<play animation="smallripple"/>
		<bob id="pasta" height="10" speed="100"/>

		<add id="pasta2" image="steam_tamale" x="290" y="0"/>
		<move id="pasta2" x="305" y="165"/>
		<clip id="pasta2" position="absolute" y2="195"/>
		<wait/>
		<play animation="smallripple"/>
		<bob id="pasta2" height="10" speed="100"/>

		<add id="pasta3" image="steam_tamale" x="335" y="0"/>
		<move id="pasta3" x="335" y="190"/>
		<clip id="pasta3" position="absolute" y2="220"/>
		<wait/>
		<play animation="smallripple"/>
		<bob id="pasta3" height="10" speed="100"/>

		<persist/>
	</animation>

	<animation name="smoke">
		<add id="smoke" image="smoke" y="15" cols="10" opacity="0" align="center" valign="bottom"/>
		<cycle id="smoke" rate="10"/>
		<fade id="smoke" opacity="1" speed="0.02"/>
		<wait/>
		<fade id="smoke" opacity="0" speed="0.02"/>
		<wait/>
	</animation>
	<animation name="fire">
		<add id="fire" image="fire" x="190" y="-10" cols="10"/>
		<cycle id="fire" rate="10"/>
		<pause time="10"/>
		<add id="fire2" image="fire" x="200" y="-15" cols="10"/>
		<cycle id="fire2" rate="10"/>
		<pause time="300"/>
		<wait/>
	</animation>
	<animation name="grill-fire">
		<add id="fire" image="fire" x="x" y="y" cols="10"/>
		<clip id="fire" y1="10"/>
		<scale id="fire" factor="0.4"/>
		<cycle id="fire" rate="10"/>
		<pause time="50"/>
		<fade-out id="fire" speed="0.02"/>
		<pause time="50"/>
	</animation>
	<animation name="light-skillet-smoke">
		<add id="smoke" image="smokepuff_light" x="0" y="0" opacity="0.5"/>
		<scale id="smoke" factor="0.2"/>
		<expand id="smoke" scale="1.0" speed="0.007"/>
		<fade-out id="smoke" speed="0.002"/>
		<remove id="smoke" dy="-500" speed="0.15"/>
		<wait/>
	</animation>
	<animation name="dark-skillet-smoke">
		<add id="smoke" image="smokepuff_dark" x="0" y="0" opacity="0.5"/>
		<scale id="smoke" factor="0.2"/>
		<expand id="smoke" scale="1.0" speed="0.007"/>
		<fade-out id="smoke" speed="0.002"/>
		<remove id="smoke" dy="-500" speed="0.15"/>
		<wait/>
	</animation>
	<animation name="light-saute-smoke">
		<add id="smoke" image="smokepuff_light" x="0" y="0" opacity="0.5"/>
		<scale id="smoke" factor="0.2"/>
		<expand id="smoke" scale="1.0" speed="0.007"/>
		<fade-out id="smoke" speed="0.002"/>
		<wait/>
	</animation>
	<animation name="dark-saute-smoke">
		<add id="smoke" image="smokepuff_dark" x="0" y="0" opacity="0.5"/>
		<scale id="smoke" factor="0.2"/>
		<expand id="smoke" scale="1.0" speed="0.007"/>
		<fade-out id="smoke" speed="0.002"/>
		<wait/>
	</animation>
	<animation name="bubble">
		<add id="bubble" image="bubble" x="0" y="0" cols="4"/>
		<cycle id="bubble" rate="15"/>
		<pause time="60"/>
	</animation>
	
	<animation name="cursor-intro">
		<add id="cursor" image="cursor" x="start-x" y="start-y" cols="3" opacity="0"/>
		<move id="cursor" dy="50" speed="0"/>
		<move id="cursor" dy="-50" speed="1"/>
		<fade id="cursor" opacity="1" speed="0.05"/>
		<pause time="75"/>
		<set-frame id="cursor" frame="1"/>
		<pause time="50"/>
		<set-frame id="cursor" frame="2"/>
	</animation>
	<animation name="cursor-extro">
		<wait/>
		<fade-out id="cursor" speed="0.05"/>
		<wait/>
	</animation>
	<animation name="line-cursor">
		<load animation="cursor-intro"/>
		<move id="cursor" x="end-x" y="end-y" speed="1.5"/>
		<load animation="cursor-extro"/>
	</animation>
	<animation name="circle-cursor">
		<load animation="cursor-intro"/>
		<circle id="cursor" x="center-x" y="center-y" radius="radius" angle="angle" speed="1.5"/>
		<load animation="cursor-extro"/>
	</animation>
	<animation name="zigzag-cursor">
		<load animation="cursor-intro"/>
		<move id="cursor" x="pt2-x" y="pt2-y" speed="1.5"/>
		<wait/>
		<move id="cursor" x="pt3-x" y="pt3-y" speed="1.5"/>
		<wait/>
		<move id="cursor" x="pt4-x" y="pt4-y" speed="1.5"/>
		<load animation="cursor-extro"/>
	</animation>

  <animation name="slider_tutorial">
  	<pause time="200"/>
    <subtract name="delay" value="600"/>
    <add id="cursor" image="cursor" x="400" y="300" cols="3" align="center" valign="center" opacity="0"/>
    <move id="cursor" dy="50" speed="0"/>
    <move id="cursor" dy="-50" speed="1"/>
    <fade id="cursor" opacity="1" speed="0.05"/>
    <wait/>
    <pause time="delay"/>
    <move id="cursor" x="36" y="485" align="center" valign="center" speed="2"/>
    <wait/>
    <set-frame id="cursor" frame="1"/>
    <pause time="200"/>
    <set-frame id="cursor" frame="2"/>
    <slide id="cursor" speed="1.8"/>
    <load animation="cursor-extro"/>
  </animation>

  <animation name="early_step">
    <add id="early_step_text" textbox="textbox" text="early_step_text" x="10" y="350" z="1" width="400" if="early-step"/>
    <persist if="early-step"/>
    <remove id="early_step_text"/>
  </animation>

	<animation name="start">
		<pause time="25"/>
		<add id="number" image="go" x="400" y="250" align="center"/>
		<scale id="number" factor="0.01"/>
		<expand id="number" scale="1.0" speed="0.03"/>
		<pause time="20"/>
		<sound name="timeup"/>
		<wait/>
		<pause time="50"/>
		<fade-out id="number" speed="0.05"/>
		<wait/>
	</animation>

	<animation name="finished">
		<pause time="25"/>
		<add id="icon" image="finished" x="400" y="220" align="center"/>
		<scale id="icon" factor="0.01"/>
		<expand id="icon" scale="1.0" speed="0.01"/>
		<pause time="20"/>
		<sound name="timeup"/>
		<wait/>
		<pause time="50"/>
		<fade-out id="icon" speed="0.02"/>
		<wait/>
	</animation>

	<animation name="time-up">
		<pause time="25"/>
		<add id="icon" image="time_up" x="400" y="230" align="center"/>
		<scale id="icon" factor="0.01"/>
		<expand id="icon" scale="1.0" speed="0.01"/>
		<pause time="20"/>
		<sound name="timeup"/>
		<wait/>
		<pause time="50"/>
		<fade-out id="icon" speed="0.02"/>
		<wait/>
	</animation>

	<animation name="score-cloud">
    <!-- if there's an image score -->
    <fade id="score" opacity="0" speed="0"/>
    <move id="score" x="130" y="19" speed="0" align="right"/>
    
		<pause time="delay"/>
		<add id="label" text="text-label" lookup="false" font="pda" x="-130" y="19" width="300" opacity="0"/>
    <add id="score" text="text-score" lookup="false" font="pda" x="130" y="19" width="300" align="right" opacity="0" if="got-text-score"/>
		<fade id="label" opacity="1" speed="0.04"/>
		<fade id="score" opacity="1" speed="0.04"/>
		<add id="cloud" image="score_cloud" x="-200" y="-50" cols="3"/>
		<sound name="poof"/>
		<pause time="15"/>
		<set-frame id="cloud" frame="1"/>
		<expand id="cloud" scale="1.5" speed="0.003"/>
		<move id="cloud" dy="-50" speed="0.25"/>
		<pause time="15"/>
		<set-frame id="cloud" frame="2"/>
		<fade-out id="cloud" speed="0.02"/>
		<persist/>
	</animation>

	<animation name="transition">
    <saturate id="screenshot" saturation="0" speed="0.01"/>
    <define name="slice-speed" value="9"/>
    <play id="slice" animation="transition_slice" slice-speed="slice-speed"/>
    <add id="cutter" image="transition_pizzacutter" x="397" y="0" z="1" valign="bottom" cols="2"/>
    <cycle id="cutter" rate="5"/>
    <remove id="cutter" y="600" speed="slice-speed"/>
    <wait/>
    <merge id="slice" with="screenshot"/>
    <add-rect id="left" x="0" y="0" width="400" height="600" alpha="0"/>
    <add-rect id="right" x="400" y="0" width="400" height="600" alpha="0"/>
    <merge id="screenshot" with="left" remove="false"/>
    <merge id="screenshot" with="right"/>
    <rotate-from id="left" x="0"/>
    <rotate-from id="right" x="400"/>
    <rotate id="left" angle="-90" speed="0.8" y="-1"/>
    <rotate id="right" angle="90" speed="0.8" y="-1"/>
    <wait/>
	</animation>

  <animation name="transition_slice">
    <divide name="delay" value1="90" value2="slice-speed"/>
    <pause time="delay"/>
    <add id="slice" image="transition_pizzacutterslice" x="400" y="0" align="center"/>
    <define name="clip-y" value="0"/>
    <start-loop/>
    <add name="clip-y" value="slice-speed"/>
    <clip id="slice" y2="clip-y"/>
    <pause time="1"/>
    <greater-than name="done" value1="clip-y" value2="600"/>
    <break if="done"/>
    <end-loop/>
    <persist/>
  </animation>

	<animation name="comic_intro">
		<add-rect id="black" red="0" green="0" blue="0" x="0" y="0" width="800" height="600"/>
		<add id="comic1" image="comic1" x="0" y="0"/>
		<pause time="100"/>

		<add id="text0" textbox="textbox" text="comic_text0" x="400" y="490" align="center" width="400" opacity="0"/>
		<fade id="text0" opacity="1"/>
		<wait/>
		<next/>

		<fade-out id="text0" opacity="0"/>
		<add id="text1" textbox="textbox" text="comic_text1" x="220" y="90" align="center" width="400" opacity="0"/>
		<fade id="text1" opacity="1"/>

		<wait/>
		<next/>

		<fade-out id="text1" opacity="0"/>
		<add id="text2" textbox="textbox" text="comic_text2" x="595" y="90" align="center" width="400" opacity="0"/>
		<fade id="text2" opacity="1"/>

		<wait/>
		<next/>

		<fade-out id="text2" opacity="0"/>
		<add id="comic2" image="comic2" x="0" y="0" opacity="0"/>
		<fade id="comic2" opacity="1"/>
		<fade-out id="comic1"/>
		<add id="text3" textbox="textbox" text="comic_text3" x="500" y="20" align="center" width="500" opacity="0"/>
		<add id="textfor" text="comic_textfor" x="320" y="450" align="center" width="500"/>
		<add id="textheader" text="comic_textheader" x="500" y="260" align="center" width="500"/>
		<add id="textheader2" text="comic_textheader2" x="500" y="280" align="center" width="500"/>
		<add id="textpayto" text="comic_textpayto" x="252" y="330" align="center" width="500"/>
    <add id="trophy" image="trophy_final_comic" x="125" y="332" cols="4"/>
    <set-frame id="trophy" frame="2"/>
		<fade id="text3" opacity="1"/>

		<wait/>
		<next/>

		<fade-out id="text3" opacity="0"/>
		<add id="text4" textbox="textbox" text="comic_text4" x="570" y="100" align="center" width="500" opacity="0"/>		
		<add id="textprize" text="comic_textprize" x="665" y="330" align="center" width="500" opacity="0"/>
		<add id="textprize2" text="comic_textprize2" x="430" y="395" align="center" width="500" opacity="0"/>		
		<fade id="text4" opacity="1"/>
		<fade id="textprize" opacity="1"/>
		<fade id="textprize2" opacity="1"/>
		<wait/>
		<next/>


		<fade-out id="text4" opacity="0"/>
		<add id="comic3" image="comic3" x="0" y="0" opacity="0"/>
		<fade id="comic3" opacity="1"/>
		<fade-out id="comic2" opacity="0"/>
		<add id="text5" textbox="textbox" text="comic_text5" x="550" y="100" align="center" width="500" opacity="0"/>
		<fade id="text5" opacity="1"/>

		<wait/>
		<next/>
		<fade-out id="text5" opacity="0"/>
		<add id="text6" textbox="textbox" text="comic_text6" x="550" y="200" align="center" width="500" opacity="0"/>
		<fade id="text6" opacity="1"/>
		<wait/>
		<next/>

		<fade-out id="text6" opacity="0"/>
		<add id="comic4" image="comic4" x="0" y="0" opacity="0"/>
		<fade id="comic4" opacity="1"/>
		<fade-out id="comic3" opacity="0"/>
		<add id="text7" textbox="textbox" text="comic_text7" x="350" y="390" align="center" width="500" opacity="0"/>
		<fade id="text7" opacity="1"/>
		<wait/>
		<next/>

		<fade-out id="text7" opacity="0"/>
		<add id="comic5" image="comic5" x="0" y="0" opacity="0"/>
		<fade id="comic5" opacity="1"/>
		<fade-out id="comic4" opacity="0"/>
		<add id="text8" textbox="textbox" text="comic_text8" x="400" y="490" align="center" width="400" opacity="0"/>
		<fade id="text8" opacity="1"/>
		<wait/>
		<next/>


		<fade-out id="text8" opacity="0"/>
		<add id="text9" textbox="textbox" text="comic_text9" x="400" y="470" align="center" width="400" opacity="0"/>
		<fade id="text9" opacity="1"/>
		<wait/>
		<next/>

		<fade-out id="text9" opacity="0"/>
		<add id="text10" textbox="textbox" text="comic_text10" x="400" y="470" align="center" width="400" opacity="0"/>
		<fade id="text10" opacity="1"/>
		<wait/>
		<next/>

	</animation>

	<animation name="comic_final">
		<add-rect id="black" red="0" green="0" blue="0" x="0" y="0" width="800" height="600"/>
		<add id="comic6" image="comic6" x="0" y="0"/>
		<pause time="100"/>

		<add id="text0" textbox="textbox" text="comic_end0" x="210" y="10" align="center" width="400" opacity="0"/>
		<fade id="text0" opacity="1"/>
		<wait/>
		<next/>

		<fade-out id="text0" opacity="0"/>
		<add id="text1" textbox="textbox" text="comic_end1" x="550" y="390" align="center" width="400" opacity="0"/>
		<fade id="text1" opacity="1"/>
		<sound name="applause"/>

		<wait/>
		<next/>

		<fade-out id="text1" opacity="0"/>
		<add id="comic7" image="comic7" x="0" y="0" opacity="0"/>
		<fade id="comic7" opacity="1"/>
		<fade-out id="comic6"/>
		
		<add id="text2" textbox="textbox" text="comic_end2" x="210" y="250" align="center" width="400" opacity="0"/>
		<fade id="text2" opacity="1"/>

		<wait/>
		<next/>
		
		<fade-out id="text2" opacity="0"/>
		
		<add id="text3" textbox="textbox" text="comic_end3" x="510" y="20" align="center" width="500" opacity="0"/>
			
		<fade id="text3" opacity="1"/>

		<wait/>
		<next/>

		<fade-out id="text3" opacity="0"/>
		<add id="text4" textbox="textbox" text="comic_end4" x="620" y="120" align="center" width="500" opacity="0"/>			
		<fade id="text4" opacity="1"/>
		
		<wait/>
		<next/>


		<fade-out id="text4" opacity="0"/>		
		<add id="text5" textbox="textbox" text="comic_end5" x="570" y="250" align="center" width="500" opacity="0"/>
		<fade id="text5" opacity="1"/>

		<wait/>
		<next/>
		
		<fade-out id="text5" opacity="0"/>
		
		<add id="comic8" image="comic8" x="0" y="0" opacity="0"/>
    <fade id="comic8" opacity="1"/>
		<fade-out id="comic7" opacity="0"/>
		<add id="textfor" text="comic_textfor" x="320" y="450" align="center" width="500"/>
		<add id="textheader" text="comic_textheader" x="500" y="260" align="center" width="500"/>
		<add id="textheader2" text="comic_textheader2" x="500" y="280" align="center" width="500"/>
		<add id="textpayto" text="comic_textpayto" x="252" y="330" align="center" width="500"/>
		<add id="textprize" text="comic_textprize" x="665" y="330" align="center" width="500" />
		<add id="textprize2" text="comic_textprize2" x="430" y="395" align="center" width="500" />
		<add id="text6" textbox="textbox" text="comic_end6" x="350" y="50" align="center" width="500" opacity="0"/>
		<fade id="text6" opacity="1"/>
    <add-final-trophy id="trophy" x="125" y="332" cols="4" opacity="0"/>
    <fade id="trophy" opacity="1"/>
		<wait/>
		<next/>

		<fade-out id="text6" opacity="0"/>
		<start-soundloop name="drumroll"/>
		<pause time="200"/>
		<stop-soundloop name="drumroll"/>
		<wait/>
		
		<sound name="cymbal"/>
		<add id="text7" textbox="textbox" text="comic_end7" x="400" y="120" align="center" width="500" opacity="0"/>
		<add id="text8" text="comic_end8" x="300" y="330" width="500" opacity="0"/>
		<fade id="text7" opacity="1"/>
		<fade id="text8" opacity="1"/>
		<wait/>
		<next/>		

	</animation>

  <animation name="credits_person">
    <format name="person-image" template="credits_%s" string="person"/>
    <format name="person-name" template="%s_name" string="person"/>
    <format name="person-title" template="%s_title" string="person"/>
    
    <add id="face" image="person-image" x="1072" y="120" align="center"/>
    <add id="name" text="person-name" font="large" x="-272" y="350" align="center" justification="center"/>
    <add id="title" text="person-title" font="medium_light" x="-272" y="400" align="center" justification="center"/>
    <attach id="title" to="name"/>

    <rotate id="face" angle="360" speed="angular-speed"/>
    <move id="face" dx="-672" speed="speed"/>
    <move id="name" dx="672" speed="speed"/>
    
    <pause time="300"/>

    <rotate id="face" angle="-360" speed="angular-speed"/>
    <remove id="face" dx="672" speed="speed"/>
    <remove id="name" dx="-672" speed="speed"/>
    
  </animation>

  <animation name="credits">
    <define name="angular-speed" value="5"/>
    <multiply name="speed" value1="angular-speed" value2="1.8675"/>
    
    <add id="bg" image="MainMenu"/>
    <add-rect id="r" width="800" height="600" alpha="0.35"/>
    <add text="credits_title" font="large" x="400" y="35" align="center"/>
    <add text="version" lookup="false" x="737" y="570" font="small" align="center"/>
    <back-button x="400" y="495" text="Back"/>

    <start-loop/>

    <add id="name" text="fugazo_title" font="medium_light" x="1200" y="180" align="center" justification="center"/>
    <add id="title" image="fugazo" x="-400" y="220" align="center"/>

    <move id="name" dx="-800"/>
    <move id="title" dx="800"/>

    <pause time="350"/>

    <remove id="name" dx="800"/>
    <remove id="title" dx="-800"/>
    

    <define name="person" value="andrew"/>
    <load animation="credits_person"/>
    <define name="person" value="jonah"/>
    <load animation="credits_person"/>
    <define name="person" value="matt"/>
    <load animation="credits_person"/>
    <define name="person" value="eric"/>
    <load animation="credits_person"/>
    <define name="person" value="peter"/>
    <load animation="credits_person"/>

    <add id="name" text="kevin_title" font="large" x="1200" y="110" align="center" justification="center"/>
    <add id="title" text="kevin_name" font="medium_light" x="1200" y="160" align="center" justification="center"/>
    
    <add id="name2" text="special_thanks" font="large" x="-400" y="210" align="center" justification="center"/>
    <add id="title2" text="special_thanks_to" font="medium_light" x="-400" y="260" align="center" justification="center"/>
    <add id="disclaimer" text="credits_disclaimer" font="pda" x="-400" y="445" align="center" justification="center"/>

    <attach id="title" to="name"/>
    <attach id="title2" to="name2"/>
    <attach id="disclaimer" to="name2"/>

    <move id="name" dx="-800"/>
    <move id="name2" dx="800"/>

    <pause time="350"/>

    <remove id="name" dx="800"/>
    <remove id="name2" dx="-800"/>
    
    <end-loop/>
    
  </animation>
</animations>
