<?xml version="1.0" encoding="UTF-8"?>
<includes>
	<include file="defaults.xml"/>
	<include file="ViewsVideoLibrary.xml"/>
	<include file="ViewsMusicLibrary.xml"/>
	<include file="ViewsFileMode.xml"/>
	<include file="ViewsPictures.xml"/>
	<include file="ViewsAddonBrowser.xml"/>
	<include file="ViewsLiveTV.xml"/>
	<include file="ViewsPVRGuide.xml"/>
	<include file="ViewsWeather.xml"/>
	<include file="IncludesCodecFlagging.xml"/>
	<include file="IncludesHomeRecentlyAdded.xml"/>
	<include file="IncludesHomeMenuItems.xml"/>
	<include file="IncludesPVR.xml"/>
	<include file="IncludesBackgroundBuilding.xml"/>

	<constant name="FanartCrossfadeTime">500</constant>
	<constant name="IconCrossfadeTime">400</constant>

	<variable name="BannerThumb">
		<value condition="!IsEmpty(ListItem.Art(banner))">$INFO[ListItem.Art(banner)]</value>
		<value>$INFO[ListItem.Icon]</value>
	</variable>
	<variable name="PosterThumb">
		<value condition="!IsEmpty(ListItem.Art(poster))">$INFO[ListItem.Art(poster)]</value>
		<value>$INFO[ListItem.Icon]</value>
	</variable>
	<variable name="PlayList">
		<value condition="Window.IsActive(videolibrary) + !StringCompare(Playlist.Length(video),0)">ActivateWindow(videoplaylist)</value>
		<value>ActivateWindow(musicplaylist)</value>
	</variable>
	<variable name="SelectBack">
		<value condition="![Window.IsVisible(FullscreenVideo) | Window.IsVisible(Visualisation)]">DialogBack.png</value>
		<value>DialogBack2.png</value>
	</variable>

	<include name="BehindDialogFadeOut">
		<control type="image">
			<left>0</left>
			<top>0</top>
			<width>1280</width>
			<height>720</height>
			<texture>black-back.png</texture>
			<animation effect="fade" time="400">Visible</animation>
			<animation effect="fade" time="200">Hidden</animation>
			<visible>Window.IsActive(MovieInformation) | Window.IsActive(MusicInformation) | Window.IsActive(SongInformation) | Window.IsActive(FileBrowser) | Window.IsActive(TextViewer) | Window.IsActive(AddonSettings) | Window.IsActive(ContentSettings) | Window.IsActive(SelectDialog) | Window.IsActive(FileStackingDialog) | Window.IsActive(MediaSource) | Window.IsActive(PictureInfo) | Window.IsActive(PlayerControls) | Window.IsActive(VirtualKeyboard) | Window.IsActive(NumericInput) | Window.IsActive(ProfileSettings) | Window.IsActive(LockSettings) | Window.IsActive(SmartPlaylistEditor) | Window.IsActive(SmartPlaylistRule) | Window.IsActive(script-RSS_Editor-rssEditor.xml) | Window.IsActive(script-RSS_Editor-setEditor.xml) | Window.IsActive(AddonInformation) | Window.IsActive(Peripherals) | Window.IsActive(PeripheralSettings) | Window.IsActive(script-cu-lrclyrics-main.xml) | Window.IsActive(PVRChannelManager) | Window.IsActive(MediaFilter)</visible>
		</control>
	</include>
	<include name="WindowTitleCommons">
		<left>0</left>
		<top>0</top>
		<width min="0" max="800">auto</width>
		<height>30</height>
		<font>font14</font>
		<textcolor>white</textcolor>
		<shadowcolor>black</shadowcolor>
		<scroll>false</scroll>
		<align>left</align>
		<aligny>center</aligny>
	</include>
	<include name="ButtonCommonValues">
		<height>40</height>
		<width>250</width>
		<textoffsetx>10</textoffsetx>
		<textwidth>200</textwidth>
		<aligny>center</aligny>
		<font>font13</font>
		<texturefocus border="5">button-focus.png</texturefocus>
		<texturenofocus>-</texturenofocus>
		<pulseonselect>false</pulseonselect>
	</include>
	<include name="ButtonMediaSubCommonValues">
		<height>40</height>
		<width>221</width>
		<textoffsetx>20</textoffsetx>
		<textwidth>195</textwidth>
		<aligny>center</aligny>
		<font>font12_title</font>
		<texturefocus border="5">button-focus.png</texturefocus>
		<texturenofocus border="5">button-nofocus.png</texturenofocus>
		<pulseonselect>false</pulseonselect>
	</include>
	<include name="ButtonHomeSubCommonValues">
		<height>35</height>
		<width>180</width>
		<textwidth>195</textwidth>
		<align>center</align>
		<aligny>center</aligny>
		<font>font12</font>
		<textcolor>grey2</textcolor>
		<focusedcolor>white</focusedcolor>
		<texturefocus border="5">HomeSubFO.png</texturefocus>
		<texturenofocus border="5">HomeSubNF.png</texturenofocus>
		<pulseonselect>false</pulseonselect>
	</include>
	<include name="HomeSubMenuCommonValues">
		<left>0</left>
		<top>0</top>
		<width>1280</width>
		<height>35</height>
		<align>center</align>
		<onup>9000</onup>
		<ondown>9002</ondown>
		<itemgap>0</itemgap>
		<orientation>Horizontal</orientation>
		<animation effect="slide" start="0,-40" end="0,0" delay="200" time="200" tween="quadratic" easing="out">Visible</animation>
		<animation effect="slide" start="0,0" end="0,-40" time="200" tween="quadratic" easing="out">Hidden</animation>
	</include>
	<include name="ButtonInfoDialogsCommonValues">
		<height>40</height>
		<width>170</width>
		<textoffsetx>20</textoffsetx>
		<align>center</align>
		<aligny>center</aligny>
		<font>font12_title</font>
		<texturefocus border="5">button-focus.png</texturefocus>
		<texturenofocus border="5">button-nofocus.png</texturenofocus>
		<pulseonselect>false</pulseonselect>
	</include>
	<include name="SideBladeLeft">
		<animation effect="slide" start="0,0" end="250,0" time="400" tween="quadratic" easing="out" condition="ControlGroup(9000).HasFocus | Control.HasFocus(9001) | Control.HasFocus(8999)">Conditional</animation>
		<animation effect="slide" start="0,0" end="-300,0" time="400" tween="quadratic" easing="out" condition="ControlGroup(9000).HasFocus | Control.HasFocus(9001)">WindowClose</animation>
		<animation effect="slide" start="0,0" end="-50,0" time="300" tween="quadratic" easing="out" condition="![ControlGroup(9000).HasFocus | Control.HasFocus(9001)]">WindowClose</animation>
		<animation effect="slide" start="-50,0" end="0,0" time="300" tween="quadratic" easing="out">WindowOpen</animation>
		<control type="button" id="8999">
			<description>Fake button for mouse control</description>
			<left>0</left>
			<top>0</top>
			<width>250</width>
			<height>720</height>
			<label>-</label>
			<font>-</font>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<visible>true</visible>
		</control>
		<control type="button" id="9001">
			<left>250</left>
			<top>260</top>
			<width>42</width>
			<height>128</height>
			<font>-</font>
			<texturefocus>HasSub.png</texturefocus>
			<texturenofocus>HasSub.png</texturenofocus>
		</control>
		<control type="image">
			<left>0</left>
			<top>0</top>
			<width>260</width>
			<height>720</height>
			<texture border="0,0,10,0">MediaBladeSub.png</texture>
		</control>
		<control type="image">
			<description>LOGO</description>
			<left>15</left>
			<top>0</top>
			<width>220</width>
			<height>80</height>
			<aspectratio>keep</aspectratio>
			<texture>Confluence_Logo.png</texture>
		</control>
	</include>
	<include name="MainWindowMouseButtons">
		<control type="group">
			<left>120r</left>
			<top>55r</top>
			<animation effect="fade" time="250" condition="Window.Previous(Home)">WindowOpen</animation>
			<animation effect="fade" time="250" condition="Window.Next(Home)">WindowClose</animation>
			<visible>system.getbool(input.enablemouse)</visible>
			<control type="button">
				<description>Back push button</description>
				<left>0</left>
				<top>0</top>
				<width>45</width>
				<height>45</height>
				<label>1036</label>
				<font>-</font>
				<onclick>back</onclick>
				<texturefocus border="5">floor_buttonFO.png</texturefocus>
				<texturenofocus border="5">floor_button.png</texturenofocus>
				<onleft>50</onleft>
				<onright>50</onright>
				<onup>50</onup>
				<ondown>50</ondown>
			</control>
			<control type="image">
				<description>Back Icon</description>
				<left>5</left>
				<top>5</top>
				<width>35</width>
				<height>35</height>
				<aspectratio>keep</aspectratio>
				<texture>icon_back.png</texture>
			</control>
			<control type="button">
				<description>Home push button</description>
				<left>55</left>
				<top>0</top>
				<width>45</width>
				<height>45</height>
				<label>31003</label>
				<font>-</font>
				<onclick>ActivateWindow(home)</onclick>
				<texturefocus border="5">floor_buttonFO.png</texturefocus>
				<texturenofocus border="5">floor_button.png</texturenofocus>
				<onleft>50</onleft>
				<onright>50</onright>
				<onup>50</onup>
				<ondown>50</ondown>
			</control>
			<control type="image">
				<description>Home Icon</description>
				<left>60</left>
				<top>5</top>
				<width>35</width>
				<height>35</height>
				<aspectratio>keep</aspectratio>
				<texture>icon_home.png</texture>
			</control>
		</control>
	</include>
	<include name="CommonNowPlaying">
		<control type="group">
			<visible>Player.HasMedia + !SubString(Window(videolibrary).Property(TvTunesIsAlive),TRUE)</visible>
			<include>VisibleFadeEffect</include>
			<animation effect="fade" time="250" condition="Window.Previous(Home)">WindowOpen</animation>
			<animation effect="fade" time="250" condition="Window.Next(Home)">WindowClose</animation>
			<control type="button">
				<description>push button</description>
				<left>30</left>
				<top>55r</top>
				<width>45</width>
				<height>45</height>
				<label>31003</label>
				<font>-</font>
				<onclick>ActivateWindow(PlayerControls)</onclick>
				<texturefocus border="5">floor_buttonFO.png</texturefocus>
				<texturenofocus border="5">floor_button.png</texturenofocus>
				<onleft>50</onleft>
				<onright>50</onright>
				<onup>50</onup>
				<ondown>50</ondown>
			</control>
			<control type="image">
				<description>Player Icon</description>
				<left>35</left>
				<top>50r</top>
				<width>35</width>
				<height>35</height>
				<aspectratio>keep</aspectratio>
				<texture>icon_player.png</texture>
			</control>
			<control type="label">
				<left>85</left>
				<top>53r</top>
				<width>700</width>
				<height>20</height>
				<label>$INFO[Player.Title] - ([COLOR=blue]$INFO[Player.Time] / $INFO[Player.Duration,][/COLOR])</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<shadowcolor>black</shadowcolor>
			</control>
			<control type="label">
				<left>85</left>
				<top>32r</top>
				<width>700</width>
				<height>20</height>
				<label>$INFO[MusicPlayer.Artist]$INFO[MusicPlayer.Album, - ]</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<shadowcolor>black</shadowcolor>
				<visible>Player.HasAudio</visible>
			</control>
			<control type="label">
				<left>85</left>
				<top>30r</top>
				<width>700</width>
				<height>20</height>
				<label>$INFO[VideoPlayer.Studio]</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<shadowcolor>black</shadowcolor>
				<visible>Player.HasVideo + VideoPlayer.Content(Movies)</visible>
			</control>
			<control type="label">
				<left>85</left>
				<top>30r</top>
				<width>700</width>
				<height>20</height>
				<label>$INFO[VideoPlayer.TVShowTitle]</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<shadowcolor>black</shadowcolor>
				<visible>Player.HasVideo + VideoPlayer.Content(Episodes)</visible>
			</control>
			<control type="label">
				<left>85</left>
				<top>30r</top>
				<width>700</width>
				<height>20</height>
				<label>$INFO[VideoPlayer.Artist]</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<shadowcolor>black</shadowcolor>
				<visible>Player.HasVideo + VideoPlayer.Content(MusicVideos)</visible>
			</control>
			<control type="label">
				<left>85</left>
				<top>30r</top>
				<width>700</width>
				<height>20</height>
				<label>$INFO[VideoPlayer.ChannelName]$INFO[VideoPlayer.ChannelNumberLabel, - ([COLOR=blue],[/COLOR])]</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<shadowcolor>black</shadowcolor>
				<visible>Player.HasVideo + VideoPlayer.Content(LiveTV)</visible>
			</control>
		</control>
	</include>
	<include name="CommonPageCount">
		<control type="group">
			<animation effect="slide" start="0,0" end="-90,0" time="0" condition="system.getbool(input.enablemouse)">Conditional</animation>
			<control type="label">
				<description>Page Count Label</description>
				<right>40</right>
				<top>53r</top>
				<width>500</width>
				<height>20</height>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<scroll>false</scroll>
				<align>right</align>
				<aligny>center</aligny>
				<label>$INFO[Container.NumItems,([COLOR=blue],[/COLOR]) $LOCALIZE[31025]]$INFO[Container.CurrentPage, - $LOCALIZE[31024] ([COLOR=blue]]$INFO[Container.NumPages,/,[/COLOR])]</label>
				<include>Window_OpenClose_Animation</include>
			</control>
			<control type="label">
				<description>Container Duration Label</description>
				<right>40</right>
				<top>32r</top>
				<width>500</width>
				<height>20</height>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<scroll>false</scroll>
				<align>right</align>
				<aligny>center</aligny>
				<label>$INFO[Container.TotalTime,$LOCALIZE[31009] ([COLOR=blue],[/COLOR])]</label>
				<include>Window_OpenClose_Animation</include>
			</control>
		</control>
	</include>
	<include name="SmallMusicInfo">
		<control type="image">
			<description>gradient</description>
			<left>0</left>
			<top>0</top>
			<width>500</width>
			<height>165</height>
			<colordiffuse>DDFFFFFF</colordiffuse>
			<texture border="20">OverlayDialogBackground.png</texture>
		</control>
		<control type="image">
			<description>Cover image</description>
			<left>20</left>
			<top>17</top>
			<width>130</width>
			<height>130</height>
			<texture>$INFO[MusicPlayer.Cover]</texture>
		</control>
		<control type="label">
			<description>Artist label</description>
			<left>160</left>
			<top>20</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[MusicPlayer.Artist]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12_title</font>
			<textcolor>grey2</textcolor>
			<shadowcolor>black</shadowcolor>
		</control>
		<control type="fadelabel">
			<description>Title label</description>
			<left>160</left>
			<top>43</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[Player.Title]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font13_title</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<scrollout>false</scrollout>
			<pauseatend>2000</pauseatend>
		</control>
		<control type="label">
			<description>Album Label</description>
			<left>160</left>
			<top>70</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[MusicPlayer.Album]$INFO[musicplayer.discnumber, - $LOCALIZE[427]:]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
		</control>
		<control type="label">
			<description>Time Label</description>
			<left>160</left>
			<top>95</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[MusicPlayer.Time]$INFO[MusicPlayer.Duration, / ]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
		</control>
		<control type="label">
			<description>Next Label</description>
			<left>160</left>
			<top>120</top>
			<height>30</height>
			<width>325</width>
			<label>[COLOR=blue]$LOCALIZE[19031] :[/COLOR] $INFO[MusicPlayer.offset(1).Title]</label>
			<align>right</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>grey</textcolor>
			<shadowcolor>black</shadowcolor>
		</control>
	</include>
	<include name="SmallVideoInfo">
		<control type="image">
			<description>gradient</description>
			<left>0</left>
			<top>0</top>
			<width>500</width>
			<height>165</height>
			<colordiffuse>DDFFFFFF</colordiffuse>
			<texture border="20">OverlayDialogBackground.png</texture>
		</control>
		<control type="image">
			<description>Cover image</description>
			<left>20</left>
			<top>17</top>
			<width>130</width>
			<height>130</height>
			<aspectratio>keep</aspectratio>
			<texture>$INFO[VideoPlayer.cover]</texture>
		</control>
		<control type="label">
			<description>Studio label</description>
			<left>160</left>
			<top>20</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[VideoPlayer.Studio]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12_title</font>
			<textcolor>grey2</textcolor>
			<shadowcolor>black</shadowcolor>
			<visible>!videoplayer.content(episodes) + !videoplayer.content(musicvideos)</visible>
		</control>
		<control type="label">
			<description>TV Show Title label</description>
			<left>160</left>
			<top>20</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[VideoPlayer.tvshowtitle]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12_title</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<visible>videoplayer.content(episodes)</visible>
		</control>
		<control type="fadelabel">
			<description>Music Video Artist label</description>
			<left>160</left>
			<top>20</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[VideoPlayer.Artist]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12_title</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<visible>videoplayer.content(musicvideos)</visible>
			<scrollout>false</scrollout>
			<pauseatend>2000</pauseatend>
		</control>
		<control type="fadelabel">
			<description>Title label</description>
			<left>160</left>
			<top>43</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[Player.Title]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font13_title</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<scrollout>false</scrollout>
			<pauseatend>2000</pauseatend>
		</control>
		<control type="label">
			<description>Genre label</description>
			<left>160</left>
			<top>70</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[VideoPlayer.Genre]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<visible>!videoplayer.content(episodes) + !videoplayer.content(musicvideos)</visible>
		</control>
		<control type="label">
			<left>160</left>
			<top>70</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[VideoPlayer.Album]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<visible>videoplayer.content(musicvideos)</visible>
		</control>
		<control type="label">
			<description>Season and Episode label</description>
			<left>160</left>
			<top>70</top>
			<height>30</height>
			<width>325</width>
			<label>$LOCALIZE[20373] $INFO[VideoPlayer.Season] - $LOCALIZE[20359] $INFO[VideoPlayer.episode]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<visible>videoplayer.content(episodes)</visible>
		</control>
		<control type="label">
			<description>Time Label</description>
			<left>160</left>
			<top>95</top>
			<height>30</height>
			<width>325</width>
			<label>$INFO[VideoPlayer.Time]$INFO[VideoPlayer.Duration, / ]</label>
			<align>left</align>
			<aligny>center</aligny>
			<font>font12</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
		</control>
	</include>
	<include name="CommonNowPlaying_Controls">
		<control type="label" id="202">
			<width>250</width>
			<height>35</height>
			<font>font12</font>
			<label>31023</label>
			<textcolor>blue</textcolor>
			<align>center</align>
			<aligny>center</aligny>
			<visible>Player.HasMedia</visible>
			<include>VisibleFadeEffect</include>
		</control>
		<control type="button" id="610">
			<description>Fake Button to fix Player Controls Navigation</description>
			<visible>false</visible>
		</control>
		<control type="group" id="9006">
			<width>250</width>
			<height>45</height>
			<visible>VideoPlayer.Content(LiveTV)</visible>
			<include>VisibleFadeEffect</include>
			<control type="button" id="600">
				<left>20</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDChannelUPFO.png</texturefocus>
				<texturenofocus>OSDChannelUPNF.png</texturenofocus>
				<onleft>50</onleft>
				<onright>601</onright>
				<onup>610</onup>
				<ondown>611</ondown>
				<onclick>ChannelDown</onclick>
			</control>
			<control type="button" id="601">
				<left>60</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDChannelDownFO.png</texturefocus>
				<texturenofocus>OSDChannelDownNF.png</texturenofocus>
				<onleft>600</onleft>
				<onright>603</onright>
				<onup>610</onup>
				<ondown>611</ondown>
				<onclick>ChannelUp</onclick>
			</control>
			<control type="button" id="603">
				<left>100</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDStopFO.png</texturefocus>
				<texturenofocus>OSDStopNF.png</texturenofocus>
				<onleft>601</onleft>
				<onright>604</onright>
				<onup>610</onup>
				<ondown>611</ondown>
				<onclick>down</onclick>
				<onclick>PlayerControl(Stop)</onclick>
			</control>
			<control type="togglebutton" id="604">
				<left>140</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDPauseFO.png</texturefocus>
				<texturenofocus>OSDPauseNF.png</texturenofocus>
				<usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
				<alttexturefocus>OSDPlayFO.png</alttexturefocus>
				<alttexturenofocus>OSDPlayNF.png</alttexturenofocus>
				<onleft>603</onleft>
				<onright>605</onright>
				<onup>610</onup>
				<ondown>606</ondown>
				<onback>50</onback>
				<onclick>PlayerControl(Play)</onclick>
				<enable>Player.PauseEnabled</enable>
				<animation effect="fade" start="100" end="30" time="100" condition="!Player.PauseEnabled">Conditional</animation>
			</control>
			<control type="button" id="605">
				<left>180</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDRecordOffFO.png</texturefocus>
				<texturenofocus>OSDRecordOffNF.png</texturenofocus>
				<onleft>604</onleft>
				<onright>50</onright>
				<onup>610</onup>
				<ondown>611</ondown>
				<onclick>PlayerControl(record)</onclick>
				<enable>Player.CanRecord</enable>
				<animation effect="fade" start="100" end="30" time="100" condition="!Player.CanRecord">Conditional</animation>
			</control>
		</control>
		<control type="group" id="9005">
			<visible>Player.HasMedia</visible>
			<visible>!VideoPlayer.Content(LiveTV)</visible>
			<include>VisibleFadeEffect</include>
			<width>250</width>
			<height>45</height>
			<defaultcontrol always="true">603</defaultcontrol>
			<control type="button" id="600">
				<left>5</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDPrevTrackFO.png</texturefocus>
				<texturenofocus>OSDPrevTrackNF.png</texturenofocus>
				<onleft>50</onleft>
				<onright>606</onright>
				<onup>610</onup>
				<ondown>611</ondown>
				<onback>50</onback>
				<onclick>PlayerControl(Previous)</onclick>
			</control>
			<control type="button" id="606">
				<left>45</left>
				<top>2</top>
				<width>39</width>
				<height>39</height>
				<label>-</label>
				<texturefocus>OSDRewindFO.png</texturefocus>
				<texturenofocus>OSDRewindNF.png</texturenofocus>
				<onleft>600</onleft>
				<onright>603</onright>
				<onup>610</onup>
				<ondown>611</ondown>
				<onback>50</onback>
				<onclick>PlayerControl(Rewind)</onclick>
				<visible>Window.IsVisible(MusicPlaylist) | Window.IsVisible(VideoPlaylist) | Player.HasVideo</visible>
			</control>
			<control type="group">
				<animation effect="slide" start="0,0" end="40,0" time="0" condition="Window.IsVisible(MusicPlaylist) | Window.IsVisible(VideoPlaylist) | Player.HasVideo">Conditional</animation>
				<control type="togglebutton" id="603">
					<left>45</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<label>-</label>
					<texturefocus>OSDPauseFO.png</texturefocus>
					<texturenofocus>OSDPauseNF.png</texturenofocus>
					<usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
					<alttexturefocus>OSDPlayFO.png</alttexturefocus>
					<alttexturenofocus>OSDPlayNF.png</alttexturenofocus>
					<onleft>606</onleft>
					<onright>601</onright>
					<onup>610</onup>
					<ondown>611</ondown>
					<onback>50</onback>
					<onclick>PlayerControl(Play)</onclick>
				</control>
				<control type="button" id="601">
					<left>85</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<label>-</label>
					<texturefocus>OSDStopFO.png</texturefocus>
					<texturenofocus>OSDStopNF.png</texturenofocus>
					<onleft>603</onleft>
					<onright>607</onright>
					<onup>610</onup>
					<ondown>611</ondown>
					<onback>50</onback>
					<onclick>down</onclick>
					<onclick>PlayerControl(Stop)</onclick>
				</control>
				<control type="button" id="607">
					<left>125</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<label>-</label>
					<texturefocus>OSDForwardFO.png</texturefocus>
					<texturenofocus>OSDForwardNF.png</texturenofocus>
					<onleft>601</onleft>
					<onright>602</onright>
					<onup>610</onup>
					<ondown>611</ondown>
					<onback>50</onback>
					<onclick>PlayerControl(Forward)</onclick>
					<visible>Window.IsVisible(MusicPlaylist) | Window.IsVisible(VideoPlaylist) | Player.HasVideo</visible>
				</control>
				<control type="button" id="602">
					<left>125</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<label>-</label>
					<texturefocus>OSDNextTrackFO.png</texturefocus>
					<texturenofocus>OSDNextTrackNF.png</texturenofocus>
					<onleft>607</onleft>
					<onright>604</onright>
					<onup>610</onup>
					<ondown>611</ondown>
					<onback>50</onback>
					<onclick>PlayerControl(Next)</onclick>
					<animation effect="slide" start="0,0" end="40,0" time="0" condition="Window.IsVisible(MusicPlaylist) | Window.IsVisible(VideoPlaylist) | Player.HasVideo">Conditional</animation>
				</control>
			</control>
			<control type="group">
				<visible>!Window.IsVisible(MusicPlaylist) + !Window.IsVisible(VideoPlaylist) + !Player.HasVideo</visible>
				<control type="button" id="604">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<label>-</label>
					<texturefocus>-</texturefocus>
					<texturenofocus>-</texturenofocus>
					<onclick>PlayerControl(Repeat)</onclick>
					<onleft>602</onleft>
					<onright>605</onright>
					<onup>610</onup>
					<ondown>611</ondown>
					<onback>50</onback>
				</control>
				<control type="image">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<texture>OSDRepeatNF.png</texture>
					<visible>!Playlist.IsRepeat + !Playlist.IsRepeatOne</visible>
					<visible>!Control.HasFocus(604)</visible>
				</control>
				<control type="image">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<texture>OSDRepeatFO.png</texture>
					<visible>!Playlist.IsRepeat + !Playlist.IsRepeatOne</visible>
					<visible>Control.HasFocus(604)</visible>
				</control>
				<control type="image">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<texture>OSDRepeatOneNF.png</texture>
					<visible>Playlist.IsRepeatOne</visible>
					<visible>!Control.HasFocus(604)</visible>
				</control>
				<control type="image">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<texture>OSDRepeatOneFO.png</texture>
					<visible>Playlist.IsRepeatOne</visible>
					<visible>Control.HasFocus(604)</visible>
				</control>
				<control type="image">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<texture>OSDRepeatAllNF.png</texture>
					<visible>Playlist.IsRepeat</visible>
					<visible>!Control.HasFocus(604)</visible>
				</control>
				<control type="image">
					<left>165</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<texture>OSDRepeatAllFO.png</texture>
					<visible>Playlist.IsRepeat</visible>
					<visible>Control.HasFocus(604)</visible>
				</control>
				<control type="togglebutton" id="605">
					<left>205</left>
					<top>2</top>
					<width>39</width>
					<height>39</height>
					<label>-</label>
					<texturefocus>OSDRandomOffFO.png</texturefocus>
					<texturenofocus>OSDRandomOffNF.png</texturenofocus>
					<usealttexture>Playlist.IsRandom</usealttexture>
					<alttexturefocus>OSDRandomOnFO.png</alttexturefocus>
					<alttexturenofocus>OSDRandomOnNF.png</alttexturenofocus>
					<onclick>PlayerControl(Random)</onclick>
					<onleft>604</onleft>
					<onright>50</onright>
					<onup>610</onup>
					<ondown>611</ondown>
					<onback>50</onback>
				</control>
			</control>
		</control>
		<control type="radiobutton" id="611">
			<description>Go to fullscreen Playback</description>
			<include>ButtonCommonValues</include>
			<label>31008</label>
			<onclick>fullscreen</onclick>
			<textureradioonfocus>GoFullscreen.png</textureradioonfocus>
			<textureradioonnofocus>GoFullscreen.png</textureradioonnofocus>
			<textureradioofffocus>GoFullscreen.png</textureradioofffocus>
			<textureradiooffnofocus>GoFullscreen.png</textureradiooffnofocus>
			<visible>Player.HasMedia</visible>
		</control>
		<control type="button" id="612">
			<description>Go to playlist</description>
			<include>ButtonCommonValues</include>
			<label>13350</label>
			<onclick>$VAR[PlayList]</onclick>
			<visible>[Window.IsActive(videolibrary) + !StringCompare(Playlist.Length(video),0)] | [[Window.IsActive(musiclibrary) | Window.IsActive(musicfiles)] + !StringCompare(Playlist.Length(music),0)]</visible>
		</control>
	</include>
	<include name="ScrollOffsetLabel">
		<control type="group">
			<visible>Container.Scrolling + [StringCompare(Container.SortMethod,$LOCALIZE[551]) | StringCompare(Container.SortMethod,$LOCALIZE[561]) | StringCompare(Container.SortMethod,$LOCALIZE[558]) | StringCompare(Container.SortMethod,$LOCALIZE[557]) | StringCompare(Container.SortMethod,$LOCALIZE[556])]</visible>
			<animation effect="slide" start="0,0" end="0,-60" time="100">Visible</animation>
			<animation effect="slide" start="0,-60" end="0,0" delay="400" time="100">Hidden</animation>
			<left>300r</left>
			<top>720</top>
			<control type="image">
				<left>0</left>
				<top>0</top>
				<width>70</width>
				<height>65</height>
				<texture border="20,20,20,2">InfoMessagePanel.png</texture>
			</control>
			<control type="label">
				<left>5</left>
				<top>0</top>
				<width>65</width>
				<height>60</height>
				<align>center</align>
				<aligny>center</aligny>
				<label>$INFO[ListItem.SortLetter]</label>
				<textcolor>white</textcolor>
				<font>font30_title</font>
			</control>
		</control>
	</include>
	<include name="Clock">
		<control type="label">
			<description>time label</description>
			<right>20</right>
			<top>5</top>
			<width>200</width>
			<height>30</height>
			<align>right</align>
			<aligny>center</aligny>
			<font>font28_title</font>
			<textcolor>white</textcolor>
			<shadowcolor>black</shadowcolor>
			<label>$INFO[System.Time]</label>
			<animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
		</control>
	</include>
	<include name="HomeAddonsCommonLayout">
		<include>Window_OpenClose_Animation</include>
		<animation type="Visible">
			<effect type="slide" start="0,30" end="0,0" delay="200" easing="out" tween="quadratic" time="200"/>
			<effect type="fade" start="0" end="100" delay="200" time="200"/>
		</animation>
		<animation type="Hidden">
			<effect type="zoom" start="100" end="70" center="auto" easing="in" tween="quadratic" time="300"/>
			<effect type="fade" start="100" end="0" time="300"/>
		</animation>
		<hitrect x="0" y="530" w="1280" h="120"/>
		<left>0</left>
		<top>190r</top>
		<width>1280</width>
		<height>200</height>
		<pagecontrol>-</pagecontrol>
		<scrolltime>300</scrolltime>
		<focusposition>3</focusposition>
		<movement>2</movement>
		<orientation>Horizontal</orientation>
		<itemlayout height="200" width="182">
			<control type="image">
				<left>0</left>
				<top>0</top>
				<width>180</width>
				<height>120</height>
				<aspectratio aligny="bottom">keep</aspectratio>
				<bordertexture border="5">button-nofocus.png</bordertexture>
				<bordersize>3</bordersize>
				<texture background="true">$INFO[ListItem.Icon]</texture>
			</control>
			<control type="image">
				<left>5</left>
				<top>120</top>
				<width>170</width>
				<height>110</height>
				<aspectratio aligny="top">keep</aspectratio>
				<texture diffuse="diffuse_mirror2.png" flipy="true" background="true">$INFO[ListItem.Icon]</texture>
			</control>
			<control type="label">
				<left>1</left>
				<top>125</top>
				<width>180</width>
				<height>20</height>
				<font>font12</font>
				<textcolor>grey2</textcolor>
				<align>center</align>
				<aligny>center</aligny>
				<label>$INFO[ListItem.Label]</label>
			</control>
		</itemlayout>
		<focusedlayout height="200" width="182">
			<control type="image">
				<left>0</left>
				<top>0</top>
				<width>180</width>
				<height>120</height>
				<aspectratio aligny="bottom">keep</aspectratio>
				<bordertexture border="5">button-nofocus.png</bordertexture>
				<bordersize>3</bordersize>
				<texture background="true">$INFO[ListItem.Icon]</texture>
				<visible>!ControlGroup(9002).HasFocus</visible>
			</control>
			<control type="image">
				<left>0</left>
				<top>0</top>
				<width>180</width>
				<height>120</height>
				<aspectratio aligny="bottom">keep</aspectratio>
				<bordertexture border="5">folder-focus.png</bordertexture>
				<bordersize>3</bordersize>
				<texture background="true">$INFO[ListItem.Icon]</texture>
				<visible>ControlGroup(9002).HasFocus</visible>
			</control>
			<control type="image">
				<left>5</left>
				<top>120</top>
				<width>170</width>
				<height>110</height>
				<aspectratio aligny="top">keep</aspectratio>
				<texture diffuse="diffuse_mirror2.png" flipy="true" background="true">$INFO[ListItem.Icon]</texture>
			</control>
			<control type="label">
				<left>1</left>
				<top>125</top>
				<width>180</width>
				<height>20</height>
				<font>font12</font>
				<textcolor>white</textcolor>
				<align>center</align>
				<aligny>center</aligny>
				<label>$INFO[ListItem.Label]</label>
				<visible>Control.HasFocus(9002)</visible>
			</control>
			<control type="label">
				<left>1</left>
				<top>125</top>
				<width>180</width>
				<height>20</height>
				<font>font12</font>
				<textcolor>grey2</textcolor>
				<align>center</align>
				<aligny>center</aligny>
				<label>$INFO[ListItem.Label]</label>
				<visible>!Control.HasFocus(9002)</visible>
			</control>
		</focusedlayout>
	</include>
	<include name="TVNextAiredListCommonLayout">
		<itemlayout height="150" width="280">
			<control type="image">
				<left>0</left>
				<top>0</top>
				<width>280</width>
				<height>145</height>
				<texture border="10">button-nofocus.png</texture>
			</control>
			<control type="image">
				<description>Thumb</description>
				<left>5</left>
				<top>5</top>
				<width>270</width>
				<height>55</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Art(poster))]</texture>
				<visible>StringCompare(Window(Home).Property(TVGuide.ThumbType),0)</visible>
			</control>
			<control type="image">
				<description>Banner</description>
				<left>5</left>
				<top>5</top>
				<width>270</width>
				<height>55</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Art(banner))]</texture>
				<visible>StringCompare(Window(Home).Property(TVGuide.ThumbType),1)</visible>
			</control>
			<control type="image">
				<description>Logo</description>
				<left>5</left>
				<top>5</top>
				<width>270</width>
				<height>55</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Path),,logo.png]</texture>
				<visible>StringCompare(Window(Home).Property(TVGuide.ThumbType),2)</visible>
			</control>
			<control type="label">
				<description>Episode Number</description>
				<left>10</left>
				<top>60</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(NextNumber),$LOCALIZE[20359] [COLOR=blue]-[/COLOR] ]</label>
				<textcolor>white</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
			<control type="label">
				<description>Episode Name</description>
				<left>10</left>
				<top>80</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(NextTitle)]</label>
				<textcolor>white</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
			<control type="label">
				<description>Next air date/time</description>
				<left>10</left>
				<top>100</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(ShortTime)]$INFO[ListItem.Property(NextDate), [COLOR=blue]-[/COLOR] ]</label>
				<textcolor>grey2</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
			<control type="label">
				<description>Duration</description>
				<left>10</left>
				<top>120</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(Runtime),, $LOCALIZE[12391]]$INFO[ListItem.Property(Network), [COLOR=blue]-[/COLOR] (,)]</label>
				<textcolor>grey2</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
		</itemlayout>
		<focusedlayout height="150" width="280">
			<control type="image">
				<left>0</left>
				<top>0</top>
				<width>280</width>
				<height>145</height>
				<texture border="10">button-focus2.png</texture>
			</control>
			<control type="image">
				<description>Thumb</description>
				<left>5</left>
				<top>5</top>
				<width>270</width>
				<height>55</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Art(poster))]</texture>
				<visible>StringCompare(Window(Home).Property(TVGuide.ThumbType),0)</visible>
			</control>
			<control type="image">
				<description>Banner</description>
				<left>5</left>
				<top>5</top>
				<width>270</width>
				<height>55</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Art(banner))]</texture>
				<visible>StringCompare(Window(Home).Property(TVGuide.ThumbType),1)</visible>
			</control>
			<control type="image">
				<description>Logo</description>
				<left>5</left>
				<top>5</top>
				<width>270</width>
				<height>55</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Property(Path),,logo.png]</texture>
				<visible>StringCompare(Window(Home).Property(TVGuide.ThumbType),2)</visible>
			</control>
			<control type="label">
				<description>Episode Number</description>
				<left>10</left>
				<top>60</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(NextNumber),$LOCALIZE[20359] [COLOR=blue]-[/COLOR] ]</label>
				<textcolor>selected</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
			<control type="label">
				<description>Episode Name</description>
				<left>10</left>
				<top>80</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(NextTitle)]</label>
				<textcolor>selected</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
			<control type="label">
				<description>Next air date/time</description>
				<left>10</left>
				<top>100</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(ShortTime)]$INFO[ListItem.Property(NextDate), [COLOR=blue]-[/COLOR] ]</label>
				<textcolor>white</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
			<control type="label">
				<description>Duration</description>
				<left>10</left>
				<top>120</top>
				<width>260</width>
				<height>15</height>
				<label>$INFO[ListItem.Property(Runtime),, $LOCALIZE[12391]]$INFO[ListItem.Property(Network), [COLOR=blue]-[/COLOR] (,)]</label>
				<textcolor>white</textcolor>
				<font>font12</font>
				<align>center</align>
			</control>
		</focusedlayout>
	</include>
	<include name="backgroundfade">
		<animation effect="fade" time="600">Visible</animation>
		<animation effect="fade" time="600">Hidden</animation>
	</include>
	<include name="Window_OpenClose_Animation">
		<animation effect="fade" time="250">WindowOpen</animation>
		<animation effect="fade" time="250">WindowClose</animation>
	</include>
	<include name="dialogeffect">
		<animation effect="fade" time="250">WindowOpen</animation>
		<animation effect="fade" time="250">WindowClose</animation>
	</include>
	<include name="VisibleFadeEffect">
		<animation effect="fade" time="300">Visible</animation>
		<animation effect="fade" time="300">Hidden</animation>
	</include>
	<include name="KeyboardButton">
		<width>50</width>
		<height>50</height>
		<texturenofocus border="3">KeyboardKeyNF.png</texturenofocus>
		<texturefocus border="5">KeyboardKey.png</texturefocus>
		<align>center</align>
		<aligny>center</aligny>
		<font>font13</font>
		<focusedcolor>black</focusedcolor>
	</include>
</includes>
