<screen id="BLOOD_SAMPLE_ROOM" src="swfs/screens/Floor2/Blood Sample Room.swf" footstep="Dirt">	
	<warning id="LOCATION_FLOOR2_BLOOD_SAMPLE_ROOM"/>
	<unlockRoom id="Floor2/BLOOD_SAMPLE_ROOM"/>
	
	<state>
		<requirement type="session" id="M5_POWER_RESTORED" value="true" />
		<music src="Audio/Music/FLOOR2/LIGHTS_ON.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	</state>
	
	<property type="visible" value="false" assign="object_window" name="HO_area" />
	<property type="visible" value="false" assign="active_screen" name="printer" />
	<state>
		<requirement type="session" id="M6_GOT_ALICE_BLOOD_SAMPLE" value="true"/>
		<requirement type="session" id="M6_ALAN_BLOOD_SAMPLE_OBTAINED" value="true"/>
		<requirement type="session" id="GOT_ALANS_RESEARCH" value="false"/>
		<requirement type="session" id="MG_CELL_SOLVED" value="false"/>
		<poi value="on" target="active_screen" object="puzzle" align="origin" type="single" />		
	</state>
	
	<state>
		<requirement type="session" id="SOLVED_BLOOD_LAB" value="false"/>
		<poi value="on" target="active_screen" object="HO_area" align="origin" />	
		<property type="visible" value="true" assign="object_window" name="HO_area" />
	</state>
	
	<state>
		<requirement type="session" id="SOLVED_BLOOD_LAB_2" value="false"/>
		<requirement type="session" id="ACTIVE_MISSION" value="7" />
		<poi value="on" target="active_screen" object="HO_area" align="origin" />		
		<property type="visible" value="true" assign="object_window" name="HO_area" />
	</state>
	
	<unlockRoom id="Floor2/BLOOD_SAMPLE_ROOM"/>
	<object name="nav_Hallway7" id="NAV_HALLWAY7" cursor="south">	
		<event type="clicked">
			
				<portal target="Floor2/BRIDGE_ACCESS"/>
		</event> 
	</object>
	
	<object name="HO_area" id="HO_AREA" cursor="spyglass" tooltip="LOCATION_BLOOD_STORAGE">
		<event type="clicked">
			<requirement type="session" id="SOLVED_BLOOD_LAB" value="false"/>
			<portal target="HO_SCREEN/HO_BLOOD_LAB" hidden_screen="true" />
		</event> 				
		<event type="clicked">
			<requirement type="session" id="SOLVED_BLOOD_LAB_2" value="false" />
			<requirement type="session" id="ACTIVE_MISSION" value="7" />
			<portal target="HO_SCREEN/HO_BLOOD_LAB" hidden_screen="true" />
		</event> 
	</object>
	
	<state>
		<requirement type="session" id="GOT_ALANS_RESEARCH"/>
		<poi value="off" target="active_screen" object="puzzle" type="single" />
		<property type="visible" value="false" assign="object_window" name="puzzle" />
	</state>
	
	<state>
		<requirement type="session" id="GOT_ALANS_RESEARCH" value="false" />
		<requirement type="session" id="MG_CELL_SOLVED" value="true" />
		<poi value="on" target="active_screen" object="printer" type="single" align="origin" />
		<property type="visible" value="true" assign="object_window" name="printer" />
	</state>
	<state>
		<requirement type="session" id="MG_CELL_SOLVED" />
		<requirement type="session" id="ALANS_RESEARCH_PRINTED" />
		<property type="frame" value="active" stop="stop" assign="active_screen" name="printer" />
	</state>
	<state>
		<requirement type="session" id="MG_CELL_SOLVED" value="true" />
		<requirement type="session" id="ALANS_RESEARCH_PRINTED" value="false" />
		<property type="frame" value="activate" stop="false" assign="active_screen" name="printer" />
		<sound src="Audio/SFX/FLOOR2/blood_room_printer.mp3" />
		<session id="ALANS_RESEARCH_PRINTED"/>
	</state>
	
	<object name="printer" id="PRINTER" cursor="hand">
		<event type="clicked">
			<item name="alans_research" id="ALANS_RESEARCH" src="images/items/alans_research.png" large_src="images/items/alans_research_large.png" />
			<items_collected>
				<session id="GOT_ALANS_RESEARCH"/>
				<poi value="off" target="active_screen" object="printer" type="single" />
			<property type="visible" value="false" assign="object_window" name="printer" />
			</items_collected>
		</event>
	</object>
	
	<object name="puzzle" id="PUZZLE" cursor="puzzle">
		<state>
			<requirement type="session" id="MG_CELL_SOLVED"/>
			<property type="visible" value="false" assign="active_screen" name="puzzle" />
		</state>
		<event type="clicked">
			<requirement type="session" id="BOTH_BLOOD_SAMPLES_INSERTED" value="true" />
			<requirement type="session" id="MG_CELL_SOLVED" value="false" />
			<minigame src="swfs/minigames/Cell.swf">
				<hint id="MG_MICROSCOPE_HINT_0"/>
				<hint id="MG_MICROSCOPE_INSTRUCTION_0"/>
				<prize>
					<session id="MG_CELL_SOLVED"/>
					<portal target="Floor2/BLOOD_SAMPLE_ROOM"/>
					<property type="visible" value="false" assign="object_window" name="puzzle" />
					<property type="visible" value="true" assign="object_window" name="printer" />
				</prize>
				<leave>
					<portal target="Floor2/BLOOD_SAMPLE_ROOM"/>		
				</leave>
			</minigame>
		</event>
		<event type="clicked">
			<requirement type="session" id="BOTH_BLOOD_SAMPLES_INSERTED" value="false" />
			<window src="swfs/windows/Microscope.swf">
				<state>
					<requirement type="session" id="M6_INSERTED_ALICE_BLOOD" value="false" />
					<property type="visible" value="false" assign="object_window" name="Alice_Blood" />
				</state>
				<state>
					<requirement type="session" id="M6_INSERTED_ALAN_BLOOD" value="false" />
					<property type="visible" value="false" assign="object_window" name="Alan_blood" />
				</state>
				
				<event type="clicked">
					<requirement type="holding_item" id="ALAN_BLOOD_SAMPLE" />
					<session id="M6_INSERTED_ALAN_BLOOD"/>
					<item remove="true" id="ALAN_BLOOD_SAMPLE" />
					<sound src="Audio/SFX/FLOOR2/blood_room_microscope_drop.mp3" />
					<property type="visible" value="true" assign="object_window" name="Alan_blood" />
				</event> 		
				<event type="clicked">
					<requirement type="holding_item" id="ALICE_BLOOD_SAMPLE" />
					<session id="M6_INSERTED_ALICE_BLOOD"/>
					<item remove="true" id="ALICE_BLOOD_SAMPLE" />
					<sound src="Audio/SFX/FLOOR2/blood_room_microscope_drop.mp3" />
					<property type="visible" value="true" assign="object_window" name="Alice_Blood" />
				</event> 	
				
				<event type="clicked">
					<requirement type="holding_item" id="ALAN_BLOOD_SAMPLE" value="false" />
					<requirement type="holding_item" id="ALICE_BLOOD_SAMPLE" value="false"/>
					<requirement type="session" id="M6_INSERTED_ALICE_BLOOD" warning="M6_MICROSCOPE_NEEDS_BLOOD_SAMPLES" />
					<requirement type="session" id="M6_INSERTED_ALAN_BLOOD" warning="M6_MICROSCOPE_NEEDS_BLOOD_SAMPLES" />
				</event>
					
				<event type="clicked">					
					<requirement type="session" id="M6_INSERTED_ALICE_BLOOD" value="true" />
					<requirement type="session" id="M6_INSERTED_ALAN_BLOOD" value="true" />
					<requirement type="session" id="GOT_ALANS_RESEARCH" value="false" />
					<requirement type="session" id="MG_CELL_SOLVED" value="false" />
					<delay time="1000"/>
					<session id="BOTH_BLOOD_SAMPLES_INSERTED"/>
					<closeWindow/>
					<error id="MG_MICROSCOPE_INSTRUCTION_0" />
					<minigame src="swfs/minigames/Cell.swf">
						<hint id="MG_MICROSCOPE_HINT_0"/>
						<hint id="MG_MICROSCOPE_INSTRUCTION_0"/>
						<prize>
							<session id="MG_CELL_SOLVED"/>
							<portal target="Floor2/BLOOD_SAMPLE_ROOM"/>
							<property type="visible" value="false" assign="object_window" name="puzzle" />
							<property type="visible" value="true" assign="object_window" name="printer" />
						</prize>
						<leave>
							<portal target="Floor2/BLOOD_SAMPLE_ROOM"/>		
						</leave>
					</minigame>
				</event>
			</window>
		</event>
		
	</object>
	
	<object name="area1" id="AREA1" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="BLOOD_LAB_AREA1"/>
		</event>		
	</object>
	<object name="area2" id="AREA2" basic="true" cursor="hand" tooltip="LOCATION_BLOOD_STORAGE">
		<event type="clicked">
			<warning id="BLOOD_LAB_AREA2"/>
		</event>		
	</object>
	<object name="area3" id="AREA3" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="BLOOD_LAB_AREA3"/>
		</event>		
	</object>
</screen>