var Perf,globalLeft,deferredCanary;define("jqBehavior",["jquery","viewport"],function(n){return function(t,i,r){function u(n){var t=n.length;return t>1?function(){for(var i=0;i<t;i++)n[i]()}:t?n[0]:f}function f(){}if(typeof t!="function")throw"Behavior constructor must be a function";if(i&&typeof i!="object")throw"Defaults must be an object or null";if(r&&typeof r!="object")throw"Exclude must be an object or null";return r=r||{},function(f,e,o){function c(n){n&&(typeof n.setup=="function"&&l.push(n.setup),typeof n.teardown=="function"&&a.push(n.teardown),typeof n.update=="function"&&v.push(n.update))}var h;if(o&&typeof o!="object")throw"Options must be an object or null";var s=n.extend(!0,{},i,o),l=[],a=[],v=[],y=!0;if(r.query){if(typeof f!="string")throw"Selector must be a string";c(t(f,s))}else h=n(f,e),r.each?c(t(h,s)):(y=h.length>0,h.each(function(){var i=n(this);c(t(i,r.data?s:n.extend(!0,{},s,i.data?i.data():{})))}));return y?{setup:u(l),teardown:u(a),update:u(v)}:null}}});define("trackInfo.tokens",{spinTimeout:150,browserFilterTable:{webkit:"530.0.0",mozilla:"1.9.0"},logSamplingRate:"0"});define("adTelemetry",["window","pageTime","pageStart","logging","adCommon","requestAnimationFrame","trackInfo","pageInstance","headData","mediator"],function(n,t,i,r,u,f,e,o,s,h){function ft(n){c.elems&&c.elems.length===0||(n&&(c.repmech=n),d(c,!0))}function k(n,t,r){if(n&&t){var u={st:i,repmech:n,elems:[]};u.elems.push(t);d(u,!1,r)}}function et(){v=!1;c={elems:[],repmech:"",st:c.st};p();l=!1}function ot(n,t,i){var r,u;i=i||"adimpr_update";r=it(n,i);r.g=t?1:0;a.push(r);f(function(){g(a)});t&&(u={st:n.st,repmech:n.repmech,elems:[]},c=u)}function d(n,t,i){if(n){if(a.length>rt){r.error("adTelemetryMgr: exceeded max posting queue length.");return}if(t){if(l)return;l=!0}ot(n,t,i)}}function g(n){if(n.length!==0)for(var t;t=n.shift();)e.telemetryTracking.sendUpdate(t),t.global&&(l=!1)}function p(){v||(y.pageViewActivityId=o.getActivityId()||s.clientSettings.aid,v=!0)}function nt(n,t,i,r){return r=r||{},u.updateElementData(r,"ldmech",n),u.updateElementData(r,"id",t),u.updateElementData(r,"pg",i),r}function st(n,t,i,r,e){if(n&&n.telemetry){var o=n.telemetry;u.recordTiming(o,t,i,r);e&&f(function(){k("detcompl",o);n.telemetry=nt("visch",n.friendlyId,n.pg);c&&c.elems&&c.elems[n.idx]&&(c.elems[n.idx]=n.telemetry)},0)}}function ht(n,t){n&&t&&(u.updateElementData(n,"cid",t.CID),u.updateElementData(n,"asid",t.ASID))}function ct(n,t){var i=it(n,t);w?e.telemetryTracking.sendUpdate(i):b.push(i)}function tt(){w=!0;h.unsub("pageViewOnLoad",tt);g(b)}function it(n,t){return p(),{evt:t,rid:y.pageViewActivityId,di:e.sitePage.domainId,clid:e.client.clientId(),data:n}}var a=[],rt=7,l=!1,v=!1,w,b=[],ut=((n.performance||{}).timing||{}).responseStart||(n._timing||{}).start||+new Date,c={navst:i,rst:ut,repmech:"",elems:[]},y={pageViewActivityId:null};return h.sub("pageViewOnLoad",tt),{buildNewTelemetryObject:nt,pageStagingPayload:c,postTelemetryData:ft,postTelemetryDataForElement:k,sendOtfCall:ct,resetPageStagingTelemetryForRefresh:et,trackingData:y,updatePageViewActivityId:p,recordAdOperation:st,updateAdIdTelemetryData:ht}});define("adRefresh",["dap","mediator","adTelemetry","adCommon"],function(n,t,i,r){function s(n){var t=r.getCurrentTime()-n.st;return t>4e3||n.isRendered&&n.isLoaded&&t>2e3?!0:!1}function e(n,t){n.refreshEnabled=!0;i.pageStagingPayload&&i.pageStagingPayload.elems&&(n.telemetry=null,n.telemetry=i.buildNewTelemetryObject("refresh",n.friendlyId,n.pg),i.pageStagingPayload.elems.push(n.telemetry));n.isRendered&&n.detectionObject&&n.detectionObject.stopDetection();var r=n.elem.parentNode.parentNode,u=r.offsetHeight;u>=0&&(r.style.height=u+"px");i.trackingData&&i.trackingData.pageViewActivityId&&(n.params=n.params.replace(/PVGUID=[^&]*/,"PVGUID="+i.trackingData.pageViewActivityId),n.options=n.options||{},n.options.rid=i.trackingData.pageViewActivityId);t===!0&&n.refreshAd()}function l(r){var c,s,f,o,l,y,a,v;if(!r&&!u){for(u=!0,i.postTelemetryData("refresh"),i.resetPageStagingTelemetryForRefresh(),c=n.adPlacements,s={},l=0;o=c[l];l++)e(o,!1),o.adType===h?(f=s[o.htmlid],f||(f=[],s[o.htmlid]=f),f.push(o),c.splice(l--,1)):o.order=null;for(y in s)for(f=s[y],f.unshift(f.splice(-1,1)[0]),a=0;v=f[a];a++)v.order=a+10,c.push(v);t.pub("adrefresh");u=!1}}function a(t){var r,i,o;if(!f&&!u&&(f=!0,r=n.adPlacements,r&&r.length)){for(o=0;i=r[o];o++)if(t){if(i.htmlid===t){i.lastRefreshed=!0;e(i,!0);break}}else if(i.isRendered&&s(i)){i.lastRefreshed=!0;e(i,!0);break}else i.lastRefreshed=!1;setTimeout(function(){f=!1},r[0].rd)}}function v(t){var i,h,l,r;if(!f&&!u&&(u=!0,i=n.adPlacements,i&&i.length)){for(l=0;h=i[l];l++)if(s(h))try{e(h,!0)}catch(a){}r=typeof t=="number"?t*c+i[0].rd:i[0].rd;r=o>r?r:o;setTimeout(function(){u=!1},r)}}var h=3,f,u,c=400,o=5e3;return{refresh:l,refreshOneAd:a,refreshAllAds:v}});define("dapmgr",["atwUAC","adCommon"],function(n,t){function i(n,t){return(t.exec(n)||{})[1]||""}function d(n,t){var f=i(n,v),u=i(n,y),r;return u===""&&(u=f),t+=e(";kvmsft_make=",f),t+=e(";kvmsft_model=",u),t+=e(";kvmsft_category=",i(n,w)),t+=e(";kvmsft_new=",i(n,b)),r=i(n,p),r&&r!=="0"&&(t+=";kvmsft_year="+r),t}function e(n,t){return t?n+t:""}var o={},f=[],l,a,s,h=null,r=null,u,c="aol",v=/\bMAKE=([^&]*)/i,y=/\bMODEL=([^&]*)/i,p=/\bYEAR=([^&]*)/i,w=/\bCATEGORY=([^&]*)/i,b=/\bNEW=([^&]*)/i,k=/\bPROVIDERID=([^&]*)/i;return o.renderAd=function(f,e,o,c,v,y){l=y.options.prid||i(e,k);o=y.options.adsVNextWidth||o;c=y.options.adsVNextHeight||c;a=y.options.adContainerType;s||(s=t.getCountryCode());u||(u=t.getPageType());h===null&&(h=t.getOptOut());r===null&&(r=r||t.getMuid());var p="kvmsft_providerId="+l+";kvmsft_rid="+y.options.rid+";kvmsft_ext_inv_cd="+s+";kvmsft_optout="+h;r&&(p+=";kvmsft_muid="+r);u&&u!=="NA"&&(p+=";kvmsft_pagetype="+u);p=d(e,p);n.adSetOthAT(p+";","1");n.htmlAdWH(y.pg,o,c,a,f)},o.addEventListener=function(n,i){t.addEventListener(n,i,f)},n.adStarted=function(n,i,r,u){var e={divid:i,width:r,height:u,adNumber:n};t.callEventHandlers(t.eventTypes.BeforeAdRender,e,f,c)},n.adLoaded=function(n,i){t.callEventHandlers(t.eventTypes.AdRefreshed,i,f,c)},n.adError=function(n,i){t.callEventHandlers(t.eventTypes.ErrorOccurred,i,f,c)},o});define("adDetection",["document","pageTime","mediator","adCommon","perfPing","classList","dapmgr","adTelemetry","window"],function(n,t,i,r,u,f,e,o){function l(n){function v(){o.updatePageViewActivityId();n.telemetry=o.buildNewTelemetryObject("pgld",n.friendlyId,n.pg,n.telemetry);y()}function y(){if(!n.subscribed){var i=r.eventTypes;e.addEventListener(i.BeforeAdRender,function(n){u(n,"rad",!1,"1","ads log: "+t()+": Ad call completed.")});e.addEventListener(i.AdRefreshed,function(n){u(n,"adld",!1,"1","ads log: "+t()+": Ad creative loaded.",w,!0)});e.addEventListener(i.ErrorOccurred,function(n){u(n,"aderror",!1,"1","ads log: "+t()+": Ad creative error.",p,!0)});n.subscribed=!0}}function u(t,i,r,u,f,e,s){if(t&&n&&t.divid===n.htmlid){if(!s){o.recordAdOperation(n,i,r,u,s);return}n.alreadyCalled||(n.alreadyCalled=!0,typeof e=="function"&&e(t))}}function p(t){l(t);a(t,"aderror","error");typeof n.completionCb=="function"&&n.completionCb()}function w(t){n.height=t.height;n.width=t.width;l(t);k(t);a(t,"adld","successful");i.pub(c,n);typeof n.completionCb=="function"&&n.completionCb()}function b(){}function l(t){t=t||{};n.canDisplayAdChoices=t.width>2&&t.height>2;((n.elem.parentNode.querySelector(".adchoices,.adchoicesjs")||{}).style||{}).display=n.canDisplayAdChoices?"block":"none"}function k(t){n.elem.style.display="";n.elem.style.visibility="visible";var i=((n.elem||{}).parentNode||{}).parentNode;i&&(i.style.height="",t.width>2&&t.height>2?(f.remove(i,h),f.add(i,s)):(f.remove(i,s),f.add(i,h)))}function a(t,i,u){t=t||{};r.updateElementData(n.telemetry,"w",n.width);r.updateElementData(n.telemetry,"h",t.height);t.adId&&r.updateElementData(n.telemetry,"sdkadid",t.adId);t.seqId&&r.updateElementData(n.telemetry,"seqid",t.seqId);t.timeStamp&&r.updateElementData(n.telemetry,"timestamp",t.timeStamp);t.msnSdkName&&r.updateElementData(n.telemetry,"sdk",t.msnSdkName);o.recordAdOperation(n,i,!1,u,!0)}return{startDetection:v,stopDetection:b}}var c="adloaded",s="non-empty-ad",h="ad-1x1";return l});define("implicitPersonalizationTracker",["headData","getCookie","setCookie","classList","window","document","jquery","c.onload"],function(n,t,i,r,u,f,e){function ot(n){return it[n]||c}function y(n,t,i){n[t]||(n[t]={});var r=n[t];typeof r[i]=="number"?r[i]+=1:r[i]=1}function st(n){n&&(n._v=ct,i(p,JSON.stringify(n),180,i.topDomain,"/"))}function vt(n){(typeof n[g]!="number"||n[g]<w)&&delete n[lt]}function yt(n){var t=new Date;ht(n,t)&&(h(n[s],tt),h(n[k],tt),h(n[d],at))}function h(n,t){var i,r,u;if(n&&typeof t=="number")for(i in n)n.hasOwnProperty(i)&&(r=n[i],typeof r=="number")&&(u=Math.floor(r*t),u==0?delete n[i]:n[i]=u)}function ht(n,t){var i,r;return!n||!t?!1:(i=n[nt],i||(i=-1),r=Math.floor((t.getDate()+t.getMonth()*30)/7),i!=r)?(n[nt]=r,!0):!1}function pt(){var f=[c,it.homepage],r=c,u=0,t=o[s],n,i;if(t)for(n in t)i=t[n],t.hasOwnProperty(n)&&typeof i=="number"&&i>u&&f.indexOf(n)==-1&&(u=i,r=n);return r}function wt(){var i=0,n=o[s],t;if(n)for(t in n)n.hasOwnProperty(t)&&typeof n[t]=="number"&&(i+=n[t]);return i}var p="ipt",w=3,ct=w,b=e("body").hasClass("toolspage"),s="v",k="pt",lt="ct",d="bk",g="_v",c="U",nt="_t",tt=.85,at=.9,it={news:"A",weather:"B",entertainment:"C",movies:"C",games:"C",music:"C",tv:"C",sports:"D",finance:"E",lifestyle:"F",health:"G",foodanddrink:"H",travel:"I",autos:"J",video:"K",homepage:"L"},rt={ap:"a",gp:"b",vp:"c",sp:"d",hp:"e"},ut={v:{},pt:{},bk:{}},l="",o=ut,v;if(!b){if(n.clientSettings==null)return 1;var ft=ot(n.clientSettings.vk),et=n.clientSettings.cat,a="u";for(v in rt)if(r.contains(f.body,v)){a=rt[v];break}}if(l=t(p),l)try{o=JSON.parse(l)}catch(bt){}return!b&&o&&(vt(o),yt(o),y(o,s,ft),et&&y(o,d,et),y(o,k,a),st(o)),{getCookieFormat:ut,getIptCookie:o,getTopVerticalId:pt,getTotalVerticalViewCount:wt,getVerticalId:ot,pageType:a,saveIptCookie:st,values:o,verticalName:ft,shouldDecayCookie:ht,decayCounts:h}});define("afire",["image"],function(n){return function(t){if(t){var i=new n;i.onload=i.onerror=function(){i.onload=i.onerror=null};i.src=t.replace(/&amp;/gi,"&")}}});define("track.generic",["track","extend","trackInfo"],function(n,t,i){function r(n){this.defaultOpts=t(!0,{},u,n);this.samplingRate=this.defaultOpts.samplingRate}var u={base:"",samplingRate:100,eventAlias:{submit:"click",mouseenter:"click",mouseleave:"click",click_nonnav:"click",mouseenter_nav:"click",contextmenu:"click"}};return r.prototype={getEventTrackingUrl:function(t){var u=this.defaultOpts,r,f;return(t||(t=(i.event||{}).type),r=u[t],!r&&u.eventAlias&&(r=u[u.eventAlias[t]]),r)?(f=u.base+(r.url?r.url:""),n.generateUrl(f,u.common,u.commonMap,r.param,r.paramMap)):""},getPageViewTrackingUrl:function(){return this.getEventTrackingUrl("impr")}},r});define("visibility",["window","document"],function(n,t){function f(){function r(){if(t){for(var u=[],r=0,r=0;r<n.length;r++)try{n[r](i)}catch(f){u.push(f)}if(n=[],u.length)throw u;}}function u(){t=!0;i=arguments;r()}function f(){return{then:function(t){n.push(t);r()},always:function(){return this.then(arguments)}}}var n=[],t=!1,i=null;return{promise:f,resolve:u}}function s(){var r=["webkit","moz","ms","o"],n,i;if(typeof t.hidden!="undefined")return"hidden";for(n=0;n<r.length;n++)if(i=r[n]+"Hidden",i in t)return i}function u(){return i?t[i]:!1}function o(){u()?r=new f:r.resolve()}function h(i,r,f,e){var s,h,c;if(u()||!i)return!1;if(e=e||n.innerHeight,r=r||n.innerWidth,f||(f=0,s=t.getElementById("content"),s&&(h=s.getBoundingClientRect(),r=h.right,f=h.left)),c=!1,define.is("jquery")&&i instanceof jQuery){if(!i.length)return!1;i=i[0]}var o=i.getBoundingClientRect(),l=(o.top>=0||o.bottom>=0)&&(o.top<e||o.bottom<e),a=(o.left>=f||o.right>f)&&(o.left<r||o.right<=r);return c=o.height!==0||o.width!==0,c&&l&&a}function c(){return r.promise()}var r=new f,i=s(),e;return i&&(e=i.replace(/[H|h]idden/,"")+"visibilitychange",t.addEventListener(e,o)),o(),{isHidden:u,notifyWhenPageVisible:c,isElementTrulyVisible:h}});define("trackInfo",["trackInfo.tokens","dom","pageInstance","getCookie","screen","window","document","viewAware","deviceGroup","logging","visibility","extend"],function(n,t,i,r,u,f,e,o,s,h,c,l){function et(n,t){this.element=n;this.visible=t;this.visible&&(this.compress=function(){var n=this.element.getAttribute("data-m");try{return JSON.parse(n)}catch(t){return n}})}function it(){f.innerWidth?(w=f.innerWidth,b=f.innerHeight):(w=e.documentElement.clientWidth,b=e.documentElement.clientHeight)}function rt(n){if(n){var i=nt(n),r=d(i,"data-aop")||d(i,"data-region"),t;return(t=rt(i),t&&r)?[t,r].join(a.cmSeparator):r||t}}function ut(n){if(n){var r=nt(n),i=d(r,"data-region"),t;return(t=ut(r),t&&i)?[t,i].join(a.cmSeparator):i||t}}function ot(){return f.innerHeight||e.documentElement.clientHeight||e.body.clientHeight||0}function st(){return f.pageYOffset||e.body.scrollTop||e.documentElement.scrollTop||0}function ht(){return Math.max(e.body.scrollHeight||0,e.documentElement.scrollHeight||0,e.body.offsetHeight||0,e.documentElement.offsetHeight||0,e.body.clientHeight||0,e.documentElement.clientHeight||0)}function ct(){var n={};return f&&f.adsEnabled!=null&&(n.adoni=+f.adsEnabled),n}function ft(n,t,i){return i?t?[t,i].join(n):i:t}var d=t.attr,nt=t.parent,y,tt,w,b,v,g={},k=[],p="",a={notrack:"notrack",cmSeparator:">",defaultModule:"body",defaultFormHeadline:"[form submit]",piitxt:"data-piitxt",piiurl:"piiurl",wrapperId:"wrapper",defaultConnectionType:"LAN",smpCookie:"Sample",smpExp:182,MUIDCookie:"MUID",spinTimeout:n.spinTimeout,trackTcm:"tcm",trackAop:"aop",curAop:"",trackRegion:"region",gestureKey:"touch_gesture",gestureType:{tap:"tap",rightclick:"rightclick"},curRegion:"",event:{},sitePage:{},userStatic:{},overrideClientParams:{},customTags:ct()||{},oobWaitTime:150,enableOOB:1,bwVerTable:n.browserFilterTable,trackingDisabled:!1,getCurrentTime:function(){return+new Date},timeToInteract:function(n){var t;return t=n?n:a.getCurrentTime(),t&&f.performance&&f.performance.timing&&f.performance.timing.navigationStart?t-f.performance.timing.navigationStart:void 0},telemetryModuleTypes:{Undefined:0,Header:1,Footer:2,topNavBar:3,navBar:4,dropDown:5,Section:6,Carousel:7,Module:8,searchBox:9,inputBox:10,actionButton:11,Interaction:12,Headline:13,Navigation:14,Entity:15,structuredData:16,appStore:17,appLaunch:18,cmsPromotions:19,microsoftWebStore:20,xboxStore:21,officeStore:22,appInstall:23},telemetryDataAttribute:"data-m",telemetryHLAttribute:"data-hl",client:{resetClientId:function(){y=r(a.MUIDCookie)||a.sitePage.requestId||""},clientId:function(){return y||y===""||(y=r(a.MUIDCookie)||a.sitePage.requestId||""),y},getMuid:function(){return r(a.MUIDCookie)},OTFTelemetry:function(n){require(["binding","c.deferred"],function(){var t,s,r,u,h,c,o,i;typeof n=="undefined"?n="load":n==null&&(n="");k=[];t=e.body.querySelectorAll("[data-m]");s=f.innerHeight;r=f.innerWidth;u=0;h=e.getElementById("content");h&&(c=h.getBoundingClientRect(),r=c.right,u=c.left);var l=e.body.querySelector(".ip")||e.body.querySelector(".mip")||e.body.querySelector(".sip"),y=l&&a.telemetryTracking.isVisible(l,r,u,s),v=[];for(o=0;o<t.length;o++)v.push(a.telemetryTracking.isVisible(t[o],r,u,s,y));for(i=0;i<t.length;i++)k.push(new et(t[i],v[i]));a.telemetryTracking.sendImprUpdateEvent(n,a.telemetryTracking.formatModules(),a)})},OTFSpecialSection:function(n){a.telemetryTracking.specialSection(n)},colorDepth:u.colorDepth,connectionType:function(){return a.defaultConnectionType},cookieSupport:function(){return e.cookie?"Y":"N"},height:function(){return b||it(),b},pageUrl:function(){return f.location.href},referrer:function(){return e.referrerOverride||e.referrer},screenResolution:function(){return[u.width,u.height].join("x")},width:function(){return w||it(),w},timezone:function(){var i=new Date,r=new Date,n,t;return r.setMonth(i.getMonth()+6),n=Math.round(i.getTimezoneOffset()/60)*-1,t=Math.round(r.getTimezoneOffset()/60)*-1,n<t?n:t},viewType:function(){return(s.isTmx||s.isMidlevel)&&!v&&o.listen(function(n){n&o.views.SIZE1COLUMN?v="size1column":n&o.views.SIZE2COLUMN?v="size2column":n&o.views.SIZE3COLUMN?v="size3column":n&o.views.SIZE4COLUMN&&(v="size4column")}),v},isIE:function(){return f.ActiveXObject?!0:!1}},userDynamic:{anid:function(){return r("ANON")},isHomePage:function(){var n=e.documentElement,t=0;if(n.addBehavior&&(tt||n.addBehavior("#default#homePage"))){tt=1;try{t=n.isHomePage(f.location.href)?"Y":"N"}catch(i){}}return t},timeStamp:function(){return a.getCurrentTime()},AOP:function(){return a.curAop!=null&&a.curAop==""&&(a.curAop=rt(t.getTarget(a.event))||""),a.curAop},Region:function(){return a.curRegion!=null&&a.curRegion==""&&(a.curRegion=ut(t.getTarget(a.event))||""),a.curRegion},slideType:function(){for(var n=a.event.target,i="halfpane";n&&t.name(n)!="SECTION";){if(t.name(n)=="LI"&&t.containsClass(n,i))return i;n=t.parent(n)}return null},eventNumber:0},custom:{addCustomTags:function(){var n=a.customTags;return n=l({},a.customTags,g),g={},JSON.stringify(n)}},telemetryTracking:{setupParameters:function(n){var t=a.sitePage;return{evt:n,rid:i.getActivityId()||t.requestId,di:t.domainId,clid:a.client.clientId()}},sendImprUpdateEvent:function(n,t){var i=this.setupParameters("impr_update");i&&(i.mech=n,i.winht=ot(),i.docht=ht(),i.scrollOff=st(),i.e1=t,i.tmpl=a.sitePage.templ,i.mkt=a.sitePage.localeCode,n==="scroll"&&(i.TTI=a.timeToInteract()),this.sendUpdate(i))},isVisible:function(n,t,i,r){return n?c.isElementTrulyVisible(n,t,i,r):!1},formatModules:function(){var t=[],i,n;for(i in k)n=k[i],n&&n.compress&&t.push(n.compress());return{e:t}},specialSection:function(n){var t=this.setupParameters("section");t&&(t.sn=n,a.telemetryTracking.sendUpdate(t))},sendUpdate:function(n){var i,t;if(!a.trackingDisabled&&n){if(!p&&(p=(a.sitePage||{}).otfURL,!p)){h.error("[telemetryTracking.sendUpdate] BaseUrl was empty or undefined in sitePage.");return}if(JSON&&JSON.stringify){try{i=JSON.stringify([n])}catch(r){h.error("[telemetryTracking.sendUpdate] Error in using JSON.stringify.",r);return}if(i&&i!="[{}]")try{if(a.testHook){a.testHook();return}t=new XMLHttpRequest;t.open("POST",p,!0);t.setRequestHeader("Content-type","application/json; charset=utf-8");t.onreadystatechange=function(){};t.send(i)}catch(r){h.error("[telemetryTracking.sendUpdate] Error in generating the XDomainRequest or XMLHttpRequest","BaseUrl = "+p,r);return}}}}},updateTemplValue:function(n){a.updateSitePage(n)},updateSitePage:function(n,t,i){var r=a.sitePage,u;r||(r=a.sitePage={});u=r.flightId;t&&(!u||u.indexOf(t)<0)&&(r.flightId=ft(",",u,t));r.templ=ft(";",r.templ,n);i&&(r.requestId=i)},trackCustomProperty:function(n,t){n&&t!=undefined&&(n=n.toLowerCase(),g[n]=t)}};return a});define("c.track.mobi",["track","trackInfo","pageInstance","screen","navigator","dom","events","document","window"],function(n,t,i,r,u,f,e,o,s){function y(n){var i=l.exec(n),t=i[i.length-1].split("."),r=t.length;return r>1&&(t=t.slice(r-2)),t.join(".")}function p(i,r,u,f,e,o,s,h){if(i){i[t.gestureKey]=r;u=u&&u.length>0?u:a;var c=n.createEvent(null,u,i);n.trackEvent(c,i,f,e,o,s,h)}}var a="click_nonnav",h=!1,c=0,v=1e3,l;return n.extend({client:{scrW:function(){return r.width},scrH:function(){return r.height},orientation:function(){return r.width>r.height?"landscape":"portrait"},userAgent:function(){return u.userAgent},hourOfDay:function(){return(new Date).getUTCHours()},linkDomain:function(){var n=t.report?t.report.destinationUrl:null;return n&&n.length?y(n):null},pageTitle:function(){return o.title},gesture:function(){var n=f.getTarget(t.event);if(n&&n[t.gestureKey])return n[t.gestureKey];if(t.event){if(t.event.originalEvent&&t.event.originalEvent=="contextmenu"||t.event.ctrlKey||t.event.shiftKey)return t.gestureType.rightclick;if((t.event.type=="click"||t.event.type=="click_nonnav"||t.event.type=="submit")&&h==!0&&t.sitePage.device)return t.gestureType.tap}return""}},userDynamic:{requestId:function(){var n=i.getActivityId()||t.sitePage.requestId;return n?n:s.console&&console.error("No requestID passed in from the server or generated via guidGen.js, please check the trackInfo.sitePage.requestId or pageInstance.js")}}}),l=/^(\w+:\/\/)?([^:\/]*)/,u.pointerEnabled||u.msPointerEnabled?e.bind(o,u.pointerEnabled?"pointerup":"MSPointerUp",function(n){h=n.pointerType==n.MSPOINTER_TYPE_TOUCH||n.pointerType=="touch"?!0:!1}):(e.bind(o,"mouseup",function(){var n=(new Date).getTime();n>c+v&&(h=!1)}),e.bind(o,"touchend",function(){h=!0;c=(new Date).getTime()})),n.trackGesture=p,1});define("track",["trackInfo","extend","dom","getCookie","setCookie","events","window","document","mediator","navigation","headData","pageInstance","evaluate","escape","trackingHelper","trackInfo.tokens","webStorage","afire"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b){function et(t){var r,c,u,i,o,s,f;for(pt(),ht.incrementEventNumber(),c=h.getParamsFromUrl(e.location.href),u=0;u<g.length;u++){if(r=g[u],i=r.defaultOpts,i.disableOnAutoRefresh){for(o=i.disableOnAutoRefresh.split(";"),s=!1,f=0;f<o.length;f++)if(o[f]==i.id){s=!0;break}if(s&&c.AR){i.isGeneratedEarly=!1;continue}}i.isGeneratedEarly?i.isGeneratedEarly=!1:r&&r.samplingRate>=d&&ot(r[t]())}n.curAop="";n.curRegion=""}function ot(t){!n.trackingDisabled&&t&&b(t)}function pt(){if(-1==d){var t=n.smpCookie;d=parseInt(r(t));d=isNaN(d)?Math.floor(Math.random()*100):d%100;u(t,d,182,u.topDomain,"/")}return d}function st(n,t,i){var u=ut(n)||[],r=0,f;for(t=t||"alt";r<u.length;r++)if(f=k(u[r],t)||st(u[r],t,i),f&&!(i==u[r].localName))return f}function wt(t){if(t){var u=it(t),i=k(u,"id"),r;return n.wrapperId==i?void 0:(r=wt(u),r&&i)?[r,i].join(n.cmSeparator):i||r}}function bt(n){if(n){var u=it(n),i,t=0,r=0;if(!k(u,"id"))if(t=bt(u),t)t--;else return 0;for(i=ut(u)||[];r<i.length;r++){if(i[r]==n){t++;break}t+=kt(i[r])}return t}}function kt(t){var i=0,r=0,u;if(t&&!k(t,"id"))for(u=ut(t)||[],k(t,"href")&&!k(t,n.notrack)&&i++;r<u.length;r++)i+=kt(u[r]);return i}function dt(n,t,i){var u,r,e,f;if(i&&n&&t){if(n.tagName==t)return n;for(u=ut(n)||[],r=0,e=u.length;r<e;r++){if(u[r].tagName==t)return u[r];if(f=dt(u[r],t,i-1),f)return f}}return null}function fi(n){if(n)for(var t,i=0;i<g.length;i++)if(t=g[i],t.defaultOpts.id===n){ot(t["getPageViewTrackingUrl"]());break}}function ei(){var n=e.location.protocol+"//"+e.location.host+"/pv.xml";ot(n)}function oi(n){if(n){var t=n.errId,i=w.getItem(t,!0),r=(new Date).getTime();i&&r-i<=ui||(si(n),et("getEventTrackingUrl"),w.setItem(t,r,!0))}}function si(t){n.event={type:"app_error"};n.report={errId:t.errId,errMsg:t.errMsg,errSource:t.errSource}}function tt(t,r,u,f,e,o,s){var h,a,v,w,y,p,l;if(!r&&t&&(r=t.target),r&&!k(r,n.notrack)){r.jquery&&(r=r[0]);t=t||{};t.target=r;n.event=t;h=r.href||k(r,"href");h=="#"&&(h=r.href);u=u||k(r,n.piiurl)||h||k(r,"action")||"";a=k(r,"data-hl")||"";f||a||(v=dt(r,"H4",2),v&&(f=i.text(v)));f=f||a||k(r,n.piitxt)||("FORM"==lt(r)?n.defaultFormHeadline:k(r,"title")||st(r,"title","img")||i.text(r)||k(r,"alt")||st(r,"alt")||"");f.trim!=undefined&&(f=f.trim());e=e||wt(r)||n.defaultModule;o=o||(k(r,"id")?1:bt(r));w=r.className||k(r,"class");s=s||(/GT1-(\d+)\b/i.exec(w)?RegExp.$1:"")||(/[?&]GT1=(\d+)\b/i.exec(h)?RegExp.$1:"");var c="",b="",d="",g=n.cmSeparator,nt;t&&(t.type=="click"||t.type==rt||t.type=="submit"||t.type=="contextmenu"||t.type=="mouseenter")&&(y="data-m",c=k(r,y),c||(p=it(r),c=p?k(p,y):""),l=wi(r),l&&(b=l.nameLineage.reverse().join(g),d=l.ordinalLineage.reverse().join(g)),nt=t.time);n.report={destinationUrl:u,headline:f,contentModule:e,contentElement:o,campaignId:s,module:c,sourceIndex:r.sourceIndex||"",nodeName:r.nodeName||"",nLineage:b,oLineage:d,timeToInteract:n.timeToInteract(nt)};et("getEventTrackingUrl",t?!t.noSpin:1)}}function hi(n){var i=[],r,t;if(n&&n.querySelectorAll)for(r=n.querySelectorAll("[data-m]"),k(n,"data-m")&&i.push(n),t=0;t<r.length;t++)i.push(r[t]);return i}function gt(n,t){var i=k(n,t);if(i)try{return a(i)}catch(r){return null}return null}function ci(n,t){if(t.indexOf)return t.indexOf(n)!==-1;for(var i=0;i<t.length;i++)if(t[i]===n)return!0;return!1}function li(t,i){var o,r,u,s,f,e;if(t){for(t.jquery&&(t=t[0]),o=hi(t),r=[],u=0;u<o.length;u++)(s=o[u],!i||n.telemetryTracking.isVisible(s))&&(f=gt(s,"data-m"),e=f?f.i:undefined,e===undefined||ci(e,ft)||(ft.push(e),r.push(f)));r.length&&n.telemetryTracking.sendImprUpdateEvent("load",{e:r})}}function ai(){ft=[]}function vi(n){var t=new RegExp(ri).exec(n);return t&&t.length&&t[1]||null}function yi(n){var i=null,r,t;return n&&(n.indexOf(yt)==-1?(r=n.substring(0,n.indexOf("#")).toLowerCase(),t=e.location.href.toLowerCase(),(t==r||t.substring(0,t.indexOf("#"))==r)&&(i=rt)):i=vi(n)),i}function ct(n,t,i){var r=null;return nt.createEvent?(r=nt.createEvent("Events"),r.initEvent(t,!1,!0,i||e,0,0,0,0,0,!1,!1,!1,!1,0,null)):nt.createEventObject&&(r=nt.createEventObject(n),r.type=t),r&&(r.customTarget=i,r.originalEvent=n&&n.type),r}function pi(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function ni(n){ii(n)}function ti(n){2!=n.button&&ii(n)}function wi(n){for(var i={},r=[],u=[],t;n;)t=gt(n,"data-m"),t&&(t.n&&r.push(t.n),t.o&&u.push(t.o)),n=it(n);return i.nameLineage=r,i.ordinalLineage=u,i}function ii(t){var r,f,u,e;try{t.time=n.getCurrentTime();t.customTarget&&t.customTarget.useMap&&(t.customTarget=t.customTarget.document.activeElement,t.target=t.customTarget)}catch(o){}for(r=i.getTarget(t);r&&!k(r,"href")&&r.nodeName!="BUTTON"&&r.nodeName!="MENUITEM";)r=it(r);if(r&&!r.form)if(f=t,t.type=="contextmenu"&&(f=ct(t,"click",r)),u=r.href,u&&u.length){if(u.indexOf("#")==u.length-1||u.indexOf(yt)>=0)if(t.type=="click")e=yi(u),e&&(f=ct(t,rt,r));else if(t.type=="contextmenu")return;f.type==rt&&pi(t);y.addOcidToHref(u,r,f);f.isPropagationStopped||tt(f,r)}else t.type!="contextmenu"&&tt({type:rt,target:r})}var k=i.attr,lt=i.name,it=i.parent,ut=i.children,g=[],d=-1,at,vt=e,nt=o,yt="tevt=",rt="click_nonnav",ri=/#tevt=([A-Za-z0-9]+_[A-Za-z0-9]+)(;*)/g,ft=[],ui=p.logSamplingRate||3e5,ht={onContextMenu:ni,onClick:ti,trackEvent:tt,trackAppErrorEvent:oi,createEvent:ct,sendPageViewCandidate:ei,sendSinglePageViewBeacon:fi,trackPartialImpression:li,clearImpressionCache:ai,trackPage:function(t){if(delete n.event,delete n.userStatic.requestId,delete n.overrideClientParams,n.overrideClientParams=t,c&&c.clientSettings&&c.clientSettings.static_page){var i=n.sitePage.requestId=l.getActivityId();n.sitePage.isStaticPage="True";require(["c.deferred"],function(){var r=o.body.querySelector("#maincontent"),t,u,n;if(r)for(t=r.querySelectorAll("a[href*='www.bing.com']"),u=t.length,n=0;n<u;n++)t[n].href=h.mergeQueryStringParams(t[n].href,{refig:i})})}et("getPageViewTrackingUrl");at?s.pub("pageView"):(at=1,s.pub("pageViewOnLoad"));delete n.overrideClientParams},trackThirdPartyUpdate:function(){s.pub("thirdPartyTrackingUpdate")},register:function(){for(var t=0,n;n=arguments[t++];)isNaN(n.samplingRate)&&(n.samplingRate=99),g.push(n)},incrementEventNumber:function(){n.userDynamic.eventNumber++},isSampled:function(n){return!(pt()>n)},generateUrl:function(i,r,u,f,e){var h,c,o,s,l=[];f=t({},r,f);e=t(!0,{},u,e);for(h in e)if(n[h]){c=e[h];for(o in c)o&&n.overrideClientParams&&n.overrideClientParams[o]!==undefined?s=n.overrideClientParams[o]:(s=n[h][c[o]],typeof s=="function"&&(s=s())),s!=null&&(f[o]=s)}for(o in f)l.push(v.urlPart(o)+"="+v.urlPart(f[o]));return i+l.join("&").replace(/%20/g,"+")},extend:function(i){t(!0,n,i)},form:function(n){n&&n.length||(n=[n]);for(var t,i=0;t=n[i++];)"FORM"!=lt(t)||k(t,"data-customformtrack")||f.bind(t,"submit",tt)},preventBeacon:function(n){var t,i;if(n)for(n=n.toLowerCase(),t=0;t<g.length;t++)if(i=g[t].defaultOpts,n===i.id.toLowerCase()){i.isGeneratedEarly=!0;break}}};return f.bind(nt,"click",ti),f.bind(vt,"load",tt),f.bind(vt,"unload",tt),f.bind(nt,"contextmenu",ni),require(["c.dom"],function(){ht.form(i.getElementsByTagName("form"))}),s.sub("ViewabilityUpdatedEvent",n.client.OTFTelemetry),ht});define("elementTrackingDecorator",["trackingConstants","jquery","evaluate","track","window","extend"],function(n,t,i,r,u,f){function v(){n&&n.trackingData&&y(n.trackingData.lastIndex)&&n.trackingData.lastIndex>1?e=n.trackingData.lastIndex:u&&u.console&&u.console.error("Tracking constants were not supplied in DOM.",n)}function w(n){return n&&n.length!==0}function b(n,t){var i=n.closest(o),r=i.length>0?i.eq(0):null,u;r&&n.attr(s)&&(r=i.length>1?i.eq(1):n.parent(o));t&&!r&&(i=t.closest(o),r=i.length>0?i.eq(0):null);r&&(u=r.attr(s),u&&y(u)&&(this.p=u))}function k(n,i){n.find(o).each(function(r,u){var e=t(u),f;e.parent(o)[0]==n[0]&&(f=h(e),f&&f.p!=i.i&&(f.p=i.i,c.call(e,f)))})}function h(n){var t=n.attr(a);if(t)try{return i(t)}catch(r){return null}return{}}function c(n){n.i&&(this.attr(a,JSON.stringify(n)),this.attr(s,n.i))}function d(n){return this&&(!this.i||n==!0)&&e?(e++,this.i=e,!0):!1}function g(n){var t=n.parent().children();t.length>1?nt.call(t,this,n):this.o=1}function nt(n,i){var r=0;this.each(function(u,e){if(r++,e===i[0])n.o=r;else{var o=t(e),s=f(h(o),{o:r});c.call(o,s)}})}function y(n){return!isNaN(parseFloat(n))&&isFinite(n)}function p(n){var t=n?n.defaults:null;return f({},{n:"client",y:12},t||{})}function l(n,i,r,u,e){var o=t(n),l=h(o),s=f({},r,l),a=d.call(s,e);e||g.call(s,o);b.call(s,o,i);u&&u(o,s);c.call(o,s);a&&k(o,s)}var e=0,a="data-m",s="data-id",o="["+s+"]";return{setTrackingForSingleElement:function(i,u,f,o){v();var s=p(f);return l(i,t(u),s,f&&f.elementOverride,f&&f.overrideIndexOnly),n.trackingData.lastIndex=e,o||r.trackPartialImpression(i,!0),i},setTrackingAttrs:function(i,u,f,o){var k;if(v(),i&&i.find){var s=f&&f.selector||"li",h=i.find(s),c=p(f),a=f?f.elementOverride:null,y=u&&!u.jquery?t(u):u,b=f?f.overrideIndexOnly:!1;i.each(function(n,i){t(i).is(s)&&l(i,y,c,a,b)});w(h)&&(k=t(h),k.each(function(n,t){l(t,y,c,a,b)}))}return n.trackingData.lastIndex=e,o||r.trackPartialImpression(i,!0),i}}});define("trackingHelper",["trackInfo","navigation","pageInstance","location","evaluate","ajax","getCookie","setCookie","trackingHelper.tokens","format","window"],function(n,t,i,r,u,f,e,o,s,h,c){function ht(t,i,r){var e,h,u;if(t&&i){nt||(nt=n.sitePage.msnocid);l||(l=n.sitePage.storeocid);var c=t.indexOf("://"),a=t.indexOf(ft),v=c>0&&a>=0&&a<c,y=t.match(g),o=t.match(p),s=y&&y[1],k=o&&o[1];if(s&&k){var f=t,w=t.match(/[&?]ocid=(ems\.)/i),b=w&&w[1];b&&!f.match(/[=_]emsadid\./i)&&(f=d(f.replace(p,""),o[1]));v&&ut(f,r,i);return}(e=t.indexOf("#"),h="",s||l)&&v&&(e>=0&&(h=t.substring(e,t.length),t=t.substring(0,e)),u=t,s||(u+="&ocid="+l),u=d(u,b),i.href=u+h,ut(u,r,i))}}function d(t,r){var c=t.match(p),a=c&&c[1],e=t.indexOf("#"),l="",f,u,o,s,h;return a?t:(e>=0&&(l=t.substring(e,t.length),t=t.substring(0,e)),f=t,f+="&ccid=",u=[],r&&u.push("emsadid."+r),o=i.getActivityId()||n.sitePage.requestId,o&&u.push("webig."+o),s=n.client.clientId(),s&&u.push("muid."+s),h=n.sitePage.flightid,h&&u.push("flightid."+h.replace(",","_flightid.")),f=f+u.join("_"),f+l)}function ct(){}function ut(t,i,o){var s,c,y;if((!i||!i.originalEvent||i.originalEvent!="contextmenu")&&!w){var p=t.match(g),d=t.match(/[&?]tduid=([^&]+)/i),nt=new RegExp(b,"i");if(p&&p[1]&&(!d||!d[1])&&!nt.test(t.match(nt))){if(s=l,o.attributes&&o.attributes["data-m"]&&(c=o.attributes["data-m"].value,c&&(s=u(c).n)),a=n.sitePage.pageId+"_"+n.sitePage.localeCode+"_"+n.sitePage.vertical+"_"+s,k=a,y=e(k),y){t+=h(tt,y,rt,it,a);o.href=t;return}v=o;v.href=t;i.stopPropagation();i.preventDefault();i.isPropagationStopped=!0;w=!0;r.origin||(r.origin=r.protocol+"//"+r.hostname+(r.port?":"+r.port:""));f.get({url:h(st,r.origin,n.sitePage.localeCode,n.sitePage.vertical,a),dataType:ot,success:at,error:function(n,i){lt("The TradeDoubler ajax call failed: "+i+" Status code: "+n);o.href=t+b;o.click()}})}}}function lt(n){c.console&&c.console.log&&console.log(n)}function at(n){n?(o(k,n,13,o.topDomain,et),v.href+=h(tt,n,rt,it,a)):v.href+=b;w=!1;v.click()}function vt(n,t){return t?n+"_succeeded":n+"_failed"}var y=r.host.split(".").reverse(),yt=y.length>1?y[1]+"."+y[0]:r.host,ft="ms-windows-store",g=/[&?]ocid=([^&]+)/i,p=/[&?]ccid=([^&]+)/i,nt=n.sitePage.msnocid||"",l=n.sitePage.storeocid||"",w=!1,et="/",ot="text/html",a="",b="&notduid=true",tt="&tduid=({0})({1})({2})({3})()",k="",it=s.tradeDoublerMarketId,rt=s.tradeDoublerProgramId,v,st="{0}/{1}/{2}/tduidajax?epi={3}";return{addOcidToHref:ht,attachTaglineClickHandler:ct,addCcidToStoreUrl:d,getActionResult:vt}});define("binding",["viewAware","mediator","window"],function(n,t,i){function e(t,r,u){this.behaviorName=t;this.selector=r;this.context=u;this.views=n.views.NONE;this.timeout=i.setTimeout(function(){throw'binding("'+t+'", "'+r+'") was not followed with an all(), view(), or fallback() call!';},0)}function o(t){this.view(n.views.ALL&~this.views,t)}function s(n,t){for(var u=null,i=0;i<r.length;i++)if(r[i].behaviorName==n&&r[i].args[0]==t){u=r[i];break}return u}function c(n){var t,f,i;for(u=n,i=0;i<r.length;i++)t=r[i],f=t.view&u,t.active&&(f?t.update():(t.teardown(),t.active=0));for(i=0;i<r.length;){if(t=r[i],f=t.view&u,f&&!t.active&&!h(t)){r.splice(i,1);continue}++i}}function h(n){if(!n.setup){var t=n.behavior.apply(null,n.args);t&&(n.setup=t.setup,n.teardown=t.teardown,n.update=t.update)}return n.setup?(n.setup(),n.active=1,!0):!1}var r=[],u,f;return n.listen(c),e.prototype={view:function(n,t){var e=this.behaviorName,o=[this.selector,this.context,t],f={active:0,args:o,behaviorName:this.behaviorName,view:n};return this.views|=n,i.clearTimeout(this.timeout),require([e],function(t){f.behavior=t;var i=!0;n&u&&(i=h(f));i&&r.push(f)}),this},fallback:o,all:o,get:s},f=function(n,t,i){return new e(n,t,i)},f.views=n.views,i.binding=f,i.binding.get=s,f});define("webStorage",["window"],function(n){function h(){try{return i in n&&n[i]!==null&&r in n&&n[r]!==null}catch(t){return!1}}function e(n,i){var r=i?f:u;if(t)return r.getItem(n)}function c(n,t){var i=e(n,t);try{return typeof i=="string"?JSON.parse(i):i}catch(r){console.log(r)}return i}function o(n,i,r){var e=r?f:u;if(t)try{typeof i=="object"&&(i=JSON.stringify(i));e.setItem(n,i)}catch(o){console.log(o)}}function s(n,i){var r=i?f:u,e;if(t)return e=r.getItem(n),r.removeItem(n),e}var i="localStorage",r="sessionStorage",u=n[i],f=n[r],t=h();return{supported:t,getItem:e,getObject:c,setItem:o,setObject:o,removeItem:s,removeObject:s}});define("getCookie",function(){return function(n){var i=new RegExp("\\b"+n+"\\s*=\\s*([^;]*)","i"),t=i.exec(document.cookie);return t&&t.length>1?t[1]:""}});define("setCookie",["location"],function(n){function t(n,t,i,r,u,f){var o,e=[n,"=",t],s;-1==i?o="Fri, 31 Dec 1999 23:59:59 GMT":i&&(s=new Date,s.setTime(s.getTime()+i*864e5),o=s.toUTCString());o&&e.push(";expires=",o);r&&e.push(";domain=",r);u&&e.push(";path=",u);f&&e.push(";secure");document.cookie=e.join("")}return t.topDomain=(n.hostname.match(/[^.]+\.[^.\d]+$/)||{})[0]||"",t});define("dom",function(){var n=document,t=/[\n\t]/g,i=/(^\s+)|(\s+$)/mg;return{attr:function(n,t){return n&&(n.getAttribute?n.getAttribute(t,2):n[t])||""},name:function(n){return n&&n.nodeName||""},text:function(n){return(n&&(n.textContent||n.innerText)||"").replace(i,"")},children:function(n){return n&&n.children||[]},parent:function(n){return n&&n.parentNode},getElementsByTagName:function(t){return n.getElementsByTagName(t)},create:function(t){return n.createElement(t)},containsClass:function(n,i){return n&&(" "+(n.className||n.getAttribute("class"))+" ").replace(t," ").indexOf(" "+i+" ")>-1},getTarget:function(n){return n&&(n.customTarget||n.target||n.srcElement)||document}}});define("commonElements",["document","c.dom"],function(n){return{head:n.getElementsByTagName("head")[0],body:n.getElementsByTagName("body")[0],main:n.getElementById("main")}});define("events",function(){function n(n,t,i){n.addEventListener&&n.addEventListener(t,i,!1)}function t(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}return{bind:n,unbind:t}});define("extend",function(){function n(){var f=arguments,t=f[0]||{},e=1,i,r,o,u;for((typeof t=="boolean"||typeof t=="number")&&(o=!!t,t=f[1],e=2);e<f.length;e++){r=f[e];for(i in r)r[i]!==undefined&&(o&&typeof r[i]=="object"?(u=t[i],typeof u!="object"&&(u={}),n(!0,u,r[i]),t[i]=u):t[i]=r[i])}return t}return n});define("format",function(){function t(t,i,r){for(var u=0;u<r.length-i;++u)t=t.replace(n[u]||(n[u]=new RegExp("\\{"+u+"\\}","g")),r[u+i]);return r.length?t:t.toString()}var n=[];return String.prototype.format=function(){return t(this,0,arguments)},function(n){return(typeof n=="function"&&(n=n.apply(n,Array.prototype.slice.call(arguments,1))),n==null)?"":(typeof n!="string"&&(n=n.toString()),n)?t(n,1,arguments):""}});define("refreshDeferredModules",["jquery","refreshModules"],function(n,t){function i(){return t(n("[data-module-deferred]:not([data-sso-dependent])"))}return i});define("pointerEvents",["navigator"],function(){return window.PointerEvent?{enabled:!0,down:"pointerdown",up:"pointerup",cancel:"pointercancel",move:"pointermove",over:"pointerover",out:"pointerout",enter:"pointerenter",leave:"pointerleave"}:window.MSPointerEvent?{enabled:!0,down:"MSPointerDown",up:"MSPointerUp",cancel:"MSPointerCancel",move:"MSPointerMove",over:"MSPointerOver",out:"MSPointerOut",enter:"MSPointerOver",leave:"MSPointerOut"}:{enabled:!1,down:"mousedown",up:"mouseup",cancel:"mouseup",move:"mousemove",over:"mouseover",out:"mouseout",enter:"mouseenter",leave:"mouseleave"}});define("promise",["window"],function(n){function t(n,e){function y(n){s==i&&(o=n,s=u,v())}function a(n){s==i&&(o=n,s=f,v())}function p(n){for(var t=0;t<h.length;t++)h[t](n)}function v(){for(var n=0;n<c.length;n++)l(c[n])}function l(n){switch(s){case i:c.push(n);break;case u:n.complete();break;case f:n.error()}}if(typeof n!="function")throw"promise must take an init function as the first parameter";var s=i,o,c=[],h=[];this.addEventListener=function(){throw"not implemented";};this.cancel=function(){s==i&&(e&&(e(),e=null),a(new Error("Cancel")))};this.dispatchEvent=function(){throw"not implemented";};this.done=function(n,i,r){function u(n){if(t.onerror)t.onerror(n);else throw n;}l({complete:function(){if(n)try{n(o)}catch(t){u(t)}},error:function(){if(i)try{i(o)}catch(n){u(n)}else u(o)}});r&&h.push(r)};this.removeEventListener=function(){throw"not implemented";};this.then=function(n,i,u){var f,e,s,c=new t(function(n,t,i){f=n;e=t;s=i});return l({complete:function(){var i,u=1;if(n)try{i=n(o);typeof i=="undefined"&&(i=o)}catch(s){u=0;e(r(s))}else i=o;u&&(t.is(i)?i.then(f,e):f(i))},error:function(){var n,u=0;if(i)try{n=i(o);typeof n=="undefined"?n=o:u=1}catch(s){n=r(s)}else n=o;u?t.is(n)?n.then(f,e):f(n):e(n)}}),u&&h.push(u),c};n(y,a,p)}function r(n){return n&&n.name==e||(n=new Error(n)),n}var i=1,u=2,f=3,e="Error";return t.any=function(n){function u(){r()}for(var r,f=new t(function(n){r=n}),i=0;i<n.length;i++)n[i].then(u,u);return f},t.as=function(n){if(n){if(n.name==e)return t.wrapError(n);if(t.is(n))return n}return t.wrap(n)},t.is=function(n){return n&&typeof n.then=="function"},t.join=function(n){function u(){--f||r()}for(var f=n.length,r,e=new t(function(n){r=n}),i=0;i<n.length;i++)n[i].then(u,u);return e},t.theneach=function(){throw"not implemented";},t.timeout=function(i,r){function f(){u=1}var u;return r&&r.done(f,f),new t(function(t){function f(){u||(r&&r.cancel(),t())}i===0&&n.setImmediate?n.setImmediate(f):n.setTimeout(f,i)})},t.wrap=function(n){return new t(function(t){t(n)})},t.wrapError=function(n){return new t(function(t,i){i(r(n))})},t});define("scrollLeft",["dir.tokens","device"],function(n,t){var i,r;if(!n.ltr){if(r=t.capability("RtlScrollLeftAdjustment"),r=="fromLeft")return i=function(n,t){return t?n.scrollLeft=n.scrollWidth-n.clientWidth-t:n.scrollWidth-n.clientWidth-n.scrollLeft},i.adjustValue=function(n,t){return n.scrollWidth-n.clientWidth-t},i;if(r=="negativeValue")return i=function(n,t){return t?n.scrollLeft=t*-1:Math.abs(n.scrollLeft)},i.adjustValue=function(n,t){return t*-1},i}return i=function(n,t){return t?n.scrollLeft=t:n.scrollLeft},i.adjustValue=function(n,t){return t},i});define("sso",["headData","trackInfo","getCookie"],function(n,t,i){return function(r,u){var o=n.sso,f,v;if(r=r||function(){},u=u||window,!o||n.clientSettings&&n.clientSettings.static_page||i("eso")=="1"){r({signedIn:!1,closed:!1});return}o=o.replace(/amp;/g,"&");f=u.document.createElement("IFRAME");f.id="sso_frame";f.style.width="1px";f.style.height="1px";f.style.position="absolute";f.style.visibility="hidden";f.style.left="0px";f.style.bottom="0px";f.src=o;u.document.body.appendChild(f);var s=null,a=0,h,e,c,l=function(n){var t=n.data;t&&(t.ssoStatus==="sso_completed"||t.ssoStatus==="sso_failed")&&(s=t.ssoStatus,define("ssoData",t))};u.addEventListener?(e="message",c=u.addEventListener(e,l,!1),h=u.removeEventListener):(e="onmessage",u.attachEvent(e,l),c=l,h=u.detachEvent);v=u.setInterval(function(){if(s||a>=5){var i={signedIn:s==="sso_completed",closed:!!s};u.clearInterval(v);h.call(u,e,c);u.document.body.removeChild(f);r(i);i.signedIn&&(t.client.OTFSpecialSection("sso-success"),define("c.sso",n.signedin=1))}else a++},1e3)}});define("duplicateHtmlIds",["logging","document","window"],function(n,t,i){function r(){for(var r,i,n={},e=t.querySelectorAll("[id]"),u,f=0;u=e[f];++f)n[u.id]=(n[u.id]||0)+1;r=[];for(i in n)(!i||n[i]>1)&&r.push(' "'+i+'" ('+n[i]+" occurrences)");return r.length?r.join(","):null}function u(){var t=r();t&&n.error("[MARKUP VALIDATION] Duplicate/blank htmlids:"+t)}return require(["c.deferred"],function(){i.setTimeout(u,2e3)}),r});window.Modernizr=function(n,t){function r(){try{return t.createEvent("TouchEvent"),!0}catch(n){return!1}}var i=r();return Function.prototype.bind||(Function.prototype.bind=function(n){var i=Array.prototype.slice,t=this,r,u;if(typeof t!="function")throw new TypeError;return r=i.call(arguments,1),u=function(){var e,o,f;return this instanceof u?(e=function(){},e.prototype=t.prototype,o=new e,f=t.apply(o,r.concat(i.call(arguments))),Object(f)===f)?f:o:t.apply(n,r.concat(i.call(arguments)))},u}),{csstransforms:!0,csstransforms3d:!0,csstransitions:!0,touch:i,prefixed:function(n){return n}}}(this,this.document);window.Modernizr.transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",transition:"transitionend"};window.Modernizr.animEndEventNames={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",transition:"animationend"};define("modernizr",window.Modernizr);define("refreshPdpModules",["jquery","refreshModules","trackInfo"],function(n,t,i){function r(){var r=n("[data-pdp-dependent]"),u=t(r,{pfr:1});u.done(function(){i.client.OTFSpecialSection("PdpReady");define("c.pdpready",1)})}return r});define("refreshSigninModule",["jquery","refreshModules","binding"],function(n,t,i){function r(){var r=n("[data-sso-dependent]");t(r).done(function(){i("flyout","#username").all({eventOrigin:"#username>a,#username>figure"});i("flyout","#settings").all({eventOrigin:"#settings>a"});i.get("marketDropdown","#site-market").teardown();i("marketDropdown","#site-market").all();i("marketDropdown",".marketswitch").all({triggerEvent:"click"});i("marketDropdown",".langtoggle").all({triggerEvent:"click"});require(["meControlBootstrap"],function(n){n()})})}return r}),function(n){function u(){return Math.round(r())}function e(n){var t={hasFired:!1},r={},f=n.send||function(i){var r=n.url,f=r.indexOf("?")>=0?"&":"?",u=new Image;t.onsent&&(u.onload=t.onsent);u.src=encodeURI(r+f+"DATA="+i)},i;t.mark=function(n,i){var o=typeof n,e,f;if(o==="string")for((i===null||i===undefined)&&(i=u()),e=n.split("."),f=r,f[n]=i;e.length;)n=e.shift(),e.length>0?f=f[n]=f[n]||{}:f[n]=i;else if(o==="object"){i=n;for(n in i)i.hasOwnProperty(n)&&t.mark(n,i[n])}return i};t.fire=function(){var i=t.onbeforefire,n;i&&i();this.payload=JSON.stringify(r);r={};n=t.onfire;n&&n();t.hasFired=!0};for(i in n)!t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(t[i]=n[i]);return t}var i="now",f=window,t=f.performance,r;n.timing=t&&t.timing;n.navigation=t&&t.navigation;r=t&&t[i]&&t[i].bind(t)||Date[i]||function(){return(new Date).getTime()};n.now=u;n.Beacon=e}(Perf||(Perf={}));window.pp=new window.Perf.Beacon({}),function(n,t){function r(){var r={},e="navigationStart",u=t[e],n,i,f,o,s;if(u===null||u===undefined||u<0)return r;for(n in t)n!==e&&(i=t[n],i>-1)&&(i>=u&&(i-=u),o=(f=n.lastIndexOf("End"))>0&&1||(f=n.lastIndexOf("Start"))>0&&0,f!==-1?(n=n.substr(0,f),s=r[n]||(r[n]=[-1,-1]),s[o]=i):r[n]=i);return r}if(t){var i=n.onbeforefire;n.onbeforefire=function(){i&&i();n.mark("w3c",r())}}}(pp,Perf.timing);define("w3cTimer",function(){return window.pp});define("guidGen",function(){return function(){function t(t){var i=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(t=="x"?i:i&7|8).toString(16)}var n=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t)}});define("pageInstance",["mediator","guidGen","document"],function(n,t,i){var r,u="updatePageInstance";return n.sub(u,function(){var u,f,e,n;if(r=t().replace(/-/g,""),u=i.body.querySelector("#srchfrm"),u)for(f=u.querySelectorAll("input[name='refig']"),e=f.length,n=0;n<e;n++)f[n].value=r}),{getActivityId:function(){return r},setActivityId:function(n){r=n},eventName:u}});define("animate",["window","jquery","promise"],function(n,t,i){function f(n){return new i(function(t){n.one(r.endEvent,t)})}function e(n){if(n.length==1)return f(n);var r=[];return n.each(function(){r.push(f(t(this)))}),i.join(r)}function u(n,t,f){return n.css(f),new i(function(i){if(n.css(t),r.enabled){var o=setTimeout(function(){i("timeout")},u.timeout);e(n).then(function(){clearTimeout(o);f.transitionProperty&&n.css("transitionProperty","");f.transitionDuration&&n.css("transitionDuration","0s");i()})}else i()})}var r={enabled:!1};return(n.PointerEvent||n.MSPointerEvent)&&(r={enabled:!0,endEvent:"transitionend",timeout:400}),u.timeout=r.timeout,u});define("refreshModules",["jquery","navigation","headData","window","location","promise","requestAnimationFrame","imgSrc","mediator","escape"],function(n,t,i,r,u,f,e,o,s,h){function k(t,i,r,u,f,e){n.ajax({url:t,dataType:"html",data:{pagerequest:JSON.stringify(i)},crossDomain:!0,method:"GET",xhrFields:{withCredentials:!1}}).done(function(t){a(r,t,null,e);u(t);r.each(function(){var t=n(this).data("moduleId");t&&s.pub("moduleRefreshed-"+t)})}).fail(function(){f(arguments)})}function d(t,i,r,u,f,e){var o=!1,h={};!/^https/.test(t)&&i&&i.Regions&&i.Regions.length&&g(i.Regions)&&(t="https"+t.substring(4),o=!0,h={withCredentials:!0});n.ajax({url:t,dataType:"html",data:JSON.stringify(i),method:"POST",contentType:"application/json",crossDomain:o,xhrFields:h}).done(function(t){a(r,t,null,e);u(t);r.each(function(){var t=n(this).data("moduleId");t&&s.pub("moduleRefreshed-"+t)})}).fail(function(){f(arguments)})}function g(n){for(var t=0;t<n.length;t++)if(n[t].type==="meStripe")return!0;return!1}function nt(){var t,n,i;if(c&&c.deferLoadedItems){for(t=c.deferLoadedItems.split(","),n=0,i=t.length;n<i;n++)t[n]&&c.removeItem(t[n]);c.removeItem("deferLoadedItems")}}function tt(t,i){if(!c||!t||!i)return null;var r,u=c.getItem(t);try{r=JSON.parse(u)}catch(f){return null}return r&&r.data&&r.lastUpdatedTime&&n.now()-r.lastUpdatedTime<i?r.data:null}function it(t,i){c&&(c.deferLoadedItems||(c.deferLoadedItems=""),c.deferLoadedItems+=","+t,c.setItem(t,JSON.stringify({lastUpdatedTime:n.now(),data:i})))}function a(t,i,r,u){var f,e,o,s;i&&(f=n("<data>"+n.trim(i)+"<data>"),ut(f),e=f.find("[data-module-id]"),u=u||{},o=u.loadEmptyContent,t.each(function(){var h=n(this),t,i=h.data("moduleId");if(t=e.filter("[data-module-id='"+i+"']"),t.length){var u=n("[data-module-id='"+i+"']"),c=v[i]||u.html(),f=t.html(),l=f===c;(o||f&&f.trim())&&(y||!l)&&(v[i]=f,rt(t,u),t.insertAfter(u.first()),u.remove(),s=!0);!r&&h.data("cache-duration")&&it(i,t[0].outerHTML)}}))}function rt(t,i){n("img[data-src]",t).each(function(){o.force(this,i)||o.go(this)})}function ut(t){var i=t.children("link[rel=stylesheet]");i.length&&i.each(function(){var t=this.getAttribute("href");p[t]||((w||(w=n("head"))).append(this),p[t]=!0)})}var l=i.moduleapi,b=i.cdnmoduleapi,v={},y,p={},w,c;try{c=r.localStorage}catch(ft){c=null}return l?function(e,o,s,c,v,p,w,g,it){var ft,ut,st,rt,et,ot,ht;return(i.signedin||nt(),!e||e.length===0)?new f(function(n){n()}):(e instanceof n||(e=n(e)),typeof o=="string"&&(o=t.getParams(o)),p&&(l=p),(s===undefined||s===null)&&(s=!1),y=v,ft=n.extend(t.getParamsFromUrl(u.href),o),s&&delete ft.ocid,w&&ft.locale&&(ft.locale=w),ut=n.param(ft),st=l.split("?")[0]+(ut?"?"+ut:""),st+=(st.indexOf("?")===-1?"?":"&")+"ou="+h.urlPart(u.href),rt={RequestUri:u.href.split("?")[0]+(ut?"?"+ut:""),ExperienceId:g&&i.kernelXd?i.kernelXd:i.xdid||null,CacheDuration:null},et=null,s&&(et=b.split("?")[0]+(ut?"?"+ut:""),et+=(et.indexOf("?")===-1?"?":"&")+"devicegroup="+i.dg,c!==undefined&&c!==null&&(rt.CacheDuration=c.toString())),it=n.extend({loadEmptyContent:!1},it),ot={},ht=[],e.each(function(){var i=n(this).data("moduleId"),r,u,t;if(i){if(r=n(this).data("cache-duration"),u=r?tt(i,r):null,u){ht.push(u);return}if(t=i.split("|"),t.length==5){var o={key:t[3],type:t[4]},f={key:t[1],type:t[2],Modules:[o]},e=f.key+f.type;ot[e]?ot[e].Modules.push(o):ot[e]=f;rt.Type||(rt.Type=t[0])}}}),ht.length&&a(e,ht.join(""),!0,it),rt.Regions=n.map(ot,function(n){return n}),rt.Regions!=null&&rt.Regions.length>0?new f(function(n,t){s?k(et,rt,e,n,t,it):d(st,rt,e,n,t,it)}):(r.console&&r.console.log&&console.warn("Regions were empty or null"),new f(function(n){n()})))}:(r.console&&console.log("moduleApiEndpoint is missing from header, ajax module update will exit."),n.noop)});define("safeCss",["jquery"],function(n){function r(n){var t={},i="";this.css=function(r,u){if(u)t[r]=i;else if(typeof r=="object")for(var f in r)t[f]=i;return n.css.apply(n,arguments),this};this.hide=function(){throw"not implemented";};this.show=function(){throw"not implemented";};this.toggle=function(){throw"not implemented";};this.reset=function(){n.css(t);t={}}}var t=1,i=".";return{createGroup:function(){function e(t){var h=[],s,e;return t.each(function(){var i=n(this),t=i.data(f);t||(t=o++,i.data(f,t));h.push(t)}),s=h.join(i),e=u[s],e||(e=new r(t),u[s]=e),e}var f="safeCssId"+t++,o=1,u={};return e.reset=function(){for(var n in u)u[n].reset()},e}}});define("touchGestures",["jquery","modernizr","window","deviceGroup"],function(n,t,i,r){function c(n){n.originalEvent&&n.originalEvent.preventManipulation&&n.originalEvent.preventManipulation();n.preventDefault();n.stopPropagation()}function p(n){var t=n.originalEvent,i=t.changedTouches||t.touches;return i||(i=[{identifier:t.pointerId,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,force:t.pressure,target:t.target}]),i&&i.length?i:[n]}function w(n,t){var i=t,r=n.y/n.x;return!isNaN(r)&!(n.y<s.minimumDistanceForMove&&n.x<s.minimumDistanceForMove)&&(i=n.x&&Math.abs(Math.atan(r))<v?h:y),i}function l(n,t){return n&&t?{x:n.x/t,y:n.y/t}:{x:0,y:0}}function e(n,t){return n&&t?{x:n.x-t.x,y:n.y-t.y}:{x:0,y:0}}function o(t,i,r){n.each(f[i],function(n,u){t.bind(u,function(n){r(n,i)})})}function b(t,i){n.fn[t]=function(n,i){return n?this.bind(t,i,n):this.trigger(t,i)};n.event.special[t]={setup:function(t,r){i(n(this),t,r)}}}var s={direction:"all",maximumDistanceForClick:20,maximumTimeForClick:250,distanceBeforeDirectionDetection:10,minimumTimeForSwipe:.02,maximumTimeForThrow:1200,minimumLastThrowSpeed:1,maximumTimeForSwipe:400,minimumDistanceForSwipe:30,directionChangeBuffer:5},v=Math.PI/4,a=n(i),u={eventName:"gesture",start:"start",move:"move",stop:"stop",cancel:"cancel",tap:"tap",swipeUp:"swipeUp",swipeRight:"swipeRight",swipeDown:"swipeDown",swipeLeft:"swipeLeft",throwUp:"throwUp",throwRight:"throwRight",throwDown:"throwDown",throwLeft:"throwLeft"},h="horizontal",y="vertical",f={pointer:{start:["pointerdown"],stop:["pointerup"],move:["pointermove"],cancel:["pointercancel","pointerleave"],touchSupported:!0,type:"pointer"},mspointer:{start:["MSPointerDown"],stop:["MSPointerUp"],move:["MSPointerMove"],cancel:["MSPointerCancel","MSPointerLeave"],touchSupported:!0,type:"mspointer"},touch:{start:["touchstart","touchenter"],stop:["touchend","touchleave"],move:["touchmove"],cancel:["touchcancel"],touchSupported:!0,type:"touch"},mouse:{start:["mousedown"],stop:["mouseup"],move:["mousemove"],cancel:["mouseleave"],touchSupported:!1,type:"mouse"}};return f=!t.touch||r.isPc&&typeof InstallTrigger!="undefined"?navigator.pointerEnabled?f.pointer:navigator.msPointerEnabled?f.mspointer:f.mouse:f.touch,b(u.eventName,function(t,i){function it(){tt=r=v=k=d=g=0}function nt(t,i){if(f.type=="mouse"||(f.type=="pointer"||f.type=="mspointer")&&t.originalEvent.pointerType=="mouse")b=!0;else{b=!1;var e=p(t);(tt||d&&r.totalDistance>=y.maximumDistanceForClick)&&(tt=!0,c(t));(r||i==u.start)&&n.each(e,function(n,r){rt(n,r,t,i)})}}function rt(i,f,o,s){var p,rt,ot,st,tt;if(ft(f),p={touchType:s,coord:{x:f.pageX,y:f.pageY},screenCoord:{x:f.screenX,y:f.screenY},scrollCoord:{x:a.scrollLeft(),y:a.scrollTop()},count:v?v.count+1:0,time:(new Date).getTime()},s==u.start&&(it(),b=!1,r=n.extend({totalDistance:0},p),v=n.extend({},p)),p.delta=e(p.coord,v.coord),p.screenDelta=e(p.screenCoord,v.screenCoord),p.duration=p.time-v.time,p.speed=l(p.delta,v.duration),r.delta=e(p.coord,r.coord),r.screenDelta=e(p.screenCoord,r.screenCoord),r.totalDistance+=Math.sqrt(Math.pow(p.delta.x,2)+Math.pow(p.delta.y,2)),rt=y.direction==h,v&&v.speed&&(ot=rt?p.delta.x:p.delta.y,st=rt?v.delta.x:v.delta.y,ot*st<0&&(r.movecoord=p.coord,r.movetime=p.time)),r.movecoord&&(r.movechange=e(p.coord,r.movecoord),r.moveduration=p.time-r.movetime,r.movespeed=l(r.movechange,r.moveduration)),r.duration=p.time-r.time,r.speed=l(r.delta,r.duration),k=w(r.delta,y.direction),!g&&r.totalDistance>y.distanceBeforeDirectionDetection&&y.direction!="all"&&!d&&(r.direction=k,y.direction!=k?(g=!0,p.touchType=u.cancel):(c(o),d=!0)),p.touchType==u.stop){var ut=(r.movechange||r.delta).x,et=(r.movechange||r.delta).y,ht=r.moveduration||r.duration,nt=k==h,lt=nt?Math.abs(r.speed.x):Math.abs(r.speed.y),at=nt?Math.abs(p.speed.x):Math.abs(p.speed.y),vt=nt?Math.abs(v.speed.x):Math.abs(v.speed.y),ct=Math.max((at+vt)/2,lt);r.duration<y.maximumTimeForClick&&r.totalDistance<y.maximumDistanceForClick?(b=!0,p.touchType=u.tap):(p.distance=Math.abs(nt?ut:et),ct>y.minimumTimeForSwipe&&(ht<y.maximumTimeForSwipe?p.touchType=nt?ut>0?u.swipeRight:u.swipeLeft:et>0?u.swipeDown:u.swipeUp:ht<y.maximumTimeForThrow&&ct>y.minimumLastThrowSpeed&&(p.touchType=nt?ut>0?u.throwRight:u.throwLeft:et>0?u.throwDown:u.throwUp)))}(v.touchType!=p.touchType||v.coord.x!=p.coord.x||v.coord.y!=p.coord.y)&&(g&&p.touchType!=u.cancel&&p.touchType!=u.tap||(tt=n.Event(u.eventName,{current:p,last:v,start:r,direction:k,originalEvent:o,allowClick:b}),t.trigger(tt),b=tt.allowClick!==!1,tt.isDefaultPrevented()&&o.preventDefault(),tt.isPropagationStopped()&&o.stopPropagation(),tt.isImmediatePropagationStopped()&&o.stopImmediatePropagation()));s==u.stop||s==u.cancel?it():v=p}function ut(n){return b||c(n),b}function ft(n){n.pageX||n.originalEvent&&(n.pageX=n.originalEvent.pageX,n.pageY=n.originalEvent.pageY,n.screenX=n.originalEvent.screenX,n.screenY=n.originalEvent.screenY,n.pointerId=n.originalEvent.pointerId,n.identifier=n.originalEvent.identifier)}var r,v,k,d,tt,g,b=!0,y=n.extend({},s,i);it();t.addClass("unselectable").find("A, [onclick]").not(".mobilead").bind("click",ut);o(t,u.start,nt);o(t,u.move,nt);o(t,u.stop,nt);o(t,u.cancel,nt)}),{types:u,settings:f}});define("touchDataManager",["jquery"],function(n){function o(){var c=.85,l=.1,h,o,u,r,n;this.reset=function(t){h=t;o=+new Date;u=o;r=h;n=0};this.input=function(t){var e=+new Date,i=e-u,f;i=i>0?i:1;u=e;r+=n*i;f=t-r;r+=c*f;n+=l*f/i};this.getPosition=function(){return r};this.getVelocity=function(){return n};this.getDelta=function(){return r-h};this.getDuration=function(){return 220};this.getTouchDuration=function(){return u-o};this.getDrift=function(t,i){var e=this.getDelta(),l,s;e<0&&(e=-e);var h=1-e/t,c=.2,r=t*(h>c?h:c),f=n*150,a=u-o<300&&(n>.3||n<-.3);return a?(l=i,s=l-e,f=(n>0?1:-1)*(s<r?s:r)):f>r?f=r:f<-r&&(f=-r),f};this.getTimingFunction=function(){return"cubic-bezier(0,"+e(n)+",.58,1)"};this.ensureJQueryEase=function(){var r=e(n);r=Math.round(r/f)*f;i[r]||(i[r]=s(r));t=i[r]};this.reset(0)}function e(n){var t=n>0?n:-n;return t*.3}function s(n){for(var f=[],t,e,o,i,u=r.length;u--;)t=r[u],i=1-t,o=i*t*t*.58+t*t*t,e=i*i*t*n+i*t*t+t*t*t,f[u]={x:e,t:o};return f}for(var i={},f=.1,t,r=[],u=0;u<=1;u+=.01)r.push(u);return n.easing.cubicBezier=function(n){if(n==1)return 1;for(var r,o,u,s,i,f=t.length-1,e=0;f--&&!e;)i=t[f],r=i.t,r<=n&&(u=i.x,i=t[f+1],o=i.t,s=i.x,e=(n-r)/(o-r)*(s-u)+u);return e},n.easing.cubicBezierQuint=function(n){return 1-Math.pow(1-n,5)},o});define("carouselManager",function(){return function(){var n=[],t=0;this.load=function(t){n=t};this.getItem=function(i){if(!n.length)return null;var r=(t+i)%n.length;return n[r<0?r+n.length:r]};this.setIndex=function(n){t=n};this.changeIndex=function(n){t+=n}}});globalLeft="left";define("dir.tokens",{ltr:globalLeft=="left",left:"left",paddingLeft:"padding-left",paddingRight:"padding-right",marginLeft:"margin-left",marginRight:"margin-right"});define("socialPlugins.tokens",{twitterLang:"en",facebookLang:"en_US",loadDelay:"1000"});define("truncate.tokens",{truncateEllipsis:"…"});define("webApp.tokens",{appVersion:"2.0.6120.696"});define("flyout",["jquery","jqBehavior","document","mediator"],function(n,t,i,r){function u(n){n.preventDefault()}function e(t,u){function w(n){var t=e[0],i;d(n);t.el.hasClass(t.cls)?(i=c?c[0]:!1,u.allowToggleOff&&l(n,o),i!==n.target&&f.filter(n.target).length===1&&p(n,s)):p(n,s);r.subChannel("closeFlyoutFinal","flyoutBehavior",o)}function b(i){var r=t.find(u.contentEventOrigin),e;r.length||(r=t);e=u.skipContentOriginEventTargetCheck?!(n.contains(r[0],i.target)===!0||f[0]===i.target):!(r[0]===i.target||n.contains(r[0],i.target)===!0||f[0]===i.target);e&&(u.disableEventBubbling&&i.preventDefault(),l(i,o))}function o(t,i){for(var u,r=0;r<e.length;r++)u=e[r],u.el.removeClass(u.cls).attr("aria-hidden",!0);v.off(y,b);c=!1;n.isFunction(i)&&i!==s&&i()}function k(n){t.find("."+u.toggleClass).length&&l(n,o)}function s(t,i){var r,u;for(c=n(t.target),r=0;r<e.length;r++)u=e[r],u.el.addClass(u.cls).attr("aria-hidden",!1);v.on(y,b);n.isFunction(i)&&i!==s&&i()}var v=n(i),f=t.find(u.eventOrigin),a;f.length||(f=n(u.eventOrigin));var y=u.outsideEvent,h=u.toggleTargets,d=u.eventPreventDefaultDelegate,c=!1,p=n.isFunction(u.openFlyoutDelegate)?u.openFlyoutDelegate:s,l=n.isFunction(u.closeFlyoutDelegate)?u.closeFlyoutDelegate:o,e=[];if(typeof h!="object")h===!0&&e.push({el:t,cls:"show"});else for(a in h)e.push({el:t.find(a),cls:h[a]});return{setup:function(){f.on(u.triggerEvent,w)},update:function(){k()},teardown:function(){k();f.off(u.triggerEvent,w)}}}var f={allowToggleOff:!0,eventOrigin:".flyout > button",toggleTargets:!0,triggerEvent:"click",outsideEvent:"mousedown touchstart scroll",openFlyoutDelegate:!1,eventPreventDefaultDelegate:u,skipContentOriginEventTargetCheck:!1,closeFlyoutDelegate:!1};return t(e,f)});define("marketDropdown",["jquery","jqBehavior","window","headData","track","location"],function(n,t,i,r,u,f){function o(t,i){function o(){t.on(i.triggerEvent,r)}function r(){var r,n,o;t[0].tagName=="SELECT"?(o=t.find("option:selected"),r=o.data("mkt"),n=o.data("mktUrl")):(r=i.mkt,n=i.mktUrl);n+=f.search;n&&r&&(u.trackEvent({type:"click_nonnav",target:t},"","",n),h(e,n,r))}function s(){t.off(i.triggerEvent,r)}function h(t,i,r){var u=JSON.stringify({Market:r,SuppressPrompt:!0}),e=[{Path:"MSNHomePage/MarketConfiguration",Operation:"Update",Payload:u}];n.ajax({url:t,dataType:"html",data:JSON.stringify(e),method:"POST",contentType:"application/json"}).done(function(){f.href=i}).fail(function(){f.href=i})}return{setup:o,teardown:s}}var e=r.pdpdeltaupdateapi;return t(o,{triggerEvent:"change"})});define("navArrowScroll",["jquery","jqBehavior","modernizr","device","window","dir.tokens","touchGestures","perfMarker","remToPixel","requestAnimationFrame"],function(n,t,i,r,u,f,e,o,s){function v(t,i){function dt(){ut.on("click",nt);ft.on("click",w);si(r);ii();p();oi()}function gt(){ut.off("click",nt);ft.off("click",w);p()}function ni(){b=0;l=0;ct(0);p()}function ht(n){lt();var t=ti(n);ct(t)}function ct(n){c?(n=h.replace("{0}",n),r.css("transform",n)):r.css(h,n)}function lt(){if(tt=o.width(),rt)v=r[0].scrollWidth;else{v=0;for(var n=0;n<r.length;n++)v+=r[n].scrollWidth;v+=kt}y=r.position().left-b}function ti(n){var t=0,i;return n==1?l>0&&(l=l-1,t=a[l].getAttribute(it)):l<a.length-1&&(t=a[l].getAttribute(it),l==0&&(t-=wt),l=l+1),i=f.ltr?n:-n,ot=l==0?0:y+i*t}function ii(){for(var t,n=0,i=a.length;n<i;n++)t=a.eq(n),a[n].setAttribute(it,t.outerWidth(!0)),t.hasClass(pt)&&(st=n)}function at(){f.ltr||(b=r.position().left,y=r.position().left-b)}function p(){if(lt(),v>tt){rt=!0;ri();var n=f.ltr?y:-y,t=parseInt(r.css(f.marginLeft)),i=tt-(v+n);l==0?(o.addClass(d).removeClass(k),at()):i>=t?o.addClass(k).removeClass(d):o.addClass(et)}else rt=!1,o.removeClass(et),ui(),at()}function ri(){for(var t=r[1].children.length,n=0;n<t;n++)r[1].children[0].id="mylink_"+n,r[0].appendChild(r[1].children[0])}function ui(){for(var t=r[0].children.length,n=0;n<t;n++)!r[0].children["mylink_"+n]||r[1].appendChild(r[0].children["mylink_"+n])}function nt(){ht(1);p()}function w(){ht(-1);p()}function fi(){f.ltr?w():nt()}function ei(){f.ltr?nt():w()}function vt(){return f.ltr&&o.hasClass(d)||!f.ltr&&o.hasClass(k)}function yt(){return f.ltr&&o.hasClass(k)||!f.ltr&&o.hasClass(d)}function oi(){for(var n=0;n<st;n++)(f.ltr&&vt()||!f.ltr&&yt())&&w()}function si(n){e.settings.touchSupported&&n.gesture(hi,{direction:"horizontal"})}function hi(t){if(t.direction)switch(t.current.touchType){case e.types.throwRight:case e.types.swipeRight:yt()&&ei();break;case e.types.throwLeft:case e.types.swipeLeft:vt()&&fi();break;case e.types.stop:case e.types.tap:var i=t.originalEvent.originalEvent,r=i.target,f=document.createEvent("MouseEvent");f.initMouseEvent("click",!1,!1,u,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,null);r.tagName!=="A"&&(r=n(r).parentsUntil("LI","A")[0]);r&&r.dispatchEvent(f)}}var o=t,r=o.children(i.navSelector),a=r.children(),ut=o.find("button").first(),ft=o.find("button").last(),b=r.position().left,l=0,tt=0,v=0,k="show-left",d="show-right",et="show-left show-right",pt="current",ot=0,y=0,it="data-width",st=0,rt=!1,wt=s(1.2),g=o.children(".mylink"),bt=f.ltr?r[g.index()-1].offsetLeft:o.width()-(r[g.index()-1].offsetLeft+r[g.index()-1].offsetWidth),kt=g.children().length!=0&&r!=null?bt-r.first().width():0;return{setup:dt,teardown:gt,update:ni}}var h="left",c=!1,a,l;return i.csstransforms&&r.isCapable("AllowTransform2d")&&(h="translateX({0}px)",c=!0),a=n(u),l={navSelector:"ul",navItemSelector:"ul > li"},t(v,l)});define("scrollStop",["jquery","jqBehavior","touchGestures"],function(n,t,i){function f(t,f){function o(){e===!1?e=!0:clearTimeout(s);s=setTimeout(a,l)}function h(){e&&o()}function a(){e=!1;t.trigger("scrollStop")}var c=n.extend({},u,f),l=c.delay,e,s;return{setup:function(){e=!1;t.on("scroll",o);if(i.settings.touchSupported)t.on(r,h)},teardown:function(){t.off(r,h);t.off("scroll",o)}}}var u={delay:100},e=i.settings.start.join(" "),r=i.settings.move.join(" ");return t(f,{})});define("searchBing",["jquery","jqBehavior","track","device"],function(n,t,i,r){return r.capability("SupportFixedPosition")!=="false"&&r.capability("SupportFixedPosition")||n("body>.head").addClass("unfixposition"),t(function(t){function f(){var n=t.attr("action"),r=t.attr("target");i.trackEvent({type:"submit",target:t[0]},null,u);t.attr("action",u).attr("target","_blank").submit().attr("action",n).attr("target",r)}var r=n("button[name='bingSearch']",t),e=n("body>.head"),u=t.data("bing-action-uri");return{setup:function(){r.on("click",f)},teardown:function(){r.off("click",f)}}})});define("searchTargetSelf",["jqBehavior"],function(n){function u(n){return i=n.attr(t),{setup:function(){n.attr(t,r)},teardown:function(){n.attr(t,i)}}}var t="target",r="_self",i;return n(u)});define("socialPlugins",["jquery","jqBehavior","format","escape","socialPlugins.tokens"],function(n,t,i,r,u){function o(n,t){function e(){if(t.facebookLikeUrl&&t.facebookButtonWidth){var e="//www.facebook.com/plugins/like.php?locale="+r.urlPart(u.facebookLang)+"&href="+r.urlPart(t.facebookLikeUrl)+"&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21";n.find(t.facebookSelector).append(i(f,e,t.facebookButtonWidth))}}function o(){var e,o;t.twitterFollowScreenName&&t.twitterButtonWidth&&(e="//platform.twitter.com/widgets/follow_button.html?show_screen_name="+t.twitterShowScreenName+"&screen_name="+r.urlPart(t.twitterFollowScreenName)+"&show_count=false&lang="+r.urlPart(u.twitterLang),n.find(t.twitterSelector).append(i(f,e,t.twitterButtonWidth)),t.twitterShowScreenName&&(o=t.twitterButtonWidth,typeof InstallTrigger!="undefined"&&(o=parseFloat(t.twitterButtonWidth)+.3+"rem"),n.find(t.twitterBreakingNewsSelector).append(i(f,e,o))))}window.setTimeout(function(){e();o()},t.delay)}var e={facebookSelector:"#fbcount",twitterSelector:"#twcount",twitterBreakingNewsSelector:"#bnewstwcount",delay:u.loadDelay},f='<iframe src="{0}" scrolling="no" frameborder="0" allowTransparency="true" allowTransparency="true" style="width:{1};"><\/iframe>';return t(o,e)});define("truncate",["jquery","jqBehavior","mediator","requestAnimationFrame","measure","format","truncate.tokens","perfMarker"],function(n,t,i,r,u,f,e){function l(t,e){function st(){var i,f,e,o,r;if(it){for(it=!1,i=l;i--;){for(f="",e=0,r=t[i].firstChild;r!=null;)r.nodeType==1?(++e,o=r):r.nodeType==3&&(f+=r.nodeValue),r=r.nextSibling;e==1&&n.trim(f)==""&&(p[i]=o)}for(i=l;i--;)w[i]=u(t[i]),v[i]=(p[i]||t[i]).innerHTML,nt[i]=t[i].title}else ot();for(i=l;i--;)rt(i),b[i]=v[i],y[i]=!0;ut()}function ht(){for(var n=l;n--;)rt(n),y[n]=t[n].scrollHeight>a[n];ut()}function rt(n){var i=t[n];if(i&&i.parentNode){var r=w[n],o=i.getAttribute("data-truncate-lines")||e.truncateLines,u=parseFloat(r("paddingTop")),s=parseFloat(r("paddingBottom")),h=r("lineHeight"),f=parseFloat(r("maxHeight"));o?(a[n]=parseFloat(h)*o+s,a[n]>f&&(a[n]=f),a[n]+=u):a[n]=(f||i.clientHeight)+u;a[n]=a[n]+.5|0;tt[n]=i.clientWidth;g[n]=u+2*parseFloat(h)+s+.5|0}else w[n]=p[n]=null,y[n]=d[n]=!1}function ut(){for(var f=!0,e=1e3,i,r,u;f&&--e;){for(f=!1,i=l;i--;)if(y[i])if(d[i]=t[i].scrollHeight>a[i],d[i]){if(k[i]=!0,t[i].scrollHeight<g[i]){ft(i);continue}r=b[i];r.slice(-s)==o&&(r=r.slice(0,-s));u=c.exec(r);u&&u[0]!=r?(f=!0,t[i].scrollHeight>a[i]*2&&(r=r.substr(0,r.length/2)),b[i]=r.substr(0,r.length-u[0].length)+o):ft(i)}else y[i]=!1;for(i=l;i--;)d[i]&&((p[i]||t[i]).innerHTML=b[i])}for(i=l;i--;)k[i]&&(t[i].title=n.trim(n("<span>"+v[i]+"<\/span>").text()))}function ft(n){var t=tt[n]-parseInt(w[n]("paddingLeft"))-parseInt(w[n]("paddingRight"));b[n]=t>0?f(h,v[n],t+"px"):v[n];y[n]=!1}function et(){r(st)}function ot(){for(var n=l;n--;)k[n]&&((p[n]||t[n]).innerHTML=v[n],t[n].title=nt[n],k[n]=!1)}var l=t.length,p=new Array(l),w=new Array(l),g=new Array(l),v=new Array(l),nt=new Array(l),tt=new Array(l),b=new Array(l),a=new Array(l),y=new Array(l),k=new Array(l),d=new Array(l),it=!0;return i.sub("truncate",function(){r(ht)}),{setup:et,teardown:ot,update:et}}var h='<span style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:{1}">{0}<\/span>',o=e.truncateEllipsis,s=o.length,c=/(?:\s|[,!\.\?:;])*([\u3000-\u30ff\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[^\s\u3000-\u30ff\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]+)(?:\s|[,!\.\?:;])*$/;return t(l,null,{each:1})});define("twitterComments",["jquery","jqBehavior","window"],function(n,t,i){function r(t){function r(t){t.preventDefault();i.open(n(this).attr("href"),"Twitter","status=0,toolbar=0,location=0,resizable=1,scrollbars=1,left="+(i.screen.width-250)/2+",top="+(i.screen.height-350)/2+",width=500,height=450")}return{setup:function(){t.find(".twitteractions > a").on("click",r)},teardown:function(){t.find(".twitteractions > a").off("click")}}}return t(r)});require(["window","jquery","device","mediator"],function(n,t,i,r){var f,u=t("meta[name=viewport]"),e=i.capability("Viewport_Landscape"),s=u.attr("content"),o=function(){n.innerHeight>n.innerWidth?u.attr("content",s):u.attr("content",e);r.pubChannel("update","mediaQuery")};u.length&&e&&(o(),t(n).resize(function(){clearTimeout(f);f=setTimeout(o,50)}))});require(["jquery","navigation","headData","webApp.tokens"],function(n,t,i,r){var u=/(\?|&)ver=[\d\.]+(&|$)/gi;n.ajaxPrefilter(function(n){var f;if(n=n||{},f=n.url,i.ssl===!0&&f.substr(0,7).toLowerCase()=="http://"&&(f="https://"+f.substr(7)),!n.notVersioning&&f&&t.isLocal(f)&&!f.match(u)){var e=f.split("#"),o=e[0],s=e[1]?"#"+e[1]:"";n.url=o+(o.indexOf("?")>-1?"&":"?")+"ver="+r.appVersion+s}})});require(["jquery","getCookie","setCookie","navigation","location","c.onload"],function(n,t,i,r,u){var f="ocid",e="hp",o="homepage",s="sky2",h=15;(function(){var c="",v=r.getParamsFromUrl(u.href);v&&v[f]&&(c=v[f].toLowerCase());var y=(c.indexOf(e)!=-1||c.indexOf(o)!=-1)&&c.indexOf(s)===-1,a=t(f),l=n("#user-profile").data("dhp_cookie_days");l=l!=undefined?l:h;y&&!a?i(f,c,l,i.topDomain,"/"):l>0&&!y&&a&&(a.indexOf(e)!=-1||a.indexOf(o)!=-1)&&i(f,"",-1,i.topDomain,"/")})()});define("trackingHelper.tokens",{tradeDoublerMarketId:"2811279",tradeDoublerProgramId:"261853"});define("ajax",[],function(){function n(n){if(!n||!n.url){n.error&&n.error("Missing Url. Invalid parameters");return}var t=new XMLHttpRequest;t.onreadystatechange=function(){if(t.readyState==4){if(t.status!=200&&n.error){n.error(t.status,t.statusText);return}n.success&&n.success(t.response)}};t.open("GET",n.url);n.dataType&&t.setRequestHeader("Content-Type",n.dataType);n.timeout>0&&(t.timeout=n.timeout);n.ontimeout&&(t.ontimeout=function(){n.ontimeout("Request timeout")});t.send()}return{get:n}});define("msnNativeAds",["jquery","jqBehavior","pageInstance","headData","getCookie","window","afire","mediator"],function(n,t,i,r,u,f,e,o){function c(t,i){function v(n){var t=n?n.elem:null;y(t)&&(r(),setTimeout(function(){o.unsub(h,v)},200))}function y(i){return i&&i.length&&n.contains(i[0],t[0])}function p(){var n=a.find("li").first();return y(n)}function r(){try{if(l)return;e&&s(e);c&&s(c);l=!0}catch(n){f.console&&f.console.log("error sending native trackers"+n.message)}}var u=i.ct,e=i.impr,c=i.eimpr,l=!1,a=t.parents(".ip");u&&t.click(function(){s(u)});a.length?p()?r():o.sub(h,v):r()}function s(n){e(n)}var h="infopane_navigation";return t(c)});deferredCanary="c.deferred";deferredCanary="c.postdeferred";require(["document",deferredCanary],function(){require({js:"//secure.adnxs.com/seg?add=6243298&t=1"})});require(["binding","c.dom"],function(n){require(["c.deferred"],function(){require(["jquery","imgSrc"],function(n,t){n("#user-profile img").each(function(){t.go(this)})});n("twitterComments","#breakingnews").all();n("marketDropdown","#site-market").all();n("marketDropdown",".marketswitch").all({triggerEvent:"click"});n("marketDropdown",".langtoggle").all({triggerEvent:"click"});require(["window","c.onload"],function(t){t.setTimeout(function(){n("socialPlugins","#social-plugins").all()},8e3);n("socialPlugins","#bnewssocial-plugins").all()})});n("poll",".pollcontainer").all();n("flyout",".megamenu").all({eventOrigin:"#header-common>h1>.vertical",skipContentOriginEventTargetCheck:!0});n("flyout","#username").all({eventOrigin:"#username>a,#username>figure"});n("flyout","#settings").all({eventOrigin:"#settings>a"});n("flyout","#language-toggle").view(n.views.SIZE34COLUMN,{eventOrigin:"#language-toggle>button"});n("searchBing","#srchfrm").all();n("navArrowScroll",".navinner").all();require(["c.onload"],function(){n("msnNativeAds","a.nativead").all()})});require(["sso","document","c.deferred"],function(n,t){n();var i=t.getElementsByTagName("head")[0];i&&i.getAttribute("data-pdp-stale")&&define("c.pdp",1)});define("searchHistory.tokens",{Header:"Recent Searches:",ManageHistory:"Manage History"});define("searchHistory",["jquery","jqBehavior","format","pageInstance","trackInfo","viewAware","searchHistory.tokens"],function(n,t,i,r,u,f,e){function s(t,i){function a(){f.currentView()&f.views.SIZE4COLUMN?(o+=i.fourColAdj,s++):(o=i.maxLength,s=i.maxResults)}function h(){n.ajax({url:i.shUrl,dataType:"text",cache:!1,xhrFields:{withCredentials:!0},success:function(n){v(n)}})}function v(t){require(["c.deferred"],function(){var w,o,f,b,h,k,c,l,v;try{if(t&&t.length>2&&(a(),w={},w=eval("("+t+")"),o=w.UserHistory,o&&o.QuerySets&&(f=y(o.QuerySets),f&&(f=f.slice(0,s)),b=f.length,f&&b))){for(h=[],k=r.getActivityId()||u.sitePage.requestId,c=0;c<b;c++)l=f[c],l&&l.Text&&h.push(p(l,k));for(e.empty().append(n("<li>"+i.shLbl+"<\/li>")),v=0;v<h.length;v++)e.append(h[v]);e.append(n('<li class="clrsh">').append(n("<a>").text(i.manageHistory.manageText).attr({href:i.manageHistory.manageURL,title:i.manageHistory.manageText})));u.client.OTFSpecialSection("BingSeachHistory")}}catch(d){}})}function y(n){var r=null,t;if(!n)return r;for(t=0;t<n.length;t++)n[t].Type==i.queryType&&(r=n[t].Queries);return r}function p(t,r){var u=i.bingUrl+t.Url.replace(/FORM=[O|o]\d*MSN\d*/gi,"FORM={0}".format(c)),f,e;return u+="&refig="+r,u+="&httpsmsn=1",f=n("<a>").attr("href",u).text(t.Text).attr({title:t.Text,target:i.target}),e=t.Text.length<o?"<li>":'<li class="shrink">',n(e).append(f)}var c=i.shfc,o=i.maxLength,s=i.maxResults,l=n('<ul id="opensh"><\/ul>'),e;return t.after(l),e=n("#opensh"),h(),{update:function(){h()}}}var o={shUrl:"//www.bing.com/msnhomepagehistory.aspx",bingUrl:"https://www.bing.com",maxResults:4,queryType:"recent",maxLength:9,fourColAdj:8,target:"_blank",shLbl:e.Header,manageHistory:{manageText:e.ManageHistory,manageURL:"https://www.bing.com/profile/history/delete?rp=%2f&FORM=O2LH"},shfc:"PRHPHI"};return t(s,o)});require(["binding","c.deferred"],function(n){n("searchHistory","#srchfrm").view(n.views.SIZE34COLUMN)});define("touchEvents",["jquery","modernizr","window"],function(n,t,i){function p(){return"ontouchstart"in i}function a(n){return f(n),!1}function f(n){n.originalEvent&&n.originalEvent.preventManipulation&&n.originalEvent.preventManipulation();n.preventDefault();n.stopPropagation()}function w(n){var t=n.originalEvent.changedTouches||n.originalEvent.touches;return t&&t.length?t:[n]}function b(n){return n.x&&Math.abs(Math.atan(n.y/n.x))<y?s:l}function h(n,t){return n&&t?{x:n.x/t,y:n.y/t}:{x:0,y:0}}function e(n,t){return n&&t?{x:n.x-t.x,y:n.y-t.y}:{x:0,y:0}}function o(t,i,r){n.each(u[i],function(n,u){t.bind(u,function(n){r(n,i)})})}function k(t,i){n.fn[t]=function(n,i){return n?this.bind(t,i,n):this.trigger(t,i)};n.event.special[t]={setup:function(t,r){i(n(this),t,r)}}}var v={direction:"all",preventDefaultOnStart:!0,maximumDistanceForClick:20,maximumTimeForClick:300,distanceBeforeDirectionDetection:0,maximumTimeForThrow:1200,minimumLastThrowSpeed:1,maximumTimeForSwipe:400,minimumDistanceForSwipe:30,directionChangeBuffer:5},y=Math.PI/4,c=n(i),r={touch:"touch",start:"start",move:"move",stop:"stop",cancel:"cancel",tap:"tap",swipeUp:"swipeUp",swipeRight:"swipeRight",swipeDown:"swipeDown",swipeLeft:"swipeLeft",throwUp:"throwUp",throwRight:"throwRight",throwDown:"throwDown",throwLeft:"throwLeft"},s="horizontal",l="vertical",u={touch:{start:["touchstart","touchenter"],stop:["touchend","touchleave"],move:["touchmove"],cancel:["touchcancel"],preventDefaultOnStart:!1,mimickBrowserScroll:!1},mouse:{start:["mousedown"],stop:["mouseup"],move:["mousemove"],cancel:["mouseleave"],preventDefaultOnStart:!1,mimickBrowserScroll:!1}};return n.each({touch:t.touch||p(),mouse:!0},function(n,t){return t&&(u=u[n]),!t}),k(r.touch,function(t,y){function ft(){ut=p=k=g=it=nt=0}function rt(o,a){var v=w(o);u.preventDefaultOnStart&&f(o);(ut||it&&p.totalDistance>=d.maximumDistanceForClick)&&(ut=!0,f(o));(p||a==r.start)&&n.each(v,function(v,y){var w,ot,ct,lt,ut;if(et(y),w={touchType:a,coord:{x:y.pageX,y:y.pageY},screenCoord:{x:y.screenX,y:y.screenY},scrollCoord:{x:c.scrollLeft(),y:c.scrollTop()},count:k?k.count+1:0,time:(new Date).getTime()},a==r.start&&(ft(),tt=!1,p=n.extend({totalDistance:0},w),k=n.extend({},w)),w.delta=e(w.coord,k.coord),w.screenDelta=e(w.screenCoord,k.screenCoord),w.duration=w.time-k.time,w.speed=h(w.delta,k.duration),p.delta=e(w.coord,p.coord),p.screenDelta=e(w.screenCoord,p.screenCoord),p.totalDistance+=Math.sqrt(Math.pow(w.delta.x,2)+Math.pow(w.delta.y,2)),ot=d.direction==s,k&&k.speed&&(ct=ot?w.delta.x:w.delta.y,lt=ot?k.delta.x:k.delta.y,ct*lt<0&&(p.movecoord=w.coord,p.movetime=w.time)),p.movecoord&&(p.movechange=e(w.coord,p.movecoord),p.moveduration=w.time-p.movetime,p.movespeed=h(p.movechange,p.moveduration)),p.duration=w.time-p.time,p.speed=h(p.delta,p.duration),g=b(p.delta),p.totalDistance>d.distanceBeforeDirectionDetection&&d.direction!="all"&&!it&&!nt&&(p.direction=g,d.direction!=g?(nt=!0,w.touchType=r.cancel):p.totalDistance>d.maximumDistanceForClick&&(it=!0,f(o))),w.touchType==r.stop){var st=(p.movechange||p.delta).x,ht=(p.movechange||p.delta).y,at=p.moveduration||p.duration,rt=g==s,yt=rt?Math.abs(p.speed.x):Math.abs(p.speed.y),pt=rt?Math.abs(w.speed.x):Math.abs(w.speed.y),wt=rt?Math.abs(k.speed.x):Math.abs(k.speed.y),vt=Math.max((pt+wt)/2,yt);p.duration<d.maximumTimeForClick&&p.totalDistance<d.maximumDistanceForClick?(tt=!0,w.touchType=r.tap):(w.distance=Math.abs(rt?st:ht),vt>.3&&(at<d.maximumTimeForSwipe?w.touchType=rt?st>0?r.swipeRight:r.swipeLeft:ht>0?r.swipeDown:r.swipeUp:at<d.maximumTimeForThrow&&vt>d.minimumLastThrowSpeed&&(w.touchType=rt?st>0?r.throwRight:r.throwLeft:ht>0?r.throwDown:r.throwUp)))}(k.touchType!=w.touchType||k.coord.x!=w.coord.x||k.coord.y!=w.coord.y)&&(nt&&w.touchType!=r.cancel||(ut=n.Event(r.touch,{current:w,last:k,start:p,direction:g,originalEvent:o}),t.trigger(ut),tt=ut.allowClick!==!1,ut.isDefaultPrevented()&&o.preventDefault(),ut.isPropagationStopped()&&o.stopPropagation(),ut.isImmediatePropagationStopped()&&o.stopImmediatePropagation()));nt&&u.mimickBrowserScroll&&g==l&&(p.scrollCoord.y-=w.screenDelta.y,n(i).scrollTop(p.scrollCoord.y));a==r.stop||a==r.cancel?ft():k=w})}function et(n){n.pageX||n.originalEvent&&(n.pageX=n.originalEvent.pageX,n.pageY=n.originalEvent.pageY,n.screenX=n.originalEvent.screenX,n.screenY=n.originalEvent.screenY,n.pointerId=n.originalEvent.pointerId,n.identifier=n.originalEvent.identifier)}var p,k,g,it,ut,nt,tt=!1,d=n.extend({},v,y);ft();t.find("*").addBack().each(function(){n(this).attr("draggable",!1).attr("selectable",!1).bind("ondragstart",a).bind("drag",a).not(".mobilead").not(".ip,.ip *").bind("click",function(n){return tt||f(n),tt});this.onselectstart!==undefined?this.onselectstart=function(){return!1}:this.style.MozUserSelect!==undefined&&(this.style.MozUserSelect="none")});o(t,r.start,rt);o(t,r.move,rt);o(t,r.stop,rt);o(t,r.cancel,rt)}),r});define("jqueryPlus",["jquery","modernizr","device","screen","requestAnimationFrame","deviceGroup"],function(n,t,i,r,u,f){function b(n){var t=n.match(a);return t&&t.length>2?t[2].split(","):[]}function v(n){var t=b(n),i=t.length;return parseFloat(i==6?t[4]:i==16?t[12]:0)}function y(n){return parseFloat(n.css("font-size"))||12}function k(){var u,t,i,n,r;for(u in o){t=o[u];for(i in t)i.indexOf("$")!=0&&(n=t[i],n&&(r=(new Date).getTime()-n.animation.startTime,r>=n.animation.options.duration?w(t,n):d(t,n,r)))}p()}function p(){s.length?(l=!0,u(function(){k()})):l=!1}function d(t,i,r){var h=i.animation.options.easing||"swing",e=n.easing[h],o=i.animation.options.step,u,f,s;o&&(i=o(i));u=i.startValue;e&&(f=i.animation.options.duration,s=e(r/f,r,0,1,f),u=i.startValue+s*(i.endValue-i.startValue)||i.startValue);t.$element.css(i.name,u)}function w(t,i,r){var f=i.name,u;r||t.$element.css(f,i.endValue);u=i.animation;delete o[t.$element.uniqueId()];delete u.properties[f];delete t[i];u.properties.length||(u.options.complete&&u.options.complete(),n.inArray(u,s)+1&&s.splice(n.inArray(u,s),1))}var h=t.prefixed("transform")||"transform",e,a,c,o,s,l;return(n.fn.innerHeight=function(){var n=this[0];return n&&n.innerHeight?n.innerHeight:this.height()},e={},Number.prototype.mod=function(n){return e[this]||(e[this]={}),e[this][n]||(e[this][n]=(this%n+n)%n),e[this][n]},t.translateXCss=t.csstransforms3d&&i.isCapable("AllowTransform3d")?"translateX3d":t.csstransforms&&i.isCapable("AllowTransform2d")?"translateX":"left",a=new RegExp("matrix(3d)?\\(([0-9-., ]*)\\)","i"),n.cssHooks.translateX={get:function(t){var i=n(t).css(h);return v(i)},set:function(t,i){n(t).css(h,i===""?i:"translateX("+i+")")}},n.fx.step.translateX=function(t){n.cssHooks.translateX.set(t.elem,t.now+t.unit)},n.cssHooks.translateX3d={get:function(t){var i=n(t).css(h);return v(i)},set:function(t,i){n(t).css(h,i?"translate3d("+i+",0,0)":"")}},n.fx.step.translateX3d=function(t){n.cssHooks.translateX3d.set(t.elem,t.now+t.unit)},n.extend(n.easing,{easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i}}),n.fn.pxToEm=function(n,t){if(!n)return 0;var i=y(t||this);return parseFloat(n)/i+"em"},n.fn.toPx=function(n,t){var i=0;return n&&(i=parseFloat(n),n.indexOf("em")!=-1&&(i*=y(t||this))),i},c=0,n.fn.uniqueId=function(){var t=n(this).data("uniqueId");return t||(c++,t=c,n(this).data("uniqueId",t)),t},o={},s=[],f.isPc)?n:(n.fn.animate=function(t,i){for(var f,r,a,v,y=(new Date).getTime(),e=0;e<this.length;e++){var h=n(this[e]),c=h.uniqueId(),u=o[c];u||(u=o[c]={$element:h});i.step&&typeof i.step!="function"&&(i.step=null);f={properties:t,options:i,startTime:y};s.push(f);for(r in t)u[r]&&w(u,u[r],!0,f),a=t[r],v=h.css(r),u[r]={name:r,startValue:v,endValue:a,animation:f}}return l||p(),n(this)},n.fn.stop=function(){return n(this)},n)});define("tabKeyPressed",["jquery"],function(n){var t=!1;n(document).on("keydown",function(n){n.keyCode==9&&(t=!0)}).on("keyup",function(n){n.keyCode==9&&(t=!1)});return function(){return t}});require(["jquery","window","mediator","c.deferred"],function(n,t){function f(){r.scrollTop()?i.addClass(u):i.removeClass(u)}var i=n("body>.head"),r=n(t),u="scrolled";r.scroll(f)});define("searchFlyout",["jquery","jqBehavior","flyout","document","c.dom"],function(n,t,i,r){function l(t){function l(){u.trigger("searchFlyout.close")}function a(t){n.contains(c,t.target)||l()}function y(){f.trigger("blur");l()}function v(n){switch(n.keyCode){case o:case s:case h:y()}}function p(n,t){u.on("focusin",a);e.on("keydown",v);t(n)}function w(n,t){u.off("focusin",a);f.off("keydown",v);t(n)}return i(t,r,{allowToggleOff:!1,eventOrigin:e,triggerEvent:"focusin",outsideEvent:"mousedown touchstart searchFlyout.close",openFlyoutDelegate:p,closeFlyoutDelegate:w})}var o=27,s=33,h=34,u=n(r),f=n("#q"),e=n("#srchfrm"),c=n("#srchfrm")[0];return t(l)});require(["binding","c.dom"],function(n){n("flyout","#header-common").view(n.views.SIZE12COLUMN,{eventOrigin:"#header-search>button",outsideEvent:"mousedown touchstart"});n("searchFlyout","#header-common").view(n.views.SIZE34COLUMN)});require(["jquery","binding","c.dom"],function(n,t){var i=n("html");require(["c.deferred"],function(){i.addClass("loaded")});n(".ad a.adchoices").removeClass("adchoices").addClass("adchoicesjs");t("searchTargetSelf","#srchfrm").view(t.views.SIZE12COLUMN);t("searchScope","#search-scope").view(t.views.SIZE3COLUMN|t.views.SIZE4COLUMN);t("truncate",".truncate").all()});define("modal.tokens",{closeButtonTitle:"Close",errorMessageTitle:"Message:",errorMessageLabel:"Error loading content"});define("sharingToolbar.tokens",{shareCountMinimumThreshold:1});define("modal",["jquery","modal.tokens"],function(n,t){function s(){var n=document.createElement("div");return n.setAttribute("id",r),n.setAttribute("title",t.closeButtonTitle),n}function h(n){var t=document.createElement("section");return t.setAttribute("class",o),t.setAttribute("role","dialog"),t.setAttribute("aria-labelledby","dialog-title"),t.setAttribute("aria-describedby","dialog-desc"),n&&t.setAttribute("id",n),t}function a(n){var i=document.createElement("button");return i.setAttribute("class","close"),i.setAttribute("title",t.closeButtonTitle),i.click(function(){f.close(n)}),i}var r="mask",o="modal",c="error",i,u,e=220,l="<h1>"+t.errorMessageTitle+"<\/h1><p>"+t.errorMessageLabel+"<\/p>",f={open:function(t,v,y,p){var w,b;i=i||n("body");u||(i.append(s()),u=n("#"+r),u.click(function(){f.close(y)}));w=n("#"+y);w.length==0&&(b=h(),i.append(b),n("."+o+":not([id])").attr("id",y),w.load(v,function(t,i,r){i==="error"?(w.append(l).addClass(c),n("p",this).append(r.status+" "+r.statusText)):typeof p=="function"&&p(y);w.append(a(y))}));i.addClass(r);n("#"+r+", #"+y).fadeIn(e);n(".webkit > #"+y).show()},close:function(t){i=i||n("body");n("#"+r+", #"+t).fadeOut(e).hide();i.removeClass(r)},openModalWithContent:function(t,o,c,l){var y,a,v;i=i||n("body");u||(i.append(s()),u=n("#"+r),u.click(function(){l&&typeof l=="function"?l():f.close(o)}));y=n("#"+o);y.length==0&&(a=h(o),c&&(v=n("#"+c),v&&v.appendTo(a)),i.append(a));i.addClass(r);n("#"+r+", #"+o).fadeIn(e);n(".webkit > #"+o).show()}};return f});define("sharingToolbar",["sharingToolbar.tokens","jquery","jqBehavior","track","format","escape","window","perfMarker","document"],function(n,t,i,r,u,f,e,o,s){function v(n){n.each(function(){var n=t(this);n.hasClass(a)||n.find("a.stb-btn").each(function(){var n=t(this);n.click(function(){var i;return n.hasClass(h.toolbarClassPrefix+"facebook")&&t.inArray(y(),["articlepage","gallerypage","channelplayerpage","articlefullscreenpage"])!==-1?!0:n.hasClass(h.toolbarClassPrefix+"email")?!0:(i=[],n.hasClass(h.toolbarClassPrefix+"skype")&&(i=["width = 305","height = 665"]),l(n.attr("href"),i),r.trackEvent({type:"click",target:this}),!1)})})})}function y(){return((/pagename:\s*([^;]+)/i.exec(s.getElementsByTagName("HEAD")[0].getAttribute("data-info"))||{})[1]||"").toLowerCase()}function l(n,i){i=t.extend(["toolbar=0","status=0","resizable=1","scrollbars=1"],i);e.open(n,null,i.join(","))}var h={toolbarClassPrefix:"stb-"},a="stb-processed",c=i(v);return c.openNewWindow=l,c});require(["binding","c.deferred"],function(n){n("sharingToolbar",".stb, .stb-bsb").all()});define("videoPlaylist.tokens",{secondsFormat:"UP NEXT: {0}",nextText:"UP NEXT",nowPlaying:"NOW PLAYING"});define("videoPlaylist",["videoPlaylist.tokens","jquery","jqBehavior","mediator","navigation","format"],function(n,t,i,r,u,f){function d(i){function st(){if(t("#feedback-flyout").hasClass("show"))setTimeout(st,500);else{var n=at;if(n==null||n<=0){ht();return}ct(n);it=setInterval(function(){ct(--n);n<=0&&(clearInterval(it),ht())},1e3)}}function ht(){require(["wcvp.cppajax"],function(n){n.RefreshPage()})}function ct(t){ft.html(f(n.secondsFormat,t))}function lt(n){var t=tt[n.type];t&&t()}var d=i.find("."+l),rt=d.find("."+s),ut=i.find("."+a),ft=ut.find("."+s),g=i.parent().find("div["+h+"]"),nt=g.attr(h),at=g.attr(v)||0,et=g.attr(y)==="true",ot=g.attr(p)||5,it,tt;if(g.length||nt)return tt={},tt[w]=function(){it&&clearInterval(it);d.length&&(rt.html(n.nowPlaying),d.addClass(e),d.removeClass(o));nt&&(ft.html(n.nextText),ut.addClass(e))},tt[b]=function(){d.length&&(d.removeClass(e),d.addClass(o),rt.empty());et&&nt&&st()},tt[k]=function(){var i,n;d.length&&(d.removeClass(e),d.addClass(o),rt.empty());i=!0;ot>0&&t.cookie&&(n=t.cookie("videoerrorcount")||0,n++,t.cookie("videoerrorcount",n),i=n<ot);i&&et&&nt&&u.navigate(nt)},{setup:function(){r.sub(c,lt)},teardown:function(){r.unsub(c,lt)}}}var e="active",o="completed",l="video-current",a="video-next",s="overlay",h="data-nextvideourl",v="data-cpdelay",y="data-cpenabled",p="data-cpmaxonerror",w="started",b="completed",c="video",k="errored";return i(d)});define("videoStaticLinks",["jquery","jqBehavior"],function(n,t){function i(){var t=window.location.pathname.split("/"),i="/{0}/{1}".format(t[1],t[2]);n("#main a:not(.provwebsite, .stb-facebook, .stb-twitter, .stb-email)").attr("href",i)}return t(i)});define("cppChromeRedraw",["jquery","jqBehavior","deviceGroup","window"],function(n,t,i,r){function u(){if(i.isChrome){var t=!1;n(r).resize(function(){t||(t=!0,setTimeout(function(){n("#sub-content, .playlist-container, .prime-video-info").hide().show(0);n(".primary-playback-region").css({visibility:"hidden"}).css({visibility:"visible"});t=!1},1e3))})}}return t(u)});define("readMoreSeeLess",["jquery","jqBehavior"],function(n,t){function i(n,t){function u(n){(n.type!="keydown"||n.which==13)&&(i.toggleClass(t.readMoreClass),r.toggleClass(t.readMoreClass))}var i=n.find("."+t.toggleTextClass),r=n.find("."+t.toggleButtonClass);return r.addClass(t.readMoreClass),{setup:function(){(t.alwaysBind||i[0].scrollHeight>1+i[0].clientHeight)&&r.on("click keydown",u).addClass(t.showClass)},teardown:function(){i.addClass(t.readMoreClass);r.removeClass(t.showClass)}}}return t(i,{toggleButtonClass:"toggle-btn",toggleTextClass:"toggle-text",readMoreClass:"read-more",showClass:"show",alwaysBind:!1})});require(["jquery","c.dom"],function(n){n(".stb-facebook").on("click",function(n){n.preventDefault?n.preventDefault():n.returnValue&&(n.returnValue=!1)})});define("facebookCommentsUtility",["jquery"],function(n){function t(t){var e=t||n("html").attr("lang")||"en-US",f="en_US",u=e.split("-"),r,i;if(u.length===2){r=u[0].toLowerCase();i=u[1].toUpperCase();switch(r){case"en":i!=="US"&&(i="GB");break;case"es":i!=="ES"&&(i="LA");break;case"fr":i!=="CA"&&(i="FR");break;case"nl":case"de":case"ar":i=r.toUpperCase()}f=r+"_"+i}return f}return{getFacebookLocale:t}});require(["jquery","window","facebookCommentsUtility","track","mediator","setCookie","c.deferred"],function(n,t,i,r,u,f){t.fbAsyncInit=function(){t.FB.init({appId:"125117174535490",xfbml:!0,cookie:!0,version:"v2.0"});var i,e=n(".fb-comments");t.FB.Event.subscribe("comment.create",function(){r.trackEvent({type:"click_nonnav",target:e},"","","FBCommentPosted")});t.FB.Event.subscribe("edge.create",function(){i=n(".fbpopup-container").is(":visible")?n(".fb-page"):n(".fb-like");r.trackEvent({type:"click_nonnav",target:i},"","","User liked our page");f("likePromptDisabled","true",180,f.topDomain,"/")});t.FB.Event.subscribe("edge.remove",function(){i=n(".fbpopup-container").is(":visible")?n(".fb-page"):n(".fb-like");r.trackEvent({type:"click_nonnav",target:i},"","","User un-liked our page");f("likePromptDisabled","false",180,f.topDomain,"/")});t.FB.Event.subscribe("xfbml.render",function(){u.pub("fbsdkloaded")})};require({js:"//connect.facebook.net/"+i.getFacebookLocale()+"/all.js"})});define("likePrompt.tokens",{supportedReferrerList:"facebook.com",likeStripText:"Never miss another interesting story. Like MSN on Facebook",referralBasedLikePromptHeaderText:"Take a moment to like MSN!",referralBasedLikePromptBodyText:"Join millions of fans to get the best online content on Facebook",sharingBasedLikePromptHeaderText:"Found the story interesting?",sharingBasedLikePromptBodyText:"Like us on Facebook to see similar stories",startPagePromptDisplayCycle:"10",startPageMaxDisplayCountForLikePrompt:"21",maxDisplayCountForLikePromptAcrossAllEntryPoints:"2",maxShareCountForLikePrompt:"13",maxReferralCountForLikePrompt:"21",shareCountCycle:"3",referralCountCycle:"10",facebookLang:"en_US",fbMsnUrl:"https://www.facebook.com/msn"});define("likePrompt",["jquery","jqBehavior","window","getCookie","setCookie","track","likePrompt.tokens","trackInfo","format","escape","document","navigation"],function(n,t,i,r,u,f,e,o,s,h,c,l){function a(t){function ut(){k===st?(ct.textContent=e.referralBasedLikePromptHeaderText,lt.textContent=e.referralBasedLikePromptBodyText):(ct.textContent=e.sharingBasedLikePromptHeaderText,lt.textContent=e.sharingBasedLikePromptBodyText)}function at(){h.stop().hide();p.removeClass("disablefblink");g.add(h).add(nt).add(p).off("click")}function vt(n,t,i){f.trackEvent({type:n,target:t},"","",i,k,d)}function yt(){vt("click_nonnav",g,"Like Prompt Closed - Prompt Display Count #"+tt);s&&!v&&i.open(t.attr("href"),"_blank");at()}function dt(n){at();n.stopImmediatePropagation();n.preventDefault();u(w,"true",y,u.topDomain,"/");vt("click_nonnav",nt,"User disabled the prompt - Prompt Display Count #"+tt);s&&!v&&i.open(t.attr("href"),"_blank")}function gt(t){!n(t.target).closest(".fbpopup").length&&h.is(":visible")&&yt()}function ni(){h.delay(1e3).show();setTimeout(function(){i.FB&&i.FB.XFBML.parse(n(".fbpopup")[0])},200);g.add(p).on("click",function(n){n.stopImmediatePropagation();n.preventDefault();yt()});h.on("click",gt);nt.on("click",function(n){dt(n)})}function ti(n){return n.pointerType&&n.pointerType!=="mouse"&&n.pointerType!==4}function ft(n,t){var i=r(n),f=r(rt);if(r(w)!=="true"){if(f&&typeof f=="string"||u(rt,"0",y,u.topDomain,"/"),i&&typeof i=="string"){if(Number(i)>=Number(ot))return u(t,"true",y,u.topDomain,"/"),0;u(n,Number(i)+1,y,u.topDomain,"/")}else u(n,"1",y,u.topDomain,"/");if(i=r(n),(Number(i)-1)%Number(it)==0)return(u(rt,Number(f)+1,y,u.topDomain,"/"),Number(f)+1>ht)?(u(t,"true",y,u.topDomain,"/"),0):(tt=(Number(i)-1)/Number(it)+1,ni(),1)}return 0}function pt(n){ti(n.originalEvent)||ft(b,w)!==1&&(v||i.open(t.attr("href"),"_blank"))}function et(n){(typeof n=="undefined"||n&&(!n.error_code||n.error_code===4201))&&ft(b,w)}function ii(){ut();i.FB&&i.FB.ui({method:"share",display:"popup",href:t.attr("href")},et)}function ri(){ut();i.FB&&i.FB.ui({method:"feed",display:"popup",link:t.attr("href"),picture:t.data("thumbnail-href"),redirect_uri:t.data("redirect"),description:t.data("description")},et)}function ui(){p.addClass("disablefblink")}function fi(){setTimeout(function(){s?ui():ut();ft(b,w)!==1&&p.removeClass("disablefblink")},2500)}function ei(){s=o.sitePage.pageName==="startpage";a=!s&&t.is("body");v=s&&t.is("body")}function oi(){if(b=s?v?"startpageEngagedUsersPageVisitCount":"startpageMeStripeClickCount":a?"referralCount":"shareCount",k=s?v?wt:bt:a?st:kt,d=k,a){var t=l.getHostName(c.referrer),i=e.supportedReferrerList.split(";");n.each(i,function(n,i){t.toLowerCase().indexOf(i)>-1&&(d=d+" - "+i)})}ht=Number(e.maxDisplayCountForLikePromptAcrossAllEntryPoints);ot=s?e.startPageMaxDisplayCountForLikePrompt:a?e.maxReferralCountForLikePrompt:e.maxShareCountForLikePrompt;it=s?e.startPagePromptDisplayCycle:a?e.referralCountCycle:e.shareCountCycle}var y=180,tt,s,a,v,ot,it,b,w="likePromptDisabled",k,d,st="FBMSNRefLikePrompt",wt="FBMSNStartPageEngagedUsersLikePrompt",bt="FBMSNStartPageLikePrompt",kt="FBMSNLikePrompt",ht,rt="promptDisplayCount",h=n(".fbpopup-container"),g=h.find(".fbpopup-close"),p=h.find(".fblink"),nt=n("#fbdisablelikeprompt"),ct=h.find("h2")[0],lt=h.find("p")[0];return i.handleFbResponse=et,i.handleMeStripeFbTileClick=pt,{setup:function(){if(ei(),oi(),a||v)fi();else if(s)t.on("click",function(n){pt(n)});else if(t.hasClass("feed-dialog"))t.on("click",ri);else t.on("click",ii)},teardown:function(){a||v||t.off("click");g.add(h).add(nt).add(p).off("click");p.removeClass("disablefblink")}}}return t(a)});require(["jquery","track","c.deferred"],function(n,t){var i=!1;n(".wcvideoplayer").on("adEnded adStarted",function(){var r=n(".aside-region");i||n("#adcontainer a, #adcontainer iframe").length||(i=!0,r.show(),t.trackPartialImpression(r))});n(".wcvideoplayer").on("videoReloaded",function(){i=!1})});require(["binding","c.dom"],function(n){n("videoPlaylist",".playlist").all();n("videoStaticLinks",".staticPlayerPage").all();n("cppChromeRedraw","#maincontent").all();n("truncate",".hl1u1 h4, #primary-video-title h1, .player-module-container .player-module-arrows .video-title").all();n("readMoreSeeLess",".primary-video-description").all()});require(["binding","c.deferred"],function(n){n("likePrompt",".stb-facebook").all({triggerEvent:"click"})});require(["jquery","refreshModules","c.deferred"],function(n,t){var i=n("[data-module-deferred]:not([data-sso-dependent])");i.length&&t(i)});define("keypressCapture",["jquery","jqBehavior","mediator","perfMarker","window","document"],function(n,t,i,r,u,f){function s(t,u){function a(){h=!0}function v(){h||n(this).focus()}function c(t){t.charCode>32&&t.charCode<=126&&n(t.target).is(l)&&s.focus()}var s=n(u.focusSelector),l=":not(input,textarea,select,{selector})".replace("{selector}",u.focusSelector),h=!1,f;o.one("focusin mousedown touchstart",a);s.one("keypress",v);return f={setup:function(){t.on("keypress",c);e||(e=!0,r("TimeToFirstSearchInteractive",!0))},teardown:function(){t.off("keypress",c)}},i.sub("feedback.open",f.teardown),i.sub("feedback.close",f.setup),f}var o=n(f),e;return t(s,{focusSelector:""})});require(["binding","c.dom"],function(n){n("keypressCapture","body").all({focusSelector:"#q"})});define("feedbackHelper",["jquery","trackInfo","screen","document","headData","guidGen","navigator"],function(n,t,i,r,u,f,e){function o(n){if(!t.sitePage)return n;n=n||{};var o=t.sitePage,s=t.telemetryTracking.setupParameters();return n["feedback.id"]=f(),n.pageType=o.pageName,n.subcvs=o.vertical,n.cvs=o.canvas,n.contentid=o.entityId,n.cu=o.pageUrl,n.evt="feedback",n.mkt=o.localeCode,n["client.deviceOS"]=o.os,n.flightid=o.flightid,n.referrer=r.referrer,n.signedin=t.userStatic?t.userStatic.isSignedIn:"",n["client.deviceModel"]=u?u.dg:"",n.userAgent=e.userAgent,n.scr=i.width&&i.height?i.width.toString()+" X "+i.height.toString():"",s!==null&&s!==undefined&&(n.rid=s.rid,n.clid=s.clid),n}return{createFeedbackData:o,flyoutEventOrigin:"#footer_feedback, #usermenu-feedback, #feedback-bottomentry, .floatingfeedback"}});define("feedback.tokens",{inputBoxError:"Please leave a comment.",categoryNotSelectedError:"Please leave a comment or select a problem category."});define("feedback",["jquery","trackInfo","feedback.tokens","flyout","logging","jqBehavior","mediator","document","headData","feedbackHelper","guidGen","window"],function(n,t,i,r,u,f,e,o,s,h,c,l){function g(f){function ni(){dt?o.body.appendChild(et):(et=o.createElement("div"),et.setAttribute("class","layoutoverlay"),o.body.appendChild(et),rt=f.find(".feedbackheader .selected"),ut=n("#feedback-reportproblem"),yt=n("#feedback-submit"),lt=n("#feedback-ok"),at=n("#feedback-close"),ot=n("#feedback-feedbackarea"),g=n("#feedback-inputbox"),pt=n("#feedback-useralias"),vt=f.find(".stars > ul > li"),dt=!0);tt=!1;nt=null;it.text(w);it.removeClass("uploading uploaded");gt=c();wt=!1;!y&&t.sitePage&&(y=(t.sitePage||{}).otfURL,y||u.error("[telemetryTracking.Feedback] BaseUrl was empty or undefined in sitePage."))}function si(){g.length&&(s.submitValue=g.val());pt.length&&(s[v+".source"]=pt.val())}function hi(){if(s[v+".area"])return ft&&ht(),!0;if(!ft&&g.length){if(g.val().length)return!0;g.val(tt?i.categoryNotSelectedError:i.inputBoxError);g.addClass("error").on("focus",ht);ft=!0}return!1}function ht(){ft&&(g.removeClass("error").off("focus",ht),ft=!1);g.val("")}function ti(n){n.preventDefault();st.click()}function ii(){var t,r,i;if(!y){u.error("[feedback] Error submitting user feedback as telemetry baseUrl is empty");return}t=st[0];r=t.value?t.value.replace(/^.*(\\|\/|\:)/,""):"";it.text(r||w);t.value&&t.files&&t.files.length&&(it.addClass("uploading"),i=new l.FormData,i.append("file",t.files[0]),n.ajax({url:y+"?"+n.param({"feedback.id":gt}),data:i,processData:!1,contentType:!1,type:"POST"}).done(function(){it.removeClass("uploading").addClass("uploaded")}))}function ci(){if(!y){u.error("[feedback] Error submitting user feedback as telemetry baseUrl is empty");return}s=h.createFeedbackData(s);si();n.ajax({type:"POST",url:y,data:JSON.stringify([s]),contentType:"application/json; charset=utf-8",dataType:"json"}).fail(function(n,t,i){u.error("[feedback] Error submitting user feedback. ErrorType: {0}. Error: {1}".format(t,i.message))})}function li(n,t){ni();yt.on(a,ei);at.on(a,ct);ut.on(a,oi);rt.on(a,kt);vt.on(a,fi);st.on("change",ii);it.on(a,ti);e.pub(v+".open");t(n)}function ri(n){var t=ot.find(".feedbackarea>ul>li");t.length&&(n?t.on(a,ui):t.off(a,ui))}function ui(t){var i=n(t.currentTarget);s[v+".area"]=i.text();s[v+".type"]="bug";nt&&nt.removeClass("selectedcategory");nt=i;i.addClass("selectedcategory")}function fi(t){var i=n(t.currentTarget),r=i.index()+1;i.parent().attr("data-selected",r);s[v+".rating"]=r}function ai(){s[v+".rating"]=0;vt.parent().attr("data-selected",0).off(a,fi)}function ct(){e.pub(v+".close");wt&&(lt.off(a,ct),ci());f.removeClass("show finalpage");o.body.removeChild(et);yt.off(a,ei);at.off(a,ct);ut.off(a,oi);rt.off(a,kt);st.off("change",ii);it.off(a,ti);ht();ai();tt&&kt()}function ei(){if(hi()){f.addClass("finalpage");wt=!0;lt.on(a,ct)}}function oi(){tt||(tt=!0,ot.addClass("showproblemarea"),rt.removeClass(p),ut.addClass(p),ri(!0))}function kt(){tt&&(ri(!1),s[v+".type"]="General",s[v+".area"]=undefined,rt.addClass(p),ut.removeClass(p),ot.removeClass("showproblemarea"),tt=!1,nt&&nt.removeClass("selectedcategory"),nt=null)}var lt,at,ot,g,rt,ut,nt,vt,yt,pt,ft,wt,et,tt,st=f.find(b),it=f.find(d),dt=!1,gt=c(),s={},bt;return s[v+".rating"]=0,s[v+".type"]="General",bt=r(k,o,{eventOrigin:h.flyoutEventOrigin,outsideEvent:"",openFlyoutDelegate:li,allowToggleOff:!1}),{setup:bt.setup,teardown:bt.teardown,feedback:{initialize:ni}}}var y="",a="click",v="feedback",b="#feedback-file",k="#feedback-flyout",w="Upload a Screenshot",p="selected",d="#feedback-upload";return f(g)});deferredCanary="c.deferred";deferredCanary="c.postdeferred";require(["binding",deferredCanary],function(n){n("feedback","#feedback-flyout").all()});define("appPromoFooter",["jquery","setCookie","track","c.dom"],function(n,t,i){return function(){function f(){i.trackEvent({type:"click_nonnav"},this);r.remove();t("pf-"+u,e(),365,!1,"/")}function e(){var n=new Date;return n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate()}var r=n("#promoappfooter"),u;r.length&&(u=r.attr("data-vkey"),r.find(".closebutton,.msnpromo li a,.appexploretext").click(f))}});require(["appPromoFooter"],function(n){n()});define("floatingFeedbackLink",["jquery","jqBehavior","mediator","window"],function(n,t,i){function f(n){function f(i){i.top===0?(n.removeClass(r),t=!1):t||(n.addClass(r),t=!0)}var t=n.hasClass(r);return{setup:function(){n.length!==1||document.getElementById("conditionalbanner")||i.sub(u,f)},teardown:function(){i.unsub(u,f)}}}var r="show",u="viewport_scroll_change";return t(f)});require(["binding","c.deferred"],function(n){n("floatingFeedbackLink",".floatingfeedback").view(n.views.SIZE4COLUMN)});define("bingAutoSuggest.tokens",{resourceJs:"http://www.bing.com/s/as/1436447/en.js",helpLinkText:"What's this?",helpLinkUrl:"http://help.live.com/help.aspx?project=wl_searchv1&market=en-US&querytype=keyword&query=nsmtseggus",market:"en-US",popularNowText:"Popular Now",enablePopularNow:1,bingHelp:"http://onlinehelp.microsoft.com/en-us/bing/ff808490.aspx",disableText:"Turn off search suggestions",enableText:"Turn on search suggestions"});define("bingAutoSuggest",["bingAutoSuggest.tokens","jquery","jqBehavior","mediator","getCookie","setCookie","track","events","format","headData","window","document","location"],function(n,t,i,r,u,f,e,o,s,h,c,l,a){function k(n,i){function k(){var n=new RegExp("\\b"+it+"=0\\b","i");return u(tt).match(n)?1:0}function lt(n,i,r){if(typeof n!="undefined"){var u=n.js;u&&t.isFunction(i)&&t.ajax({url:u,dataType:"script",success:function(){i(r)}})}}function at(){nt();var u=t.extend(!0,{},{f:n.attr("id"),i:i.inputId},i.config,{sid:w||""});u.cb=function(n){if(g=!0,r.pub(p.beforeSubmit,n.value),g){var u=t(n).parents("form"),i=u[0],f=i&&i.action&&i.action.indexOf("://")>=0?i.action:"";e.trackEvent({type:"submit",target:i},null,f);u.submit()}};c._G={Mkt:i.market};typeof c.sa_autosuggest!="undefined"&&(c[a]=new c.sa_autosuggest(u),c[a].init(a),u.lmh||t(".sa_om").hide(),nt(),n[0]&&o.unbind(n[0],"submit",e.trackEvent))}function ot(){var r=k(),u;return(h.attr(ut,r?ft:et),typeof c[a]!="undefined")?(c[a].enable(!k()),nt(),1):n[0]&&h[0]&&!r?(i.config.asId&&(rt=i.config.asId),n.append(t("<div><\/div>").attr("id",rt)),i.delayBind==2?(d=1,st()):ht(y.delay,st),lt(i.resources,at),u=new Image,u.src=i.config.u+"&q=",1):0}function vt(n,t){var r=t?"1":"0";i.cookieDomain||(i.cookieDomain=f.topDomain);f(tt,it+"="+r,i.cookieExpiry,i.cookieDomain,"/");i.delayBind=2;ot();n.preventDefault()}function st(){return v(u("_SS"),5)||f("_SS","SID=00",365,i.cookieDomain,"/"),1}function ht(n,i){n==0?i():n==1?t(l).ready(i):n==2&&yt(i)}function yt(n){var t=".asue";h.bind("click"+t,function(){n()&&h.unbind(t)}).bind("keyup"+t,function(i){i.which!=27&&i.which!=9&&n()&&h.unbind(t)})}function nt(){var n,r,i,f;w||(n=v(y.cn,1)?y.cn.split("+"):null,n&&v(n[0],1)&&(r=u(n[0]),v(r,4)&&(i=r.match(/SID=[\d(A-Z(a-z)]+/),i&&v(i[0],5)&&(w=i[0].substr(4)))));typeof c[a]!="undefined"&&(f=c[a].sid,t.isFunction(f)&&f(w),d&&(d=0,l.activeElement==h[0]&&h.click()));w&&t.isFunction(y.onCk)&&(y.onCk(),y.onCk=0)}function ct(n){var t=k();n.text(t?i.enableText:i.disableText);h.attr(ut,t?ft:et)}var tt="SRCHHPGUSR",it="AS",rt="sw_as",ut="autocomplete",ft="on",et="off",a="sa_inst",y=i.sharedCk,d=0,w,b,h,g;i.config.u=s(i.config.u,i.formCode);i.sharedCk.ru=s(i.sharedCk.ru,i.formCode);b=t(i.toggleSelector);h=t("#"+i.inputId,n);r.sub(p.preventSubmit,function(){g=!1});ct(b);b.click(function(n){n.stopImmediatePropagation();vt(n,k());ct(b)});ht(i.delayBind,ot)}function v(n,t){return typeof n=="string"&&(!t||n.length>=t)}var y=h.ssl===!0||h.bingssl===!0?"https":"http",b={resources:{js:y+n.resourceJs.substr(n.resourceJs.indexOf("://"))},config:{l:[n.helpLinkText,n.helpLinkUrl,1],r:"AutoSugShared",o:"s+a+p+hs+",h:1,k:0,m:8,d:100,u:y+"://api.bing.com/qsonhs.aspx?form={0}",mkt:n.market,ol:1,tPN:n.popularNowText,eLO:1,eHS:1,ePN:n.enablePopularNow,nw:"true",lh:n.bingHelp,lmh:0},disableText:n.disableText,enableText:n.enableText,inputId:"q",openNew:"1",market:n.market,cookieExpiry:365,cookieDomain:"msn.com",delayBind:1,sharedCk:{delay:1,ru:y+"://"+a.host+"/sck.aspx&form={0}",pu:y+"://www.bing.com/sck",cn:"_SS",domain:"msn.com",onCk:function(){}},toggleSelector:"#asugoff"},p={beforeSubmit:"autosuggestBeforeSubmit",preventSubmit:"autosuggestPreventSubmit"},w=i(k,b);return w.event=p,w.resize=function(n){c.sa_inst&&c.sa_inst.autosuggest.setQuery(n.val())},w});require(["binding","c.deferred"],function(n){n("bingAutoSuggest","#srchfrm").all()});define("sso.tokens",{signInText:"Sign in",signOutText:"Sign out"});define("meControlBootstrap",["headData","window","perfMarker","jquery"],function(n,t){return function(){n.clientSettings&&(t.onMeControlReadyToLoad=function(){t.MSA&&t.MSA.MeControl&&(t.define("meControlApi",t.MSA.MeControl.API),t.define("meControlLoader",t.MSA.MeControl.Loader),t.define("meControlIdp",t.MSA.MeControl.IDP),t.define("meControlAuthState",t.MSA.MeControl.AuthState))},t.require({js:n.clientSettings.mecontroluri}))}});require(["headData","meControlBootstrap","c.deferred"],function(n,t){n.signedin&&!n.sso&&t()});define("meControlEventHandler",["perfMarker"],function(){return function(){}});require(["window","jquery","c.dom"],function(n,t){var i=t("#meCtrl").data();i&&(i.isAuthenticated=i.isAuthenticated&&i.isAuthenticated.toString().toUpperCase()==="TRUE",i.cid=typeof i.cid=="number"?i.cid.toString():i.cid,n.define("meControlRpsModel",i))});define("meControlOptionsFactory",["jquery","sso.tokens","meControlRpsModel","meControlIdp","meControlAuthState","meControlEventHandler"],function(n,t,i,r,u,f){return function(e){var o=e.isAuthenticated?u.SignedIn:u.NotSignedIn;return{containerId:"meCtrl",jQuery:n,signInStr:t.signInText,signOutStr:t.signOutText,userData:{idp:r.MSA,firstName:e.firstName,lastName:e.lastName,memberName:e.memberName,cid:e.cid,authenticatedState:o},rpData:{preferredIdp:r.MSA,msaInfo:{signInUrl:i.signInUrl,signOutUrl:i.signOutUrl,meUrl:i.meUrl},aadInfo:{}},events:{onEventLog:f}}}});require(["window","meControlRpsModel","meControlLoader","meControlOptionsFactory"],function(n,t,i,r){function u(n){var t=r(n);i.load(t)}t.isAuthenticated?u(t):n.require(["meControlAuthState","ssoData","c.sso"],function(n,t){u({firstName:t.firstName,lastName:t.lastName,memberName:t.memberName,cid:t.cid,isAuthenticated:!0})})});define("perfMarker",["window"],function(n){function h(){return e?t.now()|0:i&&s()-i}var t=n.performance,r,f;if(!t)return function(){};var e=typeof t.now=="function",o=typeof t.mark=="function",i=(t.timing||{}).navigationStart,s=typeof Date.now=="function"?Date.now:function(){return+new Date},u;return u=n.console&&typeof console.timeStamp=="function",r=n._pageTimings||(n._pageTimings={}),f=!1,function(n,e,s){var c,l;typeof n!="string"||e&&r[n]&&!s||(c=typeof e=="number",c||(o&&t.mark(n),u&&console.timeStamp(n)),(e||f)&&(l=c?Math.round(e-i):h(),r[n]=l))}});define("wcvp.wcAjax",["jquery","window"],function(n,t){function i(){function r(n,u,f,e){for(var c,l,s,o=i,h=0;h<o.length;h++)if(o[h]===null)return c=-1,f&&typeof f=="function"&&e>0&&(c=t.setTimeout(function(){try{var n=o[h];o[h]=null;t.clearTimeout(c);f(n.url)}catch(i){}},e)),o[h]={url:n,success:u,timerId:c},h;for(l=new Array(o.length+4),s=0;s<l.length;s++)s<o.length?l[s]=o[s]:t["JsonpCb"+s]=new Function("data","WcAjax.JsonpCb("+s+", data);");return i=l,r(n,u,f,e)}function u(n){var t=i,r=t[n];return t[n]=null,r}var i=[];this.ajax=function(t){if(t=n.extend({dataType:"jsonp",timeout:1e4},t),t.dataType=="jsonp"){var i=r(t.url,t.success,t.error,t.timeout);n.extend(t,{cache:!0,global:!1,jsonpCallback:"JsonpCb"+i,success:null,error:null})}return n.ajax(t)};this.JsonpCb=function(n,i){var r=u(n);r&&(r.timerId!=-1&&t.clearTimeout(r.timerId),r.success&&typeof r.success=="function"&&r.success(i,r.url))}}return t.WcAjax=new i});define("wcvp.locStrings",function(){return{adchoices_link_tiptext:"AdChoices",adchoices_image_tiptext:"AdChoices",ad_link_tiptext:"Advertisement",ad_image_tiptext:"Advertisement",agegate_button:"Month / Day / Year",agegate_cancel:"Cancel",agegate_day:"Day",agegate_day_format:"DD",agegate_error:"We're sorry, this video is restricted based on the age you entered.",agegate_header:"When were you born?",agegate_label:"Please verify your date of birth to view this video.",agegate_month:"Month",agegate_month_format:"MM",agegate_submit:"Submit",agegate_year:"Year",agegate_year_format:"YYYY",closecaption_caption_preview:"Caption preview",closecaption_done:"DONE",closecaption_label_text_background_color:"Text background",closecaption_label_text_background_transparency:"Text background transparency",closecaption_label_text_color:"Text color",closecaption_label_text_edge:"Text edge",closecaption_label_text_font:"Font",closecaption_label_text_size:"Text size",closecaption_label_text_transparency:"Text transparency",closecaption_label_window_background_color:"Window color",closecaption_label_window_background_transparency:"Window transparency",closecaption_menuitem_selected:"Selected",closecaption_off:"OFF",closecaption_options_color_black:"Black",closecaption_options_color_blue:"Blue",closecaption_options_color_cyan:"Cyan",closecaption_options_color_green:"Green",closecaption_options_color_magenta:"Magenta",closecaption_options_color_red:"Red",closecaption_options_color_white:"White",closecaption_options_color_yellow:"Yellow",closecaption_options_default:"Default",closecaption_options_edge_depressed:"Depressed edges",closecaption_options_edge_dropshadow:"Drop shadowed",closecaption_options_edge_none:"No edges",closecaption_options_edge_raised:"Raised edges",closecaption_options_edge_uniform:"Uniform",closecaption_options_font_casual:"Casual",closecaption_options_font_cursive:"Cursive",closecaption_options_font_monospacesansserif:"Monospace without Serifs",closecaption_options_font_monospaceserif:"Monospace with Serifs",closecaption_options_font_proportionalsansserif:"Proportional without Serifs",closecaption_options_font_proportionalserif:"Proportional with Serifs",closecaption_options_font_smallcaps:"Small Capitals",closecaption_options_size_100:"100%",closecaption_options_size_150:"150%",closecaption_options_size_200:"200%",closecaption_options_size_50:"50%",closecaption_options_size_75:"75%",closecaption_options_transparency_opaque:"Opaque",closecaption_options_transparency_semitransparent_33:"Semi-transparent 33%",closecaption_options_transparency_semitransparent_66:"Semi-transparent 66%",closecaption_options_transparency_transparent:"Transparent",closecaption_reset:"RESET",closecaption_settings:"SETTINGS",closecaption_title:"Caption settings",endslate_advertisement:"Advertisement",endslate_info:"Info",endslate_related:"Related Videos",endslate_replay:"Replay Video",endslate_share:"Share",error_agegate_day:"Enter a day in the range from 1 to {0}.",error_agegate_month:"Enter a month in the range from 1 to 12.",error_agegate_year:"Enter a year in the range from 1900 to the current year.",error_embed_code:"The embed code is improperly configured.",error_flash_minimum_required_version_not_installed:"We're sorry, but your browser does not support this video. Please install Adobe Flash version {0} or later.",error_video_permission:"We're sorry, the owner of this video has not granted you permission to view it.",geolocation_error:"We're sorry, this video cannot be played from your current location.",infoslate_date:"Date",infoslate_duration:"Duration",infoslate_label_episode:"Episode",infoslate_label_season:"Season",infoslate_label_videoby:"Video by",infoslate_rating:"Rating",infoslate_nstar:"{0} Stars button.",infoslate_nrating:"Current rating is {0} out of 5 stars.",media_err_aborted:"video playback was aborted",media_err_decode:"video is not readable",media_err_network:"video failed to download",media_err_src_not_supported:"video format is not supported",media_err_unknown_error:"unknown error occurred",pane_close:"Close",player_admsg:"Advertisement: video will play in {0} seconds",player_adskipbuttonmsg:"SKIP THIS AD",player_adskipmsg:"You can skip this ad in {0} seconds",player_adupdatemsg:'"{0}" will play after this ad',player_browserunsupported:"We're sorry, but your browser does not support this video.",player_chevron_left:"Previous",player_chevron_right:"Next",player_close_caption:"Closed Captioning",player_date_format:"{0}/{1}/{2}",player_emailbody:"Here's what I picked out for you.",player_emailbody2:"Video URL",player_emailfooter:"If you are unable to click the link, please copy and paste the URL in the browser to watch the video.",player_emailtitle:"You received a video!",player_expand:"Full Screen",player_logo:"Logo",player_mute:"Mute",player_nullvideoerror:"We're sorry, this video cannot be played.",player_pause:"Pause",player_play:"Play",player_playbackerror:"We're sorry, an error has occurred when playing video ({0}).",player_standarderror:"We're sorry, this video can't be played.",player_time:"Seek",player_unexpand:"Exit Full Screen",player_unmute:"Unmute",player_volume:"Volume",quality:"Video Quality",quality_hd:"HD",quality_hd_tiptext:"High Definition Video",quality_hq:"HQ",quality_hq_tiptext:"High Quality Video",quality_lo:"LO",quality_lo_tiptext:"Low Bandwidth Video",quality_sd:"SD",quality_sd_tiptext:"Standard Definition Video",quality_selected:"- Selected",share_copy:"Copy",share_email:"Email",share_embed:"Embed",share_facebook:"Facebook",share_large:"Large",share_link:"Link",share_linkedin:"LinkedIn",share_medium:"Medium",share_share:"Share",share_small:"Small",share_twitter:"Twitter",video_label:"Video:",video_player_from_text:"Video player from: {0}",video_player_privacy_policy_text:"Privacy Policy",video_endslate_goto_hp_text:"GO TO MSN HOME",video_endslate_replay_video:"REPLAY VIDEO"}});define("wcvp.videoPlayerTokens",{CultureLocStrings:{"en-us":"United States (English)","ar-ae":"الإمارات العربية المتحدة (العربية‏)","ar-sa":"المملكة العربية السعودية (العربية‏)","ar-eg":"مصر (العربية‏)","ar-xl":"العالم العربي (العربية)","de-de":"Deutschland (Deutsch)","en-ca":"Canada (English)","en-gb":"United Kingdom (English)","en-in":"India (English)","es-mx":"México (español)","fi-fi":"Suomi (suomi)","fr-ca":"Canada (français)","fr-fr":"France (français)","he-il":"ישראל (עברית)‏","it-it":"Italia (italiano)","ja-jp":"日本 (日本語)","pt-br":"Brasil (português)","ru-ru":"Россия (Pусский)","tr-tr":"Türkiye (Türkçe)","th-th":"ไทย (ไทย)","zh-tw":"台灣 (繁體中文)","da-dk":"Danmark (Dansk)","de-at":"Österreich (Deutsch)","de-ch":"Schweiz (Deutsch)","el-gr":"Ελλάδα (ελληνικά)","en-au":"Australia (English)","en-ie":"Ireland (English)","en-nz":"New Zealand (English)","en-ph":"Philippines (English)","en-sa":"Arab Region (English)","en-sg":"Singapore (English)","en-za":"South Africa (English)","es-ar":"Argentina (español)","es-cl":"Chile (español)","es-co":"Colombia (español)","es-es":"España (español)","es-pe":"Perú (español)","es-ve":"Venezuela (español)","es-xl":"América Latina (español)","fr-be":"Belgique (français)","fr-ch":"Suisse (français)","id-id":"Indonesia (Bahasa Indonesia)","ko-kr":"한국 (한국어)","nl-be":"België (Nederlands)","nl-nl":"Nederland (Nederlands)","pl-pl":"Polska (polski)","pt-pt":"Portugal (Português)","sv-se":"Sverige (svenska)","zh-cn":"中华人民共和国 (简体中文)","zh-hk":"香港特别行政區 (繁體中文)","es-us":"United States (español)","en-my":"Malaysia (English)","nb-no":"Norge (norsk, bokmål)","en-ae":"United Arab Emirates (English)","vi-vn":"Việt Nam (Tiếng Việt)","zh-sg":"新加坡 (简体中文)"},ContentErrorCodes:{BufferingFirstByteTimeout:2e3,MediaErrorAborted:2100,MediaErrorNetwork:2101,MediaErrorDecode:2102,MediaErrorSourceNotSupported:2103,MediaErrorUnknown:2104,MediaSelectionNoMedia:2200,ValidationNullVideo:2300,ValidationBlocked:2301},EventTypes:{Started:"started",Completed:"completed"},Events:{Opening:"videoOpening",Playing:"videoPlaying",Paused:"videoPaused",Ended:"playbackCompleted",Buffering:"videoBuffering",Error:"videoPlayFailed",Closed:"videoClosed",Fullscreen:"fullscreen",Video:"video"}});define("wcvp.Logger",["jquery"],function(){function n(){}return{Log:n}});define("wcvp.playerUtils",["jquery"],function(n){function t(n){return n&&n.preventDefault&&n.preventDefault(),!1}function o(n,t,i){var r="[CE{0}]: {1}".format(n,t);return i&&(r+="; (Additional: {0})".format(i)),r}function s(){return((1+Math.random())*1048576|0).toString(32).substring(1)}function h(n,t,i){var o=t.PlayerAspectRatio4x3?4/3:16/9,u=Math.floor(n.width()),r=n.height(),e,f;return r=isNaN(r)||i?0:Math.round(r),e=u,f=Math.round(u/o),r>0&&r<f&&(f=r,e=Math.min(Math.round(r*o),u)),{WrapperWidth:u,WrapperHeight:r,VideoWidth:e,VideoHeight:f}}function c(t,i){var r="",u;return t&&t.tags&&(u=i.toLowerCase(),n.each(t.tags,function(n,t){if(t.ns.toLowerCase()==u)return r=t.value,!1})),r}function l(n){for(var i=null,t;n&&n.nodeName!="BODY"&&n.nodeName!="HTML";){if(t=n.getAttribute("data-offset"),t){t=t.split(";");i={x:parseInt(t[0])||0,y:parseInt(t[1])||0};break}n=n.parentNode}return i}function e(n){var u,t,i,r;return!n||!n.length?null:(u=n.get(0),t=u.getBoundingClientRect(),!t||!t.width||!t.height)?null:(i={left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width,height:t.height},r=l(u.parentNode),r&&(i.left+=r.x,i.right+=r.x,i.top+=r.y,i.bottom+=r.y),i)}function a(n,t,i,r,u){var f=i&&i.bottom||0,e=t.bottom<f||t.top>n.height?0:Math.min(n.height,t.bottom)-Math.max(t.top,f),o=t.right<0||t.left>n.width?0:Math.min(n.width,t.right)-Math.max(0,t.left);return e&&e>=u&&o&&o>=r}function v(t,f,o){var h,s;if(i){if((h=i.getDimensions(),!h)||(s=e(t),!s||!s.width||!s.height))return!1;var c=n(".head").get(0),l=c&&c.getBoundingClientRect(),v=s.width*Math.abs(f||r),y=s.height*Math.abs(o||u);return a(h,s,l,v,y)}return!1}function y(){return document.hasFocus()}function p(){require(["binding"],function(n){n("wcVideoPlayer",".wcvideoplayer:visible:not(.playerloaded)").all()})}var r,u,f,i;return n.RequiredFlashVersion=10,r=1,u=1,n.fn.getRelativePosition=function(t,i){t=n.asInt(t);i=n.asInt(i);t=t+n(window).scrollLeft();i=i+n(window).scrollTop();var r=n(this).offset();return{x:t-r.left,y:i-r.top}},n.fn.disableSelection=function(){return this.each(function(i,r){r.ondragstart=t;n(r).addClass("noselect").css("cursor","default").unbind("selectstart",t).bind("selectstart",t)})},n.asInt=function(n){return n=parseInt(n,10),isNaN(n)?0:n},n.asBool=function(n,t){return typeof n!="undefined"?typeof n=="string"&&(n=="0"||n.toLowerCase()=="false")?!1:!!n:t},n.hash=function(n){for(var t=0,i=0;i<n.length;i++)t=t^n.charCodeAt(i);return t},n.base64Encode=function(t){var h="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,r,u,c,l,s,f,e=0;for(t=n.utf8Encode(t);e<t.length;)o=t.charCodeAt(e++),r=t.charCodeAt(e++),u=t.charCodeAt(e++),c=o>>2,l=(o&3)<<4|r>>4,s=(r&15)<<2|u>>6,f=u&63,isNaN(r)?s=f=64:isNaN(u)&&(f=64),h+=i.charAt(c)+i.charAt(l)+i.charAt(s)+i.charAt(f);return h},n.utf8Encode=function(n){for(var t,r="",i=0;i<n.length;i++)t=n.charCodeAt(i),r+=t<128?String.fromCharCode(t):t>127&&t<2048?String.fromCharCode(t>>6|192)+String.fromCharCode(t&63|128):String.fromCharCode(t>>12|224)+String.fromCharCode(t>>6&63|128)+String.fromCharCode(t&63|128);return r},n.cookie=function(n,t,i){var f,e,r,u,o;if("undefined"==typeof t){if(f=null,document&&document.cookie)for(e=document.cookie.split("; "),r=0;r<e.length;++r)if(u=e[r].split("="),n==u[0]){1<u.length&&(f=unescape(u[1]));break}return f}n&&(null==t&&(i=-1),o=i?" expires="+new Date((new Date).getTime()+i*864e5).toGMTString()+";":"",document.cookie=n+"="+escape(t)+";Path=/;"+o)},n.OnAnchorKeydown=function(n){switch(n.keyCode){case 32:n.currentTarget.click&&(n.currentTarget.click(),n.preventDefault())}},n.ping=function(n){var i,r,t;if(n){try{i=(new Date).getTime()-new Date(1,0,0).getTime();r=Math.floor(Math.random()*1e6);n=n.replace(/\%TIMESTAMP\%|\[TIMESTAMP\]/gi,i);n=n.replace(/\%RANDOM\%|\[RANDOM\]/gi,r);n=n.replace(/&amp;/gi,"&")}catch(u){}t=new Image;t.onload=t.onerror=function(){t.onload=t.onerror=null};t.src=n}},n.setUrlParams=function(t,i,r){var u,f,e,o,s,h;if(t&&i){t=t.split("?");u=t.length<2?{}:n.parseQueryString(t[1],!1,!0);for(f in i)e=f.toLowerCase(),r&&u[e]||(u[e]=i[f]);o="?";t=t[0];for(s in u)h=u[s],t+=o+s+"="+(h?encodeURIComponent(h):""),o="&"}return t},n.parseQsp=function(){return n.parseQueryString(window.location.search.substring(1))},f=/([^&=]+)=?([^&]*)/g,n.parseQueryString=function(n){for(var i={},r=function(n){return decodeURIComponent(n.replace(/\+/g," "))},t;(t=f.exec(n))!=null;)i[r(t[1].toLowerCase())]=r(t[2]);return i},n.parseUrl=function(t){var r=/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?(([^:\/?#]*)(?::(\d*))?)))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),i={};return n.each(["original","scheme","authority","userInfo","user","password","hostAndPort","host","port","relative","path","directory","file","query","target"],function(n,t){i[t]=r[n]}),i},n.makeFlashvars=function(t){var i=[];return n.each(t,function(n,t){(t||typeof t=="boolean")&&i.push(n+"="+("string"==typeof t?encodeURIComponent(t):t))}),i.join("&")},n.attachDragEvents=function(t,i){n.detachDragEvents();n(document.body).bind("mouseup.dragging",i);n(document.body).bind("mouseleave.dragging",i);n(document.body).bind("mousemove.dragging",t)},n.detachDragEvents=function(){n(document.body).unbind("mouseup.dragging");n(document.body).unbind("mouseleave.dragging");n(document.body).unbind("mousemove.dragging")},n.toJSON=function(t){var i,r;if(JSON&&JSON.stringify)return JSON.stringify(t);if(i="",t instanceof Array)i="[",n.each(t,function(t,r){i+=t?",":"";switch(typeof r){case"string":i+='"'+r+'"';break;case"object":i+=n.toJSON(r);break;default:i+=r}}),i+="]";else{i="{";for(r in t){i+='"'+r+'":';switch(typeof t[r]){case"string":i+='"'+t[r]+'"';break;case"object":i+=n.toJSON(t[r]);break;default:i+=t[r]}i+=","}i.length>1&&(i=i.substr(0,i.length-1));i+="}"}return i},n.addImageElement=function(t,i,r,u){var f=n("<div>"),e=n("<img>").addClass("image").attr("alt",i).attr("src",t).bind("dragstart",function(){return!1});return u||(f.addClass("sprite_image"),e.addClass("sprite_image")),f.appendTo(r),e.appendTo(f)},n.getRawCssText=function(t){var i=null;return document.styleSheets&&n.each(document.styleSheets,function(r,u){u.cssRules&&n.each(u.cssRules,function(n,r){if(r.selectorText!=null&&r.selectorText.indexOf(t)!=-1)return i=r.cssText,!1})}),i},n.getLocalizedStringsConcatenatedAndEncodedForFlashVar=function(t){var i=[];return n.each(t,function(n,t){i.push(n+":"+escape(t))}),i.join(",")},n.getFlashInstalledVersion=function(){var r,n=null,i="Shockwave Flash",h=window.ActiveXObject,u=window.navigator.plugins,t,f,o,e,s;if(u&&u.length)n=u[i]||u[i+" 2.0"],f=window.navigator.mimeTypes,n&&n.description&&(!f||f["application/x-shockwave-flash"]&&f["application/x-shockwave-flash"].enabledPlugin)&&(n.version?r=parseInt(n.version.split(".")[0]):(t=n.description.split(" "),o=n.description.indexOf("Debugger")>0?t[3]:t[2],r=parseInt(o.split(".")[0])+.1*parseInt(o.split(".")[1])));else if(h)for(i="ShockwaveFlash.",e=15;e>2;--e)try{n=new h(i+i+e);s="None 0,0";try{s=n.GetVariable("$version")}catch(c){}t=s.split(",");r=parseInt(t[0].split(" ")[1])+.1*parseInt(t[1]);break}catch(l){}return r},n.locationRoot=function(n){for(var t=n.indexOf("/",0),i=2;i-->0&&t!=-1;)t=n.indexOf("/",t+1);return t!=-1?n.substr(0,t):""},n.htmlDecode=function(t){return t?n("<textarea/>").html(t).text():t},require(["viewport"],function(n){i=n}),{formatContentError:o,S4:s,videoElementSizes:h,GetVideoTag:c,IsDocumentInView:y,IsInView:v,GetPlayerPosition:e,LoadPlayersInView:p}});Date.prototype.toLogTime||(Date.prototype.toLogTime=function(){var n=this.getHours(),t=this.getMinutes(),i=this.getSeconds();return n=n<10?"0"+n:n,t=t<10?"0"+t:t,i=i<10?"0"+i:i,n+":"+t+":"+i});typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});define("wcvp.classFramework",["jquery"],function(n){var t=function(){this.DeclareClass=function(t,i){Object.create||(Object.create=function(){function n(){}return function(t){if(arguments.length!==1)throw new Error("Object.create implementation only accepts one parameter.");return n.prototype=t,new n}}());t.prototype=n.extend(Object.create(Object.prototype),t.prototype,i);t.prototype.constructor=t};this.DeriveClass=function(t,i,r){t.prototype=Object.create(i.prototype);t.prototype=n.extend(t.prototype,r);t.prototype.constructor=t}};return new t});define("wcvp.environment",["jquery"],function(n){var t=navigator.userAgent,a=t.match(/Silk/i),u=/\bSilk\/(\d+)\.(\d+)/.test(t),o=u?Number(RegExp.$1):0,v=u?Number(RegExp.$2):0,f=o>3||o>=3&&v>=5,i=a||t.match(/Android/i),s=/Android (\d+\.\d+)/i.test(t)?new Number(RegExp.$1):u?f?4:1:0,h=t.match(/iPhone/i)||t.match(/iPod/i),c=t.match(/iPad/i),e=c||h,l=t.match(/BlackBerry/i),r=t.match(/Windows Phone/i),y=r&&t.match(/HTC/i),p=/Windows NT(\s)*(\d+\.\d+)/.test(t)?parseFloat(RegExp.$2):-1;return{IE:/MSIE (\d+\.\d+)/.test(t)?new Number(RegExp.$1):/Trident.*rv:(\d+\.\d+)/.test(t)?new Number(RegExp.$1):0,IEMobileModern:/\bIEMobile\/(\d+\.\d+)/.test(t)?Number(RegExp.$1)>=10:/Windows Phone (\d+\.\d+)/i.test(t)?Number(RegExp.$1)>=10:!1,SilkModern:f,Android:i,AndroidVersion:s,AndroidModern:i&&(s>=4||f),IPhone:h,IPad:c,IProduct:e,BlackBerry:l,WindowsPhone:r,HtcWindowsPhone:y,IsMobile:e!=null||i!=null||l!=null||r!=null,NativeControls:e!=null||i!=null||r!=null,Webkit:t.match(/Webkit/i),Qsps:n.parseQsp(),Firefox:t.match(/Firefox/i),TV:t.match(/.*SMART\-TV.*Safari\/(535\.20\+|537\.42)/),WindowsRT:/^.*?\bWindows\b.*?\bARM\b.*?$/m.test(t),WindowsVersion:p}});define("wcvp.inViewOrchestrator",["jquery","viewport","mediator","wcvp.playerUtils","wcvp.Logger","c.deferred"],function(n,t,i,r){function p(){return!document[c]}function e(){}function w(){u&&(e("Clearing current player"),l(u,a));u=null;o=!1}function b(n){n&&u!==n&&(u&&l(u,a),e("Setting current player to : "+n.Config.PlayerId),u=n,o=!0)}function l(n,t){e("Triggering "+t+" on player "+n.Config.PlayerId);n&&n.TriggerAction&&n.TriggerAction(t)}function k(n){var t=n.Config&&n.Config.InViewWidthFraction,i=n.Config&&n.Config.InViewHeightFraction;return r.IsInView(n.Container,t,i)}function ct(n){var t=lt(n);return t.length&&r.IsInView(t,st,ht)}function lt(t){return t&&t.Container?n(t.Container).parent().find(".videoplaceholder"):null}function at(n){return!n||!n.Container?!1:n.Container.data("isShrunk")}function h(){var t=!1,h,s,c,r,n;if(u&&(o&&(t=k(u),h=k?nt:y,u.Report(h)),at(u)&&(t=ct(u)),s=t?tt:ot,(o||s==tt)&&i.pubChannel(s,u.Config.PlayerId,{Player:u,PlayerId:u.Config.PlayerId})),o&&u&&(u.HasUserInteracted()||t)){e(u.Config.PlayerId+" is already playing");return}for(u&&u.Report(y),c=!1,r=0;r<f.length;r++)if((n=f[r],u!==n)&&!n.HasUserInteracted()&&k(n)){if(ft(n),!p()){e("Document is not visible, not triggering inview play");return}if(n.Config.InViewPlay){e("Playing "+n.Config.PlayerId);l(n,et);b(n);n.Report(nt);c=!0;break}}}function it(){p()?(e("Document got focus triggering inview play"),h()):(e("Document lost focus"),o&&u&&(u.Report(y),u.HasUserInteracted()||w()))}function v(n){n.contentStartReported||(n.contentStartReported=!0);ft(n)}function rt(n){d(n)}function ut(t){if(t&&!(n.inArray(t,f)<0))if(t.IsContentPlaying&&t.IsContentPlaying()){if(t!==u){for(var i=0;i<f.length;i++)f[i]!==t&&l(f[i],a);b(t)}}else t===u?w():(u&&l(u,a),b(t))}function vt(n){var u=r.GetPlayerPosition(n.Container),t,i;if(!u){f.push(n);return}for(t=0;t<f.length;){if(i=r.GetPlayerPosition(f[t].Container),i&&u.top<i.top)break;t++}f.splice(t,0,n);n.IsAboveFold=r.IsInView(n.Container,n.Config&&n.Config.InViewWidthFraction,n.Config&&n.Config.InViewHeightFraction)}function yt(){i.sub("ContentComplete",rt);i.sub("ContentStart",v);i.sub("AdStart",v);i.sub("OnVideoUserInteraction",ut)}function pt(){i.unsub("ContentComplete",rt);i.unsub("ContentStart",v);i.unsub("AdStart",v);i.unsub("OnVideoUserInteraction",ut)}function wt(n){n&&(e("Registering "+n.Config.PlayerId),vt(n),u||(e("Triggering inview play after registering the player"),h()))}function d(n){if(n){e("Disposing "+n.Config.PlayerId);u===n&&w();var t=f.indexOf(n);t>=0&&f.splice(t,1)}}function bt(){n(document).bind(s,it);i.sub(t.scrollChangeEventName,h);i.sub(t.sizeChangeEventName,h)}function kt(){n(document).unbind(s,it);i.unsub(t.scrollChangeEventName,h);i.unsub(t.sizeChangeEventName,h)}function dt(){kt();pt()}function ft(n){if(n.Config.IsInlinePlayer){var t="AV";t+=n.Config.InViewPlay?"_IVP":n.Config.AutoPlay?"_APT":"_APF";t+=p()?"_FT":"_BT";t+=n.IsAboveFold?"_AF":"_BF";g[t]||require(["trackInfo"],function(n){g[t]=!0;n.updateTemplValue(t);n.telemetryTracking.sendImprUpdateEvent("videoPlayer",n.telemetryTracking.formatModules())});n.Config.InViewPlay||d(n)}}var f=[],g=[],u,et="play",a="pause",nt="VideoFocusIn",y="VideoFocusOut",tt="videoplaceholderfocusin",ot="videoplaceholderfocusout",o=!1,st=.25,ht=.25,c,s;return typeof document.hidden!="undefined"?(c="hidden",s="visibilitychange"):typeof document.mozHidden!="undefined"?(c="mozHidden",s="mozvisibilitychange"):typeof document.msHidden!="undefined"?(c="msHidden",s="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(c="webkitHidden",s="webkitvisibilitychange"),bt(),yt(),{RegisterPlayer:wt,DisposePlayer:d,Dispose:dt}});define("wcvp.inviewplay",["jquery","viewport","mediator","c.deferred"],function(n,t,i){function u(u,f,e,o,s){function p(){var n=l?"Above":"Below";r[n]||(r[n]=!0,require(["trackInfo"],function(t){t.updateTemplValue("InViewPlay"+n+":"+e.InViewPlay);t.telemetryTracking.sendImprUpdateEvent("videoPlayer",t.telemetryTracking.formatModules())}));e.InViewPlay||v()}function a(){v();e.InViewPlay=!1}function w(){n(window).bind("focus blur",h);i.sub(t.scrollChangeEventName,h);i.sub(t.sizeChangeEventName,h);n(".video_player_inner>div, video",u).bind("click keydown",a)}function v(){n(window).unbind("focus blur",h);i.unsub(t.scrollChangeEventName,h);i.unsub(t.sizeChangeEventName,h);n(".video_player_inner>div, video",u).unbind("click keydown",a)}function h(){if(b()&&y()){if(p(),u.ReportEvent("VideoFocusIn"),!e.InViewPlay)return;c!=="playing"&&(window.MsnVideo2?window.MsnVideo2.sendMessage({type:"playVideo",targetId:f,targetGroup:e.WidgetGroup}):u.trigger("Play"),c="playing")}else{if(u.ReportEvent("VideoFocusOut"),!e.InViewPlay)return;c!=="paused"&&(window.MsnVideo2?window.MsnVideo2.sendMessage({type:"pauseVideo",targetId:f,targetGroup:e.WidgetGroup}):u.trigger("Pause"),c="paused")}}function b(){return document.hasFocus()}function y(){var h=t.getDimensions(),e,i;if(!h||(e=u.get(0),i=e.getBoundingClientRect(),!i||!i.width||!i.height))return!1;var c=n(".head").get(0),l=c&&c.getBoundingClientRect(),a=i.width*Math.abs(o||1),v=i.height*Math.abs(s||1),r={left:i.left,right:i.right,top:i.top,bottom:i.bottom},f=d(e.parentNode);return f&&(r.left+=f.x,r.right+=f.x,r.top+=f.y,r.bottom+=f.y),k(h,r,l,a,v)}function k(n,t,i,r,u){var f=i&&i.bottom||0,e=t.bottom<f||t.top>n.height?0:Math.min(n.height,t.bottom)-Math.max(t.top,f),o=t.right<0||t.left>n.width?0:Math.min(n.width,t.right)-Math.max(0,t.left);return e&&e>=u&&o&&o>=r}function d(n){for(var i=null,t;n&&n.nodeName!="BODY"&&n.nodeName!="HTML";){if(t=n.getAttribute("data-offset"),t){t=t.split(";");i={x:parseInt(t[0])||0,y:parseInt(t[1])||0};break}n=n.parentNode}return i}var l=!1,c;u.length&&(l=y(),w(),h());c="paused"}var r=[];return u});define("advancedHistory",["window"],function(n){function f(n,t){var u,f,o,e;if(i)if(u=r[n],u)if(typeof u=="function")u!=t&&(r[n]=[u,t]);else{for(f=!1,e=0;o=u[e];++e)if(o==t){f=!0;break}f||u.push(t)}else r[n]=t}function e(n,t){var u,e,f;if(i&&(u=r[n],u))if(typeof u=="function")u===t&&delete r[n];else for(f=0;e=u[f];++f)if(typeof e=="function"&&e===t){u.splice(f,1);break}}function o(n,r,u,f){if(i){var e={stateType:n,stateObject:r};typeof u=="undefined"?t.pushState(e,f||""):t.pushState(e,f||"",u)}}function s(n,r,u,f){if(i){var e={stateType:n,stateObject:r};typeof u=="undefined"?t.replaceState(e,f||""):t.replaceState(e,f||"",u)}}function h(){i&&t.back()}function c(){i&&t.forward()}function l(n){i&&n&&t.go(n)}function a(){if(i){var n=t.state;if(n)return n.stateType}}function v(){if(i){var n=t.state;if(n&&n.stateType)return n.stateObject}}function y(n){var t,i=n.state,f,e;if(i)t=i.stateType,t&&(f=r[t],f&&(e=i.stateObject,u(f,e)));else for(t in r)u(r[t],null)}function u(n,t){if(typeof n=="function")n(t);else if(n&&n.length>0)for(var i,r=0;i=n[r];++r)typeof i=="function"&&i(t)}var t=n.history,i=!!(t&&t.pushState),r={};return i&&n.addEventListener("popstate",y),{on:f,off:e,push:o,replace:s,back:h,forward:c,go:l,currentType:a,currentState:v,isSupported:i}});define("wcvp.cppajax",["jquery","binding","advancedHistory","wcvp.wcAjax","navigation","perfMarker","mediator","wcvp.playerConfig","imgSrc","c.deferred"],function(n,t,i,r,u,f,e,o,s){function d(){var i=n(v),t=i.attr("data-cppajax-maxcount");t&&!isNaN(t)&&(l=parseInt(t))}function g(){var t=n(".playlist-container"),i=t.length&&t.data("nextvideourl");return u.getUrl(i)}function nt(){var t=n(v,h),i,r;return t.length?(i=t.attr("data-tracking-info"),r=JSON.parse(i.replace("{ ,","{").replace(/&quot;/g,'"')),r):null}function tt(){var t=n(".wcvideoplayer",h);return t.length?o(t):null}function b(n){if(n){c||(document.referrerOverride=document.location.href);var t={url:n};i&&i.push(w,t,n)}}function it(){var r=n("head"),u=n("head",h),f,e,i,t;if(document.title=n("title",u)[0].text,r.length&&u.length){for(f=n("meta",r),e=n("meta",u),t=0;t<f.length;t++)i=f[t],i.parentNode.removeChild(i);for(t=0;t<e.length;t++)i=e[t],r.append(i)}}function rt(){for(var t,u,r=0;r<y.length;r++)for(t=y[r],u=0;u<t.elements.length;u++){var f=t.elements[u],s=n(t.parent,h),e=n(f,s),i=n(f,t.parent),o=i.length&&i.parent()||n(t.parent).first();i.length?(i.replaceWith(e),n("img",i).remove()):o.length&&o.append(e)}}function ut(){for(var t,r,i=0;i<p.length;i++)for(t=p[i],r=0;r<t.attributes.length;r++){var u=t.attributes[r],f=n(t.elem),e=n(t.elem,h);f.length&&e.length&&f.attr(u,e.attr(u))}}function ft(){require(["track"],function(n){n.clearImpressionCache()});s.clearImages();rt();ut();it();t("autoSizeFlex",".flexenabled > ul").all();t("renderSectionAd",".pagingsection").all();t("pagingSection",".pagingsection").all();t("readMoreSeeLess",".primary-video-description").all();window&&window.loadDeferredImages&&window.loadDeferredImages()}function k(n,t){f&&f("NextVideoStart",!0,!0);c&&(b(document.location.href),c=!1);var i=n||g();ot(i,document.location.href)?et(i,t):u.navigate(i)}function et(n,i){if(l>=0&&a>=l){u.navigate(n);return}a++;r.ajax({url:n,dataType:"html",success:function(r){var e,o,f;if(r)try{e=new window.DOMParser;h=e.parseFromString(r,"text/html");h?(i||b(n),o=nt(),f=tt(),f.Container=null,f.cppajaxCount=a,t("wcVideoPlayer",".wcvideoplayer").all({videoUrl:n,trackingData:o,config:f,skipMetadataCall:!0,callback:null}),ft(),h=null):u.navigate(n)}catch(s){u.navigate(n)}},error:function(){u.navigate(n)}})}function ot(n,t){var i,r,u;return!n||!t?!1:(i=document.createElement("a"),i.href=n,r=i.protocol,i.href=t,u=i.protocol,r&&u&&r==u)}function st(n){n&&k(n.url,!0)}var h=null,c=!0,w="videoCPPAjax",l=-1,a=0,v,y,p;return v=".player-area-background",y=[{parent:".primary-playback-region-body",elements:[".primary-video-info",".playlist-and-ad"]},{parent:".player-module-arrows",elements:[".rightarrow",".leftarrow"]},{parent:"#main",elements:["#sub-content"]}],p=[{elem:"video",attributes:["title"]},{elem:".video_play_thumb img",attributes:["src"]}],i&&i.on(w,st),d(),{RefreshPage:k}});define("wcvp.adTrigger",["jquery","wcvp.Logger"],function(n,t){function i(i){function c(n){r.VideosPlayedCounter=n?e:0;r.TimePlayingCounter=0;r.TimeElapsedCounter=0;n&&r.SaveState()}function p(){var t=n.cookie(h);t?(t=t.split("|"),t.length===3&&(r.VideosPlayedCounter=n.asInt(t[0]),r.TimePlayingCounter=n.asInt(t[1]),r.TimeElapsedCounter=n.asInt(t[2]))):(r.SaveState(),t=n.cookie(h),t||(y=!0))}function w(){c(!0);a&&(r.TimeElapsedCounter=Math.floor((new Date).getTime()/1e3),r.SaveState(),window.location.reload())}function b(){r.VideosPlayedCounter++;e>0&&e==r.VideosPlayedCounter&&c(!0);r.SaveState()}function k(){r.TimeElapsedCounter||(r.TimeElapsedCounter=Math.floor((new Date).getTime()/1e3));b()}function v(){i.Container&&i.Container.unbind("."+f)}function d(){v();i.Container.bind("AdComplete."+f,w).bind("ContentStart."+f,k)}function g(){var n=r.TimeElapsedCounter?(new Date).getTime()/1e3-r.TimeElapsedCounter:0;return"User TimeElapsed="+n+", User TimePlayed="+r.TimePlayingCounter+", User VideoPlayed="+r.VideosPlayedCounter+", VideosPlayedNoAds="+e+", VideosPlayed="+l+", TimePlaying="+o+", TimeElapsed="+s}var r=this,u;r.VideosPlayedCounter=null;r.TimePlayingCounter=null;r.TimeElapsedCounter=null;var h="trg",f="AdTrigger",y=!1,e=null,l=null,o=null,s=null,a=null;r.SaveState=function(){var t=r.VideosPlayedCounter+"|"+r.TimePlayingCounter+"|"+r.TimeElapsedCounter;n.cookie(h,t,10/1440)};u=i.AdConfig;u.PolicyType!=="noads"&&(e=n.asInt(u.VideosPlayedNoAds),l=n.asInt(u.VideosPlayed),o=n.asInt(u.TimePlaying),s=n.asInt(u.TimeElapsed),a=u.UsePageReload,o>0&&!s&&(s=o));c();p();v();d();t.Log(g(),f);t.Log("AdTrigger initialized",f)}return i});define("wcvp.AdTargeting",["jquery","getCookie","wcvp.Logger"],function(n,t,i){function r(r){function a(n){i.Log(n,"AdTargeting")}function s(t,r,u,f){return i.Log("Ajax call initiated for "+t),n.ajax({url:t,dataType:r,timeout:h*1e3,xhrFields:{withCredentials:!0},success:function(n){i.Log("Ajax Request complete for "+t);f(n,u)},error:function(n){a("Ajax error for Url + "+t+":"+n);f("",u)}})}function v(n){n&&(f.VisitorToken=n,n.indexOf("=")!==-1&&(f.VisitorToken=n.split("=")[1]))}function y(n){n&&(f.AOLTokenObj=n)}var f=this;f.VisitorToken=null;f.AOLTokenObj={};var o=0,e=r.AdConfig,h=e.TargetingServiceTimeout||1,c=e.VisitorTargetingService,l=e.AOLTargetingService,u=e.UseTargetingService.toLowerCase();this.SubmitTargetingRequests=function(i,r){if(u==="none"||u==="msn"&&!r){typeof i=="function"&&i();return}var f=[];u!=="aol"&&u!=="both"||n.asBool(t("TOptOut"))||f.push(s(l,"jsonp",o++,y));(u==="msn"||u==="both")&&f.push(s(c,"text",o++,v));typeof i=="function"&&n.when.apply(n,f).then(i,i)}}return r});define("flashJsBridge",["window"],function(n){function i(){function o(n,i){var r;n=n.toLowerCase();t[n]||(t[n]=[]);var f=!1,u=t[n],e=u.length;for(r=0;r<e;r++)if(u[r].playerId==i.playerId){f=!0;break}f||u.push(i)}function i(n){return typeof n=="function"}function u(n,t){for(var f,u=null,e=t.length,r=0;r<e;r++)try{if(i(t[r].GetPlayerId)&&n==t[r].GetPlayerId()){u=t[r];break}}catch(o){f="caught exception in FlashJSBridge.GetNodeById: "+o.description;console.log(f)}return u}function f(n){var t=document.getElementsByTagName("OBJECT"),i=u(n,t);return null==i&&(t=document.getElementsByTagName("EMBED"),i=u(n,t)),i}function e(){}function r(n){return typeof n!="undefined"&&null!=n}function s(n,t){var s=t.eventType,o=t.param,h=t.playerId,u;i(n.callback)?(e(t,"AS To JS"),n.callback(o)):(e(t,"JS to AS"),u=f(h),r(u)&&i(u.FlashCallback)&&u.FlashCallback(s,o))}function h(n,t){return{playerId:n,callback:t}}function c(n,i){var f,e,u;if(i=i.toLowerCase(),r(t[i]))for(f=t[i],e=f.length,u=0;u<e;u++)if(f[u].playerId==n){delete f[u];f[u]=null;f.splice(u,1);break}}this.AddMessageReceiver=function(n){o(n.eventType,h(n.playerId,n.callback))};this.RemoveMessageReceiver=function(n){c(n.playerId,n.eventType)};this.SendMessage=function(n){var f=n.eventType.toLowerCase(),i,u,o;if(r(t[f])){var h=n.playerId,e=t[f],c=e.length;for(i=0;i<c;i++)try{u=e[i];u.playerId==h&&s(u,n)}catch(l){o="Error occured in FlashInterface.SendMessage: "+l.description;console.log(o)}}};this.GetFlashPlayer=function(n){return f(n)};n.FlashJsBridge||(n.FlashJsBridge={sendMessage:this.SendMessage,MessageListeners:{}});t=t||n.FlashJsBridge.MessageListeners}var t;return i});define("wcvp.fwAdManager",["jquery","wcvp.environment","wcvp.adTrigger","wcvp.AdTargeting","wcvp.Logger"],function(n,t,i,r,u){function o(o){function a(n){u.Log(n,"FWAdManager")}function ti(t){h.IsAdPlaying=!1;h.AdType=null;h.IsVpaid=!1;h.IsFreeWheel=!0;p=!1;tt=!1;v=t||o.Config;c=v.AdConfig;c.PageGroup=v.adpagegroups&&v.adpagegroups[vi]||c.PageGroup;dt=c.AdManagerRequestTimeout*5;vt=Math.round(Math.random()*1e5);g=c.FWServer;nt=n.asInt(c.FWNetworkId);yt=c.FWHtml5Profile;gt=v.Video.pageGroup||c.PageGroup;ni=c.AdTimeout||5;p=!1;tt=!1;w=new i(v);ft=new r(v)}function ii(t,i,r){var u,f,e;t&&t.length>0&&!isNaN(i)&&i>0&&!isNaN(r)&&r>0&&(u=n("#"+t),u&&(f="slot"+vt+"_"+t,e='<span id="{0}" class="_fwph"><form id="_fw_form_{0}" style="display:none"><input type="hidden" name="_fw_input_{0}" id="_fw_input_{0}" value="slid={0}&ptgt=p&envp=g_iframe&w={1}&h={2}"><\/form><span id="_fw_container_{0}" class="_fwac"><\/span><\/span>',u.html(e.format(f,i,r)),it.push({div:u,id:t,w:i,h:r,slotId:f})))}function pi(t){"string"==typeof t?n.each(t.split(";"),function(n,t){if(/(\w+)\s*[,|]\s*(\d+)\s*[,|]\s*(\d+)/.test(t)){var i=RegExp.$1,r=RegExp.$2,u=RegExp.$3;ii(i,r,u)}}):"object"==typeof t&&n.each(t,function(n,t){if(/(\d+)x(\d+)/.test(n)){var i=RegExp.$1,r=RegExp.$2;t.indexOf("#")===0&&(t=t.slice(1));ii(t,i,r)}})}function pt(){return window.tv&&tv.freewheel&&tv.freewheel.SDK&&tv.freewheel.SDK.AdManager}function wi(){f=!1;pt()&&(b=new tv.freewheel.SDK.AdManager,b.setNetwork(nt));a("FWAdManager initialized");et("AdManagerLoaded");lt&&(lt=!1,h.LoadAds(at,ut))}function et(n){o&&o.ReportPerfMarker&&o.ReportPerfMarker(n)}function ri(){var n=f++;pt()||n>dt?wi():(n%5||a("waiting for FW AdManager.js to load..."),setTimeout(ri,200))}function ui(){rt&&(clearTimeout(rt),rt=null)}function bi(){var i,t,n;s&&(i=!1,t=ft.VisitorToken,t&&t.length&&(s.setVisitor(t),g+="?_fw_ekv=1:"+t,i=!0),v.PlayerMode==="test"&&c.AdTagUrl&&(s.addKeyValue("csURL",c.AdTagUrl),g+=(i?"&":"?")+"cana=4260535,4260536,4260537"),n=ft.AOLTokenObj,n&&(n.utid&&s.addKeyValue("utid",n.utid),n.audiences&&s.addKeyValue("_fw_seg","10886:"+n.audiences.join(","))),s.addKeyValue("msn_player_tech","html5"),b.setServer(g),p=!1,tt=!1,rt=setTimeout(function(){ki()},ni*1e3),s.submitRequest(ht),et("AdRequestStart"))}function wt(t){a("OnRequestComplete");et("AdRequestComplete");ui();t.success&&!p&&(n.each(s.getTemporalSlots(),function(n,t){switch(t.getTimePositionClass()){case tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL:k.push(t);break;case tv.freewheel.SDK.TIME_POSITION_CLASS_MIDROLL:y.push({slot:t});break;case tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL:d.push(t)}}),n.each(it,function(n,t){t.hidden&&di(t,!1)}));fi()}function ki(){p||(p=!0,a("HTML5 ad timedout"),l?(l.stop(!0),setTimeout(function(){bt()},1e3)):bt())}function bt(n){tt||(tt=!0,o.ReportAdTimeout(n),wt({success:!1}))}function fi(){var n=ut;n&&(ut=null,n())}function di(n,t){if(s){var i=s.getSlotByCustomId(n.slotId);i&&i.setVisible&&i.setVisible(t)}}function gi(){o.ReportSlotPlayStarted()}function kt(n){var t=n.slot,i=t.getTimePositionClass();if(a("onSlotEnded slotTimePositionClass: "+i),l==t&&(l=null,h.IsAdPlaying=!1,h.AdType=null),p){bt();return}switch(i){case tv.freewheel.SDK.TIME_POSITION_CLASS_PREROLL:k.shift();hi();break;case tv.freewheel.SDK.TIME_POSITION_CLASS_MIDROLL:ir();break;case tv.freewheel.SDK.TIME_POSITION_CLASS_POSTROLL:d.shift();ci()}}function ei(t){var i=t.adInstance,r,u;i&&l==i.getSlot()&&(h.AdId=t.adInstance.getAdId(),h.IsAdPlaying=h.AdType&&h.AdType!="overlay",r=i.getAllCreativeRenditions(),u=r.length>0?r[0]:null,h.IsVpaid=u&&u.getCreativeApi().toLowerCase().indexOf("vpaid")>=0,nr(),o.Report("BufferComplete",{isAd:!0}),o.Report("AdStart"),n.each(it,function(t,r){var u=!0;n.each(i.getCompanionAdInstances(),function(n,t){var i=t.getSlot();return i&&i.getCustomId()==r.slotId&&(a("companion available: id="+r.id+", "+r.width+"x"+r.height),r.div.css("visibility","visible"),o.Broadcast("CompanionAdRendered",r),u=!1),u})}))}function nr(){n.each(it,function(n,t){t.div.css("visibility","hidden")})}function oi(){h.IsVpaid&&(h.IsVpaid=!1,o.OnAdEnded());h.IsAdPlaying=!1}function si(){o.Pause()}function tr(n){a("Error: "+n.message)}function ir(){o.PlayerElt.bind("canplay.freewheelAdManager",function(){o.PlayerElt.unbind("canplay.freewheelAdManager");o.SetCurrentPlayingTime(ai);o.Play()});a("FWAdManager: Setting player src : "+ct);o.PlayerElt.attr("src",ct)}function st(n,t){l=t;h.AdType=n;h.IsAdPlaying=!0;t.play()}function hi(){et("AdSlotPlayStart");k.length?st("preroll",k[0]):o.Play();o.ReportSlotPlayEnded()}function rr(){while(y.length&&(y[0].played||y[0].slot.getTimePositionClass==tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY))y.shift();y.length?(y[0].played=!0,st("midroll-as-postroll",y[0].slot)):ci()}function ci(){d.length?st("postroll",d[0]):(s&&s.setVideoState(tv.freewheel.SDK.VIDEO_STATE_COMPLETED),o.PlaybackComplete())}var h=this,ot;h.AdId=null;h.AdUrl=null;h.ClickThrough=null;h.PlayerTechnologyUsed="HTML5";var ht=20,it=[],b=null,s=null,ct=null,k=null,y=null,li=null,d=null,l=null,lt=!1,rt=null,at=null,ut=null,ai=null,v,c,vi=t.TV?"tvweb":t.IsMobile?"mobileweb":"web",dt,vt,g,nt,yt,gt,ni,p=!1,tt=!1,yi=!(t.IProduct||t.AndroidModern||t.IE>9||t.Webkit),w,ft;ti();pi(v.AdDiv);e||pt()||(ot=c.FWJSAdManagerLocation,e="string"==typeof ot&&ot.length?ot:"//adm.fwmrm.net/p/vitest-js/AdManager.js",require({js:e}));ri();this.LoadAds=function(n,t){if(at=n,ut=t,k=[],y=[],li=[],d=[],!b){f?lt=!0:setTimeout(function(){fi()},0);return}s&&(s.removeEventListener(tv.freewheel.SDK.EVENT_REQUEST_COMPLETE,wt),s.removeEventListener(tv.freewheel.SDK.EVENT_AD_IMPRESSION,ei),s.removeEventListener(tv.freewheel.SDK.EVENT_AD_IMPRESSION_END,oi),s.removeEventListener(tv.freewheel.SDK.EVENT_SLOT_ENDED,kt),s.removeEventListener(tv.freewheel.SDK.EVENT_AD_CLICK,si),s.dispose());s=b.newContext();s.setContentVideoElement(o.Player);s.setProfile(yt);s.setVideoAsset(n.uuidBase32||n.uuid,n.durationSecs,at.adNetworkId||nt,null,v.AutoPlay?tv.freewheel.SDK.VIDEO_ASSET_AUTO_PLAY_TYPE_ATTENDED:tv.freewheel.SDK.VIDEO_ASSET_AUTO_PLAY_TYPE_NONE,Math.round(Math.random()*1e5));s.addKeyValue("FUFASSETID",n.uuidBase32);s.setSiteSection(gt,nt,vt);var i=c.AdBitrate;isNaN(i)||(a("desired ad bitrate = "+i),s.setParameter(tv.freewheel.SDK.PARAMETER_DESIRED_BITRATE,i,tv.freewheel.SDK.PARAMETER_LEVEL_OVERRIDE));s.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_DISPLAY_CONTROLS_WHEN_PAUSE,!1,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);s.addEventListener(tv.freewheel.SDK.EVENT_REQUEST_COMPLETE,wt);s.addEventListener(tv.freewheel.SDK.EVENT_AD_IMPRESSION,ei);s.addEventListener(tv.freewheel.SDK.EVENT_AD_IMPRESSION_END,oi);s.addEventListener(tv.freewheel.SDK.EVENT_SLOT_STARTED,gi);s.addEventListener(tv.freewheel.SDK.EVENT_SLOT_ENDED,kt);s.addEventListener(tv.freewheel.SDK.EVENT_AD_CLICK,si);v.PlayerMode==="test"&&s.addEventListener(tv.freewheel.SDK.EVENT_ERROR,tr);s.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_START_DETECT_TIMEOUT,ht*1e3,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);s.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_PROGRESS_DETECT_TIMEOUT,ht*1e3,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);ft.SubmitTargetingRequests(bi,!0)};this.BeginPlayback=function(){ct=o.PlayerElt.attr("src");hi()};this.SkipAd=function(){l&&(l.stop(),kt({slot:l}))};this.RestartAd=function(){o.OnAdEnded()};this.TimeUpdate=function(t){var f,i,r,e,u;l||(f=Number.POSITIVE_INFINITY,i=null,n.each(y,function(n,u){r=t-u.slot.getTimePosition();r>=0&&r<f&&(!yi||u.slot.getTimePostionClass==tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY)&&(f=r,i=u)}),i&&!i.played&&(i.played=!0,e=i.slot,u="miroll",e.getTimePositionClass()==tv.freewheel.SDK.TIME_POSITION_CLASS_OVERLAY&&(u="overlay",s.setParameter("renderer.html.marginHeight",50,tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL)),a("TimeUpdate playing "+u),st(u,e)))};this.VideoPlaying=function(){s&&s.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PLAYING)};this.VideoPaused=function(){s&&s.setVideoState(tv.freewheel.SDK.VIDEO_STATE_PAUSED)};this.VideoStopped=function(){s&&s.setVideoState(tv.freewheel.SDK.VIDEO_STATE_STOPPED)};this.VideoEnded=function(){a("OnContentVideoEnded");s&&s.setVideoState(tv.freewheel.SDK.VIDEO_STATE_STOPPED);rr()};this.VideosPlayedCounter=function(){return w.VideosPlayedCounter};this.TimePlayingCounter=function(){return w.TimePlayingCounter};this.TimeElapsedCounter=function(){return w.TimeElapsedCounter};this.Refresh=function(n){h.IsAdPlaying&&l&&l.stop(!0);ti(n);ui()};this.Dispose=function(){w&&w.SaveState()};a("AdManager initialized (Provider="+c.AdProvider+", FWServer="+g+", FWNetworkId="+nt+", FWHtml5Profile="+yt+")")}var f=!1,e=null;return o});define("wcvp.flashAdManager",["jquery","wcvp.playerUtils","flashJsBridge","wcvp.adTrigger","wcvp.AdTargeting","wcvp.Logger"],function(n,t,i,r,u,f){function h(e,o){function ut(n){f.Log(n,"FlashAdManager")}function gt(n){y.IsAdPlaying=!1;y.AdType=null;y.IsVpaid=!1;h=n||e.Config;v=h.AdConfig;tt=new r(h);rt=new u(h);v.PageGroup=h.adpagegroups&&h.adpagegroups.web||v.PageGroup}function ri(){var i;if(!dt){if(i=n(".ad_player",e.Config.Container),i.length&&i.data("isdelayed").toLowerCase()==="true"){var r=t.S4,u=r()+r(),f=r()+r(),o=h.UseWindowedMode?"window":"transparent",c="loadAdsOnLoad=false&playerId="+h.PlayerId,l="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+u+"' class='vxFlashPlayer' name='"+u+"' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab' ><param name='movie' value='"+h.HybridPlayerSource+"' /><param name='flashvars' value='"+c+"' /><param name='bgcolor' value='#000000' /><param name='base' value='.' /><param name='quality' value='high' /><param name='allowFullScreen' value='true' /><param name='allowScriptAccess' value='always' /><param name='wmode' value='"+o+"' /><embed id='"+f+"' name='"+f+"' type='application/x-shockwave-flash' class='vxFlashPlayer' pluginspage='http://www.adobe.com/go/getflashplayer' src='"+h.HybridPlayerSource+"' flashvars='"+c+"' bgColor='#ffffff' quality='high' allowFullScreen='true' allowScriptAccess='always' wmode='"+o+"' base='.'><\/embed><\/object>";i.append(l);s=20}dt=!0}}function at(t){if(wt(!1),ri(),p=w.GetFlashPlayer(a),t=t&&parseInt(t)||1,!p&&t<=s){ut("Trying to find Flash Object: "+t+" id: "+a);setTimeout(function(){at(++t)},l);return}if(!p){pt();ut("flash object not found");o&&o(!1);return}var i=rt.AOLTokenObj,r=rt.VisitorToken,u=h.Video.pageGroup||v.PageGroup,f=n.makeFlashvars({ad:!v.PolicyType||v.PolicyType.length==0||v.PolicyType.toLowerCase()=="videocontent"?"true":"false",adDivs:gi(h.AdDiv),adManagerRequestTimeout:v.AdManagerRequestTimeout,autoplay:h.AutoPlay,comscoreUrl:h.ReportingConfig.ComscoreUrl,comscoreConfig:h.ReportingConfig.ComscoreProviderConfig,csid:h.Video.csId,documentLocation:window.document.location.href.toString(),documentReferrer:window.document.referrer.toString(),fwAdManagerLocation:v.FWAdManagerLocation,fwServer:v.FWServer,fwNetworkId:v.FWNetworkId,adNetworkId:h.Video.adNetworkId,fwProfileFlash:v.FWFlashProfile,fwCacheBuster:v.FWCacheBuster,height:h.Height||ht.height(),mute:n.asBool(n.cookie(c))||n.asBool(h.Mute),pageGroup:u,title:h.Video.title?h.Video.title.replace(/'/g,"&#39;"):"",width:h.Width||ht.width(),videoDuration:h.Video.durationSecs,videoUUId:h.Video.uuid,videoUuIdBase32:h.Video.uuidBase32,useTarSerParams:!0,utid:i&&i.utid&&i.utid.length?i.utid:"",_fw_seg:i&&i.audiences?"10886:"+i.audiences.join(","):"",_fw_ekv:r&&r.length?r:""});nt=n(".ad_player",e.Config.Container);it=nt.children().get(0);ut("flash object found");p.RefreshHybridPlayer(f,!0);ii(v.HybridPlayerAdInitTimeout);ui();o&&o(!0)}function ui(){it&&!kt&&(it.onmouseenter=bi,it.onmousemove=ki,it.onmouseleave=di,kt=!0)}function b(n){setTimeout(function(){w.SendMessage(n)},0)}function fi(){w.AddMessageReceiver({playerId:a,eventType:"onAdPlaybackStatusChanged",callback:hi});w.AddMessageReceiver({playerId:a,eventType:"onNoMoreAds",callback:vt});w.AddMessageReceiver({playerId:a,eventType:"onAdClicked",callback:vi});w.AddMessageReceiver({playerId:a,eventType:"reportEvent",callback:oi});w.AddMessageReceiver({playerId:a,eventType:"onAdTimeUpdate",callback:yi});w.AddMessageReceiver({playerId:a,eventType:"onAdInfo",callback:wi});w.AddMessageReceiver({playerId:a,eventType:"onVideoPlaybackStatusChanged"});w.AddMessageReceiver({playerId:a,eventType:"onAdControlStatusChanged"})}function ni(n){if(ft){var t=ft;setTimeout(t,0);n||(ft=null)}}function vt(n){g();ni(n)}function ei(){d||(d=!0,g(),pi(),pt(),setTimeout(function(){ti()},1e3))}function ti(n){st||(st=!0,vt(),e.ReportAdTimeout(n))}function oi(n){if(n&&n.eventName){n.reportData&&n.reportData.AdId&&(y.AdId=n.reportData.AdId);switch(n.eventName.toLowerCase()){case"adtimeout":ti(n.reportData);break;case"perfmarker":si(n.marker);break;default:e.Report(n.eventName,n.reportData)}}}function si(n){e&&e.ReportPerfMarker&&e.ReportPerfMarker(n)}function hi(n){switch(n.status){case"init":ci(n);break;case"SlotPlay":e.ReportSlotPlayStarted();break;case"ready":vt(!0);break;case"start":li(n);break;case"error":e.ReportSlotPlayEnded();ai(n);break;case"ended":d||(e.ReportSlotPlayEnded(),yt(n))}}function g(){ot&&clearTimeout(ot);ot=null}function ii(n){g();n=n||v.HybridPlayerAdStartTimeout;ot=setTimeout(ei,n*1e3)}function ci(n){if(!d)switch(n.adType){case"preroll":ii();e.OnAdInit()}}function li(n){if(e.ReportSlotPlayEnded(),!d)switch(n.adType){case"preroll":g();y.IsAdPlaying=!0;y.AdType=n.adType;wt(!0);k||(e.EnterSimulatedAdMode(y),k=!0)}}function yt(n){bt.trigger("adEnded");switch(n.adType){case"preroll":g();et&&(ht.removeClass(et),et=null);y.IsAdPlaying=!1;y.AdType=n.adType;pt();k&&(e.ExitSimulatedAdMode(y),k=!1);ni()}}function ai(n){yt(n)}function vi(){e.OnSimulatedAdClicked()}function yi(n){y.IsAdPlaying&&k&&e.UpdateTimeRailForSimulatedAd(n.time,n.duration);!lt&&n.time>0&&(bt.trigger("adStarted"),lt=!0)}function pi(){b({playerId:a,eventType:"onAdControlStatusChanged",param:{status:"timedout"}})}function wi(n){n&&typeof n.adClass=="string"&&(et=n.adClass,ht.addClass(n.adClass))}function bi(){e.OnVideoEnter()}function ki(n){e.OnVideoMove(n)}function di(){e.OnVideoLeave()}function gi(n){var i="",r,t;if(n!=null)if(typeof n=="object")for(r in n)t=n[r],t.charAt(0)==="#"&&(t=t.substr(1)),i+=t+"|"+r.replace("x","|")+";";else typeof n=="string"&&(i=n);return i}function pt(){nt&&nt.css({visibility:"hidden","z-index":"-1"})}function wt(n){nt&&nt.css({visibility:"visible","z-index":n?"153":"-1",display:"block"})}var y=this;y.AdId=null;y.AdUrl=null;y.ClickThrough=null;y.PlayerTechnologyUsed="hybrid";var ft,et=null,nt=null,it=null,ot=null,d=!1,st=!1,ht=e.VideoContainer,w=new i,h=e.Config,v=h.AdConfig,a=h.PlayerId,bt=n("#"+a),k=!1,tt,rt,kt=!1,ct=!1,p=null,lt=!1,dt=!1;gt();this.VideosPlayedCounter=function(){return tt.VideosPlayedCounter};this.TimePlayingCounter=function(){return tt.TimePlayingCounter};this.TimeElapsedCounter=function(){return tt.TimeElapsedCounter};this.LoadAds=function(n,t){ft=t;ct||(g(),d=!1,st=!1,rt.SubmitTargetingRequests(at,!0));ct=!1};this.BeginPlayback=function(){h&&!h.AutoPlay&&p&&p.HasPreRollAds()?(wt(!0),p.StartPreRollAds()):e.Play()};this.SkipAd=function(){};this.RestartAd=function(){yt()};this.Dispose=function(){ct=!1;tt&&tt.SaveState()};this.TimeUpdate=function(){};this.VideoPlaying=function(){b({playerId:a,eventType:"onVideoPlaybackStatusChanged",param:{status:"playing"}})};this.AdPlaying=function(){k&&b({playerId:a,eventType:"onAdControlStatusChanged",param:{status:"playing"}})};this.VideoPaused=function(){b({playerId:a,eventType:"onVideoPlaybackStatusChanged",param:{status:"paused"}})};this.AdPaused=function(){k&&b({playerId:a,eventType:"onAdControlStatusChanged",param:{status:"paused"}})};this.AdMuted=function(){k&&b({playerId:a,eventType:"onAdControlStatusChanged",param:{status:"muted"}})};this.AdUnmuted=function(){k&&b({playerId:a,eventType:"onAdControlStatusChanged",param:{status:"unmuted"}})};this.VideoSeeking=function(){};this.VideoSeeked=function(){};this.VideoBuffering=function(){b({playerId:a,eventType:"onVideoPlaybackStatusChanged",param:{status:"buffering"}})};this.VideoStopped=function(){b({playerId:a,eventType:"onVideoPlaybackStatusChanged",param:{status:"stopped"}})};this.VideoEnded=function(){ut("OnContentVideoEnded");b({playerId:a,eventType:"onVideoPlaybackStatusChanged",param:{status:"ended"}});e.PlaybackComplete()};this.Refresh=function(n){y.IsAdPlaying&&p&&p.StopAd&&typeof p.StopAd=="function"&&p.StopAd();g();gt(n);d=!1;st=!1;lt=!1;y.AdId=null};fi();rt.SubmitTargetingRequests(at,!0);ct=!0;ut("AdManager initialized (Provider="+v.AdProvider+", FWServer="+v.FWServer+", FWNetworkId="+v.FWNetworkId+", FWHtml5Profile="+v.FWHtml5Profile+")")}var e=undefined,o=0,c="vidmut",l=50,s=10;return h.HasSupport=function(){return undefined==e&&(o=n.getFlashInstalledVersion(),o&&(e=!0)),e&&o>=n.RequiredFlashVersion},h});define("wcvp.mediaManager",["jquery","wcvp.locStrings","wcvp.videoPlayerTokens","wcvp.environment","wcvp.playerUtils","wcvp.fwAdManager","wcvp.flashAdManager","wcvp.Logger"],function(n,t,i,r,u,f,e,o){function a(a){function it(n){o.Log("MediaManager initialized",s);n||(p.UseHybridPlayer=!1,v=new f(a));p.PlayerTechnologyUsed=v.PlayerTechnologyUsed;k=!0}function g(n){a.Broadcast("OnAdsLoaded",n);a.OnAdsLoaded()}function nt(){(y.Validate(!0),w)&&(a.PreserveTime()||!v||b?r.IProduct||r.AndroidModern?a.Player.play():setTimeout(function(){a.Player.play()},0):(b=!0,v.BeginPlayback()))}var y=this,w=!1,b=!1,k=!1,tt=0,d=[],p=a.Config,v;y.AutoPlay=p.AutoPlay;v=null;p.AdConfig.PolicyType.toLowerCase()!=="noads"?(n.asBool(p.UseHybridPlayer)&&e.HasSupport()?v=new e(a,it):(v=new f(a),k=!0),p.PlayerTechnologyUsed=v.PlayerTechnologyUsed):k=!0;y.Video=null;n.each(h,function(n,t){d.push(new t(a))});o.Log("MediaManager initialized",s);y.Dispose=function(){v&&v.Dispose()};y.LoadVideo=function(n){b=a.PreserveTime()||!1;w=a.PreserveTime()||!1;y.Video=n;a.PrepareMedia(n);a.Broadcast("currentVideoDataUpdated",{video:n});a.Broadcast("currentVideoChanged",{video:n})};y.LoadAds=function(){!k&&tt++<=l?setTimeout(y.LoadAds,c):v?v.LoadAds(y.Video,function(n){g(n)}):setTimeout(g,0)};y.Play=function(){y.AutoPlay=!0;nt()};y.Validate=function(n){var f,r;if(!y.Video||y.Video.isFailed){a.StopMedia(t.player_nullvideoerror,u.formatContentError(i.ContentErrorCodes.ValidationNullVideo,t.player_nullvideoerror));return}if(!a.PreserveTime()&&!w){for(f=0;f<d.length;f++){if(r=d[f].Validate(y.Video,function(){n?nt():y.Validate()}),r.waiting)return;if(r.blocked){setTimeout(function(){a.StopMedia(r.msg,u.formatContentError(i.ContentErrorCodes.ValidationBlocked,r.msg),r.blocked)},100);return}}w=!0}};y.TimeUpdate=function(n){v&&v.TimeUpdate&&v.TimeUpdate(n)};y.VideoEnded=function(){v?v.VideoEnded():a.PlaybackComplete()};y.SkipAd=function(){v&&v.SkipAd()};y.RestartAd=function(){v&&v.RestartAd()};y.Playing=function(){v&&!v.IsAdPlaying&&v.VideoPlaying()};y.Paused=function(){v&&!v.IsAdPlaying&&v.VideoPaused()};y.SimulatedAdPaused=function(){v&&v.IsAdPlaying&&v.AdPaused&&v.AdPaused()};y.SimulatedAdPlaying=function(){v&&v.IsAdPlaying&&v.AdPlaying&&v.AdPlaying()};y.SimulatedAdMuted=function(){v&&v.IsAdPlaying&&v.AdMuted&&v.AdMuted()};y.SimulatedAdUnmuted=function(){v&&v.IsAdPlaying&&v.AdUnmuted&&v.AdUnmuted()};y.Buffering=function(){v&&!v.IsAdPlaying&&v.VideoBuffering&&v.VideoBuffering()};y.Seeking=function(n){v&&!v.IsAdPlaying&&v.VideoSeeking&&v.VideoSeeking(n)};y.Seeked=function(n){v&&!v.IsAdPlaying&&v.VideoSeeked&&v.VideoSeeked(n)};y.Stopped=function(){v&&!v.IsAdPlaying&&v.VideoStopped()};y.IsAdPlaying=function(){return v&&v.IsAdPlaying};y.AdType=function(){return v&&v.AdType};y.AdId=function(){return v&&v.AdId};y.AdUrl=function(){return v&&v.AdUrl};y.IsVpaid=function(){return v&&v.IsVpaid};y.IsFreeWheel=function(){return v&&v.IsFreeWheel};y.ClickThrough=function(n){return n!==undefined&&v&&(v.ClickThrough=n),v&&v.ClickThrough};y.VideosPlayedCounter=function(){return v?v.VideosPlayedCounter():0};y.TimePlayingCounter=function(){return v?v.TimePlayingCounter():0};y.TimeElapsedCounter=function(){return v?v.TimeElapsedCounter():0};y.Refresh=function(n){n&&(p=n,v&&v.Refresh&&v.Refresh(n),y.Video=n.Video,b=!1,w=!1)}}var h=[],s="MediaManager",c=60,l=10;return a});define("wcvp.reporter",["jquery","wcvp.environment","document","window","navigator","location","wcvp.Logger"],function(n,t,i,r,u,f,e){function o(o,s){function h(n,t){t&&o.Container.bind(n+"."+s,function(n,i){t(i)})}function a(){o.Container&&o.Container.unbind("."+s)}var c=o.ReportingConfig,l=this;this.ReportingContext={AppVersion:c.AppVersion||"5",BrowserSize:{w:i.body.offsetWidth,h:n(r).height()},Category:c.Category,FlightId:c.FlightId||0,Fr:c.Fr,From:t.Qsps.from||n.cookie("from")||null,Gt1:t.Qsps.gt1,Location:f.href,LocationDomain:f.hostname,Market:c.Market,Ocid:t.Qsps.ocid,Ors:null,PlayerType:c.ReportType||o.PlayerTechnologyUsed||"HTML5",PlaySource:c.PlaySource,PlayType:c.PlayType,PluginVersion:c.PluginVersion||"html5",Product:"string"==typeof c.Product&&c.Product.length?c.Product:"nonsdk",Referrer:i.referrerOverride||i.referrer||"",SubCategory:c.SubCategory,Subcvs:c.Subcvs,UserAgent:u.userAgent,View:"string"==typeof c.View&&c.View.length?c.View:null,WidgetSubType:c.WidgetSubType||"v5"};require(["trackInfo"],function(t){var i=t.sitePage;i&&n.extend(l.ReportingContext,{PageId:i.pageId?i.pageId:null,PageName:i.pageName?i.pageName:null})});this.BindContainerEvents=function(n){a();h("CommonPlayerImpression",n.OnCommonPlayerImpression);h("BufferComplete",n.OnBufferComplete);h("ContentOpen",n.OnContentOpen);h("ContentStart",n.OnContentStart);h("ContentContinue",n.OnContentContinue);h("ContentHalf",n.OnContentHalf);h("ContentComplete",n.OnContentComplete);h("ContentError",n.OnContentError);h("AdStart",n.OnAdStart);h("Ad50Percent",n.OnAdMidPoint);h("AdContinue",n.OnAdContinue);h("AdComplete",n.OnAdComplete);h("AdClicked",n.OnAdClicked);h("AdError",n.OnAdError);h("AdTimeout",n.OnAdTimeout);h("AdSkip",n.OnAdSkip);h("GeoInfoLoaded",n.OnGeoInfoLoaded);h("EventMute",n.OnMute);h("EventUnmute",n.OnUnmute);h("EventCC",n.OnCC);h("EventPause",n.OnPause);h("EventSeek",n.OnSeek);h("EventVideoQualityChanged",n.OnVideoQualityChanged);h("EventFullScreenEnter",n.OnFullScreenEnter);h("EventFullScreenExit",n.OnFullScreenExit);h("EventInfo",n.OnInfo);h("EventCaptionSettings",n.OnCaptionSettings);h("EventReplay",n.OnReplay);h("EventResume",n.OnResume);h("EventFacebook",n.OnFacebook);h("EventTwitter",n.OnTwitter);h("EventEmail",n.OnEmail);h("EventEndslateVideos",n.OnEndslateVideos);h("EventEndslateShown",n.OnEndslateShown);h("Event3ppVideoLoaded",n.On3ppVideoLoaded);h("Event3ppContentStart",n.On3ppContentStart);h("Event3ppContentComplete",n.On3ppContentComplete);h("PlayerStarting",n.OnPlayerStarting);h("AdLoading",n.OnAdLoading);h("AdLoaded",n.OnAdLoaded);h("VideoLoading",n.OnVideoLoading)};this.FormatPing=function(t,i,r){var u=t,f=u&&u.indexOf("?")===-1?"?":"";return n.each(i,function(n,t){r&&r[n]==null||(typeof t=="number"||typeof t=="string"&&t.length>0&&t!=="^")&&(t=encodeURIComponent(t),t=r?t.substr(0,r[n]):t,u+=f+encodeURIComponent(n)+"="+t,f="&")}),u};this.Log=function(n,t){e.Log(n,t||s)}}return o});define("wcvp.otfReporter",["jquery","wcvp.reporter","wcvp.environment","perfMarker","window","headData","document"],function(n,t,i,r,u,f,e){function o(y){function ft(n){c.InitializationRecorded||(n["p.fwinit"]=c.InitializationDuration,c.InitializationRecorded=!0)}function d(n){return u._pageTimings&&u._pageTimings[n]?u._pageTimings[n]:""}function et(n){var t=d(a),i=d(n);return t?Math.max(0,i-t):i}function ot(n){if(!tt.TTVSRecorded){var t=!1;t=!0;r("TTVS",!0,t);n["p.ttvs"]=et("TTVS");lt(n);n.cppajaxCount=y.cppajaxCount;tt.TTVSRecorded=!0}}function st(n){n.playdur=y.playDuration||null}function lt(n){for(var t=0;t<l.length;t++)n["p."+l[t]]=et(l[t]);n["p.IsAdTimedOut"]=nt?"true":"false"}function g(n,t){return{cs:n.VideoCs,d:n.duration,eid:n.VideoId,evt:t.evt,pg:n.pageGroup,piid:n.playerInstanceId,ptech:n.PlayerTechnology,rid:n.guid,"st.dpt":n.Category,"st.sdpt":n.SubCategory,t:t.t,vtitle:n.VideoTitle}}function k(n,t){return{cs:n.VideoCsId,eid:n.VideoId,evt:t.evt,t:t.t,te:n.VideoElapsedTime,vfc:n.VideoFormatCode,vtitle:n.VideoTitle}}function at(n){var t=n.PageName;return y.ImmersiveMode&&(t=t+"-vpopup"),{bh:n.BrowserSize&&n.BrowserSize.h||null,bw:n.BrowserSize&&n.BrowserSize.w||null,cvs:"browser",d:n.VideoDuration,di:ut,fr:n.Fr,mkt:n.Market,pg:n.VideoPageGroup,pid:n.PageId,piid:n.PlayerInstanceId,pl:n.Location,plt:n.PlayerType,pn:t,pt:n.PlayType,ptech:n.PlayerTechnology,inviewplay:y.IsInlinePlayer?y.InViewPlay?"true":"false":null,pv:n.PluginVersion,rid:rt,rl:n.Referrer,size:n.VideoSize?n.VideoSize.w+"x"+n.VideoSize.h:null,"st.dpt":n.Category,"st.sdpt":n.SubCategory,subcvs:n.Subcvs,ua:n.UserAgent,flight:v,iscontinuous:vt()?"true":"false"}}function vt(){var i,n,t;return e&&e.referrer&&((i=e.referrer,i.match(/vi-|vp-/gi))||(n="video",f&&f.clientSettings&&f.clientSettings.vk=="video"&&(n=f.clientSettings.lvk),t=i.split("/"),t&&n&&t[4]&&t[4]==n))?!0:d(a)?!0:!1}function b(t,i){var u=n.extend({},p.ReportingContext,i),r;n.extend(t,at(u));r=p.FormatPing(ct,t);n.ping(r);p.Log("OTF - ping : "+r)}function ht(n){if(h&&(n.PlayerTechnology==="HTML5"||n.PlayerTechnology==="Flash"||n.PlayerTechnology==="hybrid")){var t="TimeToVideoStart";h.isWaiting(t)&&h.mark(t)}}if(y.ReportingConfig.OtfEnabled){var w=this,p,nt=!1,it=y.ReportingConfig.OtfUrl,ct=y.SecureMode?it.replace("http://","https://"):it,rt,ut,tt={TTVSRecorded:!1};w.Reset=function(n){y=n||y;p=new t(y,"OtfReporter");s={AdLoadStart:0,SlotPlayStarted:!1,AdLoadRecorded:!1,AdLoadDuration:0};c={InitializationDuration:0,InitializationRecorded:!1};tt.TTVSRecorded=!1;nt=!1;rt=y.ReportingConfig.ImpressionGuid;ut=y.ReportingConfig.DomainId||15755};w.Reset(y);w.OnCommonPlayerImpression=function(n){if(p.Log("OTF - OnCommonPlayerImpression()"),r("PlayerImpression",!0),n.PlayerTechnology==="HTML5"||n.PlayerTechnology==="Flash"||n.PlayerTechnology==="hybrid"){var t=d("PlayerImpression"),i={t:o.UsageCounter.CommonPlayerImpression.t,evt:o.UsageCounter.CommonPlayerImpression.evt,vt:n.VideoPlayerType,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId,"p.playerimp":t};b(i,n)}else b(g(n,o.UsageCounter.CommonPlayerImpression),n)};w.OnBufferComplete=function(n){p.Log("OTF - OnBufferComplete()");var t=null;t=n.isAd?{t:o.UsageCounter.AdBuffering.t,evt:o.UsageCounter.AdBuffering.evt,bd:n.TotalBufferWaitTime,adid:n.AdId}:{t:o.UsageCounter.ContentBuffering.t,evt:o.UsageCounter.ContentBuffering.evt,bd:n.TotalBufferWaitTime,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId,te:n.VideoElapsedTime};b(t,n)};w.OnContentStart=function(n){p.Log("OTF - OnContentStart()");var t={t:o.UsageCounter.ContentStart.t,evt:o.UsageCounter.ContentStart.evt,vt:n.VideoPlayerType,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId,te:n.VideoElapsedTime};ft(t);ot(t);s.SlotPlayStarted&&(t.adload=s.AdLoadRecorded?s.AdLoadDuration:Date.now()-s.AdLoadStart);b(t,n);ht(n)};w.OnContentContinue=function(n){p.Log("OTF - OnContentContinue()");var t={t:o.UsageCounter.ContentContinue.t,evt:o.UsageCounter.ContentContinue.evt,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId,te:n.VideoElapsedTime};b(t,n)};w.OnContentComplete=function(n){p.Log("OTF - OnContentComplete()");var t={t:o.UsageCounter.ContentComplete.t,evt:o.UsageCounter.ContentComplete.evt,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId,te:n.VideoElapsedTime};st(t);b(t,n)};w.OnContentError=function(n){p.Log("OTF - OnContentError()");var t={t:o.UsageCounter.ContentError.t,evt:o.UsageCounter.ContentError.evt,fi:n.VideoUrl,et:n.ErrorType,etd:n.ErrorDesc,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId,te:n.VideoElapsedTime};b(t,n)};w.OnAdStart=function(n){p.Log("OTF - OnAdStart()");var t={t:o.UsageCounter.AdPlayStarted.t,evt:o.UsageCounter.AdPlayStarted.evt,adid:n.AdId,adload:s.AdLoadDuration};ft(t);ot(t);b(t,n);ht(n)};w.OnAdComplete=function(n){if(p.Log("OTF - OnAdComplete()"),n.PlaybackStatus!="adPlayFailed"){var t={t:o.UsageCounter.AdPlayCompleted.t,evt:o.UsageCounter.AdPlayCompleted.evt,adid:n.AdId};b(t,n)}};w.OnAdSkip=function(n){p.Log("OTF - OnAdSkip()");var t={t:o.UsageCounter.AdSkipped.t,evt:o.UsageCounter.AdSkipped.evt,adid:n.AdId};b(t,n)};w.OnAdError=function(n){p.Log("OTF - OnAdError()");var t={t:o.UsageCounter.AdError.t,evt:o.UsageCounter.AdError.evt,et:n.ErrorType,etd:n.ErrorDesc,vfc:n.VideoFormatCode,fi:n.AdUrl,vtitle:n.VideoTitle,cs:n.VideoCsId,te:n.VideoElapsedTime,adid:n.AdId};b(t,n)};w.OnAdTimeout=function(n){p.Log("OTF - OnAdTimeout()");nt=!0;var t={t:o.UsageCounter.AdTimeout.t,evt:o.UsageCounter.AdTimeout.evt,et:n.ErrorType,etd:n.ErrorDesc,vfc:n.VideoFormatCode,fi:n.AdUrl,vtitle:n.VideoTitle,cs:n.VideoCsId,te:n.VideoElapsedTime,adid:n.AdId};b(t,n)};w.OnSlotPlayStarted=function(){s.SlotPlayStarted||(s.AdLoadStart=Date.now(),s.SlotPlayStarted=!0,s.AdLoadRecorded=!1)};w.OnSlotPlayEnded=function(){s.SlotPlayStarted&&!s.AdLoadRecorded&&(s.AdLoadDuration=Date.now()-s.AdLoadStart,s.AdLoadRecorded=!0)};w.OnMute=function(n){p.Log("OTF - OnMute()");b(k(n,o.UsageCounter.Mute),n)};w.OnUnmute=function(n){p.Log("OTF - OnUnmute()");b(k(n,o.UsageCounter.Unmute),n)};w.OnCC=function(n){p.Log("OTF - OnCC()");b(k(n,o.UsageCounter.CC),n)};w.OnPause=function(n){p.Log("OTF - OnPause()");var t=k(n,o.UsageCounter.Pause);st(t);b(t,n)};w.OnReplay=function(n){p.Log("OTF - OnReplay()");b(k(n,o.UsageCounter.Replay),n)};w.OnResume=function(n){p.Log("OTF - OnResume()");b(k(n,o.UsageCounter.Resume),n)};w.OnSeek=function(n){if(n.SeekFrom!==n.SeekTo){p.Log("OTF - OnSeek()");var t=k(n,o.UsageCounter.Seek);t.te=n.SeekFrom;t.st=n.SeekTo;b(t,n)}};w.OnVideoQualityChanged=function(n){p.Log("OTF - OnVideoQualityChanged()");var t=k(n,o.UsageCounter.VideoQuality);t.q=n.MaxBitrate;b(t,n)};w.OnFullScreenEnter=function(n){p.Log("OTF - OnFullScreenEnter()");b(k(n,o.UsageCounter.FullScreenEnter),n)};w.OnFullScreenExit=function(n){p.Log("OTF - OnFullScreenExit()");b(k(n,o.UsageCounter.FullScreenExit),n)};w.OnInfo=function(n){p.Log("OTF - OnInfo()");b(k(n,o.UsageCounter.Info),n)};w.OnFacebook=function(n){p.Log("OTF - OnFacebook()");b(k(n,o.UsageCounter.Facebook),n)};w.OnTwitter=function(n){p.Log("OTF - OnTwitter()");b(k(n,o.UsageCounter.Twitter),n)};w.OnEmail=function(n){p.Log("OTF - OnEmail()");b(k(n,o.UsageCounter.Email),n)};w.OnEndslateVideos=function(n){p.Log("OTF - OnEndslateVideos()");b(k(n,o.UsageCounter.EndslateVideos),n)};w.OnEndslateShown=function(n){p.Log("OTF - OnEndslateShown()");b(k(n,o.UsageCounter.EndslateShown),n)};w.On3ppVideoLoaded=function(n){p.Log("OTF - On3ppVideoLoaded()");b(g(n,o.UsageCounter.ContentImpression3PP),n)};w.On3ppContentStart=function(n){p.Log("OTF - On3ppContentStart()");b(g(n,o.UsageCounter.ContentStart),n)};w.On3ppContentComplete=function(n){p.Log("OTF - On3ppContentComplete()");b(g(n,o.UsageCounter.ContentComplete),n)};w.OnPlayerStarting=function(n){if(i.TV){p.Log("OTF - OnPlayerStarting()");var t={t:o.UsageCounter.PlayerStarting.t,evt:o.UsageCounter.PlayerStarting.evt,vt:n.VideoPlayerType,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId};b(t,n)}};w.OnAdLoading=function(n){if(i.TV){p.Log("OTF - OnAdLoading()");var t={t:o.UsageCounter.AdLoading.t,evt:o.UsageCounter.AdLoading.evt,vt:n.VideoPlayerType,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId};b(t,n)}};w.OnAdLoaded=function(n){if(i.TV){p.Log("OTF - OnAdLoaded()");var t={t:o.UsageCounter.AdLoaded.t,evt:o.UsageCounter.AdLoaded.evt,vt:n.VideoPlayerType,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId};b(t,n)}};w.OnVideoLoading=function(n){if(i.TV){p.Log("OTF - OnVideoLoading()");var t={t:o.UsageCounter.VideoLoading.t,evt:o.UsageCounter.VideoLoading.evt,vt:n.VideoPlayerType,vfc:n.VideoFormatCode,vtitle:n.VideoTitle,eid:n.VideoId,cs:n.VideoCsId};b(t,n)}};p.BindContainerEvents(this);p.Log("OTF - initialized")}}var h,s,c,v,a,l;return require(["rumBeacon"],function(n){h=n}),require(["trackInfo"],function(n){setTimeout(function(){v=n&&n.sitePage.flightid},100)}),a="NextVideoStart",l=["PlayerLoaded","AdManagerLoadStart","AdManagerLoaded","AdPlayerInit","AdRequestStart","AdRequestComplete","AdSlotPlayStart"],o.UsageCounter={AdBuffering:{t:"1",evt:"AdPlay"},AdError:{t:"10",evt:"AdPlay"},AdPlayStarted:{t:"11",evt:"AdPlay"},AdPlayCompleted:{t:"13",evt:"AdPlay"},AdSkipped:{t:"15",evt:"AdPlay"},AdTimeout:{t:"16",evt:"AdPlay"},ContentBuffering:{t:"2",evt:"ContentPlay"},ContentError:{t:"20",evt:"ContentPlay"},ContentStart:{t:"21",evt:"ContentPlay"},ContentContinue:{t:"22",evt:"ContentPlay"},ContentComplete:{t:"23",evt:"ContentPlay"},ContentImpression3PP:{t:"41",evt:"ContentPlay"},CommonPlayerImpression:{t:"61",evt:"ContentPlay"},CC:{t:"30",evt:"Click_Non-nav"},Pause:{t:"31",evt:"Click_Non-nav"},Seek:{t:"32",evt:"Click_Non-nav"},Mute:{t:"33",evt:"Click_Non-nav"},FullScreenEnter:{t:"34",evt:"Click_Non-nav"},Info:{t:"35",evt:"Click_Non-nav"},VideoQuality:{t:"36",evt:"Click_Non-nav"},Resume:{t:"37",evt:"Click_Non-nav"},FullScreenExit:{t:"38",evt:"Click_Non-nav"},Replay:{t:"39",evt:"Click_Non-nav"},Unmute:{t:"40",evt:"Click_Non-nav"},Facebook:{t:"51",evt:"Click_Non-nav"},Twitter:{t:"52",evt:"Click_Non-nav"},Email:{t:"53",evt:"Click_Non-nav"},EndslateVideos:{t:"64",evt:"Click_Non-nav"},EndslateShown:{t:"67",evt:"Click_Non-nav"},PlayerStarting:{t:"90",evt:"ContentPlay"},AdLoading:{t:"91",evt:"ContentPlay"},AdLoaded:{t:"92",evt:"ContentPlay"},VideoLoading:{t:"93",evt:"ContentPlay"}},o});define("wcvp.apReporter",["jquery","wcvp.reporter","wcvp.fdReporter"],function(n,t,i){function r(r){function s(n){return{u:n.VideoId,pl:n.Location,rl:n.Referrer,from:n.From,fr:n.Fr,mkt:n.Market,plt:n.PlayerType,flight:n.FlightId,treat:n.TreatmentName,size:n.VideoSize?n.VideoSize.w+"x"+n.VideoSize.h:null,brs:n.BrowserSize?n.BrowserSize.w+"x"+n.BrowserSize.h:null,pbStatus:n.PlaybackStatus,c8:n.PlayerTechnology,c9:n.WidgetSubType,av:n.AppVersion,fc:n.VideoFormatCode,src:n.PlaySource,pv:n.PluginVersion,pt:u.ReportingContext.PlayType,d:Math.floor(n.VideoLength/1e3),et:n.ErrorType,etd:n.ErrorDesc}}function e(t,i){var f=n.extend({},u.ReportingContext,i),r;n.extend(t,s(f));r=u.FormatPing(o,t);n.ping(r);u.Log("ping : "+r)}var u=new t(r,"ApReporter"),o=r.SecureMode?"https://img-widgets-video.msn.com/report.aspx":r.ReportingConfig.ApReportingService||"http://widgets.video.msn.com/report.aspx",f=this;f.OnContentError=function(n){u.Log("OnContentError()");var t={t:i.UsageCounter.PlaybackFailed,ag:1,fi:n.VideoUrl};e(t,n)};f.OnAdError=function(n){u.Log("OnAdError()");var t={t:i.UsageCounter.AdPlayFailed,adId:n.AdId,fi:n.VideoUrl,pg:n.VideoPageGroup};e(t,n)};f.Reset=function(n){var i=n||r;u=new t(i,"ApReporter")};n.asBool(r.ReportingConfig.ApReportingEnabled,!1)&&(u.BindContainerEvents(this),u.Log("AP Reporter initialized"))}return r});define("wcvp.comscoreReporter",["jquery","wcvp.reporter"],function(n,t){function i(i){function v(n){n.VideoCsId&&(s=n.VideoCsId);n.VideoSource&&(h=n.VideoSource);n.VideoTitle&&(c=n.VideoTitle);return{c1:"1",c2:"3000001",c3:s,c4:"{0}/{1}".format(n.LocationDomain,n.Fr.replace("_","/")),c6:h,c7:n.Location,c8:c,c9:n.Referrer,rn:Math.floor(Math.random()*1e6)}}function a(t,i){var e=n.extend({},r.ReportingContext,i),s=v(e),u,f;if(n.extend(t,s),o!=null){n.extend(t,o);for(u in t)t.hasOwnProperty(u)&&(t[u]=t[u]||"*null")}f=r.FormatPing(l,t);n.ping(f);r.Log("ping : "+f)}var r,u=this,s=null,h=null,c=null,f,e,l,o;u.OnContentStart=function(n){r.Log("OnContentStart()");a({c5:"020000"},n)};u.OnAdStart=function(n){r.Log("OnAdStart()");a({c5:"010000"},n)};u.Reset=function(n){var u=n||i;r=new t(n,"ComscoreReporter");f=u.ReportingConfig;e=f.ComscoreUrl;l=u.SecureMode?e.replace("http://","https://"):e;o=f.ComscoreProviderConfig!==""?JSON.parse(f.ComscoreProviderConfig):null};u.Reset(i);r.Log("initialized");r.BindContainerEvents(this)}return i});define("wcvp.nnrReporter",["jquery","wcvp.reporter"],function(n,t){function i(i){function s(n){switch(n||""){case"fox sports":case"esus_fox sports":return"vc,c01";case"msnbc":return"vc,c03";case"autos":return"vc,c04";case"msnmoney":return"vc,c05";case"msnentertainment":return"vc,c06";default:return"vc,c02"}}function h(n,t,i){return{ci:"us-400132",tl:"dav"+n+"-"+t.VideoTitle,c3:i?"st,a":"st,c",c6:s(t.VideoCsId),cg:i?t.VideoSource:t.VideoSourceFriendly,cc:"1",ou:"http://"+[t.LocationDomain,t.VideoCsId,t.VideoSource,t.VideoTitle].join("/")+"/?"+(i?"syndad":"synd")+"=msnvideo",du:n==f.Start?null:Math.floor(t.TotalTimePlaying/1e3),rnd:Math.random()}}function e(t,i,u){var e=n.extend({},r.ReportingContext,i),s=n.extend({},h(t,e,u)),f=r.FormatPing(o,s);n.ping(f);r.Log("ping : "+f)}var u=this,r=new t(i,"NnrReporter"),o=i.SecureMode?"https://secure-us.imrworldwide.com/cgi-bin/m":"http://secure-us.imrworldwide.com/cgi-bin/m",f={Start:0,Continue:1,End:2};u.OnContentStart=function(n){r.Log("OnContentStart()");e(f.Start,n)};u.OnContentContinue=function(n){r.Log("OnContentContinue()");e(f.Continue,n)};u.OnContentComplete=function(n){r.Log("OnContentComplete()");e(f.End,n)};u.OnAdStart=function(n){r.Log("OnAdStart()");e(f.Start,n,!0)};u.OnAdContinue=function(n){r.Log("OnAdContinue()");e(f.Continue,n,!0)};u.OnAdComplete=function(n){r.Log("OnAdComplete()");e(f.End,n,!0)};u.Reset=function(n){var u=n||i;r=new t(u,"NnrReporter")};r.BindContainerEvents(this);r.Log("initialized")}return i});define("wcvp.fdReporter",["jquery","wcvp.reporter"],function(n,t){function i(r){function h(n){return{pl:n.Location,rl:n.Referrer,from:n.From,fr:n.Fr,mkt:n.Market,plt:n.PlayerType,flight:n.FlightId,treat:n.TreatmentName,size:n.VideoSize?n.VideoSize.w+"x"+n.VideoSize.h:null,brs:n.BrowserSize?n.BrowserSize.w+"x"+n.BrowserSize.h:null,c8:n.PlayerTechnology,c9:n.Product+"^"+(n.View||n.WidgetSubType),av:n.AppVersion,fc:n.VideoFormatCode,src:n.PlaySource,pv:n.PluginVersion,product:n.Product,u:n.VideoId}}function e(t,r){var e=n.extend({},u.ReportingContext,r),f;n.extend(t,h(e));f=u.FormatPing(s,t,i.Descriptors);n.ping(f);u.Log("ping : "+f)}var u=new t(r,"FdReporter"),o=r.SecureMode?"https":"http",s=o+"://prod.video.msn.com/FraudDetect.aspx",f=this;u.Log("initialized");f.OnContentStart=function(n){u.Log("OnContentStart()");var t={t:i.UsageCounter.Played,ag:Math.min(n.NumPlayed,5),pt:u.ReportingContext.PlayType,vt:n.VideoPlayerType,lt:n.LoadTime,d:Math.floor(n.VideoLength/1e3),pbStatus:"VideoBuffering"};e(t,n)};f.OnContentContinue=function(n){u.Log("OnContentContinue()");var t={t:i.UsageCounter.TimeSpent,be:n.BufferCount,bd:n.TotalBufferWaitTime,d:Math.floor(n.VideoLength/1e3),pbStatus:n.PlaybackStatus};e(t,n)};f.OnContentComplete=function(t){var r,f;u.Log("OnContentComplete()");r={d:Math.floor(t.VideoLength/1e3),pbStatus:t.PlaybackStatus};Math.random()<t.CurrentInterval/t.ContinueInterval&&(f={t:i.UsageCounter.TimeSpent,be:t.BufferCount,bd:t.TotalBufferWaitTime},n.extend(f,r),e(f,t));r.t=i.UsageCounter.PlaybackCompleted;e(r,t)};f.OnContentError=function(n){u.Log("OnContentError()");var t={t:i.UsageCounter.PlaybackFailed,ag:1,fi:n.VideoUrl,et:n.ErrorType,etd:n.ErrorDesc,pbStatus:n.PlaybackStatus};e(t,n)};f.OnAdStart=function(n){u.Log("OnAdStart()");var t={t:i.UsageCounter.AdPlayStarted,pt:u.ReportingContext.PlayType,d:Math.floor(n.VideoLength/1e3),pbStatus:"adOpening",pg:n.VideoPageGroup,adId:n.AdId,fi:n.AdUrl};e(t,n)};f.OnAdMidPoint=function(n){u.Log("OnAdMidPoint()");var t={t:i.UsageCounter.AdMidPoint,pt:u.ReportingContext.PlayType,d:Math.floor(n.VideoLength/1e3),pbStatus:"adPlaying",pg:n.VideoPageGroup,adId:n.AdId,fi:n.AdUrl};e(t,n)};f.OnAdComplete=function(n){if(u.Log("OnAdComplete()"),n.PlaybackStatus!="adPlayFailed"){var t={t:i.UsageCounter.AdPlayCompleted,pt:u.ReportingContext.PlayType,d:Math.floor(n.VideoLength/1e3),pbStatus:"adPlaying",pg:n.VideoPageGroup,adId:n.AdId,fi:n.AdUrl};e(t,n)}};f.OnAdError=function(n){u.Log("OnAdError()");var t={t:i.UsageCounter.AdPlayFailed,pt:u.ReportingContext.PlayType,d:Math.floor(n.VideoLength/1e3),et:n.ErrorType,etd:n.ErrorDesc,pbStatus:"adPlaying",pg:n.VideoPageGroup,adId:n.AdId,fi:n.AdUrl};e(t,n)};f.OnAdSkip=function(n){u.Log("OnAdSkip()");var t={t:i.UsageCounter.AdSkipped,pt:u.ReportingContext.PlayType,d:Math.floor(n.VideoLength/1e3),pbStatus:"adPlaying",pg:n.VideoPageGroup,adId:n.AdId,fi:n.AdUrl};e(t,n)};f.Reset=function(n){var i=n||r;u=new t(i,"FdReporter")};u.BindContainerEvents(this)}return i.UsageCounter={Played:1,PlaybackFailed:7,TimeSpent:8,PlaybackCompleted:11,AdPlayStarted:50,AdMidPoint:51,AdPlayCompleted:52,AdPlayFailed:53,AdSkipped:54},i.Descriptors={u:36,t:2,adId:36,ag:2,plt:20,c0:20,c1:20,c2:20,c3:400,c4:400,fr:100,from:100,d:5,flight:20,src:100,c8:20,c9:20,pl:200,rl:200,fc:10,pbStatus:20,pt:10,bd:20,be:20,lt:20,mbr:20,av:2,br:20,brs:20,bw:20,md:100,ng:20,mkt:20,pv:10,size:20,vt:20,pg:200,etd:400,fi:400,et:20,product:7},i});define("wcvp.stopWatch",function(){function n(){var t=this,n=null,i=null,u=null,f=null,r=null;t.Start=function(){n||(n=new Date,r++)};t.Stop=function(){if(n){var t=new Date-n;i+=t;f+=t;u||(u=i);n=null}};t.Reset=function(){n=null;i=r=u=f=0};t.IsStarted=function(){return r};t.IsStopped=function(){return n};t.HasReached=function(u){return t.GetValue()>=u?(n&&(f+=new Date-n,n=new Date),i=0,r=0,!0):!1};t.GetValue=function(){var t=i;return n&&(t+=new Date-n),t};t.GetTotalValue=function(){var t=f;return n&&(t+=new Date-n),t};t.GetFirstValue=function(){return u};t.GetIntervals=function(){return r};t.Reset()}return n});define("wcvp.ttmlParser",["jquery"],function(n){function t(n){var t,i;try{window.DOMParser?(i=new DOMParser,t=i.parseFromString(n,"application/xml")):(t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(n))}catch(r){t=null}return t}function i(i,r){function bt(){function n(n){switch(n){case"h":return 36e5;case"ms":return 1;case"m":return 6e4;case"s":return 1e3;case"f":return 1e3/u.mediaFrameRate;case"t":return 1e3/u.mediaTickRate;default:return 0}}var t=/^(\d{1,}):(\d{2}):(\d{2})((\.\d{1,})|:(\d{2,}(\.\d{1,})?))?$/,i=/^(\d+(\.\d+)?)(ms|[hmsft])$/;this.getTime=function(r){var o=0,s=0,h=0,f=0,u=t.exec(r),e=i.exec(r),c,l;return u!=null?(o=new Number(u[1])*3600,s=new Number(u[2])*60,h=new Number(u[3]),u[5]!=undefined&&(f=1e3*new Number(u[4])),u[6]&&(f=new Number(u[6])*n("f")),1e3*(o+s+h)+f):e!=null?(c=new Number(e[1]),l=n(e[3]),c*l):0}}function nt(t,i,r){var y=t.attrNS("begin",u.TTMLNamespace),f=y?a.getTime(y):i.first,o=0,w=0,h=0,c=0,l=t.attrNS("dur",u.TTMLNamespace),s=t.attrNS("end",u.TTMLNamespace),p,v;l||s?l&&s?(h=a.getTime(l),c=a.getTime(s),p=Math.min(f+h,i.first+c),o=Math.min(p,i.second)):s?(c=a.getTime(s),o=Math.min(i.first+c,i.second)):(h=a.getTime(l),o=Math.min(f+h,i.second)):r&&(f<=i.second?(w=Math.max(0,i.second-f),o=i.second):o=0);o<f&&(o=f);f=Math.floor(f);o=Math.floor(o);t.attr("data-time-start",f);t.attr("data-time-end",o);f>=0&&n.grep(e,function(n){return n.time===f}).length<=0&&e.push({time:f,element:t});v=f;t.children().each(function(){t.attrNS("timeContainer",u.TTMLNamespace)!="seq"?nt(n(this),{first:f,second:o},!0):(nt(n(this),{first:v,second:o},!1),v=new Number(n(this).attr("data-time-end")))})}function tt(n,t){return n.attr("data-time-start")<=t&&t<n.attr("data-time-end")}function kt(){n("*",f).each(function(){dt(n(this))})}function dt(t){var i={},r;ot(i,t);p(i,t);r=!0;n.each(i,function(){return r=!1,!1});r||(t.attr("data-styleSet",l.length),l.push(i))}function ot(t,i){var f=i.attrNS("style",u.TTMLNamespace),e=f?f.split(/\s+/):[],r;n(e).each(function(){var i=this;r=g?g[0].getElementsByTagNameNS(u.TTMLNamespace,"style"):[];n.each(r,function(){n(this).attrNS("id",n.xmlNS)==i&&(ot(t,n(this)),p(t,n(this)))})});i.isTagNS("region",u.TTMLNamespace)&&(r=i[0].getElementsByTagNameNS(u.TTMLNamespace,"style"),n.each(r,function(){p(t,n(this))}))}function p(t,i){n(i[0].attributes).each(function(){this.namespaceURI==u.TTMLStyleNamespace&&(t[ht(this)]=this.nodeValue.trim())})}function gt(t,i){var e,r,o,s,f,h;if(!i||(e=t.attrNS("region",u.TTMLNamespace),e==i))return!0;if(!e){for(r=t[0].parentNode;r!==null&&r.nodeType===n.NodeType.ELEMENT_NODE;){if(o=st(r),o)return o===i;r=r.parentNode}for(s=t[0].getElementsByTagName("*"),f=0;f<s.length;f++)if(h=s[f],st(h)===i)return!0}return!1}function st(t){var i=null;return t.nodeType===n.NodeType.ELEMENT_NODE&&t.namespaceURI===u.TTMLNamespace&&(i=t.localName==="region"?n.attrNS(t,"id",n.xmlNS):n.attrNS(t,"region",u.TTMLNamespace)),i}function ht(n){return n.localName?n.localName:n.baseName}function w(n){var t=ht(n[0]),i=n[0].namespaceURI;return i==u.TTMLNamespace?"ttml:"+t:i==="http://www.w3.org/1999/xhtml"?t:""}function b(n,t,i,r,u){var f=null,o,e,s;return(tt(n,r)&&(o=w(n),e=at(n,t,o,r),e.display!=="none"&&(s=ti(n,e,o),f=u(n,s,i))),!f)?{outerNode$:null,innerNode$:null,inheritableStyleSet:null}:{outerNode$:f.outerNode$,innerNode$:f.innerNode$,inheritableStyleSet:it(e)}}function ni(t,i,r){var f=null,e=null,h=w(t),o="",c="",s,l,a,v;switch(h){case"ttml:region":c="cue ";case"ttml:rootcontainerregion":case"ttml:body":case"ttml:div":o="div";break;case"ttml:p":o="p";break;case"ttml:span":o="span";break;case"ttml:br":o="br"}return s=t.attrNS("role",u.TTMLMetaNamespace),s&&(c+=" "+s),l=t.attrNS("agent",u.TTMLMetaNamespace),l&&(c+=" "+l),s=="x-ruby"?o="ruby":s=="x-rubybase"?o="rb":s=="x-rubytext"&&(o="rt"),o!=""&&(f=n("<"+o+">").defaultStyle().addClass(c.trim()),a=t.attrNS("title",u.TTMLMetaNamespace),a&&f.attr("title",a),v=t.attrNS("id",n.xmlNS),v&&f.attr("id",u.trackIdPrefix+v),h==="ttml:region"&&(e=n("<div>").defaultStyle().appendTo(f),e.css({display:"table","border-spacing":"0","cell-spacing":"0","cell-padding":"0",width:"100%",height:"100%"}),e=n("<div>").defaultStyle().appendTo(e),e.css("display","table-cell"),i.displayAlign&&(ct(h,e,{displayAlign:i.displayAlign}),i.displayAlign=null)),r&&h==="ttml:span"&&(e=n("<span>").defaultStyle().css("white-space","pre").appendTo(f)),f.css("position","static"),f.css("width","100%"),ct(h,f,i)),{outerNode$:f,innerNode$:e?e:f}}function ct(t,i,r){n.each(r,function(n,r){r&&i.applyStyle(n,r,u,t)})}function lt(t,i,r,u,f,e){var l=null,a=!1,o=b(t,i,r,u,f),v,c,s,y;if(o.outerNode$!=null&&(v=w(t),l=o.outerNode$,c=o.innerNode$,t.contents().each(function(){var t;if(this.nodeType!=n.NodeType.COMMENT_NODE)if(this.nodeType==n.NodeType.TEXT_NODE)c.append(document.createTextNode(this.data)),r&&v==="ttml:span"&&(a=!0);else{var i=n(this),e=r,s=i.attrNS("space",n.xmlNS);s&&(e=s==="preserve");t=lt(i,o.inheritableStyleSet,e,u,f,!0);a|=t.hasPreservedContent;t.prunedElement$&&c.append(t.prunedElement$)}}),!e))for(s=t[0].parentNode;s!==null&&s.nodeType===n.NodeType.ELEMENT_NODE&&s!=h;){if(y=n(s),o=b(y,i,r,u,f),o.outerNode$)c=o.innerNode$,c.append(l),l=o.outerNode$;else break;s=s.parentNode}return{prunedElement$:l,hasPreservedContent:a}}function at(t,i,r,f){var e=n.extend({},i),s,o;return n.extend(e,l[t.attr("data-styleSet")]),s=t[0].getElementsByTagNameNS(u.TTMLNamespace,"set"),n.each(s,function(){tt(n(this),f)&&p(e,n(this))}),r==="ttml:p"&&e.lineHeight==="normal"&&(o=vt(t,it(e),f,""),o&&(e["computed-lineHeight"]=o)),e}function vt(t,i,r,u){return t.children().each(function(){var t,o,f,e;this.nodeType==n.NodeType.ELEMENT_NODE&&(t=n(this),o=w(t),o==="ttml:span"&&(f=at(t,i,"ttml:span",r),e=f.fontSize,e&&(u+=(u?",":"")+e),u=vt(t,it(f),r,u)))}),u}function ti(t,i,r){var u={};return i.extent&&rt(r,"extent")&&(u.extent=i.extent),i.color&&rt(r,"color")&&(u.color=i.color),n.each(i,function(n,t){rt(r,n)&&(u[n]=t)}),u}function it(t){var i={};return n.each(t,function(n,t){switch(n){case"backgroundColor":case"computed-lineHeight":case"display":case"displayAlign":case"extent":case"opacity":case"origin":case"overflow":case"padding":case"showBackground":case"unicodeBidi":case"writingMode":case"zIndex":break;default:i[n]=t}}),i}function rt(n,t){switch(t){case"backgroundColor":case"display":case"visibility":return"ttml:body ttml:div ttml:p ttml:region ttml:rootcontainerregion ttml:span ttml:br".indexOf(n)>=0;case"fontFamily":case"fontSize":case"fontStyle":case"fontWeight":return"ttml:p ttml:span ttml:br".indexOf(n)>=0;case"color":case"textDecoration":case"textOutline":case"wrapOption":return"ttml:span ttml:br".indexOf(n)>=0;case"direction":case"unicodeBidi":return"ttml:p ttml:span ttml:br".indexOf(n)>=0;case"displayAlign":case"opacity":case"origin":case"overflow":case"padding":case"showBackground":case"writingMode":case"zIndex":return"ttml:region ttml:rootcontainerregion".indexOf(n)>=0;case"extent":return"ttml:tt ttml:region ttml:rootcontainerregion".indexOf(n)>=0;case"computed-lineHeight":case"lineHeight":case"textAlign":return"ttml:p".indexOf(n)>=0;default:return!1}}function yt(n){return e.filter(function(t){return t.element?tt(t.element,n):!0})}function ii(n,t){return e=n.events,yt(t)}function ri(n,t,i){return c=n.rootContainerRegion$,h=n.body$,o=n.layout$,l=n.StyleSetCache,u=n.settings,e=n.events,ui(t,i)}function ui(t,i){var r=[],h=yt(t),s=f.attrNS("space",n.xmlNS)==="preserve",l=o?o[0].getElementsByTagNameNS(u.TTMLNamespace,"region"):[],e;return n.each(l,function(){var o=n(this),a=o.attrNS("id",n.xmlNS),v=o.attr("data-isanonymous"),f,c,e,l;(v||a)&&(f=b(o,u.defaultRegionStyle,s,t,i),f.outerNode$&&(c=f.innerNode$,e=f.outerNode$,n.each(h,function(r,u){var o,h,e;u.element&&(o=n(u.element),gt(o,v?null:a)&&(h=lt(o,f.inheritableStyleSet,s,t,i),e=h.prunedElement$,h.hasPreservedContent||!e||e.text().trim().length||(e=null),e&&c.append(e)))}),l=e.attr("data-showBackground")==="always",(l||c.children().length>0)&&(l&&e.removeAttr("data-showBackground"),r.push(e))))}),r.length&&(e=b(c,{overflow:"hidden",padding:"0"},!1,t,i),n.each(r,function(n,t){e.innerNode$.append(t)}),r=[],r.push(e.outerNode$)),r}function pt(t){if(t.isTagNS("p",u.TTMLNamespace)){var i=[],r=null;t.contents().each(function(){this.nodeType===n.NodeType.TEXT_NODE&&(r!=n.NodeType.TEXT_NODE&&i.push([]),i[i.length-1].push(n(this)));r=this.NodeType});n.each(i,function(t,i){var r=n(f[0].ownerDocument.createElementNS(u.TTMLNamespace,"span"));n.each(i,function(n,t){r.append(n?t:t.replaceWith(r))})})}t.children().each(function(){pt(n(this))})}function fi(){var t,i;c=n(f[0].ownerDocument.createElementNS(u.TTMLNamespace,"rootcontainerregion")).appendTo(f);t=u.rootContainerRegion?"{0}px {1}px".format(u.rootContainerRegion.width,u.rootContainerRegion.height):"auto";c=c.attrNS("extent",u.TTMLStyleNamespace,t);y||(y=n(f[0].ownerDocument.createElementNS(u.TTMLNamespace,"head")).appendTo(f));o||(o=n(f[0].ownerDocument.createElementNS(u.TTMLNamespace,"layout")).appendTo(y));i=o[0].getElementsByTagNameNS(u.TTMLNamespace,"region");i.length==0&&(n(f[0].ownerDocument.createElementNS(u.TTMLNamespace,"region")).attrNS("id",n.xmlNS,"anonymous").attr("data-isanonymous","1").appendTo(o),h.attrNS("region",u.TTMLNamespace,"anonymous"),u.log&&u.log("added anonymous region"))}function ei(){var e,o,s,c,n;if(f&&h){var t=f.attrNS("cellResolution",u.TTMLParameterNamespace),r=f.attrNS("extent",u.TTMLStyleNamespace),i=null;t&&(t=t.trim().split(/\s+/),t.length==2&&(e=Math.round(parseFloat(t[0])),o=Math.round(parseFloat(t[1])),o>0&&e>0&&(i={rows:o,columns:e})));u.cellResolution=i?i:et.cellResolution;r&&r!=="auto"&&(n=r.split(/\s+/),n.length==2&&n[0].substr(n[0].length-2)==="px"&&n[1].substr(n[1].length-2)==="px"&&(s=parseFloat(n[0].substr(0,n[0].length-2)),c=parseFloat(n[1].substr(0,n[1].length-2)),u.rootContainerRegion={width:Math.round(s),height:Math.round(c)}))}u.log&&u.log("relatedMediaObjectRegion({0}x{1})  rootContainerRegion({2}x{3})  cellResolution({4}X{5}){6}".format(u.relatedMediaObjectRegion.width,u.relatedMediaObjectRegion.height,u.rootContainerRegion?u.rootContainerRegion.width:"-",u.rootContainerRegion?u.rootContainerRegion.height:"-",u.cellResolution.columns,u.cellResolution.rows,i?"":"(default)"))}function oi(){var t=null,n=wt.documentElement;return n.localName==="tt"&&(n.namespaceURI!=="http://www.w3.org/ns/ttml"&&(u.TTMLNamespace=n.namespaceURI,u.TTMLStyleNamespace=u.TTMLNamespace+"#styling",u.TTMLParameterNamespace=u.TTMLNamespace+"#parameter",u.TTMLMetaNamespace=u.TTMLNamespace+"#metadata"),t=n),t}var et={TTMLNamespace:"http://www.w3.org/ns/ttml",TTMLStyleNamespace:"http://www.w3.org/ns/ttml#styling",TTMLParameterNamespace:"http://www.w3.org/ns/ttml#parameter",TTMLMetaNamespace:"http://www.w3.org/ns/ttml#metadata",trackIdPrefix:"",mediaFrameRate:30,mediaFrameRateMultiplier:1,mediaSubFrameRate:1,mediaTickRate:1e3,mediaStart:-1,mediaDuration:99999999,supportedTimeBase:"media",cellResolution:{rows:15,columns:32},defaultRegionStyle:{backgroundColor:"transparent",color:"#E8E9EA",direction:"ltr",display:"auto",displayAlign:"before",extent:"auto",fontFamily:"default",fontSize:"1c",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",opacity:1,origin:"auto",overflow:"hidden",padding:"0",showBackground:"always",textAlign:"start",textDecoration:"none",textOutline:"none",unicodeBidi:"normal",visibility:"visible",wrapOption:"noWrap",writingMode:"lrtb",zIndex:"auto"},fontMap:{"default":"Lucida sans typewriter, Lucida console, Consolas",monospaceSerif:"Courier",proportionalSerif:"Times New Roman, Serif",monospaceSansSerif:"Lucida sans typewriter, Lucida console, Consolas",proportionalSansSerif:"Arial, Sans-serif",casual:"Verdana",cursive:"Zapf-Chancery, Segoe script, Cursive",smallCaps:"Arial, Helvetica",monospace:"Lucida sans typewriter, Lucida console, Consolas",sansSerif:"Arial, Sans-serif",serif:"Times New Roman, Serif"}},u=n.extend(!0,{},et,r||{}),wt=typeof i=="string"?t(i):i,f=null,o=null,y=null,g=null,h=null,c=null,e=[],l=[],a=new bt,v,k,d;if(e=[],v=oi(),k=v!=null?v.getElementsByTagNameNS(u.TTMLNamespace,"body"):null,k&&k.length>0){var s=v.getElementsByTagNameNS(u.TTMLNamespace,"head"),ut=s&&s.length>0?s[0].getElementsByTagNameNS(u.TTMLNamespace,"styling"):null,ft=s&&s.length>0?s[0].getElementsByTagNameNS(u.TTMLNamespace,"layout"):null;f=n(v);h=n(k[0]);y=s&&s.length>0?n(s[0]):null;g=ut&&ut.length>0?n(ut[0]):null;o=ft&&ft.length>0?n(ft[0]):null;try{ei();fi();d=f.attrNS("timeBase",u.TTMLParameterNamespace);d||(d="media");u.supportedTimeBase.indexOf(d)!=-1&&(pt(h),nt(f,{first:u.mediaStart,second:u.mediaDuration},!0),kt(),u.log&&u.log("parseComplete  events({0})  styleSets({1})".format(e.length,l.length)))}catch(si){u.log&&u.log("unexpected error:  {0}".format(si))}e.push({time:u.mediaDuration,element:null});e.sort(function(n,t){return n.time-t.time})}return{events:e,cues:function(n){return ri(this,n,ni)},rootContainerRegion$:c,body$:h,layout$:o,StyleSetCache:l,settings:u,nextEvent:function(n){return ii(this,n)},currentEvent:[]}}return n.fn.extend({attrNS:function(t,i,r){var u=null;return this.length>0&&(u=n.attrNS(this[0],t,i,r),r&&(u=this)),u},isTagNS:function(n,t){var i=!1;return i=this[0].localName?n==this[0].localName:n==this[0].baseName,i&this[0].namespaceURI==t}}),n.extend({NodeType:{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},TtmlNamedColorMap:{transparent:"rgba(0,0,0,0)",black:"rgba(0,0,0,1)",silver:"rgba(192,192,192,1)",gray:"rgba(128,128,128,1)",white:"rgba(255,255,255,1)",maroon:"rgba(128,0,0,1)",red:"rgba(255,0,0,1)",purple:"rgba(128,0,128,1)",fuchsia:"rgba(255,0,255,1)",magenta:"rgba(255,0,255,1)",green:"rgba(0,128,0,1)",lime:"rgba(0,255,0,1)",olive:"rgba(128,128,0,1)",yellow:"rgba(255,255,0,1)",navy:"rgba(0,0,128,1)",blue:"rgba(0,0,255,1)",teal:"rgba(0,128,128,1)",aqua:"rgba(0,255,255,1)",cyan:"rgba(0,255,255,1)"},xmlNS:"http://www.w3.org/XML/1998/namespace",attrNS:function(t,i,r,u){var f=null;return t.nodeType===n.NodeType.ELEMENT_NODE&&(u?t.setAttributeNS(r,i,u):(f=t.getAttributeNS(r,i),f||n.each(t.attributes,function(n,t){t.localName==i&&t.lookupNamespaceURI(t.prefix)==r&&(f=t.value)}))),f}}),n.fn.extend({defaultStyle:function(){return this.css({"background-color":n.TtmlNamedColorMap.transparent,offset:"0",margin:"0",padding:"0",border:"0"}),this},ttmlToCssUnits:function(n,t,i,r){var u=n,f,h;if(n&&(f=n.charAt(n.length-1),f==="c"||f==="%")){var o=t.rootContainerRegion?t.rootContainerRegion:t.relatedMediaObjectRegion,s=parseFloat(n.substr(0,n.length-1)),e=i?o.width:o.height;f==="c"?(h=i?t.cellResolution.columns:t.cellResolution.rows,u=s*e/h):f==="%"&&(r&&(e=i?r.width:r.height),u=e*s/100);u=Math.round(u*10)/10;u=u+"px"}return u},ttmlToCssFontSize:function(n,t,i,r,u){var f=n,e;if(n&&(e=n.charAt(n.length-1),e==="c"||u&&e==="%")){var o=t.rootContainerRegion?t.rootContainerRegion:t.relatedMediaObjectRegion,s=parseFloat(n.substr(0,n.length-1)),h=i?o.width:o.height,c=i?t.cellResolution.columns:t.cellResolution.rows;f=s*h/c;e==="%"&&(f/=100);r&&(f*=r);f=Math.floor(f*10)/10;f=f+"px"}return f},ttmlToCssTextDecoration:function(t){var i="",r=t.split(/\s+/);return n.each(r,function(n,t){switch(t){case"none":case"noUnderline":case"noLineThrough":case"noOverline":i="none"}}),n.each(r,function(n,t){switch(t){case"noUnderline":case"noLineThrough":case"noOverline":break;case"lineThrough":i+=" line-through";break;default:i+=" "+t}}),i.trim()},lengthRegEx:/\s*(\d+\.*\d*)(.*)\s*/,ttmlToCssTextOutline:function(t,i){var u="none",o,f,e,l,r,s,a,h,c;if(typeof t=="string"&&t!="none"&&(r=t.split(/\s+/),r.length==1?(o=n(this).css("color"),f=r[0],e=""):r.length==3?(o=r[0],f=r[1],e=r[2]):r.length==2&&(l=r[0].charAt(0),l>="0"&&l<="9"?(o=n(this).css("color"),f=r[0],e=r[1]):(o=r[0],f=r[1],e="")),e=this.ttmlToCssFontSize(e,i,!1,.75),f=this.ttmlToCssFontSize(f,i,!1,.75),r=this.lengthRegEx.exec(f),r&&r.length==3)){for(s=Math.round(parseFloat(r[1])),a=r[2],u="",h=-s;h<=s;h++)for(c=-s;c<=s;c++)(h!=0||c!=0)&&(u+="{0}{4} {1}{4} {2} {3}, ".format(h,c,e,this.ttmlToCssColor(o),a));u&&(u=u.substr(0,u.length-2))}return u},rgbaRegEx:/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)\s*/,ttmlToCssColor:function(t){var r,u,f,e,o=t,i;return t=t.toLowerCase(),t.indexOf("rgba")==0?(i=this.rgbaRegEx.exec(t),i&&i.length==5&&(r=i[1],u=i[2],f=i[3],e=parseInt(i[4]),o="rgba({0},{1},{2},{3})".format(r,u,f,Math.round(e*100/255)/100))):t.charAt(0)=="#"&&t.length==9?(r=parseInt(t.substr(1,2),16),u=parseInt(t.substr(3,2),16),f=parseInt(t.substr(5,2),16),e=parseInt(t.substr(7,2),16),o="rgba({0},{1},{2},{3})".format(r,u,f,Math.round(e*100/255)/100)):n.TtmlNamedColorMap[t]&&(o=n.TtmlNamedColorMap[t]),o},applyStyle:function(t,i,r,u){var f=i,l,a,s,o,e,h,c,y,p;switch(t){case"color":case"backgroundColor":return f=this.ttmlToCssColor(i),this.css(t,f);case"direction":return this.css(t,f);case"display":return this.css(t,f);case"displayAlign":switch(i){case"before":f="top";break;case"center":f="middle";break;case"after":f="bottom"}return this.css("vertical-align",f);case"extent":return i!=="auto"&&(s=i.split(/\s+/),s.length==2&&(l=this.ttmlToCssUnits(s[0],r,!0),a=this.ttmlToCssUnits(s[1],r,!1))),l||(l=r.rootContainerRegion?r.rootContainerRegion.width:r.relatedMediaObjectRegion.width,a=r.rootContainerRegion?r.rootContainerRegion.height:r.relatedMediaObjectRegion.height),this.css({position:"absolute",width:l,"min-width":l,"max-width":l,height:a,"min-height":a,"max-height":a});case"fontFamily":return r.fontMap&&r.fontMap[i]&&(f=r.fontMap[i]),i==="smallCaps"&&this.css("fontVariant","small-caps"),this.css(t,f);case"fontSize":return e=i.split(/\s+/),f=e.length>1?this.ttmlToCssFontSize(e[1],r,!1,.75,u==="ttml:region"):this.ttmlToCssFontSize(e[0],r,!1,.75,u==="ttml:region"),this.css(t,f);case"fontStyle":return this.css(t,f);case"fontWeight":return this.css(t,f);case"lineHeight":return f=i==="normal"?i:this.ttmlToCssFontSize(i,r,!1),this.css("line-height",f);case"computed-lineHeight":var w=this,b=i.split(","),v=-1;return n.each(b,function(n,t){if(f=w.ttmlToCssFontSize(t,r,!1),f&&f.indexOf("px")==f.length-2){var i=parseFloat(f.substr(0,f.length-2));!isNaN(i)&&i>v&&(v=i)}}),v>=0?this.css("line-height",v+"px"):this;case"origin":return i!="auto"&&(s=i.split(/\s+/),s.length==2&&this.css({position:"absolute",left:this.ttmlToCssUnits(s[0],r,!0),top:this.ttmlToCssUnits(s[1],r,!1)})),this;case"opacity":return this.css(t,f);case"padding":o={width:this.width(),height:this.height()};e=i.split(/\s+/);switch(e.length){case 1:h=this.ttmlToCssUnits(e[0],r,!1,o);c=this.ttmlToCssUnits(e[0],r,!0,o);f="{0} {1} {0} {1}".format(h,c);break;case 2:h=this.ttmlToCssUnits(e[0],r,!1,o);c=this.ttmlToCssUnits(e[1],r,!0,o);f="{0} {1} {0} {1}".format(h,c);break;case 3:h=this.ttmlToCssUnits(e[0],r,!1,o);c=this.ttmlToCssUnits(e[1],r,!0,o);y=this.ttmlToCssUnits(e[2],r,!1,o);f="{0} {1} {2} {1}".format(h,c,y);break;case 4:h=this.ttmlToCssUnits(e[0],r,!1,o);c=this.ttmlToCssUnits(e[1],r,!0,o);y=this.ttmlToCssUnits(e[2],r,!1,o);p=this.ttmlToCssUnits(e[3],r,!0,o);f="{0} {1} {2} {3}".format(h,c,y,p)}return this.css({"box-sizing":"border-box","-moz-box-sizing":"border-box","border-style":"solid","border-color":"transparent","border-width":f});case"showBackground":return this.attr("data-showBackground",i);case"textAlign":f=i;switch(i){case"start":f="left";break;case"end":f="right"}return this.css("text-align",f);case"textDecoration":return f=this.ttmlToCssTextDecoration(i),this.css("text-decoration",f);case"textOutline":return this.css("text-shadow",n(this).ttmlToCssTextOutline(f,r));case"unicodeBidi":switch(i){case"bidiOverride":f="bidi-override"}return this.css("unicode-bidi",f);case"visibility":return this.css(t,f);case"writingMode":switch(i){case"lr":case"lrtb":this.css("writing-mode","horizontal-tb");this.css("-webkit-writing-mode","horizontal-tb");this.css("writing-mode","lr-tb");break;case"rl":case"rltb":this.css("writing-mode","horizontal-tb");this.css("-webkit-writing-mode","horizontal-tb");this.css("writing-mode","rl-tb");break;case"tblr":this.css("text-orientation","upright");this.css("writing-mode","vertical-lr");this.css("-webkit-text-orientation","upright");this.css("-webkit-writing-mode","vertical-lr");this.css("writing-mode","tb-lr");break;case"tb":case"tbrl":this.css("text-orientation","upright");this.css("writing-mode","vertical-rl");this.css("-webkit-text-orientation","upright");this.css("-webkit-writing-mode","vertical-rl");this.css("writing-mode","tb-rl")}return this;case"wrapOption":return this.css("white-space",i=="noWrap"?"nowrap":i=="pre"?"pre":"normal");case"zIndex":return this.css(t,f);default:return this.css(t,f)}}}),n.extend({ms_TtmlParser:function(n,t){return i(n,t)}}),1});define("wcvp.paneHelper",["jquery","wcvp.environment"],function(n,t){function i(i){function h(t){switch(t.keyCode){case 13:case 32:n(t.currentTarget).trigger("click",!0);t.preventDefault()}}function c(n){if(f)switch(n.keyCode){case 9:n.shiftKey||(f.focus(),n.preventDefault())}}function l(n){if(e)switch(n.keyCode){case 9:n.shiftKey&&(e.focus(),n.preventDefault())}}function s(){return t.IPhone||t.BlackBerry||t.Android&&!t.AndroidModern||t.Android&&t.IsMobile?!1:!0}var r,u=!1,f,e,o=this;o.OnShow=function(n,t){!u&&i&&(t&&s()?i.fadeIn(500):i.show(),u=!0,r&&n&&r.focus())};o.OnHide=function(n){u&&(n&&s()?i.fadeOut(500):i.hide(),u=!1)};o.SetUpButtonAction=function(t,u){i&&(r=n(t,i),r&&r.bind("click",u).bind("keydown",h))};o.SetUpFocusTrap=function(){var n=i.find("[tabindex]");n>1&&(f=n.eq(0),f.bind("keydown",l),e=n.eq(-1),e.bind("keydown",c))}}return i});define("wcvp.captionSettingsPane",["jquery","wcvp.paneHelper","wcvp.locStrings","wcvp.Logger"],function(n,t,i,r){function s(s){function h(n,t){r.Log(n,"CaptionSettings"+t)}function et(t,r,f,e){var h=t.replace(/_/g,""),o='" aria-labelledby="'+t+'" ',s='<div class="opt'+(e===1?" clr":"")+'"><div class="optlbl'+(e===2?" ext":"")+'"><label id="'+t+'">'+i["closecaption_label_"+t]+'<\/label><\/div><select class="optslt" id="'+h+'"'+o+'><option id="default"'+o+'value="">Default<\/option>';return n.each(u[f].map,function(n,t){s+='<option id="'+n+'"'+o+'value="'+r+t+'">'+i[u[f].pre+n]+"<\/option>"}),s+="<\/select><\/div>"}function it(){if(!tt){c=n('<div class="pane ccpane">').appendTo(ut);var i=e;n.each(f,function(n,t){i+=et(n,t.val,t.opt,t.cl)});i+=o;c.html(i);l=new t(c);l.SetUpButtonAction(".pane-close",vt);l.SetUpButtonAction(".reset",at);l.SetUpButtonAction(".done",lt);l.SetUpFocusTrap();v=c.find("select");v.each(function(t,i){n(i).bind("change",rt)});tt=!0}h("Render");v.each(function(t,i){var r=n(i),u=y[r.attr("id")],f;u?(f=r.find("option"),f.each(function(n,t){t.id===u&&(i.selectedIndex=n)})):i.selectedIndex=0});rt()}function ot(n,t){h("Show");w=n;n&&w.resumeAction==="endslate"&&(b=!0);l.OnShow(t,b)}function d(n){h("Hide");l.OnHide(b);s.OnPaneClosed(ft,w,n)}function rt(){var t,i,u,r,f;c&&(t={},y={},v.each(function(n,i){var r=i.options[i.selectedIndex].id;y[i.id]=r;r!=="default"&&(t[i.id]=i.options[i.selectedIndex].value)}),i=c.find(".preview_txt"),i.removeAttr("style"),u=g(t,"text"),n.each(u,function(n,t){i.css(n,t)}),r=c.find(".cc_preview"),r.removeAttr("style"),f=g(t,"window"),n.each(f,function(n,t){r.css(n,t)}))}function g(t,i){var r={};return n.each(t,function(t,u){if(t.indexOf(i)===0&&t.indexOf("transparency")<0&&u&&u.length>0){var f=u.split(";");n.each(f,function(n,t){var i=t.split(":");i.length>1&&(r[i[0].trim()]=i[1].trim())})}}),n.each(t,function(n,t){var u,f,e;n.indexOf(i)===0&&n.indexOf("transparency")>0&&(u=t.split(":"),u.length>1&&(f=r[u[0].trim()],e=u[1].trim(),r[u[0].trim()]=ct(f,e)))}),r}function st(){var t={};return n.each(f,function(n,i){var r=n.replace(/_/g,""),f=p[r];f&&(t[r]=i.val+u[i.opt].map[f])}),t}function ht(n){return g(st(),n)}function ct(n,t){var u="rgba(0,0,0,{0})".format(t),f=n?n.indexOf("#"):-1,r,i;if(f>=0&&(r=n.substr(f+1),i=r.length/3,i>0)){var e=parseInt(r.substr(0,i),16),o=parseInt(r.substr(i,i),16),s=parseInt(r.substr(i*2,i),16);u="rgba({0},{1},{2},{3})".format(e,o,s,t)}return u}function lt(n,t){h("Done");var i={};v.each(function(n,t){i[t.id]=t.options[t.selectedIndex].id});pt(i);d(t)}function at(){h("Reset");y={};yt();it()}function vt(n,t){h("Pane Close");d(t);n&&n.preventDefault()}function yt(){h("Reset pref");n.cookie(k,null);nt()}function nt(t){if(p={},t||(t=n.cookie(k)),t){h("Load pref:  json("+t+")","ttml");try{var i=n.parseJSON?n.parseJSON(t):JSON&&JSON.parse?JSON.parse(t):"";n.each(f,function(n){var t=n.replace(/_/g,"");i[t]&&(p[t]=i[t])})}catch(r){}}y=n.extend(!0,{},p)}function pt(t){var r={},i;n.each(t,function(n,t){t&&t.length>0&&t!=="default"&&(r[n]=t)});i=n.toJSON(r);n.cookie(k,i,36500);h("store pref:  json("+i+")","ttml");nt(i)}var ut=s.PaneContainer,c=null,v=null,ft="captionsettings",l=null,w=null,b=!1,y={},p={},k="ttmluxoverrides",tt=!1,a;nt();a=this;a.Render=it;a.OnHide=d;a.OnShow=ot;a.GetUserPreferences=ht;s.CaptionSettingsPane=a}var u={font:{pre:"closecaption_options_font_",map:{casual:"Verdana;font-variant:normal",cursive:"Zapf-Chancery,Segoe script,Cursive;font-variant:normal",monospacesansserif:"Lucida sans typewriter,Lucida console,Consolas;font-variant:normal",monospaceserif:"Courier;font-variant:normal",proportionalsansserif:"Arial,Sans-serif;font-variant:normal",proportionalserif:"Times New Roman,Serif;font-variant:normal",smallcaps:"Arial,Helvetica,Sans-serif;font-variant:small-caps"}},size:{pre:"closecaption_options_size_",map:{"50":"50%","75":"75%","100":"100%","150":"150%","200":"200%"}},trans:{pre:"closecaption_options_transparency_",map:{opaque:"1",semitransparent_33:"0.33",semitransparent_66:"0.66",transparent:"0"}},color:{pre:"closecaption_options_color_",map:{black:"#000",blue:"#0000FF",cyan:"#00FFFF",green:"#00FF00",magenta:"#FF00FF",red:"#FF0000",white:"#FFF",yellow:"#FFFF00"}},edge:{pre:"closecaption_options_edge_",map:{none:"none",depressed:"1px 1px 0 #FFF,-1px -1px 0 #000",dropshadow:"1px 1px 0 #000",raised:"1px 1px 0 #000,-1px -1px 0x #FFF",uniform:"1px 1px 0 #000,-1px 1px 0 #000,1px -1px 0 #000,-1px -1px 0 #000"}}},f={text_font:{val:"font-family:",opt:"font",cl:0},text_color:{val:"color:",opt:"color",cl:0},text_size:{val:"font-size:",opt:"size",cl:0},text_edge:{val:"text-shadow:",opt:"edge",cl:1},text_transparency:{val:"color:",opt:"trans",cl:0},text_background_color:{val:"background:",opt:"color",cl:0},text_background_transparency:{val:"background:",opt:"trans",cl:1},window_background_color:{val:"background:",opt:"color",cl:2},window_background_transparency:{val:"background:",opt:"trans",cl:2}},e='<button class="pane-close" title="Close" role="button" tabindex="0"> Close<\/button><div class="pane-border"><div class="pane-title">Caption settings<\/div><div class="pane-scroll">',o='<\/div><div class="pane-footer"><div class="cc_preview"><span class="preview_txt" > Caption preview <\/span><\/div><div class="cc_ctr"><button class="btn reset" title="RESET" role="button" tabindex="0">RESET<\/button><button class="btn done" title="DONE" role="button" tabindex="0">DONE<\/button><\/div><\/div><\/div>';return s});define("wcvp.closeCaptioningModel",["jquery","wcvp.Logger"],function(n,t){function i(i,r){function c(n,t){if(n.length==0||n.length!=t.length)return!0;for(var i=0;i<n.length;i++)if(n[i].time!=t[i].time)return!0;return!1}function l(){var t,r;if(s){var f=Math.floor(i.GetCurrentPlayingTime()*1e3),l=u.currentEvent,h=u.nextEvent(f);c(l,h)&&(u.currentEvent=h,o.empty(),e.hide(),t=o.css("bottom"),t&&(t.substr(t.length-2)==="px"&&(t=t.substr(0,t.length-2)),u.settings.relatedMediaObjectRegion={width:e.width(),height:e.height()-t}),r=u.cues(f),r.length>0&&(n.each(r,function(t,i){a(i);n(i).appendTo(o)}),e.css("display","block")))}}function a(t){var r=i?i.GetCaptionsSettingsPane():null,u,e,f,o;r&&(u=r.GetUserPreferences("text"),u&&(e=t.find("p, span, br"),e.each(function(t,i){n.each(u,function(t,r){t==="font-size";n(i).css(t,r)})})),f=r.GetUserPreferences("window"),f&&(o=t.children(),o.each(function(t,i){n.each(f,function(t,r){n(i).css(t,r)})})))}function v(){s&&(u.currentEvent=[]);e.hide();o.empty()}var s=!1,u=null,o=i&&i.CaptionContainer,e=i&&i.CaptionContainerWrapper,f,h;i&&r&&n.ms_TtmlParser&&(f=o.css("bottom"),f&&f.substr(f.length-2)==="px"&&(f=f.substr(0,f.length-2)),h={log:t.Log,fontMap:{"default":"Segoe ui, Arial"},relatedMediaObjectRegion:{width:e.width(),height:e.height()-f}},u=n.ms_TtmlParser(r,h),u&&u.events&&u.events.length&&(s=!0));this.IsReady=function(){return s};this.Reset=v;this.UpdateCaptions=l}return i});define("wcvp.controlBar",["jquery","wcvp.locStrings","wcvp.closeCaptioningModel","wcvp.wcAjax","setCookie"],function(n,t,i,r,u){function o(n){var t="";return n>0&&(t=n>1400?"hd":n>600?"hq":n>400?"sd":"lo"),t}function s(s){function hi(){c&&(h={},h.play={element:n(".play",c)},h.pause={element:n(".pause",c)},h.progress={element:n(".mvp_progress",c)},h.scrubber={element:n(".scrubber_bar",c)},h["time-total"]={element:n(".scrubber_bar .total",c)},h["time-buffered"]={element:n(".scrubber_bar .buffered",c)},h["time-elapsed"]={element:n(".scrubber_bar .elapsed",c)},h["time-handle"]={element:n(".mvp_progress .prog_handle",c)},h["timetext-container"]={element:n(".progress_text",c)},h["timetext-current"]={element:n(".progress_text .time_passed",c)},h["timetext-total"]={element:n(".progress_text .time_total",c)},h.controls={element:n(".controls",c)},h.info={element:n(".controls .info",c)},h.volume_container={element:n(".volume_ctrl",c)},h["volume-toggle"]={element:n(".volume_ctrl .vid_volon",c)},h["volume-toggle-mute"]={element:n(".volume_ctrl .vid_volmute",c)},h["volume-popup"]={element:n(".volume_bar",c),activeClass:"volume_active"},h["volume-total"]={element:n(".volume_total",c)},h["volume-elapsed"]={element:n(".volume_elapsed",c)},h["volume-handle"]={element:n(".volume_bar .vol_handle",c)},h.mute={element:n(".volume_bar .vol_on",c)},h.unmute={element:n(".volume_bar .vol_mute",c)},nt.CCCultureInfoArray!=null&&n.asBool(nt.ShowClosedCaptioning,!0)&&(h["close-caption-container"]={element:n(".caption_ctrl",c)},h["close-caption-toggle"]={element:n(".caption_ctrl .closecaption",c)},h["close-caption-bar"]={element:n(".close_caption_bar",c),activeClass:"close_caption_active"},h["close-caption-box"]={element:n(".cc_box",c)},h["close-caption-langbox"]={element:n(".cc_langbox",c)}),nt.ShowQuality&&(h.quality={element:n(".qlty_ctrl",c)},h["quality-toggle"]={element:n(".vid_qlty",c)},h["quality-toggle-text"]={element:n(".vid_qlty",c)},h["quality-popup"]={element:n(".qltybar",c),activeClass:"quality_active"},h["quality-selection-hd"]={element:n(".qltybar .hd",c)},h["quality-selection-hq"]={element:n(".qltybar .hq",c)},h["quality-selection-sd"]={element:n(".qltybar .sd",c)},h["quality-selection-lo"]={element:n(".qltybar .low",c)}),h.expand={element:n(".vid_fs",c)},h.unexpand={element:n(".vid_exitfs",c)})}function ci(){p&&(l={},l.progress={element:n(".prgbar",p)},l["time-elapsed"]={element:n(".elapsed",p)},l.controls={element:n(".mvp_ctrls",p)},l.play={element:n(".mvp_ctrls .play",p)},l.pause={element:n(".mvp_ctrls .pause",p)},l["status-text"]={element:n(".statustext",p)},l["volume-control"]={element:n(".volume_ctrl",p)},l.unmute={element:n(".volume_ctrl .vid_volmute",p)},l.mute={element:n(".volume_ctrl .vid_volon",p)})}function yt(){h&&(h.pause.element.bind("click",dt).bind("keydown",a),h.play.element.bind("click",kt).bind("keydown",a),h["volume-toggle"].element.bind("click",function(n,t){tt("volume-popup",t)}).bind("contextmenu",function(n){n.preventDefault()}).bind("keydown",a),h["volume-toggle-mute"].element.bind("click",function(n,t){tt("volume-popup",t)}).bind("contextmenu",function(n){n.preventDefault()}).bind("keydown",a),h["volume-popup"].element.bind("mouseenter focusin",function(){h["volume-popup"].hideTimerId&&(clearTimeout(h["volume-popup"].hideTimerId),h["volume-popup"].hideTimerId=0)}).bind("mouseleave",function(){h["volume-popup"].hideTimerId=setTimeout(function(){v("volume-popup",!1,!0)},ut)}),ct("volume_container","volume-popup"),h.mute.element.bind("click",function(n,t){s.IsPlayerMute()?et():ft(t)}).bind("keydown",{type:"mute"},a),h.unmute.element.bind("click",function(n,t){s.IsPlayerMute()?et():ft(t)}).bind("keydown",{type:"mute"},a),h["volume-total"].element.bind("mousedown",{type:"volume-handle"},b),h["volume-elapsed"].element.bind("mousedown",{type:"volume-handle"},b),h["volume-handle"].element.bind("mousedown",{type:"volume-handle"},b).bind("keydown",{type:"volume-handle"},a),st(h["volume-popup"]),h["quality-toggle"].element.bind("click",function(n,t){tt("quality-popup",t)}).bind("keydown",{type:"quality-selection"},a).bind("selectstart",function(n){n.preventDefault()}).bind("focusin",function(){h["quality-toggle"].hasFocus=!0;d()}).bind("focusout",function(){h["quality-toggle"].hasFocus=!1;g()}).removeClass("buttondisabled"),s.CurrentMedia()&&n(".qltybar >div[data-bitrate='"+s.CurrentMedia().BitRate+"']",c).addClass(f),n(".qltybar >div",c).bind("click",function(t,i){var r=n(this);r.hasClass(f)?t.preventDefault():(n(".qltybar >div",c).removeClass(f),r.addClass(f),tt("quality-popup",i),ir(r.data("bitrate")))}).bind("keydown",{type:"quality-selection"},a).bind("focusin",function(){n(this).hasFocus=!0;d()}).bind("focusout",function(){n(this).hasFocus=!1;g()}),h["close-caption-toggle"]!=null&&(h["close-caption-toggle"].element.bind("click",function(n,t){tt("close-caption-bar",t)}).bind("keydown",a),h["close-caption-bar"].element.bind("mouseenter focusin",function(){h["close-caption-bar"].hideTimerId&&(clearTimeout(h["close-caption-bar"].hideTimerId),h["close-caption-bar"].hideTimerId=0)}).bind("mouseleave",function(){h["close-caption-bar"].hideTimerId=setTimeout(function(){v("close-caption-bar",!1,!0)},ut)}),ct("close-caption-container","close-caption-bar")),h.info!=null&&h.info.element.bind("click",wi).bind("keydown",a),h["quality-popup"]&&h["quality-popup"].element.bind("mouseenter focusin",function(){h["quality-popup"].hideTimerId&&(clearTimeout(h["quality-popup"].hideTimerId),h["quality-popup"].hideTimerId=0)}).bind("mouseleave",function(){h["quality-popup"].hideTimerId=setTimeout(function(){v("quality-popup",!1,!0)},ut)}),h.quality&&ct("quality","quality-popup"),h.expand.element.bind("click",gt).bind("keydown",{type:"player-expand"},a),h.unexpand.element.bind("click",gt).bind("keydown",{type:"player-unexpand"},a),h.scrubber.element.bind("mousedown",{type:"time-handle"},b).bind("click",{type:"time-handle"},di),h["time-total"].element.bind("mousedown",{type:"time-handle"},b),h["time-buffered"].element.bind("mousedown",{type:"time-handle"},b),h["time-elapsed"].element.bind("mousedown",{type:"time-handle"},b),h["time-handle"].element.bind("mousedown",{type:"time-handle"},b).bind("keydown",{type:"time-handle"},a),n.each(h,function(n,t){t.interactive&&t.element.bind("focusin",function(){t.hasFocus=!0;d()}).bind("focusout",function(){t.hasFocus=!1;g()})}))}function pt(){l&&(l.pause.element.bind("click",dt).bind("keydown",a),l.play.element.bind("click",kt).bind("keydown",a),l.mute.element.bind("click",function(n,t){s.IsPlayerMute()?et():ft(t)}).bind("keydown",{type:"mute"},a),l.unmute.element.bind("click",function(n,t){s.IsPlayerMute()?et():ft(t)}).bind("keydown",{type:"mute"},a),n.each(l,function(n,t){t.interactive&&t.element.bind("focusin",function(){t.hasFocus=!0;d()}).bind("focusout",function(){t.hasFocus=!1;g()})}))}function wt(){l&&(l.pause.element.bind("click",ai),l.play.element.bind("click",li),l.mute.element.bind("click",vi),l.unmute.element.bind("click",yi))}function li(){s.OnSimulatedAdPlay()}function ai(){s.OnSimulatedAdPause()}function vi(){s.Mute(!0)}function yi(){s.Unmute(!0)}function ct(n,t){h[n].element.bind("focusout",function(){h[t].hideTimerId&&(clearTimeout(h[t].hideTimerId),h[t].hideTimerId=0);h[t].hideTimerId=setTimeout(function(){v(t,!1,!1)},50)});h[n].element.bind("focusin",function(){h[t].hideTimerId&&(clearTimeout(h[t].hideTimerId),h[t].hideTimerId=0)})}function pi(){var t=null,i=s.IsAdPlaying();return l&&i&&n.each(l,function(n,i){i.hasFocus&&(t=n)}),h&&!i&&n.each(h,function(n,i){i.hasFocus&&(t=n)}),t==null&&w&&n.each(w,function(n,i){i.hasFocus&&(t=i.name)}),t}function k(n){h&&h[n]!=null&&h[n].element.focus();l&&l[n]!=null&&l[n].element.focus()}function bt(){h&&n.each(h,function(n,t){t.hasFocus&&t.element.blur()});l&&n.each(l,function(n,t){t.hasFocus&&t.element.blur()})}function kt(){s.Play()}function dt(n,t){s.Pause();t&&(s.OnPause(),k("play"))}function wi(n,t){s.OnInfo(t)}function ft(n){s.Mute(!0);s.IsAdPlaying()||(v("volume-popup",!1),n&&k("volume-toggle"))}function et(){s.Unmute(!0)}function gt(n,t){var i=s.PlayerElt.parent()[0],r=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;si?r?i===r&&(document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()):i.requestFullScreen?i.requestFullScreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen?i.webkitRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen():s.Expand(t)}function d(n){s.ShowControlsBasedOnState(n)}function g(n){s.HideControlsBasedOnState(n)}function lt(n){ui(n)}function ni(n){var t=n?"none":"inline-block",i=n?"inline-block":"none",r=s.IsAdPlaying();l&&r&&(l.play.element.css("display",t),l.pause.element.css("display",i));h&&!r&&(h.play.element.css("display",t),h.pause.element.css("display",i))}function ti(n){var u=n?"none":"inline-block",f=n?"inline-block":"none";if(l&&h){var i=l.mute.element,e=l.unmute.element,r=h.mute.element;i.css("display",u);e.css("display",f);n?(p.addClass("muted"),i.attr("title",t.player_unmute),c.addClass("muted"),r.attr("title",t.player_unmute)):(p.removeClass("muted"),i.attr("title",t.player_mute),c.removeClass("muted"),r.attr("title",t.player_mute))}}function ii(n,t){if(h&&h.info!=null){var i=n||t?"none":"inline-block";h.info.element.css("display",i)}}function ri(n,t){if(h&&h.share!=null){var i=n||t?"none":"inline-block";h.share.element.css("display",i)}}function ui(n){if(ht=!!n,h){var t=n?"none":"inline-block",i=n?"inline-block":"none";h.unexpand.element.css("display",i);h.expand.element.css("display",t)}}function bi(n,i,r){var d,v,u,a,f,y;if(h&&l){var e=s.IsAdPlaying(),o=e?l["status-text"]:h["timetext-current"],g=e?l["timetext-total"]:h["timetext-total"],c=e?null:h["time-handle"],p=e?l["time-elapsed"]:h["time-elapsed"],w=e?null:h["time-buffered"],b=0;i>0&&(b=Math.max(Math.min(r/i,1),0));var nt=at(i),k=at(n),tt=at(i-n),it=i>3600,rt=i>600;e?(lt(ht),u=0,i>0&&(u=Math.max(Math.min(u=n/i,1),0)),a=l.progress.element.width(),f=Math.floor(a*u),p.element.css("width",f).css("visibility",f>0?"visible":"hidden"),d=t.player_adupdatemsg.replace("{0}",s.CurrentMedia().Video.title),o.element.text(d+" - "+tt)):(c.element.attr("aria-valuemin",0),c.element.attr("aria-valuemax",i),v=c.element.attr("aria-valuenow"),(isNaN(v)||Math.abs(n-v)>1)&&c.element.attr("aria-valuenow",n),it?o.element.removeClass("minutes").addClass("hours"):rt?o.element.removeClass("hours").addClass("minutes"):o.element.removeClass("hours").removeClass("minutes"),u=0,i>0&&(u=Math.max(Math.min(u=n/i,1),0)),k!=o.element.text()&&(lt(ht),o.element.text(k),g.element.text(nt),h.progress.element.css("visibility")==="hidden"&&h.progress.element.css("visibility","visible")),a=h.scrubber.element.width(),f=Math.floor(a*u),f!=c.element.css("left")&&c.element.css("left",f),p.element.css("width",f).css("visibility",f>0?"visible":"hidden"),y=Math.floor(a*b),y!=w.element.css("width")&&w.element.css("width",y))}}function ki(t){var c=s.IsAdPlaying();if(!c&&h){var i=h["volume-total"],r=h["volume-handle"],u=h["volume-elapsed"],f=n.asInt(i.element.css("height"))||i.element.height(),e=f*t,o=(n.asInt(i.element.css("top"))||i.element.position().top)+f-e;r.element.attr("aria-valuemin",0);r.element.attr("aria-valuemax",1);r.element.attr("aria-valuenow",t);r.element.css("top",o);u.element.css("top",o);u.element.css("height",e)}}function fi(n,t,i){if(h&&h["quality-popup"])if(i||t==0)h.quality.element.css("display","none");else{var r="quality-selection-"+o(t),u=h[r]?h[r].element:null,f=u?u.text():"";h["quality-toggle-text"].element.text(f);h.quality.element.css("display","inline-block");st(h["quality-popup"])}}function tt(t,i){var r=h[t];if(v(t,!r.visible,!1,ut),i)if(r.visible)t=="volume-popup"?(n(r.firstElement).focus(),r.currentFocusIndex=0):(n(r.selectedElement).focus(),r.currentFocusIndex=r.selectedElementIndex);else switch(t){case"quality-popup":k("quality-toggle");break;case"close-caption-bar":k("close-caption-toggle");break;case"volume-popup":k("volume-toggle")}}function v(n,t,i,r){if(h){var f=h.controls.element,u=h[n];u&&(u.element.stop(!0,!0),t?(f.hasClass("volume_active")&&n!="volume-popup"?v("volume-popup",!1):f.hasClass("quality_active")&&n!="quality-popup"?v("quality-popup",!1):f.hasClass("close_caption_active")&&n!="close-caption-bar"&&v("close-caption-bar",!1),u.hideTimerId&&(clearTimeout(u.hideTimerId),u.hideTimerId=0),u.element.show(),u.element.focus(),f.addClass(u.activeClass).addClass("popup_open"),r&&(u.hideTimerId=setTimeout(function(){v(n,!1,!0)},r))):(f.hasClass("close_caption_active")&&rt&&rt!="off"&&n=="close-caption-bar"?f.removeClass("popup_open"):f.removeClass(u.activeClass).removeClass("popup_open"),i?u.element.fadeOut(400,function(){u.element.hide()}):u.element.hide()),u.visible=t)}}function b(t){var i=t.data.type;(i!="time-handle"||s.CanSeek())&&(n.attachDragEvents(ei,gi),it=i,ei(t))}function di(){s.SeekFromClick(s.Player.PreviousTime||s.Player.currentTime);s.Player.PreviousTime=null}function gi(){n.detachDragEvents();it=null}function ei(n){if(it!=null){var t={x:n.clientX,y:n.clientY};it=="time-handle"?nr(t):it=="volume-handle"&&tr(t)}}function nr(n){var t=h.scrubber,i=t.element.getRelativePosition(n.x,n.y),r=Math.max(0,Math.min(1,i.x/t.element.width()));(s.Player.PreviousTime===null||typeof s.Player.PreviousTime=="undefined")&&(s.Player.PreviousTime=s.Player.currentTime);s.SetPlayerTimeRatio(r)}function tr(n){var r=s.IsAdPlaying(),t=r?l["volume-total"]:h["volume-total"],u=t.element.getRelativePosition(n.x,n.y),i=1-Math.max(0,Math.min(1,u.y/t.element.height()));s.SetPlayerVolume(i);i===0?s.Mute(!0):s.Unmute(!0)}function ir(n){v("quality-popup",!1);s.SetMaxBitRate(n);s.RestartMedia(!0);s.VideoQualityChanged()}function a(t){var r=s.IsAdPlaying(),i;switch(t.keyCode){case 35:t.data&&(t.data.type=="time-handle"?s.SetCurrentPlayingTime(Number.MAX_VALUE):t.data.type=="volume-handle"&&s.SetPlayerVolume(1));t.preventDefault();break;case 36:t.data&&(t.data.type=="time-handle"?s.SetCurrentPlayingTime(0):t.data.type=="volume-handle"&&s.SetPlayerVolume(0));t.preventDefault();break;case 13:case 32:t.data&&(t.data.type==="player-expand"||t.data.type==="player-unexpand")?(s.Expand(),t.currentTarget.nextElementSibling?t.currentTarget.nextElementSibling.focus():t.currentTarget.previousElementSibling.focus()):n(t.currentTarget).trigger("click",!0);t.data&&(t.data.type=="volume-handle"||t.data.type=="mute")&&!r&&h["volume-popup"].visible&&tt("volume-popup",!0);t.preventDefault();break;case 9:t.data&&(t.data.type=="volume-handle"||t.data.type=="mute")&&(i=r?l["volume-popup"]:h["volume-popup"],t.shiftKey?t.target==i.firstElement&&(n(i.lastElement).focus(),t.preventDefault()):t.target==i.lastElement&&(n(i.firstElement).focus(),t.preventDefault()));break;case 27:t.data&&(t.data.type=="volume-handle"||t.data.type=="mute"?(h["volume-toggle"].element.focus(),h["volume-toggle-mute"].element.focus(),v("volume-popup",!1,!1),t.preventDefault()):t.data.type=="quality-selection"?(h["quality-toggle"].element.focus(),v("quality-popup",!1,!1),t.preventDefault()):t.data.type=="close-caption-item"&&(h["close-caption-toggle"].element.focus(),v("close-caption-bar",!1,!1),t.preventDefault()));break;case 37:t.data&&(t.data.type=="time-handle"?s.IncreasePlayerTime(-10):t.data.type=="volume-handle"&&s.IncreasePlayerVolume(-.1));t.preventDefault();break;case 38:t.data&&(t.data.type=="volume-handle"?s.IncreasePlayerVolume(.1):(i=null,t.data.type=="quality-selection"?i=h["quality-popup"]:t.data.type=="close-caption-item"&&(i=h["close-caption-bar"]),i&&(t.target==i.firstElement?(n(i.lastElement).focus(),i.currentFocusIndex=i.allElementsInTabOrder.length-1):n(i.allElementsInTabOrder.get(--i.currentFocusIndex)).focus())));t.preventDefault();break;case 39:t.data&&(t.data.type=="time-handle"?s.IncreasePlayerTime(10):t.data.type=="volume-handle"&&s.IncreasePlayerVolume(.1));t.preventDefault();break;case 40:t.data&&(t.data.type=="volume-handle"?s.IncreasePlayerVolume(-.1):(i=null,t.data.type=="quality-selection"?i=h["quality-popup"]:t.data.type=="close-caption-item"&&(i=h["close-caption-bar"]),i&&(t.target==i.lastElement?(n(i.firstElement).focus(),i.currentFocusIndex=0):n(i.allElementsInTabOrder.get(++i.currentFocusIndex)).focus())));t.preventDefault()}}function at(n){isNaN(n)&&(n=0);var t=Math.floor(n/3600),r=Math.floor(n%3600/60),u=Math.floor(n%60),i="";return i+=t>0?t<10?"0"+t+":":t:"",i+=(r<10?"0":"")+r+":",i+((u<10?"0":"")+u)}function rr(t){var o,e,f,r,i,c,u;ur();w=[];o=h["close-caption-langbox"];e=0;o&&nt.CCCultureInfoArray&&t.files!=null&&(o.activeControl=null,f=h["close-caption-langbox"].element,n.each(t.files,function(t,i){var u=n.asInt(i.formatCode),o,r;u>2999&&u<4e3&&i.culture&&i.url&&(o=nt.CCCultureInfoArray[i.culture],o&&(e++,r={name:"close-caption-lang"+u,className:"cc_lang",parent:"close-caption-langbox",visible:!0,interactive:!0},r.ccfile={url:i.url,formatCode:i.formatCode},r.culture=i.culture.toLowerCase(),r.element=n('<span class="cc_lang" role="menuitem" tabindex="0">').attr("lang",i.culture).text(o).appendTo(f).bind("click",function(n,t){s.Report("EventCC");vt(r,!0,t)}).bind("keydown",{type:"close-caption-item"},a).bind("focusin",function(){r.hasFocus=!0;d()}).bind("focusout",function(){r.hasFocus=!1;g()}),w.push(r)))}),e>0&&(f=h["close-caption-box"].element,r={name:"close-caption-settings",className:"cc_off",parent:"close-caption-box",interactive:!0},r.element=f.children(".settings"),r.element.attr("tabindex",0),r.element.bind("click",function(n,t){fr(r,t)}).bind("keydown",{type:"close-caption-item"},a).bind("focusin",function(){r.hasFocus=!0;d()}).bind("focusout",function(){r.hasFocus=!1;g()}),w.push(r),i={name:"close-caption-off",className:"cc_off",parent:"close-caption-box",interactive:!0,isOffControl:!0},i.element=f.children(".off"),i.element.attr("tabindex",0),i.element.bind("click",function(n,t){s.Report("EventCC");er(i,t)}).bind("keydown",{type:"close-caption-item"},a).bind("focusin",function(){i.hasFocus=!0;d()}).bind("focusout",function(){i.hasFocus=!1;g()}),w.push(i),c=!1,u=or(),u&&(u=u.toLowerCase()),u&&u!=="off"&&n.each(w,function(n,t){if(t.culture===u)return vt(t,!1),c=!0,!1}),c||ot(i,!1),h["close-caption-container"].element.css("display","inline-block")),st(h["close-caption-bar"]));e==0&&h["close-caption-container"]&&h["close-caption-container"].element.hide()}function ur(){w&&(n.each(w,function(n,t){t.ccfile&&(t.ccfile=null,t.element&&(t.element.unbind(),t.element.remove(),t.element=null))}),w=null)}function fr(n,t){v("close-caption-bar",!1);s.OnCaptionSettings(t)}function er(n,t){h.controls.element.removeClass("close_caption_active");v("close-caption-bar",!1);t&&h["close-caption-toggle"].element.focus();s.ClearCloseCaptions();ot(n,!0);s.CurrentMedia().Video.CurrentCCFormat=null;s.CurrentMedia().Video.CurrentCCModel=null}function vt(n,t,r){v("close-caption-bar",!1);r&&h["close-caption-toggle"].element.focus();h.controls.element.addClass("close_caption_active");n.ccfile&&(s.CurrentMedia().Video.Captions==null||s.CurrentMedia().Video.Captions[n.ccfile.formatCode]==null?hr(n.ccfile.url,function(r){var u=new i(s,r);u.IsReady()?(s.CurrentMedia().Video.Captions==null&&(s.CurrentMedia().Video.Captions={}),s.CurrentMedia().Video.Captions[n.ccfile.formatCode]=u,oi(u,n,t)):(s.ClearCloseCaptions(),s.CurrentMedia().Video.CurrentCCModel=null,s.CurrentMedia().Video.CurrentCCFormat=n.ccfile.formatCode,ot(n,t))}):oi(s.CurrentMedia().Video.Captions[n.ccfile.formatCode],n,t))}function oi(n,t,i){(s.CurrentMedia().Video.CurrentCCModel!=n||s.CurrentMedia().Video.CurrentCCFormat!=t.ccfile.formatCode)&&(s.CurrentMedia().Video.CurrentCCModel=n,s.CurrentMedia().Video.CurrentCCFormat=t.ccfile.formatCode,s.BindCloseCaptions(),s.ResetCCModels());ot(t,i)}function ot(n,t){var i=h["close-caption-langbox"].activeControl;i!=null&&i.element.removeClass("active").removeAttr("title");h["close-caption-langbox"].activeControl=n;h["close-caption-langbox"].activeControl.element.addClass("active").attr("title","Selected");st(h["close-caption-bar"]);t&&sr(n.culture)}function or(){return rt=n.cookie(e)}function sr(n){n=n||"off";u(e,n,365,u.topDomain,"/")}function st(t){t.allElementsInTabOrder=t.element.find("[tabindex]");t.currentFocusIndex=0;t.firstElement=t.allElementsInTabOrder.get(0);t.lastElement=t.allElementsInTabOrder.get(t.allElementsInTabOrder.length-1);n.each(t.allElementsInTabOrder,function(i,r){var u=n(r).attr("class");if(u.indexOf("selected")!=-1||u.indexOf("active")!=-1)return t.selectedElement=r,t.selectedElementIndex=i,!1})}function hr(t,i){r.ajax({url:t,async:!0,dataType:"xml",success:function(t,r,u){var f=null;u?f=u.responseXML:t&&t.nodeType===9&&(f=t);!f&&u.responseText&&n.prototype.jquery.indexOf("1.9.1")==0&&(f=n.parseXML(u.responseText));i(f)},error:function(){i(null)}})}var c=s.ControlContainer,p=s.AdControlContainer,h=null,l=null,ht=!1,it=null,w=null,si=document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,rt,ut=3e3,nt=s.Config,y;s.ControlBar=this;c&&(hi(),yt());p&&ci();ni();ri();ii();ui();v("volume-popup",!1);v("quality-popup",!1);v("close-caption-bar",!1);fi(0,0,!1);ti(s.IsPlayerMute());nt.PlayerTechnologyUsed==="hybrid"?wt():pt();y=this;y.SetInfoButtonState=ii;y.SetShareButtonState=ri;y.SetPlayButtonState=ni;y.SetMuteButtonState=ti;y.FocusControl=k;y.ClearFocus=bt;y.BindAdControlEventsForSimulatedAdMode=wt;y.BindControlEvents=yt;y.BindAdControlEvents=pt;this.FocusControl=k;this.ClearFocus=bt;this.Resize=lt;this.Controls=h;y.UpdateQualityList=fi;y.SetCloseCaptionLangControls=rr;y.LangControls=w;y.OnCaptionSelect=vt;y.GetNameOfControlWithFocus=pi;y.UpdateTimeRail=bi;y.UpdateVolumeRail=ki}var e="vidccpref",f="active";return define("bitrateToQuality",function(){return o}),s});define("wcvp.infoPane",["jquery","wcvp.paneHelper","wcvp.locStrings","wcvp.Logger"],function(n,t,i,r){function f(f){function l(n){r.Log(n,"InfoPane")}function b(n){l("Hide");e&&e.OnHide(c);f.OnPaneClosed(g,h,n)}function nt(n,t){l("Close");b(t);n&&n.preventDefault()}function k(n,t){l("Show");v.text(s.title);y.text(tt(s.durationSecs));p.text(s.description);h=n;h&&h.resumeAction==="endslate"&&(c=!0);e&&e.OnShow(t,c)}function a(n){return(n<10?"0":"")+n}function tt(n){if(isNaN(s.durationSecs))return"";var r=3600,u=60,f=Math.floor(n/r),e=Math.floor(n%r/u),o=Math.floor(n%u),t=f>0?a(f)+":":"";return t+=a(e)+":",t+=a(o),i.infoslate_duration+": "+t}function it(){if(!w){var i=n('<div class="pane infopane">').appendTo(d);i.html(u);v=n(".pane-title",i);y=n(".dur",i);p=n(".des",i);e=new t(i);e.SetUpButtonAction(".pane-close",nt);e.SetUpFocusTrap();w=!0}k()}var o;if(!f||!f.PaneContainer){this.Disabled=!0;return}var d=f.PaneContainer,v=null,y=null,p=null,g="info",e=null,s=null,h=null,c=!1,w=!1;o=this;o.Disabled=!1;o.SetVideo=function(n){s=n};o.Render=it;o.OnShow=k;o.OnHide=b}var u='<button class="pane-close" title="Close" role="button" tabindex="0"> Close<\/button><div class="pane-title"/><div class="pane-scroll"><div class="blk dur"/><div class="blk des"/><\/div>';return f});define("wcvp.endSlate",["jquery","jqBehavior","binding","imgSrc"],function(n,t,i,r){function s(t){function h(){i.removeClass("visible")}function s(){l.hide();i.addClass("visible");r.loadInViewport(i[0]);t.trigger("Report","EventEndslateShown");require(["mediator"],function(n){n.pub("truncate")});n(f,t).hide();n(o,t).hide();n(e,t).hide();require(["track"],function(n){n.trackPartialImpression(i)})}function a(n,t){var r=t&&t.status&&t.status.toLowerCase();switch(r){case"adplaying":case"videoplaying":case"simulatedadruning":i.removeClass("visible");break;case"playbackcompleted":s()}}function v(){c&&clearTimeout(c);c=null}var i=n(".endslate",t),l=n(".overlay-open span",t.parents(".xnetvidplayer")),y=t.attr("id"),c;if(t.data("playertype")!=="Flash"){n(".rp",i).on("click"+u,function(){v();t.trigger("Replay");i.removeClass("visible")});n(".rvinner li",i).on("click"+u,function(){n(this).attr("target","")});t.bind("Event3ppContentStart"+u,h).bind("ContentStart"+u,h).bind("AdStart"+u,h).bind("EventReplay"+u,h).bind("ContentComplete"+u,s).bind("adPlayCompleted"+u,s).bind("videoPlayCompleted"+u,s).bind("Event3ppContentComplete"+u,s).bind("playbackStatusChanged"+u,a)}}var u=".endslate",f=".video_control_container",e=".video_spinner",o=".ad_control_container";return require(["binding","html5PlayerLoaded","c.deferred"],function(n){n("wcvp.endSlate",".vxplayer").all();n("truncate",".endslate .rvdetails .title, .endslate .rvdetails .description,.endslate .rvdetails .srcname, .endslate .storepromo-info .description").all()}),t(s)});define("wcvp.playerConfig",["jquery","wcvp.videoPlayerTokens","wcvp.environment"],function(n,t,i){function f(n){var t=this.RelatedVideos;t&&t.defaultVideoId?(n=n||t.defaultVideoId,this.Video=JSON.parse(t[n])):this.Video=null}function e(n){for(var i=["AOLTargetingService","VisitorTargetingService","FWServer","FWJSAdManagerLocation","FWAdManagerLocation"],t=0;t<i.length;t++)n.AdConfig[i[t]]=n.AdConfig[i[t]+"SSL"]||n.AdConfig[i[t]].replace("http://","https://")}function o(t){var o=t.data("playerConfig"),s,h;return o&&o.Video||(o=n.extend(!0,{},u,t.data("config"),r,{Video:t.data("metadata"),adpagegroups:t.data("adpagegroups"),Container:t,PlayerInstanceId:t.data("id"),RelatedVideos:t.data("relatedvideosmetadata"),ErrorMessage:t.data("error")}),o.UseHybridPlayer=t.data("playertype")==="Hybrid",o.ReloadVideo=f.bind(o),o.AdConfig.VisitorTargetingService&&o.ReportingConfig.ImpressionGuid&&(o.AdConfig.VisitorTargetingService+="&PVGUID="+o.ReportingConfig.ImpressionGuid),o.Video&&o.Video.uuid||o.ReloadVideo(),o.WidgetId=o.WidgetId||o.PlayerInstanceId,o.PlayerId=o.Container.attr("id"),document.location.protocol==="https:"&&(o.SecureMode=!0,e(o)),i.Qsps.noads&&(o.AdConfig.PolicyType="noads"),s=navigator.userAgent,(i.Android&&!i.AndroidModern||i.BlackBerry&&(s.indexOf("9930")>0||s.indexOf("9810")>0))&&(o.AdConfig.UsePageReload=!0),o.LeavePosterFrame=i.WindowsPhone&&!i.IEMobileModern||i.Android&&!i.AndroidModern,h=i.WindowsPhone||i.IProduct||i.AndroidModern,o.AutoPlay=o.AutoPlay&&!h,t.data("playerConfig",o)),o}var r={CCCultureInfoArray:t.CultureLocStrings,EnableInfoPane:!0,PlayerList:{},SecureMode:!1,ShowLogo:!1,ImmersiveMode:!1,AdConfig:{FWCacheBuster:"1"},InfoPaneConfig:{},ReportingConfig:{ApReportingEnabled:!1,ApReportingService:"http://widgets.video.msn.com/report.aspx",FlightId:0,PlaySource:"",PlayType:"pb"},VCConfig:{ConsumerSvcEdges:"edge1",ImageSvcEdges:"img1",SvcDomain:"catalog.video.msn.com"}},u={AdDiv:"",AdobeLibsLocation:"http://fpdownload.adobe.com",AutoPlay:!1,CanSkipAds:!1,DebugMode:!1,PlayerMode:"",FlashVideoPlayerType:"auto",LeadWith:"flash",LogoPopup:!1,LogoUrl:"http://img.widgets.video.s-msn.com/i/logo/ptbr_msn_logo_UX.png",Mute:!1,PlayerAspectRatio4x3:!1,PopLink:!0,QualityOverrideDesktop:"HQ",QualityOverrideMobile:"SD",QualityOverrideTv:"SD",ShowClosedCaptioning:!0,ShowQuality:!0,ShowTitle:!1,SkipAdsSeconds:15,UseHLS:!0,UseWindowedMode:!1,WidgetId:"",InPlayerPageContext:!1,IsInlinePlayer:!1,InViewPlay:!1,AdConfig:{AdBitrate:750,AdManagerRequestTimeout:5,AdProvider:"freewheel",AdTagUrl:"",AdTimeout:15,FWAdManagerLocation:"http://adm.fwmrm.net/p/msn_live/AdManager.swf",FWAdManagerLocationSSL:"https://mssl.fwmrm.net/p/msn_live/AdManager.swf",FWFlashProfile:"MSN_as3_test",FWJSAdManagerLocation:"http://adm.fwmrm.net/p/msn_live/AdManager.js",FWJSAdManagerLocationSSL:"https://mssl.fwmrm.net/p/msn_live/AdManager.js",FWNetworkId:188283,FWHtml5Profile:"MSN_HTML5_Test",FWServer:"http://2df7b.v.fwmrm.net",HybridPlayerAdInitTimeout:"3",HybridPlayerAdStartTimeout:"4",PageGroup:"MSV_NOTSET",PolicyType:"videocontent",ProxySvcUri:"http://video.msn.com/services/proxy/?u={0}",SvcType:"proxy",SvcUri:"http://vms.msn.com/vms.aspx?mediaid={mid}&publisher={pub}&player={pl}&subplayer={spl}",TargetingServiceTimeout:1,TimeElapsed:0,UseFWAdManager:!0,VideosPlayed:0,VideosPlayedNoAds:0,VisitorTargetingService:"http://rad.msn.com/ADSAdClient31.dll?GetAd=&PG=MSVFOO",AOLTargetingService:"http://uts-api.at.atwola.com/uts-api/audiences?limit=600&clientName=freewheel",UseTargetingService:"msn"},EndSlateConfig:{ReloadPageOnVideoReplay:!1,ShowHomePageButton:!1,ShowRelatedVideos:!0,ShowRelatedVideosInPlayer:!1,ShowReplayVideoButton:!0,ShowShareButtons:!0},ReportingConfig:{Brand:"MSN",ComscoreUrl:"",ComscoreProviderConfig:"",DomainId:15755,Fr:"",Market:"",OtfEnabled:!0,OtfUrl:"",ReportType:"",UdcEnabled:!1,UdcUrl:""},SwfRefreshTimeout:600,VCConfig:{Market:"us"},UseHybridPlayer:!1,XNetPlaylistManager:null};return o});define("wcvp.wcVideoPlayerFlash",["jquery","wcvp.environment","wcvp.locStrings","wcvp.Logger","wcvp.playerUtils","wcvp.otfReporter","wcvp.AdTargeting","window","mediator"],function(n,t,i,r,u,f,e,o){function a(t){undefined==s&&(h=n.getFlashInstalledVersion(),h&&(s=!0));var i=!0;return t&&t.videoFiles&&(i=!1,n.each(l,function(r,u){n.each(t.videoFiles,function(n,t){t.formatCode==u.code&&(i=!0)})})),s&&i&&h>=n.RequiredFlashVersion}function c(s,h){function g(t){n.ajax({url:t+"/crossdomain.xml",dataType:"jsonp",cache:!0,beforeSend:function(n,t){var i=t.url,r=i.indexOf("?");r!=-1&&(t.url=i.substr(0,r))}})}function ot(){g(h.AdConfig.FWServer);g(n.locationRoot(h.AdConfig.FWAdManagerLocation));g(n.locationRoot(h.AdConfig.VisitorTargetingService))}function nt(){o.MsnVideo2.addMessageReceiver({eventType:"widgetLoaded",widgetId:c,widgetGroup:null,funcCb:ht});o.MsnVideo2.addMessageReceiver({eventType:"playbackStatusChanged",widgetId:c,widgetGroup:null,funcCb:kt});o.MsnVideo2.addMessageReceiver({eventType:"reportEvent",widgetId:c,widgetGroup:null,funcCb:ni});o.MsnVideo2.addMessageReceiver({eventType:"flashVideoCheckpoint",widgetId:c,widgetGroup:null,funcCb:dt});"function"==typeof p&&p()}function st(){"undefined"!=typeof o.MsnVideo2&&null!=o.MsnVideo2?nt():(p=o.MsnVideoInitializeInternal,p||(o.MsnVideoInitializeInternal=[]),o.MsnVideoInitializeInternal.push(nt))}function ht(n){n=n?n.param:null;a("widgetLoaded, id = "+(n?n.id:"undefined"));n.id==c&&setTimeout(function(){it(h.Video)},0)}function ct(n){var t=n&&n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):n}function lt(t){var i=[];return t?(n.map(t,function(n,t){typeof n!="function"&&i.push(t+":"+n)}),i.join(";")):""}function at(){var e=h.AdConfig;e.PageGroup=h.adpagegroups&&h.adpagegroups.web||e.PageGroup;var r=k.AOLTokenObj,o=k.VisitorToken,b=h.Video.pageGroup||e.PageGroup,s=n.makeFlashvars({ad:!h.AdConfig.PolicyType||h.AdConfig.PolicyType.length==0||h.AdConfig.PolicyType.toLowerCase()=="videocontent"?"true":"false",adBitRate:h.AdConfig.AdBitrate,adaptiveBuffering:!1,adDivs:pt(h.AdDiv),adEventTimeout:h.AdConfig.AdTimeout,affid:t.Qsps.ocid,adManagerRequestTimeout:h.AdConfig.AdManagerRequestTimeout,adProvider:h.AdConfig.AdProvider,allowAdCancel:n.asBool(h.CanSkipAds),ap:n.asBool(h.AutoPlay),brand:h.ReportingConfig.Brand,ccCultureInfo:lt(h.CCCultureInfoArray),comscoreUrl:h.ReportingConfig.ComscoreUrl,comscoreConfig:h.ReportingConfig.ComscoreProviderConfig,fr:h.ReportingConfig.Fr,omniturePnSuite:null,fwAdManagerLocation:h.AdConfig.FWAdManagerLocation,fwServer:h.AdConfig.FWServer,fwNetworkId:h.AdConfig.FWNetworkId,fwProfileFlash:h.AdConfig.FWFlashProfile,fwCacheBuster:h.AdConfig.FWCacheBuster,height:h.Height,hidebitrate:!n.asBool(h.ShowQuality,!0),hideClosedCaptioning:!n.asBool(h.ShowClosedCaptioning,!0),hideEmail:!0,hideEmbed:!0,hideInfo:!n.asBool(h.EnableInfoPane,!0),hideLink:!0,hideMoreVideos:!n.asBool(h.EndSlateConfig.ShowMoreVideosLink,!0),hidePlaylist:!0,hideSearch:!0,hideShare:!0,hideShareVideo:!0,ifs:!0,initPanel:"none",isGeoBlocked:n.asBool(h.IsGeoBlocked),isVC:!1,linkBack:h.VCConfig.LinkBack,linkOverride2:h.VCConfig.LinkOverride,marketReportSuite:null,mkt:h.ReportingConfig.Market,msnlink:n.asBool(h.ShowLogo),mute:n.asBool(h.Mute),omnitureEnabled:!1,omnitureReportingPercentage:.1,otfEnabled:h.ReportingConfig.OtfEnabled,pageGroup:b,pl:h.PopLink,playAdBeforeFirstVid:!n.asBool(h.AdConfig.VideosPlayedNoAds),playlistmin:11,product:h.ReportingConfig.Product,ps:0,pseudoStreamingStartParam:"aktimeoffset",qualityOverride:h.QualityOverrideDesktop,reportingType:h.ReportingConfig.ReportType,resStrings:n.getLocalizedStringsConcatenatedAndEncodedForFlashVar(i),rl:n.asBool(h.EndSlateConfig.ReloadPageOnVideoReplay),rp:n.asBool(h.EndSlateConfig.ShowReplayVideoButton),rst:h.ReportingConfig.WidgetSubType||"v5",rv:n.asBool(h.EndSlateConfig.ShowRelatedVideos),rva:"alg=1",rvp:n.asBool(h.EndSlateConfig.ShowRelatedVideosInPlayer),rvt:"Related Videos",sh:n.asBool(h.EndSlateConfig.ShowShareButtons),slateTime:10,timeBeforeAdCancelDisplays:h.SkipAdsSeconds,timeElapsed:h.AdConfig.TimeElapsed,timePlaying:h.AdConfig.TimePlaying,title:n.asBool(h.ShowTitle),ttml:h.Ttml,vc:h.VCConfig.SvcDomain,vce:h.VCConfig.ConsumerSvcEdges+"."+h.VCConfig.SvcDomain,vci:h.VCConfig.ImageSvcEdges+"."+h.VCConfig.SvcDomain,versionPath:h.FlashSource,videoPlayerType:h.FlashVideoPlayerType,videosPlayed:h.AdConfig.VideosPlayed,view:h.ReportingConfig.View,visitorTargetingService:h.AdConfig.VisitorTargetingService,vmsUrl:h.VmsUrl,widgetGroup:h.WidgetGroup,widgetId:c,width:h.Width,adTagUrl:h.AdConfig.AdTagUrl,playerMode:h.PlayerMode,verticalAccentColor:ct(n(".sass_vars").css("backgroundColor")),useTarSerParams:h.AdConfig.UseTargetingService.toLowerCase()==="msn"?!1:!0,utid:r&&r.utid&&r.utid.length?r.utid:"",_fw_seg:r&&r.audiences?"10886:"+r.audiences.join(","):"",_fw_ekv:o&&o.length?o:""}),f=u.S4,a=f()+f(),p=f()+f(),w=h.UseWindowedMode?"window":"transparent",d="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+a+"' class='vxFlashPlayer' name='"+a+"' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab' ><param name='movie' value='"+h.FlashSource+"' /><param name='flashvars' value='"+s+"' /><param name='bgcolor' value='#000000' /><param name='base' value='.' /><param name='quality' value='high' /><param name='allowFullScreen' value='true' /><param name='allowScriptAccess' value='always' /><param name='wmode' value='"+w+"' /><embed id='"+p+"' name='"+p+"' type='application/x-shockwave-flash' class='vxFlashPlayer' pluginspage='http://www.adobe.com/go/getflashplayer' src='"+h.FlashSource+"' flashvars='"+s+"' bgColor='#ffffff' quality='high' allowFullScreen='true' allowScriptAccess='always' wmode='"+w+"' base='.'><\/embed><noembed><a href='"+h.Video.playbackUrl+"' title='"+h.Video.Title+"' >"+i.video_label+h.Video.Title+"<\/a><\/noembed><\/object>";l.html(d);y=l.children();v=y.get(0);rt()}function tt(){if(o.MsnVideo2.sendMessage({type:"stopVideo",targetId:c,targetGroup:h.WidgetGroup}),v){if(t.IE)try{n.each(v,function(n,t){"function"==typeof t&&(v[n]=null)})}catch(r){a(r.Message)}var i=v;i.parentNode&&i.parentNode.removeChild(i);v=null;y=null}yt();ti();l.hide();o.MsnVideoInitializeInternal=null}function vt(){s.bind("OnDispose"+b,tt);n(o).bind("resize."+b+"_"+h.PlayerInstanceId,ri)}function yt(){s.unbind(b);n(o).unbind("resize."+b+"_"+h.PlayerInstanceId)}function pt(n){var i="",r,t;if(n!=null)if(typeof n=="object")for(r in n)t=n[r],t.charAt(0)=="#"&&(t=t.substr(1)),i+=t+"|"+r.replace("x","|")+";";else typeof n=="string"&&(i=n);return i}function wt(){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);s.trigger(arguments[0],t)}function bt(t,i){t&&w!==t&&(w=t,wt("playbackStatusChanged",{status:w}),i&&a("state="+i),w==="videoPlaying"&&n.cookie("videoerrorcount",0))}function kt(n){a("PlaybackStatusChanged: "+n.param.status);bt(n.param.status)}function dt(n){switch(n.param.type){case"fw.initialize":d.FWPerfVars.InitializationDuration=n.param.duration;break;case"slot.play":d.OnSlotPlayStarted();break;case"ad.start":case"slot.ended":case"ad.error":d.OnSlotPlayEnded()}}function gt(){}function ni(t){if(t){var i=n.extend({},{PlayerInstanceId:h.PlayerInstanceId,VideoSize:{w:l.width(),h:l.height()}},t.param.reportData);s.trigger(t.param.eventName,i)}}function ti(){o.MsnVideo2&&o.MsnVideo2.removeMessageReceiver&&(o.MsnVideo2.removeMessageReceiver({eventType:"debug",widgetId:"DebugConsole",widgetGroup:null}),o.MsnVideo2.removeMessageReceiver({eventType:"widgetLoaded",widgetId:c,widgetGroup:null}),o.MsnVideo2.removeMessageReceiver({eventType:"playbackStatusChanged",widgetId:c,widgetGroup:null}))}function it(n,t){a("loading video"+n.toString());n&&n.error?s.trigger("ContentError",{ErrorType:"content:error",ErrorDesc:n.error,ErrorMessage:n.error}):(o.MsnVideo2.sendMessage({type:"loadVideo",param:{video:n,relatedVideos:h.RelatedVideos},targetId:c,targetGroup:h.WidgetGroup}),(t!=null&&!isNaN(t&&t>=0)||h.AutoPlay)&&(a("auto-playing video"),o.MsnVideo2.sendMessage({type:"playVideo",param:{playbackStartTime:t},targetId:c,targetGroup:h.WidgetGroup})))}function ii(t,i){a("Reload Video triggered");var r=null;i&&i.preserveSeek&&(r=ut());n.each(et,function(n,i){i.Reset&&i.Reset(t)});it(t.Video,r);i&&i.callback&&i.callback()}function ri(){rt(!0)}function rt(n){l.height("auto");var t=u.videoElementSizes(s,h,n);l.height(t.VideoHeight);y.show()}function ut(){var t=0,n;return o.MsnVideo2&&o.MsnVideo2.getProperties&&(n=o.MsnVideo2.getProperties({type:"currentVideoPosition",targetId:c,targetGroup:h.WidgetGroup,sourceGroup:h.WidgetGroup}),typeof n!="undefined"&&n!=null&&n.length>0&&n[0].param&&(t=n[0].param.position)),t}function a(n,t){r.Log(n,t)}var p=null,l=n(".flash",s),ui=n(".player_main",s),ft=n(".error",s),y=n("object",s),v=y.get(0),k=new e(h),d=new f(h),w="Unknown",b=".flashVideoPlayer",c=s.attr("id"),et=[];this.Dispose=tt;this.GetCurrentPlayingTime=ut;this.ReloadVideo=ii;gt();l.show();st();ot();k.SubmitTargetingRequests(at);vt();h.IsInlinePlayer}var l=[{code:101,br:400},{code:102,br:600},{code:103,br:1400},{code:104,br:3e3},{code:1003}],s=undefined,h=0;return c.HasSupport=a,define("flashPlayerLoaded",1),c});define("wcvp.wcVideoPlayerHtml5",["jquery","wcvp.locStrings","wcvp.Logger","wcvp.videoPlayerTokens","wcvp.playerUtils","wcvp.environment","wcvp.mediaManager","wcvp.stopWatch","mediator","perfMarker"],function(n,t,i,r,u,f,e,o,s,h){function a(n){w&&w.DoDebugPing(n)}function et(t){var u=n("<video>").get(0)||!1,i,s,f,r,e,o;try{i=u&&typeof u.canPlayType!="undefined";i&&(s=navigator.userAgent.match(/Android/i),f=u.canPlayType("video/mp4"),i=f==="maybe"||f==="probably"||s&&f==="")}catch(h){i=!1}if(n(u).remove(),r=!0,i&&t&&t.videoFiles)for(r=!1,e=0;!r&&e<p.length;e++)for(o=0;o<t.videoFiles.length;o++)if(t.videoFiles[o].formatCode==p[e].code){r=!0;break}return i&&r}function c(n,t){i.Log(n,t)}function b(t){(t.keyCode===13||t.keyCode===32)&&(n(t.currentTarget).trigger("click",!0),t.preventDefault())}function ot(t){var i=n.asInt(n.cookie(v)),r;if(!i){r=f.IsMobile?t.QualityOverrideMobile:f.TV?t.QualityOverrideTv:t.QualityOverrideDesktop;switch((r||"").toUpperCase()){case"LO":i=400;break;case"SD":i=600;break;case"HQ":i=1400;break;case"HD":i=3e3;break;default:i=f.IsMobile||f.TV?it:rt}}return i}function nt(i,w){function hh(){require(["wcvp.comscoreReporter"],function(n){ku.push(new n(w))});require(["wcvp.otfReporter"],function(n){ar=new n(w);ku.push(ar)});require(["wcvp.apReporter","wcvp.nnrReporter","wcvp.fdReporter"],function(){n.each(arguments,function(n,t){ku.push(new t(w))})})}function iu(n,t){n&&wr!==n&&(wr=n,si("playbackStatusChanged",{status:wr}),t&&c("state="+t))}function si(){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);i.trigger(arguments[0],t)}function ne(n){hr=!1;au=!1;iu("loading");at("loading");st.LoadVideo(n)}function ch(n){n.stopPropagation();nu=!nu;no(!0)}function no(t){require(["bitrateToQuality"],function(t){var i=Math.max.apply(Math,et.BitRateAvailable),r=new String(t(i));nu?(te(i),ii.addClass("hq_on"),n(".quality_label",ii).text(r),n(".quality_state",ii).text("ON")):(n.each(et.BitRateAvailable,function(n,i){t(i)=="sd"&&te(i)}),ii.removeClass("hq_on"),n(".quality_label",ii).text(r),n(".quality_state",ii).text("OFF"))});t&&uo();us()}function lh(){i.addClass("html5player");vt.disableSelection();to()&&yt&&yt.remove();ti.hide().bind("click",se);fe()}function to(){return f.IPad||f.AndroidModern||f.IEMobileModern}function ah(){gt.hide();lt.removeAttr("src");it.load();pt===!0&&tf();st&&st.Dispose();ts()}function vh(e){var o,s,h,l;ul();e&&(o=e.headlineImage?e.headlineImage.url:null,o&&(s=u.videoElementSizes(i,w),o=o+"?"+n.param({m:1,b:"black",w:s.VideoWidth,h:s.VideoHeight,f:"jpeg",q:60})),w.SecureMode&&(o=o.replace("http://","https://")),c("poster:"+o),tt()==="channelplayerpage"?ye.attr("src",o).attr("alt",""):require(["c.deferred"],function(){ye.attr("src",o).attr("alt","")}),bt&&w.AutoPlayDisabled?w.AutoPlay||f.IsMobile||bt.show():f.NativeControls?gt.addClass("clicktoplay"):(c("Using Native <video> tag poster frame"),lt.attr("poster",o)));at("init");iu(e&&!e.isFailed?"loaded":"loadFailed");h=io();h.found?(a({t:"91",evt:"ContentPlay"}),kf||(ht("CommonPlayerImpression"),kf=!0),lt.attr("src")&&et.MediaFile==lt.attr("src")||(c("(PrepareMedia) Setting player src : "+et.MediaFile),lt.attr("src",et.MediaFile),it.load()),st.LoadAds()):(l=u.formatContentError(r.ContentErrorCodes.MediaSelectionNoMedia,h.errorMessage),du(e&&e.error||t.player_standarderror,l));yt&&(yt.show(),yt.find(".close_caption_container").hide(),f.TV?yt.find(".qualityselector").show().find(".qualitytext").text(w.QualityOverrideTv):yt.find(".qualityselector").show().find(".qualitytext").text(w.QualityOverrideDesktop))}function yh(){var n,t;a({t:"92",evt:"ContentPlay"});lu=!1;au=!0;ri.Reset();yi.Reset();rr.Reset();wf=!1;gr=0;pu=0;vi=!1;oi=fi&&oi||0;bf=fi&&oi||!1;li&&(clearTimeout(li),li=null);a({t:"93",evt:"ContentPlay"});n=et.MediaFile;n!=lt.attr("src")&&(c("(OnAdsLoaded) Setting player src : "+n),lt.attr("src",n).attr("title",et.Video.title),it.load());t=st.AutoPlay||vf;vf=!1;t&&(oh||!w.AutoPlayDisabled)?(c("auto-play"),ui()):f.NativeControls&&st.Validate();(f.Firefox||f.NativeControls&&!f.WindowsPhone)&&rs()}function io(t){var o=sf,i={Video:t||st.Video},r,u=!1,s,e,h,c;return w.UseHLS&&f.IProduct&&!f.WindowsPhone&&(s=[{code:1006},{code:10190}],n.each(s,function(n,t){r=ro(i.Video,t.code);!u&&r.src&&(i.FormatCode=t.code,i.MediaFile=r.src,i.VideoWidth=r.width,i.VideoHeight=r.height,u=!0)})),e=[],u||n.each(p,function(n,t){r=ro(i.Video,t.code);r.src&&(e.push(t.br),(!u||i.BitRate<t.br&&t.br<=o||i.BitRate>t.br&&i.BitRate>o)&&(i.FormatCode=t.code,i.BitRate=t.br,i.MediaFile=r.src,i.VideoWidth=r.width,i.VideoHeight=r.height,u=!0))}),u?(et=i,w.SecureMode&&(c=et.MediaFile.replace("http://","https://"),et.MediaFile=c),et.BitRateAvailable=e,e.length>1&&f.IsMobile&&ii.css("visibility")=="hidden"&&(ii.css("visibility","visible"),nu=n.cookie(v)>1400?!0:!1,no(!1)),hf=0,i.VideoWidth&&i.VideoHeight&&!isNaN(i.VideoWidth)&&!isNaN(i.VideoHeight)&&(hf=i.VideoWidth/i.VideoHeight),hf!==0&&fe()):h="Unable to find suitable media file for player; user max bit rate is {0}".format(o),{found:u,errorMessage:h}}function te(t){sf=t;n.cookie(v,t,7)}function ro(t,i){var r;return t&&t.videoFiles&&n.each(t.videoFiles,function(n,t){if(i==t.formatCode)return r=t,!1}),r?{src:r.url,width:r.width,height:r.height}:{}}function du(n,t){lu=!0;au=!1;c("StopMedia invoked");et&&(gi.hide(),hi.hide(),ue());li&&(clearTimeout(li),li=null);try{it.webkitDisplayingFullscreen&&it.webkitExitFullscreen()}catch(i){}n&&(ht("ContentError",{ErrorType:"content:error",ErrorDesc:t||n,ErrorMessage:n}),c(t||n),or(),ct()?fu():ff(),at("stopped"),bt&&bt.hide())}function uo(n){fi=n;fi&&(oi=kt());st.AutoPlay=fi||!it.paused;yf=it.paused;re()}function ph(n,t){ai&&!ai.Disabled&&et&&et.Video&&(ai.SetVideo(et.Video),ai.Render(),ai.OnShow(n,t),fo(ai),rt&&rt.SetInfoButtonState(!0))}function wh(n,t){lr&&(lr.Render(),lr.OnShow(n,t),fo(lr))}function fo(n){be=n;cu=!0;ci.fadeTo(0,0,function(){ci.hide()});wt=="playing"&&(c("pausing while pane is open"),vr());gt.removeClass("clicktoplay").addClass("pane_open");ti&&ti.hide();or();ct()?fu():ff();eo()}function eo(){f.NativeControls&&(c("hiding Native Controls"),f.IPad||f.AndroidModern||f.IEMobileModern?lt.attr("controls",!1):lt.hide())}function ie(){to()?lt.attr("controls",!0):lt.css("display","block")}function oo(){ai&&ai.OnHide()}function so(n,t,i){if(c("OnPaneClosed"),be=null,cu=!1,ct()||(ci.css("display","block"),ci.fadeTo(500,.7)),gt.removeClass("pane_open"),uf(),t)switch(t.resumeAction){case"play":ui();break;case"replay":st.AutoPlay=!0;re(!0)}if(rt&&(rt.SetShareButtonState(!1),rt.SetInfoButtonState(!1)),f.NativeControls&&(ie(),lt.css("display")=="none"&&(c("showing video player element"),lt.show())),ti&&n!="captionsettings"&&le(),n){if(si("paneClosed",{paneType:n}),i&&rt)switch(n){case"info":rt.FocusControl("info");break;case"share":rt.FocusControl("share");break;case"captionsettings":rt.FocusControl("close-caption-toggle")}else rt&&rt.ClearFocus();n==="captionsettings"&&ou()}}function bh(n,t){et&&!ct()&&di(t.position)}function kh(n,t){eu(t.volume);t.mute?ru(!0):nf(!0)}function dh(n,t){switch(t.PaneType){case"share":ys();break;case"info":ps();break;case"captionsettings":ws()}}function gh(n,t){t.paneType=="info"&&oo()}function ho(t,r){if(oo(),w=t,df=!1,st&&st.Refresh&&st.Refresh(t),ns(),i.unbind("AdComplete.reloadvideo"),ct()&&(!r||!r.forceAdSkip)){c("Reload Video deferred due to ad play");io(t.Video);i.bind("AdComplete.reloadvideo",function(){ho(t,n.extend(!0,{},r,{forceAdSkip:!0}))});return}c("Reload Video triggered");si("videoReloaded");n.each(ku,function(n,i){i.Reset&&i.Reset(t)});var u=null,f;r&&r.preserveSeek&&(u=!ct()&&kt(),!isNaN(r.endLimitToIgnorePreserveSeek)&&r.endLimitToIgnorePreserveSeek>0&&(f=ki(),u=f-u>=r.endLimitToIgnorePreserveSeek?u:0));gt.show();kf=!1;co(t.Video,u);r&&r.callback&&r.callback();ae(g)}function co(n,t){vt.hasClass(vu)&&vt.removeClass(vu);oi=t&&!isNaN(t)?t:0;fi=t?!0:!1;ne(n)}function nc(){vr();wu=wt;at("simulated_ad_running");rt&&rt.SetPlayButtonState(!0);n.cookie(l)&&n.cookie(l)=="1"&&ao()}function tc(){or();fu();wu&&(at(wu),wu=null);uf();ui()}function ic(){gu()}function gu(){at("simulated_ad_paused");rt&&rt.SetPlayButtonState(!1);st.SimulatedAdPaused()}function lo(){at("simulated_ad_running");rt&&rt.SetPlayButtonState(!0);st.SimulatedAdPlaying()}function ao(){st.SimulatedAdMuted()}function rc(){st.SimulatedAdUnmuted()}function po(){if(vo!==-1){var t=ki(),n=ce(),i=kt();if(Math.abs(t-n)<1||n-i>1||fr>0&&yo!==n){c("Buffering check passed. bufferingCheckCount: "+fr+", video: "+w.PlayerId);fr=0;return}if(it.paused){c("Video is paused, exiting buffering check. video: "+w.PlayerId);fr=0;return}if(fr===vo){c("Buffering hang detected. video: "+w.PlayerId);require(["logging"],function(r){var u="[VideoBufferingError] Video buffering hang detected";u=u+" | url:"+document.location;u=u+" | video url: "+et.MediaFile;u=u+" | video format: "+et.FormatCode;u=u+" | Time elapsed: "+i;u=u+" | video duration: "+t;u=u+" | video buffered: "+n;r.error(u)});lt.bind("loadedmetadata",{currentTime:it.currentTime},wo);it.load();fr=0;return}fr++;yo=n;setTimeout(po,1e3)}}function wo(n){c("Media event loadedmetadata on load retry");n.data.currentTime&&(c("Setting current time to: "+n.data.currentTime),it.currentTime=n.data.currentTime);c("Triggering play on retry");it.play();lt.unbind("loadedmetadata",wo)}function ui(){return(f.NativeControls&&!f.HtcWindowsPhone&&gt.removeClass("clicktoplay"),uf(),or(!0),lo(),it&&!lu)?(au?(c("attempting to play"),st.Play()):(vf=!0,c("playback pending video loaded")),!0):!1}function re(n){n&&ht("EventReplay");ne(st.Video)}function vr(){it&&(c("Issuing pause on player "+w.PlayerId),it.pause());gu()}function ue(){it&&(it.pause(),di(0));gu()}function ru(t){it&&(cr=he(),f.BlackBerry!==null?it.volume=0:it.muted=!0,gc(),t&&(n.cookie(l,"1"),yu=!0));ao()}function nf(t){it&&(f.BlackBerry||(it.muted=!1),eu(cr||sh),nl(),t&&n.cookie(l,"0"));rc()}function bo(){if(it)return it.muted}function ko(){w.playDuration=kt()-ge}function at(n){var t=ct(),i="",u,r;if(n==="init"&&it.readyState>1&&(n="ready"),wt!==n){wt&&vt.removeClass(wt);u=n;fi&&oi&&(u=n+" "+vu,r=t?hi:yt,r&&r.hasClass("in_view")&&r.removeClass("in_view"));vt.addClass(u);wt=n;switch(n){case"loading":rr.Start();i=t?"adOpening":"videoOpening";ff();fu();break;case"playing":ri.Start();yi.Stop();rr.Stop();t||(setTimeout(function(){ie()},100),uf(),si("adEnded"));i=t?"adPlaying":"videoPlaying";pf&&yi.GetValue()&&!t&&(ht("BufferComplete",{isAd:t}),pf=!1);ge=kt();break;case"buffering":yi.Start();pf=!0;t&&(i="videoBuffering");break;case"paused":ri.Stop();er();i=t?"adPaused":"videoPaused";ko();case"seeking":rr.Stop();break;case"ended":ri.Stop();i=t?"adPlayCompleted":"videoPlayCompleted";ko();break;case"error":ri.Reset();yi.Reset();rr.Stop();i=t?"adPlayFailed":"videoPlayFailed";break;case"simulated_ad_running":i="simulatedAdRunning";er();break;case"simulated_ad_paused":i="simulatedAdPaused";er();break;case"ready":w.AutoPlay||er()}iu(i,n)}}function tf(n){pt===!0?(fc(),pt=!1,hu={w:ef.w,h:ef.h},gt.removeClass("video_player_expanded"),go()):(uc(),pt=!0,gt.addClass("video_player_expanded"),ec());is();n&&rt&&(pt?rt.FocusControl("unexpand"):rt.FocusControl("expand"));si(pt?"onFullscreenEnter":"onFullscreenExit")}function uu(){gt.removeClass("small_player medium_player");var t=i.width(),n=i.height();ef={w:t,h:n};t<350||!isNaN(n)&&n>0&&n<250||f.WindowsPhone?gt.addClass("small_player"):t<640&&gt.addClass("medium_player");fe();ti&&ti.css("display")!=="none"&&ou();rt&&rt.Resize(pt);nh();yr()}function fe(){var o,s,a;if(it){ni.width("auto");ni.height("auto");var e=u.videoElementSizes(pt?vt:i,w),h=e.WrapperWidth,t=e.WrapperHeight,c=e.VideoWidth,r=e.VideoHeight,p=0,l=0;c<h&&(p=Math.floor((h-c)/2));su=0;r<t&&(l=Math.floor((t-r)/2),su=t-r-l,dt=="shown"&&pr.css("bottom",Math.max(0,yt.outerHeight()-su)));o={position:"absolute",width:c,height:r,left:p,top:l};lt.css(o);bt.css(o);ni.width(h);t=ni.height();(isNaN(t)||t===0)&&ni.height(r);ti&&ti.css(o)}if(f.WindowsPhone)if(s=window.innerHeight,a=window.innerWidth,f.HtcWindowsPhone&&a>=480&&a<=800?i.css({width:"305px",height:"auto"}):i.css({width:"auto",height:"auto"}),s<=480||f.HtcWindowsPhone&&s<=680){var b=i.height(),k=n("#maincontent"),d=n(".head").height(),v=k.length>0?s-d:b,y=w.PlayerAspectRatio4x3?v*4/3:v*16/9;ni.css({height:v,width:y,left:"50%","margin-left":-(y/2)});lt.css({width:y})}else ni.css({left:0,"margin-left":0})}function uc(){var t,i=n("body");t=i.attr("style");nr={};nr.inline=t&&t.toLowerCase().indexOf("overflow")>-1?!0:!1;nr.value=i.css("overflow");i.css("overflow","hidden")}function fc(){nr&&n("body").css("overflow",nr.inline?nr.value:"");nr=null}function ec(){go();n(window).bind("resize.expand-"+w.PlayerInstanceId,is);n(document).bind("keydown.expand-"+w.PlayerInstanceId,hc)}function go(){n(window).unbind("resize.expand-"+w.PlayerInstanceId);n(document).unbind("keydown.expand-"+w.PlayerInstanceId)}function oc(){i.bind("LoadVideo",co).bind("Play",ui).bind("Pause",vr).bind("Stop",ue).bind("Mute",ru).bind("Unmute",nf).bind("Expand",tf).bind("Seek",bh).bind("SetVolume",kh).bind("OpenPane",dh).bind("ClosePane",gh).bind("OnShare",ys).bind("OnResize",pl).bind("AdStart",lc).bind("Replay",re).bind("Report",function(n,t,i){ht(t,i)});n(window).bind("resize.video-"+w.PlayerInstanceId,uu).bind("beforeunload",function(){we=!0})}function ns(){gf||(ts(),ii.bind("click",ch),vt.disableSelection(),ti.bind("click",se),lt.bind("abort",function(){c("media event: abort")}).bind("canplay",cc).bind("canplaythrough",function(){c("media event: canplaythrough")}).bind("emptied",function(){c("media event: emptied")}).bind("ended",tl).bind("error",fl).bind("loadeddata",fs).bind("loadedmetadata",function(){c("media event: loadedmetadata")}).bind("loadstart",function(){c("media event: loadstart")}).bind("pause",wc).bind("play",yc).bind("playing",pc).bind("progress",el).bind("ratechange",function(){c("media event: ratechange")}).bind("readystatechange",function(){c("media event: readystatechange")}).bind("seeked",dc).bind("seeking",kc).bind("stalled",function(){c("media event: stalled")}).bind("suspend",function(){c("media event: suspend")}).bind("timeupdate",ac).bind("volumechange",ol).bind("waiting",bc).bind("contextmenu",function(){return!1}),lt.bind("error",es).bind("timeupdate",cl).bind("pause",hl).bind("ended",ee).bind("volumechange",sl),n(".video_player_inner>div, video",i).bind("click keydown",ea),it.duration&&fs(),gf=!0)}function ts(){lt.unbind();al();gf=!1}function sc(){f.AndroidModern||vt.bind("mouseenter",rf).bind("mousemove",ls).bind("mouseleave",oe);lt.bind("click",se);ll();of.bind("click",ui).bind("keydown",b);bt&&bt.bind("click",ui).bind("keydown",b);ci.bind("keydown",b).bind("click",yl);yt&&yt.bind("click",function(){++tr}).bind("MSGestureHold",function(n){n.preventDefault()}).bind("contextmenu",function(n){n.preventDefault()}).bind("selectstart",function(n){n.preventDefault()}).bind("mouseenter",vs).bind("mousemove",vs).bind("mouseleave",vl);vt.bind("keydown",function(){bu=null;vt.removeClass("mouse_interaction")});vt.bind("mousedown",function(){vt.addClass("mouse_interaction")})}function is(){i&&(pt?(hu.w=n(window).width(),hu.h=n(window).height(),ni.css("padding-bottom",hu.h)):ni.css("padding-bottom",""),uu())}function hc(n){n.keyCode==27&&pt&&tf()}function cc(){c("media event: canplay");w.AutoPlay||rs();ct()&&bl()}function rs(){c("OnLoad");at("ready")}function lc(){or();ff();ct()&&at("playing")}function ac(){var u,e,o,s;if(it){var n=kt(),r=ki(),h=ct();if(isNaN(n)||isNaN(r))return;n>0&&at(it.paused?"paused":"playing");yr();u=0;h&&n>0&&(e=r-n,u=Math.ceil(e),u>0&&((f.NativeControls||f.IPad||f.AndroidModern||f.IEMobileModern)&&(pe.text(t.player_admsg.replace("{0}",u)),gi.show()),(!f.NativeControls||f.IPad||f.AndroidModern||f.IEMobileModern)&&(!w.CanSkipAds||f.IPad||st.IsVpaid()||(o=w.SkipAdsSeconds-n,s=Math.ceil(o),ei.show(),s<1?(ei.children(":last-child").text(t.player_adskipbuttonmsg),ei.addClass("skipad").attr("tabindex",0).unbind("click keydown").one("click",function(){fa()}).bind("keydown",vc)):e-o>=1?(ei.removeClass("skipad"),ei.children(":last-child").text(t.player_adskipmsg.replace("{0}",s))):(ei.hide(),ei.removeAttr("tabindex"))))));u<=0&&(w.ShowTitle&&et.Video.title?(pe.text(et.Video.title),gi.show()):gi.hide(),ei.hide(),ei.removeAttr("tabindex"));h||it.paused||(ri.HasReached(d)&&(ht("ContentContinue"),yi.Reset()),!wf&&r>0&&ri.GetTotalValue()>=500*r&&(wf=!0,ht("ContentHalf")),st.TimeUpdate(n),i.trigger("videoTimeUpdate",{time:n,duration:r}))}}function vc(t){(t.keyCode==13||t.keyCode==32)&&(n(t.currentTarget).trigger("click"),t.preventDefault(),ei.unbind("keydown"))}function yc(n){var i,e;c("media event: play");i=ct();i?(ni.removeClass("videomedia").addClass("admedia"),ci.fadeTo(500,0,function(){ci.hide()}),c("Playing ad")):(ni.removeClass("admedia").addClass("videomedia"),ci.css("display","block"),ci.fadeTo(500,.7));at("loading");rt&&rt.SetPlayButtonState(!0);ii&&ii.hide();f.NativeControls&&!f.IPad&&lt.show();n&&n.target&&it.currentTime&&ht("EventResume");li&&clearTimeout(li);e=i?uh:f.IsMobile?fh:eh;e>0&&(li=setTimeout(function(){ce()||wt!="buffering"||(c("First byte timeout detected"),at("error"),i?es({errorMessage:"timed out"}):du(t.player_standarderror,u.formatContentError(r.ContentErrorCodes.BufferingFirstByteTimeout,"Time out waiting for first byte.")))},e));tr=0;po()}function pc(){var i,t,r,u;at("playing");bt&&(w.LeavePosterFrame?bt.show():bt.hide());i=null;setTimeout(function(){oi&&(c("Restoring player time to : "+oi),di(oi),oi=0);fi&&(i&&clearInterval(i),i=setInterval(function(){if(vt.attr("class").indexOf("buffering")==-1){if(vt.removeClass(vu),fi=!1,yf){it.pause();var n=ct()?hi:yt;n&&n.addClass("in_view");yf=!1}clearInterval(i)}},100))},100);t=ct();hr=!t;rt&&rt.Controls&&(rt.UpdateQualityList(et.BitRateAvailable,et.BitRate,t),r=rt.Controls["time-handle"],r&&(hr?r.element.show():r.element.hide()),u=rt.Controls["close-caption-container"],u&&(t?u.element.hide():(rt.SetCloseCaptionLangControls(et.Video),w.Ttml&&n.each(rt.LangControls,function(n,t){return t.ccfile.url=w.Ttml,rt.OnCaptionSelect(t,!1),!1}))),rt.SetInfoButtonState(!1,t),rt.SetShareButtonState(!1,t));t||bf===!1&&(bf=!0,ht("ContentStart"),n.cookie("videoerrorcount",0));f.Android&&(c("re-invoking play for Android only"),it.play());st.Playing()}function wc(n){c("media event: pause");kt()>0&&(at("paused"),n&&n.target&&ht("EventPause"));st.Paused();rt?rt.SetPlayButtonState(!1):w.LeavePosterFrame?eo():ie()}function bc(){c("media event: waiting");at("buffering");st.Buffering()}function kc(){c("media event: seeking");it.seeking===!0&&ir===null&&(ir=it.currentTime);tr=0;var n=kt();!isNaN(n)&&n>0&&(at("seeking"),ct()?vi=!0:et&&et.Video&&et.Video.Captions&&et.Video.Captions.length&&et.Video.CurrentCCFormat&&et.Video.Captions[et.Video.CurrentCCFormat]&&et.Video.Captions[et.Video.CurrentCCFormat].UpdateCaptions(),st.Seeking(ir))}function dc(){it.seeking===!1&&(ir!==null||kr!==null)&&(dr!==ir||dr!==kr)&&(dr=it.currentTime,ht("EventSeek",{SeekFrom:kr||ir,SeekTo:dr}),ir=null,kr=null,st.Seeked(dr));c("media event: seeked")}function gc(){rt&&rt.SetMuteButtonState(!0)}function nl(){rt&&rt.SetMuteButtonState(!1)}function tl(){c("media event: ended");at("ended");ct()||(ht("ContentComplete"),ri.Reset(),f.NativeControls||(ue(),yr()),st.VideoEnded())}function us(){ht("EventVideoQualityChanged")}function il(){iu("playbackCompleted")}function rl(n){switch(n.code){case n.MEDIA_ERR_ABORTED:return t.media_err_aborted;case n.MEDIA_ERR_NETWORK:return t.media_err_network;case n.MEDIA_ERR_DECODE:return t.media_err_decode;case n.MEDIA_ERR_SRC_NOT_SUPPORTED:return t.media_err_src_not_supported;default:return t.media_err_unknown_error}}function ul(n){sr&&(n?sr.fadeOut(500):(sr.hide(),sr.parent().hide()),cf=!1)}function fl(n){var i,f,e,o;if(c("media event: error"),!ct()&&!we&&!cf&&(at("error"),n.target!==null&&n.target.error!==null)){switch(n.target.error.code){case n.target.error.MEDIA_ERR_ABORTED:i=t.media_err_aborted;f="aborted";e=r.ContentErrorCodes.MediaErrorAborted;break;case n.target.error.MEDIA_ERR_NETWORK:i=t.media_err_network;f="network error";e=r.ContentErrorCodes.MediaErrorNetwork;break;case n.target.error.MEDIA_ERR_DECODE:i=t.media_err_decode;f="unreadable";e=r.ContentErrorCodes.MediaErrorDecode;break;case n.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:i=t.media_err_src_not_supported;f="unsupported";e=r.ContentErrorCodes.MediaErrorSourceNotSupported;break;default:i=t.media_err_unknown_error;f="unknown error";e=r.ContentErrorCodes.MediaErrorUnknown}i=t.player_playbackerror.replace("{0}",i);o=u.formatContentError(e,i);du(i,o,f)}}function fs(){c("media event: loadeddata");yr()}function el(){yr()}function ol(n){c("media event: volumeChanged");n&&n.target&&(it.muted?(ht("EventMute"),yu=!0):yu&&(ht("EventUnmute"),yu=!1))}function sl(){ct()&&it.muted&&ht("AdMute")}function hl(){ct()&&ht("AdPaused")}function cl(){var t,i,r,u,e,o;if(ct()){if(f.NativeControls&&!f.IPad){if(t=kt(),pu&&(i=new Date-pu,r=(t-gr)*1e3,r>0&&i>0&&(u=r/i,e=f.Android?10:1.5,u>e||vi))){c("Detected ad skip with ratio="+u+" with threshold r="+e);vi=!0;di(gr);return}gr=t;pu=new Date;vi=!1}o=kt();o>0&&ur&&n.each(ur,function(n,t){!t.fired&&t.t<=o&&(ht(t.evt),t.fired=!0)});!df&&st.TimePlayingCounter()>0&&(si("adStarted"),df=!0)}}function ct(){return st&&st.IsAdPlaying()}function ee(){if(ct()){if(f.NativeControls&&!f.IPad&&wt!="error"&&ur){var t=!0;if(n.each(ur,function(n,i){i.fired||(t=!1)}),f.Android&&!f.AndroidModern){if(vi){vi=!1;c("User tried to skip ads, complete="+t);setTimeout(function(){st.RestartAd()},1e3);return}if(!t){c("User exited from ads");return}}else if(!t){c("Ad skip detected");di(gr);ui();return}}st&&st.ClickThrough(null);or();fu();gi.hide();ht("AdComplete");ri.Reset();si("adEnded")}}function es(n){if(ct()){at("error");var t;n&&(n.target!==null&&n.target.error!==null?t=rl(n.target.error):n.errorMessage&&(t=n.errorMessage));ht("AdError",{ErrorType:"ads:error",ErrorDesc:t||"unknown ad error"});ee()}}function ll(){document.addEventListener("fullscreenchange",wi,!1);document.addEventListener("mozfullscreenchange",wi,!1);document.addEventListener("webkitfullscreenchange",wi,!1);document.addEventListener("MSFullscreenChange",wi,!1);document.addEventListener("fullscreenerror",bi,!1);document.addEventListener("mozfullscreenerror",bi,!1);document.addEventListener("webkitfullscreenerror",bi,!1);document.addEventListener("MSFullscreenError",bi,!1);it.addEventListener("webkitbeginfullscreen",hs,!1);it.addEventListener("webkitendfullscreen",cs,!1)}function al(){document.removeEventListener("fullscreenchange",wi,!1);document.removeEventListener("mozfullscreenchange",wi,!1);document.removeEventListener("webkitfullscreenchange",wi,!1);document.removeEventListener("MSFullscreenChange",wi,!1);document.removeEventListener("fullscreenerror",bi,!1);document.removeEventListener("mozfullscreenerror",bi,!1);document.removeEventListener("webkitfullscreenerror",bi,!1);document.removeEventListener("MSFullscreenError",bi,!1);it.removeEventListener("webkitbeginfullscreen",hs,!1);it.removeEventListener("webkitendfullscreen",cs,!1)}function wi(){var t=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,n;n=f.NativeControls?it[0]:lt.parent()[0];n===t?pt||os():ss()}function os(){pt=!0;uu();si("onFullscreenEnter");c("OnBeginFullScreen");ht("EventFullScreenEnter");bt.addClass("expanded");vt.addClass("fullscreen")}function ss(){pt=!1;uu();si("onFullscreenExit");c("OnEndFullScreen");ht("EventFullScreenExit");bt.removeClass("expanded");vt.removeClass("fullscreen")}function hs(){ui();os()}function cs(){ss();bt&&!f.IPad&&of&&of.hide()}function bi(){pt=!1;c("OnFullScreenError")}function rf(n){if(!n){br=!0;er();return}(lf.x!=n.clientX||lf.y!=n.clientY)&&(lf={x:n.clientX,y:n.clientY},br=!0,er())}function er(){switch(wt){case"loading":case"init":case"ended":break;case"ready":case"paused":case"simulated_ad_paused":ks(!0);break;case"simulated_ad_running":default:var n=(new Date).getTime();(!br||!bu||n-bu>ft)&&ks()}}function ls(n){rf(n)}function oe(){br=!1;as()}function as(){(dt==="showing"||dt==="shown")&&ds()}function se(n){var i=!1,r,u,e,t;f.NativeControls&&(r=n.target.clientHeight-45,u=n.offsetY,u>=r&&(i=!0));c("OnVideoClick");e=br||tr>0;t=st.ClickThrough();++tr;e&&t&&wt==="playing"?(f.NativeControls?vt.addClass("paused"):st.IsVpaid()||it.pause(),window.open(t,"_blank"),tr=0):i||(wt==="ready"||wt==="paused"?ui():wt==="playing"&&vr())}function vs(n){af=!0;rf(n)}function vl(n){af=!1;oe(n)}function yl(){var n=w.VCConfig.LinkBack;n&&(w.PopLink||w.LogoPopup?window.open(n,"logo"):document.location.href=n)}function pl(){uu()}function ys(){}function ps(n){bs(ph,n);ht("EventInfo")}function ws(n){th();bs(wh,n);ht("EventCaptionSettings")}function bs(n,t){var i={resumeAction:wt=="playing"?"play":"none"};n(i,t)}function ks(n){var i=ct(),t=i?hi:yt;de=!!n;!t||lu||cu||dt!="showing"&&dt!="shown"&&(t.stop(!0,!0),tu&&(clearTimeout(tu),tu=0),t.addClass("in_view").removeAttr("aria-hidden"),dt="showing",i||(pr.css("bottom",Math.max(0,t.outerHeight()-su)),ou()),s.pubChannel("player.showControls",w.PlayerId),t.css("display","block").animate({opacity:1},{duration:700,queue:!1,easing:"swing",complete:function(){dt=="showing"&&(dt="shown",af||de||t.hasClass("popup_open")||ds())}}))}function ds(){tu=setTimeout(function(){tu=0;wt!="paused"&&wt!="simulated_ad_paused"&&rt&&!rt.GetNameOfControlWithFocus()&&or();tr=0},ut)}function uf(){var n=ct()?hi:yt;n&&n.css("display","block");rt&&pi&&rt.FocusControl(pi);pi=null}function ff(){pi=rt?rt.GetNameOfControlWithFocus():null;yt&&yt.hide()}function fu(){pi=rt?rt.GetNameOfControlWithFocus():null;hi&&hi.hide()}function or(n){var i=ct(),t=i?hi:yt;t&&dt!="hiding"&&dt!="hidden"&&(t.stop(!0,!0),dt="hiding",i||(pr.css("bottom",0),ou()),t.attr("aria-hidden",!0),s.pubChannel("player.hideControls",w.PlayerId),t.animate({opacity:0},{duration:700,queue:!1,easing:"swing",complete:function(){dt=="hiding"&&(dt="hidden",t&&t.removeClass("in_view"))}}));bu=n?(new Date).getTime():null;pi=null}function kt(){var n=0;return it&&it.currentTime&&(n=it.currentTime),n}function ki(){var n=0;return it&&it.duration&&(n=it.duration),n}function he(){var n=0;return it&&it.volume&&(n=it.volume),n}function ce(){var n=0;try{it&&it.buffered&&it.buffered.length>0&&(n=it.buffered.end(it.buffered.length-1))}catch(t){}return n}function di(n){if((!f.Android||f.AndroidModern)&&it){var t=ki();if(t>0){n=Math.max(0,Math.min(n,t));try{it.currentTime=n}catch(i){c("Caught Exception setting Player.currentTime = "+n+"when duration = "+t+": '"+i.message+"'.")}yr()}}}function wl(n){if(hr){var t=ki()*n;di(t)}}function eu(t){it&&(t=Math.max(0,Math.min(1,t)),cr=t,n.cookie(k,Math.ceil(cr*10)),it.volume=t,nh())}function bl(){var i,n,t;if(vi=!1,ur=st.IsFreeWheel()?[]:[{evt:"AdStart",t:0}],i=ki(),i>0){for(n=25;n<100;n=n+25)ur.push({evt:"Ad"+n+"Percent",t:n*i/100});for(t=y;t<i;t=t+y)ur.push({evt:"AdContinue",t:t})}}function yr(){if(rt){var n=ki(),t=kt(),i=ce();if(!isFinite(n)||isNaN(t)||n===0)return;rt.UpdateTimeRail(t,n,i)}}function kl(n,t){if(rt){if(!isFinite(t)||isNaN(n)||t===0)return;rt.UpdateTimeRail(n,t,n)}}function dl(){gs();lt.bind("timeupdate.closecaptions",function(){le()})}function gs(){ti.hide();pr.empty();lt.unbind("timeupdate.closecaptions")}function le(){if(cu)ti.hide();else if(et&&et.Video&&et.Video.Captions&&et.Video.CurrentCCFormat){var n=et.Video.Captions[et.Video.CurrentCCFormat];n&&n.UpdateCaptions()}}function ou(){et&&et.Video&&et.Video.Captions&&(n.each(et.Video.Captions,function(n,t){t.Reset()}),le())}function nh(){rt&&rt.UpdateVolumeRail(he())}function gl(){cr=(n.asInt(n.cookie(k))||10)/10;eu(cr);(w.Mute||n.cookie(l)=="1")&&ru()}function na(){ar.OnSlotPlayStarted()}function ta(){ar.OnSlotPlayEnded()}function ia(){ar.AddFWInilizationDuration()}function ra(n){ht("AdTimeout",n||{ErrorType:"ads:timeout",playerType:w.PlayerTechnologyUsed,ErrorDesc:"Ad play timed out"})}function ht(n,t){if(!ar){setTimeout(function(){ht(n,t)},200);return}ke||ct()||(ke=!0,ht("ContentOpen"));var r=ua(t);i.trigger(n,r);ih(n)}function ae(n){var t=!1;t=!0;h&&h(n,!0,t)}function ua(t){var e=ki(),f={IsAd:t&&t.isAd,PlayerInstanceId:w.PlayerInstanceId,PlayerTechnology:w.PlayerTechnologyUsed,PlaybackStatus:wr,TotalBufferWaitTime:yi.GetValue(),BufferCount:yi.GetIntervals(),ErrorType:t&&t.ErrorType,ErrorDesc:t&&t.ErrorDesc,LoadTime:rr.GetFirstValue(),NumPlayed:rr.GetIntervals(),VideoPlayerType:"mp4:progressive",VideoDuration:e,VideoElapsedTime:kt(),SeekFrom:t&&t.SeekFrom,SeekTo:t&&t.SeekTo,VideoLength:e*1e3,VideoSize:{w:vt.width(),h:vt.height()},TotalTimePlaying:ri.GetTotalValue(),CurrentInterval:ri.GetValue(),ContinueInterval:d,AdType:st?st.AdType():null,AdContinueInterval:y,AdTriggerVideosPlayed:st.VideosPlayedCounter(),AdTriggerTimePlaying:st.TimePlayingCounter(),AdTriggerTimeElapsed:st.TimeElapsedCounter(),MaxBitrate:sf},i,r;return n.extend(f,t),et&&(i=et.Video,r={Video:i,VideoId:i.uuid,VideoTitle:i.title,VideoCsId:i.csId,VideoSource:i.source,VideoSourceFriendly:i.sourceFriendly,VideoProviderId:i.providerId,VideoPageGroup:i.pageGroup||w.AdConfig.PageGroup,VideoFormatCode:et.FormatCode,VideoUrl:et.MediaFile,VideoGenre:u.GetVideoTag(i,"genre")},ct()&&(r.AdId=st.AdId(),r.AdUrl=st.AdUrl()),n.extend(f,r)),f}function fa(){ct()&&(st.SkipAd(),ht("AdSkip"),st&&st.ClickThrough(null),gi.hide(),so())}function ea(){ve=!0;ih("OnVideoUserInteraction")}function oa(){switch(wr){case"adPlaying":case"videoPlaying":case"seeking":case"simulatedAdRunning":case"videoBuffering":return!0;default:return!1}}function sa(n){switch(n.toLowerCase()){case"play":ui();break;case"pause":vr();break;case"mute":ru();break;case"unmute":nf()}}function th(){return lr}function ih(n){s.pub(n,nt)}var ve,nt,st;w.PlayerTechnologyUsed=n.asBool(w.UseHybridPlayer)?"hybrid":"HTML5";a({t:"94",evt:"ContentPlay"});var ef={w:320,h:180},gt=n(".hybrid",i),ni=n(".video_player_outer",i),vt=n(".video_player_inner",i),lt=n("video",i),it=lt.get(0),bt=n(".video_play_thumb",i),ye=n("img",bt),ii=n(".mobile_quality_selector",i),of=n(".video_play_splash",i),ti=n(".video_captions",i),pr=n(".video_captions_ttml",i),yt=n(".video_control_container",i),hi=n(".ad_control_container",i),gi=n(".video_admsg_container",i),sr=n(".video_error_txt",i),ci=n(".video_logo_container",i),rh=n(".video_pane_container",i),pe=n(".video_admsg_txt",gi),nr,fi=!1,rt=null,ei=n(".adskip"),hr=!1,pt=null,wr="Unknown",sf=ot(w),uh=n.asInt(w.FirstByteTimeoutAd)||6e3,fh=n.asInt(w.FirstByteTimeoutVideo)||1e4,eh=n.asInt(w.FirstByteTimeoutVideoDesktop)||2e4,et=null,su=0,hu=null,hf=0,cf=!1,we=!1,lf={x:0,y:0},af=!1,br=!1,cu=!1,be=null,dt="hidden",tr=0,wt=null,oh=!1,lu=!1,au=!1,vf=!1,cr=1,sh=.75,oi=0,vu="reload_seek_in_progress",yf=!1,yu=n.cookie(l)=="1"?!0:!1,ir=null,kr=null,dr=null,gr=0,pu=null,vi=!1,yi=new o,pf=!1,rr=new o,ri=new o,wf=!1,nu=!1,ke=null,bf=null,ur=null,pi=null,wu=null,kf=!1,li=null,bu,de,tu,ai=null,lr=null,ku=[],ar=null,df=!1,ge=0,gf=!1;var fr=0,vo=f.IsMobile?n.asInt("")||-1:n.asInt("")||5,yo=0;ve=!1;nt=this;nt.CanSeek=function(){return hr};nt.IsExpanded=function(){return pt};nt.PreserveTime=function(){return fi};nt.SeekFromClick=function(n){kr=n};nt.CurrentMedia=function(){return et};nt.ControlContainer=yt;nt.AdControlContainer=hi;nt.Config=w;nt.IsPlayerMute=bo;nt.ShowControlsBasedOnState=er;nt.HideControlsBasedOnState=as;nt.SetPlayerTimeRatio=wl;nt.Report=ht;nt.ReportPerfMarker=ae;nt.ReportAdTimeout=ra;nt.ReportSlotPlayStarted=na;nt.ReportSlotPlayEnded=ta;nt.ReportFWInit=ia;nt.EnterSimulatedAdMode=nc;nt.ExitSimulatedAdMode=tc;nt.OnSimulatedAdClicked=ic;nt.UpdateTimeRailForSimulatedAd=kl;nt.OnVideoEnter=rf;nt.OnVideoMove=ls;nt.OnVideoLeave=oe;nt.Play=ui;nt.Pause=vr;nt.PlaybackComplete=il;nt.Player=it;nt.PlayerElt=lt;nt.OnAdEnded=ee;nt.Broadcast=si;nt.SetCurrentPlayingTime=di();nt.PrepareMedia=vh;nt.OnAdsLoaded=yh;nt.StopMedia=du;nt.IsPlayerMute=bo;nt.ReloadVideo=ho;nt.VideoContainer=ni;nt.Dispose=ah;nt.SetPlayerVolume=eu;nt.SetMaxBitRate=te;nt.RestartMedia=uo;nt.Unmute=nf;nt.Mute=ru;nt.VideoQualityChanged=us;nt.OnSimulatedAdPause=gu;nt.OnSimulatedAdPlay=lo;nt.IsAdPlaying=ct;nt.CaptionContainer=pr;nt.CaptionContainerWrapper=ti;nt.GetCaptionsSettingsPane=th;nt.PaneContainer=rh;nt.OnInfo=ps;nt.OnPaneClosed=so;nt.OnCaptionSettings=ws;nt.ClearCloseCaptions=gs;nt.BindCloseCaptions=dl;nt.ResetCCModels=ou;nt.GetCurrentPlayingTime=kt;nt.OnAdInit=function(){at("loading")};nt.Container=i;nt.TriggerAction=sa;nt.IsContentPlaying=oa;nt.HasUserInteracted=function(){return ve};st=new e(nt);yt.length&&require(["wcvp.controlBar"],function(n){rt=new n(nt)});require(["wcvp.infoPane"],function(n){ai=new n(nt)});require(["wcvp.captionSettingsPane"],function(n){lr=new n(nt)});gt.show();hh(w);oc();lh();ns();at("init");a({t:"90",evt:"ContentPlay"});gl();c("HTML5 player initialized");iu("ready");ne(w.Video);sc();pt=!0;tf();w.IsInlinePlayer&&require(["wcvp.inViewOrchestrator"],function(n){n.RegisterPlayer(nt)});ae(g)}function tt(){return((/pagename:\s*([^;]+)/i.exec(document.getElementsByTagName("HEAD")[0].getAttribute("data-info"))||{})[1]||"").toLowerCase()}var v="vidmbr",k="vidvol",l="vidmut",d=2e4,y=5e3,it=600,rt=1400,ut=3e3,ft=2e3,g="PlayerLoaded",p=[{code:101,br:400},{code:102,br:600},{code:103,br:1400},{code:104,br:3e3}],w;return require(["smartTvDebugger"],function(n){w=n}),tt()==="channelplayerpage"?define("html5PlayerLoaded",1):require(["c.dom"],function(){define("html5PlayerLoaded",1)}),nt.HasSupport=et,nt});define("wcvp.wcVideoPlayerError",["jquery","wcvp.locStrings"],function(n,t){return function(i,r){this.Dispose=function(){n(".error",i).hide()};var u=r.CurrentError||t.player_browserunsupported;!r.CurrentError&&(!n.flashInstalledVersion||n.flashInstalledVersion<n.RequiredFlashVersion)&&(u=t.error_flash_minimum_required_version_not_installed.replace("{0}",n.RequiredFlashVersion));n(".error",i).text(u).show();r.CurrentError=null;setTimeout(function(){i.trigger("playbackStatusChanged",{status:"playbackerrored"})},5e3)}});define("wcvp.wcVideoPlayer3PPBaseClass",["jquery","wcvp.classFramework","wcvp.playerUtils","wcvp.locStrings","wcvp.videoPlayerTokens","window","wcvp.Logger","wcvp.otfReporter"],function(n,t,i,r,u,f,e,o){function h(t,i){var r=this,f;s&&s.isWaiting("TimeToVideoStart")&&s.cancelWait("TimeToVideoStart");r.Container=t;r.VideoWrapper=n(".external",t);r.VideoContainer=n(".external",t);r.PlayerElt=null;r.Player=null;r.Events=u.Events;r.PlaybackStatus="Unknown";r.Config=i;r.Loaded=null;r.VideoContainer.show();f=i.AdConfig;f.PageGroup=i.adpagegroups&&i.adpagegroups.web||f.PageGroup;new o(i);i.Video.playerName&&(r.hasStartEvent?r.Report("CommonPlayerImpression"):r.Report("Event3ppVideoLoaded"));r.BindContainerEvents&&(r.UnbindContainerEvents(),r.BindContainerEvents())}var s;return require(["rumBeacon"],function(n){s=n}),t.DeclareClass(h,{Namespace:"WcVideoPlayer3PPBase",CreateElements:function(){var n=this,t=i.S4()+i.S4(),r="<div id='"+t+"' class='player'><\/div>";n.VideoContainer.html(r);n.PlayerElt=n.VideoContainer.children();n.Player=n.PlayerElt.get(0)},ProviderDetails:function(t,i){var e,u,f;if(t)e=this,u=n("<div/>",{"class":"providerDetails"}).text(r.video_player_from_text.replace("{0}",t)),i&&(f=n("<a/>",{href:i,target:"_blank"}).text(r.video_player_privacy_policy_text),u.append(f),n(f).before(" (").after(")")),e.VideoContainer.append(u);else return},CreateIFrame:function(n){var t=this,i=n.id&&n.id!==""?" id='"+n.id+"'":"",r=n.width||"100%",u=n.height||"100%",f=n.extraParams||"";t.PlayerElt.html("<iframe "+i+f+" src='"+n.url+"' frameborder='0' scrolling='no' marginwidth='0' marginheight='0' width='"+r+"' height='"+u+"' allowfullscreen='true'><\/iframe>")},OnResize:function(){var n=this;n.ResizeVideo(!0)},ResizeVideo:function(n){var t=this,r;t.VideoWrapper.height("auto");r=i.videoElementSizes(t.Container,t.Config,n);t.VideoWrapper.height(r.VideoHeight+t.VideoContainer.find(".providerDetails").height())},BindContainerEvents:function(){var t=this;t.Container.bind("OnDispose",t.Dispose.bind(t));t.UnbindContainerEvents();n(f).bind("resize.video",function(){t.OnResize()})},UnbindContainerEvents:function(){var t=this;t.Container.unbind("OnDispose");n(f).unbind("resize.video")},Log:function(n){e.Log(n)},Report:function(n){var t=this,i=t.GetReport();t.Container.trigger(n,i)},GetReport:function(){var n=this,t="3PP_"+n.Config.Video.playerName;return{PlayerTechnology:t,VideoCs:n.Config.Video.csId,VideoTitle:n.Config.Video.title,VideoId:n.Config.Video.uuid,guid:n.Config.Video.providerId,duration:n.Config.Video.durationSecs,pageGroup:n.Config.AdConfig.PageGroup,playerInstanceId:n.Config.PlayerInstanceId,PlayerType:t,VideoSize:{w:n.VideoContainer.width(),h:n.VideoContainer.height()},PluginVersion:"3PP"}},Dispose:function(){var n=this;n.VideoContainer.find("iframe").attr("src","");n.Player=null;setTimeout(function(){n.PlayerElt.empty();n.PlayerElt=null},0);n.VideoWrapper.hide()},Broadcast:function(){for(var i=this,t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);i.Container.trigger(arguments[0],t)},SetPlaybackStatus:function(t,i){var r=this;t&&t!=r.PlaybackStatus&&(r.PlaybackStatus=t,r.Broadcast("playbackStatusChanged",{status:t}),r.Log("state="+i));t==="videoPlaying"&&n.cookie("videoerrorcount",0)}}),h});define("wcvp.wcVideoPlayer120Sports",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r){function u(n,t){var u=this;u.hasStartEvent=!0;i.call(u,n,t);u.CreateElements();u.ProviderDetails("120 Sports","//www.120sports.com/about/privacy");u.ResizeVideo();require({js:t.ExternalPlayerUrl},function f(){r.otsembed?u.On120SportsPlayerAPIReady():setTimeout(f,50)})}return t.DeriveClass(u,i,{Namespace:"WcVideoPlayer120Sports",On120SportsPlayerAPIReady:function(){var n=this;r.otsembed.embed({target:n.Player.id,segment:n.Config.Video.providerId,showHeader:!1,autoAdvance:!1,autoPlay:n.Config.AutoPlay,env:n.Config.ExternalPlayerUrl.match("betasecure")?"beta":""});r.addEventListener("message",function(t){if(t.origin.indexOf("120sports.com")>-1){var r=eval("("+t.data+")"),i=r&&r.type?r.type:null;i==="clipStart"&&(n.SetPlaybackStatus(n.Events.Opening,i),n.Report("Event3ppContentStart"));i==="clipComplete"&&(n.SetPlaybackStatus(n.Events.Ended,i),n.Report("Event3ppContentComplete"))}},!1)}}),u});define("wcvp.wcVideoPlayerAOL",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r){function u(n,t){var u=this,f="";u.hasStartEvent=!0;i.call(u,n,t);u.CreateElements();u.ProviderDetails("Aol On","http://privacy.aol.com/");u.ResizeVideo();switch(u.Config.Video.providerId.toString().length){case 24:require({js:"https://cdn-ssl.vidible.tv/prod/player/js/latest/vidible-min.js"},function e(){if(r.vidible){var n=function(){try{var n=document.createElement("video");return n&&!!n.canPlayType("video/mp4; codecs=avc1.42E01E,mp4a.40.2")}catch(t){}return!1}();f=n?u.Config.AdConfig.FWHtml5Profile:u.Config.AdConfig.FWFlashProfile;u.OnNewAOLPlayerAPIReady(f)}else setTimeout(e,50)});break;case 9:require({js:t.ExternalPlayerUrl},function e(){r.PlayerSeed&&r.FIVEMIN?(f=typeof r.FIVEMIN.OnePlayer.uad.isHtmlPlayer=="function"&&r.FIVEMIN.OnePlayer.uad.isHtmlPlayer()?u.Config.AdConfig.FWHtml5Profile:u.Config.AdConfig.FWFlashProfile,u.OnOldAOLPlayerAPIReady(f)):setTimeout(e,50)})}}return t.DeriveClass(u,i,{Namespace:"WcVideoPlayerAOL",OnOldAOLPlayerAPIReady:function(n){var i=this,u=i.LoadFWSettings(n),t=new r.PlayerSeed(i.Player.id);t.sid="1863";t.height="auto";t.width="auto";t.playList=i.Config.Video.providerId;t.autoStart=i.Config.AutoPlay;t.relatedMode=!1;t.hasCompanion=!1;t.onVideoStartPlay="window.aolOnBegin";t.onPlay="window.aolOnPlay";t.onPause="window.aolOnPause";t.onVideoEnded="window.aolOnVideoEnded";t.fwProfileName=n;t.fwVideoAssetNetworkId=u.fwVideoAssetNetworkId;t.fwSiteSection=u.aolPageGroup;t.fwSiteSectionNetworkId=u.fwSiteSectionNetworkId;t.fwKeyValuesGlobal=u.fwKeyValuesGlobal;t.fwKeyValues=u.fwKeyValues;t.csaccid=u.csaccid;t.csc4=u.aolCsc4;t.mute=i.Config.Mute;t.Load();r.aolOnBegin=function(){i.SetPlaybackStatus(i.Events.Opening,"videoBegin");i.Report("Event3ppContentStart")};r.aolOnPlay=function(){i.SetPlaybackStatus(i.Events.Playing,"videoPlaying")};r.aolOnPause=function(){i.SetPlaybackStatus(i.Events.Paused,"videoPaused")};r.aolOnVideoEnded=function(){i.SetPlaybackStatus(i.Events.Ended,"videoPlayCompleted");i.Report("Event3ppContentComplete")}},LoadXDRequest:function(t){var i=this;return i.VisitorToken="",n.ajax({url:t,dataType:"text",async:!1,timeout:i.Config.AdConfig.AdTimeout*1e3,xhrFields:{withCredentials:!0},success:function(n){n&&(i.VisitorToken=n,n.indexOf("=")!==-1&&(i.VisitorToken=n.split("=")[1]))},error:function(n){i.Log("XDR error :"+n)}}),i.VisitorToken},LoadFWSettings:function(n){var t=this,i=t.Config.adpagegroups,u=t.Config.AdConfig.PageGroup,r=document.location.pathname.split("/"),e=t.Config.AdConfig.FWNetworkId,o="{0}:{1}".format("_fw_ekv%3D1",t.LoadXDRequest(t.Config.AdConfig.VisitorTargetingService)),s="{0}{1}".format("FUFASSETID%3D",t.Config.Video.uuidBase32),f="";return r.length>=3&&(f=document.location.hostname+"/"+r[1]+"/"+r[2]),i&&i.mobileweb&&i.web&&(u=n===t.Config.AdConfig.FWHtml5Profile?i.mobileweb:i.web),{aolPageGroup:u,aolCsc4:f,fwVideoAssetNetworkId:"10886",fwSiteSectionNetworkId:e,fwKeyValuesGlobal:o,fwKeyValues:s,csaccid:"3000001"}},OnNewAOLPlayerAPIReady:function(n){var t=this,f=t.Config.AutoPlay,i=t.LoadFWSettings(n),u=r.vidible.player(t.Player.id).setup({pid:"566b246ae4b092ad13e7a70e",videos:t.Config.Video.providerId,bcid:"56603651bbe5bf10d057f868","m.playertype":"smart","m.isResponsive":!0,"m.playback":f?"autoplay":"click","m.sound":"mute","m.initialVolume":.5,"m.fwProfileName":n,"m.fwVideoAssetNetworkId":i.fwVideoAssetNetworkId,"m.fwSiteSection":i.aolPageGroup,"m.fwSiteSectionNetworkId":i.fwSiteSectionNetworkId,"m.fwKeyValuesGlobal":i.fwKeyValuesGlobal,"m.fwKeyValues":i.fwKeyValues,"m.csaccid":i.csaccid,"m.csc4":i.aolCsc4}).load(),e=function(n){t.SetPlaybackStatus(t.Events.Opening,n);t.Report("Event3ppContentStart")},o=function(n){t.SetPlaybackStatus(t.Events.Ended,n);t.Report("Event3ppContentComplete")};u.on(r.vidible.VIDEO_START,e);u.on(r.vidible.VIDEO_END,o)}}),u});define("wcvp.wcVideoPlayerCorriereDellaSera",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"http://video.corriere.it/video-embed/{0}?playerType=partnership_msn&autoPlay={1}&mute={2}".format(r.Config.Video.providerId,r.Config.AutoPlay,r.Config.IsInlinePlayer?!0:!1)};r.CreateElements();r.ProviderDetails("Corriere Tv","http://www.corriere.it/privacy.shtml");r.ResizeVideo();r.CreateIFrame(u);require({js:t.ExternalPlayerUrl},function f(){window?r.OnCorriereDellaSeraPlayerAPIReady():setTimeout(f,50)})}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerCorriereDellaSera",OnCorriereDellaSeraPlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){if(t.origin=="http://video.corriere.it"){var r=t.message?"message":"data",i=t[r];i==="it.chili.player.event.video.started"&&(n.SetPlaybackStatus(n.Events.Opening,i),n.Report("Event3ppContentStart"));i==="it.chili.player.event.video.ended"&&(n.SetPlaybackStatus(n.Events.Ended,i),n.Report("Event3ppContentComplete"))}},!1)}}),r});define("wcvp.wcVideoPlayerDailymotion",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r){function u(n,t){var u=this,h,o,s,e;if(u.hasStartEvent=!0,u.ContentStartRecorded=!1,i.call(u,n,t),u.CreateElements(),u.ProviderDetails("Dailymotion","http://www.dailymotion.com/legal/privacy"),u.ResizeVideo(),u.Container.addClass("Dailymotion_player"),h=n.attr("data-metadata"),h!==null&&(o=JSON.parse(h),o&&o.tags))for(s=o.tags,e=0;e<s.length;e++)if(s[e].ns==="syndication"){f=s[e].value;break}u.OldOnDailymotionAPIReady=r.dmAsyncInit;r.dmAsyncInit=u.OnDailymotionAPIReady.bind(u);require({js:t.ExternalPlayerUrl},function c(){r.DM&&r.DM.Player?u.OnDailymotionAPIReady():setTimeout(c,50)})}u.ScriptLoading=!1;var f;return t.DeriveClass(u,i,{Namespace:"WcVideoPlayerDailymotion",OnDailymotionAPIReady:function(){var t=this;u.ScriptLoading=!1;t.Player=r.DM.player(t.PlayerElt.attr("id"),{video:t.Config.Video.providerId,height:"100%",width:"100%",params:{syndication:f,muted:t.Config.Mute?1:0,autoplay:t.Config.AutoPlay?1:0}});n(t.Player).bind({timeupdate:function(){t.ContentStartRecorded===!1&&(t.SetPlaybackStatus(t.Events.Opening,"begin"),t.Report("Event3ppContentStart"),t.ContentStartRecorded=!0)},play:function(){t.SetPlaybackStatus(t.Events.Playing,"playing")},ended:function(){t.SetPlaybackStatus(t.Events.Ended,"ended");t.Report("Event3ppContentComplete")},error:function(){t.SetPlaybackStatus(t.Events.Error,"error")}});r.dmAsyncInit=t.OldOnDailymotionAPIReady;t.OldOnDailymotionAPIReady&&(t.OldOnDailymotionAPIReady(),t.OldOnDailymotionAPIReady=null)},Dispose:function(){var n=this;n.PlayerElt.unbind("apiready");n.PlayerElt.unbind("ended");n.Player=null;setTimeout(function(){n.PlayerElt.empty();n.PlayerElt=null},0)}}),u});define("wcvp.wcVideoPlayerDLaRepubblica",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;i.call(r,n,t);r.CreateElements();r.ProviderDetails("DLaRepubblica","//login.kataweb.it/static/privacy/videosynd/");r.ResizeVideo();require({js:t.ExternalPlayerUrl},function u(){var n={id:"playerFrameRS",extraParams:" name='playerFrameRS' mozallowfullscreen='true' webkitallowfullscreen='true'",url:"//videosynd.kataweb.it/SyndPlayer/Default.aspx?token={0}&pageurl={1}&vs={2}".format(r.Config.Video.providerId,encodeURIComponent(window.location),r.Config.IsInlinePlayer?0:1)};r.CreateIFrame(n);window?r.OnDLaRepubblicaPlayerAPIReady():setTimeout(u,50)})}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerDLaRepubblica",OnDLaRepubblicaPlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){if(t.origin.slice(t.origin.indexOf(":")+3)==="videosynd.kataweb.it"){var r=t.message?"message":"data",i=t[r];i==="video-play-start"&&(n.SetPlaybackStatus(n.Events.Opening,i),n.Report("Event3ppContentStart"));i==="video-play-end"&&(n.SetPlaybackStatus(n.Events.Ended,i),n.Report("Event3ppContentComplete"))}},!1)}}),r});define("wcvp.wcVideoPlayerFoxSportsAsia",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r){function u(n,t){var u=this;i.call(u,n,t);u.CreateElements();u.ProviderDetails("FOX Sports","//www.foxsportsasia.com/corporate/privacy-policy/");u.ResizeVideo();require({js:t.ExternalPlayerUrl},function f(){r._FSP?u.OnFoxSportsAsiaIframeAPIReady():setTimeout(f,50)})}return t.DeriveClass(u,i,{Namespace:"WcVideoPlayerFoxSportsAsia",OnFoxSportsAsiaIframeAPIReady:function(){var n=this;r._FSP.init(n.Player.id,{media_id:n.Config.Video.providerId,is_authenticated:!0,auto_play:!0});r._FSP.on("OnMediaStart",function(t){n.SetPlaybackStatus(n.Events.Opening,t);n.Report("Event3ppContentStart")});r._FSP.on("OnMediaEnd",function(t){n.SetPlaybackStatus(n.Events.Ended,t);n.Report("Event3ppContentComplete")})}}),u});define("wcvp.wcVideoPlayerFoxSportsBrazil",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"//www.foxplaybrasil.com.br/feeds/iframes/player.html?vid="+r.Config.Video.providerId};r.CreateElements();r.ProviderDetails("FOX Sports","//www.foxplaybrasil.com.br/privacy");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerFoxSportsBrazil"}),r});define("wcvp.wcVideoPlayerFoxSportsLatin",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;r.hasStartEvent=!0;i.call(r,n,t);r.CreateElements();r.ProviderDetails("FOX Sports","http://www.nbcuni.com/privacy-spanish/");r.ResizeVideo();require({js:t.ExternalPlayerUrl},function u(){window.FDM_Player&&FDM_Player?r.OnFoxSportsLatinIframeAPIReady():setTimeout(u,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerFoxSportsLatin",OnFoxSportsLatinIframeAPIReady:function(){var n=this,t=new FDM_Player(n.Player.id);t.autoplay=n.Config.AutoPlay;t.releaseURL="http://link.theplatform.com/s/fox-deportes/"+n.Config.Video.providerId+"?mbr=true";t.addEventListener("OnPlayerLoaded",function(){n.VideoContainer.children().css({width:"100%",height:"100%"})});t.addEventListener("OnMediaStart",function(t){n.SetPlaybackStatus(n.Events.Opening,t.type);n.Report("Event3ppContentStart")});t.addEventListener("OnMediaPause",function(t){n.SetPlaybackStatus(n.Events.Paused,t.type)});t.addEventListener("OnMediaEnd",function(t){n.SetPlaybackStatus(n.Events.Ended,t.type);n.Report("Event3ppContentComplete")});t.bind()}}),r});define("wcvp.wcVideoPlayerFoxSportsMexico",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"//www.foxplay.com/la/feeds/iframes/player.html?vid="+r.Config.Video.providerId};r.CreateElements();r.ProviderDetails("FOX Sports","//www.foxsportsla.com/privacidad");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerFoxSportsMexico"}),r});define("wcvp.wcVideoPlayerFranceTelevisions",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;r.hasStartEvent=!0;i.call(r,n,t);r.CreateElements();r.ProviderDetails("franceinfo","//www.francetv.fr/confidentialite");r.ResizeVideo();require({js:t.ExternalPlayerUrl},["jqp-bootstrap"],function u(n){n&&n.createPlayer?r.loadFranceTVPlayer(n):setTimeout(u,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerFranceTelevisions",loadFranceTVPlayer:function(t){var i=this,r="#"+i.Player.id;t.createPlayer(r,{buildId:"microsoft-info",autostart:i.Config.AutoPlay,width:i.VideoWrapper.width(),height:i.VideoWrapper.height()},function(t){var r=!1,u=!1;t.addEventListener("advertisement_start",function(){r=!0});t.addEventListener("advertisement_finished",function(){r=!1});t.addEventListener("play_state_changed",function(n,t){if(!r)switch(t){case"Buffering":i.SetPlaybackStatus(i.Events.Buffering,t);break;case"Playing":i.SetPlaybackStatus(i.Events.Playing,t);break;case"Paused":i.SetPlaybackStatus(i.Events.Paused,t);break;case"Closed":i.SetPlaybackStatus(i.Events.Closed,t)}});t.addEventListener("video_start",function(n){(u||(i.Report("Event3ppContentStart"),u=!0),r)||i.SetPlaybackStatus(i.Events.Opening,n.type)});t.addEventListener("video_end",function(n){r||(i.SetPlaybackStatus(i.Events.Ended,n.type),i.Report("Event3ppContentComplete"))});t.setVideo(i.Config.Video.providerId);n(window).resize(function(){t&&i.FranceTVResize(t,i.VideoWrapper)})})},FranceTVResize:function(n,t){var i=t.width(),r=t.height();n.setSize(i,r)}}),r});define("wcvp.wcVideoPlayerGazzettaTv",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"http://video.gazzetta.it/video-embed/{0}?playerType=partnership_msn&autoPlay={1}&mute={2}".format(r.Config.Video.providerId,r.Config.AutoPlay,r.Config.IsInlinePlayer?!0:!1)};r.CreateElements();r.ProviderDetails("Gazzetta Tv","http://www.gazzetta.it/privacy.shtml");r.ResizeVideo();r.CreateIFrame(u);require({js:t.ExternalPlayerUrl},function f(){window?r.OnGazzettaTvPlayerAPIReady():setTimeout(f,50)})}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerGazzettaTv",OnGazzettaTvPlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){if(t.origin=="http://video.gazzetta.it"){var r=t.message?"message":"data",i=t[r];i==="it.chili.player.event.video.started"&&(n.SetPlaybackStatus(n.Events.Opening,i),n.Report("Event3ppContentStart"));i==="it.chili.player.event.video.ended"&&(n.SetPlaybackStatus(n.Events.Ended,i),n.Report("Event3ppContentComplete"))}},!1)}}),r});define("wcvp.wcVideoPlayerGlobosat",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r){function u(n,t){var u=this;i.call(u,n,t);u.CreateElements();u.ResizeVideo();require({js:t.ExternalPlayerUrl},function f(){r.WM&&r.WM.Player?u.loadGlobosatPlayer():setTimeout(f,50)})}return u.ScriptLoading=!1,t.DeriveClass(u,i,{Namespace:"WcVideoPlayerGlobosat",loadGlobosatPlayer:function(){var n=this;new r.WM.Player({videosIDs:n.Config.Video.providerId,width:"100%",height:"100%"}).attachTo(n.Player)}}),u});define("wcvp.wcVideoPlayerICCK",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;r.hasStartEvent=!0;i.call(r,n,t);r.CreateElements();r.ProviderDetails("Ooyala","http://www.ooyala.com/privacy");r.ResizeVideo();require({js:t.ExternalPlayerUrl},function u(){window.OO&&OO.Player?r.OnICCKPlayerAPIReady():setTimeout(u,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerICCK",OnICCKPlayerAPIReady:function(){var n=this;n.contentBeginFlag=1;n.Player=OO.Player.create(n.Player.id,n.Config.Video.providerId,{onCreate:function(t){t.mb.subscribe(OO.EVENTS.PLAYING,"Playing",n.OnICCKPlayerBegin.bind(n));t.mb.subscribe(OO.EVENTS.PAUSED,"Pause",n.SetPlaybackStatus.bind(n,n.Events.Paused,OO.EVENTS.PAUSED));t.mb.subscribe(OO.EVENTS.ERROR,"Error",n.SetPlaybackStatus.bind(n,n.Events.Error,OO.EVENTS.ERROR));t.mb.subscribe(OO.EVENTS.PLAYED,"Completed",n.OnICCKPlayerComplete.bind(n))},autoplay:n.Config.AutoPlay})},OnICCKPlayerBegin:function(){var n=this;n.SetPlaybackStatus(n.Events.Playing,OO.EVENTS.PLAYING);n.contentBeginFlag&&(n.Report("Event3ppContentStart"),n.contentBeginFlag=0)},OnICCKPlayerComplete:function(){var n=this;n.SetPlaybackStatus(n.Events.Ended,OO.EVENTS.PLAYED);n.Report("Event3ppContentComplete")}}),r});define("wcvp.wcVideoPlayerLaRepubblica",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;i.call(r,n,t);r.CreateElements();r.ProviderDetails("LaRepubblica","//login.kataweb.it/static/privacy/videosynd/");r.ResizeVideo();require({js:t.ExternalPlayerUrl},function u(){var n={id:"playerFrameRS",extraParams:" name='playerFrameRS' mozallowfullscreen='true' webkitallowfullscreen='true' ",url:"//videosynd.kataweb.it/SyndPlayer/Default.aspx?token={0}&pageurl={1}&vs={2}".format(r.Config.Video.providerId,encodeURIComponent(window.location),r.Config.IsInlinePlayer?0:1)};r.CreateIFrame(n);window?r.OnLaRepubblicaPlayerAPIReady():setTimeout(u,50)})}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerLaRepubblica",OnLaRepubblicaPlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){if(t.origin.slice(t.origin.indexOf(":")+3)==="videosynd.kataweb.it"){var r=t.message?"message":"data",i=t[r];i==="video-play-start"&&(n.SetPlaybackStatus(n.Events.Opening,i),n.Report("Event3ppContentStart"));i==="video-play-end"&&(n.SetPlaybackStatus(n.Events.Ended,i),n.Report("Event3ppContentComplete"))}},!1)}}),r});define("wcvp.wcVideoPlayerMediaCorp",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(t,r){var u=this;u.hasStartEvent=!0;i.call(u,t,r);u.CreateElements();u.ProviderDetails("Brightcove","http://www.brightcove.com/en/privacy");u.ResizeVideo();u.PlayerElt.html('<object id="MediaCorp-'+u.Player.id+'" class="BrightcoveExperience"><param name="width" value="100%" /><param name="height" value="100%" /><param name="playerID" value="2344262015001" /><param name="playerKey" value="AQ~~,AAAA1oy1bvE~,ALl2ezBj3WHB4SZjVHPI3HSdWBlOCXX4" /><param name="isVid" value="true" /><param name="isUI" value="true" /><param name="dynamicStreaming" value="true" /><param name="htmlFallback" value="true" /><param name="includeAPI" value="true" /><param name="allowScriptAccess" value="always" /><param name="templateLoadHandler" value="mediaCorpTemplateLoaded" /><param name="autoStart" value="'+u.Config.AutoPlay+'" /><param name="@videoPlayer" value="'+u.Config.Video.providerId+'" /><\/object>');require({js:r.ExternalPlayerUrl},function f(){if(window.brightcove&&brightcove){var i="MediaCorp-"+u.Player.id,t;window.mediaCorpTemplateLoaded=function(){var r=brightcove.api.events.MediaEvent,f=brightcove.api.getExperience(i),e=brightcove.api.modules.APIModules,n;t=f.getModule(e.EXPERIENCE);n=f.getModule(brightcove.api.modules.APIModules.VIDEO_PLAYER);n.addEventListener(r.BEGIN,u.MediaCorpVideoBegin.bind(u));n.addEventListener(r.PLAY,u.MediaCorpVideoPlay.bind(u));n.addEventListener(r.STOP,u.MediaCorpVideoPause.bind(u));n.addEventListener(r.COMPLETE,u.MediaCorpVideoEnd.bind(u));n.addEventListener(r.ERROR,u.MediaCorpVideoError.bind(u))};n(window).resize(function(){t&&t.experience&&t.experience.type==="html"&&u.MediaCorpVideoResize(t,i)});brightcove.createExperiences()}else setTimeout(f,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerMediaCorp",MediaCorpVideoBegin:function(n){var t=this;t.SetPlaybackStatus(t.Events.Opening,n.type);t.Report("Event3ppContentStart")},MediaCorpVideoPlay:function(n){var t=this;t.SetPlaybackStatus(t.Events.Playing,n.type)},MediaCorpVideoPause:function(n){var t=this;t.SetPlaybackStatus(t.Events.Paused,n.type)},MediaCorpVideoEnd:function(n){var t=this;t.SetPlaybackStatus(t.Events.Ended,n.type);t.Report("Event3ppContentComplete")},MediaCorpVideoError:function(n){var t=this;t.SetPlaybackStatus(t.Events.Error,n.type)},MediaCorpVideoResize:function(t,i){var r=n("#"+i),u=r.width(),f=r.height();t.setSize(u,f)}}),r});define("wcvp.wcVideoPlayerMediaset",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;r.hasStartEvent=!0;i.call(r,n,t);u={url:"//www.video.mediaset.it/player/playerIFrame.shtml?id={0}&autoplay={1}&hidetitle={2}&hidedate={3}&hidesocial={4}&logoclick={5}&mute={6}".format(r.Config.Video.providerId,r.Config.AutoPlay,!0,!0,!0,!1,r.Config.IsInlinePlayer?!0:!1),extraParams:" id='playeriframe' allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true' "};r.CreateElements();r.ProviderDetails("Mediaset","//www.mediaset.it/cookie_policy_mediaset_it.shtml");r.ResizeVideo();r.CreateIFrame(u);require({js:t.ExternalPlayerUrl},function f(){window?r.OnMediasetPlayerAPIReady():setTimeout(f,50)})}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerMediaset",OnMediasetPlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){(t.origin==="http://www.video.mediaset.it"||t.origin==="https://www.video.mediaset.it")&&t.data.eventtype==="playerStatusChanged"&&(t.data.status==="play"&&(n.SetPlaybackStatus(n.Events.Opening,t.data.status),n.Report("Event3ppContentStart")),t.data.status==="end"&&(n.SetPlaybackStatus(n.Events.Ended,t.data.status),n.Report("Event3ppContentComplete")))},!1)}}),r});define("wcvp.wcVideoPlayerMTG",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={extraParams:" class='tv3play' mozallowfullscreen='true' webkitallowfullscreen='true' ",url:"{0}{1}{2}".format(r.Config.Video.providerId,"&hideLink=true&autostart=",r.Config.AutoPlay)};r.CreateElements();r.Config.ReportingConfig.Market.toLowerCase()=="nb-no"?r.ProviderDetails("MTG","http://www.tv3play.no/retningslinjer-for-personvern"):r.Config.ReportingConfig.Market.toLowerCase()=="sv-se"?r.ProviderDetails("MTG","http://www.tv3play.se/integritetspolicy"):r.Config.ReportingConfig.Market.toLowerCase()=="da-dk"&&r.ProviderDetails("MTG","http://www.tv3play.dk/privatlivspolitik");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerMTG"}),r});define("wcvp.wcVideoPlayerMTGViaGame",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={extraParams:" class='tv3play' mozallowfullscreen='true' webkitallowfullscreen='true' ",url:"{0}{1}".format("http://www.viagame.com/embed/video/",r.Config.Video.providerId)};r.CreateElements();r.ProviderDetails("ViaGame","http://www.viagame.com/static/cookies");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerMTGViaGame"}),r});define("wcvp.wcVideoPlayerMTGViaSport",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);switch(r.Config.ReportingConfig.Market.toLowerCase()){case"sv-se":u={extraParams:" class='tv3play' mozallowfullscreen='true' webkitallowfullscreen='true' ",url:"http://www.viasatsport.se/embed/{0}".format(r.Config.Video.providerId)};r.ProviderDetails("MTG","http://www.viasatsport.se/anvandarvillkor/");break;case"fi-fi":u={extraParams:" class='tv3play' mozallowfullscreen='true' webkitallowfullscreen='true' ",url:"http://www.viasathockey.fi/embed/{0}".format(r.Config.Video.providerId)};r.ProviderDetails("MTG","http://www.viasathockey.fi/sivu/kayttoehdot/");break;case"nb-no":u={extraParams:" class='tv3play' mozallowfullscreen='true' webkitallowfullscreen='true' ",url:"http://www.viasport.no/embed/{0}".format(r.Config.Video.providerId)};r.ProviderDetails("MTG","http://www.viasport.no/side/anvandarvillkor/ ")}r.CreateElements();r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerMTGViaSport"}),r});define("wcvp.wcVideoPlayerMTVKatsomo",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","wcvp.environment"],function(n,t,i,r){function u(t,u){var f=this;if(f.hasStartEvent=!0,i.call(f,t,u),f.CreateElements(),f.ProviderDetails("MTV","http://www.mtv.fi/yritys/tietosuoja"),f.ResizeVideo(),r.IE)n(".wcvideoplayer").on("DOMNodeInserted",function(t){var i=n(t.target);i.hasClass("silverlightObject")&&i.height(f.VideoWrapper.height())});require({js:u.ExternalPlayerUrl},function e(){window.SumoPlayer?f.OnMTVKatsomoPlayerAPIReady():setTimeout(e,50)})}return t.DeriveClass(u,i,{Namespace:"WcVideoPlayerMTVKatsomo",OnMTVKatsomoPlayerAPIReady:function(){var n=this,t=n.Config.Video.providerId,i=n.Player.id;window.SumoPlayer.insert(t,i,{embedded:!0,windowLess:!0,layout:"Embedded_CompletePlayerStyle2011",context:"verkosto",height:n.CurrentPlayerHeight,embedType:"still"},{startCallback:function(){n.SetPlaybackStatus(n.Events.Opening);n.Report("Event3ppContentStart")},endCallback:function(){n.SetPlaybackStatus(n.Events.Ended);n.Report("Event3ppContentComplete")}})}}),u});define("wcvp.wcVideoPlayerMuzu",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;r.hasStartEvent=!0;i.call(r,n,t);u={url:"{0}{1}{2}{3}{4}".format("http://player.muzu.tv/player/getPlayer/j/",r.Config.Video.providerId,"/?la=n&autostart=",r.Config.AutoPlay,"&jse=y")};r.CreateElements();r.ProviderDetails("Muzu","http://www.muzu.tv/site/privacyPolicy/");r.ResizeVideo();r.CreateIFrame(u);window.muzuPlayerReady=function(n){var t=window.muzutv.player.find(n);t&&(t.addEventListener("videoStarted",function(){r.SetPlaybackStatus(r.Events.Opening,"videoStarted");r.Report("Event3ppContentStart")}),t.addEventListener("videoComplete",function(){r.SetPlaybackStatus(r.Events.Ended,"videoCompleted");r.Report("Event3ppContentComplete")}),t.addEventListener("videoPaused",function(){r.SetPlaybackStatus(r.Events.Paused,"videoPaused")}),t.addEventListener("videoResumed",function(){r.SetPlaybackStatus(r.Events.Playing,"videoPlaying")}))};require({js:t.ExternalPlayerUrl},function(){})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerMuzu"}),r});define("wcvp.wcVideoPlayerNDN",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;i.call(r,n,t);r.CreateElements();r.ResizeVideo();r.PlayerElt.attr({"class":"ndn_embed","data-config-widget-id":"2","data-config-type":"VideoPlayer/Single","data-config-tracking-group":"91268","data-config-video-id":r.Config.Video.providerId,"data-config-site-section":"microsoft",style:"height:100%; width:100%;"});require({js:t.ExternalPlayerUrl},function(){});window._ndnq=[];_ndnq.push(["hook",r.Player.id+"/videoPause",function(){r.SetPlaybackStatus(r.Events.Paused,"paused")}]);_ndnq.push(["hook",r.Player.id+"/videoLoad",function(){r.SetPlaybackStatus(r.Events.Playing,"playing")}]);_ndnq.push(["hook",r.Player.id+"/videoEnd",function(){r.SetPlaybackStatus(r.Events.Ended,"ended")}])}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerNDN"}),r});define("wcvp.wcVideoPlayerNDTV",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;i.call(r,n,t);r.CurrentPlayerHeight=0;r.CurrentPlayerWidth=0;r.CreateElements();r.ProviderDetails("NDTV","http://www.ndtv.com/convergence/ndtv/new/termsofusage.aspx");r.ResizeVideo();r.CurrentPlayerHeight=r.VideoWrapper.height();r.CurrentPlayerWidth=r.VideoWrapper.width();r.withReload=/[?&]reload=true/i.test(window.location.search);r.LoadPlayerIframe()}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerNDTV",LoadPlayerIframe:function(){var n=this,r=n.Config.AutoPlay?"1":"0",t=n.VideoWrapper.height(),i=n.VideoWrapper.width(),u={height:t,width:i,url:"http://www.ndtv.com/video/embed-player/partner/bingapps?category=embed&site=classic&id="+n.Config.Video.providerId+"&autostart="+r+"&pWidth="+i+"&pHeight="+t,id:"ndtv-ifrm-"+n.Player.id};n.CreateIFrame(u)},OnResize:function(){var n=this;n.ResizeVideo();n.withReload&&(n.CurrentPlayerHeight!=n.VideoWrapper.height()||n.CurrentPlayerWidth!=n.VideoWrapper.width())&&(n.LoadPlayerIframe(),n.CurrentPlayerHeight=n.VideoWrapper.height(),n.CurrentPlayerWidth=n.VideoWrapper.width())}}),r});define("wcvp.wcVideoPlayerNFL",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"http://nfl.cpl.delvenetworks.com/player/carousel/msn.html?autoplay={0}&mediaId={1}".format(r.Config.AutoPlay,r.Config.Video.providerId)};r.CreateElements();r.ProviderDetails("NFL","http://www.nfl.com/help/privacy");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"wcVideoPlayerNFL"}),r});define("wcvp.wcVideoPlayerPerform",["jquery","wcvp.classFramework","wcvp.playerUtils","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r,u){function o(n,t){var s=this,o=i.GetVideoTag(t.Video,"feedUrl"),v,c,l,h,y,p,b,a,k;if(r.call(s,n,t),s.CreateElements(),s.ProviderDetails("Perform","http://www.performgroup.com/privacy-policy/"),s.ResizeVideo(),o!==null){v=o.match(/epvod/)?"epvod":"eplayer";switch(v){case"epvod":if(c=n.data("metadata"),c&&c.tags)for(l=c.tags,h=0;h<l.length;h++)if(l[h].ns==="ExternalPlayerId"){e=l[h].value;break}f=o.substring(o.indexOf("epvod"),o.length).split("/");y=f[1].split("?")[0];p={url:"//player.performgroup.com/eplayer.js#{0}.{1}$videoid={2}".format(e,y,s.Config.Video.providerId)},function w(){u?s.loadPerformepvodPlayer(p.url):setTimeout(w,50)}();break;case"eplayer":b=t.ExternalPlayerUrl;a=[];f=o.substring(o.indexOf("mrss"),o.length).split("/");e=f.length>1?f[1]:"";k=(f.length>3?f[2]:f[2].split("?"))[0];a=b.split(";");require({js:[a[0],a[1]]},function w(){u.addResponsivePlayer?s.loadPerformPlayer(k):setTimeout(w,50)})}}}var e,f;return t.DeriveClass(o,r,{Namespace:"WcVideoPlayerPerform",loadPerformPlayer:function(n){var t=this,i;t.Config.Video.providerId&&(i=t.Config.Video.providerId.substring(t.Config.Video.providerId.indexOf("_")+1,t.Config.Video.providerId.length));u.addResponsivePlayer(e,n,i,t.Player.id,"eplayer47");u.onEplayerVideoStarted=function(n){t.SetPlaybackStatus(t.Events.Opening,n);t.Report("Event3ppContentStart")};u.onEplayerVideoEnded=function(n){t.SetPlaybackStatus(t.Events.Ended,n);t.Report("Event3ppContentComplete")}},loadPerformepvodPlayer:function(t){var r=this,i={api:null,widget:n(".row"),playerId:e,player:null,onApiPlayerReady:function(n){i.onVideoEvent(n);n.detail===i.playerId&&(i.player=i.api.subscribe(i.playerId))},onVideoEvent:function(n){n.type==="video_start"?(r.SetPlaybackStatus(r.Events.Opening),r.Report("Event3ppContentStart")):n.type==="video_end"&&(r.SetPlaybackStatus(r.Events.Ended),r.Report("Event3ppContentComplete"))}};n(document).ready(function(){var r=document.createElement("script");n(".player")[0].appendChild(r);r.src=t;r.onload=function(){i.api=u.epAPI;i.api.addEventListener(i.api.events.PLAYER_READY,i.onApiPlayerReady);i.api.addEventListener(i.api.events.VIDEO_START,i.onVideoEvent);i.api.addEventListener(i.api.events.VIDEO_END,i.onVideoEvent)}})}}),o});define("wcvp.wcVideoPlayerRADR",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;i.call(r,n,t);r.CreateElements();r.ResizeVideo();r.PlayerElt.html('<div class="radr-player-'+r.Config.Video.providerId+'"><\/div>');require({js:t.ExternalPlayerUrl+r.Config.Video.providerId},function(){})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerRADR"}),r});define("wcvp.wcVideoPlayerRAI",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:("//rai.tv/dl/RaiTV/programmi/media/"+r.Config.Video.providerId+".html?iframe&nofeatures&muted={0}").format(r.Config.IsInlinePlayer?1:0),extraParams:" allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true' "};r.CreateElements();r.ProviderDetails("RAI","//rai.it/dl/rai/text/ContentItem-5a0d5bc3-9f0e-4f6b-8b65-13dd14385123.html");r.ResizeVideo();r.CreateIFrame(u);require({js:t.ExternalPlayerUrl},function f(){window?r.OnRAIPlayerAPIReady():setTimeout(f,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerRAI",OnRAIPlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){t.origin.slice(t.origin.indexOf(":")+3)==="rai.tv"&&t.data.referrer==="microsoft"&&t.data.videoType==="content"&&(t.data.event==="start"&&(n.SetPlaybackStatus(n.Events.Opening,t.data),n.Report("Event3ppContentStart")),t.data.event==="end"&&(n.SetPlaybackStatus(n.Events.Ended,t.data),n.Report("Event3ppContentComplete")))},!1)}}),r});define("wcvp.wcVideoPlayerRCN",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this;r.hasStartEvent=!0;i.call(r,n,t);r.CreateElements();r.ProviderDetails("RCN","http://www.noticiasrcn.com/legal");r.ResizeVideo();require({js:t.ExternalPlayerUrl},function u(){window.OO&&OO.Player?r.OnRCNPlayerAPIReady():setTimeout(u,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerRCN",OnRCNPlayerAPIReady:function(){var n=this;n.contentBeginFlag=1;n.Player=OO.Player.create(n.Player.id,n.Config.Video.providerId,{onCreate:function(t){t.mb.subscribe(OO.EVENTS.PLAYING,"Playing",n.OnRCNPlayerBegin.bind(n));t.mb.subscribe(OO.EVENTS.PAUSED,"Pause",n.SetPlaybackStatus.bind(n,n.Events.Paused,OO.EVENTS.PAUSED));t.mb.subscribe(OO.EVENTS.ERROR,"Error",n.SetPlaybackStatus.bind(n,n.Events.Error,OO.EVENTS.ERROR));t.mb.subscribe(OO.EVENTS.PLAYED,"Completed",n.OnRCNPlayerComplete.bind(n))},autoplay:n.Config.AutoPlay})},OnRCNPlayerBegin:function(){var n=this;n.SetPlaybackStatus(n.Events.Opening,OO.EVENTS.PLAYING);n.contentBeginFlag&&(n.Report("Event3ppContentStart"),n.contentBeginFlag=0)},OnRCNPlayerComplete:function(){var n=this;n.SetPlaybackStatus(n.Events.Ended,OO.EVENTS.PLAYED);n.Report("Event3ppContentComplete")}}),r});define("wcvp.wcVideoPlayerRutube",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"//rutube.ru/play/embed/"+r.Config.Video.providerId+"?autoStart="+r.Config.AutoPlay};r.CreateElements();r.ProviderDetails("Rutube","//rutube.ru/info/agreement/");r.ResizeVideo();r.CreateIFrame(u);require({js:t.ExternalPlayerUrl},function f(){window?r.OnRutubePlayerAPIReady():setTimeout(f,50)})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerRutube",OnRutubePlayerAPIReady:function(){var n=this;window.addEventListener("message",function(t){if(t.origin=="//rutube.ru"){var r=JSON.parse(t.data),i=r.type;i==="player:playComplete"&&(n.SetPlaybackStatus(n.Events.Ended,i),n.Report("Event3ppContentComplete"))}},!1)}}),r});define("wcvp.wcVideoPlayerTelemundo",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"{0}{1}{2}{3}".format("//player.theplatform.com/p/0L7ZPC/telemundo_msn/embed/select/media/guid/2405937908/",r.Config.Video.providerId,"?form=html&autoPlay=",r.Config.AutoPlay)};r.CreateElements();r.ProviderDetails("Telemundo","//www.nbcuni.com/privacy-spanish/");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerTelemundo"}),r});define("wcvp.wcVideoPlayerTelemundoDeportes",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"{0}{1}{2}{3}{4}{5}".format("//vplayer.nbcsports.com/p/BxmELC/deportestm_msn/select/",r.Config.Video.providerId,"?autoPlay=",r.Config.AutoPlay,"&parentUrl=",encodeURIComponent("//deportestelemundo.com/video"))};r.CreateElements();r.ProviderDetails("Telemundo Deportes","//www.nbcuni.com/privacy-spanish/");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerTelemundoDeportes"}),r});define("wcvp.wcVideoPlayerTV4",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"{0}{1}{2}{3}".format("http://www.tv4play.se/iframe/video/",r.Config.Video.providerId,"?autoload=",r.Config.AutoPlay)};r.CreateElements();r.ResizeVideo();r.ProviderDetails("TV4","http://www.tv4.se/tv4/artiklar/integritetspolicy-tv4-ab-54339befc45948a638000008");r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerTV4"}),r});define("wcvp.wcVideoPlayerTVN",["jquery","wcvp.classFramework","wcvp.playerUtils","wcvp.wcVideoPlayer3PPBaseClass","wcvp.environment"],function(n,t,i,r){function u(t,u){var o=this;o.hasStartEvent=!0;r.call(o,t,u);o.CreateElements();e("TVN ","http://www.tvn24.pl/polityka-prywatnosci,497369,s.html",t);o.ResizeVideo();var h=i.GetVideoTag(u.Video,"embedhash"),s="TVN-"+o.Player.id,c={id:s,extraParams:" name='{0}' mozallowfullscreen='true' webkitallowfullscreen='true'".format(s),url:"http://msn.tvn24.pl/?id={0}&embed_hash={1}&page={2}&shareurl={3}&sharetitle={4}&category={5}".format(u.Video.providerId,h,f(),encodeURI(window.location.href),encodeURIComponent(u.Video.title),u.ReportingConfig.Category)};o.CreateIFrame(c);require({js:u.ExternalPlayerUrl},function l(){if(window.brightcove&&brightcove){var i="TVN-"+o.Player.id,t;window.tvnTemplateLoaded=function(){var r=brightcove.api.events.MediaEvent,u=brightcove.api.getExperience(i),f=brightcove.api.modules.APIModules,n;t=u.getModule(f.EXPERIENCE);n=u.getModule(brightcove.api.modules.APIModules.VIDEO_PLAYER);n.addEventListener(r.BEGIN,o.TVNVideoBegin.bind(o));n.addEventListener(r.PLAY,o.TVNVideoPlay.bind(o));n.addEventListener(r.STOP,o.TVNVideoPause.bind(o));n.addEventListener(r.COMPLETE,o.TVNVideoEnd.bind(o));n.addEventListener(r.ERROR,o.TVNVideoError.bind(o))};n(window).resize(function(){t&&t.experience&&t.experience.type==="html"&&o.TVNVideoResize(t,i)});brightcove.createExperiences()}else setTimeout(l,50)})}function f(){var t=window.location.pathname,i=window.location.search,n=t+i;return n=decodeURIComponent(n),n=n.replace(/[^a-zA-Z0-9]/g,"_"),n=n.replace(/\_([\_]+)/g,"_"),n=n.toLowerCase(),n=n.replace(/^\_/g,""),n.replace(/\_$/g,"")}function e(t,i,r){var u,f;if(t)u=n("<div/>",{"class":"providerDetails"}).text("Odtwarzacz obsługiwany jest przez: "+t),i&&(f=n("<a/>",{href:i,target:"_blank"}).text("Polityka prywatności"),u.append(f),n(f).before(" (").after(")")),r.append(u);else return}return t.DeriveClass(u,r,{Namespace:"WcVideoPlayerTVN",TVNVideoBegin:function(n){var t=this;t.SetPlaybackStatus(t.Events.Opening,n.type);t.Report("Event3ppContentStart")},TVNVideoPlay:function(n){var t=this;t.SetPlaybackStatus(t.Events.Playing,n.type)},TVNVideoPause:function(n){var t=this;t.SetPlaybackStatus(t.Events.Paused,n.type)},TVNVideoEnd:function(n){var t=this;t.SetPlaybackStatus(t.Events.Ended,n.type);t.Report("Event3ppContentComplete")},TVNVideoError:function(n){var t=this;t.SetPlaybackStatus(t.Events.Error,n.type)},TVNVideoResize:function(t,i){var r=n("#"+i),u=r.width(),f=r.height();t.setSize(u,f)}}),u});define("wcvp.wcVideoPlayerVideoStrip",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(t,r){var u=this,f;i.call(u,t,r);u.CreateElements();u.ProviderDetails("RTL","http://videostrip.com/nl/privacy-beleid");u.ResizeVideo();f=u.Config.AutoPlay?"AUTOSTART":"CLICKTOSTART";n(u.Player).append(n("<div/>",{id:"player_"+u.Player.id}));require({js:r.ExternalPlayerUrl+"?play_key=23940219&cnti_key="+u.Config.Video.providerId+"&sticker=player_"+u.Player.id+"&ord="+Math.floor(Math.random()*2147483647)+"&playerheight=100%&playerwidth=100%&startmode="+f},function(){})}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerVideoStrip"}),r});define("wcvp.wcVideoPlayerViki",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass"],function(n,t,i){function r(n,t){var r=this,u;i.call(r,n,t);u={url:"http://www.viki.com/player/"+r.Config.Video.providerId+"?autostart="+r.Config.AutoPlay};r.CreateElements();r.ProviderDetails("Viki","http://www.viki.com/privacy");r.ResizeVideo();r.CreateIFrame(u)}return t.DeriveClass(r,i,{Namespace:"WcVideoPlayerViki"}),r});define("wcvp.wcVideoPlayerYouPlay",["jquery","wcvp.classFramework","wcvp.playerUtils","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r,u){function e(n,t){var e=this,o;e.hasStartEvent=!0;r.call(e,n,t);o=i.GetVideoTag(t.Video,"videoSource");e.CreateElements();e.ProviderDetails("YouPlay","http://admin.youplay.se/privacy");e.ResizeVideo();e.PlayerElt.html("<div>"+o+"<\/div>");require({js:t.ExternalPlayerUrl},function s(){f=document.getElementsByClassName("yp-single-iframe")[0];u&&f&&(f.contentWindow||f.contentDocument)&&(f.contentWindow.document||f.contentDocument.document)&&f.contentWindow.player?e.OnYouPlayPlayerAPIReady():setTimeout(s,50)})}var f;return t.DeriveClass(e,r,{Namespace:"WcVideoPlayerYouPlay",OnYouPlayPlayerAPIReady:function(){var n=this;if(f&&f.contentWindow!==null){f.contentWindow.player.startPlayback();f.contentWindow.player.api.onPlay(function(){n.SetPlaybackStatus(n.Events.Opening,"http://content.youPlay.com");n.Report("Event3ppContentStart")});f.contentWindow.player.api.onComplete(function(){n.SetPlaybackStatus(n.Events.Ended,"http://content.youPlay.com");n.Report("Event3ppContentComplete")})}}}),e});define("wcvp.wcVideoPlayerYouTube",["jquery","wcvp.classFramework","wcvp.wcVideoPlayer3PPBaseClass","window"],function(n,t,i,r){function u(n,t){var u=this;u.hasStartEvent=!0;i.call(u,n,t);u.CreateElements();u.ProviderDetails("YouTube","https://www.youtube.com/static?&template=privacy_guidelines");u.ResizeVideo();u.Container.addClass("youtube_player");u.OldOnYouTubeIframeAPIReady=r.onYouTubeIframeAPIReady;r.onYouTubeIframeAPIReady=u.OnYouTubeIframeAPIReady.bind(u);require({js:t.ExternalPlayerUrl},function f(){r.YT&&r.YT.Player?u.OnYouTubeIframeAPIReady():setTimeout(f,50)})}return t.DeriveClass(u,i,{Namespace:"WcVideoPlayerYouTube",OnYouTubeIframeAPIReady:function(){var n=this,t;n.contentBeginFlag=1;t={autoplay:n.Config.AutoPlay?"1":"0",showinfo:n.Config.ShowTitle?"1":"0",wmode:n.Config.UseWindowedMode?"window":"opaque",modestbranding:1,enablejsapi:1,fs:1,rel:0,origin:encodeURIComponent(document.location.hostname)};n.Player=new r.YT.Player(n.PlayerElt.attr("id"),{height:"100%",width:"100%",videoId:n.Config.Video.providerId,events:{onStateChange:n.OnPlayerStatusChanged.bind(n)},playerVars:t});r.onYouTubeIframeAPIReady=n.OldOnYouTubeIframeAPIReady;n.OldOnYouTubeIframeAPIReady&&(n.OldOnYouTubeIframeAPIReady(),n.OldOnYouTubeIframeAPIReady=null)},OnPlayerStatusChanged:function(n){var t=this;if(t.Player){switch(n.data){case r.YT.PlayerState.PLAYING:t.OnYouTubeVideoBegin();break;case r.YT.PlayerState.ENDED:t.OnYouTubeVideoComplete();break;case r.YT.PlayerState.PAUSED:t.SetPlaybackStatus(t.Events.Paused,r.YT.PlayerState.PAUSED);break;case r.YT.PlayerState.BUFFERING:t.SetPlaybackStatus(t.Events.Buffering,r.YT.PlayerState.BUFFERING)}t.Log("state="+n.data)}},OnYouTubeVideoBegin:function(){var n=this;n.SetPlaybackStatus(n.Events.Playing,r.YT.PlayerState.PLAYING);n.contentBeginFlag&&(n.Report("Event3ppContentStart"),n.contentBeginFlag=0)},OnYouTubeVideoComplete:function(){var n=this;n.SetPlaybackStatus(n.Events.Ended,r.YT.PlayerState.ENDED);n.Report("Event3ppContentComplete")}}),u});define("wcVideoPlayer",["jquery","jqBehavior","mediator","wcvp.videoPlayerTokens","wcvp.playerConfig","wcvp.Logger","wcvp.environment","html5PlayerLoaded","flashPlayerLoaded"],function(n,t,i,r,u){function y(t){t.on("playbackStatusChanged",function(n,u){var f=t.attr("id");switch(u.status.toLowerCase()){case"loading":case"videoopening":e[f]||(e[f]=!0,i.pub(r.Events.Video,{type:r.EventTypes.Started,args:t}));break;case"playbackcompleted":e[f]=!1;i.pub(r.Events.Video,{type:r.EventTypes.Completed,args:t});break;case"playbackerrored":e[f]=!1;i.pub(r.Events.Video,{type:"errored",args:t})}}).on("onFullscreenExit",function(){i.pub(f,!1);n("body").removeClass(f)}).on("onFullscreenEnter",function(){i.pub(f,!0);n("body").addClass(f)}).on("ContentError",function(n,i){var r=t.playerErr;r&&(r(i.ErrorMessage),t.playerErr=null)})}function s(t,i){t.removeClass(c);i&&i.Dispose&&i.Dispose();n(".hybrid, .flash, .external",t).hide();n(".external",t).empty()}function l(n,t){var i=[],r=t.Video,f=r&&r.playerName,u;return f&&f.length?r&&r.providerId&&r.providerId.length&&i.push(f):r&&r.isLivestream?i.push("Flash"):r?(u=n.data("playertype")||"Hybrid",i.push(u),(u==="Flash"||u==="Hybrid")&&(u==="Hybrid"&&i.pop(),i.push("Html5")),u==="Hybrid"&&i.push("Flash"),u==="Error"&&(t.Video={},t.CurrentError=t.ErrorMessage)):(t.Video={},t.CurrentError=t.ErrorMessage),i.push("Error"),i}function o(n,t,i,r){var u,f;if(t&&t.Video)while(i.length>0)if(u=i.shift(),f="wcvp.wcVideoPlayer"+u,define.is(f)){require([f],function(f){if(!f.HasSupport||f.HasSupport(t.Video)){t.ExternalPlayerUrl=t.Video.playerUrl;var e=t.PlayerList[u];e?(t.CurrentPlayer!==e&&(s(n,t.CurrentPlayer,u),t.CurrentPlayer=e),e.ReloadVideo&&e.ReloadVideo(t,r)):(s(n,t.CurrentPlayer,u),e=new f(n,t,r),e.value=u,n.addClass(c),t.CurrentPlayer=e,e.ReloadVideo&&(t.PlayerList[u]=e),r&&r.callback&&r.callback(),n.playerErr=function(r){t.CurrentError=r;i&&i.length&&i[0]==="Flash"&&i.shift();o(n,t,i)})}else s(n),o(n,t,i)});break}}function h(t,i,r){if(i.Video){i.IsInlinePlayer||require(["track","trackInfo"],function(t,u){var f=r.trackingData,e;if(f&&f.sitePage)u.sitePage=n.extend(!0,{},u.sitePage,f.sitePage),u.sitePage.requestId&&(i.ReportingConfig.ImpressionGuid=u.sitePage.requestId);else{if(!i.Video.activityId||!i.Video.activityId.length)return;e=i.Video.activityId.replace(/-/g,"");u.sitePage.requestId=i.ReportingConfig.ImpressionGuid=e}t.trackEvent({type:"unload",noSpin:1},window);t.trackPage();t.trackThirdPartyUpdate()});var u=l(t,i);o(t,i,u,r)}}function a(t,i,r){if(t.length===1&&r){i=i||u(t);var f=r.videoUrl,e=r.videoId;if(f&&f.length)return i.AutoPlay=!0,r.skipMetadataCall?h(t,i,r):(f=f+(f.indexOf("?")>0?"&":"?")+"metadataonly=true",n.getJSON(f,function(n){n&&n.title&&(i.Video=n,h(t,i,r))})),!0;if(e&&e.length)return i.AutoPlay=!0,i.ReloadVideo(e),h(t,i,r),!0}return!1}function p(n,t){var f,e,i,r,s;n&&n.length&&(f=n.data("m"),e=f&&f.n==="inline-player",!e||n.is(":visible"))&&(i=new u(n),i.Initialized||(i.Initialized=1,y(n)),t&&t.config&&t.config.Video&&(r=t.config,r.Container=n,r.CurrentPlayer=i.CurrentPlayer,r.PlayerList=i.PlayerList,r.Initialized=i.Initialized,r.PlayerTechnologyUsed=i.PlayerTechnologyUsed,r.PlayerInstanceId=i.PlayerInstanceId,r.PlayerId=i.PlayerId,i=r,n.data("playerConfig",i)),a(n,i,t)||(s=l(n,i),o(n,i,s,t)))}var f="fullscreen",e=[],c="playerloaded",v=t(p,{},{data:1});return v.loadVideo=function(t,i,r){var u={videoId:t,preserveSeek:i,endLimitToIgnorePreserveSeek:r};a(n(".wcvideoplayer:first"),null,u)},v});deferredCanary="c.deferred";require(["window","document",deferredCanary],function(n,t){function r(){var r,o,u,s,h,f,e;u=function(n){return require({js:n}),!0};r="https:"===t.location.protocol?"https://b-ssl.grvcdn.com/moth-min.js":"http://b.grvcdn.com/moth-min.js";s=(o=!0===i.useGravityUserGuid?1:0)?"":i.user_guid||(null!=(e=/grvinsights=([^;]+)/.exec(t.cookie))?e[1]:void 0)||"";f=(h="","");r&&u(r);f&&(n.gravityInsightsParams.sidebar&&(n.gravityInsightsParams.wlStartTime=(new Date).getTime()),u(f))}var i={type:"content",action:"",site_guid:"14f1a20a34a9356b91dd8b860925478c"};n.gravityInsightsParams=i;setTimeout(r,500)});require(["binding","c.deferred"],function(n){n("pagingSection",".pagingsection:not(.customsection):not(.mobilesection)").view(n.views.SIZE1COLUMN,{columnGap:0});n("pagingSection",".pagingsection:not(.customsection)").view(n.views.SIZE234COLUMN);n("truncate",".pagingsection h4,.pagingsection p").all();n("truncate",".pagingsection .list h4").all()});define("keyCode",function(){return{Back:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Break:19,CapsLock:20,Esc:27,Space:32,Page:{Up:33,Down:34},End:35,Home:36,Arrow:{Left:37,Up:38,Right:39,Down:40},Print:44,Insert:45,Delete:46,Colon2:59,Equals2:61,Equals3:107,Minus2:109,Period:190,Windows:{Left:91,Right:92,Opera:219},Menu:93,NumPad:{0:96,1:97,2:98,3:99,4:100,5:101,6:102,7:103,8:104,9:105,Multiply:106,Plus:107,Minus:109,Dot:110,Divide:111},Function:{1:112,2:113,3:114,4:115,5:116,6:117,7:118,8:119,9:120,10:121,11:122,12:123},Lock:{Caps:20,Num:144,Scroll:145},Colon:186,Equals:187,Comma:188,Minus:189,Slash:{Forward:191,Back:220},Tilde:192,Bracket:{Open:219,Close:221},Quote:222}});define("tabSection.Dropdown",["jquery","jqBehavior","document","mediator"],function(n,t,i,r){function f(t){function f(n){if(n.stopPropagation(),t.hasClass("showdropdown"))t.removeClass("showdropdown"),u.off("click",f);else{t.addClass("showdropdown");u.on("click",f);e.text(s)}}function o(t){t&&t.length&&n.contains(i[0],t[0])&&e.text(t.text())}var i=t.children("ul").first(),e=i.children("li").first(),s=e.text();return{setup:function(){i.on("click",f);r.sub("tabClicked",o)},teardown:function(){i.off("click",f);r.unsub("tabClicked",o)}}}var u=n(i);return t(f)});define("tabSection.Responsive",["jquery","jqBehavior","tabSection.Dropdown"],function(n,t,i){function r(t){function o(n){r.hasClass("dropdowntab")||(f=n,r.prepend(e).addClass("dropdowntab"),u||(u=i(t)),u.setup())}function s(){f=0;r.hasClass("dropdowntab")&&(r.removeClass("dropdowntab"),e.remove(),u&&u.teardown())}function h(){var n=r[0].scrollWidth;n>t.width()&&o(n)}function c(){var n=f||r[0].scrollWidth;n>t.width()?o(n):s()}function l(){s()}var r=t.children("ul"),e=n("<li>").text(r.data("tablistname")),u,f;return{setup:h,update:c,teardown:l}}return t(r)});define("tabSection",["jquery","jqBehavior","requestAnimationFrame","imgSrc","pagingSection","mediator","keyCode"],function(n,t,i,r,u,f,e){function o(t,o){function y(t){var u=n(t.target);if(!u.hasClass("selected")&&u.data("tabid")){if(!(t.type=="click"||t.type=="keydown"&&(t.keyCode==e.Enter||t.keyCode==e.Space)))return;i(function(){s.add(c).removeClass("selected");s=l.children("div[data-tabkey='"+u.data("tabid")+"']");s.add(u).addClass("selected");c=u;r.loadInViewport?r.loadInViewport(s[0]):s.find("img").each(function(){r.go(this)});u.data("truncated")||(f.pub("truncate"),u.data("truncated",!0));h.teardown();h.setup("div.selected");f.pub("tabChanged");f.pub("tabClicked",c)})}else f.pub("tabClicked",c)}var l=t.find(".full-width"),a=l.children("ul").first(),v=a.children("li"),c=a.children("li.selected"),s=l.children("div.selected"),h;return h=t.hasClass("horizontal")&&s.length&&o.pagingSupported?u(t,null,{contentSelector:"div.selected"}):{setup:n.noop,teardown:n.noop,update:n.noop},{setup:function(){v.on("click keydown",y);h.setup()},teardown:function(){v.off("click keydown",y);h.teardown()},update:function(){h.update()}}}return t(o,{pagingSupported:!0})});define("pagingSection",["jquery","jqBehavior","modernizr","pagingAnimator","device","pointerEvents","touchGestures","touchDataManager","requestAnimationFrame","format","imgSrc","paging.tokens","dir.tokens","viewAware","mediator","window","perfMarker","navigator","document","c.deferred"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){function lt(t,i){function nr(){et=n("<button class='leftarrow'><\/button>");ot=n("<button class='rightarrow'><\/button>");at.prepend(et).append(ot)}function tr(n){i.contentSelector=n||i.contentSelector;f=at.find(i.contentSelector);lt=r(f);g&&lt.setup();rr();i.rememberLastKnownIndex&&(ti=at.data("pagesection-name"))}function ir(){v>1&&ur();g&&lt.teardown();y.unsub(ut,er)}function cr(){c.loadInViewport&&s(function(){f.attr(c.dataOffsetAttr,Math.round(-u*w*d)+";0");c.loadInViewport(at[0])})}function lr(){vt.removeClass(di)}function ar(){vt.addClass(di)}function rr(){s(vr)}function vr(){var e,o,r,s,h,t,c;for(lr(),e=yi,o=f.length,r=0;r<o;r++)if(vt.children().length&&(vt.empty(),et.removeClass(pt),ot.removeClass(pt),gt(f,0)),b=bi=yt=ki=nt=v=u=0,i.rememberLastKnownIndex&&ti&&(u=n("head").data(gi+ti)||u),bt=kt=wt=!1,wi=vt.offset().left,s=e[0].clientWidth||e.outerWidth(!1),w=s+i.columnGap+i.scrollOffset,w){if(v=Math.ceil(f[r].scrollWidth/w),y.sub(ut,er),v>1){for(g&&lt.initialize(v,w,i.columnGap,u),wr(),ui||yr(),ct=[],h=w/2,t=0;t<v;t++)ct[t]=w*t+h-1;ri=f[0].scrollWidth;si(0);g||u==0||(c=sr(-1,u)*d,gt(f,c));or()}else ui&&ur();v<=1&&ar()}}function yr(){pr(f);et.on("click",hi);ot.on("click",hi);y.sub(ft,fr);ui=!0}function ur(){at.off("gesture");et.off("click",hi);ot.off("click",hi);y.unsub(ft,fr);ui=!1}function fr(n){f[0]===n.elem&&(g&&(u+=n.direction*-1,si()),ai())}function er(n){f[0]===n&&(ir(),tr())}function pr(n){if(e.settings.touchSupported&&!g&&n.data("gesture")!==!0){n.on("gesture",{direction:"horizontal"},kr);n.data("gesture",!0)}}function or(){v>1&&(kt?ot.addClass(pt):ot.removeClass(pt),bt?et.addClass(pt):et.removeClass(pt),i.extendedArrows&&(kt||bt)&&et.add(ot).text(h(l.pagingArrowText,u+1,v)))}function oi(t){ni||s(function(){ni=!0;var r=sr(t)*d;u+=t*-1;i.rememberLastKnownIndex&&ti&&n("head").data(gi+ti,u);g?(lt.incrementViewPort(t,tt,rt),si()):(lt.animationStarting(f),gt(f,r,tt,rt));p.setTimeout(ai,i.autoHideArrowMS)})}function ai(){s(function(){g||lt.animationCompleted(f);wt=ni=!1;br();or();cr();y.pub(ht,ei)})}function si(n){g?(bt=lt.allowScrollLeft(),kt=lt.allowScrollRight()):(bi=b,ki=yt,b=n*d,yt=ri+b,yt<0&&(yt=0),bt=b<0,kt=yt>w)}function wr(){for(var t,n=0;n<v;n++)t=k.createElement("span"),n==u&&(t.className="selected"),vt[0].appendChild(t);ci=vt.children();ii=ci.eq(u)}function br(){ii&&ii.removeClass("selected");ii=n(ci[u]).addClass("selected")}function sr(n,t){var u=t||1,r,f;return n==1?b<wi&&(fi!=0?(nt=b+fi,fi=0):nt=b+(w+dt)*u,nt>0&&(nt=0)):n==-1&&b<yt&&(nt=b-(w+dt)*u,b==0&&(nt+=dt),nt>yt&&(nt=yt),r=ri+nt+i.columnGap,!i.alwaysScrollCompletePage&&r<yt&&r<w&&(f=u>1?b-(w+dt)*(u-1):b,nt=f-r,fi=r)),nt}function hr(t){t&&!i.autoHideArrow?n(t).removeClass(pt):(et.removeClass(pt),ot.removeClass(pt))}function hi(n){ei="click";typeof n.originalEvent!="undefined"&&n.originalEvent&&n.originalEvent.pointerType==="touch"&&(ei="tap");n.target==ot[0]?u+1<v?oi(-1):hr(n.target):u>0?oi(1):hr(n.target);n.preventDefault()}function gt(n,t,i){if(t==undefined){var r=n.css("transform").split(","),u=4;r.length>6&&(u=12);t=parseFloat(r[u]);t=isNaN(t)?0:t}else si(t),i||(i=0),lt.animate(t,i,rt,it);return t}function vi(n){s(function(){var t=0,o=Math.abs(b),s,r,h;if(ni=!0,b>=0)t=0,u=0;else if(!i.alwaysScrollCompletePage&&ct[ct.length-1]<Math.abs(b))t=-ct[ct.length-1]*d,u=v-1;else if(o>w*(v-1))u=v-1,t=-w*u*d;else{if(n)s=!0,(a.ltr&&n==e.types.swipeRight||!a.ltr&&n==e.types.swipeLeft)&&(s=!1),s?u<v&&(u=u+1):u>0&&(u=u-1);else for(r=0;r<v;r++)if(o<=ct[r]){u=r;break}else if(o<w*(r+1)){u=r+1;break}t=-(w+dt)*u*d;u==1&&(t+=dt);i.alwaysScrollCompletePage||(h=ri-w+i.columnGap,Math.abs(t)>h&&(t=-h*d),v-1==u&&ct[ct.length-1]!=t&&(ct.pop(),ct.push(Math.abs(t))))}lt.animationStarting(f);gt(f,t,tt);p.setTimeout(ai,i.autoHideArrowMS)})}function kr(t){if(t.direction){ei="swipe";switch(t.current.touchType){case e.types.move:st&&!ni&&s(function(){wt?li.input(t.current.coord.x):(li.reset(t.current.coord.x),pi=gt(f),wt=!0);gt(f,pi+li.getDelta()|0)});break;case e.types.swipeUp:case e.types.swipeDown:case e.types.throwUp:case e.types.throwDown:case e.types.cancel:case e.types.stop:vi();break;case e.types.swipeRight:case e.types.throwRight:wt?vi(e.types.swipeRight):bt&&oi(1);break;case e.types.swipeLeft:case e.types.throwLeft:wt?vi(e.types.swipeLeft):kt&&oi(-1);break;case e.types.tap:var i=t.originalEvent.originalEvent,r=i.target,u=k.createEvent("MouseEvent");u.initMouseEvent("click",!1,!1,p,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,null);r.tagName!=="A"&&(r=n(r).parentsUntil("LI","A")[0]);r&&r.dispatchEvent(u)}}}var at=t,f,et,ot,yi=i.useViewPortForWidthContainer?at:at.find(i.widthContainerSelector),vt=at.find("."+i.pagingClass);vt.length?(et=at.find(".leftarrow"),ot=at.find(".rightarrow"),et.length||nr()):(vt=n("<div class='"+i.pagingClass+"'><\/div>"),yi.append(vt),nr());var ci,ii,li=new o,wt=!1,ni=!1,pi,wi,b,ri,bi,yt,ki,ct,pt="show",di="collapse-margin",nt,v,u,bt,kt,w,ui=!1,fi=0,lt,ti,gi="pagingsection",dt=1,ei="";return{setup:tr,teardown:ir,update:rr}}var d,ct,ot;d=a.ltr?1:-1;var tt="400ms",it,nt="left",rt="cubicBezierQuint",ut="PagingContentUpdated",st=u.isCapable("ShowMoveTouchGestures"),ft="snapCompleted",g=b.msManipulationViewsEnabled,et=!1,ht="ViewabilityUpdatedEvent";return i.csstransforms3d&&u.isCapable("AllowTransform3d")?(nt="translate3d",it=nt+"({0}px, 0px, 0px)",et=!0):i.csstransforms&&u.isCapable("AllowTransform2d")&&(nt="translateX",it=nt+"({0}px)",et=!0),ct=n(p),ot={autoHideArrow:!1,autoHideArrowMS:250,alwaysScrollCompletePage:!1,contentSelector:".sectioncontent",columnGap:23,extendedArrows:!0,pagingClass:"paging",rememberLastKnownIndex:!1,scrollOffset:0,useViewPortForWidthContainer:!1,widthContainerSelector:".full-width"},t(lt,ot)});define("paging.tokens",{seeAllLink:"See all",pagingArrowText:"{0} of {1}"});require(["binding","c.dom"],function(n){n("tabSection.Responsive",".tabsection.horizontal .full-width").all();n("truncate",".tabsection h4,.tabsection p").all()});define("pagingAnimator",["jquery","modernizr","jqueryPlus"],function(n,t){var i=t.translateXCss;return function(t){function r(n,r,u){var f={};f[i]=n+"px";t.animate(f,{queue:!1,duration:r,easing:u})}return{initialize:n.noop,animationStarting:n.noop,animate:r,animationCompleted:n.noop}}});require(["binding","c.dom"],function(n){n("tabSection",".tabsection").all()})