
<gui>
	<movie name="briefing" materials="/data/objects/gui/hud_new/materials.xml" >
	<xi:include href="videos.xml" />
	<xi:include href="enchants.xml" />
	<xi:include href="weapon_icons.xml" />
	<!--<xi:include href="menu/base.xml" />-->
	
	<!--<xi:include href="/data/strings/briefing_text.xml" />-->
	<xi:include href="hud_interface_elements.xml" />
	<xi:include href="enchants.xml" />
	<xi:include href="enchants_settings.xml" />
	<xi:include href="menu_chat.xml"/>
	
	<xdefine name="div( nr1, nr2 )" expression="$nr1/$nr2" />
		
	<!--<bitmap name="logo" texture="data\textures\atlas_gui\general_gfx\sp_logo_h" uv_rect="@div(0,512) @div(0,128) @div(512,512) @div(128,128)" size="512 128" />-->
	<!--<bitmap name="interlace" texture="data\textures\atlas_gui\general_gfx\sp_map_interlace" uv_rect="@div(0,128) @div(0,128) @div(5,128) @div(5,128)" size="5 5" />-->

	<bitmap name="slider_marker" texture="data\textures\gui\interface_tacmap_icons" uv_rect="@div(448,512) @div(32,128) @div(32,512) @div(32,128)" size="32 32" color="255 255 255" />
	
	<bitmap name="map_bmp" texture="data\textures\atlas_gui\mission_gfx\briefing_map_m01" uv_rect="@div(0,1024) @div(0,1024) @div(1024,1024) @div(1024,1024)" size=" 1024 512 " />
	<!--<video name="mission_07_briefing_map" in_mem="true" video_size="1280 720" />-->
	
	<bitmap name="weapon_avatar_2d" texture="data\textures\gui\interface_tacmap_icons" uv_rect="@div(448,512) @div(32,128) @div(32,512) @div(32,128)" size="32 32" color="255 255 255" />

	<unit unit="hud_scar_l" name="weapon_unit" >
		<set_material object="hud_scar_l" material="txt_selected" />								

			 <!--color="@weapon_color"> 
			<connect_material material="aimlines" color="color" alpha="opacity"/>
			<connect_material material="aimlines_highlight" color="color" alpha="opacity"/>
			<connect_material material="aimlines_highlight_gl" color="color" alpha="opacity"/>	-->		
	</unit>

	<!-- button frame bitmaps -->
	<bitmap name="tl_straight_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(00) @div_128(06) @div_128(06) @div_128(06) @div_128(00) @div_128(12) @div_128(06) @div_128(12)" size="6 6" />
	<bitmap name="tr_straight_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(06) @div_128(06) @div_128(00) @div_128(06) @div_128(06) @div_128(12) @div_128(00) @div_128(12)" size="6 6" />
	<bitmap name="tl_out_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(06) @div_128(31) @div_128(00) @div_128(31) @div_128(06) @div_128(26) @div_128(00) @div_128(26)" size="6 5" />
	<bitmap name="tr_out_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(00) @div_128(31) @div_128(06) @div_128(31) @div_128(00) @div_128(26) @div_128(06) @div_128(26)" size="6 5" />
	<bitmap name="t_pixel_std_frame" texture="data\textures\gui\interface_items" uv_rect="@div_128(01) @div_128(06) @div_128(01) @div_128(01)" size="1 1" />
	
	<bitmap name="tl_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(00) @div_128(00) @div_128(06) @div_128(00) @div_128(00) @div_128(06) @div_128(06) @div_128(06)" size="6 6" />
	<bitmap name="tr_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(06) @div_128(00) @div_128(00) @div_128(00) @div_128(06) @div_128(06) @div_128(00) @div_128(06)" size="6 6" />
	<bitmap name="bl_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(00) @div_128(06) @div_128(06) @div_128(06) @div_128(00) @div_128(00) @div_128(06) @div_128(00)" size="6 6" />
	<bitmap name="br_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(06) @div_128(06) @div_128(00) @div_128(06) @div_128(06) @div_128(00) @div_128(00) @div_128(00)" size="6 6" />
	<bitmap name="b_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(06) @div_128(06) @div_128(07) @div_128(06) @div_128(06) @div_128(00) @div_128(07) @div_128(00)" size="1 6" />
	<bitmap name="l_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(00) @div_128(06) @div_128(06) @div_128(06) @div_128(00) @div_128(07) @div_128(06) @div_128(07)" size="6 1" />
	<bitmap name="r_std_frame" texture="data\textures\gui\interface_items" uv_coordinates="@div_128(06) @div_128(06) @div_128(00) @div_128(06) @div_128(06) @div_128(07) @div_128(00) @div_128(07)" size="6 1" />
	<bitmap name="bg_std_frame" texture="data\textures\gui\interface_items" uv_rect="@div_128(06) @div_128(06) @div_128(01) @div_128(01)" size="1 1" />	
	
	<bitmap name="MITCHELL" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="238 322" />
	<bitmap name="RAMIREZ" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="238 322" />
	<bitmap name="BEASLEY" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="238 322" />
	<bitmap name="BROWN" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="238 322" />
	<bitmap name="JENKINS" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="238 322" />
	<bitmap name="HUME" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="238 322" />		

	<rect name="weight_pos" size="2 2" color="0 0 255"/>	
	<bitmap name="weight_bar" texture="data\textures\gui\weight_bar" uv_rect="0 0 1 1" size="32 32" />	
	<bitmap name="weight_bar_green" texture="data\textures\gui\weight_bar" uv_rect="0 0 0.03 0.03" size="32 32" />	

	 		<text material="txt_normal" name="selection_text" font="GRAW2font_10" text="" 		kern="0.03" />
		 	<text material="txt_normal" name="normal_text" font="GRAW2font_10" text="" 		kern="0.03" align="0.5"/>
		 	<text material="txt_normal" name="heading_text" font="GRAW2font_10" text="" 		kern="0.03" />
	 		<text material="txt_normal" name="team_names" font="GRAW2font_14" text="" 	kern="0.05"/>
			<text material="txt_normal" name="table_text" font="GRAW2font_12" text="" kern="0.05"/>
		
	<!--<text material="txt_normal" name="selection_text" font="GRAWfont_10" font_size="16" kern="0.09" />
	<text material="txt_normal" name="normal_text" font="GRAWfont_10" font_size="16" align="0.5"/>
	<text material="txt_normal" name="heading_text" font="GRAWfont_10" font_size="16" color="255 255 255" alpha="255" kern="0.0625"/>
	<text material="txt_normal" name="team_names" font="GRAWfont_14" font_size="22" kern="0.09" />-->
	
	<layout name="ammo_info_layout" size="180 16" >
	  <put object="type" at="0 8 0" at2="0 16 0" />
	  <put object="data" at="120 8 0" at2="240 16 0" />
	  <put object="inc" at="160 8 0" at2="320 16 0" size="10 10" />
	  <put object="dec" at="180 8 0" at2="360 16 0" size="10 10" />
	</layout>	
				
	<sprite name="ammo_info">
		<frame>	
			<clone object="normal_text" name="type" />
			<clone object="normal_text" name="data" />
			<clone object="small_button" name="inc" />
			<clone object="small_button" name="dec" />
			
			<set_text object="inc/text" text="+" />
			<set_button object="inc" trigger="trigger_ammo_info_inc" />
	
			<set_text object="dec/text" text="-" />
			<set_button object="dec" trigger="trigger_ammo_info_dec" />

			<place object="type" align="0 0.5" />
			<place object="data" align="1 0.5" />

			<place object="inc" align="0.5 0.5" />
			<place object="dec" align="0.5 0.5" />
		
			<place object="ammo_info_layout" />
		</frame>					
	</sprite>	

	<sprite name="grenade_info">
		<frame>	
			<clone object="normal_text" name="type" />
			<clone object="normal_text" name="data" />
			<clone object="small_button" name="inc" />
			<clone object="small_button" name="dec" />
			
			<set_text object="inc/text" text="+" />
			<set_button object="inc" trigger="trigger_grenade_info_inc" />
	
			<set_text object="dec/text" text="-" />
			<set_button object="dec" trigger="trigger_grenade_info_dec" />

			<place object="type" align="0 0.5" />
			<place object="data" align="1 0.5" />

			<place object="inc" align="0.5 0.5" />
			<place object="dec" align="0.5 0.5" />
		
			<place object="ammo_info_layout" />
		</frame>					
	</sprite>	
	
	<layout name="selected_item_layout" size="180 64" >
		<put object="selected_item_btn" at="0 0 0" size="180 32" size2="360 96"/>
		<put object="wpn_sqr" at="0 0 0" size="180 32" size2="360 96"/>
		<!--<put object="avatar"  />-->
		<put object="row1" at="0 32 0" at2="0 96 0" size="100 16" size2="280 16" />
		<put object="row2" at="0 48 0" at2="0 112 0" size="100 16" size2="280 16" />
	</layout>
			
	<sprite name="selected_item">
		<slot name="scar_heavy_spr">
			<clone object="scar_heavy_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="barrett_spr">
			<clone object="barrett_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="saw_spr">
			<clone object="saw_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="rpg7_spr">
			<clone object="rpg7_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="predator_spr">
			<clone object="predator_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="mp5sd_spr">
			<clone object="mp5sd_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="mp5a4_spr">
			<clone object="mp5a4_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m240_spr">
			<clone object="m240_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m32_spr">
			<clone object="m32_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="hk21e_spr">
			<clone object="hk21e_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m61_thrower_spr">
			<clone object="m61_thrower_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="anm8_thrower_spr">
			<clone object="anm8_thrower_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="glock_spr">
			<clone object="glock_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="beretta_spr">
			<clone object="beretta_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m14_spr">
			<clone object="m14_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="msg90_spr">
			<clone object="msg90_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m8_compact_spr">
			<clone object="m8_compact_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="crye_spr">
			<clone object="crye_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m8_spr">
			<clone object="m8_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="g36k_spr">
			<clone object="g36k_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="scar_light_spr">
			<clone object="scar_light_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="rx4_spr">
			<clone object="rx4_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
		<slot name="m416_spr">
			<clone object="m416_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>

		<slot name="meusoc_spr">
			<clone object="meusoc_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>

		<slot name="masada_spr_spr">
			<clone object="masada_spr_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>

		<slot name="masada_spr">
			<clone object="masada_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>

		<slot name="masada_cqbr_spr">
			<clone object="masada_cqbr_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>

		<slot name="masada_ak_spr">
			<clone object="masada_ak_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>

		<slot name="masada_ak_cqbr_spr">
			<clone object="masada_ak_cqbr_spr" name="wpn_sqr" />
			<place object="wpn_sqr"/>
		</slot>
					
		<frame>	
			<clone object="ammo_info" name="row1" />
			<clone object="grenade_info" name="row2" />
			<place object="selected_item_btn" />
			<place object="row1" />
			<place object="row2" />		
			<place object="selected_item_layout" />
		</frame>					
	</sprite>	
		
	<table name="selected_item_table" columns="1" visible_rows="4" row_height="64">
		<column object="empty_spr" width="150"/>
	</table>	

	
<!-------------------------------------------------------------------------------------------
------------------------------------ LAYOUTS ------------------------------------------------
-------------------------------------------------------------------------------------------->	

		<layout name="toggle_frame_layout" size="800 600">  
		  	<put object="tl_std_frame" at="0 0 0" at2="0 0 0" size="1 1" size2="1 1" />
		  	<put object="t_pixel_std_frame" at="1 0 0" at2="1 0 0" size="799 1" size2="1599 1" />
		  	<put object="tr_std_frame" at="800 0 0" at2="1600 0 0" size="1 1" size2="1 1" />
		  	<put object="l_std_frame" at="0 0 0" at2="0 0 0" size="1 599" size2="1 1199" />
		  	<put object="r_std_frame" at="800 1 0" at2="1600 1 0" size="1 599" size2="1 1199" />
		  	<put object="bl_std_frame" at="0 600 0" at2="0 1200 0" size="1 1" size2="1 1"/>
		  	<put object="b_std_frame"  at="1 600 0" at2="1 1200 0" size="799 1" size2="1599 1"/>
			<put object="br_std_frame"  at="800 600 0" at2="1600 1200 0" size="1 1" size2="1 1"/>
		</layout>	
		<sprite name="toggle_frame_spr">	
			<frame>			
				<place object="tl_std_frame" />
				<place object="t_pixel_std_frame" />
				<place object="tr_std_frame" />  
				<place object="l_std_frame" />
				<place object="r_std_frame" />  
				<place object="bl_std_frame" />
				<place object="b_std_frame" />
				<place object="br_std_frame" />	  
				<place object="toggle_frame_layout" />
			</frame>	
		</sprite>	
		
		<layout name="main_layout" size="800 600" >
			<put object="tl_member_frame" at="0 0 0" at2="0 0 0" size="4 4" size2="4 4" />
			<put object="t_member_frame" at="4 0 0" at2="4 0 0" size="796 4" size2="1596 4" />
			<put object="tr_member_frame" at="800 0 0" at2="1600 0 0" size="4 4" size2="4 4" />
			<put object="l_member_frame" at="0 4 0" at2="0 4 0" size="4 592" size2="4 1192" />
			<put object="r_member_frame" at="800 4 0" at2="1600 4 0" size="4 592" size2="4 1192" />	  
			<put object="bl_member_frame" at="0 596 0" at2="0 1196 0" size="4 4" size2="4 4"/>
			<put object="b_member_frame"  at="4 596 0" at2="4 1196 0" size="796 4" size2="1596 4"/>
			<put object="br_member_frame"  at="800 596 0" at2="1600 1196 0" size="4 4" size2="4 4"/>
		</layout>	
		<sprite name="main_spr">	
			<frame>
				<place object="tl_member_frame" />
				<place object="t_member_frame" />
				<place object="tr_member_frame" />  
				<place object="l_member_frame" />
				<place object="r_member_frame" />  
				<place object="bl_member_frame" />
				<place object="b_member_frame" />
				<place object="br_member_frame" />	  
				<place object="main_layout" />
			</frame>	
		</sprite>							

	
		<sprite name="bottom_spr">	
			<slot name="previous">
				<callback function="previous" />	
			</slot>
			<slot name="load">
				<callback function="load" />	
			</slot>
			<slot name="option">
				<callback function="option" />	
			</slot>
			<slot name="quit">
				<callback function="quit" />	
			</slot>
			<slot name="next">
				<callback function="next" />				
			</slot>				
			<slot name="start">
				<callback function="start" />	
			</slot>
		
			<slot name="continue">
				<callback function="continue" />	
			</slot>
			
			<slot name="ready">
				<callback function="ready" />	
			</slot>

			<frame>
				<clone object="bottom_button" name="quit_btn" />			
				<clone object="bottom_button" name="options_btn" />			
				<clone object="bottom_button" name="load_btn" />			
				<clone object="bottom_button" name="previous_btn" />			
				
				<place object="quit_btn" at="0 0 -3" />
				<place object="options_btn" at="0 0 -3" />
				<place object="load_btn" at="0 0 -3" />
				<place object="previous_btn" at="0 0 -3" />
				
				<set_text object="quit_btn/button_text" text_id="title_quit"/>
				<set_text object="options_btn/button_text" text_id="title_options"/>
				<set_text object="load_btn/button_text" text_id="title_load_game"/>
				<set_text object="previous_btn/button_text" text_id="title_previous"/>
				<place object="briefing_bottom_spr" />
		
				<connect object="previous_btn" signal="pressed" to="." slot="previous" />
				<connect object="options_btn" signal="pressed" to="." slot="option" />
				<connect object="load_btn" signal="pressed" to="." slot="load" />
				<connect object="quit_btn" signal="pressed" to="." slot="quit" />
				
		  	<clone object="bottom_button" name="next_btn" />	
			<place object="next_btn" />
		  	<set_text object="next_btn/button_text" text_id="title_next"/>
			<connect object="next_btn" signal="pressed" to="." slot="next" />

			<clone object="bottom_button" name="start_btn_team" />	
			<place object="start_btn_team" />
		  	<set_text object="start_btn_team/button_text" text_id="title_launch_mission"/>
		  	<connect object="start_btn_team" signal="pressed" to="." slot="start" />
				

			<clone object="bottom_button" name="continue_btn" />	
			<place object="continue_btn" />
		  	<set_text object="continue_btn/button_text" text_id="title_continue_mission"/>
		  	<connect object="continue_btn" signal="pressed" to="." slot="continue" />

			<clone object="bottom_button" name="ready_btn" />	
			<place object="ready_btn" />
		  	<set_text object="ready_btn/button_text" text_id="status_ready"/>
		  	<connect object="ready_btn" signal="pressed" to="." slot="ready" />


				<!--<place object="bottom_left_spr" />-->
				<!--<place object="bottom_right_spr" align="1 0"/>-->
				<!--<place object="bottom_layout"/>-->
			</frame>	
		</sprite>
		
		<layout name="ghost_id_layout" size="238 322" >
			<put object="MITCHELL" size="238 322" size2="476 644"/>				
			<put object="RAMIREZ" size="238 322" size2="476 644" />				
			<put object="BEASLEY" size="238 322" size2="476 644" />				
			<put object="BROWN" size="238 322" size2="476 644" />				
			<put object="JENKINS" size="238 322" size2="476 644" />				
			<put object="HUME" size="238 322" size2="476 644" />
		</layout>
		
		<sprite name="ghosts_id_spr">
			<slot name="show_MITCHELL">
				<trigger_slot object="RAMIREZ" slot="hide" />
				<trigger_slot object="BEASLEY" slot="hide" />
				<trigger_slot object="BROWN" slot="hide" />
				<trigger_slot object="JENKINS" slot="hide" />
				<trigger_slot object="HUME" slot="hide" />
				<trigger_slot object="MITCHELL" slot="show" />
			</slot>
			<slot name="show_RAMIREZ">
				<trigger_slot object="MITCHELL" slot="hide" />
				<trigger_slot object="BEASLEY" slot="hide" />
				<trigger_slot object="BROWN" slot="hide" />
				<trigger_slot object="JENKINS" slot="hide" />
				<trigger_slot object="HUME" slot="hide" />
				<trigger_slot object="RAMIREZ" slot="show" />
			</slot>		
			<slot name="show_BEASLEY">
				<trigger_slot object="MITCHELL" slot="hide" />
				<trigger_slot object="RAMIREZ" slot="hide" />
				<trigger_slot object="BROWN" slot="hide" />
				<trigger_slot object="JENKINS" slot="hide" />
				<trigger_slot object="HUME" slot="hide" />
				<trigger_slot object="BEASLEY" slot="show" />
			</slot>
			<slot name="show_BROWN">
				<trigger_slot object="MITCHELL" slot="hide" />
				<trigger_slot object="RAMIREZ" slot="hide" />
				<trigger_slot object="BEASLEY" slot="hide" />
				<trigger_slot object="JENKINS" slot="hide" />
				<trigger_slot object="HUME" slot="hide" />
				<trigger_slot object="BROWN" slot="show" />
			</slot>
			<slot name="show_JENKINS">
				<trigger_slot object="MITCHELL" slot="hide" />
				<trigger_slot object="RAMIREZ" slot="hide" />
				<trigger_slot object="BEASLEY" slot="hide" />
				<trigger_slot object="BROWN" slot="hide" />
				<trigger_slot object="HUME" slot="hide" />
				<trigger_slot object="JENKINS" slot="show" />
			</slot>
			<slot name="show_HUME">
				<trigger_slot object="MITCHELL" slot="hide" />
				<trigger_slot object="RAMIREZ" slot="hide" />
				<trigger_slot object="BEASLEY" slot="hide" />
				<trigger_slot object="BROWN" slot="hide" />
				<trigger_slot object="JENKINS" slot="hide" />
				<trigger_slot object="HUME" slot="show" />
			</slot>
			<frame>
				<place object="MITCHELL" at="0 0 -1"/>				
				<place object="RAMIREZ" at="0 0 -1"/>				
				<place object="BEASLEY" at="0 0 -1"/>				
				<place object="BROWN" at="0 0 -1"/>				
				<place object="JENKINS" at="0 0 -1"/>				
				<place object="HUME" at="0 0 -1"/>	
				<place object="ghost_id_layout" at="0 0 -1"/>														
			</frame>	
		</sprite>
		
		<layout name="ghost_layout" size="132 160" >
			<!--<put object="text_frame" at="20 10 0" size="18 122"/>-->
			<put object="team_text_table" at="0 20 0" />
		  	<put object="remove_btn" at="0 125 0" size="90 18" />
		  	<put object="ghost_text" at="0 2 0" />  
		</layout>
		
		<sprite name="ghost_spr">	
			<frame>
				<clone object="normal_text" name="ghost_text" />	
				<place object="ghost_text" align="0 0"/>
				<set_material object="ghost_text" material="txt_pos7" />								
				<set_text object="ghost_text" text_id="title_Ghost_team" at="0 0 -2" />
												
				<!--<place object="text_frame"/>-->						
				<place object="team_text_table"/>		
				<place object="remove_btn" align="0 1"/>
				<place object="ghost_layout"/>
			</frame>	
		</sprite>

		<sprite name="select_name">	
			<frame>	
				<clone object="text_btn" name="ghost_btn"/>
				<place object="ghost_btn" size="123 18" />
				<clone object="team_names" name="new_ghost_name"/>
				<place object="new_ghost_name"/>
			</frame>	
		</sprite>
					
		<table name="btn_table" columns="1" visible_rows="15" row_height="22">	
				<column object="text_btn" />
		</table>
							
		<layout name="select_layout" size="190 250" >
			<put object="assign_btn" at="0 3 0" size="87 18" />	  	  
			<put object="team_text_table" at="0 40 0" />
			<put object="ghost_text" at="0 22 0" />  
			<put object="scroller" at="140 5 0" size="10 140" size2="10 280" />
		</layout>
		
		<sprite name="select_spr">	
			<slot name="setup">
				<callback function="setup_table_scroller" object1="btn_table" object2="scroller" />
			</slot>
			<frame>
				<clone object="normal_text" name="ghost_text" />	
				<place object="ghost_text" align="0 0"/>
				<set_material object="ghost_text" material="txt_pos7" />								
				<set_text object="ghost_text" text_id="title_Available_Ghosts" at="0 0 -2" />									
				<clone object="table_scroller_spr" name="scroller"/>
				
				<place object="team_text_table"/>
				<place object="assign_btn" align="0 0"/>
				<place object="select_layout"/>
			</frame>	
		</sprite>		

		<layout name="kit_selection_layout" size="410 300" >
			<put object="kit_title" at="0 -20 0" />
			<put object="selected_item_table" at="0 0 0" size="150 270" size2="150 570" />
			<!--<put object="scroller" at="390 0 0" at2="800 0 0" size="10 270" size2="10 570"/>
			<put object="default_btn" at="0 300 0" at2="0 600 0" size="112 20" />-->
		</layout>
		
		<layout name="kit_selection_800_layout" size="311 233" >
			<put object="selected_item_table" at="0 0 0" size="150 250" size2="150 550" />
			<put object="scroller" at="290 0 0" at2="600 0 0" size="10 250" size2="10 550"/>
			<put object="default_btn" at="0 300 0" at2="0 600 0" size="112 20" />
		</layout>

		<sprite name="kit_selection_spr">	
			<slot name="table_updated">
				<callback function="setup_table_scroller" object1="selected_item_table" object2="scroller" />
			</slot>
			<frame>
				<clone object="table_scroller_spr" name="scroller"/>
				<!--<place object="scroller"/>-->

				<place object="default_btn" align="0 1"/>
				<place object="selected_item_table" at="0 0 -10" />
				
				<clone object="heading_text" name="kit_title"/>
				<place object="kit_title"/>
				<set_text object="kit_title" text_id="title_combat_gear"  align="0 0"/>
				<set_material object="kit_title" material="txt_pos7" />				

				
				<!--<place object="kit_selection_layout"/>-->
				<connect object="selected_item_table" signal="updated" to="." slot="table_updated" />
			</frame>	
		</sprite>
							
		<table name="table" columns="1" visible_rows="10" row_height="22">	
			<column object="empty_spr" width="165" />
		</table>

		<layout name="weapons_layout" size="150 290" >
		  	<put object="equip_btn" at="151 290 0" at2="301 580 0" size="112 20" size2="112 20"/>
		  	<!--<put object="weapons" at="0 0 0" at2="0 0 0" size="150 290" size2="300 580"/>-->
		  	<put object="scroller" size="10 222" />
		  	<put object="table"	 at="10 10 0" />
		  	<put object="primary_btn"	 at="3 3 0" size="146 18" size2="292 18" />
		  	<put object="secondary_btn"	 at="3 25 0" size="146 18" size2="292 18" />
		  	<put object="sidearm_btn"	 at="3 47 0" size="146 18" size2="292 18" />
		  	<put object="extra_gear_btn" at="3 69 0" size="146 18" size2="292 18" />
			<put object="weap_title" at="0 -20 0" />					  	
		</layout>
						
		<sprite name="weapons_spr">
			<slot name="setup">
				<callback function="setup_table_scroller" object1="table" object2="scroller" />
			</slot>
			<frame>
				<clone object="heading_text" name="weap_title"/>			
				<place object="weap_title"/>
				<set_text object="weap_title" text_id="title_equip_weapons"  align="0 0"/>
				<set_material object="weap_title" material="txt_pos7" />			
				
				<place object="primary_btn"/>
				<place object="secondary_btn"/>
				<place object="sidearm_btn"/>
				<place object="extra_gear_btn"/>

				<clone object="table_scroller_spr" name="scroller"/>
				
				<place object="table"/>
									
				<place object="equip_btn" align="1 0"/>				
				<place object="weapons_layout"/>
			</frame>	
		</sprite>
		
		<table name="txt_table" columns="1" visible_rows="9" row_height="13">	
				<column object="table_text" width="150" at="0 0 -14"/>			
		</table>
		
		<layout name="bio_layout" size="800 600" >
	  	<put object="briefing_text_frame" at="0 0 0" size="800 600" size2="1600 1200" />
	  	<put object="txt_table" at="12 12 0" x="top" y="left" />  
			<put object="scroller" at="787 5 0" at2="1587 5 0" size="10 590" size2="10 1190"/>
		</layout>

		<sprite name="bio_spr">	
			<slot name="setup">
				<callback function="setup_table_scroller" object1="txt_table" object2="scroller" />					
			</slot>
			<frame>			
				<clone object="table_scroller_spr" name="scroller"/>
				<place object="txt_table" at="0 0 -13" />
				
				<place object="briefing_text_frame" at="0 0 2" />
				<place object="bio_layout"/>
				<connect object="txt_table" signal="updated" to="." slot="setup" />				
			</frame>	
		</sprite>
				
		<sprite name="title">	
			<frame>	
				<clone object="heading_text" name="title_text" />	
				<place object="title_text" align="0 0.5" at="0 3 -5"/>
				<set_text object="title_text" text_id="title_capacity" align="0 0.5"/>				
				<set_material object="title_text" material="txt_pos7" />				
			</frame>	
		</sprite>
															
		<layout name="weight_layout" size="380 10" >	 		  
		  <put object="title" at="0 0 0" /> 	    		  
		  <put object="brick1" at="0 13 0" at2="0 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick2" at="16 13 0" at2="21 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick3" at="32 13 0" at2="42 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick4" at="48 13 0" at2="63 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick5" at="64 13 0" at2="84 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick6" at="80 13 0" at2="105 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick7" at="96 13 0" at2="126 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick8" at="112 13 0" at2="147 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick9" at="128 13 0" at2="168 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick10" at="144 13 0" at2="189 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick11" at="160 13 0" at2="210 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick12" at="176 13 0" at2="231 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick13" at="192 13 0" at2="252 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick14" at="208 13 0" at2="273 13 0" size="14 10" size2="18 10"/> 	    		  
		  <put object="brick15" at="224 13 0" at2="293 13 0" size="14 10" size2="18 10"/> 	    		   	    		  
		</layout>	
		<sprite name="weight_spr">	
			<frame>
				<clone object="filled_square_frame_spr" name="brick1"/>
				<clone object="filled_square_frame_spr" name="brick2"/>
				<clone object="filled_square_frame_spr" name="brick3"/>
				<clone object="filled_square_frame_spr" name="brick4"/>
				<clone object="filled_square_frame_spr" name="brick5"/>
				<clone object="filled_square_frame_spr" name="brick6"/>
				<clone object="filled_square_frame_spr" name="brick7"/>
				<clone object="filled_square_frame_spr" name="brick8"/>
				<clone object="filled_square_frame_spr" name="brick9"/>
				<clone object="filled_square_frame_spr" name="brick10"/>
				<clone object="filled_square_frame_spr" name="brick11"/>
				<clone object="filled_square_frame_spr" name="brick12"/>
				<clone object="filled_square_frame_spr" name="brick13"/>
				<clone object="filled_square_frame_spr" name="brick14"/>
				<clone object="filled_square_frame_spr" name="brick15"/>
				<place object="brick1" at="0 0 -5" />
				<place object="brick2" at="0 0 -5" />
				<place object="brick3" at="0 0 -5" />
				<place object="brick4" at="0 0 -5" />
				<place object="brick5" at="0 0 -5" />
				<place object="brick6" at="0 0 -5" />
				<place object="brick7" at="0 0 -5" />
				<place object="brick8" at="0 0 -5" />
				<place object="brick9" at="0 0 -5" />
				<place object="brick10" at="0 0 -5" />
				<place object="brick11" at="0 0 -5" />
				<place object="brick12" at="0 0 -5" />
				<place object="brick13" at="0 0 -5" />
				<place object="brick14" at="0 0 -5" />
				<place object="brick15" at="0 0 -5" />
				<trigger_slot object="brick1" slot="weight_default" />				
				<trigger_slot object="brick2" slot="weight_default" />				
				<trigger_slot object="brick3" slot="weight_default" />				
				<trigger_slot object="brick4" slot="weight_default" />				
				<trigger_slot object="brick5" slot="weight_default" />				
				<trigger_slot object="brick6" slot="weight_default" />				
				<trigger_slot object="brick7" slot="weight_default" />				
				<trigger_slot object="brick8" slot="weight_default" />				
				<trigger_slot object="brick9" slot="weight_default" />				
				<trigger_slot object="brick10" slot="weight_default" />				
				<trigger_slot object="brick11" slot="weight_default" />				
				<trigger_slot object="brick12" slot="weight_default" />				
				<trigger_slot object="brick13" slot="weight_default" />				
				<trigger_slot object="brick14" slot="weight_default" />				
				<trigger_slot object="brick15" slot="weight_default" />				

				<place object="title" />				
				<place object="weight_layout"/>
			</frame>			
		</sprite>	
		
		<layout name="ghost_image_layout" size="100 100">	
		  	<put object="heading_text" at="13 7 -2" />	
		  	<put object="ghosts_id_spr" at="0 0 0" at2="0 0 0" size="100 100" size2="200 200"/>	
		  	<put object="ghost_id_fade" at="0 0 0" at2="0 0 0" size="100 100" size2="200 200"/>	  	
		  	<put object="viewport_frame_spr" at="0 0 0" at2="0 0 0" size="100 100" size2="200 200"/>	
		</layout>
		<sprite name="ghost_image_spr">	
			<frame>
				<place object="heading_text" at="0 0 -10" />			
				<place object="viewport_frame_spr" at="0 0 -10" />
				<place object="ghosts_id_spr" at="0 0 0" />								
				<place object="ghost_id_fade" at="0 0 -8" />								
				<place object="ghost_image_layout" />			
			</frame>
		</sprite>	


		<layout name="team_800_layout" size="800 600" ><!--768-->	 		  
			  <put object="ghost_spr" at="30 188 0" size="132 160" /> 	    		  
			  <put object="kit_selection_spr" at="205 180 0" />
			  <put object="select_spr" at="30 342 0" size="172 310" />
			  <put object="weapons_spr" at="520 180 0" size="200 212" />
			  <put object="bio_spr" at="205 428 0" size="515 115" />  
			  <put object="team_main_frame_spr" at="10 174 0" size="780 375"/>
			  <put object="continue_btn" at="625 562 0" size="120 18" />
			  <put object="ready_btn" at="625 562 0" size="120 18" />
			  <put object="weight_spr" at="205 416 -6" size="603 10" />	  
		</layout>
		
		<!--<layout name="team_layout" size="1024 600" >	 		
		  	<put object="bpt_std_frame_spr" at="20 180 0" at2="20 300 0" size="760 355" size2="1560 845" /> 
		  
			  <put object="ghost_spr" at="14 188 0" at2="14 308 0" size="132 160" /> 	    		  
			  <put object="kit_selection_spr" at="205 180 0" at2="717 300 0" size="410 343" />
			  <put object="select_spr" at="23 312 0" at2="23 432 0" size="172 310" />
			  <put object="weapons_spr" at="621 180 0" at2="1133 300 0" size="200 343" />
			  <put object="bio_spr" at="205 540 0" at2="717 660 0" size="616 -6" size2="616 474" />  
			  
			  <put object="team_main_frame_spr" at="10 174 0" at2="10 294 0" size="1004 375" size2="2028 855" /> 
			  
			  <put object="continue_btn" at="849 562 0" at2="1873 1162 0" size="120 18" />
			  <put object="weight_spr" at="205 527 -6" at2="717 647 -6" size="704 10" />	  		  
		</layout>	-->

		<layout name="team_layout" size="800 600" >	 		
		  	<put object="bpt_std_frame_spr" at="20 180 0" at2="20 300 0" size="760 355" size2="1560 845" /> 
		  
			  <put object="ghost_spr" at="30 188 0" at2="30 308 0" size="132 160" /> 	    		  
			  <put object="select_spr" at="30 330 0" at2="30 450 0" size="172 310" size2="172 310"/>
			  <put object="ghost_image_spr" at="209 196 0" at2="299 316 0" size="185 324" size2="495 804"/>

			  <put object="kit_selection_spr" at="405 210 0" at2="805 330 0" size="180 193" size2="180 413"/>
			  <put object="weapons_spr" at="570 210 0" at2="1370 330 0" size="200 203" size2="200 423" />
				<put object="bio_spr" at="405 440 0" at2="805 780 0" size="365 80" size2="765 340" /> 
			  <put object="weight_spr" at="405 410 -6" at2="805 750 -6" size="380 10" size2="760 10"/>	  		  
			  
			  <put object="team_main_frame_spr" at="10 174 0" at2="10 294 0" size="780 375" size2="1580 855" /> 
			  
			  <put object="continue_btn" at="849 562 0" at2="1873 1162 0" size="120 18" />
			  <put object="ready_btn" at="849 562 0" at2="1873 1162 0" size="120 18" />



		</layout>	

		<sprite name="team_spr">
			<frame>

				<place object="ghost_image_spr" at="0 0 -5"/>
				<place object="bpt_std_frame_spr" at="0 0 -1"/>
			
				<clone object="back_btn_unselected_spr" name="briefing_btn_frame"/>
				<place object="briefing_btn_frame" />
				<place object="briefing_btn" />				

				<place object="continue_btn" />			
				<place object="ready_btn" />			

				
				<place object="ghost_spr" at="0 0 -5"/>								
				<place object="select_spr" at="0 0 -5"/>				
				<place object="kit_selection_spr" at="0 0 -5"/>			
				<place object="weapons_spr" at="0 0 -5"/>								
				<place object="bio_spr" at="0 0 -7"/>		
				<place object="weight_spr" at="0 0 -5"/>	
				<place object="team_main_frame_spr" at="0 0 5"/>			
								
				<clone object="small_button" name="start_button"/>
				<place object="start_button" at="0 0 -1" align="0 0"/>
			</frame>					
		</sprite>		

		<layout name="common_800_layout" size="800 600" >
			<put object="narcom_frame_spr" at="791 10 0" size="194 161" />		  		  
			<put object="narcom_btn" at="600 12 0" size="100 15" />		  		  
		  	<put object="bottom_spr" at="10 552 0" size="780 38" />
		</layout>

		<layout name="common_layout" size="800 600" >
			<put object="narcom_frame_spr" at="790 9 0" at2="1590 9 0" size="194 161" size2="388 282"/>		  		  
			<put object="narcom_btn" at="600 11 0" at2="1242 11 0" size="100 15" />		  		  
		  	<put object="bottom_spr" at="10 552 0" at2="10 1152 0" size="780 38" size="1580 38"/>
		</layout>
		
		<!-- resized -->
		
		<sprite name="common_spr">
			<slot name="resize">
				<callback function="debug" parameter1="RESIZING NARCOM"/>																	
				<callback function="get_video_size" />					
			</slot>
			<frame>
				<place object="narcom_frame_spr" align="1 0"/>	
				<place object="narcom_btn" />	
				<place object="bottom_spr" />	
				<connect object="common_layout" signal="resized" to="." slot="resize" />
				<connect object="common_800_layout" signal="resized" to="." slot="resize" />
			</frame>					
		</sprite>
		
		<sprite name="inc_square">
			<frame>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame"/>	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_selected" />
			</frame>
		</sprite>
			
<!-------------------------------------------------------------------------------------------
------------------------------------ BRIEFING -----------------------------------------------
-------------------------------------------------------------------------------------------->	
		
		<table name="briefing_text_table" columns="1" visible_rows="18" row_height="16">	
				<column object="table_text" width="150"/>
		</table>
		
	<bitmap name="briefing_text_frame_bitmap" texture="data\textures\atlas_gui\hud" uv_rect="@div(1, 512) @div(246, 512) @div(1, 512) @div(1, 512)" size="1 1" material="hud_box"/>
		
	<layout name="briefing_text_frame_layout" size="300 300" >
		<put object="briefing_text_frame_t" at="0 0 0" at2="0 0 0" size="300 1" size2="600 1" />
		<put object="briefing_text_frame_b" at="0 299 0" at2="0 599 0" size="300 1" size2="600 1" />
		<put object="briefing_text_frame_l" at="0 1 0" at2="0 1 0" size="1 298" size2="1 598" />
		<put object="briefing_text_frame_r" at="299 1 0" at2="599 1 0" size="1 298" size2="1 598" />
		<put object="bg_windows_frame" at="1 1 0" at2="1 1 0" size="298 298" size2="598 598" />
	</layout>	
	<sprite name="briefing_text_frame">	
		<frame>	  
			<clone object="briefing_text_frame_bitmap" name="briefing_text_frame_t"/>
			<clone object="briefing_text_frame_bitmap" name="briefing_text_frame_b"/>
			<clone object="briefing_text_frame_bitmap" name="briefing_text_frame_l"/>
			<clone object="briefing_text_frame_bitmap" name="briefing_text_frame_r"/>
			<place object="briefing_text_frame_t" at="0 0 0" />
			<place object="briefing_text_frame_b" at="0 0 0"/>
			<place object="briefing_text_frame_l" at="0 0 0"/>
			<place object="briefing_text_frame_r" at="0 0 0"/>
			<place object="bg_windows_frame" color="0 0 0" />
			<place object="briefing_text_frame_layout" />
		</frame>	
	</sprite>
		
		
		<layout name="briefing_text_layout" size="400 300" >
	  		<put object="briefing_text_frame" at="0 0 0" size="400 300" size2="800 600" />
	  		<put object="briefing_text_table" at="15 15 -1" at2="15 15 0" align="0 0.5" size="350 250" size2="750 550" />  
			<put object="scroller" at="387 5 0" at2="787 5 0" size="10 290" size2="10 590"/>
		</layout>
		
		<sprite name="briefing_text_spr">	
			<slot name="setup">
				<callback function="setup_table_scroller" object1="briefing_text_table" object2="scroller" />					
			</slot>
			<frame>
				<clone object="table_scroller_spr" name="scroller"/>
				<!--<place object="scroller"/>-->
				<place object="briefing_text_table" at="0 0 -20"/>
				
				<place object="briefing_text_frame" at="0 0 2"/>
				<place object="briefing_text_layout"/>
			</frame>	
		</sprite>

		<sprite name="selected_objective">	
			<frame>
			</frame>	
		</sprite>
		<table name="objective_text_table" columns="1" visible_rows="15" row_height="14">	
			<column object="selected_objective" />			
		</table>
		
		<layout name="objective_layout" size="800 600" >
		  <put object="objective_text_table" at="0 0 0" size="800 600" x="grow" y="grow" />  
		</layout>

		<sprite name="objective_spr">	
			<slot name="refresh_objectives">
				<callback function="choose_table" object1="objective_text_table" />								
			</slot>
			
			<frame>
				<place object="objective_text_table" />
				<place object="objective_layout"/>

				<connect object="objective_text_table" signal="updated" to="." slot="setup" />			
				<connect object="objective_layout" signal="resized" to="." slot="refresh_objectives" />
			</frame>	
		</sprite>
		<table name="insertion_text_table" columns="1" visible_rows="15" row_height="16">	
			<column object="selected_objective" />			
		</table>
		
		<layout name="insertion_layout" size="800 600" >
		  <put object="insertion_text_table" at="0 0 0" size="800 600" x="grow" y="grow" />  
		</layout>		
		<sprite name="insertion_spr">	
		
			<frame>
				<place object="insertion_text_table" />
				<place object="insertion_layout"/>
			</frame>	
		</sprite>		

		<!--<layout name="main_frame_layout" size="780 400" >
		  	<put object="team_main_frame_spr" at="0 0 0" at2="0 0 0" size="780 400" size2="1560 800" /> 
		</layout>
		
		<sprite name="main_frame_spr">	
			<frame>
				<place object="team_main_frame_spr" />
				<place object="main_frame_layout"/>
			</frame>	
		</sprite>	-->

	<layout name="briefing_map_layout" size="618 364" >
		  <!--<put object="bpt_std_frame_spr" at="0 0 0" size="618 364" x="grow" y="grow" />-->
		 <!-- <put object="viewport_frame_spr" at="5 16 0" size="607 343" x="grow" y="grow" />
		  
		  <!--<put object="mission_07_briefing_map" at="6 17 0" size="606 341" x="grow" y="grow"/> <!--size="476 322"/>-->
	</layout>		
		
	<sprite name="briefing_map_spr">
		<frame>			
			<!--<place object="bpt_std_frame_spr"/>	-->
			<!--<place object="viewport_frame_spr" at="0 0 -4"/>-->	
			<!--<place object="mission_07_briefing_map" at="0 0 -2" alpha="200" />-->					
			<place object="briefing_map_layout" at="0 0 0" alpha="200" />					
		</frame>
	</sprite>

	<layout name="planning_map_layout" size="200 200" >
		  <put object="viewport_frame_spr" at="0 0 0" size="200 200" x="grow" y="grow" />
		  
		  <put object="map_bmp" at="1 1 0" size="199 199" x="grow" y="grow" />
	</layout>
										
	<sprite name="planning_map_spr">
		<frame>	
			<place object="viewport_frame_spr" at="0 0 -6"/>	
			<place object="map_bmp" at="0 0 -5" alpha="200" />		
			<place object="planning_map_layout" at="0 0 0" alpha="200" />					
		</frame>
	</sprite>		

<!-------------------------------------------------------------------------------------------
------------------------------------ BUTTONS ------------------------------------------------
-------------------------------------------------------------------------------------------->
	
		<layout name="frame" size="100 100" >
		  <put object="button_text" at="50 50 -2" at2="100 100 -2" />
		</layout>
		
		<layout name="text_frame" size="100 100" >
		  <put object="ghost_text" at="50 0 -2" at2="100 0 -2" />
		</layout>

		<button name="briefing_btn" >
			<start>			
				<clone object="heading_text" name="button_text" />	
				<place object="button_text" alpha="255" at="5 0 -5"/>
				<set_text object="button_text" text_id="title_planning" />				
				<set_material object="button_text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="button_text" alpha="255" />			
			</up>
			<over>			
				<place object="button_text" alpha="255" />				
			</over>
			<down>
				<place object="button_text" alpha="255" />
				<set_material object="button_text" material="txt_pos5" />				
			</down>
			<disabled>				
				<place object="button_text" alpha="255" />
				<set_material object="button_text" material="txt_pos5" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<trigger_slot object="/team_spr" slot="hide"/>
				<trigger_slot object="/briefing_spr" slot="show"/>
				<callback function="show_side"  parameter1="0" />		
			</action>
		</button>		

		<button name="team_btn" >
			<start>		
				<clone object="heading_text" name="button_text" />	
				<place object="button_text" alpha="255" at="5 0 -5" />
				<set_text object="button_text" text_id="title_team_selection" />			
				<set_material object="button_text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="button_text" alpha="255" />				
			</up>
			<over>			
				<place object="button_text" alpha="255" />				
			</over>
			<down>
				<place object="button_text" alpha="255" />
				<set_material object="button_text" material="txt_pos5" />				
			</down>
			<disabled>			
				<place object="button_text" alpha="255" />
				<set_material object="button_text" material="txt_pos5" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<trigger_slot object="/briefing_spr" slot="hide"/>
				<trigger_slot object="/team_spr" slot="show"/>
				<callback function="show_side" parameter1="2" />
			</action>
		</button>	
		
		<button name="narcom_btn" >
			<start>			
				<clone object="heading_text" name="button_text" />	
				<place object="button_text" at="5 0 -5"/>
				<set_text object="button_text" text_id="title_play_narcom" />				
				<set_material object="button_text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="button_text" />			
				<set_material object="button_text" material="txt_pos5" />				
			</up>
			<over>			
				<place object="button_text" />				
				<set_material object="button_text" material="txt_pos7" />				
			</over>
			<down>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos7" />				
			</down>
			<disabled>				
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos7" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="play_narcom"  parameter1="0" />		
			</action>
		</button>
		
		<button name="empty_btn" >
			<start>			
				<clone object="heading_text" name="button_text" />	
				<place object="button_text" at="5 0 -5"/>
				<set_text object="button_text" />				
				<set_material object="button_text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="button_text" />			
				<set_material object="button_text" material="txt_pos5" />				
			</up>
			<over>			
				<place object="button_text" />				
				<set_material object="button_text" material="txt_pos7" />				
			</over>
			<down>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos7" />				
			</down>
			<disabled>				
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos7" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="play_narcom"  parameter1="0" />		
			</action>
		</button>		
					
		<button name="assign_btn" >
			<start>		
				<place object="assign_btn_frame" />
				<clone object="normal_text" name="button_text"  />	
				<place object="button_text" alpha="255" align="0.5 0.5" at="0 0 -2"/>
				<set_text object="button_text" text_id="title_assign" align="0.5 0.5"/>
				<place object="frame" />
				<set_material object="assign_btn_frame" material="bn_expressive_dead" />				
				<set_material object="button_text" material="txt_black" />								
			</start>
			<up>			
				<place object="assign_btn_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="assign_btn_frame" material="bn_expressive_base" />				
				<set_material object="button_text" material="txt_selected_darker" />								
			</up>
			<over>			
				<place object="assign_btn_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="assign_btn_frame" material="bn_expressive_onmouse" />				
				<set_material object="button_text" material="txt_black" />								
			</over>
			<down>
				<place object="assign_btn_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />
				<set_material object="assign_btn_frame" material="bn_expressive_confirm" />				
				<set_material object="button_text" material="txt_selected" />								
			</down>
			<disabled>	
				<place object="assign_btn_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />			
				<set_material object="assign_btn_frame" material="bn_expressive_dead" />				
				<set_material object="button_text" material="txt_black" />								
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="assign_ghost" />						
				<callback function="debug" parameter1="before disable_button" />
				<callback function="disable_button" parameter1="assign" />
			</action>
		</button>
			
		<button name="equip_btn" >
			<start>		
				<clone object="weapon_btn_frame" name="button_frame" />						
				<place object="button_frame" />
				<clone object="normal_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0.5 0.5" at="0 0 -2" />
				<set_text object="button_text" text_id="title_Equip" align="0.5 0.5"/>
				<place object="frame" />
				<set_material object="button_frame" material="bn_expressive_base" />				
				<set_material object="button_text" material="txt_selected_darker" />								
			</start>
			<up>			
				<place object="button_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="button_frame" material="bn_expressive_base" />				
				<set_material object="button_text" material="txt_selected_darker" />								
			</up>
			<over>			
				<place object="button_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="button_frame" material="bn_expressive_onmouse" />				
				<set_material object="button_text" material="txt_black" />								
			</over>
			<down>
				<place object="button_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />
				<set_material object="button_frame" material="bn_expressive_confirm" />				
				<set_material object="button_text" material="txt_selected" />								
			</down>
			<disabled>	
				<place object="button_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />			
				<set_material object="button_frame" material="bn_expressive_dead" />				
				<set_material object="button_text" material="txt_black" />								
			</disabled>
			<action>		
				<sound cue="menu_confirm" />			
				<!--<callback function="encumbrance_check"/>-->
				<callback function="choose_wpn" />							
				<place object="frame" />			
			</action>
		</button>
		
		<button name="default_btn" >
			<start>		
				<clone object="weapon_btn_frame" name="button_frame" />						
				<place object="button_frame" />
				<clone object="normal_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0.5 0.5" at="0 0 -2" />
				<set_text object="button_text" text_id="title_default_kit" align="0.5 0.5"/>
				<place object="frame" />
				<set_material object="button_frame" material="bn_expressive_base" />				
				<set_material object="button_text" material="txt_selected_darker" />								
			</start>
			<up>			
				<place object="button_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="button_frame" material="bn_expressive_base" />				
				<set_material object="button_text" material="txt_selected_darker" />								
			</up>
			<over>			
				<place object="button_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="button_frame" material="bn_expressive_onmouse" />				
				<set_material object="button_text" material="txt_black" />								
			</over>
			<down>
				<place object="button_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />
				<set_material object="button_frame" material="bn_expressive_confirm" />				
				<set_material object="button_text" material="txt_selected" />								
			</down>
			<disabled>	
				<place object="button_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />			
				<set_material object="button_frame" material="bn_expressive_dead" />				
				<set_material object="button_text" material="txt_black" />								
			</disabled>
			<action>	
				<sound cue="menu_confirm" />			
				<callback function="default_weapon" object1="."/>								
				<place object="frame" />			
			</action>
		</button>
				
		<button name="help_btn" >
			<start>	
				<clone object="toggle_frame_spr" name="button_frame" />						
				<place object="button_frame" />
				<place object="frame" />
			</start>
			<up>
				<place object="button_frame" />				
				<place object="frame" />
			</up>
			<over>
				<place object="button_frame" />				
				<place object="frame" />
			</over>
			<down>
				<place object="button_frame" />
				<place object="frame" />
			</down>
			<disabled>		
				<sound cue="menu_confirm" />			
				<place object="button_frame" />		
				<place object="frame" />			
			</disabled>
			<action>		
			</action>
		</button>			
		
			
		<button name="bottom_button" >
			<start>		
				<clone object="bigger_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0 0" at="0 0 -2" />
				<set_text object="button_text" text_id="title_next" at="0 0 -2" />				
				<set_material object="button_text" material="txt_pos4" />				
			</start>
			<up>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos4" />				
			</up>
			<over>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
			</over>
			<down>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos7" />				
			</down>
			<disabled>		
				<place object="button_text" />
				<set_material object="button_text" material="txt_dead" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
			</action>
		</button>		

		<button name="continue_btn" >
			<start>	
				<clone object="std_button_spr" name="button_frame" />						
				<place object="button_frame" />
				<clone object="normal_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0.5 0.5" at="0 0 -2"/>
				<set_text object="button_text" text_id="title_continue_mission" />				
				<place object="frame" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</start>
			<up>
				<place object="button_frame" />				
				<place object="frame" />
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</up>
			<over>
				<place object="button_frame" />				
				<place object="frame" />
				<place object="button_text" />
				<set_material object="button_text" material="txt_normal" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</over>
			<down>
				<place object="button_frame" />
				<place object="frame" />
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</down>
			<disabled>		
				<place object="button_frame" />		
				<place object="frame" />			
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="start" />							
			</action>
		</button>
		
		<button name="ready_btn" >
			<start>	
				<clone object="std_button_spr" name="button_frame" />						
				<place object="button_frame" />
				<clone object="normal_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0.5 0.5" at="0 0 -2"/>
				<set_text object="button_text" text_id="status_ready" />				
				<place object="frame" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</start>
			<up>
				<place object="button_frame" />				
				<place object="frame" />
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</up>
			<over>
				<place object="button_frame" />				
				<place object="frame" />
				<place object="button_text" />
				<set_material object="button_text" material="txt_normal" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</over>
			<down>
				<place object="button_frame" />
				<place object="frame" />
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</down>
			<disabled>		
				<place object="button_frame" />		
				<place object="frame" />			
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos1" />				
				<trigger_slot object="button_frame" slot="bn_base" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="start" />							
			</action>
		</button>
		
		
		
						
			<!--		
		<button name="next_btn" >
			<start>		
				<clone object="bigger_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0 0" at="0 0 -2" />
				<set_text object="button_text" text_id="title_next" at="0 0 -2" align="0 0"/>				
				<set_material object="button_text" material="txt_pos4" />				
			</start>
			<up>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos4" />				
			</up>
			<over>
				<place object="button_text" />
				<set_material object="button_text" material="txt_normal" />				
			</over>
			<down>
				<place object="button_text" />
				<set_material object="button_text" material="txt_pos7" />				
			</down>
			<disabled>		
				<place object="button_text" />
				<set_material object="button_text" material="txt_dead" />				
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="next" />				
			</action>
		</button>		
		-->
		<sprite name="text_spr">	
			<frame>
				<clone object="heading_text" name="text" />					 												
				<place object="text" align="0.5 0.5" at="9 0 -2" />
			</frame>	
		</sprite>
			
		<layout name="weapon_btn_layout" size="100 18" >
			<put object="btn_frame" at="0 0 0" size="100 18" size2="200 18" />
			<put object="text" at="4 9 0" />
			<put object="avatar" at="73 11" at2="173 11" align="1 0.5" />
			<put object="weight" at="27 4" at2="127 2" align="1 0.5" />
		</layout>		
		<button name="weapon_btn" mode="toggle" >
			<start>
				<clone object="weapon_selection_btn_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" at="0 0 -5" align="0 0.5"/>							
				<place object="weapon_btn_layout" />
				<clone object="weapon_unit" name="avatar" />
				<place object="avatar" scale="100 12" at="0 0 -2"/>
				<clone object="weight_spr" name="weight" />												
				<place object="weight" at="0 0 -5" />
				<trigger_slot object="btn_frame" slot="bn_base"/>		
				<set_material object="text" material="txt_pos6" />				
				<trigger_slot object="weight" slot="wp_weight_icon" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="weapon_btn_layout" />
				<place object="text" />
				<place object="avatar" />
				<place object="weight" />
				<trigger_slot object="btn_frame" slot="bn_base"/>						
				<set_material object="text" material="txt_pos6" />				
				<trigger_slot object="weight" slot="wp_weight_icon" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="weapon_btn_layout" />				
				<place object="text" />
				<place object="avatar" />
				<place object="weight" />
				<trigger_slot object="btn_frame" slot="bn_confirm"/>		
				<set_material object="text" material="txt_pos6" />				
				<trigger_slot object="weight" slot="wp_weight_icon" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="weapon_btn_layout" />				
				<place object="text" />
				<place object="avatar" />
				<place object="weight" />
				<trigger_slot object="btn_frame" slot="bn_onmouse"/>	
				<callback function="weapon_debug" object1="." />					
				<set_material object="text" material="txt_selected" />				
				<trigger_slot object="weight" slot="wp_weight_icon_selected" />				
			</down>
			<disabled>							
				<place object="btn_frame" />				
				<place object="weapon_btn_layout" />				
				<place object="text" />
				<place object="avatar" />
				<place object="weight" />
				<trigger_slot object="btn_frame" slot="bn_base"/>		
				<set_material object="text" material="txt_dead" />				
				<trigger_slot object="weight" slot="wp_weight_icon" />				
			</disabled>
			<controller_action button_name="0" trigger_state="press" >
				<sound cue="menu_confirm" />	
				<!--<callback function="debug" parameter1="WPN TBL"/>																	
				<callback function="show_table" parameter1="weapons_table"/>-->
				<!--<callback function="click_mod" parameter1="true"/>	-->										
				<!--<callback function="check_weight_of_selected_items" />	-->			
			</controller_action>
			<controller_action button_name="0" trigger_state="double_click" double_click_time="0.3">
				<sound cue="menu_confirm" />_mod_clicked	
				<callback function="debug" parameter1="dubble clicking"/>
				<callback function="show_table" parameter1="weapons_table"/>
				<!--<callback function="click_mod" parameter1="true"/>-->
				<!--<callback function="choose_wpn" />-->
								
				<callback function="weight_ok" object1="string"/>		
				<!--<callback function="push_up_btn" object1="."/>-->					
				<!--<callback function="add_and_remove_mods" />	-->
			</controller_action>
		</button>

		<layout name="selected_item_layout" size="150 64" >
			<put object="viewport_frame_spr" at="0 0 0" size="150 64" x="grow" y="grow" />			
		</layout>		
		<button name="selected_item_btn" mode="toggle" >
			<start>
				<clone object="weapon_unit" name="avatar" />
			</start>
			<up>												
			</up>
			<over>													
			</over>
			<down>
				<place object="selected_item_layout" />		
				<place object="viewport_frame_spr" />							
			</down>
			<disabled>							
			</disabled>
			<action>
				<sound cue="menu_confirm" />
				<callback function="show_table" parameter1="kit_table"/>
				<callback function="selected_kit" object1="."/>					
				<callback function="show_selected_weapon" object1="." /> 
				<callback function="selected_kit_weight" object1="."/>		
			</action>
			<!--<controller_action trigger_state="double_click" double_click_time="0.3">
				<sound cue="menu_confirm" />
				callback function="debug" parameter1"dubble clicking"/>										
				callback function="choose_wpn" />									
			</controller_action>-->			
		</button>
				
		<layout name="text_sqr_layout" size="100 18" >
			<put object="btn_frame" at="0 0 0" size="100 18" size2="200 18" />
			<put object="text" at="50 9 0" at2="101 9 0" />
		</layout>

		<sprite name="text_sqr">
			<frame>			
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<!--<clone object="text_spr" name="text"/>							
				<place object="text" alpha="255" at="0 0 -2" align="0.5 0.5" />-->
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0.5 0.5"/>
				<place object="text_sqr_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos7" />				
			</frame>
		</sprite>		

		<layout name="text_btn_layout" size="100 18" >
			<put object="text" at="96 0 0" at2="196 0 0" />
		</layout>	
		<button name="text_btn" mode="select">
			<start>
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="1 0"/>				
				<place object="text_btn_layout" />
				<set_material object="text" material="txt_pos6" />				
			</start>
			<up>			
				<place object="text" />
				<place object="text_btn_layout" />
				<set_material object="text" material="txt_pos6" />				
			</up>
			<over>			
				<place object="text" />
				<place object="text_btn_layout" />
				<set_material object="text" material="txt_pos7" />				
			</over>
			<down>
				<place object="text" />
				<place object="text_btn_layout" />
				<set_material object="text" material="txt_pos7" />				
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="selected_obj" object1="." />							
			</action>
			<disabled>							
				<place object="text" />
				<place object="text_btn_layout" />
				<set_material object="text" material="txt_dead" />				
			</disabled>
		</button>


		<layout name="insertion_btn_layout" size="100 18" >
			<put object="text" at="5 0 0" at2="5 0 0" />
			<put object="frame" at="0 1 0" at2="0 1 0" size="200 14" size2="200 14"/>
		</layout>	
		<button name="insertion_btn" mode="select">
			<start>
				<clone object="viewport_frame_spr" name="frame"/>
				<clone object="normal_text" name="text" />			
				<place object="frame"/>
				<place object="text" alpha="255" at="0 -1 -2" align="0 0"/>				
				<place object="insertion_btn_layout" />
				<set_material children_of="frame" material="txt_pos6" />				
				<set_material object="text" material="txt_pos6" />				
			</start>
			<up>			
				<place object="text" />
				<place object="frame"/>
				<place object="insertion_btn_layout" />
				<set_material children_of="frame" material="txt_pos6" />				
				<set_material object="text" material="txt_pos6" />				
			</up>
			<over>			
				<place object="text" />
				<place object="frame"/>
				<place object="insertion_btn_layout" />
				<set_material children_of="frame" material="txt_pos7" />				
				<set_material object="text" material="txt_pos7" />				
			</over>
			<down>
				<place object="text" />
				<place object="frame"/>
				<place object="insertion_btn_layout" />
				<set_material children_of="frame" material="txt_pos1" />				
				<set_material object="text" material="txt_pos1" />
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="selected_obj" object1="." />							
			</action>
			<disabled>							
				<place object="text" />
				<place object="frame"/>
				<place object="insertion_btn_layout" />
				<set_material children_of="frame" material="txt_dead" />				
				<set_material object="text" material="txt_dead" />				
			</disabled>
		</button>


		<button name="insert_btn" mode="select">
			<start>
				<clone object="header_text" name="text" />							
				<clone object="btn_circle" name="circle" />							
				<place object="text" alpha="255" at="12 10 -2" align="0.5 0.5"/>	
				<place object="circle" at="12 11 -1" align="0.5 0.5"/>						
				<set_material object="circle" material="briefing_mapcircle" />				
				<set_material object="text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="circle" />
				<place object="text" />
				<set_material object="text" material="txt_pos5" />				
			</up>
			<over>			
				<place object="circle" />
				<place object="text" />
				<set_material object="text" material="txt_pos7" />				
			</over>
			<down>
				<place object="circle" />
				<place object="text" />
				<set_material object="text" material="txt_pos1" />				
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="selected_obj" object1="." />							
			</action>
			<disabled>							
				<place object="circle" />
				<place object="text" />
				<set_material object="text" material="txt_dead" />				
			</disabled>
		</button>



		<sprite name="empty_spr">	
			<frame>
			</frame>	
		</sprite>
		<table name="team_text_table" columns="1" visible_rows="15" row_height="22">	
			<column object="empty_spr" />			
		</table>
		
		<layout name="ra_text_btn_layout" size="100 18" >
			<put object="btn_frame" at="0 0 0" size="100 18" size2="200 18" />
			<put object="text" at="4 9 0" />
		</layout>	
		<button name="ra_text_btn" mode="select" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_white" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_white" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />			
			</down>
			<action>			
			</action>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_dead" />				
			</disabled>
			<controller_action trigger_state="press" button_name="0" >
				<sound cue="menu_confirm" />											
				<callback function="selected_btn" object1="." />										
			</controller_action>			
			<controller_action trigger_state="double_click" button_name="0" double_click_time="0.3">
				<sound cue="menu_confirm" />											
				<callback function="disable_button" parameter1="assign" />														
				<callback function="remove_from_selection" object1="."/>						
			</controller_action>								
		</button>

		<button name="place_list_btn" mode="select" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_white" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_white" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />			
			</down>
			<action>					
			</action>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" />
				<place object="ra_text_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_dead" />				
			</disabled>		
			<controller_action trigger_state="press" button_name="0" >
				<sound cue="menu_confirm" />
				<callback function="selected_btn" object1="." /> 										
			</controller_action>			
			<controller_action trigger_state="double_click" button_name="0" double_click_time="0.3">
				<sound cue="menu_confirm" />
				<callback function="disable_button" parameter1="remove" />											
				<callback function="assign_ghost" object1="." />					
				<set_material object="remove_btn_frame" material="bn_confirm" />						
			</controller_action>								
		</button>
						
		<button name="remove_btn" >
			<start>		
				<place object="remove_btn_frame" />
				<clone object="normal_text" name="button_text" />	
				<place object="button_text" alpha="255" align="0.5 0.5" at="0 0 -2" />
				<set_text object="button_text" text_id="title_remove" align="0.5 0.5"/>
				<place object="frame" />
				<set_material object="remove_btn_frame" material="bn_expressive_dead" />				
				<set_material object="button_text" material="txt_black" />								
			</start>
			<up>			
				<place object="remove_btn_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="remove_btn_frame" material="bn_expressive_base" />				
				<set_material object="button_text" material="txt_selected_darker" />	 							
			</up>
			<over>			
				<place object="remove_btn_frame" />
				<place object="frame" />
				<place object="button_text" alpha="255" />
				<set_material object="remove_btn_frame" material="bn_expressive_onmouse" />				
				<set_material object="button_text" material="txt_black" />								
			</over>
			<down>
				<place object="remove_btn_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />
				<set_material object="remove_btn_frame" material="bn_expressive_confirm" />				
				<set_material object="button_text" material="txt_selected" />								
			</down>
			<disabled>	
				<place object="remove_btn_frame" />
				<place object="button_text" alpha="255" />
				<place object="frame" />			
				<set_material object="remove_btn_frame" material="bn_expressive_dead" />				
				<set_material object="button_text" material="txt_black" />								
			</disabled>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="remove_from_selection" object1="." />	
				<place object="frame" />			
				<set_material object="remove_btn_frame" material="bn_confirm" />				
				<callback function="debug" parameter1="before disable_button" />
				<callback function="disable_button" parameter1="remove" />
			</action>
		</button>										


		<button name="objective_btn" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" size="170 18" />	
				<clone object="text_spr" name="text" />
				<place object="text" alpha="255" at="0 0 -15" align="0.5 0.5"/>
				<trigger_slot object="btn_frame" slot="bn_base" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
			</down>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
			</disabled>
			<action>					
				<sound cue="menu_confirm" />			
				<place object="btn_frame" />				
				<trigger_slot object="btn_frame" slot="bn_confirm" />				
			</action>
		</button>
	
		<button name="title_btn" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" size="100 18 0"/>
				<place object="text_spr" alpha="255" at="0 0 -2" align="0.5 0.5"/>				
				<trigger_slot object="btn_frame" slot="bn_base" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text_spr" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text_spr" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text_spr" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
			</down>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text_spr" alpha="255" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
			</disabled>
			<action>					
				<sound cue="menu_confirm" />			
				<place object="btn_frame" />				
				<trigger_slot object="btn_frame" slot="bn_confirm" />				
			</action>
		</button>
			
		<layout name="small_button_layout" size="10 10" >
		  <put object="text" at="5 5 0" at2="10 10 0" />
		</layout>
	
		<button name="small_button" >
			<start>	
				<clone object="normal_text" name="text" />
				<place object="text" alpha="255" align="0.5 0.5" at="0 0 -2" />
			</start>
			<up>			
				<place object="text"/>
				<place object="small_button_layout"/>
			</up>
			<over>			
				<place object="text"/>
				<place object="small_button_layout"/>
			</over>
			<down>
				<place object="text"/>
			</down>
			<disabled>							
				<place object="text"/>
				<place object="small_button_layout"/>
			</disabled>
			<action>					
				<sound cue="menu_confirm" />			
			</action>
		</button>

		<layout name="weapon_group_btn_layout" size="100 18" >
			<put object="btn_frame" at="0 0 0" size="100 18" size2="200 18" />
			<put object="text" at="18 9 0" />				
		</layout>	
		<button name="primary_btn" mode="toggle" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="weapon_group_btn_layout" />
				<place object="icon_arrow_right" at="4 7 -2"/>				
				<set_material object="icon_arrow_right" material="txt_pos5" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
				<place object="icon_arrow_right" at="4 7 -2" />	
				<set_material object="icon_arrow_right" material="txt_pos5" />							
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />				
				<place object="icon_arrow_right" at="4 7 -2"/>				
				<set_material object="icon_arrow_right" material="txt_selected" />
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />			
				<place object="icon_arrow_down" at="4 7 -2" />				
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="set_current_wpn_group" parameter1="primary" /> 					
				<callback function="selected_weapon_group" parameter1="main" object1="."/> 					
			</action>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_dead" />				
				<place object="icon_arrow_right" at="4 7 -2" />	
				<set_material object="icon_arrow_right" material="txt_pos5" />											
			</disabled>
		</button>
		
		<button name="secondary_btn" mode="toggle" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="weapon_group_btn_layout" />
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_selected" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />			
				<place object="icon_arrow_down" at="4 7 -2" />				
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="set_current_wpn_group" parameter1="secondary" /> 					
				<callback function="selected_weapon_group" parameter1="main" object1="."/>					
			</action>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_dead" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
			</disabled>
		</button>
		
		<button name="sidearm_btn" mode="toggle" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="weapon_group_btn_layout" />
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_selected" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />			
				<place object="icon_arrow_down" at="4 7 -2" />				
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="set_current_wpn_group" parameter1="sidearm" /> 					
				<callback function="selected_weapon_group" parameter1="main" object1="."/> 					
			</action>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_dead" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
			</disabled>
		</button>
		
		<button name="extra_gear_btn" mode="toggle" >
			<start>
				<clone object="std_button_spr" name="btn_frame"/>
				<place object="btn_frame" />	
				<clone object="normal_text" name="text" />							
				<place object="text" alpha="255" at="0 0 -2" align="0 0.5"/>				
				<place object="weapon_group_btn_layout" />
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
			</start>
			<up>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_pos5" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
			</up>
			<over>			
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_selected" />				
			</over>
			<down>
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_onmouse" />				
				<set_material object="text" material="txt_selected" />			
				<place object="icon_arrow_down" at="4 7 -2" />				
			</down>
			<action>
				<sound cue="menu_confirm" />			
				<callback function="set_current_wpn_group" parameter1="extra_gear" /> 					
				<callback function="selected_weapon_group" parameter1="main" object1="." /> 					
			</action>
			<disabled>							
				<place object="btn_frame" />				
				<place object="text" />
				<place object="weapon_group_btn_layout" />
				<trigger_slot object="btn_frame" slot="bn_base" />				
				<set_material object="text" material="txt_dead" />				
				<place object="icon_arrow_right" at="4 7 -2" />				
				<set_material object="icon_arrow_right" material="txt_pos5" />				
			</disabled>
		</button>						
										
		<!----------------------------------------------------------------------------------
		------------------------------ TRIGGERS --------------------------------------------
		----------------------------------------------------------------------------------->

		<trigger name="trigger_ammo_info_inc">
			<callback function="selected_ammo_inc" object1=".." />
		</trigger>

		<trigger name="trigger_ammo_info_dec">
			<callback function="selected_ammo_dec" object1=".." />
		</trigger>						

		<trigger name="chosen_objective">
			<callback function="show_objective" object1="." />	
		</trigger>

		<trigger name="trigger_grenade_info_inc">
			<callback function="selected_grenade_inc" object1=".." />
		</trigger>

		<trigger name="trigger_grenade_info_dec">
			<callback function="selected_grenade_dec" object1=".." />
		</trigger>						

		<trigger name="trigger_done_inventory">
			<callback function="done_inventory" object1="." />
		</trigger>
		
		<trigger name="selected_wpn">
			<callback function="selected_wpn" object1="."  />
		</trigger>	
		
		<trigger name="selected_wpn_mod">
			<callback function="selected_wpn_mod" object1="."/>
		</trigger>	

		<trigger name="send_name_from_selection">
			<callback function="select_ghost" object1="."/>
			<callback function="disable_button" parameter1="remove" />
		</trigger>

		<trigger name="send_name_from_team">
			<callback function="select_ghost" object1="."/>
			<callback function="disable_button" parameter1="assign" />
		</trigger>
			
		<trigger name="start">
			<callback function="start"/>
		</trigger>

		<trigger name="update_equip_button">
			<callback function="update_equip_button"/>
		</trigger>

<!--
		<trigger name="ghost">
			<callback function="assign_slot" object1="." />
		</trigger>	
-->		
		<trigger name="rotate_right" always="true">
			<callback function="rotate_right" />
		</trigger>
		
		<trigger name="rotate_left" always="true">
			<callback function="rotate_left" />
		</trigger>
		
		<trigger name="select_insertion">
			<sound cue="menu_confirm" />
			<callback function="select_insertion" object1="."/>
			<!--<callback function="show_insertion" object1="." />-->
		</trigger>	

		<layout name="briefing_800_layout" size="800 600" >
		  	<put object="briefing_main_frame_spr" at="10 174 0" size="780 375" /> 
		  	<put object="bpt_std_frame_spr" at="20 180 0" size="760 355" /> 		  	
		  	<put object="briefing_text_spr" at="405 280 0"size="365 240" /> 	    		  	  		  	    		  
		  	<put object="planning_map_spr" at="25 180 0" size="375 345" />	    		  	  		  	    		  
		  	<put object="objective_spr" at="606 180 0" size="178 344" /> 	    		  	  		  	    		  
		</layout>

													
		<layout name="briefing_layout" size="800 600" >
		  	<put object="briefing_main_frame_spr" at="10 174 0" at2="10 294 0" size="780 375" size2="1580 855" /> 
		  	<put object="bpt_std_frame_spr" at="20 180 0" at2="20 300 0" size="760 355" size2="1560 845" /> 
		  	<put object="briefing_text_spr" at="405 290 0" at2="805 410 0" size="365 230" size2="765 710" /> 	    		  	  		  	    		  
		  	<put object="planning_map_spr" at="30 196 0" at2="30 316 0" size="364 324" size2="764 804"/>	    		  	  		  	    		  
		  	<put object="objective_spr" at="606 215 0" at2="1406 335 0" size="178 344" size2="178 344" /> 	    		  	  		  	    		  
		  	<put object="insertion_spr" at="405 215 0" at2="805 335 0" size="200 344" size2="200 344" /> 	
		  	<put object="mission_briefing_text" at="405 270 0" at2="805 390 0" />
		  	<put object="objectives_text" at="775 192 0" at2="1575 312 0" />
		  	<put object="insertions_text" at="405 192 0" at2="805 312 0" />
		  	<!--<put object="bg" at="10 100" at2="522 390" size="1004 568" />-->
		</layout>	

		<sprite name="briefing_spr">
			<frame>		
<!--<place object="wpn_icon_spr" />		-->	
				<!--<clone object="mp_lobby_window_spr" name="bg" />		  	
				<place object="bg"/>-->

				<place object="bpt_std_frame_spr" at="0 0 -1"/>
				<clone object="header_text" name="mission_briefing_text"/>	
				<clone object="header_text" name="objectives_text"/>	
				<clone object="header_text" name="insertions_text"/>	
				<place object="mission_briefing_text" at="0 0 -5"/>	
				<place object="objectives_text" at="0 0 -5" align="1 0"/>	
				<place object="insertions_text" at="0 0 -5" align="0 0"/>	
				<set_material object="mission_briefing_text" material="txt_pos1" />												
				<set_text object="mission_briefing_text" text_id="mission_briefing_head"/>
				<set_text object="objectives_text" text_id="title_objectives"/>
				<set_text object="insertions_text" text_id="title_insertions"/>
				<clone object="back_btn_unselected_spr" name="team_btn_frame"/>
				<place object="team_btn_frame" />
				<place object="team_btn" />
				<place object="briefing_main_frame_spr" at="0 0 5"/>
				<place object="briefing_text_spr" at="0 0 -5"/>
				<place object="planning_map_spr" at="0 0 -3"/>
				<place object="objective_spr" at="0 0 -5" />				
				<place object="insertion_spr" at="0 0 -5" />		
				<!--<place object="briefing_layout"/>-->
			</frame>					
		</sprite>

		<layout name="movie_layout" size="800 600" >
			<put object="common_spr" at="0 0 0" size="800 600" x="grow" y="grow"/>
			<put object="team_spr" at="0 0 0" size="800 600" x="grow" y="grow"/>
			<put object="briefing_spr" at="0 0 0" size="800 600" x="grow" y="grow"/>
		</layout>
		<layout name="movie_chat_layout" size="800 600" >
			<put object="chat_input" size="550 30" size2="1200 30" />
			<put object="chat_box" size="350 130" size2="1000 130" />
		</layout>
		
		<bitmap name="logo" material="GRAW_logo" uv_rect="0 0 1 1" size="512 128" />
		
		<frame>	
			<place object="logo" at="0 0 -10" />

			<place object="common_spr" />
			<place object="mouse_pointer" track_mouse="true" at="0 0 -400" />

			<connect object="movie_layout" signal="resized" to="trigger_refresh_mouse_clamp" slot="trigger"/>
			<place object="movie_layout" />
		
			<pause/>
			<callback function="check_chat_visibility" object1="logo" />
		</frame>
		<frame skip="2">
			<clone object="chat_box_spr" name="chat_box" />
			<clone object="chat_input_spr" name="chat_input" />
			<place object="chat_input" at="20 10 -5" />
			<place object="chat_box" at="120 40 -5" />
			<place object="movie_chat_layout" />
		</frame>
  </movie>
</gui>
