<includes>

<!-- =================== -->
<!-- Home Window SubMenu -->
<!-- =================== -->

<!-- Wrap List Vars -->
	<include name="SubMenuWraplistVarsDown">
	  <include>HomeSlideAnimations</include>
		<posx>285</posx>
		<posy>370</posy>
		<width>700</width>
		<height>201</height>
		<onup>23</onup>
		<ondown>23</ondown>
		<onleft>20</onleft>
		<onright>20</onright>
		<orientation>vertical</orientation>
		<focusposition>0</focusposition>
		<scrolltime>200</scrolltime>
		<animation type="Conditional" condition="Control.HasFocus(23)">
        <effect type="fade" start="0" end="100" time="300" tween="sine" easing="in"  />
        <effect type="slide" start="0,-35" end="0,0" time="350" tween="cubic" easing="out" />
		</animation>
		<animation type="Conditional" condition="!Control.HasFocus(23)">
        <effect type="fade" start="100" end="0" time="300" tween="sine" easing="out" />
        <effect type="slide" start="0,0" end="0,-35" time="350" tween="sine" easing="out" />
		</animation>     
	</include>


<!-- Item Layout Vars -->
	<include name="SubMenuItemLayoutVarsDown">
		<posx>350</posx>
		<posy>0</posy>
		<width>700</width>
		<height>50</height>
		<align>center</align>
		<aligny>center</aligny>
		<font>FontSize_46</font>
		<textcolor>white</textcolor>
		<shadowcolor>99000000</shadowcolor>
		<info>ListItem.Label</info>
		<animation type="Conditional" condition="true" reversible="false">
			<effect type="fade" end="40" time="0" />
			<effect type="zoom" end="75" time="0" />
		</animation>
	</include>


<!-- Focused Layout Vars -->
	<include name="SubMenuFocusedLayoutVarsDown">
		<posx>350</posx>
		<posy>0</posy>
		<width>700</width>
		<height>50</height>
		<align>center</align>
		<aligny>center</aligny>
		<font>FontSize_46</font>
		<textcolor>white</textcolor>
		<shadowcolor>99000000</shadowcolor>
		<label>$INFO[ListItem.label]</label>
		<animation type="Focus" condition="Container(23).OnNext | Container(23).OnPrevious" reversible="false">
			<effect type="fade" start="40" end="100" time="200" tween="sine" easing="in" />
			<effect type="zoom" start="75" end="100" time="200" tween="sine" easing="in" />
		</animation>
		<animation type="Unfocus" condition="Container(23).OnNext | Container(23).OnPrevious" reversible="false">
			<effect type="fade" start="100" end="40" time="200" tween="sine" easing="out" />
			<effect type="zoom" start="100" end="75" time="200" tween="sine" easing="out" />
		</animation>
	</include>
	

  <!-- Home SubMenu Movies -->
	<include name="HomeSubMenuMovies">

		<control type="wraplist" id="23">
			<description>SubMenu Container Movies</description>
			<visible>![Window.IsActive(ShutdownMenu) | Window.IsActive(BusyDialog) | Window.IsActive(ProgressDialog) | Window.IsActive(PlayerControls) | Container(20).OnNext | Container(20).OnPrevious] + Container(20).HasFocus(2)</visible>
			<include>SubMenuWraplistVarsDown</include>
			<itemlayout height="46">
				<control type="label">
					<include>SubMenuItemLayoutVarsDown</include>
				</control>
			</itemlayout>
			<focusedlayout height="55">
				<control type="label">
					<include>SubMenuFocusedLayoutVarsDown</include>
				</control>
			</focusedlayout>
			<content>
				<item id="0">
					<label>$LOCALIZE[31200]</label>
					<onclick>SetFocus(81)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="1">
					<label>$LOCALIZE[31018]</label>
					<onclick>ActivateWindow(10025,plugin://plugin.video.the.trailers/,return)</onclick>
					<visible>System.HasAddon(plugin.video.the.trailers)</visible>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="2">
					<label>$LOCALIZE[135]</label>
					<onclick>ActivateWindow(videos,moviegenres,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="3">			
					<label>$LOCALIZE[652]</label>
					<onclick>ActivateWindow(videos,movieyears,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="4">
					<label>$LOCALIZE[344]</label>
					<onclick>ActivateWindow(videos,movieactors,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="5">
					<label>$LOCALIZE[20348]</label>
					<onclick>ActivateWindow(videos,moviedirectors,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="6">
					<label>$LOCALIZE[20388]</label>
					<onclick>ActivateWindow(videos,moviestudios,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="7">
					<label>$LOCALIZE[136]</label>
					<onclick>ActivateWindow(videos,playlists,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="8">
					<label>$LOCALIZE[20434]</label>
					<onclick>ActivateWindow(Videos,MovieSets,return)</onclick>
					<visible>Library.HasContent(MovieSets)</visible>				
				</item>
				<item id="9">
					<label>$LOCALIZE[14022]</label>
					<onclick>ActivateWindow(videos,root)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="10">
					<label>$LOCALIZE[744]</label>
					<onclick>ActivateWindow(videos,files,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
				<item id="11">
					<label>$LOCALIZE[1037]</label>
					<onclick>ActivateWindow(videos,addons,return)</onclick>
					<visible>Library.HasContent(Movies)</visible>
				</item>
			</content>
		</control>				
	</include>


<!-- Home SubMenu TVShows -->
	<include name="HomeSubMenuTVShows">

		<control type="wraplist" id="23">
			<description>SubMenu Container TVShows</description>
			<visible>![Window.IsActive(ShutdownMenu) | Window.IsActive(BusyDialog) | Window.IsActive(ProgressDialog) | Window.IsActive(PlayerControls) | Container(20).OnNext | Container(20).OnPrevious] + Container(20).HasFocus(1)</visible>
			<include>SubMenuWraplistVarsDown</include>
			<itemlayout height="46">
				<control type="label">
					<include>SubMenuItemLayoutVarsDown</include>
				</control>
			</itemlayout>
			<focusedlayout height="55">
				<control type="label">
					<include>SubMenuFocusedLayoutVarsDown</include>
				</control>
			</focusedlayout>
			<content>
				<item id="0">
					<label>$LOCALIZE[31201]</label>
					<onclick>SetFocus(81)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>
				<item id="1">
					<label>$LOCALIZE[31001]</label>
					<onclick>XBMC.RunScript(script.tv.show.next.aired)</onclick>
				  <visible>System.HasAddon(script.tv.show.next.aired)</visible>
					<visible>Library.HasContent(TVShows)</visible>
				</item>
				<item id="2">			
					<label>$LOCALIZE[20388]</label>
					<onclick>ActivateWindow(videos,tvshowstudios,return)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>
				<item id="3">				
					<label>$LOCALIZE[135]</label>
					<onclick>ActivateWindow(videos,tvshowgenres,return)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>	
				<item id="4">
					<label>$LOCALIZE[344]</label>
					<onclick>ActivateWindow(videos,tvshowactors,return)</onclick>		
					<visible>Library.HasContent(TVShows)</visible>		
				</item>
				<item id="5">
					<label>$LOCALIZE[652]</label>
					<onclick>ActivateWindow(videos,tvshowyears,return)</onclick>		
					<visible>Library.HasContent(TVShows)</visible>		
				</item>
				<item id="6">
					<label>$LOCALIZE[136]</label>
					<onclick>ActivateWindow(videos,playlists,return)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>
				<item id="7">
					<label>$LOCALIZE[14022]</label>
					<onclick>ActivateWindow(videos,root)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>
				<item id="8">
					<label>$LOCALIZE[744]</label>
					<onclick>ActivateWindow(videos,files,return)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>
				<item id="9">
					<label>$LOCALIZE[1037]</label>
					<onclick>ActivateWindow(videos,addons,return)</onclick>
					<visible>Library.HasContent(TVShows)</visible>
				</item>	
			</content>
		</control>
	</include>


<!-- Home SubMenu Music -->
	<include name="HomeSubMenuMusic">

		<control type="wraplist" id="23">
			<description>SubMenu Container Music</description>
			<visible>![Window.IsActive(ShutdownMenu) | Window.IsActive(BusyDialog) | Window.IsActive(ProgressDialog) | Window.IsActive(PlayerControls) | Container(20).OnNext | Container(20).OnPrevious] + Container(20).HasFocus(3)</visible>
			<include>SubMenuWraplistVarsDown</include>
			<itemlayout height="46">
				<control type="label">
					<include>SubMenuItemLayoutVarsDown</include>
				</control>
			</itemlayout>
			<focusedlayout height="55">
				<control type="label">
					<include>SubMenuFocusedLayoutVarsDown</include>
				</control>
			</focusedlayout>
			<content>
				<item id="0">
					<label>$LOCALIZE[31202]</label>
					<onclick>SetFocus(81)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="1">
					<label>$LOCALIZE[132]</label>
					<onclick>ActivateWindow(musiclibrary,albums,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="2">
					<label>$LOCALIZE[133]</label>
					<onclick>ActivateWindow(musiclibrary,artists,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="3">
					<label>$LOCALIZE[134]</label>
					<onclick>ActivateWindow(musiclibrary,songs,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="4">
					<label>$LOCALIZE[135]</label>
					<onclick>ActivateWindow(musiclibrary,genres,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="5">
					<label>$LOCALIZE[652]</label>
					<onclick>ActivateWindow(musiclibrary,years,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="6">
					<label>$LOCALIZE[271]</label>
					<onclick>ActivateWindow(musiclibrary,top100,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="7">
					<label>$LOCALIZE[521]</label>
					<onclick>ActivateWindow(musiclibrary,compilations,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="8">
					<label>$LOCALIZE[136]</label>
					<onclick>ActivateWindow(musiclibrary,playlists,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="9">
					<label>$LOCALIZE[14022]</label>
					<onclick>ActivateWindow(musiclibrary,root)</onclick>
					<visible>Library.HasContent(Music)</visible>
				</item>
				<item id="10">
					<label>$LOCALIZE[744]</label>
					<onclick>ActivateWindow(musicfiles)</onclick>
				</item>
				<item id="11">
					<label>$LOCALIZE[1038]</label>
					<onclick>ActivateWindow(musiclibrary,addons,return)</onclick>
			    <visible>Library.HasContent(Music)</visible>
				</item>
				<item id="12">
					<label>$LOCALIZE[1038]</label>
					<onclick>ActivateWindow(musicfiles,addons,return)</onclick>
			    <visible>!Library.HasContent(Music)</visible>
				</item>
			</content>
		</control>
	</include>


<!-- Home SubMenu Settings -->
	<include name="HomeSubMenuSettings">
		<control type="wraplist" id="23">
			<description>SubMenu Container Settings</description>
			<visible>![Window.IsActive(ShutdownMenu) | Window.IsActive(BusyDialog) | Window.IsActive(ProgressDialog) | Window.IsActive(PlayerControls) | Container(20).OnNext | Container(20).OnPrevious] + Container(20).HasFocus(9)</visible>
			<include>SubMenuWraplistVarsDown</include>
			<itemlayout height="46">
				<control type="label">
					<include>SubMenuItemLayoutVarsDown</include>
				</control>
			</itemlayout>
			<focusedlayout height="55">
				<control type="label">
					<include>SubMenuFocusedLayoutVarsDown</include>
				</control>
			</focusedlayout>
			<content>
				<item id="0">
					<label>$LOCALIZE[20077]</label>
					<onclick>ActivateWindow(SkinSettings)</onclick>
				</item>
				<item id="1">
					<label>$LOCALIZE[480]</label>
					<onclick>ActivateWindow(AppearanceSettings)</onclick>
				</item>
				<item id="2">
					<label>$LOCALIZE[24001]</label>
					<onclick>ActivateWindow(40)</onclick>
				</item>
				<item id="3">
					<label>$LOCALIZE[705]</label>
					<onclick>ActivateWindow(NetworkSettings)</onclick>
				</item>
				<item id="4">
					<label>$LOCALIZE[13200]</label>
					<onclick>ActivateWindow(Profiles)</onclick>
				</item>
				<item id="5">
					<label>$LOCALIZE[8]</label>
					<onclick>ActivateWindow(WeatherSettings)</onclick>
				</item>
				<item id="6">
					<label>$LOCALIZE[3]</label>
					<onclick>ActivateWindow(VideosSettings)</onclick>
				</item>
				<item id="7">
					<label>$LOCALIZE[31000]</label>
					<onclick>ActivateWindow(PVRSettings)</onclick>
				</item>
				<item id="8">
					<label>$LOCALIZE[292]</label>
					<onclick>ActivateWindow(MusicSettings)</onclick>
				</item>
				<item id="9">
					<label>$LOCALIZE[1]</label>
					<onclick>ActivateWindow(PicturesSettings)</onclick>
				</item>
				<item id="10">
					<label>$LOCALIZE[13000]</label>
					<onclick>ActivateWindow(SystemSettings)</onclick>
				</item>
				<item id="11">
					<label>$LOCALIZE[31016]</label>
					<onclick>ActivateWindow(FileManager,return)</onclick>
				</item>
				<item id="12">
					<label>$LOCALIZE[130]</label>
					<onclick>ActivateWindow(SystemInfo)</onclick>
				</item>
			</content>
		</control>
	</include>


<!-- Home SubMenu LiveTV -->
	<include name="HomeSubMenuLiveTV">
		<control type="wraplist" id="23">
			<description>SubMenu Container LiveTV</description>
			<visible>![Window.IsActive(ShutdownMenu) | Window.IsActive(BusyDialog) | Window.IsActive(ProgressDialog) | Window.IsActive(PlayerControls) | Container(20).OnNext | Container(20).OnPrevious] + Container(20).HasFocus(11)</visible>
			<include>SubMenuWraplistVarsDown</include>
			<itemlayout height="46">
				<control type="label">
					<include>SubMenuItemLayoutVarsDown</include>
				</control>
			</itemlayout>
			<focusedlayout height="55">
				<control type="label">
					<include>SubMenuFocusedLayoutVarsDown</include>
				</control>
			</focusedlayout>
			<content>
				<item id="0">
					<label>$LOCALIZE[19023]</label>
          <onclick>ActivateWindowAndFocus(PVR, 32,0, 11,0)</onclick>
				</item>
				<item id="1">
					<label>$LOCALIZE[19163]</label>
          <onclick>ActivateWindowAndFocus(PVR, 34,0, 13,0)</onclick>
				</item>
				<item id="2">
					<label>$LOCALIZE[19040]</label>
          <onclick>ActivateWindowAndFocus(PVR, 35,0, 14,0)</onclick>
				</item>
				<item id="3">
					<label>$LOCALIZE[19069]</label>
          <onclick>ActivateWindowAndFocus(PVR, 31,0, 10,0)</onclick>
				</item>
				<item id="4">
					<label>$LOCALIZE[137]</label>
          <onclick>ActivateWindowAndFocus(PVR, 36,0, 17,0)</onclick>
				</item>
				<item id="5">
					<label>$LOCALIZE[19024]</label>
          <onclick>ActivateWindowAndFocus(PVR, 33,0, 12,0)</onclick>
				</item>
			</content>
		</control>
	</include>


	

	<!-- ============================ -->
	<!-- == Content Top Slide Info == -->
	<!-- ============================ -->
	
	<include name="ContextMenuContentInfoWindows">
	  <control type="group">
				<posx>45</posx>
				<posy>25</posy>
		    <include>TopOptionsSlideAnimations</include>
	       <visible>!Window.IsVisible(LockSettings)</visible>
			<control type="grouplist">
				<posx>0</posx>
				<posy>0</posy>
				<height>70</height>
				<width>1000</width>
				<align>left</align>
				<aligny>center</aligny>
				<itemgap>20</itemgap>
				<orientation>horizontal</orientation>
				<control type="label">
				  <include>TopBigLabel</include>
					<label>31009</label>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>13200</label>
	       <visible>Window.IsVisible(Profiles)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>10029</label>
	       <visible>Window.IsVisible(LoginScreen)</visible>
				</control>
			</control>
	  </control>
	</include> 	
	
	
	
	<include name="ContextMenuContentInfo">
	  <control type="group">
				<posx>45</posx>
				<posy>25</posy>
		    <include>TopOptionsSlideAnimations</include>
	      <visible>!Window.IsVisible(LockSettings) + !Window.IsVisible(ProfileSettings) + !Window.IsVisible(LoginScreen) + !Window.IsVisible(Profiles)</visible>
			<control type="grouplist">
				<posx>0</posx>
				<posy>0</posy>
				<height>70</height>
				<width>1000</width>
				<align>left</align>
				<aligny>center</aligny>
				<itemgap>20</itemgap>
				<orientation>horizontal</orientation>
				<control type="label">
				  <include>TopBigLabel</include>
					<label>31009</label>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>3</label>
	       <visible>!Container.Content(Movies) + !Container.Content(TVShows) + !Container.Content(Seasons) + !Container.Content(Episodes) + !Window.IsVisible(MusicLibrary) + !Window.IsVisible(MusicFiles) + !Substring(Container.FolderPath,addons://) + !Window.IsVisible(Favourites)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>342</label>
	       <visible>Container.Content(Movies)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>31002</label>
	       <visible>Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Episodes)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>33054</label>
	       <visible>Container.Content(Seasons)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>20360</label>
	       <visible>Container.Content(Episodes)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>31021</label>
	        <visible>Window.IsVisible(MusicLibrary) + ![StringCompare(Container.FolderPath,special://musicplaylists/) | Substring(Container.FolderPath,.m3u,Right) | Substring(Container.FolderPath,.xsp,Right)]</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>31022</label>
	        <visible>Window.IsVisible(MusicFiles)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
					<label>$LOCALIZE[2] $LOCALIZE[559]</label>
				  <visible>StringCompare(Container.FolderPath,special://musicplaylists/) | Substring(Container.FolderPath,.m3u,Right) | Substring(Container.FolderPath,.xsp,Right)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>24001</label>
	        <visible>Substring(Container.FolderPath,addons://) + !Window.IsVisible(MusicLibrary) + !Window.IsVisible(MusicFiles)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>24048</label>
          <visible>Window.IsVisible(AddonInformation)</visible>
	        <visible>Substring(Container.FolderPath,addons://) + !Window.IsVisible(MusicLibrary) + !Window.IsVisible(MusicFiles)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
			    <label>1036</label>
	        <visible>Window.IsVisible(Favourites)</visible>
				</control>
			</control>
	  </control>
	</include> 
 

	<include name="PVROSDContentInfo">
	  <control type="group">
				<posx>45</posx>
				<posy>25</posy>
		    <include>TopOptionsSlideAnimations</include>
			<control type="grouplist">
				<posx>0</posx>
				<posy>0</posy>
				<height>70</height>
				<width>1000</width>
				<align>left</align>
				<aligny>center</aligny>
				<itemgap>20</itemgap>
				<orientation>horizontal</orientation>
				<control type="label">
				  <include>TopBigLabel</include>
				  <label>$INFO[VideoPlayer.ChannelName,$LOCALIZE[19222]: ]</label>
	        <visible>Window.IsVisible(PVROSDGuide)</visible>
				</control>
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
				  <label>$INFO[Container(11).ListItem.StartDate]</label>
	        <visible>Window.IsVisible(PVROSDGuide)</visible>
				</control>
				
				<control type="label">
				  <include>TopBigLabel</include>
				  <label>$LOCALIZE[19023] - $INFO[VideoPlayer.ChannelGroup]</label>
	        <visible>Window.IsVisible(PVROSDChannels)</visible>
				  <visible>!pvr.IsPlayingRadio</visible>
				</control>
				<control type="label">
				  <include>TopBigLabel</include>
				  <label>$LOCALIZE[19024] - $INFO[MusicPlayer.ChannelGroup]</label>
	        <visible>Window.IsVisible(PVROSDChannels)</visible>
				  <visible>pvr.IsPlayingRadio</visible>
				</control>				
				<control type="label">
				  <include>TopZoomedSmallLabel</include>
				  <label>$INFO[System.Date(ddd)], $INFO[System.Date(d)] $INFO[System.Date(mmm)] $INFO[System.Date(yyyy)]</label>
	        <visible>Window.IsVisible(PVROSDChannels)</visible>
				</control>				
			</control>
	  </control>
	</include> 


	<!-- ================== -->
	<!-- == Context Menu == -->
	<!-- ================== -->
	<include name="ContextMenuDefault">
      <control type="image" id="999">
        <description>background image</description>
				<posx>0</posx>
				<posy>0</posy>
        <width>480</width>
        <height>410</height>
        <texture>-</texture>
        <aspectratio aligny="center">stretch</aspectratio>
        <visible>false</visible>
      </control>
			<control type="grouplist" id="996">
				<posx>0</posx>
				<posy>0</posy>
				<width>480</width>
				<height max="405">auto</height>
				<itemgap>0</itemgap>
				<onleft>Close</onleft>
				<onright>Close</onright>
				<animation effect="fade" start="0" end="100" time="250" reversible="true">WindowOpen</animation>
				<animation effect="fade" start="100" end="0" time="200" reversible="true">WindowClose</animation>
			</control>
			<control type="button" id="1000">
				<description>button template</description>
				<width>480</width>
				<height>45</height>
				<textcolor>77white</textcolor>
				<focusedcolor>white</focusedcolor>
			  <disabledcolor>33white</disabledcolor>
		    <shadowcolor>99000000</shadowcolor>
				<align>center</align>
				<aligny>top</aligny>
				<textwidth>430</textwidth>
				<textoffsetx>23</textoffsetx>
				<textoffsety>7</textoffsety>
				<texturefocus border="23">windows/filemanager/contextmenu_fo.png</texturefocus>
				<texturenofocus>-</texturenofocus>
				<pulseonselect>no</pulseonselect>
				<font>FontSize_22</font>
			</control>
	</include>

	<include name="ContextMenuOnTopLeft">
      <control type="image" id="999">
        <description>background image</description>
				<posx>0</posx>
				<posy>0</posy>
        <width>1280</width>
        <height>1280</height>
        <texture>-</texture>
        <aspectratio aligny="center">stretch</aspectratio>
        <visible>false</visible>
      </control>
			<control type="grouplist" id="996">
				<posx>45</posx>
				<posy>75</posy>
				<width>460</width>
				<height max="520">auto</height>
				<itemgap>0</itemgap>
				<onleft>Close</onleft>
				<onright>Close</onright>
		    <include>TopOptionsSlideAnimations</include>
				<control type="button." id="990">
					<description>Library Editor Button</description>
					<width>460</width>
					<height>40</height>
	        <label>31125</label>
					<textcolor>77white</textcolor>
					<focusedcolor>white</focusedcolor>
				  <disabledcolor>33white</disabledcolor>
			    <shadowcolor>99000000</shadowcolor>
					<align>left</align>
					<aligny>top</aligny>
					<textwidth>430</textwidth>
					<textoffsetx>23</textoffsetx>
					<textoffsety>5</textoffsety>
					<texturefocus>buttons/contextmenu_fo.png</texturefocus>
					<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
					<pulseonselect>no</pulseonselect>
					<font>FontSize_22</font>
	        <onclick>RunScript(script.libraryeditor,DBID=$INFO[ListItem.DBID])</onclick>
	        <visible>[Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | Container.Content(musicvideos) | Container.Content(artists) | Container.Content(albums) | Container.Content(songs)] + System.HasAddon(script.libraryeditor)</visible>
				</control>
			</control>
			<control type="button" id="1000">
				<description>button template</description>
				<width>460</width>
				<height>40</height>
				<textcolor>77white</textcolor>
				<focusedcolor>white</focusedcolor>
			  <disabledcolor>33white</disabledcolor>
		    <shadowcolor>99000000</shadowcolor>
				<align>left</align>
				<aligny>top</aligny>
				<textwidth>430</textwidth>
				<textoffsetx>23</textoffsetx>
				<textoffsety>5</textoffsety>
				<texturefocus>buttons/contextmenu_fo.png</texturefocus>
				<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
				<pulseonselect>no</pulseonselect>
				<font>FontSize_22</font>
			</control>
	</include>

	<include name="ContextMenuFavourites">
      <control type="image" id="999">
        <description>background image</description>
				<posx>0</posx>
				<posy>0</posy>
        <width>1280</width>
        <height>1280</height>
        <texture>-</texture>
        <aspectratio aligny="center">stretch</aspectratio>
        <visible>false</visible>
      </control>
			<control type="grouplist" id="996">
				<posx>45</posx>
				<posy>75</posy>
				<width>460</width>
				<height max="520">auto</height>
				<itemgap>0</itemgap>
				<onleft>Close</onleft>
				<onright>Close</onright>
		    <include>TopOptionsSlideAnimations</include>
				<control type="button" id="991">
					<description>button template</description>
					<width>460</width>
					<height>40</height>
					<font>FontSize_22</font>
					<textcolor>77white</textcolor>
					<focusedcolor>white</focusedcolor>
				  <disabledcolor>33white</disabledcolor>
			    <shadowcolor>99000000</shadowcolor>
					<align>left</align>
					<aligny>top</aligny>
					<textwidth>430</textwidth>
					<textoffsetx>23</textoffsetx>
					<textoffsety>5</textoffsety>
					<texturefocus>buttons/contextmenu_fo.png</texturefocus>
					<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
					<pulseonselect>no</pulseonselect>
				  <onclick>SendClick(1001)</onclick>
	        <label>31028</label>
				</control>
				<control type="button" id="992">
					<description>button template</description>
					<width>460</width>
					<height>40</height>
					<font>FontSize_22</font>
					<textcolor>77white</textcolor>
					<focusedcolor>white</focusedcolor>
				  <disabledcolor>33white</disabledcolor>
			    <shadowcolor>99000000</shadowcolor>
					<align>left</align>
					<aligny>top</aligny>
					<textwidth>430</textwidth>
					<textoffsetx>23</textoffsetx>
					<textoffsety>5</textoffsety>
					<texturefocus>buttons/contextmenu_fo.png</texturefocus>
					<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
					<pulseonselect>no</pulseonselect>
				  <onclick>SendClick(1002)</onclick>
	        <label>31029</label>
				</control>
				<control type="button" id="993">
					<description>button template</description>
					<width>460</width>
					<height>40</height>
					<font>FontSize_22</font>
					<textcolor>77white</textcolor>
					<focusedcolor>white</focusedcolor>
				  <disabledcolor>33white</disabledcolor>
			    <shadowcolor>99000000</shadowcolor>
					<align>left</align>
					<aligny>top</aligny>
					<textwidth>430</textwidth>
					<textoffsetx>23</textoffsetx>
					<textoffsety>5</textoffsety>
					<texturefocus>buttons/contextmenu_fo.png</texturefocus>
					<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
					<pulseonselect>no</pulseonselect>
				  <onclick>SendClick(1003)</onclick>
	        <label>15015</label>
				</control>
				<control type="button" id="994">
					<description>button template</description>
					<width>460</width>
					<height>40</height>
					<font>FontSize_22</font>
					<textcolor>77white</textcolor>
					<focusedcolor>white</focusedcolor>
				  <disabledcolor>33white</disabledcolor>
			    <shadowcolor>99000000</shadowcolor>
					<align>left</align>
					<aligny>top</aligny>
					<textwidth>430</textwidth>
					<textoffsetx>23</textoffsetx>
					<textoffsety>5</textoffsety>
					<texturefocus>buttons/contextmenu_fo.png</texturefocus>
					<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
					<pulseonselect>no</pulseonselect>
				  <onclick>SendClick(1004)</onclick>
	        <label>118</label>
				</control>
				<control type="button" id="995">
					<description>button template</description>
					<width>460</width>
					<height>40</height>
					<font>FontSize_22</font>
					<textcolor>77white</textcolor>
					<focusedcolor>white</focusedcolor>
				  <disabledcolor>33white</disabledcolor>
			    <shadowcolor>99000000</shadowcolor>
					<align>left</align>
					<aligny>top</aligny>
					<textwidth>430</textwidth>
					<textoffsetx>23</textoffsetx>
					<textoffsety>5</textoffsety>
					<texturefocus>buttons/contextmenu_fo.png</texturefocus>
					<texturenofocus>buttons/contextmenu_nf.png</texturenofocus>
					<pulseonselect>no</pulseonselect>
				  <onclick>SendClick(1005)</onclick>
	        <label>20019</label>
				</control>
			</control>
			<control type="button" id="1000">
				<description>button template</description>
			  <include>TopButton</include>
			  <label>-</label>
        <visible>false</visible>
			</control>			
	</include>

	<include name="ContextMenuPVRChannelManager">
      <control type="image" id="999">
        <description>background image</description>
				<posx>0</posx>
				<posy>0</posy>
        <width>350</width>
        <height>304</height>
        <texture>-</texture>
        <aspectratio aligny="center">stretch</aspectratio>
        <visible>false</visible>
      </control>
			<control type="grouplist" id="996">
				<posx>0</posx>
				<posy>0</posy>
				<width>350</width>
				<height max="294">auto</height>
				<itemgap>0</itemgap>
				<onleft>Close</onleft>
				<onright>Close</onright>
				<animation effect="fade" start="0" end="100" time="250" reversible="true">WindowOpen</animation>
				<animation effect="fade" start="100" end="0" time="200" reversible="true">WindowClose</animation>
			</control>
			<control type="button" id="1000">
				<description>button template</description>
				<width>350</width>
				<height>40</height>
				<textcolor>77white</textcolor>
				<focusedcolor>white</focusedcolor>
			  <disabledcolor>33white</disabledcolor>
		    <shadowcolor>99000000</shadowcolor>
				<align>center</align>
				<aligny>top</aligny>
				<textwidth>430</textwidth>
				<textoffsetx>23</textoffsetx>
				<textoffsety>7</textoffsety>
				<texturefocus border="23">windows/filemanager/contextmenu_fo.png</texturefocus>
				<texturenofocus>-</texturenofocus>
				<pulseonselect>no</pulseonselect>
				<font>FontSize_22</font>
			</control>
	</include>

	<!-- ======================== -->
	<!-- == PVR EPGuide OSD Menu == -->
	<!-- ======================== -->
	<include name="PVRGuideOSDMenu">
			<control type="list" id="11">
		    <include>TopOptionsSlideAnimations</include>
		    <animation type="Conditional" reversible="false" condition="![Window.IsActive(PVRGuideInfo) | Window.IsActive(PVRRecordingInfo)]">
		        <effect type="fade" start="0" end="100" time="300" tween="sine" easing="in"  />
		        <effect type="slide" start="0,-55" end="0,0" time="350" tween="cubic" easing="out" />
		    </animation>
		    <animation type="Conditional" reversible="false" condition="Window.IsActive(PVRGuideInfo) | Window.IsActive(PVRRecordingInfo)">
		        <effect type="fade" start="100" end="0" time="300" tween="sine" easing="out" />
		        <effect type="slide" start="0,0" end="0,-55" time="350" tween="sine" easing="out" />
		    </animation>
				<posx>45</posx>
				<posy>75</posy>
				<width>480</width>
				<height>530</height>
				<itemgap>0</itemgap>
				<onleft>Close</onleft>
				<onright>Close</onright>
        <preloaditems>2</preloaditems>
				<viewtype label="535">list</viewtype>
			  <scrolltime tween="cubic" easing="out">300</scrolltime>
				<itemlayout height="58" width="480">
					<control type="label">
						<posx>5</posx>
						<posy>0</posy>
						<width>100</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>․</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>0</posy>
						<width>400</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.StartTime]</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>25</posy>
						<width>400</width>
						<height>40</height>
						<font>FontSize_20</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.Label]</label>
						<visible>![ListItem.IsRecording | ListItem.HasTimer]</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>30</width>
						<height>20</height>
						<texture>PVR-IsRecording.png</texture>
						<visible>ListItem.IsRecording</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>20</width>
						<height>20</height>
						<texture>PVR-HasTimer.png</texture>
						<visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
					</control>
					<control type="label.">
						<posx>400</posx>
						<posy>0</posy>
						<width>130</width>
						<height>40</height>
						<font>FontSize_22</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>right</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.StartTime]</label>
						<visible>ListItem.IsRecording | ListItem.HasTimer</visible>
					</control>
				</itemlayout>
				<focusedlayout height="58" width="480">
					<control type="label">
						<posx>5</posx>
						<posy>0</posy>
						<width>100</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>․</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>0</posy>
						<width>400</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.StartTime]</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>25</posy>
						<width>400</width>
						<height>40</height>
						<font>FontSize_20</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.Label]</label>
						<visible>![ListItem.IsRecording | ListItem.HasTimer]</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>30</width>
						<height>20</height>
						<texture>PVR-IsRecording.png</texture>
						<visible>ListItem.IsRecording</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>20</width>
						<height>20</height>
						<texture>PVR-HasTimer.png</texture>
						<visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
					</control>
					<control type="label.">
						<posx>400</posx>
						<posy>0</posy>
						<width>130</width>
						<height>40</height>
						<font>FontSize_22</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>right</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.StartTime]</label>
						<visible>ListItem.IsRecording | ListItem.HasTimer</visible>
					</control>
				</focusedlayout>
			</control>
	</include>



	<!-- =========================== -->
	<!-- == PVR Channels OSD Menu == -->
	<!-- =========================== -->
	<include name="PVRChannelsOSDMenu">
			<control type="list" id="11">
		    <include>TopOptionsSlideAnimations</include>
		    <animation type="Conditional" reversible="false" condition="![Window.IsActive(PVRGuideInfo) | Window.IsActive(PVRRecordingInfo)]">
		        <effect type="fade" start="0" end="100" time="300" tween="sine" easing="in"  />
		        <effect type="slide" start="0,-55" end="0,0" time="350" tween="cubic" easing="out" />
		    </animation>
		    <animation type="Conditional" reversible="false" condition="Window.IsActive(PVRGuideInfo) | Window.IsActive(PVRRecordingInfo)">
		        <effect type="fade" start="100" end="0" time="300" tween="sine" easing="out" />
		        <effect type="slide" start="0,0" end="0,-55" time="350" tween="sine" easing="out" />
		    </animation>		    
				<posx>45</posx>
				<posy>75</posy>
				<width>480</width>
				<height>530</height>
				<itemgap>0</itemgap>
				<onleft>Close</onleft>
				<onright>Close</onright>
        <preloaditems>2</preloaditems>
				<viewtype label="535">list</viewtype>
			  <scrolltime tween="cubic" easing="out">350</scrolltime>
				<itemlayout height="58" width="480">
					<control type="label">
						<posx>5</posx>
						<posy>0</posy>
						<width>100</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>․</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>0</posy>
						<width>400</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.ChannelNumber,,. ]$INFO[ListItem.Label]</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>25</posy>
						<width>400</width>
						<height>40</height>
						<font>FontSize_20</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.Title]</label>
						<visible>![ListItem.IsRecording | ListItem.HasTimer]</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>30</width>
						<height>20</height>
						<texture>PVR-IsRecording.png</texture>
						<visible>ListItem.IsRecording</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>20</width>
						<height>20</height>
						<texture>PVR-HasTimer.png</texture>
						<visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
					</control>
					<control type="label.">
						<posx>400</posx>
						<posy>0</posy>
						<width>130</width>
						<height>40</height>
						<font>FontSize_22</font>
						<textcolor>77white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>right</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.StartTime]</label>
						<visible>ListItem.IsRecording | ListItem.HasTimer</visible>
					</control>
				</itemlayout>
				<focusedlayout height="58" width="480">
					<control type="label">
						<posx>5</posx>
						<posy>0</posy>
						<width>100</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>․</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>0</posy>
						<width>400</width>
						<height>45</height>
						<font>FontSize_24B</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.ChannelNumber,,. ]$INFO[ListItem.Label]</label>
					</control>
					<control type="label">
						<posx>30</posx>
						<posy>25</posy>
						<width>400</width>
						<height>40</height>
						<font>FontSize_20</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>left</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.Title]</label>
						<visible>![ListItem.IsRecording | ListItem.HasTimer]</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>30</width>
						<height>20</height>
						<texture>PVR-IsRecording.png</texture>
						<visible>ListItem.IsRecording</visible>
					</control>
					<control type="image.">
						<posx>120</posx>
						<posy>5</posy>
						<width>20</width>
						<height>20</height>
						<texture>PVR-HasTimer.png</texture>
						<visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
					</control>
					<control type="label.">
						<posx>400</posx>
						<posy>0</posy>
						<width>130</width>
						<height>40</height>
						<font>FontSize_22</font>
						<textcolor>white</textcolor>
				    <shadowcolor>99000000</shadowcolor>
						<align>right</align>
						<aligny>center</aligny>
						<label>$INFO[ListItem.StartTime]</label>
						<visible>ListItem.IsRecording | ListItem.HasTimer</visible>
					</control>
				</focusedlayout>
			</control>
	</include>


</includes>
				
				
				
