
jQuery(document).ready(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){var ageMsg="";if(days>1){ageMsg=String.sprintf("%d days ago",days);}else if(days==1){ageMsg="yesterday ";}else if(days<1&&hours>1){ageMsg=String.sprintf("%d hrs ago",hours);}else if(days<1&&hours==1){ageMsg="in the last hour";}else if(days<1&&hours<1){ageMsg="just recently";}
return ageMsg;}
function addAge(feed,bookmark,anchor,divID,previewtoggle,last_posttitle){var $li=jQuery(bookmark),$a=jQuery(anchor),$toggle=jQuery(previewtoggle),$title=jQuery(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==""){if(feed.author===null||feed.author==""){author="";}else{author=feed.author;}}else{author=entry.author;}
ageInDays=Math.floor((now-then)/(1000*60*60*24)),ageInHours=Math.floor((now-then)%(1000*60*60*24)/3600000);try{$entryTitle=jQuery("<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)){}else{ageMsg=getAge(ageInDays,ageInHours);if(author!=""){ageMsg=ageMsg+" by "+author;}
$toggle.html(ageMsg);$toggle.attr({feedurl:feed.link});}
$title.html(entry.title);$snippet=jQuery("<p></p>").html(entry.contentSnippet);$title.attr({href:entry.link,title:$snippet.html(),rel:"external",rev:"bookmark"});return;}
function addZeroAge(zeroAgeBookmark){var $zali=jQuery(zeroAgeBookmark),randomAge=Math.floor(Math.random()*1000001);if($zali!==null){$zali.attr({age:randomAge});}
return;}
function addFeedControl(preview,feed,name){var feedControl=new google.feeds.FeedControl();feedControl.addFeed(feed,name);feedControl.draw(jQuery(preview).get(0));}
function feedreading_limit_display(){jQuery.each(jQuery("#feedreading_blogroll_ > li"),function(i,$element){if(i>6){jQuery($element).css("display","none");}});}
function feedreading_automatic_sort(){jQuery("#feedreading_blogroll_ > li").tsort({order:"desc",attr:"age"});}
function feedreading_category_observer(){}
window.setTimeout(function(a,b){},20000);function initializeBR(){var
feed2=new google.feeds.Feed("http://wordpress.org/development/feed/");google.feeds.lookupFeed("http://www.brianmaxwellpublishing.org/nextlevel.html",function(){var url9=this.url,feed9=new google.feeds.Feed(this.url);feed9.load(function(result_9){if(!result_9.error){addAge(result_9.feed,"#feedreading_bookmark_9","#feedreading_anchor_9","#feedreading_info_9","#feedreading_previewtoggle_9","#frbl_last_posttitle_9");}else{addZeroAge("#feedreading_bookmark_9");}});});google.feeds.lookupFeed("http://www.brianmaxwellpublishing.org",function(){var url8=this.url,feed8=new google.feeds.Feed(this.url);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");}});});feed2.load(function(result_2){if(!result_2.error){addAge(result_2.feed,"#feedreading_bookmark_2","#feedreading_anchor_2","#feedreading_info_2","#feedreading_previewtoggle_2","#frbl_last_posttitle_2");}else{addZeroAge("#feedreading_bookmark_2");}});google.feeds.lookupFeed("http://wordpress.org/extend/ideas/",function(){var url3=this.url,feed3=new google.feeds.Feed(this.url);feed3.load(function(result_3){if(!result_3.error){addAge(result_3.feed,"#feedreading_bookmark_3","#feedreading_anchor_3","#feedreading_info_3","#feedreading_previewtoggle_3","#frbl_last_posttitle_3");}else{addZeroAge("#feedreading_bookmark_3");}});});google.feeds.lookupFeed("http://wordpress.org/support/",function(){var url4=this.url,feed4=new google.feeds.Feed(this.url);feed4.load(function(result_4){if(!result_4.error){addAge(result_4.feed,"#feedreading_bookmark_4","#feedreading_anchor_4","#feedreading_info_4","#feedreading_previewtoggle_4","#frbl_last_posttitle_4");}else{addZeroAge("#feedreading_bookmark_4");}});});google.feeds.lookupFeed("http://wordpress.org/extend/plugins/",function(){var url5=this.url,feed5=new google.feeds.Feed(this.url);feed5.load(function(result_5){if(!result_5.error){addAge(result_5.feed,"#feedreading_bookmark_5","#feedreading_anchor_5","#feedreading_info_5","#feedreading_previewtoggle_5","#frbl_last_posttitle_5");}else{addZeroAge("#feedreading_bookmark_5");}});});google.feeds.lookupFeed("http://www.huffingtonpost.com/tara-stiles/the-secret-to-getting-wha_b_214496.html",function(){var url10=this.url,feed10=new google.feeds.Feed(this.url);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");}});});google.feeds.lookupFeed("http://www.blogsearchengine.com/",function(){var url11=this.url,feed11=new google.feeds.Feed(this.url);feed11.load(function(result_11){if(!result_11.error){addAge(result_11.feed,"#feedreading_bookmark_11","#feedreading_anchor_11","#feedreading_info_11","#feedreading_previewtoggle_11","#frbl_last_posttitle_11");}else{addZeroAge("#feedreading_bookmark_11");}});});feedreading_limit_display();feedreading_category_observer();}