<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window id="2003">
    <defaultcontrol always="true">5</defaultcontrol>
    <allowoverlay>no</allowoverlay>

    <controls>
        <control type="image">
            <width>100%</width>
            <height>100%</height>
            <animation effect="fade" start="100" end="90" condition="Skin.HasSetting(osd.usetheme)">Conditional</animation>
            <texture colordiffuse="$VAR[OSDPanel]">common/white.png</texture>
            <visible>Window.IsVisible(fullscreenvideo)</visible>
            <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml)</visible>
            <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)</visible>
        </control>
        <control type="group">
            <animation type="Conditional" reversible="true" condition="Window.IsVisible(FileBrowser.xml) | Window.IsVisible(DialogProgress.xml) | Window.IsVisible(DialogYesNo.xml) | Window.IsVisible(DialogOK.xml) | Window.IsVisible(DialogSelect.xml) | Window.IsVisible(DialogContextMenu.xml) | Window.IsVisible(DialogButtonMenu.xml)">
                <effect type="zoom" end="95" start="100" time="200" center="auto" tween="quadratic" easing="in" />
            </animation>

            <!-- Poster-->
            <control type="group">
                <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml)</visible>
                <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)</visible>
                <animation effect="slide" start="-1920" end="0" delay="0" time="300" tween="quadratic" easing="out">WindowOpen</animation>
                <animation effect="slide" start="0" end="-1920" time="300" tween="quadratic" easing="in">WindowClose</animation>
                <animation effect="slide" start="-1920" end="0" delay="0" time="300" tween="quadratic" easing="out">Visible</animation>
                <animation effect="slide" start="0" end="-1920" time="300" tween="quadratic" easing="in">Hidden</animation>
                <control type="group" description="Poster">
                    <left>SidePad</left>
                    <top>PosterPad</top>
                    <visible>!IsEmpty(ListItem.Icon)</visible>
               
                    <control type="image">
                        <centertop>PosterH</centertop>
                        <width>PosterH</width>
                        <height>48</height>
                        <aspectratio>stretch</aspectratio>
                        <texture>diffuse/shadowspot.png</texture>
                        
                    </control>
                    <control type="image">
                        <width>PosterH</width>
                        <height>PosterH</height>
                        <texture border="5" colordiffuse="FF181818">common/box.png</texture>
                    </control>
                    <control type="image">
                        <width>PosterH</width>
                        <height>PosterH</height>
                        <fadetime>100</fadetime>
                        <aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
                        <texture diffuse="diffuse/listposter.png" background="true">$VAR[PosterImage]</texture>
                    </control>
                    <control type="image">
                        <left>-24</left>
                        <top>-24</top>
                        <width>PosterShadowH</width>
                        <height>PosterShadowH</height>
                        <texture border="32">common/shadow-24.png</texture>
                    </control>
                </control>
            </control>

            <!-- Main -->
            <control type="group">
                <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml)</visible>
                <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)</visible>
                <animation effect="slide" start="1920" end="0" delay="0" time="300" tween="quadratic" easing="out">WindowOpen</animation>
                <animation effect="slide" start="0" end="1920" time="300" tween="quadratic" easing="in">WindowClose</animation>
                <animation effect="slide" start="1920" end="0" delay="0" time="300" tween="quadratic" easing="out">Visible</animation>
                <animation effect="slide" start="0" end="1920" time="300" tween="quadratic" easing="in">Hidden</animation>

                <!-- Control Buttons -->
                <control type="grouplist" id="9000">
                    <bottom>224</bottom>
                    <left>ListSquareX</left>
                    <right>SidePad</right>
                    <height>68</height>
                    <bottom>33</bottom>
                    <itemgap>16</itemgap>
                    <ondown>9000</ondown>
                    <onup condition="Control.IsVisible(50)">51</onup>
                    <onup condition="Control.IsVisible(9501)">9501</onup>
                    <orientation>horizontal</orientation>

                    <control type="button" id ="9001">
                        <description>ExtInfo</description>
                        <label>31147</label>
                        <width>260</width>
                        <include>DefInfoButtons</include>
                        <onclick>RunScript(script.extendedinfo,info=extendedtvinfo,name=$INFO[ListItem.Label])</onclick>
                    </control>

                    <control type="button" id ="5">
                        <description>ExtInfo</description>
                        <label>19165</label>
                        <width>260</width>
                        <include>DefInfoButtons</include>
                    </control>

                    <control type="button" id ="6">
                        <description>Rec</description>
                        <label>450</label>
                        <width>260</width>
                        <include>DefInfoButtons</include>
                    </control>

                    <control type="button" id ="7">
                        <description>Ok</description>
                        <label>186</label>
                        <width>260</width>
                        <include>DefInfoButtons</include>
                    </control>

                </control>

                

                <!-- Info -->
                <control type="group">
                    <left>ListSquareX</left>
                    <right>SidePad</right>
                    <bottom>224</bottom>
                    <top>PosterPad</top>
                    <control type="grouplist">
                        <left>30</left>
                        <right>30</right>
                        <itemgap>0</itemgap>
                        <control type="label">
                            <description>Header Label</description>
                            <textcolor>Dark1</textcolor>
                            <include>DefDialogInfoHeader</include>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                        <control type="group">
                            <height>50</height>
                            <control type="label">
                                <posy>-10</posy>
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <label fallback="19055">$INFO[ListItem.ChannelName]$INFO[ListItem.ChannelNumber, (,)]$VAR[PVRInfoStatus,  ,]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        
                        <control type="group">
                            <height>36</height>
                            <control type="label">
                                <width>150</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[2050][/B]</label>
                                <aligny>center</aligny>
                            </control>
                            <control type="label">
                                <left>150</left>
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <label fallback="19055">$INFO[ListItem.Duration,, $LOCALIZE[12391]]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <height>36</height>
                            <control type="label">
                                <width>150</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[19126][/B]</label>
                                <aligny>center</aligny>
                            </control>
                            <control type="label">
                                <left>150</left>
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <label fallback="19055">$INFO[ListItem.StartDate] - $INFO[ListItem.StartTime]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <height>36</height>
                            <control type="label">
                                <width>150</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[19127][/B]</label>
                                <aligny>center</aligny>
                            </control>
                            <control type="label">
                                <left>150</left>
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <label fallback="19055">$INFO[ListItem.EndDate] - $INFO[ListItem.EndTime]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <height>36</height>
                            <control type="label">
                                <width>150</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[515][/B]</label>
                                <aligny>center</aligny>
                            </control>
                            <control type="label">
                                <left>150</left>
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <label fallback="19055">$INFO[ListItem.Genre]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <height>24</height>
                        </control>
                        <control type="group">
                            <height>auto</height>
                            <width>100%</width>
                            <control type="textbox">
                                <left>0</left>
                                <right>0</right>
                                <height>240</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <scroll>false</scroll>
                                <align>justify</align>
                                <info>ListItem.Plot</info>
                                <aligny>top</aligny>
                            </control>
                        </control>
                    </control>
                </control>

               
            </control>
        </control>
    </controls>

</window>
