


document.write('<script language="javascript">\n');

document.write('function doOnLoad56adfecc0c2b8ba783271018d481d3d1(value)\n');
document.write('{\n');
document.write('    document.getElementById(\'bucket_56adfecc0c2b8ba783271018d481d3d1\').innerHTML = \'a carregar...<br />\';\n');
document.write('}\n');

document.write('function doOnComplete56adfecc0c2b8ba783271018d481d3d1(obj)\n');
document.write('{\n');
document.write('    var campo = document.getElementById(\'bucket_56adfecc0c2b8ba783271018d481d3d1\');\n');
document.write('    campo.innerHTML = \'\';\n');
document.write('    var title = false;\n');
document.write('    var desc = false;\n');
document.write('    var link = false;\n');
document.write('    var items = obj.rss.channel.item;\n');
document.write('    if (typeof items == "undefined") items = []\n');
document.write('    else if (! SAPO.Utility.Variable.isArray(items)) items = [items];\n');
document.write('    var oTbl = document.createElement("Table");\n');
document.write('    oTbl.setAttribute("cellspacing", "2");\n');
document.write('    oTbl.setAttribute("cellpadding", "0");\n');
document.write('    oTbl.setAttribute("border", "0");\n');
document.write('    for(var i=0; i < items.length && i < 5; i++) {\n');
document.write('            var  oTR= oTbl.insertRow(i);\n');
document.write('            var  oTD= oTR.insertCell(0);\n');
document.write('            link = items[i].link;\n');
document.write('            oTD.innerHTML += \'<a class="feed-title" href="\' + link.replace(/\\/$/, "") + \'" target="_blank"><img src="\' + link + \'s100x100" border="0"></a>\';\n');
document.write('    }\n');
document.write('    campo.appendChild(oTbl);');
document.write('}\n');

document.write('function doOnTimeout56adfecc0c2b8ba783271018d481d3d1()\n');
document.write('{\n');
document.write('	document.getElementById(\'bucket_56adfecc0c2b8ba783271018d481d3d1\').innerHTML += \'Timeout ao ler o feed<br />\';\n');
document.write('}\n');

document.write('<\/script>\n');

document.write('<div class="feed-box" id="bucket_56adfecc0c2b8ba783271018d481d3d1"></div>\n');
document.write('<script language="javascript">\n');
document.write('var syndicationObj = new SAPO.Communication.Syndication();\n');
document.write('var id_56adfecc0c2b8ba783271018d481d3d1 = syndicationObj.push(\'http://services.sapo.pt/Transformer/RSSOrAtomToJSON?url=http://fotos.ua.sapo.pt/rss?u=catia-dias&limit=5\', {onComplete:doOnComplete56adfecc0c2b8ba783271018d481d3d1, onLoading:doOnLoad56adfecc0c2b8ba783271018d481d3d1, onTimeout:doOnTimeout56adfecc0c2b8ba783271018d481d3d1});\n');
document.write('syndicationObj.run(id_56adfecc0c2b8ba783271018d481d3d1);\n');
document.write('<\/script>\n');
