function createSummary(props) {

	var container = document.getElementById('results');

	var h = '<table width="530">';

	h += '<th></th><th><a href="javascript:getMapWithSort(\'lp_ListingAddr1\')">Address</a></th><th><a href="javascript:getMapWithSort(\'lp_MLS_Number\')">MLS Number</th><th><a href="javascript:getMapWithSort(\'lp_Listing_Price\')">Price</a></th><th><a href="javascript:getMapWithSort(\'lp_No_Bedrooms\')">Beds</a></th><th><a href="javascript:getMapWithSort(\'lp_No_Bathrooms\')">Baths</a></th>';

	var bgcolor = '#ffffff';

        var queryString = createQueryString();


	for (var i = 0; i < props.length; i++) {

		if (bgcolor == '#ffffff') {
			bgcolor = '#cecece';
		} else {
			bgcolor = '#ffffff';
		}

		h += '<tr id="' + props[i].getAttribute('cd_MLS') + '" onMouseOver="hideAll();  document.getElementById(\'LISTING_\' + this.id).style.visibility = \'visible\';" bgcolor="' + bgcolor + '">';

		if (props[i].getAttribute('Photo_URL').length > 0) {
			if (pres_agent.length > 0) {
				h += '<td align="center"><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=AGENT_LISTING_DETAIL_P&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3d' + props[i].getAttribute('cd_MLS') + '" target="_parent"><img src="http://' + cleanString(props[i].getAttribute('Photo_URL')) + props[i].getAttribute('lp_MLS_Number') + 'at.jpg" width="75" border="0"></a></td>';
			} else {
				h += '<td align="center"><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=LISTING_DETAIL_P&mapvars=' + queryString + '%26s_layer%3d' + props[i].getAttribute('cd_MLS') + '" target="_parent"><img src="http://' + cleanString(props[i].getAttribute('Photo_URL')) + props[i].getAttribute('lp_MLS_Number') + 'at.jpg" width="75" border="0"></a></td>';
			}
		} else {
			h += '<td align="center"><img src="http://www.redata.com/100001/FIRSTWEBER/graphics/nophoto.gif" width="75"></td>';
		}


		if (pres_agent.length > 0) {
			h += '<td align="center"><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=AGENT_LISTING_DETAIL_P&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3D' + props[i].getAttribute('cd_MLS') + '&pres_agent=' + pres_agent + '" target="_parent">' + cleanString(props[i].getAttribute('lp_ListingAddr1')) + '</a></td>';
		} else {
			h += '<td align="center"><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=LISTING_DETAIL_P&mapvars=' + queryString + '%26s_layer%3D' + props[i].getAttribute('cd_MLS') + '&pres_agent=' + pres_agent + '" target="_parent">' + cleanString(props[i].getAttribute('lp_ListingAddr1')) + '</a></td>';
		}

		h += '<td align="center">' + cleanString(props[i].getAttribute('lp_MLS_Number')) + '</td>';

		h += '<td align="center">$' + cleanString(props[i].getAttribute('lp_Listing_Price')) + '</td>';

		h += '<td align="center">' + cleanString(props[i].getAttribute('lp_No_Bedrooms')) + '</td>';

		h += '<td align="center">' + cleanString(props[i].getAttribute('lp_No_Bathrooms')) + '</td>';

		h += '</tr>';
	
	}

h += '</table>';

container.style.overflow = 'scroll';
container.style.visibility = 'visible';
container.innerHTML = h;

}

function clearSummary() {

	var s = document.getElementById('results');

	s.style.overflow = 'hidden';
	s.style.visibility = 'hidden';

}


