<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window id="0">
    <defaultcontrol always="true">300</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <onload>RunScript(script.favourites)</onload>
    <onload>RunScript(script.skinshortcuts,type=buildxml&amp;mainmenuID=300&amp;group=mainmenu|movieshub|episodeshub)</onload>
    <onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(osd.usetheme)</onload>
    <onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(global.hidecirles)</onload>
    <onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(startup.init)</onload>
    <controls>
        <include>GlobalBackground</include>
        
        <include condition="Skin.HasSetting(home.vertical)">HomeVerticalMenu</include>
        
        <include condition="!Skin.HasSetting(home.vertical)">HomeHeader</include>
        <include condition="!Skin.HasSetting(home.vertical)">HomeNextRecording</include>
        <include condition="!Skin.HasSetting(home.vertical)">HomeWeatherWidget</include>
        <include condition="!Skin.HasSetting(home.vertical)">HomeNowPlaying</include>
        <include condition="!Skin.HasSetting(home.vertical)">HomeWidgetSelector</include>
        <include condition="!Skin.HasSetting(home.vertical)">HomeBackgroundPlaylist</include>

        <include condition="!Skin.HasSetting(home.vertical) + !Skin.HasSetting(home.classicwidgets)">HomeRow</include>
        <include condition="!Skin.HasSetting(home.vertical) + !Skin.HasSetting(home.classicwidgets)">HomeWidgetInfo</include>
        <include condition="!Skin.HasSetting(home.vertical) + Skin.HasSetting(home.classicwidgets)">HomeClassicWidgets</include>
        
        <include condition="!Skin.HasSetting(home.vertical) + Skin.HasSetting(home.submenu2) + !Skin.HasSetting(home.showicons)">HomeSubMenu2</include>
        <include condition="!Skin.HasSetting(home.vertical) + [!Skin.HasSetting(home.submenu2) | Skin.HasSetting(home.showicons)]">HomeSubMenu</include>

        <control type="group">
            <include>Animation.FadeIn</include>
            <include>Animation.FadeOut</include>
            <visible>Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-VideoList.xml)</visible>
            <include condition="!Skin.HasSetting(home.vertical)">GlobalBackgroundExtended</include>
            <include condition="!Skin.HasSetting(home.vertical)">Furniture_Header</include>
            <include condition="!Skin.HasSetting(home.vertical)">Furniture_NowPlaying</include>
            <include condition="!Skin.HasSetting(home.vertical)">Furniture_Clock</include>
            <include condition="!Skin.HasSetting(home.vertical)">Furniture_Weather</include>
        </control>
    </controls>
</window>
