<?xml version="0.1" encoding="UTF8" ?>
<Goal id="LEVEL_23_GOAL" />
<Interface color="fbe5bdff" />
<Effect screen="1" particles="./ps/23_dust.ps" />
<Effect1 screen="1" after="layer1" particles="./ps/23_light.ps" />

<Object name="big_stul" shadow="big_stul_shadow">
    <Highlight type="hand_point_star" />
    <Click>
        <Action name="ignore" time="1" />
        <Action name="StopEffects" finish="1" />
        <Action name="StartEffect" condition="!big_stul_moved" effect="move" dst_x="50" dst_y="0" end="1" func="smooth" sound="chair_move" />
        <Action name="StartEffect" condition="big_stul_moved" effect="move" dst_x="-50" dst_y="0" end="1" func="smooth" sound="chair_move" />
        <Action name="ChangeFlag">
            <Condition state="!big_stul_moved" set="big_stul_moved" />
            <Condition state="big_stul_moved" clear="big_stul_moved" />
        </Action>
    </Click>
</Object>
<Object name="layer_05a">
    <Highlight type="hand_point_star" />
    <Click>
         <Action name="ignore" time="1" />
        <Action name="StopEffects" finish="1" />
        <Action name="StartEffect" condition="!layer_05a_moved" effect="move" dst_x="50" dst_y="0" end="1" func="smooth" sound="chair_move" />
        <Action name="StartEffect" condition="layer_05a_moved" effect="move" dst_x="-50" dst_y="0" end="1" func="smooth" sound="chair_move" />
        <Action name="ChangeFlag">
            <Condition state="!layer_05a_moved" set="layer_05a_moved" />
            <Condition state="layer_05a_moved" clear="layer_05a_moved" />
        </Action>
    </Click>
</Object>
<Object name="cat">
    <OnTimer>
        <Timer timer_id="129">
            <Action condition="!cat1 * !cat2" name="LayerState" layer="cat2" visible="0" fade_time="0" />
            <Action condition="!cat1 * !cat2" name="LayerState" layer="cat" visible="1" fade_time="0" />
            <Action condition="!cat1 * !cat2" name="Starteffect" effect="animate" />
            <Action name="ChangeFlag">
                <Condition state="cat1" clear="cat1" />
                <Condition state="!cat1 * !cat2" set="cat1" />
            </Action>
        </Timer>
    </OnTimer>
</Object>
<StartActions>
    <Action name="timer" id="129" time="2" time_max="10" multi="1" />
    <Action name="timer" id="130" time="4" time_max="10" multi="1" />
         <Action name="Timer" id="223" time="5" />
</StartActions>
<Object name="cat2">
    <Click action="LayerState" visible="0" fade_time="0" />
    <OnTimer>
        <Timer timer_id="130">
            <Action condition="!cat1 * !cat2" name="LayerState" layer="cat" visible="0" fade_time="0" />
            <Action condition="!cat1 * !cat2" name="LayerState" layer="cat2" visible="1" fade_time="0" />
            <Action condition="!cat1 * !cat2" name="Starteffect" effect="animate" />
            <Action name="ChangeFlag">
                <Condition state="cat2" clear="cat2" />
                <Condition state="!cat1 * !cat2" set="cat2" />
            </Action>
        </Timer>
    </OnTimer>
</Object>
<Object name="kartina" shadow="kartina_shadow">
    <Layer name="medalionopen" />
    <Layer name="medalion" active="1" >
           <Highlight type="hand_point_star" />
    </Layer>
    <Click action="SwitchLayer" cicle="1" >
         <Action name="ChangeFlag" set="kartina_moved" sound="panel_move" />
    </Click>
</Object>
<Object name="microphon_01">
    <Clicker task_name="microphon" />
</Object>
<Object name="microphon_02">
    <Clicker task_name="microphon" />
</Object>
<Object name="objective_01" shadow="objective_01_shadow">
    <Clicker task_name="objective" />
</Object>
<Object name="objective_02">
    <Clicker task_name="objective" />
</Object>
<Object name="old_camera_01">
    <Clicker task_name="old_camera" />
</Object>
<Object name="old_camera_02">
    <Clicker task_name="old_camera" />
</Object>
<Object name="photoalbum_01">
    <Clicker task_name="photoalbum" />
</Object>
<Object name="photoalbum_02">
    <Clicker task_name="photoalbum" />
</Object>
<Object name="photoprinter_01" shadow="photoprinter_01_shadow">
    <Clicker task_name="photoprinter" />
</Object>
<Object name="photoprinter_02">
    <Clicker task_name="photoprinter" />
    <Hint flags="!stul_shifted" msg="MOVE_SOMETHING" />
</Object>
<Object name="plenka_01">
    <Clicker task_name="plenka" />
</Object>
<Object name="plenka_02">
    <Clicker task_name="plenka" />
</Object>
<Object name="polaroid_photo_02">
    <Clicker task_name="polaroid_photo" />
</Object>

<Object name="layer4">
    <Clicker task_name="polaroid_photo" />
    <Hint flags="!kartina_moved" msg="MOVE_SOMETHING" />
</Object>

<Object name="sofit_01">
    <Clicker task_name="sofit" />
</Object>
<Object name="sofit_02">
    <Clicker task_name="sofit" />
</Object>
<Object name="stul">
    <Highlight type="hand_point_star" />
    <Click>
        <Action name="ignore" time="1.5" />
        <Action name="StopEffects" finish="1" />
        <Action condition="!stul_shifted" name="StartEffect" effect="move" dst_x="70" dst_y="20" end="1.5" func="smooth" sound="chair_move" />
        <Action condition="stul_shifted" name="StartEffect" effect="move" dst_x="-70" dst_y="-20" end="1.5" func="smooth" sound="chair_move" />
        <Action name="ChangeFlag" set="CatEarAnimated" />
        <Action name="ChangeFlag">
            <Condition state="stul_shifted" clear="stul_shifted" />
            <Condition state="!stul_shifted" set="stul_shifted" />
        </Action>
    </Click>
</Object>
<Object name="trenoga_01">
    <Clicker task_name="trenoga" />
</Object>
<Object name="trenoga_02">
    <Clicker task_name="trenoga" />
</Object>
<Object name="videocamera_01">
    <Clicker task_name="videocamera" />
    <Hint flags="!layer_05a_moved" msg="MOVE_SOMETHING" />
</Object>
<Object name="videocamera_02">
    <Clicker task_name="videocamera" />
</Object>
<Object name="vspishka_01">
    <Clicker task_name="vspishka" />
</Object>
<Object name="vspishka_02">
    <Clicker task_name="vspishka" />
</Object>
<Object name="zontik_01">
    <Clicker task_name="zontik" />
    <Hint flags="!big_stul_moved" msg="MOVE_SOMETHING" />
</Object>
<Object name="zontik_02">
    <Clicker task_name="zontik" />
</Object>
<Dependency task="videocamera" tasks="old_camera" />


<Object name="ruler_01">
    <Clicker task_name="ruler"/>
</Object>

<Object name="ruler_02">
    <Clicker task_name="ruler"/>
</Object>

<Sounds>
    <Sound id="chair_move" path="sounds/chair_move.ogg" />
    <Sound id="panel_move" path="sounds/panel_move.ogg" />
    <Sound id="zoom_effect" path="sounds/zoom_effect.ogg" />   
    <Sound id="object_click" path="sounds/object_click.ogg" />   
</Sounds>

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