
jQuery(function($){if($('.feedreading_blogroll_bookmarklist').length>0){$.getScript("http://www.google.com/jsapi",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 days ago",days);}else if(days==1){return"yesterday ";}else if(days<1&&hours>1){return String.sprintf("%d hrs ago",hours);}else if(days<1&&hours==1){return"in the last hour";}else if(days<1&&hours<1){return"just recently";}}
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;entry=feed.entries[0];try{then=new Date(entry.publishedDate).getTime();}catch(dateException){}
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});}
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
liArray=$("#feedreading_blogroll_ > li"),liArraySingle_3=$("#single-3_feedreading_blogroll_ > li");for(var i=0;i<liArray.length;i++){if(i>-1){$(liArray[i]).css("display","none");}}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=false,$hasCompleteAge=true,isComplete=false,$sortArray=$("#feedreading_blogroll_ >li"),$hasCompleteAgeSingle3=true,isCompleteSingle3=false,$liSortSingleArray3=$("#single-3_feedreading_blogroll_ > li");for(var i=0;i<$sortArray.length;i++){var $age_=$($sortArray[i]).attr("age");if($age_===null||$age_==""||isNaN($age_)){$hasCompleteAge=false;}}
if($sortArray.length==0){$hasCompleteAge=true;}
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){}}
if($hasCompleteAge&&!isComplete){try{$("#feedreading_blogroll_ > li").frbrsort(sortAlpha).appendTo("#feedreading_blogroll_ ");isComplete=true;}catch(e){}}
$allCompleted=$hasCompleteAge&&isCompleteSingle3;if($allCompleted){clearInterval(myInterval);}
return false;}
function feedreading_rolling(){var
$blogroll_all=$('#feedreading_blogroll_'),$blogroll_all_size=$blogroll_all.find('li').size(),$blogroll_all_limit=($blogroll_all_size>5)?(5):($blogroll_all_size-1),$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);$('#feedreading_blogroll_ > li').css("display","none");$blogroll_all.feedReadingBlogrollSpy($blogroll_all_limit,4000);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;}
function initializeBR(){var feed2=new google.feeds.Feed("http://wordpress.org/development/feed/");addZeroAge("#feedreading_bookmark_119");addZeroAge("#feedreading_bookmark_27");addZeroAge("#feedreading_bookmark_66");addZeroAge("#feedreading_bookmark_86");addZeroAge("#feedreading_bookmark_116");addZeroAge("#feedreading_bookmark_35");addZeroAge("#feedreading_bookmark_95");addZeroAge("#feedreading_bookmark_79");addZeroAge("#feedreading_bookmark_21");addZeroAge("#feedreading_bookmark_42");addZeroAge("#feedreading_bookmark_41");addZeroAge("#feedreading_bookmark_117");addZeroAge("#feedreading_bookmark_104");addZeroAge("#feedreading_bookmark_106");addZeroAge("#feedreading_bookmark_18");addZeroAge("#feedreading_bookmark_67");addZeroAge("#feedreading_bookmark_120");addZeroAge("#feedreading_bookmark_71");addZeroAge("#feedreading_bookmark_31");addZeroAge("#feedreading_bookmark_72");addZeroAge("#feedreading_bookmark_92");if($("#feedreading_bookmark_2").length>0){feed2.setNumEntries(1);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");}});}
addZeroAge("#feedreading_bookmark_114");addZeroAge("#feedreading_bookmark_1");addZeroAge("#feedreading_bookmark_51");addZeroAge("#feedreading_bookmark_13");addZeroAge("#feedreading_bookmark_37");addZeroAge("#feedreading_bookmark_32");addZeroAge("#feedreading_bookmark_57");addZeroAge("#feedreading_bookmark_74");addZeroAge("#feedreading_bookmark_44");addZeroAge("#feedreading_bookmark_53");addZeroAge("#feedreading_bookmark_64");addZeroAge("#feedreading_bookmark_39");addZeroAge("#feedreading_bookmark_49");addZeroAge("#feedreading_bookmark_80");addZeroAge("#feedreading_bookmark_19");addZeroAge("#feedreading_bookmark_29");addZeroAge("#feedreading_bookmark_45");addZeroAge("#feedreading_bookmark_70");addZeroAge("#feedreading_bookmark_108");addZeroAge("#feedreading_bookmark_63");addZeroAge("#feedreading_bookmark_22");addZeroAge("#feedreading_bookmark_76");addZeroAge("#feedreading_bookmark_16");addZeroAge("#feedreading_bookmark_115");addZeroAge("#feedreading_bookmark_82");addZeroAge("#feedreading_bookmark_89");addZeroAge("#feedreading_bookmark_110");addZeroAge("#feedreading_bookmark_36");addZeroAge("#feedreading_bookmark_26");addZeroAge("#feedreading_bookmark_8");addZeroAge("#feedreading_bookmark_73");addZeroAge("#feedreading_bookmark_81");addZeroAge("#feedreading_bookmark_118");addZeroAge("#feedreading_bookmark_97");addZeroAge("#feedreading_bookmark_100");addZeroAge("#feedreading_bookmark_46");addZeroAge("#feedreading_bookmark_62");addZeroAge("#feedreading_bookmark_85");addZeroAge("#feedreading_bookmark_65");addZeroAge("#feedreading_bookmark_107");addZeroAge("#feedreading_bookmark_88");addZeroAge("#feedreading_bookmark_54");addZeroAge("#feedreading_bookmark_14");addZeroAge("#feedreading_bookmark_10");addZeroAge("#feedreading_bookmark_69");addZeroAge("#feedreading_bookmark_103");addZeroAge("#feedreading_bookmark_60");addZeroAge("#feedreading_bookmark_43");addZeroAge("#feedreading_bookmark_75");addZeroAge("#feedreading_bookmark_98");addZeroAge("#feedreading_bookmark_87");addZeroAge("#feedreading_bookmark_93");addZeroAge("#feedreading_bookmark_112");addZeroAge("#feedreading_bookmark_91");addZeroAge("#feedreading_bookmark_101");addZeroAge("#feedreading_bookmark_55");addZeroAge("#feedreading_bookmark_68");addZeroAge("#feedreading_bookmark_111");addZeroAge("#feedreading_bookmark_59");addZeroAge("#feedreading_bookmark_52");addZeroAge("#feedreading_bookmark_34");addZeroAge("#feedreading_bookmark_40");addZeroAge("#feedreading_bookmark_20");addZeroAge("#feedreading_bookmark_84");addZeroAge("#feedreading_bookmark_5");addZeroAge("#feedreading_bookmark_96");addZeroAge("#feedreading_bookmark_30");addZeroAge("#feedreading_bookmark_24");addZeroAge("#feedreading_bookmark_99");addZeroAge("#feedreading_bookmark_23");addZeroAge("#feedreading_bookmark_83");addZeroAge("#feedreading_bookmark_121");addZeroAge("#feedreading_bookmark_47");addZeroAge("#feedreading_bookmark_105");addZeroAge("#feedreading_bookmark_109");addZeroAge("#feedreading_bookmark_102");addZeroAge("#feedreading_bookmark_38");addZeroAge("#feedreading_bookmark_90");addZeroAge("#feedreading_bookmark_94");addZeroAge("#feedreading_bookmark_3");addZeroAge("#feedreading_bookmark_4");addZeroAge("#feedreading_bookmark_113");addZeroAge("#feedreading_bookmark_48");addZeroAge("#feedreading_bookmark_6");addZeroAge("#feedreading_bookmark_15");addZeroAge("#feedreading_bookmark_78");addZeroAge("#feedreading_bookmark_12");addZeroAge("#feedreading_bookmark_56");addZeroAge("#feedreading_bookmark_61");addZeroAge("#feedreading_bookmark_25");addZeroAge("#feedreading_bookmark_77");addZeroAge("#feedreading_bookmark_7");addZeroAge("#feedreading_bookmark_11");addZeroAge("#feedreading_bookmark_58");addZeroAge("#feedreading_bookmark_119");addZeroAge("#feedreading_bookmark_27");addZeroAge("#feedreading_bookmark_66");addZeroAge("#feedreading_bookmark_86");addZeroAge("#feedreading_bookmark_116");addZeroAge("#feedreading_bookmark_35");addZeroAge("#feedreading_bookmark_95");addZeroAge("#feedreading_bookmark_79");addZeroAge("#feedreading_bookmark_21");addZeroAge("#feedreading_bookmark_41");addZeroAge("#feedreading_bookmark_117");addZeroAge("#feedreading_bookmark_104");addZeroAge("#feedreading_bookmark_106");addZeroAge("#feedreading_bookmark_18");addZeroAge("#feedreading_bookmark_67");addZeroAge("#feedreading_bookmark_120");addZeroAge("#feedreading_bookmark_71");addZeroAge("#feedreading_bookmark_31");addZeroAge("#feedreading_bookmark_72");addZeroAge("#feedreading_bookmark_92");addZeroAge("#feedreading_bookmark_114");addZeroAge("#feedreading_bookmark_51");addZeroAge("#feedreading_bookmark_13");addZeroAge("#feedreading_bookmark_37");addZeroAge("#feedreading_bookmark_32");addZeroAge("#feedreading_bookmark_57");addZeroAge("#feedreading_bookmark_74");addZeroAge("#feedreading_bookmark_44");addZeroAge("#feedreading_bookmark_53");addZeroAge("#feedreading_bookmark_64");addZeroAge("#feedreading_bookmark_39");addZeroAge("#feedreading_bookmark_49");addZeroAge("#feedreading_bookmark_80");addZeroAge("#feedreading_bookmark_19");addZeroAge("#feedreading_bookmark_29");addZeroAge("#feedreading_bookmark_45");addZeroAge("#feedreading_bookmark_70");addZeroAge("#feedreading_bookmark_108");addZeroAge("#feedreading_bookmark_63");addZeroAge("#feedreading_bookmark_22");addZeroAge("#feedreading_bookmark_76");addZeroAge("#feedreading_bookmark_16");addZeroAge("#feedreading_bookmark_115");addZeroAge("#feedreading_bookmark_82");addZeroAge("#feedreading_bookmark_89");addZeroAge("#feedreading_bookmark_110");addZeroAge("#feedreading_bookmark_36");addZeroAge("#feedreading_bookmark_26");addZeroAge("#feedreading_bookmark_8");addZeroAge("#feedreading_bookmark_73");addZeroAge("#feedreading_bookmark_81");addZeroAge("#feedreading_bookmark_118");addZeroAge("#feedreading_bookmark_97");addZeroAge("#feedreading_bookmark_100");addZeroAge("#feedreading_bookmark_46");addZeroAge("#feedreading_bookmark_62");addZeroAge("#feedreading_bookmark_85");addZeroAge("#feedreading_bookmark_107");addZeroAge("#feedreading_bookmark_88");addZeroAge("#feedreading_bookmark_54");addZeroAge("#feedreading_bookmark_14");addZeroAge("#feedreading_bookmark_10");addZeroAge("#feedreading_bookmark_69");addZeroAge("#feedreading_bookmark_103");addZeroAge("#feedreading_bookmark_60");addZeroAge("#feedreading_bookmark_43");addZeroAge("#feedreading_bookmark_75");addZeroAge("#feedreading_bookmark_98");addZeroAge("#feedreading_bookmark_87");addZeroAge("#feedreading_bookmark_93");addZeroAge("#feedreading_bookmark_112");addZeroAge("#feedreading_bookmark_91");addZeroAge("#feedreading_bookmark_101");addZeroAge("#feedreading_bookmark_55");addZeroAge("#feedreading_bookmark_68");addZeroAge("#feedreading_bookmark_111");addZeroAge("#feedreading_bookmark_59");addZeroAge("#feedreading_bookmark_52");addZeroAge("#feedreading_bookmark_34");addZeroAge("#feedreading_bookmark_40");addZeroAge("#feedreading_bookmark_20");addZeroAge("#feedreading_bookmark_84");addZeroAge("#feedreading_bookmark_96");addZeroAge("#feedreading_bookmark_30");addZeroAge("#feedreading_bookmark_24");addZeroAge("#feedreading_bookmark_99");addZeroAge("#feedreading_bookmark_23");addZeroAge("#feedreading_bookmark_83");addZeroAge("#feedreading_bookmark_121");addZeroAge("#feedreading_bookmark_47");addZeroAge("#feedreading_bookmark_105");addZeroAge("#feedreading_bookmark_109");addZeroAge("#feedreading_bookmark_38");addZeroAge("#feedreading_bookmark_90");addZeroAge("#feedreading_bookmark_94");addZeroAge("#feedreading_bookmark_113");addZeroAge("#feedreading_bookmark_48");addZeroAge("#feedreading_bookmark_15");addZeroAge("#feedreading_bookmark_78");addZeroAge("#feedreading_bookmark_12");addZeroAge("#feedreading_bookmark_56");addZeroAge("#feedreading_bookmark_61");addZeroAge("#feedreading_bookmark_25");addZeroAge("#feedreading_bookmark_77");addZeroAge("#feedreading_bookmark_58");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);$insert.show();$(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;};});