<window>
  <id>3007</id>
  <defaultcontrol>600</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       -->          
        <!-- ============================================= -->              
  
        <control type="image">
            <posx>20</posx>
            <posy>100</posy>
            <width>1260</width>
            <height>595</height>
            <texture border="50,0,0,45">vpanel1.png</texture>
        </control>

        <!--   
        <control type="image">
            <posx>230</posx>
            <posy>550</posy>
            <width>1260</width>
            <height>465</height>
            <texture border="50,50,0,50" flipx="false" flipy="true">vpanel1.png</texture>
        </control>
        -->
        
        <control type="videowindow" id="4011">
            <posx>30</posx>
            <posy>60</posy>
            <width>230</width>
            <height>386</height>
            <visible>Player.HasVideo</visible>
        </control>
        
        <control type="group">
            <posx>35</posx>
            <posy>535</posy>

            <control type="image">
                <posy>0</posy>
                <posx>75</posx>
                <width>1140</width>
                <height>120</height>
                <!-- <colordiffuse>66FFFFFF</colordiffuse>  -->
                <texture border="5" flipy="true" diffuse="mb-diffuse-mirror.png">black-back.png</texture>
            </control>

            <control type="image">
                <posx>615</posx>
                <posy>0</posy>
                <width>600</width>
                <height>120</height>
                <aspectratio>scale</aspectratio>
                <texture diffuse="mb-diffuse-left.png">$INFO[Window.Property(banner)]</texture>
            </control>
            
            <control type="label">
                <posy>0</posy>
                <width>1100</width>
                <label>[B]$INFO[Window.Property(title)][/B]</label>
            </control>
            <control type="label">
                <posy>30</posy>
                <info>Window.Property(category)</info>
                <visible>false</visible>
            </control>
            <control type="label">
                <posy>30</posy>
                <posx>275</posx>
                <width>925</width>
                <info>Window.Property(description)</info>
                <wrapmultiline>true</wrapmultiline>
            </control>
            <control type="label">
                <posy>30</posy>
                <info>Window.Property(airtime)</info>
            </control>
            <control type="label">
                <posy>60</posy>
                <info>Window.Property(duration)</info>
                <visible>false</visible>
            </control>
            <control type="label">
                <posy>60</posy>
                <info>Window.Property(originalAirDate)</info>
            </control>
            <control type="label">
                <posy>90</posy>
                <info>Window.Property(seasonAndEpisode)</info>
            </control>
        </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>ffffffff</textcolor>
      <label>SCRIPT800</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>
        
    <!-- ============================================= -->
    <!--  N A V     B U T T O N S                      -->          
    <!-- ============================================= -->              
    <control type="grouplist" 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>
        
        <!-- Copy of include Window_OpenClose_Left_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="-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="button" id="250">
            <description>Refresh button</description>
            <label>Refresh</label>
            <width>285</width>
            <align>left</align>
            <textoffsetx>40</textoffsetx>
            <texturefocus>button_focus.png</texturefocus>
            <texturenofocus>button_nofocus.png</texturenofocus>
            <pulseonselect>true</pulseonselect>
            <enable>!substring(Window.Property(busy),true)</enable>
        </control>
        -->
         
    </control>
    
    <control type="image">
        <posx>30</posx>
        <posy>190</posy>
        <width>230</width>
        <height>386</height>
        <aspectratio aligny="bottom">keep</aspectratio>
        <!--info aligny="bottom">Container(600).ListItem.Property(poster)</info-->
        <texture>$INFO[Container(600).ListItem.Property(poster)]</texture>
        <animation effect="fade" time="500">WindowOpen</animation>
        <animation effect="fade" time="500">WindowClose</animation>
        <animation effect="fade" time="200">Visible</animation>
        <animation effect="fade" time="200">Hidden</animation>
        <visible>!Player.HasVideo</visible>
    </control>

    <control type="image">
        <posx>30</posx>
        <posy>586</posy>
        <width>230</width>
        <height>386</height>
        <aspectratio aligny="top">keep</aspectratio>
        <texture flipy="true" diffuse="diffuse_mirror2.png">$INFO[Container(600).ListItem.Property(poster)]</texture>
        <animation effect="fade" time="500">WindowOpen</animation>
        <animation effect="fade" time="500">WindowClose</animation>
        <animation effect="fade" time="200">Visible</animation>
        <animation effect="fade" time="200">Hidden</animation>
        <visible>!Player.HasVideo</visible>
    </control>

    <control type="multiimage">
        <description>Busy animation</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) + !Player.HasVideo</visible>
        <animation effect="fade" time="250">VisibleChange</animation>    
    </control>
    
  </controls>
</window>
