function wunderground_English()
{
  if (document.getElementById("temp")) { document.getElementById("temp").innerHTML = temp_f + " F"; }
  if (document.getElementById("pressure")) { document.getElementById("pressure").innerHTML = pressure_in + "\""; }
  if (document.getElementById("dewpoint")) { document.getElementById("dewpoint").innerHTML = dewpoint_f + " F"; }
  if (document.getElementById("wind")) { document.getElementById("wind").innerHTML = wind_dir + " @ " + wind_mph + " MPH"; }
  if (document.getElementById("gusts")) { document.getElementById("gusts").innerHTML = wind_gust_mph + " MPH"; }
  
  return;
}

function wunderground_Metric()
{
  if (document.getElementById("temp")) { document.getElementById("temp").innerHTML = (Math.round((temp_f - 32) * (5/9) * 100)/100) + " C"; }
  if (document.getElementById("pressure")) { document.getElementById("pressure").innerHTML = (Math.round(pressure_in * 33.8637526 * 100)/100) + " mb"; }
  if (document.getElementById("dewpoint")) { document.getElementById("dewpoint").innerHTML = (Math.round((dewpoint_f - 32) * (5/9) * 100)/100) + " C"; }
  if (document.getElementById("wind")) { document.getElementById("wind").innerHTML = wind_dir + " @ " + (Math.round(wind_mph * 1.609344 * 100)/100) + " km/h"; }
  if (document.getElementById("gusts")) { document.getElementById("gusts").innerHTML = (Math.round(wind_gust_mph * 1.609344 * 100)/100) + " km/h"; }
  
  return;
}

if (units == "Metric") {
	wunderground_Metric();
}
else {
	wunderground_English();
}