
jQuery(function($){if($('.feedreading_blogroll_bookmarklist').length>0){$.getScript("http://www.google.com/jsapi?key=ABQIAAAAF0fVNwXngB8Inp1743W1shSVkkhceOwmWgoJML7THQhPHySl7xRn0NH65HOZPLGMZHOBWDeQskPo1g",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});}
$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;return false;}
function feedreading_automatic_sort(){var $allCompleted,;$allCompleted=;if($allCompleted){clearInterval(myInterval);feedreading_limit_display();}
return false;}
function feedreading_rolling(){var;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(){addZeroAge("#feedreading_bookmark_17");addZeroAge("#feedreading_bookmark_14");addZeroAge("#feedreading_bookmark_8");addZeroAge("#feedreading_bookmark_19");addZeroAge("#feedreading_bookmark_13");addZeroAge("#feedreading_bookmark_16");addZeroAge("#feedreading_bookmark_10");addZeroAge("#feedreading_bookmark_11");addZeroAge("#feedreading_bookmark_15");addZeroAge("#feedreading_bookmark_12");addZeroAge("#feedreading_bookmark_9");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;};});