;YAHOO = window.YAHOO || {};YAHOO.VideoPlatform = YAHOO.VideoPlatform || {};YUI.add("yepswf",function(a){var j=a.SWF||{},l=j.prototype||{},o=j._instances||{},e=j.eventHandler||{},n=a.Event,p=a.Escape,h=a.SWFDetect,i=a.Lang,g=a.UA,k=a.Node,f="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",d="application/x-shockwave-flash",c="10.0.22",b="SWF.eventHandler",m={align:"",allowFullScreen:"",allowNetworking:"",allowScriptAccess:"",base:"",bgcolor:"",menu:"",name:"",quality:"",salign:"",scale:"",tabindex:"",wmode:""};a.YEPSWF=function(q,H,C,y){var r={};if(!a.SWF||typeof a.SWF.prototype!=="object"){a.augment(this,a.EventTarget);r.type="yuiIntegrationError";this.publish("yuiIntegrationError",{fireOnce:true});this.fire("yuiIntegrationError",r);return;}this._id=a.guid("yuiswf");var E=this._id;var u=k.one(q);var C=C||{};var s=C.version||c;var v=(s+"").split(".");var B=h.isFlashVersionAtLeast(parseInt(v[0]),parseInt(v[1]),parseInt(v[2]));var A="';if(g.ie&&g.ie<11){A+=' ';}for(var t in C.fixedAttributes){if(m.hasOwnProperty(t)){A+=' ';}}for(var D in C.flashVars){var x=C.flashVars[D];if(i.isString(x)){G+="&"+p.html(D)+"="+p.html(encodeURIComponent(x));}}if(G){A+=' ';}A+=" ";u.set("innerHTML",A);this._swf=k.one("#"+E);}else{if(h.getFlashVersion()!=="undefined.undefined.undefined"||y===true){var r={};r.type="wrongflashversion";this.publish("wrongflashversion",{fireOnce:true});this.fire("wrongflashversion",r);}}};a.YEPSWF.prototype=l;a.YEPSWF._instances=o;a.YEPSWF.eventHandler=e;},"",{requires:["swf","escape","node"]});YUI.add("PlayerData",function(a){a.namespace("VideoAds");PlayerData=function(){this._nicobarHost=null;this.setMASHost("http://static.vap.yahoo.net/");this._nicobarQueryHost=null;this.setMASQueryHost("http://query.vap.yahoo.net/nicobarMan/ads/");this._nicobarAcct=null;this._nicobarRulesetId=null;this._clipId=null;this._clipDuration=null;this._clipTitle=null;this._playlistId=null;this._playlistTitle=null;this._playerId=null;this._playerTitle=null;this._clipCats=[];this._isLive=true;this._customParams={};this._queryRules=null;this._processAdData=function(){var d=this._adData;if(d){var g=d.adRules;try{if(g){if(typeof g.ManModel==="undefined"||g.ManModel===null){}else{var f=convertJSONToXML("ManModel",g.ManModel);this.setQueryRules(f);}}}catch(h){}var b=d.ad_targeting;var c="";try{if(b&&(typeof b==="string")&&(b.indexOf("-1)){c=""+b+" ";this.addCustomParameter("ad-extra:adTargeting",c);}else{c=b;this.addCustomParameter("ad-extra:adTargeting",c);}}catch(h){}try{var i=d.category;if(i){this.addCustomParameter("ad-extra:adTargetingCategory",i);}}catch(h){}}};};PlayerData.PLAYER_READY_EVENT="ready";PlayerData.CATEGORY_CHANGE_EVENT="categoryChange";PlayerData.CLIP_CHANGE_EVENT="clipChange";PlayerData.AD_BREAK_EVENT="adBreak";PlayerData.prototype.setMASHost=function(b){this._nicobarHost=b;};PlayerData.prototype.getMASHost=function(){return this._nicobarHost;};PlayerData.prototype.setMASQueryHost=function(b){this._nicobarQueryHost=b;};PlayerData.prototype.getMASQueryHost=function(){return this._nicobarQueryHost;};PlayerData.prototype.setMASAcctId=function(b){this._nicobarAcct=b;};PlayerData.prototype.getMASAcctId=function(){return this._nicobarAcct;};PlayerData.prototype.setMASRulesetId=function(b){this._nicobarRulesetId=b;};PlayerData.prototype.getMASRulesetId=function(){return this._nicobarRulesetId;};PlayerData.prototype.setClipId=function(b){this._clipId=b;};PlayerData.prototype.getClipId=function(){return this._clipId;};PlayerData.prototype.setClipDuration=function(b){this._clipDuration=b;};PlayerData.prototype.getClipDuration=function(){return this._clipDuration;};PlayerData.prototype.setClipTitle=function(b){this._clipTitle=b;};PlayerData.prototype.getClipTitle=function(){return this._clipTitle;};PlayerData.prototype.setPlaylistId=function(b){this._playlistId=b;};PlayerData.prototype.getPlaylistId=function(){return this._playlistId;};PlayerData.prototype.setPlaylistTitle=function(b){this._playlistTitle=b;};PlayerData.prototype.getPlaylistTitle=function(){return this._playlistTitle;};PlayerData.prototype.setPlayerId=function(b){this._playerId=b;};PlayerData.prototype.getPlayerId=function(){return this._playerId;};PlayerData.prototype.setPlayerTitle=function(b){this._playerTitle=b;};PlayerData.prototype.getPlayerTitle=function(){return this._playerTitle;};PlayerData.prototype.setClipCategories=function(b){this._clipCats=b;};PlayerData.prototype.getClipCategories=function(){return this._clipCats;};PlayerData.prototype.setIsLive=function(b){this._isLive=b;};PlayerData.prototype.getIsLive=function(){return this._isLive;};PlayerData.prototype.addCustomParameter=function(b,c){this._customParams[b]=c;};PlayerData.prototype.getCustomParameters=function(){return this._customParams;};PlayerData.prototype.getCustomParameter=function(b){return this._customParams[b];};PlayerData.prototype.toString=function(){return"MASHost = "+this.getMASHost()+", MASQueryHost = "+this.getMASQueryHost();};PlayerData.prototype.setQueryRules=function(b){this._queryRules=b;};PlayerData.prototype.getQueryRules=function(){return this._queryRules;};PlayerData.prototype.setAdData=function(b){this._adData=b;this._processAdData();};PlayerData.prototype.getAdData=function(){return this._adData;};jsonToXML=function(g,c){var e="";var f="";var b="";var j=null;for(j in c){var h=c[j];if(j==="content"){b=b+"";continue;}if(h instanceof Array){for(var d=0;d"+b+""+g+">";
return e;};convertJSONToXML=function(e,d){var b="";var c=b+jsonToXML(e,d);return c;};a.VideoAds.PlayerData=PlayerData;},"1.0.0",{});YUI.add("VideoAdPlugin",function(a){a.namespace("VideoAds");VideoAdPlugin=function(b){Version="7.0.0.2368";PROPERTY_ID_KEY="ad-biz:propertyid";this.configObj=b;_CONSTANTS=a.com.yahoo.ads.common.Constants;this._playerContext=null;this.adPosition=0;this.vidPosition=0;this.playerTimeout=3;this.isCurrAdLinear=false;this.adReadyQueue=[];this.rendererType=_CONSTANTS.FLASH;this.adsStatus=new a.com.yahoo.ads.common.AdsStatus();this.adExp=false;this.adExpInterrupted=false;var y=null;var m=null;var t=null;var u=null;var h=null;var l=null;var q=null;var j=null;var o=null;var v=null;var s={};var c=[];var x=null;var k=false;var p=false;var g=null;var d=null;var n=false;var e=1;var w={x:0,y:0,width:"320px",height:"240px",bitrate:400,volume:0.7};this.handleSubscriptions=function(){var A=this.configObj.on;var z=this.configObj.context;try{for(var B in A){this.on(B,A[B],z);}}catch(C){}};this.RenderManager=function(){if(typeof y==="undefined"||y===null){if(this.configObj.rendererType==_CONSTANTS.HTML){y=new a.com.yahoo.ads.renderer.RenderManager(this.EventBus());}else{if(this.configObj.rendererType==_CONSTANTS.FLASH){y=new a.com.yahoo.ads.flash.FlashRenderManager(this.EventBus());}else{var z={};z.message=_CONSTANTS.UNKNOWN_RENDERER_EVENT;this.notifyPluginError(z);}}}return y;};this.StreamAdManager=function(){if((typeof u==="undefined"||u===null)&&this.configObj.streamAd){u=new a.com.yahoo.ads.StreamAdManager(this,this.configObj);}return u;};this.RuleCache=function(){if(typeof h==="undefined"||h===null){h=new a.com.yahoo.ads.cache.RuleCache();a.ruleCache=h;}return h;};this.CacheManager=function(){if(typeof t==="undefined"||t===null){t=new a.com.yahoo.ads.cache.CacheManager(this.EventBus(),this.rendererType,_CONSTANTS.AD_PREFETCH_TIME);t.on(_CONSTANTS.AD_ASSET_PREFTECH,this.onAdAssetPrefetch,this);t.on(_CONSTANTS.AD_CACHE_REFRESH,this.onAdCacheRefresh,this);a.cacheManager=t;}return t;};this.MonitorBeaconer=function(){if(typeof v==="undefined"||v===null){v=new a.com.yahoo.ads.plugin.MonitorBeaconer(this.EventBus());v.on(MonitoringBeaconEvent.EVENT_NAME,this.onProfilerMetricEvent,this);a.monitorBeaconer=v;}return v;};this.AllocationManager=function(){if(typeof m==="undefined"||m===null){var z=(this.playerTimeout-_CONSTANTS.AD_FB_RENDER_TIME);m=new a.com.yahoo.ads.communicator.AllocationManager(this.EventBus(),this.CacheManager(),z);m.on(this.AllocationManager().getManagedConfigLoadedEvent(),this.onManagedConfigUpdated,this);m.on(m.getComponentLoadedEvent(),this.componentInitComplete,this);m.on(m.getLoadErrorEvent(),this.onInitError,this);m.on(m.getPropertyIdReadyEvent(),this.propertyIdReady,this);m.on(m.getFallbackCommunicatorLoadedEvent(),this.handleFallback,this);a.allocManager=m;}return m;};this.AdEngine=function(){if(typeof q==="undefined"||q===null){q=new a.com.yahoo.ads.engine.AdEngine();q.init();q.addTimer(this.VideoTimeline());q.on(q.getAdEngineReadyEvent(),this.onAdEngineReady,this);q.on(q.getAdEngineAdEvent(),this.onEngineAction,this);q.on(q.getAdEngineErrorEvent(),this.onEngineError,this);a.adEngine=q;}return q;};this.ParseJSON=function(){if(typeof l==="undefined"||l===null){l=new a.com.yahoo.ads.man.ParseJSON();l.init();a.parseJSON=l;}return l;};this.EventBus=function(){if(typeof j==="undefined"||j===null){if(this.StreamAdManager()){j=this.StreamAdManager();}else{j=new a.com.yahoo.ads.plugin.EventBusSwitch();}j.setSink(this);a.eventBus=j;}return j;};this.VideoTimeline=function(){if(typeof o==="undefined"||o===null){o=new a.com.yahoo.ads.plugin.YEPVideoTimeline();o.on("complete",this.onContentVideoComplete,this);a.videoTimeline=o;}return o;};this.onConfigUpdate=function(z){this.AllocationManager().updateAllocation(z.getAllocation());this.AllocationManager().updateContext(this._playerContext);this.AdEngine().updateRules(z.getRules());};this.updateVolume=function(z){e=z;if(!this.RenderManager()){return;}this.RenderManager().setVolume(e);};this.updateClientInfo=function(z){if(typeof z!==_CONSTANTS.UNDEFINED&&z!==null){w=z;}this.updateVolume(w.volume);this.resize(w.x,w.y,this.ConvertCssPxToInt(w.width),this.ConvertCssPxToInt(w.height),w.bitrate);};this.resize=function(A,D,C,z,B){if(!this.RenderManager()){return;}this.RenderManager().resizeAd(A,D,C,z,B);};this.onClipChange=function(D){this.vidPosition=0;var B=this.CacheManager().RuleCache.getRule(D.getClipId());if(B&&B.playerData){this._playerContext=B.playerData;this.onConfigUpdate(B.parsedRules);}else{this.CacheManager().updateCache([D]);this._playerContext=D;if(!this._playerContext.getAdData()){var C={};C.message=_CONSTANTS.NO_ADDATA_EVENT;this.notifyPluginError(C);return;}this.ParseJSON().parseItems(D.getAdData().adRules.result);this.onConfigUpdate(this.ParseJSON());}if(typeof this.cookie==="undefined"||this.cookie===null){this.cookie=new a.com.yahoo.ads.common.Cookie("yvap",this._playerContext.getMASAcctId());}var z={};z.clipId=this._playerContext.getClipId();this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_CLIPCHANGE,z));if(this.cookie&&this.cookie.cookieEnabled()){this.cookie.setCookieParam(_CONSTANTS.COOKIE_CLIP_COUNT,parseInt(this.cookie.getCookieParam(_CONSTANTS.COOKIE_CLIP_COUNT),10)+1);this.cookie.setCookieParam(_CONSTANTS.COOKIE_REC_CLIP_COUNT,parseInt(this.cookie.getCookieParam(_CONSTANTS.COOKIE_REC_CLIP_COUNT),10)+1);this.AdEngine().setClipData(this.cookie,this._playerContext.getClipDuration());}var A={};A.type="adEvent";A.action={};A.action.type=_CONSTANTS.NOTIFICATION_CLIP_CHANGE;A.action.obj={};A.action.obj.assetId=this._playerContext.getClipId();this.AdEngine().onAdEvent(A);};this.processEngineReadyQueue=function(){if(x){while(x.length>0){var B=x.shift();var A=B.method;var z=B.args;if(z&&z.length>0){A.apply(this,z);}else{A.call();}}}};this.onAdEngineReady=function(A,z){this.AdEngine().setActiveGroupId((this._playerContext.MASRulesetId=="-1")?"none":this._playerContext.MASRulesetId);
this.AdEngine().runEngine();this.processEngineReadyQueue();this.componentInitComplete();};this.onEngineAction=function(z){if(this.AllocationManager().ready()||z.getEventId()=="no-op"){this.processEngineAction(z);}else{this.queueEngineAction(z);}};this.onEngineError=function(A,z){this.notifyPluginError(A);};this.componentInitComplete=function(){if(this.isComponentInitComplete()){this.notifyPluginReady();this.processEngineActionQueue();}};this.onInitError=function(A,z){this.notifyPluginError(A);};this.propertyIdReady=function(){this._playerContext.addCustomParameter(PROPERTY_ID_KEY,this.AllocationManager().getPropertyId());};this.engineAdEvent=function(z){this.AdEngine().onAdEvent(z);};this.queueEngineAction=function(z){c.push(z);};this.processEngineActionQueue=function(){while(c.length!==0){this.processEngineAction(c.shift());}};this.processEngineAction=function(A){var z=A.getEventId();var B=A.getAction();if(B&&B.mType==_CONSTANTS.TRIGGER_PLAYLIST_GATEWAY){g=B;return;}B.retryCount=0;this.fireAdOpportunity(A);switch(z){case"InsertAd":if(k){return;}this.cancelAllAds();this.playVideoAd(B);break;case"no-op":if(n){this.triggerPreroll();}else{this.renderNoOp();}break;case"ShowOverlay":if(k){k=false;}if(this.rendererType!==null&&this.rendererType===_CONSTANTS.FLASH){this.playVideoAd(B);}break;case"HideOverlay":this.dismissOverlay(B);break;default:break;}};this.cancelAllAds=function(){if(!this.RenderManager()){return;}this.RenderManager().cancelAds();};this.renderNoOp=function(){if(!this.RenderManager()){return;}this.RenderManager().renderAd(null,this.cloneClientInfo(w),e,s,s[d]);};this.playVideoAd=function(A){var z=this.AllocationManager().pickCommunicator(A);if(!z){this.renderNoOp();return;}A.initialCommunicatorId=z.getNetworkId();z.detach(MonitoringBeaconEvent.EVENT_NAME,this.MonitorBeaconer().handleAction,this.MonitorBeaconer());z.on(MonitoringBeaconEvent.EVENT_NAME,this.MonitorBeaconer().handleAction,this.MonitorBeaconer());z.getAd(A);this.adsStatus.add(MonitoringBeaconEvent.EVENT_ADCALL,true);this.adsStatus.addAll(this.adsStatus.getStatusMonitoringData(this.MonitorBeaconer().getMonitoringData()));};this.handleFallback=function(B){var z=B.communicator;var A=B.adSpec;z.getAd(A);};this.isComponentInitComplete=function(){return this.AllocationManager().ready()&&this.AdEngine().ready();};this.triggerBumper=function(){n=true;if(g){this.playVideoAd(g);return;}var z={};z.type="adEvent";z.action={};z.action.type=_CONSTANTS.TRIGGER_CLIP_GATEWAY;z.action.obj={};this.AdEngine().onAdEvent(z);};this.triggerPreroll=function(){var z={};z.type="adEvent";z.action={};z.action.type=_CONSTANTS.TRIGGER_CLIP_PREROLL;z.action.obj={};n=false;this.AdEngine().onAdEvent(z);};this.triggerPostroll=function(){if(k){k=false;}var z={};z.type="adEvent";z.action={};z.action.type="postroll";z.action.obj=null;this.AdEngine().onAdEvent(z);};this.cloneClientInfo=function(A){var z={};z.x=A.x;z.y=A.y;z.width=this.ConvertCssPxToInt(A.width);z.height=this.ConvertCssPxToInt(A.height);z.bitrate=A.bitrate;return z;};this.ConvertCssPxToInt=function(C){var z="0123456789.";var A=0;for(var B=0;B0){return parseInt(C.substring(0,B),10);}}}return parseInt(A,10);};this.beginVideoExperience=function(){if(k){k=false;}if(this.isComponentInitComplete()){this.triggerBumper();}};this.registerAdSlot=function(D,C,B,A){if(A){d=D;}var z={};z.slot=C;z.width=C.style.width;z.height=C.style.height;z.id=D;if(!B){B=document.getElementsByTagName("video")[0];}z.videoSlot=B;s[D]=z;};this.updateTimeline=function(z){this.VideoTimeline().setTotalDuration(z.duration);this.VideoTimeline().setPlayheadPosition(z.position);};this.notifyPlayer=function(z,A){if(z===_CONSTANTS.EVENT_NOAD){this.adExp=false;}this.fire(z,A);};this.notifyPluginReady=function(){if(!p){p=true;this.notifyPlayer(_CONSTANTS.EVENT_PLUGIN_READY);}};this.notifyVideoAdStart=function(z){if(!z){z={};}this.notifyPlayer(_CONSTANTS.EVENT_VIDEO_AD_START,z);this.adPosition=0;this.isCurrAdLinear=z.linear;if(z.blocked){if(this.isCurrAdLinear&&this.cookie&&this.cookie.cookieEnabled()){this.cookie.setCookieParam(_CONSTANTS.COOKIE_AD_COUNT,parseInt(this.cookie.getCookieParam(_CONSTANTS.COOKIE_AD_COUNT),10)+1);this.cookie.setCookieParam(_CONSTANTS.COOKIE_REC_VIDEO_LENGTH,0);this.cookie.setCookieParam(_CONSTANTS.COOKIE_REC_CLIP_COUNT,0);}}this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_ADSTART,null));this.CacheManager().refreshCache();};this.notifyAdPlayback=function(z){this.notifyPlayer(_CONSTANTS.EVENT_AD_START_MEDIA_PLAYBACK,z);};this.notifyAdMediaFirstByte=function(A){var z=A.mediaUrl||"";this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_ADDELIVERED,{"mediaUrl":z}));this.notifyPlayer(_CONSTANTS.EVENT_AD_MEDIA_FIRST_BYTE,A);};this.notifyVideoAdEnd=function(){if(n){if(g){g=null;this.triggerBumper();}else{this.triggerPreroll();}}else{if(this.adExpInterrupted){this.notifyPlayer(_CONSTANTS.EVENT_VIDEO_AD_INTERRUPTED);this.adExpInterrupted=false;}else{this.notifyPlayer(_CONSTANTS.EVENT_VIDEO_AD_END);this.adExp=false;}}};this.notifyNoAd=function(z){if(k||typeof z==="undefined"||z===null){return;}z.retryCount+=1;if(this.AllocationManager().isFallback(z)&&this.AllocationManager().pickFallbackCommunicator(z)){}else{if(z.getType()===_CONSTANTS.TRIGGER_CLIP_POSTROLL||z.getType()===_CONSTANTS.TRIGGER_CLIP_PREROLL||z.getType()===_CONSTANTS.TRIGGER_CLIP_GATEWAY||z.getType()===_CONSTANTS.TRIGGER_PLAYLIST_GATEWAY||z.getSubType()===_CONSTANTS.TRIGGER_CLIP_GATEWAY||z.getSubType()===_CONSTANTS.TRIGGER_CLIP_PREROLL||z.getSubType()===_CONSTANTS.TRIGGER_CLIP_POSTROLL){if(n){if(g){g=null;this.triggerBumper();}else{this.triggerPreroll();}}else{this.notifyPlayer(_CONSTANTS.EVENT_NOAD);this.adsStatus.add(MonitoringBeaconEvent.EVENT_NOAD,true);}}}};this.notifyNullAd=function(z){this.notifyPlayer(_CONSTANTS.EVENT_NOAD);};this.notifyOverlayStart=function(){this.notifyPlayer(_CONSTANTS.EVENT_OVERLAY_START);};this.notifyOverlayEnd=function(){this.notifyPlayer(_CONSTANTS.EVENT_OVERLAY_END);
};this.notifyAdProgress=function(B){if(this.isCurrAdLinear){var A=parseInt(B.position,10);var z=A-this.adPosition;this.adPosition=A;if(this.cookie&&this.cookie.cookieEnabled()){this.cookie.setCookieParam(_CONSTANTS.COOKIE_AD_LENGTH,parseInt(this.cookie.getCookieParam(_CONSTANTS.COOKIE_AD_LENGTH),10)+z);}}this.notifyPlayer(_CONSTANTS.EVENT_AD_PROGRESS,B);};this.notifyPluginError=function(z){this.notifyPlayer(_CONSTANTS.EVENT_PLUGIN_ERROR,z);this.adsStatus.add(_CONSTANTS.EVENT_PLUGIN_ERROR+": "+z.type,z.message);};this.notifyAdStartError=function(z){this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_AD_START_ERROR,z));this.notifyPlayer(_CONSTANTS.EVENT_NOAD);};this.notifyAdDeliveryError=function(z){this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_AD_DELIVERY_ERROR,z));this.notifyPlayer(_CONSTANTS.EVENT_NOAD);};this.notifyMetricsEvent=function(A){var z=A.data;if(typeof z!=="undefined"&&z!==null){if(typeof z.eventId!=="undefined"&&z.eventId!==null&&z.eventId.toLowerCase().indexOf("vpaid")>-1){this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(z.eventId,null));}}};this.notifyAdMetricsEvent=function(A){var z=this.AllocationManager().pickCommunicator();z.onAdEvent(A);};this.notifyAdReady=function(z){if(k||!this.RenderManager()){return;}if(!this.RenderManager().getRenderer()){this.adReadyQueue.push(z);}else{this.onClientInfoChanged(w);this.RenderManager().renderAd(z,this.cloneClientInfo(w),e);}};this.fireAdOpportunity=function(B){var D={};D.rulesetId=q.getActiveGroupId();D.playContext=this._playerContext.getPlaylistId();var C=B.getAction();var A=C.getType();if(A==_CONSTANTS.TRIGGER_CLIP_GATEWAY){D.oppPosition="BMPR";}else{if(A==_CONSTANTS.TRIGGER_CLIP_PREROLL||A==_CONSTANTS.TRIGGER_CLIP_POSTROLL){D.oppPosition="VID";}else{D.oppPosition="";}}var z=B.getEventId();if(z=="InsertAd"){D.taken=true;D.type=C.getSubType();D.networkName=this.AllocationManager().pickCommunicator(C).getNetworkName();}else{if(z=="no-op"){D.taken=false;D.type=A;}}D.action=C;D.eventId=z;this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_ADOPPORTUNITY,D));this.adsStatus.add(MonitoringBeaconEvent.EVENT_ADOPPORTUNITY,true);};this.setAdExperience=function(){if(!this.adExp){this.adExp=true;this.adExpInterrupted=false;}else{this.adExpInterrupted=true;}};this.timeout=function(){var A,z=null;this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_PLAYER_TIMEOUT));this.AllocationManager().notifyTimeout();A=this.RenderManager()?this.RenderManager()._ad:null;if(_CONSTANTS.COUNTTOSUPPLY_ON&&A){z=new a.com.yahoo.ads.event.AdMetricsEvent(_CONSTANTS.IMPRESSION,_CONSTANTS.REDIRECT_NOAD,A.getUrl(),{"type":_CONSTANTS.REDIRECT_NOAD},A.getJson());A.onAdEvent(z);}k=true;this.cancelAllAds();this.notifyPlayer(_CONSTANTS.EVENT_PLUGIN_TIMEOUT);};this.onMonitoringAction=function(z){this.MonitorBeaconer().handleAction(z);};this.onProfilerMetricEvent=function(z){var A=z.getBeaconData();this.fire(MonitoringBeaconEvent.EVENT_METRIC,A);};this.onAdAssetPrefetch=function(z){this.RenderManager().addVPAIDAdToCache(z,this.cloneClientInfo(w),e);};this.onAdCacheRefresh=function(z){this.RenderManager().removeVPAIDAdFromCache(z);};this.setPlayerData=function(z){this.CacheManager().updateCache(z);};if(this.configObj.on){this.handleSubscriptions();}if(this.configObj.rendererType){this.rendererType=this.configObj.rendererType;}if(this.configObj.timeout){this.playerTimeout=this.configObj.timeout;}if(this.configObj.playerData){this.updatePlayerData(this.configObj.playerData);}if(this.configObj.clientInfo){this.updateClientInfo(this.configObj.clientInfo);}if(this.configObj.playerContainer){var r={};r.playerContainer=this.configObj.playerContainer;this.updateRenderer(r);}if(!this.StreamAdManager()){var f=0;var i=this.configObj.playerData;if(typeof i!=="undefined"&&i!==null){if(i instanceof Array){if(i.length>0){f=i[0].getMASAcctId();}}else{f=i.getMASAcctId();}}this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_PLUGIN_INIT,{account_id:f,version:Version}));}this.notifyPluginReady();};a.augment(VideoAdPlugin,a.EventTarget);VideoAdPlugin.prototype._postRollSwitch=true;VideoAdPlugin.prototype.beginAdExperience=function(c){this.setAdExperience();this.cancelAllAds();this.adsStatus.reset();if(typeof c!=="undefined"&&c!==null&&c instanceof a.VideoAds.PlayerData){this.onClipChange(c);this.beginVideoExperience();}else{var b={};b.message=_CONSTANTS.INVALID_PLAYER_DATA;this.notifyPluginError(b);}};VideoAdPlugin.prototype.detachAll=function(){var c=this.configObj.on;var b=this.configObj.context;try{for(var d in c){this.detach(d,c[d],b);}}catch(f){}};VideoAdPlugin.prototype.onContentVideoComplete=function(){this.setAdExperience();var b={};b.clipId=this._playerContext.getClipId();if(!a.com.yahoo.ads.utils.Utils.isIPhoneSupported()&&this._postRollSwitch){this.notifyPlayer(_CONSTANTS.EVENT_NOAD);return;}this.MonitorBeaconer().handleAction(new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_CLIPCHANGE,b));this.triggerPostroll();};VideoAdPlugin.prototype.onContentVideoPaused=function(){};VideoAdPlugin.prototype.onContentVideoPlaying=function(){};VideoAdPlugin.prototype.onContentVideoProgress=function(c){this.updateTimeline(c);if(this.cookie&&this.cookie.cookieEnabled()){var b=parseInt(c.position,10);if(b>0){var d=b-this.vidPosition;this.vidPosition=b;this.cookie.setCookieParam(_CONSTANTS.COOKIE_VIDEO_LENGTH,parseInt(this.cookie.getCookieParam(_CONSTANTS.COOKIE_VIDEO_LENGTH),10)+d);this.cookie.setCookieParam(_CONSTANTS.COOKIE_REC_VIDEO_LENGTH,parseInt(this.cookie.getCookieParam(_CONSTANTS.COOKIE_REC_VIDEO_LENGTH),10)+d);}}};VideoAdPlugin.prototype.onVolumeChange=function(b){this.updateVolume(b);};VideoAdPlugin.prototype.onClientInfoChanged=function(b){this.updateClientInfo(b);};VideoAdPlugin.prototype.updatePlayerData=function(c){if(c instanceof Array){this.setPlayerData(c);}else{var b=[];b.push(c);
this.setPlayerData(b);}};VideoAdPlugin.prototype.fireStandaloneAdOpportunity=function(){if(this.StreamAdManager()){this.StreamAdManager().beginAd();}};VideoAdPlugin.prototype.updateRenderer=function(c){if(c.playerContainer){if(!this.RenderManager()){return;}if(!this.RenderManager().getRenderer()){this.RenderManager().setRenderer(c.playerContainer);var b=this.adReadyQueue.pop();if(b){this.notifyAdReady(b);}}else{this.RenderManager().setRenderer(c.playerContainer);}}if(c.adContainer){}};VideoAdPlugin.prototype.destroy=function(){var b={};this.fire(_CONSTANTS.EVENT_PLUGIN_DESTROY,b);};VideoAdPlugin.prototype.timeout=function(){this.timeout();};a.VideoAds.VideoAdPlugin=VideoAdPlugin;},"1.0.0",{requires:["Timer","AllocationManager","ScopeLogger","EventBusSwitch","Constants","AbstractCommunicator","Loader","NetworkModule","RuleGroup","ParseJSON","AllocationManager","AdRenderer","NullRenderer","RenderManager","ActionRule","AdEngine","Cookie","ActionEventResolver","TriggerEventBasis","TimerEventBasis","RuleRuntime","EngineActionEvent","AdEvents","AdCache","BeaconEventData","AdPluginMetricsEvent","YahooParser","MonitorBeaconer","AdRequest","Ad","CacheManager","AdComponentSettings","VASTParser","FlashRenderManager","node","swf","event","event-custom","RuleCache","YEPVideoTimeline","SessionTimer","PlayerData","AdsStatus","StreamAdManager"]});YUI.add("AdCache",function(b){b.namespace("com.yahoo.ads.cache");var a=b.com.yahoo.ads.common.Constants;AdCache=function(){this.map={};this.bookingMap={};this.size=0;this.getArray=function(e,c){var d=e[c];if(!d){d=[];e[c]=d;}return d;};this.hasExpired=function(i){var d,j,c,f,g=true;try{d=i.timestamp;j=new Date().getTime();c=(j-d)/1000;f=c/60;g=f>=a.AD_CACHE_EXPTIME;}catch(h){}return g;};this.deleteOldest=function(){var g,d,c,e,i,h;for(var f in this.map){if(!this.map.hasOwnProperty(f)){continue;}g=this.map[f];if(!g||g.length<=0){continue;}if(!i){i=f;}else{d=g[0];c=this.map[i];if(c&&c.length>0){e=c[0];if(d.timeStamp0){h=c[0];c.splice(0,1);this.deleteFromBookingIdMap(h);this.size--;}};this.processVPAID=function(c){if(c&&c.ad.getType()===b.com.yahoo.ads.communicator.Ad.TYPE.VPAID){c.ad.setVpaidId(parseInt(Math.random()*100000000,10).toString());this.fire(a.AD_ASSET_PREFTECH,c.ad);}};this.addToMap=function(e){var c=e.key,d=this.getArray(this.map,c);if(this.size>=a.AD_CACHE_LIMIT){this.deleteOldest();}d.push(e);this.size++;};this.deleteFromMap=function(g){var d,c=g.key,e=this.getArray(this.map,c),f;for(d=0;d0){i.key=g[0];i.tId=g[1];}return i;};this.processAd=function(z,g,y,h,j){var o,n,m,p,w,s,u,k,r,q=false,x=null,l=null,t=null;if(typeof z==="undefined"||z===null){return;}o=this.processKey(z);if(this.AdCache.isAdPresent(o.key,o.tId)){return;}n=new a.com.yahoo.ads.communicator.AbstractCommunicator(c,this,d.AD_PREFETCH_TIME);m=h.getAllocation();p=m.getNetworkModules();w=m.getSettings();s=z.split("_")[0];for(var v in p){if(p.hasOwnProperty(v)){l=p[v];if(l.getName().indexOf(s)===0){q=true;x=l;break;}}}if(q===true&&x!==null){t=new a.com.yahoo.ads.man.AdComponentSettings();t.init(w,x.getId(),null);n.setNetworkModule(x);n.setNetworkSettings(t);}n.init(y);n.key=o.key;n.tId=o.tId;n.clipId=j;n.on(d.AD_PREFETCH_EVENT,function(A){try{u=A.adObject.getCommunicator().key;k=A.adObject.getCommunicator().clipId;r=A.adObject.getCommunicator().tId;if(A.update){this.AdCache.updateAd(u,A.adObject,k,r);
}else{this.AdCache.addAd(u,A.adObject,k,r);}}catch(i){}},this);n.prefetchAd(g);};this.update=function(n){var l,k,q,o,r,g,m,h;for(var j=0;j0,r={};r[a.AD_CALL_RESPONSE_CODE]=s[l.AD_RESPONSE_CODE]||i.NONBREAKING_SPACE;r[a.AD_CALL_RESPONSE_TYPE]=s[l.AD_RESPONSE_TYPE]||i.NONBREAKING_SPACE;r[a.AD_CALL_LATENCY]=s[l.AD_CALL_LATENCY]||i.NONBREAKING_SPACE;r[a.AD_OPPORTUNITY_TAKEN]=q;r[a.IS_CACHE_HIT]=s[l.AD_CACHE_HIT]===l.CACHEHIT.TRUE?a.HIT:a.MISS;r[a.IS_FALLBACK]=s[l.AD_FALLBACK]===l.FALLBACK.TRUE;r[a.IS_3PAS]=t;if(t){r[a.THREE_PAS_DOMAIN]=n(s[l.AD_REDIRECT]);}return r;},toTable:function(){var p=window._cacheManager,r=o(p),v=h(p),t,u,q,s;r.toTableRows=function(){var y="",x=0,w=this;b.each(w,function(A,z){b.each(A,function(D){var C=D.ad,B=C.redirectUrlList&&C.redirectUrlList[0]||"";y+=""+x+" "+z+" "+D.tId+" "+D.clipId+" "+D.timestamp+" "+(C.getType()===c.TYPE.NOAD?c.TYPE.NOAD:a.AD)+" "+(B?a.THREE_PAS:a.HOSTED)+" "+(B?n(B):i.NONBREAKING_SPACE)+" ";x+=1;});});return y;};v.toTableRows=function(){var y="",x=0,w=this;b.each(w,function(A,z){if(z!=="toTableRows"){y+=""+x+" "+z+" ";x+=1;}});return y;};t=new g(k,"Clip Status",[]);u=new g(j(window._clipCount,p),"AdCache Stats",[]);q=new g(r,"AdCache Status",["#","key","txnId","clipId","timestamp","Ad/NoAd","3PAS/hosted","3PAS Domain"]);s=new g(v,"RuleCache ClipIds",[]);return t.toString()+" "+u.toString()+" "+q.toString()+" "+s.toString();},add:function(p,q){k[p]=q;},addAll:function(q){var p=this;b.each(q,function(s,r){p.add(r,s);});},remove:function(p){delete k[p];},reset:function(){k={};k[e.EVENT_ADCALL]=false;k[e.EVENT_ADOPPORTUNITY]=false;}};}b.com.yahoo.ads.common.AdsStatus=a;},"1.0.0",{requires:["ScopeLogger","CacheManager","MonitoringBeaconEvent","AdCacheStatistics","HtmlTable","Ad","MonitorBeaconer","YWACode"]});YUI.add("Constants",function(a){a.namespace("com.yahoo.ads.common");
prefix="";Constants={};Constants.FLASH_PLUGIN_URL="http://d.yimg.com/ks/plugin/AdPlugin.swf";Constants.EVENT_PLUGIN_ERROR="AdPluginError";Constants.EVENT_PLUGIN_LOADED="PluginLoaded";Constants.EVENT_PLUGIN_READY="PluginReady";Constants.EVENT_PLUGIN_DESTROY="AdPluginDestroy";Constants.EVENT_PLUGIN_TIMEOUT="AdPluginTimeout";Constants.EVENT_AD_PLAYBACK_NONE="AdPlaybackNone";Constants.EVENT_AD_PLAYBACK_START="AdPlaybackStart";Constants.EVENT_AD_PLAYBACK_STOP="AdPlaybackStop";Constants.EVENT_VIDEO_AD_START="VideoAdStart";Constants.EVENT_AD_START_MEDIA_PLAYBACK="AdStartMediaPlayback";Constants.EVENT_AD_MEDIA_FIRST_BYTE="AdStartMediaFirstByte";Constants.EVENT_VIDEO_AD_DISPLAY="VideoAdDisplay";Constants.EVENT_VIDEO_AD_END="VideoAdEnd";Constants.EVENT_VIDEO_AD_INTERRUPTED="VideoAdInterrupted";Constants.EVENT_RICH_AD_START="RichAdStart";Constants.EVENT_RICH_AD_END="RichAdEnd";Constants.EVENT_OVERLAY_START="OverlayStart";Constants.EVENT_OVERLAY_END="OverlayEnd";Constants.EVENT_EXPERIENCE_COMPLETE="ExperienceComplete";Constants.EVENT_PREPARE_VIDEO="PrepareVideo";Constants.EVENT_AD_PROGRESS="blockingAdProgress";Constants.EVENT_NOAD="PluginNoAd";Constants.EVENT_PROFILER="AdPluginProfiler";Constants.EVENT_METRIC="metricsEvent";Constants.AD_START_ERROR="AD_START_ERROR";Constants.AD_DELIVERY_ERROR="AD_DELIVERY_ERROR";Constants.MANAGED_CONFIG_LOADED_EVENT="MANAGED_CONFIG_LOADED_EVENT";Constants.COMPONENT_LOADED_EVENT="COMPONENT_LOADED_EVENT";Constants.PROPERTY_ID_READY_EVENT="PROPERTY_ID_READY_EVENT";Constants.LOADED_FALLBACK_COMMUNICATOR="LOADED_FALLBACK_COMMUNICATOR";Constants.LOAD_ERROR_EVENT="errorLoading";Constants.AD_ENGINE_READY_EVENT="AD_ENGINE_READY_EVENT";Constants.AD_ENGINE_ERROR_EVENT="AD_ENGINE_ERROR_EVENT";Constants.AD_ENGINE_AD_EVENT="AD_ENGINE_AD_EVENT";Constants.NO_RENDERER_EVENT="NO_RENDERER_EVENT";Constants.NO_ADDATA_EVENT="NO_ADDATA_EVENT";Constants.UNKNOWN_RENDERER_EVENT="UNKNOWN_RENDERER_EVENT";Constants.PLAYER_READY_EVENT="PLAYER_READY_EVENT";Constants.CATEGORY_CHANGE_EVENT="CATEGORY_CHANGE_EVENT";Constants.CLIP_CHANGE_EVENT="CLIP_CHANGE_EVENT";Constants.HTML="html";Constants.FLASH="flash";Constants.ALLOCATION="Allocation";Constants.RULEGROUP="RuleGroup";Constants.LICENSOR_TYPE_ID="licensorTypeId";Constants.SHARED_OBJECTS_NOT_ALLOWED="SharedObjectsNotAllowed";Constants.MME="MME";Constants.AD_READY_EVENT="AdReady";Constants.NOAD_EVENT="NoAd";Constants.NULL_AD_EVENT="NullAd";Constants.ADCALL_ERROR_EVENT="AdCallError";Constants.AD_REDIRECT_EVENT="AdRedirect";Constants.AD_REQUEST_EVENT="AdRequest";Constants.AD_PREFETCH_EVENT="AdPrefetch";Constants.AD_ASSET_PREFTECH="AdAssetPrefetch";Constants.AD_CACHE_REFRESH="AdCacheRefresh";Constants.INVALID_PLAYER_DATA="INVALID_PLAYER_DATA";Constants.TRIGGER_PLAYER_GATEWAY="playerGateway";Constants.TRIGGER_PLAYLIST_GATEWAY="playlistGateway";Constants.TRIGGER_CLIP_GATEWAY="clipGateway";Constants.TRIGGER_CLIP_PREROLL="preroll";Constants.TRIGGER_CLIP_POSTROLL="postroll";Constants.NOTIFICATION_CLIP_CHANGE="clipChange";Constants.EVENT_SKIN_PLAYER="skinPlayer";Constants.EVENT_UNLOCK_PLAYINST="unlockPlaylist";Constants.EVENT_SCALE_VIDEO="scaleVideo";Constants.EVENT_AD_PROGRESS="blockingAdProgress";Constants.EVENT_AD_METRICS="adMetricsEvent";Constants.AD_EVENT="adEvent";Constants.EVENT_CONTENT_COMPLETE="ContentVideoComplete";Constants.ControlTweenEvent="ControlTweenEvent";Constants.ClientInfoChangedEvent="ClientInfoChanged";Constants.RenderCompleteEvent="AD_COMPLETE";Constants.VolumeChangedEvent="volumechanged";Constants.linearTemplateUrl="http://d.yimg.com/ks/templates/clickable_bumper_renderer.js";Constants.linearTemplateInitFn="getVPAIDAd";Constants.AD_CACHE_LIMIT=50;Constants.AD_CACHE_EXPTIME=20;Constants.AD_PREFETCH_TIME=2.9;Constants.AD_FB_RENDER_TIME=0.15;Constants.COOKIE_AD_COUNT="ac";Constants.COOKIE_CLIP_COUNT="cc";Constants.COOKIE_VIDEO_LENGTH="vl";Constants.COOKIE_REC_VIDEO_LENGTH="rvl";Constants.COOKIE_REC_CLIP_COUNT="rcc";Constants.COOKIE_AD_LENGTH="al";Constants.UNDEFINED="undefined";Constants.IMPRESSION="impression";Constants.BITRATE="bitrate";Constants.REDIRECT_NOAD="redirectNoAd";Constants.NOT_AVAILABLE="N/A";Constants.NONBREAKING_SPACE=" ";Constants.ADXML_ENABLE_SKIP_AD=2;Constants.ADXML_DISABLE_SKIP_AD=1;Constants.AD_ENABLE_SKIP=1;Constants.AD_DISABLE_SKIP=0;Constants.VMAP_BREAK_START_EVENT="vmap_breakstart";Constants.CDATA_SECTION_NODE=4;Constants.TEXT_NODE=3;Constants.AD_START_ERROR_CODES={FLASH_SECURITY_ERROR:"FLASH_SECURITY_ERROR",FLASH_IO_ERROR:"FLASH_IO_ERROR",FLASH_ASYNC_ERROR:"FLASH_ASYNC_ERROR",FLASH_GENERIC_ERROR:"FLASH_GENERIC_ERROR",FLASH_VPAID_ERROR:"FLASH_VPAID_ERROR",INCOMPATIBLE_MEDIA:"INCOMPATIBLE_MEDIA"};Constants.SSL_NOT_SUPPORTED="SSL_NOT_SUPPORTED";Constants.LOCATION_PROTOCOL={"HTTP":"http:","HTTPS":"https:"};Constants.AD_PREFETCH_NONE="AD_PREFETCH_NONE";Constants.AD_PREFETCH_INPROGRESS="AD_PREFETCH_INPROGRESS";Constants.AD_PREFETCH_COMPLETE="AD_PREFETCH_COMPLETE";Constants.AD_PARAM={SPACEID:"ad-biz:spaceID",PROPERTYID:"ad-biz:propertyid",PARTNERID:"partnerId",LICENSEID:"ad-biz:licenseID"};Constants.TYPE_OF_NUMBER="number";Constants.TYPE_OF_STRING="string";Constants.TYPE_OF_UNDEFINED="undefined";Constants.TYPE_OF_OBJECT="object";Constants.TYPE_OF_BOOLEAN="boolean";Constants.TYPE_OF_FUNCTION="function";Constants.TYPE_OF_XML="xml";Constants.BOOKINGID="bookingId";Constants.CREATIVEID="creativeId";Constants.SSL_ON=true;Constants.COUNTTOSUPPLY_ON=true;Constants.TECHNOTARGET_ON=false;Constants.MS_XMLDOM="Microsoft.XMLDOM";a.com.yahoo.ads.common.Constants=Constants;},"1.0.0",{requires:["node"]});YUI.add("Cookie",function(a){a.namespace("com.yahoo.ads.common");Cookie=function(c,d){var b=a.com.yahoo.ads.common.Constants;this._cookieEnabled=!!(navigator.cookieEnabled);this._cookieData=null;this._name=c;this._acc=d;this.readCookie=function(){var e="yvap"+"=";var g=document.cookie.split(";");for(var k=0;k"+r+" "+s+" ";});return q;}function j(){if(!p){return 0;}var q=p.match(/^.*?<\/tr>/)[0]||"";return q.match(/";for(q=0;q"+t+" ";}if(u){s=""+l.NONBREAKING_SPACE+" ";for(q=0;q";}function m(){return o?""+o+" ":"";}return{toString:function(){return"";}};}b.com.yahoo.ads.common.HtmlTable=a;},"1.0.0",{});YUI.add("AbstractCommunicator",function(a){a.namespace("com.yahoo.ads.communicator");AbstractCommunicator=function(B,k,G){var F=a.com.yahoo.ads.common.Constants,z=a.com.yahoo.ads.communicator.Ad,C=a.com.yahoo.ads.communicator.parser.ParserManager,c=a.com.yahoo.ads.logging.ScopeLogger,i=a.com.yahoo.ads.communicator.parser.VASTParser;var u="http://";var r=".adserver.yahoo.com/a";var o="http://ads.yimg.com/a/a/vdo/a/1x1.gif";var I="FreeWheel 393";var g=null;var e=null;var t=null;var p=0;var E=0;var L=k;var s=null;var x=null;var f=G;var A=null;var M=0;var D=[];var n=null;var d=null;var m=null;var h=B;var y=this;var b=false;var j=false;var w=0;var K=new a.com.yahoo.ads.communicator.adrequests.AdRequestManager();var l=function(O,P){if(typeof t===F.UNDEFINED||t===null){t=new a.com.yahoo.ads.plugin.Timer(O*1000,0);}else{t.reset();}t.addFunctionOnComplete(y,y._handleTimeOut,P);t.start();};var H=function(P){n=P;var O=null;if(typeof L!==F.UNDEFINED&&L!==null){O=L.rendererType;}K.setRendererType(O);x=new a.com.yahoo.ads.communicator.UrlLoader(O);s=new a.com.yahoo.ads.communicator.parser.ParserManager();};var J=function(P){var O,Q;if(P){O=P.split("://");if(O.length>=2){Q=O[1].split("/");if(Q.length>=1){return"3PAS-"+Q[0];}}}return null;};this.notifyTimeout=function(){if(typeof x!==F.UNDEFINED&&x!==null){x.abort();}};this._getAd=function(U,R){D=[];M=0;var ae=d.getName(),O=d.getId(),S=null,V=null,af=this,aa="VID",Q=R.mActionParams,ac,Y,P,T,W,Z,X;if(Q&&Q.id){Z=Q.id.split(",");aa=AbstractCommunicator.MME_AT_POS_MAP[Z[0]];}if(ae.toLowerCase().indexOf(AbstractCommunicator.NAME.PREVIEW)===0){if(window.getAdXmlForPreview){X=window.getAdXmlForPreview();S=new a.com.yahoo.ads.communicator.AdResponse(X,null,R);this._processAd(S,R);return;}}ac=k.AdCache.getAd(ae+"_"+n.getCustomParameter(F.AD_PARAM.SPACEID)+"_"+aa);if(ac){if(ac.getPrefetch()===F.AD_PREFETCH_INPROGRESS){W=function(){ac=k.AdCache.getAd(ae+"_"+n.getCustomParameter(F.AD_PARAM.SPACEID)+"_"+aa);if(ac.getPrefetch()===F.AD_PREFETCH_COMPLETE){af._processAdFromCache(ac,R);clearInterval(V);}};V=setInterval(W,50);}else{this._processAdFromCache(ac,R);}}else{Y=(aa==="VIDO")?AbstractCommunicator.DEFAULT_AD_REQUEST_TIMEOUT:f;l(Y,[R]);if(ae.toLowerCase().indexOf(AbstractCommunicator.NAME.MME)===0){P={"adComponentSettings":m,"context":n,"adSpec":R};try{T=K.getRequest(P,d.getName());}catch(ab){this.onAdCallError(R);return;}N(T,R);}else{if(ae.toLowerCase().indexOf(AbstractCommunicator.NAME.FWV)===0){S=new a.com.yahoo.ads.communicator.AdResponse(AbstractCommunicator.FW_TEMPLATE,null,R);}else{if(ae.toLowerCase().indexOf(AbstractCommunicator.NAME.CBS)===0){S=new a.com.yahoo.ads.communicator.AdResponse(AbstractCommunicator.CBS_TEMPLATE,null,R);}else{if(ae===I){S=new a.com.yahoo.ads.communicator.AdResponse(AbstractCommunicator.FW_TEMPLATE,null,R);}else{throw {message:"[CommunicatorError] Unknown ad network "+ae,loc:"class: AbstractCommunicator, method: getAd"};}}}if(S){M=-1;S.setIsTemplate(true);this._processAd(S,R);}else{throw {message:"[CommunicatorError] Response template not available.",loc:"class: AbstractCommunicator, method: getAd"};}}}};var N=function(P,T){var S=function(){x.detach(a.com.yahoo.ads.communicator.UrlLoader.AD_RESPONSE,O,y);x.detach(a.com.yahoo.ads.communicator.UrlLoader.ADCALL_ERROR,Q,y);x.detach(a.com.yahoo.ads.communicator.UrlLoader.ADCALL_TIMEOUT,R,y);};var O=function(U){S();y.adReadyCallback(U,T);};var Q=function(){S();if(t){t.reset();}y.onAdCallError(T);};var R=function(){S();y._handleTimeout(T);};x.on(a.com.yahoo.ads.communicator.UrlLoader.AD_RESPONSE,O,y);x.on(a.com.yahoo.ads.communicator.UrlLoader.ADCALL_ERROR,Q,y);x.on(a.com.yahoo.ads.communicator.UrlLoader.ADCALL_TIMEOUT,R,y);x.query(P);};this._setRedirect=function(R,S){var O,Q,P;if(S){S.getRedirect().count=M;}P={"adComponentSettings":m,"context":n,"serverUrl":R,"adSpec":S};
try{O=K.getRequest(P,d.getName());}catch(T){this.onAdCallError(S,T.code);return;}Q=J(O);if(typeof Q!=="undefined"&&Q!==null){if(M===1&&typeof S!=="undefined"&&S!==null){S.getRedirect().targetTag=Q;}D.push(Q);}else{this.onAdCallError(S);return;}N(O,S);};this._processAdFromCache=function(O,P){if(typeof O.redirectCount!==F.UNDEFINED&&O.redirectCount!==null&&typeof O.redirectUrlList!==F.UNDEFINED&&O.redirectUrlList!==null&&O.redirectUrlList.length>0){P.getRedirect().count=O.redirectCount;P.getRedirect().targetTag=O.redirectUrlList[0];}O.setSpec(P);if(O.getType()===z.TYPE.NOAD){this._notifyNoAd(P,O);}else{this._notifyAdReady(O);}};this._processAd=function(V,U){var P=0,R,S,O,Q,T;T=V.getPayload();if(T.indexOf("adResults")>-1){T=T.replace(/&(?!amp;)/g,"&");}S=m.getSetting("allowSkipAds");j=(typeof S!==F.UNDEFINED&&S!==null&&S==="true");if(j){if(m.getSetting("skipCountdownDuration")){w=parseInt(m.getSetting("skipCountdownDuration"),10);}}Q=function(){y._notifyParseError(U);};s.detach(C.PARSE_ERROR,Q,this);s.on(C.PARSE_ERROR,Q,this);R=s.parseAd(T,g);if(R instanceof Array){for(P=0;P0){return u+O+r;}else{return u+"us"+r;}};this.prefetchAd=function(Q){var P=null,O=function(R){y.adReadyCallback(R,null);};l(f,[]);g=null;if(Q){P=new a.com.yahoo.ads.communicator.AdResponse(Q,null);if(Q.match(/\$\{\w+\}/)){P.setIsTemplate(true);}O(P);}};this.getRevShareString=function(){var O=null,P=n.getCustomParameter(F.AD_PARAM.LICENSEID);if(typeof P!==F.UNDEFINED&&P!==null&&P.length>0){O="lmsid:"+P;}return O;};this.getPosition=function(P,O){if(O&&O>1){return"n"+O+P;}return P;};this._notifyAdReady=function(O){O.setCommunicator(this);this.fire(MonitoringBeaconEvent.EVENT_NAME,new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_VALID_AD,{ad:O}));this.fire(MonitoringBeaconEvent.EVENT_NAME,new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_ADCALLEND,this.getNetworkName()));this.fire(F.AD_READY_EVENT,O);q(O);};this._notifyNullAd=function(O){if(E===1){this.fire(F.NULL_AD_EVENT,O);}};this._notifyParseError=function(O){this.fire(MonitoringBeaconEvent.EVENT_NAME,new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_ERR_PARSING,O));this.fire(MonitoringBeaconEvent.EVENT_NAME,new MonitoringBeaconEvent(MonitoringBeaconEvent.EVENT_ADCALLEND,this.getNetworkName()));this._notifyNullAd(O);};this._notifyNoAd=function(S,R){var P,Q,O;if(R){P=R.redirectCount;if(P>0){O=R.getBeacons(i.REDIRECT_NOAD);}else{O=R.getBeacons(i.IMPRESSION);}if(typeof O!==F.UNDEFINED&&O!==null){for(Q=0;Q Yahoo ';AbstractCommunicator.CBS_TEMPLATE=' Yahoo ';AbstractCommunicator.MME_TEMPLATE="?pn=${vid_ap_mmepn}&f=${vid_cl_mmef}&p=${vid_cl_mmep}&c=${vid_cl_mmec}&l=${vid_cl_mmel}&at=${vid_cl_mmeat}vf=1&rs=${vid_cl_mmers}&rand=${vid_cl_mmerand}";AbstractCommunicator.DEFAULT_AD_REQUEST_TIMEOUT=2.9;a.augment(AbstractCommunicator,a.EventTarget);a.com.yahoo.ads.communicator.AbstractCommunicator=AbstractCommunicator;},"1.0.0",{requires:["node","UrlLoader","AdResponse","VASTParser","Constants","datatype-xml-parse","AdRequestManager","ParserManager"]});YUI.add("Ad",function(b){b.namespace("com.yahoo.ads.communicator");var a=function(){var r=b.com.yahoo.ads.common.Constants,s=b.com.yahoo.ads.communicator.AbstractCommunicator,g=b.com.yahoo.ads.utils.Utils;var q={},k={},m="",v="",p=null,x=null,w=null,j="",l=false,u=r.AD_DISABLE_SKIP,y=5,f=false,n=false,c={},h=null,e=null,t=null,o=null,d="",i="";_prefetch=r.AD_PREFETCH_NONE;this.setAdId=function(z){if(typeof z===r.TYPE_OF_STRING){e=z;}};this.getAdId=function(){return e;};this.setVpaidId=function(z){if(typeof z===r.TYPE_OF_STRING){t=z;}};this.setCreativeAndBookingId=function(z){if(z){i=z[r.BOOKINGID]||"";d=z[r.CREATIVEID]||"";}};this.getVpaidId=function(){return t;};this.getCreativeId=function(){return d;};this.getBookingId=function(){return i;};this.setFallbackAd=function(z){if(z instanceof a){o=z;}};this.getFallbackAd=function(){return o;};this.isVast=function(){return h===a.FORMAT.VAST;};this.isVmap=function(){return h===a.FORMAT.VMAP;};this.isYahoo=function(){return h===a.FORMAT.YAHOO;};this.setAsCached=function(z){if(typeof(z)===r.TYPE_OF_BOOLEAN){f=z;}};this.isCached=function(){return f;};this.setAsFallback=function(z){if(typeof(z)===r.TYPE_OF_BOOLEAN){n=z;}};this.isFallback=function(){return n;};this.getSkip_directive_publisher=function(){return l;};this.setSkip_directive_publisher=function(z){if(typeof(z)===r.TYPE_OF_BOOLEAN){l=z;u=l?u:r.AD_DISABLE_SKIP;}};this.getSkip_directive=function(){return u;};this.setSkip_directive=function(z){if(z===r.ADXML_DISABLE_SKIP_AD){u=r.AD_DISABLE_SKIP;}else{if(z===r.ADXML_ENABLE_SKIP_AD){u=r.AD_ENABLE_SKIP;}}};this.getSkip_countdown_timer=function(){return y;};this.setSkip_countdown_timer=function(z){if(!isNaN(z)&&z>0){y=z;}};this.getRedirectURL=function(){return j;};this.setRedirectURL=function(z){j=z;};this.getUrl=function(){return m;};this.setUrl=function(z){if(typeof z===r.TYPE_OF_STRING){m=z;}};this.getPrefetch=function(){return _prefetch;};this.setPrefetch=function(z){if(typeof z===r.TYPE_OF_STRING){_prefetch=z;}};this.getType=function(){return v;};this.setType=function(z){if(z===a.TYPE.NOAD||z===a.TYPE.OVERLAY||z===a.TYPE.REDIRECT||z===a.TYPE.VPAID){v=z;}};this.getPos=function(){return p;};this.setPos=function(z){if(z===a.POSITION.BUMPER||z===a.POSITION.CLICKABLE||z===a.POSITION.OVERLAY){p=z;}};this.getSpec=function(){return x;};this.setSpec=function(z){x=z;};this.getCommunicator=function(){return w;};this.setCommunicator=function(z){if(z instanceof s){w=z;}};this.addBeacon=function(B,A){var z=q[B];if(typeof z===r.UNDEFINED||z===null){z=[];q[B]=z;}z.push(A);if(A.url.indexOf("csc.beap.bc.yahoo.com")>0){this.setCreativeAndBookingId(g.getCreativeAndBookingId(A.url));
}};this.addBeaconsFromAd=function(D){var C=null,A,z,B;if(D instanceof a){A=D.getAllBeacons();for(C in A){z=D.getBeacons(C);for(B=0;B0){t=t.replace(/>\s+<");o.onAdServerResponse(t,m);}else{o.onAdCallError();}};var n=function(v,u,s){var t=u.statusText;if(t==="timeout"){if(h===true){return;}o.onAdCallTimeout();}else{o.onAdCallError();}};l=g(j);r=(l==="yahoo.com");q=c(l);p={method:"GET",xdr:{use:"native",credentials:q},on:{success:k,failure:n},sync:d};a.io.header("X-Requested-With");h=false;e=a.io(j,p);};this.onAdServerResponse=function(k,l){var j=new a.com.yahoo.ads.communicator.AdResponse(k,l);this.fire(UrlLoader.AD_RESPONSE,j);};this.onAdCallTimeout=function(){this.fire(UrlLoader.ADCALL_TIMEOUT,null);};this.onAdCallError=function(){this.fire(UrlLoader.ADCALL_ERROR,null);};};UrlLoader.prototype.whiteList={"amgdgt.com":true,"adap.tv":true,"videohub.tv":true,"doubleclick.net":true,"undertone.com":true,"jivox.com":true,"adform.net":true,"flashtalking.com":true,"telemetryverification.net":true,"fwmrm.net":true,"eyereturn.com":true,"zedo.com":true,"tubemogul.com":true,"tidaltv.com":true,"yahoo.com":true,"cbs.com":true,"innovid.com":true,"moatads.com":true};UrlLoader.prototype.domainRegex=/[\w-]+\.(?:com|net|tv)/;UrlLoader.AD_RESPONSE="AD_RESPONSE";UrlLoader.ADCALL_TIMEOUT="ADCALL_TIMEOUT";UrlLoader.ADCALL_ERROR="ADCALL_ERROR";a.augment(UrlLoader,a.EventTarget);a.com.yahoo.ads.communicator.UrlLoader=UrlLoader;},"1.0.0",{requires:["node","jsonp","ScopeLogger","AdResponse","Utils"]});YUI.add("AdRequestGeneratorFactory",function(c){c.namespace("com.yahoo.ads.communicator.adrequests");var a=c.com.yahoo.ads.common.Constants;var b=function(){};b.PREVIEW="PREVIEW";b.MME="MME";b.FREEWHEEL_VAST="FREEWHEEL_VAST";b.CBS="CBS";b.SSL_SUPPORT={"MME":true,"FREEWHEEL_VAST":false,"CBS":false};b.getRequestGenerator=function(e,g){var f,h=window.location.protocol,d="";if(e.indexOf(b.PREVIEW)===0){f=new c.com.yahoo.ads.communicator.adrequests.impl.PreviewRequestGenerator(g);}else{if(e.indexOf(b.MME)===0){d=b.MME;f=new c.com.yahoo.ads.communicator.adrequests.impl.MMERequestGenerator(g);}else{if(e.indexOf(b.FREEWHEEL_VAST)===0){d=b.FREEWHEEL_VAST;f=new c.com.yahoo.ads.communicator.adrequests.impl.FreewheelRequestGenerator(g);}else{if(e.indexOf(b.CBS)===0){d=b.CBS;f=new c.com.yahoo.ads.communicator.adrequests.impl.CBSRequestGenerator(g);}else{throw {message:"[RequestGenerationError] Unknown network name : "+e,loc:"class: AdRequestGeneratorFactory, method: getRequestGenerator"};}}}}if(a.SSL_ON&&h===a.LOCATION_PROTOCOL.HTTPS&&!b.SSL_SUPPORT[d]){throw {message:"[RequestGenerationError] SSL Support missing for : "+e,loc:"class: AdRequestGeneratorFactory, method: getRequestGenerator",code:a.SSL_NOT_SUPPORTED};}return f;};c.com.yahoo.ads.communicator.adrequests.AdRequestGeneratorFactory=b;},"1.0.0",{requires:["CBSRequestGenerator","FreewheelRequestGenerator","MMERequestGenerator","PreviewRequestGenerator","Constants"]});YUI.add("AdRequestManager",function(b){b.namespace("com.yahoo.ads.communicator.adrequests");var a=function(){var c="";this.getRequest=function(e,d){if(!e){throw {message:"[RequestGenerationError] config is undefined or null.",loc:"class: AdRequestManager, method: getRequest"};}if(!d){throw {message:"[RequestGenerationError] network name is undefined or null.",loc:"class: AdRequestManager, method: getRequest"};}var f=b.com.yahoo.ads.communicator.adrequests.AdRequestGeneratorFactory.getRequestGenerator(d,c);return f.generateRequest(e);};this.setRendererType=function(d){c=d;};};b.com.yahoo.ads.communicator.adrequests.AdRequestManager=a;},"1.0.0",{requires:["AdRequestGeneratorFactory"]});YUI.add("RequestGenerationUtils",function(c){c.namespace("com.yahoo.ads.communicator.adrequests");var a=c.com.yahoo.ads.common.Constants;var b={};b.HTTP="http://";b.HTTPS="https://";b.SSL="https:";b.ADSERVER=".adserver.yahoo.com/a";b.getFinalAdServerUrl=function(f){var e=f.getSetting("adBaseUrl");var d=(e&&e.length>0)?e:"us";return b.HTTP+d+b.ADSERVER;};b.getAdTargetingInfo=function(f){var h=f.getCustomParameter("ad-extra:adTargeting"),e=c.DataType.XML.parse(h),d={message:"[RequestGenerationError] missing adTargeting in configuration.",loc:"class: RequestGenerationUtils, method: getAdTargetingInfo"};
if(!e){try{e=new ActiveXObject(a.MS_XMLDOM);e.async=false;e.loadXML(h);}catch(g){throw d;}}if(!e){throw d;}return e.getElementsByTagName("adData")[0];};b.expandMacro=function(e,f){var d=/\$\{(\w)+\}/g;var g=function(i){var k=/(\w)+/g;var h=i.match(k);var j=h[0];return f[j]?f[j]:"";};e=e.replace(d,g);e=b.cleanUpUrl(e);return this.updateProtocol(e);};b.cleanUpUrl=function(e){var g=/(\w)+=&/g;while(e.match(g)){e=e.replace(g,"");}var f=/(\w)+=($|;|;;)/;while(e.match(f)){e=e.replace(f,"$2");}var d=/(;|;;|&)$/;while(e.match(d)){e=e.replace(d,"");}return e;};b.getPosition=function(e,d){if(d&&d>1){return"n"+d+e;}return e;};b.updateProtocol=function(d){var e=window.location.protocol;if(a.SSL_ON&&e===b.SSL){d=d.replace(b.HTTP,b.HTTPS);}return d;};c.com.yahoo.ads.communicator.adrequests.RequestGenerationUtils=b;},"1.0.0",{requires:["datatype-xml-parse"]});YUI.add("CBSRequestGenerator",function(b){b.namespace("com.yahoo.ads.communicator.adrequests.impl");var a=function(e){var d=e;var c=b.com.yahoo.ads.communicator.adrequests.RequestGenerationUtils;this.generateRequest=function(g){var h=f(g);return c.expandMacro(g.serverUrl,h);};var f=function(l){var i={},h,g,j;try{h=c.getAdTargetingInfo(l.context);}catch(k){throw k;}if(h){g=h.getAttribute("id");j="";if(g==="ad_url"){j=h.getAttribute("value");if(j.indexOf("xml=vast")>=0){j+=";pos=1";}else{j+=";pos=1;xml=yahoo";}}else{throw {message:"[RequestGenerationError] id is not 'ad_url' in adTargeting.",loc:"class: CBSRequestGenerator, method: populateCBSMacro"};}i.vid_cl_cbsurl=j;}else{throw {message:"[RequestGenerationError] missing adData tag in adTargeting.",loc:"class: CBSRequestGenerator, method: populateCBSMacro"};}return i;};};b.com.yahoo.ads.communicator.adrequests.impl.CBSRequestGenerator=a;},"1.0.0",{requires:["RequestGenerationUtils"]});YUI.add("FreewheelRequestGenerator",function(b){b.namespace("com.yahoo.ads.communicator.adrequests.impl");var a=function(e){var d=e;var c=b.com.yahoo.ads.communicator.adrequests.RequestGenerationUtils;this.generateRequest=function(g){var h=f(g);return c.expandMacro(g.serverUrl,h);};var f=function(l){var k={},g,j,i;try{g=c.getAdTargetingInfo(l.context);}catch(h){throw h;}if(g){j=g.getAttribute("id");i="";if(j==="TurnerVideoID"||j==="YahooPartnerVideoID"){i=g.getAttribute("value");}k.vid_cl_fwcaid=i;}else{throw {message:"[RequestGenerationError] missing adData tag in adTargeting.",loc:"class: FreewheelRequestGenerator, method: populateFWMacros"};}k.vid_ap_fw_server_url=l.adComponentSettings.getSetting("AdServerUrl");k.vid_ap_fwnw=l.adComponentSettings.getSetting("YahooNetworkId");k.vid_ap_fwmetr=l.adComponentSettings.getSetting("CapabilitySupportFlags");k.vid_ap_fwsfid=l.adComponentSettings.getSetting("SiteSectionFallbackId");k.vid_ap_fwresp=l.adComponentSettings.getSetting("ResponseType");k.vid_ap_fwssnw=l.adComponentSettings.getSetting("SiteSectionNetworkId");if(l.adComponentSettings.getSetting("OverrideSAPI")==="true"){k.vid_cl_fwcsid=l.adComponentSettings.getSetting("SiteSectionMapping");}else{k.vid_cl_fwcsid=l.context.getCustomParameter("ad-extra:adTargetingCategory");}k.vid_ap_fwcrtp=l.adComponentSettings.getSetting("CustomResponseType");k.vid_ap_fwafid=l.adComponentSettings.getSetting("VideoAssetFallbackId");k.vid_ap_fwflag=l.adComponentSettings.getSetting("ImpressionFlags");k.vid_ap_fwasnw=l.adComponentSettings.getSetting("VideoAssetNetworkId");k.vid_ap_fwprof=l.adComponentSettings.getSetting("PlayerProfile");k.vid_ap_fwtpcl=l.adComponentSettings.getSetting("SlotTimePositionClass");k.vid_ap_fwslau=l.adComponentSettings.getSetting("CustomAdUnitName");k.vid_ap_fwslid=l.adComponentSettings.getSetting("SlotCustomId");k.vid_ap_fwptgt=l.adComponentSettings.getSetting("SlotType");k.vid_ap_fwflag1=l.adComponentSettings.getSetting("SlotFlags");k.vid_ap_fwh=l.adComponentSettings.getSetting("SlotHeight");k.vid_ap_fww=l.adComponentSettings.getSetting("SlotWidth");k.vid_ap_fwtpos=l.adComponentSettings.getSetting("SlotTimePosition");k.vid_ap_fwflag2=l.adComponentSettings.getSetting("SlotFlags2");k.vid_ap_fwh2=l.adComponentSettings.getSetting("SlotHeight2");k.vid_ap_fww2=l.adComponentSettings.getSetting("SlotWidth2");k.vid_ap_fwtpcl2=l.adComponentSettings.getSetting("SlotTimePositionClass2");k.vid_ap_fwslau2=l.adComponentSettings.getSetting("CustomAdUnitName2");k.vid_ap_fwslid2=l.adComponentSettings.getSetting("SlotCustomId2");k.vid_ap_fwptgt2=l.adComponentSettings.getSetting("SlotType2");k.vid_ap_fwtpos2=l.adComponentSettings.getSetting("SlotTimePosition2");k.vid_ap_addlslot=l.adComponentSettings.getSetting("AdditionalSlotParams");k.vid_ap_fwvprn=Math.round(Math.random()*100000000).toString();k.vid_ap_fwpvrn=Math.round(Math.random()*100000000).toString();return k;};};b.com.yahoo.ads.communicator.adrequests.impl.FreewheelRequestGenerator=a;},"1.0.0",{requires:["RequestGenerationUtils"]});YUI.add("MMERequestGenerator",function(c){c.namespace("com.yahoo.ads.communicator.adrequests.impl");var a=c.com.yahoo.ads.common.Constants;var b=function(l){var n=l;var f={"overlayC2V":"v4","overlayC2S":"v5","clickable":"v1%3Bv7%3Bv8","interactive":"v2","asq":"v6"};var e={"bumper":"BMPR","overlayC2V":"VIDO","overlayC2S":"VIDO","clickable":"VID","interactive":"VID","asq":"VID"};var h="flv_as3%3Bxml_ver_2.0%3Bxml_ver_2.0vast";var i="%3Bvpaidt_none%3Bvpaidt_swf%3Bvpaidv_v1%3Bfm_flv%3Bfm_mp4%3Bfm_webm";var m="%3Bvpaidt_none%3Bfm_mp4%3Bfm_webm";var j="?pn=${vid_ap_mmepn}&f=${vid_cl_mmef}&p=${vid_cl_mmep}&c=${vid_cl_mmec}&l=${vid_cl_mmel}&at=${vid_cl_mmeat}vf=1&rs=${vid_cl_mmers}&rand=${vid_cl_mmerand}";var d=c.com.yahoo.ads.communicator.adrequests.RequestGenerationUtils;var p=1;this.generateRequest=function(r){if(r.serverUrl){r.serverUrl=d.updateProtocol(r.serverUrl);return r.serverUrl;}var s=o(r),q=d.getFinalAdServerUrl(r.adComponentSettings);return d.expandMacro(q+j,s);};var o=function(t){var r={},q,s;r.vid_ap_mmepn=t.adComponentSettings.getSetting("partnerId");r.vid_cl_mmef=t.context.getCustomParameter("ad-biz:spaceID");r.vid_cl_mmep=t.context.getCustomParameter("ad-biz:propertyid");
r.vid_cl_mmec="x";r.vid_cl_mmerand=Math.round(Math.random()*10000000000000);q=t.adComponentSettings.getSetting("sendRsParam");if(q&&q==="true"){r.vid_cl_mmers=g(t.context);}s=k(t.adSpec,"POS");r.vid_cl_mmel=d.getPosition(s,p);r.vid_cl_mmeat="content%3D%22"+k(t.adSpec,"VERSION")+h;if(a.TECHNOTARGET_ON){if(n===a.HTML){r.vid_cl_mmeat+=m;}else{if(n===a.FLASH){r.vid_cl_mmeat+=i;}}}r.vid_cl_mmeat+="%22";return r;};var k=function(v,u){var t=v.mActionParams,w=t.id.split(","),q="",r,s;if(t.id){if(u==="POS"){return e[w[0]];}else{if(u==="VERSION"){q="";for(r=0;r=t){break;}}if(typeof u!=="undefined"&&u!==null){w=u.module;return w;}return null;};this.selectCommunicator=function(){var v=null;var o=[];var s=0;var u=null;var j=d.getNetworkModules();var n=d.getSettings();for(var q=0;q=t){break;}}if(typeof u!=="undefined"&&u!==null){v=u.module;}return v;};this.pickFallbackCommunicator=function(v,w){var q=e[w.initialCommunicatorId];var u=e[v];if(typeof u==="undefined"||u===null){return null;}var g=u+1;var r=false;var o=0;var k=d.getNetworkModules();while(!r&&g=d.getNetworkModules().length);};};a.com.yahoo.ads.communicator.allocation.PercentageAllocationAlgorithm=PercentageAllocationAlgorithm;},"1.0.0",{requires:["ManAllocation"]});YUI.add("ParserFactory",function(b){b.namespace("com.yahoo.ads.communicator.parser");var a=function(){};a.getParser=function(c){if(c==="VAST"){return new b.com.yahoo.ads.communicator.parser.VASTParser();}else{if(c==="adResults"){return new b.com.yahoo.ads.communicator.parser.YahooParser();}else{if(c==="vmap:VMAP"){return new b.com.yahoo.ads.communicator.parser.VMAP1Parser();}}}return null;};b.com.yahoo.ads.communicator.parser.ParserFactory=a;},"1.0.0",{requires:["VMAP1Parser","YahooParser","VASTParser"]});YUI.add("ParserManager",function(c){c.namespace("com.yahoo.ads.communicator.parser");var b=c.com.yahoo.ads.common.Constants;var a=function(){this.parserFactory=null;this.parser=null;};a.prototype.parseAd=function(i,h){var g=null,f,d;if(typeof i!==b.UNDEFINED&&i!==null&&i.length>0){try{i=i.replace(/>\s+<");i=i.replace(/<\!--.*?-->/g,"");f=c.DataType.XML.parse(i);if(!f){f=new ActiveXObject(b.MS_XMLDOM);f.async=false;f.loadXML(i);}d=f.documentElement.nodeName;this.parserFactory=c.com.yahoo.ads.communicator.parser.ParserFactory;this.parser=this.parserFactory.getParser(d);if(this.parser){g=this.parser.parseAd(f.documentElement,h);}else{this.fire(a.PARSE_ERROR);}}catch(j){this.fire(a.PARSE_ERROR);}}return g;};a.PARSE_ERROR="ParseError";c.augment(a,c.EventTarget);c.com.yahoo.ads.communicator.parser.ParserManager=a;},"1.0.0",{requires:["datatype-xml-parse","Ad","ParserFactory"]});YUI.add("VASTParser",function(b){b.namespace("com.yahoo.ads.communicator.parser");var a=function(){var H=b.com.yahoo.ads.common.Constants,z=b.com.yahoo.ads.communicator.Ad,e=b.com.yahoo.ads.logging.ScopeLogger,B=b.com.yahoo.ads.utils.Utils;var G=null,q=false,r=false,o=false,l=false,L=false,f=false;var m=function(P){var N,M,O="",S,R="";try{if(typeof P!==H.UNDEFINED&&P!==null){O=P.getAttribute("apiFramework");N=O&&(O.toLowerCase()===z.TYPE.VPAID);S=P.getElementsByTagName("StaticResource");if(S.length>0){R=S[0].getAttribute("creativeType");if(R){R=R.toLowerCase();}}M=(R==="application/x-shockwave-flash");o=(R==="image/jpeg"||R==="image/png"||R==="image/gif");r=N&&M;}}catch(Q){}};var K=function(Y){var R=[],V=[],O,U,Q,P,N,X,W,T,M;if(typeof Y===H.UNDEFINED||Y===null||Y.length===0){return"";}l=true;try{U=''+"";
for(Q=0;Q ';}}U+="nonadult ";return U;}catch(S){return"";}};var k=function(S,T,P){var R,Q,M,O;if(typeof S===H.UNDEFINED||S===null||S.length===0){return;}for(var N=0;N0){S=P.childNodes;O={"IFrameResource":function(X,Y){G.addParam("companionBannerType"+X,"IFRAME");G.addParam("companionBannerSrc"+X,B.getTextFromNode(Y));},"HTMLResource":function(X,Y){G.addParam("companionBannerType"+X,"HTML");G.addParam("companionBannerSrc"+X,B.getTextFromNode(Y));},"StaticResource":function(X,Y){G.addParam("companionBannerType"+X,"STATIC");G.addParam("companionMimeType"+X,Y.getAttribute("creativeType"));G.addParam("companionBannerSrc"+X,B.getTextFromNode(Y));},"TrackingEvents":function(Y,aa){var ab=aa.childNodes,X,Z;if(ab.length&&ab.length>0){for(X=0;X=0){var M=P.substring(0,N)+a.CPCV_SUFFIX;O.url=M;}else{O.url=P;}}else{O.url=P;}};var u=function(){try{L=L&&l;f=f&&l||!L;if(f){if(q===true){return z.TYPE.VPAID;}y();return"ybt";}else{if(L){t();return"yct";}}}catch(M){}return"";};var g=function(S){var Y=S.childNodes,X="",V="",U=null,W=null,Q=null,P=null,O=null,N,R,M,Z;N={"VideoClicks":function(ab){var aa,ac,ae;ac=ab.childNodes;for(aa=0;aa0;V=K(aa.childNodes);G.setType(z.TYPE.OVERLAY);}},"AdParameters":function(ab){var ae=ab.childNodes,aa,ac;if(ae.length>0){aa=ae[0].nodeType;if(aa===H.CDATA_SECTION_NODE||aa===H.TEXT_NODE){ac=B.getTextFromNode(ab);if(ac){G.addParam("params",ac);}}}Q=ab.getElementsByTagName("yahoo_video_ad_item");L=Q.length>0;f=Q.length===0;P=ab.getElementsByTagName("yahoo_video_ad_beacon");}};for(R=0;R0){G.addParam("params",B.getTextFromNode(M[0]));}}catch(O){}};var D=function(Q){var M,N,O,P;M={"Linear":g,"NonLinearAds":A,"CompanionAds":s};for(N=0;N0){for(N=0;N0){M=true;D(R);}}}if(!M){G.setType(z.TYPE.NOAD);}}else{G.setType(z.TYPE.NOAD);}};var n=function(Q){var M,S,N,O,P;M={"VASTAdTagURI":function(T){G.setRedirectURL(B.getTextFromNode(T));G.setType(z.TYPE.REDIRECT);},"Impression":function(T){k([T],a.IMPRESSION,a.IMPRESSION);},"Creatives":x,"Extensions":C};try{S=Q.childNodes;if(S&&S.length>0){for(N=0;N0){q=j.getTextFromNode(o[0]);}k.setRedirectURL(q);h(n,p);};var d=function(n){k.setType(b.TYPE.NOAD);k.setPos(b.POSITION.CLICKABLE);};var c=function(n,r){var q,p,o,t;k.setType(b.TYPE.OVERLAY);k.setPos(b.POSITION.OVERLAY);h(n,r);try{q=j.getElementsByTagNameNS(n,r,"creatives",YahooParser.NS)[0];p=j.getElementsByTagNameNS(q,r,"creative",YahooParser.NS)[0].getAttribute("url");k.setUrl(p);}catch(s){}try{o=j.getElementsByTagNameNS(n,r,"creativeData",YahooParser.NS)[0];
t=j.getElementsByTagNameNS(o,r,"item",YahooParser.NS);g(t);}catch(s){}};this.parseAd=function(u,p){var v=0,z,x=[],s,t,n,q,y,r,A,o;if(typeof u===f.UNDEFINED||u===null){return x;}k=new b();s=u.getElementsByTagName("position");t=(typeof s!=="undefined"&&s!==null)?s[0]:null;n=(typeof t!=="undefined"&&t!==null)?t.getElementsByTagName("addata"):null;if(!n||n.length<1){return;}do{z=n[v];try{m(z);q=z.getElementsByTagName("ads");if(q&&q.length>0){o=q[0].getAttribute("xmlns:video-ad");A=q[0].getElementsByTagName("ad");y=(typeof A!=="undefined"&&A!==null)?A[0]:null;r=(typeof y!=="undefined"&&y!==null)?j.getElementsByTagNameNS(y,o,"adtag",YahooParser.NS):null;if(r&&r.length>0){e(y,o);}else{c(y,o);}}else{d();}}catch(w){d();}finally{if(typeof p===f.UNDEFINED||p===null){k.setFormat(b.FORMAT.YAHOO);}else{k.addBeaconsFromAd(p);k.setFormat(p.getFormat());}}x.push(k);v++;k=new b();}while(v=2){this.fire(a.com.yahoo.ads.engine.EngineActionEvent.RESET_EVENT);this.mLastSecondExecuted=c;return;}this.mLastSecondExecuted=c;this.qCount=0;this.evaluateRuleGroup(_mActiveGroupId,g);var b=[];b=_actionEventResolver.resolveBlockingEvent(g.getActions(),null);
for(var d=0;d0){if(f>0){g+=";"+e+"="+c[e];}else{g+=e+"="+c[e];}}f++;}return g;}};};a.com.yahoo.ads.man.AdComponentSettings=AdComponentSettings;},"1.0.0",{requires:["node","ScopeLogger"]});YUI.add("ManAllocation",function(a){a.namespace("com.yahoo.ads.man");ManAllocation=function(){var b=[],d=null,c=null;return{init:function(h){var g,e,f;this.parseNetworkModules(h.NetworkModules);this.parseSettings(h.Settings);g=d["SELECTOR.ID"];e=h.AllocationModule;for(f=0;f-1||ar.mActionParams.id.indexOf("overlayC2S")>-1){return"VIDO";}else{if(ar.mActionParams.id.indexOf("clickable")>-1||ar.mActionParams.id.indexOf("interactive")>-1||ar.mActionParams.id.indexOf("asq")>-1||ar.mActionParams.id.indexOf("interavtive-4s")>-1){return"VID";}}}return null;};var ak=function(au){var at=au.getType();var ar=au.getSubType();if(at&&at.length>0){return at;}else{if(ar&&ar.length>0){return ar;}else{if(au.mActionParams.id=="overlay"||au.mActionParams.id.indexOf("overlayC2V")>-1||au.mActionParams.id.indexOf("overlayC2S")>-1){return"overlay";}else{return"midroll";}}}};var aj=function(au,at){var ar=ErrorCode[au],ax,ay,aw,av;if(ar){monitoringBeaconDict={};monitoringBeaconDict.env=MonitorBeaconer.OQS_ENV;monitoringBeaconDict[ar]="";z(null,null,monitoringBeaconDict);}if(au==MonitoringBeaconEvent.EVENT_ERR_ADCALL){if(!j){j={};}j.code=YWACode.RESPONSE_CODE.AD_CALL_ERROR;j.type=YWACode.RESPONSE_TYPE.ERROR;if(at){ax=at;ay=ax.getRedirect();j.redirect=ay.targetTag;j.redirectCount=ay.count;}}else{if(au===MonitoringBeaconEvent.EVENT_ERR_SSL_NOT_SUPPORTED){if(!j){j={};}j.code=YWACode.RESPONSE_CODE.SSL_NOT_SUPPORTED;j.type=YWACode.RESPONSE_TYPE.ERROR;if(at){ax=at;ay=ax.getRedirect();j.redirect=ay.targetTag;j.redirectCount=ay.count;}}else{if(au==MonitoringBeaconEvent.EVENT_ERR_AD_TIMEOUT){if(!j){j={};}j.code=YWACode.RESPONSE_CODE.AD_CALL_TIMEOUT;j.type=YWACode.RESPONSE_TYPE.ERROR;if(at){ax=at;ay=ax.getRedirect();j.redirect=ay.targetTag;j.redirectCount=ay.count;}}else{if(au===MonitoringBeaconEvent.EVENT_ERR_VMAP_PARSING){if(!j){j={};}j.code=YWACode.RESPONSE_CODE.VMAP_PARSE_ERROR;j.type=YWACode.RESPONSE_TYPE.VAST;if(at){ax=at;ay=ax.getRedirect();j.redirect=ay.targetTag;j.redirectCount=ay.count;}}else{if(au===MonitoringBeaconEvent.EVENT_ERR_PARSING){if(!j){j={};}j.code=YWACode.RESPONSE_CODE.PARSE_ERROR;j.type=YWACode.RESPONSE_TYPE.ERROR;if(at){ax=at;ay=ax.getRedirect();j.redirect=ay.targetTag;j.redirectCount=ay.count;}}else{if(au===MonitoringBeaconEvent.EVENT_AD_START_ERROR){V=YWACode.AD_START_ERROR_CODES[at.data];aw=n();av=x();z(null,av,aw);}else{if(au===MonitoringBeaconEvent.EVENT_AD_DELIVERY_ERROR){f=YWACode.AD_DELIVERY_ERROR_CODES[at.data];aw=ai();av=Z();z(null,av,aw);}}}}}}}};this.handleAction=function(aC){var aw=aC.getAction(),ax,aB,ar,aF,au,aE,av,aD,ay,at,aA,az;aB=aC.getBeaconData();if(aw==MonitoringBeaconEvent.EVENT_PLUGIN_INIT){E=aB.account_id;ah=aB.version;}else{if(aw==MonitoringBeaconEvent.EVENT_ADCALL){u=false;e={};e.isLoadingTime=false;d(e);N();av=aB;b=ak(av);af=h(av);k=aB.communicatorName;ab=(aB.retryCount+1);R="";}else{if(aw==MonitoringBeaconEvent.EVENT_ADCALLEND){if(e&&e.isLoadingTime){e.metric="adl";e.profilerMetric=MonitorBeaconer.YVAP_ADCALL_LOAD_LATENCY;e.msg="Time taken to load ad from AD Network";w(e,true);p=e.diffLoadTime;A=j.type;H=j.code;q=j.redirect;I=j.redirectCount;m=j.cacheHit;O=j.fallback;k=aB;C=(u===true)?YWACode.TRUE:YWACode.FALSE;t=j.creativeId||"";M=j.bookingId||"";aF=Q();ar=G(e);z(null,aF,ar);}j=null;}else{if(aw==MonitoringBeaconEvent.EVENT_ADOPPORTUNITY){ap=aB.taken?MonitorBeaconer.YVAP_AD_OPPORTUNITY_TAKEN:MonitorBeaconer.YVAP_AD_OPPORTUNITY_NOT_TAKEN;S=aB.type;P=aB.rulesetId;D=aB.playContext;ao=aB.oppPosition;ac=aB.networkName;aF=o();ar=s();z(null,aF,ar);}else{if(aw==MonitoringBeaconEvent.EVENT_CLIPCHANGE){B={};B.isLoadingTime=false;d(B);}else{if(aw==MonitoringBeaconEvent.EVENT_ADSTART){B.metric="asl";B.profilerMetric=MonitorBeaconer.YVAP_ADSTART_LATENCY;B.msg="Time taken to start an Ad after beginAdExperience";au=B.isLoadingTime;w(B,true);if(u){al.metric="tta";al.msg="Time taken for Ad start after timeout.";al.profilerMetric=MonitorBeaconer.YVAP_TIMEOUT_TO_ADSTART_LATENCY;w(al,false);}if(au){v=B.diffLoadTime;F=(u===true)?YWACode.TRUE:YWACode.FALSE;aF=l();ar=W(B);z(null,aF,ar);am={};am.isLoadingTime=false;d(am);if(r&&!r.isLoadingTime){r.metric="avl";r.diffLoadTime=B.endLoadingTime-r.startLoadingTime;ax=L(r);z(null,null,ax);r=null;}}}else{if(aw==MonitoringBeaconEvent.EVENT_ADDELIVERED){if(am){am.metric="aml";at=am.isLoadingTime;w(am,true);if(at){J=am.diffLoadTime;if(aB){az=aB.mediaUrl;if(typeof az===ae.TYPE_OF_STRING){R=az.toLowerCase().indexOf("atlas")!==-1?"A":"M";}}aF=K();ar=T(am);z(null,aF,ar);}}}else{if(aw==MonitoringBeaconEvent.EVENT_VALID_AD){if(!j){j={};}if(!aB||!aB.ad){return;}aE=aB.ad;j.code=YWACode.RESPONSE_CODE.AD;j.type=YWACode.RESPONSE_TYPE.VAST;av=aE.getSpec();aA=av.getRedirect();if(typeof aA!=="undefined"&&aA!==null){j.redirect=aA.targetTag;j.redirectCount=aA.count;}if(!aE.isVast()){j.type=YWACode.RESPONSE_TYPE.NON_VAST;}else{if(aE.getType()==X.TYPE.VPAID){j.type=YWACode.RESPONSE_TYPE.VPAID;}}ay=aE.isFallback();j.fallback=(ay===true)?YWACode.FALLBACK.TRUE:YWACode.FALLBACK.FALSE;
aD=aE.isCached();j.cacheHit=(aD===true)?YWACode.CACHEHIT.TRUE:YWACode.CACHEHIT.FALSE;j.creativeId=aE.getCreativeId();j.bookingId=aE.getBookingId();}else{if(aw==MonitoringBeaconEvent.EVENT_NOAD){if(!j){j={};}if(!aB||!aB.adSpec){return;}aE=aB.ad;j.code=YWACode.RESPONSE_CODE.NO_AD;j.type=YWACode.RESPONSE_TYPE.VAST;if(!aE.isVast()){j.type=YWACode.RESPONSE_TYPE.NON_VAST;}else{if(aE.getType()==X.TYPE.VPAID){j.type=YWACode.RESPONSE_TYPE.VPAID;}}av=aB.adSpec;aA=av.getRedirect();if(typeof aA!=="undefined"&&aA!==null){j.redirect=aA.targetTag;j.redirectCount=aA.count;}if(!aB.ad){return;}aE=aB.ad;ay=aE.isFallback();j.fallback=(ay===true)?YWACode.FALLBACK.TRUE:YWACode.FALLBACK.FALSE;aD=aE.isCached();j.cacheHit=(aD===true)?YWACode.CACHEHIT.TRUE:YWACode.CACHEHIT.FALSE;}else{if(aw==MonitoringBeaconEvent.EVENT_VPAID_SWFLOAD_START){r={};r.isLoadingTime=false;d(r);}else{if(aw==MonitoringBeaconEvent.EVENT_VPAID_SWFLOAD_END){if(r&&r.isLoadingTime){r.metric="vsl";r.profilerMetric=MonitorBeaconer.YVAP_VPAIDSWF_LOAD_LATENCY;r.msg="Time taken to load vpaid swf from network";w(r,true);ax=L(r);z(null,null,ax);}}else{if(aw===MonitoringBeaconEvent.EVENT_PLAYER_TIMEOUT){u=true;al={};al.isLoadingTime=false;d(al);}else{aj(aw,aB);}}}}}}}}}}}}};this.getMonitoringData=function(){var ar={};ar[YWACode.ADPLUGIN_VERSION]=ah;ar[YWACode.YVAP_ACCOUNT_ID]=E;ar[YWACode.AD_RESPONSE_TYPE]=A;ar[YWACode.AD_RESPONSE_CODE]=H;ar[YWACode.AD_NETWORK_NAME]=k;ar[YWACode.AD_POSITION]=af;ar[YWACode.AD_TEMPORAL_PLACEMENT]=b;ar[YWACode.AD_CALL_SEQUENCE]=ab;ar[YWACode.AD_CALL_LATENCY]=p;ar[YWACode.AD_START_LATENCY]=v;ar[YWACode.AD_MEDIA_START_LATENCY]=J;ar[YWACode.AD_REDIRECT]=q;ar[YWACode.REDIRECT_HOP]=I;ar[YWACode.AD_OPP_TAKEN]=ap;ar[YWACode.AD_NETWORK_NAME]=ac;ar[YWACode.AD_OPP_TYPE]=S;ar[YWACode.AD_OPP_RULEID]=P;ar[YWACode.AD_POSITION]=ao;ar[YWACode.AD_OPP_PLAYCN]=D;ar[YWACode.AD_CACHE_HIT]=m;ar[YWACode.AD_FALLBACK]=O;return ar;};};MonitorBeaconer.BUCKET_PATH="/3/qos";MonitorBeaconer.MANHATTAN_BASE_URL="http://qos.video.yimg.com";MonitorBeaconer.OQS_ENV="p";MonitorBeaconer.YVAP_PATH="/yvap";MonitorBeaconer.YWA_BASE_URL="http://z.analytics.yahoo.com/p.pl";MonitorBeaconer.YWA_PROJECT_ID="1000115488662";MonitorBeaconer.YAMAS="YVAP_YAMAS";MonitorBeaconer.YWA="YVAP_YWA";MonitorBeaconer.YVAP_ADCALL_LOAD_LATENCY="YVAP_ADCALL_LOAD_LATENCY";MonitorBeaconer.YVAP_QUERY_LOAD_LATENCY="YVAP_QUERY_LOAD_LATENCY";MonitorBeaconer.YVAP_QUERY_PROCESS_LATENCY="YVAP_QUERY_PROCESS_LATENCY";MonitorBeaconer.YVAP_COMM_LOAD_LATENCY="YVAP_COMM_LOAD_LATENCY";MonitorBeaconer.YVAP_ADSTART_LATENCY="YVAP_ADSTART_LATENCY";MonitorBeaconer.YVAP_PLUGIN_READY_LATENCY="YVAP_PLUGIN_READY_LATENCY";MonitorBeaconer.YVAP_VPAIDSWF_LOAD_LATENCY="YVAP_VPAIDSWF_LOAD_LATENCY";MonitorBeaconer.YVAP_TIMEOUT_TO_ADSTART_LATENCY="YVAP_TIMEOUT_TO_ADSTART_LATENCY";MonitorBeaconer.YVAP_AD_OPPORTUNITY_TAKEN=1;MonitorBeaconer.YVAP_AD_OPPORTUNITY_NOT_TAKEN=2;a.augment(MonitorBeaconer,a.EventTarget);a.com.yahoo.ads.plugin.MonitorBeaconer=MonitorBeaconer;},"1.0.0",{requires:["node","io-base","ErrorCode","YWACode","MonitoringBeaconEvent","ScopeLogger","Constants"]});YUI.add("MonitoringBeaconEvent",function(a){a.namespace("com.yahoo.ads.plugin");MonitoringBeaconEvent=function(e,d){var c=d;var b=e;this.setBeaconData=function(f){c=f;};this.getBeaconData=function(){return c;};this.setAction=function(f){b=f;};this.getAction=function(){return b;};this.getName=function(){return MonitoringBeaconEvent.EVENT_NAME;};};MonitoringBeaconEvent.EVENT_NAME="MonitoringBeaconEvent";MonitoringBeaconEvent.EVENT_PLUGIN_INIT="PluginInit";MonitoringBeaconEvent.EVENT_PLUGINLOAD_START="PluginLoadStart";MonitoringBeaconEvent.EVENT_PLUGINLOAD_END="PluginLoadEnd";MonitoringBeaconEvent.EVENT_COMMLOAD_START="CommunicatorLoadStart";MonitoringBeaconEvent.EVENT_COMMLOAD_END="CommunicatorLoadEnd";MonitoringBeaconEvent.EVENT_ADCALLLOAD_START="AdCallLoadStart";MonitoringBeaconEvent.EVENT_ADCALLLOAD_END="AdCallLoadEnd";MonitoringBeaconEvent.EVENT_QUERYLOAD_START="QueryLoadStart";MonitoringBeaconEvent.EVENT_QUERYLOAD_END="QueryLoadEnd";MonitoringBeaconEvent.EVENT_QUERYPROCESS_START="QueryProcessStart";MonitoringBeaconEvent.EVENT_QUERYPROCESS_END="QueryProcessEnd";MonitoringBeaconEvent.EVENT_CONTENTCOMPLETE="ContentComplete";MonitoringBeaconEvent.EVENT_PODSTART="PodStart";MonitoringBeaconEvent.EVENT_CLIPCHANGE="ClipChange";MonitoringBeaconEvent.EVENT_ADSTART="AdStart";MonitoringBeaconEvent.EVENT_VALID_AD="ValidAd";MonitoringBeaconEvent.EVENT_NOAD="NoAd";MonitoringBeaconEvent.EVENT_NULLAD="NullAd";MonitoringBeaconEvent.EVENT_ADCALL="AdCall";MonitoringBeaconEvent.EVENT_ADCALLEND="AdCallEnd";MonitoringBeaconEvent.EVENT_ADOPPORTUNITY="AdOpportunity";MonitoringBeaconEvent.EVENT_ADDELIVERED="AdDelivered";MonitoringBeaconEvent.EVENT_VPAID_SWFLOAD_START="VPaidSwfLoadStart";MonitoringBeaconEvent.EVENT_VPAID_SWFLOAD_END="VPaidSwfLoadEnd";MonitoringBeaconEvent.EVENT_PLAYER_TIMEOUT="PlayerTimeOut";MonitoringBeaconEvent.EVENT_ERR_PlUGIN_INIT="PluginInitError";MonitoringBeaconEvent.EVENT_ERR_COMM_LOAD="CommunicatorLoadError";MonitoringBeaconEvent.EVENT_ERR_COMM_INT="CommunicatorInternalError";MonitoringBeaconEvent.EVENT_ERR_COMM_TIMEOUT="CommunicatorTimeoutError";MonitoringBeaconEvent.EVENT_ERR_VMAP_PARSING="VmapParsing";MonitoringBeaconEvent.EVENT_ERR_PARSING="ParsingError";MonitoringBeaconEvent.EVENT_ERR_QUERY_LOAD="QueryLoadError";MonitoringBeaconEvent.EVENT_ERR_QUERY_INT="QueryInternalError";MonitoringBeaconEvent.EVENT_ERR_QUERY_TIMEOUT="QueryTimeoutError";MonitoringBeaconEvent.EVENT_ERR_AD_INT="AdInternalError";MonitoringBeaconEvent.EVENT_ERR_AD_TIMEOUT="AdTimeoutError";MonitoringBeaconEvent.EVENT_ERR_AD_LOAD="AdLoadError";MonitoringBeaconEvent.EVENT_ERR_ADCALL="AdCallError";MonitoringBeaconEvent.EVENT_ERR_SSL_NOT_SUPPORTED="SSLNotSupported";MonitoringBeaconEvent.EVENT_PROFILER="AdPluginProfiler";MonitoringBeaconEvent.EVENT_METRIC="AdPluginMetric";MonitoringBeaconEvent.EVENT_AD_DELIVERY_ERROR="AdDeliveryError";MonitoringBeaconEvent.EVENT_AD_START_ERROR="AdStartError";
a.com.yahoo.ads.plugin.MonitoringBeaconEvent=MonitoringBeaconEvent;},"1.0.0",{requires:["node"]});YUI.add("SessionTimer",function(a){a.namespace("com.yahoo.ads.plugin");SessionTimer=function(b,m){var e=0;var f=1;var g=10;var i=1000;var k=b;var j=0;var c=0;var l="";var d="";var h=[];if(m){d=getTimer();l=setInterval(intervalCallback,g);c=e;}else{c=f;}this._getId=function(){return k;};this._getElapsed=function(){return j;};this._getState=function(){return c;};this._getIntervalId=function(){return l;};this._getLastTimerPos=function(){return d;};this._getQuepoints=function(){return h;};this._setId=function(n){k=n;};this._setElapsed=function(n){j=n;};this._setState=function(n){c=n;};this._setIntervalId=function(){h=val;};this._setLastTimerPos=function(n){d=n;};this._setQuepoints=function(){h=val;};};SessionTimer.prototype.addQuepoint=function(c){var d=this._getQuepoints()[c.time];if(!d){d=[];this._getQuepoints()[c.time]=d;}d.push(c);for(var b in this._getQuepoints()){}};SessionTimer.prototype.getId=function(){return this._getId();};SessionTimer.prototype.pause=function(){if(this._getState()===STATE_RUNNING){clearInterval(this._getIntervalId());var b=getTimer();this._setElapsed(this._getElapsed+(b-mLastTimerPos)/1000);this._setLastTimerPos(0);this._setState(STATE_PAUSED);this.notifyPAUSED();}};SessionTimer.prototype.resume=function(){if(this._getState()===STATE_PAUSED){this._setState(STATE_RUNNING);this._setLastTimerPos(getTimer());this._setIntervalId(setInterval(this.intervalCallback,UPDATE_INTERVAL));this.notifyRESUMED();}};SessionTimer.prototype.getElapsed=function(){return Math.floor(this._getElapsed()*(1000/REFRESH_RESOLUTION))/(1000/REFRESH_RESOLUTION);};SessionTimer.prototype.reset=function(){this._setElapsed(0);this.notifyADVANCED();};SessionTimer.prototype.intervalCallback=function(){var e=getTimer();if(this._getLastTimerPos!==0){this._setElapsed(this._getElapsed()+(e-mLastTimerPos)/1000);}var f=false;if(Math.floor(e/REFRESH_RESOLUTION)-Math.floor(this._getLastTimerPos()/REFRESH_RESOLUTION)>0){f=true;}this._setLastTimerPos(e);if(f){this.notifyADVANCED();}var d=this._getQuepoints()[Math.floor(this._getElapsed())];if(d){for(var c in d){var b=d[c];if(!b.fired||b.fired===false){b.fired=true;this.notifyCUEPOINT();}}}};SessionTimer.prototype.getTotalTime=function(){return null;};SessionTimer.prototype.notifyCOMPLETE=function(){this.fire("complete");};SessionTimer.prototype.notifyPAUSED=function(){this.fire("paused");};SessionTimer.prototype.notifyRESUMED=function(){this.fire("resumed");};SessionTimer.prototype.notifyADVANCED=function(){this.fire("advanced");};SessionTimer.prototype.notifyCUEPOINT=function(){this.fire("cuepoint");};a.augment(SessionTimer,a.EventTarget);a.com.yahoo.ads.plugin.SessionTimer=SessionTimer;},"1.0.0",{requires:["node","SessionTimer","ScopeLogger","event-custom"]});YUI.add("StreamAdManager",function(b){b.namespace("com.yahoo.ads");var a=function(d,c){this._bitrateSend=false;this.rules={};this._plugin=d;this.config=c;this.expandBeacon=function(e,h){var j,f=/\{(\w)+\}/g,g=h.getParams();var i=function(m){var o=/(\w)+/g,k=m.match(o),n=k[0],p="";if(n.toLowerCase()==="beap_client_event"){for(var l in g){p+=l+"$"+g[l]+",";}p=p.substring(0,p.length-1);return p;}else{if(n.toLowerCase()==="1x1pixel"){return PIXEL_URL;}else{if(typeof g[n]!=="undefined"&&g[n]!==null){return g[n];}else{isBeaconExpansionOk=false;return m;}}}};j=e.replace(f,i);return j;};this.sendBeacon=function(e){if(e){var f=document.createElement("img");f.src=e;f.style.display="none";}};};a.prototype.setSink=function(d){var c=this;this._sink=d;this._sink.on(_CONSTANTS.VolumeChangedEvent,function(){c.redispatch(_CONSTANTS.VolumeChangedEvent,arguments);});this._sink.on(_CONSTANTS.ClientInfoChangedEvent,this.redispatch);this._sink.on(_CONSTANTS.ControlTweenEvent,this.redispatch);this._sink.on(_CONSTANTS.EVENT_CONTENT_COMPLETE,this.redispatch);};a.prototype.getSink=function(c){return this._sink;};a.prototype.redispatch=function(c){this.fire(c,arguments);};a.prototype.notifyAdRendered=function(){this._sink.notifyAdRendered();};a.prototype.notifyVideoAdStart=function(c){this._sink.notifyVideoAdStart(c);};a.prototype.notifyVideoAdEnd=function(){this._sink.notifyVideoAdEnd();};a.prototype.notifyOverlayStart=function(){this._sink.notifyOverlayStart();};a.prototype.notifyOverlayEnd=function(){this._sink.notifyOverlayEnd();};a.prototype.notifyPluginReady=function(){this._sink.notifyPluginReady();};a.prototype.notifyMetricsEvent=function(c){this._sink.notifyMetricsEvent(c);};a.prototype.notifyAdMetricsEvent=function(d){var m,k,e,f,g,c=d.getEventId(),j=d.getEventData(),l=(c.toLowerCase()==="impression")?j:c;if(l==="bitrate"&&this._bitrateSend){return;}m=d.getAd();if(typeof m.beacons!=="undefined"&&m.beacons!==null){k=m.beacons[l];if(typeof k!=="undefined"&&k!==null){e="";for(var h=0;h1){b=this._count;}return this._delay*b;};Timer.prototype.processQueue=function(c){if(c&&c.length>0){for(var e=0;e0){f.apply(b,d);}else{if(b){f.apply(b);}else{f.call();}}}}};Timer.prototype.processTickQueue=function(){this._count++;if(this._count>=this._repeatCount){this.processCompleteQueue();}else{this.processQueue(this._tickQueue);}};Timer.prototype.processCompleteQueue=function(){if(this._timer){this._timer.cancel();}this._running=false;this.processQueue(this._completeQueue);};Timer.prototype.running=function(){return this._running;};Timer.prototype.reset=function(){this._timer.cancel();this._count=0;};Timer.prototype.start=function(){this._running=true;var b=false;if(this._repeatCount>0){b=true;}this._timer=a.later(this._delay,this,this.processTickQueue,null,b);};Timer.prototype.stop=function(){this.processCompleteQueue();};Timer.prototype.addFunctionOnTick=function(b,d,c){this._tickQueue.push({context:b,method:d,args:c});};Timer.prototype.addFunctionOnComplete=function(b,d,c){this._completeQueue.push({context:b,method:d,args:c});};a.com.yahoo.ads.plugin.Timer=Timer;},"1.0.0",{requires:["node"]});YUI.add("YEPVideoTimeline",function(a){a.namespace("com.yahoo.ads.plugin");YEPVideoTimeline=function(){YEPVideoTimeline.superclass.constructor.call(this,"videoTimeline",false);var d=0;var b=0;var c=-1;this.setTotalDuration=function(e){d=e;};this.setPlayheadPosition=function(f){b=f;var e=Math.floor(b);if(Math.abs(e-c)>0){c=e;this.notifyADVANCED();}};this.getElapsed=function(){return c;};this.getTotalDuration=function(){return d;};this.pause=function(){this.notifyPAUSED();};this.resume=function(){this.notifyRESUMED();};};a.augment(YEPVideoTimeline,a.EventTarget);a.extend(YEPVideoTimeline,a.com.yahoo.ads.plugin.SessionTimer);a.com.yahoo.ads.plugin.YEPVideoTimeline=YEPVideoTimeline;},"1.0.0",{requires:["node","SessionTimer","ScopeLogger","event-custom"]});YUI.add("YWACode",function(a){a.namespace("com.yahoo.ads.plugin");YWACode=function(){};YWACode.EVENT="vx";YWACode.ADPLUGIN_VERSION="cf02";YWACode.YVAP_ACCOUNT_ID="cf03";YWACode.AD_RESPONSE_CODE="cf47";YWACode.AD_RESPONSE_TYPE="cf48";YWACode.AD_NETWORK_NAME="cf60";YWACode.AD_POSITION="cf65";YWACode.AD_REDIRECT="cf66";YWACode.YVAP_TIMEOUT_AT_ADCALL="cf67";YWACode.AD_TEMPORAL_PLACEMENT="cf68";YWACode.YVAP_TIMEOUT_AT_ADSTART="cf69";YWACode.REDIRECT_HOP="cf70";YWACode.AD_OPP_TYPE="cf80";YWACode.AD_OPP_RULEID="cf81";YWACode.AD_OPP_TAKEN="cf82";YWACode.AD_OPP_PLAYCN="cf61";YWACode.AD_CALL_SEQUENCE="cf84";YWACode.AD_MEDIA_START_LATENCY="cf56";YWACode.AD_CACHE_HIT="cf250";YWACode.AD_START_ERROR_YWA="cf92";YWACode.AD_DELIVERY_ERROR_YWA="cf93";YWACode.AD_CALL="7";YWACode.PLUGIN_INIT="8";YWACode.AD_MEDIA_START="11";YWACode.AD_START="12";YWACode.AD_OPPORTUNITY="16";YWACode.AD_START_ERROR="17";YWACode.AD_DELIVERY_ERROR="18";YWACode.AD_FALLBACK="fb";YWACode.AD_CALL_LATENCY="adl";YWACode.AD_START_LATENCY="asl";YWACode.AD_START_ERROR_QOS="asec";YWACode.AD_DELIVERY_ERROR_QOS="adec";YWACode.AD_START_ERROR_CODES={FLASH_SECURITY_ERROR:109,FLASH_IO_ERROR:110,FLASH_ASYNC_ERROR:111,FLASH_GENERIC_ERROR:112,FLASH_VPAID_ERROR:113,INCOMPATIBLE_MEDIA:120};YWACode.AD_DELIVERY_ERROR_CODES={FLASH_MEDIA_PLAYBACK_ERROR:114,FLASH_SECURITY_ERROR:115,FLASH_IO_ERROR:116,FLASH_ASYNC_ERROR:117};YWACode.RESPONSE_CODE={NO_AD:1,AD:2,AD_CALL_TIMEOUT:102,AD_CALL_ERROR:104,SSL_NOT_SUPPORTED:121,ADPLUGIN_TIMEOUT:105,VMAP_PARSE_ERROR:107,PARSE_ERROR:108};YWACode.RESPONSE_TYPE={NON_VAST:1,VAST:2,NO_AD:3,VPAID:4,ERROR:106};YWACode.FALLBACK={TRUE:1,FALSE:2};YWACode.CACHEHIT={TRUE:1,FALSE:2};YWACode.TRUE=1;YWACode.FALSE=2;a.com.yahoo.ads.plugin.YWACode=YWACode;},"1.0.0",{requires:["node"]});YUI.add("AdRenderer",function(a){a.namespace("com.yahoo.ads.renderer");AdRenderer=function(){var g=null;this._container=null;var j=null;var o=null;var l=null;var p=0;var f=false;var d=false;var h=null;var k=null;var i=null;var n=null;AdEvent=a.com.yahoo.ads.event.AdEvents;BeaconEventData=a.com.yahoo.ads.event.BeaconEventData;_CONSTANTS=a.com.yahoo.ads.common.Constants;var c=null;var e=null;var m=this;this.configureEventBusListeners=function(){l.on(_CONSTANTS.ClientInfoChangedEvent,this.onClientInfoChanged,this);l.on(_CONSTANTS.EVENT_CONTENT_COMPLETE,this.onContentVideoComplete,this);l.on(_CONSTANTS.ControlTweenEvent,this.onClientInfoChanged,this);l.on(_CONSTANTS.VolumeChangedEvent,this.setCreativeVolume,this);};this.removeEventBusListeners=function(){l.detach(_CONSTANTS.ClientInfoChangedEvent,this.onClientInfoChanged);l.detach(_CONSTANTS.EVENT_CONTENT_COMPLETE,this.onContentVideoComplete);l.detach(_CONSTANTS.ControlTweenEvent,this.onClientInfoChanged);l.detach(_CONSTANTS.VolumeChangedEvent,this.setCreativeVolume);};this.configureTemplateListeners=function(q){q.on(AdEvent.AdStarted,this.onAdStarted,this);q.on(AdEvent.AdStopped,this.onAdStopped,this);q.on(AdEvent.AdProgress,this.onAdProgress,this);q.on(AdEvent.AdPlayback,this.onAdPlayback,this);q.on(AdEvent.AdMediaFirstByte,this.onAdMediaFirstByte,this);q.on(AdEvent.AdLinearChange,this.onAdLinearChange,this);q.on(AdEvent.AdExpandedChange,this.onAdExpandedChange,this);q.on(AdEvent.AdRemainingTimeChange,this.onAdRemainingTimeChange,this);q.on(AdEvent.AdVolumeChange,this.onAdVolumeChange,this);q.on(AdEvent.AdMouseOver,this.notifyMetrics,this);q.on(AdEvent.AdClick,this.notifyMetrics,this);q.on(AdEvent.AdImpression,this.notifyMetrics,this);q.on(AdEvent.AdClickThru,this.notifyMetrics,this);q.on(AdEvent.AdVideoStart,this.notifyMetrics,this);q.on(AdEvent.AdVideoFirstQuartile,this.notifyMetrics,this);q.on(AdEvent.AdVideoMidpoint,this.notifyMetrics,this);q.on(AdEvent.AdVideoThirdQuartile,this.notifyMetrics,this);q.on(AdEvent.AdVideoComplete,this.notifyMetrics,this);q.on(BeaconEventData.BITRATE,this.notifyMetrics,this);q.on(BeaconEventData.CPCV,this.notifyMetrics,this);q.on(AdEvent.AdUserAcceptInvitation,this.onAdUserAcceptInvitation,this);q.on(AdEvent.AdUserMinimize,this.onAdUserMinimize,this);
q.on(AdEvent.AdUserClose,this.onAdUserClose,this);q.on(AdEvent.AdPaused,this.onAdPaused,this);q.on(AdEvent.AdPlaying,this.onAdPlaying,this);q.on(AdEvent.AdError,this.onAdError,this);q.on(AdEvent.AdLog,this.onAdLog,this);};this.removeTemplateListeners=function(q){q.detach(AdEvent.AdStarted);q.detach(AdEvent.AdStopped);q.detach(AdEvent.AdProgress);q.detach(AdEvent.AdPlayback);q.detach(AdEvent.AdMediaFirstByte);q.detach(AdEvent.AdLinearChange);q.detach(AdEvent.AdExpandedChange);q.detach(AdEvent.AdRemainingTimeChange);q.detach(AdEvent.AdVolumeChange);q.detach(AdEvent.AdMouseOver);q.detach(AdEvent.AdClick);q.detach(AdEvent.AdImpression);q.detach(AdEvent.AdClickThru);q.detach(AdEvent.AdVideoStart);q.detach(AdEvent.AdVideoFirstQuartile);q.detach(AdEvent.AdVideoMidpoint);q.detach(AdEvent.AdVideoThirdQuartile);q.detach(AdEvent.AdVideoComplete);q.detach(BeaconEventData.BITRATE);q.detach(BeaconEventData.CPCV);q.detach(AdEvent.AdUserAcceptInvitation);q.detach(AdEvent.AdUserMinimize);q.detach(AdEvent.AdUserClose);q.detach(AdEvent.AdPaused);q.detach(AdEvent.AdPlaying);q.detach(AdEvent.AdError);q.detach(AdEvent.AdLog);};this.onAdStarted=function(q){this.fire(_CONSTANTS.EVENT_VIDEO_AD_START,{type:_CONSTANTS.EVENT_VIDEO_AD_START});};this.onAdPlayback=function(q){this.fire(_CONSTANTS.EVENT_AD_START_MEDIA_PLAYBACK,{type:_CONSTANTS.EVENT_AD_START_MEDIA_PLAYBACK});};this.onAdMediaFirstByte=function(){this.fire(_CONSTANTS.EVENT_AD_MEDIA_FIRST_BYTE,{type:_CONSTANTS.EVENT_AD_MEDIA_FIRST_BYTE});};this.onAdProgress=function(q){this.fire(_CONSTANTS.EVENT_AD_PROGRESS,{type:_CONSTANTS.EVENT_AD_PROGRESS,position:q.position,totalDuration:q.totalDuration});};this.onAdStopped=function(r){try{this.unloadOverlay();}catch(q){}};this.onAdError=function(r){try{this.unloadOverlay();}catch(q){}};this.onAdLinearChange=function(r){if(typeof i==="undefined"||i===null){return;}var q=i.adLinear;if(q){if(!f){var s={adslug:true,timer:true,scale:true,volume:false};l.notifyVideoAdStart(s);f=true;d=true;}}else{if(!q){if(f){l.notifyVideoAdEnd();f=false;}}}};this.onAdExpandedChange=function(q){if(typeof i!=="undefined"&&i!==null){}};this.updateRemainingTime=function(){_lastRemainingTime=i.adRemainingTime;if(_totalAdDuration<=0){_totalAdDuration=i.adRemainingTime;}if(isNaN(_totalAdDuration)){_totalAdDuration=-1;}if(this._adProgressTimer){this._adProgressTimer.stop();this._adProgressTimer=null;}this._adProgressTimer=new a.com.yahoo.ads.plugin.Timer(200);this._adProgressTimer.addFunctionOnTick(function(){var q=_totalAdDuration-i.adRemainingTime;if(_totalAdDuration>0||q>0){l.notifyAdProgress(q,_totalAdDuration);}});this._adProgressTimer.start();};this.onAdRemainingTimeChange=function(q){if(isNaN(_totalAdDuration)||_totalAdDuration<=0){_totalAdDuration=i.adRemainingTime;_lastRemainingTime=-1;}if(i.adRemainingTime===0||(_lastRemainingTime!==-1&&(_lastRemainingTime0){_totalAdDuration=i.adRemainingTime;}}if(this._adProgressTimer){this._adProgressTimer.stop();this._adProgressTimer=null;}this._adProgressTimer=new a.com.yahoo.ads.plugin.Timer(200);};this.onAdVolumeChange=function(q){if(typeof i!=="undefined"&&i!==null){}};this.onAdUserAcceptInvitation=function(q){};this.onAdUserMinimize=function(q){};this.onAdUserClose=function(q){this.unloadOverlay();};this.onAdPaused=function(q){};this.onAdPlaying=function(q){};this.onAdLog=function(q){};this.notifyMetrics=function(v){var q="";var t="";var u=null;var s=0;var w=0;if(v.ad_duration){s=v.ad_duration;}w=g.getSkip_directive();if(v.type===AdEvent.AdImpression){q=BeaconEventData.IMPRESSION;t=BeaconEventData.IMPRESSION;u="";}else{if(v.type===AdEvent.AdVideoStart){q=BeaconEventData.IMPRESSION;t=BeaconEventData.PLAYBACK0;u={"type":BeaconEventData.PLAYBACK,"value":0,"ad_duration_value":Math.floor(s),"skippable_value":w};}else{if(v.type===AdEvent.AdVideoFirstQuartile){q=BeaconEventData.IMPRESSION;t=BeaconEventData.PLAYBACK25;u={"type":BeaconEventData.PLAYBACK,"value":25,"ad_duration_value":Math.floor(s),"skippable_value":w};}else{if(v.type===AdEvent.AdVideoMidpoint){q=BeaconEventData.IMPRESSION;t=BeaconEventData.PLAYBACK50;u={"type":BeaconEventData.PLAYBACK,"value":50,"ad_duration_value":Math.floor(s),"skippable_value":w};}else{if(v.type===AdEvent.AdVideoThirdQuartile){q=BeaconEventData.IMPRESSION;t=BeaconEventData.PLAYBACK75;u={"type":BeaconEventData.PLAYBACK,"value":75,"ad_duration_value":Math.floor(s),"skippable_value":w};}else{if(v.type===AdEvent.AdVideoComplete){q=BeaconEventData.IMPRESSION;t=BeaconEventData.PLAYBACK100;u={"type":BeaconEventData.PLAYBACK,"value":100,"ad_duration_value":Math.floor(s),"skippable_value":w};}else{if(v.type===AdEvent.AdClickThru){q=BeaconEventData.CLICKTHROUGH;t=BeaconEventData.CLICKTHROUGH;if(typeof v.click_url!=="undefined"&&v.click_url!==null){u={"CLICKURL":v.click_url};}else{u={"CLICKURL":"http://ads.yimg.com/a/a/vdo/a/pixel.gif"};}}else{if(v.type===BeaconEventData.BITRATE){q=BeaconEventData.BITRATE;t=BeaconEventData.BITRATE;u={"type":BeaconEventData.BITRATE,"value":v.chosenBitrate};m.fire(_CONSTANTS.EVENT_VIDEO_AD_DISPLAY);}else{if(v.type===BeaconEventData.CPCV){q=BeaconEventData.CPCV;t=BeaconEventData.CPCV;u={"type":BeaconEventData.CPCV,"value":v.value,"ad_duration_value":Math.floor(s),"skippable_value":w};}else{if(v.type===AdEvent.AdMouseOver){q=BeaconEventData.INTERACTION;t=BeaconEventData.MOUSE_OVER;u={"type":BeaconEventData.MOUSE_OVER,"time":v.diff,"seq":v.mouseOverCount};}else{if(v.type===AdEvent.AdClick){q=BeaconEventData.INTERACTION;t=BeaconEventData.CLICK;u={"type":BeaconEventData.CLICK,"time":v.diff,"seq":v.mouseClickCount};}else{if(v.type===AdEvent.AdMediaPlaybackError){q=_CONSTANTS.IMPRESSION;t=_CONSTANTS.REDIRECT_NOAD;u={"type":_CONSTANTS.REDIRECT_NOAD};}}}}}}}}}}}}if(typeof u!=="undefined"&&u!==null){var r=new a.com.yahoo.ads.event.AdMetricsEvent(q,t,g.getUrl(),u,g.getJson());m.fire(q,{type:q,data:r});}};this.notifyPlugin=function(r){this.dispatchEvent(r);switch(r.type){case"displayReady":l.notifyAdRendered();
break;case"pauseContentVideo":if(!f){var s=null;if(r.hasOwnProperty("playerData")){s=r.playerData;}if(r.message=="noCover"){if(typeof s==="undefined"||s===null){s={};}s.enableBlackScreen=false;}l.notifyVideoAdStart(s);d=true;f=true;}break;case"playContentVideo":if(f){l.notifyVideoAdEnd();f=false;}break;case"holdContentVideo":l.notifyRichAdStart();break;case"initiateCloseCreative":var q=f;cancel();if(q){if(f){l.notifyVideoAdEnd();l.notifyVamEnd();f=false;}}else{l.notifyAdClosing();}break;case"unlockPlaylist":l.notifyUnlockPlaylist(new AdUnlockPlaylistEvent(r.message));break;}};var b=function(s,r){var t=g.getMediaFiles(s);var v=0;var u=Number.MAX_VALUE;if(t){var q=v;for(q in t){if(q>v&&q<=r){v=q;}if(q0){return v;}else{if(t[u]){return u;}}}return null;};this.cancel=function(){if(n!==null&&typeof n!=="undefined"){n.cancelAd();this.removeTemplateListeners(n);n=null;}};this.render=function(B,u,t,y,A){j=u;o=t;g=B;n=new a.com.yahoo.ads.renderer.templates.Template(this._container);this.configureTemplateListeners(n);var w=null;for(var v=0;v ';}else{if(W==="TEXT"){X=" "+c+"
";}else{X=c;}}P(Template.PRODUCT_MSG_ID,X);};var s=function(){t.style.opacity=0.8;};var d=function(){t.style.opacity=0;};var e=function(){if(typeof c!==S.UNDEFINED&&c!==null&&typeof E!==S.UNDEFINED&&E!==null){N(E);t.style.visibility="visible";t.addEventListener("mouseover",s,false);t.addEventListener("mouseout",d,false);}};var h=function(){setTimeout(function(){t.style.opacity=0;var W=document.getElementById(Template.INVITATION_MSG_ID);if(typeof W!==S.UNDEFINED&&W!==null){W.parentNode.removeChild(W);}e();},1200);};var U=function(){setTimeout(function(){t.style.opacity=0.8;h();},1200);};var L=function(W){if(typeof W.invitation_message===S.UNDEFINED||W.invitation_message===null){p=false;}else{p=true;R=W.invitation_message;R=R.replace(/\\r|\\n/g," ");}if(typeof W.product_message!==S.UNDEFINED&&W.product_message!==null){c=W.product_message;c=c.replace(/\\r|\\n/g," ");}if(typeof W.product_message!==S.UNDEFINED&&W.product_message!==null){E=W.product_message_type;}if(p){k();}};var b=function(X){var W=w.currentTime/w.duration;if(J==Template.PLAYBACK_STATE.METADATA_AVAILABLE){J=Template.PLAYBACK_STATE.PLAYBACK0;n.fire(z.AdVideoStart,{type:z.AdVideoStart,ad_duration:y});if(p){t.style.visibility="visible";U();}}else{if(W>0.25&&J==Template.PLAYBACK_STATE.PLAYBACK0){J=Template.PLAYBACK_STATE.PLAYBACK25;n.fire(z.AdVideoFirstQuartile,{type:z.AdVideoFirstQuartile,ad_duration:y});}else{if(W>0.5&&J==Template.PLAYBACK_STATE.PLAYBACK25){J=Template.PLAYBACK_STATE.PLAYBACK50;n.fire(z.AdVideoMidpoint,{type:z.AdVideoMidpoint,ad_duration:y});}else{if(W>0.75&&J==Template.PLAYBACK_STATE.PLAYBACK50){J=Template.PLAYBACK_STATE.PLAYBACK75;n.fire(z.AdVideoThirdQuartile,{type:z.AdVideoThirdQuartile,ad_duration:y});}}}}if(!Q&&w.currentTime>=30){Q=true;n.fire(v.CPCV,{type:v.CPCV,value:30,ad_duration:y});}n.fire(z.AdProgress,{type:z.AdProgress,position:w.currentTime,totalDuration:w.duration});};var H=function(){J=Template.PLAYBACK_STATE.METADATA_AVAILABLE;y=w.duration;};var A=function(){if((w.duration-w.currentTime)<=0.1&&J==Template.PLAYBACK_STATE.PLAYBACK75){n.fire(z.AdVideoComplete,{type:z.AdVideoComplete,ad_duration:y});
J=Template.PLAYBACK_STATE.PLAYBACK100;}clearInterval(g);n.cancelAd();n.fire(r.AdStopped);};var F=function(W){D=W.timeStamp;C=true;g=setInterval(b,200);w.play();n.fire(r.AdPlayback);n.fire(v.BITRATE,{type:v.BITRATE,chosenBitrate:I});};var V=function(){n.fire(z.AdImpression,{type:z.AdImpression});};var q=function(W){n.fire(r.AdMediaFirstByte);};var o=function(X){if(O&&O!==""){window.open(O,"_blank");}var W=X.timeStamp-D;T+=1;n.fire(z.AdClickThru,{type:z.AdClickThru,click_url:O});n.fire(z.AdClick,{type:z.AdClick,diff:W,mouseClickCount:T});};var x=function(X){var W=X.timeStamp-D;f+=1;n.fire(z.AdMouseOver,{type:z.AdMouseOver,diff:W,mouseOverCount:f});};var u=function(W){n.cancelAd();n.fire(z.AdError,{type:z.AdError});};var l=function(W){if((w.duration-w.currentTime)>0.1){w.play();}};var m=function(){w.addEventListener("loadedmetadata",H,false);w.addEventListener("ended",A,false);w.addEventListener("canplay",F,false);w.addEventListener("pause",l,false);w.addEventListener("canplaythrough",V,false);w.addEventListener("loadeddata",q,false);w.addEventListener("mouseover",x,false);w.addEventListener("error",u,false);t.addEventListener("click",o,false);};var K=function(){w.removeEventListener("loadedmetadata",H,false);w.removeEventListener("ended",A,false);w.removeEventListener("canplay",F,false);w.removeEventListener("pause",l,false);w.removeEventListener("canplaythrough",V,false);w.removeEventListener("loadeddata",q,false);w.removeEventListener("mouseover",x,false);w.removeEventListener("error",u,false);t.removeEventListener("click",o,false);};this.initAd=function(W,X){if(w&&W){m();w.src="";w.load();w.play();w.src=W;w.load();w.controls=false;O=X.click_url;I=X.chosenBitrate;if(a.com.yahoo.ads.utils.Utils.isOverlaySupported()){L(X);}n.fire(r.AdStarted);return true;}else{}return false;};this.getAdVolume=function(){};this.setAdVolume=function(W){if(W>=0&&W<=1){w.volume=W;}};this.startAd=function(){};this.pauseAd=function(){};this.resumeAd=function(){};this.resizeAd=function(){};this.cancelAd=function(){if(typeof w!==S.UNDEFINED&&w!==null){w.src="";w.load();K();if(typeof i!==S.UNDEFINED&&i!==null){w.parentNode.removeChild(i);i=null;}w=null;}};};Template.VIDEO_ID="yvap_video";Template.OVERLAY_ID="yvap_overlay";Template.INVITATION_MSG_ID="yvap_invitation_message";Template.PRODUCT_MSG_ID="yvap_product_message";Template.HTML5_VIDEO_READY_STATE={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4};Template.HTML5_PLAY_CAPABILITY={BEST:"probably",LIKELY:"maybe",NO:""};Template.PLAYBACK_STATE={WAITING_FOR_METADATA:-1,METADATA_AVAILABLE:0,PLAYBACK0:1,PLAYBACK25:2,PLAYBACK50:3,PLAYBACK75:4,PLAYBACK100:5};a.augment(Template,a.EventTarget);a.com.yahoo.ads.renderer.templates.Template=Template;},"1.0.0",{requires:["node","ScopeLogger","Utils"]});YUI.add("ActionRule",function(a){a.namespace("com.yahoo.ads.rules");ActionRule=function(c){this.mName=null;this.mType=null;this.mSubtype=null;this.mBasis=null;this.mActionParams=null;this.mCondition=null;this.mRedirect={targetTag:"none",count:0};this.mAdXML=null;this.getType=function(){return this.mType;};this.setType=function(d){this.mType=d;};this.getSubType=function(){return this.mSubtype;};this.getRedirect=function(){return this.mRedirect;};this.getAdXml=function(){return this.mAdXML;};this.addActionParam=function(d,e){if(!this.mActionParams){this.mActionParams={};}this.mActionParams[d]=e;};this.parseActionParam=function(f){var h,d,g,e;if(f instanceof Array){for(e in f){h=f[e];d=h["@name"];g=h["@value"];this.addActionParam(d,g);}}else{if(f instanceof Object){h=f;d=h["@name"];g=h["@value"];this.addActionParam(d,g);}}};this.evaluateConditions=function(d){return true;};this.isBlocking=function(){return this.mType!="overlay";};if(c){this.mName=c["@name"];this.mType=c["@type"];this.mSubtype=c["@subtype"];this.mBasis=c["@basis"];if(c.adXML){this.mAdXML=c.adXML;}else{this.mAdXML=null;}for(var b in c){if(b=="actionParam"){this.parseActionParam(c[b]);}else{if(b=="enabledWhen"){}}}}};ActionRule.prototype.evaluateBasis=function(b){return null;};ActionRule.prototype.toString=function(){return"ActionRule :: name: "+this.mName+", type: "+this.mType+", subType: "+this.mSubtype+", basis: "+this.mBasis;};ActionRule.prototype.evaluate=function(d){var f=false;if(this.evaluateConditions(d)){f=true;}if(f){var e=d.getBasis(this.mBasis);var b=this.evaluateBasis(e);var c=new a.com.yahoo.ads.engine.EngineActionEvent(b,this);d.propagateActionEvent(c);}};a.com.yahoo.ads.rules.ActionRule=ActionRule;},"1.0.0",{requires:["node","EngineActionEvent"]});YUI.add("ActionRule_TIMELINE",function(a){a.namespace("com.yahoo.ads.rules");ActionRule_TIMELINE=function(d){ActionRule_TIMELINE.superclass.constructor.apply(this,[d]);var j,h,c,i,f,b;this.START_MINIMUM_PERCENT=0;this.START_MAXIMUM_PERCENT=99;this.DEFAULT_VID_DURATION=100;if(this.mActionParams.id.toLowerCase().indexOf("overlay")===0){this._isOverlay=true;this._showCommand="ShowOverlay";this._hideCommand="HideOverlay";}else{this._isOverlay=false;this._showCommand="InsertAd";this._hideCommand=null;}this._shownPoints={};j=d["@start"];h=d["@duration"];c=d["@interval"];i=parseInt(d["@intervalbetweenclips"],10);f=parseInt(d["@startatclip"],10);b=d["@padding"];if(i){this._intervalbetweenclips=i;}if(f){this._startatclip=f;}this._startatclip-=1;if(typeof b==="undefined"||b===null||b===""){b=actionParams.Padding;}if(b&&b.length>0){if(b.indexOf("%")!==-1){b=b.substring(0,b.length-1);}try{this._paddingDuration=parseInt(b,10);}catch(g){}}if(!c){c=9999;}if(!h){h=-1;}if(j.indexOf("%")!==-1){this._startIsPercentage=true;this._start=parseInt(j.replace("%",""),10);if(this._startthis.START_MAXIMUM_PERCENT){this._duration=this.START_MAXIMUM_PERCENT;}}else{this._duration=parseInt(h,10);}if(c.indexOf("%")!==-1){this._intervalIsPercentage=true;
this._interval=parseInt(c.replace("%",""),10);}else{this._interval=parseInt(c,10);}this.getBasis=function(){return"videoTimeline";};this.evaluateBasis=function(m){var e=null;if(typeof m==="undefined"){return null;}if(m.getType()===TimerEventBasis.TIMER_BASIS){var l=m.getTimer();if(!this._isOverlay){return this.evaluateTimecode(Math.floor(l.getElapsed()),l.getTotalDuration());}var k=m.getClipCount();if(k>this._startatclip&&(k-(1+this._startatclip))%this._intervalbetweenclips===0){e=this.evaluateTimecode(Math.floor(parseInt(l.getElapsed(),10)),parseInt(l.getTotalDuration(),10));}else{}}else{}return e;};this.evaluateTimecode=function(o,m){if(m<1){m=this.DEFAULT_VID_DURATION;}var e=null;var p=this._start;var l=this._interval;var n=this._duration;if(this._startIsPercentage){p=Math.floor(p*m/100);}if(this._intervalIsPercentage){l=Math.floor(l*m/100);}if(this._durationIsPercentage){n=Math.ceil(n*m/100);}n+=this._paddingDuration;if((o>=p)&&((o-p)%(l+n)===0)){var k=o.toString();if(typeof this._shownPoints[k]==="undefined"||this._shownPoints[k]===null){if(n===0||(n>0&&n<=m-o)){e=this._showCommand;this._shownPoints[k]="";}else{}}}else{if(this._hideCommand&&(o>=p)&&((o-p)%(l+n))===n){}}return e;};this.resetClipRules=function(){this._shownPoints={};};};a.extend(ActionRule_TIMELINE,a.com.yahoo.ads.rules.ActionRule);a.com.yahoo.ads.rules.ActionRule_TIMELINE=ActionRule_TIMELINE;},"1.0.0",{requires:["node","EngineActionEvent","ActionRule"]});YUI.add("ActionRule_TRIGGER",function(a){a.namespace("com.yahoo.ads.rules");ActionRule_TRIGGER=function(d){ActionRule_TRIGGER.superclass.constructor.apply(this,[d]);this.ACTION_POSITIVE="InsertAd";this.ACTION_POSITIVE_SKIN="skin-op";this._evaluateRatio=function(n){var m=n.getCount();var o=n.getAdLength();var l=n.getVidLength();var e=this._ratio;if(l===0||o===0){e=this._ratio;}else{e=l/o;}var k=f==="true"?m>this._start:true;return k&&this._ratioEnabled&&(l===0||e>=this._ratio);};this._evaluateLength=function(m){var l=m.getCount();var k=m.getRecentVidLength();var e=f==="true"?l>this._start:true;return e&&this._lengthEnabled&&(k-this._length)>=0;};this._evaluateFrequency=function(l){var k=l.getCount();var e=l.getRecentClipCount();return k>this._start&&e>=this._interval;};var c=function(k){var e=Math.random()*100;return e<=k;};var b="";var g="";var h="false",f,j;h=d["@minDurEnabled"];b=d["@ratioEnabled"];g=d["@lengthEnabled"];f=d["@firstAdProbabilityEnabled"]||"";j=parseInt(d["@firstAdProbability"],10)||0;this._interval=parseInt(d["@interval"],10);this._start=parseInt(d["@start"],10)-1;this._minDuartion=parseInt(d["@minDuration"],10);this._ratio=parseInt(d["@ratio"],10);this._length=parseInt(d["@length"],10);if(this.mActionParams.id==="purevideo"){this._symbol="video";this._actionString=this.ACTION_POSITIVE;}else{if(this.mActionParams.id==="skin"){this._symbol="skin";this._actionString=this.ACTION_POSITIVE_SKIN;}else{this._symbol="overlay";this._actionString=this.ACTION_POSITIVE;}}if(this._start<0){this._start=0;}try{this._ratioEnabled=b.length>0&&b==="true";this._lengthEnabled=g.length>0&&g==="true";this._minDuartionEnabled=h.length>0&&h==="true";}catch(i){this._ratioEnabled=false;this._lengthEnabled=false;this._minDuartionEnabled=false;}this.evaluateBasis=function(o){var e=null,m,l=a.com.yahoo.ads.engine.EngineActionEvent.SKIP_EVENT;if(typeof o==="undefined"){return e;}if(o.getType()===TriggerEventBasis.TRIGGER_BASIS){var k=o.getTriggerName();if(k.toLowerCase()===this.mSubtype.toLowerCase()){var n=o.getClipDuration();if((this._minDuartionEnabled&&n>=this._minDuartion)||!this._minDuartionEnabled){m=o.getCount();if(m===(this._start+1)&&f==="true"){e=c(j)?this._actionString:l;return e;}if(this._ratioEnabled){if(this._evaluateRatio(o)){e=this._actionString;}else{e=l;}}else{if(this._lengthEnabled){if(this._evaluateLength(o)){e=this._actionString;}else{e=l;}}else{if(this._evaluateFrequency(o)){e=this._actionString;}else{e=l;}}}}else{e=l;}}}return e;};this.getBasis=function(){return"triggers";};};a.extend(ActionRule_TRIGGER,a.com.yahoo.ads.rules.ActionRule);a.com.yahoo.ads.rules.ActionRule_TRIGGER=ActionRule_TRIGGER;},"1.0.0",{requires:["node","EngineActionEvent","ActionRule"]});YUI.add("RuleGroup",function(a){a.namespace("com.yahoo.ads.rules");RuleGroup=function(){var f=[];var d;var b;var g=false;var c="videoTimeline";var e="triggers";return{initFromJSON:function(j){var k=null;d=j["@id"];if(j["@defaultRuleset"]=="true"){b=true;}if(j.actionRule2 instanceof Array){for(var h=0;h0){var d=c[0].match(/(\d)+/g);if(typeof d!==a.TYPE_OF_UNDEFINED&&d!==null&&d.length>0){return(d[0]>9);}}return true;};Utils.isIPhoneSupported=function(){return(b.UA.iphone>=0&&b.UA.iphone<6.1);};Utils.isOverlaySupported=function(){return !(b.UA.ios||b.UA.android);};Utils.getCreativeAndBookingId=function(d){var e=/bi\$(\d+),cr\$(\d+)/,c,f=null;if(d&&typeof d===a.TYPE_OF_STRING&&d.length>0){c=e.exec(d);if(c){f={};f[a.BOOKINGID]=c[1];f[a.CREATIVEID]=c[2];}}return f;};b.com.yahoo.ads.utils.Utils=Utils;},"1.0.0",{requires:["Constants"]});YUI.add("videoplayer",function(f){function n(ak){var Y=this;this.addAttrs({id:{},title:{},description:{},duration:{validator:f.Lang.isNumber},clipDuration:{validator:f.Lang.isString},comscoreC5:{validator:f.Lang.isString,writeOnce:true},images:{value:{large:null,medium:null,small:null,provider:null,thumbnail:null}},shareUrl:{},embedCode:{},isLive:{validator:f.Lang.isBoolean},autoContinue:{validator:f.Lang.isBoolean},isPreFetched:{validator:f.Lang.isBoolean},eventBeginTime:{validator:f.Lang.isNumber},eventEndTime:{validator:f.Lang.isNumber},showName:{validator:f.Lang.isString},pageSpaceId:{validator:f.Lang.isString},CC:{},adData:{validator:f.Lang.isObject},licensorName:{validator:f.Lang.isString},licensorId:{validator:f.Lang.isString},licenseName:{validator:f.Lang.isString},licenseId:{validator:f.Lang.isString},spaceId:{validator:f.Lang.isString},originatingProperty:{validator:f.Lang.isString},cms:{},embeddable:{value:undefined,validator:f.Lang.isBoolean},bitrate:{},sessionGUID:{},playlistId:{},streams:[],visualseek:{},streamUrlOwner:{validator:f.Lang.isString},format:{},status:{},streamUrl:{},metrics:{validator:function(al){return f.Lang.isObject(al);}},adTargeting:{},adTargetingCategory:{},mediaInfo:{value:{currentKbps:null,droppedFrames:null,playbackBytesPerSecond:null,frameRate:null,bufferLength:null,bufferingRatio:null,bufferSample:null,bufferTime:null,totalMemory:null,currentStreamIndex:null,currentStreamBitrate:null,qualityLevels:null,hwDecoding:null,hwRendering:null,minBitRate:null,maxBitRate:null,highestQualityPlaybackRatio:null,streamSwitchReason:null,mediaWidth:null,mediaHeight:null}},history:{value:{currentStreamBitrate:[],frameRate:[],currentKbps:[],streamSwitchReason:[],bufferSample:[]}},provider:{value:{name:null}},hdAvailable:{validator:f.Lang.isFunction},rendererType:{validator:function(al){return al==="html"||al==="flash";}}},ak);this.after("mediaInfoChange",function(am){var an=am.newVal,ap=Y.get("history"),ao=["frameRate","currentStreamBitrate","currentKbps","streamSwitchReason","bufferSample"],aq,al;for(aq=0;aq240){ap[al].shift();}}},this);}n.prototype={toObject:function(){return this.getAttrs();},_fireAttrChange:function(ak,ao,an,Y,am){f.Attribute.prototype._fireAttrChange.apply(this,arguments);var al=(am)?f.merge(am):this._ATTR_E_FACADE;this.fire("attrChange",al);}};f.augment(n,f.Attribute);f.namespace("VideoPlatform").MediaObject=n;function X(ak){if(f.Lang.isValue(ak)){var Y=f.Lang.isArray(ak)?ak:f.Array(ak);this._items=f.Array.map(Y,function(al){return f.instanceOf(al,n)?al:new n(al);});}else{this._items=this._items||[];}this._registerItems(this._items);this.publish("itemChange",{emitFacade:true});this.publish("clear",{emitFacade:true});}f.extend(X,f.ArrayList,{toArray:function(){return f.Array.map(this._items.concat(),function(Y){return Y.toObject();});},add:function(am,ak){var Y=this._items,an=f.instanceOf(am,n)?am:new n(am),al;if(f.Lang.isNumber(ak)){Y.splice(ak,0,an);al=ak;}else{Y.push(an);al=Y.length-1;}this.fire("add",{item:this.item(al)});return this;},reset:function(){this._items=[];},find:function(Y,ak){return f.Array.find(this._items,Y,ak);},getIndexById:function(ak){var Y;Y=-1;f.Array.some(this._items,function(am,al){if(am.get("id")===ak){Y=al;return true;}});return Y;},remove:function(an,al,Y){var am=[],ak;Y=Y||this.itemsAreEqual;for(ak=this._items.length-1;ak>=0;--ak){if(Y.call(this,an,this.item(ak))){am=am.concat(this._items.splice(ak,1));if(!al){break;}}}if(am.length>0){this._deregisterItems(am);this.fire("remove",{items:am});}return this;},removeItems:function(Y,al){var ak;if(f.Lang.isUndefined(al)){throw new Error("Expected count, did you mean to use removeItem?");}ak=this._items.splice(Y,al);this._deregisterItems(ak);},removeItem:function(Y){this.removeItems(Y,1);},removeItemById:function(ak){var Y=this.getIndexById(ak);this.removeItem(Y);},removeItemsById:function(ak){var Y=this;f.each(ak,function(al){Y.removeItemById(al);});},clear:function(){this._deregisterItems(this._items);this._items=[];this.fire("clear");},_registerItems:function(Y){f.Array.each(Y,function(ak){ak.after("attrChange",this._onItemAttrChange,this);},this);},_deregisterItems:function(Y){f.Array.each(Y,function(ak){ak.detach("attrChange",this._onItemAttrChange,this);},this);},_onItemAttrChange:function(ak){var Y=ak.target;this.fire("itemChange",f.merge(ak,{mediaObject:Y,index:this.indexOf(Y)}));}});f.augment(X,f.EventTarget);f.namespace("VideoPlatform").MediaCollection=X;function E(Y){this.addAttrs({id:{value:"",validator:function(al){return f.Lang.isValue(al);}},totalLength:{value:0,validator:function(al){return f.Lang.isNumber(al);}},totalRequested:{value:0,validator:function(al){return f.Lang.isNumber(al);}},title:{value:"",validator:function(al){return f.Lang.isValue(al);}},description:{value:"",validator:function(al){return f.Lang.isValue(al);
}},mediaItems:{value:new f.VideoPlatform.MediaCollection(),writeOnce:"initOnly",setter:function(al){if(!f.instanceOf(al,f.VideoPlatform.MediaCollection)){return new f.VideoPlatform.MediaCollection(al);}}}},Y);var ak=this.items();ak.after("itemChange",this._onItemChange,this);ak.after("add",this._onItemAdd,this);ak.after("remove",this._onItemRemove,this);this.publish("mediaItemChange",{emitFacade:true});this.publish("mediaItemRemove",{emitFacade:true});this.publish("mediaItemAdd",{emitFacade:true});}E.prototype={items:function(){return this.get("mediaItems");},toObject:function(){var Y=this.getAttrs(),ak=[];f.each(Y.mediaItems,function(al){ak.push(al.toObject());});Y.mediaItems=ak;return Y;},_onItemChange:function(Y){this.fire("mediaItemChange",{attrName:Y.attrName,index:Y.index,newVal:Y.newVal,prevVal:Y.prevVal,mediaObject:Y.mediaObject});},_onItemAdd:function(Y){this.fire("mediaItemAdd",{item:Y.item});},_onItemRemove:function(Y){this.fire("mediaItemRemove",{items:Y.items});},_fireAttrChange:function(ak,ao,an,Y,am){f.Attribute.prototype._fireAttrChange.apply(this,arguments);var al=(am)?f.merge(am):this._ATTR_E_FACADE;this.fire("attrChange",al);}};f.augment(E,f.Attribute);f.namespace("VideoPlatform").PlaylistObject=E;function ac(){this._items=[];}ac.prototype.items=function(){return this._items;};ac.prototype.add=function(Y){this._items.push(Y);this.fire("itemAdded",{item:Y});return this;};f.augment(ac,f.EventTarget);f.namespace("VideoPlatform").ProfileDataCollection=ac;function N(){N.superclass.constructor.apply(this,arguments);this.START_TIME=(new Date()).getTime();var Y=this.get("playlist");Y.after("attrChange",this._onPlaylistAttrChange,this);Y.after("mediaItemChange",this._onMediaItemChange,this);Y.after("mediaItemAdd",this._onMediaItemAdd,this);Y.after("mediaItemRemove",this._onMediaItemRemove,this);this.publish("playlistAttrChange",{emitFacade:true});this.publish("playlistItemChange",{emitFacade:true});this.publish("playlistItemAdd",{emitFacade:true});this.publish("playlistItemRemove",{emitFacade:true});}N.NAME="Model";N.NS="model";N.ATTRS={version:{value:"4.1.15.1390360235",readOnly:true},hostingData:{writeOnce:true,setter:function(Y){return{bucket:Y.bucket,colo:Y.colo,env:Y.env};}},criticalError:{value:null,validator:function(Y){return f.Lang.isObject(Y);}},fullscreen:{value:false,validator:f.Lang.isBoolean},height:{validator:function(Y){return f.Lang.isNumber(Y)&&Y>=0;}},width:{validator:function(Y){return f.Lang.isNumber(Y)&&Y>=0;}},adClientSize:{value:{width:0,height:0}},volume:{value:0.7,validator:function(Y){return f.Lang.isNumber(Y);}},mute:{value:false,validator:function(Y){return f.Lang.isBoolean(Y);}},autoplay:{value:false,validator:function(Y){return f.Lang.isBoolean(Y);}},ybang:{value:true,validator:function(Y){return f.Lang.isBoolean(Y);}},carousel:{value:false,validator:function(Y){return f.Lang.isBoolean(Y);}},partnerCarouselItems:{value:null},endscreen:{value:true,validator:function(Y){return f.Lang.isObject(Y)||f.Lang.isBoolean(Y);},contentAlgo:{value:"",validator:function(Y){return f.Lang.isString(Y);}}},infoscreen:{value:true,validator:function(Y){return f.Lang.isObject(Y)||f.Lang.isBoolean(Y);}},errorscreen:{value:true,validator:function(Y){return f.Lang.isObject(Y)||f.Lang.isBoolean(Y);}},startscreen:{value:{showProvider:false,showDesc:true,showButton:true,showTitle:true},validator:function(Y){return f.Lang.isObject(Y)||(f.Lang.isBoolean(Y)&&!Y);}},client:{value:""},YVAP:{value:null,setter:function(Y){return new f.Attribute().addAttrs({accountId:{value:""},playContext:{value:""},ruleSetId:{value:-1},timeout:{value:""}},Y);}},YVAPRequired:{value:true},synd:{value:"",validator:f.Lang.isString},adPluginMetric:{value:null},adPluginQosMetric:{value:null},mediaFormats:{validator:f.Lang.isArray},continuousPlay:{value:false,validator:f.Lang.isBoolean},guid:{writeOnce:true,validator:f.Lang.isString},playerSpaceId:{value:"0"},pageSpaceId:{value:"0"},reportingDomain:{value:"unknown.videoplayer.yahoo.com"},lang:{value:"",validator:f.Lang.isString},bitrate:{value:900,validator:function(Y){return f.Lang.isNumber(Y);}},shareUrlTemplate:{value:"http://video.yahoo.com/play/{videoId}"},chromeless:{value:false,validator:f.Lang.isBoolean},warning:{value:null},error:{value:null},errorDisplayDuration:{value:5,validator:f.Lang.isNumber},beacons:{value:[],validator:f.Lang.isArray},site:{value:""},region:{value:""},jurisdiction:{value:""},comscoreC4:{validator:function(Y){return f.Lang.isString(Y)&&(Y.length>0);}},comscoreC6:{value:"",validator:f.Lang.isString},isOffNetwork:{value:false,validator:f.Lang.isBoolean},lms:{value:"none",validator:function(Y){return"none"===Y||"all"===Y;}},rendererType:{validator:f.Lang.isString},videoRendererState:{},rendererReady:{value:false},videoPlaybackState:{value:null},currentMedia:{value:null},duration:{value:-1,validator:function(Y){return f.Lang.isNumber(Y)||Y===Number.POSITIVE_INFINITY;}},playbackPosition:{value:-1,validator:f.Lang.isNumber,setter:function(Y){this.set("currentTime",Y);return Math.floor(Y);}},currentTime:{value:-1,validator:f.Lang.isNumber},adPlaybackPosition:{value:-1,validator:f.Lang.isNumber},playlistPosition:{value:-1,validator:f.Lang.isNumber},playlist:{value:new E(),writeOnce:"initOnly",setter:function(Y){return new E(Y);}},startVideo:{value:"",validator:f.Lang.isString},playerState:{value:null},yvapState:{value:null},yvapData:{value:null},isInitialized:{value:false},activeScreenStr:{value:undefined},isLoading:{value:false},isLoaded:{value:false},isPreparing:{value:false},isPrepared:{value:false},isStarted:{value:false},isCompleted:{value:false},isPlaying:{value:false},isWaiting:{value:false},isSeeking:{value:false},isPaused:{value:false},isError:{value:false},isPlaybackError:{value:false},expType:{value:"",validator:f.Lang.isString},expName:{value:"",validator:f.Lang.isString},expBucket:{value:"",validator:f.Lang.isString},profileData:{value:null,setter:function(){return new f.VideoPlatform.ProfileDataCollection();}},isSpinnerShown:{value:false},ccAvailable:{value:false,validator:f.Lang.isBoolean},showClosedCaptions:{value:false,validator:f.Lang.isBoolean},atlasEnv:{value:""},CMS:{value:{env:null,host:null,suppressAdContext:false}},SAPI_CONF:{value:{host:null}},emptySpaceIdContextInSapi:{value:false,validator:f.Lang.isBoolean},endScreenVideos:{value:new E(),writeOnce:"initOnly",setter:function(Y){return new E(Y);
}},showControls:{value:false,validator:f.Lang.isBoolean},closedCaptionUrl:{value:null,validator:f.Lang.isString},closedCaptions:{value:null,validator:f.Lang.isObject},maxConnectionAttempts:{value:"3",validator:f.Lang.isNumber},streamAd:{value:null},standaloneAdMode:{value:false},loop:{value:false,validator:f.Lang.isBoolean},isVisualSeekEnabled:{value:true,validator:f.Lang.isBoolean},pageLatency:{value:{pagePlayerJsDownloadStart:null,pagePlayerJsDownloadTime:null,pageMediaItemPrefetchTime:null}}};f.extend(N,f.Base,{_onPlaylistAttrChange:function(Y){this.fire("playlistAttrChange",Y);},_onMediaItemChange:function(Y){this.fire("playlistItemChange",Y);},_onMediaItemAdd:function(Y){this.fire("playlistItemAdd",Y);},_onMediaItemRemove:function(Y){this.fire("playlistItemRemove",Y);}});f.namespace("VideoPlatform").Model=N;function r(){r.superclass.constructor.apply(this,arguments);}r.CSS=".yui3-videoplayer-loading,.yui3-videoplayer-carousel-left,.yui3-videoplayer-carousel-right,.yui3-videoplayer-controls .embed-chainlink-button,.yui3-videoplayer-controls .fb-icon,.yui3-videoplayer-infoscreen-fb-icon,.yui3-videoplayer-errorscreen-download-flash-button,.yui3-videoplayer-partner-bar .branding-logo,.yui3-videoplayer-controls .play-pause span,.yui3-videoplayer-carousel-viewport-item .overlay .play-button,.yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-button,.yui3-videoplayer-endscreen-carousel-node .overlay .replay-button,.yui3-videoplayer-errorscreen-image,.yui3-videoplayer-controls .settings span,.yui3-videoplayer-controls .size .full,.yui3-videoplayer-controls .volume .mute span{background-image:url('http://l.yimg.com/rx/builds/4.1.15.1390360235/assets/main-images.png');background-repeat:no-repeat;background-color:transparent}.ssl.yui3-videoplayer-content .yui3-videoplayer-loading,.ssl.yui3-videoplayer-content .yui3-videoplayer-carousel-left,.ssl.yui3-videoplayer-content .yui3-videoplayer-carousel-right,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .embed-chainlink-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .fb-icon,.ssl.yui3-videoplayer-content .yui3-videoplayer-infoscreen-fb-icon,.ssl.yui3-videoplayer-content .yui3-videoplayer-errorscreen-download-flash-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-partner-bar .branding-logo,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .play-pause span,.ssl.yui3-videoplayer-content .yui3-videoplayer-carousel-viewport-item .overlay .play-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-endscreen-carousel-node .overlay .replay-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-errorscreen-image,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .settings span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .size .full,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .volume .mute span{background-image:url('https://s.yimg.com/rx/builds/4.1.15.1390360235/assets/main-images.png');background-repeat:no-repeat;background-color:transparent}.yui3-videoplayer-loading{background-position:-0px -0px;width:80px;height:80px}.yui3-videoplayer-carousel-container .yui3-videoplayer-carousel-left{background-position:-40px -80px;width:40px;height:50px}.yui3-videoplayer-carousel-container .yui3-videoplayer-arrow-container .yui3-videoplayer-carousel-left:hover{background-position:-0px -80px;width:40px;height:50px}.yui3-videoplayer-carousel-container .yui3-videoplayer-carousel-right{background-position:-80px -112px;width:40px;height:50px}.yui3-videoplayer-carousel-container .yui3-videoplayer-arrow-container .yui3-videoplayer-carousel-right:hover{background-position:-0px -130px;width:40px;height:50px}.yui3-videoplayer-controls .embed-chainlink-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .embed-chainlink-button{background-position:-147px -99px;width:11px;height:12px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTJweCIgdmlld0JveD0iMCAwIDExLjM0NSAxMiIgd2lkdGg9IjExLjM0NXB4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTEuMzQ1IDEyIj4KPGcgZmlsbD0iIzY2NjU2NCI+Cgk8cGF0aCBkPSJtNC4xOTcgNC44MzRsMC44NzcgMC44NzZzMS4xNjgtMS4yNzcgMi4wOC0wLjI1NmMwIDAgMy43MjIgMi42MjkgMi40MDggNC4zOCAwIDAtMS42MDUgMS45MzQtMy4yODQtMC44NGwtMS40MjMgMC4xMXMyLjAwNyA0LjUyNCA1LjIxOSAyLjI2MmMwIDAgMi4wNDMtMS40OTYgMC45NDgtMy43NTkgMCAwLTMuMzk0LTUuNzI5LTYuODI1LTIuNzczeiIvPgoJPHBhdGggZD0ibTcuMTQ4IDcuMTY2bC0wLjg3Ny0wLjg3NnMtMS4xNjggMS4yNzctMi4wOCAwLjI1NmMwIDAtMy43MjMtMi42MjgtMi40MDktNC4zOCAwIDAgMS42MDYtMS45MzQgMy4yODUgMC44NGwxLjQyMy0wLjExcy0yLjAwOC00LjUyNS01LjIxOS0yLjI2M2MwIDAtMi4wNDQgMS40OTYtMC45NDkgMy43NTkgMCAwLjAwMSAzLjM5NSA1LjczIDYuODI2IDIuNzc0eiIvPgo8L2c+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-147px -99px}.yui3-videoplayer-controls .fb-icon,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .fb-icon{background-position:-135px -79px;width:20px;height:20px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB3aWR0aD0iMjBweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIj4KPHBhdGggZD0ibTIwIDE4YzAgMS4xMDQtMC44OTYgMi0yIDJoLTE2Yy0xLjEwNCAwLTItMC44OTYtMi0ydi0xNmMwLTEuMTA1IDAuODk2LTIgMi0yaDE2YzEuMTA0IDAgMiAwLjg5NSAyIDJ2MTZ6IiBmaWxsPSIjM0I1Njk5Ii8+Cgk8cGF0aCBkPSJtMTEuMTYgMTcuNjh2LTYuODQyaDIuMjk3bDAuMzQ4LTIuNjY2aC0yLjY0NXYtMS43MDNjMC0wLjc3MSAwLjIxNS0xLjI5NyAxLjMyNC0xLjI5N2wxLjQxLTAuMDAydi0yLjM4NWMtMC4yNDQtMC4wMzEtMS4wODItMC4xMDUtMi4wNTYtMC4xMDUtMi4wMzcgMC0zLjQzIDEuMjQyLTMuNDMgMy41MjV2MS45NjdoLTIuMzAzdjIuNjY2aDIuMzA1djYuODQyaDIuNzV6IiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-135px -79px}.yui3-videoplayer-controls .fb-icon:hover,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .fb-icon:hover{background-position:-135px -59px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMjBweCIgd2lkdGg9IjIwcHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIj4KPGcgZGlzcGxheT0ibm9uZSI+Cgk8cGF0aCBkPSJtMjAgMThjMCAxLjEwNC0wLjg5NiAyLTIgMmgtMTZjLTEuMTA0IDAtMi0wLjg5Ni0yLTJ2LTE2YzAtMS4xMDUgMC44OTYtMiAyLTJoMTZjMS4xMDQgMCAyIDAuODk1IDIgMnYxNnoiIGRpc3BsYXk9ImlubGluZSIgZmlsbD0iIzNCNTY5OSIvPgoJPGcgZGlzcGxheT0iaW5saW5lIj4KCQk8cGF0aCBkPSJtMTEuMTYgMTcuNjh2LTYuODQyaDIuMjk3bDAuMzQ4LTIuNjY2aC0yLjY0NXYtMS43MDNjMC0wLjc3MSAwLjIxNS0xLjI5NyAxLjMyNC0xLjI5N2wxLjQxLTAuMDAydi0yLjM4NWMtMC4yNDQtMC4wMzEtMS4wODItMC4xMDUtMi4wNTYtMC4xMDUtMi4wMzcgMC0zLjQzIDEuMjQyLTMuNDMgMy41MjV2MS45NjdoLTIuMzAzdjIuNjY2aDIuMzA1djYuODQyaDIuNzV6IiBmaWxsPSIjZmZmIi8+Cgk8L2c+CjwvZz4KCTxwYXRoIGQ9Im0yMCAxOGMwIDEuMTA0LTAuODk2IDItMiAyaC0xNmMtMS4xMDQgMC0yLTAuODk2LTItMnYtMTZjMC0xLjEwNSAwLjg5Ni0yIDItMmgxNmMxLjEwNCAwIDIgMC44OTUgMiAydjE2eiIgZmlsbD0iIzMwNDY3QSIvPgoJCTxwYXRoIGQ9Im0xMS4xNiAxNy42OHYtNi44NDJoMi4yOTdsMC4zNDgtMi42NjZoLTIuNjQ1di0xLjcwM2MwLTAuNzcxIDAuMjE1LTEuMjk3IDEuMzI0LTEuMjk3bDEuNDEtMC4wMDJ2LTIuMzg1Yy0wLjI0NC0wLjAzMS0xLjA4Mi0wLjEwNS0yLjA1Ni0wLjEwNS0yLjAzNyAwLTMuNDMgMS4yNDItMy40MyAzLjUyNXYxLjk2N2gtMi4zMDN2Mi42NjZoMi4zMDV2Ni44NDJoMi43NXoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==);background-position:0 0,0 0;*background-position:-135px -59px}.yui3-videoplayer-infoscreen-fb-icon{background-position:-0px -219px;width:20px;height:20px}.yui3-videoplayer-errorscreen-download-flash-button{background-position:-0px -180px;width:158px;height:39px}.yui3-videoplayer-loading.legacy{background-position:-120px -112px;width:26px;height:26px}.yui3-videoplayer-partner-bar .branding-logo{background-position:-80px -0px;width:74px;height:59px}.yui3-videoplayer-controls .pause span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .pause span{background-position:-76px -219px;width:11px;height:11px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTFweCIgdmlld0JveD0iMCAwIDEwLjUgMTEiIHdpZHRoPSIxMC41cHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMC41IDExIj4KCQk8cmVjdCB4PSIuMTI1IiBoZWlnaHQ9IjExIiB3aWR0aD0iMyIgZmlsbD0iI0NEQ0NDQyIvPgoJCTxyZWN0IHg9IjcuMzc1IiBoZWlnaHQ9IjExIiB3aWR0aD0iMyIgZmlsbD0iI0NEQ0NDQyIvPgo8L3N2Zz4K);background-position:0 0,0 0;*background-position:-76px -219px}.yui3-videoplayer-controls .pause:hover span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .pause:hover span{background-position:-65px -219px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTFweCIgdmlld0JveD0iMCAwIDEwLjUgMTEiIHdpZHRoPSIxMC41cHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMC41IDExIj4KCQk8cmVjdCB4PSIuMTI1IiBoZWlnaHQ9IjExIiB3aWR0aD0iMyIgZmlsbD0iI2ZmZiIvPgoJCTxyZWN0IHg9IjcuMzc1IiBoZWlnaHQ9IjExIiB3aWR0aD0iMyIgZmlsbD0iI2ZmZiIvPgo8L3N2Zz4K);background-position:0 0,0 0;*background-position:-65px -219px}.yui3-videoplayer-controls .play span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .play span{background-position:-54px -219px;width:11px;height:11px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTFweCIgdmlld0JveD0iMCAwIDEwLjUgMTEiIHdpZHRoPSIxMC41cHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMC41IDExIj4KCQk8cG9seWdvbiBwb2ludHM9IjEwLjM1MiA1LjQ5OCAwLjE0OCAxMSAwLjE0OCAwIiBmaWxsPSIjY2NjIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-54px -219px}.yui3-videoplayer-controls .play:hover span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .play:hover span{background-position:-87px -219px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTFweCIgdmlld0JveD0iMCAwIDEwLjUgMTEiIHdpZHRoPSIxMC41cHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMC41IDExIj4KCQk8cG9seWdvbiBwb2ludHM9IjEwLjM1MiA1LjQ5OCAwLjE0OCAxMSAwLjE0OCAwIiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-87px -219px}.yui3-videoplayer-carousel-viewport-item .overlay .play-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-carousel-viewport-item .overlay .play-button{background-position:-120px -138px;width:33px;height:23px;background-image:none,url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMjIuODI4cHgiIHZpZXdCb3g9IjAgMCAzMS45MDEgMjIuODI4IiB3aWR0aD0iMzEuOTAxcHgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMS45MDEgMjIuODI4Ij4KCTxwYXRoIGQ9Im0wLjE0NiA0LjQzOGMwLTIuMzIxIDEuODU5LTQuMjA1IDQuMTU0LTQuMjA1IDAgMCAxMS40NzMtMC41MjMgMjMuMjI5IDAgMi4yOTQgMCA0LjE1NSAxLjg4NCA0LjE1NSA0LjIwNSAwIDAgMC40ODYgNi43OTcgMCAxNC4wMzkgMCAyLjMyMi0xLjg2MSA0LjIwMy00LjE1NSA0LjIwMyAwIDAtMTEuODA0IDAuMzM0LTIzLjIyOSAwLTIuMjk1IDAtNC4xNTQtMS44ODEtNC4xNTQtNC4yMDMgMCAwLTAuMzMtMy4zNiAwLTE0LjAzOXoiIGZpbGw9IiMzMjRGRTEiLz4KCTxwb2x5Z29uIHBvaW50cz0iMjEuMDk4IDExLjQxNCAxMy4wNyAxNS44MDcgMTMuMDcgNy4wMiIgZmlsbD0iI2ZmZiIvPgo8L3N2Zz4K');background-position:0 0,0 0;*background-position:-120px -138px}.yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-button,.yui3-videoplayer-endscreen-carousel-node .overlay .replay-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-endscreen-carousel-node .overlay .replay-button{background-position:-40px -130px;width:39px;height:43px;background-image:none,url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iNDIuNXB4IiB2aWV3Qm94PSIwIDAgMzguNSA0Mi41IiB3aWR0aD0iMzguNXB4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzguNSA0Mi41Ij4KPHBhdGggZD0ibTEuNTc4IDIzLjAzNmMwIDkuNzM0IDcuODkgMTcuNjI0IDE3LjYyMyAxNy42MjQgOS43MzIgMCAxNy42MjMtNy44OSAxNy42MjMtMTcuNjI0IDAtOS43MzMtNy44OTEtMTcuNjIzLTE3LjYyMy0xNy42MjMtMS4wMjggMC0yLjAzNCAwLjA5NC0zLjAxNCAwLjI2MnYtNC4xMDVsLTYuNTg0IDYuNTk4IDYuNTg0IDYuNjExdi00LjEwNmMwLjk2Ny0wLjIzNiAxLjk3Ni0wLjM2NCAzLjAxNC0wLjM2NCA3LjAxOCAwIDEyLjcyOCA1LjcxIDEyLjcyOCAxMi43MjggMCA3LjAxOS01LjcxIDEyLjcyOS0xMi43MjggMTIuNzI5cy0xMi43MjktNS43MTEtMTIuNzI5LTEyLjczaC00Ljg5NHoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==');background-position:0 0,0 0;*background-position:-40px -130px}.yui3-videoplayer-errorscreen-image{background-position:-80px -59px;width:55px;height:53px}.yui3-videoplayer-controls .settings span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .settings span{background-position:-142px -161px;width:13px;height:13px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTIuMDAxcHgiIHZpZXdCb3g9IjAgMCAxMiAxMi4wMDEiIHdpZHRoPSIxMnB4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTIgMTIuMDAxIj4KPGcgZmlsbD0iI2NjYyI+Cgk8cG9seWdvbiBwb2ludHM9IjYuMDAxIDMuMzI3IDIuNzM5IDYuNTgxIDMuODI0IDcuNzAyIDYuMDAxIDUuNTE0IDguMTQ1IDcuNzAyIDkuMjQ4IDYuNjA3Ii8+Cgk8cGF0aCBkPSJtNiAwYy0zLjMxMyAwLTYgMi42ODYtNiA2IDAgMy4zMTMgMi42ODcgNiA2IDZzNi0yLjY4NyA2LTZjMC0zLjMxNC0yLjY4Ny02LTYtNnptLTAuMDA3IDEwLjQxNGMtMi40NDkgMC00LjQzNC0xLjk3OS00LjQzNC00LjQyMXMxLjk4NC00LjQyIDQuNDM0LTQuNDIgNC40MzQgMS45NzkgNC40MzQgNC40Mi0xLjk4NSA0LjQyMS00LjQzNCA0LjQyMXoiLz4KPC9nPgo8L3N2Zz4K);background-position:0 0,0 0;*background-position:-142px -161px}.yui3-videoplayer-controls .settings.on span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .settings.on span{background-position:-101px -162px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTIuMDAxcHgiIHZpZXdCb3g9IjAgMCAxMiAxMi4wMDEiIHdpZHRoPSIxMnB4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTIgMTIuMDAxIj4KCQk8cGF0aCBkPSJtNiAwYy0zLjMxMyAwLTYgMi42ODctNiA2czIuNjg3IDYgNiA2IDYtMi42ODggNi02YzAtMy4zMTMtMi42ODctNi02LTZ6IiBmaWxsPSIjNUYzM0ZGIi8+Cgk8cG9seWdvbiBwb2ludHM9IjUuOTg1IDguNzUzIDkuMjQ4IDUuNDk4IDguMTYzIDQuMzc3IDUuOTg1IDYuNTY1IDMuODQyIDQuMzc3IDIuNzM5IDUuNDcyIiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-101px -162px}.yui3-videoplayer-controls .size .full,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .size .full{background-position:-120px -161px;width:22px;height:17px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTdweCIgdmlld0JveD0iMCAwIDIyIDE3IiB3aWR0aD0iMjJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIyIDE3Ij4KCQk8cG9seWdvbiBwb2ludHM9IjIyIDYgMjAgNiAyMCAyIDE2IDIgMTYgMCAyMiAwIiBmaWxsPSIjQ0RDQ0NDIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIyMiAxNyAxNiAxNyAxNiAxNSAyMCAxNSAyMCAxMSAyMiAxMSIgZmlsbD0iI0NEQ0NDQyIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMiA2IDAgNiAwIDAgNiAwIDYgMiAyIDIiIGZpbGw9IiNDRENDQ0MiLz4KCQk8cG9seWdvbiBwb2ludHM9IjYgMTcgMCAxNyAwIDExIDIgMTEgMiAxNSA2IDE1IiBmaWxsPSIjQ0RDQ0NDIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-120px -161px}.yui3-videoplayer-controls .size .full:hover,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .size .full:hover{background-position:-79px -162px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTdweCIgdmlld0JveD0iMCAwIDIyIDE3IiB3aWR0aD0iMjJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIyIDE3Ij4KCQk8cG9seWdvbiBwb2ludHM9IjIyIDYgMjAgNiAyMCAyIDE2IDIgMTYgMCAyMiAwIiBmaWxsPSIjZmZmIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIyMiAxNyAxNiAxNyAxNiAxNSAyMCAxNSAyMCAxMSAyMiAxMSIgZmlsbD0iI2ZmZiIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMiA2IDAgNiAwIDAgNiAwIDYgMiAyIDIiIGZpbGw9IiNmZmYiLz4KCQk8cG9seWdvbiBwb2ludHM9IjYgMTcgMCAxNyAwIDExIDIgMTEgMiAxNSA2IDE1IiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-79px -162px}.yui3-videoplayer-controls .size .full.on,.yui3-videoplayer-controls .size .full.on:hover,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .size .full.on,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .size .full.on:hover{background-position:-20px -219px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTdweCIgdmlld0JveD0iMCAwIDIyIDE3IiB3aWR0aD0iMjJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIyIDE3Ij4KCQk8cG9seWdvbiBwb2ludHM9IjIyIDYgMjAgNiAyMCAyIDE2IDIgMTYgMCAyMiAwIiBmaWxsPSIjNUYzRkZGIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIyMiAxNyAxNiAxNyAxNiAxNSAyMCAxNSAyMCAxMSAyMiAxMSIgZmlsbD0iIzVGM0ZGRiIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMiA2IDAgNiAwIDAgNiAwIDYgMiAyIDIiIGZpbGw9IiM1RjNGRkYiLz4KCQk8cG9seWdvbiBwb2ludHM9IjYgMTcgMCAxNyAwIDExIDIgMTEgMiAxNSA2IDE1IiBmaWxsPSIjNUYzRkZGIi8+Cjwvc3ZnPgo=);background-position:0 0,0 0;*background-position:-20px -219px}.yui3-videoplayer-controls .volume .mute span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .volume .mute span{background-position:-146px -112px;width:12px;height:12px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTJweCIgdmlld0JveD0iMCAwIDEyIDEyIiB3aWR0aD0iMTJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyIDEyIj4KCTxnIGZpbGw9IiNjY2MiPgoJCTxwb2x5Z29uIHBvaW50cz0iMi4zNiA0LjE3NiAwLjUyMiA0LjE3NiAwLjUyMiA3Ljg0NCAyLjM3NCA3Ljg0NCA2LjAyNCAxMS41IDYuMDI0IDAuNSAyLjM2IDQuMTciLz4KCQk8cGF0aCBkPSJtNy40MzMgMy42ODZsLTAuNTUzIDEuMDg1djAuMDI1YzAuMzQ2IDAuMjg0IDAuNTcyIDAuNzA4IDAuNTcyIDEuMTkgMCAwLjQ4LTAuMjI3IDAuOTA0LTAuNTcyIDEuMTg4djAuMDA0bDAuNTYgMS4xMDFjMC43NDItMC40OTQgMS4yMzItMS4zMzYgMS4yMzItMi4yOTMgMC4wMDEtMC45NjMtMC40OTEtMS44MDgtMS4yMzktMi4zeiIvPgoJCTxwYXRoIGQ9Im0xMS40NzggNS45ODZjMC0yLjA0Ny0xLjEyNS0zLjgyOC0yLjc4OS00Ljc2OGwtMC41NDUgMS4wN3YwLjAyN2MxLjI2MiAwLjczOCAyLjExMyAyLjEwNCAyLjExMyAzLjY3IDAgMS41NjQtMC44NTIgMi45My0yLjExMyAzLjY2OHYwLjAwNGwwLjU1NSAxLjA4OGMxLjY1Ny0wLjkzOCAyLjc3OS0yLjcxOCAyLjc3OS00Ljc1OXoiLz4KCTwvZz4KPC9zdmc+Cg==);background-position:0 0,0 0;*background-position:-146px -112px}.yui3-videoplayer-controls .volume .mute:hover span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .volume .mute:hover span{background-position:-146px -124px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTJweCIgdmlld0JveD0iMCAwIDEyIDEyIiB3aWR0aD0iMTJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyIDEyIj4KCTxnIGZpbGw9IiNmZmYiPgoJCTxwb2x5Z29uIHBvaW50cz0iMi4zNiA0LjE3NiAwLjUyMiA0LjE3NiAwLjUyMiA3Ljg0NCAyLjM3NCA3Ljg0NCA2LjAyNCAxMS41IDYuMDI0IDAuNSAyLjM2IDQuMTciLz4KCQk8cGF0aCBkPSJtNy40MzMgMy42ODZsLTAuNTUzIDEuMDg1djAuMDI1YzAuMzQ2IDAuMjg0IDAuNTcyIDAuNzA4IDAuNTcyIDEuMTkgMCAwLjQ4LTAuMjI3IDAuOTA0LTAuNTcyIDEuMTg4djAuMDA0bDAuNTYgMS4xMDFjMC43NDItMC40OTQgMS4yMzItMS4zMzYgMS4yMzItMi4yOTMgMC4wMDEtMC45NjMtMC40OTEtMS44MDgtMS4yMzktMi4zeiIvPgoJCTxwYXRoIGQ9Im0xMS40NzggNS45ODZjMC0yLjA0Ny0xLjEyNS0zLjgyOC0yLjc4OS00Ljc2OGwtMC41NDUgMS4wN3YwLjAyN2MxLjI2MiAwLjczOCAyLjExMyAyLjEwNCAyLjExMyAzLjY3IDAgMS41NjQtMC44NTIgMi45My0yLjExMyAzLjY2OHYwLjAwNGwwLjU1NSAxLjA4OGMxLjY1Ny0wLjkzOCAyLjc3OS0yLjcxOCAyLjc3OS00Ljc1OXoiLz4KCTwvZz4KPC9zdmc+Cg==);background-position:0 0,0 0;*background-position:-146px -124px}.yui3-videoplayer-controls .volume .mute.on span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .volume .mute.on span{background-position:-135px -99px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTJweCIgdmlld0JveD0iMCAwIDEyIDEyIiB3aWR0aD0iMTJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyIDEyIj4KCTxnIGZpbGw9IiM1RjNGRkYiPgoJCTxwb2x5Z29uIHBvaW50cz0iMi4zNDYgNC4xNjcgMi4zNDYgNC4xNzQgMC41MDggNC4xNzQgMC41MDggNy44NDMgMi4zNTggNy44NDMgNi4wMDggMTEuNDk4IDYuMDA4IDcuMTkyIDIuNzI1IDMuNzg3Ii8+CgkJPHBvbHlnb24gcG9pbnRzPSI2LjAwOCAwLjQ5OCAzLjgwNSAyLjcwNyA2LjAwOCA0Ljg0OCIvPgoJCTxwYXRoIGQ9Im03LjQxMSA2LjI3MmwwLjk3IDAuOTE4YzAuMTc4LTAuMzY0IDAuMjc4LTAuNzc0IDAuMjc4LTEuMjA4IDAtMC45NjMtMC40OTQtMS44MDgtMS4yNC0yLjNsLTAuNTU1IDEuMDg2djAuMDI2YzAuMzQ5IDAuMjgyIDAuNTc0IDAuNzA2IDAuNTc0IDEuMTg4IDAgMC4xLTAuMDA4IDAuMTk3LTAuMDI3IDAuMjl6Ii8+CgkJPHBhdGggZD0ibTEwLjI0MyA1Ljk4M2MwIDAuODk1LTAuMjc4IDEuNzI1LTAuNzUzIDIuNDEybDAuODY5IDAuODgzYzAuNjkzLTAuOTE2IDEuMTA0LTIuMDU4IDEuMTA0LTMuMjk0IDAtMi4wNDctMS4xMjUtMy44MjctMi43ODktNC43NjdsLTAuNTQ1IDEuMDd2MC4wMjZjMS4yNjIgMC43MzkgMi4xMTQgMi4xMDQgMi4xMTQgMy42N3oiLz4KCQk8cGF0aCBkPSJtMTEuODY4IDExLjE5M2wtMTAuOTU5LTEwLjk4cy0wLjMzMy0wLjQzOC0wLjgzMyAwYzAgMC0wLjIwOCAwLjM1NCAwLjEyNSAwLjcwOGwxMC44OTcgMTAuODc2czAuMzEyIDAuNDE2IDAuNzcxIDBjLTAuMDAxIDAgMC4yNy0wLjI5MS0wLjAwMS0wLjYwNHoiLz4KCTwvZz4KPC9zdmc+Cg==);background-position:0 0,0 0;*background-position:-135px -99px}.yui3-videoplayer-controls .volume .mute.on:hover span,.ssl.yui3-videoplayer-content .yui3-videoplayer-controls .volume .mute.on:hover span{background-position:-42px -219px;background-image:none,url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iMTJweCIgdmlld0JveD0iMCAwIDEyIDEyIiB3aWR0aD0iMTJweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyIDEyIj4KCTxnIGZpbGw9IiNmZmYiPgoJCTxwb2x5Z29uIHBvaW50cz0iMi4zNDYgNC4xNjcgMi4zNDYgNC4xNzQgMC41MDggNC4xNzQgMC41MDggNy44NDMgMi4zNTggNy44NDMgNi4wMDggMTEuNDk4IDYuMDA4IDcuMTkyIDIuNzI1IDMuNzg3Ii8+CgkJPHBvbHlnb24gcG9pbnRzPSI2LjAwOCAwLjQ5OCAzLjgwNSAyLjcwNyA2LjAwOCA0Ljg0OCIvPgoJCTxwYXRoIGQ9Im03LjQxMSA2LjI3MmwwLjk3IDAuOTE4YzAuMTc4LTAuMzY0IDAuMjc4LTAuNzc0IDAuMjc4LTEuMjA4IDAtMC45NjMtMC40OTQtMS44MDgtMS4yNC0yLjNsLTAuNTU1IDEuMDg2djAuMDI2YzAuMzQ5IDAuMjgyIDAuNTc0IDAuNzA2IDAuNTc0IDEuMTg4IDAgMC4xLTAuMDA4IDAuMTk3LTAuMDI3IDAuMjl6Ii8+CgkJPHBhdGggZD0ibTEwLjI0MyA1Ljk4M2MwIDAuODk1LTAuMjc4IDEuNzI1LTAuNzUzIDIuNDEybDAuODY5IDAuODgzYzAuNjkzLTAuOTE2IDEuMTA0LTIuMDU4IDEuMTA0LTMuMjk0IDAtMi4wNDctMS4xMjUtMy44MjctMi43ODktNC43NjdsLTAuNTQ1IDEuMDd2MC4wMjZjMS4yNjIgMC43MzkgMi4xMTQgMi4xMDQgMi4xMTQgMy42N3oiLz4KCQk8cGF0aCBkPSJtMTEuODY4IDExLjE5M2wtMTAuOTU5LTEwLjk4cy0wLjMzMy0wLjQzOC0wLjgzMyAwYzAgMC0wLjIwOCAwLjM1NCAwLjEyNSAwLjcwOGwxMC44OTcgMTAuODc2czAuMzEyIDAuNDE2IDAuNzcxIDBjLTAuMDAxIDAgMC4yNy0wLjI5MS0wLjAwMS0wLjYwNHoiLz4KCTwvZz4KPC9zdmc+Cg==);background-position:0 0,0 0;*background-position:-42px -219px}.yui3-videoplayer-startscreen-button,.ssl.yui3-videoplayer-content .yui3-videoplayer-startscreen-button{background:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iNTRweCIgdmlld0JveD0iMCAwIDc2IDU0IiB3aWR0aD0iNzZweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDc2IDU0Ij4KICAgICAgICA8cG9seWdvbiBwb2ludHM9IjUxLjExNiAyNy42MzcgMzEgMzguNTIyIDMxIDE2Ljc1IiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo=');background-repeat:no-repeat;background-color:#324fe1;background-position:50% 50%;border-radius:7px;height:60px;left:50%;position:absolute;margin-left:-42px;margin-top:-30px;top:50%;width:85px;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIBJREFUeNpiPHPmzH4GBoYHQNxoYmIConECJiidAMTngRobgFiAkGIQACmqB+L7IE2EFKNoAmoAaUogpBgGFIB4PlADyHkOhBTDgAEQ7wc5jYUIxReAuBAYUgfwKYYF5wKYADbFH6CKJqBLsKApmgjEE4AKP2CzCqZ4ATExCBBgACJTMAloE9JCAAAAAElFTkSuQmCC');*background-image:url('http://l.yimg.com/rx/builds/4.1.15.1390360235/assets/play.png');background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIGhlaWdodD0iNTRweCIgdmlld0JveD0iMCAwIDc2IDU0IiB3aWR0aD0iNzZweCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDc2IDU0Ij4KICAgICAgICA8cG9seWdvbiBwb2ludHM9IjUxLjExNiAyNy42MzcgMzEgMzguNTIyIDMxIDE2Ljc1IiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPgo='),none}.ssl.yui3-videoplayer-content .yui3-videoplayer-startscreen-button{*background-image:url('https://s.yimg.com/rx/builds/4.1.15.1390360235/assets/play.png')}.yui3-videoplayer-content.small .yui3-videoplayer-startscreen-button{background-size:40px 28px;width:45px;height:30px;margin-left:-22px;margin-top:-15px}.yui3-videoplayer-content.medium .yui3-videoplayer-startscreen-button{background-size:59px 50px;width:65px;height:45px;margin-left:-32px;margin-top:-22px}.yui3-videoplayer-content{position:relative;width:100%;height:100%;overflow:hidden;font-family:Helvetica Neue Regular,Helvetica Neue,helvetica,arial,sans-serif;font-size:16px;cursor:default;background-color:black}.yui3-videoplayer-content:-webkit-full-screen{width:100%!important;height:100%!important}.yui3-videoplayer-content h3,.yui3-videoplayer-content p,.yui3-videoplayer-content label,.yui3-videoplayer-content span,.yui3-videoplayer-content input{margin:0}.yui3-videoplayer-content h2:focus,.yui3-videoplayer-content h3:focus,.yui3-videoplayer-content h4:focus{outline:0}.yui3-videoplayer-yvap{position:absolute;top:0;left:0;width:100%;height:100%}.yui3-videoplayer-content a{color:#6cc5fd}.yui3-videoplayer-content a:hover{color:white}.yui3-videoplayer-content input:focus{outline:0}.yui3-videoplayer-video{position:absolute;width:100%;height:100%;top:0;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.yui3-videoplayer-video>video{margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.yui3-videoplayer-loading{position:absolute;top:50%;left:50%;margin-top:-40px;margin-left:-40px;-moz-opacity:.30;opacity:.30;filter:alpha(opacity=30);-webkit-animation:yui3-videoplayer-spinner .6s infinite linear;-moz-animation:yui3-videoplayer-spinner .6s infinite linear}@-webkit-keyframes yui3-videoplayer-spinner{from{-webkit-transform:rotateZ(0deg)}to{-webkit-transform:rotateZ(360deg)}}@-moz-keyframes yui3-videoplayer-spinner{from{-moz-transform:rotateZ(0deg)}to{-moz-transform:rotateZ(360deg)}}.yui3-videoplayer-content.ie .yui3-videoplayer-loading{margin-left:-13px;margin-top:-13px}.yui3-videoplayer-main{width:100%;position:relative}.yui3-videoplayer-startscreen-container{width:100%;height:100%;background-color:black;position:absolute;cursor:pointer}.yui3-videoplayer-startscreen-container.yui3-videoplayer-show{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-startscreen-container h3{font-size:1.3em;font-weight:bold;margin-bottom:5px}.yui3-videoplayer-startscreen-container h4{font-size:1.1em;font-weight:normal;margin-bottom:5px}.yui3-videoplayer-startscreen-desc{-webkit-font-smoothing:antialiased;font-weight:200}.small .yui3-videoplayer-startscreen-container p{font-size:82%}.medium .yui3-videoplayer-startscreen-container h3{font-size:100%}.small .yui3-videoplayer-startscreen-container h4{font-size:85%}.small .yui3-videoplayer-startscreen-container h3,.medium .yui3-videoplayer-startscreen-container h4{font-size:91%}.small .yui3-videoplayer-startscreen-container h3,.small .yui3-videoplayer-startscreen-container h4,.medium .yui3-videoplayer-startscreen-container h3,.medium .yui3-videoplayer-startscreen-container h4{margin-bottom:3px}.yui3-videoplayer-startscreen-container .yui3-videoplayer-startscreen-desc{font-size:85%;letter-spacing:.07em}.small .yui3-videoplayer-startscreen-container .yui3-videoplayer-startscreen-desc{display:none}.yui3-videoplayer-startscreen-bar-wrapper{position:absolute;top:0;left:0;height:100%;width:100%}.yui3-videoplayer-startscreen-bar{background-color:transparent;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.yui3-videoplayer-startscreen-container:hover .yui3-videoplayer-startscreen-bar{background-color:rgba(0,0,0,.4)}.yui3-videoplayer-content.legacy .yui3-videoplayer-startscreen-bar-wrapper{background:black}.yui3-videoplayer-transition{-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.yui3-videoplayer-startscreen-bar{position:absolute;width:100%;height:100%;padding:0;min-height:75px}.yui3-videoplayer-startscreen-bar-right{position:absolute;width:100%;bottom:0;padding:12px;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,transparent),color-stop(100%,rgba(0,0,0,0.7)));background-image:-webkit-linear-gradient(top,transparent,rgba(0,0,0,0.7));background-image:-moz-linear-gradient(top,transparent,rgba(0,0,0,0.7));background-image:-o-linear-gradient(top,transparent,rgba(0,0,0,0.7));background-image:linear-gradient(top,transparent,rgba(0,0,0,0.7));display:-webkit-box;display:-moz-box;display:box;-webkit-box-align:bottom;-moz-box-align:bottom;box-align:bottom;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.yui3-videoplayer-startscreen-image{height:auto;width:100%;display:block}.yui3-videoplayer-startscreen-title-wrapper{color:#fff;max-height:95px;overflow:hidden;text-shadow:#000 0 1px 3px}.yui3-videoplayer-content.small .yui3-videoplayer-startscreen-title-wrapper{min-height:35px;max-height:60px}.yui3-videoplayer-content.medium .yui3-videoplayer-startscreen-title-wrapper{max-height:70px}.yui3-videoplayer-startscreen-container:hover{background-color:rgba(0,0,0,.4)}.yui3-videoplayer-errorscreen-container{width:100%;position:relative;display:block;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);font-family:HelveticaNeue,Helvetica,Arial,sans-serif;height:100%;background-color:black}.yui3-videoplayer-errorscreen-container.show{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-content .yui3-videoplayer-errorscreen-wrapper{position:absolute;background-color:#000;display:block;vertical-align:middle;top:15%;color:#eee;margin-left:13%;margin-right:2%}.yui3-videoplayer-content .yui3-videoplayer-errorscreen-title{margin-top:10px;line-height:1.2;font-size:20px}.yui3-videoplayer-content.small .yui3-videoplayer-errorscreen-title{line-height:1;font-size:12px}.yui3-videoplayer-errorscreen-sub-desc-try{color:#5eb2e8;cursor:pointer;text-decoration:none}.yui3-videoplayer-content .yui3-videoplayer-errorscreen-type-code{text-align:center;color:#626262;font-size:12px;font-weight:lighter;font-family:HelveticaNeue,Helvetica,Arial,sans-serif;bottom:15px;right:22px;position:absolute;padding:3px;background-color:black}.yui3-videoplayer-content .yui3-videoplayer-errorscreen-download-flash-title{display:inline-block;*display:inline;zoom:1;font-size:16px;font-weight:normal}.yui3-videoplayer-content .yui3-videoplayer-errorscreen-download-flash-button{display:inline-block;*display:inline;zoom:1;margin-top:5%}.yui3-videoplayer-errorscreen-image{display:inline-block}.yui3-videoplayer-infoscreen-container{width:100%;height:100%;position:absolute;color:white;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.yui3-videoplayer-infoscreen-container.yui3-videoplayer-show{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-infoscreen-tint{width:100%;height:100%;position:absolute;background-color:black}.yui3-videoplayer-infoscreen-top{position:absolute;width:100%}.yui3-videoplayer-infoscreen-left{display:inline-block;margin-left:15px;zoom:1;*display:inline}.yui3-videoplayer-infoscreen-right{display:inline-block;vertical-align:top;margin-left:15px;zoom:1;*display:inline}.yui3-videoplayer-content .yui3-videoplayer-infoscreen-now-playing{margin-left:15px;margin-top:10px;padding-bottom:5px;font-weight:bold;font-size:.9em}.yui3-videoplayer-infoscreen-title{overflow:hidden}.yui3-videoplayer-content.small .yui3-videoplayer-infoscreen-title{font-size:.8em}.yui3-videoplayer-content .yui3-videoplayer-infoscreen-desc{font-size:.75em;color:#aaa;margin-top:5px;overflow:hidden}.yui3-videoplayer-content.small .yui3-videoplayer-infoscreen-desc{font-size:.6em}.yui3-videoplayer-infoscreen-image-link{position:relative;border:3px solid #61cbff;display:block;cursor:pointer}.yui3-videoplayer-infoscreen-image{position:relative;background-color:black;display:block}.yui3-videoplayer-infoscreen-share{margin-top:7px;border-spacing:3px;width:100%}.yui3-videoplayer-content.small .yui3-videoplayer-infoscreen-share{display:none}.yui3-videoplayer-infoscreen-share td{font-size:12px;white-space:pre;padding-top:3px}.yui3-videoplayer-infoscreen-link-text-box-td,.yui3-videoplayer-infoscreen-embed-text-box-td{width:100%;padding-left:3px}.yui3-videoplayer-infoscreen-link-text-box,.yui3-videoplayer-infoscreen-embed-text-box{background-color:black;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-bottom:1px solid #333;border-right:1px solid #333;border-top:0;border-left:0;padding:2px 5px;width:100%;color:#aaa;font-size:11px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box box-sizing:border-box;-webkit-transition:background-color .5s,color .5s;-moz-transition:background-color .5s,color .5s;-o-transition:background-color .5s,color .5s;transition:background-color .5s,color .5s}.yui3-videoplayer-infoscreen-link-text-box:hover,.yui3-videoplayer-infoscreen-embed-text-box:hover{background-color:#222;color:#ccc}.yui3-videoplayer-infoscreen-link-text-box::-moz-selection,.yui3-videoplayer-infoscreen-embed-text-box::-moz-selection{color:black!important;background:#6cc5fd!important}.yui3-videoplayer-infoscreen-link-text-box::selection,.yui3-videoplayer-infoscreen-embed-text-box::selection{color:black!important;background:#6cc5fd!important}.yui3-videoplayer-infoscreen-fb-link{margin-top:5px;display:inline-block;text-decoration:none}.yui3-videoplayer-content.small .yui3-videoplayer-infoscreen-fb-link{display:none}.yui3-videoplayer-infoscreen-fb-icon{display:inline-block}.yui3-videoplayer-content .yui3-videoplayer-infoscreen-fb-share{padding:0;margin-top:3px;vertical-align:top;display:inline-block;font-size:12px;color:white;margin-left:5px}.yui3-videoplayer-content.legacy .yui3-videoplayer-infoscreen-fb-share{background-color:black}.yui3-videoplayer-content .yui3-videoplayer-infoscreen-closed-captions-complaint-link{text-align:center;color:#20bcfa;font-size:12px;font-weight:bold;margin-top:3px;position:absolute;right:0;bottom:0;padding:5px;background-color:black;text-decoration:none}.yui3-videoplayer-content .yui3-videoplayer-detailscreen-container p{padding:0 15px}.yui3-videoplayer-content .yui3-videoplayer-detailscreen-profile-log-link{position:absolute;right:20px;bottom:8px;color:#aaa;font-size:12px;font-weight:bold;cursor:pointer;font-style:italic}.yui3-videoplayer-content .yui3-videoplayer-detailscreen-profile-log-link:hover{color:#aaa}.yui3-videoplayer-detailscreen-container{position:absolute;color:white;right:-300px;z-index:9998;top:5px;-webkit-transition:all .5s ease-out;-moz-transition:all .5s ease-out;-o-transition:all .5s ease-out;transition:all .5s ease-out;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.yui3-videoplayer-detailscreen-container.yui3-videoplayer-show{right:5px;-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-detailscreen-wrapper{width:inherit;position:relative;vertical-align:middle;text-align:right;font-family:monospace}.yui3-videoplayer-detailscreen-table-wrapper{display:inline-block;text-align:center;overflow-y:auto;overflow-x:hidden;height:200px;background:#000;background:rgba(0,0,0,0.6);border-radius:4px 0 0 4px;padding:0 10px 6px 10px;width:300px;border:2px solid white;position:relative;-webkit-box-shadow:0 0 8px 2px rgba(0,0,0,0.3);-moz-box-shadow:0 0 8px 2px rgba(0,0,0,0.3)}.yui3-videoplayer-content.legacy .yui3-videoplayer-detailscreen-table-wrapper{background:black}.yui3-videoplayer-detailscreen-details-table{float:right}.yui3-videoplayer-detailscreen-details-table td.title{font-size:10px;text-align:left;color:#61cbff;text-align:center;padding:5px 0 3px 0}.yui3-videoplayer-detailscreen-details-table td{border:0}.yui3-videoplayer-detailscreen-details-table td.label{color:white;font-size:10px;text-align:right;white-space:pre}.yui3-videoplayer-detailscreen-details-table td.value{color:#ccc;font-size:10px;text-align:left;padding-left:5px}.yui3-videoplayer-detailscreen-details-table-body canvas{cursor:pointer}.yui3-videoplayer-content .yui3-videoplayer-detailscreen-container .close{position:absolute;top:5px;right:20px;text-align:center}.yui3-videoplayer-hotkeyoverlay-title{font-size:1.2em;color:#6cc5fd}.yui3-videoplayer-hotkeyoverlay-container{position:absolute;width:100%;text-align:center;top:50%;margin-top:-110px;z-index:9999;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.yui3-videoplayer-hotkeyoverlay-container.yui3-videoplayer-show{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-hotkeyoverlay-table{margin-top:10px}.yui3-videoplayer-hotkeyoverlay-table td{padding:1px}.yui3-videoplayer-hotkeyoverlay-table td.label{color:#6cc5fd;padding-right:10px}.yui3-videoplayer-hotkeyoverlay-table td.value{font-style:italic}.yui3-videoplayer-hotkeyoverlay-table-wrapper{display:inline-block;background:#000;background:rgba(0,0,0,0.8);padding:30px;color:white;border-radius:4px;border:2px solid white;position:relative;-webkit-box-shadow:0 0 8px 2px rgba(0,0,0,0.3);-moz-box-shadow:0 0 8px 2px rgba(0,0,0,0.3);zoom:1;*display:inline}.yui3-videoplayer-content.legacy .yui3-videoplayer-hotkeyoverlay-table-wrapper{background:black}.yui3-videoplayer-endscreen-container{position:relative;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);background-color:#000;height:100%;font-family:HelveticaNeue,Helvetica,Arial,sans-serif;color:#fff;text-align:center;box-sizing:border-box}.yui3-videoplayer-endscreen-container.show{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-button,.yui3-videoplayer-endscreen-carousel-node .overlay .replay-button{left:50%;top:50%;position:absolute;margin-left:-20px;margin-top:-26px;background-color:transparent;border:0;cursor:pointer;outline:0}.yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-text,.yui3-videoplayer-endscreen-carousel-node .overlay .replay-text{font-size:13px;overflow:hidden;position:absolute;bottom:24px;left:82px;color:white}.yui3-videoplayer-content.small .yui3-videoplayer-endscreen-carousel-node .overlay .replay-text,.yui3-videoplayer-content.small .yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay .replay-text{bottom:10px;left:56px}.yui3-videoplayer-controls{font:12px Helvetica Neue,Helvetica,Arial,sans-serif;line-height:13px;color:#fff;font-weight:lighter;direction:ltr}.yui3-videoplayer-controls,.yui3-videoplayer-drag *{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yui3-videoplayer-controls.hide,.yui3-videoplayer-controls .disable{display:none}.yui3-videoplayer-controls .ie-gradient{position:absolute;bottom:-18px;width:100%;height:36px;z-index:1;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#99000000',GradientType=0)}.yui3-videoplayer-controls.show .ie-gradient{bottom:0}.yui3-videoplayer-controls .bar{position:absolute;bottom:-3px;width:100%;height:36px;z-index:2;-moz-opacity:0;opacity:0;background:-webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:-moz-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:-o-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:-ms-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);-webkit-transition:opacity .2s ease-in-out,bottom .2s ease-in-out;-moz-transition:opacity .2s ease-in-out,bottom .2s ease-in-out;-o-transition:opacity .2s ease-in-out,bottom .2s ease-in-out;transition:opacity .2s ease-in-out,bottom .2s ease-in-out}.yui3-videoplayer-controls.show .bar{bottom:0;-moz-opacity:1;opacity:1}.yui3-videoplayer-controls .item{height:36px;cursor:pointer}.yui3-videoplayer-controls button{border:0;padding:0;cursor:pointer;outline:0}.yui3-videoplayer-controls button.disable{cursor:default}.yui3-videoplayer-controls .main,.yui3-videoplayer-controls .aux{height:36px}.yui3-videoplayer-controls .main{position:absolute;bottom:0;left:0}.yui3-videoplayer-controls .play-pause{width:40px;*float:left}.yui3-videoplayer-controls .play-pause span{display:block;margin-top:-1px;margin-left:16px;*margin-left:4px}.yui3-videoplayer-controls .seek{position:relative;margin:0 44px;cursor:pointer;height:9px;border-top:13px solid transparent;border-bottom:14px solid transparent}.yui3-videoplayer-controls .seek.disable-drag{cursor:default}.yui3-videoplayer-controls .seek .slider,.yui3-videoplayer-controls .seek .buffer,.yui3-videoplayer-controls .seek .progress,.yui3-videoplayer-controls .seek .handle{height:7px;border-radius:4px}.yui3-videoplayer-controls .seek .slider{width:100%;position:relative;background:#000;background:rgba(0,0,0,0.4);*background-color:#000;filter:alpha(opacity=40);*filter:none;border:1px solid #555;border-color:rgba(255,255,255,0.1)}.yui3-videoplayer-controls .seek .buffer{width:0;background:#371f83;background:rgba(95,51,255,0.5);*background-color:#371f83;-webkit-transition:width .28s linear;-moz-transition:width .28s linear;-o-transition:width .28s linear;transition:width .28s linear}.yui3-videoplayer-controls .seek .progress{width:0;position:absolute;top:0;background:#5f33ff;-webkit-transition:width .28s linear;-moz-transition:width .28s linear;-o-transition:width .28s linear;transition:width .28s linear}.yui3-videoplayer-controls .seek .handle,.yui3-videoplayer-controls .seek.disable-drag .handle:hover{width:7px;height:7px;position:absolute;top:0;margin-left:-4px;margin-top:0;background:#fff;border:0 solid #fff;z-index:3;-webkit-transition:all .28s linear;-moz-transition:all .28s linear;-o-transition:all .28s linear;transition:all .28s linear}.yui3-videoplayer-controls .seek.drag .handle,.yui3-videoplayer-controls .seek .handle:hover{border-width:4px;border-radius:9px;background-color:#5f33ff;width:9px;height:9px;margin-left:-9px;margin-top:-5px}.yui3-videoplayer-controls .seek .time{position:absolute;top:-24px;padding:3px 0;text-align:center;font-size:14px;color:#fff;text-shadow:1px 1px 2px #000;background-color:#000;background-color:rgba(0,0,0,0.5);*background-color:#000;border-radius:5px;-moz-opacity:0;opacity:0;-webkit-transition:all .28s linear;-moz-transition:all .28s linear;-o-transition:all .28s linear;transition:all .28s linear}.yui3-videoplayer-controls .seek .time.show{-moz-opacity:1;opacity:1}.yui3-videoplayer-controls .seek.drag .progress,.yui3-videoplayer-controls .seek.drag .handle,.yui3-videoplayer-controls .seek.drag .time{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.yui3-videoplayer-controls .aux,.yui3-videoplayer-controls .settings{position:absolute;bottom:0;right:0}.yui3-videoplayer-controls .seek .vseek{display:none;position:absolute;top:-65px;width:112px;height:63px;z-index:2;background-color:#000;border:1px solid #424242;text-align:center}.yui3-videoplayer-controls .vseek .vseek-thumb{margin:auto;background-size:1120px 630px;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;-ms-interpolation-mode:nearest-neighbor}.yui3-videoplayer-controls .vseek .vseek-time{position:absolute;bottom:4px;left:56px;width:48px;padding:3px 0;text-align:center;font-size:14px;color:#fff;text-shadow:1px 1px 2px #000;background-color:#000;background-color:rgba(0,0,0,0.5);*background-color:#000;border-radius:5px}.yui3-videoplayer-controls .settings{width:32px}.yui3-videoplayer-controls .settings span{display:block;margin:11px 0 0 6px}.yui3-videoplayer-controls .settings-panel-box{position:absolute;right:1px;bottom:26px;z-index:3;padding:18px;background-color:rgba(0,0,0,0)}.yui3-videoplayer-controls .settings-panel{padding:8px 20px;font-size:13px;background-color:#000;background-color:rgba(0,0,0,0.65);*background-color:#000;border:1px solid #555;border-color:rgba(255,255,255,0.1);border-radius:5px;z-index:3}.yui3-videoplayer-controls .settings-panel table{border-collapse:separate!important;border-spacing:0!important;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;-o-hyphens:none;hyphens:none}.yui3-videoplayer-controls .settings-panel th{font-weight:lighter;text-align:right;padding:6px 10px 6px 0;cursor:default;border:0}.yui3-videoplayer-controls .settings-panel td{min-width:70px;border:0;text-align:left}.yui3-videoplayer-controls .settings-panel .on{cursor:default}.yui3-videoplayer-controls .settings-panel button.text{margin-right:3px;padding:3px 1px;background:0;color:#ccc}.yui3-videoplayer-controls .settings-panel button.text:hover{color:#fff}.yui3-videoplayer-controls .settings-panel button.text.on{color:#5f33ff}.yui3-videoplayer-controls .settings-panel .fb-icon{float:left;cursor:pointer}.yui3-videoplayer-controls .settings-panel .embed-button{float:left;width:60px;height:19px;margin-left:8px;background:#fff;cursor:pointer}.yui3-videoplayer-controls .settings-panel .embed-button:hover{background:#e2e2e6}.yui3-videoplayer-controls .settings-panel .embed-chainlink-button{float:left;margin:2px 10px 0 8px;background-color:transparent;cursor:pointer}.yui3-videoplayer-controls .settings-panel .embed-link tr{margin-left:20px;padding:4px 0 2px 0}.yui3-videoplayer-controls .settings-panel .embed-link th{border-top:1px solid #5a5958;border-left:1px solid #5a5958;padding:2px 10px 2px 0;font-size:11px}.yui3-videoplayer-controls .settings-panel .embed-link td{border-top:1px solid #5a5958;border-right:1px solid #5a5958}.yui3-videoplayer-controls .settings-panel .embed-link-text{float:left;border:0;background-color:transparent;color:#fff;width:165px;font-size:11px;margin-top:2px}.yui3-videoplayer-controls .settings-panel .embed-code tr{margin-left:20px;padding:4px 0 2px 0}.yui3-videoplayer-controls .settings-panel .embed-code th{border-left:1px solid #5a5958;border-bottom:1px solid #5a5958;padding:2px 10px 4px 0;font-size:11px}.yui3-videoplayer-controls .settings-panel .embed-code td{border-bottom:1px solid #5a5958;border-right:1px solid #5a5958}.yui3-videoplayer-controls .settings-panel .embed-code-text{float:left;border:0;background-color:transparent;color:#fff;width:165px;font-size:11px}.yui3-videoplayer-controls .settings-panel .embed-code .embed-error{min-width:280px;opacity:2;background-color:transparent}.yui3-videoplayer-controls .settings-panel .embed-error-text{float:left;border:0;background:#686868;color:#ccc;font-size:11px;padding-left:3px;width:98%}.yui3-videoplayer-controls .settings-panel input{padding:0;border-radius:0}.embed-link-text::-moz-selection,.embed-code-text::-moz-selection{background:#686868!important}.embed-link-text::selection,.embed-link-text::selection{background:#686868!important}.yui3-videoplayer-controls .settings-panel .cc-feedback{margin-left:23px;cursor:pointer}.yui3-videoplayer-controls .size button{display:inline;vertical-align:middle}.yui3-videoplayer-controls .size .small{background:0;border:2px solid #ccc;width:18px;height:13px;margin:4px 10px 3px 3px;*cursor:pointer}.yui3-videoplayer-controls .size .small:hover{border-color:#fff;*background:0}.yui3-videoplayer-controls .size .small.on,.yui3-videoplayer-controls .size .small.on:hover{border-color:#5f33ff;cursor:default}.yui3-videoplayer-controls .size .full{margin-top:1px}.yui3-videoplayer-controls .size .full.on,.yui3-videoplayer-controls .size .full.on:hover{cursor:default}.yui3-videoplayer-controls .volume .mute{float:left;width:20px;height:20px;margin-top:2px;background:0;cursor:pointer}.yui3-videoplayer-controls .volume .mute span{display:block;margin-left:4px}.yui3-videoplayer-controls .volume .bars{float:left;width:42px;margin-top:7px;padding-left:3px;cursor:pointer}.yui3-videoplayer-controls .volume .bars div{width:4px;height:10px;float:left;margin-right:3px;background:#ccc;cursor:pointer}.yui3-videoplayer-controls .volume .bars.drag div:hover{background:#ccc}.yui3-videoplayer-controls .volume .bars div:hover{background:#fff}.yui3-videoplayer-controls .volume .bars:not(.drag) div:hover{-webkit-transition:background-color .3s ease-in-out;-moz-transition:background-color .3s ease-in-out;-o-transition:background-color .3s ease-in-out;transition:background-color .3s ease-in-out}.yui3-videoplayer-controls .volume .bars div.on{background:#5f33ff}.yui3-videoplayer-controls .volume .bars:hover div.on{*background-color:#5f33ff}.yui3-videoplayer-main .accessible-controls{position:absolute;top:0;left:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.yui3-videoplayer-lightbox{overflow:hidden!important}.yui3-videoplayer-lightbox .yui3-videoplayer-content{position:fixed;top:0;left:0;width:100%!important;height:100%!important;z-index:2147483647}.yui3-videoplayer-lightbox-ancestor{z-index:2147483647!important}.yui3-videoplayer-slug{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:lighter;font-size:13px;color:white;position:absolute;top:14px;left:24px;cursor:default;z-index:1;display:none}.yui3-videoplayer-content .close{position:absolute;top:5px;right:5px;font-size:10px;color:#333;cursor:pointer;font-family:Arial;background-color:white;border-radius:8px;width:17px;height:17px;vertical-align:middle;font-weight:bold;text-decoration:none;padding:0;border:0}.yui3-videoplayer-content .close:hover{background-color:#61cbff;color:black}.yui3-videoplayer-carousel-viewport li.load .metadata{bottom:0;*bottom:0;*left:0;width:100%;position:absolute;height:35px;background:-webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:-moz-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:-o-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:-ms-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);background:linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,0.6) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#99000000',GradientType=0)}.yui3-videoplayer-carousel-viewport .metadata .title{font-size:13px;line-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;margin:16px 6px;*filter:alpha(opacity=100)}.overlay .overlay-background{filter:alpha(opacity=40);background:#000;width:100%;height:100%}.yui3-videoplayer-carousel-viewport-item .overlay .play-button{position:absolute;border:0;*border:0;cursor:pointer;outline:0;background-color:transparent;*background-color:transparent;left:50%;top:50%}.desktop .yui3-videoplayer-carousel-viewport-item .overlay .play-button{margin:-26px 0 0 -16px}.mobile .yui3-videoplayer-carousel-viewport-item .overlay .play-button{margin:-12px 0 0 -16px}.yui3-videoplayer-carousel-viewport li.load .overlay{background-color:rgba(0,0,0,0.4);width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.desktop .yui3-videoplayer-carousel-viewport li.load .overlay{-moz-opacity:0;opacity:0;filter:alpha(opacity=0);-moz-transition:opacity .2s ease-in;-webkit-transition:opacity .2s ease-in;-o-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.mobile .yui3-videoplayer-carousel-viewport li.load,.desktop .yui3-videoplayer-carousel-viewport li.load:hover .overlay{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-carousel-viewport-item .overlay .play-video-text{font-size:13px;overflow:hidden;position:absolute;bottom:44px;left:74px;color:#fff;*filter:alpha(opacity=100)}.yui3-videoplayer-content.small .yui3-videoplayer-carousel-viewport-item .overlay .play-video-text{bottom:30px;left:52px}.yui3-videoplayer-carousel-container{position:relative;height:inherit;background:0;overflow:hidden;padding:0;height:100%;background:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.yui3-videoplayer-carousel-viewport{position:relative;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;*width:9999px;height:100%;margin:0 auto}.yui3-videoplayer-carousel-viewport.touch,.yui3-videoplayer-carousel-viewport.touch li{-webkit-transition:none;-moz-transition:none;-o-transition:color 0 ease-in;transition:none;-webkit-user-select:none}.yui3-videoplayer-content.medium .yui3-videoplayer-carousel-viewport,.yui3-videoplayer-content.small .yui3-videoplayer-carousel-viewport{margin-left:20px}.yui3-videoplayer-carousel-container.yui3-videoplayer-enabled .yui3-videoplayer-carousel-viewport{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-carousel-viewport li{display:inline-block;zoom:1;*display:inline;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .3s ease-in-out;-moz-opacity:.60;opacity:.60;filter:alpha(opacity=60);position:relative}.yui3-videoplayer-carousel-container li.load,.yui3-videoplayer-carousel-viewport li.load:hover{cursor:pointer;-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-carousel-viewport img{display:block;filter:alpha(opacity=100)}.card-m .yui3-videoplayer-content.large img,.card-m .yui3-videoplayer-content.medium img{width:190px;height:107px}.card-m .yui3-videoplayer-content.small img{width:125px;height:71px}.yui3-videoplayer-carousel-viewport-item-play{position:absolute;left:0;bottom:0}.yui3-videoplayer-carousel-title{color:#34c4ff;font-weight:bold;margin-left:2%;width:96%;text-align:center;position:absolute;bottom:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.yui3-videoplayer-carousel-title.yui3-videoplayer-show{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-content.medium .yui3-videoplayer-carousel-title{font-size:12px;margin-top:2px}.yui3-videoplayer-content.small .yui3-videoplayer-carousel-title{font-size:12px;margin-top:2px}.yui3-videoplayer-carousel-viewport-item-indicator{position:absolute;background-color:#21beff;padding:5px;color:white;top:0;left:0;font-size:12px;font-weight:bold;*filter:alpha(opacity=100)}.yui3-videoplayer-content.medium .yui3-videoplayer-carousel-viewport-item-indicator,.yui3-videoplayer-content.small .yui3-videoplayer-carousel-viewport-item-indicator{font-size:8px}.yui3-videoplayer-carousel-container li,.yui3-videoplayer-carousel-container li:hover{-moz-opacity:0;opacity:0;filter:alpha(opacity=0);float:left;position:absolute;overflow:hidden;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.yui3-videoplayer-carousel-container .yui3-videoplayer-carousel-viewport-item-img{width:190px;height:107px}.yui3-videoplayer-carousel-container .yui3-videoplayer-arrow-container{position:absolute;top:0;height:inherit;width:30px}.yui3-videoplayer-content .yui3-videoplayer-left-enabled .yui3-videoplayer-carousel-left,.yui3-videoplayer-content .yui3-videoplayer-right-enabled .yui3-videoplayer-carousel-right{-moz-opacity:1;opacity:1;filter:alpha(opacity=100);display:block;*zoom:1}.yui3-videoplayer-content.medium .yui3-videoplayer-carousel-container .yui3-videoplayer-arrow-container,.yui3-videoplayer-content.small .yui3-videoplayer-carousel-container .yui3-videoplayer-arrow-container{height:100px}.yui3-videoplayer-carousel-container .yui3-videoplayer-arrow{display:inline-block;position:absolute;margin-top:-30px;margin-left:-10px;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);top:50%;display:none;cursor:pointer}.yui3-videoplayer-content .yui3-videoplayer-carousel-left{margin-left:0}.yui3-videoplayer-carousel-container .yui3-videoplayer-carousel-left-container{left:0}.yui3-videoplayer-carousel-container .yui3-videoplayer-carousel-right-container{right:0}.yui3-videoplayer-endscreen-container .yui3-videoplayer-endscreen-carousel-node,.yui3-videoplayer-endscreen-container .yui3-videoplayer-endscreen-blank-node,.yui3-videoplayer-endscreen-container .yui3-videoplayer-endscreen-watched-center-wrapper{width:100%;position:relative;height:100%;z-index:2}.yui3-videoplayer-endscreen-container .yui3-videoplayer-endscreen-watched-wrapper{height:100%;margin:0 auto;width:200px;text-align:left}.yui3-videoplayer-endscreen-container .yui3-videoplayer-endscreen-watched{position:relative;top:50%}.yui3-videoplayer-endscreen-watched img{width:208px;height:117px}.yui3-videoplayer-endscreen-watched img:hover{cursor:pointer}.yui3-videoplayer-endscreen-container .yui3-videoplayer-arrow-container{background:0;bottom:0;margin:auto;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.yui3-videoplayer-endscreen-carousel-node p{margin:0;text-align:left}.yui3-videoplayer-endscreen-carousel-node .yui3-videoplayer-arrow-container .yui3-videoplayer-carousel-left{*margin:-25px 0 0 -15px}.yui3-videoplayer-endscreen-carousel-node .yui3-videoplayer-arrow-container .yui3-videoplayer-carousel-right{*margin:-25px 0 0 -25px}.yui3-videoplayer-content.large .yui3-videoplayer-endscreen-carousel-node li,.yui3-videoplayer-content.medium .yui3-videoplayer-endscreen-carousel-node li{width:208px;height:117px}.yui3-videoplayer-content.small .yui3-videoplayer-endscreen-carousel-node li{width:157px;height:88px}.yui3-videoplayer-endscreen-watched-wrapper .yui3-videoplayer-endscreen-watched .overlay{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent;background-color:rgba(0,0,0,0.4)}.desktop .yui3-videoplayer-endscreen-carousel-node li.replay .overlay{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-errorscreen-container .yui3-videoplayer-errorscreen-videos-node,.yui3-videoplayer-errorscreen-container .yui3-videoplayer-errorscreen-flash-download-node{width:100%;position:absolute;height:120px;z-index:2;margin:auto auto;bottom:15%}.yui3-videoplayer-errorscreen-container .yui3-videoplayer-errorscreen-flash-download-node a{color:#5eb2e8;text-decoration:none}.yui3-videoplayer-errorscreen-container .yui3-videoplayer-errorscreen-flash-download-node{position:absolute;background-color:#000;display:block;vertical-align:middle;font-size:16px;color:#5eb2e8;margin-left:13%;width:100%}.yui3-videoplayer-errorscreen-download-flash{cursor:pointer;position:relative;z-index:3;display:inline-block;zoom:1;*display:inline}.yui3-videoplayer-errorscreen-container .yui3-videoplayer-arrow-container{background:0;bottom:0;margin:auto;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.yui3-videoplayer-errorscreen-videos-node p{margin:0;text-align:left}.yui3-videoplayer-errorscreen-videos-node .yui3-videoplayer-arrow-container .yui3-videoplayer-carousel-left{*margin:-25px 0 0 -15px}.yui3-videoplayer-errorscreen-videos-node .yui3-videoplayer-arrow-container .yui3-videoplayer-carousel-right{*margin:-25px 0 0 -25px}.yui3-videoplayer-content.large .yui3-videoplayer-errorscreen-videos-node li,.yui3-videoplayer-content.medium .yui3-videoplayer-errorscreen-videos-node li{width:208px;height:117px}.yui3-videoplayer-content.small .yui3-videoplayer-errorscreen-container .yui3-videoplayer-errorscreen-videos-node{top:25%}.yui3-videoplayer-content.small .yui3-videoplayer-endscreen-carousel-node li{width:157px;height:88px}.yui3-videoplayer-content.large .yui3-videoplayer-errorscreen-wrapper{font-size:20px}.yui3-videoplayer-content.medium .yui3-videoplayer-errorscreen-wrapper{font-size:18px;margin-left:10%;margin-right:1%}.yui3-videoplayer-content.small .yui3-videoplayer-errorscreen-wrapper{position:absolute;background-color:#000;display:block;vertical-align:middle;top:15%;font-family:HelveticaNeue,Helvetica,Arial,sans-serif;color:#eee;font-size:13px;margin-left:8%;margin-right:2%}.yui3-videoplayer-content .yui3-videoplayer-playlist-carousel{margin-left:auto;margin-right:auto}.yui3-videoplayer-content .yui3-videoplayer-playlist-carousel .yui3-videoplayer-carousel-container,.yui3-videoplayer-content .yui3-videoplayer-playlist-carousel h4{background-color:#000}.yui3-videoplayer-content .yui3-videoplayer-playlist-carousel .yui3-videoplayer-carousel-container li{margin:10px 0}.yui3-videoplayer-content .yui3-videoplayer-playlist-carousel .yui3-videoplayer-carousel-container li.load{-moz-opacity:.6;opacity:.6;filter:alpha(opacity=60)}.yui3-videoplayer-content .yui3-videoplayer-playlist-carousel .yui3-videoplayer-carousel-container li.load:hover{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-closedcaptions{opacity:0;-moz-opacity:0;filter:alpha(opacity=0);z-index:0;width:100%;height:24%;position:absolute;bottom:0}.yui3-videoplayer-closedcaptions-text{color:#fff;font-size:20px;text-align:center;margin:0 40px 0 40px}.partner-bar-clearfix:before,.partner-bar-clearfix:after{content:'.';display:block;visibility:hidden;height:0;font-size:0;line-height:0}.yui3-videoplayer-partner-bar{position:relative;width:100%;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background:#001633;background:-moz-linear-gradient(left,#001633 0,#103359 19%,#011e3c 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,#001633),color-stop(19%,#103359),color-stop(100%,#011e3c));background:-webkit-linear-gradient(left,#001633 0,#103359 19%,#011e3c 100%);background:-o-linear-gradient(left,#001633 0,#103359 19%,#011e3c 100%);background:-ms-linear-gradient(left,#001633 0,#103359 19%,#011e3c 100%);background:linear-gradient(to right,#001633 0,#103359 19%,#011e3c 100%);*background:#001633;white-space:nowrap;font-size:0;height:94px}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-branding{position:relative;margin:10px auto;top:10;left:0;text-align:center;vertical-align:middle;display:inline-block;*display:inline;zoom:1;width:20%}.yui3-videoplayer-partner-bar .branding-logo{display:block;text-indent:100%;overflow:hidden;white-space:nowrap;vertical-align:middle;margin:0 auto}.yui3-videoplayer-partner-bar .branding-text{color:white;font-weight:300;font-size:9px;display:block;padding-top:4px}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos{vertical-align:middle;width:80%;display:inline-block;*display:inline;zoom:1}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos ul{list-style:none;white-space:nowrap;max-width:100%;overflow:hidden;font-size:0;padding:7px 2px 7px 0;position:relative}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos ul li{display:inline-block;*display:inline;zoom:1;position:relative;width:24%;margin-right:1%;cursor:pointer}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .img-wrap-16x9{padding-bottom:56.25%;height:0;position:relative;overflow:hidden}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos img{width:100%;height:auto;display:block}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .icon-overlay{font-size:13px;height:100%;width:100%;position:absolute;left:0;top:0;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);-moz-transition:opacity .2s ease-in;-webkit-transition:opacity .2s ease-in;-o-transition:opacity .2s ease-in;transition:opacity .2s ease-in;background-color:rgba(0,0,0,0.4)}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .icon-overlay:hover{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .icon-overlay .play-text{font-family:HelveticaNeue,Helvetica,Arial,sans-serif;color:#FFF;font-size:12px;font-weight:300;position:absolute;text-align:left;bottom:6px;margin-left:30px}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .icon-overlay .title-text{font-family:HelveticaNeue,Helvetica,Arial,sans-serif;font-size:12px;line-height:13px;height:26px;overflow:hidden;white-space:normal;text-overflow:ellipsis;position:absolute;color:#fff;margin-left:5px;margin-top:5px}.yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .play-icon{border-radius:2px;background-color:#324fe1;cursor:pointer;position:absolute;bottom:5px;left:5px;width:20px;height:14px;background-image:url('http://l.yimg.com/rx/builds/4.1.15.1390360235/assets/play.png');background-image:url('http://l.yimg.com/rx/builds/4.1.15.1390360235/assets/play-white.svg'),none;background-repeat:no-repeat;background-size:100% 100%;text-indent:100%;overflow:hidden}.ssl.yui3-videoplayer-content .yui3-videoplayer-partner-bar .yui3-videoplayer-partner-videos .play-icon{background-image:url('https://s.yimg.com/rx/builds/4.1.15.1390360235/assets/play.png');background-image:url('https://s.yimg.com/rx/builds/4.1.15.1390360235/assets/play-white.svg'),none}.yui3-videoplayer-opacity-0{-moz-opacity:0;opacity:0;filter:alpha(opacity=0)}.yui3-videoplayer-opacity-70{-moz-opacity:.7;opacity:.7;filter:alpha(opacity=70)}.yui3-videoplayer-opacity-80{-moz-opacity:.8;opacity:.8;filter:alpha(opacity=80)}.yui3-videoplayer-opacity-100{-moz-opacity:1;opacity:1;filter:alpha(opacity=100)}.ssl.yui3-videoplayer-content .yui3-videoplayer-transparent{background:url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');*background:url('https://s.yimg.com/rx/builds/4.1.15.1390360235/assets/transparent.gif')}.yui3-videoplayer-transparent{background:url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');*background:url('http://l.yimg.com/rx/builds/4.1.15.1390360235/assets/transparent.gif')}";
r.NAME="View";r.NS="view";r.ATTRS={screenSize:{value:"LARGE"},activeScreen:{value:undefined},activeOverlay:{value:undefined},state:{value:"INIT"},_skipFlashCheck:{value:false},startScreenCreated:{value:false}};r.PLAYLIST_CAROUSEL_DIMENSIONS={LARGE:{HEIGHT:150,IMAGE_HEIGHT:105,HORIZONTAL_SPACING:20,VERTICAL_SPACING:20,MARGIN:3},MEDIUM:{HEIGHT:100,IMAGE_HEIGHT:63,HORIZONTAL_SPACING:10,VERTICAL_SPACING:10,MARGIN:3},SMALL:{HEIGHT:100,IMAGE_HEIGHT:63,HORIZONTAL_SPACING:10,VERTICAL_SPACING:10,MARGIN:3}};r.FACEBOOK_URL_TEMPLATE="http://www.facebook.com/sharer.php?t={title}&u={shareUrl}";r.CC_COMPLAINTS_URL_TEMPLATE="http://info.yahoo.com/legal/{region}/yahoo/cc/{lang}/";r.KEYS={SHIFT:16,CTRL:17,OPTION:18,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,M:77,QUESTION:191,ESC:27};var U=r.KEYS;r.GOLDEN_RATIO=16/9;r.SMALL_MAX_WIDTH=495;r.MEDIUM_MAX_WIDTH=729;f.extend(r,f.Base,{initializer:function(ak){var Y,am,al;this._model=ak.model;this._controller=ak.controller;Y=this._model.get("version");am="yvpstyle_"+Y;al=f.one("head").getById(am);if(!al){al=f.Node.create("");f.one("head").append(al);}this.controls=new F({model:this._model,controller:this._controller,view:this});},getController:function(){return this._controller;},_createRenderers:function(){this.createVideoRenderer(this.videoBox);if(this._model.get("error")!==null){return false;}return true;},render:function(an){this._node=an;this.contentBox=this.createNode("div","content");this.main=this.createNode("div","main");this.controlsContent=this.createNode("div","controls");this.loading=this.createNode("div","loading");this.slug=this.createNode("div","slug");this.loading.setStyle("display","none");if(this._controller.isHtmlCCSupported()){this.closedCaptions=this.createNode("div","closedcaptions");this.main.append(this.closedCaptions);}this.main.append(this.controlsContent);this.main.append(this.loading);this.main.append(this.slug);this._addContentClasses();var al=this,ak=al._model,Y=al.main,ao=ak.get("carousel")?al.getCarouselPlayerHeight():"100%",am=al.createNode("div","video"),ap;Y.setStyle("height",ao);al.contentBox.append(al.main);an.appendChild(al.contentBox);al._model.set("height",al.contentBox.get("offsetHeight"));al._model.set("width",al.contentBox.get("offsetWidth"));al._model.set("adClientSize",{width:al.contentBox.get("offsetWidth"),height:al.contentBox.get("offsetHeight")});am.setStyle("opacity",0.001);Y.appendChild(am);al.videoBox=am;ap=ak.get("playerState");if(ap===Z.ERROR){al._displayErrorScreen();return;}else{if(!ak.get("autoplay")&&ap===Z.LOADED){this._handleLoadedState();}}setTimeout(function(){al.controls.render(al.controlsContent);al._delayCreateRenderers();},5);al._bindUI();f.later(1000,this,"_delaySpinner");},getCarouselPlayerHeight:function(){return(this._node.get("offsetHeight")-r.PLAYLIST_CAROUSEL_DIMENSIONS[this.get("screenSize")].HEIGHT).toString()+"px";},_unHideCarousel:function(){var Y;Y=this.contentBox;if(Y.one(".yui3-videoplayer-carousel-container")&&Y.one(".yui3-videoplayer-playlist-carousel").getStyle("display")==="none"){Y.one(".yui3-videoplayer-playlist-carousel").setStyle("display","block");Y.one(".yui3-videoplayer-main").setStyle("height",this.getCarouselPlayerHeight());}},_delaySpinner:function(){var Y=this._model,am=Y.get("playerState"),al=["begin","initialized","loading","loaded","prepared","preparing","prestarted"],ak=Y.get("autoplay");if(f.Array.indexOf(al,am)>=0){if(ak||am!=="loaded"){Y.set("isSpinnerShown",true);}else{if(Y.get("isSpinnerShown")===true){Y.set("isSpinnerShown",false);}}}},_delayCreateRenderers:function(){if(this._createRenderers()){this.set("state","RENDERED");}},_addContentClasses:function(){var an=this._node,ak=this.contentBox,Y=this._model,ao=ak.getAttribute("class"),ap=f.UA.ie,am=an.get("offsetWidth"),aq=an.get("offsetHeight"),al;if(am0&&ap<8){ao+=" legacy";}if(ap===6){ao+=" ie6";}else{if(ap===7){ao+=" ie7";}}if(ap>0){ao+=" ie";}if(!Y.get("ybang")){ao+=" noybang";}ak.setAttribute("class",ao);},_fireAssetsRequestComplete:function(){if(this.get("state")==="LOADING"){f.fire("VideoPlayer.assetsRequestComplete");}},_hideVideoTag:function(){this._node.one(".yui3-videoplayer-video").setStyle("marginTop","-2000px");},_showVideoTag:function(){this._node.one(".yui3-videoplayer-video").setStyle("marginTop","0px");},createVideoRenderer:function(am){var an=this._controller,ak=this._model,al=an.getRendererClass(ak.get("rendererType")),Y=new al({model:ak,controller:an,skipFlashCheck:this.get("_skipFlashCheck")});an.registerRenderer(Y);Y.render(am);this.videoRenderer=Y;ak.set("rendererReady",true);},_resizeAndPositionImage:function(Y,ak){var am=Y.get("src"),al=new Image();al.onload=function(){var ar=al.width,an=al.height,aq=ar/an,ap=ak.get("offsetWidth"),at=ak.get("offsetHeight"),ao=ap/at;if(aq>=ao){if(an>at){an=at;ar=at*aq;}}else{if(ar>ap){ar=ap;an=ap/aq;}}Y.set("width",ar);Y.set("height",an);};al.src=am;},unrenderPlugin:function(){this.videoBox.clear();},onPluginInstanceChange:function(Y){if(Y.oldVal){this.unrenderPlugin(Y.oldVal);}if(Y.newVal){this.renderPlugin(Y.newVal);}},_bindUI:function(){var Y=this._model,ak=this,al=["VideoPlayer.Carousel.navigationClick","VideoPlayer.Carousel.touch","VideoPlayer.Carousel.partnerLogoClick","VideoPlayer.Carousel.partnerBarView","VideoPlayer.ErrorScreen.flashDownloadClick","VideoPlayer.ErrorScreen.tryAgainLink"];this._bindKeys();Y.after("partnerCarouselItemsChange",function(am){ak._removePartnerBar();if(am.newVal!==null){ak._renderPartnerBar();}},ak);Y.after("isSpinnerShownChange",function(am){if(am.newVal===true){ak.loading.setStyle("display","block");}else{ak.loading.setStyle("display","none");
}});Y.after("yvapStateChange",function(ao){var an=ak.slug,am;switch(ao.newVal){case"adProgress":ak.videoBox.setStyle("opacity",1);break;case"adStart":if(Y.get("rendererType")==="html"){ak.videoBox.setStyle("opacity",1);}ak.controlsContent.removeClass("hide");am=Y.get("yvapData");if(am&&am.adslug===true){an.set("innerHTML",ak._controller.getStrings().ADVERTISEMENT);an.setStyle("display","block");}break;case"adError":case"adComplete":an.set("innerHTML","");an.setStyle("display","none");break;}},this);Y.after("isPlayingChange",function(am){if(am.newVal===true){ak.videoBox.setStyle("opacity",1);ak.controlsContent.removeClass("hide");}});Y.before("playerStateChange",function(am){ak._playerStateChange(am);});Y.after("playerStateChange",function(am){if(am.newVal==="playbackComplete"){ak._handlePlaybackCompleteStateChange(am);}});Y.after("fullscreenChange",function(am){if(am.newVal){ak.set("activeScreen",undefined);}});Y.before("activeScreenStrChange",function(am){ak._activeScreenStrChange(am);});Y.after("showClosedCaptionsChange",function(am){ak._displayCaptionsChange(am.newVal);});this.after("activeScreenChange",function(am){if(undefined===am.newVal){Y.set("activeScreenStr",undefined,{src:"internal"});}if(am.prevVal!==undefined){am.prevVal.destructor();}});this.after("activeOverlayChange",function(am){if(am.prevVal!==undefined){am.prevVal.destructor();}if(am.newVal!==undefined){am.newVal.render(ak.main);}});f.Global.on("VideoPlayer.Carousel.thumbnailClick",function(ao){var an,am=ao.index;switch(ao.plType){case"endScreen":an=(am===0)?"es-rpl":"es-vid-"+parseInt(am+1,10);break;case"errorScreen":an="err-rel-vid-"+parseInt(am+1,10);break;default:an="pc-vid-"+parseInt(am+1,10);break;}Y.fire("uiInteract",{source:an});if(Y.get("rendererType")==="html"){ak._showVideoTag();}if(ak._model.get("carousel")&&an==="es-rpl"){am=ak._model.get("playlistPosition");ak._controller.playIndex(am,ao.plType,an);ak._unHideCarousel();}else{ak._controller.playIndex(am,ao.plType,an);}});f.Global.on(al,function(am){Y.fire("uiInteract",{source:am});});},_activeScreenStrChange:function(an){var al=this._model,ao=this._controller,am=this,ak,Y;if(an.src==="internal"){return;}ak=am._node.one(".yui3-videoplayer-content");switch(an.newVal){case"info":if(al.get("infoscreen")){if(!am.prevPlayerState){am.prevPlayerState=al.get("playerState");}am._controller.pause();Y=new W({model:al,view:am});if(ao._renderer){ao._renderer.setFullscreen(false);}Y.render(am.main);am.set("activeScreen",Y);}break;case undefined:if(am.prevPlayerState!=="paused"){am._controller.play();}am.prevPlayerState=undefined;am.set("activeScreen",undefined);break;default:break;}},_displayErrorScreen:function(){var Y=this._model,ak;if(this._node&&Y.get("errorscreen")){ak=new w({model:Y,view:this});this.slug.setStyle("display","none");ak.render(this.main);this.set("activeScreen",ak);if(Y.get("rendererType")==="html"){console.log("calling hideVideo");this._hideVideoTag();}this.controlsContent.addClass("hide");}},_handleLoadedState:function(){var ak=this._model,Y=this.main;if(!ak.get("autoplay")&&!this.startScreen&&ak.get("startscreen")){this.startScreen=new a({model:ak,view:this});this.startScreen.render(Y);this.set("activeScreen",this.startScreen);this.set("startScreenCreated",true);}if(ak.get("carousel")&&!this.carousel){this.renderPlaylistCarousel();}if(ak.get("partnerCarouselItems")!==null&&!this.partnerCarousel){this.renderPartnerCarousel();}},renderPlaylistCarousel:function(){var Y=this._model.get("playlist").get("mediaItems").toArray(),al=this.get("screenSize"),ak=Math.floor(r.PLAYLIST_CAROUSEL_DIMENSIONS[al].IMAGE_HEIGHT*r.GOLDEN_RATIO),an=this.createNode("div","playlist-carousel"),am;an.setStyle("width",this.contentBox.get("offsetWidth"));an.setStyle("height",r.PLAYLIST_CAROUSEL_DIMENSIONS[al].HEIGHT-20);this.contentBox.append(an);this.carousel=new g({view:this,mediaItems:Y,pltype:"default",showMetadata:false,showNavigation:true,dimensions:{itemWidth:ak,itemHeight:r.PLAYLIST_CAROUSEL_DIMENSIONS[al].IMAGE_HEIGHT,imageWidth:ak,imageHeight:r.PLAYLIST_CAROUSEL_DIMENSIONS[al].IMAGE_HEIGHT,horizontalSpacing:r.PLAYLIST_CAROUSEL_DIMENSIONS[al].HORIZONTAL_SPACING,verticalSpacing:r.PLAYLIST_CAROUSEL_DIMENSIONS[al].VERTICAL_SPACING,carouselMargin:r.PLAYLIST_CAROUSEL_DIMENSIONS[al].MARGIN}});this.carousel.render(an);am=this.createNode("h4","title","carousel");an.setStyle("height",r.PLAYLIST_CAROUSEL_DIMENSIONS[al].HEIGHT+20);this.contentBox.one(".yui3-videoplayer-carousel-viewport").delegate("mouseout",function(){am.removeClass("yui3-videoplayer-show");},"li");this.contentBox.append(am);this._model.fire("uiInteract",{source:"pc-view"});},_renderPartnerBar:function(){var av=this,aw=av._controller.getStrings(),ap=av._model,ao=ap.get("partnerCarouselItems"),ax="partner",at=ao.toArray(),am=av.createNode("div","partner-branding"),al=av.createNode("div","partner-videos"),aq=f.Node.create(''),ar="",ak=null,au,Y,an;f.publish("VideoPlayer.Carousel.partnerLogoClick",{broadcast:2});f.publish("VideoPlayer.Carousel.partnerBarView",{broadcast:2});f.each(["#videoPlayerContainer",".mod-player","#player"],function(az){var ay=f.Node.one(az);if(ay!==null){ak=ay;return;}},av);if(ak===null){return;}av.partnerBar=av.createNode("div","partner-bar");Y=ap.get("site")||"";an=ap.get("expName")||"";ar='nfl ';ar+='More NFL Videos ';am.set("innerHTML",ar);am.on("click",function(){f.Global.fire("VideoPlayer.Carousel.partnerLogoClick","partner-logo");});av.partnerBar.append(am);f.each(at,function(aI,aD){var aF=f.Node.create,az=aI.images.thumbnail||"",aJ,aB,aL,aG,aE,aH,aA,ay,aC,aK;aJ=aF(" ");aA=aF("
").setAttribute("class","img-wrap-16x9");aC=aF(" ").setAttribute("src",az);aA.append(aC);aJ.append(aA);aH=aF("
").setAttribute("class","icon-overlay");aB=aF("
").setAttribute("class","title");
aL=aF("
").setAttribute("class","title-text").set("innerHTML",aI.title);aB.append(aL);aH.append(aB);ay=aF(" ").setAttribute("class","play-text").set("innerHTML",aw.PLAY_VIDEO);aH.append(ay);aG=aF("
").setAttribute("class","play-button");aE=aF(" ").setAttribute("class","play-icon").set("innerHTML",".");aG.append(aE);if(f.UA.ie>0&&f.UA.ie<9){aH.hide();aJ.on("hover",function(){aH=aJ.one(".icon-overlay");aH.show();},function(){aH=aJ.one(".icon-overlay");aH.hide();});aK=aF("
").setAttribute("class","overlay-background");aH.append(aK);}aJ.append(aH);aJ.append(aG);aJ.setData("videoId",aI.id);aJ.setData("param",{"index":aD,"plType":ax});aJ.on("click",function(aP){var aQ=ap.get("playlist"),aS=aQ.items().size(),aR=aP.currentTarget.getData("videoId"),aO=ao.find(function(aT){return aR===aT.get("id");}),aM,aN=aP.currentTarget.getData("param");if(aO){aM=aQ.after("mediaItemAdd",function(aU){var aT=aU.item||null;if(aT&&aT.get("id")===aR){aM.detach();av._controller.preparePlaylistPosition(aS);}},av);av._controller.addToPlaylist(aO);}ap.fire("uiInteract",{source:"partner-t-"+parseInt(aN.index+1,10)});},av);aq.append(aJ);},av);al.append(aq);av.partnerBar.append(al);if(ak.getAttribute("id")==="player"){av.contentBox.setStyle("height","360");}ak.append(av.partnerBar);f.Global.fire("VideoPlayer.Carousel.partnerBarView","partner-view");au=f.Node.one(".yom-card-main .thumbstrip");if(au){au.setStyle("display","none");}},_removePartnerBar:function(){var Y,ak,al=this.partnerBar;if(al){al.detachAll();al.remove(true);al=null;Y=f.Node.one(".yom-card-main .thumbstrip");if(Y){Y.setStyle("display","block");}ak=f.Node.one(".slideshow-main-col .caption-wrap");if(ak){ak.setStyle("position","absolute");}}},_displayCaptionsChange:function(ak){var Y=this.videoRenderer;if(Y&&this._model.get("ccAvailable")){Y.updateControls({ccShow:ak});}},_handlePlaybackCompleteStateChange:function(){var am=this._model,an=this._controller,at=this,ak=this.main,aq,ao,Y,ar,al,ap;aq=am.get("playlistPosition");ao=aq+1;ap=am.get("playlist").items().item(ao);if(am.get("continuousPlay")&&ap||am.get("loop")===true){an.playNext();}else{if(am.get("fullscreen")||am.get("rendererType")==="html"){an.setFullscreen(false);ar=1000;}else{ar=0;}setTimeout(function(){if(am.get("endscreen")){al=at._node.one(".yui3-videoplayer-content");Y=new p({model:am,view:at});Y.render(ak);at.set("activeScreen",Y);at.videoBox.setStyle("opacity",0);at.controlsContent.addClass("hide");}},ar);}},_playerStateChange:function(aq){var am=this._model,ak=this._controller,ao=ak.getStrings(),ap=aq.newVal,an,Y,al;switch(ap){case"loaded":this._handleLoadedState();break;case"preparing":if(this.get("activeScreen")){this.set("activeScreen",undefined);}break;case"prestarted":if(this.get("activeScreen")){this.set("activeScreen",undefined);}if(this.carousel){this.carousel.setIndicator(am.get("playlistPosition"),ao.UP_NEXT.replace(":","").toUpperCase());}break;case"started":this.set("activeScreen",undefined);if(this.carousel){this.carousel.setIndicator(am.get("playlistPosition"),ao.NOW_PLAYING.toUpperCase());}break;case"poststarted":an=am.get("playlistPosition");Y=an+1;al=am.get("playlist").items().item(Y);if(this.carousel&&al&&am.get("autoplay")){this.carousel.setIndicator(Y,ao.UP_NEXT.replace(":","").toUpperCase());}break;case"paused":this.set("activeScreen",undefined);break;case"error":this._displayErrorScreen();break;}},_bindTouch:function(){var ak=null,Y=this;Y._node.on("touchstart",function(al){al.preventDefault();clearTimeout(ak);ak=setTimeout(function(){Y.openProfiler();},5000);});Y._node.on("touchend",function(){clearTimeout(ak);});},_bindKeys:function(){var al=this,ao=[],am=false,Y=false,ak=false,an=[79,80,69,78,83,73,77,83,73,77];if(f.Node.DOM_EVENTS.key.eventDef!==undefined){f.Node.DOM_EVENTS.key.eventDef.KEY_MAP.shift=16;f.Node.DOM_EVENTS.key.eventDef.KEY_MAP.ctrl=17;f.Node.DOM_EVENTS.key.eventDef.KEY_MAP.space=32;f.Node.DOM_EVENTS.key.eventDef.KEY_MAP.esc=27;f.Node.DOM_EVENTS.key.eventDef.KEY_MAP.m=77;f.Node.DOM_EVENTS.key.eventDef.KEY_MAP.n=78;f.one("doc").on("key",function(){al.controls._play();},"space+shift");f.one("doc").on("key",function(){al.controls._nextVideo();},"n+ctrl+shift");f.one("doc").on("key",function(){al.controls._muteChange();},"m+ctrl+shift");f.one("doc").on("key",function(){al.set("activeOverlay",undefined);var ap=al.get("activeScreen");if(ap!==undefined&&ap.name==="InfoScreen"){ap._closeScreen();}},"esc");}f.one("doc").on("yui3-videoplayer|keypress",function(ap){var aq=ap.keyCode;if(aq===63){al.controls._hotkeyMenu();}});f.one("body").on("yui3-videoplayer|keydown",function(ap){var aq=ap.keyCode;switch(aq){case U.CTRL:am=true;break;case U.OPTION:Y=true;break;case U.SHIFT:ak=true;break;}ao.push(aq);if(ao.length>an.length){ao.shift();}if(this._node&&ao.toString()===an.toString()){al.openDetailScreen();}});f.one("body").on("yui3-videoplayer|keyup",function(ap){var aq=ap.keyCode;switch(aq){case U.CTRL:am=false;break;case U.OPTION:Y=false;break;case U.SHIFT:ak=false;break;case U.ESC:al.set("activeOverlay",undefined);break;}});},openDetailScreen:function(){var ak=this,am=this.get("activeOverlay"),Y=this._model,al;if(!am||am.name!=="DetailScreen"){al=new s({model:Y,view:ak});this.set("activeOverlay",al);}},openProfiler:function(){var am="",Y=this._model,ap,an,al,aq=f.Object.getValue(this,["_controller","_yvapRenderer","_adPlugin"]),ak=this._controller?this._controller.getProfiler():null;am+="Yahoo Video Player: "+Y.get("version")+"
";if(ak){am+=ak.draw();}am+='
';am+="Event START END DIFF QOS KEY ";al=this._model.get("profileData").items();f.each(al,function(ar){am+=""+ar.message+" "+ar.startTime+" "+ar.endTime+" "+ar.timeDiff+" "+ar.type+" ";});am+="
";am+='
';al=this._model.get("profileData").items();f.each(f.UA,function(at,ar){if(at){am+=""+ar+" "+at+" ";}});am+="
";
am+='
MediaObject Data ';an=Y.get("currentMedia").toObject();f.each(an,function(at,ar){if(typeof at!=="object"){am+=""+ar+" "+at+" ";}});am+="
";try{if(aq){if(aq.adsStatus){am+=aq.adsStatus.toTable();}else{am+="adsStatus is not available
";}}else{am+="adPlugin is not available
";}}catch(ao){am+="adsStatus is not available
";}if(H.isMobile()){document.write(am);}else{ap=window.open();ap.document.write(am);}},createNode:function(ap,ak,an){var am,Y={img:true,input:true},ao=an?"-"+an:"",al;am=f.ClassNameManager.getClassName("videoplayer"+ao,ak);if(ap in Y){al=f.Node.create("<"+ap+"/>").setAttribute("class",am);}else{al=f.Node.create("<"+ap+">"+ap+">").setAttribute("class",am);}return al;},_buildFbLink:function(am){var ap=this._controller.getStrings(),al=this._model.get("currentMedia"),ao=al.get("shareUrl"),an=this.createNode("a","fb-link",am),ak=this.createNode("span","fb-icon",am),Y=this.createNode("span","fb-share",am);if(ao){Y.set("innerHTML",ap.SHARE_ON_FACEBOOK);an.setAttribute("target","_blank");an.setAttribute("href",f.substitute(r.FACEBOOK_URL_TEMPLATE,{title:encodeURIComponent(al.get("title")),shareUrl:encodeURIComponent(ao)}));an.append(ak);an.append(Y);return an;}return false;},destructor:function(){var Y=this;if(Y.videoRenderer){Y.videoRenderer.destroy();}Y.videoRenderer=null;if(Y._model){Y._model.detachAll();}Y._model=null;f.one("body").detach("yui3-videoplayer|*");}});f.namespace("VideoPlatform").View=r;var ab={HD_HEIGHT_CONSTANT:720,HD_WIDTH_CONSTANT:1280,HD_BITRATE_CONSTANT:1400};var Z={BEGIN:"begin",INITIALIZED:"initialized",LOADING:"loading",LOADED:"loaded",PREPARING:"preparing",PREPARED:"prepared",PRESTARTED:"prestarted",STARTED:"started",POSTSTARTED:"poststarted",PAUSED:"paused",PLAYBACKCOMPLETE:"playbackComplete",ERROR:"error"};function e(){}e.prototype.log=function(Y,ak){};function k(){k.superclass.constructor.apply(this,arguments);}k.NAME="Timer";k.NS="Timer";k.ATTRS={};f.extend(k,f.Base,{initializer:function(Y){this._m=Y.model;},start:function(){this._start=(new Date()).getTime();},stop:function(Y,an){var am=this._m.get("profileData"),ak,al,ao;if(am){ak=(new Date()).getTime();al=ak-this._m.START_TIME;ao=ak-this._start;am.add({type:Y,message:an,timeDiff:ao,startTime:al-ao,endTime:al});}},setStartTime:function(Y){this._start=Y;},getStartTime:function(){return this._start;},recordTime:function(Y,am,an,ak){var al=this._m.get("profileData");if(al){al.add({type:Y,message:am,timeDiff:an,startTime:ak,endTime:ak+an});}},destructor:function(){}});f.namespace("VideoPlatform").Timer=k;function aa(ak,Y){this.model=ak;this.controller=Y;}aa.NAME="BaseState";aa.prototype={activate:function(){},init:function(){},load:function(){},prepare:function(){},start:function(){},play:function(){},pause:function(){},seek:function(){},setFullscreen:function(){},readyStateHandler:function(Y){this.model.set("rendererState",Y.newVal);},playbackReadyHandler:function(){var al=this.controller,ak=al._renderer,Y=this.model.get("currentMedia");al.updateDuration(Y,ak.getDuration());},playbackPlayHandler:function(){var Y=Z.STARTED;this.controller._setState(Y);this.model.set("playerState",Y);},playbackPlayingHandler:function(){this.model.set("isPlaying",true);this.model.set("isWaiting",false);},playbackPausedHandler:function(){var Y=Z.PAUSED;this.controller._setState(Y);this.model.setAttrs({playerState:Y,isPlaying:false});},playbackProgressHandler:function(ak){var Y=(ak.currentTime)?ak.currentTime:"";this.model.set("playbackPosition",Y);},mediaInfoUpdateHandler:function(Y){this.model.get("currentMedia").set("mediaInfo",Y.mediaInfo);},playbackSeekHandler:function(){this.model.set("isSeeking",true);},playbackSeekedHandler:function(){this.model.set("isSeeking",false);},playbackCompleteHandler:function(){this.controller._setState(Z.POSTSTARTED);},playbackErrorHandler:function(Y){this.controller.error(Y);},playbackWarningHandler:function(Y){this.controller.warning(Y);},playbackWaitingHandler:function(){this.model.set("isWaiting",true);},bitrateChangeHandler:function(Y){this.model.set("bitrate",Y.bitrate);},resizeHandler:function(Y){this.model.set("width",Y.width);this.model.set("height",Y.height);},clientResizeHandler:function(Y){this.model.set("adClientSize",{width:Y.width,height:Y.height});},adPluginReadyHandler:function(){this.model.set("yvapState",YVAPEvents.ADPLUGIN_READY);},adStartHandler:function(){},adEndHandler:function(){},adCompleteHandler:function(){},adProgressHandler:function(){},adErrorHandler:function(){},adNoneHandler:function(){},adPluginMetricHandler:function(Y){this.model.set("adPluginMetric",Y);},adPluginQosMetricHandler:function(Y){this.model.set("adPluginQosMetric",Y);},adPluginRemovedHandler:function(){this.model.set("yvapState",YVAPEvents.PLUGIN_REMOVED);},volumeChangeHandler:function(Y){this.model.set("volume",Y.details[0]);},muteChangeHandler:function(Y){this.model.set("mute",Y.details[0]);},fullscreenEnterHandler:function(){this.model.set("fullscreen",true);},fullscreenExitHandler:function(){this.model.set("fullscreen",false);},uiInteractHandler:function(Y){this.model.fire(Y);},durationChangeHandler:function(){},ccAvailabilityChangeHandler:function(Y){this.model.set("ccAvailable",Y.details[0]);},toString:function(){return"{state "+this.constructor.NAME+"}";}};f.augment(aa,e);function d(){d.superclass.constructor.apply(this,arguments);}d.NAME="AdBaseState";f.extend(d,aa,{adStartHandler:function(al){var ak=false,Y=this.model;Y.set("yvapData",al);Y.set("yvapState",YVAPEvents.AD_START);Y.set("isSpinnerShown",ak);K.init(this.controller._controls);K.updateControls({seekbarVisible:true,seekDragEnable:false,playPauseEnable:false,ccEnable:false});},adEndHandler:function(){this._resumePlayback();},adCompleteHandler:function(){this._resumePlayback();},adNoneHandler:function(){this.model.set("yvapState",YVAPEvents.AD_NONE);this._resumePlayback();},adProgressHandler:function(ak){var Y=this.model;
Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_PROGRESS);this.controller._controls.setAdDuration(ak.duration);Y.set("adPlaybackPosition",ak.position);},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);this._resumePlayback();},_resumePlayback:function(){var Y=this.model;if(Y.get("rendererType")==="html"){this.controller._returnVideoControl();}if(Y.get("yvapState")!==YVAPEvents.AD_ERROR){Y.set("yvapState",YVAPEvents.AD_COMPLETE);}K.init(this.controller._controls);K.updateControls({seekbarVisible:true,seekDragEnable:true,playPauseEnable:true,ccEnable:true});}});function D(){D.superclass.constructor.apply(this,arguments);}D.NAME="BeginState";f.extend(D,aa,{activate:function(){this.model.setAttrs({isInitialized:false,isLoading:false,isLoaded:false,isPreparing:false,isPrepared:false,isStarted:false,hasError:false});},init:function(){var Y=this.model,ak=this.controller;ak.cookieHandler=new G({model:Y});ak.cookieHandler.createAndLoadCookies();ak._setState(Z.INITIALIZED);Y.set("playerState",Z.INITIALIZED);},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);}});function C(){C.superclass.constructor.apply(this,arguments);}C.NAME="InitializedState";f.extend(C,aa,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:false,isPreparing:false,isPrepared:false,isStarted:false,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);},load:function(){var al=this,ap=al.controller,Y=al.model,an=Y.get("playlist"),ao=new k({model:Y}),ak=ap?ap.getProfiler():null;if(Y.get("standaloneAdMode")){ap._createYVAP();ap._setState(Z.LOADED);Y.set("playerState",Z.LOADED);return;}ao.start();if(ak){ak.setEndTime(ai.INIT_TO_LOAD_PLAYLIST.type);ak.add(ai.PLAYLIST_LOADED);}function am(){ao.stop(ai.PLAYLIST_LOADED.type,ai.PLAYLIST_LOADED.desc);if(ak){ak.setEndTime(ai.PLAYLIST_LOADED.type);}if(Y.get("YVAPRequired")===true){ap._createYVAP();}ap.setPlaylistPosition(0);if(Y.get("playerState")!==Z.ERROR){ap._setState(Z.LOADED);Y.set("playerState",Z.LOADED);}}ap.getLoadStrategy().call(ap,{loadFromCMS:function(){if(an.get("id").length>0||an.items().size()>0){ap._setState(Z.LOADING);Y.set("playerState",Z.LOADING);ao.start();al.loadPlaylist(an,{success:am,failure:function(aq){ap.error(aq);}});}},loadData:function(){setTimeout(am,1);}});},loadPlaylist:function(al,aq){var at=this.controller,Y=aq.context||null,ar=al.items(),av,au,ap=this.model,ao=this.constructor.NAME;function an(){aq.success.call(Y,al);}function ak(aw){aq.failure.call(Y,f.merge({type:c.ERROR.CMS_REQUEST.type},aw));}function am(aB){var ax,az,aw,aA;function ay(){if(typeof ax!=="undefined"){return ax;}for(az=0,aw=aB.length;az=ab.HD_HEIGHT_CONSTANT&&aA.width>=ab.HD_WIDTH_CONSTANT){ax=true;return ax;}}ax=false;return ax;}return ay;}if(al.get("id").length>0){at._cmsService.loadPlaylist(al.get("id"),0,0,null,{success:function(ax){var aA=ax.mediaItems,az,ay,aB=ap.get("playlist"),aw=ax.status;if(aA.length===0){aB.set("status",aw);ak(new f.VideoPlatform.ErrorObject(c.ERROR.NO_PLAYLIST_CONTENT.type,aw.code,ao,aw.msg+"; playlistId "+aB.get("id"),c.LEVEL.CRITICAL));}else{al.set("totalLength",ax.total);al.set("totalRequested",at._cmsService.get("playlistCount"));for(az=0;az0){at._cmsService.loadClips(au,{success:function(aw){if(aw){f.each(aw,function(ay){var az=ay.id,ax=ar.find(function(aA){return az===aA.get("id");});if(ay.streams){ay.hdAvailable=am(ay.streams);}if(ax){f.Object.each(ay,function(aB,aA){var aC,aD=ax.get(aA);if(f.Lang.isObject(aD)&&f.Lang.isObject(aB)){for(aC in aB){if(!aD[aC]){aD[aC]=aB[aC];}}}else{if(aD===undefined){ax.set(aA,aB);}}});}});an();}else{ak(new f.VideoPlatform.ErrorObject(c.ERROR.NO_PLAYLIST_CONTENT.type,c.ERROR.NO_PLAYLIST_CONTENT.code,ao,"no clips found",c.LEVEL.CRITICAL));}},failure:ak});}else{an();}}}});function B(){B.superclass.constructor.apply(this,arguments);}B.NAME="LoadingState";f.extend(B,aa,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:true,isLoaded:false,isPreparing:false,isPrepared:false,isStarted:false,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);}});function aj(){aj.superclass.constructor.apply(this,arguments);}aj.NAME="LoadedState";f.extend(aj,aa,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:false,isStarted:false,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});if(this.model.get("autoplay")===false){this.model.set("isSpinnerShown",false);}},prepare:function(){var ao=this.controller,Y=this.model,ak=ao?ao.getProfiler():null,an=Y.get("currentMedia"),al=ai.VP_PREPARED.type,am=ao.preparedProfileKey;ao._setState(Z.PREPARING);Y.set("playerState",Z.PREPARING);if(Y.get("standaloneAdMode")){ao._setState(Z.PREPARED);Y.set("playerState",Z.PREPARED);ao.play();return;}ao.resetStreamsIfRendererMismatch();ao.getPrepareStrategy(an).call(ao,an,{success:function(ap){ao.updateMediaAttrs(an,ap);ao._setState(Z.PREPARED);Y.set("playerState",Z.PREPARED);if(ak&&isNaN(ak.getItem(al,am).endTime)){ak.setEndTime(al,am);}ao.play();},failure:function(aq,ap){if(ap){ao.updateMediaAttrs(an,ap);}if(ak&&isNaN(ak.getItem(al,am).endTime)){ak.setEndTime(al,am);}ao.error(aq);},context:this});},play:function(){this.controller.prepare();},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);}});function P(){P.superclass.constructor.apply(this,arguments);
}P.NAME="PreparingState";f.extend(P,aa,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:true,isPreparing:true,isPrepared:false,isStarted:false,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});if(this.model.get("autoplay")===false){this.model.set("isSpinnerShown",true);}},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);}});function Q(){Q.superclass.constructor.apply(this,arguments);}Q.NAME="PreparedState";f.extend(Q,aa,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:true,isStarted:false,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});var Y=this.model.get("endScreenVideos").items().size();if(Y>0){this.model.get("endScreenVideos").items().reset();}},play:function(){this.controller._setState(Z.PRESTARTED);},setFullscreen:function(Y){this.controller._renderer.setFullscreen(Y);},adErrorHandler:function(ak){var Y=this.model;Y.set("yvapData",ak);Y.set("yvapState",YVAPEvents.AD_ERROR);}});function V(){V.superclass.constructor.apply(this,arguments);}V.NAME="StartedState";f.extend(V,d,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:true,isStarted:true,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false,isSpinnerShown:false});var al=this,Y=al.model,am=Y.get("ccAvailable"),ak=al.controller;if(am===true&&ak.isHtmlCCSupported()){if(!Y.get("closedCaptions")){Y.after("playbackPositionChange",al._loadClosedCaptionContent,al);}else{}}al._loadRelatedContent();},_loadRelatedContent:function(){var ar=this,am=ar.model,ak=am.get("currentMedia"),Y=am.get("continuousPlay"),aq=am.get("playlistPosition"),al=am.get("playlist").items().size(),ao=am.get("endScreenVideos").items().size(),ap=false,an;if(!am.get("endscreen")){return;}if(ao!==0){return;}ap=(ak.get("id")&&am.get("loop")===false&&((Y&&aq===al-1)||!Y));if(!ap){return;}an=ak.get("duration");if(isNaN(an)||an===0){am.after("durationChange",ar._startLoadingEndScreenContent,ar,true);}else{ar._startLoadingEndScreenContent({newVal:an});}},_startLoadingEndScreenContent:function(an,Y){var ak=this,al=ak.model,am=3;if(an.newVal<=am){return;}al.after("playbackPositionChange",ak.loadEndScreenContent,ak);if(Y){al.detach("durationChange",ak._startLoadingEndScreenContent,ak);}},loadEndScreenContent:function(){var ak=this,Y=ak.model,al=Y.get("currentMedia"),am=ak.controller;if(Y.get("playbackPosition")>3){Y.detach("playbackPositionChange",ak.loadEndScreenContent,ak);ak.loadEndScreenVideos(al,{success:function(an){if(Y.get("endScreenVideos").get("mediaItems")._items.length===0){Y.set("endScreenVideos",an);}},failure:function(an){am.warn(an);}});}else{}},loadEndScreenVideos:function(ak,ap){var aq=ap.context||null,am=this.model,an=this.constructor.NAME,ao=this.controller,ar={success:function(au){var av=c.ERROR.NO_RELATED_CONTENT;if("100"===au.status.code){al(at(au));}else{Y(new f.VideoPlatform.ErrorObject(av.type,av.code,an,"error loading related videos",c.LEVEL.WARNING));}},failure:function(au){Y(au);}};function al(au){ap.success.call(aq,au);}function Y(au){ap.failure.call(aq,au);}function at(au){am.get("endScreenVideos").items().reset();var ay=am.get("endScreenVideos"),aw=ay.items(),ax,av;for(ax=0;ax1){Y.detach("playbackPositionChange",ak._loadClosedCaptionContent,ak);ak.loadClosedCaptions({success:function(am){Y.set("closedCaptions",am);},failure:function(am){al.warn(am);}});}else{}},pause:function(){this.controller._renderer.pause();},seek:function(Y){this.controller._renderer.seek(Y);},setFullscreen:function(Y){this.controller._renderer.setFullscreen(Y);},durationChangeHandler:function(Y){this.controller.updateDuration(this.model.get("currentMedia"),Y.details[0]);},uiInteractHandler:function(Y){this.constructor.superclass.uiInteractHandler.call(this,Y);if(Y.source==="controlsInfoButton"){this.controller.toggleInfoScreen();}else{if(Y.source==="controlsCCButton"){this.controller.toggleClosedCaptions();}}},mediaInfoUpdateHandler:function(Y){this.model.get("currentMedia").set("mediaInfo",Y.mediaInfo);},prepare:function(){aj.prototype.prepare.apply(this,arguments);},adStartHandler:function(Y){if(this.model.get("rendererType")==="flash"){this.pause();}V.superclass.adStartHandler.call(this,Y);},_resumePlayback:function(){}});function A(){A.superclass.constructor.apply(this,arguments);}A.NAME="PausedState";f.extend(A,d,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:true,isStarted:true,isPlaying:false,isPaused:true,isSeeking:false,isCompleted:false,isError:false});},play:function(){this.controller._renderer.play();},seek:function(){V.prototype.seek.apply(this,arguments);},setFullscreen:function(Y){this.controller._renderer.setFullscreen(Y);},uiInteractHandler:function(Y){V.prototype.uiInteractHandler.call(this,Y);},mediaInfoUpdateHandler:function(Y){V.prototype.mediaInfoUpdateHandler.call(this,Y);},durationChangeHandler:function(Y){this.controller.updateDuration(this.model.get("currentMedia"),Y.details[0]);
},_resumePlayback:function(){A.superclass._resumePlayback.call(this);this.play();},prepare:function(){aj.prototype.prepare.apply(this,arguments);}});function S(){S.superclass.constructor.apply(this,arguments);}S.NAME="PlaybackCompleteState";f.extend(S,aa,{activate:function(){this.model.setAttrs({isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:true,isStarted:true,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:true,isError:false});},play:function(){this.model.set("playbackPosition",0);aj.prototype.prepare.apply(this,arguments);},setFullscreen:function(Y){this.controller._renderer.setFullscreen(Y);},prepare:function(){aj.prototype.prepare.apply(this,arguments);}});function L(){L.superclass.constructor.apply(this,arguments);}L.NAME="ErrorState";f.extend(L,aa,{activate:function(){this.model.setAttrs({isError:true});},prepare:function(){aj.prototype.prepare.apply(this,arguments);},playbackPausedHandler:function(){}});function I(){I.superclass.constructor.apply(this,arguments);}I.NAME="PreStartedState";f.extend(I,d,{activate:function(){var al=this.controller,Y=this.model,ak=al._yvapRenderer;if(Y.get("rendererReady")===false){Y.after("rendererReadyChange",function(am){if(true===am.newVal){this.activate();}},this);return;}this.model.setAttrs({playerState:Z.PRESTARTED,isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:true,isStarted:true,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});if(ak&&!ak.get("criticalError")){if(Y.get("rendererType")==="html"){al._suspendVideoControl();}ak.requestPreRollAd();}else{this._resumePlayback();}},_resumePlayback:function(){var ak=this.controller._renderer,Y=this.model;I.superclass._resumePlayback.call(this);ak.load(Y.get("currentMedia"));ak.play();},prepare:function(){aj.prototype.prepare.apply(this,arguments);}});function R(){R.superclass.constructor.apply(this,arguments);}R.NAME="PostStartedState";f.extend(R,d,{activate:function(){this.model.setAttrs({playerState:Z.POSTSTARTED,isInitialized:true,isLoading:false,isLoaded:true,isPreparing:false,isPrepared:true,isStarted:true,isPlaying:false,isPaused:false,isSeeking:false,isCompleted:false,isError:false});var Y=this.controller._yvapRenderer,ak=Z.PLAYBACKCOMPLETE;if(!Y||Y.get("criticalError")){this.controller._setState(ak);this.model.set("playerState",ak);}else{if(this.model.get("rendererType")==="html"){this.controller._suspendVideoControl();}Y.requestPostRollAd();}},_resumePlayback:function(){var al=this.controller,Y=this.model,ak=Z.PLAYBACKCOMPLETE;R.superclass._resumePlayback.call(this);al._setState(ak);Y.set("playerState",ak);},prepare:function(){aj.prototype.prepare.apply(this,arguments);}});function b(ak,am){var Y=this,al={bucket:50,colo:"ycs",env:H.isInternalUser()?"s":"p"};Y._m=ak;Y._states={begin:new D(ak,Y),initialized:new C(ak,Y),loading:new B(ak,Y),loaded:new aj(ak,Y),preparing:new P(ak,Y),prepared:new Q(ak,Y),started:new V(ak,Y),paused:new A(ak,Y),playbackComplete:new S(ak,Y),error:new L(ak,Y),prestarted:new I(ak,Y),poststarted:new R(ak,Y)};Y._activeState=Y._states.begin;Y._defaultRenderer=f.Object.getValue(am,"playlist.mediaItems.0.adData.adRules.result.renderType".split("."))||"flash";Y._preferHTML5=f.Object.getValue(am,"html5");if(Y._m){Y._m.setAttrs({guid:H.generateGuid(),rendererType:Y.getRendererType(f.UA),isOffNetwork:!H.isYahooDomain(H.getHostUrl()),hostingData:f.Object.getValue(window,"YAHOO.VideoPlatform.PlayerHosting".split("."))||al,lang:f.config.lang||"",autoplay:f.Object.getValue(am,"standaloneAdMode")===true});Y._m.after("currentMediaChange",function(an){f.later(1,Y,Y._checkPartnerBranding,an);},Y);}Y._cmsService=new f.VideoPlatform.LegoCMS({model:Y._m,controller:Y});}b.NAME="Controller";b.INSTANCE_CONFIG_WHITELIST=["autoplay","bitrate","site","lang","region","pageSpaceId","comscoreC4","comscoreC6","playerSpaceId","reportingDomain","playlist","chromeless","rendererType","continuousPlay","YVAP","beacons","errorDisplayDuration","mute","volume","lms","ybang","carousel","endscreen","startscreen","errorscreen","infoscreen","expType","expName","startVideo","atlasEnv","CMS","expBucket","SAPI_CONF","emptySpaceIdContextInSapi","pageLatency","standaloneAdMode","loop","synd","streamAd"];b.CONFIG_UPDATE_ALLOWED_WHITELIST=["continuousPlay"];b.prototype={init:function(){this._activeState.init();this.load();},destroy:function(){var Y=this;Y._m=null;Y._activeState=null;if(Y._controls){Y._controls.destroy();}Y._controls=null;Y._profiler=null;if(Y._metrics){Y._metrics.destroy();}Y._metrics=null;if(Y._renderer){Y._renderer.detach();}Y._renderer=null;if(Y._yvapRenderer){Y._yvapRenderer.destroy();}Y._yvapRenderer=null;},setControlsObj:function(Y){this._controls=Y;},getControlsObj:function(){return this._controls;},setProfiler:function(Y){this._profiler=Y;},getProfiler:function(){return this._profiler;},setMetricsModule:function(Y){this._metrics=Y;},getMetricsModule:function(){return this._metrics;},getRenderer:function(){return this._renderer;},validateConfig:function(ap){var Y=this._m,an=this.configErrors(ap),ao,al,ak,am;if(an.length){ao=an.join("\n");this.error(new f.VideoPlatform.ErrorObject(c.ERROR.CONFIG.type,c.ERROR.CONFIG.code,this.constructor.NAME,ao,c.LEVEL.CRITICAL));}else{al=this.filterObject(ap,b.INSTANCE_CONFIG_WHITELIST);this.commitToModel(al,Y);if(Y.get("synd")){this._cmsService.set("playlistCount",30);}if(!ap.YVAP){Y.set("YVAPRequired",false);}am=al.playlist;if(am&&am.startVideo){Y.set("startVideo",am.startVideo);}else{if(am&&am.id&&am.mediaItems){ak=am.mediaItems;if(ak.length>0){Y.set("startVideo",ak[0].id);}}}}},updateConfig:function(ap){var Y=this,ak=(f.Lang.isObject(ap))?ap:null,am=f.VideoPlatform.Controller.CONFIG_UPDATE_ALLOWED_WHITELIST,ao=am.length,an,al;if(ak===null){return;}for(al=0;al1){ak=1;}this._renderer.setVolume(ak);}catch(Y){}},setMute:function(Y){try{this._renderer.setMute(Y);}catch(ak){}},setPlaylistPosition:function(ak){var Y=this._m;this.pause();Y.set("playlistPosition",ak);Y.set("currentMedia",Y.get("playlist").items().item(ak));Y.set("playbackPosition",0);},playNext:function(){var Y=this._m.get("playlistPosition")+1,ak=this._m.get("playlist").items(),al=ak.size();if(this._m.get("continuousPlay")===true&&al>Y){ak._items[Y].set("autoContinue",true);this.preparePlaylistPosition(Y);}else{if(this._m.get("loop")===true){this._m.reset("playlistPosition");this.preparePlaylistPosition(0);}}},playIndex:function(al,ak,an){var Y=this._m,am,ao;ak=f.Lang.isUndefined(ak)?false:ak;if(ak&&(ak==="endScreen"||ak==="errorScreen")&&an!=="es-rpl"){am=Y.get("endScreenVideos").items().item(al);ao=Y.get("playlist").items();al=Y.get("playlistPosition")+1;ao.add(am,al);}Y.get("playlist").items()._items[al].set("autoContinue",false);this.preparePlaylistPosition(al);},clearPlaylist:function(){var ak=Z.INITIALIZED,Y=this._m;this.pause();Y.get("playlist").items().clear();this._setState(ak);Y.set("playerState",ak);},addToPlaylist:function(ak){var Y=this._m;Y.get("playlist").items().add(ak);if(Z.INITIALIZED===Y.get("playerState")){this.load();}},toggleInfoScreen:function(){var Y=this._m,ak=Y.get("activeScreenStr"),al="info"===ak?undefined:"info";Y.set("activeScreenStr",al);},toggleClosedCaptions:function(){var Y=this._m,al=Y.get("showClosedCaptions"),ak=!al;Y.set("showClosedCaptions",ak);this.updateControls({ccShow:ak});},updateControls:function(Y){if(this._renderer){this._renderer.updateControls(Y);}},displayClosedCaptions:function(ak){var Y=this._m;if(f.Lang.isValue(Y)){Y.set("showClosedCaptions",ak);}},getMediaFormats:function(){return[H.formats.M3U8,H.formats.MP4];},warn:function(Y){this._m.set("warning",Y);},error:function(al){var ak=Z.ERROR,Y=this._m;Y.set("error",al);this.pause();this._setState(ak);Y.set("playerState",ak);},updateMediaAttrs:function(ak,Y){f.Object.each(Y,function(am,al){if((typeof(ak.get(al))==="undefined")||(ak.get(al)===null)){ak.set(al,am);}});},resetStreamsIfRendererMismatch:function(){var ak=this,Y=ak._m,al=Y.get("currentMedia");if((ak.getRendererType(f.UA)!==ak._defaultRenderer)&&(al)&&!(f.Lang.isNumber(f.UA.ios))&&(f.UA.android<=0)){al.set("streams",null);al.set("adData",null);}},loadClips:function(ak,Y){var al=Y.context||null;this._cmsService.loadClips(ak,{success:function(am){Y.success.call(al,am);},failure:function(am){Y.failure.call(al,am);}});},commitToModel:function(am,Y){Y.setAttrs(am);if("playlist" in am){var al=am.playlist,ak=Y.get("playlist");ak.setAttrs(al);if("string"===typeof al.id&&al.id.length>0){}else{f.each(al.mediaItems,function(an){ak.items().add(an);});}}if(f.Lang.isNumber(f.UA.ios)||(f.UA.android>0)){Y.set("autoplay",false);}if(Y.get("chromeless")){Y.set("startscreen",false);Y.set("infoscreen",false);Y.set("errorscreen",false);Y.set("endscreen",false);}},filterObject:function(al,Y){var ak={};f.each(al,function(an,am){if(f.Array.indexOf(Y,am)>=0){ak[am]=an;}});return ak;},configErrors:function(ak){var al=[],Y=["pageSpaceId","comscoreC4"];if(f.Lang.isObject(ak)){f.each(Y,function(am){if(!f.Lang.isValue(ak[am])){al.push('missing required key: "'+am+'"');}});if("beacons" in ak){if(!f.Lang.isArray(ak.beacons)){al.push("config.beacons should be an Array i.e. [{},]");}}}else{al.push("config is not an object");}return al;},updateDuration:function(ak,Y){var al=isNaN(Y)?ak.get("duration")||NaN:Y;if(ak.get("isLive")||isNaN(al)){al=Number.POSITIVE_INFINITY;}this._m.set("duration",al);ak.set("duration",al);},getLoadStrategy:function(){var al=this._fetchDataFromCMS,Y=this._m,ak=false;if(this.isDataAvailable()){al=this._dataAvailable;ak=true;}else{ak=false;}Y.once("currentMediaChange",function(am){am.newVal.set("isPreFetched",ak);},this);return al;},isDataAvailable:function(){var al=this,Y=al._m,ak=["id","title","description","metrics","licensorName","licensorId","licenseName","licenseId","originatingProperty","images","provider","duration"],am=["streams","streamUrlOwner","adData","isLive"];am=am.concat(ak);if(Y.get("autoplay")){return this._scanMediaObjects(am);}else{return this._scanMediaObjects(ak);}},isHtmlCCSupported:function(){var Y=this._m;return(Y.get("rendererType")==="html"&&f.UA.mobile===null);},_scanMediaObjects:function(ar){var ak=this._m,am,al,an,ap,Y=ak.get("playlist").items(),ao=Y.toArray(),at=true,aq;if(ao.length===0){return false;}for(am=0,an=ao.length;(am1){break;}}return al;},_fetchDataFromCMS:function(Y){Y.loadFromCMS.call(Y.context||null,{});},getPrepareStrategy:function(am){var Y=am.get("status"),ao=am.get("streams"),ak=am.get("streamUrl"),al=Y&&Y.code?parseInt(Y.code,10):NaN,an=this._fetchStreamData;if((ao&&ao.length)||(ak&&ak.length)){an=this._alreadyPrepared;am.set("isPreFetched",true);}else{am.set("isPreFetched",false);}if(!isNaN(al)&&al>=200){an=this._clipStatusNotPlayable;}return an;},_alreadyPrepared:function(ak,Y){Y.success.call(Y.context||null,{});},_clipStatusNotPlayable:function(am,al){var Y=am.get("status"),ak=this.constructor.NAME;al.failure.call(al.context||null,new f.VideoPlatform.ErrorObject(c.ERROR.STREAM_NOT_PLAYABLE.type,Y.code,ak,"clip not playable: "+Y.msg,c.LEVEL.CRITICAL),null);},_fetchStreamData:function(am,ao){var ap=new f.VideoPlatform.MediaCollection([am]),an=this.constructor.NAME,ak=ao.context||null,Y=new k({model:this._m}),ar=this._profiler;function aq(at){ao.success.call(ak,at);}function al(au,at){ao.failure.call(ak,au,at);}Y.start();if(ar){ar.add(ai.CMS_GetStreams);}this.loadClips(ap,{success:function(at){Y.stop(ai.CMS_GetStreams.type,ai.CMS_GetStreams.desc);if(ar){ar.setEndTime(ai.CMS_GetStreams.type);}var au=at[0];if(au&&au.status&&("100"===au.status.code||"101"===au.status.code)){aq(au);}else{al(new f.VideoPlatform.ErrorObject(c.ERROR.STREAM_NOT_PLAYABLE.type,(au&&au.status)?au.status.code:c.ERROR.STREAM_NOT_PLAYABLE.code,an,(au&&au.status&&au.status.msg)?au.status.msg:"error loading content",c.LEVEL.CRITICAL),au);}},failure:function(at){al(at,null);}});},_activeState:null,_setState:function(Y){if(Y!==this._m.get("playerState")){this._activeState=this._states[Y];this._activeState.activate();}return this._activeState;},_renderer:null,_yvapRenderer:null,registerRenderer:function(Y){this._addRendererListeners(Y);this._renderer=Y;},_addRendererListeners:function(Y){var ak=ae;f.each([ak.PLAYBACK_READY,ak.PLAYBACK_PLAY,ak.PLAYBACK_PLAYING,ak.PLAYBACK_PAUSED,ak.PLAYBACK_PROGRESS,ak.PLAYBACK_SEEK,ak.PLAYBACK_SEEKED,ak.PLAYBACK_COMPLETE,ak.PLAYBACK_ERROR,ak.PLAYBACK_WARNING,ak.PLAYBACK_WAITING,ak.FULLSCREEN_ENTER,ak.FULLSCREEN_EXIT,ak.MUTE_CHANGE,ak.VOLUME_CHANGE,ak.UI_INTERACT,ak.MEDIA_INFO_UPDATE,ak.BITRATE_CHANGE,ak.PLAYER_RESIZE,ak.PLAYER_READYSTATE,ak.CLIENT_RESIZE,ak.DURATION_CHANGE,ak.CCAVAILABILITY_CHANGE],function(al){Y.on(al,function(an){var am=al+"Handler";if(f.Lang.isFunction(this._activeState[am])){this._activeState[am](an);}},this);},this);},_suspendVideoControl:function(){var Y=this._renderer.suspendControl();this._m.set("videoPlaybackState",Y);},_returnVideoControl:function(){var Y=this._m.get("videoPlaybackState");if(Y){this._renderer.returnControl(Y);}},getRendererType:function(ak){var al="html";if(f.Lang.isString(ak.mobile)||f.Lang.isNumber(ak.ios)||ak.android>0){return al;}if((navigator&&navigator.userAgent)&&((navigator.userAgent.indexOf("MSAppHost")>=0)||(/.+MSIE 10.+Windows NT.+WebView/i.test(navigator.userAgent)))){return al;}if(this._fallBackTOHTML5(ak)){return al;}function Y(){return !!document.createElement("video").canPlayType;}if(this._preferHTML5&&Y()){return al;}return this._defaultRenderer;},_isBrowserHTML5Compatible:function(Y){var ak=H.compareVersions;return(ak(Y.chrome,21)>=0||ak(Y.ie,9)>=0||ak(H.isIE11(),9)>=0||ak(Y.safari,6)>=0||ak(Y.opera,10.6)>=0||ak(Y.gecko,23)>=0);},_fallBackTOHTML5:function(Y){return(!this._isFlashVersionAtLeast(10,2)&&this._isBrowserHTML5Compatible(Y));},_testsFlashVersionAtLeast:function(au,aq,am){var at,ao=f.UA,ak=f.Lang,ap,an,Y;function ar(av){return parseInt(av,10);}function al(av){if(ak.isNumber(ar(av[0]))){ao.flashMajor=av[0];}if(ak.isNumber(ar(av[1]))){ao.flashMinor=av[1];}if(ak.isNumber(ar(av[2]))){ao.flashRev=av[2];}}at=H.getFlashVersion();if(at!==0&&at!==6){if(ao.gecko||ao.webkit||ao.opera){at=at.replace(/\s[rd]/g,".").replace(/[A-Za-z\s]+/g,"").split(".");}else{at=at.replace(/[A-Za-z\s]+/g,"").split(",");}al(at);}ap=ar(ao.flashMajor);an=ar(ao.flashMinor);Y=ar(ao.flashRev);au=ar(au||0);aq=ar(aq||0);am=ar(am||0);if(au===ap){if(aq===an){return am<=Y;}return aq| )/gi).test(Y);},isUrl:function(Y){return new RegExp(/htt(p:\/\/|ps:\/\/)/).test(Y);},isUrlMatch:function(Y){var al=new RegExp(/htt(p:\/\/|ps:\/\/)/).exec(Y),ak=[];if(al){ak=al;}return ak;},fixedEncodeURIComponent:function(Y){return encodeURIComponent(Y).replace(/[!'()]/g,escape).replace(/\*/g,"%2A");},isScriptable:function(Y){return new RegExp(/(asfunction:|javascript:|event:|vbscript:)/gi).test(Y);},removeExtraLineChars:function(Y){var ak=Y;ak=ak.split(" ").join("");ak=ak.split("\t").join("");ak=ak.split("\n").join("");ak=ak.split("\r").join("");return ak;},generateGuid:function(Y){var ak=Y||22,an="",al,am="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._";for(al=0;al=10&&Y[1]>=6){if(an.chrome>0||an.gecko>=4||an.safari>=530){ao="direct";}}}break;case"windows":break;}return ao;},getHostUrl:function(){var Y;if(H.inIFrame()){try{Y=window.top.location.href;}catch(ak){}if(!f.Lang.isValue(Y)){Y=document.referrer;}return Y;}if(f.UA.ie>0&&!H.isValidHostDomain(window.location.href,window.document.URL)){return"";}return window.location.href;},isValidHostDomain:function(al,ak){var am,Y;if(!al||!ak){return false;}am=H.parseUrl(al).host;Y=H.parseUrl(ak).host;return am===Y;},parseUrl:function(ak){var Y={url:"",protocol:"",host:"",path:"",file:""},al,am;if(ak&&f.Lang.isString(ak)){al=/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/;am=ak.match(al);if(am){Y.url=am[0]||Y.url;Y.protocol=am[1]||Y.protocol;
Y.host=am[6]||Y.host;Y.path=am[10]||Y.path;Y.file=am[11]||Y.file;}}return Y;},isYahooDomain:function(ak){var Y=f.Object.getValue(window,"YAHOO.VideoPlatform.WhiteListedDomains".split("."));if((typeof Y==="object")&&(typeof ak==="string")){try{if(ak.match(/(https?:\/\/)?(.[^\/:]+)/i)[2] in Y){return true;}}catch(al){}}return(/^https?:\/\/([A-Za-z0-9_\-]*\.)*yahoo.com(:(6553[0-5]|655[0-2]\d|65[0-4]\d\d|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}|0))?($|\/)/.test(ak)||/^https?:\/\/([A-Za-z0-9_\-]*\.)*yimg.com($|\/)/.test(ak)||/^https?:\/\/([A-Za-z0-9_\-]*\.)*yahoo.net($|\/)/.test(ak)||/^https?:\/\/([A-Za-z0-9_\-]*\.)*yahooapis.com($|\/)/.test(ak)||/^https?:\/\/([A-Za-z0-9_\-]*\.)*rivals.com($|\/)/.test(ak)||/^https?:\/\/([A-Za-z0-9_\-]*\.)*maktoob.com($|\/)/.test(ak));},compareVersions:function(al,ak){var aq,ap,an,ao,am,Y;if(al===ak){return 0;}ap=(al+"").split(".");ao=(ak+"").split(".");for(am=0,Y=Math.max(ap.length,ao.length);aman){return 1;}}return 0;},inIFrame:function(){return(window.top!==window.self);},postMessage:function(Y){var ak;if(parent&&parent.postMessage){ak=window.location.hash.split("=")[1];if(!ak){ak=1;}parent.postMessage(Y+":"+ak,"*");}},isFullscreenSupported:function(){if(!H.inIFrame()){return true;}if(window.location.hash.substr(0,4)==="#id="){return true;}return((document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled)===true);},getDuration:function(Y){Y=parseInt(Y,10);return Math.floor(Y/60)+":"+this.prefixZeroes(Y%60);},prefixZeroes:function(Y){if(Y<10){return"0"+Y.toString();}else{return Y.toString();}},isMobile:function(){var Y=f.UA;if(Y.android!==0||Y.ios!==null||Y.mobile!==null){return true;}return false;},isInternalUser:function(){var Y;if(!navigator.cookieEnabled){return false;}Y=f.Cookie.getSubs("BY");if(!f.Lang.isNull(Y)&&f.Lang.isObject(Y)){return true;}return false;},clients:{MISC:"misc",APPLE:"apple",DESKTOP:"desktop"},formats:{FLV:"flv",MP4:"mp4",M3U8:"m3u8",WEBM:"webm",F4M:"f4m"},protocols:{HTTP:"http",RTMP:"rtmp",RTSP:"rtsp"},getFormatsAndProtocols:function(ak){var Y,al;if("html"===ak){al=[H.protocols.HTTP];if(f.Lang.isNumber(f.UA.ios)){Y=[H.formats.M3U8,H.formats.MP4];}else{if(f.Lang.isNumber(f.UA.android)&&f.UA.android>0){Y=[H.formats.WEBM,H.formats.MP4];if(f.UA.chrome>0){Y.push(H.formats.M3U8);}else{Y.push("h264");al.push(H.protocols.RTSP);}}else{if(f.UA.chrome>0){Y=[H.formats.MP4,H.formats.WEBM];}else{if(f.UA.safari>0){Y=[H.formats.MP4,H.formats.M3U8];}else{if((f.Lang.isNumber(f.UA.gecko)&&f.UA.gecko>0)||f.UA.opera>=10.6){Y=[H.formats.WEBM];}else{Y=[H.formats.MP4];}}}}}}else{Y=[H.formats.MP4,H.formats.FLV,H.formats.F4M];al=[H.protocols.RTMP,H.protocols.HTTP];}return{formats:Y,protocols:al};}};H.PLAYER_ASSETS_URL=(document.location.protocol==="https:")?"https://s.yimg.com/rx/builds/4.1.15.1390360235/assets/":"http://l.yimg.com/rx/builds/4.1.15.1390360235/assets/";f.namespace("VideoPlatform").Utils=H;function J(){}J.Events={VP_CONSTRUCTOR:{type:"tcons",desc:"VideoPlayer Constructor",color:"green",qosMetric:true},MVC_CONSTRUCTORS:{type:"tmvccons",desc:"VideoPlayer MVC constructors",color:"white",qosMetric:false},VP_SETUP_API:{type:"tsetupapi",desc:"Before controller init",color:"white",qosMetric:false},INIT_TO_LOAD_PLAYLIST:{type:"titlpl",desc:"Controller init to load playlist (Begin state to Init state)",color:"white",qosMetric:false},PLAYLIST_LOADED:{type:"tploaded",desc:"Playlist loaded",color:"darkcyan",qosMetric:true},SAPI_LOADCLIPS:{type:"tsapic",desc:"SAPI request for clips",color:"darkcyan",qosMetric:true},RENDER_NODE_AVAILABLE:{type:"trnodeavail",desc:"Player Render API waiting for node to be available",color:"hotpink",qosMetric:true},CREATE_RENDERER:{type:"trcreate",desc:"Creating the renderer (swf/html)",color:"hotpink",qosMetric:true},WAITING_FOR_LOADED:{type:"twfl",desc:"Waiting for isLoaded to start controller.prepare()",color:"white",qosMetric:false},YSWF_READY:{type:"tswfr",desc:"Player SWF is ready",color:"royalblue",qosMetric:true},YSWF_NodeRendered:{type:"tfoins",desc:"Inserted flash object tag",color:"white",qosMetric:true},YSWF_LOADED:{type:"tfdl",desc:"Flash Download (Browser creates plugin, SWF is downloaded, Flex FW is initialized)",color:"white",qosMetric:true},YSWF_SWF_ONLY_INIT_TIME:{type:"tswfoi",desc:"Player SWF init time",color:"white",qosMetric:true},YVAP_LOADED:{type:"tswfl",desc:"Yvap Loaded",color:"saddlebrown",qosMetric:false},CMS_GetStreams:{type:"tcmsgs",desc:"SAPI Get Streams",color:"darkcyan",qosMetric:false},YVAP_READY:{type:"tyvapr",desc:"VideoAdPlugin is ready",color:"saddlebrown",qosMetric:true},VP_PREPARED:{type:"tprep",desc:"Player prepared",color:"hotpink",qosMetric:true},YVAP_ADSTARTED:{type:"tyvapads",desc:"Ad Started",color:"saddlebrown",qosMetric:true},YVAP_NOAD:{type:"tyvapadn",desc:"Ad None",color:"saddlebrown",qosMetric:true},YVAP_ERROR:{type:"tyvape",desc:"Ad Error",color:"saddlebrown",qosMetric:true},SAPI_LOADPLAYLIST:{type:"tsapilp",desc:"SAPI Get for playlists",color:"darkcyan",qosMetric:true},SAPI_LOADRELATED:{type:"tsapilr",desc:"SAPI Get for related videos",color:"darkcyan",qosMetric:true},YQL_LOAD_CC:{type:"tyqlcc",desc:"SAPI call to load closed captions",color:"darkcyan",qosMetric:true},VP_CLICK_TO_START:{type:"ttsapf",desc:"Player click to playback start",color:"hotpink",qosMetric:true},VP_MEDIA_CHANGE:{type:"tvpmc",desc:"Player media change to Playback Start",color:"hotpink",qosMetric:true},VP_INIT_TO_START:{type:"ttsapt",desc:"VideoPlayer init to Playback Start",color:"red",qosMetric:true},VP_INIT_TO_STARTSCREEN:{type:"titssc",desc:"VideoPlayer init to StartScreen Rendered",color:"red",qosMetric:true},AD_PLUGIN_QOS_METRIC:{type:"qaplc",desc:"Ad Plugin QOS metric",color:"saddlebrown",qosMetric:false},STREAM_REQUEST_TO_RENDER:{type:"treqtr",desc:"Stream Latency (From request to render)",color:"purple",qosMetric:true},STREAM_LOADED:{type:"tstreaml",desc:"Media Stream Loaded",color:"white",qosMetric:true},STREAM_PLAY_TO_RENDER:{type:"tsltps",desc:"Media playback start to video render",color:"white",qosMetric:true}};
f.namespace("VideoPlatform").QOS=J;var ai=J.Events;function M(){M.superclass.constructor.apply(this,arguments);}M.SERVICES={ULT:"ult",YWA:"ywa",COMSCORE:"cs",QOS:"qos"};M.NAME="MetricsModule";M.NS="metricsModule";M.ATTRS={model:{value:null},controller:{value:null},view:{value:null},service:{value:null},eventMap:{value:{}},allowedEvents:{value:{"PAGE_VIEW":"PAGE_VIEW","PAGE_UNLOAD":"PAGE_UNLOAD","PLAYER_LOADED":"PLAYER_LOADED","VIDEO_LOADED":"VIDEO_LOADED","PLAYBACK_REQUEST":"PLAYBACK_REQUEST","PLAYBACK_START":"PLAYBACK_START","PLAYBACK_PAUSE":"PLAYBACK_PAUSE","PLAYBACK_RESUME":"PLAYBACK_RESUME","PLAYBACK_COMPLETE":"PLAYBACK_COMPLETE","PLAYBACK_PROGRESS":"PLAYBACK_PROGRESS","PLAYBACK_SEEK":"PLAYBACK_SEEK","PLAYER_FULLSCREEN":"PLAYER_FULLSCREEN","PLAYER_ERR":"PLAYER_ERR","AD_START":"AD_START","CLICK_PLAY":"CLICK_PLAY","CLICK_PAUSE":"CLICK_PAUSE","CLICK_INFO":"CLICK_INFO","CLICK_FULLSCREEN":"CLICK_FULLSCREEN","CLICK_VOL_BTN":"CLICK_VOL_BTN","CLICK_VOL_SLIDER":"CLICK_VOL_SLIDER","CLICK_SEEKBAR":"CLICK_SEEKBAR","CLICK_THUMB":"CLICK_THUMB","CLICK_LINK":"CLICK_LINK","CLICK_EMBED":"CLICK_EMBED","CLICK_SHARE":"CLICK_SHARE","UI_INTERACT":"UI_INTERACT","YSWF_SWF_ONLY_INIT_TIME":"YSWF_SWF_ONLY_INIT_TIME","YSWF_READY":"YSWF_READY","YVAP_LOADED":"YVAP_LOADED","YVAP_READY":"YVAP_READY","YVAP_ADSTARTED":"YVAP_ADSTARTED","YVAP_NOAD":"YVAP_NOAD","YVAP_ERROR":"YVAP_ERROR","VP_CLICK_TO_START":"VP_CLICK_TO_START","VP_MEDIA_CHANGE":"VP_MEDIA_CHANGE","VP_INIT_TO_START":"VP_INIT_TO_START","VP_INIT_TO_STARTSCREEN":"VP_INIT_TO_STARTSCREEN","AD_PLUGIN_METRIC":"AD_PLUGIN_METRIC","AD_PLUGIN_QOS_METRIC":"AD_PLUGIN_QOS_METRIC","SAPI_LOADCLIPS":"SAPI_LOADCLIPS","SAPI_LOADPLAYLIST":"SAPI_LOADPLAYLIST","SAPI_LOADRELATED":"SAPI_LOADRELATED","YQL_LOAD_CC":"YQL_LOAD_CC"}},YWAProjectId:{value:"115488662",validator:f.Lang.isString},playerBeacons:{value:[],validator:f.Lang.isArray},isAd:{value:false,validator:f.Lang.isBoolean}};f.extend(M,f.Base,{initializer:function(Y){this._tokenMap={"FLASH_VERSION":"","COUNTRY_LANGUAGE_CODE":"","FULL_USER_AGENT":"","VIDEO_CLIP_ID":"","VIDEO_LENGTH":"","VIDEO_TITLE":"","VIDEO_WATCHED_PERCT":"","PAGE_SPACE_ID":"","REPORTING_DOMAIN":"","YVAP_ACCOUNT_ID":"","PLAYER_ERR_CODE":"","PLAYER_ERR_TYPE":"","PLAYER_ERR_MSG":"","YLT":"","PLAY_GUID":"","PLYR_SESS_GUID":"","CCM_PLAYLIST_ID":"","SECTION_NAME":"","SECTION_LINK_NAME":"","SECTION_LINK_POS":"","SECTION_TITLE":"","SECTION_LINK":"","COMSCORE_C4":"","COMSCORE_C5":"","COMSCORE_C6":"","PLAYER_INT32_GUID":"","MASTERPLAYER_INT32_GUID":"","PAGE_TITLE":"","PAGE_URL":"","PAGE_REFERRER":"","PLAYER_LOCATION":"","SITE":"","REGION":"","JURISDICTION":"","IS_LIVE":"","VIDEO_PLAYBACK_POS":"","VIDEO_SEQ_NUMBER":"","VIDEO_SEQ_START":"","CONTRACTING_PROPERTY":"","LICENSOR_NAME":"","LICENSOR_ID":"","LICENSE_NAME":"","LICENSE_ID":"","YWA_DPID":"","RANDOM_VALUE":"","YWA_PROJECT_ID":"","PLAYER_HOSTING_ENV":"","PLAYER_BUCKET":"","PLAYER_VERSION":"","PLAYER_WIDTH":"","PLAYER_HEIGHT":"","TIME_PREPARING":"","SAPI_RESPONSE_DELAY":"","PLAYBACK_START_DELAY":"","STATE":"","TIME_STATE":"","EVENT_BEGIN":"","EVENT_END":"","AUTOPLAY":"","SHOW_NAME":"","MEDIA_META_TAGS":"","EXPERIENCE_TYPE":"","EXPERIENCE_NAME":"","EXPERIENCE_BUCKET":"","BITRATE":"","DOWNLOAD_SPEED":"","VIDEO_STREAM":"","RENDERER_TYPE":"","CUSTOM_PARAMS":"","YVAP_LOADED":"","YVAP_READY":"","YVAP_ADSTARTED":"","YVAP_NOAD":"","YVAP_ERROR":"","VP_CLICK_TO_START":"","VP_MEDIA_CHANGE":"","VP_INIT_TO_START":"","VP_INIT_TO_STARTSCREEN":"","UI_INTERACT_PAYLOAD":"","SAPI_LOADCLIPS":"","SAPI_LOADPLAYLIST":"","SAPI_LOADRELATED":"","YQL_LOAD_CC":"","CONTINUOUS_PLAY":"","CONTINUOUS_PLAY_COUNT":"","CMS_STATUS_CODE":"","VIDEO_TYPE":"","AUTOCONTINUE":"","VIDEO_PREFETCH":"","RETRY_COUNT":"","HD_AVAILABLE":"","PROGRESS":"","TIME_WAITING":"","BANDWIDTH":"","PAGE_SID":"","SYNDICATION":""};this.Constants={"PROG_BEACON_LENGTH":10};this._lastValidProgVal=0;this.set("model",Y.model);this.set("controller",Y.controller);this.set("view",Y.view);this.set("service",new f.VideoPlatform.BeaconService());this._seqNum=0;this._seqStart=0;this._progressHandler=null;this._seekStart=0;this._startedFired=false;this._startTime=null;this._startTimer();this._ttPreparing=0;this._ttPreparingEnd=0;this._ttPrepared=0;this._ttStarted=0;this._ttPlaying=0;this._timeWaiting=0;this._continuousPlayCount=0;this._defaultConfigParam="na";this._htmlBitrate=null;this.setup();},parseHostingConfig:function(){var Y=f.VideoPlatform.playerBeaconList.init();if(Y){this.set("playerBeacons",Y);}else{}},_deferBeacons:function(ak){var Y=this.get("model"),ao=YVAPEvents,al=ak;function an(){Y.after("playerStateChange",am,this);}function ap(aq){switch(aq.newVal){case ao.AD_START:al.run();break;case ao.AD_NONE:case ao.AD_ERROR:an();break;}}function am(aq){switch(aq.newVal){case Z.STARTED:case Z.ERROR:al.run();Y.detach("playerStateChange",am,this);break;}}al.pause();if(Y.get("YVAPRequired")===true){Y.once("yvapStateChange",ap,this);}else{an();}},setup:function(){this.parseHostingConfig();this.parse(this.get("playerBeacons"));if(this.get("model")){var Y=this.get("model"),ak=this;this.setupHandlers();Y.after("isInitializedChange",function(am){var al=am.newVal;if(al){ak._evalStaticTokens();if(!f.Object.getValue(window,["YAHOO","VideoPlatform","Metrics","PageView"])){ak._tokenMap.MASTERPLAYER_INT32_GUID=ak._tokenMap.PLAYER_INT32_GUID;f.Object.setValue(window,["YAHOO","VideoPlatform","Metrics"],{"PageView":null,"MasterPlayer":null});f.Object.setValue(window,["YAHOO","VideoPlatform","Metrics","MasterPlayer"],ak._tokenMap.PLAYER_INT32_GUID);f.Object.setValue(window,["YAHOO","VideoPlatform","Metrics","PageView"],true);ak.process(ak.get("allowedEvents").PAGE_VIEW);}else{ak._tokenMap.MASTERPLAYER_INT32_GUID=f.Object.getValue(window,["YAHOO","VideoPlatform","Metrics","MasterPlayer"]);}ak.process(ak.get("allowedEvents").PLAYER_LOADED);}},this);Y.after("beaconsChange",function(al){ak.remove(al.prevVal);ak.parse(al.newVal);},this);Y.after("currentMediaChange",function(am){var al,an;if(f.Lang.isValue(am.prevVal)){al=am.prevVal.get("metrics.beacons");
ak.remove(al);}if(f.Lang.isValue(am.newVal)){an=am.newVal.get("metrics.beacons");ak.parse(an);}this._startedFired=false;if(this._progressHandler){this._progressHandler.detach();this._progressHandler=null;}},this);Y.before("playerStateChange",function(al){switch(al.newVal){case Z.PREPARING:this._ttPreparing=this._getElapsedTime();break;case Z.PREPARED:this._ttPrepared=this._getElapsedTime();break;case Z.STARTED:this._ttStarted=this._getElapsedTime();break;case Z.POSTSTARTED:this._ttPoststarted=this._getElapsedTime();break;}if(al.prevVal===Z.PREPARING){this._ttPreparingEnd=this._getElapsedTime();}},this);}},parse:function(ak){var ao=this.get("eventMap"),am=this.get("allowedEvents"),Y=this.get("model"),an=Y.get("hostingData.bucket"),al=this;if(f.Lang.isArray(ak)&&ak.length>0){f.each(ak,function(ap){if(!al._validateBeacon(ap)){return;}if(f.Lang.isNumber(ap.samplePerct)&&(!f.Lang.isNumber(an)||ap.samplePerct0&&f.Lang.isValue(Y.data)&&Y.data.length>0){return true;}return false;},remove:function(Y){var ak=this.get("eventMap");if(f.Lang.isArray(Y)&&Y.length>0){f.each(Y,function(al){if(!f.Lang.isValue(al.urlTemplate)){return;}f.each(al.events,function(an){var am=an.name,ao=ak[am];if(f.Lang.isArray(ao)){ao.splice(f.Array.indexOf(ao,al.urlTemplate),1);}});});}},setupHandlers:function(){var an=this.get("allowedEvents"),ak=this._tokenMap,Y=this.get("model"),ao={},ap,am=Y.get("profileData"),al=this.get("view");Y.after("isPlayingChange",function(aq){if(aq.newVal){if(this._startedFired){this.process(an.PLAYBACK_RESUME);}else{this._ttPlaying=this._getElapsedTime();this._seqNum=1;this._seqStart=Y.get("playbackPosition");if(this._progressHandler){this._progressHandler.detach();this._progressHandler=null;}this._progressHandler=this._startProgressPolling(this._seqStart,Y.get("currentMedia").get("duration"));if(Y.get("continuousPlay")){++this._continuousPlayCount;}this._htmlBitrate=al.videoRenderer.get("streamBitrate")||null;this.process(an.PLAYBACK_START);this._startedFired=true;}}},this);ao[Z.PREPARING]=an.PLAYBACK_REQUEST;ao[Z.LOADED]=an.VIDEO_LOADED;ao[Z.PAUSED]=an.PLAYBACK_PAUSE;ao[Z.PLAYBACKCOMPLETE]=an.PLAYBACK_COMPLETE;Y.on("playerStateChange",function(aq){if(aq.newVal in ao){if(aq.newVal===Z.PLAYBACKCOMPLETE){this._startedFired=false;if(this._progressHandler){this._progressHandler.detach();this._progressHandler=null;}}this.process(ao[aq.newVal]);}},this);Y.after("isWaitingChange",function(aq){if(aq.newVal===false){this._timeWaiting+=this._getElapsedTime()-prevWaitTime;}prevWaitTime=(aq.newVal===true)?this._getElapsedTime():null;},this);Y.after("isSeekingChange",function(aq){if(aq.newVal===true&&aq.prevVal===false){if(this._progressHandler){this._progressHandler.detach();this._progressHandler=null;}this._seekStart=Y.get("playbackPosition");}else{if(aq.newVal===false&&aq.prevVal===true){if(this._progressHandler){this._progressHandler.detach();this._progressHandler=null;}this._seqNum++;this._seqStart=this._seekStart;this.process(an.PLAYBACK_SEEK);this._seqStart=Y.get("playbackPosition");this._progressHandler=this._startProgressPolling(Y.get("playbackPosition"),Y.get("currentMedia").get("duration"));}}},this);ap={"controlsPlayButton":an.CLICK_PLAY,"controlsPauseButton":an.CLICK_PAUSE,"controlsInfoButton":an.CLICK_INFO,"controlsFullscreenButton":an.CLICK_FULLSCREEN,"controlsVolumeButton":an.CLICK_VOL_BTN,"controlsVolumeSlider":an.CLICK_VOL_SLIDER,"controlsSeekBar":an.CLICK_SEEKBAR,"startscreenPlay":an.CLICK_PLAY,"infoscreenThumb":an.CLICK_THUMB,"infoscreenLink":an.CLICK_LINK,"infoscreenEmbed":an.CLICK_EMBED,"infoscreenFacebook":an.CLICK_SHARE,"endscreenThumb":an.CLICK_THUMB,"endscreenLink":an.CLICK_LINK,"endscreenEmbed":an.CLICK_EMBED,"endscreenFacebook":an.CLICK_SHARE};Y.after("uiInteract",function(aq){if(aq.source in ap){if(ap[aq.source]===an.CLICK_FULLSCREEN&&!Y.get("fullscreen")){return;}this.process(ap[aq.source],aq);}},this);Y.after("uiInteract",function(aq){this.process(an.UI_INTERACT,aq);},this);Y.after("uiInteract",function(aq){if(aq.source.indexOf("pc-vid")>-1||aq.source.indexOf("es-vid")>-1||aq.source==="es-rpl"){this._continuousPlayCount=0;this._startedFired=false;}},this);Y.after("fullscreenChange",function(aq){if(aq.newVal===true&&aq.prevVal===false){this.process(an.PLAYER_FULLSCREEN);}},this);Y.after("errorChange",function(ar){var aq=ar.newVal;if(aq){ak.PLAYER_ERR_TYPE=aq.type;ak.PLAYER_ERR_CODE=aq.code;ak.PLAYER_ERR_MSG=H.fixedEncodeURIComponent(aq.message);this.process(an.PLAYER_ERR);}},this);Y.after("warningChange",function(au){if(au.newVal){var aq,at,ar,av=au.newVal;if(av){aq=av.type;at=av.code||"0";ar=av.message;ak.PLAYER_ERR_TYPE=aq;ak.PLAYER_ERR_CODE=at;ak.PLAYER_ERR_MSG=H.fixedEncodeURIComponent(ar);this.process(an.PLAYER_ERR);}}},this);Y.after("yvapStateChange",function(aw){var ar,av,au,at,ax={},aq=this._defaultConfigParam;this._handleAdFlag(aw.newVal);if(aw.newVal==="adError"){ar="300";av="0";au=Y.get("yvapData");au=f.Lang.isObject(au)?au:{};ax={};ax[o.TIMEOUT_YUILOAD]="406";ax[o.TIMEOUT_CREATE]="407";ax[o.TIMEOUT_PRE]="408";ax[o.TIMEOUT_POST]="409";ax[o.INIT]="100";ax[o.CREATE]="101";ax[o.SCRIPTING]="501";if(f.Lang.isValue(au.message)&&au.message in ax){av=ax[au.message];at=f.Lang.isValue(au.cause)?au.cause:aq;}else{if(f.Lang.isValue(au.type)&&au.type==="playerPluginLoadError"){av="404";at=f.Lang.isValue(au.message)?au.message:aq;}}ak.PLAYER_ERR_TYPE=ar;ak.PLAYER_ERR_CODE=av;ak.PLAYER_ERR_MSG=H.fixedEncodeURIComponent(at);
this.process(an.PLAYER_ERR);}else{if(aw.newVal==="loadError"){ar="300";au=Y.get("yvapData");if(f.Lang.isObject(au)&&f.Lang.isValue(au.cause)){if(au.cause==="jsLoadingTimeout"){av="401";}else{av="400";}ak.PLAYER_ERR_TYPE=ar;ak.PLAYER_ERR_CODE=av;ak.PLAYER_ERR_MSG=aq;this.process(an.PLAYER_ERR);}}else{if(aw.newVal==="adStart"){this.process(an.AD_START);}}}},this);f.Event.attach("unload",function(){this.process(an.PAGE_UNLOAD);this.get("service").stop();},window,this);if(am){am.on("itemAdded",function(aq){if(aq.item.type!==ai.VP_INIT_TO_START.type){this.handleQOSProfiling(aq.item);}},this);}Y.after("adPluginMetricChange",this._handleAdPluginMetric,this);Y.after("adPluginQosMetricChange",this._handleAdPluginQosMetric,this);},_getAdPluginData:function(al){var ak="",Y=al.data;f.each(Y,function(an,am){ak+="&"+am+"="+H.fixedEncodeURIComponent(an);});return ak;},_handleAdPluginMetric:function(Y){this._tokenMap.CUSTOM_PARAMS=this._getAdPluginData(Y.newVal);this.process(this.get("allowedEvents").AD_PLUGIN_METRIC);},_handleAdPluginQosMetric:function(Y){this._tokenMap.CUSTOM_PARAMS=this._getAdPluginData(Y.newVal);this.process(this.get("allowedEvents").AD_PLUGIN_QOS_METRIC);},handleQOSProfiling:function(ak){var al=ai,Y;switch(ak.type){case al.YVAP_LOADED.type:Y="YVAP_LOADED";break;case al.YVAP_READY.type:Y="YVAP_READY";break;case al.YVAP_ADSTARTED.type:Y="YVAP_ADSTARTED";break;case al.YVAP_NOAD.type:Y="YVAP_NOAD";break;case al.YVAP_ERROR.type:Y="YVAP_ERROR";break;case al.VP_CLICK_TO_START.type:Y="VP_CLICK_TO_START";break;case al.VP_MEDIA_CHANGE.type:Y="VP_MEDIA_CHANGE";break;case al.VP_INIT_TO_START.type:Y="VP_INIT_TO_START";break;case al.VP_INIT_TO_STARTSCREEN.type:Y="VP_INIT_TO_STARTSCREEN";break;case al.YQL_LOAD_CC.type:Y="YQL_LOAD_CC";break;}if(Y){this._processQosBeacons(Y,ak);}},fireSAPIBeacons:function(ao,an){var am=ai,al,ak,Y=this;if(!ao){return;}switch(ao.type){case am.SAPI_LOADCLIPS.type:al="SAPI_LOADCLIPS";break;case am.SAPI_LOADPLAYLIST.type:al="SAPI_LOADPLAYLIST";break;case am.SAPI_LOADRELATED.type:al="SAPI_LOADRELATED";break;}if(!f.Lang.isValue(an)||!al){return;}for(ak in an){if(an.hasOwnProperty(ak)){Y._tokenMap[ak]=an[ak];}}this._processQosBeacons(al,ao);},_processQosBeacons:function(Y,ak){this._tokenMap.QOS_TIMER_DIFF=ak.timeDiff;this._tokenMap[Y]=ak.timeDiff;if(ak.queryStringExtn){this._tokenMap.QOS_TIME_BREAKUP=ak.queryStringExtn;}this.process(Y);},process:function(am,ao){var ak=this.get("eventMap")[am],Y=this._tokenMap,al=this.get("service");if(typeof ak==="undefined"){return;}try{this._evalDynTokens(ao,am);}catch(an){}f.each(ak,function(ap){al.set("beaconTemplate",ap.url);al.create(Y);al.send();});},_evalStaticTokens:function(){var am=this.get("model"),ax=this._tokenMap,ao=f.Cookie.get("ywadp"+this.get("YWAProjectId")),an,au=this._getTopDocument(),ar=this._defaultConfigParam,aq=H.fixedEncodeURIComponent,Y=am.START_TIME,at=typeof window.performance==="object"&&window.performance.timing||{},ap=at.fetchStart||null,al=at.responseStart||null,ak=at.responseEnd||null,aw;ax.FLASH_VERSION=(am.get("rendererType")==="flash")?aq(this._getFlashVersionString()):ar;ax.COUNTRY_LANGUAGE_CODE=aq(String(am.get("lang")).toLowerCase());ax.FULL_USER_AGENT=aq(f.UA.userAgent);ax.PAGE_SPACE_ID=aq(am.get("pageSpaceId"));ax.YVAP_ACCOUNT_ID=aq(am.get("YVAP.accountId")||ar);ax.PLYR_SESS_GUID=aq(am.get("guid"));ax.COMSCORE_C4=aq(am.get("comscoreC4")||ar);ax.PLAYER_INT32_GUID=Math.floor(Math.random()*4294967295);ax.PAGE_TITLE=aq(au?au.title:"unavailable");ax.PAGE_REFERRER=aq(this._trimLongUrls(au?au.referrer:"unavailable"));ax.SITE=aq(am.get("site")?am.get("site").toLowerCase():ar);ax.REGION=aq(am.get("region")?am.get("region").toLowerCase():ar);ax.JURISDICTION=aq(am.get("jurisdiction")||ar);ax.BANDWIDTH=f.Cookie.getSub("BA","ba");aw=am.get("pageLatency");aw=typeof aw==="object"?aw:{};ax.PAGE_PLAYERJS_DL_START=aq(aw.pagePlayerJsDownloadStart||ar);ax.PAGE_PLAYERJS_DL_TIME=aq(aw.pagePlayerJsDownloadTime||ar);ax.PAGE_MEDIA_ITEM_PREFETCH_TIME=aq(aw.pageMediaItemPrefetchTime||ar);ax.PAGE_LATENCY=at?aq((Y?(Y-ap):ar)):ar;ax.TIMING_DNS=at?aq(at.domainLookupEnd-at.domainLookupStart):ar;ax.TIMING_CONNECT=at?aq(at.connectEnd-at.connectStart):ar;ax.TIMING_TTFB=at?aq(al-at.requestStart):ar;ax.TIMING_BASE_PAGE=at?aq(ak-al):ar;ax.TIMING_FRONTEND=at?aq(at.loadEventStart-ak):ar;ax.PLAYER_LOCATION=!this._isOnNetwork()?"3":(this._isIFrame()?"2":"1");if(!f.Lang.isValue(ao)){ao=""+Math.floor(Math.random()*4294967295);an=new Date();an.setTime(an.getTime()+94608000000);f.Cookie.set("ywadp"+this.get("YWAProjectId"),ao,{expires:an});}ax.YWA_DPID=""+ao;ax.YWA_PROJECT_ID=this.get("YWAProjectId");ax.PLAYER_HOSTING_ENV=am.get("hostingData.env")||ar;ax.PLAYER_BUCKET=am.get("hostingData.bucket")||ar;ax.PLAYER_VERSION=am.get("version")||ar;ax.AUTOPLAY=am.get("autoplay")?"true":"false";ax.EXPERIENCE_TYPE=aq(String(am.get("expType")).toLowerCase());ax.EXPERIENCE_NAME=aq(String(am.get("expName")).toLowerCase());ax.EXPERIENCE_BUCKET=aq(am.get("expBucket")?am.get("expBucket").toLowerCase():ar);ax.CONTINUOUS_PLAY=am.get("continuousPlay")?"1":"0";if(!ax.PAGE_SID){try{if(window.YAHOO&&window.YAHOO.i13n&&window.YAHOO.i13n.currentSID){ax.PAGE_SID=window.YAHOO.i13n.currentSID;}else{ax.PAGE_SID=ar;}}catch(av){ax.PAGE_SID=ar;}}},_evalDynTokens:function(aJ,aF){var ay=this.get("model"),am=this._tokenMap,aE=ay.get("playlist"),aC=ay.get("playlistPosition"),an=ay.get("playbackPosition"),ao=(ay.get("currentMedia")||aE.items().item((aC>=0)?aC:0)),aB=(ao?ao.get("duration"):null),au=(ao?ao.get("comscoreC5"):null),at=(ao?ao.get("comscoreC6"):null),Y=ay.get("continuousPlay"),aq,aH,ax,aG,ak,aA,ap,aD,av,aI=this._defaultConfigParam,az=this._getTopDocument(),aw=ay.get("hostingData"),al="",ar=H.fixedEncodeURIComponent;if(f.Lang.isNumber(aB)){aB=Math.floor(aB);}am.PAGE_URL=ar(this._trimLongUrls(az?az.URL:document.referrer));am.RANDOM_VALUE=Math.random();if(ay.get("rendererType")==="html"){am.RENDERER_TYPE="h";}else{am.RENDERER_TYPE="f";}am.TIME_PREPARING=this._ttPreparingEnd-this._ttPreparing;
av=this._ttPlaying-this._ttStarted;am.PLAYBACK_START_DELAY=am.TIME_PREPARING+av;am.STATE=ay.get("playerState");if(f.Lang.isObject(ao)){if(aF!=="SAPI_LOADCLIPS"&&aF!=="SAPI_LOADPLAYLIST"&&aF!=="SAPI_LOADRELATED"){if(!f.Lang.isValue(ao.get("id"))&&f.Lang.isValue(ao.get("streamUrl"))){am.VIDEO_CLIP_ID=H.generateHashCode(ao.get("streamUrl"),"custom");}else{am.VIDEO_CLIP_ID=ar(ao.get("id")||aI);}am.VIDEO_TITLE=encodeURIComponent(ao.get("title")||aI);}else{am.VIDEO_CLIP_ID=aI;am.VIDEO_TITLE=aI;}if(am.VIDEO_LENGTH!==""&&am.VIDEO_LENGTH!==aI){am.VIDEO_LENGTH=(f.Lang.isValue(aB)&&aB>0&&Math.abs(aB-am.VIDEO_LENGTH)>2)?aB:am.VIDEO_LENGTH;}else{am.VIDEO_LENGTH=f.Lang.isValue(aB)?aB:aI;}am.VIDEO_PLAYBACK_POS=f.Lang.isValue(an)?an:"0";am.VIDEO_WATCHED_PERCT=(aB&&aB>0)?Math.floor(100*an/aB):"0";am.PLAY_GUID=encodeURIComponent(ao.get("metrics.pls")||aI);am.COMSCORE_C5=encodeURIComponent(f.Lang.isValue(au)?au:aI);am.COMSCORE_C6=encodeURIComponent(f.Lang.isValue(at)?at:aI);am.IS_LIVE=ao.get("isLive")?"1":"0";am.VIDEO_PREFETCH=ao.get("isPreFetched");am.AUTOCONTINUE=ao.get("autoContinue");am.CONTRACTING_PROPERTY=encodeURIComponent(ao.get("originatingProperty")||aI);am.LICENSOR_NAME=encodeURIComponent(ao.get("licensorName")||aI);am.LICENSOR_ID=encodeURIComponent(ao.get("licensorId")||aI);am.LICENSE_NAME=encodeURIComponent(ao.get("licenseName")||aI);am.LICENSE_ID=encodeURIComponent(ao.get("licenseId")||aI);am.EVENT_BEGIN=encodeURIComponent(ao.get("eventBeginTime")||aI);am.EVENT_END=encodeURIComponent(ao.get("eventEndTime")||aI);am.SHOW_NAME=encodeURIComponent(ao.get("showName")||aI);am.MEDIA_META_TAGS=encodeURIComponent(ao.get("metrics.metaTags")||aI);am.BITRATE=ao.get("mediaInfo.currentStreamBitrate")||aI;am.DOWNLOAD_SPEED=ao.get("mediaInfo.currentKbps")||aI;am.VIDEO_STREAM=ao.get("mediaInfo.streamUrl")||aI;am.PLAYER_WIDTH=ar(ay.get("width")||aI);am.PLAYER_HEIGHT=ar(ay.get("height")||aI);am.CMS_STATUS_CODE=ar(ao.get("status.code")||aI);am.SYNDICATION=ar(ay.get("synd")||"");if(ao.get("isLive")){al="_l";}else{if(aw&&aw.bucket<=10){al="_vod_dc";}}am.VP_INIT_TO_START_SUFFIX=al;switch(aF){case"PLAYBACK_PROGRESS":am.PROGRESS=this.Constants.PROG_BEACON_LENGTH;am.TIME_WAITING=this._timeWaiting;this._lastValidProgVal=an;this._timeWaiting=0;break;case"PLAYBACK_COMPLETE":am.PROGRESS=f.Lang.isValue(aB)?(aB-this._lastValidProgVal)%this.Constants.PROG_BEACON_LENGTH:aI;am.TIME_WAITING=this._timeWaiting;this._timeWaiting=0;break;case"PLAYBACK_SEEK":am.PROGRESS=(f.Lang.isValue(aB)&&this._seqStart!==aB)?this._seqStart-this._lastValidProgVal:aI;this._lastValidProgVal=an;am.TIME_WAITING=this._timeWaiting;this._timeWaiting=0;break;default:am.PROGRESS=aI;}if(typeof(aD=ao.get("hdAvailable"))!=="undefined"){am.HD_AVAILABLE=aD().toString();}else{am.HD_AVAILABLE=aI;}ap=ao.get("isLive");if(this.get("isAd")){am.VIDEO_TYPE="ad";}else{if(ap){am.VIDEO_TYPE="live";}else{if(ao.get("streamUrl")){am.VIDEO_TYPE="stream";}else{am.VIDEO_TYPE=(typeof ap==="undefined")?aI:"clip";}}}if(am.BITRATE===aI){am.BITRATE=(this._htmlBitrate!==null)?this._htmlBitrate:aI;}}else{am.VIDEO_CLIP_ID=aI;am.VIDEO_LENGTH=aI;am.VIDEO_TITLE=aI;am.VIDEO_PLAYBACK_POS=aI;am.VIDEO_WATCHED_PERCT=aI;am.PLAY_GUID=aI;am.COMSCORE_C5=aI;am.COMSCORE_C6=aI;am.IS_LIVE=aI;am.CONTRACTING_PROPERTY=aI;am.LICENSOR_NAME=aI;am.LICENSOR_ID=aI;am.LICENSE_NAME=aI;am.LICENSE_ID=aI;am.EVENT_BEGIN=aI;am.EVENT_END=aI;am.SHOW_NAME=aI;am.BITRATE=aI;am.DOWNLOAD_SPEED=aI;am.VIDEO_STREAM=aI;am.VIDEO_TYPE=aI;am.VIDEO_PREFETCH=aI;am.AUTOCONTINUE=aI;am.HD_AVAILABLE=aI;am.PLAYER_WIDTH=aI;am.PLAYER_HEIGHT=aI;am.CMS_STATUS_CODE=aI;am.PROGRESS=aI;am.TIME_WAITING=aI;}am.VIDEO_SEQ_NUMBER=this._seqNum;am.VIDEO_SEQ_START=this._seqStart;am.CONTINUOUS_PLAY=(Y&&aE.items().size()>1)?"1":"0";if(Y){am.CONTINUOUS_PLAY_COUNT=this._continuousPlayCount;}if(aJ){aq={"startscreen":"st","infoscreen":"inf","endscreen":"end","controls":"pb"};aH={"PlayButton":"pl","Play":"pl","PauseButton":"ps","InfoButton":"inf","SeekBar":"sk","VolumeSlider":"vol","FullscreenButton":"fs","Link":"lk","Embed":"emb","Facebook":"facebook"};aA={"Facebook":"btn-sh-fb","Embed":"btn-sh-emb","Link":"btn-sh-emb-lnk","EmbedLink":"btn-sh-emb-emb"};ax=aJ.source.match(/^([^A-Z\-]*)(?:\-?)(.*)/);aG=aq[ax[1]];ak=aH[ax[2]];if(ax[2]==="VolumeButton"){ak=ay.get("mute")?"mt":"un-mt";}else{if(ax[2]==="Thumb"){ak=(ax[1]==="endscreen")?"rpl":"pl";}}am.SECTION_NAME=(aG)?aG:"pb";am.SECTION_LINK_NAME=(ak)?ak:aI;if(f.Lang.isUndefined(aA[ax[2]])){am.SECTION_TITLE="ctrl";am.SECTION_LINK=aJ.source;}else{am.SECTION_TITLE="sh";am.SECTION_LINK=aA[ax[2]];}switch(aJ.source){case"controlsCCButton":am.UI_INTERACT_PAYLOAD="cc-"+((aJ.selected===true)?"1":"0");break;default:am.UI_INTERACT_PAYLOAD=am.SECTION_LINK;break;}}else{am.SECTION_NAME="pb";am.SECTION_LINK_NAME=aI;}am.CCM_PLAYLIST_ID=ar(aE.get("id")||aI);},_isVideoLive:function(){return this.get("model").get("currentMedia").get("isLive");},_startProgressPolling:function(Y,ak){return this.get("model").after("playbackPositionChange",function(al){var am;this._seekStart=al.newVal;if((al.newVal>=ak)&&!this._isVideoLive()){if(this._progressHandler){this._progressHandler.detach();this._progressHandler=null;}return;}am=al.newVal-Y;if(am>0&&((am%this.Constants.PROG_BEACON_LENGTH)===0)){this.process(this.get("allowedEvents").PLAYBACK_PROGRESS);}},this);},_startTimer:function(){this._startTime=new Date().getTime();},_getElapsedTime:function(){if(this._startTime){return new Date().getTime()-this._startTime;}else{return 0;}},_getTopDocument:function(){try{return window.top.document;}catch(Y){return null;}},_isIFrame:function(){try{if(window.top.location.href!==window.location.href){return true;}else{return false;}}catch(Y){return true;}},_isOnNetwork:function(){return H.isYahooDomain(H.getHostUrl());},_getFlashVersionString:function(){var al="",ak=f.UA,Y;Y=H.getFlashVersion();switch(Y){case 0:al="";break;case 6:al="ShockwaveFlash 6.0";break;default:if(ak.gecko||ak.webkit||ak.opera){al=Y;}else{al=Y.replace(/,/g,".");}}return al;},_trimLongUrls:function(Y){return Y.split("?")[0];
},_handleAdFlag:function(ak){var Y=(ak==="adStart"||ak==="adProgress")?true:false;this.set("isAd",Y);}});f.namespace("VideoPlatform").Metrics=M;function x(Y){x.superclass.constructor.apply(this,arguments);}x.NAME="PlayerBase";x.NS="playerBase";x.Events={PLAYBACK_READY:"playbackReady",PLAYBACK_PLAY:"playbackPlay",PLAYBACK_PLAYING:"playbackPlaying",PLAYBACK_PAUSED:"playbackPaused",PLAYBACK_PROGRESS:"playbackProgress",PLAYBACK_SEEK:"playbackSeek",PLAYBACK_SEEKED:"playbackSeeked",PLAYBACK_COMPLETE:"playbackComplete",PLAYBACK_ERROR:"playbackError",PLAYBACK_WARNING:"playbackWarning",PLAYBACK_WAITING:"playbackWaiting",FULLSCREEN_ENTER:"fullscreenEnter",FULLSCREEN_EXIT:"fullscreenExit",MUTE_CHANGE:"muteChange",VOLUME_CHANGE:"volumeChange",DURATION_CHANGE:"durationChange",UI_INTERACT:"uiInteract",MEDIA_INFO_UPDATE:"mediaInfoUpdate",BITRATE_CHANGE:"bitrateChange",PLAYER_READYSTATE:"readyState",PLAYER_RESIZE:"resize",CLIENT_RESIZE:"clientResize",CCAVAILABILITY_CHANGE:"ccAvailabilityChange"};var ae=x.Events;x.ATTRS={playbackPlugin:{value:null},readyState:{value:""},videoContainer:{value:""}};x.Constants={READY_STATE:{HAVE_NOTHING:0}};f.extend(x,f.Base,{initializer:function(){},destructor:function(){},render:function(){},load:function(Y){},play:function(){},pause:function(){},seek:function(Y){},getDuration:function(){},setVolume:function(Y){},setMute:function(Y){},setFullscreen:function(Y){},joinUrl:function(){var ak=function(al){return f.Lang.isString(al)&&al.length>0;},Y=function(al){return al.replace(/^\/*/,"").replace(/\/*$/,"");};return f.Array.map(f.Array.filter(f.Array(arguments),ak),Y).join("/");},shouldLoopVideo:function(){var Y=this._model,ak=Y.get("playlist").items();if(Y.get("loop")===false){return false;}if(!((Y.get("continuousPlay")===true)&&ak.size()>1)){return true;}return false;},updateControls:function(){},positionCaptions:function(Y){},computeAdClientSize:function(Y){return Y;},onMuteChange:function(Y){if(Y!==this._model.get("muted")){this.fire(ae.MUTE_CHANGE,Y);}},onSeeking:function(){this.fire(ae.PLAYBACK_SEEK);},onSeeked:function(){this.fire(ae.PLAYBACK_SEEKED);}});f.namespace("VideoPlatform").PlayerBase=x;function af(){af.superclass.constructor.apply(this,arguments);}af.NAME="LegoCMS";af.ATTRS={jsonpMethod:{value:f.jsonp},requestTimeout:{value:10},yqlStore:{value:"yahoo.media.video.streams"},env:{value:"prod"},yqlClipQuery:{value:"SELECT {columns} FROM {store} WHERE {idPredicate} AND {formatPredicate}"+" AND {protocolPredicate} AND {rendererTypePredicate} AND {playerGuidPredicate}"+" AND {yvapAcctIdPredicate} AND {playContextPredicate} AND {pageSpaceIdPredicate}"+" AND {offnetworkPredicate} AND {sitePredicate} AND {langPredicate} AND {regionPredicate}"+" AND {overridePredicate} AND {channelIdPredicate} AND {syndicationPredicate};"},yqlRelatedQuery:{value:"SELECT {columns} from yahoo.media.video.related({startPredicate},{countPredicate}) WHERE {idPredicate} "+"AND {playerGuidPredicate} AND {sitePredicate} AND {regionPredicate} AND {algoPredicate} "+"AND {langPredicate} AND {offnetworkPredicate} AND {widthPredicate} AND {heightPredicate};"},yqlPlaylistQuery:{value:"SELECT * from yahoo.media.video.playlist{countPredicate} "+"WHERE {idPredicate} AND {startVideoPredicate} AND {playIndexPredicate} AND {playerGuidPredicate} "+"AND {sitePredicate} AND {regionPredicate} AND {langPredicate} "+"AND {yvapAcctIdPredicate} AND {playContextPredicate} AND {pageSpaceIdPredicate} "+"AND {formatPredicate} AND {protocolPredicate} AND {offnetworkPredicate} AND {overridePredicate} "+"AND {widthPredicate} AND {heightPredicate} AND {syndicationPredicate};"},yqlMetaQuery:{value:"SELECT * from yahoo.media.video.abstract WHERE {idPredicate} "+"AND {sitePredicate} AND {langPredicate} AND {regionPredicate};"},yqlMultiClipsQuery:{value:"SELECT * from yql.query.multi WHERE {queriesPredicate}"},yqlCcTtmlQuery:{value:"SELECT * from xml WHERE {ttmlUrlPredicate}"},relatedCount:{value:20,validator:f.Lang.isNumber},relatedStart:{value:0,validator:f.Lang.isNumber},algoContent:{value:"mmsearch, core, ib, tags"},relatedVideosColumns:{value:["status, mediaObj.id, mediaObj.meta, mediaObj.status, mediaObj.license"]},playlistCount:{value:12,validator:f.Lang.isNumber},host:{value:"video.query.yahoo.com"},atlasHost:{value:"atlas.cdn.yimg.com"},urlTemplate:{value:"//{host}/v1/public/yql?q={query}&env={env}&format=json&callback={callback}"},formats:{value:[],validator:f.Lang.isArray},protocols:{value:[],validator:f.Lang.isArray},heights:{value:{"large":345,"medium":175}},widths:{value:{"large":634,"medium":233}}};af.MIME_TYPE_MAP=(function(){return{"video/x-flv":H.formats.FLV,"video/mp4":H.formats.MP4,"video/webm":H.formats.WEBM,"application/vnd.apple.mpegurl":H.formats.M3U8,"audio/x-mpegurl":H.formats.M3U8,"application/f4m+xml":H.formats.F4M};}());f.extend(af,f.Base,{_model:null,_controller:null,log:function(ak,Y){},initializer:function(al){var Y=(al||{}).model,ak=(al||{}).controller,am=Y?Y.get("rendererType"):"flash";this._model=Y;this._controller=ak;this._sapiRetry="true";this.updateRendererType(am);if(Y){Y.after("rendererTypeChange",function(an){this.updateRendererType(an.newVal);},this);Y.after("isPlayingChange",function(ao){var an;if(ao.newVal){an=Y.get("currentMedia");if(an.get("streamUrlOwner")===this.name){an.set("streams",undefined);}}},this);}},updateRendererType:function(ak){var Y=H.getFormatsAndProtocols(ak);this.set("formats",Y.formats);this.set("protocols",Y.protocols);},loadClips:function(ax,aL){var at=f.Lang.sub,ay=this,aB=ay._model,aK=ay.constructor.NAME,az=ay._controller,an,am,ap,aM=ay.get("jsonpMethod"),av=ay.get("requestTimeout")*1000,Y=aL.context||null,aI=f.VideoPlatform.ErrorObject,aG=aI.ERROR,au=aI.LEVEL,aw=az?az.getProfiler():null,aC=az?az.getMetricsModule():null,aq,al,aA,aH,aF=0,aJ=null;an=ay.getClipsQuery(["*"],ay.clipIds(ax));aq=aG.CMS_TIMEOUT_LOADCLIPS_ALL;al=aG.CMS_RESPONSE_LOADCLIPS_ALL;aA=aG.CMS_TIMEOUT_LOADCLIPS_ALL_RETRY;aH=aG.CMS_REQUEST_LOADCLIPS_ALL_RETRY;am=at(ay.get("urlTemplate"),{host:aB.get("SAPI_CONF").host||aB.get("CMS").host||ay.get("host"),env:aB.get("CMS").env||ay.get("env"),query:encodeURIComponent(an)});
function ao(aN){aL.failure.call(Y,aN);}function ar(aN){var aP=aN.error,aQ={"RETRY_COUNT":aF},aO;if(aw){aw.setEndTime(ai.SAPI_LOADCLIPS.type,aJ);ap=aw.getItem(ai.SAPI_LOADCLIPS.type,aJ);if(aC){aC.fireSAPIBeacons(ap,aQ);}}if(aP){aO=aP.status||al.code;ao(new aI(al.type,aO,aK,"loadClips; "+aP.description,au.CRITICAL));}else{aL.success.call(Y,ay.parseStreamsResponse(aN));}}if(aw){aJ=aw.add(ai.SAPI_LOADCLIPS);}function aE(aQ){var aP=(f.Lang.isArray(aQ.errors))?aQ.errors[0].error:aQ.msg||aQ.description||aQ.statusText||"",aO=new aI(aG.CMS_REQUEST.type,aG.CMS_REQUEST.code,aK,"loadClips-"+aP,au.CRITICAL),aN=new aI(aH.type,aH.code,aK,"LoadClips-1st attempt failure warning: "+aQ.msg+";"+aQ.description,au.WARNING);aD(aN,aO);}function aD(aO,aN){if(ay._sapiRetry!=="true"||++aF!==1){ao(aN);return;}az.warn(aO);aM(am,{on:{success:ar,failure:aE,timeout:ak},timeout:av,context:ay});}function ak(aQ){var aP=(f.Lang.isArray(aQ.errors))?aQ.errors[0].error:aQ.msg||aQ.description||aQ.statusText||"",aO=new aI(aq.type,aq.code,aK,"loadClips-"+aP,au.CRITICAL),aN=new aI(aA.type,aA.code,aK,"LoadClips-1st attempt Timeout Warning: "+aQ.msg+";"+aQ.description,au.WARNING);aD(aN,aO);}aM(am,{on:{success:ar,failure:aE,timeout:ak},timeout:av,context:ay});},loadPlaylist:function(aJ,an,aN,at,aM){var av=f.Lang.sub,az=this,aB=az._model,ar,aL=az.constructor.NAME,aA=az._controller,ap=az.getPlaylistQuery(aJ,an,aN,at),ao=av(az.get("urlTemplate"),{host:aB.get("SAPI_CONF").host||aB.get("CMS").host||az.get("host"),env:aB.get("CMS").env||az.get("env"),query:encodeURIComponent(ap)}),aO=az.get("jsonpMethod"),ax=az.get("requestTimeout")*1000,ak=aM.context||null,aK=f.VideoPlatform.ErrorObject,aH=aK.ERROR,aw=aK.LEVEL,aG=aH.CMS_TIMEOUT_LOADPLAYLIST,Y=aH.CMS_RESPONSE_LOADPLAYLIST,aI=aH.CMS_TIMEOUT_LOADPLAYLIST_RETRY,am=aH.CMS_REQUEST_LOADPLAYLIST_RETRY,ay=(aA)?aA.getProfiler():null,aC=aA?aA.getMetricsModule():null,aF=0;function aq(aP){aM.failure.call(ak,aP);}function au(aP){var aS=aP,aU=aS.query||null,aR=aS.error||null,aT={"RETRY_COUNT":aF},aQ;if(ay){ay.setEndTime(ai.SAPI_LOADPLAYLIST.type);ar=ay.getItem(ai.SAPI_LOADPLAYLIST.type);if(aC){aC.fireSAPIBeacons(ar,aT);}}if(aR){aQ=aR.status||Y.code;aq(new aK(Y.type,aQ,aL,"loadPlaylist; "+aR.description,aw.CRITICAL));}else{if(aU&&aU.results){aM.success.call(ak,this.parsePlaylistResponse(aS));}else{aQ=Y.code;aq(new aK(Y.type,aQ,aL,"loadPlaylist; null results",aw.CRITICAL));}}}function aD(aQ,aP){if(az._sapiRetry!=="true"||++aF!==1){aq(aP);return;}aA.warn(aQ);aO(ao,{on:{success:au,failure:aE,timeout:al},timeout:ax,context:az});}function aE(aS){var aR=(f.Lang.isArray(aS.errors))?aS.errors[0].error:aS.msg||aS.description||aS.statusText||"",aQ=new aK(aH.CMS_REQUEST.type,aH.CMS_REQUEST.code,aL,"loadPlaylist; "+aR,aw.CRITICAL),aP=new aK(am.type,am.code,aL,"LoadPlaylist-1st Attempt Failure Warning: "+aS.msg+";"+aS.description,aw.WARNING);aD(aP,aQ);}function al(aS){var aR=(f.Lang.isArray(aS.errors))?aS.errors[0].error:aS.msg||aS.description||aS.statusText||"",aQ=new aK(aG.type,aG.code,aL,"loadPlaylist; "+aR,aw.CRITICAL),aP=new aK(aI.type,aI.code,aL,"LoadPlaylist-1st attempt Timeout Warning: "+aS.msg+";"+aS.description,aw.WARNING);aD(aP,aQ);}if(ay){ay.add(ai.SAPI_LOADPLAYLIST);}aO(ao,{on:{success:au,failure:aE,timeout:al},timeout:ax,context:az});},loadRelatedVideos:function(aE,aJ){var ax=this,az=ax._model,ay=ax._controller,ap,aI=ax.constructor.Name,an=ax.getRelatedVideosQuery(aE.get("id")),am=f.Lang.sub(ax.get("urlTemplate"),{host:az.get("SAPI_CONF").host||az.get("CMS").host||ax.get("host"),env:az.get("CMS").env||ax.get("env"),query:encodeURIComponent(an)}),aL=ax.get("jsonpMethod"),au=ax.get("requestTimeout")*1000,Y=aJ.context||null,aH=f.VideoPlatform.ErrorObject,aG=aH.ERROR,at=aH.LEVEL,al=null,aK=aG.CMS_TIMEOUT_LOADRELATED,aF=aG.CMS_RESPONSE_LOADRELATED,aw=aG.CMS_TIMEOUT_LOADRELATED_RETRY,ar=aG.CMS_REQUEST_LOADRELATED_RETRY,aA=ay?ay.getMetricsModule():null,aD=0,av=(ay)?ay.getProfiler():null;function ao(aM){aJ.failure.call(Y,aM);}function aq(aM){var aP=aM,aR=aP.query||null,aO=aP.error||null,aN,aQ={"RETRY_COUNT":aD};if(av){av.setEndTime(ai.SAPI_LOADRELATED.type,al);ap=av.getItem(ai.SAPI_LOADRELATED.type,al);if(aA){aA.fireSAPIBeacons(ap,aQ);}}if(aO){aN=aO.status||aF.code;ao(new aH(aF.type,aN,aI,"loadRelated; "+aO.description,at.CRITICAL));}else{if(aR&&aR.results){aJ.success.call(Y,this.parseEndScreenContentResponse(aM));}else{aN=aF.code;ao(new aH(aF.type,aN,aI,"loadRelated; null results",at.CRITICAL));}}}function aB(aN,aM){if(ax._sapiRetry!=="true"||++aD!==1){ao(aM);return;}ay.warn(aN);aL(am,{on:{success:aq,failure:aC,timeout:ak},timeout:au,context:ax});}function aC(aP){var aO=(f.Lang.isArray(aP.errors))?aP.errors[0].error:aP.msg||aP.description||aP.statusText||"",aN=new aH(aG.CMS_REQUEST.type,aG.CMS_REQUEST.code,aI,"loadRelatedVideos; "+aO,at.CRITICAL),aM=new aH(ar.type,ar.code,aI,"LoadRelated-1st Attempt failure warning: "+aP.msg+";"+aP.description,at.WARNING);aB(aM,aN);}function ak(aP){var aO=(f.Lang.isArray(aP.errors))?aP.errors[0].error:aP.msg||aP.description||aP.statusText||"",aN=new aH(aK.type,aK.code,aI,"loadRelatedVideos; "+aO,at.CRITICAL),aM=new aH(aw.type,aw.code,aI,"LoadRelated-1st attempt Timeout warning: "+aP.msg+";"+aP.description,at.WARNING);aB(aM,aN);}if(av){al=av.add(ai.SAPI_LOADRELATED);}aL(am,{on:{success:aq,failure:aC,timeout:ak},timeout:au,context:ax});},fetchClosedCaptionContent:function(at){var ao=this._model,av=this.getCcTtmlUrlQuery(),am=ai.YQL_LOAD_CC,Y=f.Lang.sub(this.get("urlTemplate"),{host:ao.get("SAPI_CONF").host||ao.get("CMS").host||this.get("host"),env:ao.get("CMS").env||this.get("env"),query:encodeURIComponent(av)}),ax=this.get("jsonpMethod"),aw=this.get("requestTimeout")*1000,al=at.context||null,ak=new k({model:this._model}),ay=f.VideoPlatform.ErrorObject,aq=ay.ERROR,ar=ay.LEVEL,aA=(this._controller)?this._controller.getProfiler():null;function an(aB){at.failure.call(al,aB);}function az(aB){ak.stop(am.type,am.desc);if(aA){aA.setEndTime(am.type);}ak=null;var aF=aB,aG=aF.query||null,aE=aF.error||null,aC,aD=f.VideoPlatform.ErrorObject.ERROR.CMS_RESPONSE_CLOSED_CAPTION;
if(aE){aC=aE.status||aD.code;an(new ay(aD.type,aC,this.constructor.NAME,"closedCaptions; "+aE.description,ar.CRITICAL));}else{if(aG&&aG.results){at.success.call(al,this.parseClosedCaptionContentResponse(aF));}else{aC=aD.code;an(new ay(aD.type,aC,this.constructor.NAME,"closedCaptions; null results",ar.CRITICAL));}}}function ap(aC){var aB=(f.Lang.isArray(aC.errors))?aC.errors[0].error:aC.msg||aC.description||aC.statusText||"";an(new ay(aq.CMS_REQUEST.type,aq.CMS_REQUEST.code,this.constructor.NAME,"loadClosedCaptionContent; "+aB,ar.CRITICAL));}function au(aC){var aB=(f.Lang.isArray(aC.errors))?aC.errors[0].error:aC.msg||aC.description||aC.statusText||"";an(new ay(aq.CMS_TIMEOUT_CLOSED_CAPTION.type,aq.CMS_TIMEOUT_CLOSED_CAPTION.code,this.constructor.NAME,"loadClosedCaptionContent; "+aB,ar.CRITICAL));}ak.start();if(aA){aA.add(am);}ax(Y,{on:{success:az,failure:ap,timeout:au},timeout:aw,context:this});},parseClosedCaptionContentResponse:function(ak){var ao={},al=null,am=null,Y=null,ap=null;try{al=ak.query.results;am=al.tt;Y=am.body.div.p;ao.entries={};ap=ao.entries;ap.times=[];ap.text=[];f.each(Y,function(aq){ap.text.push(aq.content);ap.times.push({start:this._parseClosedCaptionTime(aq.begin),end:this._parseClosedCaptionTime(aq.end)});},this);}catch(an){ao={entries:{}};}return ao;},_parseClosedCaptionTime:function(ak){var ap=ak.split(":"),ao=0,al,an,Y,aq,am;if(ap.length===3){al=ap[0];an=ap[1];Y=ap[2];}else{if(ap.length===2){al=0;an=ap[0];Y=ap[1];}else{al=0;an=0;Y=ap[0];}}Y=Y.split(/\s+/);aq=Y.splice(0,1)[0];aq=aq.split(/\.|,/);am=parseFloat(aq[1]);aq=aq[0];ao+=parseFloat(al)*3600;ao+=parseFloat(an)*60;ao+=parseFloat(aq);if(am){ao+=am/1000;}return ao;},parseStreamsResponse:function(Y){var am,al;try{if(Y.query.results.results){al=this.mergeResults(Y);}else{al=this.arrayify(Y.query.results.mediaObj);}am=f.Array.map(al,this.parseMediaObj,this);}catch(ak){am=false;}return am;},mergeResults:function(ak){var am=[],al,Y,an=[];ak.query.results=ak.query.results.results;Y=ak.query.results;for(al=0;al0){ak=Y[0].split(",");if(ak.length>0){Y.shift();f.each(ak,function(ap){if(f.Array.indexOf(Y,ap)<0){Y.push(ap);}},this);}}am.metrics.metaTags=Y;delete am.metrics.ywa;ao={type:f.VideoPlatform.ErrorObject.ERROR.CMS_METRICS_VALIDATION.type,code:f.VideoPlatform.ErrorObject.ERROR.CMS_METRICS_VALIDATION.code};if(f.Lang.isUndefined(al.comscore_cm5)){ao.msg="comscore_cm5 is undefined in cms response";this._model.set("warning",ao);}else{am.comscoreC5=al.comscore_cm5;}if(f.Lang.isUndefined(al.comscore6)){ao.msg="comscore6 is undefined in cms response";this._model.set("warning",ao);}else{am.comscoreC6=al.comscore6;}}al=an.yvap;if(al){am.adData=al;}al=an.visualseek;if(al){am.visualseek=this._parseVisualSeekNode(al);}al=an.closedcaptions;if(al){am.CC=al;}return am;},parseStreamNode:function(Y){return{format:this.typeToFormat(Y.mime_type),width:Y.width,height:Y.height,bitrate:Y.bitrate,duration:Y.duration,host:Y.host,path:Y.path};},_parseVisualSeekNode:function(Y){return{width:Y.width,height:Y.height,frequency:Y.frequency,images:f.Array.map(this.arrayify(Y.images),this._parseVisualSeekImagesNode,this)};},_parseVisualSeekImagesNode:function(Y){return{url:Y.url,count:Y.count,startIndex:Y.start_index};},typeToFormat:function(Y){var ak=af.MIME_TYPE_MAP;return ak[Y]||"";},arrayify:function(Y){return f.Lang.isArray(Y)?Y:[Y];},getClipsQuery:function(al,an){var ak=this._model,Y=",",am=ak.get("YVAP");return f.Lang.sub(this.get("yqlClipQuery"),{store:this.get("yqlStore"),columns:al.join(","),idPredicate:this.remoteFilter("id",an),playerGuidPredicate:this.localFilter("plrs",ak.get("guid")),formatPredicate:this.localFilter("format",this.get("formats").join(Y)),rendererTypePredicate:this.localFilter("rt",ak.get("rendererType")),protocolPredicate:this.localFilter("protocol",this.get("protocols").join(Y)),offnetworkPredicate:this.localFilter("offnetwork",ak.get("isOffNetwork")),sitePredicate:this.localFilter("site",ak.get("site")),langPredicate:this.localFilter("lang",ak.get("lang")),regionPredicate:this.localFilter("region",ak.get("region")),yvapAcctIdPredicate:this.localFilter("acctid",am.get("accountId")),playContextPredicate:this._shouldSuppressAdContext()?'plidl=""':this.localFilter("plidl",am.get("playContext")),pageSpaceIdPredicate:this._shouldSuppressAdContext()?'pspid=""':this.localFilter("pspid",ak.get("pageSpaceId")),overridePredicate:this.localFilter("override",ak.get("lms")),channelIdPredicate:this.localFilter("plist",ak.get("playlist").get("id")),syndicationPredicate:this.localFilter("synd",ak.get("synd"))});
},_shouldSuppressAdContext:function(){var Y=this._model;if((Y.get("CMS").suppressAdContext)||(Y.get("emptySpaceIdContextToSapi"))){return true;}return false;},getPlaylistQuery:function(ak,al,am,ar){var an=this._model,at=",",aq=an.get("startVideo")||"",ao=an.get("YVAP"),av=an.get("autoplay")?"medium":"large",Y=an.get("width")||this.get("widths")[av],au=an.get("height")||this.get("heights")[av],ap=1;if(f.Lang.isNumber(ar)){ap=ar;}else{if(an.get("carousel")){ap=this.get("playlistCount");}}return f.Lang.sub(this.get("yqlPlaylistQuery"),{countPredicate:"("+al+","+ap+")",idPredicate:this.localFilter("id",ak),startVideoPredicate:this.localFilter("startvideo",aq),playIndexPredicate:this.localFilter("pidx",am),playerGuidPredicate:this.localFilter("plrs",an.get("guid")),sitePredicate:this.localFilter("site",an.get("site")),regionPredicate:this.localFilter("region",an.get("region")),langPredicate:this.localFilter("lang",an.get("lang")),formatPredicate:this.localFilter("format",this.get("formats").join(at)),protocolPredicate:this.localFilter("protocol",this.get("protocols").join(at)),yvapAcctIdPredicate:this.localFilter("acctid",ao.get("accountId")),playContextPredicate:this._shouldSuppressAdContext()?'plidl=""':this.localFilter("plidl",ao.get("playContext")),pageSpaceIdPredicate:this._shouldSuppressAdContext()?'pspid=""':this.localFilter("pspid",an.get("pageSpaceId")),offnetworkPredicate:this.localFilter("offnetwork",an.get("isOffNetwork")),overridePredicate:this.localFilter("override",an.get("lms")),widthPredicate:this.localFilter("width",Y),heightPredicate:this.localFilter("height",au),syndicationPredicate:this.localFilter("synd",an.get("synd"))});},getRelatedVideosQuery:function(an){var ak=this._model,am=380,Y=214,al=ak.get("endscreen").algoContent||this.get("algoContent");return f.Lang.sub(this.get("yqlRelatedQuery"),{columns:this.get("relatedVideosColumns").join(","),startPredicate:this.get("relatedStart"),countPredicate:this.get("relatedCount"),idPredicate:this.localFilter("id",an),playerGuidPredicate:this.localFilter("plrs",ak.get("guid")),sitePredicate:this.localFilter("site",ak.get("site")),regionPredicate:this.localFilter("region",ak.get("region")),algoPredicate:this.localFilter("algo",al),langPredicate:this.localFilter("lang",ak.get("lang")),offnetworkPredicate:this.localFilter("offnetwork",ak.get("isOffNetwork")),widthPredicate:this.localFilter("width",am),heightPredicate:this.localFilter("height",Y)});},getMetaQuery:function(ak,al){var Y=this._model;return f.Lang.sub(this.get("yqlMetaQuery"),{columns:ak.join(","),idPredicate:this.remoteFilter("id",al),sitePredicate:this.localFilter("site",Y.get("site")),regionPredicate:this.localFilter("region",Y.get("region")),langPredicate:this.localFilter("lang",Y.get("lang")),offnetworkPredicate:this.localFilter("offnetwork",Y.get("isOffNetwork"))});},getCcTtmlUrlQuery:function(){var Y=this._model,ak=Y.get("closedCaptionUrl")||"";return f.Lang.sub(this.get("yqlCcTtmlQuery"),{ttmlUrlPredicate:this.localFilter("url",ak)});},getMultiClipsQuery:function(am,an,ao){var al=this.getClipsQuery(am,an),Y=this.getMetaQuery(am,ao),ak="'"+al+Y+"'";return f.Lang.sub(this.get("yqlMultiClipsQuery"),{queriesPredicate:"queries = "+ak});},clipIds:function(Y){return f.Array.map(Y.toArray(),function(ak){return ak.id;});},getFirstClip:function(Y){var ak;if(f.Lang.isArray(Y)&&Y.length>0){ak=new Array(Y[0]);return ak;}return Y;},quoteStr:function(Y){return'"'+Y+'"';},remoteFilter:function(ak,Y){var al=ak;if(Y.length>1){al+=" IN ";al+="("+f.Array.map(Y,this.quoteStr).join(", ")+")";}else{al+="=";al+='"'+Y[0]+'"';}return al;},localFilter:function(Y,ak){return Y+"="+this.quoteStr(ak);}});f.namespace("VideoPlatform").LegoCMS=af;function z(){z.superclass.constructor.apply(this,arguments);this.queue=new f.AsyncQueue();this.isRunning=true;}z.NAME="BeaconService";z.NS="beaconService";z.ATTRS={beaconTemplate:{value:""},beacon:{value:""}};f.extend(z,f.Base,{create:function(al){var ak=this.get("beaconTemplate"),Y;if(ak!==""){Y=f.substitute(ak,al);this.set("beacon",Y);}},send:function(){var Y=this.get("beacon"),ak;if(Y!==""){ak=f.bind(this._getBeaconJob(Y),this);this.queue.add(ak);if(this.isRunning){this.queue.run();}return true;}return false;},_getBeaconJob:function(Y){return function(){var ak,al;ak=new Image();al=function(){ak.onload=null;ak.onabort=null;ak.onerror=null;ak=null;};ak.onload=al;ak.onabort=al;ak.onerror=al;ak.src=Y;};},run:function(){this.isRunning=true;this.queue.run();},pause:function(){this.isRunning=false;this.queue.pause();},stop:function(){this.isRunning=false;this.queue.stop();}});f.namespace("VideoPlatform").BeaconService=z;function i(){}function h(){h.superclass.constructor.apply(this,arguments);}h.NAME="HTMLVideoRenderer";h.NS="htmlVideoRenderer";h.VIDEO_TEMPLATE=" ";h._instanceInfo={};h._registerInstance=function(Y){var al=h._instanceInfo,ak=f.guid(Y);al[ak]={ref:Y,removed:false};};h._unregisterInstance=function(Y){var al=h._instanceInfo,ak=f.guid(Y);delete al[ak];};if(f.UA.ios&&undefined===h._domNodeInserted){h._domNodeRemoved=function(ak){if(1===ak.srcElement.nodeType){var Y=f.one(ak.srcElement);f.some(h._instanceInfo,function(al){if(al.ref._video&&Y.contains(al.ref._video)&&true!==al.syncing){al.removed=true;al.removedState={currentTime:Math.floor(al.ref._videoNode.get("currentTime"))};return true;}return false;});}};h._domNodeInserted=function(ak){if(1===ak.srcElement.nodeType){var Y=f.one(ak.srcElement);f.some(h._instanceInfo,function(al){if(al.ref._video&&Y.contains(al.ref._video)){i("video added");if(true===al.removed){al.resyncing=true;al.ref._recreateVideo();al.ref._reSync();al.resyncing=false;}return true;}return false;});}};i("ios - listening for mutation events...");f.one("body")._node.addEventListener("DOMNodeRemoved",h._domNodeRemoved);f.one("body")._node.addEventListener("DOMNodeInserted",h._domNodeInserted);}h.ATTRS={mediaItem:{readOnly:true,getter:function(){return this._mediaItem;}},chromeless:{},videoUrlTemplate:{value:"http://m.yahoo.com/w/web/video?u=url%5B%5D%3D{id}&lg=yep"},guid:{value:""},volume:{value:""},mute:{value:""},ccNode:{value:null},ccTextNode:{value:null},streamBitrate:{value:null}};
f.extend(h,x,{_container:null,_mediaItem:null,_videoNode:null,_profiler:null,_model:null,log:function(Y,ak){},initializer:function(){var al=arguments[0]||{},ak=al.model,Y=this;this._profiler=al.controller?al.controller.getProfiler():null;this._mediaItem=al.mediaItem;this._model=ak;if(f.UA.ios){setInterval(function(){var am=Y._videoNode.get("webkitDisplayingFullscreen");if(ak.get("fullscreen")!==am){Y._onFullscreenChange(null);}},300);}f.each(["videoUrlTemplate","chromeless","guid","volume","mute"],function(am){if(f.Lang.isValue(ak.get(am))){this.set(am,ak.get(am));}},this);this.after("volumeChange",function(am){this.fire(ae.VOLUME_CHANGE,am.newVal);},this);this.after("muteChange",function(am){this.fire(ae.MUTE_CHANGE,am.newVal);},this);h._registerInstance(this);},_renderNode:function(){var Y,ak;Y={"x-webkit-airplay":"allow"};ak=f.substitute(h.VIDEO_TEMPLATE,{initAttrs:this._toAttrString(Y)});return f.Node.create(ak);},getContent:function(){return this._videoNode;},destructor:function(){this.stop();this._unbindEventHandlers();this._videoNode.remove();},render:function(Y){i("render()",Y);this.set("videoContainer",Y);this.renderUI(Y);this.bindUI();this.syncUI();return this;},renderUI:function(Y){this._videoNode=this._renderNode();this._syncStyle();if(Y){Y.appendChild(this._videoNode);}this.set("playbackPlugin",this._videoNode._node);if(!f.UA.mobile){this._addClosedCaptionsNode();this._displayClosedCaptions();}this.set("readyState",x.Constants.READY_STATE.HAVE_NOTHING);},bindUI:function(){var Y=this._model;this._unbindEventHandlers();this._bindEventHandlers();Y.after("showClosedCaptionsChange",this._displayClosedCaptions,this);},syncUI:function(){var Y=this._model;this._videoNode.setAttrs(this._getVideoAttrs(this.getAttrs(),this._mediaItem));this.setVolume(Y.get("volume"));this.setMute(Y.get("mute"));this._syncStyle();},_syncStyle:function(){this._videoNode.setStyles({background:"#000",width:"100%",height:"100%"});},_recreateVideo:function(){this._videoNode.remove(true);this.renderUI();},_reSync:function(){var Y=this._getVideoAttrs(this.getAttrs(),this._mediaItem);delete Y.poster;this.bindUI();this._syncStyle();this._videoNode.setAttrs(Y);},_getVideoAttrs:function(){var Y={};if(f.UA.mobile!==null){Y.controls="controls";}return Y;},_getVideoUrl:function(am,al){var ao=am.get("streams"),an,ak,Y=am.get("streamUrl")||"";if(!f.Lang.isValue(am)){return Y;}if(ao){ao=ao.sort(function(aq,ap){return aq.bitrate-ap.bitrate;});an=f.Array.filter(ao,function(ap){return Number(ap.bitrate)<=al;},this);ak=(an.length===0)?ao[0]:an.pop();this.set("streamBitrate",ak.bitrate);Y=this.joinUrl(ak.host,ak.path);}return Y;},_getUrlFromTemplate:function(Y,ak){return f.substitute(Y,ak,function(al,am){return encodeURIComponent(am);});},_toAttrString:function(Y){var ak=[];f.each(Y,function(am,al){ak.push(al+'="'+am+'"');});return ak.join(" ");},_play:function(){i("_play");this._videoNode.invoke("play");},setClosedCaptionAvailability:function(){var Y=this._model,ao=this._mediaItem.get("CC"),an=this._model.get("lang"),am=null,ak=null,al;if(ao!==undefined&&ao!==null&&ao.length!==0){for(al=0;al=ao.entries.times[ak].start&&am<=ao.entries.times[ak].end){an=ao.entries.text[ak];Y.set("innerHTML",an);return;}}},_addClosedCaptionsNode:function(){var am=this.get("videoContainer"),Y=am.ancestor(".yui3-videoplayer-content"),al,ak;if(!am||!Y){return;}al=Y.one(".yui3-videoplayer-closedcaptions");ak=al.appendChild(f.Node.create('
'));this.set("ccNode",al);this.set("ccTextNode",ak);if(this._model.get("showClosedCaptions")===false){al.hide();}},_displayClosedCaptions:function(){if(!this._model.get("ccAvailable")){return;}if(this._model.get("showClosedCaptions")===true){this.get("ccNode").show();}else{this.get("ccNode").hide();}},_bindEventHandlers:function(){var Y={"loadeddata":this._onLoadedData,"ended":this._onEnded,"error":this._onError,"pause":this._onPause,"play":this._onPlay,"playing":this._onPlaying,"timeupdate":this._onTimeUpdate,"seeking":this.onSeeking,"waiting":this._onWaiting,"seeked":this.onSeeked,"webkitfullscreenchange":this._onFullscreenChange,"fullscreenchange":this._onFullscreenChange,"volumechange":this._onVolumeChange};
f.each(Y,function(ak,al){f.Node.DOM_EVENTS[al]=1;if(null!==ak){this._videoNode.on(al,ak,this);}},this);},_unbindEventHandlers:function(){if(this._videoNode){this._videoNode.detachAll();}},_onPlay:function(){this.fire(ae.PLAYBACK_PLAY);},_onPlaying:function(){if(this._profiler){this._profiler.setEndTime(ai.STREAM_REQUEST_TO_RENDER.type);}this.fire(ae.PLAYBACK_PLAYING);},_onPause:function(){if(!this._videoNode.get("ended")){this.fire(ae.PLAYBACK_PAUSED);}},_onTimeUpdate:function(){var Y=this._model.get("ccAvailable");if(Y){this.applyClosedCaptions();}this.fire(ae.PLAYBACK_PROGRESS,{source:h.NAME,currentTime:this._videoNode.get("currentTime"),duration:this._videoNode.get("duration")});},_onWaiting:function(){this.fire(ae.PLAYBACK_WAITING);},_onLoadedData:function(){if(this._profiler){this._profiler.setEndTime(ai.STREAM_LOADED.type);}this.fire(ae.PLAYBACK_READY);},_onEnded:function(){if(this.shouldLoopVideo()===false){if(this.get("ccNode")){this.get("ccNode").hide();}this.fire(ae.PLAYBACK_COMPLETE);}else{this._videoNode.currentTime=0;this.play();}},_onVolumeChange:function(){var ak=this._videoNode.get("muted"),Y=this._videoNode.get("volume");if(ak!==this.get("mute")){this.set("mute",ak);}if(Y!==this.get("volume")){this.set("volume",Y);}},_onFullscreenChange:function(){var Y=true===this._videoNode.get("webkitDisplayingFullscreen")?ae.FULLSCREEN_ENTER:ae.FULLSCREEN_EXIT;this.fire(Y);},_onError:function(){var al=["Unknown error code 0","ABORTED - The fetching process for the media resource was aborted by the user agent at the user's request.","NETWORK - A network error of some description caused the user"+"agent to stop fetching the media resource, after the resource was established to be usable.","DECODE - An error of some description occurred while decoding the media resource, after the resource was established to be usable.","SRC_NOT_SUPPORTED - The media resource indicated by the src attribute was not suitable."],Y=this._videoNode.get("error"),ak=c;i("video ERROR: "+(Y?Y.code+" "+al[Y.code]:"null error. poster?"));if(Y){this.fire(ae.PLAYBACK_ERROR,new f.VideoPlatform.ErrorObject(ak.ERROR.PLAYBACK.type,ak.ERROR.PLAYBACK.code,this.constructor.NAME,al[Y.code],ak.LEVEL.CRITICAL));}}});f.namespace("VideoPlatform").HTMLVideoRenderer=h;function j(){j.superclass.constructor.apply(this,arguments);}j.NAME="FlashVideoRenderer";j.NS="flashVideoRenderer";j.SWF_NAME="player.swf";j.FLASH_VERSION="10.3.0";j.FIXED_SWF_ATTRS={allowScriptAccess:"always",allowFullScreen:"true",wmode:H.determineWindowMode(f.UA,f.config.win.navigator.userAgent)};j.ATTRS={swfUrl:{writeOnce:"initOnly"}};f.extend(j,x,{_model:null,_controller:null,_profiler:null,_shouldRecordTime:true,_commandQueue:null,_mediaObject:null,log:function(Y,ak){},initializer:function(Y){this._model=Y.model;this._controller=Y.controller;this._skipFlashCheck=Y.skipFlashCheck;this._commandQueue=[];if(this._controller){this._profiler=this._controller.getProfiler();}if(!this.get("swfUrl")){this._set("swfUrl",H.PLAYER_ASSETS_URL+j.SWF_NAME);}if(Y.skipFlashCheck===false){if(!this._isFlashInstalled()){this._controller.error(new f.VideoPlatform.ErrorObject(c.ERROR.NO_FLASH.type,c.ERROR.NO_FLASH.code,this.constructor.NAME,"Flash is not installed",c.LEVEL.CRITICAL));return;}}this._model.after("yvapStateChange",function(ak){if(ak.newVal===YVAPEvents.PLUGIN_REMOVED){this._removeYVAP();}},this);},_removeYVAP:function(){var Y=this._yswf;if(Y){Y.callSWF("unloadPlugin",["YVAP"]);}},destructor:function(){var Y=this.get("videoContentNode"),ak=this._yswf;if(ak&&ak._swf){ak._swf.detach("flash-fix|*");}if(Y){Y.detach("flash-fix|*");}},render:function(Y){this.set("videoContainer",Y);this.set("videoContentNode",Y.ancestor(".yui3-videoplayer-content"));this._yswf=this._renderNode(Y);this.set("playbackPlugin",this._yswf);this._yswf.on("swfReady",this._onSwfReady,this);this._yswf.on("uiInteract",this._onUiInteract,this);this._yswf.on("playerPluginResize",this._onResize,this);this._yswf.on("waiting",this._onWaiting,this);this._yswf.on("jsLog",function(ak){},this);},_renderNode:function(al){var am=this.get("swfUrl"),Y=new k({model:this._model}),ap,ar=this,aq=ar._profiler,ao,an,ak=10000;Y.start();if(aq){aq.add(ai.YSWF_NodeRendered);}am=(this._model.get("hostingData.bucket")===1)?am+"?qos=1":am;this.swfReadyTimer=new k({model:this._model});this.swfReadyTimer.start();ap=new f.YEPSWF(al,am,{version:j.FLASH_VERSION,fixedAttributes:j.FIXED_SWF_ATTRS});if(ap!==null&&ap!==undefined){ap.after("yuiIntegrationError",function(){var at=c.ERROR.YUI_INTEGRATION_ERR;ar._controller.error(new f.VideoPlatform.ErrorObject(at.type,at.code,ar.constructor.NAME,"YUI.SWF is not available",c.LEVEL.CRITICAL));});ap.after("wrongflashversion",function(){var at=c.ERROR.OLD_FLASH;ar._controller.error(new f.VideoPlatform.ErrorObject(at.type,at.code,this.constructor.NAME,"Flash is not up to date",c.LEVEL.CRITICAL));return;});}if(ap!==null&&ap!==undefined){an=this._isFlashBlockerPresent(ap._id);switch(an){case"present":this._controller.warn(new f.VideoPlatform.ErrorObject(f.VideoPlatform.ErrorObject.ERROR.FLASH_BLOCKED.type,f.VideoPlatform.ErrorObject.ERROR.FLASH_BLOCKED.code,this.constructor.NAME,"Flash is blocked",c.LEVEL.WARNING));break;case"absent":break;default:case"uncertain":setTimeout(function(){ao=ar.get("readyState");if(ao!==x.Constants.READY_STATE.HAVE_NOTHING){ar._controller.warn(new f.VideoPlatform.ErrorObject(f.VideoPlatform.ErrorObject.ERROR.FLASH_BLOCKED.type,f.VideoPlatform.ErrorObject.ERROR.FLASH_BLOCKED.code,ar.constructor.NAME,"Flash is blocked",c.LEVEL.WARNING));}},ak);break;}}Y.stop(ai.YSWF_NodeRendered.type,ai.YSWF_NodeRendered.desc);if(aq){aq.setEndTime(ai.YSWF_NodeRendered.type);aq.add(ai.YSWF_READY);aq.add(ai.YSWF_LOADED);}return ap;},isSwfReady:function(al){var Y=false;if(!f.Lang.isValue(al)){return Y;}try{Y=f.Lang.isValue(al.callSWF("get",["swfReady"]));}catch(ak){f.warn("isSwfReady() + Error = "+ak);}finally{return Y;}},load:function(ak){var Y=this;if(Y.get("readyState")===x.Constants.READY_STATE.HAVE_NOTHING){Y._load(ak);
}else{Y._commandQueue.push("_load");Y._mediaObject=ak;}},play:function(ak){var Y=this;if(Y.get("readyState")===x.Constants.READY_STATE.HAVE_NOTHING){Y._play(ak);}else{Y._commandQueue.push("_play");if(ak){Y._mediaObject=ak;}}},pause:function(){},seek:function(){},stop:function(){},unload:function(){},getDuration:function(){return NaN;},setVolume:function(){},setMute:function(){},setFullscreen:function(){},updateControls:function(Y){if(this._yswf){this._yswf.callSWF("updateControls",[Y]);}},positionCaptions:function(Y){this.updateControls({ccBottomLeftOffset:Y});},computeAdClientSize:function(an){var Y=this._controller,al=Y.getControlsObj(),am=f.Lang.isValue(an)?an.height:0,ap=(f.Lang.isValue(al))?al.getControlBarHeight():0,ak=am,aq=f.Lang.isValue(an)?an.width:0,ao={};if(!al.inAdContext()&&this.isPlaybackMode()&&(am>=ap)){ak=am-ap;}ao={width:aq,height:ak};return ao;},isPlaybackMode:function(){var Y=this._model.get("playerState");return(Y==="started"||Y==="paused");},getBuffered:function(){return this._yswf.callSWF("get",["buffered"]);},_load:function(ap){var am=this._model,an=am.get("hostingData"),aq={version:am.get("version"),site:am.get("site"),region:am.get("region"),bucket:(f.Lang.isObject(an))?an.bucket:0,autoplay:am.get("autoplay"),spaceid:am.get("pageSpaceId"),hostEnv:(f.Lang.isObject(an))?an.env:"",lang:am.get("lang"),atlasEnv:am.get("atlasEnv"),maxConnectionAttempts:am.get("maxConnectionAttempts")},al=true,ao=this.convertMedia(ap),ak=this._profiler,Y=this.get("videoContainer");if(ak){this._streamLatencyKey=ak.add(ai.STREAM_REQUEST_TO_RENDER);this._streamLoadedKey=ak.add(ai.STREAM_LOADED);}this._shouldRecordTime=true;if(f.Lang.isValue(Y)){Y.setStyle("opacity","1");}this._yswf.callSWF("set",["playerInfo",aq]);this._yswf.callSWF("set",["loop",this.shouldLoopVideo()]);f.Array.each(ao.streams||[],function(ar){},this);if(ao.CC===undefined||ao.CC===null||ao.CC.length===0){al=false;}this._model.set("ccAvailable",al);this.updateControls({ccAvailable:al,ccShow:(al)?this._model.get("showClosedCaptions"):false,ccBottomLeftOffset:{x:0,y:this._controller.getControlsObj().getControlBarHeight()}});this._yswf.callSWF("set",["src",ao]);},_play:function(){if(this._profiler&&this._shouldRecordTime){this._playToRenderKey=this._profiler.add(ai.STREAM_PLAY_TO_RENDER);}this._setProperties(this);this._yswf.callSWF("playMedia");},_pause:function(){this._shouldRecordTime=false;this._yswf.callSWF("pauseMedia");},_stop:function(){this._pause();},_seek:function(Y){this._shouldRecordTime=false;this._yswf.callSWF("set",["currentTime",Y]);},_unload:function(){},_getDuration:function(){return this._yswf.callSWF("get",["duration"]);},_setVolume:function(Y){this._yswf.callSWF("set",["volume",Y]);},_setFullscreen:function(an){var ak=this.get("videoContentNode"),am=ak._node,ao=f.one("body").hasClass("yui3-videoplayer-lightbox"),Y,al;if(an){if(!document.fullscreenElement&&!document.mozFullScreenElement&&!document.webkitFullscreenElement&&!ao){if(am.requestFullscreen){am.requestFullscreen();}else{if(am.webkitRequestFullscreen){am.webkitRequestFullscreen();}else{if(am.mozRequestFullScreen){al=this._yswf._swf;al.getDOMNode().focus();al.getDOMNode().blur();am.mozRequestFullScreen();}else{this._enterLightbox();}}}}}else{if(ao){this._exitLightbox();}else{if(document.cancelFullScreen){document.cancelFullScreen();}else{if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen();if(document.mozFullScreen===true){Y=ak.get("parentNode");Y.removeChild(ak);Y.appendChild(ak);}}}}}}},_enterLightbox:function(){var Y=f.one("body"),ak=this.get("videoContentNode").ancestor();if(Y.hasClass("yui3-videoplayer-lightbox")){return;}H.postMessage("enter_fullscreen");while(ak.get("nodeName")!=="BODY"){ak.addClass("yui3-videoplayer-lightbox-ancestor");ak=ak.ancestor();}Y.addClass("yui3-videoplayer-lightbox");this._onFullscreenChange();},_exitLightbox:function(){var Y=f.one("body"),ak=this.get("videoContentNode").ancestor();if(!Y.hasClass("yui3-videoplayer-lightbox")){return;}H.postMessage("exit_fullscreen");Y.removeClass("yui3-videoplayer-lightbox");while(ak.get("nodeName")!=="BODY"){ak.removeClass("yui3-videoplayer-lightbox-ancestor");ak=ak.ancestor();}this._onFullscreenChange();},_setMute:function(Y){this._yswf.callSWF("set",["muted",Y]);},_setProperties:function(Y){Y._yswf.callSWF("set",["controls",false]);Y._yswf.callSWF("set",["ybang",Y._model.get("ybang")]);Y._yswf.callSWF("updateControls",[{ccBottomLeftOffset:{x:0,y:this._controller.getControlsObj().getControlBarHeight()}}]);},_setYuiId:function(Y,al){if(!f.Lang.isValue(al)){return;}try{if(f.Lang.isValue(al.callSWF)){al.callSWF("set",["yuiId",Y]);}}catch(ak){f.warn("_setYuiId() + Error = "+ak);}},_isFlashInstalled:function(){var Y=f.SWFDetect.getFlashVersion().split(".",3);if(Y[0]==="undefined"){return false;}return true;},_recordProfilingTime:function(){var an,am,Y,al,ao,at,ar,ap,ak=0,aq=this._profiler;if(aq){this._yswf.callSWF("set",["jsStartupTime",aq.getItem(ai.YSWF_READY.type).startTime+aq.getPlayerStartTime()]);am=this._yswf.callSWF("get",["profileData"]);if(am){Y=am.ProfileBrowserTime.time;aq.setDelta(ai.YSWF_LOADED.type,Y);aq.add(ai.YSWF_SWF_ONLY_INIT_TIME);aq.setStartTime(ai.YSWF_SWF_ONLY_INIT_TIME.type,aq.getItem(ai.YSWF_LOADED.type).endTime);al=am.ProfileBeforeStartup.time;ap=am.ProfileJsapiInit.time;at=am.ProfileSwfReady.time;ao=al+ap+at;aq.setDelta(ai.YSWF_SWF_ONLY_INIT_TIME.type,ao);}}if(this.swfReadyTimer){this.swfLoadTimer=new k({model:this._model});an=this.swfReadyTimer.getStartTime();this._yswf.callSWF("set",["jsStartupTime",an]);Y=am.ProfileBrowserTime.time;this.swfLoadTimer.recordTime(ai.YSWF_LOADED.type,ai.YSWF_LOADED.desc,Y,an-this._model.START_TIME);ak=an+Y;al=am.ProfileBeforeStartup.time;ar=ak-this._model.START_TIME;ap=am.ProfileJsapiInit.time;at=am.ProfileSwfReady.time;ao=al+ap+at;this.swfLoadTimer.recordTime(ai.YSWF_SWF_ONLY_INIT_TIME.type,ai.YSWF_SWF_ONLY_INIT_TIME.desc,ao,ar);}},_onSwfReady:function(){var Y=this;
Y.swfReadyTimer.stop(ai.YSWF_READY.type,ai.YSWF_READY.desc);if(Y._profiler){Y._profiler.setEndTime(ai.YSWF_READY.type);}if(Y._skipFlashCheck===false){Y._recordProfilingTime();}Y._setUpActualApi();Y._syncUI();Y._bindUI();Y._yswf.callSWF("updateControls",[{playLoadAnimation:true}]);Y._setProperties(Y);Y.set("readyState",x.Constants.READY_STATE.HAVE_NOTHING);f.each(Y._commandQueue,function(al){var ak=Y._mediaObject;if(ak){Y._commandQueue.shift();Y[al].call(Y,ak);}});},_onUiInteract:function(Y){this.fire(Y);},_syncUI:function(){var ak=this,Y=this._model;ak.setVolume(Y.get("volume"));ak.setMute(Y.get("mute"));},_resendEvent:function(Y){var ak=Y._event;ak.cancelBubble=false;ak.defaultPrevented=false;ak.returnValue=true;if(Y.target.dispatchEvent){Y.target.dispatchEvent(ak);}else{if(Y.target.fireEvent){Y.target.fireEvent(ak);}}},_bindUI:function(){var ak=this._model,ao=this._yswf,al={loadeddata:this._onLoadedData,ended:this._onEnded,mediaunloaded:this._onMediaUnloaded,error:this._onError,pause:this._onPause,play:this._onPlay,playing:this._onPlaying,timeupdate:this._onTimeUpdate,durationchange:this._onDurationChange,seeking:this.onSeeking,seeked:this.onSeeked,volumechange:this._onVolumeChange,infoupdate:this._onInfoUpdate,bitratechange:this._onBitrateChange,waiting:this._onWaiting,ccAvailabilityChange:this._onCCAvailabilityChange},aq=f.one(document),ap={"fullscreenchange":this._onFullscreenChange,"webkitfullscreenchange":this._onFullscreenChange,"mozfullscreenchange":this._onFullscreenChange},an=this,Y,am;f.Object.each(al,function(ar,at){f.Node.DOM_EVENTS[at]=1;this._yswf.after(at,ar,this);},this);f.each(ap,function(ar,at){f.Node.DOM_EVENTS[at]=1;aq.on(at,ar,this);},this);ak.after("activeScreenStrChange",function(){var ar="info"===ak.get("activeScreenStr");ao.callSWF("updateControls",[{infoSelect:ar,fullscreenEnable:!ar}]);});f.on("keyup",function(ar){if(ar.keyCode===27&&f.one("body").hasClass("yui3-videoplayer-lightbox")){an._exitLightbox();}},"body");if(f.Lang.isNumber(f.UA.gecko)&&(f.UA.gecko>0)&&(f.UA.os==="macintosh")){Y=this.get("videoContentNode");am=ao._swf;Y.on("flash-fix|mouseup",function(){am.getDOMNode().focus();am.getDOMNode().blur();});am.on(["flash-fix|mousemove","flash-fix|mouseup"],an._resendEvent);}ak.after("showControlsChange",function(){an._updateView();});ak.after("widthChange",function(){an._updateView();});ak.after("heightChange",function(){an._updateView();});ak.after("currentMediaChange",function(){an._onMediaChange();});},_setUpActualApi:function(){var ak=this,Y=["load","play","pause","seek","stop","unload","setVolume","setMute","setFullscreen","getDuration"];f.each(Y,function(al){ak[al]=ak["_"+al];});},_onMediaChange:function(){this._updateView();this.updateControls({ccShow:false,clearCaptions:true});},_updateView:function(){this._updateAdClientSize();this._positionCaptions();},_updateAdClientSize:function(){var ak=this,al=ak._model,ao=al.get("width"),Y=al.get("height"),am=al.get("adClientSize"),an={};an=ak.computeAdClientSize({width:ao,height:Y});if(an.width!==am.width||an.height!==am.height){ak.fire(ae.CLIENT_RESIZE,an);}},_positionCaptions:function(){var al=this,ak=al._controller.getControlsObj(),an=f.Lang.isValue(ak)?ak.getControlBarHeight():0,Y=(an>0)?an:0,am={x:0,y:Y};this.positionCaptions(am);},convertMedia:function(ao){var al=this,ap={},an=false,aq=f.Array.map(ao.get("streams")||[],function(ar){return{format:ar.format,bitrate:ar.bitrate,width:ar.width,height:ar.height,host:ar.host,path:al.isAtlas(ar)?al.fixPath(ar):ar.path};}),ak=ao.get("streamUrl"),Y=function(at,ar){return at.bitrate-ar.bitrate;},am;ap.live=ao.get("isLive");ap.uuid=ao.get("id");ap.showName=ao.get("showName");ap.title=ao.get("title");ap.CC=ao.get("CC");if(aq.length){if(f.Array.every(aq,al.isPdl)){am=aq.sort(Y).pop();ap.url=al.joinUrl(am.host,am.path);}else{ap.streams=aq;}}else{if(ak&&ak.length){ap.url=ak;}}if(ap.url){an=(ap.url.indexOf("/rtx/")>=0);}ao.set("isRTX",an);ap.rtx=an;return ap;},isAtlas:function(Y){return(/atlas\.cdn\.yimg\.com/).test(Y.host);},isPdl:function(Y){return !Y.host||(/^http[s]?:\/\//).test(Y.host);},isRtmp:function(Y){return(/^rtmp(?:e|t|te|s)?:\/\//).test(Y.host);},isMp4:function(Y){return H.formats.MP4===Y.format;},fixPath:function(an){var Y=this.isRtmp(an),al=this.isMp4(an),am="mp4:",ak;ak=an.path.replace(/^\/?mp4:/,"").replace(/^\//,"");return Y&&al?am+ak:ak;},_onLoadedData:function(){if(this._profiler){this._profiler.setEndTime(ai.STREAM_LOADED.type,this._streamLoadedKey);}this.fire(ae.PLAYBACK_READY);},_onPlay:function(){if(this._profiler&&this._shouldRecordTime){this._profiler.setEndTime(ai.STREAM_PLAY_TO_RENDER.type,this._playToRenderKey);this._profiler.setEndTime(ai.STREAM_REQUEST_TO_RENDER.type,this._streamLatencyKey);}this._shouldRecordTime=true;this.fire(ae.PLAYBACK_PLAY);},_onPlaying:function(){this.fire(ae.PLAYBACK_PLAYING);},_onPause:function(){this.fire(ae.PLAYBACK_PAUSED);},_onTimeUpdate:function(){this.fire(ae.PLAYBACK_PROGRESS,{source:j.NAME,currentTime:this._yswf.callSWF("get",["currentTime"]),duration:this._yswf.callSWF("get",["duration"])});},_onDurationChange:function(Y){this.fire(ae.DURATION_CHANGE,Y.duration);},_onEnded:function(){if(this._model.get("loop")===false){this.fire(ae.PLAYBACK_COMPLETE);}},_onMediaUnloaded:function(){if(this._model.get("loop")===true){this.fire(ae.PLAYBACK_COMPLETE);}},_onVolumeChange:function(){var ak=this._yswf.callSWF("get",["muted"]),Y=this._yswf.callSWF("get",["volume"]);if(ak!==this._model.get("muted")){this.fire(ae.MUTE_CHANGE,ak);}if(Y!==this._model.get("volume")){this.fire(ae.VOLUME_CHANGE,Y);}},_onBitrateChange:function(Y){this.fire(ae.BITRATE_CHANGE,Y);},_onFullscreenChange:function(){var Y=this;f.later(200,Y,function(){var am,ak,al;am=Y.get("videoContentNode").get("offsetHeight");ak=Y._controller._controls._view.get("screenSize");al=Y._model.get("carousel")?(am-r.PLAYLIST_CAROUSEL_DIMENSIONS[ak].HEIGHT-r.PLAYLIST_CAROUSEL_DIMENSIONS[ak].VERTICAL_SPACING).toString()+"px":"100%";Y._controller._controls._view.main.setStyle("height",al);
});if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||f.one("body").hasClass("yui3-videoplayer-lightbox")){this.fire(ae.FULLSCREEN_ENTER);}else{this.fire(ae.FULLSCREEN_EXIT);}},_onError:function(Y){this.fire(Y.critical===true?ae.PLAYBACK_ERROR:ae.PLAYBACK_WARNING,new f.VideoPlatform.ErrorObject(c.ERROR.PLAYBACK.type,Y.code+"",this.constructor.NAME,Y.msg+"; "+Y.detail,Y.critical===true?c.LEVEL.CRITICAL:c.LEVEL.WARNING));},_onResize:function(al){var ak={width:al.width,height:al.height},Y=this;Y.fire(ae.PLAYER_RESIZE,ak);Y.fire(ae.CLIENT_RESIZE,Y.computeAdClientSize(ak));},_onInfoUpdate:function(){this.fire(ae.MEDIA_INFO_UPDATE,{source:j.NAME,mediaInfo:this._yswf.callSWF("get",["mediaInfo"])});},_onWaiting:function(){this.fire(ae.PLAYBACK_WAITING);},_onCCAvailabilityChange:function(Y){this.fire(ae.CCAVAILABILITY_CHANGE,Y.ccAvailable);},_isFlashBlockerPresent:function(am){var al=(f.UA.ie>0)?window.document:document,an=(f.Lang.isValue(al))?al.getElementById(am):null,Y="uncertain";if(an===null){return"absent";}if(f.UA.chrome!==0||f.UA.safari!==0){try{if(an.PercentLoaded()>0){}Y="absent";}catch(ak){Y="present";}}return Y;},getMediaInfo:function(){return this._yswf.callSWF("get",["mediaInfo"]);}});f.namespace("VideoPlatform").FlashVideoRenderer=j;var o={YUILOAD:"Unable to load VideoAdPlugin module",INIT:"Unable to init YVAP",CREATE:"Unable to create YVAP",SCRIPTING:"Script error when interfacing with VideoAdPlugin.",TIMEOUT_PRE:"No response from plugin preroll",TIMEOUT_POST:"No response from plugin post roll",TIMEOUT_CREATE:"No response from plugin instantiation",TIMEOUT_YUILOAD:"VideoAdPlugin is not loaded in YUI"};YVAPEvents={ADPLUGIN_READY:"adPluginReady",AD_START:"adStart",AD_END:"adEnd",AD_COMPLETE:"adComplete",AD_ERROR:"adError",AD_PROGRESS:"adProgress",AD_NONE:"adNone",AD_PLUGIN_METRIC:"adPluginMetric",AD_PLUGIN_QOS_METRIC:"adPluginQosMetric",PLUGIN_REMOVED:"adPluginRemoved"};var O={NOT_LOADED:"notloaded",INITIALIZED:"initialized"};function y(){y.superclass.constructor.apply(this,arguments);}y.NAME="YVAP";y.NS="YVAP";y.ATTRS={pluginTimeout:{value:"3",getter:function(Y){return Number(Y);},validator:function(Y){return !isNaN(parseFloat(Y));}},pluginTimer:{value:null},criticalError:{value:false,validator:f.Lang.isBoolean},enableYVAPQOS:{value:true,validator:f.Lang.isBoolean},pluginState:{value:O.NOT_LOADED},volume:{value:0,validator:f.Lang.isNumber}};f.extend(y,f.Base,{initializer:function(an){var am=this,Y=(an.model&&an.hasOwnProperty("model"))?an.model:null,al,ao,ak;am._adPlugin=null;am._yvapNode=null;am._model=Y;am._controller=(an.controller&&an.hasOwnProperty("controller"))?an.controller:null;if(Y){al=(Y.get("mute")===true)?0:Y.get("volume");ak=Y.get("YVAP");ao=(ak)?ak.get("timeout"):null;if(f.Lang.isValue(ao)){am.set("pluginTimeout",ao);}}am.set("volume",al);am.after("criticalErrorChange",am._onCriticalError,am);am._loadVideoAdPlugin();},requestPreRollAd:function(){var ak,Y,am=this,al=am.get("pluginState");if(al===O.INITIALIZED){ak=am._controller.getRenderer();Y=ak.get("readyState");if(Y===x.Constants.READY_STATE.HAVE_NOTHING){am._startAdExperience();}else{ak.after("readyStateChange",function an(ap){if(ap.newVal===x.Constants.READY_STATE.HAVE_NOTHING){ak.detach("readyStateChange",an,am);am._startAdExperience();}},am);}}else{am.after("pluginStateChange",function ao(){am.detach("pluginStateChange",ao,am);am.requestPreRollAd();},am);}},requestPostRollAd:function(){var ak=this,am=ak._adPlugin,Y=ak._getProfiler();if(f.Lang.isObject(am)&&am.onContentVideoComplete){ak._createTimeout(o.TIMEOUT_POST);ak.adStartTimer=new k({model:ak._model});ak.adStartTimer.start();if(Y){ak._yvapAdStartedKey=Y.add(ai.YVAP_ADSTARTED);ak._yvapNoAdKey=Y.add(ai.YVAP_NOAD);ak._yvapErrorKey=Y.add(ai.YVAP_ERROR);}try{am.onContentVideoComplete();}catch(al){ak._issueCriticalError(o.SCRIPTING,"onContentVideoComplete: "+al.message);}}else{this._issueCriticalError(o.SCRIPTING,"VideoAdPlugin.onContentVideoComplete not avail");}},_loadVideoAdPlugin:function(){var Y=this,ak;Y._manageModelEvents("after");Y._adPlugin=Y._createVideoAdPlugin(Y._createAdConfig());Y._manageInitialRendererUpdate();function al(am){Y._updatePlayerData(am.item);}ak=Y._model.get("playlist");if(ak){ak.on("mediaItemAdd",al,Y);Y.after("criticalErrorChange",function(am){if(am.newVal===true){ak.detach("mediaItemAdd",al,Y);}},Y);}},_createVideoAdPlugin:function(am){var an=null,ak=this,Y=this._getProfiler();this._createTimeout(o.TIMEOUT_CREATE);this._timerPluginReady=new k({model:this._model});this._timerPluginReady.start();if(Y){this._yvapReadyKey=Y.add(ai.YVAP_READY);}try{an=new f.VideoAds.VideoAdPlugin(am);ak._cancelTimer();ak._updateClientInfo();if(Y){Y.setEndTime(ai.YVAP_READY.type,this._yvapReadyKey);}if(ak._timerPluginReady){ak._timerPluginReady.stop(ai.YVAP_READY.type,ai.YVAP_READY.desc);delete ak._timerPluginReady;}ak.set("pluginState",O.INITIALIZED);}catch(al){this._issueCriticalError(o.CREATE,al.message);}finally{return an;}},_getProfiler:function(){var Y=this._controller;if(f.Lang.isValue(Y)){if(Y.constructor.prototype.hasOwnProperty("getProfiler")){return Y.getProfiler();}}return null;},_manageInitialRendererUpdate:function(){var ak=this,Y=ak._model.get("rendererReady");if(Y===true){ak._checkRendererState();}else{ak._model.after("rendererReadyChange",function(al){if(al.newVal===true){ak._checkRendererState();}},ak);}},_checkRendererState:function(){var ak=this,an=ak._controller,Y=an.getRenderer()||null,am=(Y)?Y.get("readyState"):null;if(am===x.Constants.READY_STATE.HAVE_NOTHING){ak._updateRenderer();}else{Y.after("readyStateChange",function al(ao){if(ao.newVal===x.Constants.READY_STATE.HAVE_NOTHING){Y.detach("readyStateChange",al,ak);ak._updateRenderer();}},ak);}},_updateRenderer:function(){var Y=this,an=Y._adPlugin,ak=Y._model.get("rendererType"),am=Y._controller.getRenderer();if(!am){return;}if(Y._yvapNode===null&&ak==="html"){Y._yvapNode=Y._insertYVAPNode();}if(f.Lang.isObject(an)&&an.updateRenderer){try{an.updateRenderer({adContainer:Y._yvapNode,rendererType:ak,playerContainer:am.get("playbackPlugin")});
}catch(al){Y._issueCriticalError(o.SCRIPTING,"updateRenderer: "+al.message);}}},_insertYVAPNode:function(){var Y=this._controller.getRenderer().get("videoContainer"),ak=f.Node.create('
');Y.appendChild(ak);return ak.getDOMNode();},_createAdConfig:function(){var ak=this,al=ak._model.get("playlist"),Y=(al)?al.items()._items:[];return{timeout:ak.get("pluginTimeout"),rendererType:ak._model.get("rendererType"),playerData:ak._createPlayerData(Y),clientInfo:ak._createClientInfoData(),enableQOS:ak.get("enableYVAPQOS"),streamAd:ak._model.get("streamAd"),on:{"VideoAdStart":ak._onAdStart,"VideoAdEnd":ak._onAdEnd,"PluginNoAd":ak._onNoAd,"VideoAdExperienceComplete":ak._onAdComplete,"blockingAdProgress":ak._onAdProgress,"AdPluginError":ak._onPluginError,"AdPluginProfiler":ak._addProfilingItem,"AdPluginMetric":ak._onAdPluginMetric,"AdStartMediaPlayback":ak._onAdStartMediaPlayback},context:ak};},_createPlayerData:function(am){var an=null,Y=this._model,al=[],ak=Y.get("YVAP");if(!f.Lang.isObject(am)&&!f.Lang.isArray(am)){return al;}if(!am.length){am=[am];}f.each(am,function(ap){try{an=new f.VideoAds.PlayerData();an.setMASAcctId(ak.get("accountId"));an.setClipId(ap.get("id"));an.setClipDuration(ap.get("duration"));an.setPlaylistId(ak.get("playContext"));an.setAdData(ap.get("adData"));an.addCustomParameter("ad-biz:spaceID",ap.get("spaceId"));an.addCustomParameter("ad-biz:licenseID",ap.get("licenseId"));an.setIsLive(ap.get("isLive"));al.push(an);}catch(ao){}finally{}},this);return al;},_createClientInfoData:function(){var Y=this._model,ak=Y.get("adClientSize");return{x:0,y:0,width:ak.width+"px",height:ak.height+"px",volume:this.get("volume"),bitrate:Y.get("bitrate")};},_updatePlayerData:function(ak){var an=this._adPlugin,ao,al,Y=this;if(f.Lang.isValue(ak)){al=(f.Lang.isArray(ak))?ak:[ak];ao=this._createPlayerData(al);if(f.Lang.isObject(an)&&an.updatePlayerData){try{an.updatePlayerData(ao);}catch(am){Y._issueCriticalError(o.SCRIPTING,"updatePlayerData: "+am.message);}}else{Y._issueCriticalError(o.SCRIPTING,"VideoAdPlugin.updatePlayerData not avail");}}},_startAdExperience:function(){var ak=this,ao=ak._adPlugin,am=ak._model.get("currentMedia"),an=ak._createPlayerData([am]),Y=ak._getProfiler();ak.adStartTimer=new k({model:ak._model});ak.adStartTimer.start();if(Y){ak._yvapAdStartedKey=Y.add(ai.YVAP_ADSTARTED);ak._yvapNoAdKey=Y.add(ai.YVAP_NOAD);ak._yvapErrorKey=Y.add(ai.YVAP_ERROR);}ak._createTimeout(o.TIMEOUT_PRE);if(f.Lang.isObject(ao)&&ao.beginAdExperience){try{if(ak._model.get("standaloneAdMode")){ao.fireStandaloneAdOpportunity();}else{ao.beginAdExperience(an[0]);}}catch(al){ak._issueCriticalError(o.SCRIPTING,"beginAdExperience: "+al.message);}}else{ak._issueCriticalError(o.SCRIPTING,"VideoAdPlugin.beginAdExperience not avail");}},_addProfilingItem:function(ak){var Y=new k({model:this._model});Y.recordTime(ak.type,ak.message,ak.timeDiff,ak.startTime);},_onAdPluginMetric:function(al){var ak=al.YWAData,Y=al.YAMASData,am=al.profilerData;if(f.Lang.isObject(ak)){this.fire(YVAPEvents.AD_PLUGIN_METRIC,{type:"ywa",data:ak});}if(f.Lang.isObject(Y)){this.fire(YVAPEvents.AD_PLUGIN_QOS_METRIC,{type:"qos",data:Y});}if(f.Lang.isObject(am)){this._addProfilingItem(am);}},_onAdStart:function(){this._cancelTimer();},_onAdStartMediaPlayback:function(al){var ak=this._getProfiler(),Y=null;if(this.adStartTimer){this.adStartTimer.stop(ai.YVAP_ADSTARTED.type,ai.YVAP_ADSTARTED.desc);delete this.adStartTimer;}if(ak){Y=ak.getItem(ai.YVAP_ADSTARTED.type,this._yvapAdStartedKey);if(Y&&isNaN(Y.endTime)){ak.setEndTime(ai.YVAP_ADSTARTED.type,this._yvapAdStartedKey);}ak.remove(ai.YVAP_NOAD.type,this._yvapNoAdKey);ak.remove(ai.YVAP_ERROR.type,this._yvapErrorKey);}this.fire(YVAPEvents.AD_START,{volume:al.volume,adslug:al.adslug,timer:al.timer,scale:al.scale,blocking:al.blocking});},_onAdEnd:function(){this.fire(YVAPEvents.AD_END);},_onAdComplete:function(){this.fire(YVAPEvents.AD_COMPLETE);},_onNoAd:function(){var ak=this,Y=ak._getProfiler();if(ak.adStartTimer){ak.adStartTimer.stop(ai.YVAP_NOAD.type,ai.YVAP_NOAD.desc);delete ak.adStartTimer;}if(Y){Y.remove(ai.YVAP_ADSTARTED.type,ak._yvapAdStartedKey);Y.setEndTime(ai.YVAP_NOAD.type,ak._yvapNoAdKey);Y.remove(ai.YVAP_ERROR.type,ak._yvapErrorKey);}ak._cancelTimer();ak.fire(YVAPEvents.AD_NONE);},_onAdProgress:function(Y){this.fire(YVAPEvents.AD_PROGRESS,{duration:Y.totalDuration,position:Y.position});},_onPluginError:function(al){var ak=this,Y=ak._getProfiler();ak._cancelTimer();if(ak.adStartTimer){ak.adStartTimer.stop(ai.YVAP_ERROR.type,ai.YVAP_ERROR.desc);delete ak.adStartTimer;}if(Y){Y.remove(ai.YVAP_ADSTARTED.type,ak._yvapAdStartedKey);Y.remove(ai.YVAP_NOAD.type,ak._yvapNoAdKey);Y.setEndTime(ai.YVAP_ERROR.type,ak._yvapErrorKey);}ak._issueCriticalError(YVAPEvents.AD_ERROR,al);},raiseError:function(ak,Y){this.fire(YVAPEvents.AD_ERROR,{message:ak,cause:Y});},_manageModelEvents:function(am){var ak=this,Y=ak._model,an=am,al={"muteChange":ak._onMuteChange,"playbackPositionChange":ak._onVideoProgress,"bitrateChange":ak._updateClientInfo,"adClientSizeChange":ak._updateClientInfo,"volumeChange":ak._updateVolume,"rendererTypeChange":ak._updateRenderer};if(Y[an]){f.each(al,function(ap,ao){Y[an](ao,ap,ak);},ak);}},_updateClientInfo:function(){var Y=this,al=Y._adPlugin,am;if(f.Lang.isObject(al)&&al.onClientInfoChanged){am=Y._createClientInfoData();try{al.onClientInfoChanged(am);}catch(ak){Y._issueCriticalError(o.SCRIPTING,"onClientInfoChanged: "+ak.message);}}},_onVolumeChange:function(Y){this.set("volume",Y.newVal);},_onMuteChange:function(an){var Y=this,ak=(an.newVal===true)?0:Y._model.get("volume"),am=Y._adPlugin;if(f.Lang.isObject(am)){try{am.onVolumeChange(ak);}catch(al){Y._issueCriticalError(o.SCRIPTING,"onVolumeChange: "+al.message);}}},_updateVolume:function(am){var Y=this,al=Y._adPlugin;if(f.Lang.isObject(al)){try{al.onVolumeChange(am.newVal);}catch(ak){Y._issueCriticalError(o.SCRIPTING,"onVolumeChange: "+ak.message);}}},_onVideoProgress:function(am){var Y=this,al=Y._adPlugin,ao=am.newVal,an=Y._model.get("currentMedia").get("duration");
if(f.Lang.isObject(al)&&al.onContentVideoProgress){try{al.onContentVideoProgress({position:ao,duration:an});}catch(ak){Y._issueCriticalError(o.SCRIPTING,"onContentVideoProgress: "+ak.message);}}else{this._issueCriticalError(o.SCRIPTING,"VideoAdPlugin.onContentVideoProgress not avail");}},_issueCriticalError:function(Y,ak){this.set("criticalError",true);this.raiseError(Y,ak);},_onCriticalError:function(ak){var Y=this;if(ak.newVal===true){Y._cancelTimer();Y._removePlugin();Y.detach("criticalErrorChange",Y._onCriticalError,Y);}},_createTimeout:function(al){var ak,Y;if(this.get("criticalError")===true){return;}ak=this.get("pluginTimeout")*1000;Y={timer:f.later(ak,this,"_timerResponse"),type:al};this.set("pluginTimer",Y);},_timerResponse:function(){var Y=this,am=Y._adPlugin,ak=Y.get("pluginTimer");if(ak===null){return;}if(f.Lang.isObject(am)&&am.subscribe&&am.timeout){try{am.subscribe("AdPluginTimeout",function(){},Y);am.timeout();}catch(al){Y._issueCriticalError(o.SCRIPTING,"_timerResponse: "+al.message);}}else{Y._issueCriticalError(o.SCRIPTING,"VideoAdPlugin.timeout not avail");}Y.raiseError(ak.type,"VideoAdPlugin process timed out");},_cancelTimer:function(){var Y=this.get("pluginTimer");if(Y&&Y.timer){Y.timer.cancel();}this.reset("pluginTimer");},_removePlugin:function(){var Y=this,an=Y._adPlugin,al=YVAPEvents;function am(){Y._adPlugin=null;Y.fire(al.PLUGIN_REMOVED);Y._manageModelEvents("detach");}if(!f.Lang.isObject(an)){am();return;}try{an.detachAll();an.subscribe("AdPluginDestroy",function(){am();},Y);an.destroy();}catch(ak){am();}}});f.namespace("VideoPlatform").YVAP=y;function G(){G.superclass.constructor.apply(this,arguments);}G.NAME="CookieHandler";G.NS="CookieHandler";G.ATTRS={};f.extend(G,f.Base,{DAYS_IN_A_YEAR:365,initializer:function(Y){this.model=Y.model;this._observeModel();},isCookieEnabled:function(){return navigator.cookieEnabled;},removeYepCookie:function(){if(!this.isCookieEnabled()){return;}f.Cookie.remove("V",{path:"/",domain:"yahoo.com"});},setSubCookies:function(ak){var Y=new Date(),al=this;if(!al.isCookieEnabled()||f.Lang.isNull(f.Cookie.get("V"))||f.Lang.isNull(ak)||!f.Lang.isObject(ak)){return;}Y.setDate(Y.getDate()+al.DAYS_IN_A_YEAR);f.Cookie.setSubs("V",ak,{path:"/",domain:"yahoo.com",expires:Y});},setSubCookie:function(ak,am){var Y=new Date(),al=this;if(!al.isCookieEnabled()||f.Lang.isNull(f.Cookie.get("V"))||!f.Lang.isValue(ak)||!f.Lang.isValue(am)){return;}Y.setDate(Y.getDate()+al.DAYS_IN_A_YEAR);f.Cookie.setSub("V",ak,am,{path:"/",domain:"yahoo.com",expires:Y});},getSubCookies:function(){var Y=null;if(!this.isCookieEnabled()){return null;}Y=f.Cookie.getSubs("V");if(!f.Lang.isNull(Y)&&f.Lang.isObject(Y)){if(f.Lang.isValue(Y.v)){Y.v=parseFloat(Y.v);}if(f.Lang.isValue(Y.cc)){Y.cc=parseInt(Y.cc,10);}if(f.Lang.isValue(Y.m)){Y.m=parseInt(Y.m,10);}}return Y;},createAndLoadCookies:function(){var Y=null,ak,am=this,al=am.model,ao,ap,an;if(f.Lang.isNull(al)){return;}ao=al.get("volume");ap=al.get("showClosedCaptions");an=al.get("mute");Y=am._createYepCookie();if(f.Lang.isNull(Y)){return;}if(Y===""){ak={v:ao,cc:ap?1:0,m:an?1:0};am.setSubCookies(ak);}else{ak=am.getSubCookies();if(f.Lang.isNull(ak)){return;}if(f.Lang.isValue(ak.v)){al.set("volume",ak.v);}if(f.Lang.isValue(ak.cc)){al.set("showClosedCaptions",(ak.cc===1));}if(f.Lang.isValue(ak.m)){al.set("mute",(ak.m===1));}}},_createYepCookie:function(){var ak=f.Cookie.get("V"),Y=new Date(),al=this;if(!al.isCookieEnabled()){return null;}Y.setDate(Y.getDate()+al.DAYS_IN_A_YEAR);if(f.Lang.isNull(ak)||ak===""){f.Cookie.set("V","",{path:"/",domain:"yahoo.com",expires:Y});}return f.Cookie.get("V");},_observeModel:function(){var ak=this,Y=ak.model,am,an,al;Y.after("volumeChange",function(ao){am=ao.newVal;if(f.Lang.isValue(am)){am=am.toFixed(2);if(am<0){am=0;}ak.setSubCookie("v",am);}},this);Y.after("showClosedCaptionsChange",function(ao){an=ao.newVal;if(f.Lang.isValue(an)){an=(an===true)?1:0;ak.setSubCookie("cc",an);}},this);Y.after("muteChange",function(ao){al=ao.newVal;if(f.Lang.isValue(al)){al=(al===true)?1:0;ak.setSubCookie("m",al);}},this);}});f.namespace("VideoPlatform").CookieHandler=G;function g(){g.superclass.constructor.apply(this,arguments);}g.NAME="Carousel";g.NS="carousel";g.ATTRS={};f.extend(g,f.Base,{initializer:function(Y){var ak=Y[0]||Y;this._mediaItems=ak.mediaItems;this._view=ak.view;this._controller=this._view._controller;this.index=0;this._itemCount=this._mediaItems.length;this._mediaItemDomArray=[];this._showMetadata=ak.showMetadata;this._showNavigation=ak.showNavigation;this._dimensions=ak.dimensions;this._layout={};this.pltype=ak.pltype;this.isAnimating=false;this.animDelay=0;this._touch={"prevClientX":null,"ignore":false};if(this._controller){this.i18n=this._controller.getStrings();}f.publish("VideoPlayer.Carousel.thumbnailClick",{broadcast:2});f.publish("VideoPlayer.Carousel.touch",{broadcast:2});if(this._showNavigation!==false){f.publish("VideoPlayer.Carousel.navigationClick",{broadcast:2});}},_calculateLayout:function(an){var Y=an.get("offsetWidth"),am=an.get("offsetHeight"),ao,ak,al;al=this._calculateLayoutAxis(am,this._dimensions.itemHeight,this._dimensions.verticalSpacing);this._layout.rows=al.dimension;this._layout.remainingVerticalSpacing=al.remainingSpace;ak=this._calculateLayoutAxis(Y,this._dimensions.itemWidth,this._dimensions.horizontalSpacing);this._layout.cols=ak.dimension;this._layout.remainingHorizontalSpacing=ak.remainingSpace;ao=this._layout.rows*this._layout.cols;if(this._showNavigation===false&&aoaq){ao=ao-1;ak=ar-an;}ap=(ao*Y)+((ao-1)*an);at=aq-ap;return{"dimension":ao,"margin":al,"remainingSpace":at};},render:function(Y){this._calculateLayout(Y);this.renderContainer(Y);this.loadItems();this.showPage(0);if(this._showNavigation!==false){this._syncNavigation();
}this._bindUI();},renderContainer:function(am){var al=g.NS,aq,an,ap,ak,ao,Y;this.container=this.createNode("div","container",al);this.viewport=this.createNode("ul","viewport",al);for(aq=0;aq=7&&f.UA.ie<8){this.container.all(".yui3-videoplayer-arrow-container").getStyle("height");this.container.all(".yui3-videoplayer-arrow-container").setStyle("height",this.container.get("offsetHeight")+"px");}}this.enable();},loadItems:function(){var ar=this._layout.cols,at=this._layout.rows,al,Y,au,ao,an,av,ak,aq,ap,am;if(this._showNavigation!==false){al=parseInt(this._itemCount/ar,10);Y=(this._itemCount%ar)===0?parseInt(al,10):(al+1);}else{Y=1;}for(au=0;au ");ap.addClass("overlay");av=f.Node.create(" ");av.addClass("replay-button");Y=f.Node.create(" ");Y.addClass("replay-text");Y.set("innerHTML",this.i18n.REPLAY);ap.append(av);ap.append(Y);ao.append(ap);}else{ao.append(this._getThumbnailNode(ak));ap=f.Node.create("
");ap.addClass("overlay");aq=f.Node.create(" ");aq.addClass("play-button");if(!H.isMobile()){at=f.Node.create("
");at.addClass("play-video-text");at.set("innerHTML",this.i18n.PLAY_VIDEO);}if(f.UA.ie>0&&f.UA.ie<9){ap.hide();ao.on("hover",function(){aw=ao.one(".overlay");aw.show();},function(){aw=ao.one(".overlay");aw.hide();});au=f.Node.create("
");au.addClass("overlay-background");ap.append(au);}ap.append(aq);ap.append(at);ao.append(ap);al=f.Node.create("
");al.addClass("metadata");an=f.Node.create("
");an.addClass("title");an.set("innerHTML",am.title);al.append(an);ao.append(al);}}else{ao.append(this._getThumbnailNode(ak));}ao.setData("param",{"index":ar,"plType":this.pltype});ao.setStyle("width",this._dimensions.itemWidth);ao.setStyle("height",this._dimensions.itemHeight);this.viewport.append(ao);this._mediaItemDomArray.push(ao);},navLeft:function(Y){if(Y.isAnimating===true){return;}Y.isAnimating=true;Y.scrollTo(Y.index-Y._layout.cols);setTimeout(function(){Y.isAnimating=false;},Y.animDelay);},navRight:function(Y){if(Y.isAnimating===true){return;}Y.isAnimating=true;Y.scrollTo(Y.index+Y._layout.cols);setTimeout(function(){Y.isAnimating=false;},Y.animDelay);},_bindUI:function(){var Y=this;if(this._showNavigation!==false){Y.container.one(".yui3-videoplayer-carousel-left").on("click",function(){Y.navLeft(Y);f.fire("VideoPlayer.Carousel.navigationClick","pc-navl");});Y.container.one(".yui3-videoplayer-carousel-right").on("click",function(){Y.navRight(Y);f.fire("VideoPlayer.Carousel.navigationClick","pc-navr");});Y.viewport.on("touchstart",Y._touchStart,Y);Y.viewport.on("touchmove",Y._touchMove,Y);Y.viewport.on(["touchend","touchcancel"],Y._touchEnd,Y);}Y.container.one(".yui3-videoplayer-carousel-viewport").delegate("click",function(ak){f.fire("VideoPlayer.Carousel.thumbnailClick",ak.currentTarget.getData("param"));},"li.load");},showPage:function(an){var ao=this._layout.cols,ap=this._layout.rows,am=an*ao,aq=100,al,ak,ar,Y;this.container.all("li.load").removeClass("load");Y=an*this._dimensions.itemWidth*ao;for(al=0;althis._itemCount){Y-=this._itemCount;}var ak=(Y*(this._dimensions.imageWidth*-1)+parseInt(this._layout.remainingHorizontalSpacing/2,10))+"px";if(ak===this.viewport.getStyle("marginLeft")){return;}this.viewport.setStyle("marginLeft",ak);this.showPage(Y/this._layout.cols);this.index=Y;this._syncNavigation();},_syncNavigation:function(){if((this._itemCount/this._layout.rows)>this._layout.cols){this.disableArrow("left");this.disableArrow("right");if(this.index>0){this.enableArrow("left");}if(this.index<(this._itemCount-this._layout.cols)){this.enableArrow("right");}}},disable:function(){this.container.removeClass("yui3-videoplayer-enabled");this.clearIndicator();},enable:function(){this.container.addClass("yui3-videoplayer-enabled");},enableArrow:function(Y){this.container.addClass("yui3-videoplayer-"+Y+"-enabled");},disableArrow:function(Y){this.container.removeClass("yui3-videoplayer-"+Y+"-enabled");},setIndicator:function(ak,al){this.clearIndicator();if(typeof this._mediaItemDomArray[ak]==="undefined"){return;}var Y=this._view.createNode("span","viewport-item-indicator",g.NS);Y.set("innerHTML",al);this._mediaItemDomArray[ak].append(Y);
if(ak%(this._layout.rows*this._layout.cols)===0){this.scrollTo(ak);}},clearIndicator:function(){this.viewport.all(".yui3-videoplayer-carousel-viewport-item-indicator").remove();},destructor:function(){this.container.remove();},createNode:function(ao,ak,am){var Y={img:true,input:true},an=am?"-"+am:"",al;if(ao in Y){al=f.Node.create("<"+ao+' class="'+f.ClassNameManager.getClassName("videoplayer"+an,ak)+'"/>');}else{al=f.Node.create("<"+ao+' class="'+f.ClassNameManager.getClassName("videoplayer"+an,ak)+'">'+ao+">");}return al;},_touchStart:function(Y){if(this._touch.prevClientX!==null){return;}this._touch.prevClientX=Y.touches[0].clientX;this._touch.offset=0;this._touch.viewportMarginLeft=parseInt(this.viewport.getStyle("marginLeft"),10);this.viewport.addClass("touch");this._touch.startPageX=Y.touches[0].pageX;this._touch.startPageY=Y.touches[0].pageY;},_touchMove:function(al){var ak,Y;if(this._touch.prevClientX===null||this._touch.ignore){return;}Y=this._isTouchMoveVertical(this._touch.startPageX,al.touches[0].pageX,this._touch.startPageY,al.touches[0].pageY);if(this._touch.offset===0&&Y){this._touch.ignore=true;return;}al.preventDefault();this._touch.offset+=this._touch.prevClientX-al.touches[0].clientX;this._touch.prevClientX=al.touches[0].clientX;this.viewport.setStyle("marginLeft",(this._touch.viewportMarginLeft-this._touch.offset)+"px");ak=this.viewport.all(".yui3-videoplayer-carousel-viewport-item:not(.load)");ak.setStyle("opacity",Math.min(0.6,Math.abs(this._touch.offset)/200));},_touchEnd:function(){if(this._touch.prevClientX===null){return;}var Y=100;this._touch.prevClientX=null;this._touch.ignore=false;this.viewport.removeClass("touch");this.viewport.all(".yui3-videoplayer-carousel-viewport-item:not(.load)").setStyle("opacity","");if(this._touch.offset>Y&&this.index<(this._itemCount-this._layout.cols)){this.navRight(this);f.fire("VideoPlayer.Carousel.touch","pc-swipe");}else{if(this._touch.offset<-Y&&this.index>0){this.navLeft(this);f.fire("VideoPlayer.Carousel.touch","pc-swipe");}else{if(this._touch.offset!==0){this.viewport.setStyle("marginLeft",this._touch.viewportMarginLeft+"px");}}}},_isTouchMoveVertical:function(ak,am,Y,al){return((180/Math.PI)*Math.atan2(Math.abs(al-Y),Math.abs(am-ak)))>=60;},_getThumbnailNode:function(ak){var Y=f.Node.create(" ");Y.set("src",ak);Y.set("width",this._dimensions.imageWidth);Y.set("height",this._dimensions.imageHeight);return Y;}});f.namespace("VideoPlatform").Carousel=g;function q(){q.superclass.constructor.apply(this,arguments);}q.NAME="Graph";q.NS="graph";q.ATTRS={};f.extend(q,f.Base,{initializer:function(Y){this.color=Y.color;this.width=Y.width;this.height=Y.height;this.graphHeight=Y.graphHeight;},render:function(ak){var Y=f.Node.create(' ');ak.append(Y);this.canvas=Y;this.context=Y._node.getContext("2d");},appendSwitchReasonLogs:function(ao,an){var al=0,Y,am,ak;this.context.font="8pt Monospace";for(Y=0;Y=2){var ap,aq,ak,al,am=this.context;if(an===undefined&&Y===undefined){an=ao[0];Y=ao[0];for(aq=1;aq0)?(this.graphHeight-4)/(Y-an):1;al=(this.width-40)/240;am.scale(al,-1*ak);am.beginPath();am.moveTo(0,ao[0]-an);for(aq=1;aq0){Y._appendRow(an,an);}});Y._appendRow("flash","Adobe Flash");Y._appendTitleRow("Hosting");Y._appendRow("hosting-bucket","Bucket");Y._appendRow("hosting-colo","Colo");Y._appendRow("hosting-env","Env");Y._appendTitleRow("Instance");Y._appendRow("guid","GUID");Y._appendRow("lang","Lang");Y._appendRow("off-network","Off Network");Y._close.set("innerHTML","X");Y._close.setAttribute("alt","Close Detail Overlay");Y._profileLogLink.set("innerHTML","Profile");Y._detailsTable.append(Y._tb);Y._tableWrapper.append(Y._detailsTable);Y._wrapper.append(Y._tableWrapper);Y._container.append(Y._wrapper);Y._container.append(Y._close);Y._container.append(Y._profileLogLink);al.append(Y._container);Y._bindUI();Y._syncUI();setTimeout(function(){Y._container.addClass("yui3-videoplayer-show");},10);},_appendGraphRow:function(Y){var am=f.Node.create(" "),al=f.Node.create(" "),ak;am.addClass("graph");am.setAttribute("colspan",2);al.append(am);this._tb.append(al);ak=new q({color:"white",width:280,height:30,graphHeight:30});ak.render(am);this[Y+"-graph"]=ak;},_appendTitleRow:function(ak){var al=f.Node.create(" "),Y=f.Node.create(" ");al.addClass("title");al.set("innerHTML",ak);al.setAttribute("colspan",2);Y.append(al);this._tb.append(Y);},_appendRow:function(Y,ak){this[Y]=this._view.createNode("td",Y,s.NS);var am=this[Y],al=f.Node.create(" ");am.addClass("value");al.append(f.Node.create(''+ak+": "));al.append(am);this._tb.append(al);},_bindUI:function(){var al=this,ak=al._view,Y=al._model;al._close.on("click",function(){ak.set("activeOverlay",undefined);});Y.after("currentMediaChange",function(){this._bindToCurrentMedia();al._syncUI();},this);al._bindToCurrentMedia();Y.after("errorChange",function(){al._syncUI();},this);al._addCanvasClickHandler("currentStreamBitrate");al._addCanvasClickHandler("frameRate");al._addCanvasClickHandler("currentKbps");al._addCanvasClickHandler("bufferSample");al._profileLogLink.on("click",function(){ak.openProfiler();});},_addCanvasClickHandler:function(Y){var al=this,ak=Y+"-graph";if(this[ak]){this[ak].canvas.on("click",function(){var am=f.Node.create("
"),at=120,ar=al._model.get("currentMedia").get("history"),ao=ar[Y],aq=0,av,au,ap,an;if(Y==="currentStreamBitrate"){ap=ar.streamSwitchReason;for(an=0;an0){au[av].set("innerHTML",aw);}});if(f.Lang.isObject(ar)){this["hosting-bucket"].set("innerHTML",ar.bucket);this["hosting-colo"].set("innerHTML",ar.colo);this["hosting-env"].set("innerHTML",ar.env);}this.guid.set("innerHTML",an.get("guid"));this.lang.set("innerHTML",an.get("lang"));this["off-network"].set("innerHTML",an.get("isOffNetwork"));if(f.Lang.isObject(at)){this["error-type"].set("innerHTML",at.type);this["error-code"].set("innerHTML",at.code||"");this["error-msg"].set("innerHTML",at.message||"");}if(al&&this.uuid){am=al;Y=am.get("id");if(Y!==null){this.uuid.set("innerHTML",Y);}}if(al&&al.get("mediaInfo")&&an.get("rendererType")==="flash"){am=an.get("currentMedia");aq=am.get("mediaInfo");if(aq.currentStreamBitrate!==null){this.currentStreamBitrate.set("innerHTML",aq.currentStreamBitrate+" kbps");}if(aq.qualityLevels!==null){this["quality-levels"].set("innerHTML",aq.qualityLevels);}if(aq.highestQualityPlaybackRatio!==null){this["high-quality-ratio"].set("innerHTML",aq.highestQualityPlaybackRatio+" %");}if(aq.frameRate!==null){this.frameRate.set("innerHTML",aq.frameRate+" fps");}if(aq.droppedFrames!==null){this["dropped-frames"].set("innerHTML",aq.droppedFrames);}if(aq.currentKbps!==null){this["download-speed"].set("innerHTML",aq.currentKbps+" kbps");}if(aq.bufferLength!==null&&aq.bufferTime!==null){this["buffer-length"].set("innerHTML",aq.bufferLength+" sec / "+aq.bufferTime+" sec");}if(aq.playbackBytesPerSecond!==null){this["stream-playback-rate"].set("innerHTML",aq.playbackBytesPerSecond+" kbps");}if(aq.bufferingRatio!==null){this["buffering-ratio"].set("innerHTML",(aq.bufferingRatio).toFixed(2)+" %");}if(aq.totalMemory!==null){this["total-memory"].set("innerHTML",aq.totalMemory+" MB");}if(aq.hwDecoding!==null){ao=(aq.hwDecoding===true)?"Yes":"No";this["hw-decoding"].set("innerHTML",ao);}if(aq.hwRendering!==null){ap=(aq.hwRendering===true)?"Yes":"No";this["hw-rendering"].set("innerHTML",ap);}if(aq.mediaWidth!==null&&aq.mediaHeight!==null){this["media-size"].set("innerHTML",aq.mediaWidth+" x "+aq.mediaHeight);}if(aq.mediaWidth!==null&&aq.mediaHeight!==null){this["delivery-protocol"].set("innerHTML",aq.deliveryProtocol);}if(this["currentStreamBitrate-graph"]){if(aq.minBitRate&&aq.maxBitRate){this["currentStreamBitrate-graph"].syncUI(am.get("history").currentStreamBitrate,aq.minBitRate,aq.maxBitRate);}else{this["currentStreamBitrate-graph"].syncUI(am.get("history").currentStreamBitrate);
}}if(this["bufferSample-graph"]){this["bufferSample-graph"].syncUI(am.get("history").bufferSample);}if(this["frameRate-graph"]){this["frameRate-graph"].syncUI(am.get("history").frameRate);}if(this["currentKbps-graph"]){this["currentKbps-graph"].syncUI(am.get("history").currentKbps);}}},destructor:function(){this._container.removeClass("yui3-videoplayer-show");var Y=this;setTimeout(function(){Y._container.remove();},500);}});f.namespace("VideoPlatform").DetailScreen=s;function W(){W.superclass.constructor.apply(this,arguments);}W.NAME="InfoScreen";W.NS="infoscreen";W.ATTRS={};f.extend(W,f.Base,{initializer:function(Y){this._model=Y.model;this._view=Y.view;},render:function(ay){this._node=ay;var aA=W.NS,ar=this._view,ax=this,ap=ar._controller.getStrings(),ak=ay.get("offsetWidth"),ao=ay.get("offsetHeight"),au=15,aD=3,az=ak-(au*3)-(aD*2),at=this._view.createNode("div","container",aA),an=this._view.createNode("div","tint",aA),aw=this._view.createNode("div","top",aA),Y=this._view.createNode("h3","now-playing",aA),am=this._view.createNode("a","image-link",aA),al=this._view.createNode("div","left",aA),aE=this._buildImage(az),aB=this._buildRight(az),av=this._view.createNode("button","close",aA),aq=this._buildCcComplaintsLink(az,ao),aC=ao-40;at.set("offsetHeight",aC);this._container=at;this.imgLink=am;this.close=av;am.append(aE);av.addClass("close");av.set("innerHTML","X");al.append(am);aw.append(Y);aw.append(al);aw.append(aB);Y.set("innerHTML",ap.NOW_PLAYING);aw.append(av);at.append(an);at.append(aw);if(aq){at.append(aq);}ay.append(at);this._bindUI();setTimeout(function(){ax._container.addClass("yui3-videoplayer-show");},5);if(this._model.get("rendererType")==="html"){this._view._hideVideoTag();}},_buildRight:function(ao){var al=this._model.get("currentMedia"),ay=0,au=typeof(al.get("title"))==="string"?al.get("title"):"",Y=typeof(al.get("description"))==="string"?al.get("description"):"",ak=this._node.get("offsetHeight"),am=W.NS,at=this._view.createNode("h3","title",am),ap=this._view.createNode("p","desc",am),ax=this._view.createNode("table","share",am),an=this._view.createNode("tbody","share-body",am),ar=this._buildLink(),aq=this._buildEmbed(),aw=this._buildFbLink(),av=this._view.createNode("div","right",am);av.set("offsetWidth",ao*0.6);at.set("innerHTML",au);at.setAttribute("tabIndex",-1);ap.set("innerHTML",Y);if(this._view.get("screenSize")==="LARGE"){ay=(ak-140)>0?ak-140:0;}else{ay=(ak-60)>0?ak-60:0;}at.setStyle("maxHeight",ay*0.4);ap.setStyle("maxHeight",ay*0.6);av.append(at);av.append(ap);if(ar||aq){if(ar){an.append(ar);}if(aq){an.append(aq);}ax.append(an);av.append(ax);}if(aw){av.append(aw);}return av;},_buildFbLink:function(){var ap=this._view._controller.getStrings(),am=this._model.get("currentMedia"),ao=am.get("shareUrl"),al=W.NS,an=this._view.createNode("a","fb-link",al),ak=this._view.createNode("span","fb-icon",al),Y=this._view.createNode("span","fb-share",al);if(ao){Y.set("innerHTML",ap.SHARE_ON_FACEBOOK);an.set("target","_blank");an.set("href",f.substitute(r.FACEBOOK_URL_TEMPLATE,{title:encodeURIComponent(am.get("title")),shareUrl:encodeURIComponent(ao)}));an.append(ak);an.append(Y);return an;}return false;},_buildLink:function(){var aq=this._view._controller.getStrings(),ao=this._model.get("currentMedia"),ap=ao.get("shareUrl"),an=W.NS,am=this._view.createNode("tr","link",an),Y=this._view.createNode("td","link-label",an),al=this._view.createNode("td","link-text-box-td",an),ak=this._view.createNode("input","link-text-box",an);if(ap){Y.set("innerHTML",aq.LINK_COLON);ak.set("value",ap);ak.setAttribute("readonly","readonly");al.append(ak);am.append(Y);am.append(al);return am;}return false;},_buildEmbed:function(){var ar=this._view._controller.getStrings(),al=this._model.get("currentMedia"),ak=al.get("embedCode"),aq=al.get("embeddable"),am=W.NS,ap=this._view.createNode("tr","embed",am),Y=this._view.createNode("td","embed-label",am),ao=this._view.createNode("td","embed-text-box-td",am),an=this._view.createNode("input","embed-text-box",am);if(ak&&aq){Y.set("innerHTML",ar.EMBED_COLON);an.set("value",ak);an.setAttribute("readonly","readonly");ao.append(an);ap.append(Y);ap.append(ao);return ap;}return false;},_buildImage:function(aq){var an=this._model.get("currentMedia"),Y=an.get("images"),ao=this._node.get("offsetHeight"),ak=null,am=aq*0.4,al=W.NS,ap=new Image();if(Y&&typeof(Y.medium)==="string"){ak=this._view.createNode("img","image",al);ap.onload=function(){var at=ap.width,ar=ap.height;ak.set("src",Y.medium);ak.set("offsetWidth",am);ak.set("offsetHeight",am*ar/at);};ap.src=Y.medium;}else{ak=this._view.createNode("div","image",al);ak.set("offsetWidth",am);ak.set("offsetHeight",ao*0.4);}return ak;},_buildCcComplaintsLink:function(am,Y){var ao=this._view._controller.getStrings(),an=W.NS,al=this._view.createNode("a","closed-captions-complaint-link",an),aq=this._model.get("ccAvailable"),ap=this._model.get("lang"),ak="us";if(am<250||Y<170){return false;}if(aq&&(ap==="en-US"||ap==="es-US")){al.set("innerHTML",ao.CLOSED_CAPTION_COMPLAINTS);al.set("target","_blank");if(ap==="es-US"){ak="e1";}al.set("href",f.substitute(r.CC_COMPLAINTS_URL_TEMPLATE,{region:ak,lang:ap.toLowerCase()}));return al;}return false;},_closeScreen:function(){var Y=this._model;if(Y.get("rendererType")==="html"){this._view._showVideoTag();}Y.set("activeScreenStr",undefined);},_bindUI:function(){var ap=this._container,ak=this,Y=this._model,ao=this.close,an=this.imgLink,al=ap.all(".yui3-videoplayer-infoscreen-share input"),am=ap.one(".yui3-videoplayer-infoscreen-fb-link");if(f.Lang.isValue(ao)){ao.on("click",function(){ak._closeScreen();},this);}if(f.Lang.isValue(an)){an.on("click",function(){Y.fire("uiInteract",{source:this.constructor.NS+"Thumb"});ak._closeScreen();},this);}if(f.Lang.isValue(al)){al.on("click",function(aq){var at=aq.target,ar=at._node.className.match(/yui3-videoplayer-[\w]*-([\w]*)-text-box/)[1].replace(/^([\w])(.*)/,function(au,aw,av){return this.constructor.NS+aw.toUpperCase()+av;});at.focus();at.select();Y.fire("uiInteract",{source:ar});
},this);}if(f.Lang.isValue(am)){am.on("click",function(){Y.fire("uiInteract",{source:this.constructor.NS+"Facebook"});},this);}},destructor:function(ak){var Y=this;this._container.removeClass("yui3-videoplayer-show");if(f.UA.ie>0&&f.UA.ie<9){Y._container.remove();if(ak){ak();}}else{setTimeout(function(){Y._container.remove();if(ak){ak();}},300);}}});f.namespace("VideoPlatform").InfoScreen=W;function p(){p.superclass.constructor.apply(this,arguments);}p.NAME="EndScreen";p.NS="endscreen";p.ATTRS={};p.DIMENSIONS={LARGE:{CONTAINER_PADDING:35,MIN_WIDTH:200,MIN_HEIGHT:200},MEDIUM:{CONTAINER_PADDING:35,MIN_WIDTH:200,MIN_HEIGHT:200},SMALL:{CONTAINER_PADDING:35,MIN_WIDTH:200,MIN_HEIGHT:160}};p.END_SCREEN_CAROUSEL_DIMENSIONS={LARGE:{ITEM_WIDTH:208,ITEM_HEIGHT:117,IMAGE_WIDTH:208,IMAGE_HEIGHT:117,HORIZONTAL_SPACING:8,VERTICAL_SPACING:4,MARGIN:0},MEDIUM:{ITEM_WIDTH:208,ITEM_HEIGHT:117,IMAGE_WIDTH:208,IMAGE_HEIGHT:117,HORIZONTAL_SPACING:8,VERTICAL_SPACING:4,MARGIN:0},SMALL:{ITEM_WIDTH:157,ITEM_HEIGHT:88,IMAGE_WIDTH:157,IMAGE_HEIGHT:88,HORIZONTAL_SPACING:2,VERTICAL_SPACING:1}};f.extend(p,f.Base,{initializer:function(Y){this._model=Y.model;this._view=Y.view;this.mode="REPLAY";this._controller=Y.view._controller;this.i18n=this._controller.getStrings();this.screenSize=this._view.get("screenSize");this.dimensions=p.DIMENSIONS[this.screenSize];this._config=f.Lang.isObject(this._model.get("endscreen"))||{};this._useCarousel=(this._model.get("endScreenVideos").get("mediaItems")).length>1;if(this._config&&this._config.on){this.on(this._config.on);}},render:function(an){var ak=this,am=p.NS,Y=ak._getMediaItem(),ao,al;if(ak.mode==="PLAY_NEXT"){ak._continue();return;}ak.renderView(an,Y,am);if(ak.mode==="REPLAY"&&this._model.get("carousel")){ak._hidePlaylistCarousel(ak.container);}al=ak._model.get("endScreenVideos").get("mediaItems");al.add(Y,0);al=al.toArray();this._useCarousel=al.length>1;if(this._isValidPlayerSize(an)===true){if(this._useCarousel){setTimeout(function(){ak._renderCarousel(al,am);},20);}else{ak._renderWatchedView(Y,am);}}else{ao=ak._view.createNode("div","blank-node",am);ak._setContainerHeight(ao);ak.container.prepend(ao);}ak.container.addClass("show");ak._bindUI();},_isValidPlayerSize:function(Y){return(this.dimensions.MIN_HEIGHT<=Y.get("offsetHeight")&&this.dimensions.MIN_WIDTH<=Y.get("offsetWidth"));},_getMediaItem:function(){var am=this,Y=am._model,ao=am._config.mediaItem||null,al,an,ak;if(ao){al=new n(ao);if(al.images){al.images.large=al.images.medium=al.images.thumbnail;}}else{an=Y.get("playlistPosition");ak=Y.get("playlist").items().item(an+1);if(ak&&Y.get("continuousPlay")){am.mode="PLAY_NEXT";al=ak;}else{am.mode="REPLAY";al=Y.get("playlist").items().item(an);}}return al;},_hidePlaylistCarousel:function(Y){var ak=Y.ancestor(".yui3-videoplayer-content");ak.one(".yui3-videoplayer-playlist-carousel").setStyle("display","none");ak.one(".yui3-videoplayer-carousel-title").removeClass("yui3-videoplayer-show");ak.one(".yui3-videoplayer-main").setStyle("height","100%");},renderView:function(am,ak,al){var an=this._view,Y=an.createNode("div","container",al);am.append(Y);this.container=Y;if(this._model.get("rendererType")==="html"){an._hideVideoTag();}this._model.fire("uiInteract",{source:"es-view"});},_renderWatchedView:function(al,am){var aw=this,at=aw._view,ak=aw.container,ar=al.get("images")||null,av=ar&&(ar.thumbnail||ar.small||ar.medium||ar.large)||H.PLAYER_ASSETS_URL+"video_thumb_nopic.png",an=at.createNode("img","watched-img",am),ap=f.Node.create("
").setAttribute("class","overlay"),au=f.Node.create(" ").setAttribute("class","replay-button"),Y=f.Node.create(" ").setAttribute("class","replay-text").set("innerHTML",aw.i18n.REPLAY),ao=at.createNode("div","watched",am),aq=at.createNode("div","watched-wrapper",am);ap.append(au);ap.append(Y);an.once("load",function(){aw._positionReplayViewNode(ao);aq.setStyle("visibility","visible");});an.setAttribute("src",av);aw._resizeImage(an);ao.append(an);ao.append(ap);aq.append(ao);aq.setStyles({"width":p.END_SCREEN_CAROUSEL_DIMENSIONS[aw.screenSize].IMAGE_WIDTH,"visibility":"hidden","overflow":"auto"});ak.prepend(aq);},_resizeImage:function(al){var ak=this,an=p.END_SCREEN_CAROUSEL_DIMENSIONS[ak.screenSize],Y=ak._useCarousel?an.IMAGE_HEIGHT+"px":"auto",am=ak._useCarousel?an.IMAGE_WIDTH+"px":"100%";al.setStyles({"height":Y,"width":am});},_positionReplayViewNode:function(Y){var ak=0-Math.round(Y.get("region").height/2);Y.setStyle("marginTop",ak);},_setContainerHeight:function(Y){Y.setStyle("height",this.container.get("offsetHeight"));},_renderCarousel:function(al,an){var Y=this._view.createNode("div","carousel-node",an),am=this.screenSize,ak=new g({"view":this,"mediaItems":al,"pltype":"endScreen","showMetadata":true,"showNavigation":false,"dimensions":{itemWidth:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].ITEM_WIDTH,itemHeight:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].ITEM_HEIGHT,imageWidth:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].IMAGE_WIDTH,imageHeight:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].IMAGE_HEIGHT,horizontalSpacing:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].HORIZONTAL_SPACING,verticalSpacing:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].VERTICAL_SPACING,carouselMargin:p.END_SCREEN_CAROUSEL_DIMENSIONS[am].MARGIN}});this._setContainerHeight(Y);this.container.prepend(Y);ak.render(Y);},destructor:function(){var Y=this;if(f.UA.ie>0&&f.UA.ie<9){Y.container.remove();}else{Y.container.removeClass("show");setTimeout(function(){Y.container.remove();},500);}},_replayVideo:function(){if(this._model.get("rendererType")==="html"){this._view._showVideoTag();}this._view._model.set("activeScreenStr",undefined);this._model.fire("uiInteract",{source:"es-rpl"});},_bindUI:function(){var Y=this,ak;ak=f.one(".yui3-videoplayer-endscreen-watched");if(ak){ak.on(["click","touchstart"],Y._replayVideo,Y);}},_continue:function(){var Y=this;setTimeout(function(){if(Y._model.get("rendererType")==="html"){Y._view._showVideoTag();}if(Y.mode==="PLAY_NEXT"){Y._view._controller.playNext();}else{Y._view._model.set("activeScreenStr",undefined);
}},500);}});f.namespace("VideoPlatform").EndScreen=p;function t(){t.superclass.constructor.apply(this,arguments);}t.NAME="HotkeyOverlay";t.NS="hotkeyoverlay";t.ATTRS={};f.extend(t,f.Base,{log:function(ak,Y){},initializer:function(Y){this._view=Y.view;},render:function(al){var Y=this,am=Y._view,ak=t.NS;Y._node=al;Y.container=am.createNode("div","container",ak);Y.wrapper=am.createNode("div","table-wrapper",ak);Y.table=am.createNode("table","table",ak);Y.close=am.createNode("button","close",ak);Y.title=am.createNode("h2","title",ak);Y._tb=f.Node.create(" ");Y.close.set("innerHTML","X");Y.close.setAttribute("alt","Close Hotkey Menu");Y.close.addClass("close");Y.title.set("innerHTML","Hotkey Menu");Y.title.setAttribute("tabIndex",-1);Y._appendRow("Question Mark:","Open Hotkey Menu");Y._appendRow("Esc:","Close Menu");Y._appendRow("Shift + Space Bar:","Play / Pause");Y._appendRow("Ctrl + Shift + M:","Mute / Un-Mute");Y._appendRow("Ctrl + Shift + N:","Next Video");Y.table.append(Y._tb);Y.wrapper.append(Y.title);Y.wrapper.append(Y.table);Y.wrapper.append(Y.close);Y.container.append(Y.wrapper);al.append(Y.container);Y._bindUI();setTimeout(function(){Y.container.addClass("yui3-videoplayer-show");},10);},_bindUI:function(){var Y=this._view;this.close.on("click",function(ak){Y.set("activeOverlay",undefined);ak.preventDefault();});},_appendRow:function(ak,Y){var an=f.Node.create(' '),al=f.Node.create(' '),am=f.Node.create(" ");an.set("innerHTML",ak);al.set("innerHTML",Y);am.append(an);am.append(al);this._tb.append(am);},destructor:function(){this.container.removeClass("yui3-videoplayer-show");var Y=this;setTimeout(function(){Y.container.remove();},400);}});f.namespace("VideoPlatform").HotkeyOverlay=t;function F(){F.superclass.constructor.apply(this,arguments);}F.NAME="Controls";F.NS="controls";F.ATTRS={};F.VOLUME_INCREMENT=0.1;F.SEEK_INCREMENT=5;F.VISUAL_SEEK_COLLAGE_ROWS=10;F.VISUAL_SEEK_COLLAGE_COLS=10;f.extend(F,f.Base,{initializer:function(Y){var ak=document.createElement("p").style;this._model=Y.model;this._controller=Y.controller;this._view=Y.view;this.i18n=this._controller.getStrings();this._controller.setControlsObj(this);this.controlsAPI=new u(this._model,this._controller);this.playlistAPI=new T(this._model,this._controller);this._isIE9OrEarlier=f.UA.ie>0&&f.UA.ie<10;this._transitionsSupported="transition" in ak||"WebkitTransition" in ak||"MozTransition" in ak||"msTransition" in ak||"OTransition" in ak;this._node=null;this._controlsNode=null;this._barNode=null;this._playPauseNode=null;this._seekNode=null;this._seekBufferNode=null;this._seekProgressNode=null;this._seekHandleNode=null;this._seekTimeNode=null;this._settingsNode=null;this._settingsPanelNode=null;this._sizeSmallNode=null;this._sizeFullNode=null;this._volumeBarsNode=null;this._muteNode=null;this._ccOnNode=null;this._ccOffNode=null;this._idleTimer=null;this._settingsPanelTimer=null;this._settingsTimer=null;this._totalSecs=null;if(f.UA.gecko>0&&f.UA.os==="macintosh"){this._lastPlayTime=0;}this._settingsContextMenuIsOpen=false;},destructor:function(){},render:function(av){var aq=this,am=null,Y=null,ap=null,ax=null,aB=null,al=null,aA=null,aC=null,aw=null,ak=null,ao=null,ay=null,an=null,au=null,ar=this._model.get("chromeless"),az=null,at=null;aq._node=av;aq._barNode=aq._createNode("div","bar");aq._seekNode=aq._createNode("div","seek");am=aq._createNode("div","main");aq._playPauseNode=aq._addButton("item play-pause yui3-videoplayer-transparent","","span");am.append(aq._playPauseNode);ap=aq._createNode("div","slider");aq._sliderNode=ap;aq._seekBufferNode=aq._createNode("div","buffer");ap.append(aq._seekBufferNode);aq._seekProgressNode=aq._createNode("div","progress");ap.append(aq._seekProgressNode);aq._seekHandleNode=aq._createNode("div","handle");ap.append(aq._seekHandleNode);aq._seekNode.append(ap);aq._seekTimeNode=aq._createNode("div","time show");aq._seekNode.append(aq._seekTimeNode);if(aq._model.get("isVisualSeekEnabled")===true){aq._visualSeekNode=aq._createNode("div","vseek");aq._visualSeekThumbNode=aq._createNode("div","vseek-thumb");aq._visualSeekNode.append(aq._visualSeekThumbNode);aq._visualSeekTimeNode=aq._createNode("div","vseek-time");aq._visualSeekNode.append(aq._visualSeekTimeNode);aq._seekNode.append(aq._visualSeekNode);}aq._settingsNode=aq._createNode("div","item settings yui3-videoplayer-transparent");aq._settingsNode.append(aq._createNode("span",""));Y=aq._createNode("div","aux");Y.append(aq._settingsNode);aB=aq._createNode("tbody","");aB.append(aq._getShareEmbedNode());aB.append(aq._getEmbedLinkNode());aB.append(aq._getEmbedCodeNode());aB.append(aq._getClosedCaptionsNode());aq._sizeSmallNode=aq._addButton("small on","");aq._sizeFullNode=aq._addButton("full","");aC=aq._createNode("td","");aC.append(aq._sizeSmallNode);aC.append(aq._sizeFullNode);aw=aq._createNode("th","");aw.set("innerHTML",this.i18n.SIZE_LC);aA=aq._createNode("tr","size");aA.append(aw);aA.append(aC);aB.append(aA);an=aq._createNode("div","bars");an.append(aq._createNode("div","bar-1"));an.append(aq._createNode("div","bar-2"));an.append(aq._createNode("div","bar-3"));an.append(aq._createNode("div","bar-4"));an.append(aq._createNode("div","bar-5"));an.append(aq._createNode("div","bar-6"));aq._volumeBarsNode=an;aq._muteNode=aq._addButton("mute","Mute");ay=aq._createNode("td","");aq._muteNode=aq._addButton("mute","","span");ay.append(aq._muteNode);ay.append(aq._volumeBarsNode);ao=aq._createNode("th","");ao.set("innerHTML",this.i18n.VOLUME_LC);ak=aq._createNode("tr","volume");ak.append(ao);ak.append(ay);aB.append(ak);ax=aq._createNode("table","");ax.append(aB);aq._settingsPanelNode=aq._createNode("div","settings-panel");al=aq._createNode("div","settings-panel-box yui3-videoplayer-transparent");aq._settingsPanelNode.append(ax);al.append(aq._settingsPanelNode);aq._barNode.append(am);aq._barNode.append(aq._seekNode);aq._barNode.append(Y);if(this._isIE9OrEarlier){au=aq._createNode("div","ie-gradient");
aq._node.append(au);}aq._node.append(aq._barNode);aq._node.append(al);if(f.UA.mobile!==null||ar===true){av.setStyle("display","none");}at=aq._node.ancestor();if(at){az=aq._createNode("div","accessible-controls");az.append(aq._addButton("play","Play"));az.append(aq._addButton("seek-back","Seek Back 5 Seconds"));az.append(aq._addButton("seek-forward","Seek Forward 5 Seconds"));az.append(aq._addButton("volume-up","Volume Up"));az.append(aq._addButton("volume-down","Volume Down"));az.append(aq._addButton("mute","Mute"));az.append(aq._addButton("next-video","Next Video"));az.append(aq._addButton("hotkey-menu","Open Hotkey Menu"));az.setStyle("display","none");aq._node.insert(az,"before");}if(aq._isIE9OrEarlier){aq._node.all("*").setAttribute("unselectable","on");}aq._bindUI();aq._syncUI();setTimeout(function(){aq._view._node.one(".accessible-controls").setStyle("display","block");},300);aq._show();},inAdContext:function(){var Y=this._model.get("yvapState");if((Y===YVAPEvents.AD_START)||(Y===YVAPEvents.AD_PROGRESS)){return true;}return false;},_play:function(){if(!this._model.get("isPlaying")){this.controlsAPI.play();}else{this.controlsAPI.pause();}},_volumeUp:function(){this.controlsAPI.setVolume(this.controlsAPI.getVolume()+F.VOLUME_INCREMENT);},_volumeDown:function(){this.controlsAPI.setVolume(this.controlsAPI.getVolume()-F.VOLUME_INCREMENT);},_nextVideo:function(){var Y=this.playlistAPI.getPosition(),ak=this.playlistAPI.getSize()-1;if(Y0)){ar._settingsPanelNode.on("contextmenu",ar._showSettingsContextMenu,ar);}ar._settingsNode.on("click",ar._settingsClick,ar);ar._sizeSmallNode.on("click",ar._sizeSmallClick,ar);ar._sizeFullNode.on("click",ar._sizeFullClick,ar);al.after("rendererReadyChange",function(){if(!ar._model.get("rendererReady")){return;}ar._controller._renderer.after(ae.FULLSCREEN_ENTER,ar._setFullSizeButton,ar);ar._controller._renderer.after(ae.FULLSCREEN_EXIT,ar._setSmallSizeButton,ar);},ar);ar._muteNode.on("click",ar._muteClick,ar);ar._volumeBarsNode.on("mousedown",ar._volumeDragStart,ar);ar._seekNode.on("mousedown",ar._seekDragStart,ar);if(al.get("isVisualSeekEnabled")===true){Y=ar._sliderNode;Y.on("mouseenter",ar._onVisualSeekMouseEnter,this);Y.on("mouseleave",ar._onVisualSeekMouseLeave,this);Y.on("mousemove",ar._moveVisualSeek,this);}al.after("durationChange",function(at){ar._updateDuration(at.newVal);});al.after("isPlayingChange",function(){ar._setCloseCaptions();ar._setShareUrlEmbedCode();ar._volumeBarsChange(ar.controlsAPI.getVolume());ar._updateSeekBarState();ar._syncUI();if(al.get("isVisualSeekEnabled")===true){ar._updateVisualSeek();}},ar);al.after("ccAvailableChange",function(){ar._setCloseCaptions();});al.after("yvapStateChange",function(at){if(at.newVal===YVAPEvents.AD_START){ar._setShareUrlEmbedCode();ar._volumeBarsChange(ar.controlsAPI.getVolume());ar._syncUI();ar._hideVisualSeek();}},ar);al.after("muteChange",function(){ar._syncUI();},ar);al.after("currentTimeChange",function(at){ar.playTimeChange(at.newVal,ar._totalSecs);if(al.get("isPlaying")&&ar._bufferTimerStarted===false){ar._bufferTimerStarted=true;ar._startBufferTimer();}},ar);al.after("adPlaybackPositionChange",function(at){ar.playTimeChange(at.newVal,ar.adTotalSecs);},ar);al.after("currentMediaChange",function(){ar._setShareUrlEmbedCode();ar._setCloseCaptions();ar._updateSeekBarState();ar._bufferTimeChange(0);if(al.get("isVisualSeekEnabled")===true){ar._resetVisualSeek();}},ar);al.after("showClosedCaptionsChange",function(at){if(f.Lang.isValue(at.newVal)){ar._updateClosedCaptionButtons(at.newVal);}},ar);al.after("playerStateChange",function(at){if(at.newVal==="playbackComplete"){ar._clearBufferTimer();}},ar);ar._settingsPanelNode.setStyle("display","none");if(f.UA.mobile!==null){ar._settingsPanelNode.one(".volume").addClass("disable");}if(f.UA.mobile===null&&al.get("rendererType")==="html"){an=ap.one(".yui3-videoplayer-video");an.on("click",ar._playPauseChange,ar);}ar._settingsPanelNode.one(".fb-icon").on("click",function(){ar._fireUIInteractBeacon("ctrl-Facebook");});ar._bindAccessibleControls();ar._startIdleTimer();if(!H.isFullscreenSupported()){aq=ar._settingsPanelNode.one(".size");aq.addClass("disable");}},_syncUI:function(){var al=this,Y=al._model,ak=al._view;setTimeout(function(){if(ak.get("activeOverlay")&&ak.get("activeOverlay").name==="HotkeyOverlay"){al._hotkeyNode.set("innerHTML","Close Hotkey Menu");}else{al._hotkeyNode.set("innerHTML","Open Hotkey Menu");}if(!al.controlsAPI.getMute()){al._muteNode.removeClass("on");}else{al._muteNode.addClass("on");}},50);if(Y.get("isPlaying")){al._playPauseNode.removeClass("play");al._playPauseNode.addClass("pause");}else{al._playPauseNode.removeClass("pause");
al._playPauseNode.addClass("play");}al._syncSizeButtons();},_startIdleTimer:function(){var Y=this;if(Y._idleTimer){clearTimeout(Y._idleTimer);Y._idleTimer=null;}if(Y._seekNode.hasClass("drag")||Y._controlsNode.hasClass("active")){return;}Y._idleTimer=setTimeout(function(){Y._hide();Y._idleTimer=null;},3000);},_startBufferTimer:function(){var Y=this,ak=Y._controller.getRenderer();Y._bufferTimer=setInterval(function(){var am=ak.getBuffered(),al;if(am){al=Math.floor(am.end);}else{Y._clearBufferTimer();return;}Y._bufferTimeChange(al);},1000);},_clearBufferTimer:function(){var Y=this;Y._bufferTimerStarted=false;if(Y._bufferTimer){clearInterval(Y._bufferTimer);}},_show:function(){var Y=this;if(!Y._controlsNode.hasClass("show")){Y._barNode.removeClass("disable");if(Y._transitionsSupported){setTimeout(function(){Y._controlsNode.addClass("show");Y._model.set("showControls",true);},1);}else{Y._controlsNode.addClass("show");Y._model.set("showControls",true);}}Y._startIdleTimer();},_hide:function(){var ak=this,Y=ak._settingsContextMenuIsOpen;ak._settingsContextMenuIsOpen=false;if(Y){ak._hideSettingsAfterDelay();return;}if(ak._seekNode.hasClass("drag")||ak._controlsNode.hasClass("active")){return;}if(ak._idleTimer){clearTimeout(ak._idleTimer);ak._idleTimer=null;}if(ak._seekTimeNode.hasClass("show")&&ak._transitionsSupported){ak._seekTimeNode.removeClass("show");setTimeout(function(){ak._hideControls();},700);}else{ak._hideControls();}},_hideControls:function(){var Y=this;if(Y._idleTimer||Y._controlsNode.hasClass("active")){return;}Y._controlsNode.removeClass("show");Y._hideSettings();if(Y._transitionsSupported){setTimeout(function(){if(!Y._controlsNode.hasClass("show")){Y._barNode.addClass("disable");Y._seekTimeNode.addClass("show");Y._model.set("showControls",false);}},200);}else{Y._barNode.addClass("disable");Y._seekTimeNode.addClass("show");Y._model.set("showControls",false);}},_controlsMouseEnter:function(){this._controlsNode.addClass("active");},_controlsMouseLeave:function(){this._controlsNode.removeClass("active");this._startIdleTimer();},_bindAccessibleControls:function(){var at=this,ak=at._view._node.one(".accessible-controls"),ap=ak.one(".play"),ar=ak.one(".seek-back"),ao=ak.one(".seek-forward"),an=ak.one(".volume-up"),am=ak.one(".volume-down"),Y=ak.one(".mute"),al=ak.one(".next-video"),aq=ak.one(".hotkey-menu");ap.on("click",function(){at._play();if(at._model.get("isPlaying")){ap.set("innerHTML","Pause");}else{ap.set("innerHTML","Play");}});ar.on("click",function(){at.controlsAPI.seek(at.controlsAPI.getCurrentTime()-F.SEEK_INCREMENT);});ao.on("click",function(){at.controlsAPI.seek(at.controlsAPI.getCurrentTime()+F.SEEK_INCREMENT);});an.on("click",function(){at._volumeUp();});am.on("click",function(){at._volumeDown();});Y.on("click",function(){at.controlsAPI.setMute(!at.controlsAPI.getMute());if(!at.controlsAPI.getMute()){Y.set("innerHTML","Mute");}else{Y.set("innerHTML","Unmute");}});al.on("click",function(){at._nextVideo();});aq.on("click",function(){at._hotkeyMenu();});at._syncUI();},_updateDuration:function(Y){this._totalSecs=Y;},_updateSeekBarState:function(){var Y=this,ak=Y._model.get("currentMedia"),al=Y._controller.getRenderer().getDuration();if(ak){if(ak.get("isLive")===true||ak.get("isRTX")===true||al===Infinity||al===0){Y._seekNode.addClass("disable");}else{Y._seekNode.removeClass("disable");}}},enableMaxMin:function(Y){return Y;},_bufferTimeChange:function(Y){var ak=this,al;if(!ak._totalSecs){ak._clearBufferTimer();return;}if(typeof Y==="undefined"||Y===null){ak._clearBufferTimer();return;}if(Y>=Math.floor(ak._totalSecs)){Y=ak._totalSecs;}al=Y/ak._totalSecs;ak._seekBufferNode.setStyle("width",(al*100)+"%");},setAdDuration:function(Y){if(Y){this.adTotalSecs=Y;}},playTimeChange:function(am,Y){if(!Y){return;}if(f.UA.gecko>0&&f.UA.os==="macintosh"){if(am>this._lastPlayTime&&am-this._lastPlayTime<=0.25){return;}this._lastPlayTime=am;}if(am>Y){am=Y;}if(typeof am!=="undefined"){var ak=this,al=am/Y;if(!isNaN(al)){ak._seekProgressReposition(al);if(!ak._seekNode.hasClass("drag")){ak._setSeekTime(am,Y);ak._seekHandleReposition(al);}}}},_setSeekTime:function(an,Y){if(isNaN(Y)||Y===Number.POSITIVE_INFINITY){return;}var ak=this,al=ak._formatSecs(Y-Math.min(an,Y)),am=al.length*12;ak._seekTimeNode.set("innerHTML",al);ak._seekTimeNode.setStyle("width",am+"px");ak._seekTimeNode.setStyle("marginLeft","-"+Math.floor(am/2)+"px");},_seekProgressReposition:function(Y){this._seekProgressNode.setStyle("width",Y*100+"%");},_seekDragStart:function(ak){var Y=this;if(Y._seekNode.hasClass("disable-drag")){return;}Y._seekNode.addClass("drag");f.one("body").addClass("yui3-videoplayer-drag");Y._seekDragChange(ak);Y._fireUIInteractBeacon("ctrl-Seek");},_seekDragEnd:function(ak){var Y=this;if(Y._seekNode.hasClass("disable-drag")){return;}Y._seekNode.removeClass("drag");f.one("body").removeClass("yui3-videoplayer-drag");Y._startIdleTimer();if(Y._isVisualSeekEnabled()&&(Y._sliderNode.contains(ak.target)===false)){Y._hideVisualSeek();}},_seekDragChange:function(am){if(!this._seekNode.hasClass("drag")||this._seekNode.hasClass("disable-drag")){return;}var Y=this,al=am.pageX-Y._seekNode.getXY()[0],ak=Math.max(0,Math.min(Y._seekNode.get("offsetWidth"),al))/Y._seekNode.get("offsetWidth"),an=ak*Y._totalSecs;Y._setSeekTime(an,Y._totalSecs);Y._seekHandleReposition(ak);Y._seekProgressReposition(ak);Y.controlsAPI.seek(an);if(Y._model.get("isVisualSeekEnabled")===true){Y._moveVisualSeek(am);}},_seekHandleReposition:function(al){var ak=this,Y=(al*100)+"%";ak._seekHandleNode.setStyle("left",Y);ak._seekTimeNode.setStyle("left",Y);},_formatSecs:function(ak){var am=Math.floor(ak/3600),Y=Math.floor((ak-am*3600)/60),al=Math.floor(ak-(am*3600)-(Y*60));if(al<10){al="0"+al;}if(am>0){if(Y<10){Y="0"+Y;}return am+":"+Y+":"+al;}else{return Y+":"+al;}},_muteChange:function(){var Y=this;if(Y._muteNode.hasClass("disable")){return;}if(Y._muteNode.hasClass("on")){Y._muteOff();}else{Y._muteOn();}},_muteOff:function(){var Y=this;Y._muteNode.removeClass("on");
if(Y.inAdContext()){Y._controller._renderer.onMuteChange(false);}Y.controlsAPI.setMute(false);Y._volumeBarsChange(Y.controlsAPI.getVolume());},_muteOn:function(){var Y=this;Y._muteNode.addClass("on");if(Y.inAdContext()){Y._controller._renderer.onMuteChange(true);}Y.controlsAPI.setMute(true);Y._volumeBarsChange(0);},_volumeBarsChange:function(an){var ak=this,Y,am,al=6;if(ak.controlsAPI.getMute()){Y=0;}else{Y=Math.floor(an*al);}for(am=1;am<=Y;am++){ak._volumeBarsNode.one(".bar-"+am).addClass("on");}for(am=Y+1;am<=al;am++){ak._volumeBarsNode.one(".bar-"+am).removeClass("on");}},volumeChange:function(ak){var Y=this;if(ak===0){Y._muteOn();}else{Y.controlsAPI.setVolume(ak);if(Y.controlsAPI.getMute()){Y._muteOff();}Y._volumeBarsChange(ak);}},_getVolumeFromPixelPosition:function(ak){var Y=this._volumeBarsNode.get("clientWidth")-5;ak=Math.min(Y,Math.max(0,ak));return ak/Y*1;},_volumeDragStart:function(ak){var Y=this;Y._volumeBarsNode.addClass("drag");Y._volumeDragChange(ak);Y._fireUIInteractBeacon("ctrl-Volume");},_volumeDragChange:function(ak){var Y=this;if(!Y._volumeBarsNode.hasClass("drag")){return;}Y.volumeChange(Y._getVolumeFromPixelPosition(ak.pageX-Y._volumeBarsNode.getXY()[0]));},_volumeDragEnd:function(){var Y=this;if(!Y._volumeBarsNode.hasClass("drag")){return;}Y._volumeBarsNode.removeClass("drag");Y._startIdleTimer();},_playPauseChange:function(){var Y=this;if(Y._playPauseNode.hasClass("disable")){return;}if(Y._playPauseNode.hasClass("play")){Y._playPauseNode.removeClass("play");Y._playPauseNode.addClass("pause");Y._fireUIInteractBeacon("ctrl-Play");}else{Y._playPauseNode.removeClass("pause");Y._playPauseNode.addClass("play");Y._fireUIInteractBeacon("ctrl-Pause");}Y._play();},_stopSettingsPanelTimer:function(){var Y=this;if(Y._settingsPanelTimer){clearTimeout(Y._settingsPanelTimer);Y._settingsPanelTimer=null;}},_showSettings:function(){var Y=this;Y._stopSettingsPanelTimer();if(Y._settingsNode.hasClass("on")||Y._seekNode.hasClass("drag")){return;}Y._settingsNode.addClass("on");Y._settingsPanelNode.show("fadeIn",{duration:0.1});Y._fireUIInteractBeacon("ctrl-SettingsView");},_showSettingsAfterDelay:function(){var Y=this;Y._settingsTimer=setTimeout(function(){Y._showSettings();},300);},_hideSettings:function(){var Y=this;if(!Y._settingsNode.hasClass("on")){return;}Y._settingsPanelNode.one(".embed-code").hide();Y._settingsPanelNode.one(".embed-link").hide();Y._settingsNode.removeClass("on");Y._settingsPanelNode.hide("fadeOut",{duration:0.2});},_hideSettingsAfterDelay:function(){var Y=this;if(Y._settingsTimer){clearTimeout(Y._settingsTimer);Y._settingsTimer=null;}Y._stopSettingsPanelTimer();Y._settingsPanelTimer=setTimeout(function(){Y._hideSettings();},1500);},_showSettingsContextMenu:function(){var Y=this;Y._settingsContextMenuIsOpen=true;},_settingsClick:function(){var Y=this;if(Y._settingsNode.hasClass("on")){Y._hideSettings();}else{Y._showSettings();}},_sizeSmallClick:function(){var Y=this;if(!Y._sizeFullNode.hasClass("on")){return;}if(Y.inAdContext()){Y._controller._renderer.setFullscreen(false);}else{Y.controlsAPI.setFullscreen(false);}Y._fireUIInteractBeacon("ctrl-Fullscreen-off");},_sizeFullClick:function(){var Y=this;if(!Y._sizeSmallNode.hasClass("on")){return;}if(Y.inAdContext()){Y._controller._renderer.setFullscreen(true);}else{Y.controlsAPI.setFullscreen(true);}Y._fireUIInteractBeacon("ctrl-Fullscreen-on");},_setSmallSizeButton:function(){var Y=this;Y._sizeFullNode.removeClass("on");Y._sizeSmallNode.addClass("on");},_setFullSizeButton:function(){var Y=this;Y._sizeSmallNode.removeClass("on");Y._sizeFullNode.addClass("on");},_getClosedCaptionsNode:function(){var ap=this,ar=ap.i18n,ak=ap._createNode("tr","disable captions"),am=ap._createNode("th","caption-hdr"),an=ap._createNode("td","caption-buttons"),Y=ap._addButton("text cc-feedback",ar.CAPTIONS_FEEDBACK),al="en-us",ao="us",aq;an.append(ap._addButton("text cc-on on",ar.ON_LC));an.append(ap._addButton("text cc-off",ar.OFF_LC));an.append(Y);am.set("innerHTML",ar.CAPTIONS_LC);ak.append(am);ak.append(an);aq=function(){ap._fireUIInteractBeacon("ctrl-CC-feedback");window.open(f.Lang.sub(r.CC_COMPLAINTS_URL_TEMPLATE,{region:ao,lang:al.toLowerCase()}));};Y.on("click",aq);return ak;},_ccOnClick:function(){var Y=this;if(!Y._ccOffNode.hasClass("on")){return;}Y.controlsAPI.displayClosedCaptions(true);Y._fireUIInteractBeacon("ctrl-CC-on");},_ccOffClick:function(){var Y=this;if(!Y._ccOnNode.hasClass("on")){return;}Y.controlsAPI.displayClosedCaptions(false);Y._fireUIInteractBeacon("ctrl-CC-off");},_setCloseCaptions:function(){var ak=this,Y=ak._model,al=ak._settingsPanelNode.one(".captions");if(Y.get("ccAvailable")){al.removeClass("disable");ak._ccOnNode=ak._settingsPanelNode.one(".cc-on");ak._ccOffNode=ak._settingsPanelNode.one(".cc-off");ak._ccOnNode.on("click",ak._ccOnClick,ak);ak._ccOffNode.on("click",ak._ccOffClick,ak);ak._updateClosedCaptionButtons(Y.get("showClosedCaptions"));}else{al.addClass("disable");}},_updateClosedCaptionButtons:function(ak){var Y=this;if(ak){Y._ccOnNode.addClass("on");Y._ccOffNode.removeClass("on");}else{Y._ccOffNode.addClass("on");Y._ccOnNode.removeClass("on");}},enableCloseCaptions:function(Y){var ak=this._settingsPanelNode.one(".captions");if(Y){ak.removeClass("disable");}else{ak.addClass("disable");}},_setShareUrlEmbedCode:function(){var ar=this,al=ar._model.get("currentMedia"),an=al.get("shareUrl"),Y=al.get("embedCode"),ao=al.get("embeddable"),am=ar._settingsPanelNode,aq=am.one(".fb-icon"),ak=am.one(".embed-link-text"),ap=am.one(".embed-code-text");if(ao===undefined||(!an&&!Y)||this.inAdContext()){am.one(".share-embeds").hide();return;}am.one(".share-embeds").show();if(an){aq.set("target","_blank");aq.set("href",f.substitute(r.FACEBOOK_URL_TEMPLATE,{title:encodeURIComponent(al.get("title")),shareUrl:encodeURIComponent(an)}));ak.set("value",an).setAttribute("readonly","readonly");}if(ao===true&&Y){ap.set("value",Y).setAttribute("readonly","readonly");am.one(".embed-valid-code").show();am.one(".embed-error").hide();
}else{am.one(".embed-valid-code").hide();am.one(".embed-error").show();}},_getShareEmbedNode:function(){var al=this,am=al.i18n,Y=al._createNode("tr","share-embeds"),ao=al._createNode("th","share-embeds-hdr"),an=al._createNode("td","share-embeds-buttons"),ak=null;ak=al._addButton("button embed-button",am.EMBED_UCF);ak.on("click",al._toggleEmbedCode,al);an.append(al._createNode("a","button fb-icon",""));an.append(ak);ao.set("innerHTML",am.SHARE_LC);Y.append(ao);Y.append(an);return Y;},_getEmbedLinkNode:function(){var am=this,ao=am._createNode("tr","embed-link"),aq=am._createNode("th",""),an=am._createNode("td",""),Y=am._createNode("div","text",""),ak=am._createNode("input","text embed-link-text",""),ap=am._createNode("span","text embed-link-button",""),al=am._addButton("button embed-chainlink-button","");ap.append(al);ap.on("click",am._onLinkClick,am);ak.on("click",am._onLinkClick,am);Y.append(ak);Y.append(ap);an.append(Y);aq.set("innerHTML",am.i18n.LINK_LC);ao.append(aq);ao.append(an);ao.hide();return ao;},_getEmbedCodeNode:function(){var au=this,av=au.i18n,aq=au._createNode("tr","embed-code"),Y=au._createNode("th",""),ao=au._createNode("td",""),al=au._createNode("div","text embed-valid-code",""),at=au._createNode("input","text embed-code-text",""),ap=au._createNode("span","text embed-code-button",""),am=au._addButton("button embed-chainlink-button",""),ak=au._createNode("div","text embed-error",""),ar=au._createNode("input","text embed-error-text",""),an=av.ERR_EMBED;ap.append(am);ap.on("click",au._onEmbedClick,au);at.on("click",au._onEmbedClick,au);al.append(at);al.append(ap);ak.append(ar);ar.set("value",an).setAttribute("readonly","readonly");ao.append(al);ao.append(ak);Y.set("innerHTML",av.EMBED_LC);aq.append(Y);aq.append(ao);aq.hide();return aq;},_onLinkClick:function(ak){ak.preventDefault();ak.stopPropagation();var Y=this,al=Y._settingsPanelNode.one(".embed-link-text");al.select();Y._fireUIInteractBeacon("ctrl-Link");},_onEmbedClick:function(ak){ak.preventDefault();ak.stopPropagation();var Y=this,al=Y._settingsPanelNode.one(".embed-code-text");al.select();Y._fireUIInteractBeacon("ctrl-EmbedLink");},_toggleEmbedCode:function(){var ak=this,am,Y,al;am=ak._settingsPanelNode.one(".embed-link");Y=ak._settingsPanelNode.one(".embed-code");al=ak._settingsPanelNode.one(".embed-link").getStyle("display")==="none";if(al){am.show();Y.show();}else{am.hide();Y.hide();}this._fireUIInteractBeacon("ctrl-Embed");},_muteClick:function(){var Y=this;if(Y._muteNode.hasClass("disable")){return;}if(Y._muteNode.hasClass("on")){Y._muteOff();Y._fireUIInteractBeacon("ctrl-Mute-off");}else{Y._muteOn();Y._fireUIInteractBeacon("ctrl-Mute-on");}},_syncSizeButtons:function(){var Y=this;if(Y._model.get("fullscreen")){Y._sizeSmallNode.removeClass("on");Y._sizeFullNode.addClass("on");}else{Y._sizeFullNode.removeClass("on");Y._sizeSmallNode.addClass("on");}},seekEnable:function(Y){if(Y){this._seekNode.removeClass("disable");}else{this._seekNode.addClass("disable");}},seekDragEnable:function(Y){if(Y){this._seekNode.removeClass("disable-drag");}else{this._seekNode.addClass("disable-drag");}},playPauseEnable:function(Y){if(Y){this._playPauseNode.removeClass("disable");}else{this._playPauseNode.addClass("disable");}},_addButton:function(Y,al,an){var ak=this,am;ak[Y]=ak._createNode("button",Y);if(an){am=ak._createNode(an,"");am.set("innerHTML",al);ak[Y].append(am);}else{ak[Y].set("innerHTML",al);}return ak[Y];},getControlBarHeight:function(){var Y=this,am=Y._controlsNode.one(".bar"),al=0,ak=0;if(!f.Lang.isValue(am)||!Y._controlsNode.hasClass("show")){return al;}ak=am.getStyle("height").split("px")[0];al=f.Lang.isValue(ak)?ak:0;return al;},_fireUIInteractBeacon:function(Y){this._model.fire("uiInteract",{source:Y});},_createNode:function(ak,Y){return f.Node.create("<"+ak+' class="'+Y+'"/>');},_onVisualSeekMouseEnter:function(ak){var Y=this;if(!Y._isVisualSeekEnabled()){return;}Y._showVisualSeek();Y._moveVisualSeek(ak);},_onVisualSeekMouseLeave:function(){var Y=this;if(!Y._isVisualSeekEnabled()||Y._seekNode.hasClass("drag")){return;}Y._hideVisualSeek();},_showVisualSeek:function(){var Y=this._visualSeekNode;if(Y){Y.setStyle("display","block");}},_hideVisualSeek:function(){var Y=this._visualSeekNode;if(Y){Y.setStyle("display","none");}},_moveVisualSeek:function(ak){var Y=this,al;if(!Y._isVisualSeekEnabled()){return;}if(Y._visualSeekNode.getStyle("display")==="none"){Y._showVisualSeek();}al=ak.pageX-Y._seekNode.getX();Y._visualSeekReposition(al);Y._loadVisualSeekThumb(al);},_updateVisualSeek:function(){var Y=this,al=Y._model.get("currentMedia"),ak=al.get("visualseek"),am=Y._visualSeekNode;Y._visualSeek=ak;delete Y._visualSeekImages;if(ak&&am){Y._visualSeekImages=ak.images;if(am.getStyle("backgroundSize")===undefined){Y._resizeVisualSeekNode(ak);}}},_resetVisualSeek:function(){var Y=this;delete Y._visualSeek;delete Y._visualSeekImages;Y._hideVisualSeek();},_resizeVisualSeekNode:function(an){var al=this,ao=al._visualSeekNode,ak=an.width,Y=an.height,am=parseInt(ao.getStyle("width"),10);if(ak0)&&!Y._playPauseNode.hasClass("disable")){return true;}return false;},_loadVisualSeekThumb:function(aq){var au=this,ap=au._visualSeek,ar=Math.max(0,Math.min(au._seekNode.get("offsetWidth"),aq))/au._seekNode.get("offsetWidth"),am=ar*au._totalSecs,al=Math.ceil(Math.floor(am)/ap.frequency),an=au._visualSeekThumbNode,ak=ap._thumbSize,at,ao,Y;if(ak===undefined){ak=au._getVisualSeekThumbSize();at=ak.width;ao=ak.height;ap._thumbSize=ak;an.setStyles({"width":at,"height":ao,"backgroundSize":(at*F.VISUAL_SEEK_COLLAGE_COLS)+"px "+(ao*F.VISUAL_SEEK_COLLAGE_ROWS)+"px"});}Y=au._getVisualSeekCollage(al,ak);if(!an.getStyle("backgroundImage").match(Y.url)){an.setStyle("background","url("+Y.url+")");}an.setStyle("backgroundPosition","-"+Y.x+"px -"+Y.y+"px");
au._updateVisualSeekTime(am);},_updateVisualSeekTime:function(am){var Y=this,al=Y._visualSeekTimeNode,an=Y._formatSecs(am),ak=an.length*12;al.setHTML(an);al.setStyles({"width":ak+"px","marginLeft":"-"+Math.floor(ak/2)+"px"});},_getVisualSeekThumbSize:function(){var ar=this,am=ar._visualSeek,al=ar._visualSeekNode,ao=am.width,ap=am.height,Y=ao/ap,aq=parseInt(al.getStyle("width"),10),an=parseInt(al.getStyle("height"),10),ak=aq/an;if(Y>ak){an=(ap/ao)*aq;}else{aq=(ao/ap)*an;}return{width:aq,height:an};},_getVisualSeekCollage:function(ao,an){var aw=this,ak={},au=F.VISUAL_SEEK_COLLAGE_ROWS,ar=F.VISUAL_SEEK_COLLAGE_COLS,am=au*ar,at=aw._visualSeekImages,al=Math.floor(ao/am),ap=at[al],aq,Y,av;if(ap){aq=ao%am;Y=aq%ar;av=Math.floor(aq/ar);ak={url:ap.url,x:Y*an.width,y:av*an.height};}return ak;},_visualSeekReposition:function(ap){var Y=this,am=Y._visualSeekNode.get("offsetWidth"),ak=Math.round(am/2),al=ap-ak,an=ap+ak,ao=Y._seekNode.get("offsetWidth");if(al<0){al=0;}else{if(an>ao){al=ao-am;}}Y._visualSeekNode.setStyle("left",al);}});f.namespace("VideoPlatform").Controls=F;function w(){w.superclass.constructor.apply(this,arguments);}w.NAME="ErrorScreen";w.NS="errorscreen";w.ATTRS={};w.ERRORSCREEN_VIDEOS_DIMENSIONS={LARGE:{ITEM_WIDTH:208,ITEM_HEIGHT:117,IMAGE_WIDTH:208,IMAGE_HEIGHT:117,HORIZONTAL_SPACING:8,VERTICAL_SPACING:4,MARGIN:20},MEDIUM:{ITEM_WIDTH:208,ITEM_HEIGHT:117,IMAGE_WIDTH:208,IMAGE_HEIGHT:117,HORIZONTAL_SPACING:8,VERTICAL_SPACING:4,MARGIN:20},SMALL:{ITEM_WIDTH:157,ITEM_HEIGHT:88,IMAGE_WIDTH:157,IMAGE_HEIGHT:88,HORIZONTAL_SPACING:2,VERTICAL_SPACING:1,MARGIN:12}};f.extend(w,f.Base,{log:function(ak,Y){},initializer:function(Y){this._model=Y.model;this._view=Y.view;this._controller=Y.view._controller;this.screenSize=this._view.get("screenSize");f.publish("VideoPlayer.ErrorScreen.flashDownloadClick",{broadcast:2});f.publish("VideoPlayer.ErrorScreen.tryAgainLink",{broadcast:2});},render:function(an){var av=this,ao=w.NS,at,al,au,ap,aq,ak=this._view.createNode("div","container",ao),am=this._model.get("currentMedia"),ar=this._model.get("endScreenVideos").get("mediaItems").toArray(),Y=this._view.createNode("div","wrapper",ao);this._node=an;this.container=ak;this._error=this._model.get("error");this.desc=this._view.createNode("p","desc",ao);this.subDesc=this._view.createNode("p","sub-desc",ao);this.typeCode=this._view.createNode("p","type-code",ao);this._flashDownloadNode=null;this._retStr=null;this._wrapper=Y;Y.append(this.desc);Y.append(this.subDesc);ak.append(Y);if(this._error.type==="400"&&(this._error.code==="200"||this._error.code==="201")){at=this._view.createNode("div","flash-download-node",ao);al=this._view.createNode("a","download-flash",ao);au=this._view.createNode("p","download-link",ao);ap=this._view.createNode("span","download-flash-title",ao);aq=this._view.createNode("span","download-flash-button",ao);this._flashDownloadNode=al;this._retStr="undefined";ap.set("innerHTML",this._getString("DOWNLOAD_FLASH"));al.setAttribute("href","http://get.adobe.com/flashplayer/");al.setAttribute("target","_blank");au.append(ap);al.append(au);al.append(aq);at.append(al);this.flashDownloadNode=at;this.container.append(at);this._renderUI();}else{this._loadVideos(am,ar,function(ay,aw){if(ay){av._controller.warn(ay);av._retStr="undefined";var ax=ay.type+"-"+ay.code;av.typeCode.set("innerHTML",ax);}else{if(aw.length!==0){setTimeout(function(){av._renderVideos(aw);},20);}else{av._retStr="undefined";}}av._renderUI();});}},_renderUI:function(){this.container.append(this.typeCode);this._syncUI();this._bindUI();this._node.append(this.container);this.container.addClass("show");},_loadVideos:function(al,ak,am){var Y=this;if(ak.length===0){if(al!==null&&al!==undefined){Y._controller._states.started.loadEndScreenVideos(al,{success:function(an){Y._model.set("endScreenVideos",an);ak=Y._model.get("endScreenVideos").get("mediaItems").toArray();am(null,ak);},failure:function(an){am(an);}});}else{am(null,ak);}}else{am(null,ak);}},_renderVideos:function(Y){var al=w.NS,an=this._view.createNode("div","videos-node",al),ak=this.screenSize,am=new g({"view":this,"mediaItems":Y,"pltype":"errorScreen","showNavigation":false,"showMetadata":true,"dimensions":{itemWidth:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].ITEM_WIDTH,itemHeight:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].ITEM_HEIGHT,imageWidth:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].IMAGE_WIDTH,imageHeight:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].IMAGE_HEIGHT,horizontalSpacing:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].HORIZONTAL_SPACING,verticalSpacing:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].VERTICAL_SPACING,carouselMargin:w.ERRORSCREEN_VIDEOS_DIMENSIONS[ak].MARGIN}});an.setStyle("height",(this.container.get("offsetHeight")-parseInt(this.container.get("offsetHeight")/2,10)));this.container.append(an);am.render(an);this.errorScreenVideos=an;},_bindUI:function(){var Y=this;if(this._flashDownloadNode!==null){this._flashDownloadNode.one(".yui3-videoplayer-errorscreen-download-link").on("click",function(){f.fire("VideoPlayer.ErrorScreen.flashDownloadClick","err-adobe-link");});this._flashDownloadNode.one(".yui3-videoplayer-errorscreen-download-flash-button").on("click",function(){f.fire("VideoPlayer.ErrorScreen.flashDownloadClick","err-adobe-CTA");});}else{if(this._retStr==="ERR_REL_TECH_ERR"){this.subDesc.one(".yui3-videoplayer-errorscreen-sub-desc-try").on("click",function(){f.fire("VideoPlayer.ErrorScreen.tryAgainLink","err-try");Y._reload();});}}},_reload:function(){setTimeout(function(){location.reload();},500);},_syncUI:function(){var al=this._error,ak=this._errorToResourceKey(al),Y=al.type+"-"+al.code;this.desc.set("innerHTML",this._getString(ak.key));if(this._retStr!=="undefined"||ak.rel==="FLASH_UPGRADE_NOTE"){this.subDesc.set("innerHTML",this._getString(ak.rel));this._retStr=ak.rel;}this.typeCode.set("innerHTML",Y);},_getString:function(Y){return this._view._controller.getStrings()[Y];},_errorToResourceKey:function(al){var am="ERR_UNAVAILABLE_TEMP",Y="ERR_REL_VIDEO",ak=al.code;switch(al.type){case"500":case"501":case"502":case"503":case"504":switch(ak){case"200":case"401":case"402":case"403":case"501":am="ERR_UNAVAILABLE";
break;case"201":case"500":am="ERR_UNAVAILABLE_TEMP";break;case"202":am="ERR_GEO";break;case"203":am="ERR_DEVICE";Y="ERR_REL";break;case"204":am="ERR_EMBED";break;case"205":am="ERR_USER";break;case"300":am="ERR_UNSUPPORTED_FORMAT";Y="ERR_REL";break;case"400":am="ERR_NOT_FOUND";break;default:am="ERR_TECH_DIFFICULTIES";Y="ERR_REL_TECH_ERR";break;}break;case"400":switch(ak){case"14":am="ERR_SESSION_TIMEOUT";break;case"200":am="ERR_FLASH_NOT_ENABLED";Y="undefined";break;case"201":am="ERR_FLASH_NOT_UPTO_DATE";Y="FLASH_UPGRADE_NOTE";break;case"301":am="ERR_TECH_DIFFICULTIES";Y="ERR_REL_TECH_ERR";break;default:am="ERR_TECH_DIFFICULTIES";Y="ERR_REL_TECH_ERR";break;}break;}return{"key":am,"rel":Y};},destructor:function(){if(this.container){this.container.remove();}}});f.namespace("VideoPlatform").ErrorScreen=w;function a(){a.superclass.constructor.apply(this,arguments);}a.NAME="StartScreen";a.NS="startscreen";a.ATTRS={};a.DIMENSIONS={LARGE:{BAR_HEIGHT:72,TRUNC_LENGTH:170},MEDIUM:{BAR_HEIGHT:72,TRUNC_LENGTH:88},SMALL:{BAR_HEIGHT:40,TRUNC_LENGTH:34}};f.extend(a,f.Base,{initializer:function(Y){this._model=Y.model;this._view=Y.view;},render:function(aD){this._node=aD;var aF=a.NS,aA=this._view,ax=this._model.get("startscreen")||false,at=typeof ax.showProvider!=="undefined"?ax.showProvider:false,ay=typeof ax.showTitle!=="undefined"?ax.showTitle:true,aw=typeof ax.showDesc!=="undefined"?ax.showDesc:true,aE=typeof ax.showButton!=="undefined"?ax.showButton:true,aB=this,an=this._view.createNode("div","container",aF),au=this._view.createNode("div","bar-wrapper",aF),aI=this._view.createNode("div","bar",aF),aH=this._view.createNode("div","bar-right",aF),aM=this._view.createNode("img","image",aF),ar=this._view.createNode("div","title-wrapper",aF),aC=aA.get("screenSize"),av=a.DIMENSIONS[aC],aq,al=this._model.get("currentMedia"),az=al.get("images"),ak,aK,ap,aG,ao,aL,Y,aJ,am;if(aE){ak=this._view.createNode("div","button",aF);this.button=ak;}if(ay){Y=typeof(al.get("title"))==="string"?al.get("title"):"";if(Y){aL=this._view.createNode("h3","title",aF);this.title=aL;aL.set("innerHTML",Y);}}if(at){ap=typeof al.get("provider")==="object"&&typeof al.get("provider").name==="string"?al.get("provider").name:false;if(ap){aK=this._view.createNode("h4","provider",aF);this.provider=aK;aK.set("innerHTML",ap);}}if(aw){ao=typeof(al.get("description"))==="string"?al.get("description"):false;if(ao){aG=this._view.createNode("p","desc",aF);this.desc=aG;aJ=document.createElement("DIV");aJ.innerHTML=ao;if(aJ.innerHTML.length>av.TRUNC_LENGTH){aJ.innerHTML=aJ.innerHTML.substr(0,av.TRUNC_LENGTH)+"…";}aG.set("innerHTML",aJ.innerText||aJ.textContent||"");}}this._container=an;this.wrapper=au;if(az){am=az.large||az.thumbnail;if(am){aM.set("src",am);this._view._resizeAndPositionImage(aM,aD);}}if(at&&aK){ar.append(aK);}if(Y&&ay){ar.append(aL);}if(aw&&aG){ar.append(aG);}aH.append(ar);aI.append(aH);au.append(aI);an.append(aM);an.append(au);if(aE){an.append(ak);}if(this._model.get("ybang")===true){aq=this._view.createNode("div","ybang",aF);aI.append(aq);}aD.append(an);this._bindUI();if(this._model.get("rendererType")==="html"){this._view._hideVideoTag();}aB._container.addClass("yui3-videoplayer-show");setTimeout(function(){aB._container.addClass("yui3-videoplayer-transition");aB.wrapper.addClass("yui3-videoplayer-transition");},5);},_bindUI:function(){var ak=this._container,Y="3.7.0";if(H.compareVersions(f.version,Y)>=0){ak.on("tap",f.bind(this._playVideo,this));}else{ak.on("click",f.bind(this._playVideo,this));}},_playVideo:function(){var Y=this._model,am=this,ak=am._view.getController(),al=ak?ak.getProfiler():null;this.clickToStartTimer=new k({model:Y});this.clickToStartTimer.start();if(al){al.add(ai.VP_CLICK_TO_START);}if(Y.get("YVAPRequired")===true){Y.once("yvapStateChange",function(an){switch(an.newVal){case YVAPEvents.AD_START:am._stopTimer(ai.VP_CLICK_TO_START);this.clickToStartTimer.stop(ai.VP_CLICK_TO_START.type,ai.VP_CLICK_TO_START.desc);break;case YVAPEvents.AD_NONE:case YVAPEvents.AD_ERROR:case YVAPEvents.PLUGIN_REMOVED:Y.once("playerStateChange",function(ao){if(ao.newVal===Z.STARTED){am._stopTimer(ai.VP_CLICK_TO_START);this.clickToStartTimer.stop(ai.VP_CLICK_TO_START.type,ai.VP_CLICK_TO_START.desc);}},this);break;}},this);}else{Y.once("playerStateChange",function(an){if(an.newVal===Z.STARTED){am._stopTimer(ai.VP_CLICK_TO_START);this.clickToStartTimer.stop(ai.VP_CLICK_TO_START.type,ai.VP_CLICK_TO_START.desc);}},this);}am._view._controller.play();Y.fire("uiInteract",{source:this.constructor.NS+"Play"});},_stopTimer:function(al){var Y=this._view.getController(),ak=Y?Y.getProfiler():null;if(ak){ak.setEndTime(al.type);}},destructor:function(){var Y=this;if(f.UA.ie>0&&f.UA.ie<9){Y._container.remove();}else{Y._container.removeClass("yui3-videoplayer-show");setTimeout(function(){Y._container.remove();},500);}if(this._model.get("rendererType")==="html"){this._view._showVideoTag();}}});f.namespace("VideoPlatform").StartScreen=a;var M=f.VideoPlatform.Metrics;var v={generateBeaconList:function(ak,ar,ao,am,ap,al){var an=0,aq=[],Y;al=!f.Lang.isUndefined(al)?al:[];if(typeof ak!=="string"){ak="";}f.each(ar,function(at){Y={urlTemplate:ak,target:ao};if(at.param){if(Y.urlTemplate.search("COMSCORE_C5")!==-1){Y.urlTemplate=Y.urlTemplate.replace("{COMSCORE_C5}",at.param);}else{Y.urlTemplate+=at.param;}}if(am){Y.urlTemplate+="&"+am+"={RANDOM_VALUE}";}Y.events=[{"name":at.name}];if(ap===true){if(at.samplePerct){Y.samplePerct=at.samplePerct;}else{Y.samplePerct=100;}}aq[an]=Y;an+=1;});if(al.length>0){aq=aq.concat(al);}return aq;},init:function(){var ak=this.beaconComscore(),al=this.beaconQOS(),an=this.beaconYwaPageView(),am=this.beaconYWA(),Y=this.beaconULT();return ak.concat(an,am,Y,al);},beaconComscore:function(){var Y=(document.location.protocol==="https:"?"https://sb":"http://b")+".scorecardresearch.com/p?C1=1&C2=7241469&C4={COMSCORE_C4}&C5={COMSCORE_C5}&C6={COMSCORE_C6}&cv=2.0",ak=[{"name":"PLAYBACK_START","param":"{COMSCORE_C5}"},{"name":"AD_START","param":"09"}];
return this.generateBeaconList(Y,ak,M.SERVICES.COMSCORE,"rn");},beaconYwaPageView:function(){var ak=(document.location.protocol==="https:"?"https://z.analytics.yahoo.com/p.pl":"http://z.analytics.yahoo.com/p.pl")+"?a=1000{YWA_PROJECT_ID}&dpid={YWA_DPID}&vp={PLAYER_INT32_GUID}&vpm={MASTERPLAYER_INT32_GUID}",Y=[{"name":"PAGE_VIEW","param":"&cf12={FLASH_VERSION}&cf08={PLAYER_HOSTING_ENV}&cf01={PLAYER_BUCKET}&cf07={PLAYER_VERSION}&cf09={EXPERIENCE_TYPE}&cf10={EXPERIENCE_NAME}&.ys={PAGE_SPACE_ID}&cf13={RENDERER_TYPE}&cf71={EXPERIENCE_BUCKET}&b={PAGE_TITLE}&f={PAGE_URL}&e={PAGE_REFERRER}"}];return this.generateBeaconList(ak,Y,M.SERVICES.YWA,"rn");},beaconYWA:function(){var ak=(document.location.protocol==="https:"?"https://z.analytics.yahoo.com/p.pl":"http://z.analytics.yahoo.com/p.pl")+"?a=1000{YWA_PROJECT_ID}&dpid={YWA_DPID}&vp={PLAYER_INT32_GUID}&vpm={MASTERPLAYER_INT32_GUID}&vid={VIDEO_CLIP_ID}&vn={VIDEO_TITLE}",Y=[{"name":"PLAYER_ERR","param":"&vx=3&vb={PAGE_TITLE}&vf={PAGE_URL}&cf50={PLAYER_ERR_TYPE}&cf51={PLAYER_ERR_CODE}&cf64={PLAYER_ERR_MSG}&cf63={AUTOPLAY}&vpl={PLAYER_LOCATION}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf204={CONTRACTING_PROPERTY}&cf205={LICENSOR_NAME}&cf206={LICENSOR_ID}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&vsn={SHOW_NAME}&ve={PAGE_REFERRER}"},{"name":"VIDEO_LOADED","param":"&vlng={VIDEO_LENGTH}&vx=215&vb={PAGE_TITLE}&vf={PAGE_URL}&cf63={AUTOPLAY}&vpl={PLAYER_LOCATION}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf204={CONTRACTING_PROPERTY}&cf205={LICENSOR_NAME}&cf206={LICENSOR_ID}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&cf15={CONTINUOUS_PLAY}&vsn={SHOW_NAME}&vss={EVENT_BEGIN}&vse={EVENT_END}&cf58={MEDIA_META_TAGS}&ve={PAGE_REFERRER}"},{"name":"VP_INIT_TO_START","param":"&vlng={VIDEO_LENGTH}&vx=13&vb={PAGE_TITLE}&vf={PAGE_URL}&cf63={AUTOPLAY}&vpl={PLAYER_LOCATION}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf204={CONTRACTING_PROPERTY}&cf205={LICENSOR_NAME}&cf206={LICENSOR_ID}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&vsn={SHOW_NAME}&vss={EVENT_BEGIN}&vse={EVENT_END}&cf58={MEDIA_META_TAGS}&cf54={VP_INIT_TO_START}&ve={PAGE_REFERRER}"},{"name":"VP_CLICK_TO_START","param":"&vlng={VIDEO_LENGTH}&vx=14&vb={PAGE_TITLE}&vf={PAGE_URL}&cf63={AUTOPLAY}&vpl={PLAYER_LOCATION}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf204={CONTRACTING_PROPERTY}&cf205={LICENSOR_NAME}&cf206={LICENSOR_ID}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&vsn={SHOW_NAME}&vss={EVENT_BEGIN}&vse={EVENT_END}&cf58={MEDIA_META_TAGS}&cf55={VP_CLICK_TO_START}&vb={PAGE_TITLE}&vf={PAGE_URL}&ve={PAGE_REFERRER}"},{"name":"PLAYBACK_REQUEST","param":"&vx=216&cf51={CMS_STATUS_CODE}&cf63={AUTOPLAY}&vpl={PLAYER_LOCATION}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf204={CONTRACTING_PROPERTY}&cf205={LICENSOR_NAME}&cf206={LICENSOR_ID}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&cf15={CONTINUOUS_PLAY}"},{"name":"PLAYBACK_START","param":"&vpos=1&vstpos={VIDEO_SEQ_START}&vq={VIDEO_SEQ_NUMBER}&vt={IS_LIVE}&vbt={PLAYBACK_START_DELAY}&cf63={AUTOPLAY}&vpl={PLAYER_LOCATION}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf204={CONTRACTING_PROPERTY}&cf205={LICENSOR_NAME}&cf206={LICENSOR_ID}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&cf15={CONTINUOUS_PLAY}&cf53={CONTINUOUS_PLAY_COUNT}&cf62={PLAYER_WIDTH}x{PLAYER_HEIGHT}"},{"name":"PLAYBACK_PROGRESS","param":"&vlng={VIDEO_LENGTH}&vpos={VIDEO_PLAYBACK_POS}&vt={IS_LIVE}&vstpos={VIDEO_SEQ_START}&vq={VIDEO_SEQ_NUMBER}"},{"name":"PLAYBACK_PAUSE","param":"&vpos={VIDEO_PLAYBACK_POS}&vstpos={VIDEO_SEQ_START}&vx=212&vq={VIDEO_SEQ_NUMBER}"},{"name":"PLAYBACK_RESUME","param":"&vpos={VIDEO_PLAYBACK_POS}&vstpos={VIDEO_SEQ_START}&vx=211&vq={VIDEO_SEQ_NUMBER}"},{"name":"PLAYBACK_SEEK","param":"&vpos={VIDEO_PLAYBACK_POS}&vstpos={VIDEO_SEQ_START}&vx=210&vq={VIDEO_SEQ_NUMBER}"},{"name":"PLAYBACK_COMPLETE","param":"&vpos={VIDEO_LENGTH}&vstpos={VIDEO_SEQ_START}&vq={VIDEO_SEQ_NUMBER}"},{"name":"PLAYER_FULLSCREEN","param":"&vpos={VIDEO_PLAYBACK_POS}&vstpos={VIDEO_SEQ_START}&vx=213&vq={VIDEO_SEQ_NUMBER}"},{"name":"AD_PLUGIN_METRIC","param":"&aplc{CUSTOM_PARAMS}&cf201={SITE}&cf202={REGION}&cf207={LICENSE_NAME}&cf208={LICENSE_ID}&.ys={PAGE_SPACE_ID}&cf09={EXPERIENCE_TYPE}&cf10={EXPERIENCE_NAME}"},{"name":"VP_INIT_TO_STARTSCREEN","param":"&vx=15&vpl={PLAYER_LOCATION}&vf={PAGE_URL}&vsn={SHOW_NAME}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&cf208={LICENSE_ID}&cf52={QOS_TIMER_DIFF}&ve={PAGE_REFERRER}"},{"name":"UI_INTERACT","param":"&vx=5&cf57={UI_INTERACT_PAYLOAD}&cf201={SITE}&cf202={REGION}&cf203={COUNTRY_LANGUAGE_CODE}&vsn={SHOW_NAME}&vf={PAGE_URL}"}];return this.generateBeaconList(ak,Y,M.SERVICES.YWA,"rn");},beaconULT:function(){var ak,al=document.location.protocol+"//geo.yahoo.com/p?t={RANDOM_VALUE}&_V=V&s={PAGE_SPACE_ID}&",Y="vid={VIDEO_CLIP_ID}&pstaid={VIDEO_CLIP_ID}&lcnsr_id={LICENSOR_ID}&"+"lcnsr_nm={LICENSOR_NAME}&lms_id={LICENSE_ID}&lms_nm={LICENSE_NAME}&"+"pls={PLAYER_INT32_GUID}&A_sid={PAGE_SID}&plist={CCM_PLAYLIST_ID}&site={SITE}&"+"lang={COUNTRY_LANGUAGE_CODE}&intl={REGION}&juris={JURISDICTION}&synd={SYNDICATION}&"+"_w={PAGE_URL}&pver={PLAYER_VERSION}&expn={EXPERIENCE_NAME}&expt={EXPERIENCE_TYPE}&"+"expb={EXPERIENCE_BUCKET}&loc={PLAYER_LOCATION}&type={VIDEO_TYPE}&auto={AUTOPLAY}&"+"cont={CONTINUOUS_PLAY}&contcnt={CONTINUOUS_PLAY_COUNT}&bckt={PLAYER_BUCKET}&"+"_R={PAGE_REFERRER}";ak=[{"name":"PAGE_VIEW","param":al+"V_sec=pb&evt=p_load&"+Y},{"name":"PLAYBACK_REQUEST","param":al+"V_sec=pb&evt=v_req&V_slk=pr&"+Y},{"name":"AD_START","param":al+"V_sec=pb&evt=ad_start&V_slk=as0&"+Y},{"name":"PLAYBACK_START","param":al+"V_sec=pb&evt=v_start&V_slk=ps{VIDEO_WATCHED_PERCT}&"+Y},{"name":"PLAYBACK_PROGRESS","param":al+"V_sec=pb&evt=v_prog&dur={VIDEO_PLAYBACK_POS}&V_slk=ps{VIDEO_WATCHED_PERCT}&"+Y},{"name":"PLAYBACK_COMPLETE","param":al+"V_sec=pb&evt=v_comp&dur={VIDEO_PLAYBACK_POS}&V_slk=ps100&"+Y},{"name":"PLAYER_ERR","param":al+"V_sec=err&evt=err&V_slk={PLAYER_ERR_TYPE}%23{PLAYER_ERR_CODE}&"+Y},{"name":"UI_INTERACT","param":al+"V_sec={SECTION_TITLE}&evt={SECTION_TITLE}&V_slk={SECTION_LINK}&"+Y}];
return this.generateBeaconList(false,ak,M.SERVICES.ULT);},beaconQOS:function(){var ak=(document.location.protocol==="https:")?1:0,Y=((ak)?"https:":"http:")+"//qos.video.yimg.com/yep/3/qos?"+"env={PLAYER_HOSTING_ENV}"+"&pver={PLAYER_VERSION}"+"&vp={PLAYER_INT32_GUID}"+"&b={PLAYER_BUCKET}"+"&r={RENDERER_TYPE}"+"&vid={VIDEO_CLIP_ID}"+"&vn={VIDEO_TITLE}"+"®={REGION}"+"&site={SITE}"+"&sn={SHOW_NAME}"+"&lid={LICENSE_ID}"+"&loc={PLAYER_LOCATION}"+"&apl={AUTOPLAY}"+"&psid={PAGE_SPACE_ID}"+"&fver={FLASH_VERSION}"+"&expn={EXPERIENCE_NAME}"+"&expt={EXPERIENCE_TYPE}"+"&expb={EXPERIENCE_BUCKET}"+"&vpurl={PAGE_URL}"+"&ba={BANDWIDTH}"+"&pglt={PAGE_LATENCY}"+"&pgdns={TIMING_DNS}"+"&pgcon={TIMING_CONNECT}"+"&pgttfb={TIMING_TTFB}"+"&pgbp={TIMING_BASE_PAGE}"+"&pgfe={TIMING_FRONTEND}"+"&pgjsst={PAGE_PLAYERJS_DL_START}"+"&pgjstm={PAGE_PLAYERJS_DL_TIME}"+"&pgitmtm={PAGE_MEDIA_ITEM_PREFETCH_TIME}",al=[{"name":"PLAYER_LOADED","param":"&i"},{"name":"SAPI_LOADCLIPS","param":"&vi&tsapic={QOS_TIMER_DIFF}&rcnt={RETRY_COUNT}"},{"name":"SAPI_LOADPLAYLIST","param":"&tsapilp={QOS_TIMER_DIFF}&rcnt={RETRY_COUNT}"},{"name":"PLAYBACK_START","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tpb={PLAYBACK_START_DELAY}"},{"name":"PLAYER_ERR","param":"&e.{PLAYER_ERR_TYPE}.{PLAYER_ERR_CODE}&vm={PLAYER_ERR_MSG}"},{"name":"YSWF_SWF_ONLY_INIT_TIME","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tswfoi={QOS_TIMER_DIFF}"},{"name":"YSWF_READY","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tswfr={QOS_TIMER_DIFF}"},{"name":"YVAP_LOADED","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tswfl={QOS_TIMER_DIFF}"},{"name":"YVAP_READY","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tyvapr={QOS_TIMER_DIFF}"},{"name":"YVAP_ADSTARTED","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tyvapads={QOS_TIMER_DIFF}"},{"name":"YVAP_NOAD","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tyvapadn={QOS_TIMER_DIFF}"},{"name":"YVAP_ERROR","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tyvape={QOS_TIMER_DIFF}"},{"name":"VP_INIT_TO_START","param":"&secure="+ak+"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&vpf={VIDEO_PREFETCH}&ttsapt{VP_INIT_TO_START_SUFFIX}={QOS_TIMER_DIFF}&{QOS_TIME_BREAKUP}"},{"name":"PLAYBACK_REQUEST","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&pr&status={CMS_STATUS_CODE}"},{"name":"VP_CLICK_TO_START","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&vpf={VIDEO_PREFETCH}&ttsapf={QOS_TIMER_DIFF}"},{"name":"VP_MEDIA_CHANGE","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&vpmc={QOS_TIMER_DIFF}&vpf={VIDEO_PREFETCH}&acnt={AUTOCONTINUE}"},{"name":"SAPI_LOADRELATED","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tsapilr={QOS_TIMER_DIFF}&rcnt={RETRY_COUNT}"},{"name":"AD_PLUGIN_QOS_METRIC","param":"&qaplc{CUSTOM_PARAMS}&ln={LICENSE_NAME}"},{"name":"PLAYBACK_PROGRESS","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&prog={PROGRESS}&dur={VIDEO_LENGTH}&buff={TIME_WAITING}&br={BITRATE}&pp"},{"name":"PLAYBACK_COMPLETE","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&prog={PROGRESS}&dur={VIDEO_LENGTH}&buff={TIME_WAITING}&br={BITRATE}&pp"},{"name":"PLAYBACK_SEEK","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&prog={PROGRESS}&dur={VIDEO_LENGTH}&buff={TIME_WAITING}&br={BITRATE}&pp"},{"name":"YQL_LOAD_CC","param":"&hd={HD_AVAILABLE}&vtyp={VIDEO_TYPE}&tyqlcc={QOS_TIMER_DIFF}"}];return this.generateBeaconList(Y,al,M.SERVICES.QOS,"rn",true);}};f.namespace("VideoPlatform").playerBeaconList=v;function ag(){this._playerStartTime=(new Date()).getTime();this._profileItems=[];}ag.NAME="Profiler";ag.NS="Profiler";ag.prototype.getProfileItems=function(){return this._profileItems;};ag.prototype.setMetricsModule=function(Y){this._metricsModule=Y;};ag.prototype.getPlayerStartTime=function(){return this._playerStartTime;};ag.prototype.add=function(am){if(!am){return;}var al=this._createProfileItem(am),ak="@",Y=al.type,an=al.startTime;al.key=Y+ak+an;this._profileItems.push(al);return al.key;};ag.prototype.remove=function(al,am){var ak=0,Y=this._profileItems;if(!this._isValidType(al)||Y.length===0){return;}for(;ak';ak+="Key Description START END DIFF ";f.each(Y,function(al){ak+=""+al.type+" "+al.message+" "+al.startTime+" "+al.endTime+" "+al.timeDiff+" "+''+'
'+'
';});ak+="
";return ak;};ag.prototype._createProfileItem=function(Y){return{type:Y.type,message:Y.desc,color:Y.color||"white",qosMetric:Y.qosMetric===true,startTime:Y.start||(new Date()).getTime()-this._playerStartTime,endTime:NaN,timeDiff:NaN};};ag.prototype._createQueryStringExtension=function(){var Y="",ak="&",an="_s",am="_d",al=this._profileItems;al.forEach(function(ao){if(ao.qosMetric===true){if(Y!==""){Y+=ak;}Y+=ao.type+an+"="+ao.startTime;Y+=ak;Y+=ao.type+am+"="+ao.timeDiff;
}});return Y;};ag.prototype._isValidType=function(Y){return(Y&&Y!==""&&typeof Y==="string");};f.namespace("VideoPlatform").Profiler=ag;},"4.1.15.1390360235",{requires:["arraylist","arraylist-add","arraylist-filter","array-extras","jsonp","base","substitute","io-xdr","io-base","json-parse","swf","event-mouseenter","event-key","event-hover","event-custom","node","json-stringify","classnamemanager","event-tap","event-touch","cookie","escape","yepswf","async-queue","transition","VideoAdPlugin"]});;YAHOO.VideoPlatform.i18n = {"ADVERTISEMENT":"Advertisement","ARROW_DOWN":"Arrow Down:","ARROW_LEFT":"Arrow Left:","ARROW_RIGHT":"Arrow Right:","ARROW_UP":"Arrow Up:","AUTO_UCF":"Auto","CAPTIONS_LC":"captions","CAPTIONS_FEEDBACK":"feedback","CLOSE_HOTKEY_MENU":"Close Hotkey Menu","CLOSE_INFO":"Close Info","CLOSE_MENU":"Close Menu","CLOSED_CAPTION_COMPLAINTS":"Closed Caption Complaints","DOWNLOAD_FLASH":"Download the free Flash Player Now!","EMBED_UCF":"Embed","EMBED_LC":"embed","EMBED_COLON":"Embed:","ERR_DEVICE":"Unfortunately, this video is not supported on this device.","ERR_EMBED":"Sorry! This video can't be embedded outside of Yahoo!","ERR_FLASH_NOT_ENABLED":"You need Adobe Flash to play this video.","ERR_FLASH_NOT_UPTO_DATE":"Your Adobe Flash is an old version.","ERR_GEO":"We're so sorry! This video is not available in your location.","ERR_NOT_ALLOWED":"You must to be signed in and can watch this video at only one location.","ERR_NOT_FOUND":"We're so sorry! We're no longer able to display this video.","ERR_REL_VIDEO":"Please check out one of these related videos:","ERR_REL":"Feel free to check out one of these related videos:","ERR_REL_TECH_ERR":"Please try again or check out one of these related videos:","ERR_TECH_DIFFICULTIES":"Our apologies! We're having technical difficulties.","ERR_TITLE":"We're sorry...","ERR_UNAVAILABLE":"We're so sorry! We're no longer able to display this video.","ERR_UNAVAILABLE_TEMP":"We're so sorry! We're no longer able to display this video.","ERR_UNSUPPORTED_FORMAT":"Unfortunately, this video is not supported on this device.","ERR_UNAVAILABLE_SORRY":"Sorry, this video is no longer available.","ERR_USER":"This video is not available for the current user.","ERR_SESSION_TIMEOUT":"Your session has timed out.","FLASH_UPGRADE_NOTE":"Please upgrade to view this video.","HD_NOT_AVAIL":"HD Not Available","HOTKEY_MENU":"Hotkey Menu","JUST_WATCHED":"Just Watched","LINK_LC":"link","LINK_COLON":"Link:","LOADING":"Loading","MUTE_OFF":"Unmute","MUTE_ON":"Mute","NEXT_VIDEO":"Next Video","NOW_PLAYING":"Now Playing","ON_LC":"on","OFF_LC":"off","OPEN_HOTKEY_MENU":"Open Hotkey Menu","OPEN_INFO":"Open Info","PAUSE":"Pause","PLAY":"Play","PLAY_PAUSE":"Play / Pause","PLAY_VIDEO":"Play Video","PREV_VIDEO":"Previous Video","QUALITY_LC":"quality","QUESTION_MARK":"Question Mark:","REPLAY":"Replay","SEEK_FIVE_BACK":"Seek Back 5 seconds","SEEK_FIVE_FWD":"Seek Forward 5 seconds","SHARE_LC":"share","SHARE_ON_FACEBOOK":"Share on Facebook","SIZE_LC":"size","SPACE_BAR":"Space Bar:","SUBSCRIBE_TO":"Subscribe to","TURN_AUTO_PLAY_OFF":"Turn Autoplay Off","TURN_AUTO_PLAY_ON":"Turn Autoplay On","UPGRADE_FLASH":"Upgrade Flash","UP_NEXT":"Up Next:","VID_BEGIN_IN":"Your video will begin in {number} seconds","VID_PLAYER_CTRLS":"Video Player Controls","VIEW_AGAIN":"View Again","VISIT_LINK_FOR_NEW_VIDEOS":"Please visit {url_link} for new videos.","VOLUME_LC":"volume","VOL_DOWN":"Volume Down","VOL_UP":"Volume Up"};;YAHOO.VideoPlatform.PlayerHosting = {"bucket":25,"colo":"bf1","env":"p"};;YAHOO.VideoPlatform.WhiteListedDomains = {"abcnews.go.com":"","acc.independent.co.uk":"","agenciabrasil.ebc.com.br":"","and-hsk-molint-ets-uk.andintweb.dmgt.net":"","cma-nol.newsoftheworld.co.uk":"","cma.thetimes.co.uk":"","creative.dailymail.co.uk":"","dailyexpresstoby.calypso.netro42.com":"","etonline.com":"","expressandstar.com":"","fantasyfootball.metro.co.uk":"","guardian.com":"","hellogiggles.com":"","metrofantasy.qa.fsbtech.com":"","mol-uk.andweb.dmgt.net":"","self.ch1.apps.yahooapis.com":"","staging.gfm.metro.co.uk":"","telesto.netro42.net":"","thetimes.co.uk":"","video.maktoob.com":"","yahoo-the-dugout.dgtl.net":"","www.bridgnorthjournal.com":"","www.dailyexpress.co.uk":"","www.dailymail.co.uk":"","www.dailystar.co.uk":"","www.dev1.telegraph.co.uk":"","www.dev2.telegraph.co.uk":"","www.etonline.com":"","www.expressandstar.com":"","www.express.co.uk":"","www.grindtv.com":"","www.guardian.co.uk":"","www.herefordshirejournals.com":"","www.huffingtonpost.com":"","www.independent.co.uk":"","www.marketdraytonadvertiser.com":"","www.metro.co.uk":"","www.mirror.co.uk":"","www.newportadvertiser.com":"","www.newsoftheworld.co.uk":"","www.northshropshirechronicle.com":"","www.rivals.com":"","www.rivals.yahoo.com":"","www.shrewsburychronicle.com":"","www.shropshirestar.com":"","www.southshropshirejournals.com":"","www.standard.co.uk":"","www.talktalk.co.uk":"","www.telegraph.co.uk":"","www.telfordjournal.com":"","www.test1.telegraph.co.uk":"","www.test2.telegraph.co.uk":"","www.test3.telegraph.co.uk":"","www.test4.telegraph.co.uk":"","www.test5.telegraph.co.uk":"","www.test6.telegraph.co.uk":"","www.test7.telegraph.co.uk":"","www.test8.telegraph.co.uk":"","www.thepostgame.com":"","www.thesun.co.uk":"","www.thesundaytimes.co.uk":"","www.thetimes.co.uk":"","www.thisisbarton.co.uk":"","www.thisisbath.co.uk":"","www.thisisbelper.co.uk":"","www.thisisblackmorevale.co.uk":"","www.thisisboston.co.uk":"","www.thisisbridgwater.co.uk":"","www.thisisbrigg.co.uk":"","www.thisisbristol.co.uk":"","www.thisisburnham.co.uk":"","www.thisiscentralsomerset.co.uk":"","www.thisischeadle.co.uk":"","www.thisischeddarvalley.co.uk":"","www.thisisclevedon.co.uk":"","www.thisiscornwall.co.uk":"","www.thisiscourier.co.uk":"","www.thisiscrawley.co.uk":"","www.thisiscroydontoday.co.uk":"","www.thisisderbyshire.co.uk":"","www.thisisdevon.co.uk":"","www.thisisexeter.co.uk":"","www.thisisfosse-way.co.uk":"","www.thisisgloucestershire.co.uk":"","www.thisisgrimsby.co.uk":"","www.thisisguernsey.com":"","www.thisishullandeastriding.co.uk":"","www.thisisilkeston.com":"","www.thisisjersey.com":"","www.thisiskent.co.uk":"","www.thisisleek.co.uk":"","www.thisisleicestershire.co.uk":"","www.thisislichfield.co.uk":"","www.thisislincolnshire.co.uk":"","www.thisislondon.co.uk":"","www.thisislouth.co.uk":"","www.thisismiddevon.co.uk":"","www.thisisnorthdevon.co.uk":"","www.thisisnottingham.co.uk":"","www.thisisplymouth.co.uk":"","www.thisisretford.co.uk":"","www.thisisscunthorpe.co.uk":"","www.thisisshepton.co.uk":"","www.thisissomerset.co.uk":"","www.thisissomersetguardian.co.uk":"","www.thisissomersetstandard.co.uk":"","www.thisissouthderbyshire.co.uk":"","www.thisissouthdevon.co.uk":"","www.thisisstourandavon.co.uk":"","www.thisisstroudtoday.co.uk":"","www.thisissurreytoday.co.uk":"","www.thisissussex.co.uk":"","www.thisissuttoncoldfield.co.uk":"","www.thisisswansea.co.uk":"","www.thisistamworth.co.uk":"","www.thisistheforest.co.uk":"","www.thisisthesentinel.co.uk":"","www.thisistotalessex.co.uk":"","www.thisisuttoxeter.co.uk":"","www.thisiswalsallonline.co.uk":"","www.thisiswells.co.uk":"","www.thisiswesterndailypress.co.uk":"","www.thisiswesterngazette.co.uk":"","www.thisiswesternmorningnews.co.uk":"","www.thisiswestonsupermare.co.uk":"","www.timesonline.co.uk":"","www.uat1.telegraph.co.uk":"","www.uat2.telegraph.co.uk":"","www.uat3.telegraph.co.u":"","www.vosmeilleuresidees.yahoo.fr":"","www.yahoo-evenements.fr":"","www.ycorpblog.com":"","www.yourchronicle.com":"","www.zonalmarking.net":""};