function createSummary(props) {

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

	var queryString = createQueryString();

	var h = '<div class="subformWrapper search_results">' +
                '<div class="subfieldset"><div class="resultsKey">' +
            	'<div class="column empty">&nbsp;</div>' +
            	'<div class="column">Price</div>' +
            	'<div class="column">City</div>' +
            	'<div class="column short_col">Beds</div>' +
            	'<div class="column short_col">Baths</div>' +
            	'<div class="column short_col">Sq Ft</div>' +
            	'</div>';

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

		 h += '<div class="result" id="' + i + '" onMouseOver="hideAll();  document.getElementById(\'LISTING_\' + this.id).style.visibility = \'visible\';">';

		if (cleanString(props[i].getAttribute('lp_Photo_URL')).length > 0) {
			if (pres_agent.length > 0) {
            			h += '<a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=AGENT_LISTING_DETAIL&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3d' + props[i].getAttribute('cd_MLS') + '" target="_parent"><img src="http://' + cleanString(props[i].getAttribute('lp_Photo_URL')) + props[i].getAttribute('lp_MLS_Number') + 'at.jpg" width="118" height="78" /></a>';
			} else {
            			h += '<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('lp_Photo_URL')) + props[i].getAttribute('lp_MLS_Number') + 'at.jpg" width="118" height="78" /></a>';
			}	
		} else {
			if (pres_agent.length > 0) {
       	     			h += '<a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=AGENT_LISTING_DETAIL&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3d' + props[i].getAttribute('cd_MLS') + '" target="_parent"><img src="http://www.redata.com/100038/HASSON/graphics/nophoto.gif" width="118" height="78" alt="No Photo" /></a>';
			} else {
       	     			h += '<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://www.redata.com/100038/HASSON/graphics/nophoto.gif" width="118" height="78" alt="No Photo" /></a>';
			}
		

		}
            	h += '<div class="resultData">';
            	
			h += '<div class="column">' + cleanString(props[i].getAttribute('lp_Listing_Price_Display')) + '</div>';
            		h += '<div class="column">' + cleanString(props[i].getAttribute('lp_ListingCity')) + '</div>';

            		h += '<div class="column short_col">' + props[i].getAttribute('lp_No_Bedrooms') + '</div>';

            		h += '<div class="column short_col">' + props[i].getAttribute('lp_No_Bathrooms') + '</div>';

			h += '<div class="column short_col">' + props[i].getAttribute('lp_amt_Struct_SqFt_Act') + '</div>';

			if (props[i].getAttribute('cd_Company') == 'HASSON') { 
				h += '<div class="column hasson_idx"><img src="images/hasson_icon.gif" width="100" alt="Hasson" /></div>';
			} else {
            			h += '<div class="column hasson_idx"><img src="images/idx_icon.gif" width="100" alt="IDX" /></div>';
			}

			h += '<div class="description">' + cleanString(props[i].getAttribute('Comments'));

			if (pres_agent.length > 0) {
				h += '<p class="prop_details"><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=AGENT_LISTING_DETAIL&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3d' + props[i].getAttribute('cd_MLS') + '" target="_parent">click here for details</a></p>';
			} else {
				h += '<p class="prop_details"><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">click here for details</a></p>';
			
			}

			h += '</div>';	

	            	h += '<div class="icons">';			
            
			if (props[i].getAttribute('Panorama_URL').length > 0) {	
			h += '<img src="images/results_vt.png" width="42" height="26" alt="Virtual Tour" />';
			}
			if (props[i].getAttribute('PhotoDesc_2').length > 0) {
            		h += '<img src="images/results_photos.gif" width="53" height="44" alt="More Photos" />';
            		}

			h += '<img src="images/compass_icon.gif" alt="map property">';
            
			h += '</div>';						
            	
			h += '</div>';	
            	
		h += '</div>';

	}


	h += '</div></div>';

	write_debug(h);

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';

}


