<?xml version="1.0" encoding="utf-8"?>
<window type="dialog">
	<allowoverlay>yes</allowoverlay>
	<!--<include>dialogeffect</include>-->
	<defaultcontrol always="false">4001</defaultcontrol>
	<!--<visible>Window.IsActive(videoosd)</visible>-->
	<visible allowhiddenfocus="true">Control.HasFocus(videoosd)</visible>
	<coordinates>
		<system>1</system>
		<posx>0</posx><!--960-->
		<posy>20</posy>
	</coordinates>
    <!--<animation effect="slide" start="560,0" end="0,0" time="250">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="560,0" time="250">WindowClose</animation>-->
    <controls>	
        <!-- fundo -->
		<control type="image">
            <posx>0</posx>
            <posy>70</posy>
            <width>270</width>
            <height>420</height>
            <texture>lateral-fundo.png</texture>
        </control>		
		
        <!-- botao trocar server -->
		<control type="button" id="4001">
            <posx>10</posx>
            <posy>380</posy>
            <width>240</width>
            <height>40</height>
            <texturefocus>lateral-programa-seleccionado.png</texturefocus>
			<onup>6000</onup>
			<onleft>4306</onleft>
			<ondown>40010</ondown>
            <align>center</align>
            <aligny>center</aligny>
            <font>font13</font>
            <textcolor>gold</textcolor>
            <label>Trocar servidor</label>
        </control>
		
		<!-- botao gravar -->
        <control type="button" id="40010">
            <posx>10</posx>
            <posy>420</posy>
            <width>240</width>
            <height>40</height>
            <texturefocus>lateral-programa-seleccionado.png</texturefocus>
			<onup>4001</onup>
            <align>center</align>
            <aligny>center</aligny>
            <font>font13</font>
            <textcolor>gold</textcolor>
            <label>Gravar Canal</label>
        </control>

		<!-- titulo -->
		<control type="label">
			<description>Lista de Canais</description>
			<posx>0</posx>
			<posy>90</posy>
			<width>200</width>
			<height>20</height>
			<label>[B]Lista de Canais[/B]</label>
			<font>font13</font>
			<align>center</align>
			<textcolor>FF009CFF</textcolor>
			<shadowcolor>AA000000</shadowcolor>
		</control>
		
		
		<!-- botao stop -->
		<control type="button" id="203">
			<posx>213</posx>
			<posy>79</posy>
			<width>45</width>
			<height>45</height>
			<label>STOP</label>
			<font>-</font>
			<ondown>6000</ondown>
			<texturefocus>lateral-stop-seleccionado.png</texturefocus>
			<texturenofocus>lateral-stop.png</texturenofocus>
			<!--<onclick>PlayerControl(Stop)</onclick>-->
		</control>

		<!-- separador superior -->
		<control type="image">
			<description>separator</description>
			<posx>0</posx>
			<posy>129</posy>
			<width>270</width>
			<height>1</height>
			<texture>lateral-separador.png</texture>
			<colordiffuse>DDFFFFFF</colordiffuse>
		</control>

		<!-- separador inferior -->
		<control type="image">
			<description>separator</description>
			<posx>0</posx>
			<posy>365</posy>
			<width>270</width>
			<height>1</height>
			<texture>lateral-separador.png</texture>
			<colordiffuse>DDFFFFFF</colordiffuse>
		</control>
		
		
		<!-- combolist -->
        <control type="fixedlist" id="6000">
            <posx>20</posx>
            <posy>150</posy>
            <width>520</width>
            <height>200</height>
            <viewtype label="list">list</viewtype>
            <orientation>vertical</orientation>
            <focusposition>0</focusposition>
            <onup>203</onup>
			<onleft>203</onleft>
			<onright>4001</onright>
			<ondown>4001</ondown>
            <itemlayout width="480" height="40">
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>240</width>
                    <height>38</height>
                </control>
                <control type="label">
                    <posx>0</posx><!--16-->
                    <posy>0</posy>
                    <width>230</width>
                    <height>38</height>
                    <aligny>center</aligny>
                    <font>font13</font>
                    <textcolor>ffffffff</textcolor>
                    <info>ListItem.Label</info>
                </control>
                <control type="image">
                    <posx>250</posx>
                    <posy>0</posy>
                    <width>40</width>
                    <height>40</height>
                    <info>ListItem.Icon</info>
                </control>
            </itemlayout>
            <focusedlayout width="480" height="40">
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>225</width>
                    <height>38</height>
                    <texture>lateral-programa-seleccionado.png</texture>
                    <visible>Control.HasFocus(6000)</visible>
                </control>
                <control type="image">
                    <posx>8</posx>
                    <posy>0</posy>
                    <width>12</width>
                    <height>40</height>
                </control>
                <control type="label">
                    <posx>0</posx><!--16-->
                    <posy>0</posy>
                    <width>210</width>
                    <height>38</height>
                    <aligny>center</aligny>
                    <font>font13</font>
                    <textcolor>ffffffff</textcolor>
                    <label>[B]$INFO[ListItem.Label][/B]</label>
                </control>
                <control type="image">
                    <posx>250</posx>
                    <posy>0</posy>
                    <width>40</width>
                    <height>40</height>
                    <info>ListItem.Icon</info>
                </control>
            </focusedlayout>
        </control>
	
		
		<control type="button" id="1000">
			<description>Close Window button</description>
			<posx>84r</posx>
			<posy>0</posy>
			<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="fade" time="200">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>
			<posx>430</posx>
			<posy>82r</posy>
			<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="200">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | VideoPlayer.Content(LiveTV)]</visible>
		</control>
		<!-- !LiveTV -->
		<control type="group" id="100">
			<posx>325</posx>
			<posy>60r</posy>
			<defaultcontrol always="true">202</defaultcontrol>
			<animation effect="fade" time="200">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks)]</visible>
			<visible>!VideoPlayer.Content(LiveTV)</visible>
			<control type="button" id="200">
				<posx>0</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>210</label>
				<font>-</font>
				<texturefocus>OSDPrevTrackFO.png</texturefocus>
				<texturenofocus>OSDPrevTrackNF.png</texturenofocus>
				<onleft>254</onleft>
				<onright>201</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Previous)</onclick>
			</control>
			<control type="button" id="201">
				<posx>55</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31354</label>
				<font>-</font>
				<texturefocus>OSDRewindFO.png</texturefocus>
				<texturenofocus>OSDRewindNF.png</texturenofocus>
				<onleft>200</onleft>
				<onright>202</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Rewind)</onclick>
			</control>
			<control type="togglebutton" id="202">
				<posx>110</posx>
				<posy>0</posy>
				<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>
				<onleft>201</onleft>
				<onright>203</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Play)</onclick>
			</control>
			<control type="button" id="203">
				<posx>165</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31352</label>
				<font>-</font>
				<texturefocus>OSDStopFO.png</texturefocus>
				<texturenofocus>OSDStopNF.png</texturenofocus>
				<onleft>202</onleft>
				<onright>204</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Stop)</onclick>
			</control>
			<control type="button" id="204">
				<posx>220</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31353</label>
				<font>-</font>
				<texturefocus>OSDForwardFO.png</texturefocus>
				<texturenofocus>OSDForwardNF.png</texturenofocus>
				<onleft>203</onleft>
				<onright>205</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Forward)</onclick>
			</control>
			<control type="button" id="205">
				<posx>275</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>209</label>
				<font>-</font>
				<texturefocus>OSDNextTrackFO.png</texturefocus>
				<texturenofocus>OSDNextTrackNF.png</texturenofocus>
				<onleft>204</onleft>
				<onright>250</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Next)</onclick>
			</control>
		</control>

		<!-- LiveTV -->
		<control type="group" id="100">
			<posx>325</posx>
			<posy>60r</posy>
			<defaultcontrol always="true">301</defaultcontrol>
			<animation effect="fade" time="200">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | Window.IsVisible(PVROSDChannels) | Window.IsVisible(PVROSDGuide)]</visible>
			<visible>VideoPlayer.Content(LiveTV)</visible>
			<control type="button" id="300">
				<posx>0</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>210</label>
				<font>-</font>
				<texturefocus>OSDChannelUPFO.png</texturefocus>
				<texturenofocus>OSDChannelUPNF.png</texturenofocus>
				<onleft>353</onleft>
				<onright>301</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Previous)</onclick>
			</control>
			<control type="button" id="301">
				<posx>55</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31354</label>
				<font>-</font>
				<texturefocus>OSDChannelDownFO.png</texturefocus>
				<texturenofocus>OSDChannelDownNF.png</texturenofocus>
				<onleft>300</onleft>
				<onright>302</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Next)</onclick>
			</control>
			<control type="button" id="302">
				<posx>110</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31354</label>
				<font>-</font>
				<texturefocus>OSDRewindFO.png</texturefocus>
				<texturenofocus>OSDRewindNF.png</texturenofocus>
				<onleft>301</onleft>
				<onright>303</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<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="303">
				<posx>165</posx>
				<posy>0</posy>
				<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>
				<onleft>302</onleft>
				<onright>304</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Play)</onclick>
				<enable>Player.PauseEnabled</enable>
				<animation effect="fade" start="100" end="50" time="100" condition="!Player.PauseEnabled">Conditional</animation>
			</control>
			<control type="button" id="304">
				<posx>220</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31351</label>
				<altlabel>208</altlabel>
				<font>-</font>
				<texturefocus>OSDStopFO.png</texturefocus>
				<texturenofocus>OSDStopNF.png</texturenofocus>
				<onleft>303</onleft>
				<onright>305</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Stop)</onclick>
			</control>
			<control type="button" id="305">
				<posx>275</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31353</label>
				<font>-</font>
				<texturefocus>OSDForwardFO.png</texturefocus>
				<texturenofocus>OSDForwardNF.png</texturenofocus>
				<onleft>304</onleft>
				<onright>306</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<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="306">
				<posx>330</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>19019</label>
				<font>-</font>
				<texturefocus>OSDChannelListFO.png</texturefocus>
				<texturenofocus>OSDChannelListNF.png</texturenofocus>
				<onleft>305</onleft>
				<onright>307</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(PVROSDChannels)</onclick>
				<onclick>Dialog.Close(VideoOSD)</onclick>
			</control>
			<control type="button" id="307">
				<posx>385</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>$LOCALIZE[19029]$INFO[VideoPlayer.ChannelName, - ]</label>
				<font>-</font>
				<texturefocus>OSDepgFO.png</texturefocus>
				<texturenofocus>OSDepgNF.png</texturenofocus>
				<onleft>306</onleft>
				<onright>350</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(PVROSDGuide)</onclick>
				<onclick>Dialog.Close(VideoOSD)</onclick>
			</control>
		</control>

		<!-- !LiveTV -->
		<control type="group">
			<posx>300r</posx>
			<posy>60r</posy>
			<animation effect="fade" time="200">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks)]</visible>
			<visible>!VideoPlayer.Content(LiveTV)</visible>
			<control type="togglebutton" id="250">
				<posx>0</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31356</label>
				<font>-</font>
				<texturefocus>OSDSubtitlesFO.png</texturefocus>
				<texturenofocus>OSDSubtitlesNF.png</texturenofocus>
				<alttexturefocus>OSDSubtitlesFO.png</alttexturefocus>
				<alttexturenofocus>OSDSubtitlesNF.png</alttexturenofocus>
				<onleft>205</onleft>
				<onright>251</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>Close</onclick>
				<onclick>XBMC.RunScript($INFO[Skin.String(SubtitleScript_Path)])</onclick>
				<altclick>Skin.SetAddon(SubtitleScript_Path,xbmc.python.subtitles)</altclick>
				<altclick condition="Window.IsVisible(VideoOSD)">Dialog.Close(VideoOSD)</altclick>
				<altclick condition="!IsEmpty(Skin.String(SubtitleScript_Path))">XBMC.RunScript($INFO[Skin.String(SubtitleScript_Path)])</altclick>
				<usealttexture>IsEmpty(Skin.String(SubtitleScript_Path))</usealttexture>
			</control>
			<control type="button" id="251">
				<posx>55</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>13395</label>
				<font>-</font>
				<texturefocus>OSDVideoFO.png</texturefocus>
				<texturenofocus>OSDVideoNF.png</texturenofocus>
				<onleft>250</onleft>
				<onright>252</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(OSDVideoSettings)</onclick>
			</control>
			<control type="button" id="252">
				<posx>110</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>13396</label>
				<font>-</font>
				<texturefocus>OSDAudioFO.png</texturefocus>
				<texturenofocus>OSDAudioNF.png</texturenofocus>
				<onleft>251</onleft>
				<onright>253</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(OSDAudioSettings)</onclick>
			</control>
			<control type="button" id="253">
				<posx>165</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31355</label>
				<font>-</font>
				<texturefocus>OSDBookmarksFO.png</texturefocus>
				<texturenofocus>OSDBookmarksNF.png</texturenofocus>
				<onleft>252</onleft>
				<onright>254</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(VideoBookmarks)</onclick>
			</control>
			<control type="button" id="254">
				<posx>220</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31355</label>
				<font>-</font>
				<texturefocus>OSDDvdFO.png</texturefocus>
				<texturenofocus>OSDDvdNF.png</texturenofocus>
				<onleft>253</onleft>
				<onright>200</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(ShowVideoMenu)</onclick>
				<enable>VideoPlayer.HasMenu</enable>
				<animation effect="fade" start="100" end="50" time="100" condition="!VideoPlayer.HasMenu">Conditional</animation>
			</control>
		</control>

		<!-- LiveTV -->
		<control type="group">
			<posx>240r</posx>
			<posy>60r</posy>
			<animation effect="fade" time="200">VisibleChange</animation>
			<visible>![Window.IsVisible(SliderDialog) | Window.IsVisible(OSDVideoSettings) | Window.IsVisible(OSDAudioSettings) | Window.IsVisible(VideoBookmarks) | Window.IsVisible(PVROSDChannels) | Window.IsVisible(PVROSDGuide)]</visible>
			<visible>VideoPlayer.Content(LiveTV)</visible>
			<control type="button" id="350">
				<posx>0</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31356</label>
				<font>-</font>
				<texturefocus>OSDTeleTextFO.png</texturefocus>
				<texturenofocus>OSDTeleTextNF.png</texturenofocus>
				<onleft>307</onleft>
				<onright>351</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(Teletext)</onclick>
			</control>
			<control type="button" id="351">
				<posx>55</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>13395</label>
				<font>-</font>
				<texturefocus>OSDVideoFO.png</texturefocus>
				<texturenofocus>OSDVideoNF.png</texturenofocus>
				<onleft>350</onleft>
				<onright>352</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(OSDVideoSettings)</onclick>
			</control>
			<control type="button" id="352">
				<posx>110</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>13396</label>
				<font>-</font>
				<texturefocus>OSDAudioFO.png</texturefocus>
				<texturenofocus>OSDAudioNF.png</texturenofocus>
				<onleft>351</onleft>
				<onright>353</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>ActivateWindow(OSDAudioSettings)</onclick>
			</control>
			<control type="togglebutton" id="353">
				<posx>165</posx>
				<posy>0</posy>
				<width>55</width>
				<height>55</height>
				<label>31351</label>
				<altlabel>208</altlabel>
				<font>-</font>
				<texturefocus>OSDRecordOffFO.png</texturefocus>
				<texturenofocus>OSDRecordOffNF.png</texturenofocus>
				<usealttexture>Player.Recording</usealttexture>
				<alttexturefocus>OSDRecordOnFO.png</alttexturefocus>
				<alttexturenofocus>OSDRecordOnNF.png</alttexturenofocus>
				<onleft>352</onleft>
				<onright>300</onright>
				<onup>1000</onup>
				<ondown>1000</ondown>
				<onclick>PlayerControl(Record)</onclick>
				<enable>Player.CanRecord</enable>
				<animation effect="fade" start="100" end="50" time="100" condition="!Player.CanRecord">Conditional</animation>
			</control>
		</control>

	
    </controls>
</window>
