<?xml version="1.0"?>
<includes>
	<include name="BGGrainy">
		<control type="image">
			<include>FullScreenScaled</include>
			<texture>bg-overlay-grainy.png</texture>
			<animation effect="fade" start="0" end="100" time="600">WindowOpen</animation>
			<animation effect="fade" start="100" end="0" time="600">WindowClose</animation>
		</control>
	</include>
	<include name="BGFanart">
		<control type="group">
			<!-- generic global fanart for when the container is empty -->
			<control type="multiimage">
				<include>FullScreenScaled</include>
				<timeperimage>8000</timeperimage>
				<fadetime>1000</fadetime>
				<randomize>true</randomize>
				<loop>yes</loop>
				<imagepath background="true">plexserver://best:32400/library/arts?sort=random&X-Plex-Container-Start=0&X-Plex-Container-Size=50</imagepath>
				<animation effect="fade" end="50" time="400" condition="true">Conditional</animation>
				<animation type="WindowClose">
					<effect type="fade" start="100" end="0" time="800"/>
				</animation>
				<visible>Container.Content(empty)</visible>
			</control>
			<control type="largeimage">
				<include>FullScreenScaled</include>
				<fadetime>400</fadetime>
				<animation effect="fade" end="100" time="300" delay="0">Visible</animation>
				<animation effect="fade" end="0" time="300" delay="0">Hidden</animation>
				<texture background="true">$INFO[ListItem.Property(Fanart_Image)]</texture>
			</control>
			<control type="image">
				<include>FullScreenScaled</include>
				<texture>bg-overlay-grainy.png</texture>
				<animation effect="fade" start="0" end="100" time="600">WindowOpen</animation>
				<animation effect="fade" start="100" end="0" time="600">WindowClose</animation>
				<visible>!IsEmpty(Container.Property(primaryFilterActivated))</visible>
			</control>
		</control>
		<!-- Clip backgrounds use item thumb, not as pretty so we'll hide them a bit more -->
		<control type="group">
			<visible>Container.PlexContent(Clips)</visible>
			<control type="largeimage">
				<include>FullScreenScaled</include>
				<fadetime>400</fadetime>
				<animation effect="fade" end="100" time="300" delay="0">Visible</animation>
				<animation effect="fade" end="0" time="300" delay="0">Hidden</animation>
				<texture background="true">$INFO[ListItem.Art(thumb)]</texture>
			</control>
			<control type="image">
				<include>FullScreenScaled</include>
				<texture>bg-overlay-grainy.png</texture>
				<animation effect="fade" start="0" end="80" time="600">WindowOpen</animation>
				<animation effect="fade" start="80" end="0" time="600">WindowClose</animation>
			</control>
		</control>
	</include>
	<include name="BGSharedContent">
		<control type="largeimage">
			<include>FullScreenScaled</include>
			<animation effect="fade" end="100" time="300" delay="0">Visible</animation>
			<animation effect="fade" end="0" time="300" delay="0">Hidden</animation>
			<texture background="true">bg-myplex.png</texture>
		</control>
	</include>
	<include name="BGHomeList">
		<include>FullScreenScaled</include>
		<fadetime>400</fadetime>
		<animation effect="fade" end="100" time="300" delay="0">Visible</animation>
		<animation effect="fade" end="0" time="300" delay="0">Hidden</animation>
	</include>
	<include name="BGOverlay">
		<control type="largeimage">
			<posy>0</posy>
			<posx>0</posx>
			<width>1280</width>
			<height>720</height>
			<aspectratio aligny="top">stretch</aspectratio>
			<texture>bg-overlay-grainy.png</texture>
			<animation effect="fade" start="0" end="100" time="600">WindowOpen</animation>
			<visible>true</visible>
			<animation effect="fade" start="90" end="90" time="500" condition="!ControlGroup(1300).HasFocus()">Conditional</animation>
			<animation effect="fade" start="90" end="90" time="300" condition="ControlGroup(1300).HasFocus()">Conditional</animation>
		</control>
		<!-- black overlay -->
		<control type="largeimage">
			<posy>0</posy>
			<posx>0</posx>
			<width>1280</width>
			<height>720</height>
			<aspectratio aligny="top">stretch</aspectratio>
			<texture background="true">bg-overlay-black.png</texture>
			<visible>true</visible>
			<animation effect="fade" start="90" end="40" time="500" condition="!ControlGroup(1300).HasFocus()">Conditional</animation>
			<animation effect="fade" start="40" end="90" time="300" condition="ControlGroup(1300).HasFocus()">Conditional</animation>
		</control>
		<!-- white overlay -->
		<control type="largeimage">
			<posy>0</posy>
			<posx>-50</posx>
			<width>1330</width>
			<height>720</height>
			<aspectratio aligny="top">stretch</aspectratio>
			<texture background="true">bg-overlay-white.png</texture>
			<visible>true</visible>
			<animation effect="fade" start="80" end="50" time="500" condition="!ControlGroup(1300).HasFocus()">Conditional</animation>
			<animation effect="fade" start="50" end="80" time="300" condition="ControlGroup(1300).HasFocus()">Conditional</animation>
		</control>
		<control type="label">
			<posy>330</posy>
			<posx>300</posx>
			<width>680</width>
			<align>center</align>
			<aligny>center</aligny>
			<height>60</height>
			<label>The list is empty</label>
			<font>Bold-52</font>
			<textcolor>orangeLight</textcolor>
			<shadowcolor>FF222222</shadowcolor>
			<visible>Container.Content(empty)</visible>
			<animation effect="slide" start="0" end="180" time="500" condition="ControlGroup(1300).HasFocus()">Conditional</animation>
			<animation effect="fade" start="100" end="70" time="0" condition="true">Conditional</animation>
		</control>
	</include>
	<include name="SlideshowHome">
		<control type="group">
			<!-- generic autopopulated fanart slideshow -->
			<control type="multiimage" id="10101">
				<visible>!Skin.HasSetting(HideFanart)</visible>
				<include>FullScreenScaled</include>
				<timeperimage>8000</timeperimage>
				<fadetime>1000</fadetime>
				<randomize>true</randomize>
				<loop>yes</loop>
				<animation effect="fade" start="100" end="0" time="400" condition="ControlGroup(5000).HasFocus">Conditional</animation>
				<animation type="WindowClose">
					<effect type="fade" start="100" end="0" time="800"/>
				</animation>
			</control>
			<!-- "new list" focused item fanart while using inside the list -->
			<!-- on deck -->
			<control type="image">
				<include>BGHomeList</include>
				<visible>ControlGroup(7002).HasFocus</visible>
				<texture background="true">$INFO[Container(11001).ListItem.Property(fanart_image)]</texture>
			</control>
			<!-- recently added -->
			<control type="image">
				<include>BGHomeList</include>
				<visible>ControlGroup(7001).HasFocus</visible>
				<texture background="true">$INFO[Container(11000).ListItem.Property(fanart_image)]</texture>
			</control>
			<!-- recently used -->
			<control type="image">
				<include>BGHomeList</include>
				<visible>ControlGroup(7004).HasFocus</visible>
				<texture background="true">$INFO[Container(11002).ListItem.Property(fanart_image)]</texture>
			</control>
			<!-- queue & recommendations (a dirty, dirty hack this one, not pretty) -->
			<control type="image">
				<include>BGHomeList</include>
				<visible>ControlGroup(7003).HasFocus</visible>
				<texture background="true">$INFO[Container(11003).ListItem.Art(thumb)]</texture>
			</control>
			<control type="image">
				<include>BGHomeList</include>
				<visible>ControlGroup(7005).HasFocus</visible>
				<texture background="true">$INFO[Container(11004).ListItem.Art(thumb)]</texture>
			</control>
			<control type="image">
				<include>BGHomeList</include>
				<visible>ControlGroup(7005).HasFocus + System.PlexPlayQueue(Clip)</visible>
				<texture background="true">$INFO[Container(11005).ListItem.Art(thumb)]</texture>
			</control>
			<control type="image">
				<include>FullScreenScaled</include>
				<texture>bg-overlay-grainy.png</texture>
				<animation effect="fade" start="0" end="100" time="200">Visible</animation>
				<animation effect="fade" start="100" end="0" time="600">Hidden</animation>
				<visible>ControlGroup(7005).HasFocus | ControlGroup(7003).HasFocus</visible>
			</control>
			<!-- playlists -->
			<control type="largeimage">
				<include>FullScreenScaled</include>
				<texture background="true">$INFO[Container(11005).ListItem.CompositeImage(width=1280;height=720;cols=6;rows=2)]</texture>			
				<visible>ListItem.Type(videoplaylist) | ListItem.Type(videoplayqueue)</visible>
			</control>
			<control type="largeimage">
				<include>FullScreenScaled</include>
				<texture background="true">$INFO[Container(11005).ListItem.CompositeImage(width=1280;height=720;cols=4;rows=2)]</texture>
				<visible>ListItem.Type(musicplaylist) | ListItem.Type(musicplayqueue)</visible>
			</control>
			<!-- Fanart grainy overlay -->
			<control type="image">
				<width>1280</width>
				<height>720</height>
				<texture>bg-overlay-grainy.png</texture>
				<aspectratio>stretch</aspectratio>
				<animation effect="fade" start="0" end="100" time="0" condition="true">Conditional</animation>
				<visible>true</visible>
			</control>
		</control>
	</include>
	<include name="SlideshowSettings">
		<control type="multiimage">
			<visible>!Skin.HasSetting(HideFanart)</visible>
			<include>FullScreenScaled</include>
			<timeperimage>8000</timeperimage>
			<fadetime>1000</fadetime>
			<randomize>true</randomize>
			<loop>yes</loop>
			<imagepath background="true">plexserver://best:32400/library/arts?sort=random&X-Plex-Container-Start=0&X-Plex-Container-Size=50</imagepath>
			<animation effect="fade" end="15" time="400" condition="true">Conditional</animation>
		</control>
		<control type="image">
			<width>1280</width>
			<height>720</height>
			<texture>bg-overlay-grainy.png</texture>
			<aspectratio>stretch</aspectratio>
			<animation effect="fade" start="0" end="100" time="0" condition="true">Conditional</animation>
			<visible>true</visible>
		</control>
	</include>
	<include name="SlideshowDimmed">
		<control type="multiimage">
			<visible>!Skin.HasSetting(HideFanart)</visible>
			<include>FullScreenScaled</include>
			<timeperimage>8000</timeperimage>
			<fadetime>1000</fadetime>
			<randomize>true</randomize>
			<loop>yes</loop>
			<imagepath background="true">plexserver://best:32400/library/arts?sort=random&X-Plex-Container-Start=0&X-Plex-Container-Size=50</imagepath>
			<animation effect="fade" end="15" time="400" condition="true">Conditional</animation>
			<animation type="WindowClose">
				<effect type="fade" start="100" end="0" time="800"/>
			</animation>
		</control>
		<control type="image">
			<width>1280</width>
			<height>720</height>
			<texture>bg-overlay-grainy.png</texture>
			<aspectratio>stretch</aspectratio>
			<animation effect="fade" start="0" end="100" time="0" condition="true">Conditional</animation>
			<visible>true</visible>
		</control>
	</include>
	<include name="BeginnersBackground">
		<control type="image">
			<width>1280</width>
			<height>720</height>
			<texture>bg-beginner.jpg</texture>
			<aspectratio>stretch</aspectratio>
			<animation effect="fade" start="0" end="70" time="0" condition="true">Conditional</animation>
			<visible>true</visible>
		</control>
		<control type="image">
			<width>1280</width>
			<height>720</height>
			<texture>bg-overlay-grainy.png</texture>
			<aspectratio>stretch</aspectratio>
			<animation effect="fade" start="0" end="100" time="0" condition="true">Conditional</animation>
			<visible>true</visible>
		</control>
	</include>
</includes>
