<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Calorie cibi e bevande" description="Calorie dei cibi e delle bevande: un elenco di cibi e bevande con il relativo valore di calorie" title_url="http://www.facilegadget.it" author="FacileGadget" author_email="info@facilegadget.it" author_location="Italia" author_link="http://www.facilegadget.it" scrolling="true" height="300" screenshot="http://facilegadget.googlecode.com/svn/trunk/calorie/screenshot.png" thumbnail="http://facilegadget.googlecode.com/svn/trunk/calorie/thumbnail.png" >
<Require feature="analytics" />
<Require feature="setprefs" />
<Require feature="views"/>
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref name="counter" default_value="0" datatype="hidden" />
<Content type="html" view="home"><![CDATA[
<link rel="stylesheet" type="text/css" href="http://facilegadget.googlecode.com/svn/trunk/facilegadget.css" />
<script type="text/javascript">
//parametri gadget  
var nomegadget = "calorie";
var IDgadget = "33";
var piattaforma = "igoogle";
</script>
<script type="text/javascript" src="http://facilegadget.googlecode.com/svn/trunk/facilegadget.js"></script>
<style>
    i {color: #808080; font-weight: bold;}

    .frecce {font-size: 55px; line-height: 55px; text-decoration: none;}
    #content_div {font-size: 80%; margin: 10 0 5 10;}
    #title_div {font-size: 105%; text-align: center; margin-top: 0px; font-weight: bold;}
</style>
   
<script type="text/javascript">
var prefs = new _IG_Prefs();

function Contenuto() {
     var numero, numeromax, html;
     var title, link, descrizione;
     var i, j, url;
     var nodeList, itemList, node;

     url = "http://www.calorie.it/rss.php";

      _IG_FetchXmlContent(url, function (response) {
           if (response == null || typeof(response) != "object" || response.firstChild == null) {
              _gel("content_div").innerHTML = "<i>Nessun dato da visualizzare</i>";
              return;
           }

           itemList = response.getElementsByTagName("item");
           numero = itemList.length;

           html = '<a target="_blank" href="http://www.calorie.it"><img src="http://www.calorie.it/img/logo_calorie.jpg" width="220" border="0" /></a>';
           for (i = 0; i < numero; i++) {
             nodeList = itemList.item(i).childNodes;

             for (j = 0; j < nodeList.length ; j++) {
                node = nodeList.item(j);
                if (node.nodeName == "title") {
                   title = node.firstChild.nodeValue;
                }
                if (node.nodeName == "link") {
                   link = node.firstChild.nodeValue;
                }
                if (node.nodeName == "description") {
                   descrizione = node.firstChild.nodeValue;
                }
             }
             if (title != "") {
               html = html + "<p><a target='_blank' href='" + link + "'>" + title + "</a><br />";
               html = html + descrizione + "</p>";
             }
           }
           _gel("content_div").innerHTML = html;
           simply250();
    }, {refreshInterval: 120});
  }
</script>

<div id="content_div"></div>
<div align="center"><form target="_blank" action="http://www.calorie.it/?module=Search" method="post">
<input type="text" name="strKeywords" id="strKeywords"><input style="background-color: red; color: white;" type="submit" value="cerca">
</form></div>
 
<script type="text/javascript">
scriviby(IDgadget, nomegadget);
</script>

<div id="adv"></div>
<script type="text/javascript">
stats(nomegadget, piattaforma);
advcross('');

Contenuto();
_IG_AdjustIFrameHeight();
</script>
]]></Content>



<Content type="html" view="canvas"><![CDATA[
<link rel="stylesheet" type="text/css" href="http://facilegadget.googlecode.com/svn/trunk/facilegadget.css" />
<script type="text/javascript">
//parametri gadget  
var nomegadget = "calorie";
var IDgadget = "33";
var piattaforma = "igoogle";
</script>
<script type="text/javascript" src="http://facilegadget.googlecode.com/svn/trunk/facilegadget.js"></script>
<style type="text/css">
i {color: #808080; font-weight: bold;}

.frecce {font-size: 55px; line-height: 55px; text-decoration: none;}
#content_div {float: left; font-size: 80%; margin: 10 0 5 20;}
#title_div {font-size: 105%; text-align: center; margin-top: 0px; font-weight: bold;}
</style>

<script type="text/javascript">
var prefs = new _IG_Prefs();

function Contenuto() {
     var numero, numeromax, html;
     var title, link, descrizione;
     var i, j, url;
     var nodeList, itemList, node;

     url = "http://www.calorie.it/rss.php";

      _IG_FetchXmlContent(url, function (response) {
           if (response == null || typeof(response) != "object" || response.firstChild == null) {
              _gel("content_div").innerHTML = "<i>Nessun dato da visualizzare</i>";
              return;
           }

           itemList = response.getElementsByTagName("item");
           numero = itemList.length;

           html = '<center><a target="_blank" href="http://www.calorie.it"><img src="http://www.calorie.it/img/logo_calorie.jpg" width="270" border="0" /></a></center>';
           for (i = 0; i < numero; i++) {
             nodeList = itemList.item(i).childNodes;

             for (j = 0; j < nodeList.length ; j++) {
                node = nodeList.item(j);
                if (node.nodeName == "title") {
                   title = node.firstChild.nodeValue;
                }
                if (node.nodeName == "link") {
                   link = node.firstChild.nodeValue;
                }
                if (node.nodeName == "description") {
                   descrizione = node.firstChild.nodeValue;
                }
             }
             if (title != "") {
               html = html + "<p><a target='_blank' href='" + link + "'>" + title + "</a><br />";
               html = html + descrizione + "</p>";
             }
           }
           _gel("content_div").innerHTML = html;
    }, {refreshInterval: 120});
  }
</script>

<script type="text/javascript">
scrivialto(IDgadget, nomegadget);
</script>

<div id="coldx">
<div id="adv">
<script type="text/javascript"><!--
google_ad_client = "pub-2107864461172365";
google_ad_width = 200;//
google_ad_height = 200;
google_ad_format = "200x200_as";

google_ad_type = "text_image";
google_ad_channel ="2902";
google_color_border = "3971B2";
google_color_bg = "FFFFFF";
google_color_link = "3971B2";

google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript">
advcross('');
stats(nomegadget, piattaforma);
</script></div>
<script type="text/javascript">
scriviextra(IDgadget);
</script>
</div>

<div id="content_div"></div>
<div align="center"><form target="_blank" action="http://www.calorie.it/?module=Search" method="post">
<input type="text" name="strKeywords" id="strKeywords"><input style="background-color: red; color: white;" type="submit" value="cerca">
</form></div>

<script type="text/javascript">
Contenuto();

AutoLarghezzaContenuto();
_IG_AdjustIFrameHeight();
</script>
]]></Content>
</Module>
