<dcPanel>
	<Size x="132" y="96"/>
	<AutoActivateChildren/>
	<NoClipping/>
	<Color FadeInterpolator="Lerp" FadeMult="16" Command="return races_fn.getChapterSelectionColor('%ls' ,'panel')" Func="dcLuaFunc"/>

	<dcImageButton>
		<pos x="-9" y="-5"/>
		<Size x="150" y="86"/>
		<Image Name="Chapterselect_Select_Back.DCT"/>
		<Color FadeInterpolator="Lerp" FadeMult="16" Command="return races_fn.getChapterSelectionColor('%ls' ,'panel')" Func="dcLuaFunc"/>
	</dcImageButton>	
	
	<dcImageButton>
		<Pos x="2" y="5"/>
		<Size x="128" y="67"/>
		<Image command="return races_fn.get_chapter_image(races.selectedGameType, %ls)" func="dcLuaFunc"/>
		<Color r="0.5" g="0.5" b="0.5" a="1"/>
	</dcImageButton>
	
	<dcPanel>
		<Pos x="2" y="5"/>
		<Size x="128" y="67"/>
		<Color FadeInterpolator="Lerp" FadeMult="16" Command="return races_fn.getChapterSelectionColor('%ls' ,'panel')" Func="dcLuaFunc"/>
		<ColorChildren/>
		
		<dcImageButton>
			<Pos x="0" y="0"/>
			<Size x="128" y="67"/>
			<Image command="return races_fn.get_chapter_image_1st(races.selectedGameType, races.selectedChapter)" func="dcLuaFunc"/>
			<Color r="1" g="1" b="1" DisabledColor="1,1,1,0" FadeInterpolator="Lerp" FadeMult="4" />
			<Enabled command="return true" func="dcLuaFunc"/>
		</dcImageButton>
		
		<dcImageButton>
			<Pos x="0" y="0"/>
			<Size x="128" y="67"/>
			<Image command="return races_fn.get_chapter_image_2nd(races.selectedGameType, races.selectedChapter)" func="dcLuaFunc"/>
			<Color r="1" g="1" b="1" DisabledColor="1,1,1,0" FadeInterpolator="Lerp" FadeMult="4" />
			<Enabled command="return races_fn.enabled_chapter_image_2nd()" func="dcLuaFunc"/>
		</dcImageButton>
	</dcPanel>

	<dcImageButton>
		<pos x="0" y="3"/>
		<Size x="132" y="71"/>
		<Image Name="Chapterselect_overlay.DCT"/>
	</dcImageButton>
	
	<dcImageButton>
		<pos x="-8" y="-6"/>
		<Size x="148" y="88"/>
		<Image Name="Chapterselect_Select_overlay.DCT"/>
		<Color FadeInterpolator="Lerp" FadeMult="16" Command="return races_fn.getChapterSelectionColor('%ls' ,'glow')" Func="dcLuaFunc"/>
	</dcImageButton>

	<dcImageButton>
		<pos x="66" y="38"/>
		<Align x="Center" y="Center"/>
		<Image Name="Lock.DCT"/>
		<Enabled command="return races_fn.is_chapter_unlocked(races.selectedGameType, %ls)" func="dcLuaFunc"/>
		<Color r="1" g="1" b="1" a="0" DisabledColor="1,1,1,1"/>
	</dcImageButton>
	
	<Activate Command="races_fn.setChapterSelection('%ls')" Func="dcLuaFunc"/>

	<dcSlider>
		<Pos x="66" y="88"/>
		<Align x="Center" y="Max"/>
		<Ref command="return races_fn.getProgress(races.selectedGameType, '%ls')" func="dcLuaFunc"/>
		<Image Background="100_streepbalk_Slider_Back.DCT" Slider="100_streepbalk_Slider.DCT" Style="0"/>
		<Range min="0" max="1"/>
	</dcSlider>	
	
	<File name="elements\button_sound.dcMenu"/>
</dcPanel>