<?xml version="1.0" encoding="UTF-8"?>
<window id="1103">
    <defaultcontrol always="yes">400</defaultcontrol>
    <onload condition="!String.IsEmpty(Window.Property(MenuTitle))">Skin.SetString(MyLists.MenuTitle,$INFO[Window.Property(MenuTitle)])</onload>
    <onload condition="!String.IsEmpty(Window.Property(SourceInfo))">Skin.SetString(MyLists.SourceInfo,$INFO[Window.Property(SourceInfo)])</onload>
    <onload condition="String.IsEmpty(Window.Property(MenuTitle))">SetProperty(MenuTitle,$INFO[Skin.String(MyLists.MenuTitle)])</onload>
    <onload condition="String.IsEmpty(Window.Property(SourceInfo))">SetProperty(SourceInfo,$INFO[Skin.String(MyLists.SourceInfo)])</onload>
    <onload>RunScript(script.revolve.service,PopulateSubmenuFromSkinVariables,$INFO[Window.Property(SourceInfo)]%02dOption,MySubmenu%02dOption,1103)</onload>
    <onunload>RunScript(script.revolve.service,ClearProperties,MySubmenu%02dOption,1103)</onunload>

    <controls>
        <include content="GlobalBackground" />

        <control type="fixedlist" id="400">
            <visible allowhiddenfocus="true">Skin.HasSetting(Debug.ListBorder.Visible)</visible>
            <posx>0</posx>
            <posy>0</posy>
            <width>1920</width>
            <height>1080</height>
            <focusposition>4</focusposition>
            <defaultcontrol>1</defaultcontrol>
            <onup>400</onup>
            <ondown>400</ondown>
            <onleft>9000</onleft>

            <include content="InvisibleVerticalListItemsForMenu" />
            
            <content>
                <item id="1">
                    <visible>String.StartsWith(Window.Property(MySubmenu01Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu01Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu01Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu01Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu01Option.MenuTitle)],$INFO[Window.Property(MySubmenu01Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu01Option.SourceInfo)],$INFO[Window.Property(MySubmenu01Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu01Option.Action)]</onclick>
                </item>
                <item id="2">
                    <visible>String.StartsWith(Window.Property(MySubmenu02Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu02Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu02Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu02Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu02Option.MenuTitle)],$INFO[Window.Property(MySubmenu02Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu02Option.SourceInfo)],$INFO[Window.Property(MySubmenu02Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu02Option.Action)]</onclick>
                </item>
                <item id="3">
                    <visible>String.StartsWith(Window.Property(MySubmenu03Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu03Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu03Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu03Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu03Option.MenuTitle)],$INFO[Window.Property(MySubmenu03Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu03Option.SourceInfo)],$INFO[Window.Property(MySubmenu03Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu03Option.Action)]</onclick>
                </item>
                <item id="4">
                    <visible>String.StartsWith(Window.Property(MySubmenu04Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu04Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu04Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu04Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu04Option.MenuTitle)],$INFO[Window.Property(MySubmenu04Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu04Option.SourceInfo)],$INFO[Window.Property(MySubmenu04Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu04Option.Action)]</onclick>
                </item>
                <item id="5">
                    <visible>String.StartsWith(Window.Property(MySubmenu05Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu05Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu05Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu05Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu05Option.MenuTitle)],$INFO[Window.Property(MySubmenu05Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu05Option.SourceInfo)],$INFO[Window.Property(MySubmenu05Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu05Option.Action)]</onclick>
                </item>
                <item id="6">
                    <visible>String.StartsWith(Window.Property(MySubmenu06Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu06Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu06Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu06Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu06Option.MenuTitle)],$INFO[Window.Property(MySubmenu06Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu06Option.SourceInfo)],$INFO[Window.Property(MySubmenu06Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu06Option.Action)]</onclick>
                </item>
                <item id="7">
                    <visible>String.StartsWith(Window.Property(MySubmenu07Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu07Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu07Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu07Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu07Option.MenuTitle)],$INFO[Window.Property(MySubmenu07Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu07Option.SourceInfo)],$INFO[Window.Property(MySubmenu07Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu07Option.Action)]</onclick>
                </item>
                <item id="8">
                    <visible>String.StartsWith(Window.Property(MySubmenu08Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu08Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu08Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu08Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu08Option.MenuTitle)],$INFO[Window.Property(MySubmenu08Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu08Option.SourceInfo)],$INFO[Window.Property(MySubmenu08Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu08Option.Action)]</onclick>
                </item>
                <item id="9">
                    <visible>String.StartsWith(Window.Property(MySubmenu09Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu09Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu09Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu09Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu09Option.MenuTitle)],$INFO[Window.Property(MySubmenu09Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu09Option.SourceInfo)],$INFO[Window.Property(MySubmenu09Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu09Option.Action)]</onclick>
                </item>
                <item id="10">
                    <visible>String.StartsWith(Window.Property(MySubmenu10Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu10Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu10Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu10Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu10Option.MenuTitle)],$INFO[Window.Property(MySubmenu10Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu10Option.SourceInfo)],$INFO[Window.Property(MySubmenu10Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu10Option.Action)]</onclick>
                </item>
                <item id="11">
                    <visible>String.StartsWith(Window.Property(MySubmenu11Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu11Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu11Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu11Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu11Option.MenuTitle)],$INFO[Window.Property(MySubmenu11Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu11Option.SourceInfo)],$INFO[Window.Property(MySubmenu11Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu11Option.Action)]</onclick>
                </item>
                <item id="12">
                    <visible>String.StartsWith(Window.Property(MySubmenu12Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu12Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu12Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu12Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu12Option.MenuTitle)],$INFO[Window.Property(MySubmenu12Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu12Option.SourceInfo)],$INFO[Window.Property(MySubmenu12Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu12Option.Action)]</onclick>
                </item>
                <item id="13">
                    <visible>String.StartsWith(Window.Property(MySubmenu13Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu13Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu13Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu13Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu13Option.MenuTitle)],$INFO[Window.Property(MySubmenu13Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu13Option.SourceInfo)],$INFO[Window.Property(MySubmenu13Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu13Option.Action)]</onclick>
                </item>
                <item id="14">
                    <visible>String.StartsWith(Window.Property(MySubmenu14Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu14Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu14Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu14Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu14Option.MenuTitle)],$INFO[Window.Property(MySubmenu14Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu14Option.SourceInfo)],$INFO[Window.Property(MySubmenu14Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu14Option.Action)]</onclick>
                </item>
                <item id="15">
                    <visible>String.StartsWith(Window.Property(MySubmenu15Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu15Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu15Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu15Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu15Option.MenuTitle)],$INFO[Window.Property(MySubmenu15Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu15Option.SourceInfo)],$INFO[Window.Property(MySubmenu15Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu15Option.Action)]</onclick>
                </item>
                <item id="16">
                    <visible>String.StartsWith(Window.Property(MySubmenu16Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu16Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu16Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu16Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu16Option.MenuTitle)],$INFO[Window.Property(MySubmenu16Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu16Option.SourceInfo)],$INFO[Window.Property(MySubmenu16Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu16Option.Action)]</onclick>
                </item>
                <item id="17">
                    <visible>String.StartsWith(Window.Property(MySubmenu17Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu17Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu17Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu17Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu17Option.MenuTitle)],$INFO[Window.Property(MySubmenu17Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu17Option.SourceInfo)],$INFO[Window.Property(MySubmenu17Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu17Option.Action)]</onclick>
                </item>
                <item id="18">
                    <visible>String.StartsWith(Window.Property(MySubmenu18Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu18Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu18Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu18Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu18Option.MenuTitle)],$INFO[Window.Property(MySubmenu18Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu18Option.SourceInfo)],$INFO[Window.Property(MySubmenu18Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu18Option.Action)]</onclick>
                </item>
                <item id="19">
                    <visible>String.StartsWith(Window.Property(MySubmenu19Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu19Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu19Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu19Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu19Option.MenuTitle)],$INFO[Window.Property(MySubmenu19Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu19Option.SourceInfo)],$INFO[Window.Property(MySubmenu19Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu19Option.Action)]</onclick>
                </item>
                <item id="20">
                    <visible>String.StartsWith(Window.Property(MySubmenu20Option.Active),T)</visible>
                    <label>$INFO[Window.Property(MySubmenu20Option.Name)]</label>
                    <property name="Label3">$INFO[Window.Property(MySubmenu20Option.Subtitle)]</property>
                    <property name="BackgroundImage">$INFO[Window.Property(MySubmenu20Option.BackgroundImage)]</property>
                    <onclick>SetProperty(MenuTitle,$INFO[Window.Property(MySubmenu20Option.MenuTitle)],$INFO[Window.Property(MySubmenu20Option.Window)])</onclick>
                    <onclick>SetProperty(SourceInfo,$INFO[Window.Property(MySubmenu20Option.SourceInfo)],$INFO[Window.Property(MySubmenu20Option.Window)])</onclick>
                    <onclick>$INFO[Window.Property(MySubmenu20Option.Action)]</onclick>
                </item>
                <item id="99">
                    <visible>![String.StartsWith(Window.Property(MySubmenu01Option.Active),T) | String.StartsWith(Window.Property(MySubmenu02Option.Active),T) | String.StartsWith(Window.Property(MySubmenu03Option.Active),T) | String.StartsWith(Window.Property(MySubmenu04Option.Active),T) | String.StartsWith(Window.Property(MySubmenu05Option.Active),T) | String.StartsWith(Window.Property(MySubmenu06Option.Active),T) | String.StartsWith(Window.Property(MySubmenu07Option.Active),T) | String.StartsWith(Window.Property(MySubmenu08Option.Active),T) | String.StartsWith(Window.Property(MySubmenu09Option.Active),T) | String.StartsWith(Window.Property(MySubmenu10Option.Active),T) | String.StartsWith(Window.Property(MySubmenu11Option.Active),T) | String.StartsWith(Window.Property(MySubmenu12Option.Active),T) | String.StartsWith(Window.Property(MySubmenu13Option.Active),T) | String.StartsWith(Window.Property(MySubmenu14Option.Active),T) | String.StartsWith(Window.Property(MySubmenu15Option.Active),T) | String.StartsWith(Window.Property(MySubmenu16Option.Active),T) | String.StartsWith(Window.Property(MySubmenu17Option.Active),T) | String.StartsWith(Window.Property(MySubmenu18Option.Active),T) | String.StartsWith(Window.Property(MySubmenu19Option.Active),T) | String.StartsWith(Window.Property(MySubmenu20Option.Active),T)]</visible>
                    <label>-</label>
                    <property name="Label3">-</property>
                    <property name="BackgroundImage">-</property>
                    <onclick>Noop</onclick>
                </item>
            </content>
        </control>

        <control type="group">
            <visible>Integer.IsGreater(Skin.String(Background.Animation.Level),1)</visible>
            <include content="RevolveMenu">
                <param name="texture" value="circle/submenu.png" />
                <param name="label" value="$INFO[Window.Property(MenuTitle)]" />
                <param name="rotate" value="true" />
            </include>
        </control>
        <control type="group">
            <visible>!Integer.IsGreater(Skin.String(Background.Animation.Level),1)</visible>
            <include content="RevolveMenu">
                <param name="texture" value="circle/submenu.png" />
                <param name="label" value="$INFO[Window.Property(MenuTitle)]" />
                <param name="rotate" value="false" />
            </include>
        </control>
        
        <include content="GlobalOverlay" />
    </controls>
</window>
