function loadAgentListings() {
	$("#agent-listings").html($("#ajax-loader").html());
	$.ajax({
		type: "GET",
		url: "/agent-office/agent-listings.cfm",
		data: "guiAssociateID=" + associateID + "&showOfficeListings=" + showOfficeListings + "&guiOfficeID=" + officeID,
		dataType: "html",
		success: function(message) {
			$("#agent-listings").html(message);
		}
	});
}

function loadRecentSales() {
	$("#recent-sales").html($("#ajax-loader").html());
	$.ajax({
		type: "GET",
		url: "/agent-office/recent-sales.cfm?",
		data: "guiAssociateID=" + associateID + "&szCompanyAgentID=" + companyAgentID,
		dataType: "html",
		cache: false,
		success: function(message) {
			$("#recent-sales").html(message);
		}
	});
}

$(document).ready(function() {
	loadAgentListings();
	loadRecentSales();
});