if(!window.RSS_EPD){window.RSS_EPD={}}RSS_EPD.domain="www.elpais.com.uy";RSS_EPD.onReady=null;RSS_EPD.win=window;RSS_EPD.doc=window.document;RSS_EPD.elementRSS={tipo:"diario",params:null};RSS_EPD.scripts=["feedReader_min.js"];RSS_EPD.css=["rssStyle.css","rssOvacion.css"];RSS_EPD.cssPath="http://"+RSS_EPD.domain+"/styles/09/";RSS_EPD.jsPath="http://"+RSS_EPD.domain+"/scripts/09/";RSS_EPD.loaded=0;RSS_EPD.active=false;RSS_EPD.rendered=false;RSS_EPD.containerId="epd-rss";RSS_EPD.config={tipo:"diario",feed:true,feedChannel:"ultmom",feedURL:"http://"+RSS_EPD.domain+"/formatos/rss/index.asp?type=mediarss&seccion=",logoUrl:"http://"+RSS_EPD.domain+"/formatos/rss/rss_vertical/images/logoELPAIS.gif",width:300,height:350,scrollable:true,numEntries:20,container:null,hideLogo:false,hideTitle:false};RSS_EPD.render_handler=function(elem){try{if(String(elem).indexOf(".js")!=-1){RSS_EPD.loaded++}if(RSS_EPD.loaded>=RSS_EPD.scripts.length){RSS_EPD.active=true;if(!RSS_EPD.rendered){RSS_EPD.renderAll(RSS_EPD.elementRSS.tipo,RSS_EPD.elementRSS.params)}}}catch(e){}return };RSS_EPD.epd_render=function(a,b,c,e){var m=window.document;var cssDomain=(b.indexOf("http://")==-1)?RSS_EPD.cssPath:"";if(c){var obj;if(a=="script"){obj=m.createElement("script");obj.type="text/javascript";obj.language="javascript";obj.src=RSS_EPD.jsPath+b}else{if(a=="css"){obj=m.createElement("link");obj.type="text/css";obj.href=cssDomain+b;obj.rel="stylesheet"}}var f=m.getElementsByTagName("head")[0];f||(f=m.body.parentNode.appendChild(m.createElement("head")));if(a=="script"){try{if(obj.readyState){obj.onreadystatechange=function(){if(obj.readyState=="loaded"||obj.readyState=="complete"){obj.onreadystatechange=null;RSS_EPD.render_handler(b)}}}else{obj.onload=function(){obj.onload=null;RSS_EPD.render_handler(b)}}}catch(e){}}f.appendChild(obj)}else{if(a=="script"){m.write('<script src="'+RSS_EPD.jsPath+b+'" type="text/javascript"><\/script>')}else{a=="css"&&m.write('<link href="'+cssDomain+b+'" type="text/css" rel="stylesheet"></link>')}}return };RSS_EPD.epd_feed_init=function(){var url=this.config.feedURL+this.config.feedChannel;var params={logoUrl:this.config.logoUrl,width:this.config.width,height:this.config.height,scrollable:this.config.scrollable,numEntries:this.config.numEntries,hideLogo:this.config.hideLogo,hideDomainWWW:true,hideTitle:this.config.hideTitle};var feed=new FeedReader(document.getElementById(this.containerId));feed.show(url,params);return false};RSS_EPD.epd_feed=function(){if(typeof FeedReader=="undefined"){RSS_EPD.epd_render("script","feedReader_min.js",true)}};RSS_EPD.epd_feed_clima=function(doc){var archivo="http://"+RSS_EPD.domain+"/formatos/rss/rss_vertical/clima.swf";var ancho="300";var alto="70";var version="7,0,19,0";var quality="high";var wmode="transparent";var s="";try{s+=('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width='+ancho+" height="+alto+">\n");s+=('<param name="movie" value='+archivo+" />\n");s+=('<param name="quality" value='+quality+" />\n");s+=('<param name="wmode" value='+wmode+" />\n");s+=("<embed src="+archivo+" wmode="+wmode+" quality="+quality+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+" height="+alto+"></embed>");s+=("</object>");oDiv=RSS_EPD.createElement("div",RSS_EPD.config.container,"",s,"divEPDClima")}catch(e){}return this};RSS_EPD.renderAll=function(t,params){try{RSS_EPD.epd_feed.rendered=true;var cfg=RSS_EPD.config;var renderExternalCSS=false;cfg.tipo=t.toLowerCase();if(typeof (params)=="object"){renderExternalCSS=(typeof (params.css)!="undefined");cfg.numEntries=(params.numEntries||cfg.numEntries);cfg.width=(params.width||cfg.width);cfg.height=(params.height||cfg.height);cfg.feedChannel=(params.feedChannel||cfg.feedChannel)}if(((cfg.tipo).indexOf("diario")!=-1)&&cfg.feedChannel=="deportes"){cfg.tipo="ovacion"}switch(cfg.tipo){case"ovacion":cfg.feedURL="http://www.ovaciondigital.com.uy/rss.asp?type=mediarss";cfg.feedChannel="";cfg.logoUrl="http://"+RSS_EPD.domain+"/formatos/rss/rss_vertical/images/logoOvacion.jpg";break;case"clima":cfg.feed=false;break;case"diario":cfg.hideTitle=false;break;case"diario+clima":cfg.hideTitle=true;cfg.hideLogo=true;break}RSS_EPD.config=cfg;switch(cfg.tipo){case"clima":RSS_EPD.epd_feed_clima(RSS_EPD.doc);break;case"diario":if(cfg.feed&&!renderExternalCSS){RSS_EPD.epd_render("css","rssStyle.css",true)}break;case"diario+clima":if(cfg.feed&&!renderExternalCSS){RSS_EPD.epd_render("css","rssStyle.css",true)}RSS_EPD.epd_feed_clima(RSS_EPD.doc);break;case"ovacion":if(!renderExternalCSS){RSS_EPD.epd_render("css","rssOvacion.css",true)}break;default:}if(renderExternalCSS){RSS_EPD.epd_render("css",params.css,true)}if(cfg.feed){oDiv=RSS_EPD.createElement("div",RSS_EPD.config.container,"","Cargando...",RSS_EPD.containerId);RSS_EPD.epd_feed_init()}}catch(e){RSS_EPD.epd_feed.rendered=false}};RSS_EPD.render=function(obj,t,config){RSS_EPD.onReady=RSS_EPD.epd_feed;RSS_EPD.config.container=(typeof (obj)=="object")?obj:document.getElementById(obj);RSS_EPD.elementRSS.tipo=(t||RSS_EPD.elementRSS.params);RSS_EPD.elementRSS.params=config;RSS_EPD.config.tipo=RSS_EPD.elementRSS.tipo;if(RSS_EPD.active){if(!RSS_EPD.rendered){RSS_EPD.renderAll(RSS_EPD.elementRSS.tipo,RSS_EPD.elementRSS.params)}}return false};RSS_EPD.createElement=function(tagName,parent,className,html,elemId){var div=document.createElement(tagName);div.className=className;div.innerHTML=html;div.id=elemId;parent.appendChild(div);return div};try{google.load("feeds","1");google.setOnLoadCallback(RSS_EPD.epd_feed)}catch(e){};
