<?xml version="1.0" encoding="UTF-8"?>
<includes>
	<include name="CommonBackground">
		<param name="windowOpen">True</param>
		<param name="windowClose">True</param>
		<definition>
			<control type="group">
				<depth>MinDepth</depth>
				<include condition="Window.IsActive(home)">HomeFanart</include>
				<include condition="!Window.IsActive(home)">GlobalFanart</include>
				<include condition="Window.IsActive(home)">LiveCasesBackground</include>
				<include condition="Window.IsActive(videos) + !String.IsEmpty(Skin.String(VideoGenreFanartPath))">VideoGenreFanart</include>
				<include condition="Window.IsActive(music) + !String.IsEmpty(Skin.String(MusicGenreFanartPath))">MusicGenreFanart</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>
				<include condition="Window.IsActive(service-LibreELEC-Settings-mainWindow.xml)">LibreELECBG</include>
				<include condition="!Skin.HasSetting(Disable.ShowBackgroundVideo)+ !Window.IsActive(TVChannels) + !Window.IsActive(RadioChannels)">BackgroundVideo</include>
			</control>
		</definition>
	</include>
	<include name="BackgroundVideo">
		<control type="group">
			<visible>![[Control.IsVisible(52) | Control.IsVisible(53)] + String.IsEqual(Control.GetLabel(4420),1)]</visible>
			<control type="image">
				<include>FullscreenDimensions</include>
				<texture>black.png</texture>
				<visible>Player.HasVideo + !SlideShow.IsActive</visible>
			</control>
			<control type="videowindow">
				<include>FullscreenDimensions</include>
				<visible>Player.HasVideo + !SlideShow.IsActive</visible>
			</control>
		</control>
	</include>
	<include name="VideoGenreFanart">
		<control type="image" id="4980">
			<description>Normal Default Background Image</description>
			<include>FullscreenDimensions</include>
			<aspectratio>scale</aspectratio>
			<fadetime>FanartCrossfadeTime</fadetime>
			<texture background="true" fallback="special://skin/backgrounds/fallback_movies.jpg">$INFO[Skin.String(VideoGenreFanartPath)]$INFO[ListItem.Label,,.jpg]</texture>
			<visible>Container.Content(genres)</visible>
		</control>
	</include>
	<include name="MusicGenreFanart">
		<control type="image">
			<description>Normal Default Background Image</description>
			<include>FullscreenDimensions</include>
			<aspectratio>scale</aspectratio>
			<fadetime>FanartCrossfadeTime</fadetime>
			<texture background="true" fallback="special://skin/backgrounds/fallback_music.jpg">$INFO[Skin.String(MusicGenreFanartPath)]$INFO[ListItem.Label,,.jpg]</texture>
			<visible>Container.Content(genres)</visible>
		</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(MyPVRChannels.xml) | Window.IsActive(MyPVRGuide.xml) | Window.IsActive(MyPVRRecordings.xml) | Window.IsActive(MyPVRSearch.xml) | Window.IsActive(MyPVRTimers.xml)">LiveTVFallback</include>
				<include condition="Window.IsActive(programs) | Window.IsActive(1133)">AppsFallback</include>
				<include condition="Window.IsActive(SettingsCategory.xml) | Window.IsActive(systeminfo) | Window.IsActive(skinsettings) | Window.IsActive(settings) | Window.IsActive(addonbrowser) | Window.IsActive(filemanager) | Window.IsActive(eventlog) | Window.IsActive(profiles)">SystemFallback</include>
				<include condition="Window.IsActive(videos) | Window.IsActive(videoplaylist)">VideoFallback</include>
				<include condition="Window.IsActive(games)">GamesFallback</include>
				<item>
					<onclick>noop</onclick>
					<thumb>$INFO[Window(home).Property(fakelabel)]</thumb>
					<visible>no</visible>
				</item>
			</content>
		</control>
		<control type="multiimage">
			<visible>!Control.IsVisible(593)</visible>
			<description>Normal Default Background Image</description>
			<include>FullscreenDimensions</include>
			<imagepath fallback="special://skin/backgrounds/default_bg.jpg" background="true">$VAR[GlobalBackgroundVar]</imagepath>
		</control>
	</include>
	<include name="HomeFanart">
		<control type="image">
			<description>Normal Default Background Image</description>
			<top>90</top>
			<include>FullscreenDimensions</include>
			<texture>tajo/backani2.gif</texture>
			<visible>![ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()]</visible>
			<visible>!String.IsEqual(Container(9000).ListItem.Thumb,1) + !String.IsEqual(Container(9000).ListItem.Thumb,2) + !String.IsEqual(Container(9000).ListItem.Thumb,3) + !String.IsEqual(Container(9000).ListItem.Thumb,4) + !String.IsEqual(Container(9000).ListItem.Thumb,5)</visible>
			<visible>String.IsEmpty(Container(9000).ListItem.Thumb)</visible>
		</control>
		<control type="image">
			<description>Normal Default Background Image</description>
			<include>FullscreenDimensions</include>
			<texture>special://skin/backgrounds/default_bg.png</texture>
			<visible>![ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()]</visible>
			<visible>!String.IsEqual(Container(9000).ListItem.Thumb,1) + !String.IsEqual(Container(9000).ListItem.Thumb,2) + !String.IsEqual(Container(9000).ListItem.Thumb,3) + !String.IsEqual(Container(9000).ListItem.Thumb,4) + !String.IsEqual(Container(9000).ListItem.Thumb,5)</visible>
			<visible>String.IsEmpty(Container(9000).ListItem.Thumb)</visible>
		</control>
		<control type="multiimage">
			<description>Normal Default Background Image</description>
			<include>FullscreenDimensions</include>
			<imagepath background="true">$VAR[HomeBackgroundVar]</imagepath>
			<visible>![ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()]</visible>
		</control>
		<control type="image">
			<description>Widget background image</description>
			<aspectratio align="center">scale</aspectratio>
			<include>FullscreenDimensions</include>
			<fadetime>600</fadetime>
			<texture fallback="special://skin/backgrounds/default_bg.jpg" background="true">$VAR[WidgetFanartVar]</texture>
			<visible>[ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()] | [[ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()] + System.HasActiveModalDialog]</visible>
		</control>
		<control type="image">
			<aspectratio align="center">scale</aspectratio>
			<include>FullscreenDimensions</include>
			<fadetime>600</fadetime>
			<colordiffuse>CCFFFFFF</colordiffuse>
			<texture background="true">back.png</texture>
			<visible>[ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()] | [[ControlGroup(9003).HasFocus() | ControlGroup(9004).HasFocus()] + System.HasActiveModalDialog]</visible>
		</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.ListItem.Property(Fanart)]</texture>
				<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[WeatherBackgroundTypeVar]</imagepath>
			<timeperimage>10000</timeperimage>
			<randomize>true</randomize>
			<fadetime>1000</fadetime>
			<animation effect="fade" time="200">WindowClose</animation>
		</control>
	</include>
	<include name="MusicFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(Music.Fallback)]</thumb>
		</item>
	</include>
	<include name="SystemFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(System.Fallback)]</thumb>
		</item>
	</include>
	<include name="LiveTVFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(LiveTV.Fallback)]</thumb>
		</item>
	</include>
	<include name="PicturesFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(Pictures.Fallback)]</thumb>
		</item>
	</include>
	<include name="AppsFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(Apps.Fallback)]</thumb>
		</item>
	</include>
	<include name="GamesFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(Games.Fallback)]</thumb>
		</item>
	</include>
	<include name="VideoFallback">
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(Movies.Fallback)]</thumb>
			<visible>Container.Content(movies)</visible>
		</item>
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(TVShows.Fallback)]</thumb>
			<visible>Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes)</visible>
		</item>
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(MusicVideos.Fallback)]</thumb>
			<visible>Container.Content(musicvideos)</visible>
		</item>
		<item>
			<onclick>noop</onclick>
			<thumb>$INFO[Skin.String(Videos.Fallback)]</thumb>
			<visible>![Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | Container.Content(movies)]</visible>
		</item>
	</include>
	<include name="GlobalSearchBG">
		<control type="image">
			<texture background="true" fallback="special://skin/backgrounds/default_bg.jpg">$INFO[Container.ListItem.Property(Fanart)]</texture>
			<aspectratio>scale</aspectratio>
			<fadetime>600</fadetime>
			<animation effect="fade" time="600">Visible</animation>
			<animation effect="fade" time="600">Hidden</animation>
			<animation effect="fade" time="200">WindowClose</animation>
		</control>
	</include>
	<include name="LibreELECBG">
		<control type="image">
			<texture background="true">special://skin/backgrounds/le_bg.jpg</texture>
			<aspectratio>scale</aspectratio>
			<fadetime>600</fadetime>
			<animation effect="fade" time="600">Visible</animation>
			<animation effect="fade" time="600">Hidden</animation>
			<animation effect="fade" time="200">WindowClose</animation>
		</control>
	</include>
</includes>