

<f:comment>Template for the infoWindow in AjaxSearch</f:comment>


info = '<div class="infoWindow">';
	info += '<div>AjaxLocationListInfoWindow</div>';

	<f:for each="{location.images}" as="image">
		info += '<img src="/fileadmin/{image.originalResource.originalFile.identifier}"  width="50" alt=""/>';

	</f:for>

	info += '<a href="?id={settings.detailsPageId}&tx_myttaddressmap_singleview[action]=singleView&tx_myttaddressmap_singleview[locationUid]={location.uid}"><strong>{location.name}</strong></a>';
	
	info += "<div>{location.name}</div>";


	info += "<div class='categories'>{location.categories}</div>";

	info += '<div><f:link.typolink parameter="{location.www}"></f:link.typolink></div>';
	
	info += "<div><f:format.raw>{location.infoWindowAddress}</f:format.raw></div>";

	info += "<div>{location.zip} {location.city}</div>";
	info += "<div>{location.phone}</div>";

	<f:comment>
	////////// use this with caution ///////////
	info += '<f:format.htmlentitiesDecode>{location.description}</f:format.htmlentitiesDecode>';
	</f:comment>
	info += '</div>';

	infoWindow[{i}] = new google.maps.InfoWindow({
	  content: info
	});

	google.maps.event.addListener(marker[{i}], "click", function() {
		infoWindow[{i}].open(map,marker[{i}]);
});




