<includes>
	<include name="CommonBackground">
		<control type="group">
			<visible>!IntegerGreaterThan(system.memory(used.percent),85)</visible>
			<control type="group">
				<visible>Skin.HasSetting(HideBackGroundFanart) | IsEmpty(ListItem.Property(Fanart_Image))</visible>
				<visible>![Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)]</visible>
				<control type="image">
					<description>Normal Default Background Image</description>
					<posx>0</posx>
					<posy>0</posy>
					<width>1280</width>
					<height>720</height>
					<aspectratio>scale</aspectratio>
					<texture background="true">special://skin/backgrounds/$INFO[Skin.CurrentTheme]/skindefault.jpg</texture>
					<visible>![Skin.HasSetting(UseCustomBackground) + !IsEmpty(Skin.String(CustomBackgroundPath))]</visible>
					<include>VisibleFadeEffect</include>
				</control>
				<control type="image">
					<description>User Set Background Image</description>
					<posx>0</posx>
					<posy>0</posy>
					<width>1280</width>
					<height>720</height>
					<aspectratio>scale</aspectratio>
					<texture background="true">$INFO[Skin.String(CustomBackgroundPath)]</texture>
					<visible>Skin.HasSetting(UseCustomBackground) + !IsEmpty(Skin.String(CustomBackgroundPath))</visible>
					<include>VisibleFadeEffect</include>
				</control>
			</control>
			<control type="image">
				<description>Fanart Image</description>
				<posx>0</posx>
				<posy>0</posy>
				<width>1280</width>
				<height>720</height>
				<aspectratio>scale</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Fanart_Image)]</texture>
				<include>backgroundfade</include>
				<fadetime>FanartCrossfadeTime</fadetime>
				<visible>!Skin.HasSetting(HideBackGroundFanart) + !IsEmpty(ListItem.Property(Fanart_Image))</visible>
				<visible>![Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)]</visible>
				<include>Window_OpenClose_Animation</include>
			</control>
			<control type="image">
				<description>Media Overlay</description>
				<posx>0</posx>
				<posy>0</posy>
				<width>1280</width>
				<height>720</height>
				<texture background="true">special://skin/backgrounds/media-overlay.jpg</texture>
				<visible>Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)</visible>
			</control>
		</control>
		<control type="visualisation">
			<posx>0</posx>
			<posy>0</posy>
			<width>1280</width>
			<height>720</height>
			<visible>Player.HasAudio + !Skin.HasSetting(ShowBackgroundVis)</visible>
		<!--<visible>!SubString(Window(videolibrary).Property(TvTunesIsAlive),True)</visible>-->
		</control>
		<control type="videowindow">
			<posx>0</posx>
			<posy>0</posy>
			<width>1280</width>
			<height>720</height>
			<visible>Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)</visible>
		</control>
		<control type="image">
			<posx>0</posx>
			<posy>-40</posy>
			<width>1280</width>
			<height>120</height>
			<texture flipy="true">HomeNowPlayingBack.png</texture>
			<visible>[Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)] | [Player.HasAudio + !Skin.HasSetting(ShowBackgroundVis)] | [!Skin.HasSetting(HideBackGroundFanart) + !IsEmpty(ListItem.Property(Fanart_Image))]</visible>
		<!--<visible>!SubString(Window(videolibrary).Property(TvTunesIsAlive),True)</visible>-->
		</control>
	</include>
	<include name="ContentPanelBackgrounds">
		<control type="image">
			<posx>0</posx>
			<posy>100r</posy>
			<width>1280</width>
			<height>100</height>
			<texture>floor.png</texture>
			<animation effect="slide" start="0,10" end="0,0" time="200" condition="Window.Previous(Home)">WindowOpen</animation>
			<animation effect="slide" start="0,0" end="0,10" time="200" condition="Window.Next(Home)">WindowClose</animation>
		</control>
		<control type="group">
			<include>Window_OpenClose_Animation</include>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(50)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>60</posy>
					<width>750</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>750</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(504) | Control.IsVisible(550) | Control.IsVisible(512)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>60</posy>
					<width>640</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>640</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
				<control type="image">
					<posx>700</posx>
					<posy>60</posy>
					<width>530</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>700</posx>
					<posy>652</posy>
					<width>530</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(551) | Control.IsVisible(560) | Control.IsVisible(511) | Control.IsVisible(506) | Control.IsVisible(513)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>60</posy>
					<width>840</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>840</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
				<control type="image">
					<posx>900</posx>
					<posy>60</posy>
					<width>330</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>900</posx>
					<posy>652</posy>
					<width>330</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(501)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>50</posy>
					<width>1180</width>
					<height>610</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>1180</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(503)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>230</posy>
					<width>640</width>
					<height>430</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>640</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
				<control type="image">
					<posx>700</posx>
					<posy>230</posy>
					<width>550</width>
					<height>430</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>700</posx>
					<posy>652</posy>
					<width>550</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(51) | Control.IsVisible(500) | Control.IsVisible(505)</visible>
				<control type="image">
					<posx>75</posx>
					<posy>60</posy>
					<width>1130</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>75</posx>
					<posy>652</posy>
					<width>1130</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(514)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>60</posy>
					<width>490</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>490</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
				<control type="image">
					<posx>550</posx>
					<posy>60</posy>
					<width>680</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>550</posx>
					<posy>652</posy>
					<width>680</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>			
			</control>
			<control type="group">
				<include>VisibleFadeEffect</include>
				<visible>Control.IsVisible(515)</visible>
				<control type="image">
					<posx>50</posx>
					<posy>60</posy>
					<width>400</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>50</posx>
					<posy>652</posy>
					<width>400</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
				<control type="image">
					<posx>460</posx>
					<posy>60</posy>
					<width>770</width>
					<height>600</height>
					<texture border="15">ContentPanel.png</texture>
				</control>
				<control type="image">
					<posx>460</posx>
					<posy>652</posy>
					<width>770</width>
					<height>64</height>
					<texture border="15">ContentPanelMirror.png</texture>
				</control>
			</control>
		</control>
	</include>
</includes>