<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1121">

    <!-- Huge thanks to MikeSilVO, this is an adaptation of his code -->


	<onunload>ClearProperty(CustomSelectFanartTimePerImage,skinsettings)</onunload>
    <onunload>ClearProperty(CustomSelectDefaultBackground,skinsettings)</onunload>
    <onunload>ClearProperty(CustomSelectFavouriteAddons,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectVideoGenreIcons,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectVideoGenreFanart,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectMusicGenreIcons,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectMusicGenreFanart,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectDefaultFont,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectMediaViewsExtraArt,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectOSDTimeout,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectOSDTimeout2,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectSeekBarInit,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectOSDArt,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectTrailerDelay,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectShelfTrailerDelay,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectStartupBackground,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectStartupVideoDuration,skinsettings)</onunload>
	<onunload>ClearProperty(CustomSelectAmberFlixDimLevel,Home)</onunload>
    <onunload>ClearProperty(DoInfoExtras,Home)</onunload>
	<onunload>ClearProperty(DoInfoExtrasMusic,Home)</onunload>

    <defaultcontrol always="true">90010</defaultcontrol>
	<include>DialogOpenClose</include>
	<controls>
		<control type="group" description="All dialog content">
			<animation type="WindowOpen">
				<effect type="zoom" start="95" end="100" center="960,540" time="200" />
				<effect type="fade" start="80" end="100" time="200" />
			</animation>
			<animation type="WindowClose">
				<effect type="zoom" start="100" end="95" center="960,540" time="100" />
				<effect type="fade" start="100" end="0" time="100" />
			</animation>
            <control type="group">
			    <control type="image" description="Menu BG">
    				<posx>681</posx>
				    <posy>240</posy>
				    <height>418</height>
				    <width>558</width>
				    <texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
					<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
			    </control>
			    <control type="label" description="Dialog heading">
				    <posx>711</posx>
				    <posy>281</posy>
				    <width>500</width>
				    <height>52</height>
				    <label>$VAR[CustomInfoSelectHeader]</label>
				    <align>center</align>
				    <aligny>center</aligny>
				    <textcolor>$VAR[HighlightColor]</textcolor>
			    </control>
            </control>

			<control type="list" id="90010" description="Info Select Options">
		        <posx>697</posx>
				<posy>366</posy>
				<width>525</width>
				<height>256</height>
				<onup>90010</onup>
				<ondown>90010</ondown>
				<scrolltime>280</scrolltime>
    			<itemlayout width="525" height="60">
				    <control type="image">
					    <width>525</width>
					    <height>60</height>
					    <texture border="3">buttons/ButtonNF.png</texture>
				    </control>
				    <control type="label" description="Main Label">
					    <width>505</width>
					    <height>60</height>
                        <textoffsetx>15</textoffsetx>
				        <label>$INFO[ListItem.Label]</label>
					</control>
				</itemlayout>
				<focusedlayout width="525" height="60">
				    <control type="image" description="fa overlay">
					    <animation effect="fade" start="100" end="40" time="100" condition="!Control.HasFocus(90010)">Conditional</animation>
					    <width>525</width>
					    <height>60</height>
					    <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
				    </control>
				    <control type="label" description="Main Label">
					    <width>505</width>
					    <height>60</height>
                        <textoffsetx>15</textoffsetx>
					    <textcolor>$VAR[FocusedTextColor]</textcolor>
					    <shadowcolor></shadowcolor>
					    <label>$INFO[ListItem.Label]</label>
				    </control>
				</focusedlayout>
				<content>
                    <include condition="!String.IsEmpty(Window(Home).Property(DoInfoExtras))">SelectVideoInfoExtras</include>
					<include condition="!String.IsEmpty(Window(Home).Property(DoInfoExtrasMusic))">SelectMusicInfoExtras</include>
					<include condition="!String.IsEmpty(Window(Home).Property(CustomSelectAmberFlixDimLevel))">SelectAmberFlixDimLevel</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectFanartTimePerImage))">SelectFanartTimePerImage</include>
                    <include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectDefaultBackground))">SelectDefaultBackground</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectVideoGenreIcons))">SelectVideoGenreIcons</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectVideoGenreFanart))">SelectVideoGenreFanart</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectMusicGenreIcons))">SelectMusicGenreIcons</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectMusicGenreFanart))">SelectMusicGenreFanart</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectDefaultFont))">SelectDefaultFont</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectMediaViewsExtraArt))">SelectMediaViewsExtraArt</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectOSDTimeout))">SelectOSDTimeout</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectOSDTimeout2))">SelectOSDTimeout2</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectSeekBarInit))">SelectSeekBarInitTime</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectOSDArt))">SelectOSDArt</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectTrailerDelay))">SelectTrailerDelay</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectShelfTrailerDelay))">SelectShelfTrailerDelay</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectStartupBackground))">SelectStartupBackground</include>
					<include condition="!String.IsEmpty(Window(skinsettings).Property(CustomSelectStartupVideoDuration))">SelectStartupVideoDuration</include>
				</content>
			</control>
		</control>
	</controls>
</window>