function drawPosts(data,target) {
  if (data.items.length>0) {
    
    var container = document.getElementById('posts');
    var list = document.createElement('div');
    list.setAttribute("id","post-list");
    var post = document.createElement('div');
    post.setAttribute("class","post");
    var first = true;
    var today = new Date();
    var show_date = new Date(today-1000*60*60*hours);
   
    for (i in data.items) {
      var item = data.items[i];
      var date = new Date(item.published*1000);
      if (date > show_date) {
        if (first) {
          document.getElementById("feed-module-wrapper").style.display = 'block';
          first = false;
        }


        if (!date_format) {
          date_format = "mdy";
        }
        
        switch(date_format) {
          case "dmy":
            dateDisplay = date.getDate()+"/"+parseInt(date.getMonth()+1)+"/"+date.getFullYear();
            break;
          case "ymd":
            dateDisplay = date.getFullYear() + "/" + parseInt(date.getMonth()+1) + "/" + date.getDate();
            break;
          default:
            dateDisplay = date.getMonth()+1+"/"+date.getDate()+"/"+date.getFullYear();
        }

        var timestamp = document.createElement('strong');
        timestamp.appendChild(document.createTextNode(dateDisplay));
        post.appendChild(timestamp);
        post.appendChild(document.createElement('br'));

        if (item.summary) {
          content = item.summary;
        }
        else if (item.summarySnippet) {
          content = item.summarySnippet;
        }
        else if (item.contentSnippet) {
          content = item.contentSnippet;
        } else {
          content = "N/A";
        }
        post.appendChild(document.createTextNode(content));
        post.appendChild(document.createElement('br'));

        if (read_more) { 
          var link = document.createElement('a');
          link.appendChild(document.createTextNode(lang_feed_more));
          link.href = item.alternate.href;
          if (read_more_urchin == 'true') { 
            link.onclick = function() { urchinTracker('/support/outgoing/status/mod/' + convertedLang); }; 
          }
          post.appendChild(link);
          post.appendChild (document.createElement('br'));
        }
        post.appendChild (document.createElement('br'));
        list.appendChild (post);
        
      }
    }
    container.appendChild(list);
  }
}
