<?xml version="1.0" encoding="utf-8"?>
<window type="buttonMenu" id="111">
    <defaultcontrol always="true">3110</defaultcontrol>
     
    <controls>
	<!-- This Window appears on the right, when the Shutdown button in the Home Menu is pressed or the letter S is pressed -->
        <include>GlobalOverlay</include>
        <control type="group">
            <left>960</left>
            <top>0</top>
            <animation type="WindowOpen">
                <effect type="slide" time="300" start="+320, 0" end="0,0" easing="out" tween="cubic" />
            </animation>
            <animation type="WindowClose">
                <effect type="slide" time="300" start="0,0" end="+320,0" easing="in" tween="cubic" />
            </animation>
			<include>RightMenuBackground</include>
			<control type="fadelabel">
                <description>Menu Title</description>
                <left>20</left>
                <top>0</top>
                <width>280</width>
                <label>$LOCALIZE[13005]</label>
                <align>right</align>
                <font>Panel_Description_Title</font>
            </control>
            <control type="grouplist" id="1">
                <left>20</left>
                <top>70</top>
                <width>280</width>
                <height>500</height>
                <itemgap>2</itemgap>
                <onleft>noop</onleft>
                <onright>noop</onright>
                <onup>1</onup>
                <ondown>1</ondown>
                <orientation>vertical</orientation>
                <control type="grouplist" id="3110">
                    <height>500</height>
                    <control type="button" id="3111">
                        <description>Master mode button</description>
                        <width>280</width>
                        <label>20046</label>
                        <onclick>xbmc.mastermode</onclick>
                        <visible>System.HasLocks</visible>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
                    </control>
                    <control type="button" id="3112">
                        <description>LogOff Profile</description>
                        <width>280</width>
                        <label>$LOCALIZE[20126] $INFO[system.profilename]</label>
                        <onclick>dialog.close(all,true)</onclick>
                        <onclick>System.LogOff</onclick>
                        <visible>System.HasLoginScreen</visible>
                        <visible>System.Loggedon</visible>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
                    </control>
                    <control type="button" id="3115">
                        <description>Shutdown</description>
                        <width>280</width>
                        <label>13005</label>
                        <onclick>ShutDown()</onclick>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
                    </control>
                    <control type="button" id="3116">
                        <description>Suspend xbmc</description>
                        <width>280</width>
                        <label>13011</label>
                        <onclick>XBMC.Suspend()</onclick>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
                    </control>
                    <control type="button" id="3117">
                        <description>Reboot button</description>
                        <width>280</width>
                        <label>13013</label>
                        <onclick>XBMC.Reset()</onclick>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
                    </control>
                    <control type="button" id="31151">
                        <description>Exit</description>
                        <width>280</width>
                        <label>$LOCALIZE[13012]</label>
                        <onclick>Quit()</onclick>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
		            </control>
                    <control type="button" id="3113">
                        <description>Custom Shutdown Timer button</description>
                        <width>280</width>
                        <label>20151</label>
                        <onclick>XBMC.CancelAlarm(shutdowntimer)</onclick>
                        <visible>System.HasAlarm(shutdowntimer)</visible>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
		            </control>
                    <control type="button" id="3114">
                        <description>Custom Shutdown Timer button</description>
                        <width>280</width>
                        <label>20150</label>
                        <onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown())</onclick>
                        <visible>!System.HasAlarm(shutdowntimer)</visible>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
					</control>
					<control type="button" id="3120">
                        <description>Open Settings</description>
                        <width>280</width>
                        <label>$LOCALIZE[10004]</label>
						<onclick>Close</onclick>
                        <onclick>ActivateWindow(Settings)</onclick>
                        <align>right</align>
                        <font>Panel_Info</font>
                        <textoffsetx>10</textoffsetx>
                    </control>
                </control>
            </control>
		</control>
		<!-- Close Button for Touch and Mouse	-->
		<control type="button" id="9876">
			<animation effect="fade" time="0" delay="300">WindowOpen</animation>
			<animation effect="fade" end="0" time="100">WindowClose</animation>
			<animation effect="rotate" end="-90" center="985,20" time="0" condition="true" reversible="false">Conditional</animation>
			<visible>[System.Platform.IOS | System.Platform.Android | System.getbool(input.enablemouse)]</visible>
			<top>-5</top>
			<left>960</left>
			<width>50</width>
			<height>50</height>
			<onclick>back</onclick>
			<texturefocus>down_arrow.png</texturefocus>
			<texturenofocus>down_arrow.png</texturenofocus>					
		</control>
	</controls>
</window>