<?xml version="1.0" encoding="utf-8"?>
<window>
    <allowoverlay>no</allowoverlay>
    <coordinates>
        <system>1</system>
        <posx>0</posx>
        <posy>0</posy>
    </coordinates>
    <controls>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>tvguide-program-red.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>tvguide-program-red-focus.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>ontapp-program-grey.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>ontapp-program-grey-focus.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>ontapp-program-menu-focus.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>tvguide-program-grey.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>tvguide-program-grey-focus.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>tvguide-program-menu-focus.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>ontapp-timebar.png</texture>
        </control>
        <control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <width>1</width>
            <height>1</height>
            <texture>changer-logo.png</texture>
        </control>
        <!-- Background -->
        <control type="group">            
            <fadetime>500</fadetime>
            <animation type="Conditional" condition="Control.IsVisible(5000)">
                <effect type="fade" start="100" end="0" time="500" />
            </animation>
            <control type="image" id="4600">
                <posx>0</posx>
                <posy>0</posy>
                <width>1280</width>
                <height>720</height>
                <texture>Wallpaper.jpg</texture>
            </control>
            <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>50</height>
            <texture>OTTV-Header.png</texture>
            <visible>true</visible>
            <animation effect="fade" start="0" end="100" time="200" condition="Window.Previous(main.xml)">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
            <control type="image">
               <description>Logo</description>
            <posx>45</posx>
            <posy>3</posy>
            <width>400</width>
            <height>45</height>
            <aspectratio>keep</aspectratio>
            <texture>OTTVGuide-White.png</texture>
            <animation effect="fade" start="0" end="100" time="200" condition="Window.Previous(main.xml)">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>        
        <!-- <control type="image">
            <posx>295</posx>
            <posy>1</posy>
            <width>18</width>
            <height>39</height>
            <texture>OTTV-Text_Seperator.png</texture>
            <animation effect="fade" start="0" end="100" time="200" condition="Window.Previous(main.xml)">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
        <control type="image">
            <posx>313</posx>
            <posy>8</posy>
            <width>143</width>
            <height>28</height>
            <texture>OTTV-Text_TV_Guide.png</texture>
            <animation effect="fade" start="0" end="100" time="200" condition="Window.Previous(main.xml)">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>         -->
        <!-- Date and Time -->
            <control type="label">
                <posx>1220</posx>
                <posy>22</posy>
                <width>400</width>
                <height>40</height>
                <font>font10</font> 
                <shadowcolor>ff000000</shadowcolor>
                <textcolor>ffffffff</textcolor>
                <align>right</align>
                <aligny>centre</aligny>
                <scroll>false</scroll>
                <label>$INFO[System.Date]</label>
                <animation effect="fade" start="0" end="100" time="200" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
        <control type="label">
                <posx>1220</posx>
                <posy>1</posy>
                <width>200</width>
                <height>40</height>
                <align>right</align>
                <aligny>centre</aligny>
                <font>font13_title</font>
                <textcolor>ffffffff</textcolor>
                <shadowcolor>ff000000</shadowcolor>
                <label>$INFO[System.Time]</label>
                <animation effect="fade" start="0" end="100" time="200" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
			<control type="image">
                <posx>1235</posx>
                <posy>10</posy>
                <width>28</width>
                <height>28</height>
                <texture>clock.png</texture>
				<colordiffuse>ff12B2E7</colordiffuse>
            </control>
            <control type="image" id="4601">
                <posx>39</posx>
                <posy>295</posy>
                <width>1201</width>
                <height>35</height>
                <texture>ontapp-topbar.png</texture>
                <animation effect="fade" start="0" end="100" time="1000" delay="500" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
            <control type="image" id="4602">
                <posx>39</posx>
                <posy>330</posy>
                <width>1200</width>
                <height>350</height>
                <texture>ontapp-main.png</texture>
                <animation effect="slide" start="0,720" end="0,0" time="600" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
            <control type="image">
                <posx>34</posx>
                <posy>329</posy>
                <width>20</width>
                <height>353</height>
                <texture></texture>
                <animation effect="fade" start="0" end="100" time="1000" delay="500" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
            <control type="image">
                <posx>234</posx>
                <posy>329</posy>
                <width>20</width>
                <height>353</height>
                <texture>Break-RIGHT.png</texture>
                <visible>Control.IsVisible(4200)</visible>
                <animation effect="fade" start="0" end="100" time="1000" delay="500" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
        </control>

    <!-- TV Guide Group-->
        <control type="label" id="5000">
            <description>visibility marker for TV Guide group</description>
        </control>
        <control type="group">
            <description>TV Guide group</description>
            <posx>7</posx>
            <posy>42</posy>
            <width>1280</width>
            <height>720</height>
            <visible>!Control.IsVisible(5000)</visible>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>

            <!-- Main EPG Grid -->
            <control type="button" id="5001">
                <description>marker for EPG data view - should be hidden!</description>
                <posx>247</posx>
                <posy>331</posy>
                <width>990</width>
                <height>350</height>
                <visible>false</visible>
            </control>
            <!-- Date and time row -->
            <control type="group">
                <posx>32</posx>
                <posy>28</posy>
                <width>1280</width>
                <height>50</height>
                <visible>true</visible>
                <animation effect="fade" start="0" end="100" time="1000" delay="900" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <control type="label" id="4000">
                    <description>Displays todays date</description>
                    <posx>173</posx>
                    <posy>216</posy>
                    <width>270</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <wrapmultiline>true</wrapmultiline>
                    <align>right</align>
                    <aligny>center</aligny>
                    <visible>true</visible>
                </control>
                <control type="label" id="4001">
                    <description>1st half hour column</description>
                    <posx>208</posx>
                    <posy>216</posy>
                    <width>270</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                </control>
                <control type="label" id="4002">
                    <description>2nd half hour column</description>
                    <posx>457</posx>
                    <posy>216</posy>
                    <width>270</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                </control>
                <control type="label" id="4003">
                    <description>3rd half hour column</description>
                    <posx>703</posx>
                    <posy>216</posy>
                    <width>270</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                </control>
                <control type="label" id="4004">
                    <description>4th half hour column</description>
                    <posx>951</posx>
                    <posy>216</posy>
                    <width>270</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                </control>
            </control>

            <!-- Channels column -->
            <control type="group">
                <posx>47</posx>
                <posy>241</posy>
                <width>200</width>
                <height>400</height>
                <visible>true</visible>
                <animation effect="fade" start="0" end="100" time="1000" delay="600" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
                
                <!-- channel numbers -->
                <control type="label" id="7001">
                    <description>1st channel</description>
                    <posx>-2</posx>
                    <posy>47</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>48</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->
                <control type="label" id="7002">
                    <description>2nd channel</description>
                    <posx>-2</posx>
                    <posy>97</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>98</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->
                <control type="label" id="7003">
                    <description>3rd channel</description>
                    <posx>-2</posx>
                    <posy>147</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>148</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->
                <control type="label" id="7004">
                    <description>4th channel</description>
                    <posx>-2</posx>
                    <posy>197</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>198</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->
                <control type="label" id="7005">
                    <description>5th channel</description>
                    <posx>-2</posx>
                    <posy>247</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>248</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->
                <control type="label" id="7006">
                    <description>6th channel</description>
                    <posx>-2</posx>
                    <posy>297</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>298</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->
                <control type="label" id="7007">
                    <description>7th channel</description>
                    <posx>-2</posx>
                    <posy>347</posy>
                    <width>35</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font12</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>true</visible>
                    <label></label>
                </control>
                <!--control type="image">
                    <posx>-10</posx>
                    <posy>348</posy>
                    <width>194</width>
                    <height>48</height>
                    <texture>tvguide-program-grey.png</texture>
                    <visible>Control.IsVisible(4200)</visible>
                </control-->

                <!-- text labels -->
                <control type="label" id="4010">
                    <description>1st channel</description>
                    <posx>172</posx>
                    <posy>47</posy>
                    <width>133</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4110),)</visible>
                </control>
                <control type="label" id="4011">
                    <description>2nd channel</description>
                    <posx>172</posx>
                    <posy>97</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4111),)</visible>
                </control>
                <control type="label" id="4012">
                    <description>3rd channel</description>
                    <posx>172</posx>
                    <posy>147</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4112),)</visible>
                </control>
                <control type="label" id="4013">
                    <description>4th channel</description>
                    <posx>172</posx>
                    <posy>197</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4113),)</visible>
                </control>
                <control type="label" id="4014">
                    <description>5th channel</description>
                    <posx>172</posx>
                    <posy>247</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4114),)</visible>
                </control>
                <control type="label" id="4015">
                    <description>6th channel</description>
                    <posx>172</posx>
                    <posy>297</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4115),)</visible>
                </control>
                <control type="label" id="4016">
                    <description>7th channel</description>
                    <posx>172</posx>
                    <posy>347</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <shadowcolor>ff000000</shadowcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4116),)</visible>
                </control>
                <control type="label" id="4017">
                    <description>8th channel</description>
                    <posx>178</posx>
                    <posy>397</posy>
                    <width>138</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <align>right</align>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <visible>StringCompare(Control.GetLabel(4117),)</visible>
                </control>

                <!-- logo images -->
                <control type="image" id="4110">
                    <description>1st channel</description>
                    <posx>35</posx>
                    <posy>51</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4110),)</visible>
                </control>
                <control type="image" id="4111">
                    <description>2nd channel</description>
                    <posx>35</posx>
                    <posy>101</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4111),)</visible>
                </control>
                <control type="image" id="4112">
                    <description>3rd channel</description>
                    <posx>35</posx>
                    <posy>151</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4112),)</visible>
                </control>
                <control type="image" id="4113">
                    <description>4th channel</description>
                    <posx>35</posx>
                    <posy>201</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4113),)</visible>
                </control>
                <control type="image" id="4114">
                    <description>5th channel</description>
                    <posx>35</posx>
                    <posy>251</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4114),)</visible>
                </control>
                <control type="image" id="4115">
                    <description>6th channel</description>
                    <posx>35</posx>
                    <posy>301</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4115),)</visible>
                </control>
                <control type="image" id="4116">
                    <description>7th channel</description>
                    <posx>35</posx>
                    <posy>351</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4116),)</visible>
                </control>
                <control type="image" id="4117">
                    <description>8th channel</description>
                    <posx>35</posx>
                    <posy>400</posy>
                    <width>145</width>
                    <height>41</height>
                    <aspectratio>keep</aspectratio>
                    <visible>!StringCompare(Control.GetLabel(4117),)</visible>
                </control>
            </control>
            
            <!-- EPG Timebar -->
            <control type="image" id="4100">
                <posx>180</posx>
                <posy>289</posy>
                <width>-50</width>
                <height>347</height>
                <texture>ontapp-timebar.png</texture>
                <animation effect="fade" start="0" end="100" time="300" delay="500" condition="Window.Previous(main.xml)">WindowOpen</animation>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            </control>
            
            <!-- EPG Loading progressbar -->
            <control type="label" id="4200">
                <description>visibility marker for loading group</description>
            </control>
            <control type="group">
                <posx>130</posx>
                <posy>330</posy>
                <width>600</width>
                <height>55</height>
                <visible>!Control.IsVisible(4200)</visible>
                <animation effect="fade" start="0" end="100" time="250" delay="1500">Visible</animation>

                <control type="image">
                    <description>loading splash</description>
                    <posx>300</posx>
                    <posy>40</posy>
                    <width>192</width>
                    <height>16</height>
                    <texture>ontapp-loading.gif</texture>
                </control>
                <control type="label">
                    <description>loading splash</description>
                    <posx>30</posx>
                    <posy>70</posy>
                    <width>600</width>
                    <height>55</height>
                    <label>Updating TV Guide</label>
                    <textcolor>ffffffff</textcolor>
                    <font>font15</font>
                    <aligny>top</aligny>
                </control>
                <control type="progress" id="4201">
                    <posx>300</posx>
                    <posy>75</posy>
                    <width>580</width>
                    <height>2</height>
                    <texturebg />
                    <lefttexture />
                    <midtexture></midtexture>
                    <righttexture />
                </control>
                <control type="label" id="4202">
                    <description>loading time left</description>
                    <posx>270</posx>
                    <posy>100</posy>
                    <width>600</width>
                    <height>50</height>
                    <label></label>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                </control>
                <control type="button" id="4203">
                    <posx>270</posx>
                    <posy>150</posy>
                    <width>150</width>
                    <height>50</height>
                    <label>$ADDON[script.tvguidedixie 30008]</label>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-program-grey-focus.png</texturefocus>
                    <texturenofocus>ontapp-program-grey.png</texturenofocus>
					<visible>false</visible>
                </control>
            </control>

            <!-- Mouse control -->
            <control type="label" id="4300">
                <description>visibility marker for mouse control group</description>
                <posx>0</posx>
                <posy>0</posy>
                <width>50</width>
                <height>50</height>
            </control>
            <control type="group">
                <posx>0</posx>
                <posy>30</posy>
                <width>1280</width>
                <height>70</height>
                <visible>!Control.IsVisible(4300)</visible>
                <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
                <animation effect="slide" start="0,10" end="0,10" time="300">Visible</animation>
                <animation effect="slide" start="0,10" end="0,10" time="300">Hidden</animation>
                

                <control type="image">
                    <posx>50</posx>
                    <posy>0</posy>
                    <width>1178</width>
                    <height>36</height>
                    <texture></texture>
                </control>

                <control type="button" id="4301">
                    <description>navigate to now</description>
                    <posx>1059</posx>
                    <posy>79</posy>
                    <width>55</width>
                    <height>40</height>
                    <label></label>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-touch_now_focus.png</texturefocus>
                    <texturenofocus>ontapp-touch_now.png</texturenofocus>
                </control>

                <control type="button" id="4302">
                    <description>navigate left</description>
                    <posx>1001</posx>
                    <posy>79</posy>
                    <width>55</width>
                    <height>40</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <label></label>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-touch_left_focus.png</texturefocus>
                    <texturenofocus>ontapp-touch_left.png</texturenofocus>
                </control>
                <control type="button" id="4303">
                    <description>navigate up</description>
                    <posx>1059</posx>
                    <posy>37</posy>
                    <width>55</width>
                    <height>40</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <label></label>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-touch_up_focus.png</texturefocus>
                    <texturenofocus>ontapp-touch_up.png</texturenofocus>
                </control>
                <control type="button" id="4304">
                    <description>navigate down</description>
                    <posx>1059</posx>
                    <posy>121</posy>
                    <width>55</width>
                    <height>40</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <label></label>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-touch_down_focus.png</texturefocus>
                    <texturenofocus>ontapp-touch_down.png</texturenofocus>
                </control>
                <control type="button" id="4305">
                    <description>navigate right</description>
                    <posx>1117</posx>
                    <posy>79</posy>
                    <width>55</width>
                    <height>40</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <label></label>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-touch_right_focus.png</texturefocus>
                    <texturenofocus>ontapp-touch_right.png</texturenofocus>
                </control>

                <!--control type="button" id="4306">
                    <description>exit</description>
                    <posx>1140</posx>
                    <posy>34</posy>
                    <width>40</width>
                    <height>45</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <label>X</label>
                    <aligny>center</aligny>
                    <align>center</align>
                    <texturefocus>ontapp-program-menu-focus.png</texturefocus>
                    <texturenofocus>ontapp-program-grey.png</texturenofocus>
                </control-->
            </control>

        </control><!-- id="5000" -->

        <!-- Selected programme -->
        <control type="group">
            <visible>!Control.IsVisible(5000)</visible>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
            <control type="label" id="4020">
                <description>Program title</description>
                <posx>49</posx>
                <posy>105</posy>
                <width>590</width>
                <height>50</height>
                <textcolor>ff12B2E7</textcolor>
                <font>font14</font>
                <shadowcolor>ff000000</shadowcolor>
                <scroll>false</scroll>
                <aligny>center</aligny>
            </control>
            <control type="label" id="4021">
                <description>Program time</description>
                <posx>899</posx>
                <posy>105</posy>
                <width>270</width>
                <height>50</height>
                <textcolor>ffffffff</textcolor>
                <font>font14</font>
                <shadowcolor>ff000000</shadowcolor>
                <wrapmultiline>true</wrapmultiline>
                <align>right</align>
                <aligny>center</aligny>
            </control>
            <control type="image" id="4024">
                <description>Channel logo</description>
                <posx>750</posx>
                <posy>56</posy>
                <width>134</width>
                <height>80</height>
                <aspectratio>keep</aspectratio>
                <fadetime>500</fadetime>
                <visible>false</visible>
            </control>
            <control type="textbox" id="4022">
                <description>Program description</description>
                <posx>50</posx>
                <posy>145</posy>
                <width>850</width>
                <height>99</height>
                <textcolor>ffffffff</textcolor>
                <font>font13</font>
                <shadowcolor>ff000000</shadowcolor>
                <wrapmultiline>true</wrapmultiline>
                <autoscroll time="3600" delay="6000" repeat="6000">true</autoscroll>
            </control>
            <control type="image" id="4023">
                <description>Program image</description>
                <posx>940</posx>
                <posy>100</posy>
                <width>300</width>
                <height>150</height>
                <aspectratio>keep</aspectratio>
                <fadetime>100</fadetime>
                <texture>-</texture>
            </control>
        </control>
            <control type="videowindow">
                <posx>0</posx>
                <posy>0</posy>
                <width>1280</width>
                <height>720</height>
                <animation type="Conditional" condition="!Control.IsVisible(5000)">
                    <effect type="zoom" end="22" center="1225,122" time="400" />
                </animation>
            </control>    
        <!-- OSD Infobar -->
        <control type="label" id="6000">
            <description>visibility marker for OSD Info bar</description>
        </control>
        <control type="group">
            <description>OSD Info bar</description>
            <posx>0</posx>
            <posy>505</posy>
            <width>1280</width>
            <height>220</height>
            <visible>!Control.IsVisible(6000)</visible>
            <animation effect="fade" start="0" end="100" time="300">VisibleChange</animation>
            <control type="image">
                <posx>193</posx>
                <posy>-24</posy>
                <width>880</width>
                <height>229</height>
                <texture border="20">ontapp-osd.png</texture>
            </control>
            <control type="image">
                <posx>218</posx>
                <posy>161</posy>
                <width>43</width>
                <height>14</height>
                <texture>ontapp-osd-up_down.png</texture>
            </control>
            <control type="image">
                <posx>363</posx>
                <posy>148</posy>
                <width>31</width>
                <height>43</height>
                <texture>ontapp-osd-left_right.png</texture>
            </control>
            
            <!-- Program description -->
            <control type="label" id="6001">
                <description>Program title</description>
                <posx>366</posx>
                <posy>11</posy>
                <width>470</width>
                <height>50</height>
                <textcolor>ffffffff</textcolor>
                <font>font15</font>
                <scroll>true</scroll>
                <aligny>top</aligny>
            </control>
            <control type="label" id="6002">
                <description>Program time</description>
                <posx>1041</posx>
                <posy>11</posy>
                <width>400</width>
                <height>50</height>
                <label>[B][/B]</label>
                <textcolor>ffffffff</textcolor>
                <font>font15</font>
                <wrapmultiline>true</wrapmultiline>
                <align>right</align>
                <aligny>top</aligny>
            </control>
                <control type="label" id="6008">
                    <description>Displays current time</description>
                    <posx>1042</posx>
                    <posy>153</posy>
                    <width>270</width>
                    <height>50</height>
                    <textcolor>ffffffff</textcolor>
                    <font>font13</font>
                    <wrapmultiline>true</wrapmultiline>
                    <align>right</align>
                    <aligny>top</aligny>
                    <visible>true</visible>
                    <label>Time Now: $INFO[System.Time(hh:mm:xx)]</label>
                </control>
            <control type="textbox" id="6003">
                <description>Program description</description>
                <posx>223</posx>
                <posy>47</posy>
                <width>820</width>
                <height>98</height>
                <textcolor>ffffffff</textcolor>
                <font>font13</font>
                <wrapmultiline>true</wrapmultiline>
                <autoscroll time="3600" delay="6000" repeat="6000">true</autoscroll>
            </control>
            <control type="image" id="6004">
                <description>Program channel logo</description>
                <posx>212</posx>
                <posy>4</posy>
                <width>150</width>
                <height>40</height>
                <aspectratio>keep</aspectratio>
            </control>
            <control type="label" id="6005">
                <description>Program channel text</description>
                <posx>212</posx>
                <posy>2</posy>
                <width>155</width>
                <height>45</height>
                <textcolor>ffffffff</textcolor>
                <font>font15</font>
                <align>center</align>
                <aligny>center</aligny>
                <visible>StringCompare(Control.GetLabel(6004),)</visible>
            </control>
            <control type="label" id="6006">
                <description>OSD Channels label</description>
                <posx>258</posx>
                <posy>153</posy>
                <width>155</width>
                <height>45</height>
                <textcolor>ffffffff</textcolor>
                <font>font13</font>
                <aligny>top</aligny>
                <label>Channels</label>
                <visible>true</visible>
            </control>           
            <control type="label" id="6007">
                <description>OSD Time label</description>
                <posx>398</posx>
                <posy>153</posy>
                <width>155</width>
                <height>45</height>
                <textcolor>ffffffff</textcolor>
                <font>font13</font>
                <aligny>top</aligny>
                <label>Time</label>
                <visible>true</visible>
            </control>
        </control>
        
        <control type="group" id="7001">
            <!-- Program description -->
            <control type="image">
                <description>Now title background image</description>
                <posx>300</posx>
                <posy>-320</posy>
                <width>700</width>
                <height>230</height>
                <align>left</align>
                <texture>ontapp-program.png</texture>
                <!-- <colordiffuse>FF007DD1</colordiffuse> -->
            </control>
            <control type="textbox">
                <description>Program description</description>
                <posx>310</posx>
                <posy>-310</posy>
                <width>680</width>
                <height>210</height>
                <textcolor>ffffffff</textcolor>
                <font>font12</font>
                <scroll>true</scroll>
                <aligny>top</aligny>
                <label>$INFO[Window(10000).Property(OTT_NOW_DESC)]</label>
            </control>
            <!-- Plugin Link Display -->
            <control type="image" id="8000">
                <description>Plugin Icon</description>
                <posx>5</posx>
                <posy>685</posy>
                <width>30</width>
                <height>30</height>
                <aspectratio>keep</aspectratio>
            </control>
            <control type="label" id="8001">
                <description>Plugin Name</description>
                <posx>40</posx>
                <posy>695</posy>
                <width>500</width>
                <height>20</height>
                <textcolor>ffffffff</textcolor>
                <font>font10</font>
                <aligny>top</aligny>
            </control>
        </control>

    <!-- New Categories Menu-->
    <control type="group" id="9000">
           <posx>40</posx>
        <posy>269</posy>

        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1200</width>
            <height>25</height>
            <texture>top_border.png</texture>
        </control>
           <control type="list" id="9001">
               <posx>0</posx>
               <posy>0</posy>
               <width>1200</width>
               <height>25</height>
               <viewtype label="list">list</viewtype>
               <orientation>horizontal</orientation>
               <focusposition1>7</focusposition1>
               <onleft>9001</onleft>
           <onup>9001</onup>
           <ondown>9001</ondown>
               <onright>9001</onright>

               <itemlayout width="150" height="25">
                   <control type="image">
                       <posx>0</posx>
                       <posy>0</posy>
                       <width>150</width>
                       <height>25</height>
                       <info>ListItem.Icon</info>
                   </control>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>150</width>
                        <height>25</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>font12</font>
                        <textcolor>ffffffff</textcolor>
                        <shadowcolor>ff000000</shadowcolor>
                        <info>ListItem.Label</info>
                    </control>
                </itemlayout>

                <focusedlayout width="150" height="25">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>150</width>
                        <height>25</height>
                        <info>ListItem.Icon</info>
                    </control>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>150</width>
                        <height>25</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>font12</font>
                        <autoscroll time="3600" delay="2000" repeat="2000">true</autoscroll>
                        <textcolor>ffffffff</textcolor>
                        <shadowcolor>ff000000</shadowcolor>
                        <label>$INFO[ListItem.Label]</label>
                        <visible>!Control.HasFocus(9001)</visible>
                    </control>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>150</width>
                        <height>25</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>font12</font>
                        <autoscroll time="3600" delay="2000" repeat="2000">true</autoscroll>
                        <textcolor>FF11E7B1</textcolor>
                        <shadowcolor>ff000000</shadowcolor>
                        <label>$INFO[ListItem.Label]</label>
                        <visible>Control.HasFocus(9001)</visible>
                    </control>
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>150</width>
                        <height>25</height>
                        <texture>ontapp-category-focus.png</texture>
                        <visible>Control.HasFocus(9001)</visible>
                    </control>
            </focusedlayout>

        </control>
    </control>

        <!-- Blackout -->
        <control type="image" id="9999">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>black.jpg</texture>
            <fadetime>500</fadetime>
            <animation effect="fade" start="0" end="100" time="3000" delay="1000" condition="Window.Previous(main.xml)">WindowOpen</animation>
    </control>
    </controls>
</window>
