<screen id="HALLWAY_1" src="swfs/screens/Floor1/Hallway_1.swf" footstep="Stone">
	<warning id="LOCATION_FLOOR1_HALLWAY_1"/>
	<unlockRoom id="Floor1/HALLWAY_1"/>
	<music src="Audio/Music/FLOOR1/DAYCARE.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	<music src="Audio/Ambient/FLOOR1/HALLWAY_1.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>
	
	
	<state>
		<requirement type="session" id="M2_TOY_ROOM_UNLOCKED" value="false" />
		<property type="visible" value="false" assign="object_window" name="door_open" />
		<property type="visible" value="false" assign="object_window" name="door_knob_open" />
	</state>
	<state>
		<requirement type="session" id="M2_GOT_DOORKNOB"/>
		<property type="visible" value="false" assign="object_window" name="door_knob_open" />
	</state>
	
	<object name="nav_MainHall" id="NAV_MAINHALL" cursor="south" tooltip="LOCATION_MAINHALL_TO">
		<event type="clicked">
			<portal target="Floor1/MAIN_HALL"/>
		</event> 				
	</object>
	
	<state>
		<requirement type="session" id="M2_GOT_DOORKNOB" value="false" />	
		<requirement type="session" id="M2_GOT_SCREWDRIVER"/>	
		<poi value="on" target="active_screen" object="hallway_1_doorknob_area" align="origin" type="single"/>
	</state>
	
	<object name="hallway_1_doorknob_area" id="HALLWAY_1_DOORKNOB_AREA" cursor="spyglass">
		<event type="clicked">
			<requirement type="session" id="M2_GOT_DOORKNOB" value="false" />
			<window src="swfs/windows/doorknob.swf">
				
				<property type="visible" value="false" assign="object_window" name="screwdriver_animation" />
				<property type="visible" value="false" assign="object_window" name="screwdriver" />
				<!--<state>
					<requirement type="session" id="M2_GOT_DOORKNOB" value="true" />	
					<property type="visible" value="false" assign="object_window" name="Background_copy" />
				</state>-->
				<state>
					<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>
					<property type="visible" value="false" assign="object_window" name="key_animation" />
				</state>
				<event type="clicked">				
					<requirement type="holding_item" id="SCREWDRIVER" warning="NEED_SCREWDRIVER" />	
					<requirement type="session" id="M2_GOT_DOORKNOB" value="false" />	
					<property type="visible" value="true" assign="object_window" name="screwdriver_animation" />
					<property type="visible" value="true" assign="object_window" name="screwdriver" />
					<sound src="Audio/SFX/FLOOR1/screwdriver_prying_off_door_knob.mp3" />
					
					<property type="frame" value="activate_screwdriver" stop="false" assign="object_window" name="screwdriver_animation" />
					
					
					
					
				</event>
				
				
				<object name="screwdriver_animation" basic="true">
					<event type="frame" value="screwdriver_done">
						<property type="visible" value="false" assign="object_window" name="Background_copy" />
						<property type="visible" value="false" assign="object_window" name="screwdriver_animation" />
						<property type="visible" value="false" assign="object_window" name="screwdriver" />
						<item name="doorknob" id="DOORKNOB" src="images/items/doorknob.png" large_src="images/items/doorknob_large.png" />		
						<items_collected>
							<session id="M2_GOT_DOORKNOB"/>
							<property type="visible" value="false" assign="active_screen" name="door_knob_open" />
							<poi value="off" target="active_screen" object="hallway_1_doorknob_area"/>							
							<property type="visible" value="false" assign="active_screen" name="hallway_1_doorknob_area" />
							
							<object name="hallway_1_doorknob_area" assign="active_screen" cursor="default"/>
							<closeWindow/>
						</items_collected>
					</event>
				</object>
			</window>
		</event>
	</object>
	
	<property type="visible" value="false" assign="object_window" name="hallway_1_doorknob_area" />
	
			

	
	<state>
		<requirement type="session" id="M2_GOT_SCREWDRIVER"/>	
		<requirement type="session" id="M2_GOT_DOORKNOB" value="false" />	
		<property type="visible" value="true" assign="object_window" name="hallway_1_doorknob_area" />
		
	</state>
	
	<object name="nav_ToyRoom" id="NAV_TOYROOM" cursor="east" tooltip="LOCATION_TOY_ROOM_TO">	
		<state>
			<requirement type="session" id="M2_TOY_ROOM_UNLOCKED" value="false" />	
			<object name="nav_ToyRoom" id="NAV_TOYROOM" cursor="spyglass"/>
		</state>
		<event type="clicked">
			<state>
				<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>	
				<requirement type="session" id="TOYROOM_DOOR_OPENED"/>
				<portal target="Floor1/TOY_ROOM"/>
			</state>
		
			<state>
				<requirement type="session" id="M2_TOY_ROOM_UNLOCKED"/>
				<requirement type="session" id="TOYROOM_DOOR_OPENED" value="false" />
				<session id="TOYROOM_DOOR_OPENED"/>
				<poi value="off" target="active_screen" object="nav_ToyRoom"/>
				<object name="nav_ToyRoom" id="NAV_TOYROOM" assign="active_screen" cursor="east"/>
				<fadeIn assign="active_screen" name="door_open" />
				<fadeIn assign="active_screen" name="door_knob_open" />
				<fadeOut assign="active_screen" name="door_knob_close" />
			</state>
		</event>
		<event type="clicked">
			<requirement type="session" id="M2_TOY_ROOM_UNLOCKED" value="false" />
			
			
			<window src="swfs/windows/doorknob.swf">
				<property type="visible" value="false" assign="object_window" name="screwdriver_animation" />
				<property type="visible" value="false" assign="object_window" name="screwdriver" />
				
				
				
				
				<event type="clicked">
					<requirement type="holding_item" id="TOY_ROOM_KEY" warning="NEED_TOY_ROOM_KEY" />				
					<session id="M2_TOY_ROOM_UNLOCKED"/>
					
					<property type="frame" value="activate_key" stop="false" assign="object_window" name="key_animation" />
					<object name="nav_ToyRoom" id="NAV_TOYROOM" assign="active_screen" cursor="hand"/>
					<item remove="true" id="TOY_ROOM_KEY" />
					<sound src="Audio/SFX/FLOOR1/hallway_1_toy_room_unlock.mp3" />
									
					
				</event>
				
				
				
				
				<object name="key_animation" basic="true">
					<event type="frame" value="key_done">
						<session id="TOYROOM_DOOR_OPENED"/>
						<poi value="off" target="active_screen" object="nav_ToyRoom"/>
						<object name="nav_ToyRoom" id="NAV_TOYROOM" assign="active_screen" cursor="east"/>
						<fadeIn assign="active_screen" name="door_open" />
						<fadeIn assign="active_screen" name="door_knob_open" />
						<fadeOut assign="active_screen" name="door_knob_close" />
						<closeWindow/>
						<sound src="Audio/SFX/FLOOR1/hallway_1_toy_room_open.mp3" />
					</event>
				</object>
			</window>
			
		</event>
	</object>
	
	<!--<state>
		<requirement type="session" id="SOLVED_FREEZER_ROOM" value="false" />
		<requirement type="session" id="M2_GOT_FREEZER_HANDLE"/>
		
		
	</state>-->
	
	<!--<state>
		<requirement type="session" id="M2_GOT_LADDER"/>
		<requirement type="session" id="M2_GOT_GLOVES" value="false" />
		
		<poi value="on" target="active_screen" object="freezer"/>
	</state>-->
	
	<state>
		<requirement type="session" id="M2_FREEZER_UNLOCKED" value="false" />	
		<property type="visible" value="false" assign="object_window" name="fridge_handle" />
	</state>
	<state>
		<requirement type="session" id="M2_FREEZER_OPENED" value="false" />
		<property type="visible" value="false" assign="object_window" name="fridge_door_open" />
		<property type="visible" value="false" assign="object_window" name="fridge_light" />
		<property type="visible" value="true" assign="object_window" name="fridge_door_close" />

	</state>
	<state>
		<requirement type="session" id="M2_FREEZER_OPENED"/>
		<property type="visible" value="true" assign="object_window" name="fridge_door_open" />
		<property type="visible" value="true" assign="object_window" name="fridge_light" />
		<property type="visible" value="false" assign="object_window" name="fridge_door_close" />
		
		<property type="visible" value="false" assign="object_window" name="fridge_handle" />
	</state>
	
	
	
	<object name="freezer" id="FREEZER" cursor="hand" tooltip="LOCATION_FREEZER">  
		<state>
			<requirement type="session" id="SOLVED_FREEZER_ROOM" />	
			<requirement type="session" id="M3_GOT_PUZZLE_CODE" value="false" />	
			<object name="freezer" id="FREEZER" cursor="default"/>
		</state>
		<state>
			<requirement type="session" id="SOLVED_FREEZER_ROOM" />	
			<requirement type="session" id="SOLVED_FREEZER_ROOM_2" value="false" />	
			<requirement type="session" id="M3_GOT_PUZZLE_CODE" />	
			<object name="freezer" assign="active_screen" cursor="spyglass"/>
			<poi value="on" target="active_screen" object="freezer"/>
		</state>
		<state>
			<requirement type="session" id="M2_FREEZER_OPENED" />	
			<requirement type="session" id="SOLVED_FREEZER_ROOM" value="false" />	
			<object name="freezer" assign="active_screen" cursor="spyglass"/>  	
			<poi value="on" target="active_screen" object="freezer"/>
		</state>
	
		<event type="clicked">
			<requirement type="session" id="M2_FREEZER_OPENED" />	
			<requirement type="session" id="M2_FREEZER_UNLOCKED" />	
			<requirement type="session" id="SOLVED_FREEZER_ROOM" value="false" />	
			<portal target="HO_SCREEN/HO_FREEZER_ROOM" hidden_screen="true"/>
		</event>
		<event type="clicked">
			<requirement type="session" id="M2_FREEZER_OPENED" />	
			<requirement type="session" id="M2_FREEZER_UNLOCKED" />	
			<requirement type="session" id="SOLVED_FREEZER_ROOM" />	
			<requirement type="session" id="SOLVED_FREEZER_ROOM_2" value="false" />	
			<requirement type="session" id="M3_GOT_PUZZLE_CODE" />	
			<portal target="HO_SCREEN/HO_FREEZER_ROOM" hidden_screen="true"/>
		</event>
		<event type="clicked">
			
			<requirement type="session" id="M2_FREEZER_UNLOCKED" value="false" />	
			<requirement type="holding_item" id="FREEZER_HANDLE" warning="FREEZER_HANDLE_REQUIRED" />
			<property type="visible" value="true" assign="object_window" name="fridge_handle" />

			<item remove="true" id="FREEZER_HANDLE" />
			<!--<poi value="off" target="active_screen" object="freezer"/>-->
			<session id="M2_FREEZER_UNLOCKED"/>
			
			<sound src="Audio/SFX/FLOOR1/hallway_1_fridge_open.mp3" />
		
			<fadeIn assign="object_window" name="fridge_door_open" />
			<fadeIn assign="object_window" name="fridge_light" />
			
					
			<fadeOut assign="object_window" name="fridge_door_close" time="2200" />
			<fadeOut assign="object_window" name="fridge_handle" time="2200" />
			<object name="freezer" id="FREEZER" assign="active_screen" cursor="spyglass"/>
			<poi value="on" target="active_screen" object="freezer"/>
			
			<session id="M2_FREEZER_OPENED"/>
		</event>	
		
		
		<!--
		<event type="clicked">
			
			<requirement type="session" id="M2_FREEZER_OPENED" value="false" />
			<requirement type="session" id="M2_FREEZER_UNLOCKED" />	
			
			<property type="visible" value="true" assign="object_window" name="fridge_door_open" />
			<property type="visible" value="true" assign="object_window" name="fridge_light" />
			<property type="visible" value="false" assign="object_window" name="fridge_door_close" />
			<property type="visible" value="false" assign="object_window" name="fridge_handle" />
			<session id="M2_FREEZER_OPENED"/>
		</event>
		-->
			
	</object>
	<state>
		<requirement type="session" id="SOLVED_FREEZER_ROOM"/>
		<requirement type="session" id="M2_HALLWAY_2_REACHED" value="false" />
		<object name="freezer" id="FREEZER" cursor="default"/>
	</state>
	<state>
		<requirement type="session" id="SOLVED_FREEZER_ROOM_2"/>	
		<object name="freezer" id="FREEZER" cursor="default"/>
	</state>

	<object name="window" id="WINDOW" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="HALLWAY1_WINDOW"/>
		</event>		
	</object>
	<object name="freezer" id="FREEZER" basic="true" cursor="hand">
		<event type="clicked">
			<requirement type="session" id="SOLVED_FREEZER_ROOM"/>
			<requirement type="session" id="SOLVED_FREEZER_ROOM_2"/>	
			<warning id="HALLWAY1_FREEZER"/>
		</event>	
		
		<event type="clicked">
			<requirement type="session" id="SOLVED_FREEZER_ROOM"/>
			<requirement type="session" id="SOLVED_FREEZER_ROOM_2" value="false" />	
			<requirement type="session" id="M3_GOT_PUZZLE_CODE" value="false" />	
			<warning id="HALLWAY1_FREEZER"/>
		</event>
	</object>
	
	<state>
		<requirement type="session" id="SOLVED_FREEZER_ROOM" />	
		<requirement type="session" id="SOLVED_FREEZER_ROOM_2" value="false" />	
		<requirement type="session" id="M3_GOT_PUZZLE_CODE" />	
		<object name="freezer" assign="active_screen" cursor="spyglass"/>
		<poi value="on" target="active_screen" object="freezer"/>
	</state>
	<state>
		<requirement type="session" id="M2_FREEZER_OPENED" />	
		<requirement type="session" id="SOLVED_FREEZER_ROOM" value="false" />	
		<object name="freezer" assign="active_screen" cursor="spyglass"/>  	
		<poi value="on" target="active_screen" object="freezer"/>
	</state>
	
	<object name="collapsed" id="COLLAPSED" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="HALLWAY1_COLLAPSED"/>
		</event>		
	</object>
	<object name="wall" id="WALL" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="HALLWAY1_WALL"/>
		</event>		
	</object>

	<state>
		<requirement type="session" id="M1_FREEZER_VIEWED" value="false"/>		
		<session id="M1_FREEZER_VIEWED" />
		<goal id="TASK_2_2" priority="2" />
	</state>
</screen>