(function($){if(!window.google){return;}
if(!google.feeds)google.load("feeds","1");$.fn.gFeed=function(options){var opts=jQuery.extend({target:this,max:10},options||{});var g=new google.feeds.FeedControl();this.each(function(){var url=this.href||opts.url;var title=opts.title||this.title||$(this).text();g.addFeed(url,title);g.setNumEntries(opts.max);g.setLinkTarget(google.feeds.LINK_TARGET_BLANK);});$(opts.target).each(function(){g.draw(this,opts.tabs?{drawMode:google.feeds.FeedControl.DRAW_MODE_TABBED}:null);});return this;};})(jQuery);
