function createSummary(props) {

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

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

	h += '<th width="200"><a href="javascript:getMapWithSort(\'lp_ListingAddr1\')">Address</a></th><td width="150"><a href="javascript:getMapWithSort(\'lp_ListingCity\')">City</th><th width="100"><a href="javascript:getMapWithSort(\'lp_Listing_Price\')">Price</a></th><th width="100"><a href="javascript:getMapWithSort(\'lp_No_Bedrooms\')">Beds</a></th><th width="100"><a href="javascript:getMapWithSort(\'lp_No_Bathrooms\')">Baths</a></th></tr>';

	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="' + i + '" onMouseOver="hideAll(); document.getElementById(\'LISTING_\' + this.id).style.visibility = \'visible\';" bgcolor="' + bgcolor + '">';
	
		if (pres_agent.length > 0) {
			h += '<td width="200"><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">' + cleanString(props[i].getAttribute('lp_ListingAddr1')) + '</a></td>';
		} else {
			h += '<td width="200"><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">' + cleanString(props[i].getAttribute('lp_ListingAddr1')) + '</a></td>';

		}
		h += '<td width="100">' + cleanString(props[i].getAttribute('lp_ListingCity')) + '</td>';

		h += '<td width="100">$' + cleanString(props[i].getAttribute('lp_Listing_Price_Display')) + '</td>';

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

		h += '<td width="100">' + 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('summary_area');

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

}


