<window id="2901">
  <onload condition="!VideoPlayer.Content(LiveTV)">SetFocus(103)</onload>
  <onload condition="VideoPlayer.Content(LiveTV)">SetFocus(109)</onload>
  <onunload>ClearProperty(ShowPlot,VideoOSD)</onunload>
	<coordinates>
		<system>1</system>
		<posx>0</posx>
		<posy>0</posy>
	</coordinates>
	<controls>

	  <control type="group">
	    <visible>Player.HasVideo</visible>
			<visible>!Window.IsActive(SliderDialog) + !Window.IsActive(OSDVideoSettings) + !Window.IsActive(OSDAudioSettings) + !Window.IsActive(VideoBookmarks) + !Window.IsActive(SelectDialog) + !Window.IsActive(script-XBMC-Subtitles-main.xml) + !Window.IsActive(ShutdownMenu) + !Window.IsActive(NumericInput) + !Window.IsActive(PVROSDChannels) + !Window.IsActive(PVROSDGuide)</visible>
	    <animation type="WindowOpen" reversible="false">
        <effect type="slide" start="150,0" end="0,0" time="450" delay="0" tween="sine" easing="out" />
        <effect type="fade" start="0" end="100" time="450" delay="0" tween="sine" easing="out" />
	    </animation>
	    <animation type="WindowClose" reversible="false">
        <effect type="slide" start="0,0" end="200,0" time="450" delay="0" tween="sine" easing="out" />
        <effect type="fade" start="100" end="0" time="450" delay="0" tween="sine" easing="out" />
	    </animation>
	    <animation type="Visible" reversible="false">
        <effect type="slide" start="150,0" end="0,0" time="450" delay="0" tween="sine" easing="out" />
        <effect type="fade" start="0" end="100" time="450" delay="0" tween="sine" easing="out" />
	    </animation>
	    <animation type="Hidden" reversible="false">
        <effect type="slide" start="0,0" end="200,0" time="450" delay="0" tween="sine" easing="out" />
        <effect type="fade" start="100" end="0" time="450" delay="0" tween="sine" easing="out" />
	    </animation>
			<control type="grouplist" id="100">
				<posx>394r</posx>
				<posy>185r</posy>
				<width>360</width>
				<height>55</height>
				<itemgap>-10</itemgap>
				<onleft>100</onleft>
				<onright>100</onright>
        <onup>ClearProperty(ShowPlot,VideoOSD)</onup>
				<onup>1000</onup>
        <ondown>SetProperty(ShowPlot,1,VideoOSD)</ondown>
				<ondown>200</ondown>
				<align>right</align>
		    <orientation>horizontal</orientation>
				<control type="button" id="108">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/channelUP_fo.png</texturefocus>
					<texturenofocus>osd/channelUP_nf.png</texturenofocus>
					<onclick>PlayerControl(Previous)</onclick>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="button" id="109">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/channelDOWN_fo.png</texturefocus>
					<texturenofocus>osd/channelDOWN_nf.png</texturenofocus>
					<onclick>PlayerControl(Next)</onclick>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>		    
				<control type="button" id="101">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/previous_fo.png</texturefocus>
					<texturenofocus>osd/previous_nf.png</texturenofocus>
					<onclick>PlayerControl(Previous)</onclick>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="button" id="102">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/rw_fo.png</texturefocus>
					<texturenofocus>osd/rw_nf.png</texturenofocus>
					<onclick>PlayerControl(Rewind)</onclick>
				  <enable>Player.SeekEnabled</enable>
				  <animation effect="fade" start="100" end="50" time="100" condition="!Player.SeekEnabled">Conditional</animation>
				</control>
				<control type="togglebutton" id="103">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<altlabel>-</altlabel>
					<font>-</font>
					<texturefocus>osd/pause_fo.png</texturefocus>
					<texturenofocus>osd/pause_nf.png</texturenofocus>
					<usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
					<alttexturefocus>osd/play_fo.png</alttexturefocus>
					<alttexturenofocus>osd/play_nf.png</alttexturenofocus>
					<onclick>PlayerControl(Play)</onclick>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="togglebutton" id="111">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<altlabel>-</altlabel>
					<font>-</font>
					<texturefocus>osd/pause_fo.png</texturefocus>
					<texturenofocus>osd/pause_nf.png</texturenofocus>
					<usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
					<alttexturefocus>osd/play_fo.png</alttexturefocus>
					<alttexturenofocus>osd/play_nf.png</alttexturenofocus>
				  <enable>Player.PauseEnabled</enable>
					<onclick>PlayerControl(Play)</onclick>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				  <animation effect="fade" start="100" end="50" time="100" condition="!Player.PauseEnabled">Conditional</animation>
				</control>
				<control type="button" id="104">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/stop_fo.png</texturefocus>
					<texturenofocus>osd/stop_nf.png</texturenofocus>
					<onclick>PlayerControl(Stop)</onclick>
				</control>
				<control type="button" id="105">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/ff_fo.png</texturefocus>
					<texturenofocus>osd/ff_nf.png</texturenofocus>
					<onclick>PlayerControl(Forward)</onclick>
				  <enable>Player.SeekEnabled</enable>
				  <animation effect="fade" start="100" end="50" time="100" condition="!Player.SeekEnabled">Conditional</animation>
				</control>
				<control type="button" id="106">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/next_fo.png</texturefocus>
					<texturenofocus>osd/next_nf.png</texturenofocus>
					<onclick>PlayerControl(Next)</onclick>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="button" id="107">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/dvd_fo.png</texturefocus>
					<texturenofocus>osd/dvd_nf.png</texturenofocus>
					<onclick>PlayerControl(ShowVideoMenu)</onclick>
					<visible>VideoPlayer.HasMenu</visible>
				</control>
				<control type="button" id="110">
					<width>55</width>
					<height>55</height>
					<label>-</label>
					<font>-</font>
					<texturefocus>osd/rec_fo.png</texturefocus>
					<texturenofocus>osd/rec_nf.png</texturenofocus>
					<onclick>PlayerControl(Record)</onclick>
					<enable>Player.CanRecord</enable>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>						
			</control>
	  </control>

	  <!-- ============================= -->
	  <!-- ==== OSD Options Buttons ==== -->
	  <!-- ============================= -->
	  <control type="group">
			<posx>45</posx>
			<posy>25</posy>
			<include>OSDSlideAnimations</include>
	    <visible>Window.IsActive(VideoOSD)</visible>
	    <visible>Player.HasVideo + !Window.IsActive(ShutdownMenu) + !Window.IsActive(NumericInput) + !Window.IsActive(SliderDialog) + !Window.IsActive(videobookmarks) + !Window.IsActive(PVROSDChannels) + !Window.IsActive(PVROSDGuide)</visible>
			<control type="grouplist">
				<posx>0</posx>
				<posy>0</posy>
				<height>70</height>
				<width>1190</width>
				<itemgap>20</itemgap>
				<align>left</align>
				<orientation>horizontal</orientation>
			  <include>OSDSlideAnimations</include>
				<control type="label">
				  <include>TopBigLabel</include>
				  <label>$LOCALIZE[33063]:</label>
				</control>
				<control type="label">
					<description>Video Settings</description>
				  <include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(1001)]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1001)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1001)" reversible="true">Conditional</animation>
				</control>
				<control type="label">
					<description>Audio Settings</description>
				  <include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(1002)]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1002)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1002)" reversible="true">Conditional</animation>
				</control>
				<control type="label">
					<description>Bookmarks</description>
				  <include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(1003)]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1003)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1003)" reversible="true">Conditional</animation>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="label">
					<description>Subtitles</description>
				  <include>TopSmallLabel</include>
					<label>$LOCALIZE[287]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1004)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1004)" reversible="true">Conditional</animation>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="label">
					<description>PVR Channels</description>
				  <include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(1005)]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1005)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1005)" reversible="true">Conditional</animation>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="label">
					<description>PVR Guide</description>
				  <include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(1006)]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1006)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1006)" reversible="true">Conditional</animation>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="label">
					<description>Teletext</description>
				  <include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(1007)]</label>
					<animation effect="fade" start="100" end="70" time="200" tween="cubic" easing="in" condition="!Control.HasFocus(1007)" reversible="true">Conditional</animation>
          <animation effect="zoom"  start="100" end="90" time="200" tween="cubic" easing="in" center="auto" condition="!Control.HasFocus(1007)" reversible="true">Conditional</animation>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
			</control>
			<control type="grouplist" id="1000">
				<posx>0</posx>
				<posy>0</posy>
				<height>0</height>
				<width>0</width>
				<itemgap>0</itemgap>
				<onleft>1000</onleft>
				<onright>1000</onright>
				<onup>100</onup>
				<ondown>100</ondown>
				<align>left</align>
        <orientation>horizontal</orientation>
				<control type="button" id="1001">
					<description>Video Settings</description>
				  <include>TopButton</include>
					<label>157</label>
          <onclick>ActivateWindow(OSDVideoSettings)</onclick>				
				</control>
				<control type="button" id="1002">
					<description>Audio Settings</description>
			    <include>TopButton</include>
					<label>292</label>
          <onclick>ActivateWindow(OSDAudioSettings)</onclick>
				</control>
				<control type="togglebutton" id="1003">
					<description>Bookmarks</description>
			    <include>TopButton</include>
					<label>298</label>
          <onclick>ActivateWindow(VideoBookmarks)</onclick>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="togglebutton" id="1004">
					<description>Subtitles</description>
			    <include>TopButton</include>
          <onclick>Close</onclick>
					<onclick>XBMC.RunScript($INFO[Skin.String(SubtitleScript_Path)])</onclick>
					<altclick>Skin.SetAddon(SubtitleScript_Path,xbmc.python.subtitles)</altclick>
					<altclick>Close</altclick>
					<altclick>XBMC.RunScript($INFO[Skin.String(SubtitleScript_Path)])</altclick>
					<usealttexture>IsEmpty(Skin.String(SubtitleScript_Path))</usealttexture>
					<visible>!VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="button" id="1005">
					<description>PVR Channels</description>
			    <include>TopButton</include>
					<label>19019</label>
					<onclick>ActivateWindow(PVROSDChannels)</onclick>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="button" id="1006">
					<description>PVR Guide</description>
			    <include>TopButton</include>
				  <label>19069</label>
					<onclick>ActivateWindow(PVROSDGuide)</onclick>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
				<control type="button" id="1007">
					<description>Teletext</description>
			    <include>TopButton</include>
				  <label>31034</label>
				  <onclick>ActivateWindow(Teletext)</onclick>
					<visible>VideoPlayer.Content(LiveTV)</visible>
				</control>
			</control>
	  </control>

		<control type="group">
			<posx>245</posx>
	    <posy>445</posy>
			<include>OSDPlotAnimation</include>
	    <visible>Window.IsActive(VideoOSD)</visible>
	    <visible>![Window.IsActive(ShutdownMenu) | IsEmpty(VideoPlayer.Plot)] + Control.HasFocus(200)</visible>
			<animation effect="slide" start="0,0" end="110,0" condition="![VideoPlayer.Content(Movies) | VideoPlayer.Content(Episodes)]">Conditional</animation>
			<control type="label">
				<description>Title label</description>
				<height>30</height>
				<width>820</width>
			  <label>$INFO[VideoPlayer.Title,,]$INFO[VideoPlayer.Year, (,) ]</label>
				<align>left</align>
				<aligny>center</aligny>
				<font>FontSize_36</font>
				<textcolor>white</textcolor>
				<shadowcolor>55000000</shadowcolor>
				<visible>!VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="grouplist">
	      <posy>-15</posy>
				<height>70</height>
				<width>970</width>
				<itemgap>10</itemgap>
				<align>left</align>
				<orientation>horizontal</orientation>
				<visible>VideoPlayer.Content(LiveTV)</visible>
				<control type="label" id="1">
				  <include>TopBigLabel</include>
				  <label>$INFO[VideoPlayer.ChannelNumber,,. ]$INFO[VideoPlayer.ChannelName]</label>
				</control>
				<control type="label" id="1">
				  <include>TopSmallLabel</include>
					<label>$INFO[VideoPlayer.Title]</label>
			    <animation effect="fade" end="65" condition="true">Conditional</animation>
				</control>
			</control>
	    <control type="textbox">
	      <posy>30</posy>
	      <width>540</width>
	      <height>110</height>
				<font>FontSize_20</font>
				<textcolor>99white</textcolor>
				<shadowcolor>55000000</shadowcolor>
				<align>justify</align>
				<autoscroll delay="8000" time="2000" repeat="8000">Skin.HasSetting(AutoScroll)</autoscroll>
				<label fallback="195">$INFO[VideoPlayer.Plot]</label>
	    </control>
	  </control>
    <control type="button" id="200">
			<include>TopButton</include>
			<onleft>noop</onleft>
      <onright>noop</onright>
      <onup>ClearProperty(ShowPlot,VideoOSD)</onup>
      <onup>100</onup>
      <ondown>noop</ondown>
      <visible>!IsEmpty(VideoPlayer.Plot)</visible>
    </control>

	</controls>
 </window>