<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">100</defaultcontrol>
	<onload condition="!VideoPlayer.Content(LiveTV)">SetFocus(202)</onload>
	<include>dialogeffect</include>
	<coordinates>
		<system>1</system>
		<left>0</left>
		<top>0</top>
	</coordinates>
	<controls>
		<control type="button" id="1000">
			<description>Close Window button</description>
			<left>84r</left>
			<top>0</top>
			<width>64</width>
			<height>32</height>
			<label>-</label>
			<font>-</font>
			<onclick>Dialog.Close(VideoOSD,true)</onclick>
			<onclick>FullScreen</onclick>
			<texturefocus>DialogCloseButton-focus.png</texturefocus>
			<texturenofocus>DialogCloseButton.png</texturenofocus>
			<onleft>1000</onleft>
			<onright>1000</onright>
			<onup>100</onup>
			<ondown>100</ondown>
			<animation effect="slide" start="0,0" end="-30,0" time="0" condition="Window.IsVisible(Mutebug)">conditional</animation>
			<animation effect="fade" time="150">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks)]</visible>
		</control>
		<control type="slider" id="87">
			<description>Seek Slider</description>
			<left>430</left>
			<top>82r</top>
			<width>720</width>
			<height>16</height>
			<onup>702</onup>
			<ondown>26</ondown>
			<action>seek</action>
			<texturesliderbar>seekslider2.png</texturesliderbar>
			<textureslidernib>osd_slider_nibNF.png</textureslidernib>
			<textureslidernibfocus>osd_slider_nib.png</textureslidernibfocus>
			<animation effect="fade" time="150">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | VideoPlayer.Content(LiveTV)]</visible>
		</control>
		<control type="grouplist" id="100">
			<left>325</left>
			<top>60r</top>
			<orientation>horizontal</orientation>
			<itemgap>0</itemgap>
			<animation effect="fade" time="150">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | Window.IsVisible(PVROSDChannels) | Window.IsVisible(PVROSDGuide)]</visible>
			<onup>1000</onup>
			<control type="button" id="300">
				<width>55</width>
				<height>55</height>
				<label>210</label>
				<font>-</font>
				<texturefocus>OSDChannelUPFO.png</texturefocus>
				<texturenofocus>OSDChannelUPNF.png</texturenofocus>
				<onclick>PlayerControl(Previous)</onclick>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="301">
				<width>55</width>
				<height>55</height>
				<label>209</label>
				<font>-</font>
				<texturefocus>OSDChannelDownFO.png</texturefocus>
				<texturenofocus>OSDChannelDownNF.png</texturenofocus>
				<onclick>PlayerControl(Next)</onclick>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="200">
				<width>55</width>
				<height>55</height>
				<label>210</label>
				<font>-</font>
				<texturefocus>OSDPrevTrackFO.png</texturefocus>
				<texturenofocus>OSDPrevTrackNF.png</texturenofocus>
				<onclick>PlayerControl(Previous)</onclick>
				<visible>!VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="201">
				<width>55</width>
				<height>55</height>
				<label>31354</label>
				<font>-</font>
				<texturefocus>OSDRewindFO.png</texturefocus>
				<texturenofocus>OSDRewindNF.png</texturenofocus>
				<enable>Player.SeekEnabled</enable>
				<animation effect="fade" start="100" end="50" time="75" condition="!Player.SeekEnabled">Conditional</animation>
				<onclick>PlayerControl(Rewind)</onclick>
			</control>
			<control type="togglebutton" id="202">
				<width>55</width>
				<height>55</height>
				<label>31351</label>
				<altlabel>208</altlabel>
				<font>-</font>
				<texturefocus>OSDPauseFO.png</texturefocus>
				<texturenofocus>OSDPauseNF.png</texturenofocus>
				<usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
				<alttexturefocus>OSDPlayFO.png</alttexturefocus>
				<alttexturenofocus>OSDPlayNF.png</alttexturenofocus>
				<onclick>PlayerControl(Play)</onclick>
				<enable>Player.PauseEnabled</enable>
				<animation effect="fade" start="100" end="50" time="75" condition="!Player.PauseEnabled">Conditional</animation>
			</control>
			<control type="button" id="203">
				<width>55</width>
				<height>55</height>
				<label>31352</label>
				<font>-</font>
				<texturefocus>OSDStopFO.png</texturefocus>
				<texturenofocus>OSDStopNF.png</texturenofocus>
				<onclick>PlayerControl(Stop)</onclick>
			</control>
			<control type="button" id="204">
				<width>55</width>
				<height>55</height>
				<label>31353</label>
				<font>-</font>
				<texturefocus>OSDForwardFO.png</texturefocus>
				<texturenofocus>OSDForwardNF.png</texturenofocus>
				<enable>Player.SeekEnabled</enable>
				<animation effect="fade" start="100" end="50" time="75" condition="!Player.SeekEnabled">Conditional</animation>
				<onclick>PlayerControl(Forward)</onclick>
			</control>
			<control type="button" id="205">
				<width>55</width>
				<height>55</height>
				<label>209</label>
				<font>-</font>
				<texturefocus>OSDNextTrackFO.png</texturefocus>
				<texturenofocus>OSDNextTrackNF.png</texturenofocus>
				<onclick>PlayerControl(Next)</onclick>
				<visible>!VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="306">
				<width>55</width>
				<height>55</height>
				<label>19019</label>
				<font>-</font>
				<texturefocus>OSDChannelListFO.png</texturefocus>
				<texturenofocus>OSDChannelListNF.png</texturenofocus>
				<onclick>ActivateWindow(PVROSDChannels)</onclick>
				<onclick>Dialog.Close(VideoOSD)</onclick>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="307">
				<width>55</width>
				<height>55</height>
				<label>$LOCALIZE[19029]$INFO[VideoPlayer.ChannelName, - ]</label>
				<font>-</font>
				<texturefocus>OSDepgFO.png</texturefocus>
				<texturenofocus>OSDepgNF.png</texturenofocus>
				<onclick>ActivateWindow(PVROSDGuide)</onclick>
				<onclick>Dialog.Close(VideoOSD)</onclick>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="350">
				<width>55</width>
				<height>55</height>
				<label>31356</label>
				<font>-</font>
				<texturefocus>OSDTeleTextFO.png</texturefocus>
				<texturenofocus>OSDTeleTextNF.png</texturenofocus>
				<onclick>ActivateWindow(Teletext)</onclick>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="image" id="2200">
				<width>270</width>
				<texture>-</texture>
				<visible>!VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="image" id="2300">
				<width>165</width>
				<texture>-</texture>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="255">
				<enable>VideoPlayer.IsStereoscopic</enable>
				<animation effect="fade" start="100" end="0" time="75" condition="!VideoPlayer.IsStereoscopic">Conditional</animation>
				<width>55</width>
				<height>55</height>
				<label>36501</label>
				<font>-</font>
				<texturefocus>OSDStereoscopicFO.png</texturefocus>
				<texturenofocus>OSDStereoscopicNF.png</texturenofocus>
				<onup>501</onup>
				<ondown>1000</ondown>
			</control>
			<control type="button" id="250">
				<width>55</width>
				<height>55</height>
				<label>31356</label>
				<font>-</font>
				<texturefocus>OSDSubtitlesFO.png</texturefocus>
				<texturenofocus>OSDSubtitlesNF.png</texturenofocus>
				<onup>404</onup>
				<ondown>1000</ondown>
			</control>
			<control type="button" id="251">
				<width>55</width>
				<height>55</height>
				<label>13395</label>
				<font>-</font>
				<texturefocus>OSDVideoFO.png</texturefocus>
				<texturenofocus>OSDVideoNF.png</texturenofocus>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(OSDVideoSettings)</onclick>
			</control>
			<control type="button" id="252">
				<width>55</width>
				<height>55</height>
				<label>13396</label>
				<font>-</font>
				<texturefocus>OSDAudioFO.png</texturefocus>
				<texturenofocus>OSDAudioNF.png</texturenofocus>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(OSDAudioSettings)</onclick>
			</control>
			<control type="button" id="253">
				<width>55</width>
				<height>55</height>
				<label>298</label>
				<font>-</font>
				<texturefocus>OSDBookmarksFO.png</texturefocus>
				<texturenofocus>OSDBookmarksNF.png</texturenofocus>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(VideoBookmarks)</onclick>
				<visible>!VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="button" id="254">
				<width>55</width>
				<height>55</height>
				<label>31355</label>
				<font>-</font>
				<texturefocus>OSDDvdFO.png</texturefocus>
				<texturenofocus>OSDDvdNF.png</texturenofocus>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(ShowVideoMenu)</onclick>
				<enable>VideoPlayer.HasMenu</enable>
				<animation effect="fade" start="100" end="50" time="75" condition="!VideoPlayer.HasMenu">Conditional</animation>
				<visible>!VideoPlayer.Content(LiveTV)</visible>
			</control>
			<control type="togglebutton" id="353">
				<width>55</width>
				<height>55</height>
				<label>264</label>
				<altlabel>265</altlabel>
				<font>-</font>
				<texturefocus>OSDRecordOffFO.png</texturefocus>
				<texturenofocus>OSDRecordOffNF.png</texturenofocus>
				<usealttexture>Player.Recording</usealttexture>
				<alttexturefocus>OSDRecordOnFO.png</alttexturefocus>
				<alttexturenofocus>OSDRecordOnNF.png</alttexturenofocus>
				<onclick>PlayerControl(Record)</onclick>
				<enable>Player.CanRecord</enable>
				<animation effect="fade" start="100" end="50" time="75" condition="!Player.CanRecord">Conditional</animation>
				<visible>VideoPlayer.Content(LiveTV)</visible>
			</control>
		</control>
		<control type="button" id="410">
			<description>Fake button for mouse control</description>
			<right>145</right>
			<bottom>60</bottom>
			<width>256</width>
			<height>250</height>
			<label>-</label>
			<font>-</font>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<animation effect="slide" start="0,0" end="55,0" time="0" condition="VideoPlayer.Content(LiveTV)">Conditional</animation>
			<visible>Control.HasFocus(410) | Control.HasFocus(250) | ControlGroup(400).HasFocus</visible>
		</control>
		<control type="grouplist" id="400">
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks)]</visible>
			<animation effect="fade" time="150">VisibleChange</animation>
			<animation effect="slide" start="0,0" end="0,80" time="0" condition="![VideoPlayer.HasSubtitles + VideoPlayer.SubtitlesEnabled]">Conditional</animation>
			<animation effect="slide" start="0,0" end="0,40" time="0" condition="!VideoPlayer.HasSubtitles">Conditional</animation>
			<animation effect="slide" start="0,0" end="55,0" time="0" condition="VideoPlayer.Content(LiveTV)">Conditional</animation>
			<right>145</right>
			<bottom>45</bottom>
			<width>256</width>
			<height>260</height>
			<itemgap>0</itemgap>
			<onleft>400</onleft>
			<onright>400</onright>
			<onup>250</onup>
			<ondown>250</ondown>
			<orientation>vertical</orientation>
			<visible>Control.HasFocus(410) | Control.HasFocus(250) | ControlGroup(400).HasFocus</visible>
			<include>VisibleFadeEffect</include>
			<control type="group">
				<description>Header</description>
				<width>256</width>
				<height>40</height>
				<control type="image">
					<description>Header</description>
					<left>0</left>
					<top>0</top>
					<width>256</width>
					<height>40</height>
					<texture border="20,18,20,0">SubMenuBack-Header.png</texture>
				</control>
				<control type="label">
					<left>30</left>
					<top>20</top>
					<width>196</width>
					<height>15</height>
					<font>font12</font>
					<label>24012</label>
					<textcolor>blue</textcolor>
					<align>center</align>
					<aligny>center</aligny>
				</control>
			</control>
			<control type="togglebutton" id="401">
				<description>Download with Subtitles script</description>
				<height>40</height>
				<width>256</width>
				<font>font13</font>
				<label>33003</label>
				<textoffsetx>30</textoffsetx>
				<aligny>center</aligny>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<alttexturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</alttexturefocus>
				<alttexturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</alttexturenofocus>
				<onclick>Close</onclick>
				<onclick>Dialog.Close(VideoOSD)</onclick>
				<onclick>ActivateWindow(SubtitleSearch)</onclick>
				<!-- no point in downloading subtitles for live programs -->
				<enable>!VideoPlayer.Content(LiveTV)</enable>
			</control>
			<control type="button" id="402">
				<height>40</height>
				<width>256</width>
				<aligny>center</aligny>
				<font>font13</font>
				<textoffsetx>30</textoffsetx>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<pulseonselect>false</pulseonselect>
				<label>22006</label>
				<onclick>SubtitleDelay</onclick>
				<visible>VideoPlayer.HasSubtitles + VideoPlayer.SubtitlesEnabled</visible>
			</control>
			<control type="button" id="403">
				<height>40</height>
				<width>256</width>
				<aligny>center</aligny>
				<font>font13</font>
				<textoffsetx>30</textoffsetx>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<pulseonselect>false</pulseonselect>
				<label>209</label>
				<onclick>CycleSubtitle</onclick>
				<visible>VideoPlayer.HasSubtitles + VideoPlayer.SubtitlesEnabled</visible>
			</control>
			<control type="radiobutton" id="404">
				<height>40</height>
				<width>256</width>
				<textoffsetx>30</textoffsetx>
				<aligny>center</aligny>
				<font>font13</font>
				<label>449</label>
				<radioposx>200</radioposx>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<onclick>ShowSubtitles</onclick>
				<selected>VideoPlayer.SubtitlesEnabled</selected>
				<visible>VideoPlayer.HasSubtitles</visible>
				<pulseonselect>false</pulseonselect>
			</control>
			<control type="image" id="440">
				<description>Footer</description>
				<width>256</width>
				<height>52</height>
				<texture border="20,0,20,50">SubMenuBack-Footer.png</texture>
			</control>
		</control>
		<control type="button" id="520">
			<description>Fake button for mouse control</description>
			<right>200</right>
			<bottom>60</bottom>
			<width>256</width>
			<height>210</height>
			<label>-</label>
			<font>-</font>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<animation effect="slide" start="0,0" end="55,0" time="0" condition="VideoPlayer.Content(LiveTV)">Conditional</animation>
			<visible>Control.HasFocus(520) | Control.HasFocus(255) | ControlGroup(500).HasFocus</visible>
		</control>
		<control type="grouplist" id="500">
			<visible>videoplayer.isstereoscopic + ![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | Window.IsVisible(PVROSDChannels) | Window.IsVisible(PVROSDGuide)] + [Control.HasFocus(255) | ControlGroup(500).HasFocus | Control.HasFocus(520)]</visible>
			<animation effect="fade" time="150">VisibleChange</animation>
			<animation effect="slide" start="0,0" end="55,0" time="0" condition="VideoPlayer.Content(LiveTV)">Conditional</animation>
			<right>200</right>
			<bottom>45</bottom>
			<width>256</width>
			<height>220</height>
			<itemgap>0</itemgap>
			<onleft>100</onleft>
			<onright>100</onright>
			<onup>255</onup>
			<ondown>255</ondown>
			<orientation>vertical</orientation>
			<include>VisibleFadeEffect</include>
			<control type="group">
				<description>Header</description>
				<width>256</width>
				<height>40</height>
				<control type="image">
					<description>Header</description>
					<left>0</left>
					<top>0</top>
					<width>256</width>
					<height>40</height>
					<texture border="20,18,20,0">SubMenuBack-Header.png</texture>
				</control>
				<control type="label">
					<left>0</left>
					<top>20</top>
					<width>256</width>
					<height>15</height>
					<font>font12</font>
					<label>36501</label>
					<textcolor>blue</textcolor>
					<align>center</align>
					<aligny>center</aligny>
				</control>
			</control>
			<control type="radiobutton" id="503">
				<height>40</height>
				<width>256</width>
				<textoffsetx>30</textoffsetx>
				<aligny>center</aligny>
				<font>font13</font>
				<label>31362</label>
				<radioposx>200</radioposx>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<onclick>ToggleStereoMode</onclick>
				<selected>IntegerGreaterThan(System.StereoscopicMode,0)</selected>
				<pulseonselect>false</pulseonselect>
			</control>
			<control type="button" id="502">
				<height>40</height>
				<width>256</width>
				<aligny>center</aligny>
				<font>font13</font>
				<textoffsetx>30</textoffsetx>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<pulseonselect>false</pulseonselect>
				<label>31361</label>
				<onclick>StereoMode</onclick>
			</control>
			<control type="radiobutton" id="501">
				<height>40</height>
				<width>256</width>
				<textoffsetx>30</textoffsetx>
				<aligny>center</aligny>
				<font>font13</font>
				<label>31360</label>
				<radioposx>200</radioposx>
				<texturefocus border="25,5,25,5">SubMenuBack-MiddleFO.png</texturefocus>
				<texturenofocus border="25,5,25,5">SubMenuBack-MiddleNF.png</texturenofocus>
				<onclick>StereoModeToMono</onclick>
				<selected>StringCompare(System.StereoscopicMode,8)</selected>
				<pulseonselect>false</pulseonselect>
			</control>
			<control type="image" id="549">
				<description>Footer</description>
				<width>256</width>
				<height>52</height>
				<texture border="20,0,20,50">SubMenuBack-Footer.png</texture>
			</control>
		</control>
	</controls>
</window>
