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