<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1153">
	<onload>ClearProperty(ShowAction,settings)</onload>
	<onload>ClearProperty(ShowCommands,settings)</onload>
	<defaultcontrol always="true">4999</defaultcontrol>
	<controls>
		<control type="group">
			<visible>!Window.IsVisible(selectdialog) + !Window.IsVisible(filebrowser)</visible>
			<include>fadebackground</include>
		</control>
		<control type="group">
			<left>206</left>
			<top>270</top>
			<control type="image"><!-- Dialog background -->
				<left>0</left>
				<top>0</top>
				<width>1506</width>
				<height>549</height>
				<texture border="14">button-menu-background.png</texture>
			</control>
			<control type="label"><!-- Dialog heading -->
				<left>38</left>
				<top>18</top>
				<width>1431</width>
				<height>45</height>
				<align>center</align>
				<label>$LOCALIZE[31926]</label>
			</control>
			<control type="image">
				<left>38</left>
				<top>72</top>
				<width>1431</width>
				<height>6</height>
				<texture>separator.png</texture>
			</control>
			<control type="button" id="4999">
				<label></label><!-- Assign custom home shortcut from context menu to favourite button -->
				<left>38</left>
				<top>-375</top>
				<width>1431</width>
				<height>72</height>
				<font>apptv22</font>
				<onfocus condition="!String.IsEmpty(Window(home).Property(ItemPath))">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],$INFO[Window(home).Property(ItemPath)])</onfocus>
				<onfocus condition="!String.IsEmpty(Window(home).Property(ItemPath))">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$INFO[Window(home).Property(ItemName)])</onfocus>
				<onfocus condition="!String.IsEmpty(Window(home).Property(ItemPath))">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],$INFO[Window(home).Property(ItemIcon)])</onfocus>
				<onfocus condition="!String.IsEmpty(Window(home).Property(ItemPath))">ClearProperty(ItemPath,home)</onfocus>
				<onfocus>SetFocus(5000)</onfocus>
			</control>
			<control type="grouplist" id="5000">
				<left>38</left>
				<top>81</top>
				<width>1431</width>
				<height>360</height>
				<itemgap>0</itemgap>
				<onright>Close</onright>
				<onleft>Close</onleft>
				<onup>1005</onup>
				<ondown>999</ondown>
				<control type="group" id="5001"><!-- Menuitem Default type -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>!String.IsEmpty(Window(settings).Property(ListToggle)) + !String.IsEqual(Window(settings).Property(ListToggle),home-shutdown)</visible>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>$LOCALIZE[31927]</label>
						<font>apptv22</font>
						<textoffsetx>27</textoffsetx>
					</control>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>$LOCALIZE[571]</label>
						<font>apptv22</font>
						<align>right</align>
						<textoffsetx>27</textoffsetx>
					</control>
				</control>
				<control type="group" id="5002"><!-- Menuitem Quit type -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>String.IsEqual(Window(settings).Property(ListToggle),home-shutdown)</visible>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>$LOCALIZE[31927]</label>
						<font>apptv22</font>
						<textoffsetx>27</textoffsetx>
					</control>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>$LOCALIZE[13009]</label>
						<font>apptv22</font>
						<align>right</align>
						<textoffsetx>27</textoffsetx>
					</control>
				</control>
				<control type="group" id="5003"><!-- Menuitem Quit action -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>String.IsEqual(Window(settings).Property(ListToggle),home-shutdown)</visible>
					<control type="button" id="5004">
						<width>1431</width>
						<height>72</height>
						<label>- [I]$LOCALIZE[31938][/I]</label>
						<label2>$INFO[Skin.String(home-quitaction)]</label2>
						<onclick>SetProperty(ShowQuit,true,settings)</onclick>
						<onclick>SetFocus(6021)</onclick>
						<onup>5002</onup>
						<ondown>5005</ondown>
						<onright>Close</onright>
						<onleft>Close</onleft>
						<font>apptv22</font>
					</control>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>$LOCALIZE[24021]</label>
						<font>apptv22</font>
						<align>right</align>
						<textoffsetx>27</textoffsetx>
						<visible>String.IsEmpty(Skin.String(home-quitaction))</visible>
					</control>
				</control>
				<control type="button" id="5005"><!-- Menuitem Custom type -->
					<width>1431</width>
					<height>72</height>
					<label>$LOCALIZE[31927]</label>
					<label2>$VAR[CustomSkinType]</label2>
					<onclick>SetProperty(ShowAction,true,settings)</onclick>
					<onclick>SetFocus(6001)</onclick>
					<font>apptv22</font>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase))</visible>
				</control>
				<control type="group" id="5006"><!-- Show/Hide menu item -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>String.IsEmpty(Window(settings).Property(ListCustomBase)) + !String.IsEqual(Window(settings).Property(ListToggle),home-shutdown)</visible>
					<control type="togglebutton" id="5007">
						<width>1431</width>
						<height>72</height>
						<label>$LOCALIZE[24021]</label>
						<altlabel>$LOCALIZE[24022]</altlabel>
						<onup>5005</onup>
						<ondown>5008</ondown>
						<onright>Close</onright>
						<onleft>Close</onleft>
						<font>apptv22</font>
						<align>right</align>
						<include content="use-alttexture">
							<param name="altcondition" value="Window(settings).Property(ListActive)" />
						</include>
						<onclick>Skin.ToggleSetting($INFO[Window(settings).Property(ListToggle)])</onclick>
					</control>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>- [I]$LOCALIZE[31938][/I]</label>
						<font>apptv22</font>
						<textoffsetx>27</textoffsetx>
					</control>
				</control>
				<control type="button" id="5008"><!-- Assign favourite action to custom menu item -->
					<width>1431</width>
					<height>72</height>
					<label>- [I]$LOCALIZE[31938][/I]</label>
					<label2>$VAR[CustomSkinAction]</label2>
					<font>apptv22</font>
					<onclick condition="!System.HasAddon(script.favourites)">InstallAddon(script.favourites)</onclick>
					<onclick condition="String.IsEmpty(Window(home).Property(ItemPath)) + System.HasAddon(script.favourites)">RunScript(script.favourites,changetitle=true&amp;property=$INFO[Window(settings).Property(ListCustomBase)])</onclick>
					<onclick condition="!String.IsEmpty(Window(home).Property(ItemPath))">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],$INFO[Window(home).Property(ItemPath)])</onclick>
					<onclick condition="!String.IsEmpty(Window(home).Property(ItemPath))">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$INFO[Window(home).Property(ItemName)])</onclick>
					<onclick condition="!String.IsEmpty(Window(home).Property(ItemPath))">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],$INFO[Window(home).Property(ItemIcon)])</onclick>
					<onclick condition="!String.IsEmpty(Window(home).Property(ItemPath))">ClearProperty(ItemPath,home)</onclick>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase)) + [String.Contains(Window(settings).Property(CurrentType),$LOCALIZE[31652]) | String.IsEmpty(Window(settings).Property(CurrentType))]</visible>
				</control>
				<control type="group" id="5009"><!-- List/Play playlist -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase)) + [String.Contains(Window(settings).Property(CurrentType),$LOCALIZE[31660]) | String.Contains(Window(settings).Property(CurrentType),$LOCALIZE[31661])]</visible>
					<control type="button" id="5010">
						<width>1431</width>
						<height>72</height>
						<label>$VAR[CustomPlaylistAction]</label>
						<onup>5008</onup>
						<ondown>5011</ondown>
						<onright>Close</onright>
						<onleft>Close</onleft>
						<font>apptv22</font>
						<align>right</align>
						<onclick>Skin.ToggleSetting($INFO[Window(settings).Property(ListCustomBase),,.Show])</onclick>
						<onclick>SetProperty(CurrentPAction,$INFO[Control.GetLabel(5007)],settings)</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.List])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Path])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
					</control>
					<control type="label">
						<width>1431</width>
						<height>72</height>
						<label>- [I]$LOCALIZE[31938][/I]</label>
						<font>apptv22</font>
						<textoffsetx>27</textoffsetx>
					</control>
				</control>
				<control type="button" id="5011"><!-- Assign User playlist action to custom menu item -->
					<width>1431</width>
					<height>72</height>
					<label>- [I]$LOCALIZE[559][/I]</label>
					<label2>$VAR[CustomSkinPlaylist]</label2>
					<font>apptv22</font>
					<onclick>SetProperty(SelectDialogType,selectuserplaylist,home)</onclick>
					<onclick>ActivateWindow(1154)</onclick>
					<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31660])</onclick>
					<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],DefaultPlaylist.png)</onclick>
					<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/filemanager.png)</onclick>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase)) + String.Contains(Window(settings).Property(CurrentType),$LOCALIZE[31660])</visible>
				</control>
				<control type="button" id="5012"><!-- Assign Skin playlist action to custom menu item -->
					<width>1431</width>
					<height>72</height>
					<label>- [I]$LOCALIZE[559][/I]</label>
					<label2>$VAR[CustomSkinPlaylist]</label2>
					<font>apptv22</font>
					<onclick>SetProperty(SelectDialogType,selectskinplaylist,home)</onclick>
					<onclick>ActivateWindow(1154)</onclick>
					<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31661])</onclick>
					<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],DefaultPlaylist.png)</onclick>
					<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/filemanager.png)</onclick>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase)) + String.Contains(Window(settings).Property(CurrentType),$LOCALIZE[31661])</visible>
				</control>
				<control type="button" id="5013"><!-- Assign Command action to custom menu item -->
					<width>1431</width>
					<height>72</height>
					<label>- [I]$LOCALIZE[31938][/I]</label>
					<label2>$VAR[CustomSkinAction]</label2>
					<onclick>SetProperty(ShowCommands,true,settings)</onclick>
					<onclick>SetFocus(6011)</onclick>
					<font>apptv22</font>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase)) + String.Contains(Window(settings).Property(CurrentType),$LOCALIZE[31653])</visible>
				</control>
				<control type="group" id="5014"><!-- Change Icon of custom menu item -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase))</visible>
					<control type="button" id="5015">
						<width>1431</width>
						<height>72</height>
						<label>- [I]$LOCALIZE[31953][/I]</label>
						<font>apptv22</font>
						<onup>5013</onup>
						<ondown>5016</ondown>
						<onclick condition="$EXP[isIconHome]">Skin.SetImage($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons)</onclick>
						<onclick condition="![$EXP[isIconHome]]">Skin.SetImage($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
					</control>
					<control type="label">
						<left>150</left>
						<width>1281</width>
						<height>72</height>
						<label>$VAR[CustomSkinIcon]</label>
						<font>apptv22</font>
						<align>right</align>
						<haspath>true</haspath>
						<textoffsetx>27</textoffsetx>
					</control>
				</control>
				<control type="group" id="5016"><!-- Change Icon of icon menu default items -->
					<left>0</left>
					<top>0</top>
					<width>1431</width>
					<height>72</height>
					<visible>$EXP[isIconHome] + !String.IsEmpty(Window(settings).Property(ListToggle))</visible>
					<control type="button" id="5017">
						<width>1431</width>
						<height>72</height>
						<label>- [I]$LOCALIZE[31953][/I]</label>
						<font>apptv22</font>
						<onup>5014</onup>
						<ondown>5018</ondown>
						<onclick>Skin.SetImage($INFO[Window(settings).Property(ListToggle),,.Icon],special://skin/extras/homeicons)</onclick>
					</control>
					<control type="label">
						<left>150</left>
						<width>1281</width>
						<height>72</height>
						<label>$VAR[CustomDefaultIcon]</label>
						<font>apptv22</font>
						<align>right</align>
						<haspath>true</haspath>
						<textoffsetx>27</textoffsetx>
					</control>
				</control>
				<control type="button" id="5018"><!-- Change Label of custom menu item -->
					<width>1431</width>
					<height>72</height>
					<label>- [I]$LOCALIZE[21899][/I]</label>
					<label2>$VAR[CustomSkinLabel]</label2>
					<font>apptv22</font>
					<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
					<visible>!String.IsEmpty(Window(settings).Property(ListCustomBase))</visible>
				</control>
				<control type="button" id="5019"><!-- Change Heading Label of select default menu items -->
					<width>1431</width>
					<height>72</height>
					<label>- [I]$LOCALIZE[31850][/I]</label>
					<label2>$VAR[CustomFavHeading]</label2>
					<font>apptv22</font>
					<onclick>Skin.SetString(CustomFav.Heading)</onclick>
					<visible>$EXP[isHorizontalHome] + String.IsEqual(Window(settings).Property(ListToggle),home-favorites)</visible>
				</control>
			</control>
		</control>
		<control type="group" id="999">
			<top>729</top>
			<left>396</left>
			<control type="button" id="900"><!-- OK button -->
				<left>90</left>
				<top>0</top>
				<width>384</width>
				<height>69</height>
				<align>center</align>
				<label>$LOCALIZE[186]</label>
				<font>apptv22</font>
				<onright>901</onright>
				<onup>5000</onup>
				<onclick>Close</onclick>
			</control>
			<control type="button" id="901"><!-- Clear button -->
				<left>654</left>
				<top>0</top>
				<width>384</width>
				<height>69</height>
				<align>center</align>
				<label>$LOCALIZE[192]</label>
				<font>apptv22</font>
				<onleft>900</onleft>
				<onup>5000</onup>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Type])</onclick>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.List])</onclick>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Path])</onclick>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Show])</onclick>
				<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle),,.Icon])</onclick>
				<onclick>Close</onclick>
			</control>
		</control>
		<control type="button" id="6005"><!-- Reset focus to main window -->
			<left>-15</left>
			<top>-30</top>
			<width>1</width>
			<height>1</height>
			<onfocus>ClearProperty(ShowAction,settings)</onfocus>
			<onfocus>SetFocus(5000)</onfocus>
		</control>
		<control type="button" id="6015"><!-- Reset focus to main window -->
			<left>-15</left>
			<top>-60</top>
			<width>1</width>
			<height>1</height>
			<onfocus>ClearProperty(ShowCommands,settings)</onfocus>
			<onfocus>SetFocus(5000)</onfocus>
		</control>
		<control type="button" id="6025"><!-- Reset focus to main window -->
			<left>-15</left>
			<top>-60</top>
			<width>1</width>
			<height>1</height>
			<onfocus>ClearProperty(ShowQuit,settings)</onfocus>
			<onfocus>SetFocus(5000)</onfocus>
		</control>
		<control type="group" id="6000">
			<left>0</left>
			<top>1080</top>
			<animation effect="slide" start="0,0" end="0,-1080">Visible</animation>
			<visible allowhiddenfocus="true">!String.IsEmpty(Window(settings).Property(ShowAction))</visible>
			<control type="image"><!-- Dialog background -->
				<left>1150</left>
				<top>342</top>
				<width>561</width>
				<height>378</height>
				<texture border="14">button-menu-background.png</texture>
			</control>
			<control type="label"><!-- Dialog heading -->
				<left>1168</left>
				<top>354</top>
				<width>525</width>
				<height>51</height>
				<label>$LOCALIZE[31928]$INFO[Container(6001).NumItems,(,)]</label>
				<align>center</align>
			</control>
			<control type="button"><!-- Touch Close button -->
				<left>1680</left>
				<top>328</top>
				<width>48</width>
				<height>48</height>
				<texturefocus>touch-close.png</texturefocus>
				<texturenofocus>touch-close.png</texturenofocus>
				<onclick>SetFocus(6005)</onclick>
				<visible>$EXP[isEnabledTouch]</visible>
			</control>
			<control type="image">
				<left>1168</left>
				<top>411</top>
				<width>525</width>
				<height>6</height>
				<texture>separator.png</texture>
			</control>
			<control type="list" id="6001"><!-- Custom menuitem type -->
				<left>1168</left>
				<top>423</top>
				<width>525</width>
				<height>276</height>
				<onup>1010</onup>
				<ondown>1010</ondown>
				<onleft>6005</onleft>
				<onright>6005</onright>
				<itemlayout height="69">
					<control type="label">
						<left>15</left>
						<top>3</top>
						<width>495</width>
						<height>51</height>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<font>apptv22</font>
					</control>
				</itemlayout>
				<focusedlayout height="69">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>525</width>
						<height>69</height>
						<align>left</align>
						<texture border="9">button-default-focus.png</texture>
					</control>
					<control type="label">
						<left>15</left>
						<top>3</top>
						<width>495</width>
						<height>51</height>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<font>apptv22</font>
					</control>
				</focusedlayout>
				<content>
					<item><!-- Custom menuitem type - Favourite -->
						<label>$LOCALIZE[31652]</label>
						<onclick>SetProperty(CurrentType,$LOCALIZE[31652],settings)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Type],$LOCALIZE[31652])</onclick>
						<onclick>ClearProperty(ShowAction,settings)</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.List])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Path])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom menuitem type - Kodi Playlist -->
						<label>$LOCALIZE[31660]</label>
						<onclick>SetProperty(CurrentType,$LOCALIZE[31660],settings)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Type],$LOCALIZE[31660])</onclick>
						<onclick>ClearProperty(ShowAction,settings)</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.List])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Path])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom menuitem type - Skin Playlist -->
						<label>$LOCALIZE[31661]</label>
						<onclick>SetProperty(CurrentType,$LOCALIZE[31661],settings)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Type],$LOCALIZE[31661])</onclick>
						<onclick>ClearProperty(ShowAction,settings)</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.List])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Path])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom menuitem type - Command -->
						<label>$LOCALIZE[31653]</label>
						<onclick>SetProperty(CurrentType,$LOCALIZE[31653],settings)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Type],$LOCALIZE[31653])</onclick>
						<onclick>ClearProperty(ShowAction,settings)</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.List])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Path])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Icon])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListCustomBase),,.Label])</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
				</content>
			</control>
		</control>
		<control type="group" id="6010">
			<left>0</left>
			<top>1080</top>
			<animation effect="slide" start="0,0" end="0,-1080">Visible</animation>
			<visible allowhiddenfocus="true">!String.IsEmpty(Window(settings).Property(ShowCommands))</visible>
			<control type="image"><!-- Dialog background -->
				<left>1150</left>
				<top>414</top>
				<width>561</width>
				<height>378</height>
				<texture border="14">button-menu-background.png</texture>
			</control>
			<control type="label"><!-- Dialog heading -->
				<left>1168</left>
				<top>429</top>
				<width>525</width>
				<height>51</height>
				<label>$LOCALIZE[31929]$INFO[Container(6011).NumItems,(,)]</label>
				<align>center</align>
			</control>
			<control type="button"><!-- Touch Close button -->
				<left>1680</left>
				<top>398</top>
				<width>48</width>
				<height>48</height>
				<texturefocus>touch-close.png</texturefocus>
				<texturenofocus>touch-close.png</texturenofocus>
				<onclick>SetFocus(6015)</onclick>
				<visible>$EXP[isEnabledTouch]</visible>
			</control>
			<control type="image">
				<left>1168</left>
				<top>483</top>
				<width>525</width>
				<height>6</height>
				<texture>separator.png</texture>
			</control>
			<control type="list" id="6011"><!-- Custom action type - Commands -->
				<left>1168</left>
				<top>495</top>
				<width>525</width>
				<height>276</height>
				<onup>1015</onup>
				<ondown>1015</ondown>
				<onleft>6015</onleft>
				<onright>6015</onright>
				<itemlayout height="69">
					<control type="label">
						<left>15</left>
						<top>3</top>
						<width>495</width>
						<height>51</height>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<font>apptv22</font>
					</control>
				</itemlayout>
				<focusedlayout height="69">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>525</width>
						<height>69</height>
						<align>left</align>
						<texture border="9">button-default-focus.png</texture>
					</control>
					<control type="label">
						<left>15</left>
						<top>3</top>
						<width>495</width>
						<height>51</height>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<font>apptv22</font>
					</control>
				</focusedlayout>
				<content>
					<item><!-- Custom command - Update library (video) -->
						<label>$LOCALIZE[653] ($LOCALIZE[36912])</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],UpdateLibrary(video))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[653] ($LOCALIZE[36912]))</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Update library (music) -->
						<label>$LOCALIZE[653] ($LOCALIZE[36914])</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],UpdateLibrary(music))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[653] ($LOCALIZE[36914]))</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Clean library (video) -->
						<label>$LOCALIZE[31936] ($LOCALIZE[36912])</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],CleanLibrary(video))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31936] ($LOCALIZE[36912]))</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Clean library (music) -->
						<label>$LOCALIZE[31936] ($LOCALIZE[36914])</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],CleanLibrary(music))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31936] ($LOCALIZE[36914]))</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Fullscreen -->
						<label>$LOCALIZE[31937]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],FullScreen)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31937])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Mute -->
						<label>$LOCALIZE[31662]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],Mute)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31662])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - RipCD -->
						<label>$LOCALIZE[31663]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],RipCD)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31663])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Eject Disc -->
						<label>$LOCALIZE[31664]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],EjectTray())</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31664])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Next aired TV show listing -->
						<label>$LOCALIZE[31597]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],RunScript(script.tv.show.next.aired))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[31597])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/livetv.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Play Disc -->
						<label>$LOCALIZE[341]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],PlayDVD)</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[341])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Show OSD -->
						<label>$LOCALIZE[478]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],ActivateWindow(playercontrols))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[478])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/command.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Show TV EPG -->
						<label>$LOCALIZE[19273]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],ActivateWindow(tvguide))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[19273])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/EPG.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom command - Show Radio EPG -->
						<label>$LOCALIZE[19274]</label>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Path],ActivateWindow(radioguide))</onclick>
						<onclick>Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Label],$LOCALIZE[19274])</onclick>
						<onclick condition="!$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],icon-cmd.png)</onclick>
						<onclick condition="$EXP[isIconHome]">Skin.SetString($INFO[Window(settings).Property(ListCustomBase),,.Icon],special://skin/extras/homeicons/EPG.png)</onclick>
						<onclick>ClearProperty(ShowCommands,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
				</content>
			</control>
		</control>
		<control type="group" id="6020">
			<left>0</left>
			<top>1080</top>
			<animation effect="slide" start="0,0" end="0,-1080">Visible</animation>
			<visible allowhiddenfocus="true">!String.IsEmpty(Window(settings).Property(ShowQuit))</visible>
			<control type="image"><!-- Dialog background -->
				<left>1150</left>
				<top>414</top>
				<width>561</width>
				<height>378</height>
				<texture border="14">button-menu-background.png</texture>
			</control>
			<control type="label"><!-- Dialog heading -->
				<left>1168</left>
				<top>429</top>
				<width>525</width>
				<height>51</height>
				<label>$LOCALIZE[31914]$INFO[Container(6021).NumItems,(,)]</label>
				<align>center</align>
			</control>
			<control type="button"><!-- Touch Close button -->
				<left>1680</left>
				<top>398</top>
				<width>48</width>
				<height>48</height>
				<texturefocus>touch-close.png</texturefocus>
				<texturenofocus>touch-close.png</texturenofocus>
				<onclick>SetFocus(6025)</onclick>
				<visible>$EXP[isEnabledTouch]</visible>
			</control>
			<control type="image">
				<left>1168</left>
				<top>483</top>
				<width>525</width>
				<height>6</height>
				<texture>separator.png</texture>
			</control>
			<control type="list" id="6021"><!-- Custom action type - Quit actions -->
				<left>1168</left>
				<top>495</top>
				<width>525</width>
				<height>276</height>
				<onup>1020</onup>
				<ondown>1020</ondown>
				<onleft>6025</onleft>
				<onright>6025</onright>
				<itemlayout height="69">
					<control type="label">
						<left>15</left>
						<top>3</top>
						<width>495</width>
						<height>51</height>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<font>apptv22</font>
					</control>
				</itemlayout>
				<focusedlayout height="69">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>525</width>
						<height>69</height>
						<align>left</align>
						<texture border="9">button-default-focus.png</texture>
					</control>
					<control type="label">
						<left>15</left>
						<top>3</top>
						<width>495</width>
						<height>51</height>
						<label>$INFO[ListItem.Label]</label>
						<align>center</align>
						<font>apptv22</font>
					</control>
				</focusedlayout>
				<content>
					<item><!-- Custom Quit - None -->
						<label>$LOCALIZE[24021]</label>
						<onclick>Skin.SetBool($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>Skin.Reset(home-quitaction)</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom Quit - Quit -->
						<label>$LOCALIZE[13009]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[13009])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
					<item><!-- Custom Quit - Reboot -->
						<label>$LOCALIZE[13013]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[13013])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
						<visible>System.CanReboot</visible>
					</item>
					<item><!-- Custom Quit - Reboot from Nand -->
						<label>$LOCALIZE[31554]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[31554])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
						<visible>System.CanReboot + [System.Platform.Android | System.Platform.Linux]</visible>
					</item>
					<item><!-- Custom Quit - Power down -->
						<label>$LOCALIZE[13005]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[13005])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
						<visible>System.CanPowerDown</visible>
					</item>
					<item><!-- Custom Quit - Hibernate -->
						<label>$LOCALIZE[13010]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[13010])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
						<visible>System.CanHibernate</visible>
					</item>
					<item><!-- Custom Quit - Suspend -->
						<label>$LOCALIZE[13011]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[13011])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
						<visible>System.CanSuspend</visible>
					</item>
					<item><!-- Custom Quit - Show shutdown menu -->
						<label>$LOCALIZE[31558]</label>
						<onclick>Skin.SetString(home-quitaction,$LOCALIZE[31558])</onclick>
						<onclick>Skin.Reset($INFO[Window(settings).Property(ListToggle)])</onclick>
						<onclick>ClearProperty(ShowQuit,settings)</onclick>
						<onclick>SetFocus(5000)</onclick>
					</item>
				</content>
			</control>
		</control>
		<!-- Play bump sound if user tries to leave homemenu customisation option list by undefined direction -->
		<include content="illegal-action">
			<param name="controlid" value="1005" />
			<param name="returnid" value="5000" />
		</include>
		<!-- Play bump sound if user tries to leave listitem custom types by undefined direction -->
		<include content="illegal-action">
			<param name="controlid" value="1010" />
			<param name="returnid" value="6001" />
		</include>
		<!-- Play bump sound if user tries to leave listitem custom commands by undefined direction -->
		<include content="illegal-action">
			<param name="controlid" value="1015" />
			<param name="returnid" value="6011" />
		</include>
		<!-- Play bump sound if user tries to leave custom quit actions by undefined direction -->
		<include content="illegal-action">
			<param name="controlid" value="1020" />
			<param name="returnid" value="6021" />
		</include>
	</controls>
</window>