// AsianTelephones.com - i News = Web 2.0 + ajax + google api + yahoo tabs. V 2011.09.09 @ Tecni.com
function asia_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 asia_js(url) { var js = document.createElement('script'); js.src=url; js.type='text/javascript'; document.getElementsByTagName('head').item(0).appendChild(js); }
asia_cs('http://yui.yahooapis.com/2.5.2/build/fonts/fonts-min.css');
asia_cs('http://yui.yahooapis.com/2.5.2/build/tabview/assets/skins/sam/tabview.css');
asia_js("http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js");
asia_js("http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js");
asia_js('http://yui.yahooapis.com/2.5.2/build/tabview/tabview-min.js');
asia_js('http://www.google.com/jsapi?key=ABQIAAAAB8Kdohd2JRKnoKDEThvpABSuI3WOOFpWTJZ-kyvyUOXv4JOtixRlcVMOYCEwnvv6Xx7I6IoX9y4iKQ');
document.getElementsByTagName('body').item(0).className = 'yui-skin-sam';
google.load("feeds", "1"); 
function asia_rss() {

rss = new google.feeds.FeedControl(); rss.addFeed("http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&q=asia&cf=all&output=rss", "Asia"); rss.setNumEntries(10); rss.draw(document.getElementById("rss1"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&q=asia+phones&cf=all&output=rss", "Phones"); rss.setNumEntries(10); rss.draw(document.getElementById("rss2"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&topic=t&output=rss","News"); rss.setNumEntries(10); rss.draw(document.getElementById("rss3"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://news.search.yahoo.com/news/rss?p=asia&ei=UTF-8&fl=0&x=wrt", "Asian"); rss.setNumEntries(10); rss.draw(document.getElementById("rss4"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://bits.blogs.nytimes.com/feed/", "World"); rss.setNumEntries(10); rss.draw(document.getElementById("rss5"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://pheedo.msnbc.msn.com/id/3032091/device/rss", "Global"); rss.setNumEntries(10); rss.draw(document.getElementById("rss6"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://feeds.abcnews.com/abcnews/technologyheadlines", "Tech"); rss.setNumEntries(10); rss.draw(document.getElementById("rss7"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://rss.sciam.com/ScientificAmerican-News", "Science"); rss.setNumEntries(10); rss.draw(document.getElementById("rss8"));
rss = new google.feeds.FeedControl(); rss.addFeed("http://AsianTelephones.Com/asiantelephones/asiantelephones.xml", "Asia Telephones"); rss.setNumEntries(10); rss.draw(document.getElementById("rss9"));
}
google.setOnLoadCallback(asia_rss);

