// JS Buscar Costa Rica .Com - Country Directory  News Web 2.0 = ajax + google api + yahoo tabs. V 2009.02.02 by aoviedo
function costarica_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 costarica_js(url) { var js = document.createElement('script'); js.src=url;  js.type='text/javascript';                     document.getElementsByTagName('head').item(0).appendChild(js); }
costarica_cs('http://yui.yahooapis.com/2.5.2/build/fonts/fonts-min.css');
costarica_cs('http://yui.yahooapis.com/2.5.2/build/tabview/assets/skins/sam/tabview.css');
costarica_js("http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js");
costarica_js("http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js");
costarica_js('http://yui.yahooapis.com/2.5.2/build/tabview/tabview-min.js');
costarica_js('http://www.google.com/jsapi?key=ABQIAAAAB8Kdohd2JRKnoKDEThvpABSuI3WOOFpWTJZ-kyvyUOXv4JOtixRlcVMOYCEwnvv6Xx7I6IoX9y4iKQ');
document.getElementsByTagName('body').item(0).className = 'yui-skin-sam';
google.load("feeds", "1"); 
function costarica_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://news.google.es/news?q=telefono&output=rss", "Telefonos");								rss.setNumEntries(10); rss.draw(document.getElementById("rss2"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://news.google.com/news?cf=all&ned=es_mx&hl=es&topic=w&output=rss", "Internacional");	rss.setNumEntries(10); rss.draw(document.getElementById("rss3"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://news.search.yahoo.com/news/rss?p=phone&ei=UTF-8&fl=0&x=wrt", "Moviles");				rss.setNumEntries(10); rss.draw(document.getElementById("rss4"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://www.topix.net/rss/world/costa-rica", "Latest");										rss.setNumEntries(10); rss.draw(document.getElementById("rss5"));
}
google.setOnLoadCallback(costarica_rss);

