<scene name="BusFence" numVictoryConditions="1" numSteps="3">
	<inventory>
		<object name="Broom" memberName="HUD_broom" acquired="0" visible="0"/>
		<object name="CoatHanger" memberName="HUD_coat hanger" acquired="0" visible="0"/>
		<!--<object name="WireCutters" memberName="HUD_wire cutters" acquired="0" visible="1"/>-->
		<object name="Ladder" memberName="HUD_ladder" acquired="0" visible="0"/>
	</inventory>
	
	<finalStates>
		<finalState objName="WireCutters" state="acquired"/>
		<finalState objName="DumpsterWindow" state="done"/>
		<finalState objName="BrokenGlass" state="sweptAside"/>
		<finalState objName="BusWindow" state="done"/>
		<finalState objName="Fence" state="done"/>
		<finalState objName="BusTop" state="done"/>
	</finalStates>
	
	<slidersMap>
		<slider layerName="slider_L35_Debris" id="bridge17"/>
		<slider layerName="owner_boy" id="mom_boy" rect="rect(744, 547, 863, 678)"/>
	</slidersMap>
	
	<animations>
		<animation name="BusSparkAnim" type="loop" xpos="767" ypos="323">
			<frames>
				<frame memberName="Bus Fence Sparks_000_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_001_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_002_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_003_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_004_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_005_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_006_anim" frameDelay="60"/>
				<frame memberName="Bus Fence Sparks_006_anim" blend="0" frameDelay="4500"/>
			</frames>
		</animation>
		
		<animation name="GlassAnim" type="once">
			<frames>
				<frame memberName="glass01_anim" frameDelay="228"/>
				<frame memberName="glass02_anim" frameDelay="228"/>
				<frame memberName="glass03_anim" frameDelay="228"/>
			</frames>
		</animation>
		
		<animation name="FireAnim" type="loop" zpos="6">
			<frames>
				<frame memberName="Fire_rightside_anim 01.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 03.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 05.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 07.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 09.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 11.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 13.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 15.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 17.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 19.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 21.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 23.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 25.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 27.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 29.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 31.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 33.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 35.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 37.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 39.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 41.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 43.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 45.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 47.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 49.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 51.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 53.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 55.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 57.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 59.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 61.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 63.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 65.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 67.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 69.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 71.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 73.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 75.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 77.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 79.png" frameDelay="48"/>
				<frame memberName="Fire_rightside_anim 81.png" frameDelay="48"/>
			</frames>
		</animation>
		
		<animation name="HydrantAnim" type="loop" zpos="6">
			<frames>
				<frame memberName="waterhydrant_anim_ 002.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 004.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 006.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 008.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 010.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 012.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 014.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 016.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 018.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 020.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 022.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 024.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 026.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 028.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 030.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 032.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 034.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 036.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 038.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 040.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 042.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 044.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 046.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 048.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 050.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 052.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 054.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 056.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 058.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 060.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 062.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 064.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 066.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 068.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 070.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 072.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 074.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 076.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 078.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 080.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 082.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 084.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 086.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 088.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 090.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 092.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 094.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 096.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 098.png" frameDelay="38"/>
				<frame memberName="waterhydrant_anim_ 100.png" frameDelay="38"/>
			</frames>
		</animation>
		
		<animation name="WaterAnim" type="loop" zpos="6">
			<frames>
				<frame memberName="water01_anim" frameDelay="53"/>
				<frame memberName="water02_anim" frameDelay="53"/>
				<frame memberName="water03_anim" frameDelay="53"/>
				<frame memberName="water04_anim" frameDelay="53"/>
				<frame memberName="water05_anim" frameDelay="53"/>
				<frame memberName="water06_anim" frameDelay="53"/>
				<frame memberName="water07_anim" frameDelay="53"/>
				<frame memberName="water08_anim" frameDelay="53"/>
				<frame memberName="water09_anim" frameDelay="53"/>
				<frame memberName="water10_anim" frameDelay="53"/>
				<frame memberName="water11_anim" frameDelay="53"/>
				<frame memberName="water12_anim" frameDelay="53"/>
				<frame memberName="water13_anim" frameDelay="53"/>
				<frame memberName="water14_anim" frameDelay="53"/>
				<frame memberName="water15_anim" frameDelay="53"/>
				<frame memberName="water16_anim" frameDelay="53"/>
				<frame memberName="water17_anim" frameDelay="53"/>
				<frame memberName="water18_anim" frameDelay="53"/>
				<frame memberName="water19_anim" frameDelay="53"/>
				<frame memberName="water20_anim" frameDelay="53"/>
			</frames>
		</animation>
		
		<animation name="Spark1Anim" type="once" zpos="6">
			<frames>
				<frame memberName="render10076_anim" frameDelay="33"/>
				<frame memberName="render10077_anim" frameDelay="33"/>
				<frame memberName="render10078_anim" frameDelay="33"/>
				<frame memberName="render10079_anim" frameDelay="33"/>
				<frame memberName="render10080_anim" frameDelay="33"/>
				<frame memberName="render10081_anim" frameDelay="33"/>
				<frame memberName="render10082_anim" frameDelay="33"/>
				<frame memberName="render10083_anim" frameDelay="33"/>
				<frame memberName="render10084_anim" frameDelay="33"/>
				<frame memberName="render10085_anim" frameDelay="33"/>
				<frame memberName="render10086_anim" frameDelay="33"/>
				<frame memberName="render10087_anim" frameDelay="33"/>
				<frame memberName="render10088_anim" frameDelay="33"/>
				<frame memberName="render10089_anim" frameDelay="33"/>
				<frame memberName="render10090_anim" frameDelay="33"/>
				<frame memberName="render10091_anim" frameDelay="33"/>
				<frame memberName="render10092_anim" frameDelay="33"/>
				<frame memberName="render10093_anim" frameDelay="33"/>
				<frame memberName="render10094_anim" frameDelay="33"/>
				<frame memberName="render10095_anim" frameDelay="33"/>
				<frame memberName="render10096_anim" frameDelay="33"/>
				<frame memberName="render10097_anim" frameDelay="33"/>
				<frame memberName="render10098_anim" frameDelay="33"/>
				<frame memberName="render10099_anim" frameDelay="33"/>
				<frame memberName="render10100_anim" frameDelay="33"/>
				<frame memberName="render10101_anim" frameDelay="33"/>
				<frame memberName="render10102_anim" frameDelay="33"/>
				<frame memberName="render10103_anim" frameDelay="33"/>
				<frame memberName="render10104_anim" frameDelay="33"/>
			</frames>
		</animation>
		
		<animation name="Spark2Anim" type="once" zpos="6">
			<frames>
				<frame memberName="anim_0063.png_anim" frameDelay="33"/>
				<frame memberName="anim_0064.png_anim" frameDelay="33"/>
				<frame memberName="anim_0065.png_anim" frameDelay="33"/>
				<frame memberName="anim_0066.png_anim" frameDelay="33"/>
				<frame memberName="anim_0067.png_anim" frameDelay="33"/>
				<frame memberName="anim_0068.png_anim" frameDelay="33"/>
				<frame memberName="anim_0069.png_anim" frameDelay="33"/>
				<frame memberName="anim_0070.png_anim" frameDelay="33"/>
				<frame memberName="anim_0071.png_anim" frameDelay="33"/>
				<frame memberName="anim_0072.png_anim" frameDelay="33"/>
				<frame memberName="anim_0073.png_anim" frameDelay="33"/>
				<frame memberName="anim_0074.png_anim" frameDelay="33"/>
				<frame memberName="anim_0075.png_anim" frameDelay="33"/>
				<frame memberName="anim_0076.png_anim" frameDelay="33"/>
				<frame memberName="anim_0077.png_anim" frameDelay="33"/>
				<frame memberName="anim_0078.png_anim" frameDelay="33"/>
				<frame memberName="anim_0079.png_anim" frameDelay="33"/>
				<frame memberName="anim_0080.png_anim" frameDelay="33"/>
				<frame memberName="anim_0081.png_anim" frameDelay="33"/>
				<frame memberName="anim_0082.png_anim" frameDelay="33"/>
				<frame memberName="anim_0083.png_anim" frameDelay="33"/>
			</frames>
		</animation>
		
		<animation name="FlyAnim" type="loop">
			<frames>
				<frame memberName="basic fly 40001.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40002.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40003.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40004.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40005.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40006.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40007.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40008.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40009.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40010.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40011.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40012.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40013.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40014.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40015.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40016.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40017.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40018.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40019.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40020.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40021.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40022.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40023.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40024.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40025.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40026.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40027.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40028.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40029.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40030.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40031.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40032.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40033.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40034.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40035.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40036.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40037.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40038.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40039.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40040.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40041.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40042.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40043.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40044.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40045.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40046.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40047.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40048.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40049.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40050.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40051.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40052.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40053.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40054.png_anim" frameDelay="33"/>
				<frame memberName="basic fly 40055.png_anim" frameDelay="33"/>
			</frames>
		</animation>
		
		<animation name="DavidAnim" type="once" zpos="200" crossfade="1">
			<frames>
				<frame memberName="david1_anim" frameDelay="500"/>
				<frame memberName="david2_anim" frameDelay="500"/>
				<frame memberName="david3_anim" frameDelay="500"/>
				<frame memberName="david4_anim" frameDelay="500"/>
			</frames>
		</animation>
	</animations>
	
	<zoomWindows>
		<zoomWindow name="DumpsterWindow" file="ZoomWindows\BusFence_Z1.dir" visible="0" hotspot="point(200, 442)"/>
		<zoomWindow name="BusWindow" file="ZoomWindows\BusFence_Z2.dir" visible="0" hotspot="point(422, 515)"/>
	</zoomWindows>
	
	<locks>
		<lock name="ExitLock">
			<parts>
				<part name="Ladder" state="locked"/>
				<part name="BusTop" state="locked"/>
			</parts>
			<onUnlocked>
				<action target="BusTop" name="SetState" param="clickable"/>
			</onUnlocked>
		</lock>		
	</locks>
	
	<objects>
		<object name="Ambience">
			<states>
				<state name="Ambience">
					<onStateEnter>
						<action target="Scene" name="StartAnimation" param="FireAnim"/>
						<action target="Scene" name="StartAnimation" param="WaterAnim"/>
						<action target="Scene" name="StartAnimation" param="Spark1Anim"/>
						<action target="Scene" name="StartAnimation" param="Spark2Anim"/>
						<action target="Scene" name="StartAnimation" param="FlyAnim"/>
						<action target="Scene" name="StartAnimation" param="HydrantAnim"/>
						<action target="Scene" name="StartAnimation" param="BusSparkAnim"/>
						<action target="Scene" name="PlaySound" param="traffic_outdoor"/>
						<action target="Scene" name="PlaySound" param="RiverLoopSnd"/>
					</onStateEnter>
				</state>
			</states>
		</object>

		<object name="WireCutters">
			<clickStrategy type="alpha" layer="wire cutters"/>
			<states>
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="wire cutters"/>
					</onStateEnter>
					<!--
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="WireCutters"/>	
						<action target="WireCutters" name="SetState" param="acquired"/>
					</onClick>
					-->
				</state>
				
				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="wire cutters"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="DumpsterWindow">
			<clickStrategy type="alpha" layer="dumpster closed"/>
			<states>
				<!--
				<state name="locked">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="lock ground"/>
						<action target="Scene" name="HideLayer" param="dumpster open"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="dumpster_click"/>
					</onClick>
					
					<onUseObject name="WireCutters">
						<action target="Scene" name="RemoveFromInventory" param="WireCutters"/>
						<action target="DumpsterWindow" name="SetState" param="closed"/>
					</onUseObject>
				</state>
				-->
				<state name="notAvailable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="dumpster open"/>
						<action target="Scene" name="HideLayer" param="dumpster locked"/>
						<action target="Scene" name="ShowLayer" param="lock ground"/>
						<action target="Scene" name="ShowLayer" param="dumpster closed"/>
					</onStateEnter>
					
					<onEvent name="reveal">
						<action target="Scene" name="RevealHotspot" param="DumpsterWindow"/>
						<action target="DumpsterWindow" name="SetState" param="closed"/>
					</onEvent>
				</state>
				
				<state name="closed">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>

					<onClick>
						<action target="DumpsterWindow" name="SetState" param="clickable"/>
						<action target="Scene" name="PlaySound" param="p-101"/>
					</onClick>
				</state>				
				
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="dumpster closed"/>
						<action target="Scene" name="ShowLayer" param="dumpster open"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>

					<onClick>
						<action target="Scene" name="OpenWindow" param="DumpsterWindow"/>
					</onClick>
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="dumpster closed"/>
						<action target="Scene" name="ShowLayer" param="dumpster open"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="BrokenGlass">
			<clickStrategy type="rect" left="410" top="580" right="590" bottom="675"/>
			<states>
				<state name="inTheWay">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="glass_click"/>
						<action target="DumpsterWindow" name="SendEvent" param="reveal"/>
					</onClick>
					
					<onUseObject name="Broom">
						<action target="Scene" name="RemoveFromInventory" param="Broom"/>
						<action target="BrokenGlass" name="SetState" param="sweptAside"/>
						<action target="BusWindow" name="SendEvent" param="glassSweptAway"/>
						<action target="Fence" name="SendEvent" param="glassSweptAway"/>
						<action target="Scene" name="PlaySound" param="p-102"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onUseObject>
				</state>
				
				<state name="sweptAside">
					<onStateEnter>
						<action target="Scene" name="StartAnimation" param="GlassAnim"/>
					</onStateEnter>
				</state>				
			</states>
		</object>
		
		<object name="BusWindow">
			<clickStrategy type="rect" left="385" top="480" right="460" bottom="550"/>
			<states>
				<state name="blocked">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="busWindow_click"/>
					</onClick>
					
					<onEvent name="glassSweptAway">
						<action target="BusWindow" name="SetState" param="clickable"/>
						<action target="Scene" name="RevealHotspot" param="BusWindow"/>
					</onEvent>
				</state>
				
				<state name="clickable">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="BusWindow"/>
					</onClick>
				</state>
				
				<state name="done">
				</state>
			</states>
		</object>
		
		<object name="Fence">
			<clickStrategy type="rect" left="450" top="390" right="525" bottom="570"/>
			<states>
				<state name="blocked">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="ladder fence"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="fence_click"/>
					</onClick>
					
					<onUseObject name="Ladder">
						<action target="Scene" name="ShowDialog" param="fence_click_with_ladder"/>
					</onUseObject>
					
					<onEvent name="glassSweptAway">
						<action target="Fence" name="SetState" param="clickable"/>
					</onEvent>
				</state>
				
				<state name="clickable">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="fence_click"/>
					</onClick>
					
					<onUseObject name="Ladder">
						<action target="Scene" name="RemoveFromInventory" param="Ladder"/>
						<action target="Fence" name="SetState" param="done"/>
						<action target="ExitLock" name="UnlockPart" param="Ladder"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onUseObject>
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="ladder fence"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="BusTop">
			<clickStrategy type="rect" left="420" top="335" right="555" bottom="380"/>
			<states>
				<state name="closed">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="window open"/>
						<action target="Scene" name="HideLayer" param="window open full"/>
						<action target="Scene" name="HideLayer" param="ladder window"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="busTop_click"/>
					</onClick>
					
					<onEvent name="open">
						<action target="BusTop" name="SetState" param="open"/>
						<action target="ExitLock" name="UnlockPart" param="BusTop"/>
						<action target="Scene" name="PlaySound" param="p-104"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onEvent>
				</state>
				
				<state name="open">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="window open full"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="cant_reach"/>
					</onClick>
				</state>
				
				<state name="clickable">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>
					
					<onClick>
						<!--<action target="Scene" name="StartAnimation" param="DavidAnim"/>
						<action target="Scene" name="PlaySound" param="fanfare_short"/>-->
						<action target="Scene" name="StartAnimation" param="DavidAnim"/>
						<action target="Scene" name="PlaySound" param="p-103"/>
						<action target="Scene" name="RegisterVictoryCondition" param="" delay="2500"/>
						<action target="BusTop" name="SetState" param="ddone"/>
					</onClick>
				</state>
				
				<state name="ddone">
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="window open full"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ReplayExit" param=""/>
					</onClick>
				</state>
			</states>
		</object>
	</objects>
</scene>
