<window>
	<allowoverlay>no</allowoverlay>
  <controls>

    <control type="group">
			<animation type="Conditional" condition="!Control.HasFocus(150)" reversible="false">
        <effect type="fade" start="0" end="100" time="300" delay="300" tween="sine" easing="out" />
        <effect type="zoom" start="80" end="100" time="400" delay="300" center="auto" tween="back" easing="out" />
			</animation>
			<animation type="Conditional" condition="Control.HasFocus(150)" reversible="false">
        <effect type="fade" start="100" end="0" time="300" delay="0" tween="sine" easing="out" />
        <effect type="zoom" start="100" end="80" time="400" delay="0" center="auto" tween="back" easing="out" />
			</animation>
			<visible>!Window.IsVisible(addonsettings)</visible>
			<include>DialogAnimation</include>
      <control type="image">
        <description>Background Image</description>
				<include>FullscreenDimensions</include>
				<texture>osd/xbmcsubs/bg_subs_main.png</texture>
				<colordiffuse>FAFFFFFF</colordiffuse>
      </control>
     <control type="group">
      <posx>260</posx>
      <posy>130</posy>
      <!-- ** Required ** Do not change <id> or <type> -->
      <control type="image" id="110">
				<description>Service Logo</description>
				<visible>false</visible>
			</control>
      <control type="label">
        <description>XBMC Subtitles Header</description>
        <posx>0</posx>
        <posy>25</posy>
        <width>770</width>
        <height>40</height>
        <label>XBMC $LOCALIZE[24012]</label>
				<font>FontSize_34</font>
				<textcolor>white</textcolor>
				<align>center</align>
        <scrollspeed>20</scrollspeed>
      </control>
      <control type="label">
        <description>Subtitle Service Name</description>
        <posx>0</posx>
        <posy>55</posy>
        <width>770</width>
        <height>40</height>
        <label>($INFO[Container(150).ListItem.Label])</label>
				<font>FontSize_20</font>
				<textcolor>99white</textcolor>
				<align>center</align>
        <scrollspeed>20</scrollspeed>
      </control>
      <!-- ** Required ** Do not change <id> or <type> -->
      <control type="list" id="120">
        <posx>0</posx>
        <posy>100</posy>
        <width>760</width>
        <height>306</height>
        <onleft>150</onleft>
        <onright>150</onright>
        <onup>120</onup>
        <ondown>120</ondown>
        <viewtype label="535">list</viewtype>
        <pagecontrol>121</pagecontrol>
			  <scrolltime tween="cubic" easing="out">350</scrolltime>
        <itemlayout height="51">
          <control type="group">
            <visible>!ListItem.property(sync)</visible>
          <control type="image">
            <posx>10</posx>
            <posy>14</posy>
            <width>30</width>
            <height>20</height>
						<texture>osd/xbmcsubs/$INFO[ListItem.Thumb]/flag.png</texture>
          </control>
          <control type="label">
            <posx>45</posx>
            <posy>0</posy>
            <width>625</width>
            <height>47</height>
            <font>FontSize_18</font>
					  <textcolor>77white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
            <aligny>center</aligny>
            <align>left</align>
            <scroll>false</scroll>
            <label>$INFO[ListItem.Label2]</label>
          </control>
          </control>
          <control type="group">
            <visible>ListItem.property(sync)</visible>
          <control type="image">
            <posx>10</posx>
            <posy>14</posy>
            <width>30</width>
            <height>20</height>
						<texture>osd/xbmcsubs/$INFO[ListItem.Thumb]/flag.png</texture>
          </control>
          <control type="image">
            <posx>43</posx>
            <posy>11</posy>
            <width>55</width>
            <height>27</height>
            <texture>osd/xbmcsubs/icon_sync.png</texture>
          </control>
          <control type="label">
            <posx>100</posx>
            <posy>0</posy>
            <width>568</width>
            <height>47</height>
            <font>FontSize_18</font>
					  <textcolor>77white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
            <aligny>center</aligny>
            <align>left</align>
            <scroll>false</scroll>
            <label>$INFO[ListItem.Label2]</label>
          </control>
          </control>
          <control type="image">
            <posx>662</posx>
            <posy>14</posy>
            <width>100</width>
            <height>18</height>
					  <aspectratio>keep</aspectratio>
            <texture>osd/xbmcsubs/info_window_icon_rating_star_$INFO[listitem.actualicon].png</texture>
          </control>
        </itemlayout>
        <focusedlayout height="51">
          <control type="image">
            <width>768</width>
            <height>47</height>
            <texture>buttons/settings_fo.png</texture>
				    <animation effect="slide" start="0,35" end="0,0" time="400" reversible="false" tween="back" easing="out" condition="Container(120).OnPrevious">focus</animation>
				    <animation effect="slide" start="0,-35" end="0,0" time="400" reversible="false" tween="back" easing="out" condition="Container(120).OnNext">focus</animation>
          </control>
          <control type="group">
            <visible>!ListItem.property(sync)</visible>
          <control type="image">
            <posx>10</posx>
            <posy>14</posy>
            <width>30</width>
            <height>20</height>
						<texture>osd/xbmcsubs/$INFO[ListItem.Thumb]/flag.png</texture>
          </control>
          <control type="label">
            <posx>45</posx>
            <posy>0</posy>
            <width>625</width>
            <height>47</height>
            <font>FontSize_18</font>
					  <textcolor>white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
            <align>left</align>
            <aligny>center</aligny>
            <label>$INFO[ListItem.Label2]</label>
          </control>
          </control>
          <control type="group">
            <visible>ListItem.property(sync)</visible>
          <control type="image">
            <posx>10</posx>
            <posy>14</posy>
            <width>30</width>
            <height>20</height>
						<texture>osd/xbmcsubs/$INFO[ListItem.Thumb]/flag.png</texture>
          </control>
          <control type="image">
            <posx>43</posx>
            <posy>11</posy>
            <width>55</width>
            <height>27</height>
            <texture>osd/xbmcsubs/icon_sync.png</texture>
          </control>
          <control type="label">
            <posx>100</posx>
            <posy>0</posy>
            <width>568</width>
            <height>47</height>
            <font>FontSize_18</font>
					  <textcolor>white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
            <align>left</align>
            <aligny>center</aligny>
            <label>$INFO[ListItem.Label2]</label>
          </control>
          </control>
          <control type="image">
            <posx>662</posx>
            <posy>14</posy>
            <width>100</width>
            <height>18</height>
					  <aspectratio>keep</aspectratio>
            <texture>osd/xbmcsubs/info_window_icon_rating_star_$INFO[listitem.actualicon].png</texture>
          </control>
        </focusedlayout>
      </control>
     
      <control type="group">
	        <posx>2</posx>
	        <posy>315</posy>
	      <control type="label" id="100">
	        <posx>0</posx>
	        <posy>95</posy>
					<width>700</width>
					<font>FontSize_18</font>
					<textcolor>77white</textcolor>
					<align>left</align>
					<animation type="Conditional" reversible="false" condition="Control.IsVisible(111)" loop="true">
						<effect type="fade" start="0" end="100" time="300" delay="0" />
						<effect type="fade" start="100" end="0" time="300" delay="5000" />
						<effect type="fade" start="100" end="0" time="300" delay="10000" />
					</animation>
	      </control>
	      <control type="label" id="111">
	        <posx>0</posx>
	        <posy>95</posy>
					<width>700</width>
					<font>FontSize_18</font>
					<textcolor>77white</textcolor>
					<align>left</align>
          <label>$LOCALIZE[SCRIPT655]</label>
					<animation type="Conditional" reversible="false" condition="true" loop="true">
						<effect type="fade" start="0" end="100" time="300" delay="5300" />
						<effect type="fade" start="100" end="0" time="300" delay="10000" />
					</animation>          
	      </control>
				<control type="label">
					<description>Pages</description>
					<posx>760</posx>
					<posy>95</posy>
					<width>200</width>
					<label>$LOCALIZE[31024] $INFO[Container(120).CurrentPage]$INFO[Container(120).NumPages, / ]</label>
					<align>right</align>
					<font>FontSize_18</font>
					<textcolor>77white</textcolor>
					<visible>IntegerGreaterThan(Container(120).NumPages,1)</visible>
				</control>
      </control>
  
			<control type="label" id="300">
				<description>textarea</description>
				<visible>false</visible>
			</control>
			<control type="label" id="301">
				<description>textarea</description>
				<visible>false</visible>
			</control>
					  
     </control>
    </control>
    
    
    <!-- Options -->	
		<control type="group">
			<animation type="Conditional" condition="Control.HasFocus(150) + !Window.IsVisible(addonsettings)" reversible="false">
        <effect type="fade" start="0" end="100" time="300" delay="300" tween="sine" easing="out" />
        <effect type="zoom" start="80" end="100" time="400" delay="300" center="auto" tween="back" easing="out" />
			</animation>
			<animation type="Conditional" condition="!Control.HasFocus(150) + !Window.IsVisible(addonsettings)" reversible="false">
        <effect type="fade" start="100" end="0" time="300" delay="0" tween="sine" easing="out" />
        <effect type="zoom" start="100" end="80" time="400" delay="0" center="auto" tween="back" easing="out" />
			</animation>
			<visible>!Window.IsVisible(addonsettings)</visible>
			<include>DialogAnimation</include>
			<control type="image">
        <description>Background Image</description>
				<include>FullscreenDimensions</include>
				<texture>osd/xbmcsubs/bg_subs_settings.png</texture>
				<colordiffuse>FAFFFFFF</colordiffuse>
			</control>
			
     <control type="group">
      <posx>480</posx>
      <posy>130</posy>
      <control type="label">
        <description>XBMC Subtitles Header</description>
        <posx>0</posx>
        <posy>50</posy>
        <width>335</width>
        <height>47</height>
				<label>$LOCALIZE[SCRIPT760]</label>
				<font>FontSize_26</font>
				<textcolor>white</textcolor>
			  <shadowcolor>99000000</shadowcolor>
				<align>center</align>
        <scrollspeed>20</scrollspeed>
      </control>
			<control type="list" id="150">
        <posx>15</posx>
        <posy>100</posy>
				<width>290</width>
				<height>306</height>
				<onleft>120</onleft>
				<onright>120</onright>
				<onup>150</onup>
				<ondown>150</ondown>
				<viewtype label="535">list</viewtype>
			  <scrolltime tween="cubic" easing="out">350</scrolltime>
				<itemlayout height="51">
					<control type="label">
						<posx>15</posx>
						<posy>0</posy>
						<width>298</width>
						<height>47</height>
						<font>FontSize_20</font>
						<align>left</align>
						<aligny>center</aligny>
						<textcolor>77white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
						<label>․  $INFO[ListItem.Label]</label>
						<visible>!ListItem.property(man)</visible>
					</control>
					<control type="label">
						<posx>15</posx>
						<posy>0</posy>
						<width>298</width>
						<height>47</height>
						<font>FontSize_20</font>
						<align>left</align>
						<aligny>center</aligny>
						<textcolor>77white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
						<label>․  $INFO[ListItem.Label]</label>
						<visible>ListItem.property(man)</visible>
					</control>
				</itemlayout>
				<focusedlayout height="51">
					<control type="image">
						<posx>0</posx>
						<posy>0</posy>
						<width>290</width>
						<height>47</height>
						<align>left</align>
						<aligny>center</aligny>
            <texture>buttons/settings_fo.png</texture>
					  <visible>Control.HasFocus(150)</visible>
					</control>
					<control type="label">
						<posx>15</posx>
						<posy>0</posy>
						<width>298</width>
						<height>47</height>
						<font>FontSize_20</font>
						<align>left</align>
						<aligny>center</aligny>
						<textcolor>white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
						<label>․  $INFO[ListItem.Label]</label>
						<visible>!ListItem.property(man)</visible>
					</control>
					<control type="label">
						<posx>15</posx>
						<posy>0</posy>
						<width>298</width>
						<height>47</height>
						<font>FontSize_20</font>
						<align>left</align>
						<aligny>center</aligny>
						<textcolor>white</textcolor>
			      <shadowcolor>99000000</shadowcolor>
						<label>․  $INFO[ListItem.Label]</label>
						<visible>ListItem.property(man)</visible>
					</control>
				</focusedlayout>
			</control>
		 </control>
		</control>
  </controls>
</window>
