function showWCitySelection(show) {
  
  if (!document.getElementById("igWOutBox")) {
    //alert("create igWOutBox");
    var igWOutBox = document.createElement("div");
    igWOutBox.id = "igWOutBox";
    document.getElementById('igWCitySelBox').parentNode.appendChild(igWOutBox);
    igWOutBox.onmousemove = function() {
      document.getElementById('igWCitySelBox').style.display = 'none';
      document.getElementById('igWOutBox').style.display = 'none';
      //alert("moveon-it igWOutBox display:"+document.getElementById('igWOutBox').style.display);
    }
  }
  //alert("showWCitySelection("+show+")");
  document.getElementById('igWCitySelBox').style.display = (show) ? 'block' : 'none';
  document.getElementById('igWOutBox').style.display = (show) ? 'block' : 'none';
}
  
function chIgW(obj) {
  showWCitySelection(false);
  if (obj.href.indexOf("?city=") != -1) var p = obj.href.indexOf("?city=")+6;
  else if (obj.href.indexOf("&city=") != -1) var p = obj.href.indexOf("&city=")+6;
  else return false;
  city = obj.href.substr(p);
  if (city.indexOf("&") != -1) city = city.substring(0, city.indexOf("&"));
  
  // alert(city);
  //igWDataByCity(city);
  var sUrl = "/___fbweather/google_weather.php?city="+city+"&GetXML=1";
  // alert(sUrl);
  SendRequest(sUrl);
  showWCitySelection(0);
}