<?xml version="1.0" encoding="utf-8"?>
<window type="buttonmenu" id="111">
    <defaultcontrol always="true">9009</defaultcontrol>
    <zorder>15</zorder>
    <onload condition="!Integer.IsGreater(Container(9009).NumItems,0)">close</onload>
    <include>DialogOpenClose</include>
    <controls>
        <include>DimBG</include>
        <control type="group">
            <include condition="Skin.HasSetting(BlackGlassMode)+!Skin.HasSetting(DisableSlidingAnimations)">OpenCloseSlideRight</include>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,9)</visible>
                <posx>555</posx>
                <posy>72</posy>
                <width>810</width>
                <height>936</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,8)+!Integer.IsGreater(Container(9009).NumItems,9)</visible>
                <posx>555</posx>
                <posy>108</posy>
                <width>810</width>
                <height>863</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,7)+!Integer.IsGreater(Container(9009).NumItems,8)</visible>
                <posx>555</posx>
                <posy>145</posy>
                <width>810</width>
                <height>790</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,6)+!Integer.IsGreater(Container(9009).NumItems,7)</visible>
                <posx>555</posx>
                <posy>181</posy>
                <width>810</width>
                <height>717</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,5)+!Integer.IsGreater(Container(9009).NumItems,6)</visible>
                <posx>555</posx>
                <posy>218</posy>
                <width>810</width>
                <height>644</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,4)+!Integer.IsGreater(Container(9009).NumItems,5)</visible>
                <posx>555</posx>
                <posy>254</posy>
                <width>810</width>
                <height>571</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,3)+!Integer.IsGreater(Container(9009).NumItems,4)</visible>
                <posx>555</posx>
                <posy>291</posy>
                <width>810</width>
                <height>498</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,2)+!Integer.IsGreater(Container(9009).NumItems,3)</visible>
                <posx>555</posx>
                <posy>327</posy>
                <width>810</width>
                <height>425</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,1)+!Integer.IsGreater(Container(9009).NumItems,2)</visible>
                <posx>555</posx>
                <posy>364</posy>
                <width>810</width>
                <height>352</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="image">
                <visible>Integer.IsGreater(Container(9009).NumItems,0)+!Integer.IsGreater(Container(9009).NumItems,1)</visible>
                <posx>555</posx>
                <posy>400</posy>
                <width>810</width>
                <height>936</height>
                <texture border="84">common/bg_dialog.png</texture>
            </control>
            <control type="group">
                <animation effect="slide" time="0" start="0,0" end="0,0" condition="Integer.IsGreater(Container(9009).NumItems,9)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,36" condition="Integer.IsGreater(Container(9009).NumItems,8)+!Integer.IsGreater(Container(9009).NumItems,9)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,73" condition="Integer.IsGreater(Container(9009).NumItems,7)+!Integer.IsGreater(Container(9009).NumItems,8)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,109" condition="Integer.IsGreater(Container(9009).NumItems,6)+!Integer.IsGreater(Container(9009).NumItems,7)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,146" condition="Integer.IsGreater(Container(9009).NumItems,5)+!Integer.IsGreater(Container(9009).NumItems,6)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,182" condition="Integer.IsGreater(Container(9009).NumItems,4)+!Integer.IsGreater(Container(9009).NumItems,5)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,219" condition="Integer.IsGreater(Container(9009).NumItems,3)+!Integer.IsGreater(Container(9009).NumItems,4)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,255" condition="Integer.IsGreater(Container(9009).NumItems,2)+!Integer.IsGreater(Container(9009).NumItems,3)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,292" condition="Integer.IsGreater(Container(9009).NumItems,1)+!Integer.IsGreater(Container(9009).NumItems,2)">conditional</animation>
                <animation effect="slide" time="0" start="0,0" end="0,328" condition="Integer.IsGreater(Container(9009).NumItems,0)+!Integer.IsGreater(Container(9009).NumItems,1)">conditional</animation>
                <include content="WindowClosingButton">
                    <param name="id" value="0"/>
                    <param name="x" value="1315"/>
                    <param name="y" value="68"/>
                </include>
                <control type="image">
                    <posx>600</posx>
                    <posy>97</posy>
                    <width>720</width>
                    <height>79</height>
                    <texture>list/bg_facade_nofocus_top.png</texture>
                </control>
                <control type="panel" id="9009">
                    <posx>600</posx>
                    <posy>176</posy>
                    <width>720</width>
                    <height>730</height>
                    <onleft>close</onleft>
                    <onright>6060</onright>
                    <onup>9009</onup>
                    <ondown>9009</ondown>
                    <pagecontrol>6060</pagecontrol>
                    <scrolltime tween="sine" easing="inout">280</scrolltime>
                    <itemlayout height="73" width="720">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <height>73</height>
                            <width>720</width>
                            <texture border="3">list/bg_facade_nofocus.png</texture>
                        </control>
                        <control type="label">
                            <posx>25</posx>
                            <height>71</height>
                            <width>620</width>
                            <font>FacadeListMainFont</font>
                            <textcolor>ListNoFocusColor</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                            <scroll>false</scroll>
                        </control>
                        <control type="image">
                            <posx>70r</posx>
                            <posy>0</posy>
                            <width>40</width>
                            <height>71</height>
                            <aspectratio>keep</aspectratio>
                            <info>ListItem.Thumb</info>
                        </control>
                    </itemlayout>
                    <focusedlayout height="73" width="720">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <height>73</height>
                            <width>720</width>
                            <include>FacadeFocus</include>
                        </control>
                        <control type="label">
                            <posx>25</posx>
                            <height>71</height>
                            <width>620</width>
                            <font>FacadeListMainFont</font>
                            <textcolor>ListFocusColor</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="image">
                            <posx>70r</posx>
                            <posy>0</posy>
                            <width>40</width>
                            <height>71</height>
                            <aspectratio>keep</aspectratio>
                            <info>ListItem.ActualIcon</info>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id="8">
                            <visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
                            <visible>System.Loggedon</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>System.LogOff</onclick>
                            <label>$LOCALIZE[20126]</label>
                            <thumb>topbar/topbar_logout_nofocus.png</thumb>
                            <icon>topbar/topbar_logout_focus.png</icon>
                        </item>
                        <item id="9">
                            <visible>System.HasLocks + System.IsMaster</visible>
                            <onclick>mastermode</onclick>
                            <label>$LOCALIZE[20046]</label>
                            <thumb>topbar/topbar_master_nofocus.png</thumb>
                            <icon>topbar/topbar_master_focus.png</icon>
                        </item>
                        <item id="9">
                            <visible>System.HasLocks + !System.IsMaster</visible>
                            <onclick>mastermode</onclick>
                            <label>$LOCALIZE[20045]</label>
                            <thumb>topbar/topbar_nomaster_nofocus.png</thumb>
                            <icon>topbar/topbar_nomaster_focus.png</icon>
                        </item>
                        <item id="11">
                            <visible>!Skin.HasSetting(QuitMenu_Hide_Quit)</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>Quit()</onclick>
                            <label>$LOCALIZE[13009]</label>
                            <thumb>topbar/topbar_exit_nofocus.png</thumb>
                            <icon>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>Suspend()</onclick>
                            <label>$LOCALIZE[13011]</label>
                            <thumb>topbar/topbar_sleep_nofocus.png</thumb>
                            <icon>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>Powerdown()</onclick>
                            <label>$LOCALIZE[13005]</label>
                            <thumb>topbar/topbar_shutdown_nofocus.png</thumb>
                            <icon>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>Reset()</onclick>
                            <label>$LOCALIZE[13013]</label>
                            <thumb>topbar/topbar_restart_nofocus.png</thumb>
                            <icon>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>topbar/topbar_settings_nofocus.png</thumb>
                            <icon>topbar/topbar_settings_focus.png</icon>
                        </item>
                        <item id="22">
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>activatewindow(skinsettings)</onclick>
                            <label>$LOCALIZE[20077]</label>
                            <thumb>topbar/topbar_settings_nofocus.png</thumb>
                            <icon>topbar/topbar_settings_focus.png</icon>
                        </item>
                        <item id="23">
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>activatewindow(favourites)</onclick>
                            <label>$LOCALIZE[10134]</label>
                            <thumb>topbar/topbar_bookmark2_nofocus.png</thumb>
                            <icon>topbar/topbar_bookmark2_focus.png</icon>
                        </item>
                        <item id="17">
                            <visible>Skin.HasSetting(QuitMenu_Hide_Timer)</visible>
                            <visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>AlarmClock(shutdowntimer,Shutdown())</onclick>
                            <label>$LOCALIZE[20144]</label>
                            <thumb>topbar/topbar_epg_nofocus.png</thumb>
                            <icon>topbar/topbar_epg_focus.png</icon>
                        </item>
                        <item id="18">
                            <visible>Skin.HasSetting(QuitMenu_Hide_Timer)</visible>
                            <visible>System.HasAlarm(shutdowntimer)</visible>
                            <onclick>dialog.close(all,true)</onclick>
                            <onclick>CancelAlarm(shutdowntimer)</onclick>
                            <label>$LOCALIZE[20151]: $INFO[System.Alarmpos]</label>
                            <thumb>topbar/topbar_epg_nofocus.png</thumb>
                            <icon>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>topbar/topbar_pause_nofocus.png</thumb>
                            <icon>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>topbar/topbar_play_nofocus.png</thumb>
                            <icon>topbar/topbar_play_focus.png</icon>
                        </item>
                    </content>
                </control>
                <control type="scrollbar" id="6060">
                    <visible>Integer.IsGreater(Container(9009).NumItems,9)</visible>
                    <posx>1289</posx>
                    <posy>176</posy>
                    <height>730</height>
                    <include>VerticalScroller</include>
                    <onleft>9009</onleft>
                    <onright>close</onright>
                </control>
            </control>
        </control>
    </controls>
</window>
