<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">9009</defaultcontrol>
	<onload condition="!Integer.IsGreater(Container(9009).NumItems,0)">close</onload>
	<controls>
		<control type="group" description="MENU">
            <centerleft>50%</centerleft>
            <centertop>50%</centertop>
            <width>382</width>
            <height>650</height>
			<animation type="WindowOpen">
				<effect type="zoom" start="95" end="100" center="960,540" time="200" />
				<effect type="fade" start="80" end="100" time="200" />
			</animation>
			<animation type="WindowClose">
				<effect type="zoom" start="100" end="95" center="960,540" time="100" />
				<effect type="fade" start="100" end="0" time="100" />
			</animation>
            <control type="image" description="Menu BG">
				<height>190</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,1)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>230</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,2)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>290</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,3)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>350</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,4)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>410</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,5)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>470</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,6)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>530</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,7)</visible>
			</control>
            <control type="image" description="Menu BG">
				<height>590</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsEqual(Container(9009).NumItems,8)</visible>
			</control>
			<control type="image" description="Menu BG">
				<height>650</height>
				<width>382</width>
				<texture border="0,40,0,40">dialogs/ContextMenu.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
                <visible>Integer.IsGreater(Container(9009).NumItems,8)</visible>
			</control>
            <control type="label">
                <posx>40</posx>
				<posy>20</posy>
				<height>40</height>
				<width>260</width>
                <align>left</align>
                <font>ListDetails</font>
                <label>[B]$LOCALIZE[31528][/B]</label>
            </control>
            <control type="button" id="90099">
			    <description>Close Button</description>
			    <posy>20</posy>
                <right>30</right>
                <width>40</width>
                <height>40</height>
			    <font></font>
			    <onclick>Action(Back)</onclick>
				<ondown>9009</ondown>
			    <texturefocus colordiffuse="$VAR[HighlightColor]">ShutdownNF.png</texturefocus>
			    <texturenofocus>ShutdownNF.png</texturenofocus>
				<visible>Skin.HasSetting(Enable.TouchSupport)</visible>
		    </control>
			<control type="image" description="Power icon">
				<posy>20</posy>
                <right>30</right>
                <width>40</width>
                <height>40</height>
				<texture>ShutdownNF.png</texture>
				<visible>!Skin.HasSetting(Enable.TouchSupport)</visible>
			</control>
			<control type="panel" id="9009" description="PW Options">
				<posx>0</posx>
				<posy>80</posy>
				<width>382</width>
				<onleft>close</onleft>
				<onright>close</onright>
				<onup condition="Skin.HasSetting(Enable.TouchSupport)">90099</onup>
		        <onup condition="!Skin.HasSetting(Enable.TouchSupport)">9009</onup>
				<ondown>9009</ondown>
				<scrolltime tween="sine" easing="inout">280</scrolltime>
				<itemlayout height="60" width="382">
					<control type="image">
						<width>382</width>
						<height>60</height>
						<texture border="3">buttons/ButtonNF.png</texture>
					</control>
					<control type="label">
						<width>382</width>
						<height>60</height>
                        <align>center</align>
                        <font>ListDetails</font>
						<label>$INFO[ListItem.Label]</label>
					</control>
				</itemlayout>
				<focusedlayout height="60" width="382">
					<control type="image">
						<width>382</width>
						<height>60</height>
						<texture border="3">buttons/ButtonNF.png</texture>
					</control>
					<control type="image">
						<posx>16</posx>
						<width>350</width>
						<height>60</height>
						<texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
					</control>
					<control type="label">
						<width>382</width>
						<height>60</height>
                        <align>center</align>
						<textcolor>$VAR[FocusedTextColor]</textcolor>
						<shadowcolor></shadowcolor>
                        <font>ListDetails</font>
						<label>$INFO[ListItem.Label]</label>
					</control>
				</focusedlayout>
                <content>
                    <include>skinshortcuts-group-powermenu</include>
                </content>
			</control>
		</control>
	</controls>
</window>