if("undefined"==typeof mm_simple_compilation){function psdgetgetpsd(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function getDevice(){var e={};return e.agent=navigator.userAgent,e.mobile=is_MobileDevice(e.agent),e}function is_MobileDevice(e){return-1!=e.indexOf("iPhone")||-1!=e.indexOf("iPod")||-1!=e.indexOf("iPad")||-1!=e.indexOf("Android")}mm_simple_compilation="04-10-2018 12:10:42","true"==psdgetgetpsd("tplib")&&(tplib=!0),e=window,null==e.psd&&(e.psd={}),null==e.psd.framework&&(e.psd.framework={}),null==e.psd.framework.events&&(e.psd.framework.events={}),null==e.psd.framework.parser&&(e.psd.framework.parser={}),null==e.psd.framework.mediator&&(e.psd.framework.mediator={}),null==e.psd.framework.mediator.jsonp&&(e.psd.framework.mediator.jsonp={}),null==e.psd.framework.utils&&(e.psd.framework.utils={}),e.psd.framework.debug=!1,-1!=e.location.href.indexOf("debug")&&(e.psd.framework.debug=!0),function(){null==window.psd&&(window.psd={}),null==window.psd.framework&&(window.psd.framework={});var e,a=navigator.userAgent,t=!0,n=/msie/i.test(a),s=/.NET/i.test(a),r=/chrome/i.test(a),o=/safari/i.test(a)&&!r,d=/iphone/i.test(a),l=/ipad/i.test(a),p=/android/i.test(a),c=/opera/i.test(a),m=/firefox/i.test(a),u=/gecko\//i.test(a),_=/seamonkey\//i.test(a),E=/version\/(\d+(\.\d+)?)/i;checkWIN7orHigher=function(e){var t=window.navigator.userAgent.match(/NT [0-9.]+/g),a="";if(null==t)return!1;for(t=t[0],i=0;i=e},p.FlashDetect=function(){if(navigator.plugins&&0 "+i)}t.LEVEL_LOG=0,t.LEVEL_DEBUG=1,t.LEVEL_INFO=2,t.LEVEL_WARNING=3,t.LEVEL_ERROR=4,t.LEVEL_FATAL=5,t.enabled=!0,t.level=t.LEVEL_LOG,t._LEVEL_LOG_NAME="log",t._LEVEL_DEBUG_NAME="debug",t._LEVEL_INFO_NAME="info",t._LEVEL_WARNING_NAME="warning",t._LEVEL_ERROR_NAME="error",t._LEVEL_FATAL_NAME="fatal",t._counter=0,t.log=function(){window.console&&t.enabled&&0}/g,M):(e.result.parserResult.code,_CODE_NUM_PARSER_ERROR)},I=function(e){};!function(){r=r.replace("{UDN}",T);var e=new psd.framework.Parser,t=new psd.framework.Mediator,i=R?R+r:r;t.corsIE(!0),t.addEventListener(psd.framework.MediatorEvent.MEDIATE_COMPLETE,O,this),t.addEventListener(psd.framework.MediatorEvent.MEDIATE_ERROR,I,this),t.mediate(i,e,psd.framework.Mediator.RESPONSE_TEXT)}(),function(){P=P.replace("{UDN}",T);var e=document.createElement("link"),t=R?R+P:P;e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",t),void 0!==e&&document.getElementsByTagName("head")[0].appendChild(e)}(),this.showPanel=function(e,t,i,a,n){var s=document.getElementById(g);document.getElementById("mm_next_panel_"+M)||(elementHTML=document.createElement("div"),elementHTML.id="mm_next_panel_"+M,elementHTML.className="mm_nextpanel",elementHTML.style.display="none",elementHTML.innerHTML=o,s.appendChild(elementHTML));var r=function(e){return document.getElementById(e+M)};d=r("mm_next_panel_"),l=r("mm_nextMedia_"),p=r("mm_repeatMedia_"),c=r("mm_nextTime_"),E=r("mm_nextThumb_"),v=r("mm_nextText_"),E.src=e,v.innerHTML=t,_=y,c.innerHTML=y,l.onclick=function(){f.killPanel(),i()},E.onclick=function(){h="nextThumb",f.killPanel(),i()},v.onclick=function(){h="nextText",f.killPanel(),i()},p.onclick=function(){h="repeatMedia",f.killPanel(),c.innerHTML=_,n()},m=function(){h="next_counter";var e=_;u=setInterval(function(){0!=e?(e--,c.innerHTML=e):(f.killPanel(),a())},1e3)},f.viewPanel()},this.viewPanel=function(e){s=!0,m(),d.style.display=""},this.isShowPanel=function(){return s},this.killPanel=function(){void 0!==d&&(d.style.display="none"),clearInterval(u),s=!1},this.eventAction=function(){return h}},function(e){function t(e){var g=this;psd.framework.EventDispatcher.call(this),this.className="psd.media.TopLauncher",_PROTOCOLO_HTTPS="https",_URL_HOST_HTTPS="https://topsslpl-a.akamaihd.net",_TYPE_FLASH="FLASH",_TYPE_IOS="IOS",_TYPE_UDS="UDS",VIDEO_MEDIA_TYPE="video",AUDIO_MEDIA_TYPE="audio",NAME_BITRATE="bitrate",NAME_HEIGHT="height",URL_ADBLOCK="/psdmedia/resources/js/psd/advert.js",URL_LOGO_TOP="/psdmedia/resources/img/top50.png",URL_BACKGROUND="/psdmedia/resources/img/gradient.png",URL_PUBLI="/psdmedia/resources/js/psd/prisaAd.min.js",URL_TOP_PLAYER="/psdmedia/media/top/TopPlayer.min.js",URL_STATS="/psdmedia/resources/js/psd/statistics.top.min.js","undefined"!=typeof tplib&&(URL_TOP_PLAYER="/psdmedia/media/top/js/TopPlayer.lib.js",URL_STATS="/psdmedia/resources/js/psd/lib/statistics.lib.js",URL_PUBLI="/psdmedia/resources/js/psd/lib/prisaAd.lib.js"),ERROR_PARSER="Error Code #2",ERROR_WS="Error Code #3",ERROR_CARGA_STATISTICS="Error Code #4",ERROR_CARGA_TOP_PLAYER="Error Code #5",ERROR_SERVICIO_MEDIA="Error_servicio_media",ID_PROVIDER_PRISADIGITAL=1,ID_PROVIDER_BRIGHTCOVE=2,ID_PROVIDER_GENERIC=3,ID_PROVIDER_TRITON=4,ID_PROVIDER_AKAMAIHD=5,ID_PROVIDER_YT=6,ID_PROVIDER_DM=7,ID_PROVIDER_VIMEO=8,ID_PROVIDER_HLS=9;var n="private";CONTROLLER_TYPE_AKAMAIHD="akamaihd",CONTROLLER_TYPE_AKAMAIHDS="akamaihds",CONTROLLER_TYPE_TRITON="triton",CONTROLLER_TYPE_HTML5NATIVE="html5native",CONTROLLER_TYPE_YT="youtube",CONTROLLER_TYPE_DM="dailymotion",CONTROLLER_TYPE_VIMEO="vimeo",CONTROLLER_TYPE_HLS="hls",CONTROLLER_TYPE_REAL_HLS="Realhls",_fullscreen=!1;var s,M,P,T,i,d,l,R,O,I,r,b=e,L=!1;this.url_FAPI="",this.data_FAPI={},this.init=function(){t.apply(this)},this.setEmbed=function(e){r=e},this.getEmbed=function(){return r};var t=function(){var n;if(P=new psd.media.TopWindowError({id_container:b.player.container,width:b.player.width,height:b.player.height,secure:void 0}),"undefined"!=typeof mm_base&&(1!=mm_base&&0!=mm_base||(mm_base="loc"),"string"==typeof mm_base&&function(e){var t;switch(e){case psd.media.LOCAL:b.base="",t="LOCAL";break;case psd.media.INTEGRACION:b.base="//playerint.top.prisasd.com",t="INTEGRACIÓN";break;case psd.media.PRODUCCION:b.base="//playertop.elpais.com",t="PRODUCCIÓN";break;default:t="URL BASE PERSONALIZADA: "+(b.base=e)}"undefined"!=typeof mm_simple_compilation?alert("\nENTORNO "+t+"\nmm_simple_compilation: "+mm_simple_compilation+"\n"):alert("\nENTORNO "+t+"\n")}(mm_base)),"undefined"!=typeof mm_publi&&(1!=mm_publi&&0!=mm_publi||(mm_publi="loc"),"string"==typeof mm_publi&&function(e){var t;switch(e){case psd.media.LOCAL:n="",t="PUBLICIDAD LOCAL";break;case psd.media.INTEGRACION:n="//playerint.top.prisasd.com",t="PUBLICIDAD INTEGRACIÓN";break;case psd.media.PRODUCCION:n="//playertop.elpais.com",t="PUBLICIDAD PRODUCCIÓN";break;default:t="PUBLICIDAD PERSONALIZADA: "+(n=e)}alert("\nENTORNO "+t+"\n")}(mm_publi)),M=null!=b.base&&null!=b.base&&b.base,function(e){var t;for(t=0;t]*>?/g,""));try{if(R.id=a.idref,R.media={type:t,title:null!=a.name?a.name:"",desc:null!=a.description?a.description:"",author:null!=a.author?a.author:"",date:null!=a.created_at?a.created_at.split(" ")[0]:"",duration:null!=a.length?a.length:"",live:null!=a.islive&&a.islive,isDvr:null!=a.isdvr&&a.isdvr,cdn:{provider:""},tags:null!=a.tags?a.tags:void 0,urlMosaic:a.url_mosaic,chapter:a.chapter,season:a.season,geo_location:a.geo_location,youtube_privacy_status:a.youtube_privacy_status,id_contract:null!=a.id_contract?a.id_contract:"",details:null!=a.details?a.details:null,tags_externals:null!=a.tags_externals?a.tags_externals:"",youtube_details:null!=a.youtube_details?a.youtube_details:null,station_id:null!=a.station_id?a.station_id:""},b.ws.mediaType==AUDIO_MEDIA_TYPE?R.media.poster=null!=a.url_audio_still?a.url_audio_still:"":R.media.poster=null!=a.url_video_still?a.url_video_still:"",R.media.poster_thumbnail=null!=a.url_thumbnail?a.url_thumbnail:"",void 0!==R.topPlayer&&void 0!==R.topPlayer.media&&void 0!==R.topPlayer.media.custom_cover&&null!=R.topPlayer.media.custom_cover&&""!=R.topPlayer.media.custom_cover&&(R.media.poster=R.topPlayer.media.custom_cover),a.provider.id==ID_PROVIDER_AKAMAIHD?(R.media.cdn.provider=CONTROLLER_TYPE_AKAMAIHD,R.media.clipBegin="1418403600000",R.media.clipEnd="1418418900000",R.media.absolute=!0):R.media.cdn.provider=CONTROLLER_TYPE_AKAMAIHDS,R.id_provider=a.provider.id,R.id_external=a.id_external,0"),r.id_container=a}c=null!=r.dev&&r.dev,y(),h.apply(this),f.apply(this)}}},_=function(){if(this.removeEventListener(psd.media.TopEmbedEvent.EVENT_INI,_,this),null!=this.getMediaPlayer&&null!=this.getMediaPlayer().getData&&null!=this.getMediaPlayer().getData().mediaData){var e=this.getMediaPlayer().getData().mediaData.tags.externals;if(0]*>?/g,""),r[i].description=a}if(_)for(_play in m)E==_play&&(m[_play].resetData(r),m[_play].reDraw(),-1"+this.elemsMgr[i].confs.id_container+" ";var r=document.createElement("div");r.style="clear:both;";var o=a.getElementsByTagName("img");if(0';else d='
';d+="
  • Width:"+o.getAttribute("width")+"
  • Height:"+o.getAttribute("height")+"
",d+='
',r.innerHTML=d}e.appendChild(n),e.appendChild(r),e.appendChild(s),t.appendChild(e)}setInterval(function(){info2Status.apply(l)},1e3)}},info2Status=function(){for(var e in this.elemsMgr){var t=this.elemsMgr[e].embed;if(""!=t&&t.isInitialized()){if(null==(i=document.getElementById("divInfo_"+t.getSettings().id_container)))var i=document.getElementById("divInfo_"+t.getSettings().id_container.replace("__player",""));null!=i&&(t.getMediaPlayer().getCurrentPosition()==emic.top.TopPlayer.POSITION_MEDIA?i.style.outline="5px solid red":i.style.outline="",i.innerHTML="
  • "+t.getMediaPlayer().getData().internalData.controllerName+"
  • "+t.getMediaPlayer().getCurrentPosition()+"
  • "+t.getMediaPlayer().getMediaModule().getStatus()+"
  • "+t.getMediaPlayer().getAdModule().getStatus()+"
  • ")}}},this.existsFPW=function(e){if(void 0!==e&&null!=e&&void 0!==e.plugins&&null!=e.plugins)for(var t in e.plugins)if("FloatingPlayerWidget"==e.plugins[t].type&&void 0!==e.plugins[t].conf&&null!=e.plugins[t].conf&&void 0!==e.plugins[t].conf.force_on_viewport&&1==e.plugins[t].conf.force_on_viewport)return!0;return!1},this.setCover=function(e,t){return void 0!==t?void 0!==e.topPlayer&&void 0!==e.topPlayer.media?(e.topPlayer.media.imgCover=t,l.existsFPW(e)||e.topPlayer.media.autoplay&&!getDevice().mobile?(e.topPlayer.media.cover=!1,""):(e.topPlayer.media.cover=!0,t)):t:""};this.setAutoplay=function(e,t,i){return void 0!==t&&""!=t&&(void 0===e.topPlayer&&(e.topPlayer={}),void 0===e.topPlayer.media&&(e.topPlayer.media={}),void 0!==i&&""!=i?l.existsFPW(e)||(e.topPlayer.media.autoplay=!0):e.topPlayer.media.autoplay=!getDevice().mobile),e},this.generateHTML=function(e,t){if(void 0!==t){var i,a;for(var n in a=document.createDocumentFragment(),t)i=document.createElement(t[n].HTMLelement),void 0!==t[n].ClassName&&""!=t[n].ClassName&&(i.className=t[n].ClassName),i.innerHTML=t[n].value,a.appendChild(i);return a}return!1},this.add=function(i,a,n){if(1==a[3]){var e="fapi-top";switch(i.id_cuenta){case"diarioas":e="gapi"}var t="//"+e+".prisasd.com/api/v2/search/{id_cuenta}/{media_type}/idref/{id_media}";t=t.replace("{id_cuenta}",i.id_cuenta).replace("{media_type}",i.media_type).replace("{id_media}",i.id_media);var s=new psd.framework.parser.JSONParser,r=new psd.framework.Mediator;return r.corsIE(!0),r.addEventListener(psd.framework.MediatorEvent.MEDIATE_COMPLETE,function(e){var t=e.result.parserResult;if(t.code==psd.framework.ParserResult.PARSER_SUCCESS_CODE&&"object"==typeof t.result&&0=_elementos.length)_current=e;else{for(j=0;j<_elementos.length;j++)_elementos[j].noSelected();e<_elementos.length&&(_elementos[e].setSelected(),_lastid=_elementos[_current=e].tag)}},this.loadMedia=function(e,t){t?this.resetMedia(e,!0):this.resetMedia(e,!1),this.setSelected(e)},this.setSelected(_current)}}}TopPlaylist_lista.prototype=new psd.media.TopPlaylist_BaseController,namespace.TopPlaylist_lista=TopPlaylist_lista}(psd.media),function(e){function t(e){psd.framework.EventDispatcher.call(this),this.className="psd.media.TopWindowError";var a=e;this.paintMessage=function(e){var t=new psd.media.InfoPanel;"undefined"!=typeof LANG&&(window.mm_lang=LANG),void 0===window.mm_lang&&(window.mm_lang="es");var i=(new psd.media.Lang).translate(window.mm_lang,"contenido_no_disponible");t.paint(a.id_container,i,!0)}}t.prototype=new psd.framework.EventDispatcher,e.TopWindowError=t}(psd.media)}var cd,e;