// NoticiasdeCostaRica.Com - Costa Rica Noticias Web 2.0 = ajax + google api + yahoo yui. V 2010.03.03 by tecni.com
function noticiasdecostarica_cs(url) { var cs = document.createElement('link'); cs.href=url; cs.type='text/css'; cs.rel = 'stylesheet'; 	document.getElementsByTagName('head').item(0).appendChild(cs); }
function noticiasdecostarica_js(url) { var js = document.createElement('script'); js.src=url; js.type='text/javascript'; document.getElementsByTagName('head').item(0).appendChild(js); }
noticiasdecostarica_cs('http://yui.yahooapis.com/2.5.2/build/fonts/fonts-min.css');
noticiasdecostarica_cs('http://yui.yahooapis.com/2.5.2/build/tabview/assets/skins/sam/tabview.css');
noticiasdecostarica_js("http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js");
noticiasdecostarica_js("http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js");
noticiasdecostarica_js('http://yui.yahooapis.com/2.5.2/build/tabview/tabview-min.js');
noticiasdecostarica_js('http://www.google.com/jsapi?key=ABQIAAAAB8Kdohd2JRKnoKDEThvpABSuI3WOOFpWTJZ-kyvyUOXv4JOtixRlcVMOYCEwnvv6Xx7I6IoX9y4iKQ');
document.getElementsByTagName('body').item(0).className = 'yui-skin-sam';
google.load("feeds", "1"); 
function noticiasdecostarica_rss() {
rss = new google.feeds.FeedControl(); rss.addFeed("http://news.google.es/news?q=costa+rica&output=rss", "Noticias");		rss.setNumEntries(10); rss.draw(document.getElementById("rss1"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=portada", "La Nación");			rss.setNumEntries(10); rss.draw(document.getElementById("rss2"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://www.teletica.com/rss/9nacionales.xml", "Telenoticias");	rss.setNumEntries(10); rss.draw(document.getElementById("rss3"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://aldia.cr/servicios/rss/portada.xml", "Al Día");		rss.setNumEntries(10); rss.draw(document.getElementById("rss4"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://www.larepublica.net/app/cms/www/rss/nacionales.xml", "La Republica");		rss.setNumEntries(10); rss.draw(document.getElementById("rss5"));

rss = new google.feeds.FeedControl(); rss.addFeed("http://news.google.com/news?cf=all&ned=es_mx&hl=es&topic=w&output=rss", " Google Latinoamerica"); rss.setNumEntries(10); rss.draw(document.getElementById("rss6"));

rss = new google.feeds.FeedControl(); rss.addFeed("http://news.search.yahoo.com/news/rss?p=costa+rica&ei=UTF-8&fl=0&x=wrt", "Yahoo Costa Rica");		rss.setNumEntries(10); rss.draw(document.getElementById("rss7"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://topics.nytimes.com/top/news/international/countriesandterritories/costarica/index.html?rss=1", "NY Times CR");		rss.setNumEntries(10); rss.draw(document.getElementById("rss8"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://www.topix.net/rss/world/costa-rica", " Topix Costa Rica"); rss.setNumEntries(10); rss.draw(document.getElementById("rss9"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://www.imn.ac.cr/imn/rss/EstadoActualPorCiudad.aspx", "Weather Costa Rica");	rss.setNumEntries(10); rss.draw(document.getElementById("rssA"));

}
google.setOnLoadCallback(noticiasdecostarica_rss);
/* google.feeds.FeedControl.DRAW_MODE_TABBED */
