<?xml version="1.0" encoding="UTF-8"?>
<window>
  <menucontrol>9000</menucontrol>
	<backgroundcolor>bgcolor</backgroundcolor>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[41]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,monday,Home)</onload>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[42]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,tuesday,Home)</onload>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[43]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,wednesday,Home)</onload>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[44]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,thursday,Home)</onload>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[45]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,friday,Home)</onload>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[46]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,saturday,Home)</onload>
	<onload condition="String.IsEqual(System.Date(ddd),$LOCALIZE[47]) + !String.Contains(Window(Home).Property(NextAired.TodayTotal),0)">SetProperty(tvguide,sunday,Home)</onload>
	<onunload>ClearProperty(tvguide,Home)</onunload>
	<controls>
		<include>BackgroundItems</include>

		<control type="group" id="4000">
			<top>110</top>
			<include>CommonViews_HorizontalAnimation</include>
			<include>InfoDialogsVisible_ZoomAnimation</include>
			<!-- Weekdays -->
			<control type="image">
				<left>-50</left>
				<top>124</top>
				<width>1380</width>
				<height>372</height>
				<texture border="31">views/other/panel.png</texture>
			</control>
			<control type="image">
				<include>FullscreenDimensions</include>
				<texture>windows/tvguide/days_separators.png</texture>
			</control>
			<control type="image">
				<left>45</left>
				<top>127</top>
				<width>1</width>
				<height>366</height>
				<colordiffuse>33AAAAAA</colordiffuse>
				<texture background="true">windows/bg/white.png</texture>
			</control>
			<control type="image">
				<left>313</left>
				<top>127</top>
				<width>1</width>
				<height>366</height>
				<colordiffuse>33AAAAAA</colordiffuse>
				<texture background="true">windows/bg/white.png</texture>
			</control>
			<control type="group">
				<left>55</left>
				<top>135</top>
				<animation effect="slide" end="0,50" time="0" condition="String.IsEqual(System.Date(ddd),$LOCALIZE[42])">Conditional</animation>
				<animation effect="slide" end="0,100" time="0" condition="String.IsEqual(System.Date(ddd),$LOCALIZE[43])">Conditional</animation>
				<animation effect="slide" end="0,150" time="0" condition="String.IsEqual(System.Date(ddd),$LOCALIZE[44])">Conditional</animation>
				<animation effect="slide" end="0,200" time="0" condition="String.IsEqual(System.Date(ddd),$LOCALIZE[45])">Conditional</animation>
				<animation effect="slide" end="0,250" time="0" condition="String.IsEqual(System.Date(ddd),$LOCALIZE[46])">Conditional</animation>
				<animation effect="slide" end="0,300" time="0" condition="String.IsEqual(System.Date(ddd),$LOCALIZE[47])">Conditional</animation>
				<control type="image">
					<width>250</width>
					<height>49</height>
					<texture>dialogs/selectdialog/selected.png</texture>
				</control>
			</control>
			<control type="grouplist" id="400">
				<left>55</left>
				<top>135</top>
				<width>250</width>
				<height>350</height>
				<itemgap>0</itemgap>
				<control type="group">
					<height>50</height>
					<control type="button" id="401">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[11]</label>
						<label2>$INFO[Container(200).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,monday,Home)</onfocus>
						<onright>SetFocus(200)</onright>
						<onup>407</onup>
						<ondown>402</ondown>
						<enable>Integer.IsGreater(Container(200).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="monday"/>
					</include>
				</control>
				<control type="group">
					<height>50</height>
					<control type="button" id="402">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[12]</label>
						<label2>$INFO[Container(201).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,tuesday,Home)</onfocus>
						<onright>SetFocus(201)</onright>
						<onup>401</onup>
						<ondown>403</ondown>
						<enable>Integer.IsGreater(Container(201).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="tuesday"/>
					</include>
				</control>
				<control type="group">
					<height>50</height>
					<control type="button" id="403">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[13]</label>
						<label2>$INFO[Container(202).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,wednesday,Home)</onfocus>
						<onright>SetFocus(202)</onright>
						<onup>402</onup>
						<ondown>404</ondown>
						<enable>Integer.IsGreater(Container(202).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="wednesday"/>
					</include>
				</control>
				<control type="group">
					<height>50</height>
					<control type="button" id="404">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[14]</label>
						<label2>$INFO[Container(203).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,thursday,Home)</onfocus>
						<onright>SetFocus(203)</onright>
						<onup>403</onup>
						<ondown>405</ondown>
						<enable>Integer.IsGreater(Container(203).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="thursday"/>
					</include>
				</control>
				<control type="group">
					<height>50</height>
					<control type="button" id="405">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[15]</label>
						<label2>$INFO[Container(204).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,friday,Home)</onfocus>
						<onright>SetFocus(204)</onright>
						<onup>404</onup>
						<ondown>406</ondown>
						<enable>Integer.IsGreater(Container(204).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="friday"/>
					</include>
				</control>
				<control type="group">
					<height>50</height>
					<control type="button" id="406">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[16]</label>
						<label2>$INFO[Container(205).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,saturday,Home)</onfocus>
						<onright>SetFocus(205)</onright>
						<onup>405</onup>
						<ondown>407</ondown>
						<enable>Integer.IsGreater(Container(205).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="saturday"/>
					</include>
				</control>
				<control type="group">
					<height>50</height>
					<control type="button" id="407">
						<include>WeekDayButton</include>
						<label>$LOCALIZE[17]</label>
						<label2>$INFO[Container(206).NumItems,, ]</label2>
						<onfocus>SetProperty(tvguide,sunday,Home)</onfocus>
						<onright>SetFocus(206)</onright>
						<onup>406</onup>
						<ondown>401</ondown>
						<enable>Integer.IsGreater(Container(206).NumItems,0)</enable>
					</control>
					<include content="WeekDayButtonNoFocus">
						<param name="DayProperty" value="sunday"/>
					</include>
				</control>
			</control>

			<!-- NextAired Lists -->
			<control type="group" id="500">
				<left>325</left>
				<top>125</top>
				<control type="group">
					<visible>String.IsEmpty(Window(Home).Property(tvguide))</visible>
					<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="label">
						<left>68</left>
						<top>30</top>
						<width>320</width>
						<height>20</height>
						<label>$INFO[System.Date]</label>
						<align>left</align>
						<aligny>center</aligny>
						<font>FontSize_20B</font>
						<textcolor>viewsinfo</textcolor>
					</control>
					<control type="label">
						<left>0</left>
						<top>0</top>
						<width>398</width>
						<height>410</height>
						<font>FontSize_20</font>
						<textcolor>viewsinfo</textcolor>
						<align>center</align>
						<aligny>center</aligny>
						<wrapmultiline>true</wrapmultiline>
						<label>$LOCALIZE[31238]</label>
					</control>
					<control type="image">
						<left>400</left>
						<top>2</top>
						<width>1</width>
						<height>366</height>
						<colordiffuse>33AAAAAA</colordiffuse>
						<texture background="true">windows/bg/white.png</texture>
					</control>
				</control>
				<!-- 200 Monday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),monday) + Integer.IsGreater(Container(200).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="200"/>
						<param name="OnLeft" value="401"/>
						<param name="DayProperty" value="monday"/>
					</include>
				</control>
				<!-- 201 Tuesday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),tuesday) + Integer.IsGreater(Container(201).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="201"/>
						<param name="OnLeft" value="402"/>
						<param name="DayProperty" value="tuesday"/>
					</include>
				</control>
				<!-- 202 Wednesday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),wednesday) + Integer.IsGreater(Container(202).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="202"/>
						<param name="OnLeft" value="403"/>
						<param name="DayProperty" value="wednesday"/>
					</include>
				</control>
				<!-- 203 Thursday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),thursday) + Integer.IsGreater(Container(203).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="203"/>
						<param name="OnLeft" value="404"/>
						<param name="DayProperty" value="thursday"/>
					</include>
				</control>
				<!-- 204 Friday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),friday) + Integer.IsGreater(Container(204).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="204"/>
						<param name="OnLeft" value="405"/>
						<param name="DayProperty" value="friday"/>
					</include>
				</control>
				<!-- 205 Saturday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),saturday) + Integer.IsGreater(Container(205).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="205"/>
						<param name="OnLeft" value="406"/>
						<param name="DayProperty" value="saturday"/>
					</include>
				</control>
				<!-- 206 Sunday -->
				<control type="group">
					<include>VisibleFadeEffect</include>
					<visible>String.IsEqual(Window(Home).Property(tvguide),sunday) + Integer.IsGreater(Container(206).NumItems,0)</visible>
					<include content="TVGuideDayList">
						<param name="ListID" value="206"/>
						<param name="OnLeft" value="407"/>
						<param name="DayProperty" value="sunday"/>
					</include>
				</control>
			</control>
		</control>

		<include>CommonItems</include>

		<!-- ================ -->
		<!-- Top Options Menu -->
		<!-- ================ -->
		<control type="group"  id="9000">
			<left>30</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>OptionsTopMenuAnimation</include>
			<!-- Head Labels -->
			<control type="grouplist">
				<left>75</left>
				<top>0</top>
				<height>70</height>
				<width>1000</width>
				<align>left</align>
				<aligny>center</aligny>
				<itemgap>20</itemgap>
				<orientation>horizontal</orientation>
				<include>OptionsTopMenuHeader</include>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[4]</label>
				</control>
			</control>
			<!-- Options -->
			<control type="grouplist" id="9111">
				<onleft>4000</onleft>
				<onright>4000</onright>
				<onup>9111</onup>
				<ondown>9111</ondown>
				<include>OptionsTopMenuVars</include>
				<control type="togglebutton" id="9">
					<description>Fanart Toggle</description>
					<include>TopLeftMenusButton</include>
					<label>$LOCALIZE[20445]: $LOCALIZE[16041]</label>
					<altlabel>$LOCALIZE[20445]: $LOCALIZE[16039]</altlabel>
					<onclick>Skin.ToggleSetting(HideBGTVGuideFanart)</onclick>
					<usealttexture>Skin.HasSetting(HideBGTVGuideFanart)</usealttexture>
					<enable>!Skin.HasSetting(HideBGFanart)</enable>
				</control>
				<control type="button" id="10">
					<description>Update Info</description>
					<label>$LOCALIZE[31281]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Action(left)</onclick>
					<onclick>RunScript(script.tv.show.next.aired,force=True)</onclick>
				</control>
				<control type="button" id="11">
					<description>Reset &amp; Update Info</description>
					<label>$LOCALIZE[31282]</label>
					<include>TopLeftMenusButton</include>
					<onclick>Action(left)</onclick>
					<onclick>RunScript(script.tv.show.next.aired,reset=True)</onclick>
				</control>
				<control type="button" id="12">
					<description>TV Shows</description>
					<label>$LOCALIZE[31002]</label>
					<onclick>Action(left)</onclick>
					<onclick>ActivateWindow(Videos,videodb://tvshows/titles/,return)</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="8">
					<description>Settings</description>
					<onclick>SetFocus(2000)</onclick>
					<label>$LOCALIZE[5]</label>
					<include>TopLeftMenusButton</include>
				</control>
				<include>OptionsTopMenuEnd</include>
			</control>
		</control>

		<include>CommonWeatherAndClock</include>

		<!-- ================ -->
		<!-- Top Content Info -->
		<!-- ================ -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>InfoDialogs_ContentInfoAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<include>OpenCloseSlideAnimationTwo</include>
			<visible>!ControlGroup(9000).HasFocus</visible>
			<control type="grouplist">
				<include>CommonTopInfoGroupList</include>
				<control type="label">
					<include>TopBigLabel</include>
					<label>$LOCALIZE[31001]</label>
				</control>
				<control type="label">
					<description>Totals</description>
					<include>TopSmallLabel</include>
					<label>$INFO[Window(Home).Property(NextAired.Total),$LOCALIZE[31239]: ]</label>
				</control>
			</control>
			<control type="grouplist">
				<left>65</left>
				<top>20</top>
				<height>70</height>
				<width>1000</width>
				<align>left</align>
				<itemgap>0</itemgap>
				<orientation>horizontal</orientation>
				<control type="label">
					<textcolor>$VAR[Text.GlobalColor]</textcolor>
					<font>FontSize_18</font>
					<include>TopSmallLabel</include>
					<label>$INFO[Window(Home).Property(NextAired.TodayTotal),$LOCALIZE[31240]: ]</label>
				</control>
				<control type="label">
					<textcolor>$VAR[Text.GlobalColor]</textcolor>
					<font>FontSize_18</font>
					<include>TopSmallLabel</include>
					<label>$VAR[TVGuideNumItems, • ]</label>
					<visible>!ControlGroup(400).HasFocus()</visible>
				</control>
			</control>
		</control>
	</controls>
</window>
