/**
 *  Plugin which uses the Google AJAX Feed API for creating feed content
 *  @author:  M. Alsup (malsup at gmail dot com)
 *  @version: 1.0.2 (5/11/2007)
 *  Documentation and examples at: http://www.malsup.com/jquery/gfeed/
 *  Free beer and free speech. Enjoy!
 */
(function($) {

if (!window.google)  {
    alert('You must include the Google AJAX Feed API script');
    return;
}    

if (!google.feeds) google.load("feeds", "1");

$.fn.gFeed = function(options) {
    var opts = jQuery.extend({
        target: this,
        max:   8   // max number of items per feed
    }, 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);
    });
    
    $(opts.target).each(function() {
        g.draw(this, opts.tabs ? { drawMode: google.feeds.FeedControl.DRAW_MODE_TABBED } : null );
    });
    
    return this;
};

})(jQuery);


function ShowDivFeed(elemento)
{
	var stringCode;
	
	switch (elemento)
	{
		case 1:	
			stringCode = '<a class="feed" href="http://jquery.com/blog/feed/">jQuery Blog</a>';
						
		break;
		
		case 2:
			stringCode = '<a class="feed" href="http://www.learningjquery.com/feed/">Learning jQuery</a>';
		break;"http://today.java.net/pub/q/articles_rss?x-ver=1.0"
		
		case 3:
			stringCode = '<a class="feed" href="http://today.java.net/pub/q/articles_rss?x-ver=1.0">Latest articles from java.net</a>';
		break;
		
		case 4:
			stringCode = '<a class="feed" href="http://visualstudiomagazine.com/RSS-Feeds/Tech-Library.aspx">Visual Studio Tech-Libraries</a>';
		break;

		case 5:
			stringCode = '<a class="feed" href="http://weblogs.asp.net/aspnet-es-blogs/rss.aspx">Ultimos Blogs ASP.net</a>';
		break;

		case 6:
			stringCode = '<a class="feed" href="http://www.asp.net/Community/Articles/rss.ashx?count=25&mid=67">Ultimos Articulos ASP.net</a>';
		break;

		case 7:
			stringCode = '<a class="feed" href="http://www.oracle.com/rss/rss_ocom_oemnews.xml">Oracle Enterprise Management News</a>';
		break;

		case 8:
			stringCode = '<a class="feed" href="http://dev.mysql.com/downloads/rss.php">News MySQL</a>';
		break;

		case 9:
			stringCode = '<a class="feed" href="http://feeds.feedburner.com/SQLServerNews">News SQL Server</a>';
		break;

		case 10:
			stringCode = '<a class="feed" href="http://feeds.feedburner.com/AndroidNewsGoogleAndroidForums">News Android</a>';
		break;

}
	feeds.innerHTML = stringCode;
	
	// when the DOM is ready, convert the feed anchors into feed content 
    $(document).ready(function() { 
        $('a.feed').gFeed( { target: '#feeds', tabs: true } ); 
    }); 

}
