<screen id="TOY_ROOM" src="swfs/screens/Floor1/Toy_Room.swf" footstep="Wood">
	<warning id="LOCATION_FLOOR1_TOY_ROOM"/>
	<unlockRoom id="Floor1/TOY_ROOM"/>
	
	<goal id="TASK_2_1" remove="true" />
	<goal id="TASK_2_3" remove="true" />
	<music src="Audio/Music/FLOOR1/DAYCARE.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	<music src="Audio/Ambient/FLOOR1/TOY_ROOM.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>
	
	<state>
		<requirement type="session" id="M2_GOT_DOORKNOB" value="false" />
		<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />
		<goal id="TASK_2_3" priority="3" />
	</state>
	<state>
		<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />
		<goal id="TASK_2_3" priority="3" />
		<property type="visible" value="false" assign="active_screen" name="door_ajar" />
		<property type="visible" value="true" assign="active_screen" name="door_closed" />
		<property type="visible" value="false" assign="active_screen" name="door_open" />
		<property type="visible" value="false" assign="active_screen" name="nav_DayCare" />
		<property type="visible" value="true" assign="active_screen" name="toyroom_doorknob_area" />
	</state>
	<state>
		<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED"/>
		<property type="visible" value="false" assign="active_screen" name="door_ajar" />
		<property type="visible" value="false" assign="active_screen" name="door_closed" />
		<property type="visible" value="true" assign="active_screen" name="door_open" />
		<property type="visible" value="true" assign="active_screen" name="nav_DayCare" />
		<property type="visible" value="false" assign="active_screen" name="toyroom_doorknob_area" />
	</state>
	<state>
		<requirement type="session" id="M2_TOYROOM_DOOR_SHUT" value="false" />
		<session id="M2_TOYROOM_DOOR_SHUT"/>
		<property type="visible" value="true" assign="active_screen" name="door_ajar" />
		<sound src="Audio/SFX/FLOOR1/toy_room_door_slam.mp3" />
		<delay time="1200"/>
		<property type="visible" value="false" assign="active_screen" name="door_ajar" />
	</state>
	<object name="nav_DayCare" id="NAV_DAYCARE" cursor="north" tooltip="LOCATION_DAYCARE_TO">
		<event type="clicked">
			<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" />	
			
			
			<portal target="Floor1/DAYCARE"/>
		</event> 
		
		
		
		<!--<event type="clicked">
			<requirement type="session" id="DEMO_MODE" />
			<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" />			
			<requirement type="session" id="M2_DAYCARE_CUTSCENE_VIEWED" value="false" />	
			
			<fadeOutMusic/>
			<music src="Audio/Music/CUTSCENES/cutscene_3.mp3" fadeIn="500" channel="CUTSCENE" loop="false" />
			<cutscene src="swfs/cutscenes/cutscene3.swf" border="false">
				
				<text string="CUTSCENE_2_TEXT_1" time="166" audio="Audio/Cutscenes/3/Christine_1.mp3" />
				<text string="CUTSCENE_2_TEXT_2" time="3500" audio="Audio/Cutscenes/3/Christine_2.mp3" />
				<text string="CUTSCENE_2_TEXT_3" time="7400"/>
				<text string="CUTSCENE_2_TEXT_4" time="11900"/>			
				<text string="" time="13433"/>
				<text string="CUTSCENE_2_TEXT_5" time="13500"/>
				<text string="CUTSCENE_2_TEXT_6" time="18900"/>
				
				<finish>						
					<session id="M2_DAYCARE_CUTSCENE_VIEWED"/>
					<property type="visible" value="false" assign="active_screen" name="door_closed" />
					<requirement type="session" id="DEMO_MODE" value="true" />	
					<session id="ACTIVE_MISSION" value="5"/>
					<portal target="Floor1/DAYCARE"/>
				
				</finish>
			</cutscene>	
		</event> 
		<event type="clicked">
			<requirement type="session" id="DEMO_MODE" />
			<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" />			
			<requirement type="session" id="M2_DAYCARE_CUTSCENE_VIEWED" value="true" />	
		
			<portal target="Floor1/DAYCARE"/>
		</event>-->
			
		
	</object>
	
	<state>
		<requirement type="session" id="M2_GOT_DOORKNOB" value="true" />
		<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />
		<requirement type="session" id="SOLVED_TOY_ROOM"/>	
		<poi value="on" target="active_screen" object="toyroom_doorknob_area" type="single" align="origin" />
	</state>
	
	<object name="toyroom_doorknob_area" id="TOYROOM_DOORKNOB_AREA" cursor="hand">
		<state>
			<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />	
			<object name="toyroom_doorknob_area" id="TOYROOM_DOORKNOB_AREA" cursor="spyglass"/>
		</state>
		<event type="clicked">
			<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />	
			<window src="swfs/windows/doorknob_seethrough.swf">
				
				<object name="alice">
					<event type="frame" value="girl">
						<cinematic id="ALICE_EVENT"/>
					</event>
				</object>
				<state>
					<requirement type="session" id="DEMO_MODE" value="false" />
					<requirement type="session" id="M2_SEEN_ALICE_EVENT" value="true" />
					
					<property type="visible" value="false" assign="object_window" name="shade" />
					<property type="visible" value="false" assign="object_window" name="alice" />
					
					
				</state>	
				<state>
					<requirement type="session" id="DEMO_MODE" value="false" />
					<requirement type="session" id="M2_SEEN_ALICE_EVENT" value="false" />	
					<property type="frame" value="activate" stop="false" assign="object_window" name="alice" />
					<sound src="Audio/SFX/FLOOR1/Door_hole_view_of_small_girl.mp3" />
					<session id="M2_SEEN_ALICE_EVENT"/>
				</state>
				<state>
					<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />	
					<property type="visible" value="false" assign="object_window" name="knob" />
				</state>
				<event type="clicked">
					<requirement type="session" id="M2_SEEN_ALICE_EVENT" value="true" />	
					<requirement type="holding_item" id="DOORKNOB" warning="NEED_DOORKNOB" />	
					<requirement type="session" id="M2_DAYCARE_DOOR_UNLOCKED" value="false" />	
					<property type="visible" value="true" assign="object_window" name="knob" />
					<property type="frame" value="activate" stop="false" assign="object_window" name="knob" />
					
					<goal id="TASK_2_3" remove="true" />
					<item remove="true" id="DOORKNOB" />
					<sound src="Audio/SFX/FLOOR1/toy_room_doorknob.mp3" />
					<poi value="off" target="active_screen" object="toyroom_doorknob_area"/>
					<property type="visible" value="true" assign="active_screen" name="door_open" />
					<property type="visible" value="false" assign="active_screen" name="door_closed" />
					<property type="visible" value="true" assign="active_screen" name="nav_DayCare" />
					<property type="visible" value="false" assign="active_screen" name="toyroom_doorknob_area" />
					<session id="M2_DAYCARE_DOOR_UNLOCKED"/>
					<delay time="2000"/>					
					<closeWindow/>
					<sound src="Audio/SFX/FLOOR1/hallway_1_toy_room_open.mp3" />
					
					
				</event>
			</window>
			
		</event>
	</object>
	

	
	
	
	<object name="abc" id="ABC" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="TOY_ROOM_ABC"/>
		</event>		
	</object>
	<object name="dolls" id="DOLLS" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="TOY_ROOM_DOLLS"/>
		</event>		
	</object>
	<object name="picture_wall" id="PICTURES" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="TOY_ROOM_PICTURES"/>
		</event>		
	</object>
	
	<object name="blackboard" id="TOYROOM_BLACKBOARD" cursor="spyglass">
		<event type="clicked">
			
			<newChapter id="4"/>
			
			<window src="swfs/windows/blackboard.swf">
				<session id="M2_GOT_PAINTING_CLUE"/>
				<event type="clicked">			
					<requirement type="session" id="M2_GOT_PAINTING_CLUE" value="true" />
					<warning id="TOY_ROOM_BOARD"/>
				</event>
				<event type="clicked">			
					<requirement type="session" id="M2_GOT_PAINTING_CLUE" value="false" />
					<error id="TOY_ROOM_BOARD"/>
					
				</event>
			</window>
		</event>
	</object>
	
	<object name="Hallway_1" id="HALLWAY_1" cursor="south" tooltip="LOCATION_HALLWAY1_TO">
		<event type="clicked">
			<portal target="Floor1/HALLWAY_1"/>
		</event> 				
	</object>
	
	
	<state>
		<requirement type="session" id="SOLVED_TOY_ROOM" value="false" />
		<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>	
		<poi value="on" target="active_screen" object="nav_toy_area" align="right" />
	</state>
	<state>
		<requirement type="session" id="SOLVED_TOY_ROOM" value="true" />	
		<requirement type="session" id="SOLVED_TOY_ROOM_2" value="false" />	
		<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>	
		<requirement type="session" id="M5_VALVE_TURNED" value="true"/>
		<poi value="on" target="active_screen" object="nav_toy_area" align="right" />
	</state>
	
	<object name="nav_toy_area" id="NAV_TOY_AREA" cursor="spyglass" tooltip="LOCATION_TOYS">
		<event type="clicked">
			<requirement type="session" id="SOLVED_TOY_ROOM" value="false" />	
			<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>	
			<portal target="HO_SCREEN/HO_TOY_ROOM" hidden_screen="true" />
		</event> 	
		<event type="clicked">
			<requirement type="session" id="SOLVED_TOY_ROOM" value="true" />	
			<requirement type="session" id="SOLVED_TOY_ROOM_2" value="false" />	
			<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>	
			<requirement type="session" id="M5_VALVE_TURNED"/>	
			<portal target="HO_SCREEN/HO_TOY_ROOM" hidden_screen="true" />
		</event>
		<event type="clicked">
			<requirement type="session" id="SOLVED_TOY_ROOM_2" value="true" />					
			<warning id="TOY_ROOM_TOYS"/>
		</event> 	
		<event type="clicked">
			<requirement type="session" id="SOLVED_TOY_ROOM" value="true" />				
			<requirement type="session" id="M5_VALVE_TURNED" value="false" />	
			<warning id="TOY_ROOM_TOYS"/>
		</event> 	
	</object>
	<state>
		<requirement type="session" id="SOLVED_TOY_ROOM" value="true" />
		<requirement type="session" id="SOLVED_TOY_ROOM_2" value="false" />	
		<requirement type="session" id="M5_VALVE_TURNED" value="false"/>	
		<object name="nav_toy_area" id="NAV_TOY_AREA" cursor="hand"/>
	</state>
	<state>
		<requirement type="session" id="SOLVED_TOY_ROOM_2"/>	
		<object name="nav_toy_area" id="NAV_TOY_AREA" cursor="hand"/>
	</state>
	
	<!-- 
	<object name="nav_toy_area" id="NAV_TOY_AREA" cursor="spyglass" tooltip="TOYS">
		<event type="clicked">
			<portal target="Floor1/TOYROOM_CLOSEUP"/>
		</event> 				
	</object>
	 
	<object name="freezer_handle" assign="window" basic="true" cursor="hand">
		<state>
			<requirement type="session" id="M2_GOT_FREEZER_HANDLE" value="true" />	
			<property type="visible" value="false" assign="object_window" name="freezer_handle" />
		</state>
		<event type="clicked">
			<requirement type="session" id="M2_GOT_FREEZER_HANDLE" value="false" />		
			<property type="visible" value="false" assign="object_window" name="freezer_handle" />
			<item name="freezer_handle" id="FREEZER_HANDLE" src="images/items/freezer_handle.png" />
			<items_collected>
				<session id="M2_GOT_FREEZER_HANDLE"/>
			</items_collected>
		</event>
	</object>
	-->
		
	<property type="visible" value="false" assign="active_screen" name="lid_open" />
	<property type="visible" value="true" assign="active_screen" name="toychest_lid_closed" />		
	<state>
		<requirement type="session" id="M2_USED_OIL_CAN"/>
		<property type="visible" value="true" assign="active_screen" name="lid_open" />
		<property type="visible" value="false" assign="active_screen" name="toychest_lid_closed" />				
	</state>
	<state>
		<requirement type="session" id="M2_GOT_FREEZER_HANDLE" value="true" />
		<requirement type="session" id="M2_GOT_SCREWDRIVER" value="false"/>
		<poi value="on" target="active_screen" object="toybox" align="origin" type="single"/>
	</state>
	<state>
		<requirement type="session" id="M2_GOT_SCREWDRIVER" value="true"/>
		<property type="visible" value="false" assign="active_screen" name="toybox" />
	</state>
	<object name="toybox" id="TOYBOX" cursor="spyglass" >
		<event type="clicked">
			<window src="swfs/windows/toy_box.swf">
				
				<property type="visible" value="false" assign="object_window" name="oil_can_animation" />
				<property type="visible" value="false" assign="object_window" name="lid_open" />
				<state>
					<requirement type="session" id="M2_USED_OIL_CAN"/>
					<property type="visible" value="true" assign="object_window" name="lid_open" />
					<property type="visible" value="false" assign="object_window" name="lid_close" />
				</state>
				<state>					
					<requirement type="session" id="M2_GOT_SCREWDRIVER"/>					
					<property type="visible" value="false" assign="object_window" name="screwdriver" />
				</state>
				<object name="lid_close" id="LID_CLOSE" cursor="hand">
					<event type="clicked">
						<requirement type="holding_item" id="OIL_CAN" warning="NEED_OIL_CAN" />	
						<item remove="true" id="OIL_CAN"/>
						<session id="M2_USED_OIL_CAN"/>
						<property type="visible" value="true" assign="object_window" name="oil_can_animation" />
						<property type="frame" value="activate" stop="false" assign="object_window" name="oil_can_animation" />
						
						
						<!--<poi value="on" target="window" object="screwdriver" align="right" />-->
					</event>					
				</object>
				<object name="screwdriver" id="SCREWDRIVER" cursor="hand">
					<event type="clicked">
						<item name="screwdriver" id="SCREWDRIVER" src="images/items/screwdriver.png" large_src="images/items/screwdriver_large.png" />
						<property type="visible" value="false" assign="object_window" name="screwdriver" />
						<poi value="off" target="active_screen" object="toybox"/>
						<items_collected>
							<property type="visible" value="false" assign="active_screen" name="toybox" />
							<session id="M2_GOT_SCREWDRIVER"/>
							<closeWindow/>
						</items_collected>
					</event>
				</object>
				<object name="oil_can_animation" cursor="hand">
					<event type="frame" value="oil1">
						<sound src="Audio/SFX/FLOOR1/toy_room_box_oil_drop.mp3" />
					</event>
					<event type="frame" value="oil2">
						<sound src="Audio/SFX/FLOOR1/toy_room_box_oil_drop.mp3" />
					</event>
					<event type="frame" value="done">
						<fadeIn assign="object_window" name="lid_open" />
						<fadeOut assign="object_window" name="lid_close" time="2000" />
						
						<!--<property type="visible" value="false" assign="object_window" name="lid_close" />
						<property type="visible" value="true" assign="object_window" name="lid_open" />-->
						<property type="visible" value="false" assign="active_screen" name="toychest_lid_closed" />
						<property type="visible" value="true" assign="active_screen" name="lid_open" />
						<sound src="Audio/SFX/FLOOR1/toy_room_box_open.mp3" />
					</event>
				</object>
				
			</window>
		</event> 				
	</object>
	

	

	
	<state>
		<requirement type="session" id="M2_GOT_FREEZER_HANDLE" value="true" />
		<requirement type="session" id="M2_GOT_PAINTING_1" value="false" />
		<poi value="on" target="active_screen" object="crib" align="origin" type="single" />
	</state>
	
	
	
	<state>
		<requirement type="session" id="DEMO_MODE"/>
		<requirement type="session" id="M2_GOT_PAINTING_1"/>
		<property type="visible" value="false" assign="active_screen" name="crib" />
	</state>
	<state>
		<requirement type="session" id="M2_GOT_PAINTING_1"/>
		<requirement type="session" id="M2_GOT_AUDIOTAPE_3"/>
		<property type="visible" value="false" assign="active_screen" name="crib" />
	</state>
	
	<state>		
		<object name="crib" id="CRIB" cursor="spyglass" >			
			<event type="clicked">
				<window src="swfs/windows/crib.swf">
					<state>
						<requirement type="session" id="DEMO_MODE"/>
						<property type="visible" value="false" assign="object_window" name="audiotape" />
					</state>
					
					<state>
						<requirement type="session" id="M2_GOT_AUDIOTAPE_3"/>
						<property type="visible" value="false" assign="object_window" name="audiotape" />
					</state>
					<state>
						<requirement type="session" id="M2_GOT_PAINTING_1"/>
						<property type="visible" value="false" assign="object_window" name="painting" />
					</state>
					
					<object name="painting" id="PAINTING" cursor="hand">
						<event type="clicked">
							<item name="painting_1" id="PAINTING_1" src="images/items/painting_1.png" large_src="images/items/painting_1_large.png" />
							<property type="visible" value="false" assign="object_window" name="painting" />
							<items_collected>
								<session id="M2_GOT_PAINTING_1"/>
								<poi value="off" target="active_screen" object="crib"/>
								<!--<requirement type="session" id="M2_GOT_AUDIOTAPE_3" value="true" />-->
								
								<state>
									<requirement type="session" id="DEMO_MODE"/>
									<property type="visible" value="false" assign="active_screen" name="crib" />									
								</state>
								<state>
									<requirement type="session" id="M2_GOT_AUDIOTAPE_3"/>
									<property type="visible" value="false" assign="active_screen" name="crib" />
									<closeWindow/>
								</state>
								
								<requirement type="session" id="M2_GOT_PAINTING_2" value="true" />
								<requirement type="session" id="M2_GOT_PAINTING_3" value="true" />
								<goal id="TASK_2_4" remove="true" />
								<goal id="TASK_2_8" priority="6"/>
							</items_collected>
						</event>
					</object>
					<object name="audiotape" id="AUDIOTAPE" cursor="hand">
						<event type="clicked">
							<property type="visible" value="false" assign="object_window" name="audiotape" />
							<session id="M2_GOT_AUDIOTAPE_3"/>
							<poi value="off" target="active_screen" object="crib"/>
							
							<unlockAudioTape id="3"/>
							<show_book tab="3"/>
							<state>
								<requirement type="session" id="M2_GOT_PAINTING_1" value="true" />		
								<property type="visible" value="false" assign="active_screen" name="crib" />
								<closeWindow/>
							</state>
							
							<sound src="Audio/SFX/GAME/tape_collected.mp3" />
							
							
						</event>
					</object>
					
				</window>
			</event> 				
		</object>
	</state>

	<object name="b1" id="B1">
		<event type="clicked">
			<newChapter id="4"/>
		</event> 
	</object>
	<object name="b2" id="B1">
		<event type="clicked">
			<newChapter id="5"/>
			<newChapter id="6"/>
		</event> 
	</object>
	<object name="b3" id="B1">
		<event type="clicked">
			<newChapter id="7"/>
		</event> 
	</object>
	<object name="b4" id="B1">
		<event type="clicked">
			<newChapter id="8"/>
		</event> 
	</object>
	<object name="b5" id="B1">
		<event type="clicked">
			<newChapter id="9"/>
		</event> 
	</object>
</screen>