<!--

function weather_newCity( iCity, sCity, sLocation, sConfig )
{
  this.aCity[ iCity ]     = sCity;
  this.aLocation[ iCity ] = sLocation;
  this.aConfig[ iCity]    = sConfig;
}

function weather_setCity( iCity )
{
  this.iCity = iCity;
}

function weather_selCity( iCity )
{
  for (g = 0; g < cities.length; g++)
  {
    if ( cities.options[g].value == iCity )
      cities.selectedIndex = g;
  }
}

function weather_pickCity( sCity )
{
  if ( sCity == "0" )
    exit;

  this.setCity( parseInt( sCity ) );
  this.updtCity();	
}

function weather_updtCity()
{
  window.location = "weather.htm?" + this.iCity;
}

function weather_bldCity()
{
	document.writeln("<table border='1' cellpadding='0' cellspacing='0' align='center' width='300' height='250'>");
  document.writeln("<tr><td width='100%'>");
	document.writeln("<div id='weather_target'></div>");
	document.writeln("<script src='"+document.location.protocol+"//wow.weather.com/weather/wow/module/"+this.aLocation[ this.iCity ]+"?config="+this.aConfig[ this.iCity ]+"&proto="+document.location.protocol+"&target=weather_target'></script>");	 

  document.writeln("</td></tr>");
  document.writeln("</table>");		
}

function weather()
{
  this.aCity     = new Array();
  this.aLocation = new Array();
  this.aConfig   = new Array();	

  this.iCity     = 0;

  this.fontName  = "Arial";
  this.fontSize  = "2";

  this.setCity   = weather_setCity;
  this.selCity   = weather_selCity;

  this.newCity   = weather_newCity;
  this.bldCity   = weather_bldCity;

  this.pickCity  = weather_pickCity;
  this.updtCity  = weather_updtCity;	
}

//-->
