<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Superesportes - Futebol" title_url="http://www.mg.superesportes.com.br/futebol/futebol-nacional/capa_futebol_nacional/index.shtml" description="Cobertura completa dos principais times e campeonatos do Brasil e do mundo." category="sports" category2="news" width="320" height="140" thumbnail="http://hosting.gmodules.com/ig/gadgets/file/101066607012473798992/uai_super_th.jpg" screenshot="http://hosting.gmodules.com/ig/gadgets/file/101066607012473798992/uai_super.jpg" author="Superesportes" author_email="uaigadgets.feedback@gmail.com">
<Require feature="analytics" />
<Require feature="dynamic-height" />
<Require feature="setprefs" />
</ModulePrefs>
<UserPref name="num_entries" display_name="Mostrar" datatype="enum" default_value="3">
  <EnumValue value="1" display_value="1 entrada" /> 
  <EnumValue value="2" display_value="2 entradas" /> 
  <EnumValue value="3" display_value="3 entradas" /> 
  <EnumValue value="4" display_value="4 entradas" /> 
  <EnumValue value="5" display_value="5 entradas" /> 
  <EnumValue value="6" display_value="6 entradas" /> 
  <EnumValue value="7" display_value="7 entradas" /> 
  <EnumValue value="8" display_value="8 entradas" /> 
  <EnumValue value="9" display_value="9 entradas" /> 
  <EnumValue value="10" display_value="10 entradas" />
  <EnumValue value="11" display_value="11 entradas" />
  <EnumValue value="12" display_value="12 entradas" />
  <EnumValue value="13" display_value="13 entradas" />
  <EnumValue value="14" display_value="14 entradas" />
  <EnumValue value="15" display_value="15 entradas" />
  <EnumValue value="16" display_value="16 entradas" />
  <EnumValue value="17" display_value="17 entradas" />
  <EnumValue value="18" display_value="18 entradas" />
  <EnumValue value="19" display_value="19 entradas" />
  <EnumValue value="20" display_value="20 entradas" />
  </UserPref>
<Content type="html">
<![CDATA[
<script>
// Track this gadget using Google Analytics.
_IG_Analytics("UA-2024638-4", "/esportes_nacional");
</script>
<style>#content_div {font-family:verdana, Helvetica, sans-serif;font-size:80%; color:#333; margin: 2px; background-color: #fff;}#content_div a {text-decoration:none; color:#375225;}#content_div a:hover {text-decoration:underline; color:#333335;}</style>
<div id=content_div></div>
<script type="text/javascript">
// Get userprefs
var prefs = new _IG_Prefs(__MODULE_ID__);
var NUM_ENTRIES = prefs.getInt("num_entries");

_IG_FetchFeedAsJSON(
"http://www.mg.superesportes.com.br/rss/rss_futebol_nacional/index.shtml",
function(feed) {
if (feed == null){
alert("Sem dados para exibir.");
return;
}
var html = "";
if (feed.Entry) {
for (var i = 0; i < feed.Entry.length; i++) {
html += "<div>"
+ "<div style='margin-top:7px'></div><a target='_blank' href='" + feed.Entry[i].Link + "'>"
+ feed.Entry[i].Title
+ "</a></div>";
}
}
_gel("content_div").innerHTML = html;
_IG_AdjustIFrameHeight();
}, NUM_ENTRIES);
</script>
]]>
</Content>
</Module>
