"undefined"==typeof jwplayer&&(jwplayer=function(h){if(jwplayer.api)return jwplayer.api.selectPlayer(h)},jwplayer.version="6.10.4906",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(h){function c(f){return function(){return a(f)}}function l(f,a,k,m,d){return function(){var b,c;if(d)k(f);else{try{if(b=f.responseXML)if(c=b.firstChild,b.lastChild&&"parsererror"===b.lastChild.nodeName){m&&m("Invalid XML", a,f);return}}catch(g){}if(b&&c)return k(f);(b=e.parseXML(f.responseText))&&b.firstChild?(f=e.extend({},f,{responseXML:b}),k(f)):m&&m(f.responseText?"Invalid XML":a,a,f)}}}var j=document,g=window,b=navigator,e=h.utils={};e.exists=function(f){switch(typeof f){case "string":return 0m||m>k)}else k=void 0;if(k)return f;k=a.substring(0,a.indexOf("://")+3);var m=a.substring(k.length,a.indexOf("/",k.length+1)),b;0===f.indexOf("/")?b=f.split("/"):(b=a.split("?")[0],b=b.substring(k.length+m.length+1,b.lastIndexOf("/")),b=b.split("/").concat(f.split("/")));for(var d=[],c=0;ca&&0>k&&(!f||!isNaN(f))?d.CDN:d.RELATIVE}};e.getPluginName=function(f){return f.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};e.getPluginVersion=function(f){return f.replace(/[^-]*-?([^\.]*).*$/, "$1")};e.isYouTube=function(f){return/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(f)};e.youTubeID=function(f){try{return/v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i.exec(f).slice(1).join("").replace("?","")}catch(a){return""}};e.isRtmp=function(f,a){return 0===f.indexOf("rtmp")||"rtmp"==a};e.foreach=function(f,a){var k,m;for(k in f)"function"==e.typeOf(f.hasOwnProperty)?f.hasOwnProperty(k)&&(m=f[k],a(k,m)):(m=f[k],a(k,m))};e.isHTTPS=function(){return 0===g.location.href.indexOf("https")}; e.repo=function(){var f="http://p.jwpcdn.com/"+h.version.split(/\W/).splice(0,2).join("/")+"/";try{e.isHTTPS()&&(f=f.replace("http://","https://ssl."))}catch(a){}return f};e.versionCheck=function(f){f=("0"+f).split(/\W/);var a=h.version.split(/\W/),k=parseFloat(f[0]),m=parseFloat(a[0]);return k>m||k===m&&parseFloat("0"+f[1])>parseFloat(a[1])?!1:!0};e.ajax=function(f,a,k,m){var b,d=!1;0m.indexOf("url")?"url("+m+")":m+d:0===m||"z-index"===a||"opacity"===a?""+m+d:/color/i.test(a)?"#"+b.pad(m.toString(16).replace(/^0x/i,""),6)+d:Math.ceil(m)+"px"+d}function j(a,b){for(var d=0;dd.elements.indexOf(a)&&d.elements.push(a)}else j(a,c)}};q.block=function(a){null===d&&(d={id:a,styleSheets:{},elements:[]})};q.unblock=function(a){if(d&&(!a||d.id===a)){for(var b in d.styleSheets)g(b);for(a=0;aa)){d.addEventListener(e.ERROR,g);d.addEventListener(e.COMPLETE,b);return}var f=l.createElement("script");f.addEventListener?(f.onload=b,f.onerror=g):f.readyState&&(f.onreadystatechange=function(a){("loaded"==f.readyState||"complete"==f.readyState)&&b(a)});l.getElementsByTagName("head")[0].appendChild(f);f.src=j;a=c.LOADING;h.scriptloader.loaders[j]=this}};this.getStatus=function(){return a}};h.scriptloader.loaders={}}(jwplayer.utils), function(h){h.trim=function(c){return c.replace(/^\s*/,"").replace(/\s*$/,"")};h.pad=function(c,h,j){for(j||(j="0");c.length=e.length&&(e[1]=0);for(var n=c.strToLongs(j.encode(b).slice(0,16)),a=e.length,d=e[a-1],f=e[0],h,k=Math.floor(6+52/a),m=0;0>>2&3;for(var r=0;r>>5^f<<2)+(f>>>3^d<<4)^(m^f)+(n[r&3^h]^d),d=e[r]+=d}e=c.longsToStr(e);return l.encode(e)};c.decrypt=function(g,b){if(0==g.length)return"";for(var e=c.strToLongs(l.decode(g)),h=c.strToLongs(j.encode(b).slice(0,16)),a=e.length, d=e[a-1],f=e[0],q,k=2654435769*Math.floor(6+52/a);0!=k;){q=k>>>2&3;for(var m=a-1;0<=m;m--)d=e[0>>5^f<<2)+(f>>>3^d<<4)^(k^f)+(h[m&3^q]^d),f=e[m]-=d;k-=2654435769}e=c.longsToStr(e);e=e.replace(/\0+$/,"");return j.decode(e)};c.strToLongs=function(c){for(var b=Array(Math.ceil(c.length/4)),e=0;e>>8&255,c[e]>>>16&255,c[e]>>>24&255);return b.join("")};var l={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(c,b){var e,h,a,d,f=[],q="",k,m,r=l.code;m=("undefined"==typeof b?0:b)?j.encode(c):c;k=m.length%3;if(0k++;)q+="\x3d",m+="\x00";for(k=0;k>18&63,h=d>>12&63,a=d>>6&63,d&=63,f[k/3]=r.charAt(e)+r.charAt(h)+r.charAt(a)+ r.charAt(d);f=f.join("");return f=f.slice(0,f.length-q.length)+q},decode:function(c,b){b="undefined"==typeof b?!1:b;var e,h,a,d,f,q=[],k,m=l.code;k=b?j.decode(c):c;for(var r=0;r>>16&255,h=a>>>8&255,a&=255,q[r/4]=String.fromCharCode(e,h,a),64==f&&(q[r/4]=String.fromCharCode(e,h)),64==d&&(q[r/4]=String.fromCharCode(e));d=q.join("");return b?j.decode(d):d}}, j={encode:function(c){c=c.replace(/[\u0080-\u07ff]/g,function(b){b=b.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});return c=c.replace(/[\u0800-\uffff]/g,function(b){b=b.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)})},decode:function(c){c=c.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(b){b=(b.charCodeAt(0)&15)<<12|(b.charCodeAt(1)&63)<<6|b.charCodeAt(2)&63;return String.fromCharCode(b)});return c=c.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, function(b){b=(b.charCodeAt(0)&31)<<6|b.charCodeAt(1)&63;return String.fromCharCode(b)})}}}(jwplayer.utils),function(h){h.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_SETUP_ERROR:"jwplayerSetupError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow", JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_MEDIA_LEVELS:"jwplayerMediaLevels", JWPLAYER_MEDIA_LEVEL_CHANGED:"jwplayerMediaLevelChanged",JWPLAYER_CAPTIONS_CHANGED:"jwplayerCaptionsChanged",JWPLAYER_CAPTIONS_LIST:"jwplayerCaptionsList",JWPLAYER_CAPTIONS_LOADED:"jwplayerCaptionsLoaded",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",state:{BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_PLAYLIST_COMPLETE:"jwplayerPlaylistComplete",JWPLAYER_DISPLAY_CLICK:"jwplayerViewClick", JWPLAYER_VIEW_TAB_FOCUS:"jwplayerViewTabFocus",JWPLAYER_CONTROLS:"jwplayerViewControls",JWPLAYER_USER_ACTION:"jwplayerUserAction",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed",JWPLAYER_AD_TIME:"jwplayerAdTime",JWPLAYER_AD_ERROR:"jwplayerAdError",JWPLAYER_AD_CLICK:"jwplayerAdClicked",JWPLAYER_AD_COMPLETE:"jwplayerAdComplete",JWPLAYER_AD_IMPRESSION:"jwplayerAdImpression",JWPLAYER_AD_COMPANIONS:"jwplayerAdCompanions",JWPLAYER_AD_SKIPPED:"jwplayerAdSkipped", JWPLAYER_AD_PLAY:"jwplayerAdPlay",JWPLAYER_AD_PAUSE:"jwplayerAdPause",JWPLAYER_AD_META:"jwplayerAdMeta",JWPLAYER_CAST_AVAILABLE:"jwplayerCastAvailable",JWPLAYER_CAST_SESSION:"jwplayerCastSession",JWPLAYER_CAST_AD_CHANGED:"jwplayerCastAdChanged"}}(jwplayer),function(h){var c=h.utils;h.events.eventdispatcher=function(l,j){function g(b,a,d){if(b)for(var f=0;fk++&&setTimeout(l,1E3)}function j(){q&&(q.resetEventListeners(),q=null)}function g(){a.apiConfig=null}function b(){}function e(b){a.loader.sendEvent("session",{session:b});b.sendMessage(a.NS,{whoami:1})}function n(b){a.availability=b;a.loader.sendEvent("availability", {availability:b})}window.chrome=c;var a=h.cast,d=h.utils,f=h.events,q,k=0,m=null;a.loader=d.extend({initialize:function(b){m=b;null!==a.availability?a.loader.sendEvent("availability",{availability:a.availability}):c&&c.cast?l():q||(q=new d.scriptloader("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),q.addEventListener(f.ERROR,j),q.addEventListener(f.COMPLETE,l),q.load())}},new f.eventdispatcher("cast.loader"))}(window.jwplayer,window.chrome||{}),function(h){function c(b){return function(){return b}} function l(){}var j=h.cast,g=h.utils,b=h.events,e=b.state;j.provider=function(h){function a(a){q.oldstate=q.newstate;q.newstate=a;d.sendEvent(b.JWPLAYER_PLAYER_STATE,{oldstate:q.oldstate,newstate:q.newstate})}var d=g.extend(this,new b.eventdispatcher("cast.provider")),f=-1,q={newstate:e.IDLE,oldstate:e.IDLE,buffer:0,position:0,duration:-1,audioMode:!1};d.isCaster=!0;d.init=function(){};d.destroy=function(){clearTimeout(f);_castSession=null};d.updateModel=function(a,c){a.newstate&&(q.newstate=a.newstate, q.oldstate=a.oldstate||q.oldstate,d.sendEvent(b.JWPLAYER_PLAYER_STATE,{oldstate:q.oldstate,newstate:q.newstate}));if("ad"!==c){if(void 0!==a.position||void 0!==a.duration)void 0!==a.position&&(q.position=a.position),void 0!==a.duration&&(q.duration=a.duration),d.sendEvent(b.JWPLAYER_MEDIA_TIME,{position:q.position,duration:q.duration});void 0!==a.buffer&&(q.buffer=a.buffer,d.sendEvent(b.JWPLAYER_MEDIA_BUFFER,{bufferPercent:q.buffer}))}};d.supportsFullscreen=function(){return!1};d.setup=function(b, c){c.state&&(q.newstate=c.state);void 0!==c.buffer&&(q.buffer=c.buffer);void 0!==b.position&&(q.position=b.position);void 0!==b.duration&&(q.duration=b.duration);a(e.BUFFERING);h("setup",b)};d.playlistItem=function(b){a(e.BUFFERING);h("item",b)};d.load=function(b){a(e.BUFFERING);h("load",b)};d.stop=function(){clearTimeout(f);f=setTimeout(function(){a(e.IDLE);h("stop")},0)};d.play=function(){h("play")};d.pause=function(){a(e.PAUSED);h("pause")};d.seek=function(c){a(e.BUFFERING);d.sendEvent(b.JWPLAYER_MEDIA_SEEK, {position:q.position,offset:c});h("seek",c)};d.audioMode=function(){return q.audioMode};d.sendCommand=function(a,b){h(a,b)};d.detachMedia=function(){j.error("detachMedia called while casting");return document.createElement("video")};d.attachMedia=function(){j.error("attachMedia called while casting")};var k;d.setContainer=function(a){k=a};d.getContainer=function(){return k};d.volume=d.mute=d.setControls=d.setCurrentQuality=d.remove=d.resize=d.seekDrag=d.addCaptions=d.resetCaptions=d.setVisibility= d.fsCaptions=l;d.setFullScreen=d.getFullScreen=d.checkComplete=c(!1);d.getWidth=d.getHeight=d.getCurrentQuality=c(0);d.getQualityLevels=c(["Auto"])}}(window.jwplayer),function(h){function c(a,b){j.foreach(b,function(b,c){var e=a[b];"function"==typeof e&&e.call(a,c)})}function l(a,b,c){var e=a.style;e.backgroundColor="#000";e.color="#FFF";e.width=j.styleDimension(c.width);e.height=j.styleDimension(c.height);e.display="table";e.opacity=1;c=document.createElement("p");e=c.style;e.verticalAlign="middle"; e.textAlign="center";e.display="table-cell";e.font="15px/20px Arial, Helvetica, sans-serif";c.innerHTML=b.replace(":",":\x3cbr\x3e");a.innerHTML="";a.appendChild(c)}var j=h.utils,g=h.events,b=!0,e=!1,n=document,a=h.embed=function(d){function f(){if(!B)if("array"===j.typeOf(u.playlist)&&2>u.playlist.length&&(0===u.playlist.length||!u.playlist[0].sources||0===u.playlist[0].sources.length))m();else if(!F)if("string"===j.typeOf(u.playlist))C=new h.playlist.loader,C.addEventListener(g.JWPLAYER_PLAYLIST_LOADED, function(a){u.playlist=a.playlist;F=e;f()}),C.addEventListener(g.JWPLAYER_ERROR,function(a){F=e;m(a)}),F=b,C.load(u.playlist);else if(v.getStatus()==j.loaderstatus.COMPLETE){for(var k=0;k=e||0>=g?0:100*(g/e)+"%")}-1==b.width.toString().indexOf("%")?delete b.aspectratio: e?b.aspectratio=e:delete b.aspectratio;return b}).addConfig=function(b,e){c(e);return j.extend(b,e)}}(jwplayer),function(h){var c=h.utils,l=document;h.embed.download=function(j,g,b){function e(a,b){for(var d=l.querySelectorAll(a),e=0;er)return m.sendEvent(l.ERROR,{message:"Flash version must be 10.0 or greater"}),!1;var g,h,t=d.config.listbar,p=c.extend({}, n);if(b.id+"_wrapper"==b.parentNode.id)g=document.getElementById(b.id+"_wrapper");else{g=document.createElement("div");h=document.createElement("div");h.style.display="none";h.id=b.id+"_aspect";g.id=b.id+"_wrapper";g.style.position="relative";g.style.display="block";g.style.width=c.styleDimension(p.width);g.style.height=c.styleDimension(p.height);if(d.config.aspectratio){var A=parseFloat(d.config.aspectratio);h.style.display="block";h.style.marginTop=d.config.aspectratio;g.style.height="auto";g.style.display= "inline-block";t&&("bottom"==t.position?h.style.paddingBottom=t.size+"px":"right"==t.position&&(h.style.marginBottom=-1*t.size*(A/100)+"px"))}b.parentNode.replaceChild(g,b);g.appendChild(b);g.appendChild(h)}g=a.setupPlugins(d,p,q);0=p.height?"transparent":"opaque";h="height width modes events primary base fallback volume".split(" "); for(t=0;t