function ListPropertiesAjax() {

  this.get_properties_list = get_properties_list;

  function get_properties_list() {
    
    var url = state_machine.get_xml_link();
    $.ajax({
      method: "get",
      url: url,
      //dataType: ($.browser.msie) ? "xml" : "text/xml",
      dataType: "xml",
      cache: false,
      beforeSend: function(){
        google_map.clear_markers();
        $("#save_search").html("Save Search");
        $("#properties_html").html("");
        $("#loading_splash").fadeIn('slow');
      }, 
      complete: function(){ return;}, //stop showing loading when the process is complete
      success: function(html){ 
        $(html).find('properties').each(function() {
          state_machine.set_last_page($(this).attr("last_page"));
          state_machine.set_total_properties($(this).attr("total_properties"));
          state_machine.set_has_next_page($(this).attr("has_next"));
          state_machine.set_has_prev_page($(this).attr("has_prev"));
          pagination.update_nav();
          var inner_html = $(this).text();
          $("#loading_splash").fadeOut('slow',function() { 
            $("#properties_html").html(inner_html);
          });
        });

        $(html).find('properties_map').each(function() {
          var lat = $(this).attr("lat");
          var lng = $(this).attr("lng");
          var tool_tip = $(this).attr("tool_tip");
          var title = $(this).attr("title");
          var marker_html = $(this).text();
          google_map.add_marker(lat,lng,"blue",false,tool_tip,marker_html,title);
        });

        google_map.calculate_zoom();
      }
    });
  }
}
