
jQuery(function($){if($('.feedreading_blogroll_bookmarklist').length>0){$.getScript("http://www.google.com/jsapi?key=ABQIAAAAqRqGs5Fq8vRRbPEIBUvhwBTEZKXYAysE4L_uW-GaA54PgU5M8BTBg0R8kHKn0pyhTCA02Cc_xAPxpQ",function(){google.load("feeds","1",{"callback":initializeBR});});}
function sprintf(){if(sprintf.arguments.length<2){return;}
var data=sprintf.arguments[0];for(var k=1;k<sprintf.arguments.length;++k){switch(typeof(sprintf.arguments[k])){case'string':data=data.replace(/%s/,sprintf.arguments[k]);break;case'number':data=data.replace(/%d/,sprintf.arguments[k]);break;case'boolean':data=data.replace(/%b/,sprintf.arguments[k]?'true':'false');break;default:break;}}
return(data);}
if(!String.sprintf){String.sprintf=sprintf;}
function getAge(days,hours){if(days>1){return String.sprintf("%d dias atrás",days);}else if(days==1){return"ontem ";}else if(days<1&&hours>1){return String.sprintf("%d horas atrás",hours);}else if(days<1&&hours==1){return"na última hora";}else if(days<1&&hours<1){return"recentemente";}}
function addAge(feed,bookmark,anchor,divID,previewtoggle,last_posttitle){var $li=$(bookmark),$a=$(anchor),$toggle=$(previewtoggle),$title=$(last_posttitle),now=(new Date()).getTime(),then=(new Date()).getTime(),ageInDays,ageInHours,randomAge,ageMsg=[],$snippet,entry,author="";entry=feed.entries[0];try{then=new Date(entry.publishedDate).getTime();}catch(dateException){}
if(!(entry.author===null||entry.author=="")){author=entry.author;}else{if(!(feed.author===null||feed.author=="")){author=feed.author;}}
ageInDays=Math.floor((now-then)/(1000*60*60*24)),ageInHours=Math.floor((now-then)%(1000*60*60*24)/3600000);try{$entryTitle=$("<p></p>").html(entry.title);$a.attr({title:$entryTitle.html()});}catch(titleException){$a.attr({title:""});}
if(!isNaN(then)){$li.attr({age:then});}else{randomAge=Math.floor(Math.random()*1000001);$li.attr({age:randomAge});}
if(!(isNaN(ageInDays)||isNaN(ageInHours))){ageMsg.push(getAge(ageInDays,ageInHours));if(author!=""){ageMsg.push(" por ");ageMsg.push(author);}
$toggle.html(ageMsg.join('')).attr({feedurl:feed.link});}
$title.html(entry.title);$title.attr({href:entry.link,title:$("<p></p>").html(entry.contentSnippet).html(),rel:"external",rev:"bookmark"});return false;}
function addZeroAge(zeroAgeBookmark){var $zali=$(zeroAgeBookmark),randomAge=Math.floor(Math.random()*10000001);if($zali!==null){$zali.attr({age:randomAge});}
return false;}
function addFeedControl(preview,feed,name){var feedControl=new google.feeds.FeedControl();feedControl.addFeed(feed,name);feedControl.draw($(preview).get(0));return false;}
function feedreading_limit_display(){var
liArraySingle_3=$("#single-3_feedreading_blogroll_ > li");for(var i=0;i<liArraySingle_3.length;i++){if(i>-1){$(liArraySingle_3[i]).css("display","none");}}return false;}
function feedreading_automatic_sort(){var $allCompleted,$hasCompleteAgeSingle3=true,isCompleteSingle3=false,$liSortSingleArray3=$("#single-3_feedreading_blogroll_ > li");for(var i=0;i<$liSortSingleArray3.length;i++){var $age3=$($liSortSingleArray3[i]).attr("age");if($age3===null||$age3==""||isNaN($age3)){$hasCompleteAgeSingle3=false;}}
if($hasCompleteAgeSingle3&&!isCompleteSingle3){try{$("#single-3_feedreading_blogroll_ > li").frbrsort(sortAlpha).appendTo("#single-3_feedreading_blogroll_");isCompleteSingle3=true;}catch(e){}}
$allCompleted=isCompleteSingle3;if($allCompleted){clearInterval(myInterval);}
return false;}
function feedreading_rolling(){var
$single_blogroll_3=$('#single-3_feedreading_blogroll_'),$single_blogroll_3_size=$single_blogroll_3.find('li').size(),$single_blogroll_3_limit=($single_blogroll_3_size>5)?(5):($single_blogroll_3_size-1);if($single_blogroll_3_size>1){$("#single-3_feedreading_blogroll_ > li").css("display","none");$single_blogroll_3.feedReadingBlogrollSpy($single_blogroll_3_limit,4000);}
return false;}
function feedreading_category_observer(){$("ul.feedreading_blogroll_bookmarklist").bind("mouseenter",function(event){var $eventTarget=$(event.target);$eventTarget.parents(".feedreading_blogroll_bookmarklist").addClass("mouseover");});$("ul.feedreading_blogroll_bookmarklist").bind("mouseleave",function(event){var $eventTarget=$(event.target);$eventTarget.parents(".feedreading_blogroll_bookmarklist").removeClass("mouseover");});return false;}
var myInterval=window.setInterval(function(){feedreading_automatic_sort();},1000);window.setTimeout(function(a,b){clearInterval(myInterval);},20000);function initializeBR(){var feed23=new google.feeds.Feed("http://adivinadesordem.blogspot.com/feeds/posts/default?alt=rss"),feed10=new google.feeds.Feed("http://anaturezadomal.blogspot.com/feeds/posts/default?alt=rss"),feed15=new google.feeds.Feed("http://delitodeopiniao.blogs.sapo.pt/data/rss"),feed8=new google.feeds.Feed("http://entreasbrumasdamemoria.blogspot.com/feeds/posts/default?alt=rss"),feed22=new google.feeds.Feed("http://tempocontado.blogspot.com/feeds/posts/default?alt=rss"),feed_single323=new google.feeds.Feed("http://adivinadesordem.blogspot.com/feeds/posts/default?alt=rss"),feed_single310=new google.feeds.Feed("http://anaturezadomal.blogspot.com/feeds/posts/default?alt=rss"),feed_single315=new google.feeds.Feed("http://delitodeopiniao.blogs.sapo.pt/data/rss"),feed_single38=new google.feeds.Feed("http://entreasbrumasdamemoria.blogspot.com/feeds/posts/default?alt=rss"),feed_single322=new google.feeds.Feed("http://tempocontado.blogspot.com/feeds/posts/default?alt=rss");if($("#feedreading_bookmark_23").length>0){feed23.load(function(result_23){if(!result_23.error){addAge(result_23.feed,"#feedreading_bookmark_23","#feedreading_anchor_23","#feedreading_info_23","#feedreading_previewtoggle_23","#frbl_last_posttitle_23");}else{addZeroAge("#feedreading_bookmark_23");}});}
if($("#feedreading_bookmark_10").length>0){feed10.load(function(result_10){if(!result_10.error){addAge(result_10.feed,"#feedreading_bookmark_10","#feedreading_anchor_10","#feedreading_info_10","#feedreading_previewtoggle_10","#frbl_last_posttitle_10");}else{addZeroAge("#feedreading_bookmark_10");}});}
if($("#feedreading_bookmark_26").length>0){google.feeds.lookupFeed("http://agualisa6.blogs.sapo.pt/",function(){var url26=this.url,feed26=new google.feeds.Feed(this.url);feed26.load(function(result_26){if(!result_26.error){addAge(result_26.feed,"#feedreading_bookmark_26","#feedreading_anchor_26","#feedreading_info_26","#feedreading_previewtoggle_26","#frbl_last_posttitle_26");}else{addZeroAge("#feedreading_bookmark_26");}});});}
if($("#feedreading_bookmark_14").length>0){google.feeds.lookupFeed("http://bibliotecariodebabel.com/",function(){var url14=this.url,feed14=new google.feeds.Feed(this.url);feed14.load(function(result_14){if(!result_14.error){addAge(result_14.feed,"#feedreading_bookmark_14","#feedreading_anchor_14","#feedreading_info_14","#feedreading_previewtoggle_14","#frbl_last_posttitle_14");}else{addZeroAge("#feedreading_bookmark_14");}});});}
if($("#feedreading_bookmark_24").length>0){google.feeds.lookupFeed("http://caminhosdamemoria.wordpress.com/",function(){var url24=this.url,feed24=new google.feeds.Feed(this.url);feed24.load(function(result_24){if(!result_24.error){addAge(result_24.feed,"#feedreading_bookmark_24","#feedreading_anchor_24","#feedreading_info_24","#feedreading_previewtoggle_24","#frbl_last_posttitle_24");}else{addZeroAge("#feedreading_bookmark_24");}});});}
if($("#feedreading_bookmark_15").length>0){feed15.load(function(result_15){if(!result_15.error){addAge(result_15.feed,"#feedreading_bookmark_15","#feedreading_anchor_15","#feedreading_info_15","#feedreading_previewtoggle_15","#frbl_last_posttitle_15");}else{addZeroAge("#feedreading_bookmark_15");}});}
if($("#feedreading_bookmark_31").length>0){google.feeds.lookupFeed("http://www.elboomeran.com/",function(){var url31=this.url,feed31=new google.feeds.Feed(this.url);feed31.load(function(result_31){if(!result_31.error){addAge(result_31.feed,"#feedreading_bookmark_31","#feedreading_anchor_31","#feedreading_info_31","#feedreading_previewtoggle_31","#frbl_last_posttitle_31");}else{addZeroAge("#feedreading_bookmark_31");}});});}
if($("#feedreading_bookmark_8").length>0){feed8.load(function(result_8){if(!result_8.error){addAge(result_8.feed,"#feedreading_bookmark_8","#feedreading_anchor_8","#feedreading_info_8","#feedreading_previewtoggle_8","#frbl_last_posttitle_8");}else{addZeroAge("#feedreading_bookmark_8");}});}
if($("#feedreading_bookmark_16").length>0){google.feeds.lookupFeed("http://ler.blogs.sapo.pt/",function(){var url16=this.url,feed16=new google.feeds.Feed(this.url);feed16.load(function(result_16){if(!result_16.error){addAge(result_16.feed,"#feedreading_bookmark_16","#feedreading_anchor_16","#feedreading_info_16","#feedreading_previewtoggle_16","#frbl_last_posttitle_16");}else{addZeroAge("#feedreading_bookmark_16");}});});}
if($("#feedreading_bookmark_29").length>0){google.feeds.lookupFeed("http://ocafedosloucos.blogspot.com/",function(){var url29=this.url,feed29=new google.feeds.Feed(this.url);feed29.load(function(result_29){if(!result_29.error){addAge(result_29.feed,"#feedreading_bookmark_29","#feedreading_anchor_29","#feedreading_info_29","#feedreading_previewtoggle_29","#frbl_last_posttitle_29");}else{addZeroAge("#feedreading_bookmark_29");}});});}
if($("#feedreading_bookmark_30").length>0){google.feeds.lookupFeed("http://orgialiteraria.com/",function(){var url30=this.url,feed30=new google.feeds.Feed(this.url);feed30.load(function(result_30){if(!result_30.error){addAge(result_30.feed,"#feedreading_bookmark_30","#feedreading_anchor_30","#feedreading_info_30","#feedreading_previewtoggle_30","#frbl_last_posttitle_30");}else{addZeroAge("#feedreading_bookmark_30");}});});}
if($("#feedreading_bookmark_25").length>0){google.feeds.lookupFeed("http://blogs.elpais.com/papeles-perdidos/",function(){var url25=this.url,feed25=new google.feeds.Feed(this.url);feed25.load(function(result_25){if(!result_25.error){addAge(result_25.feed,"#feedreading_bookmark_25","#feedreading_anchor_25","#feedreading_info_25","#feedreading_previewtoggle_25","#frbl_last_posttitle_25");}else{addZeroAge("#feedreading_bookmark_25");}});});}
if($("#feedreading_bookmark_22").length>0){feed22.load(function(result_22){if(!result_22.error){addAge(result_22.feed,"#feedreading_bookmark_22","#feedreading_anchor_22","#feedreading_info_22","#feedreading_previewtoggle_22","#frbl_last_posttitle_22");}else{addZeroAge("#feedreading_bookmark_22");}});}
if($("#feedreading_bookmark_27").length>0){google.feeds.lookupFeed("http://viasfacto.blogspot.com",function(){var url27=this.url,feed27=new google.feeds.Feed(this.url);feed27.load(function(result_27){if(!result_27.error){addAge(result_27.feed,"#feedreading_bookmark_27","#feedreading_anchor_27","#feedreading_info_27","#feedreading_previewtoggle_27","#frbl_last_posttitle_27");}else{addZeroAge("#feedreading_bookmark_27");}});});}
if($("#single-3_feedreading_bookmark_23").length>0){feed_single323.load(function(result_single_323){if(!result_single_323.error){addAge(result_single_323.feed,"#single-3_feedreading_bookmark_23","#single-3_feedreading_anchor_23","#single-3_feedreading_info_23","#single-3_feedreading_previewtoggle_23","#single-3_frbl_last_posttitle_23");}else{addZeroAge("#single-3_feedreading_bookmark_23");}});}
if($("#single-3_feedreading_bookmark_10").length>0){feed_single310.load(function(result_single_310){if(!result_single_310.error){addAge(result_single_310.feed,"#single-3_feedreading_bookmark_10","#single-3_feedreading_anchor_10","#single-3_feedreading_info_10","#single-3_feedreading_previewtoggle_10","#single-3_frbl_last_posttitle_10");}else{addZeroAge("#single-3_feedreading_bookmark_10");}});}
if($("#single-3_feedreading_bookmark_26").length>0){google.feeds.lookupFeed("http://agualisa6.blogs.sapo.pt/",function(){var url_single_326=this.url,feed_single_326=new google.feeds.Feed(this.url);feed_single_326.load(function(result_single_326){if(!result_single_326.error){addAge(result_single_326.feed,"#single-3_feedreading_bookmark_26","#single-3_feedreading_anchor_26","#single-3_feedreading_info_26","#single-3_feedreading_previewtoggle_26","#single-3_frbl_last_posttitle_26");}else{addZeroAge("#single-3_feedreading_bookmark_26");}});});}
if($("#single-3_feedreading_bookmark_14").length>0){google.feeds.lookupFeed("http://bibliotecariodebabel.com/",function(){var url_single_314=this.url,feed_single_314=new google.feeds.Feed(this.url);feed_single_314.load(function(result_single_314){if(!result_single_314.error){addAge(result_single_314.feed,"#single-3_feedreading_bookmark_14","#single-3_feedreading_anchor_14","#single-3_feedreading_info_14","#single-3_feedreading_previewtoggle_14","#single-3_frbl_last_posttitle_14");}else{addZeroAge("#single-3_feedreading_bookmark_14");}});});}
if($("#single-3_feedreading_bookmark_24").length>0){google.feeds.lookupFeed("http://caminhosdamemoria.wordpress.com/",function(){var url_single_324=this.url,feed_single_324=new google.feeds.Feed(this.url);feed_single_324.load(function(result_single_324){if(!result_single_324.error){addAge(result_single_324.feed,"#single-3_feedreading_bookmark_24","#single-3_feedreading_anchor_24","#single-3_feedreading_info_24","#single-3_feedreading_previewtoggle_24","#single-3_frbl_last_posttitle_24");}else{addZeroAge("#single-3_feedreading_bookmark_24");}});});}
if($("#single-3_feedreading_bookmark_15").length>0){feed_single315.load(function(result_single_315){if(!result_single_315.error){addAge(result_single_315.feed,"#single-3_feedreading_bookmark_15","#single-3_feedreading_anchor_15","#single-3_feedreading_info_15","#single-3_feedreading_previewtoggle_15","#single-3_frbl_last_posttitle_15");}else{addZeroAge("#single-3_feedreading_bookmark_15");}});}
if($("#single-3_feedreading_bookmark_31").length>0){google.feeds.lookupFeed("http://www.elboomeran.com/",function(){var url_single_331=this.url,feed_single_331=new google.feeds.Feed(this.url);feed_single_331.load(function(result_single_331){if(!result_single_331.error){addAge(result_single_331.feed,"#single-3_feedreading_bookmark_31","#single-3_feedreading_anchor_31","#single-3_feedreading_info_31","#single-3_feedreading_previewtoggle_31","#single-3_frbl_last_posttitle_31");}else{addZeroAge("#single-3_feedreading_bookmark_31");}});});}
if($("#single-3_feedreading_bookmark_8").length>0){feed_single38.load(function(result_single_38){if(!result_single_38.error){addAge(result_single_38.feed,"#single-3_feedreading_bookmark_8","#single-3_feedreading_anchor_8","#single-3_feedreading_info_8","#single-3_feedreading_previewtoggle_8","#single-3_frbl_last_posttitle_8");}else{addZeroAge("#single-3_feedreading_bookmark_8");}});}
if($("#single-3_feedreading_bookmark_16").length>0){google.feeds.lookupFeed("http://ler.blogs.sapo.pt/",function(){var url_single_316=this.url,feed_single_316=new google.feeds.Feed(this.url);feed_single_316.load(function(result_single_316){if(!result_single_316.error){addAge(result_single_316.feed,"#single-3_feedreading_bookmark_16","#single-3_feedreading_anchor_16","#single-3_feedreading_info_16","#single-3_feedreading_previewtoggle_16","#single-3_frbl_last_posttitle_16");}else{addZeroAge("#single-3_feedreading_bookmark_16");}});});}
if($("#single-3_feedreading_bookmark_29").length>0){google.feeds.lookupFeed("http://ocafedosloucos.blogspot.com/",function(){var url_single_329=this.url,feed_single_329=new google.feeds.Feed(this.url);feed_single_329.load(function(result_single_329){if(!result_single_329.error){addAge(result_single_329.feed,"#single-3_feedreading_bookmark_29","#single-3_feedreading_anchor_29","#single-3_feedreading_info_29","#single-3_feedreading_previewtoggle_29","#single-3_frbl_last_posttitle_29");}else{addZeroAge("#single-3_feedreading_bookmark_29");}});});}
if($("#single-3_feedreading_bookmark_30").length>0){google.feeds.lookupFeed("http://orgialiteraria.com/",function(){var url_single_330=this.url,feed_single_330=new google.feeds.Feed(this.url);feed_single_330.load(function(result_single_330){if(!result_single_330.error){addAge(result_single_330.feed,"#single-3_feedreading_bookmark_30","#single-3_feedreading_anchor_30","#single-3_feedreading_info_30","#single-3_feedreading_previewtoggle_30","#single-3_frbl_last_posttitle_30");}else{addZeroAge("#single-3_feedreading_bookmark_30");}});});}
if($("#single-3_feedreading_bookmark_25").length>0){google.feeds.lookupFeed("http://blogs.elpais.com/papeles-perdidos/",function(){var url_single_325=this.url,feed_single_325=new google.feeds.Feed(this.url);feed_single_325.load(function(result_single_325){if(!result_single_325.error){addAge(result_single_325.feed,"#single-3_feedreading_bookmark_25","#single-3_feedreading_anchor_25","#single-3_feedreading_info_25","#single-3_feedreading_previewtoggle_25","#single-3_frbl_last_posttitle_25");}else{addZeroAge("#single-3_feedreading_bookmark_25");}});});}
if($("#single-3_feedreading_bookmark_22").length>0){feed_single322.load(function(result_single_322){if(!result_single_322.error){addAge(result_single_322.feed,"#single-3_feedreading_bookmark_22","#single-3_feedreading_anchor_22","#single-3_feedreading_info_22","#single-3_feedreading_previewtoggle_22","#single-3_frbl_last_posttitle_22");}else{addZeroAge("#single-3_feedreading_bookmark_22");}});}
if($("#single-3_feedreading_bookmark_27").length>0){google.feeds.lookupFeed("http://viasfacto.blogspot.com",function(){var url_single_327=this.url,feed_single_327=new google.feeds.Feed(this.url);feed_single_327.load(function(result_single_327){if(!result_single_327.error){addAge(result_single_327.feed,"#single-3_feedreading_bookmark_27","#single-3_feedreading_anchor_27","#single-3_feedreading_info_27","#single-3_feedreading_previewtoggle_27","#single-3_frbl_last_posttitle_27");}else{addZeroAge("#single-3_feedreading_bookmark_27");}});});}
feedreading_category_observer();return false;}
$.fn.feedReadingBlogrollSpy=function(limit,interval){limit=limit||4;interval=interval||4000;return this.each(function(){var $list=$(this),items=[],currentItem=limit,total=0,height=$list.find('li:first').height();$list.find('li').each(function(){items.push($(this));});total=items.length;$list.wrap('<div class="spyWrapper" />').parent().css({height:height*(limit+2)});$list.find('li').filter(':gt('+(limit-1)+')').remove();function spy(){if(!$list.hasClass("mouseover")){var $insert=$(items[currentItem]).css({height:0,opacity:0,display:'none'}).prependTo($list);$list.find('li:last').animate({opacity:0},1000,function(){$insert.animate({height:height},1000).animate({opacity:1},1000);$(this).remove();});currentItem++;if(currentItem>=total){currentItem=0;}}
setTimeout(spy,interval);}
spy();});};$.fn.frbrsort=function(){return this.pushStack([].sort.apply(this,arguments),[]);};function sortAlpha(a,b){return parseInt($(a).attr("age"))<parseInt($(b).attr("age"))?1:-1;};});