<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="CommonBackground">
        <control type="group">
			<include>GlobalFanart</include>
            <include condition="Window.IsActive(script-NextAired-TVGuide.xml) | Window.IsActive(script-NextAired-TVGuide2.xml)">TVShowNextAiredBackground</include>
            <include condition="Window.IsActive(weather)">WeatherBackground</include>
            <include condition="Window.IsActive(script-globalsearch-main.xml)">GlobalSearchBG</include>
            <control type="visualisation">
                <include>FullscreenDimensions</include>
                <visible>Player.HasAudio + !Skin.HasSetting(Disable.ShowBackgroundVis) + !Window.IsVisible(TVChannels) + !Window.IsVisible(RadioChannels) + !SlideShow.IsActive</visible>
                <visible>String.IsEmpty(Window(Videos).Property(PlayingBackgroundMedia))</visible>
            </control>
            <control type="group">
                <visible>Player.HasVideo + !Skin.HasSetting(Disable.ShowBackgroundVideo) + !Window.IsVisible(TVChannels) + !Window.IsVisible(RadioChannels) + !SlideShow.IsActive + !Control.IsVisible(909)</visible>
                <control type="image">
                    <include>FullscreenDimensions</include>
                    <texture>black.png</texture>
                </control>
                <control type="videowindow">
                    <include>FullscreenDimensions</include>
                </control>
            </control>
        </control>
        <control type="image">
            <visible>!Window.IsVisible(script-globalsearch-main.xml) + !Control.IsVisible(59) + !Control.IsVisible(501) + [![Window.IsVisible(movieinformation) | Window.IsVisible(musicinformation) | Window.IsVisible(songinformation)] | Window.IsVisible(MyPlaylist.xml)]</visible>
            <include>FullscreenDimensions</include>
            <texture>$VAR[CommonBackgroundOverlay]</texture>
            <colordiffuse>BackgroundColor</colordiffuse>
        </control>
    </include>
    <include name="GlobalFanart">
        <control type="list" id="9033">
            <include>HiddenList</include>
            <content>
                <include condition="Window.IsActive(pictures)">PicturesFallback</include>
                <include condition="Window.IsActive(music) | Window.IsActive(musicplaylist)">MusicFallback</include>
                <include condition="Window.IsActive(tvchannels) | Window.IsActive(tvrecordings) | Window.IsActive(tvguide) | Window.IsActive(tvtimers) | Window.IsActive(tvtimerrules) | Window.IsActive(tvsearch)">LiveTVFallback</include>
                <include condition="Window.IsActive(programs) | Window.IsActive(addonbrowser) | Window.IsActive(1119)">AppsFallback</include>
                <include condition="Window.IsActive(SettingsCategory.xml) | Window.IsActive(systeminfo) | Window.IsActive(skinsettings) | Window.IsActive(settings) | Window.IsActive(filemanager) | Window.IsActive(eventlog) | Window.IsActive(profiles)">SystemFallback</include>
                <include condition="Window.IsActive(weather)">WeatherFallback</include>
                <include condition="Window.IsActive(videos) | Window.IsActive(videoplaylist)">VideoFallback</include>
                <item>
                    <thumb>$INFO[Window(home).Property(fakelabel)]</thumb>
                    <visible>no</visible>
                </item>
            </content>
        </control>
		<control type="multiimage">
            <description>Normal Default Background Image</description>
            <include>FullscreenDimensions</include>
            <include>BackgroundFadeAnimation</include>
            <imagepath fallback="special://skin/backgrounds/default_bg.jpg" background="true">$VAR[GlobalBackgroundVar]</imagepath>
        </control>
    </include>
    <include name="TVShowNextAiredBackground">
        <control type="group">
            <visible>!String.IsEmpty(Window(home).Property(TVGuide.BackgroundFanart))</visible>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(200).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(200)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(201).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(201)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(202).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(202)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(203).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(203)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(204).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(204)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(205).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(205)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
            <control type="image">
                <include>FullscreenDimensions</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container(206).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus(206)</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
        </control>
    </include>
    <include name="WeatherBackground">
        <control type="multiimage">
            <include>FullscreenDimensions</include>
            <imagepath background="true">$INFO[Skin.String(weatherfanart.path)]$INFO[Window(weather).Property(Current.FanartCode)]$VAR[WeatherFanArtExtension]</imagepath>
            <timeperimage>10000</timeperimage>
            <randomize>true</randomize>
            <include>BackgroundFadeAnimation</include>
        </control>
    </include>
    <include name="MusicFallback">
        <item>
            <thumb>$INFO[Skin.String(Music.Fallback)]</thumb>
        </item>
    </include>
    <include name="SystemFallback">
        <item>
            <thumb>$INFO[Skin.String(System.Fallback)]</thumb>
        </item>
    </include>
    <include name="LiveTVFallback">
        <item>
            <thumb>$INFO[Skin.String(LiveTV.Fallback)]</thumb>
        </item>
    </include>
    <include name="PicturesFallback">
        <item>
            <thumb>$INFO[Skin.String(Pictures.Fallback)]</thumb>
        </item>
    </include>
    <include name="AppsFallback">
        <item>
            <thumb>$INFO[Skin.String(Apps.Fallback)]</thumb>
        </item>
    </include>
    <include name="WeatherFallback">
        <item>
            <thumb>$INFO[Skin.String(Weather.Fallback)]</thumb>
        </item>
    </include>
    <include name="VideoFallback">
        <item>
            <thumb>$INFO[Skin.String(Movies.Fallback)]</thumb>
            <visible>Container.Content(movies) | String.Contains(Container.FolderPath,library://video/movies/) | String.Contains(Container.FolderPath,videodb://movies/)</visible>
        </item>
        <item>
            <thumb>$INFO[Skin.String(TVShows.Fallback)]</thumb>
            <visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | String.Contains(Container.FolderPath,library://video/tvshows/) | String.Contains(Container.FolderPath,videodb://tvshows/)</visible>
        </item>
        <item>
            <thumb>$INFO[Skin.String(MusicVideos.Fallback)]</thumb>
            <visible>Container.Content(musicvideos) | String.Contains(Container.FolderPath,library://video/musicvideos/) | String.Contains(Container.FolderPath,videodb://musicvideos/)</visible>
        </item>
        <item>
            <thumb>$INFO[Skin.String(Videos.Fallback)]</thumb>
            <visible>![Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | Container.Content(movies) | Container.Content(musicvideos) | String.Contains(Container.FolderPath,library://video/movies/) | String.Contains(Container.FolderPath,library://video/tvshows/) | String.Contains(Container.FolderPath,library://video/musicvideos/) | String.Contains(Container.FolderPath,videodb://movies/) | String.Contains(Container.FolderPath,videodb://tvshows/) | String.Contains(Container.FolderPath,videodb://musicvideos/)]</visible>
        </item>
    </include>
    <include name="GlobalSearchBG">
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(111).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(111)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(121).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(121)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(131).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(131)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(141).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(141)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(151).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(151)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(161).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(161)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(171).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(171)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(181).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(181)</visible>
            <fadetime>200</fadetime>
        </control>
        <control type="image">
            <texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container(211).ListItem.Property(Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <visible>Control.HasFocus(211)</visible>
            <fadetime>200</fadetime>
        </control>
    </include>
</includes>