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

	<!-- ============= -->
	<!-- Home SubMenus -->
	<!-- ============= -->
	<include name="HomeSubMenus_Layout">
		<width>$PARAM[label_width]</width>
		<height>$PARAM[label_height]</height>
		<font>$PARAM[fontsize]</font>
		<textcolor>$PARAM[textcolor]</textcolor>
		<label>$PARAM[label]</label>
	</include>

	<include name="HomeSubMenus_ListVars">
		<control type="fixedlist" id="23">
			<left>46</left>
			<top>453</top>
			<width>1950</width>
			<height>125</height>
			<onup>20</onup>
			<ondown>20</ondown>
			<onleft>23</onleft>
			<onright>23</onright>
			<onback>20</onback>
			<focusposition>0</focusposition>
			<preloaditems>4</preloaditems>
			<orientation>horizontal</orientation>
			<scrolltime tween="quadratic" easing="out">250</scrolltime>
			<include>HomeMenu_OpenCloseSlideAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<animation type="Conditional" condition="Control.HasFocus(23)">
			  <effect type="zoom" start="0,0,1950,0" end="0,0,1950,125" center="0,470" easing="out" tween="quadratic" time="200" />
				<effect type="fade" start="0" end="100" time="100" easing="out" tween="quadratic"/>
			</animation>
			<animation type="Conditional" condition="!Control.HasFocus(23)">
			  <effect type="zoom" start="0,0,1950,125" end="0,0,1950,0" center="0,470" easing="in" tween="quadratic" time="200" />
				<effect type="fade" start="100" end="0" time="100" easing="in" tween="quadratic"/>
			</animation>
			<itemlayout width="197" height="43">
				<control type="label">
					<include content="HomeSubMenus_Layout">
						<param name="label_width" value="195"/>
						<param name="label_height" value="37"/>
						<param name="fontsize" value="FontSize_22"/>
						<param name="textcolor" value="viewsinfo"/>
						<param name="label" value="$INFO[ListItem.label]"/>
					</include>
				</control>
			</itemlayout>
			<focusedlayout width="250" height="43">
				<control type="label">
					<include content="HomeSubMenus_Layout">
						<param name="label_width" value="250"/>
						<param name="label_height" value="30"/>
						<param name="fontsize" value="FontSize_34"/>
						<param name="textcolor" value="white"/>
						<param name="label" value="$INFO[ListItem.label]"/>
					</include>
				</control>
			</focusedlayout>
			<content>
				<include>skinshortcuts-submenu</include>
			</content>
		</control>
	</include>


	<!-- SubMenus Lists -->
	<include name="HomeSubMenus">
		<include>HomeSubMenus_ListVars</include>
		<control type="image">
			<left>0</left>
			<top>473</top>
			<width>100%</width>
			<height>4</height>
			<texture background="true">windows/home/submenus_line.png</texture>
			<include>HomeMenu_OpenCloseSlideAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<animation type="Conditional" condition="Control.HasFocus(23)">
				<effect type="slide" start="0,0" end="0,10" time="200" tween="sine" easing="out"/>
				<effect type="fade" start="0" end="100" time="100"/>
			</animation>
			<animation type="Conditional" condition="!Control.HasFocus(23)">
				<effect type="slide" start="0,10" end="0,0" time="200" tween="sine" easing="out"/>
				<effect type="fade" start="100" end="0" time="100"/>
			</animation>
		</control>
	</include>


	<!-- ================================ -->
	<!-- 	== Context Menu Content Info == -->
	<!-- ================================ -->
	<include name="ContextMenuContentInfo">
		<control type="group">
			<left>105</left>
			<top>25</top>
			<include>OpenCloseSlideAnimation</include>
			<control type="grouplist">
				<include content="CommonTopInfoGroupList">
					<param name="include" value=""/>
				</include>
				<control type="label">
					<include>TopBigLabel</include>
					<label>$LOCALIZE[31009]</label>
				</control>
				<!-- Videos -->
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[3]</label>
					<visible>Window.IsVisible(Videos) + ![Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Episodes) | String.Contains(Container.FolderPath,addons://) | String.StartsWith(Container.FolderPath,special://videoplaylists/) | String.EndsWith(Container.FolderPath,.m3u) | String.EndsWith(Container.FolderPath,.xsp)]</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[342]</label>
					<visible>Container.Content(Movies)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[31002]</label>
					<visible>Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Episodes)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[33054]</label>
					<visible>Container.Content(Seasons)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[20360]</label>
					<visible>Container.Content(Episodes)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[1212] $LOCALIZE[559]</label>
					<visible>String.StartsWith(Container.FolderPath,special://videoplaylists/) | String.EndsWith(Container.FolderPath,.m3u) | String.EndsWith(Container.FolderPath,.xsp)</visible>
				</control>
				<!-- Music -->
				<control type="label">
					<include>TopSmallLabel</include>
					<label>2</label>
					<visible>Window.IsVisible(Music) + ![String.StartsWith(Container.FolderPath,special://musicplaylists/) | String.EndsWith(Container.FolderPath,.m3u) | String.EndsWith(Container.FolderPath,.xsp) | String.Contains(Container.FolderPath,addons://)]</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[2] $LOCALIZE[559]</label>
					<visible>String.StartsWith(Container.FolderPath,special://musicplaylists/) | String.EndsWith(Container.FolderPath,.m3u) | String.EndsWith(Container.FolderPath,.xsp)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>24001</label>
					<visible>String.Contains(Container.FolderPath,addons://)</visible>
				</control>
				<!-- LiveTV -->
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[31000]</label>
					<visible>Window.IsVisible(MyPVRChannels.xml) | Window.IsVisible(MyPVRGuide.xml) | Window.IsVisible(MyPVRRecordings.xml) | Window.IsVisible(MyPVRSearch.xml) | Window.IsVisible(MyPVRTimers.xml) | Window.IsVisible(DialogPVRChannelGuide.xml)</visible>
				</control>
				<!-- Others -->
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[1]</label>
					<visible>Window.IsVisible(MyPics.xml) + !String.Contains(Container.FolderPath,addons://)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[13200]</label>
					<visible>Window.IsVisible(Profiles)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$LOCALIZE[10029]</label>
					<visible>Window.IsVisible(LoginScreen)</visible>
				</control>
			</control>
		</control>
	</include>

	<!-- ================== -->
	<!-- == Context Menu == -->
	<!-- ================== -->

	<include name="ContextCoordinates">
		<coordinates>
			<system>1</system>
			<origin x="0" y="0" />
		</coordinates>
	</include>

	<include name="ContextMenuDefualt">
		<control type="image" id="999">
			<description>background image</description>
			<left>0</left>
			<top>0</top>
			<width>370</width>
			<height>426</height>
			<texture border="29">views/other/panel.png</texture>
	    <include>CommonDialogsAnimation</include>
		</control>
		<control type="grouplist" id="996">
			<left>10</left>
			<top>10</top>
			<width>365</width>
			<height max="405">auto</height>
			<onleft>Close</onleft>
			<onright>Close</onright>
	    <include>CommonDialogsAnimation</include>
		</control>
		<control type="button" id="1000">
			<description>button template</description>
			<width>350</width>
			<height>45</height>
			<font>FontSize_22</font>
			<align>center</align>
			<textwidth>320</textwidth>
			<textoffsetx>23</textoffsetx>
			<textoffsety>7</textoffsety>
			<texturefocus	border="22,2,20,2" colordiffuse="$VAR[Textures.GlobalColor]">dialogs/keyboard/button_fo.png</texturefocus>
			<texturenofocus border="1">buttons/nofocus.png</texturenofocus>
		</control>
	</include>

	<include name="ContextMenuOnTopLeft">
		<control type="group">
			<left>30</left>
			<top>25</top>
			<include>OpenCloseSlideAnimation</include>
			<include content="OptionsTopMenuHeader">
				<param name="top_label" value=""/>
				<param name="top_texture" value="dialogs/menus/topmenus_context.png"/>
			</include>
			<control type="grouplist" id="996">
				<left>0</left>
				<top>63</top>
				<onleft>Close</onleft>
				<onright>Close</onright>
				<include>OptionsTopMenuVars</include>
				<control type="image" id="993">
					<include>HiddenItem</include>
				</control>
				<control type="button" id="1000">
					<description>button template</description>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="990">
					<label>$LOCALIZE[31374]</label>
					<include>TopLeftMenusButton</include>
					<onclick>ActivateWindow(PlayerControls)</onclick>
					<visible>!String.Contains(Control.GetLabel(1001),$LOCALIZE[16105]) + Skin.HasSetting(EnableQuickNav) + ![Window.IsVisible(LoginScreen) | Window.IsActive(PlayerControls) | Window.IsActive(favourites) | Window.IsActive(script-globalsearch.xml) | Window.IsActive(fullscreenvideo) | Window.IsActive(videobookmarks) | Window.IsActive(visualisation)]</visible>
				</control>
				<control type="button" id="992">
					<label>$LOCALIZE[31010]</label>
					<include>TopLeftMenusButton</include>
					<onclick>RunScript(script.skinshortcuts,type=manage&amp;nolabels=True&amp;group=mainmenu)</onclick>
					<visible>Window.IsActive(Home) + ![Window.IsActive(PlayerControls) | Window.IsActive(favourites) | Window.IsActive(script-globalsearch.xml) | Window.IsActive(1125)]</visible>
				</control>
				<include>OptionsTopMenuEnd</include>
			</control>
		</control>
	</include>


</includes>