function processPublicFeed(feed){
  infoWindowManager.addMessage(
        new CInfoWindow(
          feed.idPod,
          generatePublicFeedContent(feed),
          {
            onClose: function(isManualClose){
              if(isManualClose){
                infoWindowManager.setMinLevelPriority(this.level+1);
              }
            },
            'openInfoWindow' : function(map, marker){
              marker.GoogleMarker.openInfoWindow(
                    '<div style="margin:-8px;">'+this.content+'</div>',
                    {maxWidth:300, noCloseOnClick:true});
/*              marker.GoogleMarker.openExtInfoWindow(
                          map,
                          'custom_info_window_white',
                          this.content,
                          {beakOffset: 1, noCloseOnClick:true});
*/
            },
            'level':PRIORITY_FEED_ON_MAP
          }
        )
  );
}

function generatePublicFeedContent(feed){
  var thePod = getPod(feed.idPod);
  var content = '';

  if(thePod){
    content = '<table width="100%" height="100%" style="cursor:pointer; padding:0; margin:0;" onclick="openPod('+feed.idPod+', '+feed.idApplication+', \''+feed.accessParams+'\');">'
            + ' <tr>';


    content += '   <td valign="top" colspan="2">'
              +'    <span style="font-size:0.7em;">';
    if(feed.idApplication>0){
      content += '     <img src="http://shared.publing.com/AppLogos/'+feed.idApplication+'.png" width="24px" height="24px" align="absmiddle" />';
    }
    content += '      <b style="font-size:1.2em;">'+feed.appName+' on: </b> <img src="/Img/pushpin/pushpin.gif" width="16px" align="absmiddle" />'+thePod.name
              +'    </span>'
              +'    <hr style="margin:0;" />'
              +'   </td>'
              +' </tr>'
              + '<tr>';

    if(feed.image!=''){
      content += '   <td width="100px" valign="top" align="center" rowspan="2">'
                +'     <img src="'+feed.image+'" width="100px" height="100px" />';
      content += '   </td>';
    } else {
      if(feed.idApplication>0){
        content += '   <td width="64px" valign="top" align="center" rowspan="2">'
                  +'     <img src="http://shared.publing.com/AppLogos/'+feed.idApplication+'.png" width="64px" height="64px" />'
                  +'   </td>';
      }
    }

    content += '   <td valign="top">'
              +'    <span style="font-weight:bold;">'+feed.title.replace(/<(.|\n)*?>/g, '')+(feed.title==''?'':':')+'</span>'
              +'    '+(feed.message.replace(/[\n ]/g, '')==''?'<p style="text-align:center; color:#CCC; font-weight:bold;">no description</p>':'<p style="font-weight:bold; font-size:0.8em;">'+feed.message.replace(/<(.|\n)*?>/g, '')+'</p>')
              +'   </td>'
              +' </tr>'
              +' <tr>'
              +'   <td align="right" valign="bottom" style="font-size:0.8em;">'
              +'    <a href="javascript:openPod('+feed.idPod+', '+feed.idApplication+', \''+encodeURIComponent(feed.params)+'\');">read more</a>'
              +'   </td>'
              +' </tr>'
              +'</table>';
  }
  return content;
}