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