<?xml version="1.0" encoding="UTF-8"?>
<includes>

	<include name="Object_Include">
		<nested />
	</include>

	<include name="Hidden_Components">
		<control type="group">
			<visible>false</visible>
			<nested />
		</control>
	</include>

	<include name="Hidden_Control">
		<animation effect="slide" end="1920,1080" time="0" condition="true">Conditional</animation>
		<bottom>-10</bottom>
		<right>-10</right>
		<width>10</width>
		<height>10</height>
	</include>

	<include name="Busy_Spinner">
		<param name="visible" />
		<param name="size" default="90" />
		<param name="color" default="$VAR[Primary_Color]" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<include content="Visible_Fade_Animation" />
				<centerleft>50%</centerleft>
				<centertop>50%</centertop>
				<width>$PARAM[size]</width>
				<height>$PARAM[size]</height>
				<texture colordiffuse="$PARAM[color]">dialogs/busy.png</texture>
				<animation effect="rotate" start="0" end="-360" center="auto" time="1800" loop="true" tween="cubic" easing="out" condition="true">Conditional</animation>
				<nested />
			</control>
		</definition>
	</include>

	<include name="Focus_Setter">
		<param name="id" default="4010" />
		<param name="time" default="0" />
		<param name="target_id" />
		<definition>
			<control type="button" id="$PARAM[id]">
				<visible allowhiddenfocus="true">false</visible>
				<animation effect="slide" end="0,0" time="$PARAM[time]" reversible="false">Focus</animation>
				<nested />
				<onfocus>$PARAM[target_id]</onfocus>
				<onright>$PARAM[target_id]</onright>
				<onleft>$PARAM[target_id]</onleft>
				<ontop>$PARAM[target_id]</ontop>
				<onbottom>$PARAM[target_id]</onbottom>
				<nested />
			</control>
		</definition>
	</include>

	<include name="Light_Theme_Background">
		<param name="visible" default="true" />
		<param name="include_animation" default="true" />
		<definition>
			<control type="group">
				<nested />
				<visible>Skin.String(Theme,Light)</visible>
				<visible>$PARAM[visible]</visible>
				<include content="Dialog_Over_Light_Background_Fadediffuse_Animation" />
				<include content="Light_Theme_Background_Fade_Animation" condition="$PARAM[include_animation]" />
				<control type="image">
					<texture colordiffuse="$VAR[Light_Background_Color]">views/white_100.png</texture>
				</control>
				<control type="image">
					<bottom>0</bottom>
					<height>50%</height>
					<texture colordiffuse="$VAR[Light_Grey_Color]">views/gradient_light-background.png</texture>
				</control>
			</control>
		</definition>
	</include>

	<include name="Background_List">
		<param name="time" default="10000" />
		<definition>
			<control type="list" id="3300">
				<include content="Hidden_Control" />
				<include content="Background_$PARAM[content_source]_Content" />
				<autoscroll time="$PARAM[time]">true</autoscroll>
				<itemlayout />
				<focusedlayout />
			</control>
		</definition>
	</include>

	<include name="Background_List_Home">
		<include content="Background_List">
			<param name="content_source" value="Home" />
			<param name="time" value="$PARAM[time]" />
		</include>
	</include>

	<include name="Background_Backing">
		<param name="visible" default="Skin.String(Theme,Light)" />
		<param name="animation_delay" default="1800" />
		<param name="color_diffuse" default="$VAR[Dark_Color]" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<animation effect="fade" start="0" end="100" time="360" delay="$PARAM[animation_delay]" tween="sine" easing="inout" reversible="true">Visible</animation>
				<texture colordiffuse="$PARAM[color_diffuse]">views/white_100.png</texture>
			</control>
		</definition>
	</include>

	<include name="Background_Multiart">
		<param name="animate_slideshow" default="false" />
		<param name="time" default="10000" />
		<definition>
			<control type="multiimage">
				<include content="Ken_Burns_Effect_Animation" condition="$PARAM[animate_slideshow]" />
				<imagepath>$PARAM[texture_path]</imagepath>
				<colordiffuse>$PARAM[colordiffuse]</colordiffuse>
				<aspectratio>scale</aspectratio>
				<fadetime>$PARAM[fadetime]</fadetime>
				<timeperimage>$PARAM[time]</timeperimage>
				<randomize>true</randomize>
			</control>
			<include content="Background_Multiart_Fadelabel">
				<param name="transition_time" value="$PARAM[time]" />
			</include>
		</definition>
	</include>

	<include name="Background_Multiart_Home">
		<include content="Background_Multiart">
			<param name="animate_slideshow" value="true" />
			<param name="colordiffuse" value="$VAR[Home_Artwork_Diffuse]" />
			<param name="texture_path" value="$VAR[Background_Home_Texture]" />
			<param name="fadetime" value="360" />
			<param name="time" value="$PARAM[time]" />
		</include>
	</include>

	<include name="Background_Home">
		<include content="Background_List_Home" condition="Skin.String(Background_Interval,5)">
			<param name="time" value="5000" />
		</include>
		<include content="Background_List_Home" condition="Skin.String(Background_Interval,10) | !Skin.String(Background_Interval)">
			<param name="time" value="10000" />
		</include>
		<include content="Background_List_Home" condition="Skin.String(Background_Interval,15)">
			<param name="time" value="15000" />
		</include>
		<include content="Background_List_Home" condition="Skin.String(Background_Interval,20)">
			<param name="time" value="20000" />
		</include>
		<include content="Background_List_Home" condition="Skin.String(Background_Interval,25)">
			<param name="time" value="25000" />
		</include>
		<include content="Background_List_Home" condition="Skin.String(Background_Interval,30)">
			<param name="time" value="30000" />
		</include>
		<control type="image">
			<animation effect="fade" start="0" end="100" time="360" delay="1800" tween="sine" easing="inout" reversible="true">Visible</animation>
			<texture colordiffuse="$VAR[Dark_Color]">views/white_100.png</texture>
		</control>
		<include content="Background_Multiart_Home" condition="Skin.String(Background_Interval,5)">
			<param name="time" value="5000" />
		</include>
		<include content="Background_Multiart_Home" condition="Skin.String(Background_Interval,10) | !Skin.String(Background_Interval)">
			<param name="time" value="10000" />
		</include>
		<include content="Background_Multiart_Home" condition="Skin.String(Background_Interval,15)">
			<param name="time" value="15000" />
		</include>
		<include content="Background_Multiart_Home" condition="Skin.String(Background_Interval,20)">
			<param name="time" value="20000" />
		</include>
		<include content="Background_Multiart_Home" condition="Skin.String(Background_Interval,25)">
			<param name="time" value="25000" />
		</include>
		<include content="Background_Multiart_Home" condition="Skin.String(Background_Interval,30)">
			<param name="time" value="30000" />
		</include>
	</include>

	<include name="Background_Global">
		<param name="visible" default="true" />
		<param name="content_source" default="Global" />
		<param name="texture_path" default="$VAR[Background_Global_Texture]" />
		<param name="animate_slideshow" default="true" />
		<definition>
			<control type="group">
				<visible>!VideoPlayer.IsFullscreen + !Skin.HasSetting(Background_Disabled)</visible>
				<visible>$PARAM[visible]</visible>
				<include content="VisibleHidden_Fade_Animation" />
				<control type="videowindow">
					<include content="Hidden_Control" />
				</control>
				<include content="Background_Backing" />
				<include content="Background_Multiart" condition="$EXP[Settings_IsVisible]">
					<param name="colordiffuse" value="$VAR[Dialogs_Artwork_Diffuse]" />
					<param name="texture_path" value="$PARAM[texture_path]" />
					<param name="fadetime" value="0" />
				</include>
				<include content="Background_Multiart">
					<param name="colordiffuse" value="$VAR[Dialogs_Artwork_Diffuse]" />
					<param name="texture_path" value="$PARAM[texture_path]" />
					<param name="fadetime" value="360" />
					<param name="animate_slideshow" value="$PARAM[animate_slideshow]" />
				</include>
				<nested />
			</control>
		</definition>
	</include>

	<include name="Background_Media">
		<include content="Background_Global">
			<param name="visible" value="$EXP[Containers_Background] | Container.Content()" />
			<param name="local_list_content" value="true" />
			<param name="content_source" value="Media" />
		</include>
	</include>

	<include name="Home_Clearlogo">
		<control type="button" id="4300">
			<visible allowhiddenfocus="true">false</visible>
			<onclick>SetFocus(3000)</onclick>
			<onup>SetFocus(3000)</onup>
			<ondown>SetFocus(3000)</ondown>
			<onleft>SetFocus(3000)</onleft>
			<onright>SetFocus(3000)</onright>
			<onback>SetFocus(3000)</onback>
		</control>
		<include content="Common_Details_Logo" condition="Skin.HasSetting(Home_Screensaver_Clearlogo_Enabled)">
			<param name="texture" value="$VAR[Background_Home_Clearlogo_Texture]" />
			<param name="visible" value="Control.HasFocus(4300) + !$EXP[TransparentDialog_IsVisible] + [String.IsEmpty(Container(3000).ListItem.Property(background)) | [Skin.HasSetting(Home_Background_Override_Enabled) + Skin.String(Home_Background_Override_Path)]]" />
			<left>60</left>
			<bottom>60</bottom>
			<fadetime>360</fadetime>
		</include>
	</include>


</includes>