var gUserZip = '11751'; // default to Islip

var gWeatherPath="/common/javascript/weather/weatherJS.php?zip="+gUserZip;

jQuery.getJSON(gWeatherPath, function(json) {
	jQuery.each(json.temps, function(i,temp){
	jQuery('li#navWeather').html('<a href="#" class="parent">' + temp.city + ', ' + temp.state + '<strong> ' + temp.temp + '&deg;</strong></a>'
	  + '<div class="flyout">'
	  + '<div class="whead">current conditions</div> '
	  + '<div class="conditions"><p class="degree">' + temp.temp + '&deg;</p>'
	  + '<p class="hiLo"> Hi ' + temp.todaysHigh + '&deg; Lo ' + temp.todaysLow + '&deg;</p>'
	  + '<p class="status">' + temp.condition + '</p></div>'
	  + '<img height="69" width="75" class="todaysWeather" alt="partlycloudy" src="http://www.newsday.com' + temp.icon + '"/>'
	  + '<div class="radar"><p>radar</p>'
	  + '<a href="/wundermap"><img class="radarMap" alt="current radar map" src="http://resize.wunderground.com/cgi-bin/resize?filename=/data/nids/OKX19_thumb_t.jpg&amp;width=100&amp;height=70"/></a>'
	  + '</div><div class="detail"><ul><li><strong>Humidity:</strong> ' + temp.humidity + '</li>'
	  + '<li><strong>Wind:</strong> ' + temp.winds + '</li></ul>'
	  + '<ul><li><strong>Barometer:</strong> ' + temp.airPressure + '" Hg</li></ul></div>'
	  + '<ul class="weatherLinks">'
	  + '<li><a href="http://weather.newsday.com/cgi-bin/findweather/getForecast?brand=newsday&amp;query='+gUserZip+'">full forecast</a></li>'
	  + '<li><a href="http://weather.newsday.com/cgi-bin/findweather/getForecast?hourly=1&amp;query='+gUserZip+'&amp;yday=&amp;weekday=&amp;brand='+ temp.site+'">hour-by-hour</a></li>'
	  + '<li class="last"><a href="/wundermap">local map</a></li></ul></div>' );
  });
});