<?xml version="1.0" encoding="UTF-8"?>
<includes> 

	<include name="WeekDayButton">
		<width>252</width>
		<height>49</height>
		<font>FontSize_20</font>
		<textoffsetx>7</textoffsetx>
		<onleft>9000</onleft>
	</include>

	<include name="WeekDayButtonNoFocus">
		<control type="image">
			<width>250</width>
			<height>49</height>
			<texture>buttons/focus.png</texture>
      <animation effect="fade" start="0" end="50" time="0" condition="!ControlGroup(400).HasFocus">Conditional</animation>
			<visible>String.IsEqual(Window(Home).Property(tvguide),$PARAM[DayProperty])</visible>
		</control>
	</include>

	<include name="TVGuideDayList">
		<control type="panel" id="$PARAM[ListID]">
			<width>1045</width>
	    <height>370</height>
			<onleft condition="String.IsEqual(Window(Home).Property(tvguide),$PARAM[DayProperty])">$PARAM[OnLeft]</onleft>
			<onleft condition="!String.IsEqual(Window(Home).Property(tvguide),$PARAM[DayProperty])">400</onleft>
	    <onup>9000</onup>
			<orientation>horizontal</orientation>
	    <scrolltime tween="cubic" easing="out">350</scrolltime>
			<include>TVGuideLayout</include>
		</control>
  </include>

  <!-- TV Guide Layout -->
	<include name="TVGuideLayout">
		<itemlayout width="411">
			<control type="image">
				<left>400</left>
				<top>1</top>
				<width>1</width>
				<height>368</height>
				<colordiffuse>11DDDDDD</colordiffuse>
				<texture background="true">windows/bg/white.png</texture>
			</control>
			<control type="image">
				<left>-5</left>
				<top>70</top>
				<width>400</width>
				<height>230</height>
				<texture background="true" border="31">thumbs/thumb_border.png</texture>
			</control>
			<control type="image">
				<left>0</left>
				<top>75</top>
				<width>390</width>
				<height>220</height>
				<aspectratio aligny="center" align="center">scale</aspectratio>
				<texture background="true" fallback="thumbs/fallback_fanart_tp.png">$VAR[TVGuideThumb]</texture>
				<bordersize>1</bordersize>
			</control>
			<control type="image">
				<left>0</left>
			  <top>6</top>
				<width>64</width>
				<height>64</height>
				<colordiffuse>viewsinfo</colordiffuse>
			  <texture>icons/datetime.png</texture>
			</control>
			<control type="group">
				<left>68</left>
				<top>17</top>
				<control type="label">
					<left>0</left>
					<top>0</top>
					<width>320</width>
					<height>20</height>
					<label>$INFO[ListItem.Property(NextDay)]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20B</font>
					<textcolor>viewsinfo</textcolor>
				</control>
				<control type="label">
					<left>0</left>
					<top>25</top>
					<width>320</width>
					<height>20</height>
					<label>$INFO[ListItem.Property(ShortTime)]$INFO[ListItem.Property(Network), on ]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20</font>
					<textcolor>viewsinfo</textcolor>
				</control>
			</control>
			<control type="group">
				<left>8</left>
				<top>310</top>
				<control type="label">
					<left>0</left>
					<top>0</top>
					<width>380</width>
					<height>20</height>
					<label>$INFO[ListItem.Label]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20B</font>
				</control>
				<control type="label">
					<left>0</left>
					<top>25</top>
					<width>380</width>
					<height>20</height>
					<label>$INFO[ListItem.Property(NextNumber),,. ]$INFO[ListItem.Property(NextTitle)]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20</font>
					<textcolor>viewsinfo</textcolor>
				</control>
			</control>
		</itemlayout>
		<focusedlayout width="411">
			<control type="image">
				<left>400</left>
				<top>1</top>
				<width>1</width>
				<height>368</height>
				<colordiffuse>11DDDDDD</colordiffuse>
				<texture background="true">windows/bg/white.png</texture>
			</control>
			<control type="image">
				<left>0</left>
				<top>1</top>
				<width>390</width>
				<height>75</height>
				<colordiffuse>$VAR[Textures.GlobalColor]</colordiffuse>
				<texture background="true">windows/bg/white.png</texture>
				<bordersize>1</bordersize>
				<include>ThumbnailsFocusAnimation</include>
			</control>
			<control type="image">
				<left>0</left>
				<top>294</top>
				<width>390</width>
				<height>75</height>
				<colordiffuse>$VAR[Textures.GlobalColor]</colordiffuse>
				<texture background="true">windows/bg/white.png</texture>
				<bordersize>1</bordersize>
				<include>ThumbnailsFocusAnimation</include>
			</control>
			<control type="image">
				<left>-5</left>
				<top>70</top>
				<width>400</width>
				<height>230</height>
				<texture background="true" border="31">thumbs/thumb_border.png</texture>
			</control>
			<control type="image">
				<left>0</left>
				<top>75</top>
				<width>390</width>
				<height>220</height>
				<aspectratio aligny="center" align="center">scale</aspectratio>
				<texture background="true" fallback="thumbs/fallback_fanart_tp.png">$VAR[TVGuideThumb]</texture>
				<bordersize>1</bordersize>
			</control>
			<control type="image">
				<left>0</left>
			  <top>6</top>
				<width>64</width>
				<height>64</height>
				<colordiffuse>FF202020</colordiffuse>
			  <texture>icons/datetime.png</texture>
			</control>
			<control type="group">
				<left>68</left>
				<top>17</top>
				<control type="label">
					<left>0</left>
					<top>0</top>
					<width>320</width>
					<height>20</height>
					<label>$INFO[ListItem.Property(NextDay)]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20B</font>
					<textcolor>FF202020</textcolor>
					<shadowcolor>30FFFFFF</shadowcolor>
				</control>
				<control type="label">
					<left>0</left>
					<top>25</top>
					<width>320</width>
					<height>20</height>
					<label>$INFO[ListItem.Property(ShortTime)]$INFO[ListItem.Property(Network), on ]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20</font>
					<textcolor>FF202020</textcolor>
					<shadowcolor>30FFFFFF</shadowcolor>
				</control>
			</control>
			<control type="group">
				<left>8</left>
				<top>310</top>
				<control type="label">
					<left>0</left>
					<top>0</top>
					<width>380</width>
					<height>20</height>
					<label>$INFO[ListItem.Label]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20B</font>
					<textcolor>FF202020</textcolor>
					<shadowcolor>30FFFFFF</shadowcolor>
				</control>
				<control type="label">
					<left>0</left>
					<top>25</top>
					<width>380</width>
					<height>20</height>
					<label>$INFO[ListItem.Property(NextNumber),,. ]$INFO[ListItem.Property(NextTitle)]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_20</font>
					<textcolor>FF202020</textcolor>
					<shadowcolor>30FFFFFF</shadowcolor>
				</control>
			</control>
		</focusedlayout>
	</include>

	<variable name="TVGuideThumb">
		<value condition="!String.IsEmpty(ListItem.Property(Art(landscape))">$INFO[ListItem.Property(Art(landscape))]</value>
		<value>$INFO[ListItem.Property(Art(fanart))]</value>
	</variable>

	<variable name="TVGuideNumItems">
		<value condition="ControlGroup(500).HasFocus(200)">$INFO[Container(200).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(200).NumItems, $LOCALIZE[31024] ]</value>
		<value condition="ControlGroup(500).HasFocus(201)">$INFO[Container(201).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(201).NumItems, $LOCALIZE[31024] ]</value>
		<value condition="ControlGroup(500).HasFocus(202)">$INFO[Container(202).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(202).NumItems, $LOCALIZE[31024] ]</value>
		<value condition="ControlGroup(500).HasFocus(203)">$INFO[Container(203).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(203).NumItems, $LOCALIZE[31024] ]</value>
		<value condition="ControlGroup(500).HasFocus(204)">$INFO[Container(204).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(204).NumItems, $LOCALIZE[31024] ]</value>
		<value condition="ControlGroup(500).HasFocus(205)">$INFO[Container(205).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(205).NumItems, $LOCALIZE[31024] ]</value>
		<value condition="ControlGroup(500).HasFocus(206)">$INFO[Container(206).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(206).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(207)">$INFO[Container(207).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(207).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(208)">$INFO[Container(208).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(208).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(209)">$INFO[Container(209).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(209).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(210)">$INFO[Container(210).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(210).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(211)">$INFO[Container(211).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(211).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(212)">$INFO[Container(212).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(212).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(213)">$INFO[Container(213).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(213).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(214)">$INFO[Container(214).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(214).NumItems, $LOCALIZE[31024] ]</value>
    <value condition="ControlGroup(500).HasFocus(215)">$INFO[Container(215).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(215).NumItems, $LOCALIZE[31024] ]</value>
	</variable>

</includes>

				
				
				
