<?xml version="0.1" encoding="UTF8" ?>
<aEffect after="group1" screen="1" particles="./ps/03_sun_elephant.ps" />
<Effect before="shkaf" screen="1" particles="./ps/03_sun_lights.ps" />
<Goal id="LEVEL_03_GOAL" />
<Group name="yashik">
    <Layer name="yashik01" />
    <Layer name="yashik02" />
    <Layer name="metelka" assign="0" />
</Group>
<Group name="kreslo_cat">
    <Layer name="kreslo" assign="0" />
    <Layer name="kreslo_shadow" />
    <Layer name="cat" assign="0" />
    <Layer name="cat_shadow" />
    <Layer name="cat_ear1" assign="0" />
    <Layer name="cat_ear2" assign="0" />
</Group>
<Object name="book01" shadow="book01_shadow">
    <Clicker task_name="books" />
</Object>
<Object name="book02" shadow="book02_shadow">
    <Clicker task_name="books" />
</Object>
<Object name="book03">
    <Clicker task_name="books" />
</Object>
<Object name="book04">
    <Clicker task_name="books" />
</Object>
<Object name="book05">
    <Clicker task_name="books" />
</Object>
<Object name="book06">
    <Clicker task_name="books" />
    <Hint flags="!red_box_shifted" msg="MOVE_SOMETHING" />
</Object>
<Object name="book07">
    <Clicker task_name="books" />
</Object>
<Object name="book08">
    <Clicker task_name="books" />
</Object>
<Object name="book09">
    <Clicker task_name="books" />
</Object>
<Object name="book10" shadow="book10_shadow">
    <Clicker task_name="books" />
</Object>
<Object name="book11">
    <Clicker task_name="books" />
    <Hint flags="!stopka_shifted" msg="MOVE_SOMETHING" />
</Object>
<Object name="book12">
    <Clicker task_name="books" />
</Object>
<Object name="book13">
    <Clicker task_name="books" />
</Object>
<Object name="book16">
    <Clicker task_name="books" />
</Object>
<Object name="book17">
    <Clicker task_name="books" />
    <Hint>
          <Message flags="!open_shkaf" msg="UNLOCK_PUZZLE" />
          <Message flags="![cobwebs_completed]" msg="CLEAR_COBWEBS" />
    </Hint>
</Object>
<Object name="book18">
    <Clicker task_name="books" />
</Object>
<Object name="book19">
    <Clicker task_name="books" />
</Object>
<Object name="book20">
    <Clicker task_name="books" />
</Object>
<Object name="yashik" initial_flags="yashik_closed" dx="37" dy="-21">
    <Highlight type="hand_point_star" />
    <Click>
        <Action name="StopEffects" finish="1" />
        <Action condition="yashik_opened" name="StartEffect" effect="move" dst_x="37" dst_y="-21" end="1" func="smooth" sound="draw_open"/>
        <Action condition="yashik_closed" name="StartEffect" effect="move" dst_x="-37" dst_y="21" end="1" func="smooth" sound="draw_open"/>
        <Action condition="yashik_closed" name="Timer" id="1122" time="1" />
        <Action name="ChangeFlag">
            <Condition state="yashik_opened" set="yashik_closed" clear="yashik_opened" />
            <Condition state="yashik_closed" set="yashik_opened" clear="yashik_closed" />
        </Action>
    </Click>
    <OnTimer timer_id="1122">
        <aAction condition="!yashik_closed" name="ObjectState" target="metelka" active="1" />
        <Action condition="!yashik_zoomed" name="zoom" source="720, 360, 300, 350" dest="400, 150, 600, 700" time="1.4" delay="1" sound="zoom_effect" sound_zoom_out="zoom_effect" >
        <Action name="FindObject" target="metelka" />
        <Click rect="690, 452, 174, 76" path="./ps/zoom_highlight.ps" />
    </Action>
        <Action name="ChangeFlag" set="yashik_zoomed" />
    </OnTimer>
</Object>
<Object name="kreslo_cat" />
<Object name="kreslo" shadow="kreslo_shadow">
    <Highlight type="hand_point_star" />
    <Click>
        <Action name="StopEffects" target="kreslo_cat" finish="1" />
        <Action condition="kreslo_shifted" name="StartEffect" target="kreslo_cat" effect="move" dst_x="0" dst_y="-40" end="1.5" func="smooth" sound="chair_move"/>
        <Action condition="!kreslo_shifted" name="StartEffect" target="kreslo_cat" effect="move" dst_x="0" dst_y="40" end="1.5" func="smooth" sound="chair_move"/>
        <Action name="ChangeFlag" set="CatEarAnimated" />
        <Action name="ChangeFlag">
            <Condition state="kreslo_shifted" clear="kreslo_shifted" />
            <Condition state="!kreslo_shifted" set="kreslo_shifted" />
        </Action>
    </Click>
</Object>
<Object name="shkaf" active="1">
    <FlagChanged state="open_shkaf" once="1">
        <Action name="ObjectState" target="notebook" active="0" />
        <Action name="ObjectState" target="shkaf_panel" visible="0" fade_time="0" />
        <Action name="StartEffect" effect="move" dst_x="-284" dst_y="18" end="3" func="smooth" sound="wardrobe_move"/>
        <Action name="StartEffect" effect="scale" src="1" dst="1.2" end="3" />
        <Action name="CompleteTask" task="open_shkaf" />
    </FlagChanged>
</Object>
<Object name="pil">
    <Apply object="metelka">
        <Action name="ObjectState" visible="0" fade_time="2" />
        <Action name="StartEffect" effect="particle" path="./ps/03_dust_arb.ps" align="screen" stop="2" sound="dust_apply" />
        <Action name="CompleteTask" task="cobwebs" />
    </Apply>
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_01">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>


<Object name="pil_02">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_03">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_04">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_05">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_06">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_07">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="pil_08">
    <Messages>
        <Click object="!metelka" message="LEV03_Q_PIL" />
    </Messages>
</Object>

<Object name="metelka" active="0">
    <aHighlight type="hand_point" />
    <Clicker />
    <Hint flags="!yashik_opened" msg="OPEN_YASHIK" />
    <Inventory image="./images/level_03/inv/metelka_inventory">
        <Task name="panel_pil" />
        <Task name="cobwebs" />
    </Inventory>
</Object>
<Object name="stranica01">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica02">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica03">
    <Clicker task_name="stranica" />
    <Hint flags="!small_door_opened" msg="LOOK_AT_ARC" />
</Object>
<Object name="stranica04">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica05">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica06">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica07">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica08">
    <Clicker task_name="stranica" />
    <Hint flags="!kartina_shifted" msg="LOOK_AT_PHOTO" />
</Object>
<Object name="stranica09">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica10">
    <Clicker task_name="stranica" />
</Object>
<Object name="book14" shadow="book14_shadow">
    <Clicker task_name="books" />
    <Hint>
    <Message flags="!open_shkaf" msg="UNLOCK_PUZZLE" />
    <Message flags="![cobwebs_completed]" msg="CLEAR_COBWEBS" />
    </Hint>
</Object>
<Object name="book15">
    <Clicker task_name="books" />
</Object>
<Object name="stranica14">
    <Clicker task_name="stranica" />
</Object>
<Object name="stranica15">
    <Clicker task_name="stranica" />
    <Hint flags="!kreslo_shifted" msg="MOVE_SOMETHING" />
</Object>
<Group name="01g">
    <Layer name="01" />
    <Layer name="01a" />
</Group>
<Group name="02g">
    <Layer name="02" />
    <Layer name="02a" />
</Group>
<Group name="03g">
    <Layer name="03" />
    <Layer name="03a" />
</Group>
<Group name="04g">
    <Layer name="04" />
    <Layer name="04a" />
</Group>
<Group name="05g">
    <Layer name="05" />
    <Layer name="05a" />
</Group>
<Group name="06g">
    <Layer name="06" />
    <Layer name="06a" />
</Group>
<Group name="07g">
    <Layer name="07" />
    <Layer name="07a" />
</Group>
<Group name="08g">
    <Layer name="08" />
    <Layer name="08a" />
</Group>
<Object name="01g" rotation="180">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" />
        <Action name="ObjectState" target="pil_01" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="01" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply"/>
        <Action name="ChangeFlag" set="pil01" />
        <Action name="ObjectState" active="0" />
    </Apply>
    <Messages>
        <Click object="!metelka" condition="!pil01" message="LEV03_Q_PIL" />
    </Messages>
</Object>
<Object name="02g" rotation="216">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" />
        <Action name="ObjectState" target="pil_02" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="02" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply"/>
        <Action name="ChangeFlag" set="pil02" />
        <Action name="ObjectState" active="0" />
    </Apply>
    <Messages>
        <Click object="!metelka" condition="!pil02" message="LEV03_Q_PIL" />
    </Messages>
</Object>
<Object name="03g" rotation="90">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" />
        <Action name="ObjectState" target="pil_03" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="03" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply"/>
        <Action name="ChangeFlag" set="pil03" />
        <Action name="ObjectState" active="0" />
    </Apply>
    <Messages>
        <Click object="!metelka" condition="!pil03" message="LEV03_Q_PIL" />
    </Messages>
</Object>
<Object name="04g" rotation="120" initial_flags="4_3">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" once="1" />
        <Action name="ObjectState" target="pil_04" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="04" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply"/>
        <Action name="ChangeFlag" set="pil04" />
        <Action name="ObjectState" active="1" />
    </Apply>
    <Click>
        <Action name="StopEffects" finish="1" condition="puzzle_ready" />
        <Action name="StartEffect" effect="rotate" delta="60" end="0.5" condition="puzzle_ready" sound="lock_rotate" />
        <Action name="Timer" id="44" time="0.5" condition="puzzle_ready" />
        <Action name="ObjectState" active="0" condition="puzzle_ready" />
    </Click>
    <OnTimer timer_id="44">
        <Action name="ObjectState" active="1" />
        <Action name="ChangeFlag">
            <Condition state="4_1" set="4_2" clear="4_1" />
            <Condition state="4_2" set="4_3" clear="4_2" />
            <Condition state="4_3" set="4_4" clear="4_3" />
            <Condition state="4_4" set="4_5" clear="4_4" />
            <Condition state="4_5" set="4_6" clear="4_5" />
            <Condition state="4_6" set="4_1" clear="4_6" />
        </Action>
    </OnTimer>
    <Messages>
        <Click object="!metelka" condition="!pil04" message="LEV03_Q_PIL" />
        <Click object="!metelka" condition="pil05 * !puzzle_ready" message="LEV03_Q_PIL_NA_PANELI" />
    </Messages>
</Object>
<Object name="05g" rotation="300" initial_flags="5_6">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" once="1" />
        <Action name="ObjectState" target="pil_05" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="05" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply"/>
        <Action name="ChangeFlag" set="pil05" />
        <Action name="ObjectState" active="1" />
    </Apply>
    <Click>
        <Action name="StopEffects" finish="1" condition="puzzle_ready" />
        <Action name="StartEffect" effect="rotate" delta="60" end="0.5" condition="puzzle_ready" sound="lock_rotate" />
        <Action name="Timer" id="55" time="0.5" condition="puzzle_ready" />
        <Action name="ObjectState" active="0" condition="puzzle_ready" />
    </Click>
    <OnTimer timer_id="55">
        <Action name="ObjectState" active="1" />
        <Action name="ChangeFlag">
            <Condition state="5_1" set="5_2" clear="5_1" />
            <Condition state="5_2" set="5_3" clear="5_2" />
            <Condition state="5_3" set="5_4" clear="5_3" />
            <Condition state="5_4" set="5_5" clear="5_4" />
            <Condition state="5_5" set="5_6" clear="5_5" />
            <Condition state="5_6" set="5_1" clear="5_6" />
        </Action>
    </OnTimer>
    <Messages>
        <Click object="!metelka" condition="!pil05" message="LEV03_Q_PIL" />
        <Click object="!metelka" condition="pil05 * !puzzle_ready" message="LEV03_Q_PIL_NA_PANELI" />
    </Messages>
</Object>
<Object name="06g" rotation="144">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" />
        <Action name="ObjectState" target="pil_06" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="06" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply" />
        <Action name="ChangeFlag" set="pil06" />
        <Action name="ObjectState" active="0" />
    </Apply>
    <Messages>
        <Click object="!metelka" condition="!pil06" message="LEV03_Q_PIL" />
    </Messages>
</Object>
<Object name="07g">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" />
        <Action name="ObjectState" target="pil_07" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="07" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply" />
        <Action name="ChangeFlag" set="pil07" />
        <Action name="ObjectState" active="0" />
    </Apply>
    <Messages>
        <Click object="!metelka" condition="!pil07" message="LEV03_Q_PIL" />
    </Messages>
</Object>
<Object name="08g" rotation="72">
    <Apply object="metelka">
        <Action name="CompleteTask" task="panel_pil" />
        <Action name="ObjectState" target="pil_08" visible="0" fade_time="0.5" once="1" />
        <Action name="StartEffect" target_layer="08" effect="particle" path="./ps/03_dust_dlj_paneli.ps" align="center" stop="0.5" once="1" sound="dust_apply" />
        <Action name="ChangeFlag" set="pil08" />
        <Action name="ObjectState" active="0" />
    </Apply>
    <Messages>
        <Click object="!metelka" condition="!pil08" message="LEV03_Q_PIL" />
    </Messages>
</Object>
<Object name="puzzle_checker">
    <Layer name="wooden_base" active="1" />
    <FlagChanged>
        <Flags state="pil01 * pil02 * pil03 * pil04 * pil05 * pil06 * pil07 * pil08" once="1">
            <Action name="layerstate" layer="layer20" visible="0" />
            <Action name="Timer" id="123456" time="2" />
        </Flags>
        <Flags state="4_5 * 5_3" once="1">
            <Action name="ObjectState" target="01g" active="0" />
            <Action name="ObjectState" target="02g" active="0" />
            <Action name="ObjectState" target="03g" active="0" />
            <Action name="ObjectState" target="04g" active="0" />
            <Action name="ObjectState" target="05g" active="0" />
            <Action name="ObjectState" target="06g" active="0" />
            <Action name="ObjectState" target="07g" active="0" />
            <Action name="ObjectState" target="08g" active="0" />
            <Action name="StartEffect" effect="particle" path="./ps/03_secret_win.ps" align="screen" start="0" stop="5" />
            <Action name="Timer" id="222" time="6" />
        </Flags>
    </FlagChanged>
    <OnTimer>
        <Timer timer_id="222">
            <Action name="Sublocation" location="puzzle" show="0" />
            <Action name="ChangeFlag" set="open_shkaf" />
        </Timer>
        <Timer timer_id="123456">
            <Action name="TutorialDialog" tutorial="puzzle_help" />
            <Action name="ChangeFlag" set="puzzle_ready" />
        </Timer>
    </OnTimer>
</Object>
<SubLocation name="puzzle" type="embedded_ispy" skip_time="120" skip="1">
    <Goal id="SL_GOAL_LEVEL_03" />
    <aFade bkg_color="00000080" time="1" />
    <OnSkip>
        <Action name="ChangeFlag" set="4_5, 5_3" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
	<Action name="CompleteTask" task="panel_pil" />
    </OnSkip>
    <Object name="01g" />
    <Object name="02g" />
    <Object name="03g" />
    <Object name="04g" />
    <Object name="05g" />
    <Object name="06g" />
    <Object name="07g" />
    <Object name="08g" />
    <Object name="pil_01" />
    <Object name="pil_02" />
    <Object name="pil_03" />
    <Object name="pil_04" />
    <Object name="pil_05" />
    <Object name="pil_06" />
    <Object name="pil_07" />
    <Object name="pil_08" />
    <Object name="metelka" />
    <Object name="puzzle_checker" />
    <StartActions>
        <Action name="call" target="01" function="C2_L3_RandomizePuzzle" params="0,4" />
        <Action name="call" target="02" function="C2_L3_RandomizePuzzle" params="1,5" />
        <Action name="call" target="03" function="C2_L3_RandomizePuzzle" params="2,4" />
        <Action name="call" target="04" function="C2_L3_RandomizePuzzle" params="3,6" />
        <Action name="call" target="05" function="C2_L3_RandomizePuzzle" params="4,6" />
        <Action name="call" target="06" function="C2_L3_RandomizePuzzle" params="5,5" />
        <Action name="call" target="07" function="C2_L3_RandomizePuzzle" params="6,4" />
        <Action name="call" target="08" function="C2_L3_RandomizePuzzle" params="7,5" />
    </StartActions>
    <Layer name="wooden_base" />
    <Layer name="layer22" />
    <Layer name="layer23" />
    <Layer name="layer24" />
    <Layer name="x" />
    <Layer name="y" />
    <Layer name="08a" />
    <Layer name="08" />
    <Layer name="07a" />
    <Layer name="07" />
    <Layer name="06a" />
    <Layer name="06" />
    <Layer name="05a" />
    <Layer name="05" />
    <Layer name="04a" />
    <Layer name="04" />
    <Layer name="03a" />
    <Layer name="03" />
    <Layer name="02a" />
    <Layer name="02" />
    <Layer name="01a" />
    <Layer name="01" />
    <Layer name="01g" />
    <Layer name="02g" />
    <Layer name="03g" />
    <Layer name="04g" />
    <Layer name="05g" />
    <Layer name="06g" />
    <Layer name="07g" />
    <Layer name="08g" />
    <Layer name="zentry_teny" />
    <Layer name="layer20" />
    <Layer name="pil_01" />
    <Layer name="pil_02" />
    <Layer name="pil_03" />
    <Layer name="pil_04" />
    <Layer name="pil_05" />
    <Layer name="pil_06" />
    <Layer name="pil_07" />
    <Layer name="pil_08" />
</SubLocation>
<Object name="cat" shadow="cat_shadow">
    <Click>
        <Action name="changeflag" set="CatEarAnimated" />
    </Click>
</Object>
<Object name="cat_ear1">
    <Layer name="cat_ear1" active="1" />
    <Layer name="cat_ear2" />
    <FlagChanged state="CatEarAnimated">
        <Action name="switchlayer" fade_time="0.2" />
        <Action name="timer" id="1" time="0.8" time_max="1" />
    </FlagChanged>
    <OnTimer>
        <Timer timer_id="1">
            <Action name="switchlayer" fade_time="0.2" />
            <Action name="changeflag" clear="CatEarAnimated" />
        </Timer>
        <Timer timer_id="3">
            <Action name="Changeflag" set="CatEarAnimated" />
        </Timer>
    </OnTimer>
</Object>
<Group name="vzvb_02" anchor_x="630" anchor_y="317">
    <Layer name="vzvb02" />
    <Layer name="vzvb02_shad" />
</Group>
<Object name="vzvb_02">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.009" rand="0.7" speed="0.9" />
        </Idle>
    </Effects>
</Object>
<Group name="vzvb_01" anchor_x="622" anchor_y="300">
    <Layer name="vzvb01" />
    <Layer name="vzvb01_shad" />
</Group>
<Object name="vzvb_01">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.009" rand="0.7" speed="0.8" />
        </Idle>
    </Effects>
</Object>
<Object name="leaf01" anchor_x="640" anchor_y="316">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.009" rand="0.7" speed="0.8" />
        </Idle>
    </Effects>
</Object>
<Object name="leaf02" anchor_x="629" anchor_y="375">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.009" rand="0.7" speed="0.8" />
        </Idle>
    </Effects>
</Object>
<Task name="open_shkaf" object="shkaf_panel" />
<Task name="cobwebs" object="pil" />
<Dependency task="cobwebs" tasks="open_shkaf" />
<Effect after="" screen="1" particles="./ps/03_sun_particles.ps" />
<Object name="shkaf_panel">
    <Highlight type="hand_point_mask" />
    <Hint default="1" />
    <Click>
        <Action name="Sublocation" location="puzzle" show="1" />
    </Click>
</Object>

<Object name="kachat1">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.008" rand="0.7" speed="0.8" />
        </Idle>
    </Effects>
</Object>

<Object name="kachat2">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.008" rand="0.7" speed="0.8" />
        </Idle>
    </Effects>
</Object>

<Object name="smalldoor">
    <Highlight type="hand_point_star" />
    <Layer name="smalldoor_open" />
    <Layer name="smalldoor_close" active="1" />
    <Click>
    <Action name="SwitchLayer" cicle="1" sound="panel_move"/>
    <Action name="ChangeFlag">
        <Condition state="small_door_opened" clear="small_door_opened" />
        <Condition state="!small_door_opened" set="small_door_opened" />
    </Action>
    </Click>
</Object>
<Interface color="fbe5bdff" />
<Object name="kartina">
    <Highlight type="hand_point_star" />
    <Layer name="layer6a" />
    <Layer name="layer6" active="1" />
    <Click>
    <Action name="SwitchLayer" cicle="1" />
    <Action name="ChangeFlag">
        <Condition state="kartina_shifted" clear="kartina_shifted" />
        <Condition state="!kartina_shifted" set="kartina_shifted" />
    </Action>
    </Click>
</Object>
<Object name="red_box">
    <Highlight type="hand_point_star" />
    <Click>
        <Action name="StopEffects" finish="1" />
        <Action condition="!red_box_shifted" name="StartEffect" effect="move" dst_x="40" dst_y="0" end="1.5" func="smooth" sound="box_move"/>
        <Action condition="red_box_shifted" name="StartEffect" effect="move" dst_x="-40" dst_y="0" end="1.5" func="smooth" sound="box_move"/>
        <Action name="ChangeFlag" set="CatEarAnimated" />
        <Action name="ChangeFlag">
            <Condition state="red_box_shifted" clear="red_box_shifted" />
            <Condition state="!red_box_shifted" set="red_box_shifted" />
        </Action>
    </Click>
</Object>
<Object name="medic_box">
    <Highlight type="hand_point_star" />
    <Click>
        <Action name="StopEffects" finish="1" />
        <Action condition="!medic_box_shifted" name="StartEffect" effect="move" dst_x="-60" dst_y="0" end="1.5" func="smooth" sound="box_move"/>
        <Action condition="medic_box_shifted" name="StartEffect" effect="move" dst_x="60" dst_y="0" end="1.5" func="smooth" sound="box_move"/>
        <Action name="ChangeFlag" set="CatEarAnimated" />
        <Action name="ChangeFlag">
            <Condition state="medic_box_shifted" clear="medic_box_shifted" />
            <Condition state="!medic_box_shifted" set="medic_box_shifted" />
        </Action>
    </Click>
</Object>
<Group name="stopka">
    <Layer name="boxes" />
    <Layer name="book02" assign="0" />
    <Layer name="book02_shadow" />
</Group>
<Object name="stopka">
   <Highlight type="hand_point_star" />
    <Click>
        <Action name="StopEffects" finish="1" />
        <Action name="StopEffects" target="provod_stul" finish="1" />
        <Action condition="!stopka_shifted" name="StartEffect" target="stopka" effect="move" dst_x="-20" dst_y="-20" end="1.5" func="smooth" sound="box_move"/>
        <Action condition="stopka_shifted" name="StartEffect" target="stopka" effect="move" dst_x="20" dst_y="20" end="1.5" func="smooth" sound="box_move"/>
        <Action name="ChangeFlag" set="CatEarAnimated" />
        <Action name="ChangeFlag">
            <Condition state="stopka_shifted" clear="stopka_shifted" />
            <Condition state="!stopka_shifted" set="stopka_shifted" />
        </Action>
    <Action name="sound" id="stopka_move" path="sounds/card_turn.pgg" preload="1" />
    </Click>
</Object>
<Task name="panel_pil" object="01g" hidden="1" />
<Task name="panel_pil" object="02g" hidden="1" />
<Task name="panel_pil" object="03g" hidden="1" />
<Task name="panel_pil" object="04g" hidden="1" />
<Task name="panel_pil" object="05g" hidden="1" />
<Task name="panel_pil" object="06g" hidden="1" />
<Task name="panel_pil" object="07g" hidden="1" />
<Task name="panel_pil" object="08g" hidden="1" />
<Interface color="f1dfd3" />

<FinishActions>
    <Action name="Journal" level="8.1"/>
</FinishActions>

<Sounds>
    <Sound id="lock_rotate" path="sounds/lock_rotate.ogg" />
    <Sound id="dust_apply" path="sounds/dust_apply.ogg" />
    <Sound id="wardrobe_move" path="sounds/wardrobe_move.ogg" />
    <Sound id="chair_move" path="sounds/chair_move.ogg" />
    <Sound id="panel_move" path="sounds/panel_move.ogg" />
    <Sound id="draw_open" path="sounds/draw_open.ogg" />
    <Sound id="box_move" path="sounds/box_move.ogg" />
    <Sound id="zoom_effect" path="sounds/zoom_effect.ogg" />
</Sounds>


