<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window type="buttonMenu" id="111">
    <defaultcontrol always="true">3110</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <zorder>10</zorder>
    <controls>

        <include>GlobalOverlay</include>

        <control type="group">
            <include>Animation.ZoomIn</include>
            <top>200</top>
            <centerleft>50%</centerleft>
            <width>466</width>
            <control type="group">
                <control type="image">
                    <description>arrow image</description>
                    <centerleft>50%</centerleft>
                    <posy>-32</posy>
                    <width>16</width>
                    <height>16</height>
                    <texture colordiffuse="White70" flipy="true">common/arrow-small.png</texture>
                </control>
                <control type="image">
                    <description>arrow image</description>
                    <centerleft>50%</centerleft>
                    <posy>576</posy>
                    <width>16</width>
                    <height>16</height>
                    <texture colordiffuse="White70" flipy="false">common/arrow-small.png</texture>
                </control>
            </control>
            <control type="image">
                <description>background image</description>
                <posx>0</posx>
                <posy>-16</posy>
                <width>466</width>
                <height>592</height>
                <texture border="16" colordiffuse="White100">common/rounded-shadow8.png</texture>
            </control>

            <control type="grouplist" id="3110">
                <description>grouplist for context buttons</description>
                <posx>8</posx>
                <posy>0</posy>
                <width>510</width>
                <height>560</height>
                <itemgap>0</itemgap>

                <control type="button" id="3111">
                    <description>Exit XBMC button</description>
                    <include>DefContextButton</include>
                    <label>13012</label>
                    <onclick>Quit()</onclick>
                    <visible>System.ShowExitButton</visible>
                </control>

                <control type="button" id="3112">
                    <description>Master mode button</description>
                    <include>DefContextButton</include>
                    <label>20046</label>
                    <altlabel>20045</altlabel>
                    <onclick>xbmc.mastermode</onclick>
                    <visible>System.HasLocks</visible>
                </control>

                <control type="button" id="3113">
                    <description>LogOff Profile</description>
                    <include>DefContextButton</include>
                    <label>$LOCALIZE[20126] $INFO[system.profilename]</label>
                    <onclick>dialog.close(all,true)</onclick>
                    <onclick>System.LogOff</onclick>
                    <visible>System.Loggedon + System.HasLoginScreen</visible>
                </control>

                <control type="button" id="3116">
                    <description>Shutdown</description>
                    <include>DefContextButton</include>
                    <label>13005</label>
                    <onclick>Powerdown()</onclick>
                    <visible>System.CanPowerDown</visible>
                </control>
                
                <control type="button" id="3114">
                    <description>Custom Shutdown Timer button</description>
                    <include>DefContextButton</include>
                    <label>20151</label>
                    <onclick>XBMC.CancelAlarm(shutdowntimer)</onclick>
                    <visible>System.HasAlarm(shutdowntimer)</visible>
                </control>

                <control type="button" id="3115">
                    <description>Custom Shutdown Timer button</description>
                    <include>DefContextButton</include>
                    <label>20150</label>
                    <onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown())</onclick>
                    <visible>!System.HasAlarm(shutdowntimer)</visible>
                    <visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
                </control>

                <control type="label" id="3119">
                    <description>Alarm Time</description>
                    <include>DefContextButton</include>
                    <align>center</align>
                    <label>$LOCALIZE[20145] [B]$INFO[System.Alarmpos][/B]</label>
                    <visible>System.HasAlarm(shutdowntimer)</visible>
                </control>

                <control type="button" id="3117">
                    <description>Suspend xbmc</description>
                    <include>DefContextButton</include>
                    <label>13011</label>
                    <onclick>XBMC.Suspend()</onclick>
                    <visible>System.CanSuspend</visible>
                </control>

                <control type="button" id="3118">
                    <description>Reboot button</description>
                    <include>DefContextButton</include>
                    <label>13013</label>
                    <onclick>XBMC.Reset()</onclick>
                    <visible>System.CanReboot</visible>
                </control>
                
                <control type="button" id="3121">
                    <include>DefContextButton</include>
                    <label>5</label>
                    <onclick>ActivateWindow(settings)</onclick>
                </control>
                
                <control type="button" id="3122">
                    <include>DefContextButton</include>
                    <label>130</label>
                    <onclick>ActivateWindow(systeminfo)</onclick>
                </control>
                
                <control type="button" id="3123">
                    <include>DefContextButton</include>
                    <label>10003</label>
                    <onclick>ActivateWindow(filemanager)</onclick>
                </control>
                
                <control type="button" id="3120">
                    <include>DefContextButton</include>
                    <label>31195</label>
                    <onclick>ReloadSkin()</onclick>
                </control>
                
            </control>

        </control>

    </controls>

</window>
