<screen id="BLOOD_SAMPLE_ROOM" src="swfs/screens/Floor2/X_Ray_Room.swf" footstep="Stone">	
	<warning id="LOCATION_FLOOR2_X_RAY_ROOM"/>
	<unlockRoom id="Floor2/X_RAY_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>
	
	<object name="nav_Hallway7" id="NAV_HALLWAY7" cursor="south" tooltip="LOCATION_HALLWAY7_TO">	
		<event type="clicked">
				<portal target="Floor2/HALLWAY_7" />
		</event> 
	</object>
	
	<property type="visible" value="false" assign="object_window" name="x_ray_closed" />
	<property type="visible" value="false" assign="object_window" name="x_ray_opened" />
	<property type="visible" value="false" assign="object_window" name="x_ray_sandwitch" />
	<property type="visible" value="false" assign="object_window" name="x_ray_cassette" />
	<property type="visible" value="false" assign="object_window" name="x_ray_stone" />
	
	
	<property type="visible" value="false" assign="active_screen" name="briefcase" />
	<property type="visible" value="false" assign="active_screen" name="briefcaseopen" />
	<property type="visible" value="false" assign="active_screen" name="stone_static" />
	<property type="visible" value="false" assign="active_screen" name="sandwich_static" />
	<property type="visible" value="false" assign="active_screen" name="cassette" />
	
	
	<state>
		<requirement type="session" id="M6_BRIEFCASE_USED" value="true" />	
		<property type="visible" value="true" assign="active_screen" name="briefcase" />
	</state>
	
	
	<object name="table" assign="active_screen" cursor="hand"/>
	<property type="visible" value="false" assign="active_screen" name="xray_image" />
	<state>
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="true" />
		<property type="visible" value="true" assign="active_screen" name="xray_image" />
	</state>
	<object name="xray_image" id="XRAY_IMAGE" cursor="hand">
		<event type="clicked">
			<warning id="X_RAY_SCREEN_COMMENT" />
		</event>
	</object>	
		
	<state>
		<requirement type="session" id="M6_BRIEFCASE_USED" value="true" />	
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="true" />
		<requirement type="session" id="MG_BRIEFCASE_OPENED" value="false" />	
		<object name="table" assign="active_screen" cursor="puzzle"/>
		<property type="visible" value="true" assign="object_window" name="x_ray_sandwitch" />
		<property type="visible" value="true" assign="object_window" name="x_ray_closed" />
		<property type="visible" value="true" assign="object_window" name="briefcase" />
	</state>
	
	<state>
		<requirement type="session" id="M6_BRIEFCASE_USED" value="true" />	
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="true" />
		<requirement type="session" id="MG_BRIEFCASE_OPENED" value="true" />	
		<property type="visible" value="true" assign="object_window" name="x_ray_sandwitch" />
		<property type="visible" value="true" assign="active_screen" name="sandwich_static" />
		<property type="visible" value="true" assign="object_window" name="x_ray_opened" />
		<property type="visible" value="true" assign="object_window" name="briefcaseopen" />
		
	</state>
	<state>
		<requirement type="session" id="M6_BRIEFCASE_USED" value="true" />	
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="true" />
		<requirement type="session" id="MG_BRIEFCASE_OPENED" value="true" />	
		<requirement type="session" id="M6_GOT_CORRODED_AGATE_STONE" value="false" />	
		
		<property type="visible" value="true" assign="object_window" name="x_ray_stone" />
		<property type="visible" value="true" assign="object_window" name="stone_static" />
	</state>
		<state>
		<requirement type="session" id="M6_BRIEFCASE_USED" value="true" />	
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="true" />
		<requirement type="session" id="MG_BRIEFCASE_OPENED" value="true" />	
		<requirement type="session" id="M6_GOT_AUDIOTAPE_12" value="false" />	
		<property type="visible" value="true" assign="object_window" name="x_ray_cassette" />
		<property type="visible" value="true" assign="object_window" name="cassette" />
	</state>

	
	<state>
		<requirement type="session" id="M6_GOT_JAW_BONE" value="true" />
		<property type="visible" value="false" assign="object_window" name="Jaw_Bone" />
	</state>
	
	
	<!--<state>
		<requirement type="session" id="M6_BRIEFCASE_USED" value="false" />	
		<property type="visible" value="false" assign="object_window" name="briefcase" />
	</state>-->
	
	
	<state>
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="false" />
		<goal id="TASK_6_6" priority="1" />
	</state>
	
	<state>
		<requirement type="session" id="M6_GOT_CORRODED_AGATE_STONE" value="true" />
		<requirement type="session" id="M6_GOT_AUDIOTAPE_12" value="true" />
		<property type="visible" value="false" assign="object_window" name="table" />
	</state>
	
	
	
	
	<object name="table" id="TABLE">	
		<event type="clicked">
			<requirement type="session" id="M6_BRIEFCASE_USED" value="false" />
			<requirement type="holding_item" id="BRIEFCASE" warning="M6_X_RAY_NEED_BRIEFCASE" />
			<session id="M6_BRIEFCASE_USED" />
			<item remove="true" id="BRIEFCASE" />
			<property type="visible" value="true" assign="object_window" name="briefcase" />
			
		</event>
		<event type="clicked">
			<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="true" />
			<requirement type="session" id="M6_BRIEFCASE_USED" value="true" />
			<requirement type="session" id="MG_XRAY_COMPLETED" value="false" />
			<state>
				<requirement type="session" id="MG_BRIEFCASE_OPENED" value="false" />
				<error id="MG_BRIEFCASE_INSTRUCTION_0" />
			</state>
			<minigame src="swfs/minigames/Briefcase.swf">
				<hint id="MG_BRIEFCASE_HINT_0"/>	
				<prize>
					<session id="MG_XRAY_COMPLETED"/>
					
					<portal target="FLOOR2/X_RAY_ROOM"/>
					<!--
					
					<item name="corroded_agate_stone" id="CORRODED_AGATE_STONE" src="images/items/corroded_agate_stone.png" large_src="images/items/corroded_agate_stone_large.png"/>
					<items_collected>
						<session id="M6_GOT_CORRODED_AGATE_STONE" />
						<poi value="off" target="active_screen" object="table" align="right" />
						<unlockAudioTape id="12"/>
						<show_book tab="3"/>
						<session id="M6_GOT_AUDIOTAPE_12"/>
						<sound src="Audio/SFX/GAME/tape_collected.mp3" />
						<goal id="TASK_6_8" priority="1" />
					</items_collected>	
					
					-->
				</prize>
				<leave>
					<portal target="FLOOR2/X_RAY_ROOM"/>			
				</leave>
			</minigame>
		</event>
	</object>
	
	

	<state>
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="false" />
		<property type="visible" value="false" assign="object_window" name="switch_on" />
		<property type="visible" value="false" assign="object_window" name="Screen_On" />
	</state>

	<state>
		<requirement type="session" id="M6_GOT_CORRODED_AGATE_STONE" value="true" />
		<poi value="off" target="active_screen" object="table" align="right" />
		<requirement type="session" id="M6_GOT_DARK_AGATE_STONE" value="false" />
		<goal id="TASK_6_8" priority="1" />
	</state>
	
	<state>
		<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" />
		<property type="frame" value="active" stop="true" assign="active_screen" name="xray" />
	</state>
	<object name="x_ray" id="X_RAY">	
		<state>
			
			<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="false" />
			<poi value="on" target="active_screen" object="x_ray" align="right" type="single" />
			<object name="x_ray" id="X_RAY" assign="active_screen" cursor="spyglass"/>
		</state>
		<event type="clicked">	
			<requirement type="session" id="M6_X_RAY_CONTROL_DIAL_USED" value="false" />
			<window src="swfs/windows/x_ray_panel.swf">
				<object name="panel">
					<event type="clicked">
						<requirement type="holding_item" id="X_RAY_CONTROL_DIAL" warning="X_RAY_CONTROL_DIAL_MISSING" />
						<property type="frame" value="activate" stop="false" assign="object_window" name="dial" />
						
						<delay time="700"/>
						<sound src="Audio/SFX/FLOOR2/x_ray_control_panel.mp3" />
					</event> 
				 </object>
				 <object name="dial">
					 <event type="frame" value="active">
						<session id="M6_X_RAY_CONTROL_DIAL_USED" />
						<goal id="TASK_6_6" remove="true" />
						<state>
							<requirement type="session" id="M6_BRIEFCASE_USED" value="false" />
							<goal id="TASK_6_7" priority="1" />
						</state>
						<item remove="true" id="X_RAY_CONTROL_DIAL" />
						<property type="visible" value="true" assign="active_screen" name="switch_on" />						
						<property type="visible" value="true" assign="active_screen" name="Screen_On" />
						
						
						<property type="frame" value="activate" stop="false" assign="active_screen" name="xray" />
						<poi value="off" target="active_screen" object="x_ray" align="right" />
						<object name="x_ray" id="X_RAY" assign="active_screen" cursor="default"/>
						
						<object name="table" assign="active_screen" cursor="puzzle"/>
						<closeWindow/>
						<sound src="Audio/SFX/FLOOR2/xray_machine_activating.mp3" />
					 </event>
				 </object>
			</window>

		</event>
	</object>
	<state>
		<requirement type="session" id="M6_GOT_JAW_BONE" value="false" />
		<poi value="on" target="active_screen" object="stand"  type="swipe"/>
	</state>
	<object name="stand" id="STAND" mouseEnabled="false"/>	
	
	
	<object name="skeleton_area" id="SKELETON_AREA" cursor="hand">	
		<state>
			<requirement type="session" id="M6_GOT_JAW_BONE" value="false" />
			
			<poi value="on" target="active_screen" object="skeleton_area" align="origin" type="single" />
		</state>
		<state>
			<requirement type="session" id="M6_GOT_JAW_BONE" />
			<property type="frame" value="active" stop="true" assign="active_screen" name="skeleton" />
		</state>
		<event type="clicked">
			<sound src="Audio/SFX/FLOOR2/x_ray_skeleton_rattle.mp3" />
			<state>
				<requirement type="session" id="M6_GOT_JAW_BONE" value="false" />
				<property type="frame" value="activate" stop="false" assign="active_screen" name="skeleton" />
			</state>
			<state>
				
				<requirement type="session" id="M6_GOT_JAW_BONE" />
				<property type="frame" value="active_missing_jaw" stop="false" assign="active_screen" name="skeleton" />
			</state>
			<delay time="700" force="true"/>
			
		</event>
	</object>
	<object name="skeleton" id="SKELETON">
		<event type="frame" value="active">			
			<requirement type="session" id="M6_GOT_JAW_BONE" value="false" />
			<sound src="Audio/SFX/FLOOR2/x_ray_room_bone_snap.mp3" />
			<item name="Door_Knocker" id="DOOR_KNOCKER" src="images/items/jaw_bone.png" large_src="images/items/jaw_bone_large.png"/>
			<property type="visible" value="false" assign="object_window" name="Jaw_Bone" />
			<items_collected>
				<session id="M6_GOT_JAW_BONE" />
				<poi value="off" target="active_screen" object="stand"  type="swipe"/>
				<poi value="off" target="active_screen" object="skeleton_area" align="right" />
				<!--<poi value="on" target="active_screen" object="x_ray" align="right" type="single"/>-->
				<!--<property type="visible" value="false" assign="object_window" name="Jaw_Bone" />-->
				
				
			</items_collected>	
			
		</event>
	</object>
	
	<object name="Screen_On" id="SCREEN_ON" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="X_RAY_ROOM_AREA1"/>
		</event>		
	</object>
	<object name="area2" id="AREA2" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="X_RAY_ROOM_AREA2"/>
		</event>		
	</object>
	<object name="area4" id="AREA4" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="X_RAY_ROOM_AREA4"/>
		</event>		
	</object>
</screen>