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

	<include name="AddonBrowser_Menu_Options">
		<!-- Settings -->
		<item>
			<onclick>SendClick(5)</onclick>
			<label>$LOCALIZE[10004]</label>
			<label2>$LOCALIZE[10004]</label2>
			<visible>Control.IsEnabled(5)</visible>
		</item>
		<!-- Broken -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[16039] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[24999] $VAR[Copacetic_Divider_Bold] $LOCALIZE[16039]</label2>
			<property name="ActionLeft">SendClick(8)</property>
			<property name="ActionLeft2">Skin.SetString(AddonBroken,on)</property>
			<property name="ActionRight">SendClick(8)</property>
			<property name="ActionRight2">Skin.SetString(AddonBroken,on)</property>
			<visible>Control.IsEnabled(8) + String.Contains(Skin.String(AddonBroken),off)</visible>
		</item>
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[16041] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[24999] $VAR[Copacetic_Divider_Bold] $LOCALIZE[16041]</label2>
			<property name="ActionLeft">SendClick(8)</property>
			<property name="ActionLeft2">Skin.SetString(AddonBroken,off)</property>
			<property name="ActionRight">SendClick(8)</property>
			<property name="ActionRight2">Skin.SetString(AddonBroken,off)</property>
			<visible>Control.IsEnabled(8) + String.Contains(Skin.String(AddonBroken),on)</visible>
		</item>
		<!-- Check updates -->
		<item>
			<onclick>SendClick(9)</onclick>
			<onclick>SetFocus(50)</onclick>
			<label>$LOCALIZE[24034]</label>
			<label2>$LOCALIZE[24034]</label2>
			<visible>Control.IsEnabled(9)</visible>
		</item>
	</include>

	<include name="Common_Menu_Options">
		<!-- Shared -->
		<!-- Sort -->
		<item id="2">
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $INFO[Container.SortMethod] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31012] $VAR[Copacetic_Divider_Bold] $INFO[Container.SortMethod]</label2>
			<property name="ActionLeft">Container.PreviousSortMethod</property>
			<property name="ActionRight">Container.NextSortMethod</property>
			<visible>Control.IsEnabled(3) + Integer.IsGreater(Container.NumItems,1)</visible>
		</item>
		<!-- Sort mode -->
		<item id="2">
			<description>Order / Ascending</description>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[584] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31013] $VAR[Copacetic_Divider_Bold] $LOCALIZE[584]</label2>
			<property name="ActionLeft">Container.SetSortDirection</property>
			<property name="ActionRight">Container.SetSortDirection</property>
			<visible>Control.IsEnabled(3) + Control.IsEnabled(4) + Container.SortDirection(ascending) + Integer.IsGreater(Container.NumItems,1)</visible>
		</item>
		<item id="2">
			<description>Order / Descending</description>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[585] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31013] $VAR[Copacetic_Divider_Bold] $LOCALIZE[585]</label2>
			<property name="ActionLeft">Container.SetSortDirection</property>
			<property name="ActionRight">Container.SetSortDirection</property>
			<visible>Control.IsEnabled(3) + Control.IsEnabled(4) + Container.SortDirection(descending) + Integer.IsGreater(Container.NumItems,1)</visible>
		</item>
		<!-- Party mode -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick>SendClick(16)</onclick>
			<label>$LOCALIZE[589]</label>
			<label2>$LOCALIZE[589]</label2>
			<visible>Control.IsEnabled(16) + !MusicPartyMode.Enabled</visible>
		</item>
		<!-- Filter -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick condition="Container.CanFilterAdvanced">Filter</onclick>
			<label>$LOCALIZE[587]</label>
			<label2>$LOCALIZE[587]</label2>
			<visible>Container.CanFilterAdvanced + Integer.IsGreater(Container.NumItems,1)</visible>
		</item>
	</include>

	<include name="MusicVideo_Menu_Options">
		<!-- Search -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick>SendClick(8)</onclick>
			<label>$LOCALIZE[137]</label>
			<label2>$LOCALIZE[137]</label2>
			<visible>Window.Is(videos) + Control.IsEnabled(8)</visible>
		</item>
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick>ActivateWindow(musicplaylist)</onclick>
			<label>$LOCALIZE[13350]</label>
			<label2>$LOCALIZE[13350]</label2>
			<visible>Window.Is(music) + !String.IsEqual(Playlist.Length(music),0)</visible>
		</item>
		<!-- Update Library -->
		<item>
			<description>Update Library</description>
			<onclick>SetFocus(50)</onclick>
			<onclick>SendClick(20)</onclick>
			<label>$LOCALIZE[653]</label>
			<label2>$LOCALIZE[653]</label2>
			<visible>Control.IsEnabled(20) + !Library.IsScanningVideo + !Library.IsScanningMusic</visible>
		</item>
		<item>
			<description>Cancel Update</description>
			<onclick>SetFocus(50)</onclick>
			<onclick>SendClick(20)</onclick>
			<label>$LOCALIZE[13353]</label>
			<label2>$LOCALIZE[13353]</label2>
			<visible>Control.IsEnabled(20) + [Library.IsScanningVideo | Library.IsScanningMusic]</visible>
		</item>
	</include>

	<include name="Pictures_Menu_Options">
		<!-- Start slideshow -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick>SendClick(6)</onclick>
			<label>$LOCALIZE[13317]</label>
			<label2>$LOCALIZE[13317]</label2>
			<visible>Control.IsEnabled(6)</visible>
		</item>
		<!-- Recursive slideshow -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick>SendClick(7)</onclick>
			<label>$LOCALIZE[13318]</label>
			<label2>$LOCALIZE[13318]</label2>
			<visible>Control.IsEnabled(7)</visible>
		</item>
		<!-- Random on/off -->
		<item>
			<property name="ActionLeft">SetFocus(9)</property>
			<property name="ActionLeft2">Select</property>
			<property name="ActionLeft3">SetFocus(3000)</property>
			<property name="ActionRight">SetFocus(9)</property>
			<property name="ActionRight2">Select</property>
			<property name="ActionRight3">SetFocus(3000)</property>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[34222] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[13319] $VAR[Copacetic_Divider_Bold] $LOCALIZE[34222]</label2>
			<visible>Control.IsEnabled(9) + String.Contains(Control.GetLabel(9),*)</visible>
		</item>
		<item>
			<property name="ActionLeft">SetFocus(9)</property>
			<property name="ActionLeft2">Select</property>
			<property name="ActionLeft3">SetFocus(3000)</property>
			<property name="ActionRight">SetFocus(9)</property>
			<property name="ActionRight2">Select</property>
			<property name="ActionRight3">SetFocus(3000)</property>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[591] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[13319] $VAR[Copacetic_Divider_Bold] $LOCALIZE[591]</label2>
			<visible>Control.IsEnabled(9) + !String.Contains(Control.GetLabel(9),*)</visible>
		</item>
	</include>

	<include name="Playlist_Menu_Options">
		<!-- Shuffle playlist -->
		<!-- Off -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[591] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[191] $VAR[Copacetic_Divider_Bold] $LOCALIZE[591]</label2>
			<property name="ActionLeft">SendClick(20)</property>
			<property name="ActionRight">SendClick(20)</property>
			<visible>Window.Is(musicplaylist) + Control.IsEnabled(20) + String.Contains(Playlist.Random,$LOCALIZE[591])</visible>
		</item>
		<!-- On -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[34222] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[191] $VAR[Copacetic_Divider_Bold] $LOCALIZE[34222]</label2>
			<property name="ActionLeft">SendClick(20)</property>
			<property name="ActionRight">SendClick(20)</property>
			<visible>Window.Is(musicplaylist) + Control.IsEnabled(20) + String.Contains(Playlist.Random,$LOCALIZE[34222])</visible>
		</item>
		<!-- Repeat playlist -->
		<!-- Off -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[591] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[486] $VAR[Copacetic_Divider_Bold] $LOCALIZE[591]</label2>
			<property name="ActionLeft">SendClick(26)</property>
			<property name="ActionLeft2">SendClick(26)</property>
			<property name="ActionRight">SendClick(26)</property>
			<visible>Window.Is(musicplaylist) + Control.IsEnabled(26) + String.Contains(Playlist.Repeat,$LOCALIZE[591])</visible>
		</item>
		<!-- One -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[592] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[486] $VAR[Copacetic_Divider_Bold] $LOCALIZE[592]</label2>
			<property name="ActionLeft">SendClick(26)</property>
			<property name="ActionLeft2">SendClick(26)</property>
			<property name="ActionRight">SendClick(26)</property>
			<visible>Window.Is(musicplaylist) + Control.IsEnabled(26) + String.Contains(Playlist.Repeat,$LOCALIZE[592])</visible>
		</item>
		<!-- All -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[593] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[486] $VAR[Copacetic_Divider_Bold] $LOCALIZE[593]</label2>
			<property name="ActionLeft">SendClick(26)</property>
			<property name="ActionLeft2">SendClick(26)</property>
			<property name="ActionRight">SendClick(26)</property>
			<visible>Window.Is(musicplaylist) + Control.IsEnabled(26) + String.Contains(Playlist.Repeat,$LOCALIZE[593])</visible>
		</item>
		<!-- Save playlist -->
		<item>
			<onclick>SendClick(21)</onclick>
			<label>$LOCALIZE[190]</label>
			<label2>$LOCALIZE[190]</label2>
			<visible>Control.IsEnabled(21)</visible>
		</item>
		<!-- Clear playlist -->
		<item>
			<onclick>SendClick(22)</onclick>
			<onclick>SetFocus(50)</onclick>
			<onclick>ReplaceWindow(Videos)</onclick>
			<label>$LOCALIZE[192]</label>
			<label2>$LOCALIZE[192]</label2>
			<visible>Control.IsEnabled(22)</visible>
		</item>
	</include>

	<include name="Trailer_Autoplay_Menu_Options">
		<item>
			<description>Trailer Autoplay (Movies) / Off</description>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[591] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31015] $VAR[Copacetic_Divider_Bold] $LOCALIZE[591]</label2>
			<property name="ActionLeft">Skin.SetString(Trailer_Autoplay_Movies_Enabled,true)</property>
			<property name="ActionRight">Skin.SetString(Trailer_Autoplay_Movies_Enabled,true)</property>
			<visible>Container.Content(movies) + !Control.IsVisible(505) + !Skin.String(Trailer_Autoplay_Movies_Enabled,true)</visible>
		</item>
		<item>
			<description>Trailer Autoplay (Movies) / On</description>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[34222] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31015] $VAR[Copacetic_Divider_Bold] $LOCALIZE[34222]</label2>
			<property name="ActionLeft">Skin.SetString(Trailer_Autoplay_Movies_Enabled,false)</property>
			<property name="ActionRight">Skin.SetString(Trailer_Autoplay_Movies_Enabled,false)</property>
			<visible>Container.Content(movies) + !Control.IsVisible(505) + Skin.String(Trailer_Autoplay_Movies_Enabled,true)</visible>
		</item>
		<item>
			<description>Trailer Autoplay (TV Shows) / Off</description>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[591] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31015] $VAR[Copacetic_Divider_Bold] $LOCALIZE[591]</label2>
			<property name="ActionLeft">Skin.SetString(Trailer_Autoplay_TVShows_Enabled,true)</property>
			<property name="ActionRight">Skin.SetString(Trailer_Autoplay_TVShows_Enabled,true)</property>
			<visible>[Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes)] + !Control.IsVisible(505) + !Skin.String(Trailer_Autoplay_TVShows_Enabled,true)</visible>
		</item>
		<item>
			<description>Trailer Autoplay (Shows) / On</description>
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[34222] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31015] $VAR[Copacetic_Divider_Bold] $LOCALIZE[34222]</label2>
			<property name="ActionLeft">Skin.SetString(Trailer_Autoplay_TVShows_Enabled,false)</property>
			<property name="ActionRight">Skin.SetString(Trailer_Autoplay_TVShows_Enabled,false)</property>
			<visible>[Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes)] + !Control.IsVisible(505) + Skin.String(Trailer_Autoplay_TVShows_Enabled,true)</visible>
		</item>
	</include>

	<include name="Video_Menu_Options">
		<!-- Show only unwatched or all videos -->
		<item id="2">
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[16100]$INFO[Container.NumItems, (,)] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31014] $VAR[Copacetic_Divider_Bold] $LOCALIZE[16100]$INFO[Container.NumItems, (,)]</label2>
			<property name="ActionLeft">SendClick(14)</property>
			<property name="ActionRight">SendClick(14)</property>
			<visible>Window.Is(videos) + Control.IsEnabled(14) + !System.Setting(hidewatched) + !Container.Content(actors) + !Container.Content(sets) + Integer.IsGreater(Container.NumItems,1)</visible>
		</item>
		<item id="2">
			<onclick>SetFocus(50)</onclick>
			<label>$VAR[Copacetic_Chevron_Left] $LOCALIZE[16101]$INFO[Container.TotalUnWatched, (,)] $VAR[Copacetic_Chevron_Right]</label>
			<label2>$LOCALIZE[31014] $VAR[Copacetic_Divider_Bold] $LOCALIZE[16101]$INFO[Container.TotalUnWatched, (,)]</label2>
			<property name="ActionLeft">SendClick(14)</property>
			<property name="ActionRight">SendClick(14)</property>
			<visible>Window.Is(videos) + Control.IsEnabled(14) + System.Setting(hidewatched) + !Container.Content(actors) + !Container.Content(sets) + Integer.IsGreater(Container.NumItems,1)</visible>
		</item>
		<!-- Current playlist -->
		<item>
			<onclick>SetFocus(50)</onclick>
			<onclick>ActivateWindow(videoplaylist)</onclick>
			<label>$LOCALIZE[13350]</label>
			<label2>$LOCALIZE[13350]</label2>
			<visible>!String.IsEqual(Playlist.Length(video),0)</visible>
		</item>
	</include>

</includes>