<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs 
  title="Top Sports News CBSSports.com" 
  title_url="http://www.cbssports.com/" 
  directory_title="CBSSports.com Latest Sports News" 
  description="Breaking sport news - CBSSports.com Find the latest NBA news and rumors at CBSSports.com, your NBA news and information source. Stay up to date on NBA scores, standings, stats and transactions. CBSSports.com features live scoring and news for NFL football, MLB baseball, NBA basketball, NHL hockey, college basketball and football." 
  author="Sport News" 
  author_email="gadgets95@gmx.at" 
  author_affiliation="" 
  author_location="" 
  screenshot="http://i901.photobucket.com/albums/ac216/gadgets95/cbs-sports.png" 
  thumbnail="http://i901.photobucket.com/albums/ac216/gadgets95/cbs-sports-tn.jpg" 
  category="sports" category2="news" 
  scaling="true" 
  scrolling="true" 
  render_inline="optional" 
  
  height="300">
</ModulePrefs>
<UserPref name="num_entries" display_name="Number of news entries:" default_value="12" />
<UserPref name="show_date" display_name="Show Dates?" datatype="bool" default_value="true"/>
<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 showdate = prefs.getBool("show_date");
var entries = prefs.getInt("num_entries");

if (entries > 15)
{
  alert('Error: you cannot view more than 15 entries!');
  entries = 15;
}

_IG_FetchFeedAsJSON("http://feeds.cbssports.com/cbssportsline/home_news?" + 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>'
           + '<br>';
  if (showdate==true)
          {    
             // The feed entry Date field contains the timestamp in seconds
             // since Jan. 1, 1970. To convert it to the milliseconds needed
             // to initialize the JavaScript Date object with the correct date, 
             // multiply by 1000.
             var milliseconds = (feed.Entry[i].Date) * 1000;   
             var date = new Date(milliseconds);      
             html += date.toLocaleDateString();
             html += " ";
             html += date.toLocaleTimeString();             
          }          
      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 -->
<script type="text/javascript"><!--
google_ad_client = "pub-1080640683705319";
google_ad_slot = "4056076564";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>

]]>
</Content>
</Module>
