(function(f){f.html5={};f.html5.version="6.6.3896"})(jwplayer); (function(f){f.parseDimension=function(g){if("string"==typeof g){if(""===g)return 0;if(!(-1e?"0":"")+e+":"+(10>g?"0":"")+g}return"00:00"};f.bounds=function(g){try{var b=g.getBoundingClientRect(g),e=window.pageYOffset,c=window.pageXOffset;return{left:b.left+c,right:b.right+c,top:b.top+e,bottom:b.bottom+ e,width:b.right-b.left,height:b.bottom-b.top}}catch(a){return{left:0,right:0,width:0,height:0,top:0,bottom:0}}};f.empty=function(g){if(g)for(;0c.indexOf("url")?"url("+c+")":c+k;else switch(b){case "z-index":case "opacity":a=c+k;break a;default:a=b.match(/color/i)?"#"+f.pad(c.toString(16).replace(/^0x/i,""),6)+k:0===c?0+k:Math.ceil(c)+"px"+k}}}j(d[e][b])&&!j(a)?delete d[e][b]:j(a)&&(d[e][b]=a)}); 0h?(d*=j,r*=j):(d*=h,r*=h);case g.NONE:j=h=1;case g.EXACTFIT:A=!0;break;default:j>h?0.95=u.length||(u[z].data?s.populate(u[z].data):(C=a=u[z].file,g.ajax(a,y,k)),l(!1))}function w(){var a=[];a.push({label:"Off"});for(var b=0;b=n)){a=b;break}-1==a?c(""):a!=f&&(f=a,c(j[b].text))}function r(a,b){g(b, function(b,c){a.style[b]=c})}var j,h,q,f,n,y="visible",k;this.hide=function(){r(h,{display:"none"});k&&(clearInterval(k),k=null)};this.populate=function(a){f=-1;j=a;d()};this.resize=function(){a()};h=document.createElement("div");q=document.createElement("span");h.appendChild(q);e.appendChild(h);r(h,{display:"block",height:"auto",position:"absolute",bottom:"20px",textAlign:"center",width:"100%"});r(q,{color:"#"+b.color.substr(-6),display:"inline-block",fontFamily:b.fontFamily,fontStyle:b.fontStyle, fontWeight:b.fontWeight,height:"auto",margin:"auto",position:"relative",textAlign:"center",textDecoration:b.textDecoration,wordWrap:"break-word",width:"auto"});b.back?r(q,{background:"#000"}):r(q,{textShadow:"-2px 0px 1px #000,2px 0px 1px #000,0px -2px 1px #000,0px 2px 1px #000,-1px 1px 1px #000,1px 1px 1px #000,1px -1px 1px #000,1px 1px 1px #000"});this.show=function(){r(h,{display:"block"});k||(k=setInterval(a,250));a()};this.update=function(a){n=a;j&&d()}}})(jwplayer.html5); (function(f){var g=f.html5,b=f.utils,e=f.events,c=e.state,a=b.css;f=b.transitionStyle;var d=b.isMobile(),r=b.isAndroid(4)&&!b.isChrome(),j="button",h="text",q="slider",A="100%",n={display:"none"},y={display:"block"},k={display:t},p=!1,l=!0,I=null,t=void 0,w=window,D=document;g.controlbar=function(f,m){function s(a,b,c){return{name:a,type:b,className:c}}function v(a){var c=p,e;a.duration==Number.POSITIVE_INFINITY||!a.duration&&b.isSafari()&&!d?$.setText(H.jwGetPlaylist()[H.jwGetPlaylistIndex()].title|| "Live broadcast"):(L.elapsed&&(e=b.timeFormat(a.position),L.elapsed.innerHTML=e,c=e.length!=b.timeFormat(La).length),L.duration&&(e=b.timeFormat(a.duration),L.duration.innerHTML=e,c=c||e.length!=b.timeFormat(ua).length),0ca.right?a.offsetX(ca.right-c.right):c.lefta&&(a=0);0.9W.maxwidth;d=pa?0:W.margin;a(F(),{left:c? "50%":d,right:c?t:d,"margin-left":c?S.clientWidth/-2:t,width:c?A:t});a(F(".jwfullscreen"),{display:pa||eb?"none":t});a(F(".jwvolumeH"),{display:pa?"block":"none"});a(F(".jwhd"),{display:!pa&&fa&&1d-ga?(x.jwSetFullscreen(),ga=void 0):ga=(new Date).getTime();var k=g.bounds(m.parentNode.querySelector(".jwcontrolbar")),f=g.bounds(m),d=k.left-10-f.left,j=k.left+30-f.left,l=f.bottom-40,h=f.bottom,n=k.right- 30-f.left,k=k.right+10-f.left;if(a&&!(c.x>=d&&c.x<=j&&c.y>=l&&c.y<=h)){if(c.x>=n&&c.x<=k&&c.y>=l&&c.y<=h){x.jwSetFullscreen();return}da.sendEvent(b.JWPLAYER_DISPLAY_CLICK);if(O)return}switch(x.jwGetState()){case e.PLAYING:case e.BUFFERING:x.jwPause();break;default:x.jwPlay()}}}function y(a,b){Y.showicons&&(a||b?(J.setRotation("buffer"==a?parseInt(Y.bufferrotation):0,parseInt(Y.bufferinterval)),J.setIcon(a),J.setText(b)):J.hide())}function k(a){u!=a?(u&&D(r,h),(u=a)?(a=new Image,a.addEventListener("load", I,h),a.src=u):(c("#"+m.id+" "+r,{"background-image":void 0}),D(r,h),B=G=0)):u&&!O&&D(r,j);l(x.jwGetState())}function p(a){clearTimeout(ka);ka=setTimeout(function(){l(a.newstate)},100)}function l(a){a=Z?Z:x?x.jwGetState():e.IDLE;if(a!=Q)switch(Q=a,J&&J.setRotation(0),a){case e.IDLE:!F&&!P&&(u&&!C&&D(r,j),a=!0,x._model&&!1===x._model.config.displaytitle&&(a=!1),y("play",z&&a?z.title:""));break;case e.BUFFERING:F=h;M.error&&M.error.setText();P=h;y("buffer");break;case e.PLAYING:y();break;case e.PAUSED:y("play")}} function I(){B=this.width;G=this.height;l(x.jwGetState());w();u&&c("#"+m.id+" "+r,{"background-image":"url("+u+")"})}function t(a){F=j;y("error",a.message)}function w(){0=M)clearInterval(C);else{M--;var c=Math.max(B.width,g.bounds(x).width-s.width-m.width);(g.isFF()||g.isIE())&&c++;g.isChrome()&&1==x.parentNode.clientWidth%2&&c++;b(A(),{"background-size":[m.width+a,c+a,s.width+a].join()},!0)}}function I(){E=(E+P)%360;g.rotate(u,E)}var t=j,w=t.skin,D=f,x,m,s,v,z,u,B,G=0,C,M;this.element=function(){return x};this.setText=function(a){var b=z.style;z.innerHTML=a?a.replace(":",":\x3cbr\x3e"):"";b.height="0";b.display= "block";if(a)for(;2c.left&&a.offsetX(d.left-c.left+8);n.show();g.foreach(x,function(a,b){a!=k&&b.hide()})},!1);l.addEventListener("mouseout",function(){q=setTimeout(n.hide,100)},!1);m.appendChild(n.element()); x[k]=n}}w++;p()}};z.removeButton=function(a){if(D[a]){s.removeChild(D[a].element);s.removeChild(D[a].divider);var b=document.getElementById(""+I+"_"+a+"_tooltip");b&&m.removeChild(b);delete D[a];w--;p()}};z.numButtons=function(){return w};z.visible=!1;m=y("div","jwdock");s=y("div","jwdockbuttons");m.appendChild(s);m.id=I;var u=k("button"),B=k("buttonOver"),G=k("buttonActive");u&&(b(n(),{height:u.height,padding:l.margin}),b(c,{height:u.height}),b(n("button"),g.extend(q(u),{width:u.width,cursor:"pointer", border:d})),b(n("button:hover"),q(B)),b(n("button:active"),q(G)),b(n("button\x3ediv"),{opacity:l.iconalpha}),b(n("button:hover\x3ediv"),{opacity:l.iconalphaover}),b(n("button:active\x3ediv"),{opacity:l.iconalphaactive}),b(n(".jwoverlay"),{top:l.margin+u.height}),A("capLeft",s),A("capRight",s),A("divider"));setTimeout(function(){e(m)})};b(".jwdock",{opacity:0,display:d});b(".jwdock \x3e *",{height:"100%","float":"left"});b(".jwdock \x3e .jwoverlay",{height:"auto","float":d,"z-index":99});b(c+" button", {position:"relative"});b(c+" \x3e *",{height:"100%","float":"left"});b(c+" .divider",{display:d});b(c+" button ~ .divider",{display:r});b(c+" .capLeft, "+c+" .capRight",{display:d});b(c+" .capRight",{"float":"right"});b(c+" button \x3e div",{left:0,right:0,top:0,bottom:0,margin:5,position:"absolute","background-position":"center","background-repeat":"no-repeat"});g.transitionStyle(".jwdock","background .25s, opacity .25s");g.transitionStyle(".jwdock .jwoverlay","opacity .25s");g.transitionStyle(c+ " button div","opacity .25s")})(jwplayer.html5); (function(f){var g=jwplayer,b=g.utils,e=g.events,c=e.state,a=g.playlist;f.instream=function(d,g,j,h){function q(a){a.type==e.JWPLAYER_MEDIA_ERROR&&(a=b.extend({},a),a.type=e.JWPLAYER_ERROR);l(a.type,a);O=!0;E.jwInstreamDestroy(!1)}function A(a){P.state=a.newstate;n(a)}function n(a){C&&l(a.type,a)}function y(){C&&u.play()}function k(){C&&setTimeout(function(){E.jwInstreamDestroy(!0)},10)}function p(a){a.width&&a.height&&x.resizeMedia()}function l(a,b,c){(C||c)&&M.sendEvent(a,b)}function I(){B&&B.redraw(); G&&G.redraw()}var t={controlbarseekable:"never",controlbarpausable:!0,controlbarstoppable:!0,playlistclickable:!0},w,D,x=j,m,s,v,z,u,B,G,C=!1,M,F,P,E=this,O=!1,U=!0;E.load=function(j,M){b.isAndroid(2.3)?q({type:e.JWPLAYER_ERROR,message:"Error loading instream: Cannot play instream on Android 2.3"}):(C=!0,D=b.extend(t,M),w=new a.item(j),F=document.createElement("div"),F.id=E.id+"_instream_container",m=h.detachMedia(),u=new f.video(m),u.addGlobalListener(n),u.addEventListener(e.JWPLAYER_MEDIA_META, p),u.addEventListener(e.JWPLAYER_MEDIA_COMPLETE,k),u.addEventListener(e.JWPLAYER_MEDIA_BUFFER_FULL,y),u.addEventListener(e.JWPLAYER_MEDIA_ERROR,q),u.addEventListener(e.JWPLAYER_PLAYER_STATE,A),u.attachMedia(),u.mute(g.mute),u.volume(g.volume),P=new f.model({},u),P.setVolume(g.volume),P.setMute(g.mute),P.addEventListener(e.JWPLAYER_ERROR,q),z=g.playlist[g.item],v=g.getVideo().checkComplete()?c.IDLE:d.jwGetState(),h.checkBeforePlay()&&(v=c.PLAYING,U=!1),s=m.currentTime,P.setPlaylist([j]),O||((v==c.BUFFERING|| v==c.PLAYING)&&m.pause(),G=new f.display(E),G.setAlternateClickHandler(function(a){d.jwGetControls()?(P.state==c.PAUSED?E.jwInstreamPlay():E.jwInstreamPause(),a.hasControls=!0):a.hasControls=!1;l(e.JWPLAYER_INSTREAM_CLICK,a)}),F.appendChild(G.element()),B=new f.controlbar(E),F.appendChild(B.element()),B.show(),d.jwGetControls()?(B.show(),G.show()):(B.hide(),G.hide()),x.setupInstream(F,B,G),I(),u.load(P.playlist[0])))};E.jwInstreamDestroy=function(a){if(C){C=!1;v!=c.IDLE?u.load(z,!1):u.stop();M.resetEventListeners(); O||G.revertAlternateClickHandler();u.detachMedia();x.destroyInstream();if(B)try{B.element().parentNode.removeChild(B.getDisplayElement())}catch(b){}l(e.JWPLAYER_INSTREAM_DESTROYED,{reason:a?"complete":"destroyed"},!0);h.attachMedia();if(v==c.BUFFERING||v==c.PLAYING)m.play(),g.playlist[g.item]==z&&U&&g.getVideo().seek(s)}};E.jwInstreamAddEventListener=function(a,b){M.addEventListener(a,b)};E.jwInstreamRemoveEventListener=function(a,b){M.removeEventListener(a,b)};E.jwInstreamPlay=function(){C&&(u.play(!0), g.state=jwplayer.events.state.PLAYING,G.show())};E.jwInstreamPause=function(){C&&(u.pause(!0),g.state=jwplayer.events.state.PAUSED,d.jwGetControls()&&G.show())};E.jwInstreamSeek=function(a){C&&u.seek(a)};E.jwInstreamSetText=function(a){B.setText(a)};E.jwPlay=function(){"true"==D.controlbarpausable.toString().toLowerCase()&&E.jwInstreamPlay()};E.jwPause=function(){"true"==D.controlbarpausable.toString().toLowerCase()&&E.jwInstreamPause()};E.jwStop=function(){"true"==D.controlbarstoppable.toString().toLowerCase()&& (E.jwInstreamDestroy(),d.jwStop())};E.jwSeek=function(a){switch(D.controlbarseekable.toLowerCase()){case "always":E.jwInstreamSeek(a);break;case "backwards":P.position>a&&E.jwInstreamSeek(a)}};E.jwSeekDrag=function(a){P.seekDrag(a)};E.jwGetPosition=function(){};E.jwGetDuration=function(){};E.jwGetWidth=d.jwGetWidth;E.jwGetHeight=d.jwGetHeight;E.jwGetFullscreen=d.jwGetFullscreen;E.jwSetFullscreen=d.jwSetFullscreen;E.jwGetVolume=function(){return g.volume};E.jwSetVolume=function(a){P.setVolume(a);d.jwSetVolume(a)}; E.jwGetMute=function(){return g.mute};E.jwSetMute=function(a){P.setMute(a);d.jwSetMute(a)};E.jwGetState=function(){return P.state};E.jwGetPlaylist=function(){return[w]};E.jwGetPlaylistIndex=function(){return 0};E.jwGetStretching=function(){return g.config.stretching};E.jwAddEventListener=function(a,b){M.addEventListener(a,b)};E.jwRemoveEventListener=function(a,b){M.removeEventListener(a,b)};E.jwSetCurrentQuality=function(){};E.jwGetQualityLevels=function(){return[]};E.skin=d.skin;E.id=d.id+"_instream"; M=new e.eventdispatcher;d.jwAddEventListener(e.JWPLAYER_RESIZE,I);d.jwAddEventListener(e.JWPLAYER_FULLSCREEN,function(a){n(a);I();b.isIPad()&&(!a.fullscreen&&P.state==jwplayer.events.state.PAUSED)&&G.show(!0);b.isIPad()&&(!a.fullscreen&&P.state==jwplayer.events.state.PLAYING)&&G.hide()});return E}})(jwplayer.html5); (function(f){var g=f.utils,b=g.css,e=f.events.state,c=f.html5.logo=function(a,d){function r(a){g.exists(a)&&a.stopPropagation&&a.stopPropagation();if(!y||!q.link)j.jwGetState()==e.IDLE||j.jwGetState()==e.PAUSED?j.jwPlay():j.jwPause();y&&q.link&&(j.jwPause(),j.jwSetFullscreen(!1),window.open(q.link,q.linktarget))}var j=a,h=j.id+"_logo",q,A,n=c.defaults,y=!1;this.resize=function(){};this.element=function(){return A};this.offset=function(a){b("#"+h+" ",{"margin-bottom":a})};this.position=function(){return q.position}; this.margin=function(){return parseInt(q.margin)};this.hide=function(a){if(q.hide||a)y=!1,A.style.visibility="hidden",A.style.opacity=0};this.show=function(){y=!0;A.style.visibility="visible";A.style.opacity=1};var k="o";j.edition&&(k=j.edition(),k="pro"==k?"p":"premium"==k?"r":"ads"==k?"a":"free"==k?"f":"o");if("o"==k||"f"==k)n.link="http://www.longtailvideo.com/jwpabout/?a\x3dl\x26v\x3d"+f.version+"\x26m\x3dh\x26e\x3d"+k;q=g.extend({},n,d);q.hide="true"==q.hide.toString();A=document.createElement("img"); A.className="jwlogo";A.id=h;if(q.file){var n=/(\w+)-(\w+)/.exec(q.position),k={},p=q.margin;3==n.length?(k[n[1]]=p,k[n[2]]=p):k.top=k.right=p;b("#"+h+" ",k);A.src=(q.prefix?q.prefix:"")+q.file;g.isMobile()?(new g.touch(A)).addEventListener(g.touchEvents.TAP,r):A.onclick=r}else A.style.display="none";return this};c.defaults={prefix:g.repo(),file:"logo.png",linktarget:"_top",margin:8,hide:!1,position:"top-right"};b(".jwlogo",{cursor:"pointer",position:"absolute","z-index":100,opacity:0});g.transitionStyle(".jwlogo", "visibility .25s, opacity .25s")})(jwplayer); (function(f){var g=f.html5,b=f.utils,e=b.css,c=void 0;g.menu=function(a,d,f,j){function h(a){return!a||!a.src?{}:{background:"url("+a.src+") no-repeat left","background-size":a.width+"px "+a.height+"px"}}function q(a,b){return function(){I(a);y&&y(b)}}function A(a,b){var c=document.createElement("div");a&&(c.className=a);b&&b.appendChild(c);return c}function n(a){return(a=f.getSkinElement("tooltip",a))?a:{width:0,height:0,src:c}}var y=j,k=new g.overlay(d+"_overlay",f);j=b.extend({fontcase:c,fontcolor:"#cccccc", fontsize:11,fontweight:c,activecolor:"#ffffff",overcolor:"#ffffff"},f.getComponentSettings("tooltip"));var p,l=[];this.element=function(){return k.element()};this.addOption=function(a,c){var e=A("jwoption",p);e.id=d+"_option_"+c;e.innerHTML=a;b.isMobile()?(new b.touch(e)).addEventListener(b.touchEvents.TAP,q(l.length,c)):e.addEventListener("click",q(l.length,c));l.push(e)};this.clearOptions=function(){for(;0a?(a=0,c=!0):a=-1==a||a>d.playlist.length?d.playlist.length-1:a;if(c||a!=d.item)d.item=a,d.sendEvent(b.JWPLAYER_PLAYLIST_ITEM,{index:d.item})};d.setVolume=function(c){d.mute&& 0a&&(a=0);1parseFloat(jwplayer.version))&&p("Incompatible player version"); if(0===a.length)k(y);else for(c=0;ch[b].end;)b++;b==h.length&&b--;if(h[b].text)if(a=h[b].text,0>a.indexOf("://")&&(a=q?q+"/"+a:a),0B)&&aa(B);h()}},emptied:j,ended:function(){O&&C!=e.IDLE&&(J=-1,Y=c,f(b.JWPLAYER_MEDIA_BEFORECOMPLETE),O&&(l(e.IDLE),Y=a,f(b.JWPLAYER_MEDIA_COMPLETE)))}, error:function(){O&&(g.log("Error playing media: %o",m.error),E.sendEvent(b.JWPLAYER_MEDIA_ERROR,{message:"Error loading media: File could not be played"}),l(e.IDLE))},loadeddata:j,loadedmetadata:q,loadstart:j,pause:n,play:n,playing:n,progress:function(){z&&(0J&&(J=0);for(a=0;aa)&&(J=a,g.saveCookie("qualityLabel",U[a].label),f(b.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:a,levels:k(U)}),a=m.currentTime, p(),Q.seek(a)))};Q.getCurrentQuality=function(){return J};Q.getQualityLevels=function(){return k(U)};m=d;g.foreach(w,function(b,c){m.addEventListener(b,c,a)});m.controls=c;m.controls=a;m.setAttribute("x-webkit-airplay","allow");O=c}})(jwplayer); (function(f){var g=jwplayer.utils,b=jwplayer.events,e=b.state,c=g.css,a=g.isMobile(),d=g.isIPad(),r=g.isIPod(),j=g.isAndroid(),h=g.isIOS(),q=document,A="aspectMode",n="jwmain",y="jwvideo",k="jwplaylistcontainer",p=!0,l=!1,I="hidden",t="none",w="block";f.view=function(D,x){function m(a){a&&(a.element().addEventListener("mousemove",u,l),a.element().addEventListener("mouseout",B,l))}function s(a,b){var c=q.createElement(a);b&&(c.className=b);return c}function v(){clearTimeout(ma);ma=setTimeout(Q,Ia)} function z(){clearTimeout(ma);if(X.jwGetState()==e.PAUSED||X.jwGetState()==e.PLAYING)Y(),ua||(ma=setTimeout(Q,Ia))}function u(){clearTimeout(ma);ua=p}function B(){ua=l}function G(a){fa.sendEvent(a.type,a)}function C(a,d,e){g.exists(e)||(e=p);g.exists(a)&&g.exists(d)&&(K.width=a,K.height=d);T.style.width=isNaN(a)?a:a+"px";-1==T.className.indexOf(A)&&(T.style.height=isNaN(d)?d:d+"px");V&&V.redraw();R&&R.redraw(p);H&&(H.offset(R&&0<=H.position().indexOf("bottom")?R.height()+R.margin():0),setTimeout(function(){N&& N.offset("top-left"==H.position()?H.element().clientWidth+H.margin():0)},500));a=K.playlistsize;var f=K.playlistposition;M(d);if(Ea&&a&&("right"==f||"bottom"==f)){Ea.redraw();d={display:w};var h={};d[f]=0;h[f]=a;"right"==f?d.width=a:d.height=a;c(qa(k),d);c(qa(n),h)}F();e&&fa.sendEvent(b.JWPLAYER_RESIZE)}function M(a){var b=g.bounds(T);W=0=b.height;R&&(W?(R.audioMode(p),Y(),V.hidePreview(p),V&&V.hide(), da(l)):(R.audioMode(l),ab(X.jwGetState())));H&&W&&H&&H.hide(W);T.style.backgroundColor=W?"transparent":"#000"}function F(){ba&&-1==T.className.indexOf(A)&&g.stretch(K.stretching,ba,ta.clientWidth,ta.clientHeight,ba.videoWidth,ba.videoHeight)}function P(a){if(K.fullscreen)switch(a.keyCode){case 27:Na(l)}}function E(a){h||(a?(T.className+=" jwfullscreen",q.getElementsByTagName("body")[0].style["overflow-y"]=I):(T.className=T.className.replace(/\s+jwfullscreen/,""),q.getElementsByTagName("body")[0].style["overflow-y"]= ""))}function O(){var a;a:{a=[q.mozFullScreenElement,q.webkitCurrentFullScreenElement,ba.webkitDisplayingFullscreen];for(var b=0;b