<?xml version="1.0" encoding="utf-8"?>
<window id="0">
    <include condition="!Skin.HasSetting(BlackGlassMode)|Skin.HasSetting(DisableSlidingAnimations)">OpenClose</include>
    <defaultcontrol always="true">300</defaultcontrol>
    <onload condition="System.HasAddon(plugin.video.plexbmc) + Skin.HasSetting(plexbmc)">RunScript(plugin.video.plexbmc,amberskin,nocat)</onload>
    <onload>RunScript(script.skinshortcuts,type=buildxml&amp;mainmenuID=300&amp;levels=0)</onload>
    <onload condition="!Skin.HasSetting(Hide.Favourites)">RunScript(script.favourites)</onload>
    <onload condition="System.HasAddon(script.skin.helper.service) + System.HasAddon(script.skin.helper.service) + String.IsEmpty(Skin.String(SkinHelper.RandomFanartDelay))">Skin.SetString(SkinHelper.RandomFanartDelay,9)</onload>
    <controls>
        <!--DUMMY BUTTON-->
        <control type="button" id="378432">
            <visible>[
                [Control.isvisible(700011)|Control.isvisible(700012)|Control.isvisible(700013)|Control.isvisible(700014)|Control.isvisible(700015)|
                Control.isvisible(700021)|Control.isvisible(700022)|Control.isvisible(700023)|Control.isvisible(700024)|Control.isvisible(700025)|
                Control.isvisible(700031)|Control.isvisible(700032)|Control.isvisible(700033)|Control.isvisible(700034)|Control.isvisible(700045)|
                Control.isvisible(700041)|Control.isvisible(700042)|Control.isvisible(700043)|Control.isvisible(700044)|Control.isvisible(700045)|
                Control.isvisible(700051)|Control.isvisible(700052)|Control.isvisible(700053)|Control.isvisible(700054)|Control.isvisible(700055)]|
                [Skin.HasSetting(plexbmc)+[
                [[Integer.IsGreater(Container(900).NumItems,0)]+String.IsEqual(Container(300).ListItem.Property(type),photo)]|
                [[Integer.IsGreater(Container(901).NumItems,0)]+String.IsEqual(Container(300).ListItem.Label,$LOCALIZE[31010])]|
                [[Integer.IsGreater(Container(311).NumItems,0)|Integer.IsGreater(Container(312).NumItems,0)]+String.IsEqual(Container(300).ListItem.Property(type),movie)]|
                [[Integer.IsGreater(Container(511).NumItems,0)]+String.IsEqual(Container(300).ListItem.Property(type),artist)]|
                [[Integer.IsGreater(Container(212).NumItems,0)]+Container(300).HasFocus(50)]|
                [[Integer.IsGreater(Container(411).NumItems,0)|Integer.IsGreater(Container(412).NumItems,0)|Integer.IsGreater(Container(413).NumItems,0)]+String.IsEqual(Container(300).ListItem.Property(type),show)]
                ]]
                ]</visible>
            <include>HiddenButton</include>
        </control>
        <!--DUMMY BUTTON-->
        <control type="button" id="378433">
            <visible>[control.hasfocus(212)|
                control.hasfocus(311)|
                control.hasfocus(312)|
                control.hasfocus(411)|
                control.hasfocus(412)|
                control.hasfocus(413)|
                control.hasfocus(511)|
                control.hasfocus(900)|
                control.hasfocus(901)|
                control.hasfocus(700011)|
                control.hasfocus(700012)|
                control.hasfocus(700013)|
                control.hasfocus(700014)|
                control.hasfocus(700015)|
                control.hasfocus(700021)|
                control.hasfocus(700022)|
                control.hasfocus(700023)|
                control.hasfocus(700024)|
                control.hasfocus(700025)|
                control.hasfocus(700031)|
                control.hasfocus(700032)|
                control.hasfocus(700033)|
                control.hasfocus(700034)|
                control.hasfocus(700035)|
                control.hasfocus(700041)|
                control.hasfocus(700042)|
                control.hasfocus(700043)|
                control.hasfocus(700044)|
                control.hasfocus(700045)|
                control.hasfocus(700051)|
                control.hasfocus(700052)|
                control.hasfocus(700053)|
                control.hasfocus(700054)|
                control.hasfocus(700055)]</visible>
            <include>HiddenButton</include>
        </control>
        <include>Fanart_Art</include>
        <control type="multiimage">
            <visible>ControlGroup(700).HasFocus</visible>
            <include>VisibleFadeEffect</include>
            <include>KenBurns</include>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <timeperimage>9000</timeperimage>
            <randomize>true</randomize>
            <fadetime>400</fadetime>
            <aspectratio aligny="top">scale</aspectratio>
            <imagepath background="true">$VAR[WidgetsBackgrounds]</imagepath>
        </control>
        <include>Player_Show</include>
        <control type="image">
            <visible>Skin.HasSetting(BlackGlassMode)</visible>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <include>BgOverlayFanart</include>
            <include>OverlayBG</include>
        </control>
        <control type="image">
            <visible>!Skin.HasSetting(BlackGlassMode)</visible>
            <posx>0</posx>
            <posy>-3</posy>
            <texture border="10">common/basichome_upper_gradient.png</texture>
            <width>1920</width>
            <height>240</height>
        </control>
        <control type="group">
            <animation effect="fade" start="0" end="100" time="1000" condition="Window.Previous(Startup.xml)">Conditional</animation>
            <animation effect="fade" start="0" end="100" time="200" condition="!Window.Previous(Startup.xml)">Conditional</animation>
            <include condition="Skin.HasSetting(VerticalHome)">Vertical_Home_Layout</include>
            <include condition="!Skin.HasSetting(VerticalHome)+!Skin.HasSetting(BlackGlassMode)">Horizontal_Home_Layout</include>
            <include condition="!Skin.HasSetting(VerticalHome)+Skin.HasSetting(BlackGlassMode)">Horizontal_Home_Layout_BG</include>
        </control>
        <include>Time</include>
        <control type="group">
            <visible>!Skin.HasSetting(VerticalHome)</visible>
            <include>Icon_Fade</include>
            <control type="image">
                <include condition="Skin.HasSetting(BlackGlassMode)+!Skin.HasSetting(DisableSlidingAnimations)">OpenCloseSlideRight</include>
                <posx>15</posx>
                <posy>16</posy>
                <width>57</width>
                <height>54</height>
                <texture>common/logo2.png</texture>
                <aspectratio align="left">keep</aspectratio>
                <colordiffuse>WindowTitleColor</colordiffuse>
            </control>
            <control type="label">
                <include condition="Skin.HasSetting(BlackGlassMode)+!Skin.HasSetting(DisableSlidingAnimations)">OpenCloseSlideRight</include>
                <posx>88</posx>
                <include>WindowTitle</include>
                <label>$VAR[HomeTitles]</label>
            </control>
            <control type="label">
                <include condition="Skin.HasSetting(BlackGlassMode)+!Skin.HasSetting(DisableSlidingAnimations)">OpenCloseSlideRight</include>
                <posx>88</posx>
                <include>WindowTitleSub</include>
                <label>$VAR[HomeSubTitles]</label>
            </control>
        </control>
    </controls>
</window>
