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