<?xml version="1.0" encoding="UTF-8" ?>


<Module>

<ModulePrefs title="New Orleans Saints News"
author="BloggerGadgets.net"
author_email="gadgets@bloggergadgets.net"
directory_title="New Orleans Saints News"
description="New Orleans Saints News. This gadget will display the latest New Orleans Saints News. It will also give you the option to display just the title of the news story or include the date and summary. Latest news and information about the New Orleans Saints. Sources include The Houma Courier, The AP, and Yahoo Sports."
height="350"
width="235"
category="news"
scrolling="true"
singleton="false" 
title_url="http://www.bloggergadgets.net/"
screenshot="http://bloggergadgets.net/gadgets/feeds/football/saints/screen.png" 
thumbnail="http://bloggergadgets.net/gadgets/feeds/football/saints/thumb.jpg" />


  <UserPref name="show_date" display_name="Show Dates?" datatype="bool"/>

  <UserPref name="show_summ" display_name="Show Summaries?" datatype="bool"/>
  <UserPref name="num_entries" display_name="Number of Entries:" />

  <Content type="html">
 <![CDATA[ 
<center>
<script type="text/javascript">
ch_client = "crimson12";
ch_width = 468;
ch_height = 60;
ch_type = "mpu";
ch_sid = "Wide Gadget";
ch_alternate_ad_url = "http://bloggergadgets.net/gadgets/ads/feedad.html";
ch_color_site_link = "#0000CC";
ch_color_title = "#0000CC";
ch_color_border = "#FFFFFF";
ch_color_text = "#000000";
ch_color_bg = "#FBFF82";
</script>
<script src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script>
<br />
<script src="http://www.bloggergadgets.net/gadgets/LargeArray.js"></script>
</center>
 <table align="center" bgcolor="#ffffff"><tr><div align="center"><a href="http://bloggergadgets.net" target="_blank"><img src="http://bloggergadgets.net/gadgets/feeds/football/saints/logo.jpg" alt="Sports News" border="0"></a>
     <br>  </div></tr>
 
 <tr>
    
	<style> #content_div { font-size: 80%;  margin: 5px; background-color: #FFFFff;} </style>
	
 
    <div id=content_div></div>
     <script type="text/javascript">

     // Get userprefs
     var prefs = new _IG_Prefs();
     var showdate = prefs.getBool("show_date");
     var summary = prefs.getBool("show_summ");
     var entries = prefs.getInt("num_entries");

     // If user wants to display more than 100 entries, display an error
     // and set the value to 100, the max allowed.
     if (entries > 100)
     {
         alert("You cannot display more than 100 entries.");
         entries = 100;
     }

     // Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
     // the specified URL. Then combine the data with HTML markup for display in
     // the gadget.
     _IG_FetchFeedAsJSON("http://sports.yahoo.com/nfl/teams/nor/rss.xml",
              function(feed) { 
              if (feed == null){ 
                 alert("There is no data.");
                 return;
              }
     
         // Start building HTML string that will be displayed in gadget.
         var html = "";

         // Access the fields in the feed
         html += "<div><b>New Orleans Saints News</b></div>";
     
         // Access the data for a given entry
         if (feed.Entry) {
             for (var i = 0; i < feed.Entry.length; i++) {
                 html += "<div>"

                 + "<a target='_blank' href='" + feed.Entry[i].Link + "'>"
                 + feed.Entry[i].Title
                 + "</a> ";
                 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(); 
                 } 
                 if (summary==true) { 
                     html += "<br><i>" + feed.Entry[i].Summary + "</i>";
                 }
                 html += "</div>";
             }
         }
     _gel("content_div").innerHTML = html;

     // The rest of the function parameters, which are optional: the number
     // of entries to return, and whether to return summaries.
     }, entries, summary);
 
  </script>
</tr></table>
<p/>
<a href="http://whos.amung.us/show/bd4mg4sv"><img border="0" alt="Football" width="1" src="http://whos.amung.us/cwidget/bd4mg4sv/0000000072bc.png" height="1"/></a>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=6187469; 
var sc_invisible=1; 
var sc_security="6003388a"; 
</script>

<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
class="statcounter"></div></noscript>
<!-- End of StatCounter Code -->
]]>
</Content>
</Module>