<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window>
    <defaultcontrol always="true">9000</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <onload>SetProperty(150_onback,SetFocus(9000))</onload>
    <onload>SetProperty(350_onback,SetFocus(9000))</onload>
    <onload>SetProperty(750_onback,SetFocus(9000))</onload>
    <onload>SetProperty(1000_onback,SetFocus(9000))</onload>
    <onload>SetProperty(1150_onback,SetFocus(9000))</onload>
    <onload>ClearProperty(content)</onload>
    <onload>Dialog.Close(2003)</onload>
    <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>
        </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>
      
            <!-- Side Poster -->
            <control type="group">
                <animation effect="slide" start="-1920" end="0" delay="300" 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>
                    <control type="image">
                        <top>PosterH</top>
                        <width>PosterW</width>
                        <height>PosterH</height>
                        <fadetime>100</fadetime>
                        <aspectratio align="center" aligny="center" scalediffuse="false">scale</aspectratio>
                        <texture flipy="true" diffuse="diffuse/listposter-ref.png" background="true">$INFO[Window.Property(movie.thumb)]</texture>
                        <visible>Skin.HasSetting(show.reflections)</visible>
                    </control>
                    <control type="image">
                        <centertop>PosterH</centertop>
                        <width>PosterW</width>
                        <height>48</height>
                        <aspectratio>stretch</aspectratio>
                        <texture>diffuse/shadowspot.png</texture>
                        
                    </control>
                    <control type="image">
                        <width>PosterW</width>
                        <height>PosterH</height>
                        <texture border="5" colordiffuse="FF181818">common/box.png</texture>
                    </control>
                    <control type="image">
                        <width>PosterW</width>
                        <height>PosterH</height>
                        <fadetime>100</fadetime>
                        <aspectratio align="center" aligny="center" scalediffuse="false">scale</aspectratio>
                        <texture diffuse="diffuse/listposter.png" background="true">$INFO[Window.Property(movie.thumb)]</texture>
                    </control>
                    <control type="image">
                        <left>-24</left>
                        <top>-24</top>
                        <width>PosterShadowW</width>
                        <height>PosterShadowH</height>
                        <texture border="32">common/shadow-24.png</texture>
                    </control>
                </control>
            </control>

            <!-- Right Side Info -->
            <control type="group">
                <animation effect="slide" start="1920" end="0" delay="300" 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">
                    <include>Animation.DelayFadeIn</include>
                    <visible>!IsEmpty(Window.Property(content))</visible>
                    <visible>[Control.HasFocus(150) + !Container(150).IsUpdating] | [Control.HasFocus(250) + !Container(250).IsUpdating] | [Control.HasFocus(350) + !Container(350).IsUpdating] | [Control.HasFocus(550) + !Container(550).IsUpdating] | [Control.HasFocus(750) + !Container(750).IsUpdating] | [Control.HasFocus(1000) + !Container(1000).IsUpdating] | [Control.HasFocus(1150) + !Container(1150).IsUpdating] | [Control.HasFocus(50) + !Container(50).IsUpdating] | [Control.HasFocus(9501) + !Container(9501).IsUpdating]</visible>
                    <centerbottom>366</centerbottom>
                    <height>16</height>
                    <control type="image">
                        <centerleft>524</centerleft>
                        <width>16</width>
                        <height>16</height>
                        <texture colordiffuse="Dark3" flipx="true">common/arrow-small-right.png</texture>
                    </control>
                    <control type="image">
                        <centerright>64</centerright>
                        <width>16</width>
                        <height>16</height>
                        <texture colordiffuse="Dark3" flipx="false">common/arrow-small-right.png</texture>
                    </control>
                </control>

                <!-- Control Buttons -->
                <control type="grouplist" id="9000">
                    <visible allowhiddenfocus="true">ControlGroup(9000).HasFocus()</visible>
                    <bottom>224</bottom>
                    <left>540</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 ="8">
                        <description>Play</description>
                        <label>208</label>
                        <include>DefInfoButtons</include>
                        <visible>!IsEmpty(Window.Property(movie.DBID)) + !Stringcompare(Window.Property(Type),tvshow)</visible>
                        <visible>IsEmpty(Window(home).Property(globalsearch))</visible>
                    </control>

                    <control type="button" id ="120">
                        <description>Browse</description>
                        <label>21385</label>
                        <include>DefInfoButtons</include>
                        <visible>!IsEmpty(Window.Property(movie.DBID)) + Stringcompare(Window.Property(Type),tvshow)</visible>
                        <visible>IsEmpty(Window(home).Property(globalsearch))</visible>
                    </control>

                    <control type="button" id ="9002">
                        <description>Cast</description>
                        <label>206</label>
                        <include>DefInfoButtons</include>
                        <onclick>SetProperty(content,1000)</onclick>
                        <onclick>SetFocus(1000)</onclick>
                    </control>

                    <control type="button" id ="9003">
                        <description>Similar</description>
                        <label>31206</label>
                        <include>DefInfoButtons</include>
                        <onclick>SetProperty(content,150)</onclick>
                        <onclick>SetFocus(150)</onclick>
                        
                    </control>
                    <control type="button" id ="9004">
                        <description>Youtube</description>
                        <label>$ADDON[script.extendedinfo 32118]</label>
                        <include>DefInfoButtons</include>
                        <onclick>SetProperty(content,350)</onclick>
                        <onclick>SetFocus(350)</onclick>
                    </control>
                    <control type="button" id ="9005">
                        <description>Crew</description>
                        <label>$ADDON[script.extendedinfo 32115]</label>
                        <include>DefInfoButtons</include>
                        <onclick>SetProperty(content,750)</onclick>
                        <onclick>SetFocus(750)</onclick>
                    </control>  
                </control>

                <!-- List Headers -->
                <control type="label">
                    <visible>stringcompare(Window.Property(content),1000)</visible>
                    <visible>Control.HasFocus(1000)</visible>
                    <left>540</left>
                    <right>SidePad</right>
                    <top>260</top>
                    <description>Header Label</description>
                    <textcolor>Dark2</textcolor>
                    <font>Small</font>
                    <label>$INFO[Window.Property(movie.title)] $LOCALIZE[206]</label>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <right>SidePad</right>
                    <left>540</left>
                    <bottom>264</bottom>
                    <height>50</height>
                    <font>Mini</font>
                    <scroll>true</scroll>
                    <textcolor>Dark3</textcolor>
                    <label>$INFO[Container(1000).NumItems,, $LOCALIZE[31101]  •  ]$INFO[Container(1000).CurrentPage,, $LOCALIZE[20163] ]$INFO[Container(1000).NumPages,, $LOCALIZE[31243]]</label>
                    <aligny>center</aligny>
                    <align>right</align>
                    <visible>Control.HasFocus(1000)</visible>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <visible>stringcompare(Window.Property(content),150)</visible>
                    <visible>Control.HasFocus(150)</visible>
                    <left>540</left>
                    <right>SidePad</right>
                    <top>260</top>
                    <description>Header Label</description>
                    <textcolor>Dark2</textcolor>
                    <font>Small</font>
                    <label>$INFO[Window.Property(movie.title),$LOCALIZE[31204] ,]</label>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <right>SidePad</right>
                    <left>540</left>
                    <bottom>264</bottom>
                    <height>50</height>
                    <font>Mini</font>
                    <scroll>true</scroll>
                    <textcolor>Dark3</textcolor>
                    <label>$INFO[Container(150).NumItems,, $LOCALIZE[31101]  •  ]$INFO[Container(150).CurrentPage,, $LOCALIZE[20163] ]$INFO[Container(150).NumPages,, $LOCALIZE[31243]]</label>
                    <aligny>center</aligny>
                    <align>right</align>
                    <visible>Control.HasFocus(150)</visible>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <visible>stringcompare(Window.Property(content),350)</visible>
                    <visible>Control.HasFocus(350)</visible>
                    <left>540</left>
                    <right>SidePad</right>
                    <top>260</top>
                    <description>Header Label</description>
                    <textcolor>Dark2</textcolor>
                    <font>Small</font>
                    <label>$INFO[Window.Property(movie.title)] $ADDON[script.extendedinfo 32118]</label>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <right>SidePad</right>
                    <left>540</left>
                    <bottom>264</bottom>
                    <height>50</height>
                    <font>Mini</font>
                    <scroll>true</scroll>
                    <textcolor>Dark3</textcolor>
                    <label>$INFO[Container(350).NumItems,, $LOCALIZE[31101]  •  ]$INFO[Container(350).CurrentPage,, $LOCALIZE[20163] ]$INFO[Container(350).NumPages,, $LOCALIZE[31243]]</label>
                    <aligny>center</aligny>
                    <align>right</align>
                    <visible>Control.HasFocus(350)</visible>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <visible>stringcompare(Window.Property(content),750)</visible>
                    <visible>Control.HasFocus(750)</visible>
                    <left>540</left>
                    <right>SidePad</right>
                    <top>260</top>
                    <description>Header Label</description>
                    <textcolor>Dark2</textcolor>
                    <font>Small</font>
                    <label>$INFO[Window.Property(movie.title)] $ADDON[script.extendedinfo 32115]</label>
                    <include>Animation.DelayFadeIn</include>
                </control>
                <control type="label">
                    <right>SidePad</right>
                    <left>540</left>
                    <bottom>264</bottom>
                    <height>50</height>
                    <font>Mini</font>
                    <scroll>true</scroll>
                    <textcolor>Dark3</textcolor>
                    <label>$INFO[Container(750).NumItems,, $LOCALIZE[31101]  •  ]$INFO[Container(750).CurrentPage,, $LOCALIZE[20163] ]$INFO[Container(750).NumPages,, $LOCALIZE[31243]]</label>
                    <aligny>center</aligny>
                    <align>right</align>
                    <visible>Control.HasFocus(750)</visible>
                    <include>Animation.DelayFadeIn</include>
                </control>

                <!-- Info -->
                <control type="group">
                    <left>540</left>
                    <right>SidePad</right>
                    <bottom>224</bottom>
                    <top>PosterPad</top>
                    <visible>IsEmpty(Window.Property(content))</visible>
                    <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[Window.Property(movie.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[Window.Property(movie.Tagline)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[345][/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[Window.Property(movie.ReleaseDate),, ]$INFO[Window.Property(movie.Status),(,)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[563][/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[Window.Property(movie.mpaa)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</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[Window.Property(movie.duration),, $LOCALIZE[12391]]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$ADDON[script.extendedinfo 32109][/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[Window.Property(movie.Budget),$,]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$ADDON[script.extendedinfo 32108][/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[Window.Property(movie.Revenue),$,]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[572][/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[Window.Property(movie.studio)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</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[Window.Property(movie.genre)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[B]$LOCALIZE[20339][/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[Window.Property(movie.director)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
                      
                        <control type="label">
                            <width>100%</width>
                            <height>36</height>
                            <font>Tiny</font>
                            <textcolor>Dark1</textcolor>
                            <label></label>
                            <aligny>center</aligny>
                        </control>
                        <control type="textbox">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <width>100%</width>
                            <height>94</height>
                            <font>Tiny</font>
                            <textcolor>Dark2</textcolor>
                            <align>justify</align>
                            <label>$INFO[Window.Property(movie.plot)]</label>
                        </control>
                        
                    </control>
                </control>

                <control type="list" id="150">
                    <visible allowhiddenfocus="true">StringCompare(Window.Property(content),150)</visible>
                    <onleft>150</onleft>
                    <onright>150</onright>
                    <include>DefExtendedInfoList</include>
                </control>
                <control type="list" id="250"><visible>false</visible></control>
                <control type="list" id="350">
                    <visible allowhiddenfocus="true">StringCompare(Window.Property(content),350)</visible>
                    <onleft>350</onleft>
                    <onright>350</onright>
                    <include>DefExtendedInfoListWide</include>
                </control>
                <control type="list" id="450"><visible>false</visible></control>
                <control type="list" id="550"><visible>false</visible></control>
                <control type="list" id="650"><visible>false</visible></control>
                <control type="list" id="750">
                    <visible allowhiddenfocus="true">StringCompare(Window.Property(content),750)</visible>
                    <onleft>750</onleft>
                    <onright>750</onright>
                    <include>DefExtendedInfoList</include>
                </control>
                <control type="list" id="850"><visible>false</visible></control>
                <control type="list" id="950"><visible>false</visible></control>
                <control type="list" id="1000">
                    <visible allowhiddenfocus="true">StringCompare(Window.Property(content),1000)</visible>
                    <onleft>1000</onleft>
                    <onright>1000</onright>
                    <include>DefExtendedInfoList</include>
                </control>
                <control type="list" id="1050"><visible>false</visible></control>
                <control type="list" id="1150">
                    <visible allowhiddenfocus="true">StringCompare(Window.Property(content),1150)</visible>
                    <onleft>1150</onleft>
                    <onright>1150</onright>
                    <include>DefExtendedInfoListWide</include>
                </control>
                <control type="list" id="1250"><visible>false</visible></control>
                <control type="list" id="1350"><visible>false</visible></control>
                <control type="list" id="1450"><visible>false</visible></control>
            </control>
        </control>
    </controls>

</window>
