
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - prettydate.js - */
// http://macworldbrasil.uol.com.br/portal_javascripts/prettydate.js?original=1
function prettyDate(date){var time=date.getTime(),diff=(((new Date()).getTime()-time)/1000),day_diff=Math.floor(diff/86400);if(isNaN(day_diff)||day_diff<0)
return;return day_diff==0&&(diff<60&&"agora"||diff<120&&"1 minuto atrás"||diff<3600&&Math.floor(diff/60)+" minutos atrás"||diff<7200&&"1 hora atrás"||diff<86400&&Math.floor(diff/3600)+" horas atrás")||day_diff==1&&"Ontem"||day_diff<7&&day_diff+" dias atrás"||day_diff<31&&Math.ceil(day_diff/7)+" semanas atrás"||day_diff>=31&&Math.floor(day_diff/30)+"mês(es) atrás"}

/* - twitter_keyword_default.js - */
// http://macworldbrasil.uol.com.br/portal_javascripts/twitter_keyword_default.js?original=1
function getKeywordDefault(){var keywords=['tecnologia informatica'];var tot=keywords.length;var rand_no=Math.floor(tot*Math.random());return encodeURIComponent(keywords[rand_no])}
