<?xml version="1.0" encoding="utf-8"?>
<window type="buttonmenu" id="111">
    <defaultcontrol always="true">9009</defaultcontrol>
    <onload condition="!IntegerGreaterThan(Container(9009).NumItems,0)">close</onload>
    <controls>
        <!-- <include>DimBG</include> -->
        <include>TopBar</include>
        <control type="group">
            <include>DialogOpenClose</include>
            <control type="group">
                <animation effect="slide" time="0" start="0,0" end="0,318" condition="IntegerGreaterThan(Container(9009).NumItems,0)+!IntegerGreaterThan(Container(9009).NumItems,1)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,278" condition="IntegerGreaterThan(Container(9009).NumItems,1)+!IntegerGreaterThan(Container(9009).NumItems,2)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,239" condition="IntegerGreaterThan(Container(9009).NumItems,2)+!IntegerGreaterThan(Container(9009).NumItems,3)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,200" condition="IntegerGreaterThan(Container(9009).NumItems,3)+!IntegerGreaterThan(Container(9009).NumItems,4)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,161" condition="IntegerGreaterThan(Container(9009).NumItems,4)+!IntegerGreaterThan(Container(9009).NumItems,5)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,122" condition="IntegerGreaterThan(Container(9009).NumItems,5)+!IntegerGreaterThan(Container(9009).NumItems,6)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,83" condition="IntegerGreaterThan(Container(9009).NumItems,6)+!IntegerGreaterThan(Container(9009).NumItems,7)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,44" condition="IntegerGreaterThan(Container(9009).NumItems,7)+!IntegerGreaterThan(Container(9009).NumItems,8)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,5" condition="IntegerGreaterThan(Container(9009).NumItems,8)+!IntegerGreaterThan(Container(9009).NumItems,9)">conditional</animation>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,0)+!IntegerGreaterThan(Container(9009).NumItems,1)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>144</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,1)+!IntegerGreaterThan(Container(9009).NumItems,2)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>222</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,2)+!IntegerGreaterThan(Container(9009).NumItems,3)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>300</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,3)+!IntegerGreaterThan(Container(9009).NumItems,4)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>378</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,4)+!IntegerGreaterThan(Container(9009).NumItems,5)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>456</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,5)+!IntegerGreaterThan(Container(9009).NumItems,6)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>534</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,6)+!IntegerGreaterThan(Container(9009).NumItems,7)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>612</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <visible>IntegerGreaterThan(Container(9009).NumItems,7)+!IntegerGreaterThan(Container(9009).NumItems,8)</visible>
                    <posx>-200</posx>
                    <posy>150</posy>
                    <width>2320</width>
                    <height>690</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="panel" id="9009">
                    <posx>0</posx>
                    <posy>183</posy>
                    <width>1920</width>
                    <height>624</height>
                    <onleft>close</onleft>
                    <onright>close</onright>
                    <onup>9009</onup>
                    <ondown>9009</ondown>
                    <itemlayout height="78" width="1920">
                        <control type="label">
                            <posx>TextMargin</posx>
                            <height>78</height>
                            <width>1800</width>
                            <align>center</align>
                            <font>FacadeListMainFont</font>
                            <include>TextColor_AlternateColor</include>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="image">
                            <posx>110r</posx>
                            <posy>0</posy>
                            <width>50</width>
                            <height>78</height>
                            <aspectratio>keep</aspectratio>
                            <info>ListItem.Thumb</info>
                        </control>
                    </itemlayout>
                    <focusedlayout height="78" width="1920">
                        <control type="group">
                            <include>ButtonWideFocusAnimation</include>
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <height>78</height>
                                <width>1920</width>
                                <texture border="1">$VAR[Theme.Color]/list/bg_facade_focus.png</texture>
                            </control>
                            <control type="label">
                                <posx>TextMargin</posx>
                                <height>78</height>
                                <width>1800</width>
                                <align>center</align>
                                <font>FacadeListMainFont</font>
                                <include>TextColor_MainColor</include>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                            <control type="image">
                                <posx>110r</posx>
                                <posy>0</posy>
                                <width>50</width>
                                <height>78</height>
                                <aspectratio>keep</aspectratio>
                                <info>ListItem.ActualIcon</info>
                            </control>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id="8">
                            <visible>System.HasLoginScreen | IntegerGreaterThan(System.ProfileCount,1)</visible>
                            <visible>System.Loggedon</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>System.LogOff</onclick>
                            <label>$LOCALIZE[20126]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_logout_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_logout_focus.png</icon>
                        </item>
                        <item id="9">
                            <visible>System.HasLocks + System.IsMaster</visible>
                            <onclick>mastermode</onclick>
                            <label>$LOCALIZE[20046]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_master_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_master_focus.png</icon>
                        </item>
                        <item id="9">
                            <visible>System.HasLocks + !System.IsMaster</visible>
                            <onclick>mastermode</onclick>
                            <label>$LOCALIZE[20045]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_nomaster_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_nomaster_focus.png</icon>
                        </item>
                        <item id="11">
                            <visible>!Skin.HasSetting(QuitMenu_Hide_Quit)</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>XBMC.Quit()</onclick>
                            <label>$LOCALIZE[13009]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_exit_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_exit_focus.png</icon>
                        </item>
                        <item id="12">
                            <visible>!Skin.HasSetting(QuitMenu_Hide_Sleep)</visible>
                            <visible>System.CanSuspend</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>XBMC.Suspend()</onclick>
                            <label>$LOCALIZE[13011]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_sleep_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_sleep_focus.png</icon>
                        </item>
                        <item id="15">
                            <visible>!Skin.HasSetting(QuitMenu_Hide_Shutdown)</visible>
                            <visible>System.CanPowerDown</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>XBMC.Powerdown()</onclick>
                            <label>$LOCALIZE[13005]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_shutdown_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_shutdown_focus.png</icon>
                        </item>
                        <item id="14">
                            <visible>!Skin.HasSetting(QuitMenu_Hide_Reboot)</visible>
                            <visible>System.CanReboot</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>XBMC.Reset()</onclick>
                            <label>$LOCALIZE[13013]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_restart_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_restart_focus.png</icon>
                        </item>
                        <item id="16">
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>ActivateWindow(Settings,return)</onclick>
                            <label>$LOCALIZE[5]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_settings_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_settings_focus.png</icon>
                        </item>
                        <item id="17">
                            <visible>!System.HasAlarm(shutdowntimer)</visible>
                            <visible>Skin.HasSetting(QuitMenu_Hide_Timer)</visible>
                            <visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>XBMC.AlarmClock(shutdowntimer,XBMC.Shutdown())</onclick>
                            <label>$LOCALIZE[20144]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_epg_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_epg_focus.png</icon>
                        </item>
                        <item id="18">
                            <visible>Skin.HasSetting(QuitMenu_Hide_Timer)</visible>
                            <visible>System.HasAlarm(shutdowntimer)</visible>
                            <onclick>CancelAlarm(shutdowntimer)</onclick>
                            <label>$LOCALIZE[20151]: $INFO[System.Alarmpos]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_epg_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_epg_focus.png</icon>
                        </item>
                        <item id="19">
                            <visible>System.HasShutdown +!System.IsInhibit</visible>
                            <onclick>InhibitIdleShutdown(true)</onclick>
                            <label>$LOCALIZE[13017]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_pause_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_pause_focus.png</icon>
                        </item>
                        <item id="20">
                            <visible>System.HasShutdown + System.IsInhibit</visible>
                            <onclick>InhibitIdleShutdown(false)</onclick>
                            <label>$LOCALIZE[13018]</label>
                            <thumb>$VAR[Theme.Color]/topbar/topbar_play_nofocus.png</thumb>
                            <icon>$VAR[Theme.Color]/topbar/topbar_play_focus.png</icon>
                        </item>
                    </content>
                </control>
            </control>
        </control>
    </controls>
</window>
