/*
 * Weather handler
 * Copyright 2007 WorldxChange Communications Ltd
 * Written by Grant Zanetti
 */

_lastWeather = null;
_lastWeatherTab = null;

function weatherTab(name)
{
	if (_lastWeather)
	{
		_lastWeather.style.display = 'none';
		_lastWeatherTab.className = '';
	}

	var e = document.getElementById('weather_' + name);
	if (e)
		e.style.display = '';

	_lastWeather = e;

	e = document.getElementById('weather_tab_' + name);
	if (e)
		e.className = 'weather_sel';

	_lastWeatherTab = e;

	e = document.getElementById('weather_icon_' + name);
	if (e)
		document.getElementById('weather_icon').innerHTML = e.innerHTML;

	return(false);
}

