<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">50</defaultcontrol>
	<onload>ClearProperty(MediaMenu,Home)</onload>
	<menucontrol>9000</menucontrol>
	<controls>
		<include condition="Skin.HasSetting(Sub_MainMenuBG)">SubBackgroundLists</include>
		<include>DefaultBackground</include>
		<include>Time</include>
		<control type="button" id="50">
			<include>HiddenButton</include>
			<onclick condition="!Skin.HasSetting(KioskMode.Enabled)">Control.SetFocus(9000)</onclick>
			<onclick condition="!Skin.HasSetting(KioskMode.Enabled)">SetProperty(MediaMenu,true,Home)</onclick>
			<onleft condition="!Skin.HasSetting(KioskMode.Enabled)">9000</onleft>
			<onleft condition="!Skin.HasSetting(KioskMode.Enabled)">SetProperty(MediaMenu,true,Home)</onleft>
			<onright condition="!Skin.HasSetting(KioskMode.Enabled)">9000</onright>
			<onright condition="!Skin.HasSetting(KioskMode.Enabled)">SetProperty(MediaMenu,true,Home)</onright>
			<onup condition="!Skin.HasSetting(KioskMode.Enabled)">9000</onup>
			<onup condition="!Skin.HasSetting(KioskMode.Enabled)">SetProperty(MediaMenu,true,Home)</onup>
			<ondown condition="!Skin.HasSetting(KioskMode.Enabled)">9000</ondown>
			<ondown condition="!Skin.HasSetting(KioskMode.Enabled)">SetProperty(MediaMenu,true,Home)</ondown>
		</control>
		<control type="group" description="BG container">
			<include content="WeatherItemBG">
				<param name="xoffset" value="60"/>
				<param name="imgwidth" value="424"/>
				<param name="bgimage" value="WeatherBig.png"/>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="540"/>
				<param name="delayms" value="150"/>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="880"/>
				<param name="delayms" value="150"/>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="1220"/>
				<param name="delayms" value="300"/>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="1560"/>
				<param name="delayms" value="450"/>
			</include>
		</control>
		<control type="group" description="Current">
			<include>WeatherAni1</include>
			<posx>75</posx>
			<posy>572</posy>
			<control type="label" description="Current conditions">
				<posx>5</posx>
				<width>380</width>
				<shadowcolor>ShadowDark</shadowcolor>
				<font>WeatherTitle</font>
				<height>60</height>
				<align>center</align>
				<label>$LOCALIZE[143] $INFO[Window.Property(Current.Temperature)]$INFO[System.TemperatureUnits]</label>
			</control>
			<control type="multiimage" id="305" description="Current weather icon">
				<posy>83</posy>
				<height>130</height>
				<width>150</width>
				<imagepath>$VAR[WeatherIconPath]$INFO[Window.Property(Current.FanartCode)]$VAR[WeatherIconExt]</imagepath>
				<timeperimage>70</timeperimage>
				<fadetime>1</fadetime>
				<randomize>false</randomize>
                <aspectratio aligny="top">keep</aspectratio>
			</control>
			<control type="label" id="304" description="Current weather outlook">
				<posy>208</posy>
				<height>70</height>
				<width>150</width>
				<align>center</align>
				<aligny>top</aligny>
				<shadowcolor>ShadowDark</shadowcolor>
				<wrapmultiline>true</wrapmultiline>
				<label>$INFO[Window.Property(Current.Condition)]</label>
			</control>
			<control type="grouplist">
				<posx>15</posx>
				<posy>93</posy>
				<width>375</width>
				<height>300</height>
				<control type="label" description="Feels like label">
					<height>50</height>
					<align>right</align>
					<shadowcolor>ShadowDark</shadowcolor>
					<label>$LOCALIZE[402]: $INFO[Window.Property(Current.FeelsLike)]$INFO[System.TemperatureUnits]</label>
				</control>
				<control type="label" description="Current dew label">
					<height>50</height>
					<align>right</align>
					<shadowcolor>ShadowDark</shadowcolor>
					<label>$LOCALIZE[405]: $INFO[Window.Property(Current.DewPoint)]$INFO[System.TemperatureUnits]</label>
				</control>
				<control type="label" description="Current humidity label">
					<height>50</height>
					<align>right</align>
					<shadowcolor>ShadowDark</shadowcolor>
					<label>$LOCALIZE[406]: $INFO[Window.Property(Current.Humidity)]</label>
				</control>
				<control type="label" description="Current uv label">
					<height>50</height>
					<align>right</align>
					<shadowcolor>ShadowDark</shadowcolor>
					<label>$LOCALIZE[403]: $INFO[Window.Property(Current.UVIndex)]</label>
					<visible>!String.IsEmpty(Window.Property(Current.UVIndex))</visible>
				</control>
				<control type="label" description="Current uv label spacer">
					<height>50</height>
					<align>right</align>
					<shadowcolor>ShadowDark</shadowcolor>
					<label></label>
					<visible>String.IsEmpty(Window.Property(Current.UVIndex))</visible>
				</control>
				<control type="label" description="Current wind label">
					<height>80</height>
					<align>center</align>
					<shadowcolor>ShadowDark</shadowcolor>
					<label>$LOCALIZE[404]:[CR]$INFO[Window.Property(Current.Wind)]</label>
				</control>
			</control>
		</control>
		<control type="group">
			<include content="WeatherItem">
				<param name="xoffset" value="0"/>
				<param name="dayid" value="1"/>
			</include>
			<include content="WeatherItem">
				<param name="xoffset" value="340"/>
				<param name="dayid" value="2"/>
			</include>
			<include content="WeatherItem">
				<param name="xoffset" value="680"/>
				<param name="dayid" value="3"/>
			</include>
			<include content="WeatherItem">
				<param name="xoffset" value="1020"/>
				<param name="dayid" value="4"/>
			</include>
		</control>

		<control type="group">
			<visible>Skin.HasSetting(Weather8DayForecast)</visible>
			<animation effect="fade" start="0" end="100" time="200">visible</animation>
			<animation effect="fade" start="100" end="0" time="200">hidden</animation>
			<include content="WeatherItemBG">
				<param name="xoffset" value="540"/>
				<param name="delayms" value="600"/>
				<param name="8day">true</param>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="880"/>
				<param name="delayms" value="750"/>
				<param name="8day">true</param>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="1220"/>
				<param name="delayms" value="900"/>
				<param name="8day">true</param>
			</include>
			<include content="WeatherItemBG">
				<param name="xoffset" value="1560"/>
				<param name="delayms" value="1050"/>
				<param name="8day">true</param>
			</include>

			<include content="WeatherItem">
				<param name="xoffset" value="0"/>
				<param name="dayid" value="5"/>
			</include>
			<include content="WeatherItem">
				<param name="xoffset" value="340"/>
				<param name="dayid" value="6"/>
			</include>
			<include content="WeatherItem">
				<param name="xoffset" value="680"/>
				<param name="dayid" value="7"/>
			</include>
			<include content="WeatherItem">
				<param name="xoffset" value="1020"/>
				<param name="dayid" value="8"/>
			</include>
		</control>

		<control type="group"  id="8999" description="Side menu 9000 group">
			<include>9000Commons</include>
			<control type="group">
			    <posx>-60</posx>
			    <posy>-13</posy>
			    <include condition="Skin.HasSetting(Enable.TouchSupport)" content="DialogCloseButtonCommons">
			        <param name="Action">SetFocus(50)</param>
				    <param name="ondown">9000</param>
			    </include>
		    </control>
			<control type="grouplist" id="9000">
				<posx>-499</posx>
				<posy>60</posy>
				<width>500</width>
				<height>1120</height>
				<onleft>50</onleft>
				<onright>50</onright>
				<onup condition="Skin.HasSetting(Enable.TouchSupport)">909090</onup>
		        <onup condition="!Skin.HasSetting(Enable.TouchSupport)">9000</onup>
				<ondown>9000</ondown>
				<onback>50</onback>
				<scrolltime>200</scrolltime>
				<orientation>vertical</orientation>
				<control type="label" id="9001" description="Provider">
					<textoffsetx>10</textoffsetx>
					<align>center</align>
					<textcolor>$VAR[HighlightColor]</textcolor>
					<include>9000ViewButtons</include>
					<label>$INFO[Window.Property(WeatherProvider)]</label>
				</control>
				<control type="label" id="9002" description="Refresh">
					<height>90</height>
					<textoffsetx>10</textoffsetx>
					<align>center</align>
					<textcolor>$VAR[HighlightColor]</textcolor>
					<include>9000ViewButtons</include>
					<label>$INFO[Control.GetLabel(11),$LOCALIZE[12014]:[CR]]</label>
					<wrapmultiline>true</wrapmultiline>
				</control>
				<control type="label" id="9003" description="Spacer">
					<font></font>
					<include>9000ViewButtons</include>
					<label></label>
				</control>
				<control type="button" id="2" description="Refresh">
					<include>9000SysButtons</include>
				</control>
				<control type="button" id="4" description="Settings">
					<include>9000SysButtons</include>
					<label>$LOCALIZE[5]</label>
					<onclick>ActivateWindow(servicesettings,weather)</onclick>
				</control>
				<control type="togglebutton" id="5" description="Location">
					<include>9000SysButtons</include>
					<label>$LOCALIZE[31018]</label>
					<altlabel>$LOCALIZE[31019]</altlabel>
					<onclick>Skin.ToggleSetting(Weather8DayForecast)</onclick>
					<usealttexture>Skin.HasSetting(Weather8DayForecast)</usealttexture>
				</control>
				<control type="button" id="3" description="Location">
					<include>9000SysButtons</include>
					<label>$INFO[Window(Weather).Property(Location)]</label>
					<onclick>Weather.LocationNext</onclick>
				</control>
				<control type="button" id="6" description="Icons">
					<visible>System.HasAddon(script.image.resource.select)</visible>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[31940]</label>
					<onclick condition="System.HasAddon(script.image.resource.select)">RunScript(script.image.resource.select,property=weathericonsResource&amp;type=resource.images.weathericons)</onclick>
					<onclick condition="!System.HasAddon(script.image.resource.select)">InstallAddon(script.image.resource.select)</onclick>
				</control>
			</control>
		</control>
		<include condition="Skin.HasSetting(Enable.TouchSupport)">TouchButtons</include>
		<control type="label" id="11" description="Refresh">
			<include>HiddenButton</include>
		</control>
	</controls>
</window>
