<window>
  <id>3012</id>
  <defaultcontrol>700</defaultcontrol>
  <type>window</type>
  <coordinates>
    <system>1</system>
    <posx>0</posx>
    <posy>0</posy>
  </coordinates>

  <controls>

    <!-- ============================================= -->
    <!--   S C R E E N       B A C K G R O U N D       -->          
    <!-- ============================================= -->              
  
    <!-- Copy of CommonBackground -->
    <control type="image">
      <description>background image</description>
      <posx>0</posx>
      <posy>0</posy>
      <width>1280</width>
      <height>720</height>
      <texture>bg.png</texture>
    </control>

    <control type="group">
        <description>Content Group</description>
        <!-- Copy Window_OpenClose_Right_Panel_Animation -->
        <animation effect="fade" time="200" condition="Skin.HasSetting(Animate_Skin)">WindowOpen</animation>
        <animation effect="fade" time="200" condition="Skin.HasSetting(Animate_Skin)">WindowClose</animation>
        <animation effect="slide" start="1030,0" end="0,0" time="300" tween="quadratic" easing="out" condition="!Skin.HasSetting(Animate_Skin)">WindowOpen</animation>
        <animation effect="slide" end="1030,0" start="0,0" time="300" tween="quadratic" easing="out" condition="!Skin.HasSetting(Animate_Skin)">WindowClose</animation>

        <!-- ============================================= -->
        <!--   C O N T E N T     B A C K G R O U N D       -->          
        <!-- ============================================= -->              
      
        <!-- Copy of ContentPanel -->
        <control type="image">
            <posx>265</posx>
            <posy>100</posy>
            <width>1015</width>
            <height>580</height>
            <texture border="50,0,0,45">vpanel1.png</texture>
        </control>

        <control type="button" id="601">
            <description>recording groups chooser</description>
            <label>Recording Groups</label>
            <posx>350</posx>
            <posy>500</posy>
            <width>285</width>
            <align>left</align>
            <textoffsetx>40</textoffsetx>
            <texturefocus>button_focus.png</texturefocus>
            <texturenofocus>button_nofocus.png</texturenofocus>
            <pulseonselect>true</pulseonselect>
            <visible>false</visible>
        </control>

        <control type="button" id="602">
            <description>recording titles chooser</description>
            <label>Titles</label>
            <posx>350</posx>
            <posy>550</posy>
            <width>285</width>
            <align>left</align>
            <textoffsetx>40</textoffsetx>
            <texturefocus>button_focus.png</texturefocus>
            <texturenofocus>button_nofocus.png</texturenofocus>
            <pulseonselect>true</pulseonselect>
            <visible>false</visible>
        </control>

        <control type="group" id="3000">
            <description>tables</description>
<!--            <posx>0</posx>-->
<!--            <posy>122</posy>-->
            <itemgap>1</itemgap>

<!-- Groups Header -->

            <control type="image">
                <description>table header</description>
                <posx>315</posx>
                <posy>140</posy>
                <width>940</width>
                <height>40</height>
                <texture flipx="true">mb-header.png</texture>
            </control>
            
            <control type="label">
                <descriptin>num episodes</descriptin>
                <posx>325</posx>
                <posy>140</posy>
                <width>140</width>
                <height>35</height>
                <font>font12</font>
                <textcolor>ffddddff</textcolor>
                <selectedcolor>FFe2ff43</selectedcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>SCRIPT854</label>
            </control>
    
            <control type="label">
                <description>title</description>
                <posx>520</posx>
                <posy>140</posy>
                <width>150</width>
                <height>35</height>
                <font>font12</font>
                <textcolor>ffddddff</textcolor>
                <selectedcolor>FFe2ff43</selectedcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>SCRIPT212</label>
            </control>
    
            <!-- 
            <control type="label">
                <description>episode</description>
                <posx>1175</posx>
                <posy>140</posy>
                <width>80</width>
                <height>35</height>
                <font>font12</font>
                <textcolor>ffddddff</textcolor>
                <selectedcolor>FFe2ff43</selectedcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>SCRIPT161</label>
            </control>
            -->
            
<!--  Groups Listbox -->
    
            <control type="list" id="700">
                <posx>315</posx>
                <posy>180</posy>
                <width>940</width>
                <height>150</height>
                <onleft>2000</onleft>
                <onright>600</onright>
                <onup>700</onup>
                <ondown>700</ondown>
                <!-- 
                <scrolltime>0</scrolltime>
                <preloaditems>10</preloaditems>
                -->
                 
                <itemlayout height="30">
    
                    <control type="label">
                        <descriptino>num episodes</descriptino>
                        <posx>10</posx>
                        <posy>0</posy>
                        <width>340</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(num_episodes)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item title</description>
                        <posx>200</posx>
                        <posy>0</posy>
                        <width>640</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(title)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item episode</description>
                        <posx>860</posx>
                        <posy>0</posy>
                        <width>80</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(episode)]</label>
                    </control>
                    
                </itemlayout>
                
                <focusedlayout height="30">
                
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>940</width>
                        <height>30</height>
                        <texture border="3">input-focus.png</texture>
                        <visible>Control.HasFocus(700)</visible>
                    </control>
    
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>940</width>
                        <height>30</height>
                        <texture border="3">input-nofocus.png</texture>
                        <visible>!Control.HasFocus(700)</visible>
                    </control>
                
                    <control type="label">
                        <description>num episodes</description>
                        <posx>10</posx>
                        <posy>0</posy>
                        <width>340</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(num_episodes)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item title</description>
                        <posx>200</posx>
                        <posy>0</posy>
                        <width>640</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(title)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item episode</description>
                        <posx>860</posx>
                        <posy>0</posy>
                        <width>80</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(episode)]</label>
                    </control>
                    
                </focusedlayout>
            </control>
    
<!-- Programs Table Header -->
    
            <control type="image">
                <description>table header</description>
                <posx>315</posx>
                <posy>340</posy>
                <width>940</width>
                <height>40</height>
                <texture flipx="true">mb-header.png</texture>
            </control>
            
            <control type="label">
                <descriptin>date</descriptin>
                <posx>325</posx>
                <posy>340</posy>
                <width>340</width>
                <height>35</height>
                <font>font12</font>
                <textcolor>ffddddff</textcolor>
                <selectedcolor>FFe2ff43</selectedcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>SCRIPT211</label>
            </control>
    
            <control type="label">
                <description>title</description>
                <posx>520</posx>
                <posy>340</posy>
                <width>150</width>
                <height>35</height>
                <font>font12</font>
                <textcolor>ffddddff</textcolor>
                <selectedcolor>FFe2ff43</selectedcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>SCRIPT212</label>
            </control>
    
            <control type="label">
                <description>episode</description>
                <posx>1175</posx>
                <posy>340</posy>
                <width>80</width>
                <height>35</height>
                <font>font12</font>
                <textcolor>ffddddff</textcolor>
                <selectedcolor>FFe2ff43</selectedcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>SCRIPT161</label>
            </control>
    
<!--  Programs Listbox -->

            <control type="image">
                <posx>315</posx>
                <posy>380</posy>
                <width>940</width>
                <height>250</height>
                <aspectratio aligny="top">scale</aspectratio>
                <texture diffuse="mb-diffuse-left.png">$INFO[Container(600).ListItem.Property(background)]</texture>
                <fadetime>400</fadetime>
            </control>

            <control type="label">
                <description>DEBUG wallpaper size</description>
                <posx>1180</posx>
                <posy>610</posy>
                <width>100</width>
                <height>40</height>
                <font>font10</font>
                <textcolor>88FFFFFF</textcolor>
                <label>$INFO[Container(600).ListItem.Property(wallpaperSize)]</label>
            </control>
    
            <control type="list" id="600">
                <posx>315</posx>
                <posy>380</posy>
                <width>940</width>
                <height>250</height>
                <onleft>700</onleft>
                <onright>2000</onright>
                <onup>600</onup>
                <ondown>600</ondown>
                <!-- 
                <scrolltime>0</scrolltime>
                <preloaditems>10</preloaditems>
                -->
                 
                <itemlayout height="30">
    
                    <control type="label">
                        <descriptino>list item date and time</descriptino>
                        <posx>10</posx>
                        <posy>0</posy>
                        <width>340</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(date)]  $INFO[ListItem.Property(time)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item title</description>
                        <posx>200</posx>
                        <posy>0</posy>
                        <width>640</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(title)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item episode</description>
                        <posx>860</posx>
                        <posy>0</posy>
                        <width>80</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(episode)]</label>
                    </control>
                    
                </itemlayout>
                
                <focusedlayout height="30">
                
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>940</width>
                        <height>30</height>
                        <texture border="3">input-focus.png</texture>
                        <visible>Control.HasFocus(600)</visible>
                    </control>
    
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>940</width>
                        <height>30</height>
                        <texture border="3">input-nofocus.png</texture>
                        <visible>!Control.HasFocus(600)</visible>
                    </control>
                
                    <control type="label">
                        <description>list item date and time</description>
                        <posx>10</posx>
                        <posy>0</posy>
                        <width>340</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(date)]  $INFO[ListItem.Property(time)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item title</description>
                        <posx>200</posx>
                        <posy>0</posy>
                        <width>640</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(title)]</label>
                    </control>
    
                    <control type="label">
                        <description>list item episode</description>
                        <posx>860</posx>
                        <posy>0</posy>
                        <width>80</width>
                        <height>30</height>
                        <font>font12</font>
                        <textcolor>DDFFFFFF</textcolor>
                        <selectedcolor>FFe2ff43</selectedcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Property(episode)]</label>
                    </control>
                    
                </focusedlayout>
            </control>

        </control> <!-- group 3000 -->
                               
        <control type="videowindow" id="4011">
            <posx>30</posx>
            <posy>60</posy>
            <width>230</width>
            <height>386</height>
            <visible>Player.HasVideo</visible>
        </control>
        
    </control>

    <!-- ============================================= -->
    <!--        H E A D E R                            -->          
    <!-- ============================================= -->              
    <control type="image">
        <description>Header Panel</description>
        <posx>0</posx>
        <posy>0</posy>
        <width>1280</width>
        <height>128</height>
        <texture>mb-header.png</texture>
    </control>

    <control type="image">
        <posx>40</posx>
        <posy>20</posy>
        <width>460</width>
        <height>90</height>
        <texture>mythbox.png</texture>
        <aspectratio align="left">keep</aspectratio>
        <animation effect="fade" time="200">WindowOpen</animation>
        <animation effect="fade" time="200">WindowClose</animation>
    </control>

    <control type="label">
        <description>screen title</description>
        <posx>70r</posx>
        <posy>25</posy>
        <width>400</width>
        <height>35</height>
        <align>right</align>
        <aligny>center</aligny>
        <textcolor>ffddddff</textcolor>
        <label>SCRIPT500</label>
        <animation effect="fade" time="200">WindowOpen</animation>
        <animation effect="fade" time="200">WindowClose</animation>
    </control>

    <control type="label">
        <description>date/time label</description>
        <posx>70r</posx>
        <posy>65</posy>
        <width>450</width>
        <height>35</height>
        <align>right</align>
        <aligny>center</aligny>
        <font>font12</font>
        <textcolor>ffffffff</textcolor>
        <label>$INFO[System.Date] [COLOR=88FFFFFF] |  $INFO[System.Time][/COLOR]</label>
        <animation effect="fade" time="200">WindowOpen</animation>
        <animation effect="fade" time="200">WindowClose</animation>
    </control>

<!-- Footer -->        

    <control type="label">
        <description>recording x of y</description>
        <posx>70r</posx>
        <posy>50r</posy>
        <width>200</width>
        <height>35</height>
        <align>right</align>
        <aligny>center</aligny>
        <font>font12</font>
        <textcolor>ffffffff</textcolor>
        <label>Recording $INFO[Container(600).ListItem.Property(index)] of $INFO[Container(600).NumItems]</label>
        <animation effect="fade" time="200">WindowOpen</animation>
        <animation effect="fade" time="200">WindowClose</animation>
        <visible>!substring(Window.Property(busy),true)</visible>
    </control>
    
<!-- Left nav panel -->    

    <control type="group">

        <animation effect="fade" time="200" condition="Skin.HasSetting(Animate_Skin)">WindowOpen</animation>
        <animation effect="fade" time="200" condition="Skin.HasSetting(Animate_Skin)">WindowClose</animation>
        <animation effect="slide" start="-400,0" end="0,0" time="300" tween="quadratic" easing="out" condition="!Skin.HasSetting(Animate_Skin)">WindowOpen</animation>
        <animation effect="slide" end="-400,0" start="0,0" time="300" tween="quadratic" easing="out" condition="!Skin.HasSetting(Animate_Skin)">WindowClose</animation>
    
        <control type="group" id="2000">
            <description>Buttons</description>
            <posx>0</posx>
            <posy>122</posy>
            <itemgap>1</itemgap>
<!--            <onup>2000</onup>-->
<!--            <ondown>2000</ondown>-->
<!--            <onleft>600</onleft>-->
<!--            <onright>600</onright>-->
            
            <control type="button" id="251">
                <description>Sort by button</description>
                <posx>0</posx>
                <posy>0</posy>
                <width>285</width>
                <label>$INFO[Window.Property(sortBy)]</label>
                <align>left</align>
                <textoffsetx>40</textoffsetx>
                <texturefocus>button_focus.png</texturefocus>
                <texturenofocus>button_nofocus.png</texturenofocus>
                <pulseonselect>true</pulseonselect>
                <onleft>600</onleft>
                <onright>700</onright>
                <onup>250</onup>
                <ondown>250</ondown>
            </control>
            
            <control type="button" id="250">
                <description>Refresh button</description>
                <posx>0</posx>
                <posy>40</posy>
                <label>SCRIPT210</label>
                <width>285</width>
                <align>left</align>
                <textoffsetx>40</textoffsetx>
                <texturefocus>button_focus.png</texturefocus>
                <texturenofocus>button_nofocus.png</texturenofocus>
                <pulseonselect>true</pulseonselect>
                <onup>251</onup>
                <ondown>251</ondown>
                <onleft>600</onleft>
                <onright>700</onright>
            </control>
        </control>
            
        <control type="image">
            <posx>30</posx>
            <posy>190</posy>
            <width>230</width>
            <height>386</height>
            <aspectratio aligny="bottom">keep</aspectratio>
            <texture background="false">$INFO[Container(600).ListItem.Property(poster)]</texture>
            <fadetime>400</fadetime>
        </control>

        <control type="label">
            <description>poster size</description>
            <posx>40</posx>
            <posy>590</posy>
            <width>230</width>
            <height>40</height>
            <font>font10</font>
            <textcolor>88FFFFFF</textcolor>
            <label>$INFO[Container(600).ListItem.Property(posterSize)]</label>
        </control>
  
        <control type="image">
            <posx>30</posx>
            <posy>586</posy>
            <width>230</width>
            <height>386</height>
            <aspectratio aligny="top">keep</aspectratio>
            <texture background="false" flipy="true" diffuse="diffuse_mirror2.png">$INFO[Container(600).ListItem.Property(poster)]</texture>
            <fadetime>400</fadetime>
        </control>
        
    </control>

    <control type="multiimage">
        <description>window busy throbber</description>
        <posx>722</posx>
        <posy>340</posy>
        <width>100</width>
        <height>100</height>
        <imagepath>busy</imagepath>
        <timeperimage>50</timeperimage>
        <fadetime>0</fadetime>
        <visible>substring(Window.Property(busy),true)</visible>
        <animation effect="fade" time="250">VisibleChange</animation>    
    </control>
        
  </controls>
</window>
