<screen src="swfs/screens/Floor2/SurgeryRoom.swf" footstep="CobbleStone">
	<warning id="LOCATION_FLOOR2_OPERATING_ROOM"/>
	<unlockRoom id="Floor2/OPERATING_ROOM"/>
	<unlockMap id="Floor2/DENTIST_ROOM"/>
	<unlockMap id="Floor2/PREPARATION_ROOM"/>
	<unlockMap 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>
	<music src="Audio/Ambient/FLOOR2/OPERATING_ROOM.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>
	
	<property type="visible" value="false" assign="active_screen" name="HO_area" />	
	<state>
		<requirement type="session" id="M5_POWER_RESTORED" warning="ERROR_ROOM_TOO_DARK"/>
		<!--<requirement type="session" id="M6_GOT_DOCTOR_CARD" value="true" warning="ERROR_NEED_DOCTOR_CARD"/>	-->		
		<requirement type="session" id="SOLVED_OPERATING_ROOM" value="false" />
		<poi value="on" target="active_screen" object="HO_area"/>
		<property type="visible" value="true" assign="active_screen" name="HO_area" />	
	</state>
	<state>
		<requirement type="session" id="SOLVED_OPERATING_ROOM_2"  value="false"/>
		<requirement type="session" id="ACTIVE_MISSION" value="7" />
		<poi value="on" target="active_screen" object="HO_area"/>
		<property type="visible" value="true" assign="active_screen" name="HO_area" />	
	</state>
	


	<object name="HO_area" id="HO_AREA" cursor="spyglass" tooltip="LOCATION_FLOOR2_OPERATING_MEDICAL_EQUPMENT">
		<event type="clicked">
			<requirement type="session" id="M5_POWER_RESTORED" warning="ERROR_ROOM_TOO_DARK"/>
		<!--	<requirement type="session" id="M6_GOT_DOCTOR_CARD" value="true" warning="ERROR_NEED_DOCTOR_CARD"/>	-->	
			<requirement type="session" id="SOLVED_OPERATING_ROOM" value="false" />
			<portal target="HO_SCREEN/HO_OPERATING_ROOM" hidden_screen="true" />
		</event> 
		<event type="clicked">
			<requirement type="session" id="SOLVED_OPERATING_ROOM_2" value="false" />
			<requirement type="session" id="ACTIVE_MISSION" value="7" />
			<portal target="HO_SCREEN/HO_OPERATING_ROOM" hidden_screen="true" />
		</event> 
	</object>
	
	
	<object name="nav_PreparationRoom" id="NAV_PREPARATIONROOM" cursor="north" tooltip="LOCATION_PREPARATION_TO">
		
		<state>
			<requirement type="session" id="SOLVED_OPERATING_ROOM" value="true" />
			<requirement type="session" id="M6_FIXED_HOT_WATER_TAP" value="false" />
			<!--<poi value="on" target="active_screen" object="nav_PreparationRoom"/>-->
		</state>
		<event type="clicked">
			<portal target="Floor2/SURGERY_PREPARATION_ROOM"/>
		</event> 				
	</object>
	
	
	
	<object name="nav_Hallway_6" id="NAV_HALLWAY_6" cursor="south" tooltip="LOCATION_HALLWAY6_TO">
		<event type="clicked">
			<portal target="Floor2/HALLWAY_6"/>
		</event> 				
	</object>
	
	<state>
		<requirement type="session" id="M7_GOT_CHARGED_BLACKLIGHT"/>
		<property type="visible" value="false" assign="active_screen" name="defibrillator" />	
	</state>
	<state>
		<requirement type="session" id="M7_GOT_CHARGED_BLACKLIGHT" value="false" />
		<requirement type="session" id="M7_GOT_BLACKLIGHT" value="true" />
		<poi value="on" target="active_screen" object="defibrillator" align="right" type="single" />
	</state>
	<object name="defibrillator" id="DEFIBRILLATOR" cursor="spyglass" >
		<event type="clicked">
			<window src="swfs/windows/defibrillator.swf">
				<event type="clicked">
					<requirement type="holding_item" id="DEAD_BLACKLIGHT" warning="SERGERY_DEFIBRILLATOR_CHARGE" />
					<requirement type="session" id="M7_GOT_CHARGED_BLACKLIGHT" value="false" />
					<sound src="Audio/SFX/FLOOR2/operating_room_difibulator_charge.mp3" />
					<property type="frame" value="charge" stop="false" assign="object_window" name="lightning" />
					
				</event> 	
					
				<object name="lightning">
					<event type="frame" value="zap1">
						<sound src="Audio/SFX/FLOOR2/operating_room_difibulator_zap.mp3" />
					</event>
					<event type="frame" value="zap2">
						<sound src="Audio/SFX/FLOOR2/operating_room_difibulator_zap.mp3" />
					</event>
					<event type="frame" value="done">
						<item name="charged_blacklight" id="CHARGED_BLACKLIGHT" src="images/items/charged_blacklight.png" large_src="images/items/charged_blacklight_large.png" />
						<items_collected>
							<goal id="TASK_7_4" remove="true" />
							<item remove="true" id="DEAD_BLACKLIGHT" />
							<session id="M7_GOT_CHARGED_BLACKLIGHT"/>
							<poi value="off" target="active_screen" object="defibrillator" align="right" type="single" />
							<closeWindow/>
							<property type="visible" value="false" assign="active_screen" name="defibrillator" />	
						</items_collected>	
					</event>
				</object>
					
				
			</window>
		</event> 				
	</object>
	
	<object name="area1" id="AREA1" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="SURGERY_ROOM_AREA1"/>
		</event>		
	</object>
	<object name="area2" id="AREA2" basic="true" cursor="hand" tooltip="LOCATION_FLOOR2_OPERATING_MEDICAL_EQUPMENT">
		<event type="clicked">
			<warning id="SURGERY_ROOM_AREA2"/>
		</event>		
	</object>
	<object name="area3" id="AREA3" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="SURGERY_ROOM_AREA3"/>
		</event>		
	</object>
	
</screen>

