<?xml version="1.0" encoding="UTF-8"?>
<window>
	<!-- If Shelf trailer or media view trailer is auto playing, stop it -->
	<onload condition="Skin.HasSetting(Shelf.PlayTrailers) + Player.HasVideo + !String.IsEmpty(Window(Home).Property(ShelfTrailerPlaying))">PlayerControl(Stop)</onload>
	<onload condition="Skin.HasSetting(Shelf.PlayTrailers) + !String.IsEmpty(Window(Home).Property(ShelfTrailerPlaying))">ClearProperty(ShelfTrailerPlaying,Home)</onload>
	<onload condition="Skin.HasSetting(AutoPlayTrailer) + Player.HasVideo + !String.IsEmpty(Window(Home).Property(MovieTrailerPlaying))">PlayerControl(Stop)</onload>
	<onload condition="Skin.HasSetting(AutoPlayTrailer) + !String.IsEmpty(Window(Home).Property(MovieTrailerPlaying))">ClearProperty(MovieTrailerPlaying,Home)</onload>

	<defaultcontrol>1000</defaultcontrol>
	<controls>
		<control type="group" description="MENU">
			<animation type="WindowOpen">
				<effect type="fade" start="0" end="100" time="200" />
			</animation>
			<animation type="WindowClose">
				<effect type="fade" start="100" end="0" time="100" />
			</animation>
			<control type="image" id="999" description="Menu BG">
				<posy>-24</posy>
				<height>1020</height>
				<width>525</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
			</control>
			<control type="group">
			    <posx>430</posx>
			    <posy>-23.5</posy>
			    <include>DialogCloseButtonCommons</include>
				<visible>Skin.HasSetting(Enable.TouchSupport)</visible>
		    </control>
			<control type="grouplist" id="996" description="Context menu container">
				<posx>16</posx>
                <include condition="Skin.HasSetting(Enable.TouchSupport)">ContextTopTouch</include>
				<include condition="!Skin.HasSetting(Enable.TouchSupport)">ContextTopStandard</include>
				<width>530</width>
				<height max="900">auto</height>
				<onup condition="Skin.HasSetting(Enable.TouchSupport)">909090</onup>
				<onup condition="!Skin.HasSetting(Enable.TouchSupport)">996</onup>
				<control type="button" id="1000" description="Buttons">
			        <width>493</width>
			        <height>60</height>
			        <textoffsetx>10</textoffsetx>
			        <align>center</align>
			        <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
			        <texturenofocus border="3">buttons/ButtonNF.png</texturenofocus>
			        <focusedcolor>$VAR[FocusedTextColor]</focusedcolor>
			        <shadowcolor></shadowcolor>
			    </control>
			    <!-- ArtWork Beef Solo Mode-->
                <control type="button" id="9325">
                    <width>493</width>
				    <height>60</height>
				    <textoffsetx>10</textoffsetx>
				    <align>center</align>
				    <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
				    <texturenofocus border="3">buttons/ButtonNF.png</texturenofocus>
				    <focusedcolor>$VAR[FocusedTextColor]</focusedcolor>
				    <shadowcolor></shadowcolor>
                    <label>$LOCALIZE[32120]</label>
                    <onclick condition="Container.Content(tvshows)">RunScript(script.artwork.beef, mode=auto, mediatype=tvshow, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="Container.Content(episodes)">RunScript(script.artwork.beef, mode=auto, mediatype=episode, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick condition="Container.Content(movies)">RunScript(script.artwork.beef, mode=auto, mediatype=movie, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick condition="Container.Content(musicvideos)">RunScript(script.artwork.beef, mode=auto, mediatype=musicvideo, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="Container.Content(sets)">RunScript(script.artwork.beef, mode=auto, mediatype=set, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick>SetFocus(50)</onclick>
                    <visible>Skin.HasSetting(ShowABinContextMenu)</visible>
                    <visible>System.AddonIsEnabled(script.artwork.beef) + [Container.Content(episodes) | Container.Content(sets) | Container.Content(tvshows) | Container.Content(movies) | Container.Content(musicvideos)]</visible>
                </control>
                <!-- ArtWork Beef Gui Mode-->
                <control type="button" id="9326">
                    <width>493</width>
				    <height>60</height>
				    <textoffsetx>10</textoffsetx>
				    <align>center</align>
				    <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
				    <texturenofocus border="3">buttons/ButtonNF.png</texturenofocus>
				    <focusedcolor>$VAR[FocusedTextColor]</focusedcolor>
				    <shadowcolor></shadowcolor>
                    <label>$LOCALIZE[32121]</label>
                    <onclick condition="Container.Content(tvshows)">RunScript(script.artwork.beef, mode=gui, mediatype=tvshow, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="Container.Content(episodes)">RunScript(script.artwork.beef, mode=gui, mediatype=episode, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick condition="Container.Content(movies)">RunScript(script.artwork.beef, mode=gui, mediatype=movie, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick condition="Container.Content(musicvideos)">RunScript(script.artwork.beef, mode=gui, mediatype=musicvideo, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="Container.Content(sets)">RunScript(script.artwork.beef, mode=gui, mediatype=set, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick>SetFocus(50)</onclick>
                    <visible>Skin.HasSetting(ShowABinContextMenu)</visible>
                    <visible>System.AddonIsEnabled(script.artwork.beef) + [Container.Content(episodes) | Container.Content(sets) | Container.Content(tvshows) | Container.Content(movies) | Container.Content(musicvideos)]</visible>
                </control>
				<!-- ArtWork Downloader Solo Mode-->
                <control type="button" id="9327">
                    <width>493</width>
				    <height>60</height>
				    <textoffsetx>10</textoffsetx>
				    <align>center</align>
				    <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
				    <texturenofocus border="3">buttons/ButtonNF.png</texturenofocus>
				    <focusedcolor>$VAR[FocusedTextColor]</focusedcolor>
				    <shadowcolor></shadowcolor>
                    <label>$LOCALIZE[32429]</label>
                    <onclick condition="Container.Content(tvshows)">RunScript(script.artwork.downloader, mediatype=tvshow, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="Container.Content(musicvideos)">RunScript(script.artwork.downloader, mediatype=musicvideo, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick condition="Container.Content(movies)">RunScript(script.artwork.downloader, mediatype=movie, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick>SetFocus(50)</onclick>
                    <visible>Skin.HasSetting(ShowADinContextMenu)</visible>
                    <visible>System.AddonIsEnabled(script.artwork.downloader) + [Container.Content(tvshows) | Container.Content(movies) | Container.Content(musicvideos)]</visible>
                </control>
                <!-- ArtWork Downloader Gui Mode-->
                <control type="button" id="9328">
                    <width>493</width>
				    <height>60</height>
				    <textoffsetx>10</textoffsetx>
				    <align>center</align>
				    <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
				    <texturenofocus border="3">buttons/ButtonNF.png</texturenofocus>
				    <focusedcolor>$VAR[FocusedTextColor]</focusedcolor>
				    <shadowcolor></shadowcolor>
                    <label>$LOCALIZE[32428]</label>
                    <onclick condition="Container.Content(tvshows)">RunScript(script.artwork.downloader, mode=gui, mediatype=tvshow, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="Container.Content(musicvideos)">RunScript(script.artwork.downloader, mode=gui, mediatype=musicvideo, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick condition="Container.Content(movies)">RunScript(script.artwork.downloader, mode=gui, mediatype=movie, dbid=$INFO[ListItem.DBID])</onclick>
                    <onclick>SetFocus(50)</onclick>
                    <visible>Skin.HasSetting(ShowADinContextMenu)</visible>
                    <visible>System.AddonIsEnabled(script.artwork.downloader) + [Container.Content(tvshows) | Container.Content(movies) | Container.Content(musicvideos)]</visible>
                </control>
			</control>
		</control>
	</controls>
</window>