<?xml version="1.0" encoding="UTF-8"?>
<window>
	<controls>
		<include condition="Skin.HasSetting(Sub_MainMenuBG)">SubBackgroundLists</include>
		<include>DefaultBackground</include>
		<include>Time</include>
		<include>OpenClose</include>

		<control type="group">
			<visible>!IsEmpty(Window(Home).Property(TVGuide.BackgroundFanart))</visible>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">200</param>
			</include>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">201</param>
			</include>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">202</param>
			</include>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">203</param>
			</include>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">204</param>
			</include>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">205</param>
			</include>
			<include content="TVGuideFanart">
				<param name="TVGuideDayID">206</param>
			</include>
		</control>

		<control type="group">
			<control type="image" description="Left Menu background">
                <colordiffuse>dfcebe9e</colordiffuse>
				<left>60</left>
				<top>60</top>
				<width>412</width>
				<height>980</height>
				<texture border="45">dialogs/TinyDialog.png</texture>
				<!-- <colordiffuse>$VAR[DialogBGColor]</colordiffuse> -->
			</control>
			<control type="image" description="2/2 Right Menu">
                <colordiffuse>dfcebe9e</colordiffuse>
				<left>462</left>
				<top>60</top>
				<width>1419</width>
				<height>980</height>
				<texture border="45">dialogs/TinyDialog.png</texture>
				<!-- <colordiffuse>$VAR[DialogBGColor]</colordiffuse> -->
			</control>

			<control type="list" id="9000">
				<posx>105</posx>
				<posy>120</posy>
				<width>322</width>
				<height>780</height>
				<onup>9000</onup>
				<ondown>8000</ondown>
				<onleft>8000</onleft>
				<onright condition="[Container(9000).HasFocus(1) + !String.IsEmpty(Window(Home).Property(NextAired.200.Wday))]">200</onright>
				<onright condition="[Container(9000).HasFocus(2) + !String.IsEmpty(Window(Home).Property(NextAired.201.Wday))]">201</onright>
				<onright condition="[Container(9000).HasFocus(3) + !String.IsEmpty(Window(Home).Property(NextAired.202.Wday))]">202</onright>
				<onright condition="[Container(9000).HasFocus(4) + !String.IsEmpty(Window(Home).Property(NextAired.203.Wday))]">203</onright>
				<onright condition="[Container(9000).HasFocus(5) + !String.IsEmpty(Window(Home).Property(NextAired.204.Wday))]">204</onright>
				<onright condition="[Container(9000).HasFocus(6) + !String.IsEmpty(Window(Home).Property(NextAired.205.Wday))]">205</onright>
				<onright condition="[Container(9000).HasFocus(7) + !String.IsEmpty(Window(Home).Property(NextAired.206.Wday))]">206</onright>
				<onup>9000</onup>
				<ondown>9000</ondown>
				<scrolltime tween="quadratic">300</scrolltime>

				<itemlayout width="322" height="60">
					<control type="image">
						<width>322</width>
						<height>60</height>
						<texture border="3">buttons/ButtonNF.png</texture>
					</control>
					<control type="group">
					    <control type="label" description="Main Label">
						    <posx>10</posx>
						    <width>301</width>
						    <height>60</height>
						    <label>[B]$INFO[ListItem.Label][/B]</label>
					    </control>
					    <control type="label">
						    <posx>10</posx>
						    <width>301</width>
						    <height>60</height>
						    <align>right</align>
						    <label>$INFO[ListItem.Label2]</label>
					    </control>
					</control>
				</itemlayout>
				<focusedlayout width="322" height="60">
					<control type="image" description="fa overlay">
						<animation effect="fade" start="100" end="40" time="100" condition="!Control.HasFocus(9000)">Conditional</animation>
						<width>322</width>
						<height>60</height>
						<texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
					</control>
					<control type="group">
					    <control type="label" description="Main Label">
						    <posx>10</posx>
						    <width>301</width>
						    <height>60</height>
						    <textcolor>$VAR[FocusedTextColor]</textcolor>
						    <shadowcolor></shadowcolor>
						    <label>[B]$INFO[ListItem.Label][/B]</label>
					    </control>
					    <control type="label">
						    <posx>10</posx>
						    <width>301</width>
						    <height>60</height>
						    <align>right</align>
						    <textcolor>$VAR[FocusedTextColor]</textcolor>
						    <label>$INFO[ListItem.Label2]</label>
					    </control>
					</control>
				</focusedlayout>
				<content>
					<item id="1">
						<label>$INFO[Container(200).NumItems,$LOCALIZE[41] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.1.Date)]</label2>
						<property name="day">$LOCALIZE[41]</property>
						<icon />
					</item>
					<item id="2">
						<label>$INFO[Container(201).NumItems,$LOCALIZE[42] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.2.Date)]</label2>
						<property name="day">$LOCALIZE[42]</property>
						<icon />
					</item>
					<item id="3">
						<label>$INFO[Container(202).NumItems,$LOCALIZE[43] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.3.Date)]</label2>
						<property name="day">$LOCALIZE[43]</property>
						<icon />
					</item>
					<item id="4">
						<label>$INFO[Container(203).NumItems,$LOCALIZE[44] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.4.Date)]</label2>
						<property name="day">$LOCALIZE[44]</property>
						<icon />
					</item>
					<item id="5">
						<label>$INFO[Container(204).NumItems,$LOCALIZE[45] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.5.Date)]</label2>
						<property name="day">$LOCALIZE[45]</property>
						<icon />
					</item>
					<item id="6">
						<label>$INFO[Container(205).NumItems,$LOCALIZE[46] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.6.Date)]</label2>
						<property name="day">$LOCALIZE[46]</property>
						<icon />
					</item>
					<item id="7">
						<label>$INFO[Container(206).NumItems,$LOCALIZE[47] (,)]</label>
						<label2>$INFO[Window(Home).Property(NextAired.7.Date)]</label2>
						<property name="day">$LOCALIZE[47]</property>
						<icon />
					</item>
				</content>
			</control>
			<control type="group" id="9001">

				<control type="scrollbar" id="60">
					<left>437</left>
					<top>18</top>
					<width>1360</width>
					<height>12</height>
					<onup>9001</onup>
					<ondown condition="Container(9000).HasFocus(1)">200</ondown>
					<ondown condition="Container(9000).HasFocus(2)">201</ondown>
					<ondown condition="Container(9000).HasFocus(3)">202</ondown>
					<ondown condition="Container(9000).HasFocus(4)">203</ondown>
					<ondown condition="Container(9000).HasFocus(5)">204</ondown>
					<ondown condition="Container(9000).HasFocus(6)">205</ondown>
					<ondown condition="Container(9000).HasFocus(7)">206</ondown>
					<onleft>9000</onleft>
					<showonepage>false</showonepage>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="0" time="500" delay="500" condition="!Control.HasFocus(60) + !Container.Scrolling">Conditional</animation>
				</control>
				<control type="panel" id="200">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(1)] | Control.HasFocus(200) |  [Container(9000).HasFocus(1) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>200</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
				<control type="panel" id="201">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(2)] | Control.HasFocus(201) | [Container(9000).HasFocus(2) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>201</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
				<control type="panel" id="202">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(3)] | Control.HasFocus(202) | [Container(9000).HasFocus(3) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>202</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
				<control type="panel" id="203">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(4)] | Control.HasFocus(203) | [Container(9000).HasFocus(4) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>203</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
				<control type="panel" id="204">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(5)] | Control.HasFocus(204) | [Container(9000).HasFocus(5) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>204</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
				<control type="panel" id="205">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(6)] | Control.HasFocus(205) | [Container(9000).HasFocus(6) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>205</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
				<control type="panel" id="206">
					<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(7)] | Control.HasFocus(206) | [Container(9000).HasFocus(7) + Control.HasFocus(60)]</visible>
					<include>VisibleFadeEffectDelay</include>
					<onright>206</onright>
					<include>TVNextAiredPanelLayout</include>
				</control>
			</control>
		</control>

		<control type="group">
			<control type="grouplist" id="8000">
				<posx>105</posx>
				<posy>930</posy>
				<width>322</width>
				<height>100</height>
				<onright>9000</onright>
				<onup>9000</onup>
				<onleft>9000</onleft>
				<ondown>8000</ondown>
				<onback>9000</onback>
				<scrolltime>200</scrolltime>
				<orientation>vertical</orientation>
				<control type="button" id="8">
					<description>Settings</description>
		            <height>54</height>
		            <width>322</width>
		            <font>font16</font>
		            <textoffsetx>10</textoffsetx>
		            <disabledcolor>Grey</disabledcolor>
		            <texturenofocus border="3">buttons/ButtonNF.png</texturenofocus>
					<label>$LOCALIZE[5]</label>
				</control>
			</control>
		</control>

	</controls>
</window>