<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs 
  title="NPR.org Top News" 
  title_url="http://www.npr.org/" 
  directory_title="NPR.org Top News" 
  description="Get the latest top news from NPR.org . NPR news, audio, and podcasts. Coverage of breaking stories, national and world news, politics, business, science, technology, and extended coverage of major national and world events." 
  author="Top Stories" 
  author_email="gadgets95@gmx.at" 
  author_affiliation="" 
  author_location="" 
  screenshot="http://i901.photobucket.com/albums/ac216/gadgets95/npr.png" 
  thumbnail="http://i901.photobucket.com/albums/ac216/gadgets95/npr-tn.jpg" 
  scaling="true" 
  scrolling="true" 
  render_inline="optional" 
  
  height="300">
</ModulePrefs>
<UserPref name="num_entries" display_name="Number of news entries:" default_value="5" />
<Content type="html">
<![CDATA[

<style type="text/css">
  * {margin:0; padding:0;font-family:Arial;font-size:11px;}
  #rx_header {background-color: #336699;height:18px;overflow:hidden;padding-left:5px;}
  #rx_header a {display:block;height:18px;line-height:18px;font-weight:bold;color:white;text-decoration:none;}
  #rx_content {list-style-type:none;}
  #rx_content li {clear:both;padding:5px;}
  #rx_content a {font-weight:bold;color:#336699;}
  #rx_content div {padding-top:5px;padding-bottom:5px;}
  #rx_content img {border:0;float:left;margin-right:5px;display:inline;}
</style>

<div style="overflow-y: auto; overflow-x: hidden;">

<script type="text/javascript"><!--
google_ad_client = "pub-1080640683705319";
/* 468x15, #336699 */
google_ad_slot = "4903707886";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


<div id=content_div></div>
<script type="text/javascript">


var prefs = new _IG_Prefs(__MODULE_ID__);
var entries = prefs.getInt("num_entries");

if (entries > 10)
{
  alert('Error: you cannot view more than 10 entries!');
  entries = 10;
}

_IG_FetchFeedAsJSON("http://feeds.feedburner.com/npr/nniv?" + Math.random(),
  function(feed) {

    if (null == feed || undefined == feed || 'undefined' == feed) {
      return;
    }

    var html = '';

    html += '<h1 id="rx_header"></h1>';
    html += '<ul id="rx_content">';

    if (feed.Entry) {
      for (var i = 0; i < feed.Entry.length && i <= entries; i++) {
      html += '<li>'
           + '<a target="_blank" href="' + feed.Entry[i].Link + '">'
           + feed.Entry[i].Title
           + '</a>';
      html += '<div>';
      html += feed.Entry[i].Summary + '</div>';
      html += '</li>';
      }
    }
    html += '</ul>';
    _gel("content_div").innerHTML = html;

  }
  , entries , true);
</script>



<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=6002295; 
var sc_invisible=1; 
var sc_security="100c772c"; 
</script>

<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
class="statcounter"><a title="counter on godaddy"
href="http://www.statcounter.com/godaddy_website_tonight/"
target="_blank"><img class="statcounter"
src="http://c.statcounter.com/6002295/0/100c772c/1/" alt="counter on
godaddy" ></a></div></noscript>
<!-- End of StatCounter Code -->

</div>

]]>
</Content>
</Module>

