<window type="buttonMenu">
	<defaultcontrol>9001</defaultcontrol>
	<coordinates>
		<system>1</system>
		<posx>0</posx>
		<posy>0</posy>
	</coordinates>
	<controls>
		<control type="image">
			<description>Black Background</description>
			<posx>0</posx>
			<posy>0</posy>
			<width>1280</width>
			<height>720</height>
			<texture>black.png</texture>
			<include>black-effect</include>
		</control>
		<control type="button" id="9001">
			<description>Make sure we hit the first button in the group list and not the close window button</description>
			<posx>-16</posx>
			<posy>-16</posy>
			<width>4</width>
			<height>4</height>
			<label>-</label>
			<font>-</font>
			<onfocus>down</onfocus>
			<texturefocus>-</texturefocus>
			<texturenofocus>-</texturenofocus>
			<onleft>9000</onleft>
			<onright>9000</onright>
			<onup>9000</onup>
			<ondown>2</ondown>
		</control>

		<control type="grouplist" id="9000">
			<posx>470</posx>
			<posy>0</posy>
			<width>340</width>
			<height>720</height>
			<onleft>9000</onleft>
			<onright>9000</onright>
			<onup>9000</onup>
			<ondown>9000</ondown>
			<itemgap>0</itemgap>
			<align>center</align>
			<control type="group" id="1">
				<width>340</width>
				<height>30</height>
				<control type="image">
					<description>background top image</description>
					<posx>0</posx>
					<posy>0</posy>
					<width>340</width>
					<height>30</height>
					<texture>osd_settings_header.png</texture>
				</control>

			</control>
			<control type="button" id="2">
				<description>Exit button</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.Quit()</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13012</label>
				<visible>System.ShowExitButton</visible>
			</control>
			<control type="button" id="3">
				<description>Shutdown button</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.Powerdown()</onclick>
				<visible>System.CanPowerDown</visible>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13016</label>
			</control>
			<control type="button" id="4">
				<description>Custom Shutdown Timer</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown())</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>20150</label>
				<visible>!System.HasAlarm(shutdowntimer)</visible>
				<visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
			</control>
			<control type="button" id="5">
				<description>Cancel Shutdown Timer</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.CancelAlarm(shutdowntimer)</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>20151</label>
				<visible>System.HasAlarm(shutdowntimer)</visible>
			</control>
			<control type="button" id="6">
				<description>Suspend button</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.Suspend()</onclick>
				<visible>System.CanSuspend</visible>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13011</label>
			</control>
			<control type="button" id="7">
				<description>Hibernate button</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.Hibernate()</onclick>
				<visible>System.CanHibernate</visible>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13010</label>
			</control>
			<control type="button" id="8">
				<description>Reboot button</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.Reset()</onclick>
				<visible>System.CanReboot</visible>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13013</label>
			</control>
			<control type="button" id="9">
				<description>Logoff button</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>dialog.close(all,true)</onclick>
				<onclick>System.LogOff</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
				<visible>System.HasLoginScreen | IntegerGreaterThan(System.ProfileCount,1)</visible>
				<visible>System.Loggedon</visible>
			</control>
			<control type="togglebutton" id="10">
				<description>Master mode button</description>
				<width>340</width>
				<height>40</height>
				<label>20046</label>
				<altlabel>20045</altlabel>
				<align>center</align>
				<aligny>center</aligny>
				<textwidth>290</textwidth>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<usealttexture>!System.IsMaster</usealttexture>
				<alttexturefocus border="25,5,25,5">button6.png</alttexturefocus>
				<alttexturenofocus border="25,5,25,5">background2.png</alttexturenofocus>
				<onclick>xbmc.mastermode</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<visible>System.HasLocks</visible>
			</control>
			<control type="group" id="11">
				<width>340</width>
				<height>70</height>
				<visible>System.HasAlarm(shutdowntimer)</visible>
				<control type="image">
					<description>background top image</description>
					<posx>0</posx>
					<posy>0</posy>
					<width>340</width>
					<height>70</height>
					<texture>background2.png</texture>
				</control>
				<control type="textbox">
					<posx>25</posx>
					<posy>20</posy>
					<width>290</width>
					<height>50</height>
					<font>font12</font>
					<textcolor>white</textcolor>
					<shadowcolor>black</shadowcolor>
					<align>center</align>
					<label>$LOCALIZE[31329] [B]$INFO[System.Alarmpos][/B]</label>
				</control>
			</control>
			<control type="button" id="12">
				<description>Inhibit idle shutdown</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.InhibitIdleShutdown(true)</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13017</label>
				<visible>System.HasShutdown +!System.IsInhibit</visible>
			</control>
			<control type="button" id="13">
				<description>Allow idle shutdown</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.InhibitIdleShutdown(false)</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>13018</label>
				<visible>System.HasShutdown + System.IsInhibit</visible>
			</control>
			<control type="button" id="14">
				<description>Submenu control</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.ActivateWindow(submenu)</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>1034</label>
				<visible>Skin.HasSetting(Exit)</visible>
			</control>
			<control type="button" id="15">
				<description>Favourite control</description>
				<width>340</width>
				<height>40</height>
				<textcolor>blue</textcolor>
				<focusedcolor>white</focusedcolor>
				<align>center</align>
				<textwidth>290</textwidth>
				<texturefocus>button6.png</texturefocus>
				<texturenofocus>background2.png</texturenofocus>           
				<onclick>XBMC.ActivateWindow(Favourites)</onclick>
				<pulseonselect>no</pulseonselect>
				<font>font13</font>
				<label>1036</label>
				<visible>Skin.HasSetting(Exit)</visible>
			</control>
			<control type="image" id="16">
				<description>background bottom image</description>
				<posx>0</posx>
				<width>340</width>
				<height>30</height>
				<texture>background2.png</texture>
			</control>
		</control>
	</controls>
</window>
